1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8686],{49616:function(e,a,r){r.r(a),r.d(a,{ScriptPreferencesModal:function(){return u}});var s=r(57437),n=r(26110),t=r(62869),l=r(26815),i=r(85897),o=r(2265),d=r(62883),c=r(33562);function u(e){let{isOpen:a,onClose:r,onGenerate:u}=e,[m,f]=(0,o.useState)({tone:"professional",duration:15,style:"engaging",complexity:"moderate",userPrompt:""});return(0,s.jsx)(n.Vq,{open:a,onOpenChange:r,children:(0,s.jsxs)(n.cZ,{className:"sm:max-w-[600px] max-h-[90vh] overflow-y-auto",children:[(0,s.jsx)(n.fK,{children:(0,s.jsx)(n.$N,{className:"text-2xl font-bold bg-gradient-to-r from-primary to-indigo-600 bg-clip-text text-transparent",children:"Script Preferences"})}),(0,s.jsxs)("div",{className:"space-y-6 py-4",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(l._,{className:"text-base font-semibold",children:"Presentation Tone"}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-4",children:[{value:"professional",label:"Professional",description:"Formal and business-oriented tone"},{value:"casual",label:"Casual",description:"Relaxed and conversational tone"},{value:"friendly",label:"Friendly",description:"Warm and approachable tone"}].map(e=>(0,s.jsx)("div",{className:"relative p-4 border rounded-lg cursor-pointer transition-all duration-200\n ".concat(m.tone===e.value?"border-primary bg-brand-blue-light":"border-gray-200 hover:bg-gray-50"),onClick:()=>f(a=>({...a,tone:e.value})),children:(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"font-medium",children:e.label}),m.tone===e.value&&(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-primary"})]}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:e.description})]})},e.value))})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(l._,{className:"text-base font-semibold",children:"Duration per Slide (seconds)"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.i,{value:[m.duration],onValueChange:e=>f(a=>({...a,duration:e[0]})),min:10,max:60,step:5,className:"w-full"}),(0,s.jsxs)("div",{className:"flex justify-between text-sm text-gray-500",children:[(0,s.jsx)("span",{children:"10s"}),(0,s.jsxs)("span",{className:"font-medium text-primary",children:[m.duration,"s"]}),(0,s.jsx)("span",{children:"60s"})]})]})]})]}),(0,s.jsx)(c.g,{value:m.userPrompt,onChange:e=>f(a=>({...a,userPrompt:e.target.value})),placeholder:"Enter your custom prompt here...",className:"w-full focus-visible:right-1 focus-visible:ring-offset-1 focus-visible:ring-primary/25 text-sm min-h-[100px] font-medium"}),(0,s.jsx)("hr",{className:"my-4 border-t border-gray-200"}),(0,s.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,s.jsx)(t.z,{variant:"outline",onClick:r,children:"Cancel"}),(0,s.jsxs)(t.z,{onClick:()=>u(m),className:"bg-gradient-to-r from-primary to-indigo-600 text-white",children:[(0,s.jsx)(d.Z,{className:"w-4 h-4 mr-2"}),"Generate Script"]})]})]})})}},26815:function(e,a,r){r.d(a,{_:function(){return d}});var s=r(57437),n=r(2265),t=r(6394),l=r(77712),i=r(94508);let o=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,a)=>{let{className:r,...n}=e;return(0,s.jsx)(t.f,{ref:a,className:(0,i.cn)(o(),r),...n})});d.displayName=t.f.displayName},85897:function(e,a,r){r.d(a,{i:function(){return i}});var s=r(57437),n=r(2265),t=r(8339),l=r(94508);let i=n.forwardRef((e,a)=>{let{className:r,...n}=e;return(0,s.jsxs)(t.fC,{ref:a,className:(0,l.cn)("relative flex w-full touch-none select-none items-center",r),...n,children:[(0,s.jsx)(t.fQ,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:(0,s.jsx)(t.e6,{className:"absolute h-full bg-primary"})}),(0,s.jsx)(t.bU,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})});i.displayName=t.fC.displayName},33562:function(e,a,r){r.d(a,{g:function(){return l}});var s=r(57437),n=r(2265),t=r(94508);let l=n.forwardRef((e,a)=>{let{className:r,...n}=e;
1return(0,s.jsx)("textarea",{className:(0,t.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-white px-3 py-2 text-base text-slate-900 shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm [color-scheme:light]",r),ref:a,...n})});l.displayName="Textarea"},62883:function(e,a,r){r.d(a,{Z:function(){return s}});let s=(0,r(79205).Z)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},62484:function(e,a,r){r.d(a,{u:function(){return s}});function s(e,[a,r]){return Math.min(r,Math.max(a,e))}},29114:function(e,a,r){r.d(a,{gm:function(){return t}});var s=r(2265);r(57437);var n=s.createContext(void 0);function t(e){let a=s.useContext(n);return e||a||"ltr"}},6394:function(e,a,r){r.d(a,{f:function(){return i}});var s=r(2265),n=r(82912),t=r(57437),l=s.forwardRef((e,a)=>(0,t.jsx)(n.WV.label,{...e,ref:a,onMouseDown:a=>{var r;a.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));l.displayName="Label";var i=l}}]);
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.