@maestro_io/maestro-web-sdk 2.0.0 → 2.0.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/dist/components/atoms/SvgIcon/Icon.d.ts +12 -14
- package/dist/maestro-web-sdk.umd.js +1 -1
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/package.json +15 -8
- package/dist/1.maestro-web-sdk.umd.js +0 -2
- package/dist/1.maestro-web-sdk.umd.js.map +0 -1
- package/dist/2.maestro-web-sdk.umd.js +0 -2
- package/dist/2.maestro-web-sdk.umd.js.map +0 -1
- package/dist/3.maestro-web-sdk.umd.js +0 -2
- package/dist/3.maestro-web-sdk.umd.js.map +0 -1
- package/dist/4.maestro-web-sdk.umd.js +0 -2
- package/dist/4.maestro-web-sdk.umd.js.map +0 -1
- package/dist/5.maestro-web-sdk.umd.js +0 -2
- package/dist/5.maestro-web-sdk.umd.js.map +0 -1
- package/dist/6.maestro-web-sdk.umd.js +0 -2
- package/dist/6.maestro-web-sdk.umd.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://MaestroWebSDK/webpack/universalModuleDefinition","webpack://MaestroWebSDK/webpack/bootstrap","webpack://MaestroWebSDK/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://MaestroWebSDK/./src/helpers/Observable.ts","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/css-loader/dist/runtime/api.js","webpack://MaestroWebSDK/./src/external/spatial-navigation/index.ts","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/prop-types/index.js","webpack://MaestroWebSDK/./src/external/spatial-navigation/measureLayout.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/visualDebugger.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/spatialNavigation.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/utils.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view-model/KeyPlaysViewModel.ts","webpack://MaestroWebSDK/./src/view-models/MaestroEventViewModel.ts","webpack://MaestroWebSDK/./src/view-models/ViewModel.ts","webpack://MaestroWebSDK/./src/view-models/index.ts","webpack://MaestroWebSDK/./src/external/ReactRenderer.tsx","webpack://MaestroWebSDK/./src/index.tsx","webpack://MaestroWebSDK/external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}","webpack://MaestroWebSDK/./src/models/IPanel.ts","webpack://MaestroWebSDK/./src/view-models/PanelManagerViewModel.ts","webpack://MaestroWebSDK/./src/components/core/App/App.styles.css","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.styles.css","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.styles.css","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.styles.css","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.styles.css","webpack://MaestroWebSDK/./src/external/spatial-navigation/withFocusable.ts","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/prop-types/factoryWithThrowingShims.js","webpack://MaestroWebSDK//home/runner/work/maestro-web-sdk/maestro-web-sdk/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.styles.css?eca3","webpack://MaestroWebSDK/./src/components/atoms/BaseButton/BaseButton.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/Icon.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.styles.css?688c","webpack://MaestroWebSDK/./src/helpers/withRemoteControl.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/index.ts","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.styles.css?b45f","webpack://MaestroWebSDK/./src/helpers/deliver-focus.ts","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.tsx","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/index.ts","webpack://MaestroWebSDK/./src/components/atoms/Image/index.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.styles.css?6a1b","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardScoreTagView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/constants.ts","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css?bf42","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.tsx","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.styles.css?4496","webpack://MaestroWebSDK/./src/components/atoms/BaseButton/index.ts","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.styles.css?70b3","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.tsx","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css?70b3","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.tsx","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.tsx","webpack://MaestroWebSDK/./src/components/core/PanelManager/index.tsx","webpack://MaestroWebSDK/./src/models/ITheme.ts","webpack://MaestroWebSDK/./src/services/ThemeManager/constants.ts","webpack://MaestroWebSDK/./src/components/core/App/App.styles.css?9f49","webpack://MaestroWebSDK/./src/components/core/App/App.tsx","webpack://MaestroWebSDK/./src/components/core/App/index.ts"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__9__","webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","installedModules","0","__webpack_require__","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","oldJsonpFunction","slice","s","Observable","constructor","initialValue","_defineProperty","_value","newValue","notify","subscribe","listener","listeners","filter","forEach","memo","isOldIE","Boolean","window","atob","getTarget","styleTarget","querySelector","HTMLIFrameElement","contentDocument","stylesInDom","getIndexByIdentifier","identifier","result","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","index","obj","css","media","sourceMap","references","updater","addStyle","insertStyleElement","style","attributes","nonce","keys","insert","textStore","replaceText","replacement","join","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","applyToTag","removeAttribute","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","singleton","singletonCounter","update","styleIndex","parentNode","removeStyleElement","newObj","lastIdentifiers","newList","toString","newLastIdentifiers","_i","_index","splice","_slicedToArray","arr","Array","isArray","_arrayWithHoles","iterator","_s","_e","_arr","_n","_d","next","done","_iterableToArrayLimit","minLen","_arrayLikeToArray","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","_item","content","cssMapping","base64","sourceMapping","sourceURLs","sources","map","source","sourceRoot","cssWithMappingToString","mediaQuery","dedupe","alreadyImportedModules","destroy","pause","resume","setFocus","init","setKeyMap","SpatialNavigation","getRect","node","offsetParent","height","offsetHeight","width","offsetWidth","left","offsetLeft","top","offsetTop","nodeType","scrollLeft","scrollTop","measureLayout","callback","relativeNode","relativeRect","hasDOM","WIDTH","innerWidth","HEIGHT","innerHeight","VisualDebugger","debugCtx","createCanvas","layoutsCtx","zIndex","canvas","ctx","getContext","body","clear","clearRect","clearLayouts","drawLayout","layout","focusKey","parentFocusKey","strokeStyle","strokeRect","font","fillStyle","fillText","drawPoint","x","y","color","size","lineWidth","ROOT_FOCUS_KEY","DEFAULT_KEY_MAP","DEBUG_FN_COLORS","THROTTLE_OPTIONS","leading","trailing","throttle","func","wait","previous","args","now","Date","remaining","apply","sortBy","array","iteratee","sort","a","b","aValue","bValue","first","findKey","predicate","find","difference","values","includes","isVertical","isIncremental","isSibling","itemX","itemY","itemWidth","itemHeight","coordinate","itemSize","direction","refCorners","siblingCorners","isVerticalDirection","refA","refB","siblingA","siblingB","refCoordinateA","refCoordinateB","siblingCoordinateA","siblingCoordinateB","thresholdDistance","Math","max","min","abs","distancesToCompare","sortSiblingsByPriority","siblings","currentLayout","_focusKey","getRefCorners","aCorners","bCorners","aIsAdjacentSlice","isAdjacentSlice","bIsAdjacentSlice","aPrimaryAxisFunction","getPrimaryAxisDistance","getSecondaryAxisDistance","bPrimaryAxisFunction","aSecondaryAxisFunction","bSecondaryAxisFunction","aPrimaryAxisDistance","bPrimaryAxisDistance","focusableComponents","parentsHavingFocusedChild","enabled","nativeMode","throttleKeypresses","pressedKeys","paused","keyDownEventListener","keyUpEventListener","keyMap","debug","visualDebugger","logIndex","onKeyEvent","updateAllLayouts","navigateByDirection","visualDebug","Number","isInteger","bindEventHandlers","startDrawLayouts","draw","requestAnimationFrame","_this$visualDebugger","entries","component","_this$visualDebugger2","unbindEventHandlers","getEventType","keyCode","getKeyMap","code","addEventListener","keyDownHandler","eventType","preventDefault","stopPropagation","details","onEnterPress","_this$visualDebugger3","onArrowPress","log","_this$keyDownEventLis","_this$keyDownEventLis2","cancel","onEnterRelease","removeEventListener","_component$onEnterPre","focusable","onEnterPressHandler","_component$onEnterRel","onEnterReleaseHandler","_component$onArrowPre","onArrowPressHandler","validDirections","smartNavigate","_this$visualDebugger4","fromParentFocusKey","layoutUpdated","currentComponent","updateLayout","isIncrementalDirection","currentCutoffCoordinate","getCutoffCoordinate","siblingCutoffCoordinate","sortedSiblings","nextComponent","saveLastFocusedChildKey","lastFocusedChildKey","functionName","debugString","rest","getNextFocusKey","targetFocusKey","targetComponent","trackChildren","children","preferredChildFocusKey","forgetLastFocusedChild","isParticipatingFocusableComponent","childKey","childrenClosestToOrigin","getChildClosestToOrigin","addFocusable","onBecameFocusedHandler","onBecameBlurredHandler","onUpdateFocus","onUpdateHasFocusedChild","autoRestoreFocus","blockNavigationOut","removeFocusable","componentToRemove","Reflect","deleteProperty","parentComponent","isFocused","getNodeLayoutByFocusKey","setCurrentFocusedKey","newFocusKey","isFocusableComponent","_oldComponent$onUpdat","_oldComponent$onBecam","oldComponent","_newComponent$onUpdat","_newComponent$onBecam","newComponent","updateParentsHasFocusedChild","parents","currentParentFocusKey","parentsToRemoveFlag","parentsToAddFlag","_parentComponent$onUp","onIntermediateNodeBecameBlurred","_parentComponent$onUp2","onIntermediateNodeBecameFocused","updateParentsLastFocusedChild","_this$focusableCompon","_this$focusableCompon2","_this$focusableCompon3","_this$focusableCompon4","lastFocusedKey","updateFocusable","isNativeMode","getFocusableComponents","getFocusableComponentsByParentFocusKey","KeyPlaysViewModel","isCurrentlyPlaying","currentlyPlayingClipIndex","items","parseNetworkResponse","cleanErrors","errorState","allItems","atIndex","SDK","getMaestroEventViewModel","delegate","playClip","response","teams","entities","team","athletes","athlete","homeTeam","homeAway","awayTeam","section","sections","keyPlay","playTeam","teamImageUrl","logoRef","playerImageUrl","headshot","thumbnailImageUrl","thumbnailType","thumbnail","homeScore","awayScore","homeTeamScore","scoringPlay","parseInt","awayTeamScore","keyPlayData","random","substring","description","homeTeamName","shortName","awayTeamName","clipID","title","sectionTitle","existingSection","reduce","acc","forKeyPlayAtIndex","handleKeyPlayLoadFailure","newFailedClips","failedClips","loadFailureStatus","clearLoadFailureStatus","mevm","userRequestedNewKeyPlaysData","MaestroEventViewModel","_isLoading","_error","setLoading","loading","setError","eventId","super","_eventId","deinit","updateKeyPlaysData","keyPlaysViewModel","setKeyPlays","startFocusManagement","didStartPlayingClip","lastPlayedClipIndex","currentClipPlaybackProgress","didStopPlayingClip","didFailToPlayClip","didUpdatePlaybackProgressOfClip","to","didShowPanel","isShowingPanel","didShowOverlay","didHideOverlay","currentEventDoesNotSupportKeyPlays","getCurrentEventID","getCurrentlyPlayingClipIndex","getLastPlayedClipIndex","getCurrentClipPlaybackProgress","getKeyPlaysCount","_title","_isLive","_isShowingPanel","MaestroViewModels","eventViewModel","panelManagerViewModel","PanelManagerViewModel","ReactRenderer","Map","viewModels","fromEventId","renderer","getRenderer","App","default","PanelManager","render","React","unmount","renderersMap","delete","has","el","getElementById","ReactDOM","unmountComponentAtNode","set","AUTHORIZED_CLIENTS","MaestroWebSDK","eventID","isAuthorizedClient","maestroEventViewModel","userDidStopWatchingEvent","authenticateUser","_","__","deauthenticateUser","instance","configure","configParams","siteID","setSiteID","jwt","setJwt","info","getSiteID","getJwt","setUserID","userID","getUserID","setViewModels","renderPanel","getInstance","MaestroPanelType","KEY_PLAYS","STATS","FANTASY","BETS","_panels","_currentPanel","_newlyFocusedPanel","getIndex","forPanelType","panels","findIndex","getPanelType","currentIndex","currentPanel","___CSS_LOADER_EXPORT___","noop","withFocusable","configForgetLastFocusedChild","configTrackChildren","configAutoRestoreFocus","configBlockNavigationOut","WrappedComponent","_WithFocusable","Component","prefix","realFocusKey","props","substr","focused","hasFocusedChild","state","setState","onBecameFocused","onBecameBlurred","getChildContext","componentDidMount","domNode","findDOMNode","componentDidUpdate","componentWillUnmount","filteredProps","omit","stealFocus","PropTypes","string","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","getShim","isRequired","ReactPropTypes","bigint","bool","number","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","locals","ButtonStyle","borderRadius","display","justifyContent","alignItems","cursor","border","BaseButton","_extends","iconRegistry","keyPlays","requestCount","play","bets","stats","fantasy","warning","iconImports","Skeleton","loadQueue","isProcessingQueue","processQueue","iconName","entry","then","dispatchEvent","CustomEvent","detail","catch","Icon","_iconRegistry$props$i","loaded","_isMounted","loadIcon","prevProps","_iconRegistry$this$pr","_eventHandler","_iconRegistry$iconNam","_customEvent$detail2","indexOf","handleLoad","_customEvent$detail","requestIconLoad","_iconRegistry$iconNam2","IconComponent","withRemoteControl","onBackPressed","onLeftPressed","remoteControlActive","active","handleKeyDown","cleanup","PanelNavButton","buttonRef","className","data-focused","ref","deliverFocus","eventVm","dataset","PanelNavigationButton","itemFocused","buttonElement","fn","handleBecameFocused","onEnter","handleBecameBlurred","handleLeftPressed","setButtonRef","PanelNavigation","Image","alt","ScoreCard","KeyPlayCardView","failedClip","crossOrigin","vm","failedClipListener","setRef","isPlaying","playbackProgress","isScoring","renderImage","WithRemoteControlKeyPlayCard","KeyPlayCard","ScrollableGradient","scrolled","ActionButton","UnpopulatedEvent","UnsupportedEvent","viewBox","fill","xmlns","opacity","transform","SimpleTabLoadFailure","borderColor","TabLoadFailure","KeyPlayErrorStateView","onRetry","KeyPlays","_this$vm$currentClipP","_this$vm$currentlyPla","async","playKeyPlay","container","containerRect","getBoundingClientRect","nodeRect","indexes","refsMap","hasOutside","rect","bottom","rawSections","playbackIndex","playbackProgressUnsub","playbackIndexUnsub","itemsUnsub","sectionIndex","absoluteIndex","vmItem","handlePlayClip","handleItemFocus","KeyPlaysWithErrorState","errorStateUnsub","handleRetry","PANELS_MAP","KeyPlaysView","activePanel","unsubscribe","currentPanelObservable","PANEL_ITEMS","DARK_THEME","_id","button","textCapitalization","colors","accentPrimary","accentSecondary","accentTertiary","surface1","surface2","surface3","surface4","surface5","surface6","highlightPrimary","highlightSecondary","highlightTertiary","alertConfirmation","alertWarning","alertError","text100","text200","text300","text400","text500","creator","owner","typography","headline","documentElement","setProperty","removeProperty"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,cAC1B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,gBAAiB,CAAC,QAAS,aAAcJ,GACtB,iBAAZC,QACdA,QAAuB,cAAID,EAAQG,QAAQ,SAAUA,QAAQ,cAE7DJ,EAAoB,cAAIC,EAAQD,EAAY,MAAGA,EAAe,UARhE,CASGO,MAAM,SAASC,EAAgCC,GAClD,O,YCTE,SAASC,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GAKAK,EAAI,EAAGC,EAAW,GACpCD,EAAIF,EAASI,OAAQF,IACzBH,EAAUC,EAASE,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBV,IAAYU,EAAgBV,IACpFI,EAASO,KAAKD,EAAgBV,GAAS,IAExCU,EAAgBV,GAAW,EAE5B,IAAID,KAAYG,EACZI,OAAOC,UAAUC,eAAeC,KAAKP,EAAaH,KACpDa,EAAQb,GAAYG,EAAYH,IAKlC,IAFGc,GAAqBA,EAAoBf,GAEtCM,EAASC,QACdD,EAASU,OAATV,GA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AAU,UACVC,SAAU,UACVC,SAAU,UACVC,SAAU,UACVC,SAAU,UAGVC,iBAAkB,UAClBC,mBAAoB,UACpBC,kBAAmB,UAGnBC,kBAAmB,UACnBC,aAAc,UACdC,WAAY,UAGZC,QAAS,UACTC,QAAS,UACTC,QAAS,UACTC,QAAS,UACTC,QAAS,WAEXC,QAAS,2BACTxxB,KAAM,YACNJ,KDwBS,UCvBTwB,KD6BM,OC5BNqwB,MAAO,2BACPC,WAAY,CACVtlB,KAjDgB,oBAkDhBulB,SAlDgB,sB,4BCJhB3tB,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEP,IAAI,IAASA,GAIX,IAAQyjB,OCRvB,MAAM0I,EAASJ,EAAWI,OACpBuB,EAAa3B,EAAW2B,WAE9B,MAAMnR,UAAYI,IAAM4D,UACtBY,oBACE9nB,OAAO+H,KAAK+qB,GAAQptB,QAASvB,IAC3B7C,SAASizB,gBAAgB3sB,MAAM4sB,YAC7B,SAASrwB,EACT2uB,EAAO3uB,MAIXnE,OAAO+H,KAAKssB,GAAY3uB,QAASvB,IAC/B7C,SAASizB,gBAAgB3sB,MAAM4sB,YAC7B,cAAcrwB,EACdkwB,EAAWlwB,MAKjB+jB,uBACEloB,OAAO+H,KAAK+qB,GAAQptB,QAASvB,IAC3B7C,SAASizB,gBAAgB3sB,MAAM6sB,eAAe,SAAStwB,KAGzDnE,OAAO+H,KAAKssB,GAAY3uB,QAASvB,IAC/B7C,SAASizB,gBAAgB3sB,MAAM6sB,eAAe,cAActwB,KAIhEkf,SACE,OAAOC,IAAA/hB,cAAA,OAAKosB,UAAU,eAAevuB,KAAKioB,MAAM5N,WAIrCyJ,QCrCAA","file":"maestro-web-sdk.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"MaestroWebSDK\", [\"react\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MaestroWebSDK\"] = factory(require(\"react\"), require(\"react-dom\"));\n\telse\n\t\troot[\"MaestroWebSDK\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__9__) {\nreturn "," \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + chunkId + \".maestro-web-sdk.umd.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = this[\"webpackJsonpMaestroWebSDK\"] = this[\"webpackJsonpMaestroWebSDK\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/**\n * Basic observable implementation for view models\n */\nexport class Observable<T> {\n private listeners: ((value: T) => void)[] = [];\n private _value: T;\n\n constructor(initialValue: T) {\n this._value = initialValue;\n }\n\n get value(): T {\n return this._value;\n }\n\n set value(newValue: T) {\n this._value = newValue;\n this.notify();\n }\n\n subscribe(listener: (value: T) => void): () => void {\n this.listeners.push(listener);\n\n // Return unsubscribe function\n return () => {\n this.listeners = this.listeners.filter((l) => l !== listener);\n };\n }\n\n private notify(): void {\n this.listeners.forEach((listener) => listener(this._value));\n }\n}\n","\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && typeof btoa !== 'undefined') {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n // tags it will allow on a page\n\n if (!options.singleton && typeof options.singleton !== 'boolean') {\n options.singleton = isOldIE();\n }\n\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n if (Object.prototype.toString.call(newList) !== '[object Array]') {\n return;\n }\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDom[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDom[_index].references === 0) {\n stylesInDom[_index].updater();\n\n stylesInDom.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","import withFocusable, { WithFocusableProps } from './withFocusable';\nimport SpatialNavigation, { InitOptions, KeyMap } from './spatialNavigation';\n\nconst { destroy, pause, resume, setFocus, init, setKeyMap } = SpatialNavigation;\n\nexport { withFocusable, init, setKeyMap, destroy, pause, resume, setFocus };\nexport type { InitOptions, KeyMap, WithFocusableProps };\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","const ELEMENT_NODE = 1;\n\nconst getRect = (node: any) => {\n let { offsetParent } = node;\n const height = node.offsetHeight;\n const width = node.offsetWidth;\n let left = node.offsetLeft;\n let top = node.offsetTop;\n\n while (offsetParent && offsetParent.nodeType === ELEMENT_NODE) {\n left += offsetParent.offsetLeft - offsetParent.scrollLeft;\n top += offsetParent.offsetTop - offsetParent.scrollTop;\n ({ offsetParent } = offsetParent);\n }\n\n return {\n height,\n left,\n top,\n width,\n };\n};\n\nconst measureLayout = (\n node: any,\n callback: (\n x: number,\n y: number,\n width: number,\n height: number,\n left: number,\n top: number\n ) => void\n) => {\n const relativeNode = node && node.parentNode;\n\n if (relativeNode) {\n const relativeRect = getRect(relativeNode);\n const { height, left, top, width } = getRect(node);\n const x = left - relativeRect.left;\n const y = top - relativeRect.top;\n\n callback(x, y, width, height, left, top);\n }\n};\n\nexport default measureLayout;\n","// We'll make VisualDebugger no-op for any environments lacking a DOM (e.g. SSR and React Native non-web platforms).\nconst hasDOM = typeof window !== 'undefined' && window.document;\n\nconst WIDTH = hasDOM ? window.innerWidth : 0;\nconst HEIGHT = hasDOM ? window.innerHeight : 0;\n\ninterface Layout {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nclass VisualDebugger {\n private debugCtx: CanvasRenderingContext2D | null;\n private layoutsCtx: CanvasRenderingContext2D | null;\n\n constructor() {\n if (hasDOM) {\n this.debugCtx = VisualDebugger.createCanvas('sn-debug', 1010);\n this.layoutsCtx = VisualDebugger.createCanvas('sn-layouts', 1000);\n } else {\n this.debugCtx = null;\n this.layoutsCtx = null;\n }\n }\n\n static createCanvas(id: string, zIndex: number): CanvasRenderingContext2D {\n const canvas = (document.querySelector(`#${id}`) ||\n document.createElement('canvas')) as HTMLCanvasElement;\n\n canvas.setAttribute('id', id);\n\n const ctx = canvas.getContext('2d');\n if (!ctx) {\n throw new Error('Could not get 2d context from canvas');\n }\n\n canvas.style.cssText = `position: fixed; top: 0; left: 0; z-index: ${zIndex}`;\n\n document.body.appendChild(canvas);\n\n canvas.width = WIDTH;\n canvas.height = HEIGHT;\n\n return ctx;\n }\n\n clear(): void {\n if (!hasDOM || !this.debugCtx) {\n return;\n }\n this.debugCtx.clearRect(0, 0, WIDTH, HEIGHT);\n }\n\n clearLayouts(): void {\n if (!hasDOM || !this.layoutsCtx) {\n return;\n }\n this.layoutsCtx.clearRect(0, 0, WIDTH, HEIGHT);\n }\n\n drawLayout(layout: Layout, focusKey: string, parentFocusKey: string): void {\n if (!hasDOM || !this.layoutsCtx) {\n return;\n }\n this.layoutsCtx.strokeStyle = 'green';\n this.layoutsCtx.strokeRect(\n layout.left,\n layout.top,\n layout.width,\n layout.height\n );\n this.layoutsCtx.font = '8px monospace';\n this.layoutsCtx.fillStyle = 'red';\n this.layoutsCtx.fillText(focusKey, layout.left, layout.top + 10);\n this.layoutsCtx.fillText(parentFocusKey, layout.left, layout.top + 25);\n this.layoutsCtx.fillText(\n `left: ${layout.left}`,\n layout.left,\n layout.top + 40\n );\n this.layoutsCtx.fillText(\n `top: ${layout.top}`,\n layout.left,\n layout.top + 55\n );\n }\n\n drawPoint(\n x: number,\n y: number,\n color: string = 'blue',\n size: number = 10\n ): void {\n if (!hasDOM || !this.debugCtx) {\n return;\n }\n this.debugCtx.strokeStyle = color;\n this.debugCtx.lineWidth = 3;\n this.debugCtx.strokeRect(x - size / 2, y - size / 2, size, size);\n }\n}\n\nexport default VisualDebugger;\n","import measureLayout from './measureLayout';\nimport { Direction, Layout } from './utils';\nimport { DIRECTION_DOWN, KEY_ENTER } from './utils';\nimport { DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP } from './utils';\nimport VisualDebugger from './visualDebugger';\n\nexport const ROOT_FOCUS_KEY = 'SN:ROOT';\n\nconst ADJACENT_SLICE_THRESHOLD = 0.2;\n\n/**\n * Adjacent slice is 5 times more important than diagonal\n */\nconst ADJACENT_SLICE_WEIGHT = 5;\nconst DIAGONAL_SLICE_WEIGHT = 1;\n\n/**\n * Main coordinate distance is 5 times more important\n */\nconst MAIN_COORDINATE_WEIGHT = 5;\n\nexport type KeyType = Direction | typeof KEY_ENTER;\n\nexport interface KeyMap {\n [key: string]: number;\n}\n\nconst DEFAULT_KEY_MAP: KeyMap = {\n [DIRECTION_LEFT]: 37,\n [DIRECTION_UP]: 38,\n [DIRECTION_RIGHT]: 39,\n [DIRECTION_DOWN]: 40,\n [KEY_ENTER]: 13,\n};\n\nconst DEBUG_FN_COLORS = ['#0FF', '#FF0', '#F0F'];\n\nconst THROTTLE_OPTIONS = {\n leading: true,\n trailing: false,\n};\n\ninterface FocusableComponent {\n focusKey: string;\n node: HTMLElement;\n parentFocusKey: string | null;\n onEnterPressHandler?: (details: {\n pressedKeys: Record<string, number>;\n }) => void;\n onEnterReleaseHandler?: () => void;\n onArrowPressHandler?: (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocusedHandler?: (layout: Layout, details: any) => void;\n onBecameBlurredHandler?: (layout: Layout, details: any) => void;\n onUpdateFocus?: (isFocused: boolean) => void;\n onUpdateHasFocusedChild?: (hasFocusedChild: boolean) => void;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n lastFocusedChildKey: string | null;\n preferredChildFocusKey?: string;\n focusable: boolean;\n blockNavigationOut?: boolean;\n autoRestoreFocus?: boolean;\n layout: Layout;\n layoutUpdated: boolean;\n}\n\ninterface Corner {\n x: number;\n y: number;\n}\n\ninterface RefCorners {\n a: Corner;\n b: Corner;\n}\n\nexport interface InitOptions {\n debug?: boolean;\n visualDebug?: boolean;\n nativeMode?: boolean;\n throttle?: number;\n throttleKeypresses?: boolean;\n}\n\ninterface AddFocusableOptions {\n focusKey: string;\n node: HTMLElement;\n parentFocusKey: string | null;\n onEnterPressHandler?: (details: {\n pressedKeys: Record<string, number>;\n }) => void;\n onEnterReleaseHandler?: () => void;\n onArrowPressHandler?: (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocusedHandler?: (layout: Layout, details: any) => void;\n onBecameBlurredHandler?: (layout: Layout, details: any) => void;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n onUpdateFocus?: (isFocused: boolean) => void;\n onUpdateHasFocusedChild?: (hasFocusedChild: boolean) => void;\n preferredChildFocusKey?: string;\n autoRestoreFocus?: boolean;\n focusable?: boolean;\n blockNavigationOut?: boolean;\n}\n\ninterface UpdateFocusableOptions {\n node?: HTMLElement;\n preferredChildFocusKey?: string;\n focusable?: boolean;\n blockNavigationOut?: boolean;\n}\n\nexport const getChildClosestToOrigin = (\n children: FocusableComponent[]\n): FocusableComponent => {\n const childrenClosestToOrigin = sortBy(\n children,\n ({ layout }) => Math.abs(layout.left) + Math.abs(layout.top)\n );\n\n return first(childrenClosestToOrigin) as FocusableComponent;\n};\n\nconst throttle = <T extends (...args: any[]) => any>(\n func: T,\n wait: number,\n options: { leading?: boolean; trailing?: boolean } = {}\n): T => {\n let timeout: number | null = null;\n let previous = 0;\n const { leading = true, trailing = true } = options;\n\n return function (this: any, ...args: Parameters<T>) {\n const now = Date.now();\n if (!previous && !leading) previous = now;\n const remaining = wait - (now - previous);\n\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n func.apply(this, args);\n } else if (!timeout && trailing) {\n timeout = window.setTimeout(() => {\n previous = leading ? Date.now() : 0;\n timeout = null;\n func.apply(this, args);\n }, remaining);\n }\n } as T;\n};\n\nconst sortBy = <T>(array: T[], iteratee: (item: T) => number | string): T[] =>\n [...array].sort((a, b) => {\n const aValue = iteratee(a);\n const bValue = iteratee(b);\n return aValue < bValue ? -1 : aValue > bValue ? 1 : 0;\n });\n\nconst first = <T>(array: T[]): T | undefined => array[0];\n\nconst findKey = <T extends Record<string, any>>(\n object: T,\n predicate: (value: any) => boolean\n): string | undefined =>\n Object.keys(object).find((key) => predicate(object[key]));\n\nconst difference = <T>(array: T[], values: T[]): T[] =>\n array.filter((x) => !values.includes(x));\n\nconst forEach = <T>(\n array: T[],\n iteratee: (item: T, index: number) => void\n): void => array.forEach(iteratee);\n\n/* eslint-disable no-nested-ternary */\nclass SpatialNavigation {\n private focusableComponents: Record<string, FocusableComponent>;\n private focusKey: string | null;\n private parentsHavingFocusedChild: string[];\n private enabled: boolean;\n private nativeMode: boolean;\n private throttle: number;\n private throttleKeypresses: boolean;\n private pressedKeys: Record<string, number>;\n private paused: boolean;\n private keyDownEventListener: ((event: KeyboardEvent) => void) | null;\n private keyUpEventListener: ((event: KeyboardEvent) => void) | null;\n private keyMap: KeyMap;\n private debug: boolean;\n private visualDebugger: VisualDebugger | null;\n private logIndex: number;\n\n /**\n * Used to determine the coordinate that will be used to filter items that are over the \"edge\"\n */\n static getCutoffCoordinate(\n isVertical: boolean,\n isIncremental: boolean,\n isSibling: boolean,\n layout: Layout\n ): number {\n const itemX = layout.left;\n const itemY = layout.top;\n const itemWidth = layout.width;\n const itemHeight = layout.height;\n\n const coordinate = isVertical ? itemY : itemX;\n const itemSize = isVertical ? itemHeight : itemWidth;\n\n return isIncremental\n ? isSibling\n ? coordinate\n : coordinate + itemSize\n : isSibling\n ? coordinate + itemSize\n : coordinate;\n }\n\n /**\n * Returns two corners (a and b) coordinates that are used as a reference points\n * Where \"a\" is always leftmost and topmost corner, and \"b\" is rightmost bottommost corner\n */\n static getRefCorners(\n direction: Direction,\n isSibling: boolean,\n layout: Layout\n ): RefCorners {\n const itemX = layout.left;\n const itemY = layout.top;\n const itemWidth = layout.width;\n const itemHeight = layout.height;\n\n const result: RefCorners = {\n a: {\n x: 0,\n y: 0,\n },\n b: {\n x: 0,\n y: 0,\n },\n };\n\n switch (direction) {\n case DIRECTION_UP: {\n const y = isSibling ? itemY + itemHeight : itemY;\n\n result.a = {\n x: itemX,\n y,\n };\n\n result.b = {\n x: itemX + itemWidth,\n y,\n };\n\n break;\n }\n\n case DIRECTION_DOWN: {\n const y = isSibling ? itemY : itemY + itemHeight;\n\n result.a = {\n x: itemX,\n y,\n };\n\n result.b = {\n x: itemX + itemWidth,\n y,\n };\n\n break;\n }\n\n case DIRECTION_LEFT: {\n const x = isSibling ? itemX + itemWidth : itemX;\n\n result.a = {\n x,\n y: itemY,\n };\n\n result.b = {\n x,\n y: itemY + itemHeight,\n };\n\n break;\n }\n\n case DIRECTION_RIGHT: {\n const x = isSibling ? itemX : itemX + itemWidth;\n\n result.a = {\n x,\n y: itemY,\n };\n\n result.b = {\n x,\n y: itemY + itemHeight,\n };\n\n break;\n }\n\n default:\n break;\n }\n\n return result;\n }\n\n /**\n * Calculates if the sibling node is intersecting enough with the ref node by the secondary coordinate\n */\n static isAdjacentSlice(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): boolean {\n const { a: refA, b: refB } = refCorners;\n const { a: siblingA, b: siblingB } = siblingCorners;\n const coordinate = isVerticalDirection ? 'x' : 'y';\n\n const refCoordinateA = refA[coordinate];\n const refCoordinateB = refB[coordinate];\n const siblingCoordinateA = siblingA[coordinate];\n const siblingCoordinateB = siblingB[coordinate];\n\n const thresholdDistance =\n (refCoordinateB - refCoordinateA) * ADJACENT_SLICE_THRESHOLD;\n\n const intersectionLength = Math.max(\n 0,\n Math.min(refCoordinateB, siblingCoordinateB) -\n Math.max(refCoordinateA, siblingCoordinateA)\n );\n\n return intersectionLength >= thresholdDistance;\n }\n\n static getPrimaryAxisDistance(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): number {\n const { a: refA } = refCorners;\n const { a: siblingA } = siblingCorners;\n const coordinate = isVerticalDirection ? 'y' : 'x';\n\n return Math.abs(siblingA[coordinate] - refA[coordinate]);\n }\n\n static getSecondaryAxisDistance(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): number {\n const { a: refA, b: refB } = refCorners;\n const { a: siblingA, b: siblingB } = siblingCorners;\n const coordinate = isVerticalDirection ? 'x' : 'y';\n\n const refCoordinateA = refA[coordinate];\n const refCoordinateB = refB[coordinate];\n const siblingCoordinateA = siblingA[coordinate];\n const siblingCoordinateB = siblingB[coordinate];\n\n const distancesToCompare = [];\n\n distancesToCompare.push(Math.abs(siblingCoordinateA - refCoordinateA));\n distancesToCompare.push(Math.abs(siblingCoordinateA - refCoordinateB));\n distancesToCompare.push(Math.abs(siblingCoordinateB - refCoordinateA));\n distancesToCompare.push(Math.abs(siblingCoordinateB - refCoordinateB));\n\n return Math.min(...distancesToCompare);\n }\n\n /**\n * Inspired by: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS_for_TV/TV_remote_control_navigation#Algorithm_design\n * Ref Corners are the 2 corners of the current component in the direction of navigation\n * They used as a base to measure adjacent slices\n */\n sortSiblingsByPriority(\n siblings: FocusableComponent[],\n currentLayout: Layout,\n direction: Direction,\n _focusKey: string\n ): FocusableComponent[] {\n const isVerticalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_UP;\n\n const refCorners = SpatialNavigation.getRefCorners(\n direction,\n false,\n currentLayout\n );\n\n return [...siblings].sort(\n (a: FocusableComponent, b: FocusableComponent) => {\n const aCorners = SpatialNavigation.getRefCorners(\n direction,\n true,\n a.layout\n );\n const bCorners = SpatialNavigation.getRefCorners(\n direction,\n true,\n b.layout\n );\n\n const aIsAdjacentSlice = SpatialNavigation.isAdjacentSlice(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bIsAdjacentSlice = SpatialNavigation.isAdjacentSlice(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aPrimaryAxisFunction = aIsAdjacentSlice\n ? SpatialNavigation.getPrimaryAxisDistance\n : SpatialNavigation.getSecondaryAxisDistance;\n const bPrimaryAxisFunction = bIsAdjacentSlice\n ? SpatialNavigation.getPrimaryAxisDistance\n : SpatialNavigation.getSecondaryAxisDistance;\n\n const aSecondaryAxisFunction = aIsAdjacentSlice\n ? SpatialNavigation.getSecondaryAxisDistance\n : SpatialNavigation.getPrimaryAxisDistance;\n const bSecondaryAxisFunction = bIsAdjacentSlice\n ? SpatialNavigation.getSecondaryAxisDistance\n : SpatialNavigation.getPrimaryAxisDistance;\n\n const aPrimaryAxisDistance = aPrimaryAxisFunction(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bPrimaryAxisDistance = bPrimaryAxisFunction(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aSecondaryAxisDistance = aSecondaryAxisFunction(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bSecondaryAxisDistance = bSecondaryAxisFunction(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aTotalDistancePoints =\n aPrimaryAxisDistance * MAIN_COORDINATE_WEIGHT +\n aSecondaryAxisDistance;\n const bTotalDistancePoints =\n bPrimaryAxisDistance * MAIN_COORDINATE_WEIGHT +\n bSecondaryAxisDistance;\n\n const aPriority =\n (aTotalDistancePoints + 1) /\n (aIsAdjacentSlice ? ADJACENT_SLICE_WEIGHT : DIAGONAL_SLICE_WEIGHT);\n const bPriority =\n (bTotalDistancePoints + 1) /\n (bIsAdjacentSlice ? ADJACENT_SLICE_WEIGHT : DIAGONAL_SLICE_WEIGHT);\n\n return aPriority - bPriority;\n }\n );\n }\n\n constructor() {\n this.focusableComponents = {};\n this.focusKey = null;\n this.parentsHavingFocusedChild = [];\n this.enabled = false;\n this.nativeMode = false;\n this.throttle = 0;\n this.throttleKeypresses = false;\n this.pressedKeys = {};\n this.paused = false;\n this.keyDownEventListener = null;\n this.keyUpEventListener = null;\n this.keyMap = DEFAULT_KEY_MAP;\n this.debug = false;\n this.visualDebugger = null;\n this.logIndex = 0;\n\n this.onKeyEvent = this.onKeyEvent.bind(this);\n this.pause = this.pause.bind(this);\n this.resume = this.resume.bind(this);\n this.setFocus = this.setFocus.bind(this);\n this.updateAllLayouts = this.updateAllLayouts.bind(this);\n this.navigateByDirection = this.navigateByDirection.bind(this);\n this.init = this.init.bind(this);\n this.setKeyMap = this.setKeyMap.bind(this);\n }\n\n init({\n debug = false,\n visualDebug = false,\n nativeMode = false,\n throttle = 0,\n throttleKeypresses = false,\n }: InitOptions = {}) {\n if (!this.enabled) {\n this.enabled = true;\n this.nativeMode = nativeMode;\n this.throttleKeypresses = throttleKeypresses;\n this.debug = debug;\n\n if (!this.nativeMode) {\n if (Number.isInteger(throttle) && throttle > 0) {\n this.throttle = throttle;\n }\n this.bindEventHandlers();\n if (visualDebug) {\n this.visualDebugger = new VisualDebugger();\n this.startDrawLayouts();\n }\n }\n }\n }\n\n startDrawLayouts(): void {\n const draw = () => {\n requestAnimationFrame(() => {\n this.visualDebugger?.clearLayouts();\n Object.entries(this.focusableComponents).forEach(\n ([focusKey, component]) => {\n this.visualDebugger?.drawLayout(\n component.layout,\n focusKey,\n component.parentFocusKey!\n );\n }\n );\n draw();\n });\n };\n\n draw();\n }\n\n destroy(): void {\n if (this.enabled) {\n this.enabled = false;\n this.nativeMode = false;\n this.throttle = 0;\n this.throttleKeypresses = false;\n this.focusKey = null;\n this.parentsHavingFocusedChild = [];\n this.focusableComponents = {};\n this.paused = false;\n this.keyMap = DEFAULT_KEY_MAP;\n\n this.unbindEventHandlers();\n }\n }\n\n getEventType(keyCode: number): KeyType | undefined {\n return findKey(this.getKeyMap(), (code) => keyCode === code) as\n | KeyType\n | undefined;\n }\n\n bindEventHandlers(): void {\n if (typeof window !== 'undefined' && window.addEventListener) {\n const keyDownHandler = (event: KeyboardEvent) => {\n if (this.paused === true) {\n return;\n }\n\n if (this.debug) {\n this.logIndex += 1;\n }\n\n const eventType = this.getEventType(event.keyCode);\n\n if (!eventType) {\n return;\n }\n\n this.pressedKeys[eventType] = this.pressedKeys[eventType]\n ? this.pressedKeys[eventType] + 1\n : 1;\n\n event.preventDefault();\n event.stopPropagation();\n\n const details = {\n pressedKeys: this.pressedKeys,\n };\n\n if (eventType === KEY_ENTER && this.focusKey) {\n this.onEnterPress(details);\n return;\n }\n\n const preventDefaultNavigation =\n this.onArrowPress(eventType as Direction, details) === false;\n\n if (preventDefaultNavigation) {\n this.log('keyDownEventListener', 'default navigation prevented');\n this.visualDebugger?.clear();\n } else {\n this.onKeyEvent(event);\n }\n };\n\n this.keyDownEventListener = this.throttle\n ? throttle(keyDownHandler, this.throttle, THROTTLE_OPTIONS)\n : keyDownHandler;\n\n this.keyUpEventListener = (event: KeyboardEvent) => {\n const eventType = this.getEventType(event.keyCode);\n\n if (eventType) {\n delete this.pressedKeys[eventType];\n }\n\n if (this.throttle && !this.throttleKeypresses) {\n // @ts-ignore\n this.keyDownEventListener?.cancel?.();\n }\n\n if (eventType === KEY_ENTER && this.focusKey) {\n this.onEnterRelease();\n }\n };\n\n window.addEventListener('keyup', this.keyUpEventListener);\n window.addEventListener('keydown', this.keyDownEventListener);\n }\n }\n\n unbindEventHandlers(): void {\n if (typeof window !== 'undefined' && window.removeEventListener) {\n window.removeEventListener('keydown', this.keyDownEventListener!);\n this.keyDownEventListener = null;\n\n if (this.throttle) {\n window.removeEventListener('keyup', this.keyUpEventListener!);\n this.keyUpEventListener = null;\n }\n }\n }\n\n onEnterPress(details: { pressedKeys: Record<string, number> }): void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onEnterPress', 'noComponent');\n return;\n }\n\n if (!component.focusable) {\n this.log('onEnterPress', 'componentNotFocusable');\n return;\n }\n\n component.onEnterPressHandler?.(details);\n }\n\n onEnterRelease(): void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onEnterRelease', 'noComponent');\n return;\n }\n\n if (!component.focusable) {\n this.log('onEnterRelease', 'componentNotFocusable');\n return;\n }\n\n component.onEnterReleaseHandler?.();\n }\n\n onArrowPress(\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ): boolean | void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onArrowPress', 'noComponent');\n return undefined;\n }\n\n return component.onArrowPressHandler?.(direction, details);\n }\n\n navigateByDirection(\n direction: Direction,\n details: Record<string, any> = {}\n ): void {\n if (this.paused === true) {\n return;\n }\n\n const validDirections = [\n DIRECTION_DOWN,\n DIRECTION_UP,\n DIRECTION_LEFT,\n DIRECTION_RIGHT,\n ];\n\n if (validDirections.includes(direction)) {\n this.log('navigateByDirection', 'direction', direction);\n this.smartNavigate(direction, null, details);\n } else {\n this.log(\n 'navigateByDirection',\n `Invalid direction. You passed: \\`${direction}\\`, but you can use only these: `,\n validDirections\n );\n }\n }\n\n onKeyEvent(event: KeyboardEvent): void {\n this.visualDebugger?.clear();\n\n const direction = findKey(\n this.getKeyMap(),\n (code: number) => event.keyCode === code\n );\n\n if (direction) {\n this.smartNavigate(direction as Direction, null, { event });\n }\n }\n\n smartNavigate(\n direction: Direction,\n fromParentFocusKey: string | null,\n details: Record<string, any>\n ): void {\n this.log('smartNavigate', 'direction', direction);\n this.log('smartNavigate', 'fromParentFocusKey', fromParentFocusKey);\n this.log('smartNavigate', 'this.focusKey', this.focusKey);\n\n if (!this.nativeMode && !fromParentFocusKey) {\n Object.values(this.focusableComponents).forEach((component) => {\n component.layoutUpdated = false;\n });\n }\n\n const currentComponent = this.focusableComponents[\n fromParentFocusKey || this.focusKey!\n ];\n\n this.log(\n 'smartNavigate',\n 'currentComponent',\n currentComponent ? currentComponent.focusKey : undefined,\n currentComponent ? currentComponent.node : undefined\n );\n\n if (currentComponent) {\n this.updateLayout(currentComponent.focusKey);\n const { parentFocusKey, focusKey, layout } = currentComponent;\n\n const isVerticalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_UP;\n const isIncrementalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_RIGHT;\n\n const currentCutoffCoordinate = SpatialNavigation.getCutoffCoordinate(\n isVerticalDirection,\n isIncrementalDirection,\n false,\n layout\n );\n\n /**\n * Get only the siblings with the coords on the way of our moving direction\n */\n const siblings = Object.values(this.focusableComponents).filter(\n (component) => {\n if (\n component.parentFocusKey === parentFocusKey &&\n component.focusable\n ) {\n this.updateLayout(component.focusKey);\n const siblingCutoffCoordinate = SpatialNavigation.getCutoffCoordinate(\n isVerticalDirection,\n isIncrementalDirection,\n true,\n component.layout\n );\n\n return isIncrementalDirection\n ? siblingCutoffCoordinate >= currentCutoffCoordinate\n : siblingCutoffCoordinate <= currentCutoffCoordinate;\n }\n\n return false;\n }\n ) as FocusableComponent[];\n\n if (this.debug) {\n this.log('smartNavigate', 'siblings', siblings);\n }\n\n if (siblings.length > 0) {\n const sortedSiblings = this.sortSiblingsByPriority(\n siblings,\n layout,\n direction,\n focusKey\n );\n\n if (this.debug) {\n this.log('smartNavigate', 'sortedSiblings', sortedSiblings);\n }\n\n const nextComponent = sortedSiblings[0];\n\n if (nextComponent) {\n this.setFocus(nextComponent.focusKey, details);\n }\n } else {\n this.log('smartNavigate', 'noSiblings');\n\n if (parentFocusKey) {\n this.smartNavigate(direction, parentFocusKey, details);\n }\n }\n }\n }\n\n saveLastFocusedChildKey(\n component: FocusableComponent | undefined,\n focusKey: string\n ): void {\n if (component) {\n this.log(\n 'saveLastFocusedChildKey',\n `${component.focusKey} lastFocusedChildKey set`,\n focusKey\n );\n component.lastFocusedChildKey = focusKey;\n }\n }\n\n log(functionName: string, debugString: string, ...rest: any[]): void {\n if (this.debug) {\n console.log(\n `%c${functionName}%c${debugString}`,\n `background: ${\n DEBUG_FN_COLORS[this.logIndex % DEBUG_FN_COLORS.length]\n }; color: black; padding: 1px 5px;`,\n 'background: #333; color: #BADA55; padding: 1px 5px;',\n ...rest\n );\n }\n }\n\n getNextFocusKey(targetFocusKey: string): string {\n this.log('getNextFocusKey', 'targetFocusKey', targetFocusKey);\n\n const targetComponent = this.focusableComponents[targetFocusKey];\n\n if (!targetComponent) {\n return targetFocusKey;\n }\n\n const { trackChildren } = targetComponent;\n\n if (!trackChildren) {\n return targetFocusKey;\n }\n\n const children = Object.values(this.focusableComponents).filter(\n (component) =>\n component.parentFocusKey === targetFocusKey && component.focusable\n ) as FocusableComponent[];\n\n if (children.length === 0) {\n return targetFocusKey;\n }\n\n const { lastFocusedChildKey, preferredChildFocusKey } = targetComponent;\n\n /**\n * First of all trying to focus last focused child\n */\n if (\n lastFocusedChildKey &&\n !targetComponent.forgetLastFocusedChild &&\n this.isParticipatingFocusableComponent(lastFocusedChildKey)\n ) {\n this.log(\n 'getNextFocusKey',\n 'lastFocusedChildKey will be focused',\n lastFocusedChildKey\n );\n\n return this.getNextFocusKey(lastFocusedChildKey);\n }\n\n /**\n * If there is no lastFocusedChild, trying to focus the preferred focused key\n */\n if (\n preferredChildFocusKey &&\n this.isParticipatingFocusableComponent(preferredChildFocusKey)\n ) {\n this.log(\n 'getNextFocusKey',\n 'preferredChildFocusKey will be focused',\n preferredChildFocusKey\n );\n\n return this.getNextFocusKey(preferredChildFocusKey);\n }\n\n /**\n * Otherwise, trying to focus something by coordinates\n */\n children.forEach((component) => this.updateLayout(component.focusKey));\n const { focusKey: childKey } = getChildClosestToOrigin(children);\n\n this.log('getNextFocusKey', 'childKey will be focused', childKey);\n\n return this.getNextFocusKey(childKey);\n }\n\n addFocusable({\n focusKey,\n node,\n parentFocusKey,\n onEnterPressHandler,\n onEnterReleaseHandler,\n onArrowPressHandler,\n onBecameFocusedHandler,\n onBecameBlurredHandler,\n forgetLastFocusedChild,\n trackChildren,\n onUpdateFocus,\n onUpdateHasFocusedChild,\n preferredChildFocusKey,\n autoRestoreFocus,\n focusable = true,\n blockNavigationOut,\n }: AddFocusableOptions): void {\n this.focusableComponents[focusKey] = {\n focusKey,\n node,\n parentFocusKey,\n onEnterPressHandler,\n onEnterReleaseHandler,\n onArrowPressHandler,\n onBecameFocusedHandler,\n onBecameBlurredHandler,\n onUpdateFocus,\n onUpdateHasFocusedChild,\n forgetLastFocusedChild,\n trackChildren,\n lastFocusedChildKey: null,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut,\n autoRestoreFocus,\n layout: {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n node,\n },\n layoutUpdated: false,\n };\n\n if (this.nativeMode) {\n return;\n }\n\n this.updateLayout(focusKey);\n\n /**\n * If for some reason this component was already focused before it was added, call the update\n */\n if (focusKey === this.focusKey) {\n this.setFocus(focusKey);\n }\n }\n\n removeFocusable({ focusKey }: { focusKey: string }): void {\n const componentToRemove = this.focusableComponents[focusKey];\n\n if (componentToRemove) {\n const { parentFocusKey } = componentToRemove;\n\n Reflect.deleteProperty(this.focusableComponents, focusKey);\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n const isFocused = focusKey === this.focusKey;\n\n /**\n * If the component was stored as lastFocusedChild, clear lastFocusedChildKey from parent\n */\n parentComponent &&\n parentComponent.lastFocusedChildKey === focusKey &&\n (parentComponent.lastFocusedChildKey = null);\n\n if (this.nativeMode) {\n return;\n }\n\n /**\n * If the component was also focused at this time, focus another one\n */\n if (isFocused && parentComponent && parentComponent.autoRestoreFocus) {\n this.setFocus(parentFocusKey!);\n }\n }\n }\n\n getNodeLayoutByFocusKey(focusKey: string): Layout | null {\n const component = this.focusableComponents[focusKey];\n\n if (component) {\n this.updateLayout(component.focusKey);\n\n return component.layout;\n }\n\n return null;\n }\n\n setCurrentFocusedKey(\n newFocusKey: string,\n details: Record<string, any>\n ): void {\n if (\n this.isFocusableComponent(this.focusKey!) &&\n newFocusKey !== this.focusKey\n ) {\n const oldComponent = this.focusableComponents[this.focusKey!];\n const parentComponent = this.focusableComponents[\n oldComponent.parentFocusKey!\n ];\n\n this.saveLastFocusedChildKey(parentComponent, this.focusKey!);\n\n oldComponent.onUpdateFocus?.(false);\n oldComponent.onBecameBlurredHandler?.(\n this.getNodeLayoutByFocusKey(this.focusKey!)!,\n details\n );\n }\n\n this.focusKey = newFocusKey;\n\n if (this.isFocusableComponent(this.focusKey)) {\n const newComponent = this.focusableComponents[this.focusKey];\n\n newComponent.onUpdateFocus?.(true);\n newComponent.onBecameFocusedHandler?.(\n this.getNodeLayoutByFocusKey(this.focusKey)!,\n details\n );\n }\n }\n\n updateParentsHasFocusedChild(\n focusKey: string,\n details: Record<string, any>\n ): void {\n const parents: string[] = [];\n\n let currentComponent = this.focusableComponents[focusKey];\n\n /**\n * Recursively iterate the tree up and find all the parents' focus keys\n */\n while (currentComponent) {\n const { parentFocusKey } = currentComponent;\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n\n if (parentComponent) {\n const { focusKey: currentParentFocusKey } = parentComponent;\n\n parents.push(currentParentFocusKey);\n }\n\n currentComponent = parentComponent;\n }\n\n const parentsToRemoveFlag = difference(\n this.parentsHavingFocusedChild,\n parents\n );\n const parentsToAddFlag = difference(\n parents,\n this.parentsHavingFocusedChild\n );\n\n forEach(parentsToRemoveFlag, (parentFocusKey) => {\n const parentComponent = this.focusableComponents[parentFocusKey];\n\n parentComponent &&\n parentComponent.trackChildren &&\n parentComponent.onUpdateHasFocusedChild?.(false);\n this.onIntermediateNodeBecameBlurred(parentFocusKey, details);\n });\n\n forEach(parentsToAddFlag, (parentFocusKey) => {\n const parentComponent = this.focusableComponents[parentFocusKey];\n\n parentComponent &&\n parentComponent.trackChildren &&\n parentComponent.onUpdateHasFocusedChild?.(true);\n this.onIntermediateNodeBecameFocused(parentFocusKey, details);\n });\n\n this.parentsHavingFocusedChild = parents;\n }\n\n updateParentsLastFocusedChild(focusKey: string): void {\n let currentComponent = this.focusableComponents[focusKey];\n\n /**\n * Recursively iterate the tree up and update all the parent's lastFocusedChild\n */\n while (currentComponent) {\n const { parentFocusKey } = currentComponent;\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n\n if (parentComponent) {\n this.saveLastFocusedChildKey(\n parentComponent,\n currentComponent.focusKey\n );\n }\n\n currentComponent = parentComponent;\n }\n }\n\n getKeyMap(): KeyMap {\n return this.keyMap;\n }\n\n setKeyMap(keyMap: KeyMap): void {\n this.keyMap = {\n ...this.getKeyMap(),\n ...keyMap,\n };\n }\n\n isFocusableComponent(focusKey: string): boolean {\n return !!this.focusableComponents[focusKey];\n }\n\n /**\n * Checks whether the focusableComponent is actually participating in spatial navigation (in other words, is a\n * 'focusable' focusableComponent). Seems less confusing than calling it isFocusableFocusableComponent()\n */\n isParticipatingFocusableComponent(focusKey: string): boolean {\n return (\n this.isFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].focusable\n );\n }\n\n onIntermediateNodeBecameFocused(\n focusKey: string,\n details: Record<string, any>\n ): void {\n this.isParticipatingFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].onBecameFocusedHandler?.(\n this.getNodeLayoutByFocusKey(focusKey)!,\n details\n );\n }\n\n onIntermediateNodeBecameBlurred(\n focusKey: string,\n details: Record<string, any>\n ): void {\n this.isParticipatingFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].onBecameBlurredHandler?.(\n this.getNodeLayoutByFocusKey(focusKey)!,\n details\n );\n }\n\n pause(): void {\n this.paused = true;\n }\n\n resume(): void {\n this.paused = false;\n }\n\n setFocus(targetFocusKey: string, details: Record<string, any> = {}): void {\n const lastFocusedKey = this.focusKey;\n const newFocusKey = this.getNextFocusKey(targetFocusKey);\n\n this.log('setFocus', 'newFocusKey', newFocusKey);\n\n this.setCurrentFocusedKey(newFocusKey, details);\n this.updateParentsHasFocusedChild(newFocusKey, details);\n this.updateParentsLastFocusedChild(lastFocusedKey!);\n }\n\n updateAllLayouts(): void {\n if (this.nativeMode) {\n return;\n }\n\n Object.entries(this.focusableComponents).forEach(([focusKey]) => {\n this.updateLayout(focusKey);\n });\n }\n\n updateLayout(focusKey: string): void {\n const component = this.focusableComponents[focusKey];\n\n if (!component || this.nativeMode || component.layoutUpdated) {\n return;\n }\n\n const { node } = component;\n\n measureLayout(\n node,\n (\n x: number,\n y: number,\n width: number,\n height: number,\n left: number,\n top: number\n ) => {\n component.layout = {\n x,\n y,\n width,\n height,\n left,\n top,\n node,\n };\n }\n );\n }\n\n updateFocusable(\n focusKey: string,\n {\n node,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut,\n }: UpdateFocusableOptions\n ): void {\n if (this.nativeMode) {\n return;\n }\n\n const component = this.focusableComponents[focusKey];\n\n if (component) {\n component.preferredChildFocusKey = preferredChildFocusKey;\n component.focusable = focusable ?? component.focusable;\n component.blockNavigationOut = blockNavigationOut;\n\n if (node) {\n component.node = node;\n }\n }\n }\n\n isNativeMode(): boolean {\n return this.nativeMode;\n }\n\n getFocusableComponents(): FocusableComponent[] {\n return Object.values(this.focusableComponents) as FocusableComponent[];\n }\n\n getFocusableComponentsByParentFocusKey(\n parentFocusKey: string\n ): FocusableComponent[] {\n return Object.values(this.focusableComponents).filter(\n (component) => component.parentFocusKey === parentFocusKey\n ) as FocusableComponent[];\n }\n}\n\n/**\n * Export singleton\n */\nexport default new SpatialNavigation();\n","export const DIRECTION_LEFT = 'left';\nexport const DIRECTION_RIGHT = 'right';\nexport const DIRECTION_UP = 'up';\nexport const DIRECTION_DOWN = 'down';\nexport const KEY_ENTER = 'enter';\n\nexport type Direction =\n | typeof DIRECTION_LEFT\n | typeof DIRECTION_RIGHT\n | typeof DIRECTION_UP\n | typeof DIRECTION_DOWN;\n\nexport interface Layout {\n x: number;\n y: number;\n width: number;\n height: number;\n left: number;\n top: number;\n node: HTMLElement;\n}\n","import SDK from '@/index';\nimport IMaestroKeyPlaysResponse from '../interfaces/IKeyPlaysResponse';\nimport IKeyPlay, {\n KeyPlayLoadFailureStatus,\n KeyPlaysErrorState,\n} from '../interfaces/IKeyPlays';\nimport { Observable } from '@/helpers/Observable';\n\ntype KeyPlayItem = {\n title: string;\n items: IKeyPlay[];\n};\n\nclass KeyPlaysViewModel {\n currentlyPlayingClipIndex = new Observable<number | null>(null);\n lastPlayedClipIndex = new Observable<number | null>(null);\n currentClipPlaybackProgress = new Observable<number | null>(null);\n errorState = new Observable<KeyPlaysErrorState | null>('unpopulatedEvent');\n failedClips = new Observable<{ [key: string]: KeyPlayLoadFailureStatus }>({});\n items = new Observable<KeyPlayItem[]>([]);\n\n isCurrentlyPlaying(index: number): boolean {\n return index === this.currentlyPlayingClipIndex.value;\n }\n\n async setKeyPlays(items: IMaestroKeyPlaysResponse | null): Promise<void> {\n if (items === null) {\n this.errorState.value = 'tabLoadFailure';\n return;\n }\n\n this.items.value = this.parseNetworkResponse(items);\n this.cleanErrors();\n }\n\n private cleanErrors() {\n if (this.errorState.value === 'tabLoadFailure') {\n this.errorState.value = null;\n }\n\n if (this.errorState.value === 'unpopulatedEvent' && this.allItems.length) {\n this.errorState.value = null;\n }\n\n if (!this.allItems.length) {\n this.errorState.value = 'unpopulatedEvent';\n }\n }\n\n async playKeyPlay(atIndex: number): Promise<void> {\n const mevm = SDK.getMaestroEventViewModel();\n mevm.delegate.playClip(atIndex);\n }\n\n parseNetworkResponse(response: IMaestroKeyPlaysResponse): KeyPlayItem[] {\n const teams = Object.values(response.entities.team);\n const athletes = Object.values(response.entities.athlete);\n const homeTeam = teams.find((team) => team.homeAway === 'home');\n const awayTeam = teams.find((team) => team.homeAway === 'away');\n\n if (!homeTeam || !awayTeam) {\n console.log('Could not find home or away team');\n return [];\n }\n\n const items: IKeyPlay[] = [];\n const result: KeyPlayItem[] = [];\n\n for (const section of response.sections) {\n for (const keyPlay of section.items) {\n const playTeam = keyPlay.team\n ? teams.find((team) => team.id === keyPlay.team)\n : undefined;\n const athlete = keyPlay.athlete\n ? athletes.find((a) => a.id === keyPlay.athlete)\n : undefined;\n\n const teamImageUrl = playTeam ? playTeam.logoRef : undefined;\n const playerImageUrl = athlete ? athlete.headshot : undefined;\n const thumbnailImageUrl =\n keyPlay.thumbnailType !== 'headshot' ? keyPlay.thumbnail : undefined;\n\n const homeScore = keyPlay.homeScore ? keyPlay.homeScore : '0';\n const awayScore = keyPlay.awayScore ? keyPlay.awayScore : '0';\n const homeTeamScore = keyPlay.scoringPlay\n ? parseInt(homeScore)\n : undefined;\n const awayTeamScore = keyPlay.scoringPlay\n ? parseInt(awayScore)\n : undefined;\n\n const randomId = Math.random().toString(36).substring(2, 15);\n const keyPlayData: IKeyPlay = {\n id: randomId,\n description: keyPlay.description ? keyPlay.description : '',\n homeTeamName: homeTeam ? homeTeam.shortName : '',\n awayTeamName: awayTeam ? awayTeam.shortName : '',\n homeTeamScore,\n awayTeamScore,\n clipID: keyPlay.clipID,\n teamImageUrl,\n playerImageUrl,\n thumbnailImageUrl,\n section: section.title,\n };\n\n items.push(keyPlayData);\n }\n\n // Only add the section if it has items\n if (items.length) {\n const sectionTitle = section.title;\n const existingSection = result.find(\n (item) => item.title === sectionTitle\n );\n\n if (existingSection) {\n existingSection.items.push(...items);\n } else {\n result.push({\n title: sectionTitle,\n items: [...items],\n });\n }\n\n // Reset items for the next section\n items.length = 0;\n }\n }\n\n return result;\n }\n\n get allItems() {\n return this.items.value.reduce((acc, section) => {\n return acc.concat(section.items);\n }, [] as IKeyPlay[]);\n }\n\n clipID(forKeyPlayAtIndex: number): string | undefined {\n const item = this.allItems[forKeyPlayAtIndex];\n if (!item) {\n return undefined;\n }\n return this.allItems[forKeyPlayAtIndex].clipID;\n }\n\n handleKeyPlayLoadFailure(forKeyPlayAtIndex: number): void {\n const clipID = this.clipID(forKeyPlayAtIndex);\n if (clipID) {\n const newFailedClips = this.failedClips.value;\n newFailedClips[clipID] = 'recentFailure';\n\n this.failedClips.value = newFailedClips;\n\n setTimeout(() => {\n if (this.loadFailureStatus(forKeyPlayAtIndex) === 'recentFailure') {\n const newFailedClips = this.failedClips.value;\n newFailedClips[clipID] = 'nonRecentFailure';\n this.failedClips.value = newFailedClips;\n }\n }, 5000);\n }\n }\n\n loadFailureStatus(forKeyPlayAtIndex: number): KeyPlayLoadFailureStatus {\n const clipID = this.clipID(forKeyPlayAtIndex);\n const newFailedClips = this.failedClips.value;\n if (!newFailedClips) {\n return 'noFailure';\n }\n return clipID ? this.failedClips.value[clipID] : 'noFailure';\n }\n\n clearLoadFailureStatus(forKeyPlayAtIndex: number): void {\n const clipID = this.clipID(forKeyPlayAtIndex);\n if (clipID && this.failedClips) {\n this.failedClips.value = {\n ...this.failedClips.value,\n [clipID]: 'noFailure',\n };\n }\n }\n\n async userRequestedNewKeyPlaysData() {\n const mevm = SDK.getMaestroEventViewModel();\n await mevm.delegate.userRequestedNewKeyPlaysData();\n }\n}\n\nexport default KeyPlaysViewModel;\n","import IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';\nimport IMaestroEvent from '../interfaces/IMaestroEvent';\nimport { Observable } from '../helpers/Observable';\nimport { ViewModel } from './ViewModel';\nimport KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';\nimport {\n setFocus,\n pause,\n resume,\n init,\n destroy,\n} from '@/external/spatial-navigation';\nimport IMaestroKeyPlaysResponse from '../modules/key-plays/interfaces/IKeyPlaysResponse';\n\nexport class MaestroEventViewModel extends ViewModel implements IMaestroEvent {\n private _eventId = new Observable('');\n private _title = new Observable('');\n private _isLive = new Observable<boolean>(false);\n private _isShowingPanel = new Observable(false);\n delegate: IMaestroEventDelegate;\n keyPlaysViewModel = new KeyPlaysViewModel();\n\n constructor(eventId: string = '', delegate: IMaestroEventDelegate) {\n super();\n this._eventId.value = eventId;\n this.delegate = delegate;\n init();\n }\n\n deinit() {\n destroy();\n }\n\n updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void> {\n return this.keyPlaysViewModel.setKeyPlays(data);\n }\n\n startFocusManagement(): Promise<void> {\n setFocus('');\n resume();\n setTimeout(() => {\n setFocus('PANEL_NAV_BUTTON_0');\n }, 0);\n\n return Promise.resolve();\n }\n\n didStartPlayingClip(index: number) {\n this.keyPlaysViewModel.lastPlayedClipIndex.value = index;\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = 0;\n this.keyPlaysViewModel.currentlyPlayingClipIndex.value = index;\n this.keyPlaysViewModel.clearLoadFailureStatus(index);\n }\n\n didStopPlayingClip(index: number): void {\n this.keyPlaysViewModel.lastPlayedClipIndex.value = index;\n this.keyPlaysViewModel.currentlyPlayingClipIndex.value = null;\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = null;\n }\n\n didFailToPlayClip(index: number): void {\n this.keyPlaysViewModel.handleKeyPlayLoadFailure(index);\n }\n\n didUpdatePlaybackProgressOfClip(index: number, to: number): void {\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = to;\n this.keyPlaysViewModel.clearLoadFailureStatus(index);\n }\n\n didShowPanel(): Promise<void> {\n this.isShowingPanel = true;\n // Analytics call ?\n return Promise.resolve();\n }\n\n async didHidePanel(): Promise<void> {\n this.isShowingPanel = false;\n pause();\n\n // Analytics call?\n }\n\n didShowOverlay(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n didHideOverlay(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n\n currentEventDoesNotSupportKeyPlays(): void {\n this.keyPlaysViewModel.errorState.value = 'unsupportedEvent';\n }\n\n getCurrentEventID() {\n return this.eventId.value;\n }\n\n getCurrentlyPlayingClipIndex() {\n return this.keyPlaysViewModel.currentlyPlayingClipIndex.value;\n }\n\n getLastPlayedClipIndex() {\n return this.keyPlaysViewModel.lastPlayedClipIndex.value;\n }\n\n getCurrentClipPlaybackProgress() {\n return this.keyPlaysViewModel.currentClipPlaybackProgress.value;\n }\n\n getKeyPlaysCount() {\n return this.keyPlaysViewModel.allItems.length;\n }\n\n get eventId(): Observable<string> {\n return this._eventId;\n }\n\n get title(): Observable<string> {\n return this._title;\n }\n\n get isLive(): Observable<boolean> {\n return this._isLive;\n }\n\n get isShowingPanel(): boolean {\n return this._isShowingPanel.value;\n }\n\n set isShowingPanel(value: boolean) {\n this._isShowingPanel.value = value;\n }\n}\n","import { Observable } from '../helpers/Observable';\n\n/**\n * Base view model that implements reactive properties\n */\nexport abstract class ViewModel {\n private _isLoading = new Observable<boolean>(false);\n private _error = new Observable<string | null>(null);\n\n get isLoading(): Observable<boolean> {\n return this._isLoading;\n }\n\n get error(): Observable<string | null> {\n return this._error;\n }\n\n protected setLoading(loading: boolean): void {\n this._isLoading.value = loading;\n }\n\n protected setError(error: string | null): void {\n this._error.value = error;\n }\n}\n","import { MaestroEventViewModel } from './MaestroEventViewModel';\nimport { PanelManagerViewModel } from './PanelManagerViewModel';\nimport IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';\nimport KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';\n\n/**\n * Aggregates all View Models\n */\nexport class MaestroViewModels {\n readonly eventViewModel: MaestroEventViewModel;\n readonly panelManagerViewModel: PanelManagerViewModel;\n readonly keyPlaysViewModel: KeyPlaysViewModel;\n\n constructor(eventViewModel: MaestroEventViewModel) {\n this.eventViewModel = eventViewModel;\n this.panelManagerViewModel = new PanelManagerViewModel();\n this.keyPlaysViewModel = new KeyPlaysViewModel();\n }\n\n /**\n * Creates view models from an event ID\n */\n static async fromEventId(\n eventId: string,\n delegate: IMaestroEventDelegate\n ): Promise<MaestroViewModels | null> {\n try {\n const eventViewModel = new MaestroEventViewModel(eventId, delegate);\n\n return new MaestroViewModels(eventViewModel);\n } catch (error) {\n console.error('Error creating view models from event ID', error);\n return null;\n }\n }\n}\n","import { type IRenderer } from './ports/renderer';\nimport { MaestroViewModels } from '@/view-models';\nimport type IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\ntype Renderer = {\n render: (children: React.ReactNode) => void;\n unmount: () => void;\n};\n\nclass ReactRenderer implements IRenderer {\n private renderersMap: Map<string, Renderer> = new Map();\n public viewModels: MaestroViewModels | null = null;\n\n /**\n * Sets the view models for the renderer\n * @param eventId The event ID to create view models for\n * @param delegate The event delegate to use\n */\n async setViewModels(\n eventId: string,\n delegate?: IMaestroEventDelegate\n ): Promise<MaestroViewModels | null> {\n try {\n if (!delegate) {\n console.error('No event delegate provided');\n return null;\n }\n this.viewModels = await MaestroViewModels.fromEventId(eventId, delegate);\n return this.viewModels;\n } catch (error) {\n console.error('Error creating view models from event ID', error);\n return null;\n }\n }\n\n /**\n * Renders the panel manager\n * @param id The element ID to render in\n * @param options Options for rendering including height and width\n */\n async renderPanel(id: string) {\n const renderer = await this.getRenderer(id);\n\n if (!this.viewModels) {\n throw new Error('Cannot render panel manager: No view models set');\n }\n\n const App = require('../components/core/App').default;\n const PanelManager = require('../components/core/PanelManager').default;\n\n renderer.render(\n <App>\n <PanelManager />\n </App>\n );\n\n return () => {\n renderer.unmount();\n this.renderersMap.delete(id);\n };\n }\n\n /**\n * @description Get the render function and renderer for the MaestroWebSDK. Useful to configure the renderer and fonts before rendering the component.\n * @param {string} id - The id of the element to render the component in.\n * @param {{ height: number; width: number }} options - The height and width of the component.\n */\n private async getRenderer(id: string): Promise<Renderer> {\n if (this.renderersMap.has(id)) {\n return this.renderersMap.get(id)!;\n }\n\n const el = document.getElementById(id);\n if (!el) {\n throw new Error(`Element with id ${id} not found`);\n }\n\n const renderer: Renderer = {\n render: (children) => {\n ReactDOM.render(children as any, el);\n },\n unmount: () => {\n ReactDOM.unmountComponentAtNode(el);\n },\n };\n\n this.renderersMap.set(id, renderer);\n return renderer;\n }\n}\n\nexport default ReactRenderer;\n","import ReactRenderer from './external/ReactRenderer';\nimport { IRenderer } from './external/ports/renderer';\nimport IMaestroEventDelegate from './interfaces/IMaestroEventDelegate';\nimport IMaestroManager, { SDKConfigParams } from './interfaces/IMaestroManager';\nimport IMaestroEvent from './interfaces/IMaestroEvent';\nimport { MaestroEventViewModel } from './view-models/MaestroEventViewModel';\nimport type IMaestroKeyPlaysResponse from './modules/key-plays/interfaces/IKeyPlaysResponse';\n\nexport {\n type IMaestroEventDelegate,\n type IMaestroEvent,\n type IMaestroKeyPlaysResponse,\n};\n\nconst AUTHORIZED_CLIENTS = ['664b9c57d59a7a431542d814'];\n\nexport type Environment = 'development' | 'staging' | 'production';\n\n/**\n * Main SDK class that serves as the entry point for the Maestro TV SDK\n * Follows a singleton pattern similar to the Swift implementation\n */\nclass MaestroWebSDK implements IMaestroManager {\n private static instance: MaestroWebSDK;\n private renderer: IRenderer;\n private siteID?: string;\n private jwt?: string;\n private userID?: string;\n private maestroEventViewModel: MaestroEventViewModel | null = null;\n\n private constructor(renderer: IRenderer) {\n this.renderer = renderer;\n }\n\n async userDidStartWatchingEvent(\n eventID: string,\n delegate: IMaestroEventDelegate\n ): Promise<IMaestroEvent> {\n if (!this.isAuthorizedClient) {\n throw new Error('Unauthorized use of SDK');\n }\n\n this.maestroEventViewModel = new MaestroEventViewModel(eventID, delegate);\n return this.maestroEventViewModel;\n }\n\n userDidStopWatchingEvent(eventId: string): void {\n console.log('stop watching event', eventId);\n if (this.maestroEventViewModel) {\n this.maestroEventViewModel.deinit();\n this.maestroEventViewModel = null;\n }\n }\n\n authenticateUser(_: string, __: string): Promise<void> {\n throw new Error('Method not implemented');\n }\n\n deauthenticateUser(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n\n /**\n * @description Returns the MaestroWebSDK instance\n * @returns {MaestroWebSDK} - The MaestroWebSDK instance\n */\n public static getInstance() {\n if (!MaestroWebSDK.instance) {\n const renderer = new ReactRenderer();\n MaestroWebSDK.instance = new MaestroWebSDK(renderer);\n }\n return MaestroWebSDK.instance;\n }\n\n configure(configParams: SDKConfigParams) {\n if (configParams.siteID) {\n this.setSiteID(configParams.siteID);\n }\n\n if (configParams.jwt) {\n this.setJwt(configParams.jwt);\n }\n\n console.info('MaestroWebSDK configured', configParams);\n }\n\n /**\n * Checks if this is an authorized client based on siteID\n */\n public get isAuthorizedClient(): boolean {\n const siteID = this.getSiteID();\n return Boolean(siteID && AUTHORIZED_CLIENTS.includes(siteID));\n }\n\n /**\n * Sets the site ID for the SDK\n * @param siteID The site ID to set\n */\n public setSiteID(siteID?: string) {\n this.siteID = siteID;\n }\n\n public getSiteID() {\n return this.siteID;\n }\n\n /**\n * Sets the JWT token for authentication\n * @param jwt The JWT token to set\n */\n public setJwt(jwt: string): void {\n this.jwt = jwt;\n }\n\n public getJwt(): string | undefined {\n return this.jwt;\n }\n\n /**\n * Sets the user ID for the SDK\n * @param userID The user ID to set\n */\n public setUserID(userID: string): void {\n this.userID = userID;\n }\n\n public getUserID(): string | undefined {\n return this.userID;\n }\n\n /**\n * Gets the event view model\n * @returns The current event view model\n */\n public getMaestroEventViewModel(): MaestroEventViewModel {\n if (!this.maestroEventViewModel) {\n throw new Error('No Maestro Event View Model set');\n }\n\n return this.maestroEventViewModel;\n }\n\n async renderPanel(id: string) {\n if (!this.renderer.viewModels) {\n if (!this.maestroEventViewModel) {\n throw new Error('No Maestro Event View Model set.');\n }\n let eventId = 'default-event-id';\n if (id) {\n eventId = id;\n }\n await this.renderer.setViewModels(\n eventId,\n this.maestroEventViewModel.delegate\n );\n }\n return this.renderer.renderPanel(id);\n }\n}\n\nconst SDK = MaestroWebSDK.getInstance();\nexport default SDK;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","export const MaestroPanelType = {\n KEY_PLAYS: 'keyPlays',\n STATS: 'stats',\n FANTASY: 'fantasy',\n BETS: 'bets',\n} as const;\n\nexport type MaestroPanelType =\n (typeof MaestroPanelType)[keyof typeof MaestroPanelType];\n\nexport interface PanelTypeInfo {\n id: MaestroPanelType;\n name: string;\n imageNamePrefix: string;\n usesSectionHeaders: boolean;\n iconName: string;\n}\n\n// The mapping information for each panel type\nexport const PANEL_TYPE_INFO: Record<MaestroPanelType, PanelTypeInfo> = {\n [MaestroPanelType.KEY_PLAYS]: {\n id: MaestroPanelType.KEY_PLAYS,\n name: 'Key Plays',\n imageNamePrefix: 'Key-Plays',\n usesSectionHeaders: true,\n iconName: 'keyPlays' as string,\n },\n [MaestroPanelType.STATS]: {\n id: MaestroPanelType.STATS,\n name: 'Stats',\n imageNamePrefix: 'Stats',\n usesSectionHeaders: false,\n iconName: 'stats' as string,\n },\n [MaestroPanelType.FANTASY]: {\n id: MaestroPanelType.FANTASY,\n name: 'Fantasy',\n imageNamePrefix: 'Fantasy',\n usesSectionHeaders: false,\n iconName: 'fantasy' as string,\n },\n [MaestroPanelType.BETS]: {\n id: MaestroPanelType.BETS,\n name: 'Bets',\n imageNamePrefix: 'Bets',\n usesSectionHeaders: false,\n iconName: 'bets' as string,\n },\n};\n\n// Helper methods similar to Swift extension methods\nexport const getPanelName = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].name;\n};\n\nexport const getImageNamePrefix = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].imageNamePrefix;\n};\n\nexport const usesSectionHeaders = (panelType: MaestroPanelType): boolean => {\n return PANEL_TYPE_INFO[panelType].usesSectionHeaders;\n};\n\nexport const getIconName = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].iconName;\n};\n\nexport const getAllPanelTypes = (): MaestroPanelType[] => {\n return Object.values(MaestroPanelType);\n};\n","import { Observable } from '../helpers/Observable';\nimport { MaestroPanelType } from '../models/IPanel';\n\nexport class PanelManagerViewModel {\n private _panels = new Observable<MaestroPanelType[]>([\n MaestroPanelType.KEY_PLAYS,\n MaestroPanelType.STATS,\n MaestroPanelType.FANTASY,\n MaestroPanelType.BETS,\n ]);\n\n private _currentPanel = new Observable<MaestroPanelType>(\n MaestroPanelType.KEY_PLAYS\n );\n private _newlyFocusedPanel = new Observable<MaestroPanelType | null>(null);\n\n // Getter for panels\n get panels(): MaestroPanelType[] {\n return this._panels.value;\n }\n\n // Getter for panels observable\n get panelsObservable(): Observable<MaestroPanelType[]> {\n return this._panels;\n }\n\n // Getter for currentPanel\n get currentPanel(): MaestroPanelType {\n return this._currentPanel.value;\n }\n\n // Setter for currentPanel\n set currentPanel(value: MaestroPanelType) {\n this._currentPanel.value = value;\n }\n\n // Getter for currentPanel as Observable\n get currentPanelObservable(): Observable<MaestroPanelType> {\n return this._currentPanel;\n }\n\n // Getter for newlyFocusedPanel\n get newlyFocusedPanel(): MaestroPanelType | null {\n return this._newlyFocusedPanel.value;\n }\n\n // Setter for newlyFocusedPanel\n set newlyFocusedPanel(value: MaestroPanelType | null) {\n this._newlyFocusedPanel.value = value;\n }\n\n // Get the index of a specific panel type\n getIndex(forPanelType: MaestroPanelType): number | null {\n const index = this.panels.findIndex((p) => p === forPanelType);\n return index !== -1 ? index : null;\n }\n\n // Get the panel type at a specific index\n getPanelType(atIndex: number): MaestroPanelType | null {\n return this.panels[atIndex] || null;\n }\n\n // Computed property for panel to the left\n get panelTypeToLeft(): MaestroPanelType | null {\n const currentIndex = this.getIndex(this.currentPanel);\n if (currentIndex === null || currentIndex === 0) return null;\n return this.getPanelType(currentIndex - 1);\n }\n\n // Computed property for panel to the right\n get panelTypeToRight(): MaestroPanelType | null {\n const currentIndex = this.getIndex(this.currentPanel);\n if (currentIndex === null || currentIndex === this.panels.length - 1)\n return null;\n return this.getPanelType(currentIndex + 1);\n }\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* Warning: Do not play with :root */\\n.sdk-wrapper {\\n font-family: Arial, Helvetica, sans-serif;\\n color: var(--sdk-text100);\\n}\\n\\n.T01 {\\n font-size: 1.125rem;\\n font-weight: normal;\\n line-height: 1.5rem;\\n}\\n\\n.T02 {\\n font-size: 1.125rem;\\n font-weight: bold;\\n line-height: 1.5rem;\\n}\\n\\n.T05_ALT {\\n font-size: 1.313rem;\\n font-weight: bold;\\n line-height: 1.75rem;\\n}\\n\\n.T10 {\\n font-size: 1.438rem;\\n font-weight: bold;\\n line-height: 2rem;\\n}\\n\\n.T20 {\\n font-size: 1.688rem;\\n font-weight: 500;\\n line-height: 2.25rem;\\n}\\n\\n.T30 {\\n font-size: 1.813rem;\\n font-weight: bold;\\n line-height: 2.25rem;\\n}\\n\\n.T70 {\\n font-size: 3rem;\\n font-weight: 900;\\n line-height: 3.5rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/core/App/App.styles.css\"],\"names\":[],\"mappings\":\"AAAA,oCAAoC;AACpC;EACE,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,mBAAmB;AACrB\",\"sourcesContent\":[\"/* Warning: Do not play with :root */\\n.sdk-wrapper {\\n font-family: Arial, Helvetica, sans-serif;\\n color: var(--sdk-text100);\\n}\\n\\n.T01 {\\n font-size: 1.125rem;\\n font-weight: normal;\\n line-height: 1.5rem;\\n}\\n\\n.T02 {\\n font-size: 1.125rem;\\n font-weight: bold;\\n line-height: 1.5rem;\\n}\\n\\n.T05_ALT {\\n font-size: 1.313rem;\\n font-weight: bold;\\n line-height: 1.75rem;\\n}\\n\\n.T10 {\\n font-size: 1.438rem;\\n font-weight: bold;\\n line-height: 2rem;\\n}\\n\\n.T20 {\\n font-size: 1.688rem;\\n font-weight: 500;\\n line-height: 2.25rem;\\n}\\n\\n.T30 {\\n font-size: 1.813rem;\\n font-weight: bold;\\n line-height: 2.25rem;\\n}\\n\\n.T70 {\\n font-size: 3rem;\\n font-weight: 900;\\n line-height: 3.5rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".sdk--panel-manager {\\n padding: 3.75rem;\\n padding-left: 3rem;\\n padding-bottom: 0;\\n\\n display: flex;\\n flex-direction: column;\\n gap: 3.75rem;\\n}\\n\\n.sdk--panel-manager .panel-coming-soon {\\n display: flex;\\n justify-content: center;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/core/PanelManager/PanelManager.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;;EAEjB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,uBAAuB;AACzB\",\"sourcesContent\":[\".sdk--panel-manager {\\n padding: 3.75rem;\\n padding-left: 3rem;\\n padding-bottom: 0;\\n\\n display: flex;\\n flex-direction: column;\\n gap: 3.75rem;\\n}\\n\\n.sdk--panel-manager .panel-coming-soon {\\n display: flex;\\n justify-content: center;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".key-plays-view {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n overflow-y: auto;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n scrollbar-width: none;\\n scroll-behavior: smooth;\\n overscroll-behavior: contain;\\n}\\n\\n.key-plays-view .key-plays-section:last-child {\\n margin-bottom: 4rem;\\n} \\n\\n.key-plays-view::-webkit-scrollbar {\\n display: none;\\n}\\n\\n.key-plays-section {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n/* Sticky section title using CSS position: sticky */\\n.key-plays-section-title {\\n position: sticky;\\n top: 0;\\n z-index: 1;\\n margin: 0;\\n}\\n\\n.key-plays-section-items {\\n display: flex;\\n flex-direction: column;\\n gap: 20px;\\n}\\n\\n.key-plays-section:last-of-type {\\n margin-bottom: 0;\\n}\\n\\n.key-plays-bottom-padding {\\n height: calc(\\n 100vh - 240px\\n );\\n min-height: 400px;\\n width: 100%;\\n}\\n\\n.key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 3px solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n}\\n\\n.key-play-card[data-focused='true'] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box;\\n -webkit-box-orient: vertical;\\n -webkit-line-clamp: 3;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar,\\n.key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlaysView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA,oDAAoD;AACpD;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE;;GAEC;EACD,iBAAiB;EACjB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,6BAA6B;EAC7B,yCAAyC;AAC3C;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,4BAA4B;EAC5B,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;;EAEE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX\",\"sourcesContent\":[\".key-plays-view {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n overflow-y: auto;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n scrollbar-width: none;\\n scroll-behavior: smooth;\\n overscroll-behavior: contain;\\n}\\n\\n.key-plays-view .key-plays-section:last-child {\\n margin-bottom: 4rem;\\n} \\n\\n.key-plays-view::-webkit-scrollbar {\\n display: none;\\n}\\n\\n.key-plays-section {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n/* Sticky section title using CSS position: sticky */\\n.key-plays-section-title {\\n position: sticky;\\n top: 0;\\n z-index: 1;\\n margin: 0;\\n}\\n\\n.key-plays-section-items {\\n display: flex;\\n flex-direction: column;\\n gap: 20px;\\n}\\n\\n.key-plays-section:last-of-type {\\n margin-bottom: 0;\\n}\\n\\n.key-plays-bottom-padding {\\n height: calc(\\n 100vh - 240px\\n );\\n min-height: 400px;\\n width: 100%;\\n}\\n\\n.key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 3px solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n}\\n\\n.key-play-card[data-focused='true'] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box;\\n -webkit-box-orient: vertical;\\n -webkit-line-clamp: 3;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar,\\n.key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".scrollable-gradient {\\n position: relative;\\n}\\n\\n\\n.scrollable-gradient::before {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n top: 0;\\n height: 3.625rem; /* Height of the top gradient */\\n z-index: 0;\\n transition: z-index 0.3s ease;\\n}\\n\\n.scroll-container-scrolled::before {\\n z-index: 1;\\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\\n.scrollable-gradient::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n height: 6rem; /* Height of the bottom gradient */\\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,kBAAkB;AACpB;;;AAGA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,gBAAgB,EAAE,+BAA+B;EACjD,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E\",\"sourcesContent\":[\".scrollable-gradient {\\n position: relative;\\n}\\n\\n\\n.scrollable-gradient::before {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n top: 0;\\n height: 3.625rem; /* Height of the top gradient */\\n z-index: 0;\\n transition: z-index 0.3s ease;\\n}\\n\\n.scroll-container-scrolled::before {\\n z-index: 1;\\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\\n.scrollable-gradient::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n height: 6rem; /* Height of the bottom gradient */\\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n position: relative;\\n}\\n\\n.key-play-card[data-focused=true] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box; /* This sets up the box for the flex behavior */\\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\\n overflow: hidden; /* Hide any overflow text */\\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n position: absolute;\\n bottom: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: var(--sdk-surface2);\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state path {\\n fill: var(--sdk-alertWarning);\\n}\\n\\n.key-play-card .non-recent-error-state {\\n position: absolute;\\n top: 1.125rem;\\n right: 1.125rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlayCardView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,kCAAkC;EAClC,yCAAyC;EACzC,kBAAkB;AACpB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB,EAAE,+CAA+C;EACrE,4BAA4B,EAAE,uEAAuE;EACrG,qBAAqB,EAAE,iCAAiC;EACxD,gBAAgB,EAAE,2BAA2B;EAC7C,uBAAuB,EAAE,wDAAwD;AACnF;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,qCAAqC;EACrC,SAAS;AACX;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB\",\"sourcesContent\":[\".key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n position: relative;\\n}\\n\\n.key-play-card[data-focused=true] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box; /* This sets up the box for the flex behavior */\\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\\n overflow: hidden; /* Hide any overflow text */\\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n position: absolute;\\n bottom: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: var(--sdk-surface2);\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state path {\\n fill: var(--sdk-alertWarning);\\n}\\n\\n.key-play-card .non-recent-error-state {\\n position: absolute;\\n top: 1.125rem;\\n right: 1.125rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".sdk--key-play-error-state-unsupportedEvent {\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n}\\n.sdk--key-play-error-state-unsupportedEvent::after {\\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent {\\n overflow-y: hidden;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n scrollbar-width: none;\\n display: flex;\\n flex-direction: column;\\n gap: 6.25rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n gap: 1rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\\n content: '';\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n bottom: 0;\\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\\n display: flex;\\n gap: 1rem;\\n padding: 1.75rem 1.5rem;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface3);\\n height: 8rem;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n border-radius: 0.625rem;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n padding: 1.5rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure p {\\n margin: 0;\\n height: 5.375rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,gCAAgC;EAChC,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;EAClB,kDAAkD;EAClD,gCAAgC;EAChC,qBAAqB;EACrB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,qEAAqE;AACvE;;AAEA;EACE,aAAa;EACb,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,qCAAqC;EACrC,YAAY;AACd;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,uBAAuB;EACvB,kCAAkC;EAClC,yCAAyC;EACzC,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB\",\"sourcesContent\":[\".sdk--key-play-error-state-unsupportedEvent {\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n}\\n.sdk--key-play-error-state-unsupportedEvent::after {\\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent {\\n overflow-y: hidden;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n scrollbar-width: none;\\n display: flex;\\n flex-direction: column;\\n gap: 6.25rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n gap: 1rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\\n content: '';\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n bottom: 0;\\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\\n display: flex;\\n gap: 1rem;\\n padding: 1.75rem 1.5rem;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface3);\\n height: 8rem;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n border-radius: 0.625rem;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n padding: 1.5rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure p {\\n margin: 0;\\n height: 5.375rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".action-button {\\n padding: 23px 0;\\n background-color: var(--sdk-accentSecondary);\\n color: var(--sdk-text100);\\n}\\n\\n.action-button:hover, .action-button[data-focused=true] {\\n background-color: var(--sdk-accentPrimary);\\n color: var(--sdk-text500);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/ActionButton/ActionButton.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,eAAe;EACf,4CAA4C;EAC5C,yBAAyB;AAC3B;;AAEA;EACE,0CAA0C;EAC1C,yBAAyB;AAC3B\",\"sourcesContent\":[\".action-button {\\n padding: 23px 0;\\n background-color: var(--sdk-accentSecondary);\\n color: var(--sdk-text100);\\n}\\n\\n.action-button:hover, .action-button[data-focused=true] {\\n background-color: var(--sdk-accentPrimary);\\n color: var(--sdk-text500);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".panel-navigation {\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n gap: 0.75rem;\\n overflow-x: auto;\\n scrollbar-width: none;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;AACvB\",\"sourcesContent\":[\".panel-navigation {\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n gap: 0.75rem;\\n overflow-x: auto;\\n scrollbar-width: none;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".panel-nav-button-container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n gap: 0.625rem;\\n color: var(--sdk-text300);\\n flex: 1;\\n\\n}\\n\\n.panel-nav-button-container path {\\n fill: var(--sdk-highlightSecondary);\\n}\\n\\n.panel-nav-button-container button {\\n padding: 8px 0;\\n background-color: var(--sdk-surface3);\\n min-width: 6.5rem;\\n\\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\\n}\\n\\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\\n color: var(--sdk-text100);\\n}\\n\\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\\n fill: var(--sdk-highlightTertiary);\\n}\\n\\n.panel-nav-button-container[data-focused=true] button, .panel-nav-button-container:hover button {\\n background-color: var(--sdk-accentPrimary);\\n}\\n\\n.panel-nav-button-active button {\\n background-color: var(--sdk-surface5);\\n}\\n\\n.panel-nav-button-active path {\\n fill: var(--sdk-highlightPrimary);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;EACb,yBAAyB;EACzB,OAAO;;AAET;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;EACrC,iBAAiB;;EAEjB,qEAAqE;AACvE;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC\",\"sourcesContent\":[\".panel-nav-button-container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n gap: 0.625rem;\\n color: var(--sdk-text300);\\n flex: 1;\\n\\n}\\n\\n.panel-nav-button-container path {\\n fill: var(--sdk-highlightSecondary);\\n}\\n\\n.panel-nav-button-container button {\\n padding: 8px 0;\\n background-color: var(--sdk-surface3);\\n min-width: 6.5rem;\\n\\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\\n}\\n\\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\\n color: var(--sdk-text100);\\n}\\n\\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\\n fill: var(--sdk-highlightTertiary);\\n}\\n\\n.panel-nav-button-container[data-focused=true] button, .panel-nav-button-container:hover button {\\n background-color: var(--sdk-accentPrimary);\\n}\\n\\n.panel-nav-button-active button {\\n background-color: var(--sdk-surface5);\\n}\\n\\n.panel-nav-button-active path {\\n fill: var(--sdk-highlightPrimary);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","/* eslint-disable react/no-find-dom-node */\nimport { findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { Component, createElement } from 'react';\nimport SpatialNavigation, { ROOT_FOCUS_KEY } from './spatialNavigation';\nimport { Direction, Layout } from './utils';\n\ninterface WithFocusableConfig {\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n autoRestoreFocus?: boolean;\n blockNavigationOut?: boolean;\n}\n\nexport interface WithFocusableProps {\n focused?: boolean;\n focusKey?: string;\n parentFocusKey?: string;\n preferredChildFocusKey?: string;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n autoRestoreFocus?: boolean;\n blockNavigationOut?: boolean;\n focusable?: boolean;\n onEnterPress?: (\n props: any,\n details: { pressedKeys: Record<string, number> }\n ) => void;\n onEnterRelease?: (props: any) => void;\n onArrowPress?: (\n direction: Direction,\n props: any,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocused?: (layout: Layout, props: any, details: any) => void;\n onBecameBlurred?: (layout: Layout, props: any, details: any) => void;\n}\n\nexport interface WithFocusableState {\n realFocusKey: string;\n focused: boolean;\n hasFocusedChild: boolean;\n parentFocusKey: string;\n}\n\n// Helper functions to replace lodash and recompose\nconst uniqueId = (prefix: string): string =>\n `${prefix}${Math.random().toString(36).substr(2, 9)}`;\n\nconst noop = () => {};\n\nconst omit = <T extends Record<string, any>>(\n obj: T,\n keys: string[]\n): Partial<T> => {\n const result = { ...obj };\n keys.forEach((key) => delete result[key]);\n return result;\n};\n\nconst withFocusable = <P extends object>({\n forgetLastFocusedChild: configForgetLastFocusedChild = false,\n trackChildren: configTrackChildren = false,\n autoRestoreFocus: configAutoRestoreFocus,\n blockNavigationOut: configBlockNavigationOut = false,\n}: WithFocusableConfig = {}) => {\n return (WrappedComponent: React.ComponentType<P & WithFocusableProps>) => {\n return class WithFocusable extends Component<\n P & WithFocusableProps,\n WithFocusableState\n > {\n static contextTypes = {\n parentFocusKey: PropTypes.string,\n };\n\n static childContextTypes = {\n parentFocusKey: PropTypes.string,\n };\n\n state: WithFocusableState = {\n realFocusKey: this.props.focusKey || uniqueId('sn:focusable-item-'),\n focused: false,\n hasFocusedChild: false,\n parentFocusKey: this.props.parentFocusKey || ROOT_FOCUS_KEY,\n };\n\n getChildContext() {\n return {\n parentFocusKey: this.state.realFocusKey,\n };\n }\n\n setFocus = (focusKey: string) => {\n if (!SpatialNavigation.isNativeMode()) {\n SpatialNavigation.setFocus(focusKey);\n }\n };\n\n navigateByDirection = SpatialNavigation.navigateByDirection;\n\n stealFocus = () => {\n SpatialNavigation.setFocus(this.state.realFocusKey, {\n focusKey: this.state.realFocusKey,\n });\n };\n\n onUpdateFocus = (focused: boolean) => {\n this.setState({ focused });\n };\n\n onUpdateHasFocusedChild = (hasFocusedChild: boolean) => {\n this.setState({ hasFocusedChild });\n };\n\n onEnterPressHandler = (details: {\n pressedKeys: Record<string, number>;\n }) => {\n const { onEnterPress = noop, ...rest } = this.props;\n onEnterPress(rest, details);\n };\n\n onEnterReleaseHandler = () => {\n const { onEnterRelease = noop, ...rest } = this.props;\n onEnterRelease(rest);\n };\n\n onArrowPressHandler = (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => {\n const { onArrowPress = noop, ...rest } = this.props;\n return onArrowPress(direction, rest, details);\n };\n\n onBecameFocusedHandler = (layout: Layout, details: any) => {\n const { onBecameFocused = noop, ...rest } = this.props;\n onBecameFocused(layout, rest, details);\n };\n\n onBecameBlurredHandler = (layout: Layout, details: any) => {\n const { onBecameBlurred = noop, ...rest } = this.props;\n onBecameBlurred(layout, rest, details);\n };\n\n componentDidMount() {\n const { realFocusKey: focusKey, parentFocusKey } = this.state;\n\n const {\n preferredChildFocusKey,\n forgetLastFocusedChild = false,\n trackChildren,\n focusable = true,\n autoRestoreFocus = true,\n blockNavigationOut = false,\n } = this.props;\n\n let node: HTMLElement;\n if (SpatialNavigation.isNativeMode()) {\n node = document.createElement('div');\n } else {\n const domNode = findDOMNode(this) as Element;\n if (!domNode) {\n throw new Error('Could not find DOM node');\n }\n node = domNode as HTMLElement;\n }\n\n SpatialNavigation.addFocusable({\n focusKey,\n node,\n parentFocusKey,\n preferredChildFocusKey,\n onEnterPressHandler: this.onEnterPressHandler,\n onEnterReleaseHandler: this.onEnterReleaseHandler,\n onArrowPressHandler: this.onArrowPressHandler,\n onBecameFocusedHandler: this.onBecameFocusedHandler,\n onBecameBlurredHandler: this.onBecameBlurredHandler,\n onUpdateFocus: this.onUpdateFocus,\n onUpdateHasFocusedChild: this.onUpdateHasFocusedChild,\n forgetLastFocusedChild:\n configForgetLastFocusedChild || forgetLastFocusedChild,\n trackChildren: configTrackChildren || trackChildren,\n blockNavigationOut: configBlockNavigationOut || blockNavigationOut,\n autoRestoreFocus:\n configAutoRestoreFocus !== undefined\n ? configAutoRestoreFocus\n : autoRestoreFocus,\n focusable,\n });\n }\n\n componentDidUpdate() {\n const { realFocusKey: focusKey } = this.state;\n\n const {\n preferredChildFocusKey,\n focusable = true,\n blockNavigationOut = false,\n } = this.props;\n\n let node: HTMLElement;\n if (SpatialNavigation.isNativeMode()) {\n node = document.createElement('div');\n } else {\n const domNode = findDOMNode(this) as Element;\n if (!domNode) {\n throw new Error('Could not find DOM node');\n }\n node = domNode as HTMLElement;\n }\n\n SpatialNavigation.updateFocusable(focusKey, {\n node,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut: configBlockNavigationOut || blockNavigationOut,\n });\n }\n\n componentWillUnmount() {\n const { realFocusKey: focusKey } = this.state;\n SpatialNavigation.removeFocusable({ focusKey });\n }\n\n render() {\n const props = {\n ...this.props,\n ...this.state,\n setFocus: this.setFocus,\n navigateByDirection: this.navigateByDirection,\n stealFocus: this.stealFocus,\n onUpdateFocus: this.onUpdateFocus,\n onUpdateHasFocusedChild: this.onUpdateHasFocusedChild,\n };\n\n const filteredProps = omit(props, [\n 'onBecameFocusedHandler',\n 'onBecameBlurredHandler',\n 'onEnterPressHandler',\n 'onEnterReleaseHandler',\n 'onArrowPressHandler',\n 'onUpdateFocus',\n 'onUpdateHasFocusedChild',\n 'forgetLastFocusedChild',\n 'trackChildren',\n 'autoRestoreFocus',\n ]);\n\n return createElement(\n WrappedComponent,\n filteredProps as P & WithFocusableProps\n );\n }\n };\n };\n};\n\nexport default withFocusable;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelManager.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { ButtonHTMLAttributes } from 'react';\n\n// Base button styling\nconst ButtonStyle: React.CSSProperties = {\n borderRadius: 6,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n width: '100%',\n border: 'none',\n};\ninterface BaseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {}\n\nclass BaseButton extends React.Component<BaseButtonProps> {\n constructor(props: BaseButtonProps) {\n super(props);\n }\n\n render() {\n const style = {\n ...ButtonStyle,\n ...this.props.style,\n };\n\n return (\n <button style={style} {...this.props}>\n {this.props.children}\n </button>\n );\n }\n}\n\nexport default BaseButton;\n","import React from 'react';\n\ntype IconLoaderState = {\n loading: boolean;\n component: React.ComponentType<IconProps> | null;\n requestCount: number;\n promise: Promise<any> | null;\n};\n\n// Cache for loaded icon components\nconst iconRegistry: Record<string, IconLoaderState> = {\n keyPlays: { loading: false, component: null, requestCount: 0, promise: null },\n play: { loading: false, component: null, requestCount: 0, promise: null },\n bets: { loading: false, component: null, requestCount: 0, promise: null },\n stats: { loading: false, component: null, requestCount: 0, promise: null },\n fantasy: { loading: false, component: null, requestCount: 0, promise: null },\n warning: { loading: false, component: null, requestCount: 0, promise: null },\n};\n\nconst iconImports = {\n keyPlays: () => import('./KeyPlaysIcon'),\n play: () => import('./PlayIcon'),\n bets: () => import('./BetsIcon'),\n stats: () => import('./StatsIcon'),\n fantasy: () => import('./FantasyIcon'),\n warning: () => import('./WarningIcon'),\n};\n\nexport type IconsName = keyof typeof iconImports;\n\nexport type IconProps = {\n iconName: IconsName;\n width: number;\n height: number;\n};\n\n// Skeleton component for loading state\nconst Skeleton = (props: Omit<IconProps, 'iconName'>) => (\n <div style={{ width: props.width, height: props.height }} />\n);\n\n// Queue to batch icon loading, prevent too many simultaneous requests\nconst loadQueue: IconsName[] = [];\nlet isProcessingQueue = false;\n\n// Process the load queue with limited concurrency\nconst processQueue = () => {\n if (isProcessingQueue || loadQueue.length === 0) return;\n\n isProcessingQueue = true;\n\n // Take next icon to load (remove from queue)\n const iconName = loadQueue.shift() as IconsName;\n const entry = iconRegistry[iconName];\n\n // If already loaded or loading, just continue to next\n if (entry.component || entry.loading) {\n isProcessingQueue = false;\n setTimeout(processQueue, 0);\n return;\n }\n\n // Mark as loading\n entry.loading = true;\n\n // Load the component\n const promise = iconImports[iconName]()\n .then((module) => {\n entry.component = module.default;\n entry.loading = false;\n entry.promise = null;\n\n // Force update components waiting for this icon\n if (typeof window !== 'undefined') {\n window.dispatchEvent(\n new CustomEvent('icon-loaded', { detail: { iconName } })\n );\n }\n\n // Continue processing queue\n isProcessingQueue = false;\n setTimeout(processQueue, 0);\n })\n .catch((error) => {\n console.error(`Error loading icon \"${iconName}\":`, error);\n entry.loading = false;\n entry.promise = null;\n\n // Continue processing queue\n isProcessingQueue = false;\n setTimeout(processQueue, 0);\n });\n\n entry.promise = promise;\n};\n\n// Request an icon to be loaded, adds to queue if needed\nconst requestIconLoad = (iconName: IconsName): Promise<void> => {\n const entry = iconRegistry[iconName];\n\n // If already loaded, return resolved promise\n if (entry.component) {\n return Promise.resolve();\n }\n\n // If loading, return existing promise\n if (entry.loading && entry.promise) {\n return entry.promise;\n }\n\n // Add to queue if not already queued\n if (loadQueue.indexOf(iconName) === -1) {\n loadQueue.push(iconName);\n // Start processing queue\n setTimeout(processQueue, 0);\n }\n\n // Create promise if doesn't exist yet\n if (!entry.promise) {\n entry.promise = new Promise<void>((resolve) => {\n const handleLoad = (event: Event) => {\n const customEvent = event as CustomEvent;\n if (customEvent.detail?.iconName === iconName) {\n if (typeof window !== 'undefined') {\n window.removeEventListener('icon-loaded', handleLoad);\n }\n resolve();\n }\n };\n\n if (typeof window !== 'undefined') {\n window.addEventListener('icon-loaded', handleLoad);\n }\n });\n }\n\n return entry.promise;\n};\n\ninterface IconState {\n loaded: boolean;\n}\nclass Icon extends React.Component<IconProps, IconState> {\n private _isMounted: boolean = false;\n private _eventHandler: ((event: Event) => void) | null = null;\n\n constructor(props: IconProps) {\n super(props);\n this.state = {\n loaded: !!iconRegistry[props.iconName]?.component,\n };\n }\n\n componentDidMount() {\n this._isMounted = true;\n this.loadIcon();\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n this.removeEventListener();\n }\n\n componentDidUpdate(prevProps: IconProps) {\n if (prevProps.iconName !== this.props.iconName) {\n // Check if already loaded\n const loaded = !!iconRegistry[this.props.iconName]?.component;\n this.setState({ loaded });\n\n if (!loaded) {\n this.removeEventListener();\n this.loadIcon();\n }\n }\n }\n\n removeEventListener() {\n if (this._eventHandler && typeof window !== 'undefined') {\n window.removeEventListener('icon-loaded', this._eventHandler);\n this._eventHandler = null;\n }\n }\n\n loadIcon() {\n const { iconName } = this.props;\n\n // Skip if icon already loaded\n if (iconRegistry[iconName]?.component) {\n this.setState({ loaded: true });\n return;\n }\n\n this._eventHandler = (event: Event) => {\n const customEvent = event as CustomEvent;\n if (customEvent.detail?.iconName === iconName && this._isMounted) {\n this.setState({ loaded: true });\n this.removeEventListener();\n }\n };\n\n if (typeof window !== 'undefined') {\n window.addEventListener('icon-loaded', this._eventHandler);\n }\n\n requestIconLoad(iconName);\n }\n\n render() {\n const { iconName, width, height } = this.props;\n const { loaded } = this.state;\n\n if (!loaded) {\n return <Skeleton width={width} height={height} />;\n }\n\n const IconComponent = iconRegistry[iconName]?.component;\n if (!IconComponent) {\n return <Skeleton width={width} height={height} />;\n }\n\n return <IconComponent iconName={iconName} width={width} height={height} />;\n }\n}\n\nexport default Icon;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelNavButton.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\n\nconst BACK_KEY_CODE = 10009;\n\nexport type RemoteControlProps = {\n onBackPressed?: (e: KeyboardEvent) => void;\n onLeftPressed?: (e: KeyboardEvent) => void;\n remoteControlActive?: boolean;\n};\n\nexport const withRemoteControl = <P extends object>(\n WrappedComponent: React.ComponentType<P>\n) => {\n return class WithRemoteControl extends React.Component<\n P & RemoteControlProps,\n {\n active: boolean;\n }\n > {\n cleanup?: () => void;\n\n constructor(props: P & RemoteControlProps) {\n super(props);\n this.state = {\n active: props.remoteControlActive || false,\n };\n }\n\n componentDidUpdate(prevProps: Readonly<P & RemoteControlProps>) {\n if (prevProps.remoteControlActive && !this.props.remoteControlActive) {\n window.removeEventListener('keydown', this.handleKeyDown);\n } else if (\n !prevProps.remoteControlActive &&\n this.props.remoteControlActive\n ) {\n window.addEventListener('keydown', this.handleKeyDown);\n }\n }\n\n componentDidMount() {\n window.addEventListener('keydown', this.handleKeyDown);\n\n this.cleanup = () => {\n window.removeEventListener('keydown', this.handleKeyDown);\n };\n }\n\n componentWillUnmount() {\n if (this.cleanup) {\n this.cleanup();\n }\n }\n\n handleKeyDown = (e: KeyboardEvent) => {\n const { onBackPressed, onLeftPressed } = this.props;\n\n if (!this.props.remoteControlActive) return;\n\n if ((e.keyCode === BACK_KEY_CODE || e.key === 'b') && onBackPressed) {\n onBackPressed(e);\n }\n\n if ((e.key === 'ArrowLeft' || e.keyCode === 37) && onLeftPressed) {\n onLeftPressed(e);\n }\n };\n\n render() {\n const { ...props } = this.props;\n return <WrappedComponent {...(props as P)} />;\n }\n };\n};\n\nexport default withRemoteControl;\n","import BaseButton from '@/components/atoms/BaseButton/BaseButton';\nimport Icon, { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavButton.styles.css';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { withFocusable } from '@/external/spatial-navigation';\nimport withRemoteControl, {\n RemoteControlProps,\n} from '@/helpers/withRemoteControl';\n\ntype PanelNavButtonProps = RemoteControlProps & {\n iconName: IconsName;\n index: number;\n active: boolean;\n children?: React.ReactNode;\n focused?: boolean;\n focusKey: string;\n onBecameFocused: () => void;\n buttonRef?: React.Ref<HTMLDivElement>;\n};\n\nclass PanelNavButton extends React.Component<PanelNavButtonProps, {}> {\n static displayName = 'PanelNavButton';\n\n static propTypes = {\n iconName: PropTypes.string.isRequired,\n index: PropTypes.number.isRequired,\n active: PropTypes.bool.isRequired,\n children: PropTypes.node,\n focused: PropTypes.bool,\n onBecameFocused: PropTypes.func,\n buttonRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n };\n\n render() {\n const { iconName, active, children, focused, buttonRef } = this.props;\n\n return (\n <div\n className={[\n 'panel-nav-button-container',\n 'T02',\n active ? 'panel-nav-button-active' : '',\n ].join(' ')}\n data-focused={focused}\n ref={buttonRef}\n >\n <BaseButton>\n <Icon iconName={iconName} height={36} width={36} />\n </BaseButton>\n {children}\n </div>\n );\n }\n}\n\nexport default withRemoteControl(\n withFocusable<PanelNavButtonProps>()(PanelNavButton)\n);\n","import PanelNavButton from './PanelNavButton';\n\nexport default PanelNavButton;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelNavigation.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import { pause } from '@/external/spatial-navigation';\nimport SDK from '..';\n\n/**\n * @description Useful when you want to lose the focus of the SDK and delegate it to the Client App.\n */\nconst deliverFocus = (e: HTMLElement) => {\n const eventVm = SDK.getMaestroEventViewModel();\n e.dataset['focused'] = 'false';\n pause();\n eventVm.delegate.startFocusManagement();\n};\n\nexport default deliverFocus;\n","import PanelNavButton from '@/components/molecules/PanelNavButton';\nimport { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavigation.styles.css';\nimport React from 'react';\nimport deliverFocus from '@/helpers/deliver-focus';\n\ninterface PanelNavigationProps {\n items: {\n title: string;\n onEnter: () => void;\n iconName: IconsName;\n active: boolean;\n }[];\n}\n\nclass PanelNavigationButton extends React.Component<{\n item: PanelNavigationProps['items'][number];\n index: number;\n}> {\n private buttonElement: HTMLDivElement | null = null;\n state = {\n itemFocused: null,\n };\n\n setButtonRef = (el: HTMLDivElement | null) => {\n this.buttonElement = el;\n };\n\n handleLeftPressed = () => {\n if (this.buttonElement) {\n deliverFocus(this.buttonElement);\n }\n };\n\n handleBecameFocused = (index: number, fn: () => void) => () => {\n this.setState({ itemFocused: index }, fn);\n };\n\n handleBecameBlurred = () => {\n this.setState({ itemFocused: null });\n };\n\n render() {\n const { item, index } = this.props;\n return (\n <PanelNavButton\n iconName={item.iconName}\n key={item.title}\n index={index}\n onBecameFocused={this.handleBecameFocused(index, item.onEnter)}\n onBecameBlurred={this.handleBecameBlurred}\n active={item.active}\n focusKey={`PANEL_NAV_BUTTON_${index}`}\n remoteControlActive={this.state.itemFocused === 0}\n onLeftPressed={this.handleLeftPressed}\n buttonRef={this.setButtonRef}\n >\n {item.title}\n </PanelNavButton>\n );\n }\n}\n\nclass PanelNavigation extends React.Component<PanelNavigationProps> {\n render() {\n return (\n <div className=\"panel-navigation\">\n {this.props.items.map((item, index) => (\n <PanelNavigationButton key={item.title} item={item} index={index} />\n ))}\n </div>\n );\n }\n}\n\nexport default PanelNavigation;\n","import PanelNavigation from './PanelNavigation';\n\nexport default PanelNavigation;\n","import React from 'react';\nimport { ImgHTMLAttributes } from 'react';\n\ninterface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {}\n\nclass Image extends React.Component<ImageProps> {\n constructor(props: ImageProps) {\n super(props);\n }\n\n render() {\n return <img alt={this.props.alt || 'Image'} {...this.props} />;\n }\n}\n\nexport default Image;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlayCardView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import Icon from './Icon';\n\nexport default Icon;\n","import React from 'react';\n\nexport default class ScoreCard extends React.Component<\n {\n awayTeamScore?: number;\n homeTeamScore?: number;\n homeTeamName: string;\n awayTeamName: string;\n },\n {}\n> {\n render() {\n const {\n awayTeamScore,\n homeTeamScore,\n homeTeamName,\n awayTeamName,\n } = this.props;\n\n return (\n <div className=\"score\">\n <div className=\"score-team T05_ALT\">\n {homeTeamName}\n <span className=\"T30\">{homeTeamScore}</span>\n </div>\n <div className=\"score-team T05_ALT\">\n <span className=\"T30\">{awayTeamScore}</span>\n {awayTeamName}\n </div>\n </div>\n );\n }\n}\n","import Image from '@/components/atoms/Image';\nimport { BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK } from '../constants';\nimport IKeyPlay, { KeyPlayLoadFailureStatus } from '../interfaces/IKeyPlays';\nimport './KeyPlayCardView.styles.css';\nimport SDK from '@/index';\nimport Icon from '@/components/atoms/SvgIcon';\nimport React from 'react';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\nimport ScoreCard from './KeyPlayCardScoreTagView';\nimport KeyPlaysViewModel from '../view-model/KeyPlaysViewModel';\nimport withRemoteControl, {\n RemoteControlProps,\n} from '@/helpers/withRemoteControl';\nimport deliverFocus from '@/helpers/deliver-focus';\n\ntype KeyPlayCardViewProps = IKeyPlay & {\n isPlaying: boolean;\n playbackProgress: number | null;\n isScoring: boolean;\n setFocus?: (focusKey: string) => void;\n focused?: boolean;\n setRef: (ref: HTMLDivElement | null) => void;\n};\n\ntype KeyPlaysCardViewState = {\n failedClip: KeyPlayLoadFailureStatus | null;\n};\n\nclass KeyPlayCardView extends React.Component<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps,\n KeyPlaysCardViewState\n> {\n private failedClipListener: () => void = () => {};\n private ref: HTMLDivElement | null = null;\n private vm: KeyPlaysViewModel;\n state = {\n failedClip: null,\n };\n\n constructor(props: KeyPlayCardViewProps) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n }\n\n componentDidMount() {\n this.failedClipListener = this.vm.failedClips.subscribe((failedClips) => {\n this.setState({ failedClip: failedClips[this.props.clipID] });\n });\n\n this.props.setRef(this.ref);\n }\n\n componentWillUnmount() {\n if (this.failedClipListener) {\n this.failedClipListener();\n }\n }\n\n renderImage = () => {\n const { playerImageUrl, teamImageUrl, thumbnailImageUrl } = this.props;\n if (playerImageUrl) {\n return (\n <Image\n src={playerImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Player Image\"\n className=\"cardImage\"\n />\n );\n }\n\n if (teamImageUrl) {\n return (\n <Image\n src={teamImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Team Image\"\n className=\"cardImage\"\n />\n );\n }\n\n if (thumbnailImageUrl) {\n return (\n <Image\n src={thumbnailImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Thumbnail Image\"\n className=\"cardImage\"\n />\n );\n }\n\n return (\n <Image\n src={BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Thumbnail Image\"\n className=\"cardImage\"\n />\n );\n };\n\n render() {\n const {\n clipID,\n description,\n isPlaying,\n playbackProgress,\n isScoring,\n focused,\n awayTeamScore,\n homeTeamScore,\n homeTeamName,\n awayTeamName,\n } = this.props;\n const { failedClip } = this.state;\n\n return (\n <div\n className=\"key-play-card\"\n id={clipID}\n data-focused={focused}\n ref={(ref) => (this.ref = ref)}\n >\n <div className=\"key-play-card-content\">\n {this.renderImage()}\n <div className=\"text-content T05_ALT\">\n <div className=\"multi-line\">{description}</div>\n </div>\n </div>\n {isPlaying && playbackProgress !== null && (\n <progress value={playbackProgress} max=\"1\" />\n )}\n {isScoring && (\n <ScoreCard\n awayTeamScore={awayTeamScore}\n homeTeamScore={homeTeamScore}\n homeTeamName={homeTeamName}\n awayTeamName={awayTeamName}\n />\n )}\n\n {failedClip === 'recentFailure' && (\n <div className=\"error-state\">\n <Icon iconName=\"warning\" width={21.6} height={18.7} />\n <span className=\"T05_ALT\">Could not play this clip. </span>\n </div>\n )}\n {failedClip === 'nonRecentFailure' && (\n <div className=\"non-recent-error-state\">\n <Icon iconName=\"warning\" width={21.6} height={18.7} />\n </div>\n )}\n </div>\n );\n }\n}\n\nconst WithRemoteControlKeyPlayCard = withRemoteControl(\n KeyPlayCardView as React.ComponentType<KeyPlayCardViewProps>\n);\n\nexport class KeyPlayCard extends React.Component<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps\n> {\n private ref: HTMLDivElement | null = null;\n\n setRef = (ref: HTMLDivElement | null) => {\n this.ref = ref;\n this.props.setRef(ref);\n };\n\n handleLeftPressed = () => {\n if (this.ref) {\n deliverFocus(this.ref);\n }\n };\n\n render() {\n return (\n <WithRemoteControlKeyPlayCard\n {...this.props}\n setRef={this.setRef}\n remoteControlActive={this.props.focused}\n onLeftPressed={this.handleLeftPressed}\n />\n );\n }\n}\n\nexport default withFocusable<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps\n>()(KeyPlayCard);\n","import IMaestroKeyPlaysResponse from './interfaces/IKeyPlaysResponse';\n\nexport const KEY_PLAYS_RESPONSE_MOCK_DATA: IMaestroKeyPlaysResponse = {\n entities: {\n team: {\n '251': {\n id: '251',\n displayName: 'Texas Longhorns',\n color: 'c15d26',\n alternateColor: 'ffffff',\n shortName: 'Texas',\n homeAway: 'away',\n displayOrder: '1',\n logoRef:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/251.jpg?w=184&h=144',\n logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/251.png',\n },\n '264': {\n id: '264',\n displayName: 'Washington Huskies',\n color: '33006f',\n alternateColor: 'e8d3a2',\n shortName: 'Washington',\n homeAway: 'home',\n displayOrder: '0',\n logoRef:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/264.jpg?w=184&h=144',\n logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/264.png',\n },\n },\n athlete: {\n '4360423': {\n id: '4360423',\n shortName: 'M. Penix Jr.',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n },\n '4430637': {\n id: '4430637',\n shortName: 'J. Polk',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',\n },\n '4430834': {\n id: '4430834',\n shortName: 'J. McMillan',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',\n },\n '4569337': {\n id: '4569337',\n shortName: 'R. Sanborn',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',\n },\n '4570040': {\n id: '4570040',\n shortName: 'B. Murphy II',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',\n },\n '4597500': {\n id: '4597500',\n shortName: 'A. Mitchell',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',\n },\n '4689338': {\n id: '4689338',\n shortName: 'D. Johnson',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n },\n '4870609': {\n id: '4870609',\n shortName: 'C. Baxter',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n },\n '4889929': {\n id: '4889929',\n shortName: 'Q. Ewers',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n },\n },\n },\n sections: [\n {\n title: '1st Quarter',\n items: [\n {\n description: \"Ja'Lynn Polk's 77-yard catch sets up Washington TD\",\n team: '264',\n awayScore: '0',\n homeScore: '7',\n wallClock: '2024-01-02T02:11:05Z',\n displayClock: '11:04',\n shortPeriod: 'Q1',\n scoringPlay: true,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225214',\n },\n {\n description: 'Germie Bernard makes leaping grab for Washington',\n team: '264',\n wallClock: '2024-01-02T02:38:54Z',\n displayClock: '1:30',\n shortPeriod: 'Q1',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225401',\n },\n ],\n },\n {\n title: '2nd Quarter',\n items: [\n {\n description: 'Dillon Johnson scores 2nd TD of game for the Huskies',\n team: '264',\n awayScore: '7',\n homeScore: '14',\n wallClock: '2024-01-02T02:47:33Z',\n displayClock: '13:08',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225442',\n },\n {\n description: 'Texas takes over after Washington muffs punt',\n team: '251',\n wallClock: '2024-01-02T02:54:50Z',\n displayClock: '11:45',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4569337',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225487',\n },\n {\n description: 'Big man TD! Byron Murphy II punches it in for Texas',\n team: '251',\n awayScore: '14',\n homeScore: '14',\n wallClock: '2024-01-02T02:57:22Z',\n displayClock: '10:08',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4570040',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225513',\n },\n {\n description:\n 'Rome Odunze makes over-the-shoulder grab for Washington',\n team: '264',\n wallClock: '2024-01-02T03:02:27Z',\n displayClock: '9:31',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225518',\n },\n {\n description: \"Texas stops Washington's attempt on 4th down\",\n team: '251',\n wallClock: '2024-01-02T03:06:28Z',\n displayClock: '6:59',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225559',\n },\n {\n description:\n \"Ja'Lynn Polk makes bobbling TD catch and Washington goes ahead\",\n team: '264',\n awayScore: '14',\n homeScore: '21',\n wallClock: '2024-01-02T03:27:56Z',\n displayClock: '1:27',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4430637',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225686',\n },\n {\n description: \"Texas ties the score after CJ Baxter's TD run\",\n team: '251',\n awayScore: '21',\n homeScore: '21',\n wallClock: '2024-01-02T03:38:42Z',\n displayClock: '0:17',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4870609',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225762',\n },\n ],\n },\n {\n title: '3rd Quarter',\n items: [\n {\n description:\n 'Penix threads the needle to McMillan for Washington score',\n team: '264',\n awayScore: '21',\n homeScore: '28',\n wallClock: '2024-01-02T04:11:00Z',\n displayClock: '10:30',\n shortPeriod: 'Q3',\n scoringPlay: true,\n athlete: '4430834',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226021',\n },\n {\n description: 'Texas commits their first turnover of the game',\n team: '264',\n wallClock: '2024-01-02T04:16:16Z',\n displayClock: '10:14',\n shortPeriod: 'Q3',\n scoringPlay: false,\n athlete: '4870609',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226030',\n },\n ],\n },\n {\n title: '4th Quarter',\n items: [\n {\n description:\n 'Hang time! Adonai Mitchell makes incredible TD grab for Texas',\n team: '251',\n awayScore: '28',\n homeScore: '34',\n wallClock: '2024-01-01T05:08:14Z',\n displayClock: '7:23',\n shortPeriod: 'Q4',\n scoringPlay: true,\n athlete: '4597500',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226360',\n },\n {\n description: 'How did Penix drop this pass in to Odunze?',\n team: '264',\n wallClock: '2024-01-01T05:17:15Z',\n displayClock: '3:48',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226394',\n },\n {\n description:\n \"Jordan Whittington's big catch gives Texas good field position\",\n team: '251',\n wallClock: '2024-01-01T05:41:48Z',\n displayClock: '0:28',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4889929',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226506',\n },\n {\n description:\n \"Washington survives Texas' final drive to win Sugar Bowl\",\n team: '264',\n wallClock: '2024-01-02T04:43:41Z',\n displayClock: '0:00',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4889929',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226585',\n },\n ],\n },\n ],\n};\n\nexport const BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK =\n 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL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tdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==';\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./ScrollableGradient.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport './ScrollableGradient.styles.css';\n\ninterface ScrollableGradientProps {\n scrolled: boolean;\n children?: React.ReactNode;\n}\n\nclass ScrollableGradient extends React.Component<\n ScrollableGradientProps\n> {\n constructor(props: ScrollableGradientProps) {\n super(props);\n }\n\n render() {\n const className = [\n 'scrollable-gradient',\n this.props.scrolled ? 'scroll-container-scrolled' : '',\n ].join(' ');\n\n return <div className={className}>{this.props.children}</div>;\n }\n}\n\nexport default ScrollableGradient;\n","import ScrollableGradient from './ScrollableGradient';\n\nexport default ScrollableGradient;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlaysView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import BaseButton from './BaseButton';\n\nexport default BaseButton;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./ActionButton.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import BaseButton from '@/components/atoms/BaseButton';\nimport './ActionButton.styles.css';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\nimport React from 'react';\n\nclass ActionButton extends React.Component<WithFocusableProps, {}> {\n render() {\n return (\n <BaseButton className=\"action-button T05_ALT\" {...this.props}>\n {this.props.children}\n </BaseButton>\n );\n }\n}\n\nexport default withFocusable()(ActionButton);\n","import ActionButton from './ActionButton';\n\nexport default ActionButton;\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlayErrorStateView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import ActionButton from '@/components/molecules/ActionButton';\nimport { KeyPlaysErrorState } from '../interfaces/IKeyPlays';\nimport './KeyPlayErrorStateView.styles.css';\nimport React from 'react';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\n\ntype Props = {\n errorState: KeyPlaysErrorState;\n onRetry: () => void;\n};\n\nclass UnpopulatedEvent extends React.Component {\n render() {\n return (\n <div className=\"sdk--key-play-error-state-unpopulatedEvent\">\n <div className=\"main-content\">\n <h3 className=\"T70\">Greatness takes time.</h3>\n <p className=\"T20\">\n Key plays are still in the making! Come back soon to check 'em\n out.\n </p>\n </div>\n <div className=\"unpopulatedEvent-examples\">\n {Array.from({ length: 4 }).map((_, i) => (\n <div key={i} className=\"example\" />\n ))}\n </div>\n </div>\n );\n }\n}\n\nclass UnsupportedEvent extends React.Component {\n render() {\n return (\n <div className=\"sdk--key-play-error-state-unsupportedEvent\">\n <h3 className=\"T70\">No Key Plays Available</h3>\n <svg\n viewBox=\"0 0 520 359\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g opacity=\"0.16\">\n <path\n d=\"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z\"\n fill=\"#6D6D6D\"\n />\n <rect\n x=\"94.6687\"\n y=\"219.427\"\n width=\"51.6662\"\n height=\"25.259\"\n fill=\"#777777\"\n />\n <rect\n x=\"145.187\"\n y=\"39.1694\"\n width=\"20.6665\"\n height=\"149.258\"\n fill=\"#666666\"\n />\n <path\n d=\"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z\"\n fill=\"#666666\"\n />\n <path\n d=\"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z\"\n fill=\"#6D6D6D\"\n />\n <rect\n width=\"51.6662\"\n height=\"25.259\"\n transform=\"matrix(-1 0 0 1 427.055 219.427)\"\n fill=\"#777777\"\n />\n <rect\n width=\"20.6665\"\n height=\"149.258\"\n transform=\"matrix(-1 0 0 1 376.537 39.1694)\"\n fill=\"#666666\"\n />\n <path\n d=\"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z\"\n fill=\"#666666\"\n />\n <path\n d=\"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z\"\n fill=\"#B1B1B1\"\n />\n <rect\n x=\"23.4844\"\n y=\"141.354\"\n width=\"473.033\"\n height=\"19.5183\"\n fill=\"#777777\"\n />\n <rect\n x=\"72.8545\"\n y=\"51.7993\"\n width=\"374.293\"\n height=\"45.9255\"\n fill=\"#CDCDCD\"\n />\n </g>\n </svg>\n </div>\n );\n }\n}\n\nclass SimpleTabLoadFailure extends React.Component<WithFocusableProps> {\n render() {\n const { focused } = this.props;\n\n return (\n <div\n className=\"sdk--key-play-error-state-tabLoadFailure\"\n style={{\n borderColor: focused ? 'var(--sdk-highlightPrimary)' : 'transparent',\n }}\n >\n <h3 className=\"T70\">Let's try that again...</h3>\n <p className=\"T20\">{\"We're having trouble loading this.\"}</p>\n <ActionButton\n data-focused={focused}\n onEnterPress={this.props.onEnterPress}\n >\n Refresh\n </ActionButton>\n </div>\n );\n }\n}\n\nconst TabLoadFailure = withFocusable()(SimpleTabLoadFailure);\n\nclass KeyPlayErrorStateView extends React.Component<Props, {}> {\n render() {\n const { errorState, onRetry } = this.props;\n\n if (errorState === 'unsupportedEvent') {\n return <UnsupportedEvent />;\n }\n\n if (errorState === 'unpopulatedEvent') {\n return <UnpopulatedEvent />;\n }\n\n if (errorState === 'tabLoadFailure') {\n return <TabLoadFailure onEnterPress={onRetry} />;\n }\n\n return null;\n }\n}\n\nexport default KeyPlayErrorStateView;\n","import React, { Component } from 'react';\nimport KeyPlayCardView from './KeyPlayCardView';\nimport ScrollableGradient from '@/components/molecules/ScrollableGradient';\nimport './KeyPlaysView.styles.css';\nimport KeyPlayErrorStateView from './KeyPlayErrorStateView';\nimport SDK from '@/index';\nimport IKeyPlay, { KeyPlaysErrorState } from '../interfaces/IKeyPlays';\nimport KeyPlaysViewModel from '../view-model/KeyPlaysViewModel';\nimport { setFocus } from '@/external/spatial-navigation';\n\nconst STICKY_HEADER_HEIGHT = 32;\n\ntype Unsubscribe = () => void;\n\ninterface IKeyPlayItem {\n id: string;\n clipID: string;\n awayTeamScore?: number;\n homeTeamScore?: number;\n awayTeamName: string;\n homeTeamName: string;\n description: string;\n playerImageUrl: string;\n teamImageUrl: string;\n thumbnailImageUrl: string;\n}\n\ninterface IKeyPlaySection {\n title: string;\n items: IKeyPlayItem[];\n}\n\ninterface IKeyPlaysState {\n scrolled: boolean;\n playbackProgress: number | null;\n playbackIndex: number | null;\n items: IKeyPlaySection[];\n}\n\nexport class KeyPlays extends Component<{}, IKeyPlaysState> {\n private container: HTMLDivElement | null = null;\n private refsMap: Record<number, HTMLDivElement | null> = {};\n private playbackProgressUnsub: Unsubscribe | null = null;\n private playbackIndexUnsub: Unsubscribe | null = null;\n private itemsUnsub: Unsubscribe | null = null;\n private vm: KeyPlaysViewModel;\n\n constructor(props: {}) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n\n const rawSections = this.vm.items.value as {\n title: string;\n items: IKeyPlay[];\n }[];\n this.state = {\n scrolled: false,\n playbackProgress: this.vm.currentClipPlaybackProgress.value ?? null,\n playbackIndex: this.vm.currentlyPlayingClipIndex.value ?? null,\n items: rawSections.map((section) => ({\n title: section.title,\n items: section.items.map((item) => ({\n id: item.id,\n clipID: item.clipID,\n awayTeamScore: item.awayTeamScore,\n homeTeamScore: item.homeTeamScore,\n awayTeamName: item.awayTeamName,\n homeTeamName: item.homeTeamName,\n description: item.description,\n playerImageUrl: item.playerImageUrl || '',\n teamImageUrl: item.teamImageUrl || '',\n thumbnailImageUrl: item.thumbnailImageUrl || '',\n })),\n })),\n };\n }\n\n componentDidMount() {\n this.playbackProgressUnsub = this.vm.currentClipPlaybackProgress.subscribe(\n (value) => {\n this.setState({ playbackProgress: value ?? null });\n }\n );\n this.playbackIndexUnsub = this.vm.currentlyPlayingClipIndex.subscribe(\n (value) => {\n this.setState({ playbackIndex: value ?? null });\n }\n );\n this.itemsUnsub = this.vm.items.subscribe((rawSections) => {\n this.setState({\n items: (rawSections as { title: string; items: IKeyPlay[] }[]).map(\n (section) => ({\n title: section.title,\n items: section.items.map((item) => ({\n id: item.id,\n clipID: item.clipID,\n awayTeamScore: item.awayTeamScore,\n homeTeamScore: item.homeTeamScore,\n awayTeamName: item.awayTeamName,\n homeTeamName: item.homeTeamName,\n description: item.description,\n playerImageUrl: item.playerImageUrl || '',\n teamImageUrl: item.teamImageUrl || '',\n thumbnailImageUrl: item.thumbnailImageUrl || '',\n })),\n })\n ),\n });\n });\n }\n\n componentWillUnmount() {\n this.playbackProgressUnsub && this.playbackProgressUnsub();\n this.playbackIndexUnsub && this.playbackIndexUnsub();\n this.itemsUnsub && this.itemsUnsub();\n }\n\n private handlePlayClip = (index: number) => async () => {\n await this.vm.playKeyPlay(index);\n };\n\n private handleItemFocus = (index: number) => (node: any) => {\n if (!this.container || !node.node) return;\n\n const containerRect = this.container.getBoundingClientRect();\n const nodeRect = node.node.getBoundingClientRect();\n\n const indexes = Object.keys(this.refsMap)\n .map((key) => parseInt(key, 10))\n .sort((a, b) => a - b)\n .slice(index);\n\n let hasOutside = false;\n indexes.forEach((i) => {\n const el = this.refsMap[i];\n if (!el) return;\n const rect = el.getBoundingClientRect();\n if (rect.bottom > containerRect.bottom || rect.top < containerRect.top) {\n hasOutside = true;\n }\n });\n\n if (!hasOutside) return;\n\n const target =\n index === 0\n ? 0\n : this.container.scrollTop +\n (nodeRect.top - containerRect.top - STICKY_HEADER_HEIGHT);\n this.container.scrollTop = target;\n this.setState({ scrolled: target > 0 });\n };\n\n private setRef = (index: number) => (ref: HTMLDivElement | null) => {\n if (ref) this.refsMap[index] = ref;\n else delete this.refsMap[index];\n };\n\n render() {\n const { scrolled, playbackProgress, playbackIndex, items } = this.state;\n\n return (\n <ScrollableGradient scrolled={scrolled}>\n <div\n ref={(el) => {\n this.container = el;\n }}\n className=\"key-plays-view\"\n >\n {items.map((section, sectionIndex) => (\n <div key={`section-${sectionIndex}`} className=\"key-plays-section\">\n <h3 className=\"key-plays-section-title T10\">{section.title}</h3>\n <div className=\"key-plays-section-items\">\n {section.items.map((item) => {\n const absoluteIndex = this.vm.allItems.findIndex(\n (vmItem) => vmItem.id === item.id\n );\n return (\n <KeyPlayCardView\n key={item.id}\n id={item.id}\n clipID={item.clipID}\n description={item.description}\n awayTeamName={item.awayTeamName}\n homeTeamName={item.homeTeamName}\n awayTeamScore={item.awayTeamScore}\n homeTeamScore={item.homeTeamScore}\n playerImageUrl={item.playerImageUrl}\n teamImageUrl={item.teamImageUrl}\n thumbnailImageUrl={item.thumbnailImageUrl}\n isPlaying={this.vm.isCurrentlyPlaying(absoluteIndex)}\n isScoring={Boolean(\n item.awayTeamScore && item.homeTeamScore\n )}\n playbackProgress={\n absoluteIndex === playbackIndex\n ? playbackProgress\n : null\n }\n onEnterPress={this.handlePlayClip(absoluteIndex)}\n onBecameFocused={this.handleItemFocus(absoluteIndex)}\n setRef={this.setRef(absoluteIndex)}\n />\n );\n })}\n </div>\n </div>\n ))}\n <div className=\"key-plays-bottom-padding\" />\n </div>\n </ScrollableGradient>\n );\n }\n}\n\ninterface KeyPlaysWithErrorStateState {\n errorState: KeyPlaysErrorState;\n}\n\nexport default class KeyPlaysWithErrorState extends Component<\n {},\n KeyPlaysWithErrorStateState\n> {\n private errorStateUnsub: Unsubscribe | null = null;\n private vm: KeyPlaysViewModel;\n\n constructor(props: {}) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n this.state = { errorState: this.vm.errorState.value as KeyPlaysErrorState };\n }\n\n componentDidMount() {\n this.errorStateUnsub = this.vm.errorState.subscribe((value) => {\n this.setState({ errorState: value as KeyPlaysErrorState });\n });\n }\n\n componentWillUnmount() {\n this.errorStateUnsub && this.errorStateUnsub();\n }\n\n private handleRetry = async () => {\n await this.vm.userRequestedNewKeyPlaysData();\n setFocus('PANEL_NAV_BUTTON_0');\n };\n\n render() {\n const { errorState } = this.state;\n\n if (errorState) {\n return (\n <KeyPlayErrorStateView\n errorState={errorState}\n onRetry={this.handleRetry}\n />\n );\n }\n\n return <KeyPlays />;\n }\n}\n","import React from 'react';\nimport { PanelManagerViewModel } from '@/view-models/PanelManagerViewModel';\nimport './PanelManager.styles.css';\nimport PanelNavigation from '@/components/organisms/PanelNavigation';\nimport { MaestroPanelType } from '@/models/IPanel';\nimport KeyPlaysView from '@/modules/key-plays/view/KeyPlaysView';\n\nconst panelManagerViewModel = new PanelManagerViewModel();\n\nconst PANELS_MAP: Record<MaestroPanelType, React.ReactNode> = {\n keyPlays: <KeyPlaysView />,\n bets: <div className=\"panel-coming-soon T02\">Bets - Coming Soon</div>,\n stats: <div className=\"panel-coming-soon T02\">Stats - Coming Soon</div>,\n fantasy: <div className=\"panel-coming-soon T02\">Fantasy - Coming Soon</div>,\n};\n\ninterface PanelManagerState {\n activePanel: MaestroPanelType;\n}\n\nclass PanelManager extends React.Component<{}, PanelManagerState> {\n private unsubscribe: (() => void) | null = null;\n\n constructor(props: {}) {\n super(props);\n this.state = {\n activePanel: panelManagerViewModel.currentPanel,\n };\n }\n\n componentDidMount() {\n // Subscribe to changes in the view model\n this.unsubscribe = panelManagerViewModel.currentPanelObservable.subscribe(\n () => {\n this.setState({ activePanel: panelManagerViewModel.currentPanel });\n }\n );\n }\n\n componentWillUnmount() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n }\n }\n\n render() {\n const { activePanel } = this.state;\n\n const PANEL_ITEMS: {\n title: string;\n onEnter: () => void;\n iconName: MaestroPanelType;\n active: boolean;\n }[] = [\n {\n iconName: 'keyPlays',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'keyPlays';\n },\n title: 'KEY PLAYS',\n active: activePanel === 'keyPlays',\n },\n {\n iconName: 'bets',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'bets';\n },\n title: 'BETS',\n active: activePanel === 'bets',\n },\n {\n iconName: 'stats',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'stats';\n },\n title: 'STATS',\n active: activePanel === 'stats',\n },\n {\n iconName: 'fantasy',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'fantasy';\n },\n title: 'FANTASY',\n active: activePanel === 'fantasy',\n },\n ];\n\n return (\n <div className=\"sdk--panel-manager\">\n <PanelNavigation items={PANEL_ITEMS} />\n <div className=\"sdk--panel-wrapper\">{PANELS_MAP[activePanel]}</div>\n </div>\n );\n }\n}\n\nexport default PanelManager;\n","import PanelManager from './PanelManager';\n\nexport default PanelManager;\n","import IModel from './IModel';\n\ntype ObjectValues<T> = T[keyof T];\n\nexport default interface ITheme extends IModel {\n button: IThemeButton;\n channelOfflineThumbnail?: string;\n colors: IThemeColors;\n creator: string;\n desktopBackground?: string;\n icon?: string;\n logo?: string;\n mobileBackground?: string;\n mode?: ThemeModes;\n name: string;\n owner: string;\n siteId?: string;\n type: ThemeTypes;\n typography: IThemeTypography;\n}\n\nexport interface IThemeColors {\n accentPrimary: string;\n accentSecondary: string;\n accentTertiary: string;\n alertConfirmation: string;\n alertError: string;\n alertWarning: string;\n highlightPrimary: string;\n highlightSecondary: string;\n highlightTertiary: string;\n surface1: string;\n surface2: string;\n surface3: string;\n surface4: string;\n surface5: string;\n surface6: string;\n text100: string;\n text200: string;\n text300: string;\n text400: string;\n text500: string;\n}\n\nexport interface IThemeButton {\n borderRadius: BorderRadius;\n textCapitalization: TextCapitalization;\n}\n\nexport interface IThemeTypography {\n body: string;\n headline: string;\n}\n\nexport interface IClassicThemeOptions {\n accentPrimary: string;\n accentSecondary: string;\n}\n\nexport const BORDER_RADIUS = {\n rounded: 'rounded',\n square: 'square',\n pill: 'pill',\n} as const;\nexport type BorderRadius = ObjectValues<typeof BORDER_RADIUS>;\n\nexport const TEXT_CAPITALIZATION = {\n lowercase: 'lowercase',\n original: 'original',\n uppercase: 'uppercase',\n} as const;\nexport type TextCapitalization = ObjectValues<typeof TEXT_CAPITALIZATION>;\n\nexport const THEME_TYPES = {\n ADMIN: 'admin',\n ADVANCED: 'advanced',\n CLASSIC: 'classic',\n CUSTOM: 'custom',\n} as const;\nexport type ThemeTypes = ObjectValues<typeof THEME_TYPES>;\n\nexport const THEME_MODES = {\n DARK: 'dark',\n LIGHT: 'light',\n} as const;\nexport type ThemeModes = ObjectValues<typeof THEME_MODES>;\n","import ITheme, {\n BORDER_RADIUS,\n TEXT_CAPITALIZATION,\n THEME_MODES,\n THEME_TYPES,\n} from '@/models/ITheme';\n\nconst FONT_FAMILY = 'BentonSans-Medium';\n\nexport const DARK_THEME: ITheme = {\n _id: '6274067af74b66a544018dac',\n button: {\n borderRadius: BORDER_RADIUS.rounded,\n textCapitalization: TEXT_CAPITALIZATION.uppercase,\n },\n colors: {\n // Accent colors\n accentPrimary: '#FFFFFF',\n\n // Secondary accent colors\n accentSecondary: '#3C3F47',\n\n // Tertiary accent colors\n accentTertiary: '#0C0C0E',\n\n // Surface Colors\n surface1: '#080A0C',\n surface2: '#12141A',\n surface3: '#1B1E26',\n surface4: '#242833',\n surface5: '#363C4D',\n surface6: '#3E4759',\n\n // Highlight colors\n highlightPrimary: '#FFFFFF',\n highlightSecondary: '#9A9EA9',\n highlightTertiary: '#0A0C0F',\n\n // Alert colors\n alertConfirmation: '#43D48F',\n alertWarning: '#F58B00',\n alertError: '#FF0000',\n\n // Text colors\n text100: '#F8F9FA',\n text200: '#C2C5CB',\n text300: '#8D919D',\n text400: '#5C606B',\n text500: '#0C0C0E',\n },\n creator: '016901e60000000000000000',\n name: 'Dark Mode',\n type: THEME_TYPES.CLASSIC,\n mode: THEME_MODES.DARK,\n owner: '016901e60000000000000000',\n typography: {\n body: FONT_FAMILY,\n headline: FONT_FAMILY,\n },\n};\n","import api from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./App.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { DARK_THEME } from '@/services/ThemeManager/constants';\nimport './App.styles.css';\n\nconst colors = DARK_THEME.colors;\nconst typography = DARK_THEME.typography;\n\nclass App extends React.Component<{ children?: React.ReactNode }> {\n componentDidMount() {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-${key}`,\n colors[key as keyof typeof DARK_THEME.colors]\n );\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-font-${key}`,\n typography[key as keyof typeof DARK_THEME.typography]\n );\n });\n }\n\n componentWillUnmount() {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-${key}`);\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-font-${key}`);\n });\n }\n\n render() {\n return <div className=\"sdk-wrapper\">{this.props.children}</div>;\n }\n}\n\nexport default App;\n","import App from './App';\n\nexport default App;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://MaestroWebSDK/webpack/universalModuleDefinition","webpack://MaestroWebSDK/webpack/bootstrap","webpack://MaestroWebSDK/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"preact/compat\",\"amd\":\"react\"}","webpack://MaestroWebSDK/./src/helpers/Observable.ts","webpack://MaestroWebSDK/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://MaestroWebSDK/./node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://MaestroWebSDK/./node_modules/css-loader/dist/runtime/api.js","webpack://MaestroWebSDK/./src/external/spatial-navigation/index.ts","webpack://MaestroWebSDK/./node_modules/prop-types/index.js","webpack://MaestroWebSDK/./src/external/spatial-navigation/measureLayout.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/visualDebugger.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/spatialNavigation.ts","webpack://MaestroWebSDK/./src/external/spatial-navigation/utils.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view-model/KeyPlaysViewModel.ts","webpack://MaestroWebSDK/./src/view-models/MaestroEventViewModel.ts","webpack://MaestroWebSDK/./src/view-models/ViewModel.ts","webpack://MaestroWebSDK/./src/view-models/index.ts","webpack://MaestroWebSDK/./src/external/ReactRenderer.tsx","webpack://MaestroWebSDK/./src/index.tsx","webpack://MaestroWebSDK/external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"preact/compat\",\"amd\":\"react-dom\"}","webpack://MaestroWebSDK/./src/models/IPanel.ts","webpack://MaestroWebSDK/./src/view-models/PanelManagerViewModel.ts","webpack://MaestroWebSDK/./src/components/core/App/App.styles.css","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.styles.css","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.styles.css","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.styles.css","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.styles.css","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.styles.css","webpack://MaestroWebSDK/./src/external/spatial-navigation/withFocusable.ts","webpack://MaestroWebSDK/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://MaestroWebSDK/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.styles.css?19b3","webpack://MaestroWebSDK/./src/components/atoms/BaseButton/BaseButton.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/KeyPlaysIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/PlayIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/BetsIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/StatsIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/FantasyIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/WarningIcon.tsx","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/Icon.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.styles.css?a32d","webpack://MaestroWebSDK/./src/helpers/withRemoteControl.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/PanelNavButton.tsx","webpack://MaestroWebSDK/./src/components/molecules/PanelNavButton/index.ts","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.styles.css?c470","webpack://MaestroWebSDK/./src/helpers/deliver-focus.ts","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/PanelNavigation.tsx","webpack://MaestroWebSDK/./src/components/organisms/PanelNavigation/index.ts","webpack://MaestroWebSDK/./src/components/atoms/Image/index.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.styles.css?8b72","webpack://MaestroWebSDK/./src/components/atoms/SvgIcon/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardScoreTagView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayCardView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/constants.ts","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css?21bd","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/ScrollableGradient.tsx","webpack://MaestroWebSDK/./src/components/molecules/ScrollableGradient/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.styles.css?8543","webpack://MaestroWebSDK/./src/components/atoms/BaseButton/index.ts","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.styles.css?1741","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/ActionButton.tsx","webpack://MaestroWebSDK/./src/components/molecules/ActionButton/index.ts","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css?72fb","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlayErrorStateView.tsx","webpack://MaestroWebSDK/./src/modules/key-plays/view/KeyPlaysView.tsx","webpack://MaestroWebSDK/./src/components/core/PanelManager/PanelManager.tsx","webpack://MaestroWebSDK/./src/components/core/PanelManager/index.tsx","webpack://MaestroWebSDK/./src/models/ITheme.ts","webpack://MaestroWebSDK/./src/services/ThemeManager/constants.ts","webpack://MaestroWebSDK/./src/components/core/App/App.styles.css?e712","webpack://MaestroWebSDK/./src/components/core/App/App.tsx","webpack://MaestroWebSDK/./src/components/core/App/index.ts"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__9__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Observable","constructor","initialValue","_defineProperty","_value","newValue","notify","subscribe","listener","listeners","push","filter","forEach","memo","isOldIE","Boolean","window","document","all","atob","getTarget","target","styleTarget","querySelector","HTMLIFrameElement","contentDocument","head","e","stylesInDom","getIndexByIdentifier","identifier","result","length","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","index","obj","css","media","sourceMap","references","updater","addStyle","insertStyleElement","style","createElement","attributes","nonce","keys","setAttribute","insert","Error","appendChild","textStore","replaceText","replacement","join","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","applyToTag","removeAttribute","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","singleton","singletonCounter","update","styleIndex","parentNode","removeStyleElement","newObj","lastIdentifiers","newList","toString","newLastIdentifiers","_i","_index","splice","_slicedToArray","arr","Array","isArray","_arrayWithHoles","iterator","_s","_e","_arr","_n","_d","next","done","err","_iterableToArrayLimit","minLen","_arrayLikeToArray","slice","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","_item","content","cssMapping","base64","data","sourceMapping","sourceURLs","sources","map","source","sourceRoot","cssWithMappingToString","mediaQuery","dedupe","alreadyImportedModules","destroy","pause","resume","setFocus","init","setKeyMap","SpatialNavigation","getRect","node","offsetParent","height","offsetHeight","width","offsetWidth","left","offsetLeft","top","offsetTop","nodeType","scrollLeft","scrollTop","measureLayout","callback","relativeNode","relativeRect","hasDOM","WIDTH","innerWidth","HEIGHT","innerHeight","VisualDebugger","debugCtx","createCanvas","layoutsCtx","zIndex","canvas","ctx","getContext","body","clear","clearRect","clearLayouts","drawLayout","layout","focusKey","parentFocusKey","strokeStyle","strokeRect","font","fillStyle","fillText","drawPoint","x","y","color","size","lineWidth","ROOT_FOCUS_KEY","DEFAULT_KEY_MAP","DEBUG_FN_COLORS","THROTTLE_OPTIONS","leading","trailing","throttle","func","wait","timeout","previous","args","now","Date","remaining","clearTimeout","apply","setTimeout","sortBy","array","iteratee","sort","a","b","aValue","bValue","first","findKey","predicate","find","difference","values","includes","isVertical","isIncremental","isSibling","itemX","itemY","itemWidth","itemHeight","coordinate","itemSize","direction","refCorners","siblingCorners","isVerticalDirection","refA","refB","siblingA","siblingB","refCoordinateA","refCoordinateB","siblingCoordinateA","siblingCoordinateB","thresholdDistance","Math","max","min","abs","distancesToCompare","sortSiblingsByPriority","siblings","currentLayout","_focusKey","getRefCorners","aCorners","bCorners","aIsAdjacentSlice","isAdjacentSlice","bIsAdjacentSlice","aPrimaryAxisFunction","getPrimaryAxisDistance","getSecondaryAxisDistance","bPrimaryAxisFunction","aSecondaryAxisFunction","bSecondaryAxisFunction","aPrimaryAxisDistance","bPrimaryAxisDistance","focusableComponents","parentsHavingFocusedChild","enabled","nativeMode","throttleKeypresses","pressedKeys","paused","keyDownEventListener","keyUpEventListener","keyMap","debug","visualDebugger","logIndex","onKeyEvent","updateAllLayouts","navigateByDirection","visualDebug","Number","isInteger","bindEventHandlers","startDrawLayouts","draw","requestAnimationFrame","_this$visualDebugger","entries","component","_this$visualDebugger2","unbindEventHandlers","getEventType","keyCode","getKeyMap","code","addEventListener","keyDownHandler","event","eventType","preventDefault","stopPropagation","details","onEnterPress","_this$visualDebugger3","onArrowPress","log","_this$keyDownEventLis","_this$keyDownEventLis2","cancel","onEnterRelease","removeEventListener","_component$onEnterPre","focusable","onEnterPressHandler","_component$onEnterRel","onEnterReleaseHandler","_component$onArrowPre","onArrowPressHandler","validDirections","smartNavigate","_this$visualDebugger4","fromParentFocusKey","layoutUpdated","currentComponent","undefined","updateLayout","isIncrementalDirection","currentCutoffCoordinate","getCutoffCoordinate","siblingCutoffCoordinate","sortedSiblings","nextComponent","saveLastFocusedChildKey","lastFocusedChildKey","functionName","debugString","rest","console","getNextFocusKey","targetFocusKey","targetComponent","trackChildren","children","preferredChildFocusKey","forgetLastFocusedChild","isParticipatingFocusableComponent","childKey","childrenClosestToOrigin","getChildClosestToOrigin","addFocusable","onBecameFocusedHandler","onBecameBlurredHandler","onUpdateFocus","onUpdateHasFocusedChild","autoRestoreFocus","blockNavigationOut","removeFocusable","componentToRemove","Reflect","deleteProperty","parentComponent","isFocused","getNodeLayoutByFocusKey","setCurrentFocusedKey","newFocusKey","isFocusableComponent","_oldComponent$onUpdat","_oldComponent$onBecam","oldComponent","_newComponent$onUpdat","_newComponent$onBecam","newComponent","updateParentsHasFocusedChild","parents","currentParentFocusKey","parentsToRemoveFlag","parentsToAddFlag","_parentComponent$onUp","onIntermediateNodeBecameBlurred","_parentComponent$onUp2","onIntermediateNodeBecameFocused","updateParentsLastFocusedChild","_this$focusableCompon","_this$focusableCompon2","_this$focusableCompon3","_this$focusableCompon4","lastFocusedKey","updateFocusable","isNativeMode","getFocusableComponents","getFocusableComponentsByParentFocusKey","KeyPlaysViewModel","isCurrentlyPlaying","currentlyPlayingClipIndex","items","parseNetworkResponse","cleanErrors","errorState","allItems","atIndex","SDK","getMaestroEventViewModel","delegate","playClip","response","teams","entities","team","athletes","athlete","homeTeam","homeAway","awayTeam","section","sections","keyPlay","playTeam","teamImageUrl","logoRef","playerImageUrl","headshot","thumbnailImageUrl","thumbnailType","thumbnail","homeScore","awayScore","homeTeamScore","scoringPlay","parseInt","awayTeamScore","keyPlayData","random","substring","description","homeTeamName","shortName","awayTeamName","clipID","title","sectionTitle","existingSection","reduce","acc","forKeyPlayAtIndex","handleKeyPlayLoadFailure","newFailedClips","failedClips","loadFailureStatus","clearLoadFailureStatus","mevm","userRequestedNewKeyPlaysData","MaestroEventViewModel","_isLoading","_error","setLoading","loading","setError","error","eventId","super","_eventId","deinit","updateKeyPlaysData","keyPlaysViewModel","setKeyPlays","startFocusManagement","Promise","resolve","didStartPlayingClip","lastPlayedClipIndex","currentClipPlaybackProgress","didStopPlayingClip","didFailToPlayClip","didUpdatePlaybackProgressOfClip","to","didShowPanel","isShowingPanel","didShowOverlay","didHideOverlay","currentEventDoesNotSupportKeyPlays","getCurrentEventID","getCurrentlyPlayingClipIndex","getLastPlayedClipIndex","getCurrentClipPlaybackProgress","getKeyPlaysCount","_title","_isLive","_isShowingPanel","MaestroViewModels","eventViewModel","panelManagerViewModel","PanelManagerViewModel","ReactRenderer","Map","viewModels","fromEventId","renderer","getRenderer","App","default","PanelManager","render","React","unmount","renderersMap","delete","has","el","getElementById","ReactDOM","unmountComponentAtNode","set","AUTHORIZED_CLIENTS","MaestroWebSDK","eventID","isAuthorizedClient","maestroEventViewModel","userDidStopWatchingEvent","authenticateUser","_","__","deauthenticateUser","instance","configure","configParams","siteID","setSiteID","jwt","setJwt","info","getSiteID","getJwt","setUserID","userID","getUserID","setViewModels","renderPanel","getInstance","MaestroPanelType","KEY_PLAYS","STATS","FANTASY","BETS","_panels","_currentPanel","_newlyFocusedPanel","getIndex","forPanelType","panels","findIndex","getPanelType","currentIndex","currentPanel","___CSS_LOADER_EXPORT___","noop","withFocusable","configForgetLastFocusedChild","configTrackChildren","configAutoRestoreFocus","configBlockNavigationOut","WrappedComponent","_WithFocusable","Component","prefix","realFocusKey","props","substr","focused","hasFocusedChild","state","setState","onBecameFocused","onBecameBlurred","getChildContext","componentDidMount","domNode","findDOMNode","componentDidUpdate","componentWillUnmount","filteredProps","omit","stealFocus","PropTypes","string","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","getShim","isRequired","ReactPropTypes","bigint","bool","number","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","locals","ButtonStyle","borderRadius","display","justifyContent","alignItems","cursor","border","BaseButton","_extends","KeyPlaysIcon","viewBox","fill","xmlns","PlayIcon","fillRule","clipRule","BetsIcon","StatsIcon","clipPath","FantasyIcon","WarningIcon","iconImports","keyPlays","play","bets","stats","fantasy","warning","Skeleton","Icon","iconName","IconComponent","withRemoteControl","onBackPressed","onLeftPressed","remoteControlActive","active","prevProps","handleKeyDown","cleanup","PanelNavButton","buttonRef","className","data-focused","ref","deliverFocus","eventVm","dataset","PanelNavigationButton","itemFocused","buttonElement","fn","handleBecameFocused","onEnter","handleBecameBlurred","handleLeftPressed","setButtonRef","PanelNavigation","Image","alt","ScoreCard","KeyPlayCardView","failedClip","src","crossOrigin","vm","failedClipListener","setRef","isPlaying","playbackProgress","isScoring","renderImage","WithRemoteControlKeyPlayCard","KeyPlayCard","ScrollableGradient","scrolled","ActionButton","UnpopulatedEvent","UnsupportedEvent","opacity","transform","SimpleTabLoadFailure","borderColor","TabLoadFailure","KeyPlayErrorStateView","onRetry","KeyPlays","_this$vm$currentClipP","_this$vm$currentlyPla","async","playKeyPlay","container","containerRect","getBoundingClientRect","nodeRect","indexes","refsMap","hasOutside","rect","bottom","rawSections","playbackIndex","playbackProgressUnsub","playbackIndexUnsub","itemsUnsub","sectionIndex","absoluteIndex","vmItem","handlePlayClip","handleItemFocus","KeyPlaysWithErrorState","errorStateUnsub","handleRetry","PANELS_MAP","KeyPlaysView","activePanel","unsubscribe","currentPanelObservable","PANEL_ITEMS","DARK_THEME","_id","button","textCapitalization","colors","accentPrimary","accentSecondary","accentTertiary","surface1","surface2","surface3","surface4","surface5","surface6","highlightPrimary","highlightSecondary","highlightTertiary","alertConfirmation","alertWarning","alertError","text100","text200","text300","text400","text500","creator","type","owner","typography","headline","documentElement","setProperty","removeProperty"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,cAC1B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,gBAAiB,CAAC,QAAS,aAAcJ,GACtB,iBAAZC,QACdA,QAAuB,cAAID,EAAQG,QAAQ,iBAAkBA,QAAQ,kBAErEJ,EAAoB,cAAIC,EAAQD,EAAY,MAAGA,EAAe,UARhE,CASGO,MAAM,SAASC,EAAgCC,GAClD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUV,QAGnC,IAAIC,EAASO,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHZ,QAAS,IAUV,OANAa,EAAQH,GAAUI,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASS,GAG/DR,EAAOW,GAAI,EAGJX,EAAOD,QA0Df,OArDAS,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASjB,EAASkB,EAAMC,GAC3CV,EAAoBW,EAAEpB,EAASkB,IAClCG,OAAOC,eAAetB,EAASkB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASzB,GACX,oBAAX0B,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAetB,EAAS0B,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAetB,EAAS,aAAc,CAAE4B,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAM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,SAAU,UACVC,SAAU,UACVC,SAAU,UACVC,SAAU,UACVC,SAAU,UACVC,SAAU,UAGVC,iBAAkB,UAClBC,mBAAoB,UACpBC,kBAAmB,UAGnBC,kBAAmB,UACnBC,aAAc,UACdC,WAAY,UAGZC,QAAS,UACTC,QAAS,UACTC,QAAS,UACTC,QAAS,UACTC,QAAS,WAEXC,QAAS,2BACTtxB,KAAM,YACNuxB,KDwBS,UCvBT3wB,KD6BM,OC5BN4wB,MAAO,2BACPC,WAAY,CACVllB,KAjDgB,oBAkDhBmlB,SAlDgB,sB,4BCJhB9tB,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEP,IAAI,IAASA,GAIX,IAAQykB,OCRvB,MAAM4H,EAASJ,EAAWI,OACpBwB,EAAa5B,EAAW4B,WAE9B,MAAMtQ,UAAYI,IAAM4D,UACtBY,oBACE5lB,OAAO8E,KAAKgrB,GAAQ5tB,QAASrB,IAC3B0B,SAASivB,gBAAgB9sB,MAAM+sB,YAC7B,SAAS5wB,EACTivB,EAAOjvB,MAIXb,OAAO8E,KAAKwsB,GAAYpvB,QAASrB,IAC/B0B,SAASivB,gBAAgB9sB,MAAM+sB,YAC7B,cAAc5wB,EACdywB,EAAWzwB,MAKjBmlB,uBACEhmB,OAAO8E,KAAKgrB,GAAQ5tB,QAASrB,IAC3B0B,SAASivB,gBAAgB9sB,MAAMgtB,eAAe,SAAS7wB,KAGzDb,OAAO8E,KAAKwsB,GAAYpvB,QAASrB,IAC/B0B,SAASivB,gBAAgB9sB,MAAMgtB,eAAe,cAAc7wB,KAIhEsgB,SACE,OAAOC,IAAAzc,cAAA,OAAKkmB,UAAU,eAAe7rB,KAAKmmB,MAAM/N,WAIrC4J,QCrCAA","file":"maestro-web-sdk.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"MaestroWebSDK\", [\"react\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MaestroWebSDK\"] = factory(require(\"preact/compat\"), require(\"preact/compat\"));\n\telse\n\t\troot[\"MaestroWebSDK\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__9__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/**\n * Basic observable implementation for view models\n */\nexport class Observable<T> {\n private listeners: ((value: T) => void)[] = [];\n private _value: T;\n\n constructor(initialValue: T) {\n this._value = initialValue;\n }\n\n get value(): T {\n return this._value;\n }\n\n set value(newValue: T) {\n this._value = newValue;\n this.notify();\n }\n\n subscribe(listener: (value: T) => void): () => void {\n this.listeners.push(listener);\n\n // Return unsubscribe function\n return () => {\n this.listeners = this.listeners.filter((l) => l !== listener);\n };\n }\n\n private notify(): void {\n this.listeners.forEach((listener) => listener(this._value));\n }\n}\n","\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && typeof btoa !== 'undefined') {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n // tags it will allow on a page\n\n if (!options.singleton && typeof options.singleton !== 'boolean') {\n options.singleton = isOldIE();\n }\n\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n if (Object.prototype.toString.call(newList) !== '[object Array]') {\n return;\n }\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDom[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDom[_index].references === 0) {\n stylesInDom[_index].updater();\n\n stylesInDom.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","import withFocusable, { WithFocusableProps } from './withFocusable';\nimport SpatialNavigation, { InitOptions, KeyMap } from './spatialNavigation';\n\nconst { destroy, pause, resume, setFocus, init, setKeyMap } = SpatialNavigation;\n\nexport { withFocusable, init, setKeyMap, destroy, pause, resume, setFocus };\nexport type { InitOptions, KeyMap, WithFocusableProps };\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","const ELEMENT_NODE = 1;\n\nconst getRect = (node: any) => {\n let { offsetParent } = node;\n const height = node.offsetHeight;\n const width = node.offsetWidth;\n let left = node.offsetLeft;\n let top = node.offsetTop;\n\n while (offsetParent && offsetParent.nodeType === ELEMENT_NODE) {\n left += offsetParent.offsetLeft - offsetParent.scrollLeft;\n top += offsetParent.offsetTop - offsetParent.scrollTop;\n ({ offsetParent } = offsetParent);\n }\n\n return {\n height,\n left,\n top,\n width,\n };\n};\n\nconst measureLayout = (\n node: any,\n callback: (\n x: number,\n y: number,\n width: number,\n height: number,\n left: number,\n top: number\n ) => void\n) => {\n const relativeNode = node && node.parentNode;\n\n if (relativeNode) {\n const relativeRect = getRect(relativeNode);\n const { height, left, top, width } = getRect(node);\n const x = left - relativeRect.left;\n const y = top - relativeRect.top;\n\n callback(x, y, width, height, left, top);\n }\n};\n\nexport default measureLayout;\n","// We'll make VisualDebugger no-op for any environments lacking a DOM (e.g. SSR and React Native non-web platforms).\nconst hasDOM = typeof window !== 'undefined' && window.document;\n\nconst WIDTH = hasDOM ? window.innerWidth : 0;\nconst HEIGHT = hasDOM ? window.innerHeight : 0;\n\ninterface Layout {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nclass VisualDebugger {\n private debugCtx: CanvasRenderingContext2D | null;\n private layoutsCtx: CanvasRenderingContext2D | null;\n\n constructor() {\n if (hasDOM) {\n this.debugCtx = VisualDebugger.createCanvas('sn-debug', 1010);\n this.layoutsCtx = VisualDebugger.createCanvas('sn-layouts', 1000);\n } else {\n this.debugCtx = null;\n this.layoutsCtx = null;\n }\n }\n\n static createCanvas(id: string, zIndex: number): CanvasRenderingContext2D {\n const canvas = (document.querySelector(`#${id}`) ||\n document.createElement('canvas')) as HTMLCanvasElement;\n\n canvas.setAttribute('id', id);\n\n const ctx = canvas.getContext('2d');\n if (!ctx) {\n throw new Error('Could not get 2d context from canvas');\n }\n\n canvas.style.cssText = `position: fixed; top: 0; left: 0; z-index: ${zIndex}`;\n\n document.body.appendChild(canvas);\n\n canvas.width = WIDTH;\n canvas.height = HEIGHT;\n\n return ctx;\n }\n\n clear(): void {\n if (!hasDOM || !this.debugCtx) {\n return;\n }\n this.debugCtx.clearRect(0, 0, WIDTH, HEIGHT);\n }\n\n clearLayouts(): void {\n if (!hasDOM || !this.layoutsCtx) {\n return;\n }\n this.layoutsCtx.clearRect(0, 0, WIDTH, HEIGHT);\n }\n\n drawLayout(layout: Layout, focusKey: string, parentFocusKey: string): void {\n if (!hasDOM || !this.layoutsCtx) {\n return;\n }\n this.layoutsCtx.strokeStyle = 'green';\n this.layoutsCtx.strokeRect(\n layout.left,\n layout.top,\n layout.width,\n layout.height\n );\n this.layoutsCtx.font = '8px monospace';\n this.layoutsCtx.fillStyle = 'red';\n this.layoutsCtx.fillText(focusKey, layout.left, layout.top + 10);\n this.layoutsCtx.fillText(parentFocusKey, layout.left, layout.top + 25);\n this.layoutsCtx.fillText(\n `left: ${layout.left}`,\n layout.left,\n layout.top + 40\n );\n this.layoutsCtx.fillText(\n `top: ${layout.top}`,\n layout.left,\n layout.top + 55\n );\n }\n\n drawPoint(\n x: number,\n y: number,\n color: string = 'blue',\n size: number = 10\n ): void {\n if (!hasDOM || !this.debugCtx) {\n return;\n }\n this.debugCtx.strokeStyle = color;\n this.debugCtx.lineWidth = 3;\n this.debugCtx.strokeRect(x - size / 2, y - size / 2, size, size);\n }\n}\n\nexport default VisualDebugger;\n","import measureLayout from './measureLayout';\nimport { Direction, Layout } from './utils';\nimport { DIRECTION_DOWN, KEY_ENTER } from './utils';\nimport { DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP } from './utils';\nimport VisualDebugger from './visualDebugger';\n\nexport const ROOT_FOCUS_KEY = 'SN:ROOT';\n\nconst ADJACENT_SLICE_THRESHOLD = 0.2;\n\n/**\n * Adjacent slice is 5 times more important than diagonal\n */\nconst ADJACENT_SLICE_WEIGHT = 5;\nconst DIAGONAL_SLICE_WEIGHT = 1;\n\n/**\n * Main coordinate distance is 5 times more important\n */\nconst MAIN_COORDINATE_WEIGHT = 5;\n\nexport type KeyType = Direction | typeof KEY_ENTER;\n\nexport interface KeyMap {\n [key: string]: number;\n}\n\nconst DEFAULT_KEY_MAP: KeyMap = {\n [DIRECTION_LEFT]: 37,\n [DIRECTION_UP]: 38,\n [DIRECTION_RIGHT]: 39,\n [DIRECTION_DOWN]: 40,\n [KEY_ENTER]: 13,\n};\n\nconst DEBUG_FN_COLORS = ['#0FF', '#FF0', '#F0F'];\n\nconst THROTTLE_OPTIONS = {\n leading: true,\n trailing: false,\n};\n\ninterface FocusableComponent {\n focusKey: string;\n node: HTMLElement;\n parentFocusKey: string | null;\n onEnterPressHandler?: (details: {\n pressedKeys: Record<string, number>;\n }) => void;\n onEnterReleaseHandler?: () => void;\n onArrowPressHandler?: (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocusedHandler?: (layout: Layout, details: any) => void;\n onBecameBlurredHandler?: (layout: Layout, details: any) => void;\n onUpdateFocus?: (isFocused: boolean) => void;\n onUpdateHasFocusedChild?: (hasFocusedChild: boolean) => void;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n lastFocusedChildKey: string | null;\n preferredChildFocusKey?: string;\n focusable: boolean;\n blockNavigationOut?: boolean;\n autoRestoreFocus?: boolean;\n layout: Layout;\n layoutUpdated: boolean;\n}\n\ninterface Corner {\n x: number;\n y: number;\n}\n\ninterface RefCorners {\n a: Corner;\n b: Corner;\n}\n\nexport interface InitOptions {\n debug?: boolean;\n visualDebug?: boolean;\n nativeMode?: boolean;\n throttle?: number;\n throttleKeypresses?: boolean;\n}\n\ninterface AddFocusableOptions {\n focusKey: string;\n node: HTMLElement;\n parentFocusKey: string | null;\n onEnterPressHandler?: (details: {\n pressedKeys: Record<string, number>;\n }) => void;\n onEnterReleaseHandler?: () => void;\n onArrowPressHandler?: (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocusedHandler?: (layout: Layout, details: any) => void;\n onBecameBlurredHandler?: (layout: Layout, details: any) => void;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n onUpdateFocus?: (isFocused: boolean) => void;\n onUpdateHasFocusedChild?: (hasFocusedChild: boolean) => void;\n preferredChildFocusKey?: string;\n autoRestoreFocus?: boolean;\n focusable?: boolean;\n blockNavigationOut?: boolean;\n}\n\ninterface UpdateFocusableOptions {\n node?: HTMLElement;\n preferredChildFocusKey?: string;\n focusable?: boolean;\n blockNavigationOut?: boolean;\n}\n\nexport const getChildClosestToOrigin = (\n children: FocusableComponent[]\n): FocusableComponent => {\n const childrenClosestToOrigin = sortBy(\n children,\n ({ layout }) => Math.abs(layout.left) + Math.abs(layout.top)\n );\n\n return first(childrenClosestToOrigin) as FocusableComponent;\n};\n\nconst throttle = <T extends (...args: any[]) => any>(\n func: T,\n wait: number,\n options: { leading?: boolean; trailing?: boolean } = {}\n): T => {\n let timeout: number | null = null;\n let previous = 0;\n const { leading = true, trailing = true } = options;\n\n return function (this: any, ...args: Parameters<T>) {\n const now = Date.now();\n if (!previous && !leading) previous = now;\n const remaining = wait - (now - previous);\n\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n func.apply(this, args);\n } else if (!timeout && trailing) {\n timeout = window.setTimeout(() => {\n previous = leading ? Date.now() : 0;\n timeout = null;\n func.apply(this, args);\n }, remaining);\n }\n } as T;\n};\n\nconst sortBy = <T>(array: T[], iteratee: (item: T) => number | string): T[] =>\n [...array].sort((a, b) => {\n const aValue = iteratee(a);\n const bValue = iteratee(b);\n return aValue < bValue ? -1 : aValue > bValue ? 1 : 0;\n });\n\nconst first = <T>(array: T[]): T | undefined => array[0];\n\nconst findKey = <T extends Record<string, any>>(\n object: T,\n predicate: (value: any) => boolean\n): string | undefined =>\n Object.keys(object).find((key) => predicate(object[key]));\n\nconst difference = <T>(array: T[], values: T[]): T[] =>\n array.filter((x) => !values.includes(x));\n\nconst forEach = <T>(\n array: T[],\n iteratee: (item: T, index: number) => void\n): void => array.forEach(iteratee);\n\n/* eslint-disable no-nested-ternary */\nclass SpatialNavigation {\n private focusableComponents: Record<string, FocusableComponent>;\n private focusKey: string | null;\n private parentsHavingFocusedChild: string[];\n private enabled: boolean;\n private nativeMode: boolean;\n private throttle: number;\n private throttleKeypresses: boolean;\n private pressedKeys: Record<string, number>;\n private paused: boolean;\n private keyDownEventListener: ((event: KeyboardEvent) => void) | null;\n private keyUpEventListener: ((event: KeyboardEvent) => void) | null;\n private keyMap: KeyMap;\n private debug: boolean;\n private visualDebugger: VisualDebugger | null;\n private logIndex: number;\n\n /**\n * Used to determine the coordinate that will be used to filter items that are over the \"edge\"\n */\n static getCutoffCoordinate(\n isVertical: boolean,\n isIncremental: boolean,\n isSibling: boolean,\n layout: Layout\n ): number {\n const itemX = layout.left;\n const itemY = layout.top;\n const itemWidth = layout.width;\n const itemHeight = layout.height;\n\n const coordinate = isVertical ? itemY : itemX;\n const itemSize = isVertical ? itemHeight : itemWidth;\n\n return isIncremental\n ? isSibling\n ? coordinate\n : coordinate + itemSize\n : isSibling\n ? coordinate + itemSize\n : coordinate;\n }\n\n /**\n * Returns two corners (a and b) coordinates that are used as a reference points\n * Where \"a\" is always leftmost and topmost corner, and \"b\" is rightmost bottommost corner\n */\n static getRefCorners(\n direction: Direction,\n isSibling: boolean,\n layout: Layout\n ): RefCorners {\n const itemX = layout.left;\n const itemY = layout.top;\n const itemWidth = layout.width;\n const itemHeight = layout.height;\n\n const result: RefCorners = {\n a: {\n x: 0,\n y: 0,\n },\n b: {\n x: 0,\n y: 0,\n },\n };\n\n switch (direction) {\n case DIRECTION_UP: {\n const y = isSibling ? itemY + itemHeight : itemY;\n\n result.a = {\n x: itemX,\n y,\n };\n\n result.b = {\n x: itemX + itemWidth,\n y,\n };\n\n break;\n }\n\n case DIRECTION_DOWN: {\n const y = isSibling ? itemY : itemY + itemHeight;\n\n result.a = {\n x: itemX,\n y,\n };\n\n result.b = {\n x: itemX + itemWidth,\n y,\n };\n\n break;\n }\n\n case DIRECTION_LEFT: {\n const x = isSibling ? itemX + itemWidth : itemX;\n\n result.a = {\n x,\n y: itemY,\n };\n\n result.b = {\n x,\n y: itemY + itemHeight,\n };\n\n break;\n }\n\n case DIRECTION_RIGHT: {\n const x = isSibling ? itemX : itemX + itemWidth;\n\n result.a = {\n x,\n y: itemY,\n };\n\n result.b = {\n x,\n y: itemY + itemHeight,\n };\n\n break;\n }\n\n default:\n break;\n }\n\n return result;\n }\n\n /**\n * Calculates if the sibling node is intersecting enough with the ref node by the secondary coordinate\n */\n static isAdjacentSlice(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): boolean {\n const { a: refA, b: refB } = refCorners;\n const { a: siblingA, b: siblingB } = siblingCorners;\n const coordinate = isVerticalDirection ? 'x' : 'y';\n\n const refCoordinateA = refA[coordinate];\n const refCoordinateB = refB[coordinate];\n const siblingCoordinateA = siblingA[coordinate];\n const siblingCoordinateB = siblingB[coordinate];\n\n const thresholdDistance =\n (refCoordinateB - refCoordinateA) * ADJACENT_SLICE_THRESHOLD;\n\n const intersectionLength = Math.max(\n 0,\n Math.min(refCoordinateB, siblingCoordinateB) -\n Math.max(refCoordinateA, siblingCoordinateA)\n );\n\n return intersectionLength >= thresholdDistance;\n }\n\n static getPrimaryAxisDistance(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): number {\n const { a: refA } = refCorners;\n const { a: siblingA } = siblingCorners;\n const coordinate = isVerticalDirection ? 'y' : 'x';\n\n return Math.abs(siblingA[coordinate] - refA[coordinate]);\n }\n\n static getSecondaryAxisDistance(\n refCorners: RefCorners,\n siblingCorners: RefCorners,\n isVerticalDirection: boolean\n ): number {\n const { a: refA, b: refB } = refCorners;\n const { a: siblingA, b: siblingB } = siblingCorners;\n const coordinate = isVerticalDirection ? 'x' : 'y';\n\n const refCoordinateA = refA[coordinate];\n const refCoordinateB = refB[coordinate];\n const siblingCoordinateA = siblingA[coordinate];\n const siblingCoordinateB = siblingB[coordinate];\n\n const distancesToCompare = [];\n\n distancesToCompare.push(Math.abs(siblingCoordinateA - refCoordinateA));\n distancesToCompare.push(Math.abs(siblingCoordinateA - refCoordinateB));\n distancesToCompare.push(Math.abs(siblingCoordinateB - refCoordinateA));\n distancesToCompare.push(Math.abs(siblingCoordinateB - refCoordinateB));\n\n return Math.min(...distancesToCompare);\n }\n\n /**\n * Inspired by: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS_for_TV/TV_remote_control_navigation#Algorithm_design\n * Ref Corners are the 2 corners of the current component in the direction of navigation\n * They used as a base to measure adjacent slices\n */\n sortSiblingsByPriority(\n siblings: FocusableComponent[],\n currentLayout: Layout,\n direction: Direction,\n _focusKey: string\n ): FocusableComponent[] {\n const isVerticalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_UP;\n\n const refCorners = SpatialNavigation.getRefCorners(\n direction,\n false,\n currentLayout\n );\n\n return [...siblings].sort(\n (a: FocusableComponent, b: FocusableComponent) => {\n const aCorners = SpatialNavigation.getRefCorners(\n direction,\n true,\n a.layout\n );\n const bCorners = SpatialNavigation.getRefCorners(\n direction,\n true,\n b.layout\n );\n\n const aIsAdjacentSlice = SpatialNavigation.isAdjacentSlice(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bIsAdjacentSlice = SpatialNavigation.isAdjacentSlice(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aPrimaryAxisFunction = aIsAdjacentSlice\n ? SpatialNavigation.getPrimaryAxisDistance\n : SpatialNavigation.getSecondaryAxisDistance;\n const bPrimaryAxisFunction = bIsAdjacentSlice\n ? SpatialNavigation.getPrimaryAxisDistance\n : SpatialNavigation.getSecondaryAxisDistance;\n\n const aSecondaryAxisFunction = aIsAdjacentSlice\n ? SpatialNavigation.getSecondaryAxisDistance\n : SpatialNavigation.getPrimaryAxisDistance;\n const bSecondaryAxisFunction = bIsAdjacentSlice\n ? SpatialNavigation.getSecondaryAxisDistance\n : SpatialNavigation.getPrimaryAxisDistance;\n\n const aPrimaryAxisDistance = aPrimaryAxisFunction(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bPrimaryAxisDistance = bPrimaryAxisFunction(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aSecondaryAxisDistance = aSecondaryAxisFunction(\n refCorners,\n aCorners,\n isVerticalDirection\n );\n const bSecondaryAxisDistance = bSecondaryAxisFunction(\n refCorners,\n bCorners,\n isVerticalDirection\n );\n\n const aTotalDistancePoints =\n aPrimaryAxisDistance * MAIN_COORDINATE_WEIGHT +\n aSecondaryAxisDistance;\n const bTotalDistancePoints =\n bPrimaryAxisDistance * MAIN_COORDINATE_WEIGHT +\n bSecondaryAxisDistance;\n\n const aPriority =\n (aTotalDistancePoints + 1) /\n (aIsAdjacentSlice ? ADJACENT_SLICE_WEIGHT : DIAGONAL_SLICE_WEIGHT);\n const bPriority =\n (bTotalDistancePoints + 1) /\n (bIsAdjacentSlice ? ADJACENT_SLICE_WEIGHT : DIAGONAL_SLICE_WEIGHT);\n\n return aPriority - bPriority;\n }\n );\n }\n\n constructor() {\n this.focusableComponents = {};\n this.focusKey = null;\n this.parentsHavingFocusedChild = [];\n this.enabled = false;\n this.nativeMode = false;\n this.throttle = 0;\n this.throttleKeypresses = false;\n this.pressedKeys = {};\n this.paused = false;\n this.keyDownEventListener = null;\n this.keyUpEventListener = null;\n this.keyMap = DEFAULT_KEY_MAP;\n this.debug = false;\n this.visualDebugger = null;\n this.logIndex = 0;\n\n this.onKeyEvent = this.onKeyEvent.bind(this);\n this.pause = this.pause.bind(this);\n this.resume = this.resume.bind(this);\n this.setFocus = this.setFocus.bind(this);\n this.updateAllLayouts = this.updateAllLayouts.bind(this);\n this.navigateByDirection = this.navigateByDirection.bind(this);\n this.init = this.init.bind(this);\n this.setKeyMap = this.setKeyMap.bind(this);\n }\n\n init({\n debug = false,\n visualDebug = false,\n nativeMode = false,\n throttle = 0,\n throttleKeypresses = false,\n }: InitOptions = {}) {\n if (!this.enabled) {\n this.enabled = true;\n this.nativeMode = nativeMode;\n this.throttleKeypresses = throttleKeypresses;\n this.debug = debug;\n\n if (!this.nativeMode) {\n if (Number.isInteger(throttle) && throttle > 0) {\n this.throttle = throttle;\n }\n this.bindEventHandlers();\n if (visualDebug) {\n this.visualDebugger = new VisualDebugger();\n this.startDrawLayouts();\n }\n }\n }\n }\n\n startDrawLayouts(): void {\n const draw = () => {\n requestAnimationFrame(() => {\n this.visualDebugger?.clearLayouts();\n Object.entries(this.focusableComponents).forEach(\n ([focusKey, component]) => {\n this.visualDebugger?.drawLayout(\n component.layout,\n focusKey,\n component.parentFocusKey!\n );\n }\n );\n draw();\n });\n };\n\n draw();\n }\n\n destroy(): void {\n if (this.enabled) {\n this.enabled = false;\n this.nativeMode = false;\n this.throttle = 0;\n this.throttleKeypresses = false;\n this.focusKey = null;\n this.parentsHavingFocusedChild = [];\n this.focusableComponents = {};\n this.paused = false;\n this.keyMap = DEFAULT_KEY_MAP;\n\n this.unbindEventHandlers();\n }\n }\n\n getEventType(keyCode: number): KeyType | undefined {\n return findKey(this.getKeyMap(), (code) => keyCode === code) as\n | KeyType\n | undefined;\n }\n\n bindEventHandlers(): void {\n if (typeof window !== 'undefined' && window.addEventListener) {\n const keyDownHandler = (event: KeyboardEvent) => {\n if (this.paused === true) {\n return;\n }\n\n if (this.debug) {\n this.logIndex += 1;\n }\n\n const eventType = this.getEventType(event.keyCode);\n\n if (!eventType) {\n return;\n }\n\n this.pressedKeys[eventType] = this.pressedKeys[eventType]\n ? this.pressedKeys[eventType] + 1\n : 1;\n\n event.preventDefault();\n event.stopPropagation();\n\n const details = {\n pressedKeys: this.pressedKeys,\n };\n\n if (eventType === KEY_ENTER && this.focusKey) {\n this.onEnterPress(details);\n return;\n }\n\n const preventDefaultNavigation =\n this.onArrowPress(eventType as Direction, details) === false;\n\n if (preventDefaultNavigation) {\n this.log('keyDownEventListener', 'default navigation prevented');\n this.visualDebugger?.clear();\n } else {\n this.onKeyEvent(event);\n }\n };\n\n this.keyDownEventListener = this.throttle\n ? throttle(keyDownHandler, this.throttle, THROTTLE_OPTIONS)\n : keyDownHandler;\n\n this.keyUpEventListener = (event: KeyboardEvent) => {\n const eventType = this.getEventType(event.keyCode);\n\n if (eventType) {\n delete this.pressedKeys[eventType];\n }\n\n if (this.throttle && !this.throttleKeypresses) {\n // @ts-ignore\n this.keyDownEventListener?.cancel?.();\n }\n\n if (eventType === KEY_ENTER && this.focusKey) {\n this.onEnterRelease();\n }\n };\n\n window.addEventListener('keyup', this.keyUpEventListener);\n window.addEventListener('keydown', this.keyDownEventListener);\n }\n }\n\n unbindEventHandlers(): void {\n if (typeof window !== 'undefined' && window.removeEventListener) {\n window.removeEventListener('keydown', this.keyDownEventListener!);\n this.keyDownEventListener = null;\n\n if (this.throttle) {\n window.removeEventListener('keyup', this.keyUpEventListener!);\n this.keyUpEventListener = null;\n }\n }\n }\n\n onEnterPress(details: { pressedKeys: Record<string, number> }): void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onEnterPress', 'noComponent');\n return;\n }\n\n if (!component.focusable) {\n this.log('onEnterPress', 'componentNotFocusable');\n return;\n }\n\n component.onEnterPressHandler?.(details);\n }\n\n onEnterRelease(): void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onEnterRelease', 'noComponent');\n return;\n }\n\n if (!component.focusable) {\n this.log('onEnterRelease', 'componentNotFocusable');\n return;\n }\n\n component.onEnterReleaseHandler?.();\n }\n\n onArrowPress(\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ): boolean | void {\n const component = this.focusableComponents[this.focusKey!];\n\n if (!component) {\n this.log('onArrowPress', 'noComponent');\n return undefined;\n }\n\n return component.onArrowPressHandler?.(direction, details);\n }\n\n navigateByDirection(\n direction: Direction,\n details: Record<string, any> = {}\n ): void {\n if (this.paused === true) {\n return;\n }\n\n const validDirections = [\n DIRECTION_DOWN,\n DIRECTION_UP,\n DIRECTION_LEFT,\n DIRECTION_RIGHT,\n ];\n\n if (validDirections.includes(direction)) {\n this.log('navigateByDirection', 'direction', direction);\n this.smartNavigate(direction, null, details);\n } else {\n this.log(\n 'navigateByDirection',\n `Invalid direction. You passed: \\`${direction}\\`, but you can use only these: `,\n validDirections\n );\n }\n }\n\n onKeyEvent(event: KeyboardEvent): void {\n this.visualDebugger?.clear();\n\n const direction = findKey(\n this.getKeyMap(),\n (code: number) => event.keyCode === code\n );\n\n if (direction) {\n this.smartNavigate(direction as Direction, null, { event });\n }\n }\n\n smartNavigate(\n direction: Direction,\n fromParentFocusKey: string | null,\n details: Record<string, any>\n ): void {\n this.log('smartNavigate', 'direction', direction);\n this.log('smartNavigate', 'fromParentFocusKey', fromParentFocusKey);\n this.log('smartNavigate', 'this.focusKey', this.focusKey);\n\n if (!this.nativeMode && !fromParentFocusKey) {\n Object.values(this.focusableComponents).forEach((component) => {\n component.layoutUpdated = false;\n });\n }\n\n const currentComponent = this.focusableComponents[\n fromParentFocusKey || this.focusKey!\n ];\n\n this.log(\n 'smartNavigate',\n 'currentComponent',\n currentComponent ? currentComponent.focusKey : undefined,\n currentComponent ? currentComponent.node : undefined\n );\n\n if (currentComponent) {\n this.updateLayout(currentComponent.focusKey);\n const { parentFocusKey, focusKey, layout } = currentComponent;\n\n const isVerticalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_UP;\n const isIncrementalDirection =\n direction === DIRECTION_DOWN || direction === DIRECTION_RIGHT;\n\n const currentCutoffCoordinate = SpatialNavigation.getCutoffCoordinate(\n isVerticalDirection,\n isIncrementalDirection,\n false,\n layout\n );\n\n /**\n * Get only the siblings with the coords on the way of our moving direction\n */\n const siblings = Object.values(this.focusableComponents).filter(\n (component) => {\n if (\n component.parentFocusKey === parentFocusKey &&\n component.focusable\n ) {\n this.updateLayout(component.focusKey);\n const siblingCutoffCoordinate = SpatialNavigation.getCutoffCoordinate(\n isVerticalDirection,\n isIncrementalDirection,\n true,\n component.layout\n );\n\n return isIncrementalDirection\n ? siblingCutoffCoordinate >= currentCutoffCoordinate\n : siblingCutoffCoordinate <= currentCutoffCoordinate;\n }\n\n return false;\n }\n ) as FocusableComponent[];\n\n if (this.debug) {\n this.log('smartNavigate', 'siblings', siblings);\n }\n\n if (siblings.length > 0) {\n const sortedSiblings = this.sortSiblingsByPriority(\n siblings,\n layout,\n direction,\n focusKey\n );\n\n if (this.debug) {\n this.log('smartNavigate', 'sortedSiblings', sortedSiblings);\n }\n\n const nextComponent = sortedSiblings[0];\n\n if (nextComponent) {\n this.setFocus(nextComponent.focusKey, details);\n }\n } else {\n this.log('smartNavigate', 'noSiblings');\n\n if (parentFocusKey) {\n this.smartNavigate(direction, parentFocusKey, details);\n }\n }\n }\n }\n\n saveLastFocusedChildKey(\n component: FocusableComponent | undefined,\n focusKey: string\n ): void {\n if (component) {\n this.log(\n 'saveLastFocusedChildKey',\n `${component.focusKey} lastFocusedChildKey set`,\n focusKey\n );\n component.lastFocusedChildKey = focusKey;\n }\n }\n\n log(functionName: string, debugString: string, ...rest: any[]): void {\n if (this.debug) {\n console.log(\n `%c${functionName}%c${debugString}`,\n `background: ${\n DEBUG_FN_COLORS[this.logIndex % DEBUG_FN_COLORS.length]\n }; color: black; padding: 1px 5px;`,\n 'background: #333; color: #BADA55; padding: 1px 5px;',\n ...rest\n );\n }\n }\n\n getNextFocusKey(targetFocusKey: string): string {\n this.log('getNextFocusKey', 'targetFocusKey', targetFocusKey);\n\n const targetComponent = this.focusableComponents[targetFocusKey];\n\n if (!targetComponent) {\n return targetFocusKey;\n }\n\n const { trackChildren } = targetComponent;\n\n if (!trackChildren) {\n return targetFocusKey;\n }\n\n const children = Object.values(this.focusableComponents).filter(\n (component) =>\n component.parentFocusKey === targetFocusKey && component.focusable\n ) as FocusableComponent[];\n\n if (children.length === 0) {\n return targetFocusKey;\n }\n\n const { lastFocusedChildKey, preferredChildFocusKey } = targetComponent;\n\n /**\n * First of all trying to focus last focused child\n */\n if (\n lastFocusedChildKey &&\n !targetComponent.forgetLastFocusedChild &&\n this.isParticipatingFocusableComponent(lastFocusedChildKey)\n ) {\n this.log(\n 'getNextFocusKey',\n 'lastFocusedChildKey will be focused',\n lastFocusedChildKey\n );\n\n return this.getNextFocusKey(lastFocusedChildKey);\n }\n\n /**\n * If there is no lastFocusedChild, trying to focus the preferred focused key\n */\n if (\n preferredChildFocusKey &&\n this.isParticipatingFocusableComponent(preferredChildFocusKey)\n ) {\n this.log(\n 'getNextFocusKey',\n 'preferredChildFocusKey will be focused',\n preferredChildFocusKey\n );\n\n return this.getNextFocusKey(preferredChildFocusKey);\n }\n\n /**\n * Otherwise, trying to focus something by coordinates\n */\n children.forEach((component) => this.updateLayout(component.focusKey));\n const { focusKey: childKey } = getChildClosestToOrigin(children);\n\n this.log('getNextFocusKey', 'childKey will be focused', childKey);\n\n return this.getNextFocusKey(childKey);\n }\n\n addFocusable({\n focusKey,\n node,\n parentFocusKey,\n onEnterPressHandler,\n onEnterReleaseHandler,\n onArrowPressHandler,\n onBecameFocusedHandler,\n onBecameBlurredHandler,\n forgetLastFocusedChild,\n trackChildren,\n onUpdateFocus,\n onUpdateHasFocusedChild,\n preferredChildFocusKey,\n autoRestoreFocus,\n focusable = true,\n blockNavigationOut,\n }: AddFocusableOptions): void {\n this.focusableComponents[focusKey] = {\n focusKey,\n node,\n parentFocusKey,\n onEnterPressHandler,\n onEnterReleaseHandler,\n onArrowPressHandler,\n onBecameFocusedHandler,\n onBecameBlurredHandler,\n onUpdateFocus,\n onUpdateHasFocusedChild,\n forgetLastFocusedChild,\n trackChildren,\n lastFocusedChildKey: null,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut,\n autoRestoreFocus,\n layout: {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n node,\n },\n layoutUpdated: false,\n };\n\n if (this.nativeMode) {\n return;\n }\n\n this.updateLayout(focusKey);\n\n /**\n * If for some reason this component was already focused before it was added, call the update\n */\n if (focusKey === this.focusKey) {\n this.setFocus(focusKey);\n }\n }\n\n removeFocusable({ focusKey }: { focusKey: string }): void {\n const componentToRemove = this.focusableComponents[focusKey];\n\n if (componentToRemove) {\n const { parentFocusKey } = componentToRemove;\n\n Reflect.deleteProperty(this.focusableComponents, focusKey);\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n const isFocused = focusKey === this.focusKey;\n\n /**\n * If the component was stored as lastFocusedChild, clear lastFocusedChildKey from parent\n */\n parentComponent &&\n parentComponent.lastFocusedChildKey === focusKey &&\n (parentComponent.lastFocusedChildKey = null);\n\n if (this.nativeMode) {\n return;\n }\n\n /**\n * If the component was also focused at this time, focus another one\n */\n if (isFocused && parentComponent && parentComponent.autoRestoreFocus) {\n this.setFocus(parentFocusKey!);\n }\n }\n }\n\n getNodeLayoutByFocusKey(focusKey: string): Layout | null {\n const component = this.focusableComponents[focusKey];\n\n if (component) {\n this.updateLayout(component.focusKey);\n\n return component.layout;\n }\n\n return null;\n }\n\n setCurrentFocusedKey(\n newFocusKey: string,\n details: Record<string, any>\n ): void {\n if (\n this.isFocusableComponent(this.focusKey!) &&\n newFocusKey !== this.focusKey\n ) {\n const oldComponent = this.focusableComponents[this.focusKey!];\n const parentComponent = this.focusableComponents[\n oldComponent.parentFocusKey!\n ];\n\n this.saveLastFocusedChildKey(parentComponent, this.focusKey!);\n\n oldComponent.onUpdateFocus?.(false);\n oldComponent.onBecameBlurredHandler?.(\n this.getNodeLayoutByFocusKey(this.focusKey!)!,\n details\n );\n }\n\n this.focusKey = newFocusKey;\n\n if (this.isFocusableComponent(this.focusKey)) {\n const newComponent = this.focusableComponents[this.focusKey];\n\n newComponent.onUpdateFocus?.(true);\n newComponent.onBecameFocusedHandler?.(\n this.getNodeLayoutByFocusKey(this.focusKey)!,\n details\n );\n }\n }\n\n updateParentsHasFocusedChild(\n focusKey: string,\n details: Record<string, any>\n ): void {\n const parents: string[] = [];\n\n let currentComponent = this.focusableComponents[focusKey];\n\n /**\n * Recursively iterate the tree up and find all the parents' focus keys\n */\n while (currentComponent) {\n const { parentFocusKey } = currentComponent;\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n\n if (parentComponent) {\n const { focusKey: currentParentFocusKey } = parentComponent;\n\n parents.push(currentParentFocusKey);\n }\n\n currentComponent = parentComponent;\n }\n\n const parentsToRemoveFlag = difference(\n this.parentsHavingFocusedChild,\n parents\n );\n const parentsToAddFlag = difference(\n parents,\n this.parentsHavingFocusedChild\n );\n\n forEach(parentsToRemoveFlag, (parentFocusKey) => {\n const parentComponent = this.focusableComponents[parentFocusKey];\n\n parentComponent &&\n parentComponent.trackChildren &&\n parentComponent.onUpdateHasFocusedChild?.(false);\n this.onIntermediateNodeBecameBlurred(parentFocusKey, details);\n });\n\n forEach(parentsToAddFlag, (parentFocusKey) => {\n const parentComponent = this.focusableComponents[parentFocusKey];\n\n parentComponent &&\n parentComponent.trackChildren &&\n parentComponent.onUpdateHasFocusedChild?.(true);\n this.onIntermediateNodeBecameFocused(parentFocusKey, details);\n });\n\n this.parentsHavingFocusedChild = parents;\n }\n\n updateParentsLastFocusedChild(focusKey: string): void {\n let currentComponent = this.focusableComponents[focusKey];\n\n /**\n * Recursively iterate the tree up and update all the parent's lastFocusedChild\n */\n while (currentComponent) {\n const { parentFocusKey } = currentComponent;\n\n const parentComponent = this.focusableComponents[parentFocusKey!];\n\n if (parentComponent) {\n this.saveLastFocusedChildKey(\n parentComponent,\n currentComponent.focusKey\n );\n }\n\n currentComponent = parentComponent;\n }\n }\n\n getKeyMap(): KeyMap {\n return this.keyMap;\n }\n\n setKeyMap(keyMap: KeyMap): void {\n this.keyMap = {\n ...this.getKeyMap(),\n ...keyMap,\n };\n }\n\n isFocusableComponent(focusKey: string): boolean {\n return !!this.focusableComponents[focusKey];\n }\n\n /**\n * Checks whether the focusableComponent is actually participating in spatial navigation (in other words, is a\n * 'focusable' focusableComponent). Seems less confusing than calling it isFocusableFocusableComponent()\n */\n isParticipatingFocusableComponent(focusKey: string): boolean {\n return (\n this.isFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].focusable\n );\n }\n\n onIntermediateNodeBecameFocused(\n focusKey: string,\n details: Record<string, any>\n ): void {\n this.isParticipatingFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].onBecameFocusedHandler?.(\n this.getNodeLayoutByFocusKey(focusKey)!,\n details\n );\n }\n\n onIntermediateNodeBecameBlurred(\n focusKey: string,\n details: Record<string, any>\n ): void {\n this.isParticipatingFocusableComponent(focusKey) &&\n this.focusableComponents[focusKey].onBecameBlurredHandler?.(\n this.getNodeLayoutByFocusKey(focusKey)!,\n details\n );\n }\n\n pause(): void {\n this.paused = true;\n }\n\n resume(): void {\n this.paused = false;\n }\n\n setFocus(targetFocusKey: string, details: Record<string, any> = {}): void {\n const lastFocusedKey = this.focusKey;\n const newFocusKey = this.getNextFocusKey(targetFocusKey);\n\n this.log('setFocus', 'newFocusKey', newFocusKey);\n\n this.setCurrentFocusedKey(newFocusKey, details);\n this.updateParentsHasFocusedChild(newFocusKey, details);\n this.updateParentsLastFocusedChild(lastFocusedKey!);\n }\n\n updateAllLayouts(): void {\n if (this.nativeMode) {\n return;\n }\n\n Object.entries(this.focusableComponents).forEach(([focusKey]) => {\n this.updateLayout(focusKey);\n });\n }\n\n updateLayout(focusKey: string): void {\n const component = this.focusableComponents[focusKey];\n\n if (!component || this.nativeMode || component.layoutUpdated) {\n return;\n }\n\n const { node } = component;\n\n measureLayout(\n node,\n (\n x: number,\n y: number,\n width: number,\n height: number,\n left: number,\n top: number\n ) => {\n component.layout = {\n x,\n y,\n width,\n height,\n left,\n top,\n node,\n };\n }\n );\n }\n\n updateFocusable(\n focusKey: string,\n {\n node,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut,\n }: UpdateFocusableOptions\n ): void {\n if (this.nativeMode) {\n return;\n }\n\n const component = this.focusableComponents[focusKey];\n\n if (component) {\n component.preferredChildFocusKey = preferredChildFocusKey;\n component.focusable = focusable ?? component.focusable;\n component.blockNavigationOut = blockNavigationOut;\n\n if (node) {\n component.node = node;\n }\n }\n }\n\n isNativeMode(): boolean {\n return this.nativeMode;\n }\n\n getFocusableComponents(): FocusableComponent[] {\n return Object.values(this.focusableComponents) as FocusableComponent[];\n }\n\n getFocusableComponentsByParentFocusKey(\n parentFocusKey: string\n ): FocusableComponent[] {\n return Object.values(this.focusableComponents).filter(\n (component) => component.parentFocusKey === parentFocusKey\n ) as FocusableComponent[];\n }\n}\n\n/**\n * Export singleton\n */\nexport default new SpatialNavigation();\n","export const DIRECTION_LEFT = 'left';\nexport const DIRECTION_RIGHT = 'right';\nexport const DIRECTION_UP = 'up';\nexport const DIRECTION_DOWN = 'down';\nexport const KEY_ENTER = 'enter';\n\nexport type Direction =\n | typeof DIRECTION_LEFT\n | typeof DIRECTION_RIGHT\n | typeof DIRECTION_UP\n | typeof DIRECTION_DOWN;\n\nexport interface Layout {\n x: number;\n y: number;\n width: number;\n height: number;\n left: number;\n top: number;\n node: HTMLElement;\n}\n","import SDK from '@/index';\nimport IMaestroKeyPlaysResponse from '../interfaces/IKeyPlaysResponse';\nimport IKeyPlay, {\n KeyPlayLoadFailureStatus,\n KeyPlaysErrorState,\n} from '../interfaces/IKeyPlays';\nimport { Observable } from '@/helpers/Observable';\n\ntype KeyPlayItem = {\n title: string;\n items: IKeyPlay[];\n};\n\nclass KeyPlaysViewModel {\n currentlyPlayingClipIndex = new Observable<number | null>(null);\n lastPlayedClipIndex = new Observable<number | null>(null);\n currentClipPlaybackProgress = new Observable<number | null>(null);\n errorState = new Observable<KeyPlaysErrorState | null>('unpopulatedEvent');\n failedClips = new Observable<{ [key: string]: KeyPlayLoadFailureStatus }>({});\n items = new Observable<KeyPlayItem[]>([]);\n\n isCurrentlyPlaying(index: number): boolean {\n return index === this.currentlyPlayingClipIndex.value;\n }\n\n async setKeyPlays(items: IMaestroKeyPlaysResponse | null): Promise<void> {\n if (items === null) {\n this.errorState.value = 'tabLoadFailure';\n return;\n }\n\n this.items.value = this.parseNetworkResponse(items);\n this.cleanErrors();\n }\n\n private cleanErrors() {\n if (this.errorState.value === 'tabLoadFailure') {\n this.errorState.value = null;\n }\n\n if (this.errorState.value === 'unpopulatedEvent' && this.allItems.length) {\n this.errorState.value = null;\n }\n\n if (!this.allItems.length) {\n this.errorState.value = 'unpopulatedEvent';\n }\n }\n\n async playKeyPlay(atIndex: number): Promise<void> {\n const mevm = SDK.getMaestroEventViewModel();\n mevm.delegate.playClip(atIndex);\n }\n\n parseNetworkResponse(response: IMaestroKeyPlaysResponse): KeyPlayItem[] {\n const teams = Object.values(response.entities.team);\n const athletes = Object.values(response.entities.athlete);\n const homeTeam = teams.find((team) => team.homeAway === 'home');\n const awayTeam = teams.find((team) => team.homeAway === 'away');\n\n if (!homeTeam || !awayTeam) {\n console.log('Could not find home or away team');\n return [];\n }\n\n const items: IKeyPlay[] = [];\n const result: KeyPlayItem[] = [];\n\n for (const section of response.sections) {\n for (const keyPlay of section.items) {\n const playTeam = keyPlay.team\n ? teams.find((team) => team.id === keyPlay.team)\n : undefined;\n const athlete = keyPlay.athlete\n ? athletes.find((a) => a.id === keyPlay.athlete)\n : undefined;\n\n const teamImageUrl = playTeam ? playTeam.logoRef : undefined;\n const playerImageUrl = athlete ? athlete.headshot : undefined;\n const thumbnailImageUrl =\n keyPlay.thumbnailType !== 'headshot' ? keyPlay.thumbnail : undefined;\n\n const homeScore = keyPlay.homeScore ? keyPlay.homeScore : '0';\n const awayScore = keyPlay.awayScore ? keyPlay.awayScore : '0';\n const homeTeamScore = keyPlay.scoringPlay\n ? parseInt(homeScore)\n : undefined;\n const awayTeamScore = keyPlay.scoringPlay\n ? parseInt(awayScore)\n : undefined;\n\n const randomId = Math.random().toString(36).substring(2, 15);\n const keyPlayData: IKeyPlay = {\n id: randomId,\n description: keyPlay.description ? keyPlay.description : '',\n homeTeamName: homeTeam ? homeTeam.shortName : '',\n awayTeamName: awayTeam ? awayTeam.shortName : '',\n homeTeamScore,\n awayTeamScore,\n clipID: keyPlay.clipID,\n teamImageUrl,\n playerImageUrl,\n thumbnailImageUrl,\n section: section.title,\n };\n\n items.push(keyPlayData);\n }\n\n // Only add the section if it has items\n if (items.length) {\n const sectionTitle = section.title;\n const existingSection = result.find(\n (item) => item.title === sectionTitle\n );\n\n if (existingSection) {\n existingSection.items.push(...items);\n } else {\n result.push({\n title: sectionTitle,\n items: [...items],\n });\n }\n\n // Reset items for the next section\n items.length = 0;\n }\n }\n\n return result;\n }\n\n get allItems() {\n return this.items.value.reduce((acc, section) => {\n return acc.concat(section.items);\n }, [] as IKeyPlay[]);\n }\n\n clipID(forKeyPlayAtIndex: number): string | undefined {\n const item = this.allItems[forKeyPlayAtIndex];\n if (!item) {\n return undefined;\n }\n return this.allItems[forKeyPlayAtIndex].clipID;\n }\n\n handleKeyPlayLoadFailure(forKeyPlayAtIndex: number): void {\n const clipID = this.clipID(forKeyPlayAtIndex);\n if (clipID) {\n const newFailedClips = this.failedClips.value;\n newFailedClips[clipID] = 'recentFailure';\n\n this.failedClips.value = newFailedClips;\n\n setTimeout(() => {\n if (this.loadFailureStatus(forKeyPlayAtIndex) === 'recentFailure') {\n const newFailedClips = this.failedClips.value;\n newFailedClips[clipID] = 'nonRecentFailure';\n this.failedClips.value = newFailedClips;\n }\n }, 5000);\n }\n }\n\n loadFailureStatus(forKeyPlayAtIndex: number): KeyPlayLoadFailureStatus {\n const clipID = this.clipID(forKeyPlayAtIndex);\n const newFailedClips = this.failedClips.value;\n if (!newFailedClips) {\n return 'noFailure';\n }\n return clipID ? this.failedClips.value[clipID] : 'noFailure';\n }\n\n clearLoadFailureStatus(forKeyPlayAtIndex: number): void {\n const clipID = this.clipID(forKeyPlayAtIndex);\n if (clipID && this.failedClips) {\n this.failedClips.value = {\n ...this.failedClips.value,\n [clipID]: 'noFailure',\n };\n }\n }\n\n async userRequestedNewKeyPlaysData() {\n const mevm = SDK.getMaestroEventViewModel();\n await mevm.delegate.userRequestedNewKeyPlaysData();\n }\n}\n\nexport default KeyPlaysViewModel;\n","import IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';\nimport IMaestroEvent from '../interfaces/IMaestroEvent';\nimport { Observable } from '../helpers/Observable';\nimport { ViewModel } from './ViewModel';\nimport KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';\nimport {\n setFocus,\n pause,\n resume,\n init,\n destroy,\n} from '@/external/spatial-navigation';\nimport IMaestroKeyPlaysResponse from '../modules/key-plays/interfaces/IKeyPlaysResponse';\n\nexport class MaestroEventViewModel extends ViewModel implements IMaestroEvent {\n private _eventId = new Observable('');\n private _title = new Observable('');\n private _isLive = new Observable<boolean>(false);\n private _isShowingPanel = new Observable(false);\n delegate: IMaestroEventDelegate;\n keyPlaysViewModel = new KeyPlaysViewModel();\n\n constructor(eventId: string = '', delegate: IMaestroEventDelegate) {\n super();\n this._eventId.value = eventId;\n this.delegate = delegate;\n init();\n }\n\n deinit() {\n destroy();\n }\n\n updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void> {\n return this.keyPlaysViewModel.setKeyPlays(data);\n }\n\n startFocusManagement(): Promise<void> {\n setFocus('');\n resume();\n setTimeout(() => {\n setFocus('PANEL_NAV_BUTTON_0');\n }, 0);\n\n return Promise.resolve();\n }\n\n didStartPlayingClip(index: number) {\n this.keyPlaysViewModel.lastPlayedClipIndex.value = index;\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = 0;\n this.keyPlaysViewModel.currentlyPlayingClipIndex.value = index;\n this.keyPlaysViewModel.clearLoadFailureStatus(index);\n }\n\n didStopPlayingClip(index: number): void {\n this.keyPlaysViewModel.lastPlayedClipIndex.value = index;\n this.keyPlaysViewModel.currentlyPlayingClipIndex.value = null;\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = null;\n }\n\n didFailToPlayClip(index: number): void {\n this.keyPlaysViewModel.handleKeyPlayLoadFailure(index);\n }\n\n didUpdatePlaybackProgressOfClip(index: number, to: number): void {\n this.keyPlaysViewModel.currentClipPlaybackProgress.value = to;\n this.keyPlaysViewModel.clearLoadFailureStatus(index);\n }\n\n didShowPanel(): Promise<void> {\n this.isShowingPanel = true;\n // Analytics call ?\n return Promise.resolve();\n }\n\n async didHidePanel(): Promise<void> {\n this.isShowingPanel = false;\n pause();\n\n // Analytics call?\n }\n\n didShowOverlay(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n didHideOverlay(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n\n currentEventDoesNotSupportKeyPlays(): void {\n this.keyPlaysViewModel.errorState.value = 'unsupportedEvent';\n }\n\n getCurrentEventID() {\n return this.eventId.value;\n }\n\n getCurrentlyPlayingClipIndex() {\n return this.keyPlaysViewModel.currentlyPlayingClipIndex.value;\n }\n\n getLastPlayedClipIndex() {\n return this.keyPlaysViewModel.lastPlayedClipIndex.value;\n }\n\n getCurrentClipPlaybackProgress() {\n return this.keyPlaysViewModel.currentClipPlaybackProgress.value;\n }\n\n getKeyPlaysCount() {\n return this.keyPlaysViewModel.allItems.length;\n }\n\n get eventId(): Observable<string> {\n return this._eventId;\n }\n\n get title(): Observable<string> {\n return this._title;\n }\n\n get isLive(): Observable<boolean> {\n return this._isLive;\n }\n\n get isShowingPanel(): boolean {\n return this._isShowingPanel.value;\n }\n\n set isShowingPanel(value: boolean) {\n this._isShowingPanel.value = value;\n }\n}\n","import { Observable } from '../helpers/Observable';\n\n/**\n * Base view model that implements reactive properties\n */\nexport abstract class ViewModel {\n private _isLoading = new Observable<boolean>(false);\n private _error = new Observable<string | null>(null);\n\n get isLoading(): Observable<boolean> {\n return this._isLoading;\n }\n\n get error(): Observable<string | null> {\n return this._error;\n }\n\n protected setLoading(loading: boolean): void {\n this._isLoading.value = loading;\n }\n\n protected setError(error: string | null): void {\n this._error.value = error;\n }\n}\n","import { MaestroEventViewModel } from './MaestroEventViewModel';\nimport { PanelManagerViewModel } from './PanelManagerViewModel';\nimport IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';\nimport KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';\n\n/**\n * Aggregates all View Models\n */\nexport class MaestroViewModels {\n readonly eventViewModel: MaestroEventViewModel;\n readonly panelManagerViewModel: PanelManagerViewModel;\n readonly keyPlaysViewModel: KeyPlaysViewModel;\n\n constructor(eventViewModel: MaestroEventViewModel) {\n this.eventViewModel = eventViewModel;\n this.panelManagerViewModel = new PanelManagerViewModel();\n this.keyPlaysViewModel = new KeyPlaysViewModel();\n }\n\n /**\n * Creates view models from an event ID\n */\n static async fromEventId(\n eventId: string,\n delegate: IMaestroEventDelegate\n ): Promise<MaestroViewModels | null> {\n try {\n const eventViewModel = new MaestroEventViewModel(eventId, delegate);\n\n return new MaestroViewModels(eventViewModel);\n } catch (error) {\n console.error('Error creating view models from event ID', error);\n return null;\n }\n }\n}\n","import { type IRenderer } from './ports/renderer';\nimport { MaestroViewModels } from '@/view-models';\nimport type IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\ntype Renderer = {\n render: (children: React.ReactNode) => void;\n unmount: () => void;\n};\n\nclass ReactRenderer implements IRenderer {\n private renderersMap: Map<string, Renderer> = new Map();\n public viewModels: MaestroViewModels | null = null;\n\n /**\n * Sets the view models for the renderer\n * @param eventId The event ID to create view models for\n * @param delegate The event delegate to use\n */\n async setViewModels(\n eventId: string,\n delegate?: IMaestroEventDelegate\n ): Promise<MaestroViewModels | null> {\n try {\n if (!delegate) {\n console.error('No event delegate provided');\n return null;\n }\n this.viewModels = await MaestroViewModels.fromEventId(eventId, delegate);\n return this.viewModels;\n } catch (error) {\n console.error('Error creating view models from event ID', error);\n return null;\n }\n }\n\n /**\n * Renders the panel manager\n * @param id The element ID to render in\n * @param options Options for rendering including height and width\n */\n async renderPanel(id: string) {\n const renderer = await this.getRenderer(id);\n\n if (!this.viewModels) {\n throw new Error('Cannot render panel manager: No view models set');\n }\n\n const App = require('../components/core/App').default;\n const PanelManager = require('../components/core/PanelManager').default;\n\n renderer.render(\n <App>\n <PanelManager />\n </App>\n );\n\n return () => {\n renderer.unmount();\n this.renderersMap.delete(id);\n };\n }\n\n /**\n * @description Get the render function and renderer for the MaestroWebSDK. Useful to configure the renderer and fonts before rendering the component.\n * @param {string} id - The id of the element to render the component in.\n * @param {{ height: number; width: number }} options - The height and width of the component.\n */\n private async getRenderer(id: string): Promise<Renderer> {\n if (this.renderersMap.has(id)) {\n return this.renderersMap.get(id)!;\n }\n\n const el = document.getElementById(id);\n if (!el) {\n throw new Error(`Element with id ${id} not found`);\n }\n\n const renderer: Renderer = {\n render: (children) => {\n ReactDOM.render(children as any, el);\n },\n unmount: () => {\n ReactDOM.unmountComponentAtNode(el);\n },\n };\n\n this.renderersMap.set(id, renderer);\n return renderer;\n }\n}\n\nexport default ReactRenderer;\n","import ReactRenderer from './external/ReactRenderer';\nimport { IRenderer } from './external/ports/renderer';\nimport IMaestroEventDelegate from './interfaces/IMaestroEventDelegate';\nimport IMaestroManager, { SDKConfigParams } from './interfaces/IMaestroManager';\nimport IMaestroEvent from './interfaces/IMaestroEvent';\nimport { MaestroEventViewModel } from './view-models/MaestroEventViewModel';\nimport type IMaestroKeyPlaysResponse from './modules/key-plays/interfaces/IKeyPlaysResponse';\n\nexport {\n type IMaestroEventDelegate,\n type IMaestroEvent,\n type IMaestroKeyPlaysResponse,\n};\n\nconst AUTHORIZED_CLIENTS = ['664b9c57d59a7a431542d814'];\n\nexport type Environment = 'development' | 'staging' | 'production';\n\n/**\n * Main SDK class that serves as the entry point for the Maestro TV SDK\n * Follows a singleton pattern similar to the Swift implementation\n */\nclass MaestroWebSDK implements IMaestroManager {\n private static instance: MaestroWebSDK;\n private renderer: IRenderer;\n private siteID?: string;\n private jwt?: string;\n private userID?: string;\n private maestroEventViewModel: MaestroEventViewModel | null = null;\n\n private constructor(renderer: IRenderer) {\n this.renderer = renderer;\n }\n\n async userDidStartWatchingEvent(\n eventID: string,\n delegate: IMaestroEventDelegate\n ): Promise<IMaestroEvent> {\n if (!this.isAuthorizedClient) {\n throw new Error('Unauthorized use of SDK');\n }\n\n this.maestroEventViewModel = new MaestroEventViewModel(eventID, delegate);\n return this.maestroEventViewModel;\n }\n\n userDidStopWatchingEvent(eventId: string): void {\n console.log('stop watching event', eventId);\n if (this.maestroEventViewModel) {\n this.maestroEventViewModel.deinit();\n this.maestroEventViewModel = null;\n }\n }\n\n authenticateUser(_: string, __: string): Promise<void> {\n throw new Error('Method not implemented');\n }\n\n deauthenticateUser(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n\n /**\n * @description Returns the MaestroWebSDK instance\n * @returns {MaestroWebSDK} - The MaestroWebSDK instance\n */\n public static getInstance() {\n if (!MaestroWebSDK.instance) {\n const renderer = new ReactRenderer();\n MaestroWebSDK.instance = new MaestroWebSDK(renderer);\n }\n return MaestroWebSDK.instance;\n }\n\n configure(configParams: SDKConfigParams) {\n if (configParams.siteID) {\n this.setSiteID(configParams.siteID);\n }\n\n if (configParams.jwt) {\n this.setJwt(configParams.jwt);\n }\n\n console.info('MaestroWebSDK configured', configParams);\n }\n\n /**\n * Checks if this is an authorized client based on siteID\n */\n public get isAuthorizedClient(): boolean {\n const siteID = this.getSiteID();\n return Boolean(siteID && AUTHORIZED_CLIENTS.includes(siteID));\n }\n\n /**\n * Sets the site ID for the SDK\n * @param siteID The site ID to set\n */\n public setSiteID(siteID?: string) {\n this.siteID = siteID;\n }\n\n public getSiteID() {\n return this.siteID;\n }\n\n /**\n * Sets the JWT token for authentication\n * @param jwt The JWT token to set\n */\n public setJwt(jwt: string): void {\n this.jwt = jwt;\n }\n\n public getJwt(): string | undefined {\n return this.jwt;\n }\n\n /**\n * Sets the user ID for the SDK\n * @param userID The user ID to set\n */\n public setUserID(userID: string): void {\n this.userID = userID;\n }\n\n public getUserID(): string | undefined {\n return this.userID;\n }\n\n /**\n * Gets the event view model\n * @returns The current event view model\n */\n public getMaestroEventViewModel(): MaestroEventViewModel {\n if (!this.maestroEventViewModel) {\n throw new Error('No Maestro Event View Model set');\n }\n\n return this.maestroEventViewModel;\n }\n\n async renderPanel(id: string) {\n if (!this.renderer.viewModels) {\n if (!this.maestroEventViewModel) {\n throw new Error('No Maestro Event View Model set.');\n }\n let eventId = 'default-event-id';\n if (id) {\n eventId = id;\n }\n await this.renderer.setViewModels(\n eventId,\n this.maestroEventViewModel.delegate\n );\n }\n return this.renderer.renderPanel(id);\n }\n}\n\nconst SDK = MaestroWebSDK.getInstance();\nexport default SDK;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","export const MaestroPanelType = {\n KEY_PLAYS: 'keyPlays',\n STATS: 'stats',\n FANTASY: 'fantasy',\n BETS: 'bets',\n} as const;\n\nexport type MaestroPanelType =\n (typeof MaestroPanelType)[keyof typeof MaestroPanelType];\n\nexport interface PanelTypeInfo {\n id: MaestroPanelType;\n name: string;\n imageNamePrefix: string;\n usesSectionHeaders: boolean;\n iconName: string;\n}\n\n// The mapping information for each panel type\nexport const PANEL_TYPE_INFO: Record<MaestroPanelType, PanelTypeInfo> = {\n [MaestroPanelType.KEY_PLAYS]: {\n id: MaestroPanelType.KEY_PLAYS,\n name: 'Key Plays',\n imageNamePrefix: 'Key-Plays',\n usesSectionHeaders: true,\n iconName: 'keyPlays' as string,\n },\n [MaestroPanelType.STATS]: {\n id: MaestroPanelType.STATS,\n name: 'Stats',\n imageNamePrefix: 'Stats',\n usesSectionHeaders: false,\n iconName: 'stats' as string,\n },\n [MaestroPanelType.FANTASY]: {\n id: MaestroPanelType.FANTASY,\n name: 'Fantasy',\n imageNamePrefix: 'Fantasy',\n usesSectionHeaders: false,\n iconName: 'fantasy' as string,\n },\n [MaestroPanelType.BETS]: {\n id: MaestroPanelType.BETS,\n name: 'Bets',\n imageNamePrefix: 'Bets',\n usesSectionHeaders: false,\n iconName: 'bets' as string,\n },\n};\n\n// Helper methods similar to Swift extension methods\nexport const getPanelName = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].name;\n};\n\nexport const getImageNamePrefix = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].imageNamePrefix;\n};\n\nexport const usesSectionHeaders = (panelType: MaestroPanelType): boolean => {\n return PANEL_TYPE_INFO[panelType].usesSectionHeaders;\n};\n\nexport const getIconName = (panelType: MaestroPanelType): string => {\n return PANEL_TYPE_INFO[panelType].iconName;\n};\n\nexport const getAllPanelTypes = (): MaestroPanelType[] => {\n return Object.values(MaestroPanelType);\n};\n","import { Observable } from '../helpers/Observable';\nimport { MaestroPanelType } from '../models/IPanel';\n\nexport class PanelManagerViewModel {\n private _panels = new Observable<MaestroPanelType[]>([\n MaestroPanelType.KEY_PLAYS,\n MaestroPanelType.STATS,\n MaestroPanelType.FANTASY,\n MaestroPanelType.BETS,\n ]);\n\n private _currentPanel = new Observable<MaestroPanelType>(\n MaestroPanelType.KEY_PLAYS\n );\n private _newlyFocusedPanel = new Observable<MaestroPanelType | null>(null);\n\n // Getter for panels\n get panels(): MaestroPanelType[] {\n return this._panels.value;\n }\n\n // Getter for panels observable\n get panelsObservable(): Observable<MaestroPanelType[]> {\n return this._panels;\n }\n\n // Getter for currentPanel\n get currentPanel(): MaestroPanelType {\n return this._currentPanel.value;\n }\n\n // Setter for currentPanel\n set currentPanel(value: MaestroPanelType) {\n this._currentPanel.value = value;\n }\n\n // Getter for currentPanel as Observable\n get currentPanelObservable(): Observable<MaestroPanelType> {\n return this._currentPanel;\n }\n\n // Getter for newlyFocusedPanel\n get newlyFocusedPanel(): MaestroPanelType | null {\n return this._newlyFocusedPanel.value;\n }\n\n // Setter for newlyFocusedPanel\n set newlyFocusedPanel(value: MaestroPanelType | null) {\n this._newlyFocusedPanel.value = value;\n }\n\n // Get the index of a specific panel type\n getIndex(forPanelType: MaestroPanelType): number | null {\n const index = this.panels.findIndex((p) => p === forPanelType);\n return index !== -1 ? index : null;\n }\n\n // Get the panel type at a specific index\n getPanelType(atIndex: number): MaestroPanelType | null {\n return this.panels[atIndex] || null;\n }\n\n // Computed property for panel to the left\n get panelTypeToLeft(): MaestroPanelType | null {\n const currentIndex = this.getIndex(this.currentPanel);\n if (currentIndex === null || currentIndex === 0) return null;\n return this.getPanelType(currentIndex - 1);\n }\n\n // Computed property for panel to the right\n get panelTypeToRight(): MaestroPanelType | null {\n const currentIndex = this.getIndex(this.currentPanel);\n if (currentIndex === null || currentIndex === this.panels.length - 1)\n return null;\n return this.getPanelType(currentIndex + 1);\n }\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* Warning: Do not play with :root */\\n.sdk-wrapper {\\n font-family: Arial, Helvetica, sans-serif;\\n color: var(--sdk-text100);\\n}\\n\\n.T01 {\\n font-size: 1.125rem;\\n font-weight: normal;\\n line-height: 1.5rem;\\n}\\n\\n.T02 {\\n font-size: 1.125rem;\\n font-weight: bold;\\n line-height: 1.5rem;\\n}\\n\\n.T05_ALT {\\n font-size: 1.313rem;\\n font-weight: bold;\\n line-height: 1.75rem;\\n}\\n\\n.T10 {\\n font-size: 1.438rem;\\n font-weight: bold;\\n line-height: 2rem;\\n}\\n\\n.T20 {\\n font-size: 1.688rem;\\n font-weight: 500;\\n line-height: 2.25rem;\\n}\\n\\n.T30 {\\n font-size: 1.813rem;\\n font-weight: bold;\\n line-height: 2.25rem;\\n}\\n\\n.T70 {\\n font-size: 3rem;\\n font-weight: 900;\\n line-height: 3.5rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/core/App/App.styles.css\"],\"names\":[],\"mappings\":\"AAAA,oCAAoC;AACpC;EACE,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,mBAAmB;AACrB\",\"sourcesContent\":[\"/* Warning: Do not play with :root */\\n.sdk-wrapper {\\n font-family: Arial, Helvetica, sans-serif;\\n color: var(--sdk-text100);\\n}\\n\\n.T01 {\\n font-size: 1.125rem;\\n font-weight: normal;\\n line-height: 1.5rem;\\n}\\n\\n.T02 {\\n font-size: 1.125rem;\\n font-weight: bold;\\n line-height: 1.5rem;\\n}\\n\\n.T05_ALT {\\n font-size: 1.313rem;\\n font-weight: bold;\\n line-height: 1.75rem;\\n}\\n\\n.T10 {\\n font-size: 1.438rem;\\n font-weight: bold;\\n line-height: 2rem;\\n}\\n\\n.T20 {\\n font-size: 1.688rem;\\n font-weight: 500;\\n line-height: 2.25rem;\\n}\\n\\n.T30 {\\n font-size: 1.813rem;\\n font-weight: bold;\\n line-height: 2.25rem;\\n}\\n\\n.T70 {\\n font-size: 3rem;\\n font-weight: 900;\\n line-height: 3.5rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".sdk--panel-manager {\\n padding: 3.75rem;\\n padding-left: 3rem;\\n padding-bottom: 0;\\n\\n display: flex;\\n flex-direction: column;\\n gap: 3.75rem;\\n}\\n\\n.sdk--panel-manager .panel-coming-soon {\\n display: flex;\\n justify-content: center;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/core/PanelManager/PanelManager.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;;EAEjB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,uBAAuB;AACzB\",\"sourcesContent\":[\".sdk--panel-manager {\\n padding: 3.75rem;\\n padding-left: 3rem;\\n padding-bottom: 0;\\n\\n display: flex;\\n flex-direction: column;\\n gap: 3.75rem;\\n}\\n\\n.sdk--panel-manager .panel-coming-soon {\\n display: flex;\\n justify-content: center;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".key-plays-view {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n overflow-y: auto;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n scrollbar-width: none;\\n scroll-behavior: smooth;\\n overscroll-behavior: contain;\\n}\\n\\n.key-plays-view .key-plays-section:last-child {\\n margin-bottom: 4rem;\\n} \\n\\n.key-plays-view::-webkit-scrollbar {\\n display: none;\\n}\\n\\n.key-plays-section {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n/* Sticky section title using CSS position: sticky */\\n.key-plays-section-title {\\n position: sticky;\\n top: 0;\\n z-index: 1;\\n margin: 0;\\n}\\n\\n.key-plays-section-items {\\n display: flex;\\n flex-direction: column;\\n gap: 20px;\\n}\\n\\n.key-plays-section:last-of-type {\\n margin-bottom: 0;\\n}\\n\\n.key-plays-bottom-padding {\\n height: calc(\\n 100vh - 240px\\n );\\n min-height: 400px;\\n width: 100%;\\n}\\n\\n.key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 3px solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n}\\n\\n.key-play-card[data-focused='true'] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box;\\n -webkit-box-orient: vertical;\\n -webkit-line-clamp: 3;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar,\\n.key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlaysView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA,oDAAoD;AACpD;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE;;GAEC;EACD,iBAAiB;EACjB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,6BAA6B;EAC7B,yCAAyC;AAC3C;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,4BAA4B;EAC5B,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;;EAEE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX\",\"sourcesContent\":[\".key-plays-view {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n overflow-y: auto;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n scrollbar-width: none;\\n scroll-behavior: smooth;\\n overscroll-behavior: contain;\\n}\\n\\n.key-plays-view .key-plays-section:last-child {\\n margin-bottom: 4rem;\\n} \\n\\n.key-plays-view::-webkit-scrollbar {\\n display: none;\\n}\\n\\n.key-plays-section {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n/* Sticky section title using CSS position: sticky */\\n.key-plays-section-title {\\n position: sticky;\\n top: 0;\\n z-index: 1;\\n margin: 0;\\n}\\n\\n.key-plays-section-items {\\n display: flex;\\n flex-direction: column;\\n gap: 20px;\\n}\\n\\n.key-plays-section:last-of-type {\\n margin-bottom: 0;\\n}\\n\\n.key-plays-bottom-padding {\\n height: calc(\\n 100vh - 240px\\n );\\n min-height: 400px;\\n width: 100%;\\n}\\n\\n.key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 3px solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n}\\n\\n.key-play-card[data-focused='true'] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box;\\n -webkit-box-orient: vertical;\\n -webkit-line-clamp: 3;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar,\\n.key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".scrollable-gradient {\\n position: relative;\\n}\\n\\n\\n.scrollable-gradient::before {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n top: 0;\\n height: 3.625rem; /* Height of the top gradient */\\n z-index: 0;\\n transition: z-index 0.3s ease;\\n}\\n\\n.scroll-container-scrolled::before {\\n z-index: 1;\\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\\n.scrollable-gradient::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n height: 6rem; /* Height of the bottom gradient */\\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,kBAAkB;AACpB;;;AAGA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,gBAAgB,EAAE,+BAA+B;EACjD,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E\",\"sourcesContent\":[\".scrollable-gradient {\\n position: relative;\\n}\\n\\n\\n.scrollable-gradient::before {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n top: 0;\\n height: 3.625rem; /* Height of the top gradient */\\n z-index: 0;\\n transition: z-index 0.3s ease;\\n}\\n\\n.scroll-container-scrolled::before {\\n z-index: 1;\\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\\n.scrollable-gradient::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n height: 6rem; /* Height of the bottom gradient */\\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n position: relative;\\n}\\n\\n.key-play-card[data-focused=true] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box; /* This sets up the box for the flex behavior */\\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\\n overflow: hidden; /* Hide any overflow text */\\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n position: absolute;\\n bottom: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: var(--sdk-surface2);\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state path {\\n fill: var(--sdk-alertWarning);\\n}\\n\\n.key-play-card .non-recent-error-state {\\n position: absolute;\\n top: 1.125rem;\\n right: 1.125rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlayCardView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,kCAAkC;EAClC,yCAAyC;EACzC,kBAAkB;AACpB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB,EAAE,+CAA+C;EACrE,4BAA4B,EAAE,uEAAuE;EACrG,qBAAqB,EAAE,iCAAiC;EACxD,gBAAgB,EAAE,2BAA2B;EAC7C,uBAAuB,EAAE,wDAAwD;AACnF;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,qCAAqC;EACrC,SAAS;AACX;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB\",\"sourcesContent\":[\".key-play-card {\\n display: flex;\\n flex-direction: column;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface2);\\n contain: content;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n position: relative;\\n}\\n\\n.key-play-card[data-focused=true] {\\n border-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card-content {\\n display: grid;\\n grid-template-columns: 1fr 2fr;\\n}\\n\\n.key-play-card-content .cardImage {\\n width: 100%;\\n height: 100%;\\n object-fit: cover;\\n}\\n\\n.key-play-card-content .text-content {\\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\\n align-items: center;\\n display: flex;\\n}\\n\\n.key-play-card-content .multi-line {\\n display: -webkit-box; /* This sets up the box for the flex behavior */\\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\\n overflow: hidden; /* Hide any overflow text */\\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\\n}\\n\\n.key-play-card progress {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n width: 100%;\\n height: 8px;\\n border-radius: 15px;\\n background-color: var(--sdk-surface6);\\n box-shadow: 0px 1px 3px 0px #10111366 inset;\\n overflow: hidden;\\n border-radius: 0;\\n position: absolute;\\n bottom: 0;\\n}\\n\\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\\n background-color: var(--sdk-surface6);\\n}\\n\\n.key-play-card progress::-webkit-progress-value {\\n background-color: var(--sdk-highlightPrimary);\\n}\\n\\n.key-play-card .score {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: 10px;\\n gap: 4rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.key-play-card .score-team {\\n display: flex;\\n align-items: center;\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: var(--sdk-surface2);\\n gap: 1rem;\\n}\\n\\n.key-play-card .error-state path {\\n fill: var(--sdk-alertWarning);\\n}\\n\\n.key-play-card .non-recent-error-state {\\n position: absolute;\\n top: 1.125rem;\\n right: 1.125rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".sdk--key-play-error-state-unsupportedEvent {\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n}\\n.sdk--key-play-error-state-unsupportedEvent::after {\\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent {\\n overflow-y: hidden;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n scrollbar-width: none;\\n display: flex;\\n flex-direction: column;\\n gap: 6.25rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n gap: 1rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\\n content: '';\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n bottom: 0;\\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\\n display: flex;\\n gap: 1rem;\\n padding: 1.75rem 1.5rem;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface3);\\n height: 8rem;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n border-radius: 0.625rem;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n padding: 1.5rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure p {\\n margin: 0;\\n height: 5.375rem;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,gCAAgC;EAChC,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;EAClB,kDAAkD;EAClD,gCAAgC;EAChC,qBAAqB;EACrB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,qEAAqE;AACvE;;AAEA;EACE,aAAa;EACb,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,qCAAqC;EACrC,YAAY;AACd;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,uBAAuB;EACvB,kCAAkC;EAClC,yCAAyC;EACzC,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB\",\"sourcesContent\":[\".sdk--key-play-error-state-unsupportedEvent {\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n}\\n.sdk--key-play-error-state-unsupportedEvent::after {\\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unsupportedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent {\\n overflow-y: hidden;\\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\\n padding: 2.25rem 1.5rem 0 1.5rem;\\n scrollbar-width: none;\\n display: flex;\\n flex-direction: column;\\n gap: 6.25rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent p {\\n margin: 0;\\n color: var(--sdk-text200);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n gap: 1rem;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n position: relative;\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\\n content: '';\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n bottom: 0;\\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\\n}\\n\\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\\n display: flex;\\n gap: 1rem;\\n padding: 1.75rem 1.5rem;\\n border-radius: 0.625rem;\\n background-color: var(--sdk-surface3);\\n height: 8rem;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure {\\n display: flex;\\n flex-direction: column;\\n gap: 1rem;\\n border-radius: 0.625rem;\\n border: 0.188rem solid transparent;\\n transition: border-color 0.2s ease-in-out;\\n padding: 1.5rem;\\n background-color: var(--sdk-surface4);\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure h3 {\\n margin: 0;\\n}\\n\\n.sdk--key-play-error-state-tabLoadFailure p {\\n margin: 0;\\n height: 5.375rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".action-button {\\n padding: 23px 0;\\n background-color: var(--sdk-accentSecondary);\\n color: var(--sdk-text100);\\n}\\n\\n.action-button:hover, .action-button[data-focused=true] {\\n background-color: var(--sdk-accentPrimary);\\n color: var(--sdk-text500);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/ActionButton/ActionButton.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,eAAe;EACf,4CAA4C;EAC5C,yBAAyB;AAC3B;;AAEA;EACE,0CAA0C;EAC1C,yBAAyB;AAC3B\",\"sourcesContent\":[\".action-button {\\n padding: 23px 0;\\n background-color: var(--sdk-accentSecondary);\\n color: var(--sdk-text100);\\n}\\n\\n.action-button:hover, .action-button[data-focused=true] {\\n background-color: var(--sdk-accentPrimary);\\n color: var(--sdk-text500);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".panel-navigation {\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n gap: 0.75rem;\\n overflow-x: auto;\\n scrollbar-width: none;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;AACvB\",\"sourcesContent\":[\".panel-navigation {\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n gap: 0.75rem;\\n overflow-x: auto;\\n scrollbar-width: none;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".panel-nav-button-container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n gap: 0.625rem;\\n color: var(--sdk-text300);\\n flex: 1;\\n\\n}\\n\\n.panel-nav-button-container path {\\n fill: var(--sdk-highlightSecondary);\\n}\\n\\n.panel-nav-button-container button {\\n padding: 8px 0;\\n background-color: var(--sdk-surface3);\\n min-width: 6.5rem;\\n\\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\\n}\\n\\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\\n color: var(--sdk-text100);\\n}\\n\\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\\n fill: var(--sdk-highlightTertiary);\\n}\\n\\n.panel-nav-button-container[data-focused=true] button, .panel-nav-button-container:hover button {\\n background-color: var(--sdk-accentPrimary);\\n}\\n\\n.panel-nav-button-active button {\\n background-color: var(--sdk-surface5);\\n}\\n\\n.panel-nav-button-active path {\\n fill: var(--sdk-highlightPrimary);\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;EACb,yBAAyB;EACzB,OAAO;;AAET;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;EACrC,iBAAiB;;EAEjB,qEAAqE;AACvE;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC\",\"sourcesContent\":[\".panel-nav-button-container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n gap: 0.625rem;\\n color: var(--sdk-text300);\\n flex: 1;\\n\\n}\\n\\n.panel-nav-button-container path {\\n fill: var(--sdk-highlightSecondary);\\n}\\n\\n.panel-nav-button-container button {\\n padding: 8px 0;\\n background-color: var(--sdk-surface3);\\n min-width: 6.5rem;\\n\\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\\n}\\n\\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\\n color: var(--sdk-text100);\\n}\\n\\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\\n fill: var(--sdk-highlightTertiary);\\n}\\n\\n.panel-nav-button-container[data-focused=true] button, .panel-nav-button-container:hover button {\\n background-color: var(--sdk-accentPrimary);\\n}\\n\\n.panel-nav-button-active button {\\n background-color: var(--sdk-surface5);\\n}\\n\\n.panel-nav-button-active path {\\n fill: var(--sdk-highlightPrimary);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","/* eslint-disable react/no-find-dom-node */\nimport { findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { Component, createElement } from 'react';\nimport SpatialNavigation, { ROOT_FOCUS_KEY } from './spatialNavigation';\nimport { Direction, Layout } from './utils';\n\ninterface WithFocusableConfig {\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n autoRestoreFocus?: boolean;\n blockNavigationOut?: boolean;\n}\n\nexport interface WithFocusableProps {\n focused?: boolean;\n focusKey?: string;\n parentFocusKey?: string;\n preferredChildFocusKey?: string;\n forgetLastFocusedChild?: boolean;\n trackChildren?: boolean;\n autoRestoreFocus?: boolean;\n blockNavigationOut?: boolean;\n focusable?: boolean;\n onEnterPress?: (\n props: any,\n details: { pressedKeys: Record<string, number> }\n ) => void;\n onEnterRelease?: (props: any) => void;\n onArrowPress?: (\n direction: Direction,\n props: any,\n details: { pressedKeys: Record<string, number> }\n ) => boolean | void;\n onBecameFocused?: (layout: Layout, props: any, details: any) => void;\n onBecameBlurred?: (layout: Layout, props: any, details: any) => void;\n}\n\nexport interface WithFocusableState {\n realFocusKey: string;\n focused: boolean;\n hasFocusedChild: boolean;\n parentFocusKey: string;\n}\n\n// Helper functions to replace lodash and recompose\nconst uniqueId = (prefix: string): string =>\n `${prefix}${Math.random().toString(36).substr(2, 9)}`;\n\nconst noop = () => {};\n\nconst omit = <T extends Record<string, any>>(\n obj: T,\n keys: string[]\n): Partial<T> => {\n const result = { ...obj };\n keys.forEach((key) => delete result[key]);\n return result;\n};\n\nconst withFocusable = <P extends object>({\n forgetLastFocusedChild: configForgetLastFocusedChild = false,\n trackChildren: configTrackChildren = false,\n autoRestoreFocus: configAutoRestoreFocus,\n blockNavigationOut: configBlockNavigationOut = false,\n}: WithFocusableConfig = {}) => {\n return (WrappedComponent: React.ComponentType<P & WithFocusableProps>) => {\n return class WithFocusable extends Component<\n P & WithFocusableProps,\n WithFocusableState\n > {\n static contextTypes = {\n parentFocusKey: PropTypes.string,\n };\n\n static childContextTypes = {\n parentFocusKey: PropTypes.string,\n };\n\n state: WithFocusableState = {\n realFocusKey: this.props.focusKey || uniqueId('sn:focusable-item-'),\n focused: false,\n hasFocusedChild: false,\n parentFocusKey: this.props.parentFocusKey || ROOT_FOCUS_KEY,\n };\n\n getChildContext() {\n return {\n parentFocusKey: this.state.realFocusKey,\n };\n }\n\n setFocus = (focusKey: string) => {\n if (!SpatialNavigation.isNativeMode()) {\n SpatialNavigation.setFocus(focusKey);\n }\n };\n\n navigateByDirection = SpatialNavigation.navigateByDirection;\n\n stealFocus = () => {\n SpatialNavigation.setFocus(this.state.realFocusKey, {\n focusKey: this.state.realFocusKey,\n });\n };\n\n onUpdateFocus = (focused: boolean) => {\n this.setState({ focused });\n };\n\n onUpdateHasFocusedChild = (hasFocusedChild: boolean) => {\n this.setState({ hasFocusedChild });\n };\n\n onEnterPressHandler = (details: {\n pressedKeys: Record<string, number>;\n }) => {\n const { onEnterPress = noop, ...rest } = this.props;\n onEnterPress(rest, details);\n };\n\n onEnterReleaseHandler = () => {\n const { onEnterRelease = noop, ...rest } = this.props;\n onEnterRelease(rest);\n };\n\n onArrowPressHandler = (\n direction: Direction,\n details: { pressedKeys: Record<string, number> }\n ) => {\n const { onArrowPress = noop, ...rest } = this.props;\n return onArrowPress(direction, rest, details);\n };\n\n onBecameFocusedHandler = (layout: Layout, details: any) => {\n const { onBecameFocused = noop, ...rest } = this.props;\n onBecameFocused(layout, rest, details);\n };\n\n onBecameBlurredHandler = (layout: Layout, details: any) => {\n const { onBecameBlurred = noop, ...rest } = this.props;\n onBecameBlurred(layout, rest, details);\n };\n\n componentDidMount() {\n const { realFocusKey: focusKey, parentFocusKey } = this.state;\n\n const {\n preferredChildFocusKey,\n forgetLastFocusedChild = false,\n trackChildren,\n focusable = true,\n autoRestoreFocus = true,\n blockNavigationOut = false,\n } = this.props;\n\n let node: HTMLElement;\n if (SpatialNavigation.isNativeMode()) {\n node = document.createElement('div');\n } else {\n const domNode = findDOMNode(this) as Element;\n if (!domNode) {\n throw new Error('Could not find DOM node');\n }\n node = domNode as HTMLElement;\n }\n\n SpatialNavigation.addFocusable({\n focusKey,\n node,\n parentFocusKey,\n preferredChildFocusKey,\n onEnterPressHandler: this.onEnterPressHandler,\n onEnterReleaseHandler: this.onEnterReleaseHandler,\n onArrowPressHandler: this.onArrowPressHandler,\n onBecameFocusedHandler: this.onBecameFocusedHandler,\n onBecameBlurredHandler: this.onBecameBlurredHandler,\n onUpdateFocus: this.onUpdateFocus,\n onUpdateHasFocusedChild: this.onUpdateHasFocusedChild,\n forgetLastFocusedChild:\n configForgetLastFocusedChild || forgetLastFocusedChild,\n trackChildren: configTrackChildren || trackChildren,\n blockNavigationOut: configBlockNavigationOut || blockNavigationOut,\n autoRestoreFocus:\n configAutoRestoreFocus !== undefined\n ? configAutoRestoreFocus\n : autoRestoreFocus,\n focusable,\n });\n }\n\n componentDidUpdate() {\n const { realFocusKey: focusKey } = this.state;\n\n const {\n preferredChildFocusKey,\n focusable = true,\n blockNavigationOut = false,\n } = this.props;\n\n let node: HTMLElement;\n if (SpatialNavigation.isNativeMode()) {\n node = document.createElement('div');\n } else {\n const domNode = findDOMNode(this) as Element;\n if (!domNode) {\n throw new Error('Could not find DOM node');\n }\n node = domNode as HTMLElement;\n }\n\n SpatialNavigation.updateFocusable(focusKey, {\n node,\n preferredChildFocusKey,\n focusable,\n blockNavigationOut: configBlockNavigationOut || blockNavigationOut,\n });\n }\n\n componentWillUnmount() {\n const { realFocusKey: focusKey } = this.state;\n SpatialNavigation.removeFocusable({ focusKey });\n }\n\n render() {\n const props = {\n ...this.props,\n ...this.state,\n setFocus: this.setFocus,\n navigateByDirection: this.navigateByDirection,\n stealFocus: this.stealFocus,\n onUpdateFocus: this.onUpdateFocus,\n onUpdateHasFocusedChild: this.onUpdateHasFocusedChild,\n };\n\n const filteredProps = omit(props, [\n 'onBecameFocusedHandler',\n 'onBecameBlurredHandler',\n 'onEnterPressHandler',\n 'onEnterReleaseHandler',\n 'onArrowPressHandler',\n 'onUpdateFocus',\n 'onUpdateHasFocusedChild',\n 'forgetLastFocusedChild',\n 'trackChildren',\n 'autoRestoreFocus',\n ]);\n\n return createElement(\n WrappedComponent,\n filteredProps as P & WithFocusableProps\n );\n }\n };\n };\n};\n\nexport default withFocusable;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelManager.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { ButtonHTMLAttributes } from 'react';\n\n// Base button styling\nconst ButtonStyle: React.CSSProperties = {\n borderRadius: 6,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n width: '100%',\n border: 'none',\n};\ninterface BaseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {}\n\nclass BaseButton extends React.Component<BaseButtonProps> {\n constructor(props: BaseButtonProps) {\n super(props);\n }\n\n render() {\n const style = {\n ...ButtonStyle,\n ...this.props.style,\n };\n\n return (\n <button style={style} {...this.props}>\n {this.props.children}\n </button>\n );\n }\n}\n\nexport default BaseButton;\n","import React from 'react';\nimport { IconProps } from './Icon';\n\nclass KeyPlaysIcon extends React.Component<IconProps, {}> {\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 30 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M27.375 4.75H2.625V7H27.375V4.75Z\" fill=\"white\" />\n <path d=\"M25.125 0.25H4.875V2.5H25.125V0.25Z\" fill=\"white\" />\n <path\n d=\"M0.375 9.25V31.75H29.625V9.25H0.375ZM11.625 26.125V14.875L20.625 20.5L11.625 26.125Z\"\n fill=\"white\"\n />\n </svg>\n );\n }\n}\n\nexport default KeyPlaysIcon;\n","import React from 'react';\nimport { IconProps } from './Icon';\n\nclass PlayIcon extends React.Component<IconProps, {}> {\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.1891 8.29879C18.6116 8.5331 18.9367 8.80345 19.162 9.10985C19.3873 9.41624 19.5 9.71863 19.5 10.019C19.5 10.3194 19.396 10.6158 19.1837 10.9102C18.9713 11.2026 18.6463 11.4669 18.2108 11.7012L10.9111 15.6724L3.58975 19.6035C3.15207 19.8378 2.74256 19.9679 2.36122 19.994C1.98204 20.02 1.65703 19.9619 1.38836 19.8177C1.12185 19.6735 0.905177 19.4453 0.742673 19.1328C0.582335 18.8204 0.5 18.4419 0.5 17.9994V2.00062C0.5 1.55805 0.573669 1.17956 0.721006 0.867153C0.87051 0.554748 1.09152 0.326452 1.38836 0.182265C1.6852 0.0380777 2.02104 -0.0199976 2.39372 0.00603615C2.76639 0.0340725 3.16507 0.164241 3.58975 0.398545L10.9111 4.36769L18.1891 8.29879Z\"\n fill=\"white\"\n />\n </svg>\n );\n }\n}\n\nexport default PlayIcon;\n","import React from 'react';\nimport { IconProps } from './Icon';\nclass BetsIcon extends React.Component<IconProps> {\n constructor(props: IconProps) {\n super(props);\n }\n\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 36 36\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.4393 4.5H6.61944L3.34766 31.5C3.34766 31.5 19.7066 31.5 22.7432 31.5C23.3056 31.5 23.8679 31.4591 24.4251 31.3773C26.0406 31.1268 28.7193 30.3445 29.8491 27.6808C30.3501 26.4947 30.7387 23.1919 30.8665 22.3023C31.1783 20.1345 30.0178 18.8819 28.8625 18.1508C28.6069 17.9923 28.6733 17.6038 28.9647 17.5322C30.1814 17.2203 31.3266 16.571 31.6435 15.1906C31.8633 14.2192 32.0781 12.0872 32.2263 10.9011C32.9113 5.92643 29.568 4.5 26.4393 4.5ZM24.1542 19.792H15.8213L15.6117 21.5047H23.9497L23.4589 25.4773H10.1468L11.2715 16.3154H24.5836L24.1593 19.7869L24.1542 19.792ZM24.7779 14.7202H11.4658L11.9821 10.5227H25.2942L24.783 14.7202H24.7779Z\"\n fill=\"#9DA0A6\"\n />\n </svg>\n );\n }\n}\n\nexport default BetsIcon;\n","import React from 'react';\nimport { IconProps } from './Icon';\n\nclass StatsIcon extends React.Component<IconProps, {}> {\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 36 36\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#clip0_538_5831)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.5925 1.7998V32.6941H10.4849V14.8588H3.671V32.6941H0.899902V34.7641H35.099V32.6941H32.3603V8.0125H25.514V32.6941H21.4397V1.7998H14.5925Z\"\n fill=\"#9DA0A6\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_538_5831\">\n <rect width=\"36\" height=\"36\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n );\n }\n}\n\nexport default StatsIcon;\n","import React from 'react';\nimport { IconProps } from './Icon';\n\nclass FantasyIcon extends React.Component<IconProps, {}> {\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 36 36\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.96879 29.0297C11.6061 31.2694 14.6822 32.9334 18.0001 33.9152C21.3179 32.9334 24.394 31.2694 27.0313 29.0297C29.6686 26.7899 31.8089 24.0239 33.3151 20.9089C31.6987 16.1971 30.9721 11.2259 31.1722 6.24861C26.9818 4.51945 22.5273 3.51728 18.0001 3.28516C13.4728 3.51728 9.01831 4.51945 4.82788 6.24861C5.02804 11.2259 4.30143 16.1971 2.68506 20.9089C4.19119 24.0239 6.33149 26.7899 8.96879 29.0297ZM11.7503 14.7153L12.2646 10.5164H25.5772L25.0616 14.7153H11.7503ZM23.7355 25.4753H10.423L11.5486 16.3157H24.8599L24.4349 19.7871H16.1048L15.8917 21.4998H24.2282L23.7355 25.4753Z\"\n fill=\"#9DA0A6\"\n />\n </svg>\n );\n }\n}\n\nexport default FantasyIcon;\n","import React from 'react';\nimport { IconProps } from './Icon';\n\nclass WarningIcon extends React.Component<IconProps, {}> {\n render() {\n return (\n <svg\n width={this.props.width}\n height={this.props.height}\n viewBox=\"0 0 22 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.0022 0.75L21.8012 19.4545H0.203125L11.0022 0.75ZM11.7522 13.5V7.5H10.2522V13.5H11.7522ZM11.8022 14.95H10.2022V16.55H11.8022V14.95Z\"\n fill=\"#F58B00\"\n />\n </svg>\n );\n }\n}\n\nexport default WarningIcon;\n","import React from 'react';\nimport KeyPlaysIcon from './KeyPlaysIcon';\nimport PlayIcon from './PlayIcon';\nimport BetsIcon from './BetsIcon';\nimport StatsIcon from './StatsIcon';\nimport FantasyIcon from './FantasyIcon';\nimport WarningIcon from './WarningIcon';\n\nconst iconImports = {\n keyPlays: KeyPlaysIcon,\n play: PlayIcon,\n bets: BetsIcon,\n stats: StatsIcon,\n fantasy: FantasyIcon,\n warning: WarningIcon,\n};\n\nexport type IconsName = keyof typeof iconImports;\n\nexport type IconProps = {\n iconName: IconsName;\n width: number;\n height: number;\n};\n\n// Skeleton component for loading state\nconst Skeleton = (props: Omit<IconProps, 'iconName'>) => (\n <div style={{ width: props.width, height: props.height }} />\n);\n\ninterface IconState {\n loaded: boolean;\n}\nclass Icon extends React.Component<IconProps, IconState> {\n render() {\n const { iconName, width, height } = this.props;\n\n const IconComponent = iconImports[iconName];\n if (!IconComponent) {\n return <Skeleton width={width} height={height} />;\n }\n\n return <IconComponent iconName={iconName} width={width} height={height} />;\n }\n}\n\nexport default Icon;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelNavButton.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\n\nconst BACK_KEY_CODE = 10009;\n\nexport type RemoteControlProps = {\n onBackPressed?: (e: KeyboardEvent) => void;\n onLeftPressed?: (e: KeyboardEvent) => void;\n remoteControlActive?: boolean;\n};\n\nexport const withRemoteControl = <P extends object>(\n WrappedComponent: React.ComponentType<P>\n) => {\n return class WithRemoteControl extends React.Component<\n P & RemoteControlProps,\n {\n active: boolean;\n }\n > {\n cleanup?: () => void;\n\n constructor(props: P & RemoteControlProps) {\n super(props);\n this.state = {\n active: props.remoteControlActive || false,\n };\n }\n\n componentDidUpdate(prevProps: Readonly<P & RemoteControlProps>) {\n if (prevProps.remoteControlActive && !this.props.remoteControlActive) {\n window.removeEventListener('keydown', this.handleKeyDown);\n } else if (\n !prevProps.remoteControlActive &&\n this.props.remoteControlActive\n ) {\n window.addEventListener('keydown', this.handleKeyDown);\n }\n }\n\n componentDidMount() {\n window.addEventListener('keydown', this.handleKeyDown);\n\n this.cleanup = () => {\n window.removeEventListener('keydown', this.handleKeyDown);\n };\n }\n\n componentWillUnmount() {\n if (this.cleanup) {\n this.cleanup();\n }\n }\n\n handleKeyDown = (e: KeyboardEvent) => {\n const { onBackPressed, onLeftPressed } = this.props;\n\n if (!this.props.remoteControlActive) return;\n\n if ((e.keyCode === BACK_KEY_CODE || e.key === 'b') && onBackPressed) {\n onBackPressed(e);\n }\n\n if ((e.key === 'ArrowLeft' || e.keyCode === 37) && onLeftPressed) {\n onLeftPressed(e);\n }\n };\n\n render() {\n const { ...props } = this.props;\n return <WrappedComponent {...(props as P)} />;\n }\n };\n};\n\nexport default withRemoteControl;\n","import BaseButton from '@/components/atoms/BaseButton/BaseButton';\nimport Icon, { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavButton.styles.css';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { withFocusable } from '@/external/spatial-navigation';\nimport withRemoteControl, {\n RemoteControlProps,\n} from '@/helpers/withRemoteControl';\n\ntype PanelNavButtonProps = RemoteControlProps & {\n iconName: IconsName;\n index: number;\n active: boolean;\n children?: React.ReactNode;\n focused?: boolean;\n focusKey: string;\n onBecameFocused: () => void;\n buttonRef?: React.Ref<HTMLDivElement>;\n};\n\nclass PanelNavButton extends React.Component<PanelNavButtonProps, {}> {\n static displayName = 'PanelNavButton';\n\n static propTypes = {\n iconName: PropTypes.string.isRequired,\n index: PropTypes.number.isRequired,\n active: PropTypes.bool.isRequired,\n children: PropTypes.node,\n focused: PropTypes.bool,\n onBecameFocused: PropTypes.func,\n buttonRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n };\n\n render() {\n const { iconName, active, children, focused, buttonRef } = this.props;\n\n return (\n <div\n className={[\n 'panel-nav-button-container',\n 'T02',\n active ? 'panel-nav-button-active' : '',\n ].join(' ')}\n data-focused={focused}\n ref={buttonRef}\n >\n <BaseButton>\n <Icon iconName={iconName} height={36} width={36} />\n </BaseButton>\n {children}\n </div>\n );\n }\n}\n\nexport default withRemoteControl(\n withFocusable<PanelNavButtonProps>()(PanelNavButton)\n);\n","import PanelNavButton from './PanelNavButton';\n\nexport default PanelNavButton;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./PanelNavigation.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import { pause } from '@/external/spatial-navigation';\nimport SDK from '..';\n\n/**\n * @description Useful when you want to lose the focus of the SDK and delegate it to the Client App.\n */\nconst deliverFocus = (e: HTMLElement) => {\n const eventVm = SDK.getMaestroEventViewModel();\n e.dataset['focused'] = 'false';\n pause();\n eventVm.delegate.startFocusManagement();\n};\n\nexport default deliverFocus;\n","import PanelNavButton from '@/components/molecules/PanelNavButton';\nimport { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavigation.styles.css';\nimport React from 'react';\nimport deliverFocus from '@/helpers/deliver-focus';\n\ninterface PanelNavigationProps {\n items: {\n title: string;\n onEnter: () => void;\n iconName: IconsName;\n active: boolean;\n }[];\n}\n\nclass PanelNavigationButton extends React.Component<{\n item: PanelNavigationProps['items'][number];\n index: number;\n}> {\n private buttonElement: HTMLDivElement | null = null;\n state = {\n itemFocused: null,\n };\n\n setButtonRef = (el: HTMLDivElement | null) => {\n this.buttonElement = el;\n };\n\n handleLeftPressed = () => {\n if (this.buttonElement) {\n deliverFocus(this.buttonElement);\n }\n };\n\n handleBecameFocused = (index: number, fn: () => void) => () => {\n this.setState({ itemFocused: index }, fn);\n };\n\n handleBecameBlurred = () => {\n this.setState({ itemFocused: null });\n };\n\n render() {\n const { item, index } = this.props;\n return (\n <PanelNavButton\n iconName={item.iconName}\n key={item.title}\n index={index}\n onBecameFocused={this.handleBecameFocused(index, item.onEnter)}\n onBecameBlurred={this.handleBecameBlurred}\n active={item.active}\n focusKey={`PANEL_NAV_BUTTON_${index}`}\n remoteControlActive={this.state.itemFocused === 0}\n onLeftPressed={this.handleLeftPressed}\n buttonRef={this.setButtonRef}\n >\n {item.title}\n </PanelNavButton>\n );\n }\n}\n\nclass PanelNavigation extends React.Component<PanelNavigationProps> {\n render() {\n return (\n <div className=\"panel-navigation\">\n {this.props.items.map((item, index) => (\n <PanelNavigationButton key={item.title} item={item} index={index} />\n ))}\n </div>\n );\n }\n}\n\nexport default PanelNavigation;\n","import PanelNavigation from './PanelNavigation';\n\nexport default PanelNavigation;\n","import React from 'react';\nimport { ImgHTMLAttributes } from 'react';\n\ninterface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {}\n\nclass Image extends React.Component<ImageProps> {\n constructor(props: ImageProps) {\n super(props);\n }\n\n render() {\n return <img alt={this.props.alt || 'Image'} {...this.props} />;\n }\n}\n\nexport default Image;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlayCardView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import Icon from './Icon';\n\nexport default Icon;\n","import React from 'react';\n\nexport default class ScoreCard extends React.Component<\n {\n awayTeamScore?: number;\n homeTeamScore?: number;\n homeTeamName: string;\n awayTeamName: string;\n },\n {}\n> {\n render() {\n const {\n awayTeamScore,\n homeTeamScore,\n homeTeamName,\n awayTeamName,\n } = this.props;\n\n return (\n <div className=\"score\">\n <div className=\"score-team T05_ALT\">\n {homeTeamName}\n <span className=\"T30\">{homeTeamScore}</span>\n </div>\n <div className=\"score-team T05_ALT\">\n <span className=\"T30\">{awayTeamScore}</span>\n {awayTeamName}\n </div>\n </div>\n );\n }\n}\n","import Image from '@/components/atoms/Image';\nimport { BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK } from '../constants';\nimport IKeyPlay, { KeyPlayLoadFailureStatus } from '../interfaces/IKeyPlays';\nimport './KeyPlayCardView.styles.css';\nimport SDK from '@/index';\nimport Icon from '@/components/atoms/SvgIcon';\nimport React from 'react';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\nimport ScoreCard from './KeyPlayCardScoreTagView';\nimport KeyPlaysViewModel from '../view-model/KeyPlaysViewModel';\nimport withRemoteControl, {\n RemoteControlProps,\n} from '@/helpers/withRemoteControl';\nimport deliverFocus from '@/helpers/deliver-focus';\n\ntype KeyPlayCardViewProps = IKeyPlay & {\n isPlaying: boolean;\n playbackProgress: number | null;\n isScoring: boolean;\n setFocus?: (focusKey: string) => void;\n focused?: boolean;\n setRef: (ref: HTMLDivElement | null) => void;\n};\n\ntype KeyPlaysCardViewState = {\n failedClip: KeyPlayLoadFailureStatus | null;\n};\n\nclass KeyPlayCardView extends React.Component<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps,\n KeyPlaysCardViewState\n> {\n private failedClipListener: () => void = () => {};\n private ref: HTMLDivElement | null = null;\n private vm: KeyPlaysViewModel;\n state = {\n failedClip: null,\n };\n\n constructor(props: KeyPlayCardViewProps) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n }\n\n componentDidMount() {\n this.failedClipListener = this.vm.failedClips.subscribe((failedClips) => {\n this.setState({ failedClip: failedClips[this.props.clipID] });\n });\n\n this.props.setRef(this.ref);\n }\n\n componentWillUnmount() {\n if (this.failedClipListener) {\n this.failedClipListener();\n }\n }\n\n renderImage = () => {\n const { playerImageUrl, teamImageUrl, thumbnailImageUrl } = this.props;\n if (playerImageUrl) {\n return (\n <Image\n src={playerImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Player Image\"\n className=\"cardImage\"\n />\n );\n }\n\n if (teamImageUrl) {\n return (\n <Image\n src={teamImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Team Image\"\n className=\"cardImage\"\n />\n );\n }\n\n if (thumbnailImageUrl) {\n return (\n <Image\n src={thumbnailImageUrl}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Thumbnail Image\"\n className=\"cardImage\"\n />\n );\n }\n\n return (\n <Image\n src={BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK}\n crossOrigin=\"anonymous\"\n alt=\"Key Play Thumbnail Image\"\n className=\"cardImage\"\n />\n );\n };\n\n render() {\n const {\n clipID,\n description,\n isPlaying,\n playbackProgress,\n isScoring,\n focused,\n awayTeamScore,\n homeTeamScore,\n homeTeamName,\n awayTeamName,\n } = this.props;\n const { failedClip } = this.state;\n\n return (\n <div\n className=\"key-play-card\"\n id={clipID}\n data-focused={focused}\n ref={(ref) => (this.ref = ref)}\n >\n <div className=\"key-play-card-content\">\n {this.renderImage()}\n <div className=\"text-content T05_ALT\">\n <div className=\"multi-line\">{description}</div>\n </div>\n </div>\n {isPlaying && playbackProgress !== null && (\n <progress value={playbackProgress} max=\"1\" />\n )}\n {isScoring && (\n <ScoreCard\n awayTeamScore={awayTeamScore}\n homeTeamScore={homeTeamScore}\n homeTeamName={homeTeamName}\n awayTeamName={awayTeamName}\n />\n )}\n\n {failedClip === 'recentFailure' && (\n <div className=\"error-state\">\n <Icon iconName=\"warning\" width={21.6} height={18.7} />\n <span className=\"T05_ALT\">Could not play this clip. </span>\n </div>\n )}\n {failedClip === 'nonRecentFailure' && (\n <div className=\"non-recent-error-state\">\n <Icon iconName=\"warning\" width={21.6} height={18.7} />\n </div>\n )}\n </div>\n );\n }\n}\n\nconst WithRemoteControlKeyPlayCard = withRemoteControl(\n KeyPlayCardView as React.ComponentType<KeyPlayCardViewProps>\n);\n\nexport class KeyPlayCard extends React.Component<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps\n> {\n private ref: HTMLDivElement | null = null;\n\n setRef = (ref: HTMLDivElement | null) => {\n this.ref = ref;\n this.props.setRef(ref);\n };\n\n handleLeftPressed = () => {\n if (this.ref) {\n deliverFocus(this.ref);\n }\n };\n\n render() {\n return (\n <WithRemoteControlKeyPlayCard\n {...this.props}\n setRef={this.setRef}\n remoteControlActive={this.props.focused}\n onLeftPressed={this.handleLeftPressed}\n />\n );\n }\n}\n\nexport default withFocusable<\n KeyPlayCardViewProps & WithFocusableProps & RemoteControlProps\n>()(KeyPlayCard);\n","import IMaestroKeyPlaysResponse from './interfaces/IKeyPlaysResponse';\n\nexport const KEY_PLAYS_RESPONSE_MOCK_DATA: IMaestroKeyPlaysResponse = {\n entities: {\n team: {\n '251': {\n id: '251',\n displayName: 'Texas Longhorns',\n color: 'c15d26',\n alternateColor: 'ffffff',\n shortName: 'Texas',\n homeAway: 'away',\n displayOrder: '1',\n logoRef:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/251.jpg?w=184&h=144',\n logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/251.png',\n },\n '264': {\n id: '264',\n displayName: 'Washington Huskies',\n color: '33006f',\n alternateColor: 'e8d3a2',\n shortName: 'Washington',\n homeAway: 'home',\n displayOrder: '0',\n logoRef:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/264.jpg?w=184&h=144',\n logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/264.png',\n },\n },\n athlete: {\n '4360423': {\n id: '4360423',\n shortName: 'M. Penix Jr.',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n },\n '4430637': {\n id: '4430637',\n shortName: 'J. Polk',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',\n },\n '4430834': {\n id: '4430834',\n shortName: 'J. McMillan',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',\n },\n '4569337': {\n id: '4569337',\n shortName: 'R. Sanborn',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',\n },\n '4570040': {\n id: '4570040',\n shortName: 'B. Murphy II',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',\n },\n '4597500': {\n id: '4597500',\n shortName: 'A. Mitchell',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',\n },\n '4689338': {\n id: '4689338',\n shortName: 'D. Johnson',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n },\n '4870609': {\n id: '4870609',\n shortName: 'C. Baxter',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n },\n '4889929': {\n id: '4889929',\n shortName: 'Q. Ewers',\n headshot:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n },\n },\n },\n sections: [\n {\n title: '1st Quarter',\n items: [\n {\n description: \"Ja'Lynn Polk's 77-yard catch sets up Washington TD\",\n team: '264',\n awayScore: '0',\n homeScore: '7',\n wallClock: '2024-01-02T02:11:05Z',\n displayClock: '11:04',\n shortPeriod: 'Q1',\n scoringPlay: true,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225214',\n },\n {\n description: 'Germie Bernard makes leaping grab for Washington',\n team: '264',\n wallClock: '2024-01-02T02:38:54Z',\n displayClock: '1:30',\n shortPeriod: 'Q1',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225401',\n },\n ],\n },\n {\n title: '2nd Quarter',\n items: [\n {\n description: 'Dillon Johnson scores 2nd TD of game for the Huskies',\n team: '264',\n awayScore: '7',\n homeScore: '14',\n wallClock: '2024-01-02T02:47:33Z',\n displayClock: '13:08',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225442',\n },\n {\n description: 'Texas takes over after Washington muffs punt',\n team: '251',\n wallClock: '2024-01-02T02:54:50Z',\n displayClock: '11:45',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4569337',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225487',\n },\n {\n description: 'Big man TD! Byron Murphy II punches it in for Texas',\n team: '251',\n awayScore: '14',\n homeScore: '14',\n wallClock: '2024-01-02T02:57:22Z',\n displayClock: '10:08',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4570040',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225513',\n },\n {\n description:\n 'Rome Odunze makes over-the-shoulder grab for Washington',\n team: '264',\n wallClock: '2024-01-02T03:02:27Z',\n displayClock: '9:31',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225518',\n },\n {\n description: \"Texas stops Washington's attempt on 4th down\",\n team: '251',\n wallClock: '2024-01-02T03:06:28Z',\n displayClock: '6:59',\n shortPeriod: 'Q2',\n scoringPlay: false,\n athlete: '4689338',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225559',\n },\n {\n description:\n \"Ja'Lynn Polk makes bobbling TD catch and Washington goes ahead\",\n team: '264',\n awayScore: '14',\n homeScore: '21',\n wallClock: '2024-01-02T03:27:56Z',\n displayClock: '1:27',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4430637',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225686',\n },\n {\n description: \"Texas ties the score after CJ Baxter's TD run\",\n team: '251',\n awayScore: '21',\n homeScore: '21',\n wallClock: '2024-01-02T03:38:42Z',\n displayClock: '0:17',\n shortPeriod: 'Q2',\n scoringPlay: true,\n athlete: '4870609',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39225762',\n },\n ],\n },\n {\n title: '3rd Quarter',\n items: [\n {\n description:\n 'Penix threads the needle to McMillan for Washington score',\n team: '264',\n awayScore: '21',\n homeScore: '28',\n wallClock: '2024-01-02T04:11:00Z',\n displayClock: '10:30',\n shortPeriod: 'Q3',\n scoringPlay: true,\n athlete: '4430834',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226021',\n },\n {\n description: 'Texas commits their first turnover of the game',\n team: '264',\n wallClock: '2024-01-02T04:16:16Z',\n displayClock: '10:14',\n shortPeriod: 'Q3',\n scoringPlay: false,\n athlete: '4870609',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226030',\n },\n ],\n },\n {\n title: '4th Quarter',\n items: [\n {\n description:\n 'Hang time! Adonai Mitchell makes incredible TD grab for Texas',\n team: '251',\n awayScore: '28',\n homeScore: '34',\n wallClock: '2024-01-01T05:08:14Z',\n displayClock: '7:23',\n shortPeriod: 'Q4',\n scoringPlay: true,\n athlete: '4597500',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226360',\n },\n {\n description: 'How did Penix drop this pass in to Odunze?',\n team: '264',\n wallClock: '2024-01-01T05:17:15Z',\n displayClock: '3:48',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4360423',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226394',\n },\n {\n description:\n \"Jordan Whittington's big catch gives Texas good field position\",\n team: '251',\n wallClock: '2024-01-01T05:41:48Z',\n displayClock: '0:28',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4889929',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226506',\n },\n {\n description:\n \"Washington survives Texas' final drive to win Sugar Bowl\",\n team: '264',\n wallClock: '2024-01-02T04:43:41Z',\n displayClock: '0:00',\n shortPeriod: 'Q4',\n scoringPlay: false,\n athlete: '4889929',\n thumbnail:\n 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',\n thumbnailType: 'headshot',\n clipID: '39226585',\n },\n ],\n },\n ],\n};\n\nexport const BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK =\n 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09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KACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==';\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./ScrollableGradient.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport './ScrollableGradient.styles.css';\n\ninterface ScrollableGradientProps {\n scrolled: boolean;\n children?: React.ReactNode;\n}\n\nclass ScrollableGradient extends React.Component<\n ScrollableGradientProps\n> {\n constructor(props: ScrollableGradientProps) {\n super(props);\n }\n\n render() {\n const className = [\n 'scrollable-gradient',\n this.props.scrolled ? 'scroll-container-scrolled' : '',\n ].join(' ');\n\n return <div className={className}>{this.props.children}</div>;\n }\n}\n\nexport default ScrollableGradient;\n","import ScrollableGradient from './ScrollableGradient';\n\nexport default ScrollableGradient;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlaysView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import BaseButton from './BaseButton';\n\nexport default BaseButton;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./ActionButton.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import BaseButton from '@/components/atoms/BaseButton';\nimport './ActionButton.styles.css';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\nimport React from 'react';\n\nclass ActionButton extends React.Component<WithFocusableProps, {}> {\n render() {\n return (\n <BaseButton className=\"action-button T05_ALT\" {...this.props}>\n {this.props.children}\n </BaseButton>\n );\n }\n}\n\nexport default withFocusable()(ActionButton);\n","import ActionButton from './ActionButton';\n\nexport default ActionButton;\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./KeyPlayErrorStateView.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import ActionButton from '@/components/molecules/ActionButton';\nimport { KeyPlaysErrorState } from '../interfaces/IKeyPlays';\nimport './KeyPlayErrorStateView.styles.css';\nimport React from 'react';\nimport {\n withFocusable,\n WithFocusableProps,\n} from '@/external/spatial-navigation';\n\ntype Props = {\n errorState: KeyPlaysErrorState;\n onRetry: () => void;\n};\n\nclass UnpopulatedEvent extends React.Component {\n render() {\n return (\n <div className=\"sdk--key-play-error-state-unpopulatedEvent\">\n <div className=\"main-content\">\n <h3 className=\"T70\">Greatness takes time.</h3>\n <p className=\"T20\">\n Key plays are still in the making! Come back soon to check 'em\n out.\n </p>\n </div>\n <div className=\"unpopulatedEvent-examples\">\n {Array.from({ length: 4 }).map((_, i) => (\n <div key={i} className=\"example\" />\n ))}\n </div>\n </div>\n );\n }\n}\n\nclass UnsupportedEvent extends React.Component {\n render() {\n return (\n <div className=\"sdk--key-play-error-state-unsupportedEvent\">\n <h3 className=\"T70\">No Key Plays Available</h3>\n <svg\n viewBox=\"0 0 520 359\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g opacity=\"0.16\">\n <path\n d=\"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z\"\n fill=\"#6D6D6D\"\n />\n <rect\n x=\"94.6687\"\n y=\"219.427\"\n width=\"51.6662\"\n height=\"25.259\"\n fill=\"#777777\"\n />\n <rect\n x=\"145.187\"\n y=\"39.1694\"\n width=\"20.6665\"\n height=\"149.258\"\n fill=\"#666666\"\n />\n <path\n d=\"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z\"\n fill=\"#666666\"\n />\n <path\n d=\"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z\"\n fill=\"#6D6D6D\"\n />\n <rect\n width=\"51.6662\"\n height=\"25.259\"\n transform=\"matrix(-1 0 0 1 427.055 219.427)\"\n fill=\"#777777\"\n />\n <rect\n width=\"20.6665\"\n height=\"149.258\"\n transform=\"matrix(-1 0 0 1 376.537 39.1694)\"\n fill=\"#666666\"\n />\n <path\n d=\"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z\"\n fill=\"#666666\"\n />\n <path\n d=\"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z\"\n fill=\"#B1B1B1\"\n />\n <rect\n x=\"23.4844\"\n y=\"141.354\"\n width=\"473.033\"\n height=\"19.5183\"\n fill=\"#777777\"\n />\n <rect\n x=\"72.8545\"\n y=\"51.7993\"\n width=\"374.293\"\n height=\"45.9255\"\n fill=\"#CDCDCD\"\n />\n </g>\n </svg>\n </div>\n );\n }\n}\n\nclass SimpleTabLoadFailure extends React.Component<WithFocusableProps> {\n render() {\n const { focused } = this.props;\n\n return (\n <div\n className=\"sdk--key-play-error-state-tabLoadFailure\"\n style={{\n borderColor: focused ? 'var(--sdk-highlightPrimary)' : 'transparent',\n }}\n >\n <h3 className=\"T70\">Let's try that again...</h3>\n <p className=\"T20\">{\"We're having trouble loading this.\"}</p>\n <ActionButton\n data-focused={focused}\n onEnterPress={this.props.onEnterPress}\n >\n Refresh\n </ActionButton>\n </div>\n );\n }\n}\n\nconst TabLoadFailure = withFocusable()(SimpleTabLoadFailure);\n\nclass KeyPlayErrorStateView extends React.Component<Props, {}> {\n render() {\n const { errorState, onRetry } = this.props;\n\n if (errorState === 'unsupportedEvent') {\n return <UnsupportedEvent />;\n }\n\n if (errorState === 'unpopulatedEvent') {\n return <UnpopulatedEvent />;\n }\n\n if (errorState === 'tabLoadFailure') {\n return <TabLoadFailure onEnterPress={onRetry} />;\n }\n\n return null;\n }\n}\n\nexport default KeyPlayErrorStateView;\n","import React, { Component } from 'react';\nimport KeyPlayCardView from './KeyPlayCardView';\nimport ScrollableGradient from '@/components/molecules/ScrollableGradient';\nimport './KeyPlaysView.styles.css';\nimport KeyPlayErrorStateView from './KeyPlayErrorStateView';\nimport SDK from '@/index';\nimport IKeyPlay, { KeyPlaysErrorState } from '../interfaces/IKeyPlays';\nimport KeyPlaysViewModel from '../view-model/KeyPlaysViewModel';\nimport { setFocus } from '@/external/spatial-navigation';\n\nconst STICKY_HEADER_HEIGHT = 32;\n\ntype Unsubscribe = () => void;\n\ninterface IKeyPlayItem {\n id: string;\n clipID: string;\n awayTeamScore?: number;\n homeTeamScore?: number;\n awayTeamName: string;\n homeTeamName: string;\n description: string;\n playerImageUrl: string;\n teamImageUrl: string;\n thumbnailImageUrl: string;\n}\n\ninterface IKeyPlaySection {\n title: string;\n items: IKeyPlayItem[];\n}\n\ninterface IKeyPlaysState {\n scrolled: boolean;\n playbackProgress: number | null;\n playbackIndex: number | null;\n items: IKeyPlaySection[];\n}\n\nexport class KeyPlays extends Component<{}, IKeyPlaysState> {\n private container: HTMLDivElement | null = null;\n private refsMap: Record<number, HTMLDivElement | null> = {};\n private playbackProgressUnsub: Unsubscribe | null = null;\n private playbackIndexUnsub: Unsubscribe | null = null;\n private itemsUnsub: Unsubscribe | null = null;\n private vm: KeyPlaysViewModel;\n\n constructor(props: {}) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n\n const rawSections = this.vm.items.value as {\n title: string;\n items: IKeyPlay[];\n }[];\n this.state = {\n scrolled: false,\n playbackProgress: this.vm.currentClipPlaybackProgress.value ?? null,\n playbackIndex: this.vm.currentlyPlayingClipIndex.value ?? null,\n items: rawSections.map((section) => ({\n title: section.title,\n items: section.items.map((item) => ({\n id: item.id,\n clipID: item.clipID,\n awayTeamScore: item.awayTeamScore,\n homeTeamScore: item.homeTeamScore,\n awayTeamName: item.awayTeamName,\n homeTeamName: item.homeTeamName,\n description: item.description,\n playerImageUrl: item.playerImageUrl || '',\n teamImageUrl: item.teamImageUrl || '',\n thumbnailImageUrl: item.thumbnailImageUrl || '',\n })),\n })),\n };\n }\n\n componentDidMount() {\n this.playbackProgressUnsub = this.vm.currentClipPlaybackProgress.subscribe(\n (value) => {\n this.setState({ playbackProgress: value ?? null });\n }\n );\n this.playbackIndexUnsub = this.vm.currentlyPlayingClipIndex.subscribe(\n (value) => {\n this.setState({ playbackIndex: value ?? null });\n }\n );\n this.itemsUnsub = this.vm.items.subscribe((rawSections) => {\n this.setState({\n items: (rawSections as { title: string; items: IKeyPlay[] }[]).map(\n (section) => ({\n title: section.title,\n items: section.items.map((item) => ({\n id: item.id,\n clipID: item.clipID,\n awayTeamScore: item.awayTeamScore,\n homeTeamScore: item.homeTeamScore,\n awayTeamName: item.awayTeamName,\n homeTeamName: item.homeTeamName,\n description: item.description,\n playerImageUrl: item.playerImageUrl || '',\n teamImageUrl: item.teamImageUrl || '',\n thumbnailImageUrl: item.thumbnailImageUrl || '',\n })),\n })\n ),\n });\n });\n }\n\n componentWillUnmount() {\n this.playbackProgressUnsub && this.playbackProgressUnsub();\n this.playbackIndexUnsub && this.playbackIndexUnsub();\n this.itemsUnsub && this.itemsUnsub();\n }\n\n private handlePlayClip = (index: number) => async () => {\n await this.vm.playKeyPlay(index);\n };\n\n private handleItemFocus = (index: number) => (node: any) => {\n if (!this.container || !node.node) return;\n\n const containerRect = this.container.getBoundingClientRect();\n const nodeRect = node.node.getBoundingClientRect();\n\n const indexes = Object.keys(this.refsMap)\n .map((key) => parseInt(key, 10))\n .sort((a, b) => a - b)\n .slice(index);\n\n let hasOutside = false;\n indexes.forEach((i) => {\n const el = this.refsMap[i];\n if (!el) return;\n const rect = el.getBoundingClientRect();\n if (rect.bottom > containerRect.bottom || rect.top < containerRect.top) {\n hasOutside = true;\n }\n });\n\n if (!hasOutside) return;\n\n const target =\n index === 0\n ? 0\n : this.container.scrollTop +\n (nodeRect.top - containerRect.top - STICKY_HEADER_HEIGHT);\n this.container.scrollTop = target;\n this.setState({ scrolled: target > 0 });\n };\n\n private setRef = (index: number) => (ref: HTMLDivElement | null) => {\n if (ref) this.refsMap[index] = ref;\n else delete this.refsMap[index];\n };\n\n render() {\n const { scrolled, playbackProgress, playbackIndex, items } = this.state;\n\n return (\n <ScrollableGradient scrolled={scrolled}>\n <div\n ref={(el) => {\n this.container = el;\n }}\n className=\"key-plays-view\"\n >\n {items.map((section, sectionIndex) => (\n <div key={`section-${sectionIndex}`} className=\"key-plays-section\">\n <h3 className=\"key-plays-section-title T10\">{section.title}</h3>\n <div className=\"key-plays-section-items\">\n {section.items.map((item) => {\n const absoluteIndex = this.vm.allItems.findIndex(\n (vmItem) => vmItem.id === item.id\n );\n return (\n <KeyPlayCardView\n key={item.id}\n id={item.id}\n clipID={item.clipID}\n description={item.description}\n awayTeamName={item.awayTeamName}\n homeTeamName={item.homeTeamName}\n awayTeamScore={item.awayTeamScore}\n homeTeamScore={item.homeTeamScore}\n playerImageUrl={item.playerImageUrl}\n teamImageUrl={item.teamImageUrl}\n thumbnailImageUrl={item.thumbnailImageUrl}\n isPlaying={this.vm.isCurrentlyPlaying(absoluteIndex)}\n isScoring={Boolean(\n item.awayTeamScore && item.homeTeamScore\n )}\n playbackProgress={\n absoluteIndex === playbackIndex\n ? playbackProgress\n : null\n }\n onEnterPress={this.handlePlayClip(absoluteIndex)}\n onBecameFocused={this.handleItemFocus(absoluteIndex)}\n setRef={this.setRef(absoluteIndex)}\n />\n );\n })}\n </div>\n </div>\n ))}\n <div className=\"key-plays-bottom-padding\" />\n </div>\n </ScrollableGradient>\n );\n }\n}\n\ninterface KeyPlaysWithErrorStateState {\n errorState: KeyPlaysErrorState;\n}\n\nexport default class KeyPlaysWithErrorState extends Component<\n {},\n KeyPlaysWithErrorStateState\n> {\n private errorStateUnsub: Unsubscribe | null = null;\n private vm: KeyPlaysViewModel;\n\n constructor(props: {}) {\n super(props);\n this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;\n this.state = { errorState: this.vm.errorState.value as KeyPlaysErrorState };\n }\n\n componentDidMount() {\n this.errorStateUnsub = this.vm.errorState.subscribe((value) => {\n this.setState({ errorState: value as KeyPlaysErrorState });\n });\n }\n\n componentWillUnmount() {\n this.errorStateUnsub && this.errorStateUnsub();\n }\n\n private handleRetry = async () => {\n await this.vm.userRequestedNewKeyPlaysData();\n setFocus('PANEL_NAV_BUTTON_0');\n };\n\n render() {\n const { errorState } = this.state;\n\n if (errorState) {\n return (\n <KeyPlayErrorStateView\n errorState={errorState}\n onRetry={this.handleRetry}\n />\n );\n }\n\n return <KeyPlays />;\n }\n}\n","import React from 'react';\nimport { PanelManagerViewModel } from '@/view-models/PanelManagerViewModel';\nimport './PanelManager.styles.css';\nimport PanelNavigation from '@/components/organisms/PanelNavigation';\nimport { MaestroPanelType } from '@/models/IPanel';\nimport KeyPlaysView from '@/modules/key-plays/view/KeyPlaysView';\n\nconst panelManagerViewModel = new PanelManagerViewModel();\n\nconst PANELS_MAP: Record<MaestroPanelType, React.ReactNode> = {\n keyPlays: <KeyPlaysView />,\n bets: <div className=\"panel-coming-soon T02\">Bets - Coming Soon</div>,\n stats: <div className=\"panel-coming-soon T02\">Stats - Coming Soon</div>,\n fantasy: <div className=\"panel-coming-soon T02\">Fantasy - Coming Soon</div>,\n};\n\ninterface PanelManagerState {\n activePanel: MaestroPanelType;\n}\n\nclass PanelManager extends React.Component<{}, PanelManagerState> {\n private unsubscribe: (() => void) | null = null;\n\n constructor(props: {}) {\n super(props);\n this.state = {\n activePanel: panelManagerViewModel.currentPanel,\n };\n }\n\n componentDidMount() {\n // Subscribe to changes in the view model\n this.unsubscribe = panelManagerViewModel.currentPanelObservable.subscribe(\n () => {\n this.setState({ activePanel: panelManagerViewModel.currentPanel });\n }\n );\n }\n\n componentWillUnmount() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n }\n }\n\n render() {\n const { activePanel } = this.state;\n\n const PANEL_ITEMS: {\n title: string;\n onEnter: () => void;\n iconName: MaestroPanelType;\n active: boolean;\n }[] = [\n {\n iconName: 'keyPlays',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'keyPlays';\n },\n title: 'KEY PLAYS',\n active: activePanel === 'keyPlays',\n },\n {\n iconName: 'bets',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'bets';\n },\n title: 'BETS',\n active: activePanel === 'bets',\n },\n {\n iconName: 'stats',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'stats';\n },\n title: 'STATS',\n active: activePanel === 'stats',\n },\n {\n iconName: 'fantasy',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'fantasy';\n },\n title: 'FANTASY',\n active: activePanel === 'fantasy',\n },\n ];\n\n return (\n <div className=\"sdk--panel-manager\">\n <PanelNavigation items={PANEL_ITEMS} />\n <div className=\"sdk--panel-wrapper\">{PANELS_MAP[activePanel]}</div>\n </div>\n );\n }\n}\n\nexport default PanelManager;\n","import PanelManager from './PanelManager';\n\nexport default PanelManager;\n","import IModel from './IModel';\n\ntype ObjectValues<T> = T[keyof T];\n\nexport default interface ITheme extends IModel {\n button: IThemeButton;\n channelOfflineThumbnail?: string;\n colors: IThemeColors;\n creator: string;\n desktopBackground?: string;\n icon?: string;\n logo?: string;\n mobileBackground?: string;\n mode?: ThemeModes;\n name: string;\n owner: string;\n siteId?: string;\n type: ThemeTypes;\n typography: IThemeTypography;\n}\n\nexport interface IThemeColors {\n accentPrimary: string;\n accentSecondary: string;\n accentTertiary: string;\n alertConfirmation: string;\n alertError: string;\n alertWarning: string;\n highlightPrimary: string;\n highlightSecondary: string;\n highlightTertiary: string;\n surface1: string;\n surface2: string;\n surface3: string;\n surface4: string;\n surface5: string;\n surface6: string;\n text100: string;\n text200: string;\n text300: string;\n text400: string;\n text500: string;\n}\n\nexport interface IThemeButton {\n borderRadius: BorderRadius;\n textCapitalization: TextCapitalization;\n}\n\nexport interface IThemeTypography {\n body: string;\n headline: string;\n}\n\nexport interface IClassicThemeOptions {\n accentPrimary: string;\n accentSecondary: string;\n}\n\nexport const BORDER_RADIUS = {\n rounded: 'rounded',\n square: 'square',\n pill: 'pill',\n} as const;\nexport type BorderRadius = ObjectValues<typeof BORDER_RADIUS>;\n\nexport const TEXT_CAPITALIZATION = {\n lowercase: 'lowercase',\n original: 'original',\n uppercase: 'uppercase',\n} as const;\nexport type TextCapitalization = ObjectValues<typeof TEXT_CAPITALIZATION>;\n\nexport const THEME_TYPES = {\n ADMIN: 'admin',\n ADVANCED: 'advanced',\n CLASSIC: 'classic',\n CUSTOM: 'custom',\n} as const;\nexport type ThemeTypes = ObjectValues<typeof THEME_TYPES>;\n\nexport const THEME_MODES = {\n DARK: 'dark',\n LIGHT: 'light',\n} as const;\nexport type ThemeModes = ObjectValues<typeof THEME_MODES>;\n","import ITheme, {\n BORDER_RADIUS,\n TEXT_CAPITALIZATION,\n THEME_MODES,\n THEME_TYPES,\n} from '@/models/ITheme';\n\nconst FONT_FAMILY = 'BentonSans-Medium';\n\nexport const DARK_THEME: ITheme = {\n _id: '6274067af74b66a544018dac',\n button: {\n borderRadius: BORDER_RADIUS.rounded,\n textCapitalization: TEXT_CAPITALIZATION.uppercase,\n },\n colors: {\n // Accent colors\n accentPrimary: '#FFFFFF',\n\n // Secondary accent colors\n accentSecondary: '#3C3F47',\n\n // Tertiary accent colors\n accentTertiary: '#0C0C0E',\n\n // Surface Colors\n surface1: '#080A0C',\n surface2: '#12141A',\n surface3: '#1B1E26',\n surface4: '#242833',\n surface5: '#363C4D',\n surface6: '#3E4759',\n\n // Highlight colors\n highlightPrimary: '#FFFFFF',\n highlightSecondary: '#9A9EA9',\n highlightTertiary: '#0A0C0F',\n\n // Alert colors\n alertConfirmation: '#43D48F',\n alertWarning: '#F58B00',\n alertError: '#FF0000',\n\n // Text colors\n text100: '#F8F9FA',\n text200: '#C2C5CB',\n text300: '#8D919D',\n text400: '#5C606B',\n text500: '#0C0C0E',\n },\n creator: '016901e60000000000000000',\n name: 'Dark Mode',\n type: THEME_TYPES.CLASSIC,\n mode: THEME_MODES.DARK,\n owner: '016901e60000000000000000',\n typography: {\n body: FONT_FAMILY,\n headline: FONT_FAMILY,\n },\n};\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./App.styles.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { DARK_THEME } from '@/services/ThemeManager/constants';\nimport './App.styles.css';\n\nconst colors = DARK_THEME.colors;\nconst typography = DARK_THEME.typography;\n\nclass App extends React.Component<{ children?: React.ReactNode }> {\n componentDidMount() {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-${key}`,\n colors[key as keyof typeof DARK_THEME.colors]\n );\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-font-${key}`,\n typography[key as keyof typeof DARK_THEME.typography]\n );\n });\n }\n\n componentWillUnmount() {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-${key}`);\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-font-${key}`);\n });\n }\n\n render() {\n return <div className=\"sdk-wrapper\">{this.props.children}</div>;\n }\n}\n\nexport default App;\n","import App from './App';\n\nexport default App;\n"],"sourceRoot":""}
|