티스토리 수익 글 보기

티스토리 수익 글 보기

!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]=”643a424f-1844-4fd0-972e-88b1389e4e34″,e._sentryDebugIdIdentifier=”sentry-dbid-643a424f-1844-4fd0-972e-88b1389e4e34″)}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[7034],{407034:function(e,n,i){“use strict”;i.d(n,{W:function(){return Y}});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(336474),D=i(464232),O=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=F(e),k=w.icon,T=w.iconOnHover,O=w.text,R=w.type,I=w.typeOnHover,P=w.onClick,x=w.selector,A=w.tooltipText,_=w.notifsTabIndex,G=w.showDialog,U=w.setShowDialog,L=(0,a.useState)(0),M=L[0],V=L[1],B=(0,a.useState)(0),j=B[0],W=B[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;V(t+8),W(o)}}),[]);var H=r?void 0:{durationMs:p.xt,delayMs:p.xt,easing:”ease-in”},z=(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)(D.d,{“data-test-selector”:b.T.FollowToggleTransformContainer,transformIf:!e.isFollowing&&e.notificationToggleType!==y.F.Dropdown,transformValues:{translateX:M},transition:H,children:(0,o.jsxs)(v.P,{display:S.nl.Flex,overflow:z?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:z?”100%”:void 0,overflow:z?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)(D.d,{“data-test-selector”:b.T.FollowToggleTransformShift,transformIf:e.isFollowing,transformValues:{translateX:e.notificationToggleType!==y.F.Dropdown&&e.isFollowing?j:void 0},transition:H,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?O:void 0,overlayButton:e.overlayButton,icon:k,iconOnHover:T,type:R,typeOnHover:I,size:e.size,onClick:P,isFollowing:e.isFollowing,isBlocked:e.isBlocked,preventTransition:r,”data-a-target”:x,”data-test-selector”:x,background:C(!!e.isFollowing,e.followButtonType),fullWidthButton:z,tooltipText:A}),e.isFollowing&&(0,o.jsx)(N.R,(0,t.__assign)({},e,{showUnfollowDialog:G,setShowUnfollowDialog:U,notificationToggleType:e.notificationToggleType,selectedNotificationSettings:e.selectedNotificationSettings}))]})})})}),!e.isOwnPage&&!e.hideNotificationButton&&e.isFollowing&&(0,o.jsx)(g.S,{margin:{left:1},children:(0,o.jsx)(D.d,{transformIf:e.isFollowing,transformValues:{},fade:D.z.In,transition:{durationMs:p.xt,easing:”ease-in-out”},children:(0,o.jsx)(“div”,{ref:d,children:(0,o.jsx)(E.l,{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:_,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})})})})]})})})},F=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},C=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},R=i(305528),I=a.memo((function(e){switch(e.size){case w.Mp.Large:return(0,o.jsx)(R.Or,{width:e.fullWidthButton?void 0:95.8,height:36,borderRadius:m.Z.Rounded});case w.Mp.Small:return(0,o.jsx)(R.Or,{width:e.fullWidthButton?void 0:73.17,height:24,borderRadius:m.Z.Rounded});default:return(0,o.jsx)(R.Or,{width:e.fullWidthButton?void 0:80.09,height:30,borderRadius:m.Z.Rounded})}})),P=i(27346),x=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,P.Fh)(e),{children:u?s:null}))})),A=i(990998),_=i(885139),G=i(666311),U=i(67813),L=i(723319),M=i(324602),V=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 A.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),D=y[0],O=y[1],F=(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 _.L})),k(w.VQ.Alert)},onMouseLeave:function(){var n;!e.staticHollowIcons&&s&&u((function(){return A.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),O(!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:D,setShowUnfollowDialog:O}))]});return e.hideDropdownWhenFollowing?F:(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:F}),(0,o.jsx)(g.S,{position:S.yX.Absolute,children:(0,o.jsx)(G.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)(U.e,{show:e.showDropdown,type:L.ES.SlideOverTop,duration:L.Cf.Short,children:(0,o.jsx)(M.fK,{size:M.$V.Small,”data-a-target”:”follow-notifications-balloon”,children:(0,o.jsx)(v.P,{padding:1,children:(0,o.jsx)(E.l,{channelLogin:e.channelLogin})})})})})]})})),B=i(693370),j=i.n(B),W=(0,s.U)({name:”FollowButton”,category:”discover”}),H=W.Available,z=W.Unavailable,Y=(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)(j(),{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],F=Q((0,t.__assign)((0,t.__assign)({},e),{followData:E})).trackFollowEvent,C=(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)),R=C[0],P=C[1],A=(0,a.useState)(!1),_=A[0],G=A[1],U=(0,a.useState)(!1),L=U[0],M=U[1],B=(0,a.useRef)(null),W=(0,a.useRef)(null);if((0,a.useEffect)((function(){var e,n;if(_&&document.activeElement===document.body){G(!1);var i=null!==(n=null!==(e=B.current)&&void 0!==e?e:W.current)&&void 0!==n?n:null;null==i||i.focus()}}),[R,_]),(0,a.useEffect)((function(){var e,n;k&&(D(k),P(!!(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||R&&e.hideWhenFollowing)return null;if(!E&&(T||k&&!k.user)&&!p&&!b)return(0,o.jsx)(z,{reason:T?(null==T?void 0:T.message)||”error from GQL”:”no user”});if(e.showLoadingPlaceholder&&(!E||b))return(0,o.jsx)(I,{size:e.size,fullWidthButton:e.fullWidthButton});var Y=!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),Z=(0,t.__assign)((0,t.__assign)({},e),{followData:E,isOwnPage:S,isFollowing:R,canFollow:Y,currentUserLogin:v,trackFollowEvent:F,onFollow:function(n){var i;null===(i=e.onFollow)||void 0===i||i.call(e,n),h(!0)},showDropdown:w,setShowDropdown:h,isBlocked:L,setIsBlocked:M});return e.animatedButton?(0,o.jsx)(H,{children:(0,o.jsx)(O,(0,t.__assign)({},Z))}):R?(0,o.jsx)(H,{children:(0,o.jsx)(V,(0,t.__assign)({},Z,{ref:W,onClick:function(){G(!0)},onSubmit:function(){P(!1)}}))}):(0,o.jsx)(H,{children:(0,o.jsx)(x,(0,t.__assign)({},Z,{ref:B,onClick:function(){G(!0)},onSubmit:function(){P(!0)}}))})})),Q=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={}))},336474:function(e,n,i){“use strict”;i.d(n,{l:function(){return z}});var t=i(415044),o=i(178676),a=i(368770),l=i(183198),r=i(331635),s=i(474848),d=i(472571),c=i(759369),u=i(959340),f=i(564368),g=i(914421),v=i(312663),S=i(407590),m=i(588702),w=i(776053),h=i(436470),p=i(883594),N=i(423569),k=i(368972),T=i(97774),b=i(552400),y=i(70931),E=i(424131),D=i(246942),O=i.n(D),F=i(296540),C=i(834455),R=i(868238),I=i(859406),P=i(276337),x=i(664865),A=i(876531),_=i(828438),G=i(917197),U=i(775994),L=i.n(U),M=i(138245),V=i(931336),B=i(744364),j=i.n(B),W=i(503988),H=(0,R.Zz)((0,P._v)(j(),{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,P._v)(L(),{name:”followUser”}))((function(e){var n=(0,C.zy)(),i=(0,F.useState)(!1),t=i[0],o=i[1],a=(0,F.useState)(!0),l=a[0],D=a[1],R=(0,d.p)(),P=R.dialogProps,U=R.anchorProps,L=R.close,B=R.isOpen,j=(0,G.T)().handleLiveNotificationDropdownClick,H=(0,F.useCallback)((function(){var n;return e.followData||(null===(n=e.data)||void 0===n?void 0:n.user)}),[e.data,e.followData]);(0,F.useEffect)((function(){var n,i,t,a,l,r,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,c=null===(null===(a=null===(t=null==s?void 0:s.self)||void 0===t?void 0:t.follower)||void 0===a?void 0:a.disableNotifications)||(null===(r=null===(l=null==s?void 0:s.self)||void 0===l?void 0:l.follower)||void 0===r?void 0:r.disableNotifications);o(d),D(null==c||c)}}),[e.followData,e.data]),(0,F.useEffect)((function(){var e,n,i=H();if(i){var t=null===(n=null===(e=i.self)||void 0===e?void 0:e.follower)||void 0===n?void 0:n.disableNotifications;o(null!==t||!1),D(null!=t?t:null)}}),[H]),(0,F.useEffect)((function(){var n;null===(n=e.updateNotificationDropdownOpen)||void 0===n||n.call(e,B)}),[B,e]);var z,Y,Q,Z,q,$,X,K=function(){var n,i=H();if(i){var t=i.id||””,o={disableNotifications:!l,targetID:t},a={followUser:{__typename:”FollowUserPayload”,follow:{__typename:”Follow”,user:{__typename:”User”,id:t,self:{__typename:”UserSelfConnection”,follower:{__typename:”FollowerEdge”,disableNotifications:!l}}}}}};e.followUser((0,x.De)(o,a)),null===(n=e.onToggle)||void 0===n||n.call(e,null==l||l),D(!l)}};if(e.toggleType){if(e.toggleType===M.F.Button)return z=e.size,Q=(Y=l)?c.t.NotificationBell:c.t.NotificationBellFilled,Z=Y?c.t.NotificationBellFilled:c.t.NotificationBellOff,q=O()({“live-notifications-wrapper–off”:Y,”live-notifications-wrapper–on”:!Y}),$=(0,V.q)(null==l||l),(0,s.jsx)(u.P,{className:”live-notifications__btn”,”data-a-target”:q,children:(0,s.jsx)(_.DT,{ariaLabel:$,tabIndex:e.tabIndex||0,icon:Q,iconOnHover:Z,type:f.VQ.Secondary,onClick:K,disabled:!t||!!e.disabled,background:g.VS.Base,showTooltip:e.showTooltips,tooltipText:e.showTooltips?(0,V.q)(null==l||l):void 0,”data-a-target”:”notifications-toggle”,size:z})});if(e.toggleType===M.F.Dropdown)return function(){var i,t,o,a,l=H();if(!e.selectedNotificationSettings||!(null===(t=null==l?void 0:l.self)||void 0===t?void 0:t.follower))return null;var d,c=(d=n.pathname,!(!(null===(o=n.state)||void 0===o?void 0:o.channelView)||!(0,W.B6)({path:”/:login”},d))),S=(0,V.l)(e.selectedNotificationSettings.followsSettingState),m=((i={})[A.oMr.PERSONALIZED]={icon:(0,s.jsx)(w.v,{}),label:(0,I.hw)(“Personalized”,”LiveNotificationsToggle”)},i[A.oMr.ALWAYS]={icon:(0,s.jsx)(h.a,{}),label:(0,I.hw)(“Always”,”LiveNotificationsToggle”)},i[A.oMr.LIVE_UP_ONLY]={icon:(0,s.jsx)(p._,{}),label:(0,I.hw)(“Go Live Only”,”LiveNotificationsToggle”)},i[A.oMr.NEVER]={icon:(0,s.jsx)(N.v,{}),label:(0,I.hw)(“Off”,”LiveNotificationsToggle”)},i),D=Object.entries(m).map((function(n){var i,t=n[0],o=n[1],a=t===(null===(i=e.selectedNotificationSettings)||void 0===i?void 0:i.followsSettingState);return(0,s.jsx)(k.i,{onClick:function(){var n,i,o,a;(null===(n=e.selectedNotificationSettings)||void 0===n?void 0:n.followsSettingState)&&(j(e.selectedNotificationSettings,t,K,null!==(i=null==l?void 0:l.id)&&void 0!==i?i:””),null===(o=e.updateNotificationDropdownOpen)||void 0===o||o.call(e,B),null===(a=e.onCloseDropdownMenu)||void 0===a||a.call(e),L())},”aria-label”:S,selected:a,children:(0,s.jsxs)(u.P,{display:”flex”,alignItems:”center”,children:[o.icon,(0,s.jsx)(u.P,{margin:{left:.5},children:(0,s.jsx)(v.N,{children:o.label})})]})},o.label)})),O=function(){var n,i;if(!(null===(n=e.selectedNotificationSettings)||void 0===n?void 0:n.followsSettingState))return null;var t=m[e.selectedNotificationSettings.followsSettingState].icon;return(0,s.jsx)(u.P,{overflow:”hidden”,background:e.background,borderRadius:T.Z.Rounded,display:g.nl.InlineFlex,children:(0,s.jsx)(f.$n,(0,r.__assign)({},U,{size:e.size,variant:null!==(i=e.notificationButtonType)&&void 0!==i?i:f.VQ.Secondary,dropdown:!0,”aria-label”:(0,I.hw)(“Modify channel notification preferences”,”LiveNotificationsToggle”),onClick:function(){var n,i;B?null===(n=e.onCloseDropdownMenu)||void 0===n||n.call(e):null===(i=e.onOpenDropdownMenu)||void 0===i||i.call(e),U.onClick()},children:t}))})};return(0,s.jsxs)(u.P,{display:”inline-flex”,overflow:”hidden”,children:[(0,s.jsx)(u.P,{children:c?(0,s.jsx)(b.m,{disabled:!c,options:{placement:”top”},label:(0,I.hw)(“Learn more about personalized notifications on the Notification Settings page”,{“x:link”:function(e){return(0,s.jsx)(y.Cb,{linkTo:”https://www.twitch.tv/settings/notifications”,targetBlank:!0,children:e})}},”LiveNotificationsToggle”),children:O()}):O()}),(0,s.jsx)(E.n,(0,r.__assign)({},P,{onRequestClose:function(){var n;null===(n=e.onCloseDropdownMenu)||void 0===n||n.call(e),L()},options:null!==(a=e.notificationDropdownOptions)&&void 0!==a?a:{modifiers:[{name:”offset”,options:{offset:[0,5]}}]},children:D}))]})}()}return X=t?l?(0,I.hw)(“Opt in to notifications to receive updates on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,I.hw)(“You will be notified on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,I.hw)(“Follow this channel to receive notifications when they go live.”,”LiveNotificationsToggle”),(0,s.jsxs)(u.P,{color:g.Q1.Base,display:g.nl.Flex,flexWrap:g.I4.Wrap,children:[(0,s.jsxs)(u.P,{display:g.nl.Flex,flexWrap:g.I4.NoWrap,fullWidth:!0,justifyContent:g.A9.Between,children:[(0,s.jsx)(u.P,{display:g.nl.Flex,padding:{right:2},children:(0,s.jsx)(“span”,{children:(0,s.jsx)(v.N,{fontSize:g.Z4.Size4,bold:!0,children:(0,I.hw)(“Notifications”,”LiveNotificationsToggle”)})})}),(0,s.jsx)(u.P,{display:g.nl.Flex,flexShrink:0,children:(0,s.jsx)(S.l,{onChange:K,checked:!(null==l||l),”data-a-target”:”notifications-toggle”,disabled:!t||!!e.disabled})})]}),(0,s.jsx)(u.P,{display:g.nl.InlineFlex,padding:{bottom:1},children:(0,s.jsx)(v.N,{type:m.M2.Span,color:g.Q1.Alt2,”data-test-selector”:void 0,children:X})})]})}));var z=(0,t.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded,isLoggedIn:(0,a.M3)(e),darkModeEnabled:(0,l.iR)(e)===o.S.Dark}}))(H)},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}}]);