PageSourceSearch

https://www.castmenow.co/_next/static/chunks/pages/talent/guide-8c3c7d735b763fc9.js

js castmenow.co collected 2026-09-30 09:22:17 UTC 15,607 bytes, 25 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1083],{89019:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
2 * @license lucide-react v0.438.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 n=(0,r(13289).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},54121:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/talent/guide",function(){return r(36887)}])},53666:function(e,t,r){"use strict";var n=r(52322);r(2784);var l=r(5632);t.Z=()=>{let e=(0,l.useRouter)();return(0,n.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-r from-[#D6DBDC] to-[#FFFFFF] dark:from-[#1e1e1e] dark:to-[#333333]",children:(0,n.jsxs)("div",{className:"text-center p-6 bg-white dark:bg-[#2D2D2D] shadow-md rounded-lg",children:[(0,n.jsx)("p",{className:"text-md text-gray-700 dark:text-gray-300 mb-4",children:"Sign in to access this feature!"}),(0,n.jsx)("button",{onClick:()=>{e.push("/")},className:"px-4 py-2 rounded-md text-white bg-blue-800 hover:bg-gray-200 transition ease-in-out duration-150",children:"Sign In from Homepage"})]})})}},25090:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return u}});var n=r(52322),l=r(2784),a=r(4222),s=r(61335),i=r(43632);let o=(0,s.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),u=l.forwardRef((e,t)=>{let{className:r,variant:l,size:s,asChild:u=!1,...d}=e,c=u?a.g7:"button";return(0,n.jsx)(c,{className:(0,i.cn)(o({variant:l,size:s,className:r})),ref:t,...d})});u.displayName="Button"},56462:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(52322),l=r(2784),a=r(43632);let s=l.forwardRef((e,t)=>{let{className:r,type:l,...s}=e;return(0,n.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});s.displayName="Input"},36887:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(52322),l=r(2784),a=r(41982),s=r(53666),i=r(60074).RJ,o=r(89019),u=r(71434),d=r(25090),c=r(56462),f=r(14804),m=r(25237);let p=r.n(m)()(()=>r.e(1056).then(r.bind(r,1056)),{loadableGenerated:{webpack:()=>[1056]},ssr:!1});function h(){let{userId:e}=(0,a.a)(),t=(0,l.useRef)(null),r=(0,l.useRef)(null),m=(0,l.useRef)(!1),{messages:h,input:b,handleInputChange:y,handleSubmit:x,isLoading:g,append:v}=i({api:"/api/auditions/guide",body:{userId:e},onFinish:()=>{setTimeout(()=>{r.current&&r.current.focus()},100)}});return((0,l.useEffect)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[h,g]),(0,l.useEffect)(()=>{m.current||0!==h.length||g||!e||(m.current=!0,v({role:"user",content:"Give me a comprehensive performance summary based on my audition data."}))},[h.length,g,v,e]),e)?(0,n.jsx)("div",{className:"bg-background min-h-screen pt-14 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsx)("h1",{className:"text-2xl font-bold text-gray-800",children:"Guide"})}),(0,n.jsx)("div",{className:"mt-6",children:(0,n.jsx)("div",{className:"bg-white shadow rounded-lg overflow-hidden",children:(0,n.jsxs)("div",{className:"flex flex-col h-[600px]",children:[(0,n.jsx)("div",{className:"px-6 py-4 border-b border-gray-200 bg-gray-50/50",children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(f.FcZ,{className:"h-5 w-5 text-blue-500"}),(0,n.jsx)("p",{className:"text-sm text-gray-700",children:"Get personalized guidance and insights based on your audition performance"})]})}),(0,n.jsx)("div",{ref:t,className:"flex-1 overflow-y-auto p-6 bg-gray-50/30",children:(0,n.jsxs)("div",{className:"space-y-4",children:[0!==h.length||g?h.map(e=>(0,n.jsx)("div",{className:"flex ".concat("user"===e.role?"justify-end":"justify-start"),children:(0,n.jsx)("div",{className:"max-w-[80%] rounded-lg px-4 py-3 ".concat("user"===e.role?"bg-blue-600 text-white shadow-md":"bg-white text-gray-900 shadow-md border border-gray-200"),children:"user"===e.role?(0,n.jsx)("p",{className:"text-sm whitespace-pre-wrap leading-relaxed",children:e.content}):(0,n.jsx)(p,{components:{p:e=>{let{node:t,...r}=e;return(0,n.jsx)("p",{className:"mb-3 text-sm text-gray-900 leading-relaxed",...r})},strong:e=>{let{node:t,...r}=e;return(0,n.jsx)("strong",{className:"font-semibold text-gray-900",...r})},ul:e=>{let{node:t,...r}=e;return(0,n.jsx)("ul",{className:"list-disc pl-5 space-y-1 mb-3",...r})},ol:e=>{let{node:t,...r}=e;return(0,n.jsx)("ol",{className:"list-decimal pl-5 space-y-1 mb-3",...r})},li:e=>{let{node:t,...r}=e;return(0,n.jsx)("li",{className:"text-sm text-gray-900 leading-relaxed",...r})},h3:e=>{let{node:t,...r}=e;return(0,n.jsx)("h3",{className:"text-base font-semibold text-gray-900 mt-4 mb-2",...r})},h2:e=>{let{node:t,...r}=e;return(0,n.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mt-4 mb-2",...r})}},children:e.content})})},e.id)):(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-full animate-in fade-in duration-500",children:[(0,n.jsx)(o.Z,{className:"h-8 w-8 animate-spin text-blue-600 mb-3"}),(0,n.jsx)("p",{className:"text-sm text-gray-600",children:"Analyzing your audition data..."})]}),g&&h.length>0&&(0,n.jsx)("div",{className:"flex justify-start",children:(0,n.jsx)("div",{className:"bg-white rounded-lg px-4 py-2 shadow-md border border-gray-200",children:(0,n.jsx)(o.Z,{className:"h-4 w-4 animate-spin text-gray-600"})})})]})}),(0,n.jsx)("form",{onSubmit:x,className:"px-6 py-4 border-t border-gray-200 bg-white flex-shrink-0",children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.I,{ref:r,value:b,onChange:y,placeholder:"Ask me about your career...",disabled:g,className:"flex-1",autoFocus:!0}),(0,n.jsx)(d.z,{type:"submit",disabled:g||!b.trim(),className:"transition-all duration-200 hover:scale-105 disabled:opacity-50",children:(0,n.jsx)(u.Z,{className:"h-4 w-4"})})]})})]})})})]})}):(0,n.jsx)(s.Z,{})}},72632:function(e,t,r){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return s},default:function(){return i}});let n=r(43219);r(52322),r(2784);let l=n._(r(49617));function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let r=l.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let i=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=i?i().then(a):Promise.resolve(a(()=>null))}):(delete n.webpack,delete n.modules,s(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53142:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(43219)._(r(2784)).default.createContext(null)},49617:function(e,t,r){"use strict";/**
7@copyright (c) 2017-present James Kyle <[email protected]>
8 MIT License
9 Permission is hereby granted, free of charge, to any person obtaining
10a copy of this software and associated documentation files (the
11"Software"), to deal in the Software without restriction, including
12without limitation the rights to use, copy, modify, merge, publish,
13distribute, sublicense, and/or sell copies of the Software, and to
14permit persons to whom the Software is furnished to do so, subject to
15the following conditions:
16 The above copyright notice and this permission notice shall be
17included in all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
25*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(43219)._(r(2784)),l=r(53142),a=[],s=[],i=!1;function o(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function o(){if(!a){let t=new u(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!i){let e=r.webpack?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return o()})}function d(e,t){!function(){o();let e=n.default.useContext(l.LoadableContext);
25e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>o(),d.displayName="LoadableComponent",n.default.forwardRef(d)}(o,e)}function c(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(i=!0,t());c(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},25237:function(e,t,r){e.exports=r(72632)},4222:function(e,t,r){"use strict";r.d(t,{g7:function(){return d}});var n=r(2784),l=r.t(n,2);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var s=r(52322),i=Symbol.for("react.lazy"),o=l[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(u(r)&&"function"==typeof o&&(r=o(r._payload)),n.isValidElement(r)){var s;let e,i;let o=(s=r,(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.ref:(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.props.ref:s.props.ref||s.ref),u=function(e,t){let r={...t};for(let n in t){let l=e[n],a=t[n];/^on[A-Z]/.test(n)?l&&a?r[n]=(...e)=>{let t=a(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...a}:"className"===n&&(r[n]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(u.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(t,o):o),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:l,...a}=e;u(l)&&"function"==typeof o&&(l=o(l._payload));let i=n.Children.toArray(l),d=i.find(f);if(d){let e=d.props.children,l=i.map(t=>
25t!==d?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,s.jsx)(t,{...a,ref:r,children:l})});return r.displayName=`${e}.Slot`,r}("Slot"),c=Symbol("radix.slottable");function f(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},61335:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,l=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(l&&(l+=" "),l+=n);else for(r in t)t[r]&&(l&&(l+=" "),l+=r)}return l}(e))&&(n&&(n+=" "),n+=t);return n},a=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],l=null==i?void 0:i[e];if(null===t)return null;let a=n(t)||n(l);return s[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return l(e,o,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:n,...l}=t;return Object.entries(l).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...u}[t]):({...i,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[5704,9270,2888,9774,179],function(){return e(e.s=54121)}),_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.