PageSourceSearch

https://www.kpop-radar.com/_next/static/chunks/2325-6b8e4efd0c598ec2.js

js kpop-radar.com collected 2026-10-05 19:41:29 UTC 10,536 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2325],{37572:function(e,t,n){n.d(t,{Lg:function(){return s},UO:function(){return o},gt:function(){return a},oQ:function(){return l},s2:function(){return i},y5:function(){return u}});var r=n(87950);let o=async e=>{await r._W.post("auth/login",{json:e})},a=async(e,t)=>(await r._W.post("auth/register",{json:e}),!!t),s=async e=>{await r._W.post("auth/verify-email",{json:e}),await o({email:e.email,password:e.password})},i=async e=>{await r._W.post("auth/forgot-password",{json:e})},l=async e=>{await r._W.post("auth/reset-password",{json:e})},u=async()=>{await r._W.delete("auth/logout")}},63698:function(e,t,n){n.d(t,{Uq:function(){return s},d4:function(){return a},kX:function(){return l},pj:function(){return i}});var r=n(87950),o=n(37572);let a=async()=>{try{return(await r.Wd.get("user/me").json()).data}catch(n){var e,t;return console.error("[ERROR] getUserSessionAPI Error:",{message:n instanceof Error?n.message:"Unknown error",status:(null==n?void 0:null===(e=n.response)||void 0===e?void 0:e.status)||"No status",url:(null==n?void 0:null===(t=n.response)||void 0===t?void 0:t.url)||"No URL"}),await (0,o.y5)(),null}},s=async e=>{await r.Wd.post("user/info",{json:e})},i=async e=>{await r.Wd.patch("user/reset-password",{json:e})},l=async()=>{await r.Wd.delete("user")}},17955:function(e,t,n){n.d(t,{r:function(){return a}});var r=n(52274),o=n(63698);let a=(0,r.C)({queryKey:["userSession"],queryFn:()=>(0,o.d4)()})},12381:function(e,t,n){n.d(t,{d:function(){return l},z:function(){return u}});var r=n(57437),o=n(2265),a=n(37053),s=n(90535),i=n(93448);let l=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap disabled:text-neutral-gray-500 rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:bg-neutral-gray-200 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",custom:""},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",custom:""}},defaultVariants:{variant:"default",size:"default"}}),u=o.forwardRef((e,t)=>{let{className:n,variant:o,size:s,asChild:u=!1,...c}=e,d=u?a.g7:"button";return(0,r.jsx)(d,{className:(0,i.cn)(l({variant:o,size:s,className:n})),ref:t,...c})});u.displayName="Button"},98395:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(57437),o=n(38706),a=n(93448);let s=e=>{let{className:t,...n}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:(0,a.cn)("block",t),...n,children:[(0,r.jsx)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z",fill:"white"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8299 16.1823C23.8299 15.615 23.779 15.0695 23.6845 14.5459H16.1499V17.6405H20.4554C20.2699 18.6405 19.7063 19.4877 18.859 20.055V22.0623H21.4445C22.9572 20.6695 23.8299 18.6186 23.8299 16.1823Z",fill:"#4285F4"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1496 23.9995C18.3096 23.9995 20.1205 23.2832 21.4442 22.0614L18.8587 20.0541C18.1423 20.5341 17.226 20.8177 16.1496 20.8177C14.066 20.8177 12.3023 19.4104 11.6732 17.5195H9.00049V19.5923C10.3169 22.2068 13.0223 23.9995 16.1496 23.9995Z",fill:"#34A853"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6735 17.52C11.5135 17.04 11.4226 16.5272 11.4226 16C11.4226 15.4727 11.5135 14.96 11.6735 14.48V12.4072H9.00081C8.45899 13.4872 8.1499 14.709 8.1499 16C8.1499 17.2909 8.45899 18.5127 9.00081 19.5927L11.6735 17.52Z",fill:"#FBBC05"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1496 11.1818C17.3241 11.1818 18.3787 11.5855 19.2078 12.3782L21.5023 10.0836C20.1169 8.79273 18.306 8 16.1496 8C13.0223 8 10.3169 9.79273 9.00049 12.4073L11.6732 14.48C12.3023 12.5891 14.066 11.1818 16.1496 11.1818Z",fill:"#EA4335"})]})};var i=n(12381),l=e=>{let t=(0,o.T_)("dashboard"),{title:n=t("landingAuthLogin_google"),state:a,disabled:l}=e;return(0,r.jsxs)(i.z,{type:"button",className:"h-14 w-full rounded-xl text-base font-medium [&_svg]:size-8",variant:"outline",onClick:()=>{let e=new URLSearchParams({redirect_uri:"".concat("https://s.kpop-radar.com","/api/auth/callback/google"),client_id:"".concat("574648405508-edod58cf23f3
1chianl28e9bb7behv6fa.apps.googleusercontent.com"),access_type:"offline",response_type:"code",scope:"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",state:btoa(JSON.stringify(a)),auto_select:"true"}).toString();window.location.href="".concat("https://accounts.google.com/o/oauth2/v2/auth","?").concat(e)},disabled:l,children:[(0,r.jsx)(s,{}),n]})}},40279:function(e,t,n){n.d(t,{I:function(){return s}});var r=n(57437),o=n(2265),a=n(93448);let s=o.forwardRef((e,t)=>{let{className:n,type:o,error:s,errorMessage:i,errorClassName:l,captionElement:u,startAdornment:c,endAdornment:d,...f}=e;return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:"relative",children:[c&&c,(0,r.jsx)("input",{type:o,className:(0,a.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n,s&&"border-blip-primary focus-visible:ring-blip-primary"),ref:t,...f}),d&&d]}),(s||i||u)&&(0,r.jsxs)("div",{className:(0,a.cn)("flex gap-1 overflow-hidden px-5 text-xs",l),children:[s&&i&&(0,r.jsx)("p",{className:"mt-1 tracking-[-0.0075rem] text-blip-primary",children:i}),u&&(0,r.jsx)("div",{className:"ml-auto mt-1",children:u})]})]})});s.displayName="Input"},74215:function(e,t,n){n.d(t,{W:function(){return c}});var r=n(57437),o=n(2265),a=n(42208),s=n(87769),i=n(93448),l=n(12381),u=n(40279);let c=o.forwardRef((e,t)=>{let{className:n,btnClassName:c,...d}=e,[f,p]=o.useState(!1);return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.I,{type:f?"text":"password",className:(0,i.cn)("hide-password-toggle pr-10",n),ref:t,endAdornment:(0,r.jsx)(l.z,{type:"button",variant:"ghost",className:(0,i.cn)("absolute right-0 top-0 h-full px-5 py-2 hover:bg-transparent",c),onClick:()=>p(e=>!e),children:f?(0,r.jsx)(a.Z,{size:40,className:"text-[#9FA8B2]","aria-hidden":"true"}):(0,r.jsx)(s.Z,{className:"text-[#9FA8B2]","aria-hidden":"true"})}),...d}),(0,r.jsx)("style",{children:"\n					.hide-password-toggle::-ms-reveal,\n					.hide-password-toggle::-ms-clear {\n						visibility: hidden;\n						pointer-events: none;\n						display: none;\n					}\n				"})]})});c.displayName="PasswordInput"},87950:function(e,t,n){n.d(t,{Wd:function(){return s},_W:function(){return a},IH:function(){return i}});var r=n(25966);n(83079);var o=n(12119);(0,o.$)("b76e740d7a3d8e27961b3162f84b32eecfd666a7"),(0,o.$)("2014016e44ec0b68484d90bdf1dc482c9b1c0334"),r.ZP.create({headers:{"Content-Type":"application/json"},timeout:5e4,retry:1});let a=r.ZP.create({prefixUrl:"".concat("https://www.kpop-radar.com","/v1"),headers:{"Content-Type":"application/json"},timeout:5e4,retry:1,credentials:"include",hooks:{beforeRequest:[async e=>{}]}}),s=a.extend({hooks:{beforeRequest:[async e=>{}]}}),i=a.extend({})},33476:function(e,t,n){n.d(t,{UserSessionClientProvider:function(){return x},R:function(){return j}});var r=n(57437),o=n(2265),a=n(37572),s=n(17955);n(63698),n(99027);let i=(e,t)=>{let n=e.split("?")[0];if(t.endsWith("/:path*")){let e=t.replace("/:path*","");return n===e||n.startsWith("".concat(e,"/"))}return n===t},l=(e,t)=>t.some(t=>i(e,t)),u=["/","/contact","/notice/:path*","/faq","/insight/:path*","/callback/:path*","/payment/:path*","/vip/:path*","/privacy-policy","/terms-of-use"],c=["/login","/signup","/find-password/:path*"];var d=n(90808);let f=(e,t)=>(0,d.M)()(n=>({user:null!=e?e:null,setUser:e=>n(t=>({...t,user:e})),resetUser:()=>n({user:null}),refetch:t||(()=>Promise.reject(Error("refetch 함수가 초기화되지 않았습니다")))}));var p=n(71632),h=n(29827),g=n(21770),v=n(38706),m=n(99376),b=n(93772),y=n(97094);let w=o.createContext(void 0),x=e=>{let{children:t,defaultSession:n}=e,i=(0,m.usePathname)(),{data:d,refetch:h,isFetching:g,isSuccess:v}=(0,p.useQuery)({...s.r,enabled:!!n}),b=o.useMemo(()=>f(n,h),[n,h]),y=o.useCallback(async()=>{try{let e=await b.getState().refetch(),t=(null==e?void 0:e.data)||null;return b.getState().setUser(t),t}catch(e){return console.error(e),await (0,a.y5)(),null}},[b]),x=o.useCallback(async()=>{n&&await y()&&(window.location.href="/dashboard")},[y,n]),j=o.useCallback(async()=>{try{let e=await y(),t=!!((null==e?void 0:e.name)&&(null==e?void 0:e.job)&&(null==e?void 0:e.company)),n="/onboarding"===i;t||n||(window.location.href="/onboarding")}catch(e){console.error(e),window.location.href="/login"}},[i,y]);return o.useEffect(()=>{let e=l(i,c),t=l(i,u);e||t?e&&x():j()},[x,j,i]),o.useEffect(()=>{d&&!g&&v&&b.getState().setUser(d)},[d,g,v,b]),(0,r.jsx)(w.Provider,{value:b,children:t})},j=()=>{var e;let t=(0,m.usePathname)(),n=(0,v.T_)("dashboard"),r=o.useContext(w),s=(0,h.useQueryClient)();if(!r)throw Error("useZustandSession must be used within UserSessionProvider");let i=(0,y.oR)(r,e=>null==e?void 0:e.user),d=(0,y.oR)(r,e=>e.setUser),f=o.useCallback(e=>{"function"==typeof e?d(e(r.getState().user)):d(e)},[r,d]),p=(0,y.oR)(r,e=>e.resetUser),x=(0,y.oR)(r,e=>e.refetch),j=o.useCallback(async e=>{try{let t=await x(e),n=(null==t?void 0:t.data)||null;return f(n),t}catch(e){throw console.error("세션 갱신 실패:",e),e}},[x,f]),C=(0,g.useMutation)({mutationKey:["logout"],mutationFn:a.y5,onSuccess:()=>{let e=l(t,u),r=l(t,c);p(),b.Am.success(n("authToastLogout_success")),s.clear(),e||r||(window.location.href="/login")},onError:()=>{b.Am.error(n("authToastLogout_failed"))}});return{isFree:(null==i?void 0:null===(e=i.plan)||void 0===e?void 0:e.id)===1,user:i,setUser:f,resetUser:p,refetch:j,logoutMutate:C}}}}]);

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.