PageSourceSearch

https://app.meinungswerk.ai/_next/static/chunks/9579-7e478a27ed93a1b2.js

js meinungswerk.ai collected 2026-10-05 13:59:06 UTC 25,362 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9579],{9230:(e,a,l)=>{l.d(a,{A:()=>p});var s=l(95155),t=l(12115),n=l(82286),r=l(82502),i=l(26333),d=l(63817),o=l(64269),c=l(24033),u=l(5917),m=l(18955);let p=e=>{let{placeholder:a="Select company",onCompanyChange:l,companyId:p=null,className:x,showAllOption:h=!0}=e,{companies:g,loading:v}=(0,r.Rr)({recordsPerPage:100}),f=(0,m.c)("admin.companies"),[b,j]=(0,t.useState)(!1),[N,w]=(0,t.useState)(""),[y,C]=(0,t.useState)(p);(0,t.useEffect)(()=>{C(p)},[p]);let A=e=>{j(!1);let a="all"===e?"all":Number(e);C(a),l(a)},k=null!==y&&"all"!==y?g.find(e=>e.id===y):null;return(0,s.jsxs)(i.AM,{open:b,onOpenChange:j,children:[(0,s.jsx)(i.Wv,{asChild:!0,children:(0,s.jsxs)("button",{type:"button",className:(0,o.cn)("flex items-center justify-between rounded-md border bg-background px-3 py-2 text-sm shadow-xs focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",!x&&"w-[200px]",b&&"ring-2 ring-ring","disabled:cursor-not-allowed disabled:opacity-50",x),disabled:v,"aria-haspopup":"listbox","aria-expanded":b,children:[(0,s.jsx)("span",{className:"truncate",children:("all"===y||null===y)&&h?f("all_companies"):(null==k?void 0:k.name)||a}),(0,s.jsx)(c.A,{className:"ml-2 h-4 w-4 text-muted-foreground"})]})}),(0,s.jsx)(n.UC,{"data-slot":"popover-content",align:"center",sideOffset:4,className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[60] w-[280px] origin-(--radix-popover-content-transform-origin) rounded-md border p-0 shadow-md outline-hidden"),children:(0,s.jsxs)(d.uB,{children:[(0,s.jsx)(d.G7,{placeholder:a,value:N,onValueChange:w,autoFocus:!0}),(0,s.jsxs)(d.oI,{className:"max-h-[200px]",children:[h&&(0,s.jsxs)(d.h_,{value:"all",onSelect:()=>A("all"),className:(0,o.cn)("cursor-pointer",{"bg-accent text-accent-foreground":"all"===y||null===y}),children:[(0,s.jsx)(u.A,{className:(0,o.cn)("mr-2 h-4 w-4","all"===y||null===y?"opacity-100":"opacity-0")}),f("all_companies")]},"all"),0===g.length&&(0,s.jsx)(d.xL,{children:f("no_companies_found")}),g.map(e=>(0,s.jsxs)(d.h_,{value:e.name,onSelect:()=>A(e.id.toString()),className:(0,o.cn)("cursor-pointer",{"bg-accent text-accent-foreground":y===e.id}),children:[(0,s.jsx)(u.A,{className:(0,o.cn)("mr-2 h-4 w-4",y===e.id?"opacity-100":"opacity-0")}),e.name]},e.id))]})]})})]})}},18332:(e,a,l)=>{l.d(a,{Fc:()=>i,TN:()=>o,XL:()=>d});var s=l(95155);l(12115);var t=l(83101),n=l(64269);let r=(0,t.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function i(e){let{className:a,variant:l,...t}=e;return(0,s.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(r({variant:l}),a),...t})}function d(e){let{className:a,...l}=e;return(0,s.jsx)("div",{"data-slot":"alert-title",className:(0,n.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",a),...l})}function o(e){let{className:a,...l}=e;return(0,s.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",a),...l})}},20869:(e,a,l)=>{l(95155),l(12115),l(52845),l(26333),l(63817),l(64269)},22976:(e,a,l)=>{l.d(a,{A:()=>R});var s=l(95155),t=l(12115),n=l(51834),r=l(3998),i=l(65142),d=l(76444),o=l(64269),c=l(17896),u=l(31120),m=l(65229),p=l(78874),x=l(74054),h=l(5917),g=l(6191),v=l(26333),f=l(63817),b=l(11647);let j=(e,a)=>e.includes(a)?e.filter(e=>e!==a):[...e,a],N=t.forwardRef((e,a)=>{let{options:l,value:n,onChange:i,placeholder:d="Select options",className:c,disabled:u,maxDisplay:N=3,popoverAlign:w="start"}=e,[y,C]=t.useState(!1),A=t.useMemo(()=>n.map(e=>({value:e,label:((e,a)=>{var l,s;return null!=(s=null==(l=e.find(e=>e.value===a))?void 0:l.label)?s:a})(l,e)})),[n,l]),k=e=>{null==e||e.stopPropagation(),i([])},_=A.slice(0,N),S=A.length-_.length;return(0,s.jsxs)(v.AM,{open:y,onOpenChange:C,children:[(0,s.jsx)(v.Wv,{asChild:!0,children:(0,s.jsxs)(r.$,{ref:a,variant:"outline",role:"combobox","aria-expanded":y,disabled:u,className:(0,o.cn)("w-full justify-between gap-2 overflow-hidden font-normal",!A.length&&"text-muted-foreground",c),children:[(0,s.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[_.map(e=>(0,s.jsxs)(b.E,{variant:"secondary",className:"group flex items-center gap-1",onClick:a=>{a.stopPropagation(),i(j(n,e.value))},children:[e.label,(0,s.jsx)(m.A,{className:"h-3 w-3 opacity-70 group-hover:opacity-100"})]},e.value)),S>0&&(0,s.jsxs)(b.E,{variant:"outline",children:["+",S]}),!A.length&&(0,s.jsx)("span",{className:"truncate text-sm muted-foreground",children:d})]})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!A.length&&(0,s.jsx)("span",{role:"button",tabIndex:0,className:"cursor-pointer text-muted-foreground hover:text-foreground",onClick:k,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&k()},children:(0,s.jsx)(p.A,{className:"h-4 w-4"})}),(0,s.jsx)(x.A,{className:"h-4 w-4 shrink-0 opacity-50"})]})]})}),(0,s.jsx)(v.hl,{className:"w-[--radix-popper-anchor-width] min-w-[200px] max-w-screen-sm p-0",align:w,children:(0,s.jsx)(f.uB,{shouldFilter:!1,children:(0,s.jsx)(f.L$,{children:l.map(e=>{let a=n.includes(e.value);return(0,s.jsx)(f.h_,{value:e.value,onSelect:()=>i(j(n,e.value)),className:"cursor-pointer",children:(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:(0,o.cn)("flex h-5 w-5 items-center justify-center rounded-sm border",a?"bg-primary text-primary-foreground":"bg-background"),children:a?(0,s.jsx)(h.A,{className:"h-4 w-4"}):(0,s.jsx)(g.A,{className:"h-4 w-4 opacity-50"})}),(0,s.jsx)("span",{className:"text-sm",children:e.label})]})},e.value)})})})})]})});N.displayName="MultiSelect";var w=l(11186),y=l(35299),C=l(21786),A=l(95740),k=l(85921),_=l(23327),S=l(18332),D=l(44846),P=l(70573),F=l(69003);let I=e=>{let{field:a}=e,l=Array.isArray(a.value)?a.value:[],[n,o]=t.useState(""),c=()=>
1{if(n.trim()&&!l.includes(n.trim())){var e;let s=[...l,n.trim()];null==(e=a.onChange)||e.call(a,s),o("")}};return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.p,{id:a.name,name:a.name,type:"text",value:n,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),c())},placeholder:a.placeholder||"Enter an enum value",className:"h-10 px-3 py-2.5 text-sm leading-5 text-slate-950 bg-white border border-slate-200 rounded-md focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",disabled:a.disabled}),(0,s.jsx)(r.$,{type:"button",variant:"outline",onClick:c,disabled:a.disabled||!n.trim(),className:"h-10 px-3 border border-slate-200 bg-slate-50 hover:bg-slate-100",children:(0,s.jsx)(g.A,{className:"h-4 w-4"})})]}),l.length>0&&(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(d.J,{className:"text-xs text-slate-500",children:["Enum Values (",l.length,")"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:l.map((e,t)=>(0,s.jsxs)(b.E,{variant:"secondary",className:"bg-slate-100 text-slate-900 font-medium text-xs rounded-md px-2.5 py-1 flex items-center gap-1.5",children:[e,(0,s.jsx)("button",{type:"button",onClick:()=>(e=>{var s;let t=l.filter(a=>a!==e);null==(s=a.onChange)||s.call(a,t)})(e),disabled:a.disabled,className:"ml-1 hover:bg-slate-200 rounded-full p-0.5 transition-colors","aria-label":"Remove ".concat(e),children:(0,s.jsx)(m.A,{className:"h-3 w-3"})})]},t))})]})]})},U=e=>{var a;let{field:l}=e,n=null==(a=l.meta)?void 0:a.presignedMediaUpload;if(!n)return null;let i=n.labels,c=!!l.disabled||n.isUploading,u=(0,t.useId)(),p=(0,t.useRef)(null),[x,h]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(d.J,{className:"text-sm font-medium text-slate-950",htmlFor:u,children:l.label}),(0,s.jsx)("input",{ref:p,id:u,type:"file",accept:"image/*",className:"sr-only",onChange:e=>{var a;let l=null==(a=e.target.files)?void 0:a[0];e.target.value="",l&&n.onFileSelect(l)},disabled:c,"aria-label":i.imagePlaceholder}),n.displayImageUrl?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:(0,o.cn)("relative overflow-hidden rounded-xl border border-slate-200 bg-slate-50/90","shadow-sm"),children:[(0,s.jsx)("img",{src:n.displayImageUrl,alt:l.label,className:"mx-auto max-h-52 w-full object-contain p-3"}),n.isUploading?(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-white/75 backdrop-blur-[1px]","aria-live":"polite",children:[(0,s.jsx)(y.A,{className:"h-8 w-8 animate-spin text-indigo-600","aria-hidden":!0}),(0,s.jsx)("span",{className:"text-sm font-medium text-slate-700",children:i.imageUploading})]}):null]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)(r.$,{type:"button",variant:"ghost",size:"sm",className:"h-8 shrink-0 px-2 text-destructive hover:bg-destructive/10 hover:text-destructive",onClick:n.onRemove,disabled:c,children:[(0,s.jsx)(m.A,{className:"mr-1 h-4 w-4","aria-hidden":!0}),i.removeImage]}),(0,s.jsxs)(r.$,{type:"button",variant:"outline",size:"sm",className:"shrink-0",disabled:c,onClick:()=>{var e;return null==(e=p.current)?void 0:e.click()},children:[(0,s.jsx)(C.A,{className:"mr-2 h-4 w-4","aria-hidden":!0}),i.imageReplace]})]})]}):(0,s.jsx)("label",{htmlFor:u,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),h(!0)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||h(!1)},onDrop:e=>{var a;e.preventDefault(),e.stopPropagation(),h(!1);let l=null==(a=e.dataTransfer.files)?void 0:a[0];l&&n.onFileSelect(l)},className:(0,o.cn)("relative flex min-h-[9.5rem] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-4 py-6 text-center transition-colors",x?"border-indigo-400 bg-indigo-50/80":"border-slate-200 bg-slate-50/50 hover:border-slate-300 hover:bg-slate-50",c&&"pointer-events-none opacity-60"),children:n.isUploading?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2 py-2","aria-live":"polite",children:[(0,s.jsx)(y.A,{className:"h-8 w-8 animate-spin text-indigo-600","aria-hidden":!0}),(0,s.jsx)("span",{className:"text-sm font-medium text-slate-700",children:i.imageUploading})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-white shadow-sm ring-1 ring-slate-200/80",children:(0,s.jsx)(C.A,{className:"h-5 w-5 text-slate-600","aria-hidden":!0})}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-slate-900",children:i.imagePlaceholder}),(0,s.jsx)("p",{className:"text-xs text-slate-500",children:i.imageUploadHint})]})]})})]})},R=e=>{let{open:a,onOpenChange:l,inProgress:t=!1,onConfirm:o,title:m,fields:p,cancelText:x,confirmText:h,containerClass:g="sm:max-w-[500px]",infoAlert:v}=e;return(0,s.jsx)(n.lG,{open:a,onOpenChange:l,children:(0,s.jsxs)(n.Cf,{className:"p-6 gap-4 ".concat(g),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,s.jsx)(n.c7,{className:"gap-4",children:(0,s.jsx)(n.L3,{className:"text-lg leading-none font-semibold text-slate-950 tracking-[-0.45px]",children:m})}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),null==o||o()},className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:max-h-[80vh] overflow-y-auto",children:[v&&(0,s.jsxs)(S.Fc,{className:"bg-slate-50/50 border-slate-200",children:[(0,s.jsx)(_.A,{className:"h-4 w-4"}),(0,s.jsx)(S.TN,{className:"text-slate-950",children:v})]}),p.map((e,a)=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:["switch"!=e.type&&"password"!=e.type&&"presigned_media_upload"!=e.type&&"phase_selector"!=e.type&&(0,s.jsx)(d.J,{htmlFor:e.name,className:"text-sm leading-5 font-medium text-slate-950",children:e.label}),e.description&&"presigned_media_upload"!=e.type&&(0,s.jsx)("p",{className:"text-xs leading-5 text-slate-500",children:e.description}),(()=>{var a,l,t,n,o,m,p,x,h,g,v,f,b,j,y,C,_,S,R,L,q,z,E,O,T,$,J,M;switch(e.type){case"text":case"email":return(0,s.jsx)(i.p,{id:e.name,name:e.name,type:e.type,value:e.value||"",onChange:e.onChange,placeholder:e.placeholder,className:"h-10 px-3 py-2.5 text-sm leading-5 text-slate-950 bg-white border border-slate-200 rounded-md focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",required:e.required,disabled:e.disabled});case"number":return(0,s.jsx)(i.p,{id:e.name,name:e.name,type:e.type,value:null!=(a=e.value)?a:"",onCh
1ange:e.onChange,placeholder:e.placeholder,className:"h-10 px-3 py-2.5 text-sm leading-5 text-slate-950 bg-white border border-slate-200 rounded-md focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",required:e.required,disabled:e.disabled});case"password":return(0,s.jsx)(c.PasswordInput,{id:e.name,label:e.label,value:e.value||"",onChange:e.onChange,placeholder:e.placeholder,required:e.required});case"fileupload":return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(P.A,{value:e.value,alt:"Selected image preview",showInfo:!0}),(0,s.jsx)(i.p,{type:"file",id:e.name,name:e.name,accept:"image/*",onChange:e.onChange,placeholder:e.placeholder,className:"h-10 px-3 py-2.5 text-sm leading-5 text-slate-950 bg-white border border-slate-200 rounded-md focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",required:e.required,disabled:e.disabled})]});case"switch":return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(D.d,{id:e.name,checked:e.value||!1,onCheckedChange:e.onChange,disabled:e.disabled,className:"data-[state=checked]:bg-indigo-500"}),(0,s.jsx)(d.J,{htmlFor:e.name,className:"text-sm font-normal text-slate-950 leading-none whitespace-pre",children:e.label})]});case"textarea":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.T,{id:e.name,name:e.name,value:e.value||"",onChange:e.onChange,placeholder:e.placeholder,rows:(null==(l=e.meta)?void 0:l.rows)||10,className:"h-auto px-3 py-2.5 text-sm leading-5 text-slate-950 bg-white border border-slate-200 rounded-md focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",required:e.required,disabled:e.disabled}),e.onAIAutoComplete&&(0,s.jsx)("div",{children:(0,s.jsxs)(r.$,{variant:"outline",size:"sm",onClick:a=>{var l,s;a.preventDefault(),null==(s=e.onChange)||s.call(e,(null==(l=e.onAIAutoComplete)?void 0:l.call(e))||"")},className:"border-0 shadow-none left text-indigo-600 hover:bg-indigo-50",children:[(0,s.jsx)(A.A,{className:"h-4 w-4"}),null==(t=e.meta)?void 0:t.aiAutoCompleteLabel]})})]});case"multiselect":return(0,s.jsx)(N,{options:(null==(n=e.meta)?void 0:n.items)||[],value:e.value||[],onChange:e.onChange||(()=>{}),placeholder:e.placeholder});case"phase_selector":return(0,s.jsx)(F.pd,{label:null!=(x=null==(o=e.meta)?void 0:o.customLabel)?x:e.label,value:null!=(h=e.value)?h:null,onChange:e.onChange||(()=>{}),showAllOption:null==(g=null==(m=e.meta)?void 0:m.showAllOption)||g,fullWidth:null==(v=null==(p=e.meta)?void 0:p.fullWidth)||v});case"select_group":let V=null==(b=e.meta)||null==(f=b.groupedItems)?void 0:f.flatMap(e=>e.items).find(a=>{var l,s;return(null==(l=a.value)?void 0:l.toString())===(null==(s=e.value)?void 0:s.toString())}),W=null==V?void 0:V.label;return(0,s.jsxs)(w.l6,{value:e.value||"",onValueChange:e.onChange,disabled:e.disabled,children:[(0,s.jsx)(w.bq,{className:"w-full",children:(null==(j=e.meta)?void 0:j.showDescription)&&W?(0,s.jsx)("span",{className:"truncate text-sm font-normal text-left",children:W}):(0,s.jsx)(w.yv,{placeholder:e.placeholder})}),(0,s.jsx)(w.gC,{children:null==(C=e.meta)||null==(y=C.groupedItems)?void 0:y.map(a=>(0,s.jsxs)(w.s3,{children:[(0,s.jsx)(w.TR,{children:a.label}),a.items.map(a=>{var l;return(0,s.jsx)(w.eb,{value:String(a.value),children:(0,s.jsxs)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},className:"whitespace-normal break-words text-sm leading-snug max-w-[var(--radix-select-trigger-width)]",children:[a.label,(null==(l=e.meta)?void 0:l.showDescription)&&a.description&&(0,s.jsx)(d.J,{onClick:e=>{e.preventDefault(),e.stopPropagation()},className:"text-xs text-slate-500 cursor-pointer",children:a.description})]})},a.value)})]},a.label))})]});case"select_group_with_preview":let B=null==(S=e.meta)||null==(_=S.groupedItems)?void 0:_.flatMap(e=>e.items).find(a=>{var l,s;return(null==(l=a.value)?void 0:l.toString())===(null==(s=e.value)?void 0:s.toString())}),G=null==B?void 0:B.label;return(0,s.jsx)("div",{className:"relative",children:(0,s.jsxs)(w.l6,{value:e.value||"",onValueChange:e.onChange,disabled:e.disabled,children:[(0,s.jsxs)("div",{className:"relative",children:[e.value&&(null==(R=e.meta)?void 0:R.onPlayItem)&&(0,s.jsx)(r.$,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 text-indigo-600 hover:text-indigo-700 absolute right-4 top-1/2 -translate-y-1/2 z-20",onClick:a=>{var l;return a.preventDefault(),a.stopPropagation(),(null==(l=e.meta)?void 0:l.onPlayItem)&&e.meta.onPlayItem(e.value),!1},children:(0,s.jsx)("div",{className:"flex items-center justify-center rounded-full border border-grey p-1",children:(0,s.jsx)(k.A,{className:"h-3 w-3 text-indigo-600 fill-current"})})}),(0,s.jsx)(w.bq,{className:"w-full pr-12",children:(0,s.jsx)("div",{className:"flex w-full justify-between items-center",children:(0,s.jsx)("div",{className:"flex-1 truncate text-left",children:(null==(L=e.meta)?void 0:L.showDescription)&&G?(0,s.jsx)("span",{className:"truncate text-sm font-normal",children:G}):(0,s.jsx)(w.yv,{placeholder:e.placeholder})})})})]}),(0,s.jsx)(w.gC,{children:null==(z=e.meta)||null==(q=z.groupedItems)?void 0:q.map(a=>(0,s.jsxs)(w.s3,{children:[(0,s.jsx)(w.TR,{children:a.label}),a.items.map(a=>{var l;return(0,s.jsxs)("div",{className:"flex items-center px-2 py-1.5 relative",children:[(0,s.jsx)(w.eb,{value:String(a.value),
1className:"flex-1 pr-8",children:(0,s.jsxs)("div",{className:"flex-1",children:[a.label,a.description&&(0,s.jsx)(d.J,{className:"text-xs text-slate-500 cursor-pointer block",children:a.description})]})}),(null==(l=e.meta)?void 0:l.onPlayItem)&&(0,s.jsx)("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 z-10",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,s.jsx)(r.$,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:l=>{var s,t;l.preventDefault(),l.stopPropagation(),null==(t=e.meta)||null==(s=t.onPlayItem)||s.call(t,a.value)},children:(0,s.jsx)("div",{className:"flex items-center justify-center rounded-full border border-grey p-1",children:(0,s.jsx)(k.A,{className:"h-3 w-3 text-indigo-600 fill-current"})})})})]},a.value)})]},a.label))})]})});case"select":case"dropdown":let K=null==(T=e.meta)||null==(O=T.items)||null==(E=O.find(a=>{var l,s;return(null==(l=a.value)?void 0:l.toString())===(null==(s=e.value)?void 0:s.toString())}))?void 0:E.label;return(0,s.jsxs)(w.l6,{value:e.value?String(e.value):"",onValueChange:e.onChange,disabled:e.disabled,children:[(0,s.jsx)(w.bq,{className:"w-full",children:(null==($=e.meta)?void 0:$.showDescription)&&K?(0,s.jsx)("span",{className:"truncate text-sm font-normal text-left",children:K}):(0,s.jsx)(w.yv,{placeholder:e.placeholder})}),(0,s.jsx)(w.gC,{children:null==(M=e.meta)||null==(J=M.items)?void 0:J.map((a,l)=>{var t,n;return(0,s.jsx)(w.eb,{className:"cursor-pointer",value:(null==(t=a.value)?void 0:t.toString())||"",children:(0,s.jsxs)("div",{className:"whitespace-normal break-words leading-snug max-w-[var(--radix-select-trigger-width)]",children:[a.label,(null==(n=e.meta)?void 0:n.showDescription)&&a.description&&(0,s.jsx)(d.J,{className:"text-xs text-slate-500 cursor-pointer",children:a.description})]})},a.value||l)})})]});case"enum":return(0,s.jsx)(I,{field:e});case"presigned_media_upload":return(0,s.jsx)(U,{field:e});default:return null}})()]},"".concat(e.name,"-").concat(a)))]}),(0,s.jsxs)(n.Es,{className:"flex flex-row gap-2 justify-end sm:gap-2",children:[(0,s.jsx)(r.$,{type:"button",variant:"outline",onClick:()=>{l(!1)},disabled:t,className:"min-w-16 px-4 py-1.5 text-sm leading-6 font-medium text-slate-900 bg-white border border-slate-200 rounded-md hover:bg-slate-50 cursor-pointer",children:x}),(0,s.jsx)(r.$,{type:"submit",disabled:t,className:"min-w-16 px-4 py-1.5 text-sm leading-6 font-medium text-slate-50 bg-indigo-500 hover:bg-indigo-600 rounded-md cursor-pointer",children:t?(0,s.jsx)(y.A,{className:"animate-spin"}):h})]})]})]})})}},48470:(e,a,l)=>{l.d(a,{A:()=>h});var s=l(95155);l(12115);var t=l(18955),n=l(18364),r=l(3998),i=l(65142),d=l(86651),o=l(6191),c=l(69003),u=l(82502),m=l(73795),p=l(72376),x=l(3292);let h=e=>{let{title:a,breadcrumbs:l=[],showBreadcrumbs:h=!0,searchPlaceholder:g,searchValue:v="",onSearchChange:f,ctaText:b,onCTAClick:j,onSecondaryCTAClick:N,secondaryCTAText:w,onCompanyChange:y,selectedCompanyId:C,onCampaignChange:A,selectedCampaignCode:k,onStatusChange:_,selectedStatus:S,onDateRangeApply:D,onDateRangeClear:P,showCampaignFilter:F=!1,showStatusFilter:I=!1,showDateRangeFilter:U=!1,interviewModeOptions:R,selectedInterviewMode:L,onInterviewModeChange:q}=e,z=(0,t.c)("admin.companies"),E=(0,t.c)("shared.campaigns"),O=(0,t.c)("shared.participants");return(0,s.jsxs)("div",{className:"flex items-center justify-between ",children:[(0,s.jsx)("div",{className:"flex flex-col gap-2",children:h&&(0,s.jsx)(n.A,{title:a,breadcrumbs:l})}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[F&&A&&(0,s.jsx)(c.ks,{label:E("filters.campaign_label"),placeholder:E("filters.campaign_placeholder"),onCampaignChange:A,campaignCode:k,useLeanCampaigns:u.ll,showAllOption:!0}),I&&_&&(0,s.jsx)(p.A,{label:O("filters.status_label"),onStatusChange:_,status:S||"all"}),(0,s.jsx)(x.n,{options:null!=R?R:[],value:L,onValueChange:q}),y&&(0,s.jsx)("div",{className:"relative w-auto",children:(0,s.jsx)(c.fz,{companyId:C,onCompanyChange:y})}),f&&(0,s.jsxs)("div",{className:"relative w-[200px]",children:[(0,s.jsx)(d.A,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"}),(0,s.jsx)(i.p,{placeholder:g||z("search_placeholder"),value:v,onCh
1ange:e=>{null==f||f(e.target.value)},className:"pl-9"})]}),U&&D&&P&&(0,s.jsx)(m.A,{label:O("filters.date_range_label"),placeholder:O("filters.date_range_placeholder"),onApply:D,onClear:P}),N&&(0,s.jsxs)(r.$,{onClick:N,className:"bg-indigo-500 hover:bg-indigo-600",children:[(0,s.jsx)(o.A,{className:"h-4 w-4 mr-1"}),w]}),j&&(0,s.jsxs)(r.$,{onClick:j,className:"bg-indigo-500 hover:bg-indigo-600",children:[(0,s.jsx)(o.A,{className:"h-4 w-4 mr-1"}),b]})]})]})}},52845:(e,a,l)=>{l.d(a,{Aw:()=>s.A,TF:()=>r.T,Tq:()=>n.T,wI:()=>t.w});var s=l(45188);l(11896),l(64129);var t=l(8076),n=l(14845),r=l(82939)},69003:(e,a,l)=>{l.d(a,{pd:()=>u,ks:()=>t.A,fz:()=>s.A});var s=l(9230);l(20869);var t=l(80121),n=l(95155),r=l(12115),i=l(18955),d=l(11186),o=l(76444),c=l(35546);let u=e=>{let{label:a,value:l,defaultValue:s,onChange:t,showAllOption:u=!0,className:m,fullWidth:p=!1}=e,x=(0,i.c)("shared.campaigns.filters"),h=null!=a?a:x("phase_label"),[g,v]=(0,r.useState)(null!=s?s:null),f=void 0!==l,b=f?l:g,j=null!=b?b:u?"all":c.op[0];return(0,n.jsxs)("div",{className:"flex flex-col gap-3 ".concat(null!=m?m:""),children:[(0,n.jsx)(o.J,{htmlFor:"campaign-phase-selector",className:"px-1",children:h}),(0,n.jsxs)(d.l6,{value:j,onValueChange:e=>{let a="all"===e?null:e;f||v(a),t(a)},children:[(0,n.jsx)(d.bq,{id:"campaign-phase-selector",className:p?"w-full":"w-[200px]",children:(0,n.jsx)(d.yv,{placeholder:x("phase_all")})}),(0,n.jsxs)(d.gC,{children:[u&&(0,n.jsx)(d.eb,{value:"all",children:x("phase_all")}),c.op.map(e=>(0,n.jsx)(d.eb,{value:e,children:x("phase_".concat(e))},e))]})]})]})}},70573:(e,a,l)=>{l.d(a,{A:()=>r});var s=l(95155),t=l(12115),n=l(76444);let r=e=>{let{value:a,className:l="",alt:r="File preview",showInfo:i=!0,height:d="h-48",width:o="w-full"}=e,c=(0,t.useRef)(null);if((0,t.useEffect)(()=>(c.current&&(URL.revokeObjectURL(c.current),c.current=null),a instanceof File&&(c.current=URL.createObjectURL(a)),()=>{c.current&&URL.revokeObjectURL(c.current)}),[a]),!a)return null;let u=(e=>e instanceof File?URL.createObjectURL(e):"string"==typeof e&&e?e:"")(a),m=a instanceof File;return(0,s.jsxs)("div",{className:"space-y-2 ".concat(l),children:[(0,s.jsx)(n.J,{className:"text-xs text-slate-500",children:"Preview"}),(0,s.jsx)("img",{src:u,alt:r,className:"".concat(d," ").concat(o," object-contain  rounded-md border border-slate-200")}),i&&(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs text-slate-500",children:[(0,s.jsx)("span",{children:m?a.name:"Current file"}),m&&(0,s.jsx)("span",{children:"".concat((a.size/1024/1024).toFixed(2)," MB")})]})]})}}}]);

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.