PageSourceSearch

https://novacast.ai/_next/static/chunks/6903.e0df1e87dffbb605.js

js novacast.ai collected 2026-10-05 12:21:23 UTC 11,159 bytes, 36 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6903],{65531:function(e,r,a){a.d(r,{Z:function(){return c}});var l=a(20955);/**
2 * @license lucide-react v0.469.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=(...e)=>e.filter((e,r,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===r).join(" ").trim();/**
7 * @license lucide-react v0.469.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.469.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let i=(0,l.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:i="",children:c,iconNode:o,...d},m)=>(0,l.createElement)("svg",{ref:m,...t,width:r,height:r,stroke:e,strokeWidth:s?24*Number(a)/Number(r):a,className:n("lucide",i),...d},[...o.map(([e,r])=>(0,l.createElement)(e,r)),...Array.isArray(c)?c:[c]])),c=(e,r)=>{let a=(0,l.forwardRef)(({className:a,...t},c)=>(0,l.createElement)(i,{ref:c,iconNode:r,className:n(`lucide-${s(e)}`,a),...t}));return a.displayName=`${e}`,a}},27461:function(e,r,a){a.d(r,{Z:function(){return s}});var l=a(65531);/**
17 * @license lucide-react v0.469.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let s=(0,l.Z)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},39199:function(e,r,a){a.d(r,{Z:function(){return s}});var l=a(65531);/**
22 * @license lucide-react v0.469.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let s=(0,l.Z)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},83572:function(e,r,a){var l=a(26705),s=a(20955),n=a(70100);let t={label:"!text-foreground",input:"!text-foreground"},i=(0,s.forwardRef)((e,r)=>{let{preventLeadingSpaces:a=!0,onKeyDown:i,onPaste:c,classNames:o,...d}=e,m=(0,s.useMemo)(()=>d.isInvalid?{...o,label:[t.label,null==o?void 0:o.label].filter(Boolean).join(" "),input:[t.input,null==o?void 0:o.input].filter(Boolean).join(" ")}:o,[d.isInvalid,o]),u=(0,s.useCallback)(e=>{if(a){let r=e.target,a=0===r.selectionStart;" "===e.key&&a&&(console.log("blocked"),e.preventDefault())}i&&i(e)},[a,i]),h=(0,s.useCallback)(e=>{if(a){let r=e.target,a=r.selectionStart||0,l=e.clipboardData.getData("text");if(0===a){let a=l.trimStart();if(l!==a){e.preventDefault(),r.value=a+r.value,r.setSelectionRange(a.length,a.length);let l=new Event("input",{bubbles:!0});r.dispatchEvent(l)}}}c&&c(e)},[a,c]);return(0,l.jsx)(n.Y,{ref:r,onKeyDown:u,onPaste:h,...d,classNames:m})});i.displayName="NovaInput",r.Z=i},26903:function(e,r,a){a.r(r),a.d(r,{default:function(){return k}});var l=a(26705),s=a(20955),n=a(52679),t=a(37948),i=a(61718),c=a(69571),o=a(2913),d=a(29420),m=a(83572),u=a(70782),h=a(71424),x=a(27461),f=a(65531);/**
27 * @license lucide-react v0.469.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */let p=(0,f.Z)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);var g=a(39199);/**
32 * @license lucide-react v0.469.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */let j=(0,f.Z)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),v=(0,f.Z)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),y=(0,f.Z)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);var k=e=>{var r,a;let{isOpen:f,onClose:k,claimRequest:N}
36=e,[b,w]=(0,s.useState)(""),[A,C]=(0,s.useState)(""),[M,E]=(0,s.useState)(!1),S=()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*",r="";for(let a=0;a<12;a++)r+=e.charAt(Math.floor(Math.random()*e.length));C(r)};(0,s.useEffect)(()=>{N&&(w(N.email),S())},[N]);let Z=u.S.useUtils(),q=u.S.admin.confirmClaimRequest.useMutation({onSuccess:()=>{Z.admin.getClaimRequests.invalidate(),h.Am.success("Claim request has been confirmed successfully"),k()},onError:e=>{try{let r=JSON.parse(e.message);if(Array.isArray(r)){let e=r.map(e=>e.message).join("\n");h.Am.error(e)}else h.Am.error(e.message)}catch(r){h.Am.error(e.message)}}}),R=u.S.admin.denyClaimRequest.useMutation({onSuccess:()=>{Z.admin.getClaimRequests.invalidate(),h.Am.success("Claim request has been denied"),k()},onError:e=>{try{let r=JSON.parse(e.message);if(Array.isArray(r)){let e=r.map(e=>e.message).join("\n");h.Am.error(e)}else h.Am.error(e.message)}catch(r){h.Am.error(e.message)}}}),I=async()=>{if(N){E(!0);try{await q.mutateAsync({claimRequestId:N.id,email:b,password:A})}catch(e){console.error("Error confirming claim request:",e)}finally{E(!1)}}},_=async()=>{if(N){E(!0);try{await R.mutateAsync({claimRequestId:N.id,email:N.email})}catch(e){console.error("Error denying claim request:",e)}finally{E(!1)}}};return(0,l.jsx)(n.R,{isOpen:f,onClose:k,size:"lg",children:(0,l.jsxs)(t.A,{children:[(0,l.jsx)(i.k,{className:"flex flex-col gap-1",children:"Confirm Claim Request"}),(0,l.jsx)(c.I,{children:N&&(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(null===(r=N.profile.adminCreation)||void 0===r?void 0:r.claimed)?(0,l.jsx)("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:(0,l.jsx)("p",{className:"text-yellow-800",children:"This profile has already been claimed. No further action is needed."})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Profile Information"}),(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"font-medium",children:"Name:"})," ",N.profile.name]}),N.profile.username&&(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"font-medium",children:"Username:"})," @",N.profile.username]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Social Media"}),N.linkedin&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(x.Z,{className:"w-5 h-5 text-blue-600"}),(0,l.jsx)("span",{className:"font-medium",children:"LinkedIn:"})," ",(0,l.jsx)("a",{href:N.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:N.linkedin})]}),N.instagram&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(p,{className:"w-5 h-5 text-pink-600"}),(0,l.jsx)("span",{className:"font-medium",children:"Instagram:"})," ",(0,l.jsx)("a",{href:N.instagram,target:"_blank",rel:"noopener noreferrer",className:"text-pink-600 hover:underline",children:N.instagram})]}),N.youtube&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(g.Z,{className:"w-5 h-5 text-red-600"}),(0,l.jsx)("span",{className:"font-medium",children:"YouTube:"})," ",(0,l.jsx)("a",{href:N.youtube,target:"_blank",rel:"noopener noreferrer",className:"text-red-600 hover:underline",children:N.youtube})]}),N.facebook&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(j,{className:"w-5 h-5 text-blue-800"}),(0,l.jsx)("span",{className:"font-medium",children:"Facebook:"})," ",(0,l.jsx)("a",{href:N.facebook,target:"_blank",rel:"noopener noreferrer",className:"text-blue-800 hover:underline",children:N.facebook})]}),N.twitter&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(v,{className:"w-5 h-5 text-sky-500"}),(0,l.jsx)("span",{className:"font-medium",children:"Twitter:"})," ",(0,l.jsx)("a",{href:N.twitter,target:"_blank",rel:"noopener noreferrer",className:"text-sky-500 hover:underline",children:N.twitter})]}),N.tiktok&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)(y,{className:"w-5 h-5 text-gray-800"}),(0,l.jsx)("span",{className:"font-medium",children:"TikTok:"})," ",(0,l.jsx)("a",{href:N.tiktok,target:"_blank",rel:"noopener noreferrer",className:"text-gray-800 hover:underline",children:N.tiktok})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Account Details"}),(0,l.jsx)(m.Z,{label:"Email",value:b,onChange:e=>w(e.target.value),placeholder:"Enter email",type:"email"}),(0,l.jsx)(m.Z,{label:"Password",value:A,onChange:e=>C(e.target.value),placeholder:"Enter password",type:"text"})]})]})})}),(0,l.jsxs)(o.R,{children:[(0,l.jsx)(d.A,{color:"danger",variant:"light",onPress:k,children:"Cancel"}),!(null==N?void 0:null===(a=N.profile.adminCreation)||void 0===a?void 0:a.claimed)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.A,{color:"danger",onPress:_,isLoading:M,children:"Deny"}),(0,l.jsx)(d.A,{color:"primary",onPress:I,isLoading:M,children:"Confirm"})]})]})]})})}},70100:function(e,r,a){a.d(r,{Y:function(){return o}});var l=a(53498),s=a(28305),n=a(20955),t=a(28128),i=a(26705),c=(0,t.Gp)((e,r)=>{let{Component:a,label:t,description:c,isClearable:o,startContent:d,endContent:m,labelPlacement:u,hasHelper:h,isOutsideLeft:x,shouldLabelBeOutside:f,errorMessage:p,isInvalid:g,getBaseProps:j,getLabelProps:v,getInputProps:y,getInnerWrapperProps:k,getInputWrapperProps:N,getMainWrapperProps:b,getHelperWrapperProps:w,getDescriptionProps:A,getErrorMessageProps:C,getClearButtonProps:M}=(0,l.G)({...e,ref:r}),E=t?(0,i.jsx)("label",{...v(),children:t}):null,S=(0,n.useMemo)(()=>o?(0,i.jsx)("span",{...M(),children:m||(0,i.jsx)(s.f,{})}):m,[o,M]),Z=(0,n.useMemo)(()=>h?(0,i.jsx)("div",{...w(),children:g&&p?(0,i.jsx)("div",{...C(),children:p}):c?(0,i.jsx)("div",{...A(),children:c}):null}):null,[h,g,p,c,w,C,A]),q=(0,n.useMemo)(()=>(0,i.jsxs)("div",{...k(),children:[d,(0,i.jsx)("input",{...y()}),S]}),[d,S,y,k]),R=(0,n.useMemo)(()=>f?(0,i.jsxs)("div",{...b(),children:[(0,i.jsxs)("div",{...N(),children:[x?null:E,q]}),Z]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{...N(),children:[E,q]}),Z]}),[u,Z,f,E,q,p,c,b,N,C,A]);
36return(0,i.jsxs)(a,{...j(),children:[x?E:null,R]})});c.displayName="NextUI.Input";var o=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.