1import{j as e,i as M}from"./CDyzJJav.js";import{u as _,m as g,aK as m,as as x,a4 as f,y as h,aL as j,a7 as c,f as S,p as v,aM as P,aN as w,at as C,Z as I,B as N}from"./KHSST7ba.js";import{u as R}from"./BnCLxioH.js";import{W as T,u as B,B as b,I as k,N as A}from"./B1_f42vZ.js";import"./Dcqc4hOD.js";import"./BXoiEaxN.js";import"./DnT7C5M6.js";import"./UHi_-Dcr.js";import"./DjNX3CT7.js";import"./DR-iWxaL.js";import"./VVznPHNl.js";import"./BJ9p-46o.js";import"./BhrR25Yv.js";const ee=()=>{const t=_(),n=g(p=>p.modal.modalParams||{}),{userId:o}=n,{data:s}=R(o,{enabled:o!==void 0&&!Number.isNaN(o)}),{channel:i}=m(s),{profileRingCollection:l}=m(i),{profileRingSummary:r,newProfileRingSummary:a}=m(l),{profileRingName:u}=m(r),d=()=>{t(f())};return e.jsxs(x,{onClose:d,style:{maxWidth:"375px",width:"100%"},children:[e.jsx(x.Header,{mainTitle:""}),e.jsx(x.Body,{children:e.jsxs(T,{align:"center",justify:"center",children:[e.jsx(W,{profileRingName:u,...a}),e.jsx(D,{...a})]})})]})},W=({profileRingName:t,newProfileRingCount:n,...o})=>{const{string:s}=h(),l=((r,a)=>a>1?S(s.collection_new_ring_added_extra,{OOOO:r,XXXX:String(a-1)}):v(s.collection_new_ring_added,"OOOO",r))(t,n);return e.jsxs(j,{align:"center",justify:"center",gap:"m",children:[e.jsx(U,{profileRingName:t,newProfileRingCount:n}),e.jsx(X,{profileRingName:t,...o}),e.jsx(c,{value:l,variant:"ms400",color:"primary",center:!0})]})},U=({profileRingName:t,newProfileRingCount:n})=>{const{string:o}=h();return e.jsxs(j,{align:"center",justify:"center",gap:"xs",children:[e.jsx(c,{value:o.collection_new_ring,variant:"ms700",color:"warning"}),e.jsxs(j,{align:"center",children:[e.jsx(c,{value:t,variant:"l700",color:"primary"}),e.jsx(c,{value:n>1?v(o.collection_collect_complete_extra,"OOOO",String(n-1)):o.collection_collect_complete,variant:"l400",color:"primary"})]})]})},X=({type:t,url:n,profileRingName:o})=>{const s=g(i=>i.auth.userInfo.profile_url);return e.jsxs(k,{children:[e.jsx(A,{children:t==="IMG"?e.jsx("img",{src:n,alt:o}):e.jsx(P,{json:n,config:{loop:!0}})}),e.jsx(w,{size:"xxl",src:s,alt:"User"})]})},D=({id:t,newProfileRingCount:n})=>{const o=_(),{string:s}=h(),i=M(),l=n>1,r=g(O=>O.modal.modalParams||{}),{userId:a}=r,{mutate:u}=B(),d=()=>{o(I({openModalType:"collection",modalParams:r}))},p=()=>{u({profileRingId:t,activate:!0},{onSuccess:()=>{i.invalidateQueries({queryKey:N.channel(a)}),o(f())}})};return e.jsx(b,{align:"center",justify:"center",children:l?e.jsx(y,{title:s.collection_check_my_collection,onClick:d}):e.jsxs(e.Fragment,{children:[e.jsx(y,{title:s.common_use_now,onClick:p}),e.jsx(E,{title:s.collection_check_my_collection,onClick:d})]})})},y=({title:t,onClick:n})=>e.jsx(C,{type:"button",color:"primary",fullWidth:!0,title:t,onClick:n,children:e.jsx(c,{value:t,variant:"ms600"})}),E=({title:t,onClick:n})=>e.jsx("button",{type:"button",title:t,onClick:n,children:e.jsx(c,{value:t,variant:"s500",color:"secondary"})});export{ee as default}; 2//# sourceMappingURL=43ARgx7c.js.map
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.