PageSourceSearch

https://www.socialscout.ai/_next/static/immutable/chunks/25cd4sl60t-r4.js

js socialscout.ai collected 2026-10-05 15:08:05 UTC 62,463 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,735490,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(846932),n=e.i(88653),l=e.i(928950),i=e.i(574520),s=e.i(231319),o=e.i(224928),c=e.i(511736),d=e.i(30678),u=e.i(427217),m=e.i(42473),p=e.i(782611),f=e.i(42969),h=e.i(91754),x=e.i(325834),g=e.i(550106),b=e.i(871822),y=e.i(358324),v=e.i(705766),w=e.i(39875);function k({onPick:e,onClose:n,anchor:l="bottom-right"}){let[i,s]=(0,r.useState)(""),[o,d]=(0,r.useState)([]),[m,p]=(0,r.useState)(!0),[f,h]=(0,r.useState)(!0),x=(0,r.useRef)(null),g=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function e(e){g.current&&!g.current.contains(e.target)&&n?.()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]),(0,r.useEffect)(()=>(x.current&&clearTimeout(x.current),h(!0),x.current=setTimeout(async()=>{try{let e=i.trim()?`/api/gifs?q=${encodeURIComponent(i.trim())}`:"/api/gifs",t=await fetch(e);if(t.ok){let e=await t.json();p(!1!==e.enabled),d(e.gifs||[])}}finally{h(!1)}},220),()=>clearTimeout(x.current)),[i]),(0,t.jsxs)(a.motion.div,{ref:g,initial:{opacity:0,y:4,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.96},transition:{duration:.15},className:`absolute ${"bottom-right"===l?"bottom-full mb-2 right-0":"bottom-full mb-2 left-0"} z-50 w-[340px] rounded-2xl overflow-hidden`,style:{background:"var(--surface-panel)",backdropFilter:"blur(20px)",boxShadow:"0 16px 48px var(--shadow-ambient-lg), 0 4px 12px var(--border-subtle)",border:"1px solid var(--border-default)"},children:[(0,t.jsx)("div",{className:"h-[3px] w-full",style:{background:"linear-gradient(90deg, #F97316, #EC4899, #A855F7)"}}),(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2.5",children:[(0,t.jsx)("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:"linear-gradient(135deg, rgba(249,115,22,0.15), rgba(236,72,153,0.15))"},children:(0,t.jsx)(c.GifIcon,{className:"w-4 h-4 text-orange-500"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-[10px] font-bold uppercase tracking-[0.14em] text-gray-400 dark:text-zinc-500",children:"GIF picker"}),(0,t.jsx)("div",{className:"text-[10px] text-gray-400 dark:text-zinc-500",children:"via Giphy"})]}),(0,t.jsx)("button",{onClick:n,className:"w-6 h-6 flex items-center justify-center rounded-md hover:bg-gray-100 dark:hover:bg-zinc-900",children:(0,t.jsx)(u.XMarkIcon,{className:"w-3.5 h-3.5 text-gray-400 dark:text-zinc-500"})})]}),m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-xl mb-2",style:{background:"var(--surface-soft)",border:"1px solid var(--border-default)"},children:[(0,t.jsx)(w.MagnifyingGlassIcon,{className:"w-3.5 h-3.5 text-gray-400 dark:text-zinc-500"}),(0,t.jsx)("input",{autoFocus:!0,value:i,onChange:e=>s(e.target.value),placeholder:"Search Tenor…",className:"flex-1 text-xs bg-transparent border-none focus:outline-none text-gray-900 dark:text-zinc-100 placeholder-gray-400 dark:placeholder-zinc-500"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1.5 max-h-[280px] overflow-y-auto",children:f?Array.from({length:8}).map((e,r)=>(0,t.jsx)("div",{className:"aspect-[4/3] rounded-lg bg-gray-100/70 dark:bg-zinc-900/70 animate-pulse"},r)):0===o.length?(0,t.jsx)("div",{className:"col-span-2 py-8 text-center",children:(0,t.jsx)("p",{className:"text-xs text-gray-400 dark:text-zinc-500 italic",children:i?"No GIFs found":"No GIFs available"})}):o.map(r=>(0,t.jsx)("button",{onMouseDown:t=>{t.preventDefault(),e(r)},className:"aspect-[4/3] rounded-lg overflow-hidden bg-gray-100 dark:bg-zinc-900 group hover:ring-2 hover:ring-orange-400/50 transition-all",title:r.title,children:(0,t.jsx)("img",{src:r.previewUrl,alt:r.title,className:"w-full h-full object-cover transition-transform duration-200 group-hover:scale-105",loading:"lazy"})},r.id))})]}):(0,t.jsxs)("div",{className:"rounded-xl p-4 text-center",style:{background:"rgba(245,158,11,0.06)",border:"1px solid rgba(245,158,11,0.18)"},children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-amber-800 mb-1",children:"GIFs aren't configured yet"}),(0,t.jsxs)("p",{className:"text-[10px] text-amber-700/80 leading-relaxed",children:["Add a ",(0,t.jsx)("code",{className:"px-1 rounded bg-amber-100 font-mono",children:"GIPHY_API_KEY"})," in"," ",(0,t.jsx)("code",{className:"px-1 rounded bg-amber-100 font-mono",children:"config.js"})," to enable. Free tier — see"," ",(0,t.jsx)("a",{href:"https://developers.giphy.com/dashboard",target:"_blank",rel:"noopener noreferrer",className:"underline font-semibold",children:"Giphy developer dashboard"}),"."]})]})]})]})}let j=["😂","🔥","❤️","🎉","👀","💯","✅","🙌","🤔","👍"],N=["from-pink-500 to-rose-400","from-orange-500 to-amber-400","from-violet-500 to-purple-400","from-blue-500 to-cyan-400","from-emerald-500 to-teal-400"],C=[{key:"file",label:"Attach a file",description:"Upload an image, screenshot, or video",keywords:["file","attach","upload","image","screenshot","photo","video"],icon:p.PaperClipIcon,
1color:"#8B5CF6"},{key:"gif",label:"Send a GIF",description:"Open the GIF picker",keywords:["gif","giphy"],icon:c.GifIcon,color:"#EC4899"},{key:"emoji",label:"Pick an emoji",description:"Insert an emoji at the cursor",keywords:["emoji","smile","react"],icon:d.FaceSmileIcon,color:"#F59E0B"}],E={user:{label:"USER",sectionLabel:"Users",bg:"rgba(99,102,241,0.1)",color:"#6366F1"},creator:{label:"CREATOR",sectionLabel:"Creators",bg:"rgba(168,85,247,0.1)",color:"#A855F7"},campaign:{label:"CAMPAIGN",sectionLabel:"Campaigns",bg:"rgba(236,72,153,0.1)",color:"#EC4899"},organization:{label:"ORG",sectionLabel:"Organizations",bg:"rgba(14,165,233,0.1)",color:"#0EA5E9"},deal:{label:"DEAL",sectionLabel:"Deals",bg:"rgba(16,185,129,0.1)",color:"#10B981"}},$=["user","creator","campaign","organization","deal"];function z(e,t){let r=E[e]||E.user,a=document.createElement("span");return a.contentEditable="false",a.dataset.mention="true",a.dataset.kind=e,a.dataset.id=t._id,a.dataset.name=t.name||"",a.className="inline-flex items-center align-middle rounded-md px-1 py-0.5 mx-px font-semibold whitespace-nowrap",a.style.cssText=`background:${r.bg};border:1px solid ${r.color}40;color:${r.color};font-size:0.92em;line-height:1.2;`,a.textContent=`@${t.name||"Unknown"}`,a}let A=(0,r.forwardRef)(function({teamMembers:e=[],entitySearch:w=!0,localCreators:A=[],placeholder:S="Write a comment…",onSubmit:I,rows:M=2,ctaLabel:L="Comment",onActivity:R,initialText:_="",initialMentions:D=null,submitOnEnter:T,onCancel:U,showGif:F=!0,autoFocus:O=!1},P){let[B,Z]=(0,r.useState)(!1),[W,q]=(0,r.useState)(!1),[G,K]=(0,r.useState)([]),[H,V]=(0,r.useState)([]),[X,Y]=(0,r.useState)(!1),[J,Q]=(0,r.useState)(!1),ee=(0,r.useRef)(null),[et,er]=(0,r.useState)(!0),ea=!1!==T&&et;(0,r.useEffect)(()=>{try{let e=window.localStorage.getItem("ss.composer.enterToSend");null!==e&&er("1"===e)}catch{}},[]);let[en,el]=(0,r.useState)(null),[ei,es]=(0,r.useState)(0),[eo,ec]=(0,r.useState)([]),[ed,eu]=(0,r.useState)([]),[em,ep]=(0,r.useState)([]),[ef,eh]=(0,r.useState)([]),[ex,eg]=(0,r.useState)(!1),eb=(0,r.useRef)(null),ey=(0,r.useRef)(null),ev=(0,r.useRef)(null),ew=(0,r.useRef)({users:new Map,creators:new Map,campaigns:new Map,organizations:new Map,deals:new Map});function ek(){let e=eb.current;if(!e)return void el(null);let t=function(e){let t=window.getSelection?.();if(!t||0===t.rangeCount)return null;let r=t.getRangeAt(0);if(!r.collapsed||!e.contains(r.endContainer))return null;let a=document.createRange();return a.selectNodeContents(e),a.setEnd(r.endContainer,r.endOffset),a.toString()}(e);if(null==t)return void el(null);let r=/(^|\s)@([A-Za-z0-9_.\-]{0,30})$/.exec(t),a=/(^|\s)\/([A-Za-z0-9\-]{0,20})$/.exec(t);r?el({kind:"@",query:r[2]}):a?el({kind:"/",query:a[2]}):el(null)}function ej(){let e=eb.current;Z(!!e?.textContent?.trim())}(0,r.useEffect)(()=>{function e(e){ev.current&&!ev.current.contains(e.target)&&Q(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>{if(!en||"@"!==en.kind){ec([]),eu([]),ep([]),eh([]),eg(!1);return}let e=en.query?.trim();if(!e||!w){ec([]),eu([]),ep([]),eh([]),eg(!1);return}return ey.current&&clearTimeout(ey.current),eg(!0),ey.current=setTimeout(()=>{Promise.all([fetch(`/api/searchAutoCompleteCreators?query=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():[]).catch(()=>[]),fetch(`/api/searchAutoCompleteCampaigns?query=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():[]).catch(()=>[]),fetch(`/api/searchAutoCompleteOrganizations?query=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():[]).catch(()=>[]),fetch(`/api/searchAutoCompleteDeals?query=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():[]).catch(()=>[])]).then(([e,t,r,a])=>{ec(Array.isArray(e)?e.slice(0,4):[]),eu(Array.isArray(t)?t.slice(0,4):[]),ep(Array.isArray(r)?r.slice(0,4):[]),eh(Array.isArray(a)?a.slice(0,4):[])}).finally(()=>eg(!1))},200),()=>clearTimeout(ey.current)},[en?.kind,en?.query,w]);let eN=(0,r.useMemo)(()=>{if(!en||"@"!==en.kind)return[];let t=(en.query||"").toLowerCase();return e.filter(e=>(e.name||"").toLowerCase().includes(t)||(e.email||"").toLowerCase().includes(t)).slice(0,4)},[en,e]),eC=(0,r.useMemo)(()=>
1{if(!en||"/"!==en.kind)return[];let e=(en.query||"").toLowerCase().trim();return e?C.filter(t=>t.key.includes(e)||t.label.toLowerCase().includes(e)||t.keywords.some(t=>t.includes(e))):C},[en]),eE=(0,r.useMemo)(()=>{if(!en||"@"!==en.kind)return[];let e=(en.query||"").toLowerCase();return(A||[]).filter(t=>t?.name&&(!e||t.name.toLowerCase().includes(e))).slice(0,4)},[en,A]),e$=(0,r.useMemo)(()=>{if(!en||"@"!==en.kind)return[];let e=new Set,t=[...eE,...eo].filter(t=>{let r=String(t._id);return!e.has(r)&&(e.add(r),!0)});return[...eN.map(e=>({kind:"user",item:e})),...t.map(e=>({kind:"creator",item:e})),...ed.map(e=>({kind:"campaign",item:e})),...em.map(e=>({kind:"organization",item:e})),...ef.map(e=>({kind:"deal",item:e}))]},[en,eN,eE,eo,ed,em,ef]),ez=en?.kind==="/"?eC:e$;function eA(){eb.current?.focus(),document.execCommand("bold"),ej()}function eS(){eb.current?.focus(),document.execCommand("italic"),ej()}function eI(e){let t=window.getSelection?.();if(!t||0===t.rangeCount)return null;let r=t.getRangeAt(0);if(!r.collapsed)return null;let a=r.startContainer;if(a.nodeType!==Node.TEXT_NODE||!eb.current?.contains(a))return null;let n=a.textContent.slice(0,r.startOffset),l=("@"===e?/(?:^|\s)(@[A-Za-z0-9_.\-]{0,30})$/:/(?:^|\s)(\/[A-Za-z0-9\-]{0,20})$/).exec(n);if(!l)return null;let i=n.length-l[1].length,s=document.createRange();return s.setStart(a,i),s.setEnd(a,r.startOffset),s.deleteContents(),{range:s,sel:t}}function eM(e){if(!en)return;let t=eI("@");if(!t)return;let{range:r,sel:a}=t,n=e.item,l=z(e.kind,n);r.insertNode(l);let i=document.createTextNode(" ");l.parentNode.insertBefore(i,l.nextSibling);let s=document.createRange();s.setStart(i,1),s.collapse(!0),a.removeAllRanges(),a.addRange(s);let o=ew.current[`${e.kind}s`];o&&n.name&&o.set(n.name.toLowerCase(),n._id),el(null),ej()}function eL(e){en&&(eI("/"),el(null),setTimeout(()=>{eb.current?.focus(),"gif"===e.key?Y(!0):"emoji"===e.key?Q(!0):"file"===e.key&&ee.current?.click()},0))}async function eR(e){let t=Array.from(e||[]).filter(e=>{let t;return!!(t=e?.type)&&(!!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t.startsWith("text/")||t.startsWith("application/vnd.")||t.startsWith("application/msword"))||["application/pdf","application/zip","application/x-zip-compressed","application/json","application/rtf","application/x-rtf"].includes(t))});if(0===t.length){(e?.length||0)>0&&v.default.error("Unsupported file type");return}let r=t.map(e=>({id:`${Date.now()}-${Math.random().toString(36).slice(2,8)}`,name:e.name||"attachment",mimeType:e.type,isMedia:e.type?.startsWith("image/")||e.type?.startsWith("video/"),previewUrl:e.type?.startsWith("image/")||e.type?.startsWith("video/")?URL.createObjectURL(e):null}));V(e=>[...e,...r]),await Promise.all(t.map(async(e,t)=>{let a=r[t].id;try{let t=new FormData;t.append("file",e);let r=await fetch("/api/tasks/upload-attachment",{method:"POST",body:t});if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.error||`Upload failed (${r.status})`)}let a=await r.json();K(e=>[...e,{type:a.type,url:a.url,previewUrl:a.url,mimeType:a.mimeType,name:a.name}])}catch(e){v.default.error(e.message||"Couldn't upload attachment")}finally{r[t].previewUrl&&URL.revokeObjectURL(r[t].previewUrl),V(e=>e.filter(e=>e.id!==a))}}))}async function e_(){let e=function(e){if(!e)return"";let t="";return!function e(r){if(r.nodeType===Node.TEXT_NODE){t+=r.textContent;return}if(r.nodeType===Node.ELEMENT_NODE){if(r.dataset?.mention==="true"){t+=r.textContent;return}switch(r.tagName.toLowerCase()){case"strong":case"b":for(let a of(t+="**",r.childNodes))e(a);t+="**";return;case"em":case"i":for(let a of(t+="*",r.childNodes))e(a);t+="*";return;case"br":t+="\n";return;case"ul":for(let a of(t&&!t.endsWith("\n")&&(t+="\n"),r.children))if("li"===a.tagName.toLowerCase()){for(let r of(t+="- ",a.childNodes))e(r);t.endsWith("\n")||(t+="\n")}return;case"ol":{t&&!t.endsWith("\n")&&(t+="\n");let a=1;for(let n of r.children)if("li"===n.tagName.toLowerCase()){for(let r of(t+=`${a}. `,a++,n.childNodes))e(r);t.endsWith("\n")||(t+="\n")}return}case"div":case"p":for(let a of(t&&!t.endsWith("\n")&&(t+="\n"),r.childNodes))e(a);return;default:for(let t of r.childNodes)e(t)}}}(e),t.replace(/\n{3,}/g,"\n\n").trim()}(eb.current);if(e||0!==G.length){q(!0);try{let t=e.toLowerCase(),r=e=>[...e.entries()].filter(([e])=>t.includes(`@${e}`)).map(([,e])=>e);await I({text:e,mentions:r(ew.current.users),creatorMentions:r(ew.current.creators),campaignMentions:r(ew.current.campaigns),organizationMentions:r(ew.current.organizations),dealMentions:r(ew.current.deals),media:G}),eb.current&&(eb.current.innerHTML=""),Z(!1),K([]),el(null),ew.current={users:new Map,creators:new Map,campaigns:new Map,organizations:new Map,deals:new Map}}finally{q(!1)}}}function eD({opt:e,isActive:r,onSelect:a}){let n,c=E[e.kind],d=e.item;return(0,t.jsxs)("button",{onMouseDown:e=>{e.preventDefault(),a()},onMouseEnter:()=>es(ez.indexOf(e)),className:"w-full px-3 py-2 flex items-center gap-2.5 text-xs transition-colors duration-100",style:{background:r?"rgba(249,115,22,0.06)":"transparent"},children:["user"===e.kind?(0,t.jsx)("div",{className:`w-6 h-6 rounded-full bg-gradient-to-br ${(n=(d.name||"").charCodeAt(0)%N.length,N[n])} flex items-center justify-center text-white text-[9px] font-bold flex-shrink-0`,children:(d.name||"?")[0].toUpperCase()}):d.image?(0,t.jsx)("img",{src:d.image,alt:"",className:"w-6 h-6 rounded-full object-cover flex-shrink-0 ring-1",style:{ringColor:`${c.color}30`}}):(0,t.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center flex-shrink-0",style:{background:c.bg},children:"campaign"===e.kind?(0,t.jsx)(i.MegaphoneIcon,{className:"w-3 h-3",style:{color:c.color}}):"organization"===e.kind?(0,t.jsx)(s.BuildingOffice2Icon,{className:"w-3 h-3",style:{color:c.color}}):"deal"===e.kind?(0,t.jsx)(o.BriefcaseIcon,{className:"w-3 h-3",style:{color:c.color}}):(0,t.jsx)(l.UserCircleIcon,{className:"w-3.5 h-3.5",style:{color:c.color}})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 text-left",children:[(0,t.jsx)("div",{className:"text-gray-700 dark:text-zinc-300 font-semibold truncate",children:d.name||d.email||"Unknown"}),"user"===e.kind&&d.email&&(0,t.jsx)("div",{className:"text-[10px] text-gray-400 dark:text-zinc-500 truncate",children:d.email}),"creator"===e.kind&&d.category&&(0,t.jsx)("div",{className:"text-[10px] truncate",style:{color:c.color},children:d.category}),"deal"===e.kind&&(d.organizationName||d.stage)&&(0,t.jsx)("div",{className:"text-[10px] truncate",style:{color:c.color},children:d.organizationName||String(d.stage).replace(/_/g," ")})]}),(0,t.jsx)("span",{className:"text-[8px] font-bold uppercase tracking-wider px-1.5 py-0.5 rounded flex-shrink-0",style:{background:c.bg,color:c.color},children:c.label})]})}function eT({cmd:e,isActive:r,onSelect:a}){let n=e.icon;return(0,t.jsxs)("button",{onMouseDown:e=>{e.preventDefault(),a()},onMouseEnter:()=>es(eC.indexOf(e)),className:"w-full px-3 py-2 flex items-center gap-2.5 text-xs transition-colors duration-100",style:{background:r?`linear-gradient(90deg, ${e.color}10, transparent)`:"transparent"},children:[(0,t.jsx)("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:`${e.color}15`},children:(0,t.jsx)(n,{className:"w-3.5 h-3.5",style:{color:e.color}})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 text-left",children:[(0,t.jsx)("div",{className:"text-gray-800 dark:text-zinc-100 font-semibold truncate",children:e.label}),(0,t.jsx)("div",{className:"text-[10px] text-gray-400 dark:text-zinc-500",children:e.description})]}),(0,t.jsxs)("span",{className:"text-[9px] font-bold tracking-wider px-1.5 py-0.5 rounded flex-shrink-0",style:{background:`${e.color}15`,color:e.color},children:["/",e.key]})]})}(0,r.useEffect)(()=>{es(0)},[en?.kind,en?.query,ez.length]),(0,r.useImperativeHandle)(P,()=>({uploadFiles:eR}),[]),(0,r.useEffect)(()=>{let e=eb.current;if(e&&(_&&(!function(e,t,r,a){let n=new Map;for(let[e,t]of[["user","users"],["creator","creators"],["campaign","campaigns"],["organization","organizations"],["deal","deals"]])for(let a of r?.[t]||[]){let t=a?.name?.trim();if(!t||!a?._id)continue;let r=t.toLowerCase();n.has(r)||n.set(r,{kind:e,item:{_id:a._id,name:t}})}let l=[...n.keys()].sort((e,t)=>
1t.length-e.length);function i(e,t){let r="",i=()=>{r&&e.appendChild(document.createTextNode(r)),r=""},s=0;for(;s<t.length;){if("@"===t[s]&&l.length>0){let r=t.slice(s+1).toLowerCase(),o=l.find(e=>{if(!r.startsWith(e))return!1;let a=t[s+1+e.length];return!a||!/[A-Za-z0-9_.\-]/.test(a)});if(o){i();let{kind:t,item:r}=n.get(o);e.appendChild(z(t,r));let l=a?.[`${t}s`];l&&l.set(o,r._id),s+=1+o.length;continue}}r+=t[s],s+=1}i()}function s(e,t){let r,a=/(\*\*[^*\n]+\*\*|\*[^*\n]+\*)/g,n=0;for(;r=a.exec(t);){r.index>n&&i(e,t.slice(n,r.index));let a=r[0],l=a.startsWith("**"),s=document.createElement(l?"strong":"em");i(s,l?a.slice(2,-2):a.slice(1,-1)),e.appendChild(s),n=r.index+a.length}n<t.length&&i(e,t.slice(n))}e.innerHTML="";let o=null;for(let r of String(t).split("\n")){let t=/^\s*-\s+(.*)$/.exec(r),a=/^\s*\d+\.\s+(.*)$/.exec(r);if(t||a){let r=t?"ul":"ol";o&&o.tagName.toLowerCase()===r||(o=document.createElement(r),e.appendChild(o));let n=document.createElement("li");s(n,(t||a)[1]),o.appendChild(n);continue}o=null;let n=document.createElement("div");""===r.trim()?n.appendChild(document.createElement("br")):s(n,r),e.appendChild(n)}}(e,_,D,ew.current),ej()),O)){e.focus();try{let t=window.getSelection(),r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}catch{}}},[]);let eU=!!en,eF=en?.kind==="/";return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{ref:ee,type:"file",multiple:!0,accept:"image/*,video/*,audio/*,application/pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.zip,.rtf,.json,.md",className:"hidden",onChange:e=>{e.target.files?.length&&eR(e.target.files),e.target.value=""}}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{ref:eb,contentEditable:!0,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":"true","data-placeholder":S,onInput:()=>{ej(),ek();try{R?.()}catch{}},onKeyUp:ek,onClick:ek,onKeyDown:function(e){let t=e.metaKey||e.ctrlKey;if(t&&!e.shiftKey&&!e.altKey){let t=e.key.toLowerCase();if("b"===t){e.preventDefault(),eA();return}if("i"===t){e.preventDefault(),eS();return}}if(en&&ez.length>0){if("ArrowDown"===e.key){e.preventDefault(),es(e=>(e+1)%ez.length);return}if("ArrowUp"===e.key){e.preventDefault(),es(e=>(e-1+ez.length)%ez.length);return}if("@"===en.kind&&("Tab"===e.key||"ArrowRight"===e.key&&!e.metaKey&&!e.ctrlKey||"ArrowLeft"===e.key&&!e.metaKey&&!e.ctrlKey)){let t=function({options:e,activeIdx:t,direction:r="next"}){if(!e.length)return null;let a=[];for(let t of $){let r=e.findIndex(e=>e.kind===t);if(r<0)continue;let n=r;for(;n<e.length&&e[n].kind===t;)n++;a.push({kind:t,start:r,end:n})}if(a.length<2)return null;let n=a.findIndex(e=>t>=e.start&&t<e.end);if(n<0)return a[0].start;let l=(n+("prev"===r?-1:1)+a.length)%a.length;return a[l].start}({options:ez,activeIdx:ei,direction:e.shiftKey||"ArrowLeft"===e.key?"prev":"next"});if(null!=t&&t!==ei){e.preventDefault(),es(t);return}}if("Enter"===e.key){e.preventDefault();let t=ez[ei];"/"===en.kind?eL(t):eM(t);return}if("Tab"===e.key&&"/"===en.kind){e.preventDefault(),eL(ez[ei]);return}if("Escape"===e.key)return void el(null)}if("Enter"===e.key){if(t){e.preventDefault(),e_();return}if(e.shiftKey)return;ea&&(e.preventDefault(),e_());return}if("Escape"===e.key){if(en)return void el(null);U&&(e.preventDefault(),U())}},onPaste:function(e){let t=e.clipboardData?.items,r=[];if(t){for(let e of t)if("file"===e.kind){let t=e.getAsFile();t&&r.push(t)}}if(r.length>0){e.preventDefault(),eR(r);return}let a=e.clipboardData?.getData("text/plain");null!=a&&(e.preventDefault(),document.execCommand("insertText",!1,a),ej(),ek())},className:"mi-editor w-full text-sm rounded-xl py-3.5 pl-3.5 focus:outline-none focus:ring-2 focus:ring-orange-300/50 transition-all whitespace-pre-wrap break-words text-gray-900 dark:text-zinc-100",style:{minHeight:`${1.5*(M||2)}em`,paddingRight:"3.25rem",background:"var(--surface-soft)",border:"1px solid var(--border-subtle)"}}),(0,t.jsx)("button",{type:"button",onClick:e_,disabled:!B&&0===G.length||W||H.length>0,"aria-label":L,title:`${L} (${ea?"Enter":"⌘+Enter"})`,className:"absolute right-2 bottom-2 w-9 h-9 inline-flex items-center justify-center rounded-full text-white transition-all duration-200 hover:scale-105 hover:shadow-lg disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:hover:shadow-none",style:{background:"linear-gradient(135deg, #F97316, #EC4899)",boxShadow:B||G.length?"0 4px 14px rgba(236,72,153,0.35)":"none"},children:W?(0,t.jsx)("span",{className:"block w-3.5 h-3.5 border-2 border-white/40 border-t-white rounded-full animate-spin dark:border-zinc-800/40"}):(0,t.jsx)(f.PaperAirplaneIcon,{className:"w-4 h-4 -translate-x-px translate-y-
1px"})})]}),(0,t.jsx)(n.AnimatePresence,{children:eU&&(0,t.jsxs)(a.motion.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.12},className:"absolute z-50 left-0 right-0 mb-1.5 rounded-xl py-1.5 max-w-md overflow-hidden",style:{bottom:"100%",background:"var(--surface-panel)",backdropFilter:"blur(20px)",boxShadow:"0 -8px 40px var(--shadow-ambient-lg), 0 -2px 8px var(--border-subtle)",border:"1px solid var(--border-default)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-b mb-1",style:{borderColor:"var(--surface-softer)"},children:[eF?(0,t.jsx)(m.CommandLineIcon,{className:"w-3 h-3 text-orange-500"}):(0,t.jsx)("span",{className:"text-[10px] font-black text-gray-400 dark:text-zinc-500",children:"@"}),(0,t.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.14em] text-gray-400 dark:text-zinc-500",children:eF?"Quick action":"Mention someone"}),ex&&!eF&&(0,t.jsx)("span",{className:"ml-auto text-[10px] text-gray-300 dark:text-zinc-700",children:"searching…"})]}),(0,t.jsxs)("div",{className:"max-h-72 overflow-y-auto",children:[eF&&eC.map((e,r)=>(0,t.jsx)(eT,{cmd:e,isActive:r===ei,onSelect:()=>eL(e)},e.key)),!eF&&$.map(e=>{let r=ez.filter(t=>t.kind===e);if(0===r.length)return null;let a=E[e];return(0,t.jsxs)("div",{className:"pt-1 first:pt-0","data-mention-section":e,children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 pt-1.5 pb-0.5",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:a.color},"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-[9px] font-bold uppercase tracking-[0.16em] text-gray-400 dark:text-zinc-500",children:a.sectionLabel||a.label})]}),r.map(e=>{let r=ez.indexOf(e);return(0,t.jsx)(eD,{opt:e,isActive:r===ei,onSelect:()=>eM(e)},`${e.kind}-${e.item._id}`)})]},e)}),!eF&&0===ez.length&&(0,t.jsx)("div",{className:"px-3 py-4 text-center",children:ex?(0,t.jsx)("p",{className:"text-[11px] text-gray-400 dark:text-zinc-500",children:"Searching…"}):en?.query?.trim()?(0,t.jsxs)("p",{className:"text-[11px] text-gray-400 dark:text-zinc-500",children:["No matches for “",en.query,"”"]}):(0,t.jsx)("p",{className:"text-[11px] text-gray-400 dark:text-zinc-500",children:"Start typing to search teammates, creators, campaigns, orgs, or deals…"})}),eF&&0===eC.length&&(0,t.jsx)("div",{className:"px-3 py-4 text-center",children:(0,t.jsxs)("p",{className:"text-[11px] text-gray-400 dark:text-zinc-500",children:["No commands match “/",en.query,"”"]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 text-[10px] font-medium border-t",style:{borderColor:"var(--surface-softer)",color:"var(--text-label)",background:"var(--surface-soft)"},children:[(0,t.jsx)("span",{children:"↑↓ navigate · ↵ select"}),(0,t.jsx)("span",{className:"text-gray-300 dark:text-zinc-700",children:"esc to dismiss"})]})]})}),(G.length>0||H.length>0)&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-2 flex-wrap",children:[G.map((e,r)=>{let a="image"===e.type||"gif"===e.type,n="video"===e.type,l=()=>K(e=>e.filter((e,t)=>t!==r));return a||n?(0,t.jsxs)("div",{className:"relative rounded-lg overflow-hidden group",style:{width:96,height:72,border:"1px solid var(--border-default)"},children:[n?(0,t.jsx)("video",{src:e.url,className:"w-full h-full object-cover",muted:!0,playsInline:!0}):(0,t.jsx)("img",{src:e.previewUrl||e.url,alt:"",className:"w-full h-full object-cover"}),(0,t.jsx)("button",{onClick:l,className:"absolute top-1 right-1 w-5 h-5 rounded-full bg-black/60 text-white flex items-center justify-center opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",title:"Remove","aria-label":"Remove attachment",children:(0,t.jsx)(u.XMarkIcon,{className:"w-3 h-3"})})]},`${e.url}-${r}`):(0,t.jsxs)("div",{className:"relative flex items-center gap-2 px-2.5 py-2 rounded-lg group",style:{border:"1px solid var(--border-default)",background:"rgba(139,92,246,0.04)",maxWidth:220},children:[(0,t.jsxs)("div",{className:"w-9 h-9 rounded-lg flex flex-col items-center justify-center flex-shrink-0",style:{background:"rgba(139,92,246,0.12)"},children:[(0,t.jsx)(h.DocumentIcon,{className:"w-4 h-4 text-violet-500"}),(0,t.jsx)("span",{className:"text-[7px] font-black text-violet-500 leading-none mt-0.5",children:function(e,t){if(e&&e.includes(".")){let t=e.split(".").pop();if(t&&t.length<=5)return t.toUpperCase()}return t&&(t.split("/")[1]||"").split(".").pop().slice(0,5).toUpperCase()||"FILE"}(e.name,e.mimeType)})]}),(0,t.jsx)("span",{className:"text-[11px] font-semibold text-gray-700 dark:text-zinc-300 truncate min-w-0",children:e.name||"Attachment"}),(0,t.jsx)("button",{onClick:l,className:"w-5 h-5 rounded-full bg-black/60 text-white flex items-center justify-center opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity flex-shrink-0",title:"Remove","aria-label":"Remove attachment",children:(0,t.jsx)(u.XMarkIcon,{className:"w-3 h-3"})})]},`${e.url}-${r}`)}),H.map(e=>e.isMedia&&e.previewUrl?(0,t.jsxs)("div",{className:"relative rounded-lg overflow-hidden",style:{width:96,height:72,border:"1px solid rgba(249,115,22,0.25)"},children:[(0,t.jsx)("img",{src:e.previewUrl,alt:"",className:"w-full h-full object-cover opacity-60"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white/40 dark:bg-zinc-950/40",children:(0,t.jsx)("div",{className:"w-5 h-5 rounded-full border-2 animate-spin",style:{borderColor:"rgba(249,115,22,0.25)",borderTopColor:"#F97316"}})})]},e.id):(0,t.jsxs)("div",{className:"relative flex items-center gap-2 px-2.5 py-2 rounded-lg",style:{border:"1px solid rgba(249,115,22,0.25)",background:"rgba(249,115,22,0.04)",maxWidth:220},children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"rgba(249,115,22,0.12)"},children:(0,t.jsx)("div",{className:"w-4 h-4 rounded-full border-2 animate-spin",style:{borderColor:"rgba(249,115,22,0.3)",borderTopColor:"#F97316"}})}),(0,t.jsx)("span",{className:"text-[11px] font-semibold text-gray-600 dark:text-zinc-400 truncate min-w-0",children:e.name})]},e.id))]}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1",children:[(0,t.jsxs)("div",{ref:ev,className:"relative",children:[(0,t.jsx)("button",{type:"button",onClick:()=>Q(e=>!e),className:"w-8 h-8 flex items-center justify-center rounded-lg transition-all duration-150 hover:bg-amber-50 group",title:"Add emoji",children:(0,t.jsx)(d.FaceSmileIcon,{className:"w-4 h-4 text-gray-400 dark:text-zinc-500 group-hover:text-amber-500"})}),(0,t.jsx)(n.AnimatePresence,{children:J&&(0,t.jsx)(a.motion.div,{initial:{opacity:0,y:4,scale:.96}
1,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.96},transition:{duration:.15},className:"absolute bottom-full mb-1.5 left-0 z-40 rounded-xl p-1.5 flex items-center gap-0.5",style:{background:"var(--surface-panel)",backdropFilter:"blur(20px)",boxShadow:"0 12px 32px var(--shadow-ambient-lg), 0 2px 8px var(--surface-softer)",border:"1px solid var(--border-default)"},children:j.map(e=>(0,t.jsx)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),eb.current?.focus(),document.execCommand("insertText",!1,e),ej(),ek(),Q(!1)},className:"w-7 h-7 flex items-center justify-center rounded-md hover:bg-gray-100 dark:hover:bg-zinc-900 transition-colors text-base",children:e},e))})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>ee.current?.click(),className:"w-8 h-8 flex items-center justify-center rounded-lg transition-all duration-150 hover:bg-violet-50 group",title:"Attach a file (drag, paste, or click)","aria-label":"Attach a file",children:(0,t.jsx)(p.PaperClipIcon,{className:"w-4 h-4 text-gray-400 dark:text-zinc-500 group-hover:text-violet-500 transition-colors"})}),F&&(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>Y(e=>!e),className:"text-[11px] font-bold flex items-center gap-1 px-2 h-8 rounded-lg transition-all duration-150 hover:bg-pink-50 group",title:"Add a GIF (or type /gif)",style:{color:"var(--text-label)"},onMouseEnter:e=>e.currentTarget.style.color="#EC4899",onMouseLeave:e=>e.currentTarget.style.color="#9CA3AF",children:[(0,t.jsx)(c.GifIcon,{className:"w-4 h-4"}),"GIF"]}),(0,t.jsx)(n.AnimatePresence,{children:X&&(0,t.jsx)(k,{anchor:"bottom-left",onClose:()=>Y(!1),onPick:e=>{K(t=>[...t,{type:"gif",url:e.url,previewUrl:e.previewUrl,width:e.width,height:e.height,source:e.source}]),Y(!1)}})})]}),(0,t.jsxs)("div",{className:"ml-1 pl-1 flex items-center gap-0.5",style:{borderLeft:"1px solid var(--border-subtle)"},children:[(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:eA,className:"w-7 h-7 flex items-center justify-center rounded-md transition-colors duration-150 hover:bg-gray-100 dark:hover:bg-zinc-900 text-gray-400 dark:text-zinc-500 hover:text-gray-700 dark:hover:text-zinc-200",title:"Bold (⌘B)","aria-label":"Bold",children:(0,t.jsx)(x.BoldIcon,{className:"w-3.5 h-3.5"})}),(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:eS,className:"w-7 h-7 flex items-center justify-center rounded-md transition-colors duration-150 hover:bg-gray-100 dark:hover:bg-zinc-900 text-gray-400 dark:text-zinc-500 hover:text-gray-700 dark:hover:text-zinc-200",title:"Italic (⌘I)","aria-label":"Italic",children:(0,t.jsx)(g.ItalicIcon,{className:"w-3.5 h-3.5"})}),(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:function(){eb.current?.focus(),document.execCommand("insertUnorderedList"),ej()},className:"w-7 h-7 flex items-center justify-center rounded-md transition-colors duration-150 hover:bg-gray-100 dark:hover:bg-zinc-900 text-gray-400 dark:text-zinc-500 hover:text-gray-700 dark:hover:text-zinc-200",title:"Bullet list","aria-label":"Bullet list",children:(0,t.jsx)(b.ListBulletIcon,{className:"w-4 h-4"})}),(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:function(){eb.current?.focus(),document.execCommand("insertOrderedList"),ej()},className:"w-7 h-7 flex items-center justify-center rounded-md transition-colors duration-150 hover:bg-gray-100 dark:hover:bg-zinc-900 text-gray-400 dark:text-zinc-500 hover:text-gray-700 dark:hover:text-zinc-200",title:"Numbered list","aria-label":"Numbered list",children:(0,t.jsx)(y.NumberedListIcon,{className:"w-4 h-4"})})]}),!1===T?(0,t.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1 text-[10px] font-medium px-1.5 py-0.5 whitespace-nowrap",style:{color:"var(--text-tertiary)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"font-bold",children:"⌘↵"}),L.toLowerCase(),U?" · esc cancel":""]}):(0,t.jsxs)("button",{type:"button",onClick:function(){er(e=>{let t=!e;try{window.localStorage.setItem("ss.composer.enterToSend",t?"1":"0")}catch{}return t})},title:et?"Enter sends · Shift+Enter inserts a new line · click to require ⌘+Enter":"⌘+Enter sends · click to send on plain Enter",className:"ml-auto inline-flex items-center gap-1 text-[10px] font-medium px-1.5 py-0.5 rounded-md transition-colors hover:bg-gray-100 dark:hover:bg-zinc-900 whitespace-nowrap",style:{color:"var(--text-tertiary)"}
1,children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"font-bold",children:et?"↵":"⌘↵"}),"send"]})]})]})});e.s(["default",0,A],735490)},864043,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(174080),n=e.i(846932),l=e.i(88653),i=e.i(913107),s=e.i(871822),o=e.i(427217),c=e.i(787906),d=e.i(662060),u=e.i(705766),m=e.i(217255);let p=r.useLayoutEffect,f=[{value:"low",label:"Low",color:"#6b7280"},{value:"medium",label:"Med",color:"#f59e0b"},{value:"high",label:"High",color:"#ef4444"},{value:"critical",label:"!",color:"#dc2626"}];function h({variant:e,label:r,onClick:a}){return"icon"===e?(0,t.jsx)("button",{type:"button",onClick:a,className:"w-6 h-6 flex items-center justify-center rounded-full transition-all duration-150 hover:scale-110",style:{background:"var(--surface-panel)",border:"1px solid rgba(99,102,241,0.18)",boxShadow:"0 2px 8px rgba(99,102,241,0.08)"},title:"Convert to task","aria-label":"Convert to task",children:(0,t.jsx)(s.ListBulletIcon,{className:"w-3 h-3 text-indigo-500"})}):"menuItem"===e?(0,t.jsxs)("button",{type:"button",onClick:a,className:"w-full text-left px-3 py-2 text-[13px] flex items-center gap-2 hover:bg-gray-100 dark:hover:bg-zinc-900 rounded-lg",children:[(0,t.jsx)(s.ListBulletIcon,{className:"w-4 h-4 text-indigo-500"}),r]}):(0,t.jsxs)("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-bold transition-all hover:-translate-y-0.5",style:{background:"rgba(99,102,241,0.08)",border:"1px solid rgba(99,102,241,0.25)",color:"#4f46e5"},children:[(0,t.jsx)(i.PlusIcon,{className:"w-3.5 h-3.5"}),r]})}function x({context:e,anchorEl:a,panelRef:l,onClose:i,onCreated:s}){let{data:h}=(0,m.useSession)(),w=h?.user,[k,j]=(0,r.useState)(e?.seedTitle||""),[N,C]=(0,r.useState)("medium"),[E,$]=(0,r.useState)(e?.seedDueDate?e.seedDueDate.slice(0,10):""),[z,A]=(0,r.useState)(!1),S=(0,r.useRef)(null),[I,M]=(0,r.useState)(null),[L,R]=(0,r.useState)(!1),[_]=(0,r.useState)(()=>Array.isArray(e?.seedCollaborators)?e.seedCollaborators:[]),[D,T]=(0,r.useState)([]),[U,F]=(0,r.useState)([]),[O,P]=(0,r.useState)(!1),[B,Z]=(0,r.useState)(""),[W,q]=(0,r.useState)(null);(0,r.useEffect)(()=>R(!0),[]),(0,r.useEffect)(()=>{S.current?.focus?.()},[]),(0,r.useEffect)(()=>{if(!w?._id)return;let e=!1,t=null;try{t=localStorage.getItem(`task-board:lastActive:${w._id}`)}catch{t=null}if(t)return fetch(`/api/task-boards/${t}`).then(e=>e.ok?e.json():null).then(t=>{if(e||!t?.board)return;let r=t.board.groups?.[0]?.name||"Default";q({id:t.board._id,name:t.board.name,group:r})}).catch(()=>{}),()=>{e=!0}},[w?._id]),(0,r.useEffect)(()=>{let t=!1;return fetch("/api/agency-team").then(e=>e.ok?e.json():null).then(r=>{if(t||!r)return;let a=r.users||r.team||[];if(F(a),e?.seedAssignees?.length){let t=a.filter(t=>e.seedAssignees.includes(t._id?.toString?.()));T(t.length?t:[])}else w?._id&&T([a.find(e=>e._id?.toString?.()===w._id?.toString?.())||{_id:w._id,name:w.name,email:w.email,image:w.image}])}).catch(()=>{}),()=>{t=!0}},[w?._id,e?.seedAssignees]);let G=U.filter(e=>{let t=B.trim().toLowerCase();return!t||(e.name||"").toLowerCase().includes(t)||(e.email||"").toLowerCase().includes(t)});async function K(r){if(r?.preventDefault?.(),k.trim()&&!z){A(!0);try{let r=await v({context:e,title:k,priority:N,dueDate:E,assigneeIds:D.map(e=>e._id),collaboratorIds:_,defaultBoard:W}),a=await fetch("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.error||"Failed to create task")}let n=await a.json(),l=n.task||n,i=l?.link||function(e){if(!e?._id)return null;if(e.linkedCampaign?._id||e.linkedCampaign){let t=e.linkedCampaign?._id||e.linkedCampaign;return`/dashboard/user/campaign/${t}?tab=tasks&taskId=${e._id}`}if(e.linkedCreator?._id||e.linkedCreator){let t=e.linkedCreator?._id||e.linkedCreator;return`/dashboard/user/creator/${t}?tab=tasks&taskId=${e._id}`}if(e.linkedPost?._id||e.linkedPost){let t=e.linkedPost?._id||e.linkedPost;return`/dashboard/user/post/${t}?taskId=${e._id}`}return`/dashboard/user/tasks?taskId=${e._id}`}(l);if(l?._id&&window.dispatchEvent(new CustomEvent("ss-task-event",{detail:{taskId:l._id,type:"task_assigned",kind:"create"}})),e?.kind==="message"&&e?.id&&l?._id){let t={kind:"message_updated",messageId:e.id?.toString?.()||e.id,spawnedTask:l._id?.toString?.()||l._id};window.dispatchEvent(new CustomEvent("ss-conversation-event",{detail:t})),window.dispatchEvent(new CustomEvent("ss-task-event",{detail:t}))}u.default.success((0,t.jsxs)("span",{children:["Task created"," ",i&&(0,t.jsx)("a",{href:i,className:"font-bold underline decoration-dotted underline-offset-2",children:"— view"})]}),{duration:4e3}),s?.(l)}catch(e){u.default.error(e.message||"Couldn't create task")}finally{A(!1)}}}return p(()=>
1{if(a)return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)};function e(){let e,t=a.getBoundingClientRect(),r=window.innerHeight-t.bottom-8,n=t.top-8;e=Math.max(8,Math.min(e=r<380&&n>r?Math.max(8,t.top-380-8):t.bottom+8,window.innerHeight-380-8));let l=t.right-300;l+300>window.innerWidth-8&&(l=window.innerWidth-300-8),l<8&&(l=8),M({top:e,left:l,width:300})}},[a]),(0,t.jsx)(y,{mounted:L,coords:I,panelRef:l,children:(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.18,ease:[.25,.46,.45,.94]},className:"rounded-2xl p-3",style:{background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 20px 50px var(--shadow-ambient-xl), 0 4px 14px var(--shadow-ambient-md)",backdropFilter:"blur(20px)"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("div",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-gray-400 dark:text-zinc-500",children:"New task"}),(0,t.jsx)("button",{type:"button",onClick:i,className:"w-6 h-6 rounded-lg flex items-center justify-center hover:bg-gray-100 dark:hover:bg-zinc-900","aria-label":"Close",children:(0,t.jsx)(o.XMarkIcon,{className:"w-3.5 h-3.5 text-gray-500 dark:text-zinc-400"})})]}),(e?.label||W?.name)&&(0,t.jsxs)("div",{className:"text-[11px] text-gray-500 dark:text-zinc-400 mb-2 truncate",children:["Filing under"," ",(0,t.jsxs)("span",{className:"font-bold text-gray-700 dark:text-zinc-300",children:[W?.name||e.label,W?.group?` › ${W.group}`:""]})]}),(0,t.jsxs)("form",{onSubmit:K,children:[(0,t.jsx)("input",{ref:S,type:"text",value:k,onChange:e=>j(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),K())},placeholder:"What needs to happen?",className:"w-full text-[13px] px-3 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-orange-300/40",style:{background:"var(--surface-soft)",border:"1px solid var(--border-subtle)"},disabled:z,maxLength:280}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("div",{className:"text-[10px] uppercase tracking-[0.12em] font-bold text-gray-400 dark:text-zinc-500 mb-1.5",children:"Assignees"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[D.map(e=>(0,t.jsx)(g,{user:e,onRemove:()=>{var t;return t=e._id,void T(e=>e.filter(e=>e._id?.toString?.()!==t?.toString?.()))},disabled:z},e._id)),(0,t.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),disabled:z,className:"inline-flex items-center gap-1 px-2 py-1 rounded-full text-[11px] font-bold transition-colors hover:opacity-80",style:{background:"var(--surface-softer)",border:"1px dashed var(--border-default)",color:"var(--text-tertiary)"},children:[(0,t.jsx)(d.UserPlusIcon,{className:"w-3 h-3"}),0===D.length?"Assign":"Add"]})]}),O&&(0,t.jsxs)("div",{className:"mt-2 rounded-xl overflow-hidden",style:{background:"var(--surface-soft)",border:"1px solid var(--border-subtle)"},children:[(0,t.jsx)("input",{type:"text",value:B,onChange:e=>Z(e.target.value),placeholder:"Search teammates…",className:"w-full text-[12px] px-3 py-1.5 focus:outline-none",style:{background:"transparent",borderBottom:"1px solid var(--border-subtle)"},onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),P(!1))}}),(0,t.jsx)("div",{className:"max-h-40 overflow-y-auto",children:0===G.length?(0,t.jsx)("div",{className:"px-3 py-3 text-[11px] text-gray-400 dark:text-zinc-500 text-center",children:"No matches"}):G.map(e=>{let r=D.some(t=>t._id?.toString?.()===e._id?.toString?.());return(0,t.jsxs)("button",{type:"button",onClick:()=>{T(t=>{let r=e._id?.toString?.();return t.some(e=>e._id?.toString?.()===r)?t.filter(e=>e._id?.toString?.()!==r):[...t,e]})},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-gray-100/60 dark:hover:bg-zinc-900/60 transition-colors",children:[(0,t.jsx)(b,{user:e,size:20}),(0,t.jsx)("div",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-900 dark:text-zinc-100 truncate",children:e.name||e.email}),r&&(0,t.jsx)(c.CheckIcon,{className:"w-3.5 h-3.5 text-emerald-500 shrink-0"})]},e._id)})})]})]}),(0,t.jsx)("div",{className:"flex items-center gap-1 mt-2",children:f.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>C(e.value),className:"flex-1 px-2 py-1 rounded-lg text-[11px] font-bold transition-colors",style:N===e.value?{background:`${e.color}18`,border:`1px solid ${e.color}55`,color:e.color}:{background:"var(--surface-softer)",border:"1px solid var(--border-subtle)",color:"var(--text-tertiary)"},children:e.label},e.value))}),(0,t.jsx)("input",{type:"date",value:E,onChange:e=>$(e.target.value),className:"w-full text-[12px] px-3 py-1.5 mt-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-orange-300/40",style:{background:"var(--surface-soft)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)"},disabled:z}),(0,t.jsx)("button",{type:"submit",disabled:!k.trim()||z,className:"mt-3 w-full inline-flex items-center justify-center gap-1.5 px-3 py-2 rounded-xl text-[13px] font-bold text-white disabled:opacity-40 transition-all",style:{background:"linear-gradient(135deg, #6366f1, #ec4899)",boxShadow:"0 4px 12px rgba(99,102,241,0.25)"},children:z?"Creating…":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.CheckIcon,{className:"w-3.5 h-3.5"}),"Create task"]})})]})]})})}function g({user:e,onRemove:r,disabled:a}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 pl-0.5 pr-1.5 py-0.5 rounded-full text-[11px] font-bold",style:{background:"rgba(99,102,241,0.10)",border:"1px solid rgba(99,102,241,0.25)",color:"#4f46e5"},children:[(0,t.jsx)(b,{user:e,size:16}),(0,t.jsx)("span",{className:"truncate max-w-[100px]",children:e.name||e.email||"User"}),!a&&(0,t.jsx)("button",{type:"button",onClick:r,className:"w-3.5 h-3.5 inline-flex items-center justify-center rounded-full hover:bg-indigo-500/20","aria-label":`Remove ${e.name||e.email}`,children:(0,t.jsx)(o.XMarkIcon,{className:"w-2.5 h-2.5"})})]})}function b({user:e,size:r=20}){let a=(e.name||e.email||"?").trim().charAt(0).toUpperCase();return e.image?(0,t.jsx)("img",{src:e.image,alt:e.name||e.email||"User",width:r,height:r,className:"rounded-full object-cover shrink-0",style:{width:r,height:r}}):(0,t.jsx)("span",{className:"inline-flex items-center justify-center rounded-full text-white font-bold shrink-0",style:{width:r,height:r,fontSize:Math.max(8,.5*r),background:"linear-gradient(135deg, #6366f1, #ec4899)"},children:a})}function y({mounted:e,coords:r,panelRef:n,children:l}){return e&&r&&!("u"<typeof document)?(0,a.createPortal)((0,t.jsx)("div",{ref:n,style:{position:"fixed",top:r.top,left
1:r.left,width:r.width,zIndex:1200},children:l}),document.body):null}async function v({context:e,title:t,priority:r,dueDate:a,assigneeIds:n,collaboratorIds:l,defaultBoard:i}){let s={title:t.trim(),priority:r,...a?{dueDate:new Date(a).toISOString()}:{},...n?.length?{assignees:n}:{},...n?.length?{}:{autoAssignOwnerIfEmpty:!0},...l?.length?{collaborators:l}:{},...i?.id?{board:i.id}:{},...i?.group?{group:i.group}:{}};switch(e?.kind){case"post":case"video_version":return{...s,linkedPost:e.id};case"creator":return{...s,linkedCreator:e.id};case"campaign":return{...s,linkedCampaign:e.id};case"casting_creator":return{...s,castListContext:e.rootId};case"message":return{...s,spawnedFromMessage:e.id};default:return s}}e.s(["default",0,function({context:e,variant:a="button",label:n,onCreated:i}){let[s,o]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(s)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){c.current?.contains(e.target)||d.current?.contains(e.target)||o(!1)}function t(e){"Escape"===e.key&&o(!1)}},[s]),(0,t.jsxs)("div",{ref:c,className:"relative inline-block",children:[(0,t.jsx)(h,{variant:a,label:n||"+ Task",onClick:e=>{e.preventDefault(),e.stopPropagation(),o(e=>!e)}}),(0,t.jsx)(l.AnimatePresence,{children:s&&(0,t.jsx)(x,{context:e,anchorEl:c.current,panelRef:d,onClose:()=>o(!1),onCreated:e=>{o(!1),i?.(e)}})})]})}])},115200,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(177168),n=e.i(928950),l=e.i(574520),i=e.i(231319),s=e.i(224928),o=e.i(140713),c=e.i(271645),d=e.i(416965),u=e.i(782092),m=e.i(171387),p=e.i(303859),f=e.i(427217);function h({url:e,embed:r,onActivate:a,onDeactivate:n}){let l=(0,c.useRef)(null),[i,s]=(0,c.useState)(!1),[o,x]=(0,c.useState)(!1);return(0,t.jsxs)("div",{ref:l,onFullscreenChange:function(){x(!!document.fullscreenElement)},className:"relative mt-2 rounded-xl overflow-hidden group/embed w-full",style:{aspectRatio:r.aspectRatio||16/9,background:"var(--surface-soft)",border:"1px solid var(--border-default)"},children:[i?(0,t.jsx)("iframe",{src:r.embedUrl,title:`${r.label} video`,className:"absolute inset-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",frameBorder:"0"}):(0,t.jsxs)("button",{type:"button",onClick:function(){s(!0),a?.()},className:"absolute inset-0 w-full h-full flex flex-col items-center justify-center gap-2 transition-colors duration-200 hover:bg-black/[0.02] dark:hover:bg-white/[0.02]",title:`Play ${r.label} video`,children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-full flex items-center justify-center shadow-lg",style:{background:"linear-gradient(135deg, #F97316, #EC4899)"},children:(0,t.jsx)(p.PlayCircleIcon,{className:"w-8 h-8 text-white"})}),(0,t.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-gray-500 dark:text-zinc-400",children:r.label})]}),(0,t.jsxs)("div",{className:"absolute top-1.5 right-1.5 flex items-center gap-1 opacity-100 sm:opacity-0 sm:group-hover/embed:opacity-100 transition-opacity duration-150",children:[i&&(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),s(!1),document.fullscreenElement===l.current&&document.exitFullscreen?.().catch(()=>{}),n?.()},className:"w-9 h-9 sm:w-7 sm:h-7 flex items-center justify-center rounded-lg backdrop-blur-md text-white shadow",style:{background:"var(--overlay-scrim-strong)"},title:"Close video","aria-label":"Close video",children:(0,t.jsx)(f.XMarkIcon,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:e=>{let t;e.stopPropagation(),(t=l.current)&&(document.fullscreenElement?document.exitFullscreen?.().then(()=>x(!1)).catch(()=>{}):t.requestFullscreen?.().then(()=>x(!0)).catch(()=>{}))},className:"w-9 h-9 sm:w-7 sm:h-7 flex items-center justify-center rounded-lg backdrop-blur-md text-white shadow",style:{background:"var(--overlay-scrim-strong)"},title:o?"Exit full screen":"Full screen","aria-label":"Toggle full screen",children:o?(0,t.jsx)(u.ArrowsPointingInIcon,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5"}):(0,t.jsx)(d.ArrowsPointingOutIcon,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5"})}),(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"w-9 h-9 sm:w-7 sm:h-7 flex items-center justify-center rounded-lg backdrop-blur-md text-white shadow",style:{background:"var(--overlay-scrim-strong)"},title:"Open in new tab","aria-label":"Open in new tab",children:(0,t.jsx)(m.ArrowTopRightOnSquareIcon,{className:"w-4 h-4 sm:w-3.5 sm:h-3.5"})})]})]})}let x={user:{color:"#6366F1",bg:"rgba(99,102,241,0.12)",border:"rgba(99,102,241,0.28)",icon:a.UserIcon,label:"User"},creator:{color:"#A855F7",bg:"rgba(168,85,247,0.12)",border:"rgba(168,85,247,0.28)",icon:n.UserCircleIcon,label:"Creator"}
1,campaign:{color:"#F97316",bg:"rgba(249,115,22,0.12)",border:"rgba(249,115,22,0.3)",icon:l.MegaphoneIcon,label:"Campaign"},organization:{color:"#0EA5E9",bg:"rgba(14,165,233,0.12)",border:"rgba(14,165,233,0.28)",icon:i.BuildingOffice2Icon,label:"Organization"},deal:{color:"#10B981",bg:"rgba(16,185,129,0.12)",border:"rgba(16,185,129,0.28)",icon:s.BriefcaseIcon,label:"Deal"}};function g({entity:e,kind:a}){var n;let l=x[a]||x.user,i=l.icon,s=(n=e.id)?"creator"===a?`/dashboard/user/creator/${n}`:"campaign"===a?`/dashboard/user/campaign/${n}`:"organization"===a?`/dashboard/user/organization/${n}`:"deal"===a?`/dashboard/user/sales/deal/${n}`:null:null,o=(0,t.jsxs)(t.Fragment,{children:[e.image?(0,t.jsx)("img",{src:e.image,alt:"",className:"w-3.5 h-3.5 rounded-full object-cover flex-shrink-0",loading:"lazy"}):(0,t.jsx)("span",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center flex-shrink-0",style:{background:l.color},children:(0,t.jsx)(i,{className:"w-2 h-2 text-white"})}),(0,t.jsxs)("span",{className:"font-semibold leading-none",children:["@",e.name]})]}),c="inline-flex items-center gap-1 align-middle rounded-md px-1 py-0.5 mx-px transition-all duration-150 whitespace-nowrap",d={background:l.bg,border:`1px solid ${l.border}`,color:l.color,fontSize:"0.92em",lineHeight:1.1};return s?(0,t.jsx)(r.default,{href:s,onClick:e=>e.stopPropagation(),className:`${c} hover:underline hover:shadow-sm cursor-pointer`,style:d,title:`${l.label}: ${e.name}`,children:o}):(0,t.jsx)("span",{className:c,style:d,title:`${l.label}: ${e.name}`,children:o})}function b(e,r,a,n="",l=!1){if(!e)return[];let i=[],s=0,c="",d=r.size>0;function u(){c&&(i.push(c),c="")}for(;s<e.length;){if(d&&"@"===e[s]){let l=e.slice(s+1).toLowerCase(),o=null;for(let t of a)if(l.startsWith(t)){let r=e[s+1+t.length];if(!r||!/[A-Za-z0-9_.\-]/.test(r)){o=t;break}}if(o){u();let e=r.get(o);i.push((0,t.jsx)(g,{entity:e,kind:e.kind},`${n}m-${s}`)),s+=1+o.length;continue}}if("h"===e[s]&&/^https?:\/\//i.test(e.slice(s))){let r=e.slice(s),a=/^https?:\/\/[^\s<>"'`)]+/i.exec(r);if(a){let e=a[0].replace(/[.,)\]!?;:]+$/g,"");u();let r=e.length>60?`${(0,o.hostnameFor)(e)}/…`:e;i.push(l?(0,t.jsx)("span",{className:"text-violet-600 dark:text-violet-400 underline underline-offset-2 break-all",children:r},`${n}u-${s}`):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"text-violet-600 dark:text-violet-400 underline underline-offset-2 break-all",children:r},`${n}u-${s}`)),s+=e.length;continue}}c+=e[s],s+=1}return u(),i}function y(e,r,a,n="",l=!1){let i=[],s=0,o="",c=0;function d(){if(!o)return;let e=b(o,r,a,`${n}p${c++}-`,l);i.push(...e),o=""}for(;s<e.length;){if("*"===e[s]&&"*"===e[s+1]){let o=e.indexOf("**",s+2);if(o>s+2){d();let u=e.slice(s+2,o);i.push((0,t.jsx)("strong",{className:"font-bold",children:b(u,r,a,`${n}b${c++}-`,l)},`${n}b-${s}`)),s=o+2;continue}}else if("*"===e[s]){let o=e.indexOf("*",s+1);if(o>s+1&&!e.slice(s+1,o).includes("\n")){d();let u=e.slice(s+1,o);i.push((0,t.jsx)("em",{className:"italic",children:b(u,r,a,`${n}i${c++}-`,l)},`${n}i-${s}`)),s=o+1;continue}}o+=e[s],s+=1}return d(),i}e.s(["default",0,function({text:e="",mentions:r=[],creatorMentions:a=[],campaignMentions:n=[],organizationMentions:l=[],dealMentions:i=[],className:s="",compact:c=!1,onVideoActivate:d,onVideoDeactivate:u}){if(!e)return null;let m=new Map;function p(e,t){for(let r of t||[]){let t=r?.name?.trim();if(!t)continue;let a=t.toLowerCase();m.has(a)||m.set(a,{kind:e,id:r._id,name:t,image:r.image})}}p("user",r),p("creator",a),p("campaign",n),p("organization",l),p("deal",i);let f=[...m.keys()].sort((e,t)=>t.length-e.length),x=function(e){let t=e.split("\n"),r=[],a=null;for(let e of t){let t=e.match(/^\s*[-*]\s+(.*)$/),n=e.match(/^\s*\d+\.\s+(.*)$/);t?(a&&"ul"===a.type||(a&&r.push(a),a={type:"ul",items:[]}),a.items.push(t[1])):n?(a&&"ol"===a.type||(a&&r.push(a),a={type:"ol",items:[]}),a.items.push(n[1])):(a&&(r.push(a),a=null),r.push({type:"p",text:e}))}return a&&r.push(a),r}(e),g=c?[]:(0,o.extractUrls)(e).map(e=>({url:e,embed:(0,o.detectVideoEmbed)(e)})).filter(e=>e.embed);if(!x.some(e=>"p"!==e.type)){let e=x.map(e=>e.text).join("\n");return(0,t.jsxs)("span",{className:s,children:[y(e,m,f,"",c),g.map((e,r)=>(0,t.jsx)(h,{url:e.url,embed:e.embed,onActivate:d,onDeactivate:u},`embed-${r}`))]})}return(0,t.jsxs)("span",{className:s,children:[x.map((e,r)=>"ul"===e.type?(0,t.jsx)("ul",{className:"list-disc ml-4 my-1 space-y-0.5",children:e.items.map((e,a)=>(0,t.jsx)("li",{children:y(e,m,f,`ul${r}-${a}-`,c)},`li-${r}-${a}`))},`ul-${r}`):"ol"===e.type?(0,t.jsx)("ol",{className:"list-decimal ml-4 my-1 space-y-0.5",children:e.items.map((e,a)=>(0,t.jsx)("li",{children:y(e,m,f,`ol${r}-${a}-`,c)},`li-${r}-${a}`))},`ol-${r}`):(0,t.jsxs)("span",{children:[y(e.text,m,f,`p${r}-`,c),r<x.length-1?"\n":null]},`p-${r}`)),g.map((e,r)=>(0,t.jsx)(h,{url:e.url,embed:e.embed,onActivate:d,onDeactivate:u},`embed-${r}`))]})}],115200)},140713,e=>{"use strict";let t=/\bhttps?:\/\/[^\s<>"'`)]+/gi;function r(e){return e.replace(/[.,)\]!?;:]+$/g,"")}e.s(["detectVideoEmbed",0,function(e){if(!e)return null;let t=r(e),a=t.match(/(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{11})/i);return a?{provider:"youtube",label:"YouTube",embedUrl:`https://www.youtube.com/embed/${a[1]}`,aspectRatio:16/9}:(a=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/i))?{provider:"vimeo",label:"Vimeo",embedUrl:`https://player.vimeo.com/video/${a[1]}`,aspectRatio:16/9}:(a=t.match(/drive\.google\.com\/file\/d\/([A-Za-z0-9_-]+)/i))?{provider:"drive",label:"Google Drive",embedUrl:`https://drive.google.com/file/d/${a[1]}/preview`,aspectRatio:16/9}:(a=t.match(/instagram\.com\/(?:p|reel|reels|tv)\/([A-Za-z0-9_-]+)/i))?{provider:"instagram",label:"Instagram",embedUrl:`https://www.instagram.com/p/${a[1]}/embed`,aspectRatio:9/16}:(a=t.match(/tiktok\.com\/@[\w.-]+\/video\/(\d+)/i))?{provider:"tiktok",label:"TikTok",embedUrl:`https://www.tiktok.com/embed/v2/${a[1]}`,aspectRatio:9/16}:null},"extractUrls",0,function(e){if(!e)return[];
1let a=(e.match(t)||[]).map(r).filter(Boolean),n=new Set,l=[];for(let e of a)n.has(e)||(n.add(e),l.push(e));return l},"hostnameFor",0,function(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}])},867056,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))});e.s(["ArrowDownTrayIcon",0,r],867056)},42473,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))});e.s(["CommandLineIcon",0,r],42473)},511736,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12.75 8.25v7.5m6-7.5h-3V12m0 0v3.75m0-3.75H18M9.75 9.348c-1.03-1.464-2.698-1.464-3.728 0-1.03 1.465-1.03 3.84 0 5.304 1.03 1.464 2.699 1.464 3.728 0V12h-1.5M4.5 19.5h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))});e.s(["GifIcon",0,r],511736)},928950,231319,224928,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))});e.s(["UserCircleIcon",0,r],928950);let a=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M3 2.25a.75.75 0 0 0 0 1.5v16.5h-.75a.75.75 0 0 0 0 1.5H15v-18a.75.75 0 0 0 0-1.5H3ZM6.75 19.5v-2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75ZM6 6.75A.75.75 0 0 1 6.75 6h.75a.75.75 0 0 1 0 1.5h-.75A.75.75 0 0 1 6 6.75ZM6.75 9a.75.75 0 0 0 0 1.5h.75a.75.75 0 0 0 0-1.5h-.75ZM6 12.75a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 0 1.5h-.75a.75.75 0 0 1-.75-.75ZM10.5 6a.75.75 0 0 0 0 1.5h.75a.75.75 0 0 0 0-1.5h-.75Zm-.75 3.75A.75.75 0 0 1 10.5 9h.75a.75.75 0 0 1 0 1.5h-.75a.75.75 0 0 1-.75-.75ZM10.5 12a.75.75 0 0 0 0 1.5h.75a.75.75 0 0 0 0-1.5h-.75ZM16.5 6.75v15h5.25a.75.75 0 0 0 0-1.5H21v-12a.75.75 0 0 0 0-1.5h-4.5Zm1.5 4.5a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75h-.008a.75.75 0 0 1-.75-.75v-.008Zm.75 2.25a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75v-.008a.75.75 0 0 0-.75-.75h-.008ZM18 17.25a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75h-.008a.75.75 0 0 1-.75-.75v-.008Z",clipRule:"evenodd"}))});e.s(["BuildingOffice2Icon",0,a],231319);let n=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M7.5 5.25a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v.205c.933.085 1.857.197 2.774.334 1.454.218 2.476 1.483 2.476 2.917v3.033c0 1.211-.734 2.352-1.936 2.752A24.726 24.726 0 0 1 12 15.75c-2.73 0-5.357-.442-7.814-1.259-1.202-.4-1.936-1.541-1.936-2.752V8.706c0-1.434 1.022-2.7 2.476-2.917A48.814 48.814 0 0 1 7.5 5.455V5.25Zm7.5 0v.09a49.488 49.488 0 0 0-6 0v-.09a1.5 1.5 0 0 1 1.5-1.5h3a1.5 1.5 0 0 1 1.5 1.5Zm-3 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}),t.createElement("path",{d:"M3 18.4v-2.796a4.3 4.3 0 0 0 .713.31A26.226 26.226 0 0 0 12 17.25c2.892 0 5.68-.468 8.287-1.335.252-.084.49-.189.713-.311V18.4c0 1.452-1.047 2.728-2.523 2.923-2.12.282-4.282.427-6.477.427a49.19 49.19 0 0 1-6.477-.427C4.047 21.128 3 19.852 3 18.4Z"}))});e.s(["BriefcaseIcon",0,n],224928)},177168,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",clipRule:"evenodd"}))});e.s(["UserIcon",0,r],177168)}]);

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.