1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2041],{765230:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/artists/[slug]/notifications",function(){return t(352016)}])},352016:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i.C}});var i=t(110462)},964180:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var i=t(552322);t(895213);var r=t(306281),s=t(202784),o=t(200112),a=t(406457),l=t(720295),c=t(481108),d=t(661568),u=t(961008),h=t(225992),f=t(933309),x=t(819625),g=t(760493),m=t(460620),j=t(293575),p=t(378785),y=t(175111),b=t(46791),S=t(147643),w=t(454300),C=t(456832),v=t(81396),$=t(147752),Z=t(74632),A=t(994330),I=t(140773);function _(e){let{loading:n,user:t}=(0,a.Z)(),{setPending:_,isPending:G,organizationName:T}=(0,Z.i)(),{data:P,error:N,isLoadingInitial:H}=(0,l.Z)(),{children:W,showsPendingBanner:z=!1,allowsScreenWhenSellerIsPendingApproval:B}=e,U=(0,A.Z)(),k=(0,p.Z)(),E=(0,u.Z)(),O=()=>{var n;E(),null===(n=e.onPressOpenAuth)||void 0===n||n.call(e)};if(n||H)return(0,i.jsx)(r.Z,{error:N,children:"Signing in..."});if(!c.n.hasOnboarded(P))return e.customWelcomeComponent?e.customWelcomeComponent({openAuth:O}):(0,i.jsx)(h.x,{flex:1,alignItems:"center",justifyContent:"center",px:"$3",children:(0,i.jsx)(h.x,{p:["$3","$4"],width:400,maxWidth:"100%",borderRadius:"$4",children:(0,i.jsxs)(m.G,{from:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{type:"timing",delay:100,duration:1200,easing:j.Easing.out(j.Easing.quad)},children:[(0,i.jsxs)($.x,{textAlign:"center",fontWeight:"500",fontSize:["$6","$5","$6"],children:["Welcome to ",f.Z]}),(0,i.jsx)(g.Z,{y:["$4"]}),(0,i.jsx)(h.x,{alignItems:"center",gap:"$3",children:(0,i.jsxs)(m.G,{from:{translateY:0},animate:{translateY:-5},transition:{loop:!0,type:"timing",easing:j.Easing.linear,duration:1200},style:{gap:16},children:[(0,i.jsx)(x.Z,{onPress:O,children:"Log In or Sign Up"}),t&&(0,i.jsx)(v.Z,{})]})})]})})});if(c.n.isBuyer(P)){if(!k.data)return(0,i.jsx)(r.Z,{error:k.error});if(0===k.data.length)return G&&T?(0,i.jsx)(y.G,{grow:!0,children:(0,i.jsx)(b.X,{centerContent:!0,children:(0,i.jsxs)(y.G,{gap:"$3",p:"$3",w:"100%",maxWidth:700,als:"center",children:[(0,i.jsxs)(S.H1,{textAlign:"center",children:["Welcome to ",f.Z,"."]}),(0,i.jsx)($.x,{textAlign:"center",children:"Thank you for signing up! Your organization (".concat(T,") already exists in the system. A ").concat(f.Z," representative will reach out shortly to get your account approved.")}),(0,i.jsxs)(w.z,{themeInverse:!0,accessibilityLabel:"Contact Us",als:"center",onPress:()=>{U.showNewMessage("Hi, my organization (".concat(T,") already exists in the system, please help me with this."))},children:[(0,i.jsx)(w.z.Icon,{icon:I.t}),(0,i.jsx)(w.z.Text,{children:"Contact Us"})]}),(0,i.jsx)(y.G,{ai:"center",children:(0,i.jsx)(v.Z,{theme:"red"})})]})})}):(0,i.jsx)(y.G,{grow:!0,children:(0,i.jsx)(b.X,{centerContent:!0,children:(0,i.jsxs)(y.G,{gap:"$3",p:"$3",w:"100%",maxWidth:700,als:"center",children:[(0,i.jsxs)(S.H1,{textAlign:"center",children:["Welcome to ",f.Z,"."]}),(0,i.jsx)($.x,{textAlign:"center",children:"Let's get started."}),(0,i.jsxs)(C.TS,{children:[(0,i.jsx)(C.TS.Trigger,{children:(0,i.jsx)(w.z,{brand:!0,als:"center",accessibilityLabel:"Continue",children:(0,i.jsx)(w.z.Text,{children:"Continue"})})}),(0,i.jsx)(C.TS.Content,{onDidCreateOrganization:e=>{}})]}),(0,i.jsx)(y.G,{ai:"center",children:(0,i.jsx)(v.Z,{theme:"red"})})]})})})}let R=B||c.n.isAdmin(P)?s.Fragment:d.L;return(0,i.jsx)(o.G,{sx:{flexGrow:1,flexBasis:0},children:(0,i.jsx)(R,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.G,{sx:{flex:1},children:"function"==typeof W?W(P):W})})})})}},135725:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});let i=(0,t(152673).B)("\n fragment UserNotificationsForArtist on Artist {\n id\n name\n slug\n profileImage {\n publicCloudinaryId\n }\n members {\n id\n notificationSettings\n notificationChannels\n __typename\n }\n myMembership {\n id\n notificationChannels\n notificationSettings\n __typename\n }\n }\n")},110462:function(e,n,t){"use strict";t.d(n,{C:function(){return S}});var i=t(552322),r=t(964180);let{useParam:s}=(0,t(301036).X)();var o=t(152673),a=t(652525),l=t(497096),c=t(341175),d=t(341732),u=t
1(175111),h=t(147643),f=t(755338),x=t(306281),g=t(410164),m=t(541251),j=t(135725),p=t(202784),y=t(103757),b=t(784560);function S(){return(0,i.jsx)(r.Z,{allowsScreenWhenSellerIsPendingApproval:!0,showsPendingBanner:!1,children:(0,i.jsx)(C,{})})}let w=(0,o.B)("\n query ArtistBySlug($artistSlug: String!) {\n artistBySlug(slug: $artistSlug) {\n id\n ...UserNotificationsForArtist\n }\n }\n");function C(){var e;let{artistSlug:n}=function(){let[e="",n]=s("slug",{initial:void 0,parse:e=>null==e?void 0:e.toString()});return{artistSlug:e,setArtistSlug:n}}(),t=(0,a.aM)(w,{variables:{artistSlug:n},pause:!n,requestPolicy:"cache-and-network"});return t.data?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l._,{error:t.error}),!!(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.artistBySlug)&&(0,i.jsx)(c.X,{children:(0,i.jsx)($,{artist:t.data.artistBySlug})})]}):(0,i.jsx)(x.Z,{error:t.error})}let v=(0,d.styled)(u.G,{p:"$3",borderRadius:"$3",bw:2,boc:"$borderColor",bg:"$color2",gap:"$3"}),$=(0,p.memo)(function(e){var n;let t=(0,m.Jc)(j.Z,e.artist),r=t.myMembership,s=(0,a.Db)(b.x),o=new Set(null==r?void 0:r.notificationChannels),l=new Set(null==r?void 0:r.notificationSettings),c=(0,y.V)(async e=>{if(!r)return;let n=new Set(o);n.has(e)?n.delete(e):n.add(e),await s.execute({memberId:r.id,patch:{notificationChannels:Array.from(n)}})}),d=(0,y.V)(async e=>{if(!r)return;let n=new Set(l);n.has(e)?n.delete(e):n.add(e),await s.execute({memberId:r.id,patch:{notificationSettings:Array.from(n)}})});return(0,i.jsxs)(u.G,{width:"100%",maw:700,als:"center",p:"$3",gap:"$3","$group-page-md":{p:"$4"},children:[(0,i.jsxs)(u.G,{children:[(0,i.jsx)(h.H1,{children:"Artist Notifications"}),(0,i.jsx)(f.x,{color:"$color11",children:"Set your preferences for receiving notifications of this artist."})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(g.I.Heading,{children:(0,i.jsxs)(u.G,{fd:"row",ai:"center",grow:!0,gap:"$3",children:[(0,i.jsx)(g.I.HeadingAvatar,{name:t.name,publicCloudinaryId:null===(n=t.profileImage)||void 0===n?void 0:n.publicCloudinaryId}),(0,i.jsxs)(u.G,{grow:!0,children:[(0,i.jsx)(g.I.HeadingTitle,{children:t.name}),(0,i.jsx)(g.I.HeadingDesc,{children:"@".concat(t.slug)})]})]})}),(0,i.jsx)(g.I.UserPreferredChannels,{preferredChannels:o,onCheckedChange:c}),(0,i.jsx)(g.I.ArtistUserNotificationsPreferences,{notifications:l,onCheckedChange:d})]})]})})},784560:function(e,n,t){"use strict";t.d(n,{x:function(){return i}});let i=(0,t(152673).B)("\n mutation UpdateArtistUserNotificationSettings($memberId: String!, $patch: ArtistMemberPatch!) {\n updateArtistUserNotificationSettings: updateArtistMember(id: $memberId, patch: $patch) {\n id\n notificationChannels\n notificationSettings\n user {\n id\n firebaseId\n name\n profileImage {\n publicCloudinaryId\n }\n }\n }\n }\n")},147643:function(e,n,t){"use strict";t.d(n,{H1:function(){return s}});var i=t(552322),r=t(214444);let s=e=>{let{children:n,textAlign:t,fontWeight:s="500"}=e;return(0,i.jsx)(r.H1,{fontFamily:"$body",color:"$color12",fontSize:32,lineHeight:38.4,fontWeight:s,textAlign:t,children:n})}},46791:function(e,n,t){"use strict";t.d(n,{X:function(){return m}});var i=t(552322),r=t(202784),s=t(341732),o=t(185983),a=t(158274);function l(){return null}var c=t(325686),d=t(890390);function u(){return(0,i.jsx)(c.Z,{style:{height:(0,d.Z)()}})}var h=t(33229),f=t(91736);let x=(0,r.createContext)({}),g=(0,r.forwardRef)(function(e,n){let{removeNativeHeaderSpacer:t,refreshControl:r,...s}=e;return(0,i.jsx)(x.Provider,{value:{removeNativeHeaderSpacer:t},children:(0,i.jsxs)(f.K.KeyboardAwareScrollView,{keyboardShouldPersistTaps:"handled",bottomOffset:30,...s,refreshControl:h.Z.select({ios:r}),ref:n,children:[!t&&(0,i.jsx)(u,{}),s.children,(0,i.jsx)(l,{})]})})}),m=(0,s.withStaticProperties)(g,{Refresh:function(e){let{refreshing:n,title:t,onRefresh:l,progressViewOffset:c}=e,u=(0,a.c)((0,s.useThemeName)()),f=(0,d.Z)(),{removeNativeHeaderSpacer:g}=(0,r.useContext)(x);return"web"==h.Z.OS?null:(0,i.jsx)(o.Z,{refreshing:n,onRefresh:l,title:t,tintColor:(0,s.variableToString)(u.color12),titleColor:(0,s.variableToString)(u.color11),enabled:!0,colors:[(0,s.variableToString)(u.color12)],progressViewOffset:null!=c?c:g?.7*f:f})},useScrollRef:()=>(0,r.useRef)(null)})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=765230)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.