1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{59386:function(e,t,l){l.d(t,{Z:function(){return O}});var a=l(85893),r=l(48578),s=l(33284),n=l(13895),i=l(18289),o=l(25675),d=l.n(o),c=l(41664),u=l.n(c),m=l(81627),x=l(67294),h=l(27014),p=l(92385),g=l(85343),v=l(52042),j=l(12779),b=l(37864),f=l(39332),y=l(40830),N=l(89804),w=l(50510),C=l(56047);let k=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)&&3===e.length&&e.every(e=>"number"==typeof e));function P(e){let t=(0,m.T_)("palettes"),{toast:l}=(0,w.pm)(),r=(0,f.useRouter)(),s=(0,y.bU)(),n=async()=>{let a="".concat(window.location.origin).concat(s?"/".concat(s):"","/user/shared-palette?id=").concat(e.savedPalette.id);await (0,C.v)(a)&&l({description:t("shareUrlCopy")})},i=()=>{if(!k(e.savedPalette.rgb))return;let t=e.savedPalette.rgb.map(e=>({rgb:e}));e.setPalette(t),e.setPaletteId(e.savedPalette.id),e.openDownloadModel()},o=()=>{e.deletePalette(e.savedPalette)};return(0,a.jsx)(N.nm,{children:(0,a.jsxs)(N.QP,{children:[(0,a.jsx)(N.rQ,{className:"cursor-pointer",children:(0,a.jsx)("svg",{className:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"})})}),(0,a.jsxs)(N.uE,{className:"w-56 ",children:[(0,a.jsx)("div",{className:"px-2 py-3 text-lg font-semibold border-b border-gray-200 mb-2",children:t("paletteSettings")}),(0,a.jsx)(N.N,{className:"cursor-pointer px-3 py-3 hover:bg-transparent focus:bg-transparent rounded-none border-none",onClick:e=>{e.preventDefault(),n()},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(p.Z,{className:"w-5 h-5 text-gray-400 hover:text-gray-500"}),(0,a.jsx)("span",{className:"text-gray-400 hover:text-gray-500",children:t("copyShareUrl")})]})}),(0,a.jsx)(N.N,{className:"cursor-pointer px-3 py-3 hover:bg-transparent focus:bg-transparent rounded-none border-none",onClick:t=>{var l;t.preventDefault(),null===(l=e.onOpenMoveModal)||void 0===l||l.call(e)},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(g.Z,{className:"w-5 h-5 text-gray-400 hover:text-gray-500"}),(0,a.jsx)("span",{className:"text-gray-400 hover:text-gray-500",children:t("moveToCollection")})]})}),(0,a.jsx)(N.N,{className:"cursor-pointer px-3 py-3 hover:bg-transparent focus:bg-transparent rounded-none border-none",onClick:t=>{t.preventDefault(),r.push("/palette/edit?id=".concat(e.savedPalette.i
1d))},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(v.Z,{className:"w-5 h-5 text-gray-400 hover:text-gray-500"}),(0,a.jsx)("span",{className:"text-gray-400 hover:text-gray-500",children:t("edit")})]})}),(0,a.jsx)(N.N,{className:"cursor-pointer px-3 py-3 hover:bg-transparent focus:bg-transparent rounded-none border-none",onClick:e=>{e.preventDefault(),i()},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(j.Z,{className:"w-5 h-5 text-gray-400 hover:text-gray-500"}),(0,a.jsx)("span",{className:"text-gray-400 hover:text-gray-500",children:t("download")})]})}),(0,a.jsx)(N.N,{className:"cursor-pointer px-3 py-3 hover:bg-transparent focus:bg-transparent rounded-none border-none",onClick:e=>{e.preventDefault(),o()},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(b.Z,{className:"w-5 h-5 text-gray-400 hover:text-gray-500"}),(0,a.jsx)("span",{className:"text-gray-400 hover:text-gray-500",children:t("delete")})]})})]})]})})}var A=l(89346);function Z(e){let{cardCount:t=6,viewMode:l="grid"}=e;return(0,a.jsx)("div",{className:"mb-4 animate-pulse",children:(0,a.jsx)(e=>{let{children:t}=e;return(0,a.jsx)("div",{className:"grid"===l?"grid gap-4 grid-cols-1 lg:grid-cols-2":"space-y-4",children:t})},{children:Array.from({length:t}).map((e,t)=>(0,a.jsx)(A.Zb,{className:"bg-background shadow-2xl relative border-border rounded-2xl overflow-hidden ",children:(0,a.jsxs)(A.aY,{className:"p-2 md:p-6",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("div",{className:"h-5 w-40 bg-gray-300 dark:bg-gray-600 rounded"}),(0,a.jsx)("div",{className:"h-8 w-8 bg-gray-300 dark:bg-gray-600 rounded"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-3",children:[(0,a.jsx)("div",{className:"h-4 w-28 bg-gray-300 dark:bg-gray-600 rounded"}),(0,a.jsx)("div",{className:"h-4 w-24 bg-gray-300 dark:bg-gray-600 rounded"})]}),(0,a.jsx)("div",{className:"hidden sm:flex h-10 overflow-hidden rounded-full border border-border shadow-sm",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)("div",{className:"flex-1 bg-gray-300 dark:bg-gray-600"},t))}),(0,a.jsx)("div",{className:"w-full sm:hidden pb-2",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)("div",{className:"w-full h-12 mb-2 last:mb-0 rounded-lg bg-gray-300 dark:bg-gray-600"},t))})]})},t))})})}var M=l(80859),I=l(67480),S=l(87198),D=l(5305),_=l(34273),Q=l(34020),U=l(79208),E=l(88149);function O(e){var t,l,o,c,p,g;let{filterCollectionId:v,hideAddButton:j,viewMode:b,data:f,search:y,publicMode:N=!1}=e,[k,O]=(0,x.useState)([]),[T,z]=(0,x.useState)(E.a),[B,L]=(0,x.useState)(""),[R,q]=(0,x.useState)(null),[V,Y]=(0,x.useState)(!1),[$,F]=(0,x.useState)(!1),[J,W]=(0,x.useState)(null),[X,G]=(0,x.useState)(null),H=(0,m.T_)("palettes"),K=(0,m.T_)("common"),{toast:ee}=(0,w.pm)(),et=Q.h.useUtils(),{authUser:el}=(0,_.a)(),{data:ea,isLoading:er}=Q.h.palette.getAll.useQuery({query:null!=y?y:void 0},{enabled:!!el&&!f}),es=Q.h.palette.delete.useMutation({onSuccess:()=>{ee({description:H("successfullyDeleted")}),et.collection.getItemsCombined.invalidate(),et.palette.getAll.invalidate()},onError:e=>{ee({title:H("titlePalette"),description:H(e.message),variant:"destructive"})}}),en=async()=>{if(!R)return;let e=R.id;if(e)try{await es.mutateAsync({id:e}),O(t=>t.filter(t=>t.id!==e)),q(null)}catch(e){console.error("Error deleting palette:",e)}},ei=(0,x.useCallback)(e=>{q(e)},[]);(0,x.useEffect)(()=>{if(f&&Array.isArray(f)){O(v?f.filter(e=>e.collectionId===v):f);return}if(Array.isArray(ea)&&ea.length>0){let e=ea[0].id?ea:ea.map(e=>{var t;return{...e.palette,imageUrl:null!==(t=e.imageUrl)&&void 0!==t?t:null}});O(v?e.filter(e=>e.collectionId===v):e)}else O([])},[ea,v,f]);let eo=(0,x.useMemo)(()=>{let e=new Map;if(Array.isArray(ea)&&ea.length>0){let t=ea[0];t&&"object"==typeof t&&"palette"in t&&ea.forEach(t=>{var l;(null==t?void 0:null===(l=t.palette)||void 0===l?void 0:l.id)&&e.set(t.palette.id,{collection:t.collection,project:t.project})})}return e},[ea]),ed=Array.isArray(f),ec=0===k.length&&(ed||!!el&&!er);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.Vq,{open:!!R,onOpenChange:()=>q(null),children:(0,a.jsxs)(D.cZ,{className:"max-w-md",children:[(0,a.jsx)(D.$N,{className:"flex justify-center px-4 py-6",children:H("confirmDeletePalette")}),(0,a.jsx)(D.cN,{className:"p-0 text-sm",children:(0,a.jsxs)("div",{className:"flex w-full justify-between border-t",children:[(0,a.jsx)("button",{type:"button",className:"w-1/2 text-center cursor-pointer border-r p-4 hover:bg-muted transition-colors",onClick:()=>q(null),children:H("cancel")}),(0,a.jsx)("button",{type:"button",className:"w-1/2 text-center cursor-pointer p-4 hover:bg-muted transition-colors",onClick:()=>{en()},children:H("remove")})]})})]})}),(0,a.jsx)(M.Z,{src:X,alt:H("imagePreview"),onClose:()=>G(null)}),(0,a.jsx)(h.Z,{palette:T,id:B,open:V,onClose:()=>{Y(!1)}}),(0,a.jsx)("div",{className:"flex flex-col relative max-w-full flex-1 items-stretch",children:(0,a.jsxs)("div",{className:"flex flex-col flex-grow",children:[!ed&&(!el||er)&&(0,a.jsx)(Z,{viewMode:null!=b?b:"grid"}),ec&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(A.Zb,{className:"bg-background shadow-2xl relative border-border rounded-2xl",children:(0,a.jsx)(A.aY,{className:"p-6 text-center",children:(0,a.jsx)("div",{className:"py-8",children:(0,a.jsxs)("p",{className:"text-muted-foreground",children:[(0,a.jsxs)("span",{className:"font-semibold",children:[H("noD
1ata"),":"]})," ",(0,a.jsx)("span",{className:"text-sm",children:H("noDataDescription")})]})})})})}),(0,a.jsx)("div",{className:"grid"===b?"grid gap-4 grid-cols-1 lg:grid-cols-2":void 0,children:k.map((e,t)=>{var l,o,c,m,x,h;let p=(null===(l=e.imageUrl)||void 0===l?void 0:l.startsWith("/api/image/"))?e.imageUrl:null;return(0,a.jsx)(A.Zb,{className:"bg-background shadow-2xl relative border-border rounded-2xl "+("grid"===b?"":"mb-4"),children:(0,a.jsxs)(A.aY,{className:"p-2 md:p-6",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("h1",{className:"font-semibold text-lg",children:e.title||H("paletteNumber",{number:t+1})}),!N&&(0,a.jsx)(P,{savedPalette:e,openDownloadModel:()=>{Y(!0)},setPalette:e=>z(e),paletteId:B,setPaletteId:e=>L(e),deletePalette:ei,onOpenMoveModal:()=>{W(e),F(!0)}})]}),(null!==(h=null===(o=eo.get(e.id))||void 0===o?void 0:o.project)&&void 0!==h?h:null===(c=eo.get(e.id))||void 0===c?void 0:c.collection)&&(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-3",children:[(null===(m=eo.get(e.id))||void 0===m?void 0:m.project)&&(0,a.jsxs)(u(),{href:"/dashboard/projects/".concat(eo.get(e.id).project.id),className:"inline-flex items-center gap-1 hover:text-foreground",children:[(0,a.jsx)(r.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"truncate max-w-[14rem]",children:eo.get(e.id).project.name})]}),(null===(x=eo.get(e.id))||void 0===x?void 0:x.collection)&&(0,a.jsxs)(u(),{href:"/dashboard/collections/".concat(eo.get(e.id).collection.id),className:"inline-flex items-center gap-1 hover:text-foreground",children:[(0,a.jsx)(s.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"truncate max-w-[14rem]",children:eo.get(e.id).collection.name})]})]}),p&&(0,a.jsxs)("button",{type:"button",className:"relative mb-2 h-[120px] w-full overflow-hidden rounded-xl bg-muted cursor-pointer group transition-opacity hover:opacity-90",onClick:()=>G(p),"aria-label":H("openImagePreview"),children:[(0,a.jsx)(d(),{src:p,alt:e.title||H("imagePreview"),fill:!0,className:"object-contain",unoptimized:!0}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:(0,a.jsx)("div",{className:"rounded-full bg-black/40 backdrop-blur-sm p-2",children:(0,a.jsx)(n.Z,{className:"h-5 w-5 text-white"})})})]}),(0,a.jsx)("div",{className:"hidden sm:flex h-10 overflow-hidden rounded-full border border-border shadow-sm",children:e.rgb.map((t,l)=>{let r=(0,U.vq)({r:t[0],g:t[1],b:t[2]},!0),s=(0,U.ou)(r);return(0,a.jsx)("button",{type:"button",className:"flex-1 cursor-pointer transition-all duration-200 relative group border-0 p-0",style:{backgroundColor:"rgb("+t[0]+","+t[1]+","+t[2]+")",borderTopLeftRadius:0===l?"0.5rem":"",borderBottomLeftRadius:0===l?"0.5rem":"",borderTopRightRadius:l===e.rgb.length-1?"0.5rem":"",borderBottomRightRadius:l===e.rgb.length-1?"0.5rem":""},"aria-label":r,onClick:()=>{(async()=>{await (0,C.v)(r)&&ee({description:r+" "+H("copied")})})()},children:(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center transition-opacity duration-200 opacity-0 group-hover:opacity-100",children:(0,a.jsx)("div",{className:"text-sm font-mono font-medium px-3 py-1 rounded-md bg-black/20 backdrop-blur-sm",style:{color:s},children:r})})},"desktop-"+l)})}),(0,a.jsx)("div",{className:"w-full sm:hidden pb-2 ",children:e.rgb.map((e,t)=>{let l=(0,U.vq)({r:e[0],g:e[1],b:e[2]},!0),r=(0,U.ou)(l);return(0,a.jsxs)("button",{onClick:()=>{(async()=>{await (0,C.v)(l)&&ee({description:l+" "+H("copied")})})()},className:"w-full h-12 mb-2 last:mb-0 rounded-lg relative flex items-center shadow-sm transition-all duration-200 hover:shadow-md active:scale-[0.98]",style:{backgroundColor:"rgb("+e[0]+","+e[1]+","+e[2]+")"},children:[(0,a.jsx)("div",{className:"absolute left-3 flex-shrink-0 border border-border rounded-lg p-2 bg-white/90 backdrop-blur-sm",children:(0,a.jsx)(i.Z,{className:"h-4 w-4 text-black dark:text-white"})}),(0,a.jsx)("div",{className:"flex-1 flex justify-center",children:(0,a.jsx)("span",{className:"text-sm font-mono font-medium",style:{color:r},children:l})})]},"mobile-"+t)})})]})},e.id)})}),!j&&(0,a.jsx)(S.Z,{href:"/palette/create",ariaLabel:K("createNewPalette")})]})}),J&&(0,a.jsx)(I.Z,{open:$,onOpenChange:e=>F(e),entity:"palette",item:{id:J.id,title:J.title,rgb:J.rgb},initialProjectId:null!==(p=null===(l=eo.get(J.id))||void 0===l?void 0:null===(t=l.project)||void 0===t?void 0:t.id)&&void 0!==p?p:void 0,initialCollectionId:null!==(g=null===(c=eo.get(J.id))||void 0===c?void 0:null===(o=c.collection)||void 0===o?void 0:o.id)&&void 0!==g?g:void 0,onMoved:()=>{W(null)}})]})}},80859:function(e,t,l){l.d(t,{Z:function(){return d}});var a=l(85893),r=l(33274),s=l(25675),n=l.n(s),i=l(67294),o=l(5305);function d(e){let{src:t,alt:l,onClose:s}=e,[d,c]=(0,i.useState)(!1);return(0,a.jsx)(o.Vq,{open:!!t,onOpenChange:()=>s(),children:(0,a.jsxs)(o.cZ,{className:"max-w-[calc(100vw-2rem)] sm:max-w-3xl p-4",children:[(0,a.jsxs)(r.TX,{children:[(0,a.jsx)(o.$N,{children:l}),(0,a.jsx)(o.Be,{children:l})]}),t&&!d&&(0,a.jsx)("div",{className:"relative w-full flex items-center justify-center",children:(0,a.jsx)(n(),{src:t,alt:l,width:800,height:600,className:"max-h-[85dvh] w-auto object-contain rounded-xl",unoptimized:!0,onError:()=>c(!0)})})]})})}},67480:function(e,t,l){l.d(t,{Z:function(){return h}});var a=l(85893),r=l(4270),s=l(81627),n=l(67294),i=l(7455),o=l(34020),d=l(98778),c=l(5305),u=l(91538),m=l(4350),x=l(50510);function h(e){var t,l;let h=(0,s.T_)("collections"),p=(0,s.T_)("createPalette"),g=o.h.useUtils(),{toast:v}
1=(0,x.pm)(),[j,b]=(0,n.useState)(""),[f,y]=(0,n.useState)(""),[N,w]=(0,n.useState)(!1),{data:C,isLoading:k}=o.h.project.getAll.useQuery({includeArchived:!1}),P=(0,n.useMemo)(()=>Array.isArray(C)?C:[],[C]),A=1===P.length&&null!==(l=null===(t=P[0])||void 0===t?void 0:t.id)&&void 0!==l?l:"",Z=j||A,{data:M,isLoading:I}=o.h.collection.listByProject.useQuery({projectId:Z},{enabled:!!Z}),S=(0,n.useMemo)(()=>Array.isArray(M)?M:[],[M]);(0,n.useEffect)(()=>{if(e.open){var t,l;b(null!==(t=e.initialProjectId)&&void 0!==t?t:""),y(null!==(l=e.initialCollectionId)&&void 0!==l?l:"")}},[e.open,e.initialProjectId,e.initialCollectionId]),(0,n.useEffect)(()=>{var t,l;if(!e.open||j||f||1!==P.length||1!==S.length)return;let a=null===(t=P[0])||void 0===t?void 0:t.id,r=null===(l=S[0])||void 0===l?void 0:l.id;a&&r&&(b(a),y(r))},[e.open,P,S,j,f]);let D=o.h.palette.edit.useMutation(),_=o.h.gradient.update.useMutation(),Q=o.h.color.update.useMutation(),U=async()=>{if(j&&f)try{if("palette"===e.entity)await D.mutateAsync({id:e.item.id,data:{title:e.item.title,rgb:e.item.rgb,collectionId:f}}),await g.palette.getAll.invalidate();else if("gradient"===e.entity)await _.mutateAsync({id:e.item.id,title:e.item.title,gradient:e.item.gradient,type:e.item.type,rotation:e.item.rotation,collectionId:f}),await g.gradient.getAll.invalidate();else if("color"===e.entity){var t;await Q.mutateAsync({id:e.item.id,title:null!==(t=e.item.title)&&void 0!==t?t:"",hex:e.item.hex,collectionId:f}),await g.color.getAll.invalidate()}v({description:h("itemUpdated")}),e.onOpenChange(!1),e.onMoved&&e.onMoved()}catch(e){v({description:h("errorUpdatingItem"),variant:"destructive"})}};return(0,a.jsx)(c.Vq,{open:e.open,onOpenChange:e.onOpenChange,children:(0,a.jsxs)(c.cZ,{className:"max-w-xl !rounded-2xl border-2 p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-8 items-center",children:[(0,a.jsx)(c.$N,{className:"text-2xl font-semibold text-center",children:h("moveToCollection")}),(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,a.jsx)(u._,{className:"text-sm font-medium text-foreground",children:p("projectLabel")}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(m.Ph,{value:j||void 0,onValueChange:e=>{b(e),y("")},children:[(0,a.jsx)(m.i4,{className:"h-12 rounded-xl",children:(0,a.jsx)(m.ki,{placeholder:p(k?"loading":"selectProjectPlaceholder")})}),(0,a.jsxs)(m.Bw,{children:[k&&(0,a.jsx)(m.Ql,{disabled:!0,value:"loading-projects",children:p("loading")}),!k&&P.length>0?P.map(e=>(0,a.jsx)(m.Ql,{value:e.id,children:e.name},e.id)):!k&&(0,a.jsx)(m.Ql,{disabled:!0,value:"no-projects",children:p("noProjects")})]})]})}),(0,a.jsx)(d.z,{type:"button",variant:"outline",className:"h-12 rounded-xl border-2 px-3",onClick:()=>w(!0),"aria-label":p("newProject"),children:(0,a.jsx)(r.Z,{className:"h-4 w-4"})})]})]}),j&&(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,a.jsx)(u._,{className:"text-sm font-medium text-foreground",children:p("collectionLabel")}),(0,a.jsxs)(m.Ph,{value:f||void 0,onValueChange:e=>y(e),children:[(0,a.jsx)(m.i4,{className:"h-12 rounded-xl",children:(0,a.jsx)(m.ki,{placeholder:p(I?"loading":"selectCollectionPlaceholder")})}),(0,a.jsxs)(m.Bw,{children:[I&&(0,a.jsx)(m.Ql,{disabled:!0,value:"loading-collections",children:p("loading")}),!I&&S.length>0?S.map(e=>(0,a.jsx)(m.Ql,{value:e.id,children:e.name},e.id)):!I&&(0,a.jsx)(m.Ql,{disabled:!0,value:"no-collections",children:p("noCollections")})]})]})]})]}),(0,a.jsxs)(c.cN,{className:"flex gap-3 pt-6",children:[(0,a.jsx)(d.z,{variant:"outline",className:"flex-1 h-12 rounded-xl border-2 hover:bg-muted/50 transition-all duration-200",onClick:()=>e.onOpenChange(!1),children:p("cancelModal")}),(0,a.jsx)(d.z,{className:"flex-1 h-12 rounded-xl bg-primary hover:bg-primary/90 transition-all duration-200",onClick:()=>{U()},disabled:!j||!f,children:h("move")})]}),(0,a.jsx)(i.p,{open:N,onOpenChange:w,mode:"create",redirect:!1,onCreatedProject:e=>{b(e),g.project.getAll.invalidate()}})]})})}},87198:function(e,t,l){l.d(t,{Z:function(){return s}});var a=l(85893),r=l(33249);function s(e){let{href:t,ariaLabel:l}=e;return(0,a.jsx)("div",{className:"w-full flex justify-center mt-6 mb-4",children:(0,a.jsx)(r.M,{href:t,tooltip:l})})}},33249:function(e,t,l){l.d(t,{M:function(){return u},z:function(){return c}});var a=l(85893),r=l(88426),s=l(4270),n=l(41664),i=l.n(n);
1l(67294);var o=l(94777),d=l(36228);let c="w-12 h-12 bg-primary hover:bg-primary/90 text-primary-foreground rounded-full flex items-center justify-center shadow-md hover:shadow-lg transition-all duration-200 hover:scale-105";function u(e){let t,{tooltip:l,onClick:n,href:u,ariaLabel:m,className:x,asChild:h,children:p}=e,g=(0,o.cn)(c,x),v=(0,a.jsx)(s.Z,{className:"w-6 h-6"});return t=h&&p?(0,a.jsx)(r.g7,{className:g,"aria-label":null!=m?m:l,children:p}):u?(0,a.jsx)(i(),{href:u,className:g,"aria-label":null!=m?m:l,children:v}):(0,a.jsx)("button",{type:"button",onClick:n,className:g,"aria-label":null!=m?m:l,children:v}),(0,a.jsx)(d.pn,{children:(0,a.jsxs)(d.u,{children:[(0,a.jsx)(d.aJ,{asChild:!0,children:t}),(0,a.jsx)(d._v,{children:(0,a.jsx)("p",{children:l})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.