1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9999],{39999:function(e,t,n){n.r(t),n.d(t,{default:function(){return TeamsClientSideLoader}});var o=n(52303),i=n(67294),s=n(63193),a=n(40598),u=n(35128),l=n(11163),r=n(68924),c=n(67099),d=n(23255),m=n(85893),mapToTeamsTheme=function(e){var t;return console.log(e),"default"===e?s.D4.TeamsLight:s.D4.TeamsDark};function TeamsClientSideLoader(e){var t=i.useContext(a.Z),n=t.setTeamsContext,s=t.setDeeplinkFunction,f=t.setShareDeeplinkFunction,g=t.setTeamsTasks,h=t.setIsTeamsInitialized,T=(0,i.useContext)(u.Ni),p=T.currentTheme,C=T.setCurrentTheme,x=(0,i.useContext)(c.$).SiteContext,k=(0,i.useContext)(r.AZ).language,w=(0,l.useRouter)();return(0,i.useEffect)(function(){console.log("in teams client side loader"),setTimeout(function(){h(!0)},1500),o.initialize(function(){o.getContext(function(e){e.subEntityId&&(console.log("Found following sub entity id: ",e.subEntityId," ... redirecting"),window.location.href!=e.subEntityId&&(window.location.href=e.subEntityId)),s(function(){return o.executeDeepLink}),f(function(){return o.shareDeepLink}),g(o.tasks),C(mapToTeamsTheme(e.theme));var t=e.locale.split("-"),i=d.X.languages.findIndex(function(e){return e.toString()==t[0]})?t[0]:d.X.defaultLanguage;k!=i?w.push("/[...path]","/"+i+"-"+x.urlContext.audience+x.urlContext.applicationPath).then(function(e){h(!0)}):h(!0),console.log("registering theme change handler for teams"),o.registerOnThemeChangeHandler(function(e){if(e!==p){console.log("Registered theme change"),console.log("selected theme: ",e);var t=mapToTeamsTheme(e);console.log("Mapped to following theme: ",t),C(t)}}),n(e),console.log("Teams Context: ",e)})})},[]),(0,m.jsx)("span",{})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.