1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{235:(e,t,r)=>{r.d(t,{J:()=>i});var a=r(5155),s=r(2115),n=r(489),o=r(3101),l=r(5016);let d=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.b,{ref:t,className:(0,l.cn)(d(),r),...s})});i.displayName=n.b.displayName},752:(e,t,r)=>{r.d(t,{F:()=>f});var a=r(5155),s=r(2619),n=r.n(s),o=r(5239),l=r(8514),d=r(7013),i=r(5016),c=r(6759);let u={"working-on":"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",sold:"bg-amber-500/10 text-amber-600 dark:text-amber-400",sunseted:"bg-muted text-muted-foreground/50"};function f(e){let{project:t,onEdit:r,hideStatus:s}=e,f=(0,c.q)(t.icon),m=t.href.startsWith("http"),p=(0,a.jsxs)("div",{className:(0,i.cn)("flex items-center gap-4 rounded-lg px-4 py-3.5","border border-transparent","transition-all duration-200","hover:bg-card hover:border-border hover:shadow-sm",r&&"relative"),children:["custom-image"===t.icon&&t.href?(0,a.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg overflow-hidden bg-card border border-border",children:(0,a.jsx)(o.default,{src:"/images/mapletacos-logo.png",alt:"".concat(t.title," icon"),width:40,height:40,className:"w-full h-full object-cover"})}):(0,a.jsx)("div",{className:(0,i.cn)("flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center",t.status&&u[t.status]?u[t.status]:"bg-secondary text-muted-foreground"),children:(0,a.jsx)(f,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-medium text-foreground",children:t.title}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t.description})]}),r?(0,a.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},className:"flex-shrink-0 p-1.5 rounded-md hover:bg-secondary text-muted-foreground hover:text-foreground transition-colors",children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5"})}):(0,a.jsx)(d.A,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200"})]});return r?(0,a.jsx)("div",{className:"group block",children:p}):(0,a.jsx)(n(),{href:t.href,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,className:"group block",children:p})}},1406:(e,t,r)=>{r.d(t,{w:()=>l});var a=r(5155),s=r(2115),n=r(4052),o=r(5016);function l(e){let{value:t,onChange:r,as:l="p",className:d,multiline:i=!1,placeholder:c="Click to edit..."}=e,{isEditing:u}=(0,n.UB)(),f=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(f.current){let e=i?t.replace(/\n/g,"<br>"):t;f.current.innerHTML!==e&&(f.current.innerHTML=e)}},[t,u,i]),u)?(0,a.jsx)(l,{ref:f,contentEditable:!0,suppressContentEditableWarning:!0,className:(0,o.cn)(d,"outline-none ring-1 ring-primary/30 rounded-sm px-1 -mx-1","focus:ring-2 focus:ring-primary/50","hover:ring-primary/40 transition-shadow","empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground/50",i&&"whitespace-pre-wrap"),"data-placeholder":c,onBlur:e=>{let a=e.currentTarget.innerText||"";a!==t&&r(a)},onKeyDown:e=>{i||"Enter"!==e.key||(e.preventDefault(),e.currentTarget.blur())}}):(0,a.jsx)(l,{className:(0,o.cn)(d,i&&"whitespace-pre-wrap"),children:t})}},4052:(e,t,r)=>{r.d(t,{eo:()=>u,UB:()=>c});var a=r(5155),s=r(2115),n=r(926);let o=(0,n.createServerReference)("00f3ec8afbd7347168e37895e962d53146950dc9a8",n.callServer,void 0,n.findSourceMapURL,"getContent"),l=(0,n.createServerReference)("60631e9bbda830ba0a50a679cb28be2b83f8c6f011",n.callServer,void 0,n.findSourceMapURL,"saveContent");var d=r(8720);let i=(0,s.createContext)(null);function c(){let e=(0,s.useContext)(i);if(!e)throw Error("useEdit must be used within EditProvider");return e}function u(e){let{children:t}=e,[r,n]=(0,s.useState)(!1),[c,u]=(0,s.useState)(null),[f,m]=(0,s.useState)(null),[p,x]=(0,s.useState)(""),[h,g]=(0,s.useState)(!1),[b,v]=(0,s.useState)(!0),y=(0,s.useRef)(!1);(0,s.useEffect)(()=>{y.current||(y.current=!0,o().then(e=>{u(e),m(e),v(!1)}))},[]);let j=null!==c&&null!==f&&JSON.stringify(c)!==JSON.stringify(f),N=(0,s.useCallback)(e=>{x(e),n(!0),d.oR.success("Edit mode enabled")},[]),w=(0,s.useCallback)(()=>{u(f),n(!1),x(""),d.oR.info("Edit mode disabled")},[f]),A=(0,s.useCallback)(e=>{u(t=>t?e(t):t)},[]),k=(0,s.useCallback)(async()=>
1{if(c){g(!0);try{let e=await l(c,p);e.success?(m(c),d.oR.success("Changes saved")):d.oR.error(e.error||"Failed to save")}catch(e){d.oR.error("Failed to save changes")}finally{g(!1)}}},[c,p]);return(0,a.jsx)(i.Provider,{value:{isEditing:r,content:c,isLoading:b,password:p,enterEditMode:N,exitEditMode:w,updateContent:A,save:k,isSaving:h,isDirty:j},children:t})}},4679:(e,t,r)=>{r.d(t,{Cf:()=>u,L3:()=>m,c7:()=>f,lG:()=>d,rr:()=>p});var a=r(5155),s=r(2115),n=r(7539),o=r(5229),l=r(5016);let d=n.bL;n.l9;let i=n.ZL;n.bm;let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s})});c.displayName=n.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:r,children:s,...d}=e;return(0,a.jsxs)(i,{children:[(0,a.jsx)(c,{}),(0,a.jsxs)(n.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...d,children:[s,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let f=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};f.displayName="DialogHeader";let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...s})});m.displayName=n.hE.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...s})});p.displayName=n.VY.displayName},5016:(e,t,r)=>{r.d(t,{cn:()=>n});var a=r(2821),s=r(5889);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},6170:(e,t,r)=>{r.d(t,{p:()=>o});var a=r(5155),s=r(2115),n=r(5016);let o=s.forwardRef((e,t)=>{let{className:r,type:s,...o}=e;return(0,a.jsx)("input",{type:s,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...o})});o.displayName="Input"},6759:(e,t,r)=>{r.d(t,{q:()=>ee,u:()=>et});var a=r(6140),s=r(9602),n=r(6154),o=r(5710),l=r(9068),d=r(9633),i=r(9715),c=r(9397),u=r(9451),f=r(2508),m=r(4172),p=r(7910),x=r(803),h=r(4982),g=r(1390),b=r(3164),v=r(4255),y=r(8707),j=r(5221),N=r(1654),w=r(8271),A=r(8198),k=r(3457),C=r(6613),R=r(9324),S=r(5664),E=r(3586),T=r(9926),z=r(7209),L=r(9142),M=r(2317),P=r(512),U=r(8519),J=r(1761),D=r(5136),F=r(7937),B=r(9442),q=r(9699),_=r(5342),G=r(5937),O=r(3664),V=r(403),W=r(3633),$=r(1503),H=r(9427),I=r(5733),Y=r(9587),Z=r(9592),K=r(4947),Q=r(639);let X={Box:a.A,Code:s.A,Zap:n.A,Database:o.A,Globe:l.A,Briefcase:d.A,FileText:i.A,Layers:c.A,Monitor:u.A,Smartphone:f.A,Server:m.A,Shield:p.A,Terminal:x.A,Dumbbell:h.A,Bike:g.A,Mountain:b.A,Plane:v.A,Map:y.A,Compass:j.A,Tent:N.A,Waves:w.A,Flame:A.A,Heart:k.A,Trophy:C.A,Timer:R.A,Camera:S.A,Music:E.A,Palette:T.A,Film:z.A,Mic:L.A,Gamepad2:M.A,ShoppingCart:P.A,CreditCard:U.A,DollarSign:J.A,Store:D.A,BookOpen:F.A,GraduationCap:B.A,Microscope:q.A,Atom:_.A,MessageCircle:G.A,Mail:O.A,Megaphone:V.A,Rss:W.A,Leaf:$.A,Sun:H.A,CloudRain:I.A,Coffee:Y.A,Utensils:Z.A,Car:K.A,Rocket:Q.A};function ee(e){return X[e]||a.A}let et=Object.keys(X)},7001:(e,t,r)=>{r.d(t,{T:()=>o});var a=r(5155),s=r(2115),n=r(5016);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,n.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});o.displayName="Textarea"},7003:(e,t,r)=>{r.d(t,{$:()=>i});var a=r(5155),s=r(2115),n=r(2467),o=r(3101),l=r(5016);let d=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=s.forwardRef((e,t)=>
1{let{className:r,variant:s,size:o,asChild:i=!1,...c}=e,u=i?n.DX:"button";return(0,a.jsx)(u,{className:(0,l.cn)(d({variant:s,size:o,className:r})),ref:t,...c})});i.displayName="Button"},7507:(e,t,r)=>{r.d(t,{bq:()=>f,eb:()=>h,gC:()=>x,l6:()=>c,yv:()=>u});var a=r(5155),s=r(2115),n=r(646),o=r(4033),l=r(2108),d=r(5917),i=r(5016);let c=n.bL;n.YJ;let u=n.WT,f=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,i.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[s,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(o.A,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=n.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})});m.displayName=n.PP.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})});p.displayName=n.wn.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,position:o="popper",...l}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...l,children:[(0,a.jsx)(m,{}),(0,a.jsx)(n.LM,{className:(0,i.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});x.displayName=n.UC.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,i.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...s})}).displayName=n.JU.displayName;let h=s.forwardRef((e,t)=>{let{className:r,children:s,...o}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});h.displayName=n.q7.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=n.wv.displayName},9369:(e,t,r)=>{r.d(t,{j:()=>m});var a=r(5155),s=r(2115),n=r(6759),o=r(4679),l=r(6170),d=r(7001),i=r(235),c=r(7003),u=r(7507),f=r(5016);function m(e){let{open:t,onOpenChange:r,project:m,onSave:p,onDelete:x}=e,[h,g]=(0,s.useState)({id:"",title:"",description:"",icon:"Box",href:"",status:"working-on"});return(0,s.useEffect)(()=>{m?g(m):g({id:crypto.randomUUID(),title:"",description:"",icon:"Box",href:"",status:"working-on"})},[m,t]),(0,a.jsx)(o.lG,{open:t,onOpenChange:r,children:(0,a.jsxs)(o.Cf,{className:"sm:max-w-md",children:[(0,a.jsx)(o.c7,{children:(0,a.jsx)(o.L3,{className:"font-serif",children:m?"Edit Project":"Add Project"})}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p(h),r(!1)},className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.J,{htmlFor:"proj-title",children:"Title"}),(0,a.jsx)(l.p,{id:"proj-title",value:h.title,onChange:e=>g(t=>({...t,title:e.target.value})),placeholder:"Project name",required:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.J,{htmlFor:"proj-desc",children:"Description"}),(0,a.jsx)(d.T,{id:"proj-desc",value:h.description,onChange:e=>g(t=>({...t,description:e.target.value})),placeholder:"Short description, tags",rows:3,className:"resize-none"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.J,{htmlFor:"proj-href",children:"Link"}
1),(0,a.jsx)(l.p,{id:"proj-href",value:h.href,onChange:e=>g(t=>({...t,href:e.target.value})),placeholder:"https://..."})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.J,{children:"Icon"}),(0,a.jsx)("div",{className:"grid grid-cols-7 gap-1.5 max-h-40 overflow-y-auto rounded-md border border-border p-2",children:n.u.map(e=>{let t=(0,n.q)(e),r=h.icon===e;return(0,a.jsx)("button",{type:"button",onClick:()=>g(t=>({...t,icon:e})),className:(0,f.cn)("flex items-center justify-center h-9 w-full rounded-md border transition-colors",r?"border-foreground bg-foreground text-background":"border-border bg-background text-muted-foreground hover:text-foreground hover:border-foreground/50"),title:e,children:(0,a.jsx)(t,{className:"h-4 w-4"})},e)})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.J,{children:"Status"}),(0,a.jsxs)(u.l6,{value:h.status||"working-on",onValueChange:e=>g(t=>({...t,status:e})),children:[(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{})}),(0,a.jsxs)(u.gC,{children:[(0,a.jsx)(u.eb,{value:"working-on",children:"Working on"}),(0,a.jsx)(u.eb,{value:"sold",children:"Sold"}),(0,a.jsx)(u.eb,{value:"sunseted",children:"Sunseted"})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2 justify-end pt-2",children:[m&&x&&(0,a.jsx)(c.$,{type:"button",variant:"destructive",size:"sm",onClick:()=>{x(m.id),r(!1)},children:"Delete"}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsx)(c.$,{type:"button",variant:"outline",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,a.jsx)(c.$,{type:"submit",size:"sm",children:m?"Update":"Add Project"})]})]})]})})}}}]);
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.