티스토리 수익 글 보기

티스토리 수익 글 보기

!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]=”9eef876a-92a2-4c60-94f3-a45411f99209″,e._sentryDebugIdIdentifier=”sentry-dbid-9eef876a-92a2-4c60-94f3-a45411f99209″)}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[92867],{229045:function(e,n,i){“use strict”;i.d(n,{cM:function(){return a},hM:function(){return N},iv:function(){return o},jH:function(){return t}});var t,o,a,l,r=i(331635),s=i(661988),d=i(511329),u=i(219272),c=i(53961),f=i(304440),v=i.n(f),m=i(461368),g=i.n(m);!function(e){e.Channel=”channel”,e.TheatreMode=”theatre_mode”,e.Search=”search”,e.EmotePicker=”emote_picker”,e.EmoteCard=”emote_card”,e.ExpressFollow=”express_follow”,e.ChannelSwitcher=”channel_switcher”,e.ChatViewerCard=”chat_viewer_card”,e.Shoutout=”shoutout”,e.GuestStarProfileCard=”guest_profile_card”,e.StreamerCard=”streamer_card”,e.Story=”story”,e.Stories=”stories”}(t||(t={})),function(e){e.Regular=”regular”,e.Theater=”theater”}(o||(o={})),function(e){e.Live=”live”,e.VOD=”vod”,e.Clip=”clip”,e.WatchParty=”watch_party”}(a||(a={})),function(e){e.Offline=”offline”,e.Live=”live”}(l||(l={}));var S=function(e){if(e.playSessionID&&e.hasPlayed)return e.playSessionID};function N(e,n){return(0,r.__awaiter)(this,void 0,void 0,(function(){var i,o,a,f,m,N,k,w,p,h,y,b,D,T,E,F,_,I,O,C,x,R;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if(i=null,o=null,a=null,f=null,m=null,N=””,w=void 0,p=void 0,h=void 0,!n.channelID)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.x2.apollo.client.query({query:v(),variables:{id:n.channelID}})];case 2:return f=r.sent(),[3,4];case 3:return y=r.sent(),s.vF.warn(“Failed to make query for channel info in FollowEvent reporting.”,{err:y,channelID:n.channelID}),[3,4];case 4:(a=f&&f.data&&f.data.user)?(m=a.stream&&a.stream.game&&a.stream.game.name,N=null!==(O=a.primaryColorHex)&&void 0!==O?O:””):s.vF.warn(“Query for channel info in FollowEvent reporting returned no data.”,{channelID:n.channelID}),r.label=5;case 5:if(!(b=s.E5.getVideoPlayerTrackingData().vodID))return[3,10];r.label=6;case 6:return r.trys.push([6,8,,9]),[4,s.x2.apollo.client.query({query:g(),variables:{id:b}})];case 7:return i=r.sent(),[3,9];case 8:return D=r.sent(),s.vF.warn(“Failed to make query for VOD info in FollowEvent reporting.”,{err:D,currentVODID:b}),[3,9];case 9:(null==(o=i&&i.data&&i.data.video)?void 0:o.broadcastType)?k=(0,d.EE)(o.broadcastType):(k=null,s.vF.warn(“Query for video info in FollowEvent reporting return no data.”,{currentVODID:b})),r.label=10;case 10:return n.src!==t.TheatreMode&&(T=!!(null===(C=null==a?void 0:a.stream)||void 0===C?void 0:C.id),w=n.content_type,p=function(e){return e?l.Live:l.Offline}(T)),n.src===t.Channel&&(h=n.screen_state),E=s.E5.getVideoPlayerTrackingData(),F=(0,u.Bj)(),(I={location:null!==(R=null===(x=s.E5.getLastPageview())||void 0===x?void 0:x.location)&&void 0!==R?R:””,channel:n.channelLogin,channel_id:n.channelID,channel_game:m,cta_visible:E.followCTAVisible,game:n.game,partner:a?a.isPartner:null,primary_color_hex:N,src:n.src,vod_id:b,vod_type:k,screen_state:h,content_type:w,channel_state:p,page_session_id:s.x2.session.pageviewID,play_session_id:S(E)})[c.oK]=F[c.oK],_=I,s.E5.track(e,_),[2]}}))}))}},492867:function(e,n,i){“use strict”;i.d(n,{W:function(){return Se}});var t=i(331635),o=i(474848),a=i(296540),l=i(415044),r=i(868238),s=i(739604),d=i(29896),u=i(229045),c=i(368770),f=i(750735),v=i(959340),m=i(914421),g=i(97774),S=i(216042),N=i(564368),k=i(661988),w=i(828438),p=i(911022),h=i(260938),y=i(454111),b=i(895798),D=i(138245),T=i(178676),E=i(183198),F=i(472571),_=i(759369),I=i(312663),O=i(407590),C=i(588702),x=i(436470),R=i(883594),P=i(423569),U=i(368972),A=i(424131),L=i(246942),V=i.n(L),B=i(276337),M=i(664865),G=i(876531),j=i(917197),W=i(775994),H=i.n(W),Q=i(931336),Y=i(744364),z=i.n(Y),q=(0,r.Zz)((0,B._v)(z(),{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,B._v)(H(),{name:”followUser”}))((function(e){var n=(0,a.useState)(!1),i=n[0],l=n[1],r=(0,a.useState)(!0),s=r[0],d=r[1],u=(0,F.p)(),c=u.dialogProps,f=u.anchorProps,g=u.close,S=(0,j.T)().handleLiveNotificationDropdownClick,p=(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,r,s=null;if(e.followData?s=e.followData:!e.data||e.data.loading||e.data.error||(s=e.data.user),s){var u=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===(o=null===(t=null==s?void 0:s.self)||void 0===t?void 0:t.follower)||void 0===o?void 0:o.disableNotifications)||(null===(r=null===(a=null==s?void 0:s.self)||void 0===a?void 0:a.follower)||void 0===r?void 0:r.disableNotifications);l(u),d(null==c||c)}}),[e.followData,e.data]),(0,a.useEffect)((function(){var e,n,i=p();if(i){var t=null===(n=null===(e=i.self)||void 0===e?void 0:e.follower)||void 0===n?void 0:n.disableNotifications;l(null!==t||!1),d(null!=t?t:null)}}),[p]);var h,y,b,T,E,L,B,W=function(){var n,i=p();if(i){var t=i.id||””,o={disableNotifications:!s,targetID:t},a={followUser:{__typename:”FollowUserPayload”,follow:{__typename:”Follow”,user:{__typename:”User”,id:t,self:{__typename:”UserSelfConnection”,follower:{__typename:”FollowerEdge”,disableNotifications:!s}}}}}};e.followUser((0,M.De)(o,a)),null===(n=e.onToggle)||void 0===n||n.call(e,null==s||s),d(!s)}};if(e.toggleType){if(e.toggleType===D.F.Button)return h=e.size,b=(y=s)?_.t.NotificationBell:_.t.NotificationBellFilled,T=y?_.t.NotificationBellFilled:_.t.NotificationBellOff,E=V()({“live-notifications-wrapper–off”:y,”live-notifications-wrapper–on”:!y}),L=(0,Q.q)(null==s||s),(0,o.jsx)(v.P,{className:”live-notifications__btn”,”data-a-target”:E,children:(0,o.jsx)(w.DT,{ariaLabel:L,tabIndex:e.tabIndex||0,icon:b,iconOnHover:T,type:N.VQ.Secondary,onClick:W,disabled:!i||!!e.disabled,background:m.VS.Base,showTooltip:e.showTooltips,tooltipText:e.showTooltips?(0,Q.q)(null==s||s):void 0,”data-a-target”:”notifications-toggle”,size:h})});if(e.toggleType===D.F.Dropdown)return function(){var n;if(!e.selectedNotificationType)return null;var i=(0,Q.l)(e.selectedNotificationType),a=((n={})[G.oMr.ALWAYS]={icon:(0,o.jsx)(x.a,{}),label:(0,k.So)(“All Notifications”,”LiveNotificationsToggle”)},n[G.oMr.LIVE_UP_ONLY]={icon:(0,o.jsx)(R._,{}),label:(0,k.So)(“Go-Live Only”,”LiveNotificationsToggle”)},n[G.oMr.PERSONALIZED]={icon:(0,o.jsx)(x.a,{}),label:(0,k.So)(“Personalized”,”LiveNotificationsToggle”)},n[G.oMr.NEVER]={icon:(0,o.jsx)(P.v,{}),label:(0,k.So)(“Disable Notifications”,”LiveNotificationsToggle”)},n),l=Object.entries(a).map((function(n){var i=n[0],t=n[1];return(0,o.jsx)(U.i,{onClick:function(){var n;if(e.selectedNotificationType){var t=p();S(e.selectedNotificationType,i,W,null!==(n=null==t?void 0:t.id)&&void 0!==n?n:””),g()}},selected:i===e.selectedNotificationType,children:(0,o.jsxs)(v.P,{display:”flex”,alignItems:”center”,children:[t.icon,(0,o.jsx)(I.N,{children:t.label})]})},t.label)}));return(0,o.jsxs)(v.P,{display:”inline-flex”,overflow:”hidden”,children:[(0,o.jsx)(N.$n,(0,t.__assign)({variant:”secondary”,dropdown:!0,”aria-label”:i},f,{children:a[e.selectedNotificationType].icon})),(0,o.jsx)(A.n,(0,t.__assign)({},c,{options:{modifiers:[{name:”offset”,options:{offset:[0,5]}}]},children:l}))]})}()}return B=i?s?(0,k.hw)(“Opt in to notifications to receive updates on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,k.hw)(“You will be notified on this channel’s activity, including when they go live.”,”LiveNotificationsToggle”):(0,k.hw)(“Follow this channel to receive notifications when they go live.”,”LiveNotificationsToggle”),(0,o.jsxs)(v.P,{color:m.Q1.Base,display:m.nl.Flex,flexWrap:m.I4.Wrap,children:[(0,o.jsxs)(v.P,{display:m.nl.Flex,flexWrap:m.I4.NoWrap,fullWidth:!0,justifyContent:m.A9.Between,children:[(0,o.jsx)(v.P,{display:m.nl.Flex,padding:{right:2},children:(0,o.jsx)(“span”,{children:(0,o.jsx)(I.N,{fontSize:m.Z4.Size4,bold:!0,children:(0,k.hw)(“Notifications”,”LiveNotificationsToggle”)})})}),(0,o.jsx)(v.P,{display:m.nl.Flex,flexShrink:0,children:(0,o.jsx)(O.l,{onChange:W,checked:!(null==s||s),”data-a-target”:”notifications-toggle”,disabled:!i||!!e.disabled})})]}),(0,o.jsx)(v.P,{display:m.nl.InlineFlex,padding:{bottom:1},children:(0,o.jsx)(I.N,{type:C.M2.Span,color:m.Q1.Alt2,”data-test-selector”:void 0,children:B})})]})}));var Z=(0,l.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded,isLoggedIn:(0,c.M3)(e),darkModeEnabled:(0,E.iR)(e)===T.S.Dark}}))(q),K=i(464232),$=function(e){var n,i,l=(0,a.useState)(!0),r=l[0],s=l[1],d=(0,a.useRef)(null),u=(0,a.useRef)(null),c=(0,a.useRef)(null),f=e.followUIType!==b.y.IconOnly,N=X(e),h=N.icon,y=N.iconOnHover,T=N.text,E=N.type,F=N.typeOnHover,_=N.onClick,I=N.selector,O=N.tooltipText,C=N.notifsTabIndex,x=N.showDialog,R=N.setShowDialog,P=(0,a.useState)(0),U=P[0],A=P[1],L=(0,a.useState)(0),V=L[0],B=L[1];(0,a.useLayoutEffect)((function(){var e,n,i;if((null===(e=d.current)||void 0===e?void 0:e.offsetWidth)&&(null===(n=u.current)||void 0===n?void 0:n.offsetWidth)&&(null===(i=c.current)||void 0===i?void 0:i.offsetWidth)){var t=d.current.offsetWidth,o=u.current.offsetWidth-t;A(t+8),B(o)}}),[]);var M=r?void 0:{durationMs:w.xt,delayMs:w.xt,easing:”ease-in”};return(0,o.jsx)(K.d,{“data-test-selector”:b.T.FollowToggleTransformContainer,transformIf:!e.isFollowing,transformValues:{translateX:U},transition:M,children:(0,o.jsxs)(v.P,{display:m.nl.Flex,overflow:m.nE.Hidden,alignItems:m.k2.Center,fullHeight:!0,ref:c,children:[(0,o.jsx)(v.P,{borderRadius:g.Z.Rounded,display:m.nl.Flex,justifyContent:m.A9.Center,flexDirection:m.bo.Column,overflow:m.nE.Hidden,children:(0,o.jsx)(v.P,{display:m.nl.Flex,justifyContent:m.A9.Center,flexDirection:m.bo.Column,children:(0,o.jsx)(K.d,{“data-test-selector”:b.T.FollowToggleTransformShift,transformIf:e.isFollowing,transformValues:{translateX:e.notificationToggleType!==D.F.Dropdown&&e.isFollowing?V:void 0},transition:M,children:(0,o.jsxs)(v.P,{display:m.nl.Flex,alignContent:m.Jx.Center,onMouseEnter:function(){return s(!1)},ref:u,children:[(0,o.jsx)(w.DT,{ariaLabel:e.isFollowing?(0,k.hw)(“Unfollow {displayName}”,{displayName:e.channelName||””},”AnimatedFollowToggleButtons”):(0,k.hw)(“Follow {displayName}”,{displayName:e.channelName||””},”AnimatedFollowToggleButtons”),disabled:!e.canFollow&&!e.isFollowing||e.isOwnPage,delayText:e.isFollowing?void 0:750,text:f?T:void 0,overlayButton:e.overlayButton,icon:h,iconOnHover:y,type:E,typeOnHover:F,onClick:_,isFollowing:e.isFollowing,isBlocked:e.isBlocked,preventTransition:r,”data-a-target”:I,”data-test-selector”:I,background:J(!!e.isFollowing,e.followButtonType),tooltipText:O}),e.isFollowing&&(0,o.jsx)(p.R,(0,t.__assign)({},e,{showUnfollowDialog:x,setShowUnfollowDialog:R,notificationToggleType:e.notificationToggleType}))]})})})}),!e.isOwnPage&&!e.hideNotificationButton&&(0,o.jsx)(S.S,{margin:{left:1},children:(0,o.jsx)(K.d,{transformIf:e.isFollowing,transformValues:{},fade:K.z.In,transition:{durationMs:w.xt,easing:”ease-in-out”},children:(0,o.jsx)(“div”,{ref:d,children:(0,o.jsx)(Z,{onToggle:e.onToggleNotifications,channelLogin:e.channelLogin,toggleType:null!==(n=e.notificationToggleType)&&void 0!==n?n:D.F.Button,selectedNotificationType:e.selectedNotificationType,tabIndex:C,tooltipDirection:e.tooltipDirection,followData:(null===(i=e.followData)||void 0===i?void 0:i.user)||void 0,showTooltips:e.showTooltips})})})})]})})},X=function(e){var n=(0,h.U)(e).onFollow,i=(0,a.useState)(!1),t=i[0],o=i[1],l={icon:y.Vg,iconOnHover:y.G$,text:(0,y.Nf)(),type:e.followButtonType||N.VQ.Primary,typeOnHover:void 0,onClick:n,selector:b.T.FollowButton,tooltipText:e.isBlocked?(0,y.CD)():(0,y.Nf)(),notifsTabIndex:-1,showDialog:!1,setShowDialog:function(){}},r={icon:y.cW,iconOnHover:y.vC,text:(0,y.Nf)(),type:N.VQ.Secondary,typeOnHover:N.VQ.Alert,onClick:function(){return o(!0)},selector:b.T.UnfollowButton,tooltipText:(0,y.Qz)(),notifsTabIndex:0,showDialog:t,setShowDialog:o};return e.isFollowing?r:l},J=function(e,n){var i=!!n&&n!==N.VQ.Primary;return e||i?m.VS.Base:m.VS.AccentAlt2},ee=i(305528),ne=a.memo((function(e){switch(e.size){case N.Mp.Large:return(0,o.jsx)(ee.Or,{width:e.fullWidthButton?void 0:95.8,height:36,borderRadius:g.Z.Rounded});case N.Mp.Small:return(0,o.jsx)(ee.Or,{width:e.fullWidthButton?void 0:73.17,height:24,borderRadius:g.Z.Rounded});default:return(0,o.jsx)(ee.Or,{width:e.fullWidthButton?void 0:80.09,height:30,borderRadius:g.Z.Rounded})}})),ie=i(27346),te=a.forwardRef((function(e,n){var i,l,r,s=(0,y.Nf)(),d=(0,h.U)(e).onFollow,u=!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),c=e.followUIType!==b.y.IconOnly,f=e.followUIType!==b.y.TextOnly,v=(0,a.useState)(y.Vg),m=v[0],g=v[1];return(0,o.jsx)(N.$n,(0,t.__assign)({ref:n,disabled:!u,”aria-label”:(0,k.hw)(“Follow {displayName}”,{displayName:e.channelName||””},”StandardFollowButton”),overlay:e.overlayButton,”data-a-target”:b.T.FollowButton,icon:f?m: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||N.VQ.Primary,fullWidth:e.fullWidthButton,onMouseEnter:function(){!e.staticHollowIcons&&f&&g(y.G$)},onMouseLeave:function(){!e.staticHollowIcons&&f&&g(y.Vg)}},(0,ie.Fh)(e),{children:c?s:null}))})),oe=i(990998),ae=i(885139),le=i(666311),re=i(67813),se=i(723319),de=i(324602),ue=a.forwardRef((function(e,n){var i,l=(0,y.Qz)(),r=e.unfollowUIType!==b.y.IconOnly,s=e.unfollowUIType!==b.y.TextOnly,d=(0,a.useState)((function(){return oe.g})),u=d[0],c=d[1],f=(0,a.useState)(null!==(i=e.unfollowButtonType)&&void 0!==i?i:N.VQ.Secondary),w=f[0],h=f[1],D=(0,a.useState)(!1),T=D[0],E=D[1],F=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.$n,{ref:n,icon:s?u:void 0,onMouseEnter:function(){!e.staticHollowIcons&&s&&c((function(){return ae.L})),h(N.VQ.Alert)},onMouseLeave:function(){var n;!e.staticHollowIcons&&s&&c((function(){return oe.g})),h(null!==(n=e.unfollowButtonType)&&void 0!==n?n:N.VQ.Secondary)},onClick:function(){var n;null===(n=e.onClick)||void 0===n||n.call(e),E(!0)},tabIndex:e.tabIndex,”aria-label”:(0,k.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:w,children:r?l:null}),(0,o.jsx)(p.R,(0,t.__assign)({},e,{showUnfollowDialog:T,setShowUnfollowDialog:E}))]});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:m.nl.Flex,children:[(0,o.jsx)(S.S,{borderRadius:{bottomRight:g.Z.None,topRight:g.Z.None},children:F}),(0,o.jsx)(S.S,{position:m.yX.Absolute,children:(0,o.jsx)(le.f,{disabled:!0,dropdown:{onClick:function(){return e.setShowDropdown(!e.showDropdown)},”data-test-selector”:b.T.UnfollowButtonDropdownToggleElement,tabIndex:e.tabIndex,”aria-label”:(0,y.uu)(),”aria-expanded”:e.showDropdown}})})]}),(0,o.jsx)(v.P,{position:m.yX.Absolute,zIndex:m.Py.Default,”data-test-selector”:b.T.UnfollowButtonDropdown,children:(0,o.jsx)(re.e,{show:e.showDropdown,type:se.ES.SlideOverTop,duration:se.Cf.Short,children:(0,o.jsx)(de.fK,{size:de.$V.Small,”data-a-target”:”follow-notifications-balloon”,children:(0,o.jsx)(v.P,{padding:1,children:(0,o.jsx)(Z,{channelLogin:e.channelLogin})})})})})]})})),ce=i(693370),fe=i.n(ce),ve=(0,s.U)({name:”FollowButton”,category:”discover”}),me=ve.Available,ge=ve.Unavailable,Se=(0,r.Zz)((0,f.W)(“FollowButton”))((function(e){var n,i,r,s,u,f,v,m=null===(n=(0,l.d4)((function(e){return(0,c.wz)(e)})))||void 0===n?void 0:n.login,g=e.channelLogin===m,S=(0,a.useState)(!1),N=S[0],k=S[1],w=!(e.channelLogin&&!e.followData&&!g),p=(0,d.IT)(fe(),{variables:{login:null!==(i=e.channelLogin)&&void 0!==i?i:””},skip:w}),h=p.data,y=p.error,b=p.loading,D=(0,a.useState)(null!==(r=e.followData)&&void 0!==r?r:h),T=D[0],E=D[1],F=Ne((0,t.__assign)((0,t.__assign)({},e),{followData:T})).trackFollowEvent,_=(0,a.useState)(!!(null===(u=null===(s=null==T?void 0:T.user)||void 0===s?void 0:s.self)||void 0===u?void 0:u.follower)),I=_[0],O=_[1],C=(0,a.useState)(!1),x=C[0],R=C[1],P=(0,a.useState)(!1),U=P[0],A=P[1],L=(0,a.useRef)(null),V=(0,a.useRef)(null);if((0,a.useEffect)((function(){var e,n;if(x&&document.activeElement===document.body){R(!1);var i=null!==(n=null!==(e=L.current)&&void 0!==e?e:V.current)&&void 0!==n?n:null;null==i||i.focus()}}),[I,x]),(0,a.useEffect)((function(){var e,n;h&&(E(h),O(!!(null===(n=null===(e=h.user)||void 0===e?void 0:e.self)||void 0===n?void 0:n.follower)))}),[h]),(0,a.useEffect)((function(){(w||T&&!b)&&e.latencyTracking.reportInteractive()})),g||I&&e.hideWhenFollowing)return null;if(!T&&(y||h&&!h.user)&&!w&&!b)return(0,o.jsx)(ge,{reason:y?(null==y?void 0:y.message)||”error from GQL”:”no user”});if(e.showLoadingPlaceholder&&(!T||b))return(0,o.jsx)(ne,{size:e.size,fullWidthButton:e.fullWidthButton});var B=!1!==(null===(v=null===(f=null==T?void 0:T.user)||void 0===f?void 0:f.self)||void 0===v?void 0:v.canFollow),M=(0,t.__assign)((0,t.__assign)({},e),{followData:T,isOwnPage:g,isFollowing:I,canFollow:B,currentUserLogin:m,trackFollowEvent:F,onFollow:function(n){var i;null===(i=e.onFollow)||void 0===i||i.call(e,n),k(!0)},showDropdown:N,setShowDropdown:k,isBlocked:U,setIsBlocked:A});return e.animatedButton?(0,o.jsx)(me,{children:(0,o.jsx)($,(0,t.__assign)({},M))}):I?(0,o.jsx)(me,{children:(0,o.jsx)(ue,(0,t.__assign)({},M,{ref:V,onClick:function(){R(!0)},onSubmit:function(){O(!1)}}))}):(0,o.jsx)(me,{children:(0,o.jsx)(te,(0,t.__assign)({},M,{ref:L,onClick:function(){R(!0)},onSubmit:function(){O(!0)}}))})})),Ne=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,u.hM)(i,{channelLogin:e.followData.user.login,channelID:e.followData.user.id,src:e.followSource||u.jH.Channel,screen_state:n?u.iv.Theater:u.iv.Regular,content_type:e.followContentType})}}}},911022:function(e,n,i){“use strict”;i.d(n,{R:function(){return p}});var t=i(331635),o=i(474848),a=i(128043),l=i(973421),r=i.n(l),s=i(661988),d=i(29896),u=i(664865),c=i(876531),f=i(516823),v=i.n(f),m=i(693370),g=i.n(m),S=i(138245),N=i(917197),k=i(431762),w=i.n(k),p=function(e){var n,i,l,f=(0,N.T)().selectedChannelSortOrder,m=(0,d.n_)(v())[0],k=null!==(l=null===(i=null===(n=e.followData)||void 0===n?void 0:n.user)||void 0===i?void 0:i.displayName)&&void 0!==l?l:e.channelLogin;return(0,o.jsx)(a.K,{title:k?(0,s.hw)(“Unfollow {displayName}?”,{displayName:k},”UnfollowModal”):(0,s.hw)(“Are you sure you want to unfollow?”,”UnfollowModal”),show:e.showUnfollowDialog,onRequestClose:function(){e.setShowUnfollowDialog(!1)},actionButtonProps:{children:(0,s.hw)(“Yes, unfollow”,”UnfollowModal”),onClick:function(){(0,t.__awaiter)(void 0,void 0,void 0,(function(){var n,i,o,a,l,d,v,N,k,p;return(0,t.__generator)(this,(function(h){switch(h.label){case 0:return m&&(null===(l=null===(a=e.followData)||void 0===a?void 0:a.user)||void 0===l?void 0:l.id)&&e.followData.user.self?(n={unfollowUser:{__typename:”UnfollowUserPayload”,follow:{__typename:”Follow”,disableNotifications:null!==(N=null===(v=null===(d=e.followData.user.self)||void 0===d?void 0:d.follower)||void 0===v?void 0:v.disableNotifications)&&void 0!==N&&N,user:(0,t.__assign)((0,t.__assign)({},e.followData.user),{self:(0,t.__assign)((0,t.__assign)({},e.followData.user.self),{follower:null})})}}},i=(0,u.De)({targetID:e.followData.user.id},n),[4,m(i)]):[2];case 1:return o=h.sent(),e.onSubmit&&!o.errors&&e.onSubmit(),s.E5.trackAvailability({name:”UnFollowButtonPress”,is_available:!(null==o?void 0:o.errors),category:”community”,reason:null===(k=null==o?void 0:o.errors)||void 0===k?void 0:k.map((function(e){return e.message})).join(” other_error: “)}),(null===(p=null==o?void 0:o.data)||void 0===p?void 0:p.unfollowUser)&&!o.errors&&(e.trackFollowEvent(“unfollow”),(0,u.oR)(g(),{login:e.channelLogin},(function(e){var n;return(null===(n=e.user)||void 0===n?void 0:n.self)&&(e=r()(e,(function(e){return e.user.self.follower}),(function(){return null}))),e})),e.onUnfollow&&e.onUnfollow(e.channelLogin),e.notificationToggleType===S.F.Dropdown&&(0,u.oR)(w(),{limit:10,sortOrder:f,followedFilters:[c.iGk.ALWAYS]},(function(n){var i,t;if(!(null===(t=null===(i=null==n?void 0:n.currentUser)||void 0===i?void 0:i.notificationEnrollmentFollows)||void 0===t?void 0:t.edges))return n;var o=n.currentUser.notificationEnrollmentFollows.edges.findIndex((function(n){var i,t,o;return(null===(i=null==n?void 0:n.node)||void 0===i?void 0:i.id)===(null===(o=null===(t=e.followData)||void 0===t?void 0:t.user)||void 0===o?void 0:o.id)}));return-1===o?n:r()(n,(function(e){return e.currentUser.notificationEnrollmentFollows.edges[o].notificationSettings.followsSettingState}),(function(){return c.oMr.PERSONALIZED}))}))),[2]}}))})),e.setShowUnfollowDialog(!1)},”data-a-target”:”modal-unfollow-button”},cancelButtonProps:{children:(0,s.hw)(“No, cancel”,”UnfollowModal”)},children:(0,s.hw)(“You will no longer receive notifications or see them in your followed channels list.”,”UnfollowModal”)})}},454111:function(e,n,i){“use strict”;i.d(n,{CD:function(){return f},G$:function(){return s},Hm:function(){return m},Nf:function(){return l},OP:function(){return v},Qw:function(){return g},Qz:function(){return d},Vg:function(){return r},cW:function(){return u},uu:function(){return S},vC:function(){return c}});var t=i(759369),o=i(876531),a=i(661988),l=function(){return(0,a.hw)(“Follow”,”FollowButton”)},r=t.t.FollowHollow,s=t.t.Heart,d=function(){return(0,a.hw)(“Unfollow”,”FollowButton”)},u=t.t.Heart,c=t.t.Unheart,f=function(){return(0,a.hw)(“Slow down! Try following more channels later.”,”FollowButton”)},v=function(e){return(0,a.hw)(“You’re at the channel follow limit. Unfollow another channel to follow {channelName}.”,{channelName:e},”FollowButton”)},m=function(e){return(0,a.hw)(“You cannot follow {channelName} right now.”,{channelName:e},”FollowButton”)},g=function(e,n){switch(n){case o.aHg.UNVERIFIED_EMAIL:return(0,a.hw)(“You cannot follow {channelName} because you have not verified an email address.”,{channelName:e},”FollowButton”);case o.aHg.UNVERIFIED_PHONE:return(0,a.hw)(“You cannot follow {channelName} because you have not verified a phone number.”,{channelName:e},”FollowButton”);case o.aHg.UNVERIFIED_PHONE_AND_EMAIL:return(0,a.hw)(“You cannot follow {channelName} because you have not verified an email address and phone number.”,{channelName:e},”FollowButton”);default:return””}},S=function(){return(0,a.hw)(“Notification Settings”,”FollowButton”)}},260938:function(e,n,i){“use strict”;i.d(n,{U:function(){return D}});var t=i(331635),o=i(474848),a=i(70931),l=i(973421),r=i.n(l),s=i(296540),d=i(415044),u=i(661988),c=i(29896),f=i(664865),v=i(42820),m=i(746821),g=i(876531),S=i(659468),N=i.n(S),k=i(693370),w=i.n(k),p=i(10608),h=i(571062),y=i(5370),b=i(454111),D=function(e){var n,i,l,S=(0,p.x)(null!==(l=null===(i=null===(n=e.followData)||void 0===n?void 0:n.user)||void 0===i?void 0:i.id)&&void 0!==l?l:””),k=s.useContext(y.xG).addSnackbarToQueue,D=(0,d.wA)(),T=(0,c.n_)(N())[0],E=function(){return(0,t.__awaiter)(void 0,void 0,void 0,(function(){var n,i,o,a,l,s,d,u,c,v,m,S,N,k,p,h,y,b;return(0,t.__generator)(this,(function(t){switch(t.label){case 0:return(null===(d=null===(s=e.followData)||void 0===s?void 0:s.user)||void 0===d?void 0:d.id)&&(null===(c=null===(u=e.followData)||void 0===u?void 0:u.user)||void 0===c?void 0:c.displayName)&&(null===(m=null===(v=e.followData)||void 0===v?void 0:v.user)||void 0===m?void 0:m.login)?(n={followUser:{__typename:”FollowUserPayload”,follow:{__typename:”Follow”,disableNotifications:!1,user:{__typename:”User”,id:e.followData.user.id,displayName:e.followData.user.displayName,login:e.followData.user.login,self:{canFollow:!0,__typename:”UserSelfConnection”,follower:{__typename:”FollowerEdge”,disableNotifications:!1,followedAt:(null===(N=null===(S=e.followData.user.self)||void 0===S?void 0:S.follower)||void 0===N?void 0:N.followedAt)||null}}}},error:null}},i=(0,f.De)({disableNotifications:!1,targetID:e.followData.user.id},n),[4,T(i)]):[2];case 1:return o=t.sent(),(a=null===(h=null===(p=null===(k=null==o?void 0:o.data)||void 0===k?void 0:k.followUser)||void 0===p?void 0:p.error)||void 0===h?void 0:h.code)&&(F(a),a===g.aHg.FORBIDDEN)?(e.setIsBlocked(!0),[2]):(e.onSubmit&&!o.errors&&e.onSubmit(),e.isBlocked&&e.setIsBlocked(!1),(null===(b=null===(y=null==o?void 0:o.data)||void 0===y?void 0:y.followUser)||void 0===b?void 0:b.follow)&&(e.trackFollowEvent(“follow”),l=o.data.followUser.follow,(0,f.oR)(w(),{login:e.channelLogin},(function(e){var n=e.user;return n&&n.self?n.self.follower?r()(e,(function(e){return e.user.self.follower.disableNotifications}),(function(){return l.disableNotifications})):r()(e,(function(e){return e.user.self.follower}),(function(){var e,n,i;return{__typename:”FollowerEdge”,disableNotifications:l.disableNotifications,followedAt:null===(i=null===(n=null===(e=l.user)||void 0===e?void 0:e.self)||void 0===n?void 0:n.follower)||void 0===i?void 0:i.followedAt}})):e})),e.onFollow&&e.onFollow(e.channelLogin)),[2])}}))}))},F=function(n){var i,t,l;switch(n){case g.aHg.UNVERIFIED_EMAIL:case g.aHg.UNVERIFIED_PHONE:case g.aHg.UNVERIFIED_PHONE_AND_EMAIL:S&&k((0,o.jsx)(h.D,{message:(0,b.Qw)(null!==(i=e.channelName)&&void 0!==i?i:””,n),type:”error”,buttonProps:{children:(0,o.jsx)(a.Cb,{linkTo:”https://www.twitch.tv/settings/security”,targetBlank:!0,variant:”overlay”,underline:!1,children:(0,u.hw)(“Verify”,”UseOnFollow”)})}}));break;case g.aHg.TOO_MANY_FOLLOWS:k((0,o.jsx)(h.D,{message:(0,b.OP)(null!==(t=e.channelName)&&void 0!==t?t:””),type:”error”}));break;case g.aHg.FORBIDDEN:k((0,o.jsx)(h.D,{message:(0,b.Hm)(null!==(l=e.channelName)&&void 0!==l?l:””),type:”error”}));break;default:return}},_=e.currentUserLogin?E:function(){var n={};e.followData&&(n.postLoginAction=E,n.targetChannel=e.channelName||e.channelLogin),n.showContext=!0,D((0,m.$5)(v.W.FollowButton,n))};return{onFollow:function(){_(),e.trackFollowEvent(“follow_attempt”)}}}},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={}))},138245:function(e,n,i){“use strict”;var t;i.d(n,{F:function(){return t}}),function(e){e.Toggle=”type_toggle”,e.Button=”type_button”,e.Dropdown=”type_dropdown”}(t||(t={}))},931336:function(e,n,i){“use strict”;i.d(n,{l:function(){return l},q:function(){return a}});var t=i(661988),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.So)(“Turn all notifications on”,”LiveNotificationsToggle”);case o.oMr.LIVE_UP_ONLY:return(0,t.So)(“Turn only Go-Live notifications on”,”LiveNotificationsToggle”);case o.oMr.PERSONALIZED:return(0,t.So)(“Turn only Personalized notifications on”,”LiveNotificationsToggle”);case o.oMr.NEVER:return(0,t.So)(“Turn all notifications off”,”LiveNotificationsToggle”);default:return}}},10608:function(e,n,i){“use strict”;i.d(n,{x:function(){return o}});var t=i(661988),o=function(e){return!!e&&”treatment”===t.x2.experiments.__hardcodedStaleExperiment(“chmod-vf”,”treatment”)}},917197:function(e,n,i){“use strict”;i.d(n,{Z:function(){return b},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),u=i(29896),c=i(664865),f=i(431762),v=i.n(f),m=i(403660),g=i(833136),S=i.n(g),N=i(54015),k=i.n(N),w=i(169455),p=function(){var e=function(){var e,n=o.useState(a.xBQ.DESC),i=n[0],t=n[1],l=new Map,s=(0,u.IT)(v(),{variables:{limit:10,sortOrder:i,followedFilters:[a.iGk.ALWAYS]}}),f=s.data,g=s.updateQuery,S=s.fetchMore,N=s.loading,k=function(e){if(!N){var n=f.currentUser.notificationSettings.find((function(n){if(n.category===e)return n.category===e}));if(n)return n}return null};return N||m.l.forEach((function(e){l.set(e,[]),m.Y[e].forEach((function(n){var i=l.get(e),t=k(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,S({query:v(),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,c.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:g,fetchMore:S,loading:N,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:k,updateChannelSortOrder:function(e){t(e)},selectedChannelSortOrder:i}}(),n=e.groupedNotificationSettings,i=e.fetchMoreFollowers,t=e.getSettingEnabledState,l=e.followedChannels,s=e.updateQuery,f=e.getIsIndividualSettingDisabled,g=e.getSettingData,N=e.updateChannelSortOrder,p=e.selectedChannelSortOrder,h=function(e){var n=e.getSettingEnabledState,i=e.updateQuery,t=(0,u.n_)(k())[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,c.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,w.hk)(n.currentUser.notificationSettings,e);if(s>=0){var u=(0,w.wz)(n.currentUser.notificationSettings,s,o);u>=0&&(n=d()(n,(function(e){return e.currentUser.notificationSettings[s].platforms[u]}),(function(e){return(0,r.__assign)((0,r.__assign)({},e),{isEnabled:”on”===l,settingState:l})})))}return n})),[2]}}))}))},setNotificationSettings:t}}({getSettingEnabledState:t,updateQuery:s}),y=h.handleSettingToggle,b=h.setNotificationSettings,D=function(e){var n=e.selectedChannelSortOrder,i=(0,u.n_)(S())[0];return{handleLiveNotificationDropdownClick:function(e,t,o,l){return(0,r.__awaiter)(void 0,void 0,void 0,(function(){var s;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return s=[a.oMr.ALWAYS,a.oMr.LIVE_UP_ONLY,a.oMr.PERSONALIZED],e===a.oMr.NEVER?[3,4]:s.includes(t)?[4,i({variables:{input:{settingState:t,channelID:l}}})]:[3,2];case 1:return r.sent(),[3,3];case 2:o(),r.label=3;case 3:return[3,6];case 4:return o(),[4,i({variables:{input:{settingState:t,channelID:l}}})];case 5:r.sent(),r.label=6;case 6:return(0,c.oR)(v(),{limit:10,sortOrder:n,followedFilters:[a.iGk.ALWAYS]},(function(e){var n,i;if(!(null===(i=null===(n=null==e?void 0:e.currentUser)||void 0===n?void 0:n.notificationEnrollmentFollows)||void 0===i?void 0:i.edges))return e;var o=e.currentUser.notificationEnrollmentFollows.edges.findIndex((function(e){var n;return(null===(n=null==e?void 0:e.node)||void 0===n?void 0:n.id)===l}));return-1===o?e:d()(e,(function(e){return e.currentUser.notificationEnrollmentFollows.edges[o].notificationSettings.followsSettingState}),(function(){return t}))})),[2]}}))}))}}}({selectedChannelSortOrder:p}).handleLiveNotificationDropdownClick;return{followedChannels:l,setNotificationSettings:b,getSettingEnabledState:t,handleSettingToggle:y,fetchMoreFollowers:i,groupedNotificationSettings:n,getSettingData:g,getIsIndividualSettingDisabled:f,updateChannelSortOrder:N,selectedChannelSortOrder:p,handleLiveNotificationDropdownClick:D}},h=(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)(h)},b=function(e){var n=e.children,i=p();return(0,t.jsx)(h.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”]}},169455:function(e,n,i){“use strict”;i.d(n,{DK:function(){return l},Ec:function(){return r},KJ:function(){return s},Mq:function(){return a},dq:function(){return c},gW:function(){return u},go:function(){return v},hk:function(){return g},kW:function(){return d},tx:function(){return m},wz:function(){return S}});var t=i(162434),o=i(661988),a=function(e){switch(e){case”following_category”:return(0,o.So)(“Followed Channels”,”NotificationSettingPortalCategoryView”);case”social_category”:return(0,o.So)(“Social”,”NotificationSettingPortalCategoryView”);case”marketing_category”:return(0,o.So)(“Marketing”,”NotificationSettingPortalCategoryView”);case”creator_category”:return(0,o.So)(“Streamers”,”NotificationSettingPortalCategoryView”);case”moderation_category”:return(0,o.So)(“Moderators”,”NotificationSettingPortalCategoryView”);case”developer_category”:return(0,o.So)(“Developers”,”NotificationSettingPortalCategoryView”);default:return”NA”}},l=function(e){switch(e){case”following_category”:return(0,o.So)(“New content and updates from followed channels”,”NotificationSettingPortalCategoryView”);case”social_category”:return(0,o.So)(“Chat mentions, followers, stories, and more”,”NotificationSettingPortalCategoryView”);case”marketing_category”:return(0,o.So)(“Recommended content, promotions, and featured picks”,”NotificationSettingPortalCategoryView”);case”creator_category”:return(0,o.So)(“Stream activity and events”,”NotificationSettingPortalCategoryView”);case”moderation_category”:return(0,o.So)(“Moderator alerts by channel”,”NotificationSettingPortalCategoryView”);case”developer_category”:return(0,o.So)(“Developer tooling and product updates”,”NotificationSettingPortalCategoryView”);default:return”NA”}},r=function(e){switch(e){case”onsite”:return(0,o.So)(“On Twitch”,”NotificationSettingsGlobal”);case”push”:return(0,o.So)(“Mobile”,”NotificationSettingsGlobal”);case”email”:return(0,o.So)(“Email”,”NotificationSettingsGlobal”);case”smart”:return(0,o.So)(“Smart Notifications”,”NotificationSettingsGlobal”);case”desktop”:return(0,o.So)(“Desktop Notifications”,”NotificationSettingsGlobal”);default:return”NA”}},s=function(e){switch(e){case”onsite”:return(0,o.So)(“All browser notifications for this group”,”NotificationSettingsGlobal”);case”push”:return(0,o.So)(“All mobile notifications for this group”,”NotificationSettingsGlobal”);case”email”:return(0,o.So)(“All email notifications for this group”,”NotificationSettingsGlobal”);case”smart”:return(0,o.So)(“Receive notifications depending on where you’re active”,”NotificationSettingsGlobal”);default:return”NA”}},d=function(e){switch(e){case”LIVE”:return(0,o.So)(“Live Now”,”NotificationSettingsGlobal”);case”CATCHUP”:return(0,o.So)(“Catch Up”,”NotificationSettingsGlobal”);case”SUBSCRIPTIONS”:case”RECOMMENDEDCONTENT”:return(0,o.So)(“Updates for Subscribers”,”NotificationSettingsGlobal”);case”CHAT”:return(0,o.So)(“Chat Mentions”,”NotificationSettingsGlobal”);case”CLIPS”:return(0,o.So)(“Clips You Created”,”NotificationSettingsGlobal”);case”GIFTSUBSCRIPTIONS”:return(0,o.So)(“Gift Subscriptions”,”NotificationSettingsGlobal”);case”FOLLOWERADD”:return(0,o.So)(“New Follower”,”NotificationSettingsGlobal”);case”STORIESREACTION”:return(0,o.So)(“Stories Reactions”,”NotificationSettingsGlobal”);case”CLIPSHAREDINSTORY”:return(0,o.So)(“Clips Shared To Stories”,”NotificationSettingsGlobal”);case”MENTIONEDINSTORY”:return(0,o.So)(“Stories Mentions”,”NotificationSettingsGlobal”);case”GUESTSTAR”:return(0,o.So)(“Stream Together Invites”,”NotificationSettingsGlobal”);case”PRODUCTUPDATES”:return(0,o.So)(“Product Updates”,”NotificationSettingsGlobal”);case”USERENDOFYEAR”:return(0,o.So)(“End of Year Recap”,”NotificationSettingsGlobal”);case”PROMOTIONS”:return(0,o.So)(“Promotions”,”NotificationSettingsGlobal”);case”DROPSANDQUESTS”:return(0,o.So)(“Drops & Quests”,”NotificationSettingsGlobal”);case”BADGESANDEMOTES”:return(0,o.So)(“Badges & Emotes”,”NotificationSettingsGlobal”);case”RESEARCHSTUDIES”:return(0,o.So)(“Research Studies”,”NotificationSettingsGlobal”);case”STREAMSTATSTOPCLIPS”:return(0,o.So)(“Clips Of Your Channel”,”NotificationSettingsGlobal”);case”CREATORUPDATES”:return(0,o.So)(“Channel Updates”,”NotificationSettingsGlobal”);case”STREAMSTATS”:return(0,o.So)(“Stream Summary”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPS”:return(0,o.So)(“Sponsorships from Twitch”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPSFROMTHIRDPARTIES”:return(0,o.So)(“Sponsorships from Third Parties”,”NotificationSettingsGlobal”);case”MODERATOR”:return(0,o.So)(“Moderators”,”NotificationSettingsGlobal”);case”3PDEVELOPERS”:return(0,o.So)(“Developer Console”,”NotificationSettingsGlobal”);case”DEVELOPERPRODUCTUPDATES”:return(0,o.So)(“Developer Product Updates”,”NotificationSettingsGlobal”);default:return”NA”}},u=function(e){switch(e){case”LIVE”:return(0,o.So)(“When a channel you follow goes live or an exciting moment in the stream is happening.”,”NotificationSettingsGlobal”);case”CATCHUP”:return(0,o.So)(“Never miss a moment – popular VODs, clips, and Stories from streamers you follow.”,”NotificationSettingsGlobal”);case”SUBSCRIPTIONS”:return(0,o.So)(“When there are updates about channels you are subscribed to.”,”NotificationSettingsGlobal”);case”CHAT”:return(0,o.So)(“When someone mentions you in chat.”,”NotificationSettingsGlobal”);case”CLIPS”:return(0,o.So)(“When a clip you made becomes popular.”,”NotificationSettingsGlobal”);case”GIFTSUBSCRIPTIONS”:return(0,o.So)(“When you are gifted a subscription.”,”NotificationSettingsGlobal”);case”FOLLOWERADD”:return(0,o.So)(“When another Twitch user follows you.”,”NotificationSettingsGlobal”);case”STORIESREACTION”:return(0,o.So)(“When someone reacts to your story.”,”NotificationSettingsGlobal”);case”CLIPSHAREDINSTORY”:return(0,o.So)(“When someone shares a clip of your channel to their Stories.”,”NotificationSettingsGlobal”);case”MENTIONEDINSTORY”:return(0,o.So)(“When someone mentions you in their Stories.”,”NotificationSettingsGlobal”);case”GUESTSTAR”:return(0,o.So)(“When someone invites you on their stream as a guest.”,”NotificationSettingsGlobal”);case”RECOMMENDEDCONTENT”:return(0,o.So)(“Recommended channels, clips, categories that you might like to watch.”,”NotificationSettingsGlobal”);case”PRODUCTUPDATES”:return(0,o.So)(“New products and updates made to Twitch.”,”NotificationSettingsGlobal”);case”USERENDOFYEAR”:return(0,o.So)(“Your personalized end of year recap as a Twitch Viewer.”,”NotificationSettingsGlobal”);case”PROMOTIONS”:return(0,o.So)(“When there are discounts & promotions running on Twitch.”,”NotificationSettingsGlobal”);case”DROPSANDQUESTS”:return(0,o.So)(“When there are Drop & Quest opportunities similar to your interests.”,”NotificationSettingsGlobal”);case”BADGESANDEMOTES”:return(0,o.So)(“When there are special offers for Badges & Emotes.”,”NotificationSettingsGlobal”);case”RESEARCHSTUDIES”:return(0,o.So)(“Invitations to share your experiences and feedback with Twitch.”,”NotificationSettingsGlobal”);case”STREAMSTATSTOPCLIPS”:return(0,o.So)(“When there are new clips created from your stream.”,”NotificationSettingsGlobal”);case”CREATORUPDATES”:return(0,o.So)(“New products, features, and other updates important for you as a streamer.”,”NotificationSettingsGlobal”);case”STREAMSTATS”:return(0,o.So)(“When new analytics are available for your recent broadcasts or channel.”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPS”:return(0,o.So)(“When there are sponsorships campaigns offered by Twitch.”,”NotificationSettingsGlobal”);case”CREATORSPONSORSHIPSFROMTHIRDPARTIES”:return(0,o.So)(“When there are sponsorships campaigns from our third party partners.”,”NotificationSettingsGlobal”);case”MODERATOR”:return(0,o.So)(“When a channel you moderate requires your attention.”,”NotificationSettingsGlobal”);case”3PDEVELOPERS”:return(0,o.So)(“When there is news related to company management, game approvals, and other console related communications.”,”NotificationSettingsGlobal”);case”DEVELOPERPRODUCTUPDATES”:return(0,o.So)(“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”}},c=function(){var e=t.Ii.getPlatform();return”ios”===e||”web”===e},f=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},m=function(e,n,i){var t=i(n),o=f(e);if(!t)return o;var a=f(t);return"all"===a?o:"off"===o?"off":a},g=function(e,n){return e.findIndex((function(e){return e.category===n}))},S=function(e,n,i){return e[n].platforms.findIndex((function(e){return e.platformName===i}))}},219272:function(e,n,i){"use strict";i.d(n,{Bj:function(){return s},aI:function(){return r},eh:function(){return l}});var t=i(331635),o=i(661988),a=i(53961);function l(e){var n=r();return null===n?e:(0,t.__assign)((0,t.__assign)({},e),n)}function r(){var e=o.x2.router.state.location.state;return e&&"search"===e.medium?(0,t.__assign)((0,t.__assign)({},s()),{medium:e.medium,content:e.content}):null}function s(){var e,n=o.x2.router.state.location.state;return(e={})[a.I6]=n&&n[a.I6],e[a.oK]=n&&n[a.oK],e[a.f7]=n&&n[a.f7],e.previous_search_query_id=n&&n.previous_search_query_id,e}},304440:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FollowButton_FollowEvent_User"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPartner"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"primaryColorHex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},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},461368:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Core_Services_Spade_Video"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcastType"},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},659468:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FollowButton_FollowUser"},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:"disableNotifications"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"followButtonFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},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(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},516823:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FollowButton_UnfollowUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UnfollowUserInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unfollowUser"},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:"disableNotifications"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],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},82706:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FollowButton_UserQueryFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},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:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"followButtonFragment"},directives:[]}]}}]}}]},o={};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)}))),e.exports=t},693370:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FollowButton_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:"FragmentSpread",name:{kind:"Name",value:"FollowButton_UserQueryFragment"},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(82706).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},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){var n={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:"FollowEdgeNotificationSettingsFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChannelNotificationSettings"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followsSettingState"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"storiesSettingState"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"settingState"},arguments:[],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:[]}]}}]}}]}}]}}]};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}}]);