PageSourceSearch

https://thetool.company/_next/static/chunks/18nd_u8xzvntq.js

js thetool.company collected 2026-09-24 14:59:27 UTC 26,111 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,416788,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(773993);let r=["M3.94 17.38 C3.94 19.04 3.54 19.59 2.79 20.05 C2.18 20.42 1.74 20.97 1.6 21.8","M20.06 17.38 C20.06 19.04 20.46 19.59 21.21 20.05 C21.82 20.42 22.26 20.97 22.4 21.8"];e.s(["PeopleGroupIcon",0,function(e){let i=(0,a.useId)(),o=e=>(0,t.jsxs)("g",{transform:"translate(2.64 4.95) scale(0.78)",fill:"none",stroke:e?"#000":"currentColor",strokeWidth:(e?3.65:1.65)/.78,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:s.HEAD,fill:e?"#000":"var(--sq-plane-skin, none)"}),s.SHOULDERS.map(e=>(0,t.jsx)("path",{d:e},e))]});return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",...e,children:[(0,t.jsxs)("mask",{id:i,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:[(0,t.jsx)("rect",{width:"24",height:"24",fill:"#fff"}),o(!0)]}),(0,t.jsx)("g",{mask:`url(#${i})`,children:[.1,14.3].map((e,a)=>(0,t.jsxs)("g",{children:[(0,t.jsx)("g",{transform:`translate(${e} 10.3) scale(0.4)`,children:(0,t.jsx)("path",{d:s.HEAD,fill:"var(--sq-plane-skin, none)",stroke:"currentColor",strokeWidth:2.9999999999999996,strokeLinejoin:"round"})}),(0,t.jsx)("path",{d:r[a],stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round"})]},e))}),o(!1)]})}])},773993,e=>{"use strict";var t=e.i(843476);let a="M12 3 C15.5 3 17.9 5.6 17.9 9.3 C17.9 12 17.3 14.2 16.1 15.8 C15 17.2 13.6 18 12 18 C10.4 18 9 17.2 7.9 15.8 C6.7 14.2 6.1 12 6.1 9.3 C6.1 5.6 8.5 3 12 3 Z",s=["M9.6 17.7 C9.6 19.5 8.5 20.1 6.4 20.6 C4.7 21 3.5 21.6 3.1 22.5","M14.4 17.7 C14.4 19.5 15.5 20.1 17.6 20.6 C19.3 21 20.5 21.6 20.9 22.5"];e.s(["HEAD",0,a,"PeopleIcon",0,function(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("path",{d:a,fill:"var(--sq-plane-skin, none)"}),s.map(e=>(0,t.jsx)("path",{d:e},e))]})},"SHOULDERS",0,s])},867299,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let s={x:1,y:16},r=3.6/(7+Math.PI/2*1.5+2),i=r/2,o=1+r/2,l=3.4499999999999997,n={x:s.x+4,y:s.y+2.5},c=520,d=1060,u=630,h=980,p=1370,f=1670,x=e=>e<0?0:e>1?1:e,m=e=>e*e*(3-2*e);function g(e,t,a){if(e<=t)return 0;let s=x((e-t)/150);if(s<1)return m(s);let r=x((e-a)/300);return r>0?1-m(r):1}e.s(["SequencesIcon",0,function({className:e,...y}){let k=(0,a.useRef)(null),v=(0,a.useId)();return(0,a.useEffect)(()=>{let e=k.current,t=e?.closest(".sq-tile");if(!e||!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let a=e.querySelector("[data-dot]"),s=e.querySelector("[data-run]"),y=Array.from(e.querySelectorAll("[data-lamp]"));if(!a||!s||!y.length)return;let v=0,j=0,C=0,b=()=>{for(let e of(a.style.transform="",a.style.opacity="",s.style.strokeDasharray="",s.style.strokeDashoffset="",y))e.style.opacity=""},w=(e,t)=>{let{x:f,y:k,k:v,o:j}=function(e){if(e<d){let t=x((e-220)/260),a=m(x((e-c)/190));return{x:11,y:-3.2+(l- -3.2)*t*t,k:1-.35*a,o:x(e/90)*(1-a)}}let t=m(x((e-d)/150)),a=m(x((e-p)/300));return{x:n.x,y:n.y,k:.65+.35*t,o:t*(1-a)}}(e);for(let s of(a.style.transform=`translate(${f.toFixed(3)}px, ${k.toFixed(3)}px) scale(${v.toFixed(3)})`,a.style.opacity=(j*t).toFixed(3),y)){let a="top"===s.dataset.lamp?g(e,440,u):g(e,h,p);s.style.opacity=(a*Number(s.dataset.peak??1)*t).toFixed(3)}let C=function(e){let t=(e,t,a)=>{let s=1-a;return 3*s*s*a*e+3*s*a*a*t+a*a*a};if(e<=0)return 0;if(e>=1)return 1;let a=0,s=1;for(let r=0;r<20;r++){let r=(a+s)/2;t(.25,.72,r)<e?a=r:s=r}return t(.25,1,(a+s)/2)}(x((e-c)/540)),b=r*m(x(C/.12))*t;s.style.strokeDasharray=`1 ${b.toFixed(4)}`,s.style.strokeDashoffset=(1-(i+C*(o-i))+b/2).toFixed(4)},M=e=>{let t=e-j,a=C?x(1-(e-C)/180):1;if(a<=0||!C&&t>=f){v=0,j=0,C=0,b();return}w(t,a),v=requestAnimationFrame(M)},q=()=>{!t.closest(".app-card-anchor")?.hasAttribute("data-suppress-hover")&&(C=0,j=performance.now(),w(0,1),v||(v=requestAnimationFrame(M)))},z=()=>{v&&!C&&(C=performance.now())};return t.addEventListener("mouseenter",q),t.addEventListener("mouseleave",z),()=>{t.removeEventListener("mouseenter",q),t.removeEventListener("mouseleave",z),cancelAnimationFrame(v),b()}},[k]),(0,t.jsxs)("svg",{ref:k,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",className:e?`sequences-icon ${e}`:"sequences-icon",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...y,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("filter",{id:v,filterUnits:"userSpaceOnUse",x:"-6",y:"-6",width:"34",height:"34",colorInterpolationFilters:"sRGB",children:(0,t.jsx)("feGaussianBlur",{stdDeviation:"0.9"})})}),(0,t.jsxs)("g",{filter:`url(#${v})`,stroke:"none",children:[(0,t.jsx)("rect",{"data-lamp":"top","data-
1peak":"0.55",x:7,y:1,width:8,height:5,rx:1.5,fill:"var(--sq-spark, none)",opacity:0}),(0,t.jsx)("rect",{"data-lamp":"branch","data-peak":"0.55",x:s.x,y:s.y,width:8,height:5,rx:1.5,fill:"var(--sq-spark, none)",opacity:0})]}),(0,t.jsx)("rect",{x:7,y:1,width:8,height:5,rx:1.5,fill:"var(--sq-sky, none)"}),(0,t.jsx)("rect",{x:s.x,y:s.y,width:8,height:5,rx:1.5,fill:"var(--sq-sky, none)"}),(0,t.jsx)("rect",{x:13,y:16,width:8,height:5,rx:1.5,fill:"var(--sq-sky, none)"}),(0,t.jsx)("path",{"data-run":!0,d:"M11 8V10.5H6.5A1.5 1.5 0 0 0 5 12V14",pathLength:1}),(0,t.jsx)("path",{d:"M11 10.5H15.5A1.5 1.5 0 0 1 17 12V14"}),(0,t.jsx)("rect",{"data-lamp":"top",x:7,y:1,width:8,height:5,rx:1.5,fill:"var(--sq-spark, none)",opacity:0}),(0,t.jsx)("rect",{"data-lamp":"branch",x:s.x,y:s.y,width:8,height:5,rx:1.5,fill:"var(--sq-spark, none)",opacity:0}),(0,t.jsx)("circle",{"data-dot":!0,cx:0,cy:0,r:1.2,fill:"var(--sq-bead, currentColor)",stroke:"currentColor",strokeWidth:.9,opacity:0,style:{transformBox:"view-box",transformOrigin:"0px 0px"}})]})}])},667379,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(569074),r=e.i(735501),i=e.i(37727),o=e.i(263488),l=e.i(278716),n=e.i(387951),c=e.i(194983),d=e.i(514764),u=e.i(245423),h=e.i(870273),p=e.i(790597),f=e.i(39312),x=e.i(805899),m=e.i(87316),g=e.i(327025),y=e.i(991799),k=e.i(897250),v=e.i(727927),j=e.i(653339),C=e.i(810980),b=e.i(730699),w=e.i(209912),M=e.i(63727),q=e.i(694351),z=e.i(620278),N=e.i(98919),A=e.i(751975),S=e.i(571930),P=e.i(25652),I=e.i(296139),L=e.i(248256),H=e.i(905257),$=e.i(88081),B=e.i(332102),_=e.i(931091),F=e.i(416788),E=e.i(978200),U=e.i(476819),V=e.i(846696),W=e.i(59377),R=e.i(867299),T=e.i(788042),O=e.i(324973),D=e.i(839174),Z=e.i(647163),G=e.i(341256),J=e.i(327147);let K={gmail:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z"})}),linkedin:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M6.94 5a2 2 0 1 1-4-.002 2 2 0 0 1 4 .002ZM7 8.48H3V21h4V8.48Zm6.32 0H9.34V21h3.94v-6.57c0-3.66 4.77-4 4.77 0V21H22v-7.93c0-6.17-7.06-5.94-8.72-2.91l.04-1.68Z"})}),slack:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})}),whatsapp:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M12.04 2C6.58 2 2.13 6.45 2.13 11.91C2.13 13.66 2.59 15.36 3.45 16.86L2.05 22L7.3 20.62C8.75 21.41 10.38 21.83 12.04 21.83C17.5 21.83 21.95 17.38 21.95 11.92C21.95 9.27 20.92 6.78 19.05 4.91C17.18 3.03 14.69 2 12.04 2ZM12.05 3.67C14.25 3.67 16.31 4.53 17.87 6.09C19.42 7.65 20.28 9.72 20.28 11.92C20.28 16.46 16.58 20.15 12.04 20.15C10.56 20.15 9.11 19.76 7.85 19.01L7.55 18.83L4.43 19.65L5.26 16.61L5.06 16.29C4.24 14.98 3.8 13.46 3.8 11.91C3.81 7.37 7.5 3.67 12.05 3.67ZM8.53 7.33C8.37 7.33 8.1 7.39 7.87 7.64C7.65 7.89 7 8.5 7 9.71C7 10.93 7.89 12.1 8.01 12.27C8.14 12.44 9.76 14.94 12.25 16.01C14.33 16.9 14.74 16.74 15.18 16.7C15.62 16.65 16.62 16.03 16.83 15.38C17.04 14.74 17.04 14.19 16.97 14.08C16.91 13.97 16.74 13.91 16.5 13.79C16.25 13.67 15.04 13.07 14.82 12.99C14.6 12.91 14.44 12.87 14.27 13.12C14.1 13.37 13.63 13.91 13.48 14.08C13.34 14.26 13.19 14.28 12.95 14.16C12.7 14.04 11.93 13.78 11.01 12.95C10.3 12.31 9.82 11.52 9.68 11.27C9.53 11.02 9.66 10.89 9.79 10.77C9.9 10.66 10.04 10.48 10.16 10.34C10.29 10.19 10.33 10.
108 10.41 9.91C10.49 9.74 10.45 9.59 10.39 9.47C10.33 9.35 9.83 8.13 9.63 7.63C9.43 7.15 9.23 7.22 9.08 7.21C8.93 7.2 8.69 7.33 8.53 7.33Z"})}),sms:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M12 5.5C7.86 5.5 4.5 8.23 4.5 11.6C4.5 13.48 5.56 15.15 7.2 16.26L6.5 18.5L9.1 17.24C10 17.54 10.97 17.7 12 17.7C16.14 17.7 19.5 14.97 19.5 11.6C19.5 8.23 16.14 5.5 12 5.5Z"})}),email:o.Mail,phone:T.IPhoneIcon,video:l.Video,voice:n.Mic,message:c.MessageCircle,send:d.Send,inbox:B.Inbox,target:z.Target,rocket:w.Rocket,sparkles:E.SparkleIcon,zap:f.Zap,megaphone:_.Megaphone,trending:P.TrendingUp,star:h.Star,heart:p.Heart,bell:u.Bell,flag:x.Flag,tag:A.Tag,bookmark:S.Bookmark,shield:N.Shield,gift:b.Gift,task:O.TasksIcon,calendar:m.Calendar,folder:g.Folder,book:C.BookOpen,briefcase:M.Briefcase,home:q.Home,globe:L.Globe,users:F.PeopleGroupIcon,hash:$.Hash,coffee:I.Coffee,headphones:H.Headphones,music:j.Music,moon:y.Moon,sun:k.Sun,cloud:v.Cloud},X=["#64748B","#EF4444","#F97316","#F59E0B","#10B981","#14B8A6","#0EA5E9","#6366F1","#8B5CF6","#EC4899"],Q=X[6];function Y({icon_url:e,icon_key:a,icon_color:s,size:r=28,className:i,fallback:o}){if(e)return(0,t.jsx)("div",{className:(0,Z.cn)("shrink-0 squircle avatar-border bg-muted overflow-hidden",i),style:{width:(0,U.designPx)(r),height:(0,U.designPx)(r)},children:(0,t.jsx)("img",{src:e,alt:"",className:"size-full object-cover"})});if(a?.startsWith("custom:")){let e=a.slice(7);return(0,t.jsx)("div",{className:(0,Z.cn)("shrink-0 squircle flex items-center justify-center",i),style:{backgroundColor:s||Q,width:(0,U.designPx)(r),height:(0,U.designPx)(r)},children:(0,t.jsx)("span",{"aria-hidden":!0,style:{width:(0,U.designPx)(.55*r),height:(0,U.designPx)(.55*r),backgroundColor:"white",WebkitMaskImage:`url(${e})`,maskImage:`url(${e})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"}})})}let l=a?K[a]:null;return l?(0,t.jsx)("div",{className:(0,Z.cn)("shrink-0 squircle flex items-center justify-center",i),style:{backgroundColor:s||Q,width:(0,U.designPx)(r),height:(0,U.designPx)(r)},children:(0,t.jsx)(l,{className:"text-white",style:{width:(0,U.designPx)(.5*r),height:(0,U.designPx)(.5*r)},strokeWidth:2})}):void 0!==o?(0,t.jsx)(t.Fragment,{children:o}):(0,t.jsx)("div",{className:(0,Z.cn)("shrink-0 squircle avatar-border bg-muted flex items-center justify-center",i),style:{width:(0,U.designPx)(r),height:(0,U.designPx)(r)},children:(0,t.jsx)(R.SequencesIcon,{className:"text-muted-foreground",style:{width:(0,U.designPx)(.5*r),height:(0,U.designPx)(.5*r)}})})}e.s(["SequenceIcon",0,Y,"SequenceIconPicker",0,function({sequenceId:e,icon_url:o,icon_key:l,icon_color:n,onChange:c,size:d=40,persist:u,uploadFolder:h="sequences",fallback:p,"aria-label":f="Customize sequence icon"}){let x=(0,a.useRef)(null),m=(0,a.useRef)(null),[g,y]=(0,a.useState)(null),[k,v]=(0,a.useState)(!1),[j,C]=(0,a.useState)([]),b=n||Q;async function w(t){c(t),(u?await u(t):(await fetch(`/api/sequences/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)||V.toast.error("Failed to save icon")}async function M(t){y("image");try{let a=await (0,D.uploadImage)(t,h,e);if(!a)return void V.toast.error("Upload failed");await w({icon_url:a,icon_key:null,icon_color:null})}finally{y(null)}}async function q(e){y("icon");try{let t=`${Date.now()}-${Math.random().toString(36).slice(2,8)}`,a=await (0,D.uploadImage)(e,"sequence-icons",t);if(!a)return void V.toast.error("Upload failed");let s=await fetch("/api/sequence-icons",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:a})});if(!s.ok)return void V.toast.error("Failed to save icon");let r=await s.json();C(e=>[r,...e]),w({icon_url:null,icon_key:`custom:${a}`,icon_color:b})}finally{y(null)}}async function z(e){C(t=>t.filter(t=>t.id!==e)),await fetch(`/api/sequence-icons/${e}`,{method:"DELETE"})}function N(e){w({icon_url:null,icon_key:l??"rocket",icon_color:e})}(0,a.useEffect)(()=>{k&&fetch("/api/sequence-icons").then(e=>e.json()).then(e=>C(Array.isArray(e)?e:[])).catch(()=>{})},[k]);let A=!!(o||l),S=l?.startsWith("custom:")?l.slice(7):null;return(0,t.jsxs)(W.Popover,{open:k,onOpenChange:v,children:[(0,t.jsx)(W.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":f,title:f,className:"relative cursor-pointer hover:opacity-80 transition-opacity",children:null!==g?(0,t.jsx)("div",{className:"shrink-0 squircle avatar-border bg-muted flex items-center justify-center",style:{width:(0,U.designPx)(d),height:(0,U.designPx)(d)},children:(0,t.jsx)(J.ButtonSpinner,{className:"text-muted-foreground"})}):(0,t.jsx)(Y,{icon_url:o,icon_key:l,icon_color:n,size:d,fallback:p})})}),(0,t.jsx)(W.PopoverContent,{className:"w-72 p-3",align:"start",sideOffset:6,children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground mb-1.5",children:"Color"}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-1.5",children:[X.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>N(e),className:(0,Z.cn)("size-5 rounded-full transition-transform hover:scale-110 cursor-pointer",b.toLowerCase()===e.toLowerCase()&&"ring-2 ring-offset-2 ring-offset-popover ring-foreground
1/30"),style:{backgroundColor:e},"aria-label":`Color ${e}`},e)),(0,t.jsx)("label",{className:"relative size-5 rounded-full cursor-pointer overflow-hidden border border-border",style:{background:"conic-gradient(from 0deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"},title:"Custom color","aria-label":"Pick custom color",children:(0,t.jsx)("input",{type:"color",value:b,onChange:e=>N(e.target.value),className:"absolute inset-0 opacity-0 cursor-pointer"})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground mb-1.5",children:"Icon"}),(0,t.jsxs)("div",{className:"grid grid-cols-7 gap-1.5",children:[j.map(e=>{let a=S===e.url;return(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.url,void w({icon_url:null,icon_key:`custom:${t}`,icon_color:b})},className:(0,Z.cn)("flex size-7 items-center justify-center squircle transition-opacity cursor-pointer hover:opacity-80",a&&"ring-2 ring-foreground/30"),style:{backgroundColor:a?b:"var(--muted)"},"aria-label":`Custom icon ${e.id}`,children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-4",style:{backgroundColor:a?"white":"var(--muted-foreground)",WebkitMaskImage:`url(${e.url})`,maskImage:`url(${e.url})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center"}})}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),z(e.id)},className:"absolute -top-1 -right-1 size-3.5 rounded-full bg-foreground text-background opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center cursor-pointer","aria-label":"Remove custom icon",children:(0,t.jsx)(i.X,{className:"size-2.5"})})]},e.id)}),Object.entries(K).map(([e,a])=>{let s=l===e;return(0,t.jsx)("button",{type:"button",onClick:()=>{w({icon_url:null,icon_key:e,icon_color:b})},className:(0,Z.cn)("flex size-7 items-center justify-center squircle transition-opacity cursor-pointer hover:opacity-80",s&&"ring-2 ring-foreground/30"),style:{backgroundColor:s?b:"var(--muted)"},"aria-label":`Icon ${e}`,children:(0,t.jsx)(a,{className:(0,Z.cn)("size-3.5",s?"text-white":"text-muted-foreground"),strokeWidth:2})},e)})]})]}),(0,t.jsxs)("div",{className:"flex gap-1.5 pt-1 border-t",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>m.current?.click(),disabled:null!==g,className:"flex-1 flex items-center justify-center gap-1.5 rounded-md border px-2 py-1.5 text-xs whitespace-nowrap hover:bg-muted transition-colors cursor-pointer disabled:opacity-50",title:"Upload a single-color SVG/PNG to use as a tintable icon",children:[(0,t.jsx)("span",{children:"Upload icon"}),"icon"===g?(0,t.jsx)(J.ButtonSpinner,{}):(0,t.jsx)(r.ImageIcon,{className:"size-3"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>x.current?.click(),disabled:null!==g,className:"flex-1 flex items-center justify-center gap-1.5 rounded-md border px-2 py-1.5 text-xs whitespace-nowrap hover:bg-muted transition-colors cursor-pointer disabled:opacity-50",title:"Upload a full image to use as the squircle",children:[(0,t.jsx)("span",{children:"Upload image"}),"image"===g?(0,t.jsx)(J.ButtonSpinner,{}):(0,t.jsx)(s.Upload,{className:"size-3"})]}),A&&(0,t.jsx)("button",{type:"button",onClick:function(){w({icon_url:null,icon_key:null,icon_color:null})},className:"flex items-center justify-center gap-1 rounded-md border px-2 py-1.5 text-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors cursor-pointer","aria-label":"Reset icon",title:"Reset icon",children:(0,t.jsx)(G.TrashIcon,{className:"size-3"})})]}),(0,t.jsx)("input",{ref:x,type:"file",accept:"image/*",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&M(t),e.target.value=""}}),(0,t.jsx)("input",{ref:m,type:"file",accept:"image/svg+xml,image/png",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&q(t),e.target.value=""}})]})})]})}])},296491,e=>{"use strict";e.s(["storageSafeExt",0,function(e,t){return e&&e.includes(".")&&(e.split(".").pop()?.toLowerCase()??"").replace(/[^a-z0-9]/g,"").slice(0,8)||t},"storageSafeName",0,function(e){let t=e.lastIndexOf("."),a=t>0&&/^[A-Za-z0-9]{1,8}$/.test(e.slice(t+1)),s=a?e.slice(t).toLowerCase():"";return((a?e.slice(0,t):e).replace(/[^\w.\-]+/g,"_").replace(/_{2,}/g,"_").replace(/^[_.]+|[_.]+$/g,"").slice(0,120)||"document")+s}])},839174,e=>{"use strict";var t=e.i(920755),a=e.i(296491);async function s(e,r,i,o="avatars"){let l=(0,t.createClient)(),{data:{user:n}}=await l.auth.getUser();if(!n)return null;
1let c=(0,a.storageSafeExt)(e.name,"jpg"),d=`${n.id}/${r}/${i}/image.${c}`,{error:u}=await l.storage.from(o).upload(d,e,{upsert:!0,contentType:e.type});if(u)return console.error("[uploadImage] Upload failed:",u.message,{bucket:o,filePath:d,fileSize:e.size,fileType:e.type}),null;let{data:h}=l.storage.from(o).getPublicUrl(d);return`${h.publicUrl}?t=${Date.now()}`}e.s(["uploadImage",0,s])},9657,e=>{"use strict";let t=(0,e.i(475254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["default",0,t])},245423,e=>{"use strict";var t=e.i(9657);e.s(["Bell",()=>t.default])},860278,e=>{"use strict";let t=(0,e.i(475254).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["default",0,t])},810980,e=>{"use strict";var t=e.i(860278);e.s(["BookOpen",()=>t.default])},444744,e=>{"use strict";let t=(0,e.i(475254).default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);e.s(["default",0,t])},571930,e=>{"use strict";var t=e.i(444744);e.s(["Bookmark",()=>t.default])},651617,e=>{"use strict";let t=(0,e.i(475254).default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["default",0,t])},727927,e=>{"use strict";var t=e.i(651617);e.s(["Cloud",()=>t.default])},135657,e=>{"use strict";let t=(0,e.i(475254).default)("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);e.s(["default",0,t])},296139,e=>{"use strict";var t=e.i(135657);e.s(["Coffee",()=>t.default])},889524,e=>{"use strict";let t=(0,e.i(475254).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["default",0,t])},327025,e=>{"use strict";var t=e.i(889524);e.s(["Folder",()=>t.default])},935832,e=>{"use strict";let t=(0,e.i(475254).default)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);e.s(["default",0,t])},730699,e=>{"use strict";var t=e.i(935832);e.s(["Gift",()=>t.default])},641877,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["default",0,t])},248256,e=>{"use strict";var t=e.i(641877);e.s(["Globe",()=>t.default])},473815,e=>{"use strict";let t=(0,e.i(475254).default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);e.s(["default",0,t])},905257,e=>{"use strict";var t=e.i(473815);e.s(["Headphones",()=>t.default])},403014,e=>{"use strict";let t=(0,e.i(475254).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["default",0,t])},694351,e=>{"use strict";var t=e.i(403014);e.s(["Home",()=>t.default])},564680,e=>{"use strict";let t=(0,e.i(475254).default)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);e.s(["default",0,t])},332102,e=>{"use strict";var t=e.i(564680);e.s(["Inbox",()=>t.default])},475121,e=>{"use strict";let t=(0,e.i(475254).default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]);e.s(["default",0,t])},931091,e=>{"use strict";var t=e.i(475121);e.s(["Megaphone",()=>t.default])},895631,e=>{"use strict";let t=(0,e.i(475254).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);e.s(["default",0,t])},194983,e=>{"use strict";var t=e.i(895631);e.s(["MessageCircle",()=>t.default])},40180,e=>{"use strict";let t=(0,e.i(475254).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["default",0,t])},653339,e=>{"use strict";var t=e.i(40180);e.s(["Music",()=>t.default])},555546,e=>{"use strict";let t=(0,e.i(475254).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
1kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["default",0,t])},209912,e=>{"use strict";var t=e.i(555546);e.s(["Rocket",()=>t.default])},199594,e=>{"use strict";let t=(0,e.i(475254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["default",0,t])},514764,e=>{"use strict";var t=e.i(199594);e.s(["Send",()=>t.default])},860243,e=>{"use strict";let t=(0,e.i(475254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["default",0,t])},569074,e=>{"use strict";var t=e.i(860243);e.s(["Upload",()=>t.default])}]);

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.