티스토리 수익 글 보기
!function(){try{var e=”undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=”a07f090b-4e97-4799-a679-2b80868ca3df”,e._sentryDebugIdIdentifier=”sentry-dbid-a07f090b-4e97-4799-a679-2b80868ca3df”)}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[75685],{875685:function(e,n,i){“use strict”;i.d(n,{W:function(){return ke}});var t=i(331635),o=i(474848),a=i(296540),l=i(415044),r=i(868238),s=i(739604),d=i(29896),c=i(229045),u=i(368770),f=i(750735),g=i(216042),v=i(959340),S=i(914421),m=i(97774),w=i(564368),h=i(859406),p=i(828438),N=i(911022),k=i(260938),T=i(454111),b=i(895798),y=i(138245),E=i(178676),D=i(183198),O=i(472571),F=i(759369),C=i(312663),R=i(407590),I=i(588702),P=i(776053),x=i(436470),A=i(883594),_=i(423569),G=i(368972),U=i(552400),L=i(70931),M=i(424131),V=i(246942),B=i.n(V),j=i(834455),W=i(276337),H=i(664865),z=i(876531),Y=i(917197),Q=i(775994),Z=i.n(Q),q=i(931336),$=i(744364),X=i.n($),K=i(503988),J=(0,r.Zz)((0,W._v)(X(),{options:function(e){var n;return{variables:{login:null!==(n=e.channelLogin)&&void 0!==n?n:””}}},skip:function(e){return!(e.firstPageLoaded&&e.isLoggedIn&&e.channelLogin&&!e.followData)}}),(0,W._v)(Z(),{name:”followUser”}))((function(e){var n=(0,j.zy)(),i=(0,a.useState)(!1),l=i[0],r=i[1],s=(0,a.useState)(!0),d=s[0],c=s[1],u=(0,O.p)(),f=u.dialogProps,g=u.anchorProps,N=u.close,k=u.isOpen,T=(0,Y.T)().handleLiveNotificationDropdownClick,b=(0,a.useCallback)((function(){var n;return e.followData||(null===(n=e.data)||void 0===n?void 0:n.user)}),[e.data,e.followData]);(0,a.useEffect)((function(){var n,i,t,o,a,l,s=null;if(e.followData?s=e.followData:!e.data||e.data.loading||e.data.error||(s=e.data.user),s){var d=null!==(null===(i=null===(n=null==s?void 0:s.self)||void 0===n?void 0:n.follower)||void 0===i?void 0:i.disableNotifications)||!1,u=null===(null===(o=null===(t=null==s?void 0:s.self)||void 0===t?void 0:t.follower)||void 0===o?void 0:o.disableNotifications)||(null===(l=null===(a=null==s?void 0:s.self)||void 0===a?void 0:a.follower)||void 0===l?void 0:l.disableNotifications);r(d),c(null==u||u)}}),[e.followData,e.data]),(0,a.useEffect)((function(){var e,n,i=b();if(i){var t=null===(n=null===(e=i.self)||void 0===e?void 0:e.follower)||void 0===n?void 0:n.disableNotifications;r(null!==t||!1),c(null!=t?t:null)}}),[b]),(0,a.useEffect)((function(){var n;null===(n=e.updateNotificationDropdownOpen)||void 0===n||n.call(e,k)}),[k,e]);var E,D,V,W,Q,Z,$,X=function(){var n,i=b();if(i){var t=i.id||””,o={disableNotifications:!d,targetID:t},a={followUser:{__typename:”FollowUserPayload”,follow:{__typename:”Follow”,user:{__typename:”User”,id:t,self:{__typename:”UserSelfConnection”,follower:{__typename:”FollowerEdge”,disableNotifications:!d}}}}}};e.followUser((0,H.De)(o,a)),null===(n=e.onToggle)||void 0===n||n.call(e,null==d||d),c(!d)}};if(e.toggleType){if(e.toggleType===y.F.Button)return E=e.size,V=(D=d)?F.t.NotificationBell:F.t.NotificationBellFilled,W=D?F.t.NotificationBellFilled:F.t.NotificationBellOff,Q=B()({“live-notifications-wrapper–off”:D,”live-notifications-wrapper–on”:!D}),Z=(0,q.q)(null==d||d),(0,o.jsx)(v.P,{className:”live-notifications__btn”,”data-a-target”:Q,children:(0,o.jsx)(p.DT,{ariaLabel:Z,tabIndex:e.tabIndex||0,icon:V,iconOnHover:W,type:w.VQ.Secondary,onClick:X,disabled:!l||!!e.disabled,background:S.VS.Base,showTooltip:e.showTooltips,tooltipText:e.showTooltips?(0,q.q)(null==d||d):void 0,”data-a-target”:”notifications-toggle”,size:E})});if(e.toggleType===y.F.Dropdown)return function(){var i,a,l,r,s=b();if(!e.selectedNotificationSettings||!(null===(a=null==s?void 0:s.self)||void 0===a?void 0:a.follower))return null;var d,c=(d=n.pathname,!(!(null===(l=n.state)||void 0===l?void 0:l.channelView)||!(0,K.B6)({path:”/:login”},d))),u=(0,q.l)(e.selectedNotificationSettings.followsSettingState),p=((i={})[z.oMr.PERSONALIZED]={icon:(0,o.jsx)(P.v,{}),label:(0,h.hw)(“Personalized”,”LiveNotificationsToggle”)},i[z.oMr.ALWAYS]={icon:(0,o.jsx)(x.a,{}),label:(0,h.hw)(“Always”,”LiveNotificationsToggle”)},i[z.oMr.LIVE_UP_ONLY]={icon:(0,o.jsx)(A._,{}),label:(0,h.hw)(“Go Live Only”,”LiveNotificationsToggle”)},i[z.oMr.NEVER]={icon:(0,o.jsx)(_.v,{}),label:(0,h.hw)(“Off”,”LiveNotificationsToggle”)},i),y=Object.entries(p).map((function(n){var i,t=n[0],a=n[1],l=t===(null===(i=e.selectedNotificationSettings)||void 0===i?void 0:i.followsSettingState);return(0,o.jsx)(G.i,{onClick:function(){var n,i,o,a;(null===(n=e.selectedNotificationSettings)||void 0===n?void 0:n.followsSettingState)&&(T(e.selectedNotificationSettings,t,X,null!==(i=null==s?void 0:s.id)&&void 0!==i?i:””),null===(o=e.updateNotificationDropdownOpen)||void 0===o||o.call(e,k),null===(a=e.onCloseDropdownMenu)||void 0===a||a.call(e),N())},”aria-label”:u,selected:l,children:(0,o.jsxs)(v.P,{display:”flex”,alignItems:”center”,children:[a.icon,(0,o.jsx)(v.P,{margin:{left:.5},children:(0,o.jsx)(C.N,{children:a.label})})]})},a.label)})),E=function(){var n,i;if(!(null===(n=e.selectedNotificationSettings)||void 0===n?void 0:n.followsSettingState))return null;var a=p[e.selectedNotificationSettings.followsSettingState].icon;return(0,o.jsx)(v.P,{overflow:”hidden”,background:e.background,borderRadius:m.Z.Rounded,display:S.nl.InlineFlex,children:(0,o.jsx)(w.$n,(0,t.__assign)({},g,{size:e.size,variant:null!==(i=e.notificationButtonType)&&void 0!==i?i:w.VQ.Secondary,dropdown:!0,”aria-label”:(0,h.hw)(“Modify channel notification preferences”,”LiveNotificationsToggle”),onClick:function(){var n,i;k?null===(n=e.onCloseDropdownMenu)||void 0===n||n.call(e):null===(i=e.onOpenDropdownMenu)||void 0===i||i.call(e),g.onClick()},children:a}))})};return(0,o.jsxs)(v.P,{display:”inline-flex”,overflow:”hidden”,children:[(0,o.jsx)(v.P,{children:c?(0,o.jsx)(U.m,{disabled:!c,options:{placement:”top”},label:(0,h.hw)(“Learn more about personalized notifications on the Notification Settings page”,{“x:link”:function(e){return(0,o.jsx)(L.Cb,{linkTo:”https://www.twitch.tv/settings/notifications”,targetBlank:!0,children:e})}},”LiveNotificationsToggle”),children:E()}):E()}),(0,o.jsx)(M.n,(0,t.__assign)({},f,{onRequestClose:function(){var n;null===(n=e.onCloseDropdownMenu)||void 0===n||n.call(e),N()},options:null!==(r=e.notificationDropdownOptions)&&void 0!==r?r:{modifiers:[{name:”offset”,options:{offset:[0,5]}}]},children:y}))]})}()}return $=l?d?(0,h.hw)(“Opt in to notifications to receive updates on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,h.hw)(“You will be notified on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,h.hw)(“Follow this channel to receive notifications when they go live.”,”LiveNotificationsToggle”),(0,o.jsxs)(v.P,{color:S.Q1.Base,display:S.nl.Flex,flexWrap:S.I4.Wrap,children:[(0,o.jsxs)(v.P,{display:S.nl.Flex,flexWrap:S.I4.NoWrap,fullWidth:!0,justifyContent:S.A9.Between,children:[(0,o.jsx)(v.P,{display:S.nl.Flex,padding:{right:2},children:(0,o.jsx)(“span”,{children:(0,o.jsx)(C.N,{fontSize:S.Z4.Size4,bold:!0,children:(0,h.hw)(“Notifications”,”LiveNotificationsToggle”)})})}),(0,o.jsx)(v.P,{display:S.nl.Flex,flexShrink:0,children:(0,o.jsx)(R.l,{onChange:X,checked:!(null==d||d),”data-a-target”:”notifications-toggle”,disabled:!l||!!e.disabled})})]}),(0,o.jsx)(v.P,{display:S.nl.InlineFlex,padding:{bottom:1},children:(0,o.jsx)(C.N,{type:I.M2.Span,color:S.Q1.Alt2,”data-test-selector”:void 0,children:$})})]})}));var ee=(0,l.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded,isLoggedIn:(0,u.M3)(e),darkModeEnabled:(0,D.iR)(e)===E.S.Dark}}))(J),ne=i(464232),ie=function(e){var n,i,l=(0,a.useState)(!0),r=l[0],s=l[1],d=(0,a.useRef)(null),c=(0,a.useRef)(null),u=(0,a.useRef)(null),f=e.followUIType!==b.y.IconOnly,w=te(e),k=w.icon,T=w.iconOnHover,E=w.text,D=w.type,O=w.typeOnHover,F=w.onClick,C=w.selector,R=w.tooltipText,I=w.notifsTabIndex,P=w.showDialog,x=w.setShowDialog,A=(0,a.useState)(0),_=A[0],G=A[1],U=(0,a.useState)(0),L=U[0],M=U[1];(0,a.useLayoutEffect)((function(){var e,n,i;if((null===(e=d.current)||void 0===e?void 0:e.offsetWidth)&&(null===(n=c.current)||void 0===n?void 0:n.offsetWidth)&&(null===(i=u.current)||void 0===i?void 0:i.offsetWidth)){var t=d.current.offsetWidth,o=c.current.offsetWidth-t;G(t+8),M(o)}}),[]);var V=r?void 0:{durationMs:p.xt,delayMs:p.xt,easing:”ease-in”},B=(e.notificationToggleType!==y.F.Dropdown||!e.isFollowing||e.followUIType!==b.y.IconAndText)&&e.fullWidthButton;return(0,o.jsx)(g.S,{width:”100%”,children:(0,o.jsx)(ne.d,{“data-test-selector”:b.T.FollowToggleTransformContainer,transformIf:!e.isFollowing&&e.notificationToggleType!==y.F.Dropdown,transformValues:{translateX:_},transition:V,children:(0,o.jsxs)(v.P,{display:S.nl.Flex,overflow:B?S.nE.Hidden:void 0,alignItems:S.k2.Center,fullHeight:!0,ref:u,children:[(0,o.jsx)(v.P,{borderRadius:m.Z.Rounded,display:S.nl.Flex,justifyContent:S.A9.Center,flexDirection:S.bo.Column,width:B?”100%”:void 0,overflow:B?S.nE.Hidden:void 0,children:(0,o.jsx)(v.P,{display:S.nl.Flex,justifyContent:S.A9.Center,flexDirection:S.bo.Column,children:(0,o.jsx)(ne.d,{“data-test-selector”:b.T.FollowToggleTransformShift,transformIf:e.isFollowing,transformValues:{translateX:e.notificationToggleType!==y.F.Dropdown&&e.isFollowing?L:void 0},transition:V,children:(0,o.jsxs)(v.P,{display:S.nl.Flex,alignContent:S.Jx.Center,onMouseEnter:function(){return s(!1)},ref:c,children:[(0,o.jsx)(p.DT,{showTooltip:!e.disableFollowTooltip,ariaLabel:e.isFollowing?(0,h.hw)(“Unfollow {displayName}”,{displayName:e.channelName||””},”AnimatedFollowToggleButtons”):(0,h.hw)(“Follow {displayName}”,{displayName:e.channelName||””},”AnimatedFollowToggleButtons”),disabled:!e.canFollow&&!e.isFollowing||e.isOwnPage,delayText:e.isFollowing?void 0:750,text:f?E:void 0,overlayButton:e.overlayButton,icon:k,iconOnHover:T,type:D,typeOnHover:O,size:e.size,onClick:F,isFollowing:e.isFollowing,isBlocked:e.isBlocked,preventTransition:r,”data-a-target”:C,”data-test-selector”:C,background:oe(!!e.isFollowing,e.followButtonType),fullWidthButton:B,tooltipText:R}),e.isFollowing&&(0,o.jsx)(N.R,(0,t.__assign)({},e,{showUnfollowDialog:P,setShowUnfollowDialog:x,notificationToggleType:e.notificationToggleType,selectedNotificationSettings:e.selectedNotificationSettings}))]})})})}),!e.isOwnPage&&!e.hideNotificationButton&&e.isFollowing&&(0,o.jsx)(g.S,{margin:{left:1},children:(0,o.jsx)(ne.d,{transformIf:e.isFollowing,transformValues:{},fade:ne.z.In,transition:{durationMs:p.xt,easing:”ease-in-out”},children:(0,o.jsx)(“div”,{ref:d,children:(0,o.jsx)(ee,{onToggle:e.onToggleNotifications,channelLogin:e.channelLogin,toggleType:null!==(n=e.notificationToggleType)&&void 0!==n?n:y.F.Button,updateNotificationDropdownOpen:e.updateNotificationDropdownOpen,selectedNotificationSettings:e.selectedNotificationSettings,size:e.size,onOpenDropdownMenu:e.onOpenNotificationDropdown,onCloseDropdownMenu:e.onCloseNotificationDropdown,tabIndex:I,tooltipDirection:e.tooltipDirection,followData:(null===(i=e.followData)||void 0===i?void 0:i.user)||void 0,showTooltips:e.showTooltips,notificationDropdownOptions:e.notificationDropdownOptions,notificationButtonType:e.notificationButtonType})})})})]})})})},te=function(e){var n,i=(0,k.U)(e).onFollow,t=(0,a.useState)(!1),o=t[0],l=t[1],r={icon:T.Vg,iconOnHover:T.G$,text:(0,T.Nf)(),type:e.followButtonType||w.VQ.Primary,typeOnHover:void 0,onClick:i,selector:b.T.FollowButton,tooltipText:e.isBlocked?(0,T.CD)():(0,T.Nf)(),notifsTabIndex:-1,showDialog:!1,setShowDialog:function(){}},s={icon:T.cW,iconOnHover:T.vC,text:(0,T.Nf)(),type:null!==(n=e.unfollowButtonType)&&void 0!==n?n:w.VQ.Secondary,typeOnHover:w.VQ.Alert,onClick:function(){return l(!0)},selector:b.T.UnfollowButton,tooltipText:(0,T.Qz)(),notifsTabIndex:0,showDialog:o,setShowDialog:l};return e.isFollowing?s:r},oe=function(e,n,i){var t=!!n&&n!==w.VQ.Primary;if(i!==y.F.Dropdown)return e||t?S.VS.Base:S.VS.AccentAlt2},ae=i(305528),le=a.memo((function(e){switch(e.size){case w.Mp.Large:return(0,o.jsx)(ae.Or,{width:e.fullWidthButton?void 0:95.8,height:36,borderRadius:m.Z.Rounded});case w.Mp.Small:return(0,o.jsx)(ae.Or,{width:e.fullWidthButton?void 0:73.17,height:24,borderRadius:m.Z.Rounded});default:return(0,o.jsx)(ae.Or,{width:e.fullWidthButton?void 0:80.09,height:30,borderRadius:m.Z.Rounded})}})),re=i(27346),se=a.forwardRef((function(e,n){var i,l,r,s=(0,T.Nf)(),d=(0,k.U)(e).onFollow,c=!1!==(null===(r=null===(l=null===(i=e.followData)||void 0===i?void 0:i.user)||void 0===l?void 0:l.self)||void 0===r?void 0:r.canFollow),u=e.followUIType!==b.y.IconOnly,f=e.followUIType!==b.y.TextOnly,g=(0,a.useState)(T.Vg),v=g[0],S=g[1];return(0,o.jsx)(w.$n,(0,t.__assign)({ref:n,disabled:!c,”aria-label”:(0,h.hw)(“Follow {displayName}”,{displayName:e.channelName||””},”StandardFollowButton”),overlay:e.overlayButton,”data-a-target”:b.T.FollowButton,icon:f?v:void 0,onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e),d()},size:e.size,tabIndex:e.tabIndex,variant:e.followButtonType||w.VQ.Primary,fullWidth:e.fullWidthButton,onMouseEnter:function(){!e.staticHollowIcons&&f&&S(T.G$)},onMouseLeave:function(){!e.staticHollowIcons&&f&&S(T.Vg)}},(0,re.Fh)(e),{children:u?s:null}))})),de=i(990998),ce=i(885139),ue=i(666311),fe=i(67813),ge=i(723319),ve=i(324602),Se=a.forwardRef((function(e,n){var i,l=(0,T.Qz)(),r=e.unfollowUIType!==b.y.IconOnly,s=e.unfollowUIType!==b.y.TextOnly,d=(0,a.useState)((function(){return de.g})),c=d[0],u=d[1],f=(0,a.useState)(null!==(i=e.unfollowButtonType)&&void 0!==i?i:w.VQ.Secondary),p=f[0],k=f[1],y=(0,a.useState)(!1),E=y[0],D=y[1],O=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.$n,{ref:n,icon:s?c:void 0,onMouseEnter:function(){!e.staticHollowIcons&&s&&u((function(){return ce.L})),k(w.VQ.Alert)},onMouseLeave:function(){var n;!e.staticHollowIcons&&s&&u((function(){return de.g})),k(null!==(n=e.unfollowButtonType)&&void 0!==n?n:w.VQ.Secondary)},onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e),D(!0)},tabIndex:e.tabIndex,”aria-label”:(0,h.hw)(“Unfollow {displayName}”,{displayName:e.channelName||””},”StandardUnFollowButton”),size:e.size,”data-a-target”:b.T.UnfollowButton,”data-test-selector”:b.T.UnfollowButton,fullWidth:e.fullWidthButton,variant:p,children:r?l:null}),(0,o.jsx)(N.R,(0,t.__assign)({},e,{showUnfollowDialog:E,setShowUnfollowDialog:D}))]});return e.hideDropdownWhenFollowing?O:(0,o.jsxs)(v.P,{“data-test-selector”:b.T.UnfollowButtonWithDropdown,onMouseLeave:function(){return e.setShowDropdown(!1)},fullWidth:!0,children:[(0,o.jsxs)(v.P,{display:S.nl.Flex,children:[(0,o.jsx)(g.S,{borderRadius:{bottomRight:m.Z.None,topRight:m.Z.None},children:O}),(0,o.jsx)(g.S,{position:S.yX.Absolute,children:(0,o.jsx)(ue.f,{disabled:!0,dropdown:{onClick:function(){return e.setShowDropdown(!e.showDropdown)},”data-test-selector”:b.T.UnfollowButtonDropdownToggleElement,tabIndex:e.tabIndex,”aria-label”:(0,T.uu)(),”aria-expanded”:e.showDropdown}})})]}),(0,o.jsx)(v.P,{position:S.yX.Absolute,zIndex:S.Py.Default,”data-test-selector”:b.T.UnfollowButtonDropdown,children:(0,o.jsx)(fe.e,{show:e.showDropdown,type:ge.ES.SlideOverTop,duration:ge.Cf.Short,children:(0,o.jsx)(ve.fK,{size:ve.$V.Small,”data-a-target”:”follow-notifications-balloon”,children:(0,o.jsx)(v.P,{padding:1,children:(0,o.jsx)(ee,{channelLogin:e.channelLogin})})})})})]})})),me=i(693370),we=i.n(me),he=(0,s.U)({name:”FollowButton”,category:”discover”}),pe=he.Available,Ne=he.Unavailable,ke=(0,r.Zz)((0,f.W)(“FollowButton”))((function(e){var n,i,r,s,c,f,g,v=null===(n=(0,l.d4)((function(e){return(0,u.wz)(e)})))||void 0===n?void 0:n.login,S=e.channelLogin===v,m=(0,a.useState)(!1),w=m[0],h=m[1],p=!(e.channelLogin&&!e.followData&&!S),N=(0,d.IT)(we(),{variables:{login:null!==(i=e.channelLogin)&&void 0!==i?i:””},skip:p}),k=N.data,T=N.error,b=N.loading,y=(0,a.useState)(null!==(r=e.followData)&&void 0!==r?r:k),E=y[0],D=y[1],O=Te((0,t.__assign)((0,t.__assign)({},e),{followData:E})).trackFollowEvent,F=(0,a.useState)(!!(null===(c=null===(s=null==E?void 0:E.user)||void 0===s?void 0:s.self)||void 0===c?void 0:c.follower)),C=F[0],R=F[1],I=(0,a.useState)(!1),P=I[0],x=I[1],A=(0,a.useState)(!1),_=A[0],G=A[1],U=(0,a.useRef)(null),L=(0,a.useRef)(null);if((0,a.useEffect)((function(){var e,n;if(P&&document.activeElement===document.body){x(!1);var i=null!==(n=null!==(e=U.current)&&void 0!==e?e:L.current)&&void 0!==n?n:null;null==i||i.focus()}}),[C,P]),(0,a.useEffect)((function(){var e,n;k&&(D(k),R(!!(null===(n=null===(e=k.user)||void 0===e?void 0:e.self)||void 0===n?void 0:n.follower)))}),[k]),(0,a.useEffect)((function(){(p||E&&!b)&&e.latencyTracking.reportInteractive()})),S||C&&e.hideWhenFollowing)return null;if(!E&&(T||k&&!k.user)&&!p&&!b)return(0,o.jsx)(Ne,{reason:T?(null==T?void 0:T.message)||”error from GQL”:”no user”});if(e.showLoadingPlaceholder&&(!E||b))return(0,o.jsx)(le,{size:e.size,fullWidthButton:e.fullWidthButton});var M=!1!==(null===(g=null===(f=null==E?void 0:E.user)||void 0===f?void 0:f.self)||void 0===g?void 0:g.canFollow),V=(0,t.__assign)((0,t.__assign)({},e),{followData:E,isOwnPage:S,isFollowing:C,canFollow:M,currentUserLogin:v,trackFollowEvent:O,onFollow:function(n){var i;null===(i=e.onFollow)||void 0===i||i.call(e,n),h(!0)},showDropdown:w,setShowDropdown:h,isBlocked:_,setIsBlocked:G});return e.animatedButton?(0,o.jsx)(pe,{children:(0,o.jsx)(ie,(0,t.__assign)({},V))}):C?(0,o.jsx)(pe,{children:(0,o.jsx)(Se,(0,t.__assign)({},V,{ref:L,onClick:function(){x(!0)},onSubmit:function(){R(!1)}}))}):(0,o.jsx)(pe,{children:(0,o.jsx)(se,(0,t.__assign)({},V,{ref:U,onClick:function(){x(!0)},onSubmit:function(){R(!0)}}))})})),Te=function(e){var n=(0,l.d4)((function(e){return e.ui.theatreModeEnabled}));return{trackFollowEvent:function(i){var t;(null===(t=e.followData)||void 0===t?void 0:t.user)&&(0,c.hM)(i,{channelLogin:e.followData.user.login,channelID:e.followData.user.id,src:e.followSource||c.jH.Channel,screen_state:n?c.iv.Theater:c.iv.Regular,content_type:e.followContentType})}}}},895798:function(e,n,i){“use strict”;var t,o;i.d(n,{T:function(){return o},y:function(){return t}}),function(e){e[e.IconOnly=0]=”IconOnly”,e[e.TextOnly=1]=”TextOnly”,e[e.IconAndText=2]=”IconAndText”}(t||(t={})),function(e){e.UnfollowButton=”unfollow-button”,e.UnfollowButtonWithDropdown=”unfollow-button–with-dropdown”,e.UnfollowButtonDropdown=”unfollow-button__dropdown”,e.UnfollowButtonDropdownToggleElement=”unfollow-button__dropdown-toggle”,e.FollowButton=”follow-button”,e.FollowToggleTransformContainer=”follow-toggle-transform-container”,e.FollowToggleTransformShift=”follow-toggle-transform-shift”}(o||(o={}))},931336:function(e,n,i){“use strict”;i.d(n,{l:function(){return l},q:function(){return a}});var t=i(859406),o=i(876531);function a(e){return e?(0,t.hw)(“Turn notifications on”,”LiveNotificationsToggle”):(0,t.hw)(“Turn notifications off”,”LiveNotificationsToggle”)}var l=function(e){switch(e){case o.oMr.ALWAYS:return(0,t.hw)(“Always receive notifications”,”NotificationsDropdownButton”);case o.oMr.LIVE_UP_ONLY:return(0,t.hw)(“Only receive Go Live notifications”,”NotificationsDropdownButton”);case o.oMr.PERSONALIZED:return(0,t.hw)(“Receive personalized notifications”,”NotificationsDropdownButton”);case o.oMr.NEVER:return(0,t.hw)(“Turn notifications off”,”NotificationsDropdownButton”);default:return}}},917197:function(e,n,i){“use strict”;i.d(n,{Z:function(){return E},T:function(){return y}});var t=i(474848),o=i(296540),a=i(876531),l=i(265827),r=i(331635),s=i(973421),d=i.n(s),c=i(29896),u=i(664865),f=i(431762),g=i.n(f),v=i(403660),S=i(833136),m=i.n(S),w=i(600873),h=i.n(w),p=i(54015),N=i.n(p),k=i(420757),T=function(){var e,n=function(){var e,n=o.useState(a.xBQ.DESC),i=n[0],t=n[1],l=new Map,s=(0,c.IT)(g(),{variables:{limit:10,sortOrder:i,followedFilters:[a.iGk.ALWAYS]}}),f=s.data,S=s.updateQuery,m=s.fetchMore,w=s.loading,h=function(e){var n,i;if(!w){var t=null===(i=null===(n=null==f?void 0:f.currentUser)||void 0===n?void 0:n.notificationSettings)||void 0===i?void 0:i.find((function(n){if(n.category===e)return n.category===e}));if(t)return t}return null};return w||v.l.forEach((function(e){l.set(e,[]),v.Y[e].forEach((function(n){var i=l.get(e),t=h(n);t&&i&&i.push(t)}))})),{groupedNotificationSettings:l,fetchMoreFollowers:function(e){return(0,r.__awaiter)(void 0,void 0,void 0,(function(){return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return e?[4,m({query:g(),variables:{limit:10,cursor:e,sortOrder:i,followedFilters:[a.iGk.ALWAYS]},updateQuery:function(e,n){var i,t,o,a,l=n.fetchMoreResult;return(null===(t=null===(i=null==l?void 0:l.currentUser)||void 0===i?void 0:i.notificationEnrollmentFollows)||void 0===t?void 0:t.edges)&&(null===(a=null===(o=null==e?void 0:e.currentUser)||void 0===o?void 0:o.notificationEnrollmentFollows)||void 0===a?void 0:a.edges)?d()(l,(function(e){return e.currentUser.notificationEnrollmentFollows.edges}),(function(){var n,i,t;return(0,u.PU)(null!==(t=null===(i=null===(n=null==e?void 0:e.currentUser)||void 0===n?void 0:n.notificationEnrollmentFollows)||void 0===i?void 0:i.edges)&&void 0!==t?t:[],l.currentUser.notificationEnrollmentFollows.edges)})):e}})]:[2];case 1:return n.sent(),[2]}}))}))},getSettingEnabledState:function(e,n){var i,t,o=!1;return null===(t=null===(i=null==f?void 0:f.currentUser)||void 0===i?void 0:i.notificationSettings)||void 0===t||t.some((function(i){i.category===e&&i.platforms.some((function(e){if(e.platformName===n)return o=e.isEnabled,!0}))})),o},followedChannels:null===(e=null==f?void 0:f.currentUser)||void 0===e?void 0:e.notificationEnrollmentFollows,updateQuery:S,fetchMore:m,loading:w,getIsIndividualSettingDisabled:function(e,n){var i,t,o=null===(t=null===(i=null==f?void 0:f.currentUser)||void 0===i?void 0:i.notificationSettings)||void 0===t?void 0:t.find((function(n){if(n.category===e)return n.category===e})),a=null==o?void 0:o.platforms.find((function(e){return e.platformName===n}));return!(a&&a.isEnabled)},getSettingData:h,updateChannelSortOrder:function(e){t(e)},selectedChannelSortOrder:i}}(),i=n.groupedNotificationSettings,t=n.fetchMoreFollowers,l=n.getSettingEnabledState,s=n.followedChannels,f=n.updateQuery,S=n.getIsIndividualSettingDisabled,w=n.getSettingData,p=n.updateChannelSortOrder,T=n.selectedChannelSortOrder,b=function(e){var n=e.getSettingEnabledState,i=e.updateQuery,t=(0,c.n_)(N())[0];return{handleSettingToggle:function(e,o){return(0,r.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,r.__generator)(this,(function(l){switch(l.label){case 0:return[4,t((0,u.De)({category:e,platform:o,settingState:n(e,o)?”off”:”on”},{setNotificationSetting:{settingState:n(e,o)?”off”:”on”,__typename:”SetNotificationSettingPayload”}}))];case 1:return a=l.sent(),i((function(n){var i,t;if(!(null==n?void 0:n.currentUser)||!(null===(i=null==n?void 0:n.currentUser)||void 0===i?void 0:i.notificationSettings)||!(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.setNotificationSetting))return n;var l=a.data.setNotificationSetting.settingState,s=(0,k.hk)(n.currentUser.notificationSettings,e);if(s>=0){var c=(0,k.wz)(n.currentUser.notificationSettings,s,o);c>=0&&(n=d()(n,(function(e){return e.currentUser.notificationSettings[s].platforms[c]}),(function(e){return(0,r.__assign)((0,r.__assign)({},e),{isEnabled:”on”===l,settingState:l})})))}return n})),[2]}}))}))},setNotificationSettings:t}}({getSettingEnabledState:l,updateQuery:f}),y=b.handleSettingToggle,E=b.setNotificationSettings,D=(e=(0,c.n_)(m())[0],{handleLiveNotificationDropdownClick:function(n,i,t,o){return(0,r.__awaiter)(void 0,void 0,void 0,(function(){var l,s;return(0,r.__generator)(this,(function(d){switch(d.label){case 0:return n?(l=[a.oMr.ALWAYS,a.oMr.LIVE_UP_ONLY,a.oMr.PERSONALIZED],(null==n?void 0:n.followsSettingState)===a.oMr.NEVER?[3,4]:l.includes(i)?[4,e({variables:{input:{settingState:i,channelID:o}}})]:[3,2]):[2];case 1:return d.sent(),[3,3];case 2:t(),d.label=3;case 3:return[3,6];case 4:return t(),[4,e({variables:{input:{settingState:i,channelID:o}}})];case 5:d.sent(),d.label=6;case 6:return(s=(0,u.G5)(n))?((0,u.WY)({fragment:h(),id:s,mutator:function(e){return e?(0,r.__assign)((0,r.__assign)({},e),{followsSettingState:i}):null}}),[2]):[2]}}))}))}}).handleLiveNotificationDropdownClick;return{followedChannels:s,setNotificationSettings:E,getSettingEnabledState:l,handleSettingToggle:y,fetchMoreFollowers:t,groupedNotificationSettings:i,getSettingData:w,getIsIndividualSettingDisabled:S,updateChannelSortOrder:p,selectedChannelSortOrder:T,handleLiveNotificationDropdownClick:D}},b=(0,l.q)(“NotificationSettingsContext”,{getIsIndividualSettingDisabled:function(){return!1},followedChannels:null,setNotificationSettings:function(){return null},getSettingEnabledState:function(){return!1},handleSettingToggle:function(){return null},fetchMoreFollowers:function(){return new Promise((function(){}))},groupedNotificationSettings:new Map,getSettingData:function(){return null},updateChannelSortOrder:function(){return null},selectedChannelSortOrder:a.xBQ.ASC,handleLiveNotificationDropdownClick:function(){return null}}).context,y=function(){return(0,o.useContext)(b)},E=function(e){var n=e.children,i=T();return(0,t.jsx)(b.Provider,{value:i,children:n})}},403660:function(e,n,i){“use strict”;i.d(n,{Y:function(){return o},l:function(){return t}});var t=[“following_category”,”social_category”,”marketing_category”,”creator_category”,”moderation_category”,”developer_category”],o={following_category:[“LIVE”,”CATCHUP”,”SUBSCRIPTIONS”],social_category:[“CHAT”,”CLIPS”,”GIFTSUBSCRIPTIONS”,”FOLLOWERADD”,”STORIESREACTION”,”CLIPSHAREDINSTORY”,”MENTIONEDINSTORY”,”GUESTSTAR”],marketing_category:[“RECOMMENDEDCONTENT”,”PRODUCTUPDATES”,”USERENDOFYEAR”,”PROMOTIONS”,”DROPSANDQUESTS”,”BADGESANDEMOTES”,”RESEARCHSTUDIES”],creator_category:[“STREAMSTATSTOPCLIPS”,”CREATORUPDATES”,”CREATORSPONSORSHIPS”,”CREATORSPONSORSHIPSFROMTHIRDPARTIES”,”STREAMSTATS”],moderation_category:[“MODERATOR”],developer_category:[“3PDEVELOPERS”,”DEVELOPERPRODUCTUPDATES”]}},420757:function(e,n,i){“use strict”;i.d(n,{DK:function(){return c},Ec:function(){return u},KJ:function(){return v},Mq:function(){return d},UO:function(){return p},dq:function(){return w},fc:function(){return E},gW:function(){return m},go:function(){return k},hk:function(){return b},kW:function(){return S},nF:function(){return f},rm:function(){return h},t2:function(){return g},tx:function(){return T},wz:function(){return y}});var t=i(474848),o=i(162434),a=i(70931),l=i(859406),r=i(112915),s=i(876531),d=function(e){switch(e){case”following_category”:return(0,l.hw)(“Channels You Follow”,”NotificationSettingPortalCategoryView”);case”social_category”:return(0,l.hw)(“Social”,”NotificationSettingPortalCategoryView”);case”marketing_category”:return(0,l.hw)(“Marketing”,”NotificationSettingPortalCategoryView”);case”creator_category”:return(0,l.hw)(“Streamers”,”NotificationSettingPortalCategoryView”);case”moderation_category”:return(0,l.hw)(“Moderators”,”NotificationSettingPortalCategoryView”);case”developer_category”:return(0,l.hw)(“Developers”,”NotificationSettingPortalCategoryView”);default:return”NA”}},c=function(e){switch(e){case”following_category”:return(0,l.hw)(“New content and updates from followed channels”,”NotificationSettingPortalCategoryView”);case”social_category”:return(0,l.hw)(“Chat mentions, followers, stories, and more”,”NotificationSettingPortalCategoryView”);case”marketing_category”:return(0,l.hw)(“Recommended content, promotions, and featured picks”,”NotificationSettingPortalCategoryView”);case”creator_category”:return(0,l.hw)(“Stream activity and events”,”NotificationSettingPortalCategoryView”);case”moderation_category”:return(0,l.hw)(“Moderator alerts by channel”,”NotificationSettingPortalCategoryView”);case”developer_category”:return(0,l.hw)(“Developer tooling and product updates”,”NotificationSettingPortalCategoryView”);default:return”NA”}},u=function(e){switch(e){case”onsite”:return(0,l.hw)(“On Twitch”,”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Mobile”,”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Email”,”NotificationSettingsGlobal”);case”smart”:return(0,l.hw)(“Smart Delivery”,”NotificationSettingsGlobal”);case”desktop”:return(0,l.hw)(“Desktop Notifications”,”NotificationSettingsGlobal”);default:return”NA”}},f=function(e,n,i){if(e)switch(n){case”onsite”:return(0,l.hw)(“Turn OFF all active Twitch notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Turn OFF all active Mobile notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Turn OFF all active Email notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);default:return”NA”}else switch(n){case”onsite”:return(0,l.hw)(“Turn ON all active Twitch notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Turn ON all active Mobile notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Turn ON all active Email notifications for {settingGroup}”,{settingGroup:d(i)},”NotificationSettingsGlobal”);default:return”NA”}},g=function(e,n,i){if(e)switch(n){case”onsite”:return(0,l.hw)(“Turn OFF all active Twitch notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Turn OFF all active Mobile notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Turn OFF all active Email notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);default:return”NA”}else switch(n){case”onsite”:return(0,l.hw)(“Turn ON all active Twitch notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Turn ON all active Mobile notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Turn ON all active Email notifications for {individualSetting}”,{individualSetting:S(i)},”NotificationSettingsGlobal”);default:return”NA”}},v=function(e){switch(e){case”onsite”:return(0,l.hw)(“Update all On Twitch notifications for this group”,”NotificationSettingsGlobal”);case”push”:return(0,l.hw)(“Update all mobile notifications for this group”,”NotificationSettingsGlobal”);case”email”:return(0,l.hw)(“Update all email notifications for this group”,”NotificationSettingsGlobal”);case”smart”:return(0,l.hw)(“Receive notifications depending on where you’re active. Learn More .”,{“x:link”:function(e){return(0,t.jsx)(a.Cb,{linkTo:(0,r.BY)(r.Om.SmartNotifications),children:e})}},”NotificationSettingsGlobal”);default:return”NA”}},S=function(e){switch(e){case”LIVE”:return(0,l.hw)(“Live Now”,”NotificationSettingsGlobal”);case”CATCHUP”:return(0,l.hw)(“Catch Up”,”NotificationSettingsGlobal”);case”SUBSCRIPTIONS”:return(0,l.hw)(“Updates for Subscribers”,”NotificationSettingsGlobal”);case”CHAT”:return(0,l.hw)(“Chat Mentions”,”NotificationSettingsGlobal”);case”CLIPS”:return(0,l.hw)(“Clips You Created”,”NotificationSettingsGlobal”);case”GIFTSUBSCRIPTIONS”:return(0,l.hw)(“Gift Subscriptions”,”NotificationSettingsGlobal”);case”FOLLOWERADD”:return(0,l.hw)(“New Follower”,”NotificationSettingsGlobal”);case”STORIESREACTION”:return(0,l.hw)(“Stories Reactions”,”NotificationSettingsGlobal”);case”CLIPSHAREDINSTORY”:return(0,l.hw)(“Clips Shared To Stories”,”NotificationSettingsGlobal”);case”MENTIONEDINSTORY”:return(0,l.hw)(“Stories Mentions”,”NotificationSettingsGlobal”);case”GUESTSTAR”:return(0,l.hw)(“Stream Together Invites”,”NotificationSettingsGlobal”);case”RECOMMENDEDCONTENT”:return(0,l.hw)(“Recommended Content”,”NotificationSettingsGlobal”);case”PRODUCTUPDATES”:return(0,l.hw)(“Product Updates”,”NotificationSettingsGlobal”);case”USERENDOFYEAR”:return(0,l.hw)(“End of Year Recap”,”NotificationSettingsGlobal”);case”PROMOTIONS”:return(0,l.hw)(“Promotions”,”NotificationSettingsGlobal”);case”DROPSANDQUESTS”:return(0,l.hw)(“Drops & Quests”,”NotificationSettingsGlobal”);case”BADGESANDEMOTES”:return(0,l.hw)(“Badges & Emotes”,”NotificationSettingsGlobal”);case”RESEARCHSTUDIES”:return(0,l.hw)(“Research Studies”,”NotificationSettingsGlobal”);case”STREAMSTATSTOPCLIPS”:return(0,l.hw)(“Clips of your channel”,”NotificationSettingsGlobal”);case”CREATORUPDATES”:return(0,l.hw)(“Channel Updates”,”NotificationSettingsGlobal”);case”STREAMSTATS”:return(0,l.hw)(“Stream Summary”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPS”:return(0,l.hw)(“Sponsorships from Twitch”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPSFROMTHIRDPARTIES”:return(0,l.hw)(“Sponsorships from Third Parties”,”NotificationSettingsGlobal”);case”MODERATOR”:return(0,l.hw)(“Moderators”,”NotificationSettingsGlobal”);case”3PDEVELOPERS”:return(0,l.hw)(“Developer Console”,”NotificationSettingsGlobal”);case”DEVELOPERPRODUCTUPDATES”:return(0,l.hw)(“Developer Product Updates”,”NotificationSettingsGlobal”);default:return”NA”}},m=function(e){switch(e){case”LIVE”:return(0,l.hw)(“When a channel you follow goes live or an exciting moment is happening on stream.”,”NotificationSettingsGlobal”);case”CATCHUP”:return(0,l.hw)(“Never miss a moment – popular VODs, clips, and Stories from streamers you follow.”,”NotificationSettingsGlobal”);case”SUBSCRIPTIONS”:return(0,l.hw)(“When there are updates about channels you are subscribed to.”,”NotificationSettingsGlobal”);case”CHAT”:return(0,l.hw)(“When someone mentions you in chat.”,”NotificationSettingsGlobal”);case”CLIPS”:return(0,l.hw)(“When a clip you made becomes popular.”,”NotificationSettingsGlobal”);case”GIFTSUBSCRIPTIONS”:return(0,l.hw)(“When you are gifted a subscription.”,”NotificationSettingsGlobal”);case”FOLLOWERADD”:return(0,l.hw)(“When another Twitch user follows you.”,”NotificationSettingsGlobal”);case”STORIESREACTION”:return(0,l.hw)(“When someone reacts to your story.”,”NotificationSettingsGlobal”);case”CLIPSHAREDINSTORY”:return(0,l.hw)(“When someone shares a clip of your channel to their Stories.”,”NotificationSettingsGlobal”);case”MENTIONEDINSTORY”:return(0,l.hw)(“When someone mentions you in their Stories.”,”NotificationSettingsGlobal”);case”GUESTSTAR”:return(0,l.hw)(“When someone invites you to collaborate.”,”NotificationSettingsGlobal”);case”RECOMMENDEDCONTENT”:return(0,l.hw)(“Recommended channels, clips, categories that you might like to watch.”,”NotificationSettingsGlobal”);case”PRODUCTUPDATES”:return(0,l.hw)(“New products and updates made to Twitch.”,”NotificationSettingsGlobal”);case”USERENDOFYEAR”:return(0,l.hw)(“Your personalized end of year recap as a Twitch Viewer.”,”NotificationSettingsGlobal”);case”PROMOTIONS”:return(0,l.hw)(“When there are discounts & promotions running on Twitch.”,”NotificationSettingsGlobal”);case”DROPSANDQUESTS”:return(0,l.hw)(“When there are Drop & Quest opportunities similar to your interests.”,”NotificationSettingsGlobal”);case”BADGESANDEMOTES”:return(0,l.hw)(“When there are special offers for Badges & Emotes.”,”NotificationSettingsGlobal”);case”RESEARCHSTUDIES”:return(0,l.hw)(“Invitations to share your experiences and feedback with Twitch.”,”NotificationSettingsGlobal”);case”STREAMSTATSTOPCLIPS”:return(0,l.hw)(“When there are new clips created from your stream.”,”NotificationSettingsGlobal”);case”CREATORUPDATES”:return(0,l.hw)(“New products, features, and other updates important for you as a streamer.”,”NotificationSettingsGlobal”);case”STREAMSTATS”:return(0,l.hw)(“When new analytics are available for your recent broadcasts or channel.”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPS”:return(0,l.hw)(“When there are sponsorships campaigns offered by Twitch.”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPSFROMTHIRDPARTIES”:return(0,l.hw)(“When there are sponsorships campaigns from our third party partners.”,”NotificationSettingsGlobal”);case”MODERATOR”:return(0,l.hw)(“When a channel you moderate requires your attention.”,”NotificationSettingsGlobal”);case”3PDEVELOPERS”:return(0,l.hw)(“When there is news related to company management, game approvals, and other console related communications.”,”NotificationSettingsGlobal”);case”DEVELOPERPRODUCTUPDATES”:return(0,l.hw)(“When there is news related to updates, deprecations, and removals to Twitch developer products including Twitch API, EventSub, Embeds, and Drops.”,”NotificationSettingsGlobal”);default:return”NA”}},w=function(){var e=o.Ii.getPlatform();return”ios”===e||”web”===e},h=function(){return”android”===o.Ii.getPlatform()},p=function(){var e=o.Ii.getPlatform();return”ios”===e||”android”===e},N=function(e){if(!e.platforms)return null;var n=0;return e.platforms.forEach((function(e){e.isEnabled&&”smart”!==e.platformName&&”all”!==e.platformName&&n++})),3===n?”all”:n>0&&n0&&l<3*a.length)return"custom";if(0===l)return"off"}return null},T=function(e,n,i){var t=i(n),o=N(e);if(!t)return o;var a=N(t);return"all"===a?o:"off"===o?"off":a},b=function(e,n){return e.findIndex((function(e){return e.category===n}))},y=function(e,n,i){return e[n].platforms.findIndex((function(e){return e.platformName===i}))},E=function(e,n){if(!e||!n)return"";switch(e){case s.oMr.ALWAYS:return(0,l.hw)("You will receive all notifications from {channelName}.",{channelName:n},"OfflineChannelVideoPanelOverlay");case s.oMr.PERSONALIZED:return(0,l.hw)("Your notifications from {channelName} will be personalized.",{channelName:n},"OfflineChannelVideoPanelOverlay");case s.oMr.LIVE_UP_ONLY:return(0,l.hw)("You will be notified when {channelName} is live.",{channelName:n},"OfflineChannelVideoPanelOverlay");case s.oMr.NEVER:return(0,l.hw)("You will be no longer receive notifications from {channelName}.",{channelName:n},"OfflineChannelVideoPanelOverlay");default:return""}}},775994:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LiveNotificationsToggle_ToggleNotifications"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FollowUserInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"follow"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"follower"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"disableNotifications"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},744364:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LiveNotificationsToggle_User"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"followButtonFragment"},directives:[]}]}}]}}]},o={};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}t.definitions=t.definitions.concat(i(362851).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!o[n]&&(o[n]=!0,!0)})));var l={};t.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),l[e.name.value]=n}})),e.exports=t},833136:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GlobalNotificationSettings_setLiveNotificationsEnrollment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SetLiveNotificationsEnrollmentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setLiveNotificationsEnrollment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},54015:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GlobalNotificationSettings_SetNotificationSetting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SetNotificationSettingInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setNotificationSetting"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"settingState"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},431762:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PlatformEventSettingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlatformEventSetting"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"platformName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"settingState"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NotificationSettingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventNotificationSetting"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platforms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlatformEventSettingFragment"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NotificationSettingsFollowEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FollowEdge"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notificationSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FollowEdgeNotificationSettingsFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"70"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPartner"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SettingsNotificationsPage_User_Portal"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"followedFilters"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"NotificationEnrollmentFilter"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notificationSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NotificationSettingFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"notificationEnrollmentFollows"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"cursor"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"followedFilters"}}},{kind:"Argument",name:{kind:"Name",value:"order"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NotificationSettingsFollowEdge"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}}]}}]}}]}}]},o={};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}t.definitions=t.definitions.concat(i(600873).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!o[n]&&(o[n]=!0,!0)})));var l={};t.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),l[e.name.value]=n}})),e.exports=t}}]);