1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7197,7963],{45115:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(95155),a=r(12115),n=r(21169);let l={primary:"border-themecolor bg-themecolor text-white hover:bg-themecolorhover",secondary:"border-black hover:border-themecolor hover:text-themecolor",disabled:"border-gray-400 bg-gray-400 text-gray-100 pointer-events-none",actionSecondary:"border-green-600 text-green-600 hover:text-green-800 hover:border-green-800",actionPrimary:"border-green-600 bg-green-600 text-white hover:bg-green-700 hover:border-green-700",danger:"border-themered bg-themered text-white hover:bg-themered-hover hover:border-themered-hover",payment:"bg-gray-300 text-white",premium:"\n relative overflow-hidden\n border-amber-500/30 bg-linear-to-r from-amber-50 to-amber-100\n text-amber-700 \n hover:border-amber-400/50 hover:from-amber-100 hover:to-amber-200/60\n after:absolute after:inset-0 after:z-10\n after:bg-linear-to-r after:from-transparent after:via-white/40 after:to-transparent\n after:translate-x-[-200%] after:animate-shimmer hover:after:animate-shimmer-fast\n group shadow-xs hover:shadow-sm\n ",premiumDisabled:"border-amber-200 text-amber-500/80 pointer-events-none cursor-not-allowed shadow-none"},i=e=>{let{title:t,variant:r,handleClick:i,icon:o,leftIcon:d=!1,rightIcon:c=!1,style:u,loading:m,iconStyle:x,type:h="button"}=e,[f,g]=(0,a.useState)(!1),p=l[r],b=async e=>{if(!f&&!m&&i){g(!0);try{let t=i(e);t&&"function"==typeof t.then&&await t}finally{g(!1)}}};return(0,s.jsxs)("button",{onClick:b,className:"flex select-none items-center justify-center rounded-md border-2 px-10 py-2 font-semibold transition ease-in active:scale-[98%] ".concat(p," ").concat(u," "),disabled:"disabled"===r||!!m||f,type:h,title:"string"==typeof t?t:"",children:[d&&(0,s.jsx)("div",{className:"mr-4 text-xl ".concat(x),children:o}),(0,s.jsx)("span",{children:m?(0,s.jsx)(n.PSR,{className:"mx-10 animate-spin text-2xl"}):t}),c&&(0,s.jsx)("div",{className:"ml-4 text-xl ".concat(x),children:o})]})}},38459:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(95155),a=r(12115);let n=a.memo(e=>{let{text:t,style:r,position:n="bottom",showOnMobile:l}=e,i=(0,a.useRef)(null);return(0,a.useEffect)(()=>()=>{i.current&&(i.current.style.opacity="0")},[]),(0,s.jsx)("div",{ref:i,className:"pointer-events-none absolute z-999 ".concat(!l&&"hidden md:block"," ").concat({bottom:"top-full left-1/2 mt-2 -translate-x-1/2 translate-y-2 group-hover:translate-y-0",right:"left-full top-1/2 ml-2 -translate-y-1/2 translate-x-2 group-hover:translate-x-0",top:"bottom-full left-1/2 mb-2 -translate-x-1/2 -translate-y-2 group-hover:translate-y-0"}[n]," border-bordergrey bg-offwhite scale-95 transform rounded-md border px-2 py-1 text-xs font-medium whitespace-nowrap text-black opacity-0 shadow-md transition-all duration-200 ease-in-out select-none group-hover:scale-100 group-hover:opacity-100 dark:bg-white dark:text-black ").concat(r),children:t})})},56370:(e,t,r)=>{r.d(t,{A:()=>W});var s=r(95155),a=r(5565),n=r(12115),l=r(40420),i=r(83391),o=r(46280),d=r(34367),c=r(73312),u=r(33900),m=r(98986),x=r(46754),h=r(2291),f=r(2479),g=r(19696),p=r(35023),b=r(29884),v=r(11536),y=r(56086),j=r(13970);let w=e=>{var t;let{state:r,onClose:a,fileDetails:l,paramFolderId:w}=e,N=(0,i.wA)(),{file_title:k,file_description:C,followers_only:A,is_private:_,file_ads_choice:S,search_status:z,file_price:D,is_comment_enabled:F}
1=l,[E,T]=(0,n.useState)(k),[L,M]=(0,n.useState)(null!=C?C:""),[P,R]=(0,n.useState)(A),[I,O]=(0,n.useState)(_),[B,V]=(0,n.useState)(null!==(t=null==S?void 0:S.ads_step)&&void 0!==t?t:2),[G,q]=(0,n.useState)(),[U,J]=(0,n.useState)(null),[$,W]=(0,n.useState)(" "),[Y,K]=(0,n.useState)(null==F||F),[Q,Z]=(0,n.useState)(!1),[H,X]=(0,n.useState)(!0),[ee,et]=(0,n.useState)(!0),[er,es]=(0,n.useState)(!0);(0,n.useEffect)(()=>{T(k),M(null!=C?C:""),R(A),V(S.ads_step),q(null==D?void 0:D.toString()),X(null==S?void 0:S.banner_ads),et(null==S?void 0:S.pop_ads),es(null==S?void 0:S.video_ads)},[l]),(0,n.useEffect)(()=>{"open"===r&&W(" ")},[r]);let{fileEdit:ea}=(0,p.GV)(e=>e.editDetails),en=async e=>{if(null==e||e.stopPropagation(),E||L){if(E){if(!L){W("Please add a description for the file.");return}}else{W("Please provide a File Name.");return}}else{W("Please add file name and description.");return}let t={file_title:E,file_description:L,is_private:I,ads_step:B,file_price:G,is_comment_enabled:Y,thumbnail:U,banner_ads:H,video_ads:er,pop_ads:ee};I||(t.followers_only=P);try{let e=await N((0,f.DG)({fileId:l.id.toString(),payload:t}));f.DG.fulfilled.match(e)?(N((0,g.nm)({message:"Successfully edited file",type:"success"})),N((0,y.lG)({folderId:w||null,forceRefresh:!0}))):e.payload?N((0,g.nm)({message:e.payload.message,type:"error"})):N((0,g.nm)({message:"An unexpected error occurred",type:"error"}))}catch(e){N((0,g.nm)({message:"An unexpected error occurred",type:"error"}))}a()};return(0,s.jsxs)(b.A,{className:"w-full rounded-md bg-white md:w-[60vw] lg:w-[55vw] 2xl:w-[40vw]",childrenStyles:"p-4 md:p-8",isOpen:"open"===r,onClose:a,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-lg font-semibold outline-hidden",tabIndex:-1,children:"Edit File"}),(0,s.jsx)("div",{className:"hover:bg-lightgrey active:bg-darkgrey flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-all ease-out",onClick:a,children:(0,s.jsx)(o.$8F,{size:20})})]}),(0,s.jsxs)("div",{className:"mt-4 flex items-start gap-3 rounded-lg border border-amber-200 bg-amber-50/50 p-3.5 md:p-4",children:[(0,s.jsxs)("div",{className:"mt-0.5 shrink-0 text-amber-600",children:[(0,s.jsx)(d.qVL,{size:20,className:"md:hidden"}),(0,s.jsx)(d.qVL,{size:22,className:"hidden md:block"})]}),(0,s.jsxs)("div",{className:"flex-1 text-xs leading-relaxed text-amber-800",children:[(0,s.jsx)("span",{className:"font-semibold",children:"Content Policy : "})," You cannot use vulgar or offensive words / Images in your file name, description or thumbnail. Violating our policies may result in account suspension without notice."]})]}),(0,s.jsxs)("form",{className:"mt-8 grid grid-cols-1 gap-4 lg:grid-cols-2",autoFocus:!1,autoComplete:"off",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(m.J,{htmlFor:"fileTitle",children:"Title"}),(0,s.jsx)(u.p,{type:"text",id:"fileTitle",autoFocus:!1,autoComplete:"off",placeholder:"Enter Title",value:E,onChange:e=>T(e.target.value),className:"mt-2"})]}),D&&D>0?(0,s.jsxs)("label",{className:"flex cursor-pointer flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-start",children:[(0,s.jsx)("span",{className:"font-medium",children:"Price"}),(0,s.jsx)("span",{className:"text-muted-foreground ml-2 line-clamp-1 text-xs",children:"( Your file can only be bought if you added a price )"})]}),(0,s.jsxs)("div",{className:"focus:border-themecolor mt-2 flex items-center gap-2 rounded-md border-2 px-4 py-2 outline-hidden",children:[(0,s.jsx)("div",{className:"text-themegreen text-lg",children:(0,s.jsx)(v.Tsk,{})}),(0,s.jsx)("input",{type:"number",id:"filePrice",placeholder:Number(B)>0?"Price can't be added if Ads are set":"0.00 (Free)",className:"",value:G,disabled:Number(B)>0,max:"99999",min:"0",step:"0.01",onChange:e=>{let t=e.target.value;if(""===t){q("");return}let r=parseFloat(t);if(!isNaN(r)&&!(r<0)){if(r>99999){q("99999");return}q(t)}},style:{outline:"none",border:"none",width:"100%"}})]})]}):(0,s.jsxs)("div",{className:"flex w-full items-center justify-between py-2",children:[(0,s.jsxs)("div",{className:"mr-3 flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:"Enable ad before download"}),(0,s.jsx)("span",{className:"text-muted-foreground mt-0.5 text-xs",children:"Users will watch an ad before accessing your file"})]}),(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":Number(B)>0,onClick:()=>V(e=>Number(e)>0?0:3),className:"focus-visible:ring-ring relative inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none ".concat(Number(B)>0?"bg-primary":"bg-input"),children:(0,s.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 roun
1ded-full bg-white shadow-sm ring-0 transition-transform duration-200 ease-in-out ".concat(Number(B)>0?"translate-x-5":"translate-x-0")})})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"isPrivate",checked:I,onCheckedChange:e=>O(e)}),(0,s.jsx)(m.J,{htmlFor:"isPrivate",className:"cursor-pointer font-normal",children:"Private"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"followersOnly",checked:P&&!I,onCheckedChange:e=>R(e),disabled:I}),(0,s.jsx)(m.J,{htmlFor:"followersOnly",className:"cursor-pointer font-normal",children:"Followers Only"})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsx)(m.J,{htmlFor:"fileDescription",children:"Description"}),(0,s.jsx)(x.T,{id:"fileDescription",placeholder:"Enter Description",className:"mt-2 h-full resize-none",value:L,onChange:e=>M(e.target.value),maxLength:200}),(0,s.jsxs)("div",{className:"text-right text-xs text-gray-500",children:[L.length,"/200"]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(m.J,{htmlFor:"newThumbnail",children:"Select Thumbnail"}),(0,s.jsx)(u.p,{type:"file",id:"newThumbnail",onChange:e=>{var t;return J((null===(t=e.target.files)||void 0===t?void 0:t[0])||null)},accept:".jpg, .jpeg, .png, .gif, .webp"})]})]}),(0,s.jsxs)("div",{className:"mt-4 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"text-themecolor hover:text-themecolorhover flex cursor-pointer items-center gap-2 font-semibold",onClick:()=>Z(e=>!e),children:["Advanced Section",(0,s.jsx)(j.Vr3,{className:"".concat(Q&&"rotate-180"," transition-transform duration-300 ease-in-out")})]}),Q&&(0,s.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"isCommentEnabled",checked:Y,onCheckedChange:e=>K(e)}),(0,s.jsx)(m.J,{htmlFor:"isCommentEnabled",className:"cursor-pointer font-normal",children:"Enable Comments"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"redirectAd",checked:ee,onCheckedChange:e=>et(e)}),(0,s.jsx)(m.J,{htmlFor:"redirectAd",className:"cursor-pointer font-normal",children:"Enable Redirect Ad"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"bannerAd",checked:H,onCheckedChange:e=>X(e)}),(0,s.jsx)(m.J,{htmlFor:"bannerAd",className:"cursor-pointer font-normal",children:"Enable Banner Ad"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(h.S,{id:"videoAd",checked:er,onCheckedChange:e=>es(e)}),(0,s.jsx)(m.J,{htmlFor:"videoAd",className:"cursor-pointer font-normal",children:"Enable Video Ad"})]})]})]})]}),$&&(0,s.jsx)("div",{className:"text-themered mt-1 text-sm font-medium",children:$}),(0,s.jsxs)("div",{className:"mt-6 flex w-full items-center justify-end gap-2",children:[(0,s.jsx)(c.$,{type:"button",variant:"outline",onClick:a,className:"hidden md:block",size:"lg",children:"Cancel"}),(0,s.jsx)(c.$,{type:"button",variant:"default",onClick:en,disabled:ea.loading,className:"w-full md:w-auto",size:"lg",children:ea.loading?"Updating...":"Update"})]})]})};var N=r(20560),k=r(76046),C=r(89728),A=r(52913),_=r(51889),S=r(76084),z=r(30648),D=r(21169),F=r(8422),E=r(22734);let T=e=>{let{icon:t,label:r,value:a}=e;return(0,s.jsx)("div",{className:"group py-2",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary flex h-10 w-10 shrink-0 items-center justify-center rounded-md text-lg transition-colors",children:t}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)(m.J,{className:"text-muted-foreground text-sm",children:r}),(0,s.jsx)("div",{className:"text-sm font-medium wrap-break-word",children:a})]})]})})},L=e=>{let{state:t,onClose:r,fileDetails:a}=e;return(0,k.useRouter)(),(0,s.jsxs)(b.A,{className:"w-full rounded-md bg-white md:w-[65vw] lg:w-[60vw] 2xl:w-[45vw]",childrenStyles:"p-4 md:p-8",isOpen:"open"===t,onClose:r,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-lg font-semibold",children:"File Details"}),(0,s.jsx)("div",{className:"hover:bg-lightgrey active:bg-darkgrey flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-all ease-out",onClick:r,children:(0,s.jsx)(o.$8F,{size:20})})]}),(0,s.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,s.jsx)(T,{icon:(0,s.jsx)(j.chT,{}),label:"File Name",value:a.file_name}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(z.o1M,{}),label:"File Title",value:a.file_title}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(_.JW6,{}),label:"File Description",value:a.file_description||"No description"}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(F.SCg,{}),label:"File Downloads",value:"N/A"}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(E.D2F,{}),label:"Download Earnings",value:"N/A"}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(S.P7h,{}),label:"File Size",value:(0,A.v)(Number(a.file_size_mb))}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(o.m3e,{}),label:"Created On",value:(0,C.h)(a.created_at)}),(0,s.jsx)("hr",{className:"border-darkgrey border-t"}),(0,s.jsx)(T,{icon:(0,s.jsx)(D.gwM,{}),label:"Upload Type",value:a.file_type})]})]})};var M=r(45115);let P=e=>{let{state:t,linkSlug:r,onClose:a}=e,l=(0,i.wA)(),d=(0,n.useMemo)(()=>"https://dlsurf.com/f/".concat(r),[r]);return(0,s.jsxs)(b.A,{className:"w-full rounded-md bg-white md:w-[55vw] 2xl:w-[45vw]",childrenStyles:"p-8",isOpen:"open"===t,onClose:a,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-xl font-semibold",children:"Share File"}),(0,s.jsx)("div",{className:"hover:bg-lightgrey active:bg-darkgrey flex h-10 w-10 cursor-pointer items-center justify-center rounded-full text-3xl transition-all ease-out",onClick:a,children:(0,s.jsx)(o.$8F,{})})]}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)("div",{className:"font-medium",children:"FileName"}),(0,s.jsxs)("div",{className:"mt-2 flex h-10 w-full items-center",children:[(0,s.jsx)("input",{type:"text",value:d,readOnly:!0,className:"border-bordergrey h-full w-full rounded-l-md border px-4"}),(0,s.jsx)(M.A,{variant:"primary",title:"Copy",style:"rounded-l-none border-none hover:border-none",handleClick:()=>{navigator.clipboard.writeText(d).then(()=>{l((0,g.nm)({message:"Link copied to clipboard!",type:"success"})),a()}).catch(e=>{console.error("Failed to copy text: ",e),l((0,g.nm)({message:"Failed to copy link",type:"error"})),a()})}})]})]})]})};var R=r(94270),I=r(74883),O=r(39313),B=r(98646),V=r(78998),G=r(82950),q=r(752),U=r(70865),J=r(51055),$=r(94588);let W=e=>{let{fileDetails:t,disableMenu:r,handleClick:i,handleDoubleClick:o,handleStarAction:d,isSelected:u,selectedCount:m=0,paramFolderId:x,listLayout:h=!1,sharedFileMode:f=!1,trashFileMode:g=!1,clearSelectedItems:p,handlePermaDeleteAction:b,handleRestoreAction:y,selectedItems:j={},isDraggingAny:k=!1,onDragStart:C,onDrag:_,onDragEnd:D}
1=e,[F,E]=(0,n.useState)("close"),[T,M]=(0,n.useState)("close"),[W,Y]=(0,n.useState)("close"),[K,Q]=(0,n.useState)("close"),[Z,H]=(0,n.useState)("close"),[X,ee]=(0,n.useState)("close"),[et,er]=(0,n.useState)("close"),[es,ea]=(0,n.useState)(null),[en,el]=(0,n.useState)(!1),ei=(0,n.useRef)(0),eo=e=>{e.preventDefault();let t=new Date().getTime();t-ei.current<300&&!e.shiftKey?o&&o():i&&i(e.shiftKey),ei.current=t},ed=e=>{if(g||f)return;if(!u){e.preventDefault();return}e.stopPropagation(),el(!0),C&&C(e);let r=document.createElement("img");r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.dataTransfer.setDragImage(r,0,0);let s={type:"dl-surf-item",fileId:t.id,isSelected:u};e.dataTransfer.setData("application/json",JSON.stringify(s)),e.dataTransfer.effectAllowed="move"},ec=()=>{el(!1),D&&D()},eu=e=>{e.stopPropagation(),ea(null),E("open")},em=(0,I.A)(t.file_type);return(0,s.jsxs)("div",{className:"group relative h-full",onContextMenu:e=>{e.preventDefault(),m>1&&u||(ea({x:e.clientX,y:e.clientY}),p&&p(),i&&i(!1),E("open"))},children:[h?(0,s.jsxs)("div",{draggable:!g&&!f,onDragStart:ed,onDrag:_,onDragEnd:ec,className:"border-darkgrey dark:border-darkgrey/20 flex w-full items-center justify-between border-b px-2 py-2 transition-all ease-out ".concat(u?"bg-blue-300/20 dark:bg-blue-400/20":"hover:bg-lightgrey"," ").concat(u&&k?"cursor-grabbing opacity-50":""),onClick:eo,children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[t.thumbnail&&"null"!==t.thumbnail?(0,s.jsx)(a.default,{width:160,height:90,src:"".concat(R.GM).concat(t.thumbnail),alt:"thumbnail",className:"aspect-video w-16 rounded-sm object-cover"}):(0,I.I)(t.file_type),(0,s.jsx)("div",{className:"max-w-[60vw] flex-1 truncate text-sm select-none",children:t.file_title}),t.is_starred&&(0,s.jsx)("div",{className:"text-themeyellow hover:bg-themeyellowtransparent hover:bg-opacity-50 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-all ease-in",onClick:e=>{e.stopPropagation(),d&&d()},children:(0,s.jsx)(v.gt3,{})})]}),(0,s.jsxs)("div",{className:"text-muted-foreground flex items-center gap-4",children:[(0,s.jsx)("div",{className:"hidden w-32 text-center text-sm xl:block",children:(0,O.Y)(t.updated_at)}),(0,s.jsx)("div",{className:"hidden w-32 text-center text-sm md:block",children:(0,A.v)(Number(t.file_size_mb))}),!r&&(0,s.jsx)("div",{className:"hover:bg-darkgreyhover hover:bg-opacity-50 ml-10 flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-full text-lg transition-all ease-in ".concat(m>1&&u&&"pointer-events-none"),onClick:eu,children:(0,s.jsx)(J.A,{size:20})})]})]}):(0,s.jsxs)("div",{draggable:!g&&!f,onDragStart:ed,onDrag:_,onDragEnd:ec,className:"relative h-full rounded-md ".concat(u&&"ring-primary ring-offset-background ring-2 ring-offset-4"," ").concat(u&&k?"cursor-grabbing opacity-50":"cursor-pointer"),onClick:eo,children:[t.is_starred&&(0,s.jsx)(c.$,{className:"hover:bg-themeyellowtransparent hover:text-themeyellow absolute top-2 right-2 z-20 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-yellow-400 transition-all ease-in",variant:"ghost",onClick:e=>{e.stopPropagation(),d&&d()},children:(0,s.jsx)(U.A,{size:18,className:"fill-themeyellow"})}),(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-md",children:[(0,s.jsx)(V.f,{hasThumbnail:null!==t.thumbnail,thumbnailSource:"".concat(R.GM).concat(t.thumbnail),formattedFileType:t.file_type,className:"transition-transform duration-300 group-hover:scale-[1.02]"},"thumbnail-".concat(t.link_slug)),t.file_type&&(0,s.jsx)("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-1 text-xs font-semibold text-white uppercase opacity-0 transition-opacity duration-300 ease-out group-hover:opacity-100",style:{backgroundColor:"".concat(em)},children:t.file_type})]}),(0,s.jsx)("div",{className:"relative mt-2 flex min-w-0 flex-1 flex-col py-2 pl-1",children:(0,s.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-col justify-between",children:[(0,s.jsxs)("h3",{className:"text-foreground line-clamp-2 pr-6 text-[15px] leading-[1.2] font-medium",children:[t.followers_only&&(0,s.jsx)(z._pN,{className:"text-themegreen mr-2 inline",size:18}),Number(t.file_price)>0&&(0,s.jsx)(S.Hx0,{size:20,className:"mr-1 inline text-amber-400"}),t.file_title]}),(0,s.jsx)("div",{className:"text-muted-foreground mt-0.5 truncate text-xs",children:t.file_name}),(0,s.jsxs)("div",{className:"text-muted-foreground mt-1 flex items-center text-xs",children:[(0,s.jsx)("span",{children:(0,A.v)(t.file_size_mb)}),(0,s.jsx)(G.Lnv,{className:"text-xl"}),(0,s.jsx)("span",{className:"truncate",children:(0,q.A)(t.created_at)})]})]}),!r&&(0,s.jsx)("div",{className:"flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-full text-lg transition-all ease-in hover:bg-gray-300/20 ".concat(m>1&&u&&"text-muted-foreground pointer-events-none"),onClick:eu,children:(0,s.jsx)(J.A,{size:20})})]})})]}),(0,s.jsx)(l.A,{state:F,onClose:()=>{E("close"),ea(null)},onEditClick:()=>{M("open"),E("close")},onDeleteClick:()=>{H("open"),E("close")},onViewAnalyticsClick:()=>{er("open"),E("close")},onRemoveAccessClick:()=>{ee("open"),E("close")},onPermaDeleteClick:()=>{b&&b([String(t.trash_id)])},onRestoreCLick:()=>{y&&y([String(t.trash_id)])},isStarred:t.is_starred,handleStarAction:()=>{d&&d()},linkSlug:t.link_slug,isFile:!0,sharedMode:f,trashMode:g,editAccessOnSh
1aredMode:"edit"===t.access_level,style:es?"fixed transform -translate-x-1/2 -translate-y-1/2":"absolute right-4 bottom-10",position:es}),"open"===T&&(0,s.jsx)(w,{state:T,onClose:()=>M("close"),fileDetails:t,paramFolderId:x}),"open"===W&&(0,s.jsx)(L,{state:W,onClose:()=>Y("close"),fileDetails:t}),(0,s.jsx)(P,{state:K,onClose:()=>Q("close"),linkSlug:t.link_slug}),(0,s.jsx)(N.A,{state:Z,onClose:()=>H("close"),clearSelectedItems:p,fileId:t.id}),(0,s.jsx)(B.A,{state:X,onClose:()=>{ee("close")},fileId:Number(t.id)}),(0,s.jsx)($.A,{state:et,onClose:()=>er("close"),contentId:String(t.id),contentType:"file",title:t.file_title||t.file_name||"File"})]})}},94588:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(95155),a=r(12115),n=r(29884),l=r(33388),i=r(35023),o=r(67287),d=r(37528);let c={views:0,uniqueVisitors:0,downloads:0,clicks:0,redirects:0,adCompleted:0,earnings:0,hasData:!1},u=e=>{let{state:t,onClose:r,contentId:u,contentType:m,title:x}=e,[h,f]=(0,a.useState)(!1),[g,p]=(0,a.useState)(c),[b,v]=(0,a.useState)("all_time"),y=(0,a.useRef)(!1),j=(0,i.GV)(e=>{var t;return null===(t=e.user.userProfile)||void 0===t?void 0:t.id}),w=(0,a.useMemo)(()=>"blog"===m?"document":"file",[m]);(0,a.useEffect)(()=>{let e="open"===t&&!y.current;if("open"!==t){y.current=!1;return}if(e&&(y.current=!0,"all_time"!==b)){v("all_time");return}(async()=>{if(!j||!u)return;let e={all_time:{days:36500,allTime:!0},last_30_days:{days:30,allTime:!1},last_3_months:{days:90,allTime:!1},last_7_days:{days:7,allTime:!1}}[b];f(!0);try{let t=await (0,l.hz)(w,u,e.days,e.allTime),r=null==t?void 0:t.data;if(!r){p(c);return}let s={views:Number(r.views||0),uniqueVisitors:Number(r.unique_visitors||0),downloads:Number(r.downloads||0),clicks:Number(r.clicks||0),redirects:Number(r.redirects||0),adCompleted:Number(r.ad_completed||0),earnings:Number(r.earnings||0),hasData:!!r.has_data};s.hasData||(s.hasData=s.views>0||s.uniqueVisitors>0||s.downloads>0||s.clicks>0||s.redirects>0||s.adCompleted>0||s.earnings>0),p(s)}catch(e){p(c)}finally{f(!1)}})()},[t,j,u,w,b]);let N=!h&&!g.hasData;return(0,s.jsxs)(n.A,{className:"w-[92%] rounded-2xl bg-white sm:w-[80vw] md:w-[56vw] lg:w-[44vw] xl:w-[36vw] dark:bg-[#0c0f17]",isOpen:"open"===t,onClose:r,childrenStyles:"p-0",showFromBottom:!0,children:[(0,s.jsx)("div",{className:"border-b border-black/10 px-5 py-4 dark:border-white/10",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Analytics"}),(0,s.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:x||"This item"})]}),(0,s.jsxs)(d.l6,{value:b,onValueChange:e=>v(e),children:[(0,s.jsx)(d.bq,{className:"w-[160px]",children:(0,s.jsx)(d.yv,{})}),(0,s.jsxs)(d.gC,{children:[(0,s.jsx)(d.eb,{value:"all_time",children:"All Time"}),(0,s.jsx)(d.eb,{value:"last_30_days",children:"Last 30 Days"}),(0,s.jsx)(d.eb,{value:"last_3_months",children:"Last 3 Months"}),(0,s.jsx)(d.eb,{value:"last_7_days",children:"Last 7 Days"})]})]})]})}),(0,s.jsx)("div",{className:"px-5 pt-4 pb-5",children:h?(0,s.jsx)("div",{className:"flex min-h-40 items-center justify-center",children:(0,s.jsx)(o.y,{className:"h-8 w-8"})}):N?(0,s.jsx)("div",{className:"flex min-h-40 items-center justify-center rounded-xl border border-dashed border-black/15 bg-black/[0.02] text-center text-sm font-medium text-neutral-600 dar
1k:border-white/15 dark:bg-white/[0.03] dark:text-neutral-300",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{children:"No analytics data available yet"}),(0,s.jsx)("p",{className:"mt-1 text-xs opacity-70",children:"This file may not have been viewed or engaged with in the selected time range."})]})}):(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] p-3 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:"Views"}),(0,s.jsx)("div",{className:"mt-1 text-xl font-semibold",children:g.views})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] p-3 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:"Unique Views"}),(0,s.jsx)("div",{className:"mt-1 text-xl font-semibold",children:g.uniqueVisitors})]}),"file"===m&&(0,s.jsxs)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] p-3 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:"Downloads"}),(0,s.jsx)("div",{className:"mt-1 text-xl font-semibold",children:g.downloads})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] p-3 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:"Earnings"}),(0,s.jsxs)("div",{className:"mt-1 text-xl font-semibold",children:["$",g.earnings.toFixed(4)]})]})]})})]})}},20560:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(95155),a=r(83391),n=r(73312),l=r(60566),i=r(19696),o=r(29884);let d=e=>{let{state:t,folderId:r,fileId:d,onClose:c,selectedItems:u,clearSelectedItems:m,onDelete:x}=e,h=(0,a.wA)(),{loading:f,successMessage:g,errorMessage:p}=(0,a.d4)(e=>e.deleteItems),b=async()=>{try{let e=[],t=[];u&&Object.keys(u).length>0?(e=Object.values(u).filter(e=>"folder"===e.itemType).map(e=>e.item.id.toString()),t=Object.values(u).filter(e=>"file"===e.itemType).map(e=>e.item.id.toString())):r?e=[r.toString()]:d&&(t=[d.toString()]),await h((0,l.K)({folders:e,files:t})).unwrap(),m&&m();let s="";s=e.length>0&&t.length>0?"Successfully deleted ".concat(e.length," folder(s) and ").concat(t.length," file(s)."):e.length>0?"Successfully deleted ".concat(e.length," folder(s)."):t.length>0?"Successfully deleted ".concat(t.length," file(s)."):"No items were deleted.",h((0,i.nm)({type:"success",message:s})),c()}catch(e){h((0,i.nm)({type:"error",message:p||"Failed to delete items. Please try again."}))}};return(0,s.jsx)(o.A,{className:"w-[90%] max-w-4xl rounded-md sm:w-[65vw] md:w-[50vw] lg:w-[40vw] xl:w-[30vw]",childrenStyles:"p-4 sm:p-8","aria-labelledby":"delete-modal-title","aria-describedby":"delete-modal-description",isOpen:"open"===t,onClose:c,children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:"text-base font-semibold md:text-lg",id:"delete-modal-title",children:"Are you sure?"}),(0,s.jsx)("div",{className:"text-placeholdertext mt-1.5 text-sm",id:"delete-modal-description",children:"This action cannot be undone. It will delete the selected items from your account."}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col-reverse justify-end gap-2 sm:flex-row",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:()=>{c()},className:"w-full sm:w-auto",disabled:f,size:"lg",children:"Cancel"}),(0,s.jsx)(n.$,{variant:"destructive",onClick:b,className:"w-full sm:w-auto",disabled:f,size:"lg",children:f?"Deleting...":"Delete"})]})]},"deleteModal")})}},98646:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(95155),a=r(46280),n=r(83391),l=r(45115),i=r(19696),o=r(29884),d=r(33265);let c=e=>{let{state:t,folderId:r,fileId:c,onClose:u,selectedItems:m,clearSelectedItems:x}=e,h=(0,n.wA)(),{loading:f,successMessage:g,errorMessage:p}=(0,n.d4)(e=>e.deleteItems),b=Object.values(null!=m?m:[]).filter(e=>"file"===e.itemType).map(e=>e.item.id),v=Object.values(null!=m?m:[]).filter(e=>"folder"===e.itemType).map(e=>e.item.id),y=async()=>{try{let e=v,t=b;0===e.length&&0===t.length&&(r?e=[r.toString()]:c&&(t=[c.toString()])),await h((0,d.ED)({folder_ids:e,file_ids:t})),h((0,d.G9)({folderId:null})),x&&x();let s="";s=e.length>0&&t.length>0?"Successfully removed ".concat(e.length," folder(s) and ").concat(t.length," file(s)."):e.length>0?"Successfully removed ".concat(e.length," folder(s)."):t.length>0?"Successfully removed ".concat(t.length," file(s)."):"No items were removed.",h((0,i.nm)({type:"success",message:s})),u()}catch(e){h((0,i.nm)({type:"error",message:p||"Failed to remove items. Please try again."}))}};return(0,s.jsx)(o.A,{className:"w-[90%] rounded-md bg-white py-10 sm:w-[60vw] md:w-[40vw] lg:w-[35vw] xl:w-[25vw]",childrenStyles:"py-10","aria-labelledby":"delete-modal-title","aria-describedby":"delete-modal-description",isOpen:"open"===t,onClose:u,children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,s.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-lightgrey text-4xl text-themered",children:(0,s.jsx)(a.ZBh,{})}),(0,s.jsx)("div",{className:"text-xl font-semibold",id:"delete-modal-title",children:"Are you sure?"}),(0,s.jsxs)("div",{className:"mt-2 text-center text-lg font-medium text-placeholdertext",id:"delete-modal-description",children:["This action will remove your access ",(0,s.jsx)("br",{}),"from the item."]}),(0,s.jsxs)("div",{className:"mt-8 flex w-[70%] flex-col gap-4",children:[(0,s.jsx)(l.A,{title:f?"Removing...":"Remove Access",variant:"primary",style:"bg-themered hover:bg-themered-hover hover:border-themered-hover border-themered",handleClick:y}),(0,s.jsx)(l.A,{title:"Cancel",variant:"secondary",handleClick:()=>{u()}})]})]})})}},29884:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(95155),a=r(36798),n=r(28633),l=r(40767),i=r(12115),o=r(47650),d=r(84780);let c=(0,i.forwardRef)((e,t)=>{let{isOpen:r,children:c,className:u="",onClose:m,showFromBottom:x=!0,childrenStyles:h,grabHandleStyles:f,enableDragToClose:g=!0,isFullScreen:p=!1,disableDesktopShadow:b=!1,contentStyle:v,showCloseButton:y=!0}=e,j=a.P.div,w=(0,d.a)(),N=x&&w&&!p,k=/(?:^|\s)!?max-w-/.test(u),C=(0,i.useRef)(null),[A,_]=(0,i.useState)(!1);(0,i.useEffect)(()=>
1{if(r&&w){window.history.pushState({modal:!0},"");let e=()=>{null==m||m()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}},[r,m]),(0,i.useEffect)(()=>{if(r)return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow="unset",document.documentElement.style.overflow="unset"}},[r]);let S={desktop:{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10,transition:{duration:.3,ease:"easeInOut"}}},mobile:{initial:{opacity:0,y:"100%",scale:1},animate:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:30},scale:1},exit:{opacity:0,y:"100%",transition:{duration:.1,ease:"easeOut"}}}};(0,i.useEffect)(()=>{let e=e=>{r&&"Escape"===e.key&&m&&(e.preventDefault(),m())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r,m]);let z=()=>{window.history.pushState({modal:!1},""),null==m||m()};return(0,i.useEffect)(()=>{if(!r||!p){_(!1);return}let e=()=>{let e=C.current;e&&_(e.getBoundingClientRect().height>window.innerHeight)};e();let t="undefined"!=typeof ResizeObserver?new ResizeObserver(e):null;return t&&C.current&&t.observe(C.current),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),null==t||t.disconnect()}},[r,p,c]),(0,o.createPortal)((0,s.jsx)(n.N,{mode:"wait",children:r&&(0,s.jsxs)("div",{className:"fixed inset-0 z-[9998]",onClick:()=>!p&&z(),children:[(0,s.jsx)("div",{className:"fixed inset-0 transition-all duration-300 ease-out ".concat(p?"bg-background opacity-100 backdrop-blur-none dark:bg-background":"bg-black/40 backdrop-blur-[1px] dark:bg-[#01010f]/65")}),(0,s.jsxs)("div",{className:"fixed inset-0 overflow-y-auto",children:[p&&y&&(0,s.jsx)("button",{onClick:z,className:"fixed top-6 right-6 z-[10000] cursor-pointer rounded-full bg-neutral-100/50 p-2 transition-colors hover:bg-neutral-200/50 dark:bg-white/10 dark:hover:bg-white/20",children:(0,s.jsx)(l.A,{size:20,className:"text-neutral-900 dark:text-white"})}),(0,s.jsx)("div",{className:p?"flex min-h-dvh w-full justify-center ".concat(A?"items-start":"items-center"):"flex min-h-full w-full items-start justify-center p-4 sm:p-6 md:items-center",children:(0,s.jsx)(j,{ref:e=>{C.current=e,"function"==typeof t?t(e):t&&(t.current=e)},variants:N?S.mobile:S.desktop,initial:"initial",animate:"animate",...N&&!p&&g&&{drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.3},onDragEnd:(e,t)=>{(t.velocity.y>600||t.offset.y>600)&&(null==m||m())},onDrag:(e,t)=>{if(t.offset.y<0)return!1},dragMomentum:!1},className:"".concat(N?"fixed! right-0! bottom-0! left-0! max-h-dvh w-full! overflow-y-auto rounded-t-xl! rounded-b-none!":"".concat(u," ").concat(p?"mx-auto w-full":"")," custom-scrollbar modal-content z-[9999] ").concat(p||k?"":"max-w-5xl"," outline-hidden"),children:(0,s.jsx)("div",{onClick:e=>e.stopPropagation(),className:N?"w-full bg-white dark:border-gray-700 dark:bg-background dark:text-white":"",children:(0,s.jsxs)("div",{className:"",children:[N&&!p&&(0,s.jsx)("div",{className:"dark:bg-card sticky top-0 flex w-full justify-center ".concat(f," "),children:(0,s.jsx)("div",{className:"mt-4 mb-2 h-1 w-16 rounded-full bg-gray-300"})}),(0,s.jsx)("div",{className:"flex flex-col ".concat(h," ").concat(p?"flex w-full flex-col items-stretch":"bg-background border-input overflow-y-auto ".concat(N?"":"rounded-lg border ".concat(b?"":"shadow-lg"))),style:v,onClick:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:c})]})})})})]})]})}),document.body)});c.displayName="ModalWrapper";let u=c},40420:(e,t,r)=>{r.d(t,{A:()=>f});var s=r(95155),a=r(12115),n=r(92888),l=r(21169),i=r(11536),o=r(13970),d=r(57485),c=r(83391),u=r(19696),m=r(30648),x=r(51889),h=r(59136);let f=e=>{let{state:t,style:r,onClose:f,onEditClick:g,onDeleteClick:p,onViewAnalyticsClick:b,onRemoveAccessClick:v,onPermaDeleteClick:y,onRestoreCLick:j,handleStarAction:w,isStarred:N,linkSlug:k,isFile:C,sharedMode:A=!1,trashMode:_=!1,editAccessOnSharedMode:S=!1,position:z}=e,D=(0,c.wA)(),F=(0,a.useRef)(null);(0,a.useEffect)(()=>{z&&F.current&&(F.current.style.left="".concat(z.x,"px"),F.current.style.top="".concat(z.y,"px"))},[z]);let E=(0,a.useMemo)(()=>{let e=window.location.origin,t=C?"file":"folder";return"".concat(e,"/").concat(t,"/").concat(k)},[k,C]),T=()=>{C?navigator.clipboard.writeText(E).then(()=>{D((0,u.nm)({message:"Link copied to clipboard!",type:"success"}))}).catch(e=>{console.error("Failed to copy text: ",e),D((0,u.nm)({message:"Failed to copy link",type:"error"}))}):D((0,u.nm)({type:"info",message:"Available Soon"}))};return"open"!==t?null:(0,s.jsx)("div",{className:r,ref:F,children:(0,s.jsxs)(d.rI,{open:!0,onOpenChange:e=>!e&&f(),children:[(0,s.jsx)(d.ty,{asChild:!0,children:(0,s.jsx)("span",{className:"sr-only",children:"Menu"})}),(0,s.jsx)(d.SQ,{className:"w-48 font-medium",align:"end",children:A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d._2,{onClick:()=>{null==v||v(),f()},className:"text-themered focus:text-themered",children:[(0,s.jsx)(m.DkO,{className:"mr-2"}),"Remove"]}),(0,s.jsx)(d.mB,{}),(0,s.jsxs)(d._2,{onClick:()=>{g(),f()},disabled:!S,children:[(0,s.jsx)(n.SG1,{className:"mr-2"}),"Edit"]})]}):_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d._2,{onClick:()=>{null==j||j(),f()},children:[(0,s.jsx)(m.D9I,{className:"mr-2 text-base lg:text-lg"}),"Restore"]}),(0,s.jsx)(d.mB,{}),(0,s.jsxs)(d._2,{onClick:()=>{null==y||y(),f()},className:"text-themered focus:text-themered",children:[(0,s.jsx)(x.TR8,{className:"mr-2 text-base lg:text-lg"}),"Delete"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d._2,{onClick:()=>{null==w||w(),f()},children:[N?(0,s.jsx)(i.gt3,{className:"text-themeyellow mr-2 text-base lg:text-lg"}):(0,s.jsx)(i.wei,{className:"text-themeyellow mr-2 text-base lg:text-lg"}),N?"Unstar":"Star"]}),(0,s.jsx)(d.mB,{}),(0,s.jsxs)(d._2,{onClick:()=>{g(),f()},children:[(0,s.jsx)(n.SG1,{className:"mr-2 text-base lg:text-lg"}),"Edit"]}),(0,s.jsx)(d.mB,{}),C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d._2,{onClick:()=>{null==b||b(),f()},children:[(0,s.jsx)(h.A,{className:"mr-2 text-base lg:text-lg"}),"View Analytics"]}),(0,s.jsx)(d.mB,{})]}),(0,s.jsxs)(d._2,{onClick:()=>{T(),f()},children:[(0,s.jsx)(o.AnD,{className:"mr-2 text-base lg:text-lg"}),"Copy Link"]}),(0,s.jsx)(d.mB,{}),(0,s.jsxs)(d._2,{onClick:()=>{p(),f()},className:"text-themered focus:text-themered-hover",children:[(0,s.jsx)(l.op0,{className:"text-themered focus:text-themered-hover mr-2 text-base lg:text-lg"}),"Delete"]})]})})]})})}},73312:(e,t,r)=>{r.d(t,{$:()=>o,r:()=>i});var s=r(95155);r(12115);var a=r(12317),n=r(31027),l=r(21567);let i=(0,n.F)("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all ease-out disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-darkgrey dark:hover:bg-input/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",success:"bg-themecolor text-white hover:bg-themecolorhover",outlineRainbow:"btn-outline-rainbow relative overflow-visible border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-darkgrey dark:hover:bg-input/80",premium:"relative overflow-hidden border border-amber-500/30 hover:border-amber-400/50 bg-linear-to-r from-amber-50 to-amber-100 text-amber-700 dark:from-amber-300/20 dark:to-amber-400/20 dark:text-amber-300 hover:from-amber-100 hover:to-amber-200/60 after:absolute after:inset-0 after:z-10 after:bg-linear-to-r after:from-transparent after:via-white/40 after:to-transparent after:translate-x-[-200%] after:animate-shimmer hover:after:animate-shimmer-fast group shadow-xs hover:shadow-sm"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:r,size:n,asChild:o=!1,...d}=e,c=o?a.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,l.cn)(i({variant:r,size:n,className:t})),...d})}},2291:(e,t,r)=>{r.d(t,{S:()=>i});var s=r(95155);r(12115);
1var a=r(86352),n=r(98867),l=r(21567);function i(e){let{className:t,...r}=e;return(0,s.jsx)(a.bL,{"data-slot":"checkbox",className:(0,l.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:(0,s.jsx)(a.C1,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,s.jsx)(n.A,{className:"size-3.5"})})})}},57485:(e,t,r)=>{r.d(t,{SQ:()=>o,_2:()=>d,mB:()=>c,rI:()=>l,ty:()=>i});var s=r(95155);r(12115);var a=r(47144),n=r(21567);function l(e){let{...t}=e;return(0,s.jsx)(a.bL,{"data-slot":"dropdown-menu",...t})}function i(e){let{...t}=e;return(0,s.jsx)(a.l9,{"data-slot":"dropdown-menu-trigger",...t})}function o(e){let{className:t,sideOffset:r=4,...l}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsx)(a.UC,{"data-slot":"dropdown-menu-content",sideOffset:r,className:(0,n.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1.5 shadow-md",t),...l})})}function d(e){let{className:t,inset:r,variant:l="default",...i}=e;return(0,s.jsx)(a.q7,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":l,className:(0,n.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 xl:text-base",t),...i})}function c(e){let{className:t,...r}=e;return(0,s.jsx)(a.wv,{"data-slot":"dropdown-menu-separator",className:(0,n.cn)("bg-border -mx-1 my-1 h-px",t),...r})}},75738:(e,t,r)=>{r.d(t,{Ik:()=>x,MG:()=>d,Sq:()=>u,iV:()=>f,oR:()=>g,zB:()=>h});var s=r(95155);r(12115);var a=r(31027),n=r(21567),l=r(73312),i=r(33900),o=r(46754);function d(e){let{className:t,...r}=e;return(0,s.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,n.cn)("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border transition-[color,box-shadow] outline-none","h-10 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",t),...r})}let c=(0,a.F)("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function u(e){let{className:t,align:r="inline-start",...a}=e;return(0,s.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:(0,n.cn)(c({align:r}),t),onClick:e=>{var t,r;e.target.closest("button")||null===(r=e.currentTarget.parentElement)||void 0===r||null===(t=r.querySelector("input"))||void 0===t||t.focus()},...a})}let m=(0,a.F)("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}}
1);function x(e){let{className:t,type:r="button",variant:a="ghost",size:i="xs",...o}=e;return(0,s.jsx)(l.$,{type:r,"data-size":i,variant:a,className:(0,n.cn)(m({size:i}),t),...o})}function h(e){let{className:t,...r}=e;return(0,s.jsx)("span",{className:(0,n.cn)("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",t),...r})}function f(e){let{className:t,...r}=e;return(0,s.jsx)(i.p,{"data-slot":"input-group-control",className:(0,n.cn)("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",t),...r})}function g(e){let{className:t,...r}=e;return(0,s.jsx)(o.T,{"data-slot":"input-group-control",className:(0,n.cn)("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",t),...r})}},33900:(e,t,r)=>{r.d(t,{p:()=>n});var s=r(95155);r(12115);var a=r(21567);function n(e){let{className:t,type:r,...n}=e;return(0,s.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/20 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...n})}},98986:(e,t,r)=>{r.d(t,{J:()=>l});var s=r(95155);r(12115);var a=r(24352),n=r(21567);function l(e){let{className:t,...r}=e;return(0,s.jsx)(a.b,{"data-slot":"label",className:(0,n.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},37528:(e,t,r)=>{r.d(t,{bq:()=>u,eb:()=>x,gC:()=>m,l6:()=>d,yv:()=>c});var s=r(95155);r(12115);var a=r(51719),n=r(98867),l=r(91902),i=r(95297),o=r(21567);function d(e){let{...t}=e;return(0,s.jsx)(i.bL,{"data-slot":"select",...t})}function c(e){let{...t}=e;return(0,s.jsx)(i.WT,{"data-slot":"select-value",...t})}function u(e){let{className:t,size:r="default",children:n,...l}=e;return(0,s.jsxs)(i.l9,{"data-slot":"select-trigger","data-size":r,className:(0,o.cn)("border-input data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[n,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(a.A,{className:"size-4 opacity-50"})})]})}function m(e){let{className:t,children:r,position:a="item-aligned",align:n="center",...l}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(i.UC,{"data-slot":"select-content",className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-10000 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,align:n,...l,children:[(0,s.jsx)(h,{}),(0,s.jsx)(i.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:r}),(0,s.jsx)(f,{})]})})}function x(e){let{className:t,children:r,...a}=e;return(0,s.jsxs)(i.q7,{"data-slot":"select-item",className:(0,o.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[(0,s.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(n.A,{className:"size-4"})})}),(0,s.jsx)(i.p4,{children:r})]})}function h(e){let{className:t,...r}=e;return(0,s.jsx)(i.PP,{"data-slot":"select-scroll-up-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,s.jsx)(l.A,{className:"size-4"})})}function f(e){let{className:t,...r}=e;return(0,s.jsx)(i.wn,{"data-slot":"select-scroll-down-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,s.jsx)(a.A,{className:"size-4"})})}},67287:(e,t,r)=>{r.d(t,{y:()=>l});var s=r(95155),a=r(14505),n=r(21567);function l(e){let{className:t,...r}=e;return(0,s.jsx)(a.A,{role:"status","aria-label":"Loading",className:(0,n.cn)("size-4 animate-spin",t),...r})}},46754:(e,t,r)=>{r.d(t,{T:()=>n});var s=r(95155);r(12115);var a=r(21567);function n(e){let{className:t,...r}=e;return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("border-input placeholder:text-muted-foreground custom-scrollbar focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...r})}},62605:(e,t,r)=>{r.d(t,{B:()=>a});var s=r(12115);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{root:null,rootMargin:"0px",threshold:.1},r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,s.useRef)(e);a.current=e;let n=(0,s.useRef)(null);return(0,s.useCallback)(e=>{if(n.current&&(n.current.disconnect(),n.current=null),!r||!e)return;let s=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&a.current()},t);s.observe(e),n.current=s},[r,t.root,t.rootMargin,t.threshold])}},84780:(e,t,r)=>{r.d(t,{a:()=>a});var s=r(12115);function a(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:640,[t,r]=(0,s.useState)(()=>window.innerWidth<e);return(0,s.useEffect)(()=>{let t;let s=()=>{r(window.innerWidth<e)};if(window.ResizeObserver){let e=new ResizeObserver(s);return e.observe(document.body),()=>e.disconnect()}let a=()=>{clearTimeout(t),t=setTimeout(s,100)};return window.addEventListener("resize",a),()=>{clearTimeout(t),window.removeEventListener("resize",a)}},[e]),t}},21567:(e,t,r)=>{r.d(t,{cn:()=>n});var s=r(43463),a=r(69795);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},74883:(e,t,r)=>{r.d(t,{A:()=>o,I:()=>i});var s=r(95155),a=r(11536),n=r(13970),l=r(21169);let i=(e,t,r)=>{let i=t?"".concat(t,"px"):"24px",d=r||o(e);if(!e)return(0,s.jsx)(a.t69,{style:{height:i,width:i,color:d}});switch(e.toLowerCase()){case"pdf":return(0,s.jsx)(a.kl1,{style:{height:i,width:i,color:d}});case"doc":case"docx":return(0,s.jsx)(a.WLb,{style:{height:i,width:i,color:d}});case"xls":case"xlsx":return(0,s.jsx)(a.Ru,{style:{height:i,width:i,color:d}});case"ppt":case"pptx":return(0,s.jsx)(a.rgF,{style:{height:i,width:i,color:d}});case"jpg":case"jpeg":case"png":case"webp":case"gif":case"svg":return(0,s.jsx)(a.R1W,{style:{height:i,width:i,color:d}});case"mp3":case"wav":case"ogg":return(0,s.jsx)(a.EVA,{style:{height:i,width:i,color:d}});case"mp4":case"avi":case"mov":return(0,s.jsx)(a.Zgf,{style:{height:i,width:i,color:d}});case"zip":case"tar":case"gz":case"tar.gz":case"rar":case"7z":return(0,s.jsx)(l.d$h,{style:{height:i,width:i,color:d}});case"html":return(0,s.jsx)(n.reA,{style:{height:i,width:i,color:d}});case"apk":return(0,s.jsx)(a.DGu,{style:{height:i,width:i,color:d}});default:return(0,s.jsx)(a.t69,{style:{height:i,width:i,color:d}})}},o=e=>{if(!e)return"#6B7280";switch(e.toLowerCase()){case"pdf":return"#EF4444";case"doc":case"docx":return"#3B82F6";case"xls":case"xlsx":return"#10B981";case"ppt":case"pptx":return"#F97316";case"jpg":case"jpeg":case"png":case"gif":return"#8B5CF6";case"mp3":case"wav":case"ogg":return"#EAB308";case"mp4":case"avi":case"mov":return"#6366F1";case"zip":case"tar":case"gz":case"tar.gz":case"rar":case"7z":return"#D77C2E";case"html":return"#E34F26";case"apk":return"#2C9B6E";default:return"#6B7280"}}},21523:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(95155),a=r(5565),n=r(12115),l=r(39834),i=r(21567);let o=(0,n.memo)(e=>{let{profilePicUrl:t,username:r,size:o=36,className:d}
1=e,[c,u]=(0,n.useState)((0,l.V)(t)),[m,x]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{u((0,l.V)(t)),x(!1)},[t]),c&&!m)return(0,s.jsx)("div",{className:(0,i.cn)("flex shrink-0 items-center justify-center overflow-hidden rounded-full",d),style:{width:o,height:o},children:(0,s.jsx)(a.default,{src:c,alt:"".concat(r,"'s profile picture"),width:o,height:o,className:"h-full w-full object-cover",onError:()=>x(!0)},r)});{let e=r?r[0].toUpperCase():"";return(0,s.jsx)("div",{style:{width:o,height:o,fontSize:o-25},className:(0,i.cn)("border-bordergrey flex shrink-0 items-center justify-center rounded-full border bg-gray-300 font-semibold text-gray-600",d),children:e})}});o.displayName="GetProfilePic";let d=o},78998:(e,t,r)=>{r.d(t,{f:()=>i});var s=r(95155),a=r(12115),n=r(5565),l=r(74883);let i=(0,a.memo)(e=>{let{hasThumbnail:t,thumbnailSource:r,formattedFileType:a,className:i="",small:o=!1}=e;return t&&r?(0,s.jsx)("div",{className:"relative aspect-video overflow-hidden select-none ".concat(o?"w-[168px] shrink-0":"w-full"," ").concat(i," "),children:(0,s.jsx)(n.default,{src:r,alt:"File thumbnail",fill:!0,className:"rounded-md object-cover select-none",sizes:o?"168px":"auto",loading:"lazy",draggable:!1})}):(0,s.jsxs)("div",{className:"flex aspect-video items-center justify-center overflow-hidden rounded-md bg-gray-100 select-none ".concat(o?"w-[168px]":"w-full"," ").concat(i),draggable:"false",children:[(0,l.I)(a,o?"40":"64"),(0,s.jsx)("span",{className:"ml-2 truncate text-lg font-semibold text-gray-600 uppercase",children:a})]})});i.displayName="RenderThumbnail"},39313:(e,t,r)=>{r.d(t,{W:()=>a,Y:()=>s});let s=e=>new Date(e).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"}),a=e=>{let t=new Date(e),r=new Date;return Math.max(0,Math.ceil((t.getTime()-r.getTime())/864e5))}},33388:(e,t,r)=>{r.d(t,{T_:()=>n,hz:()=>l});var s=r(26197),a=r(94270);async function n(e){return(await s.fE.get(a.eR.PUBLIC_FILE_STATS(e))).data}async function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,n=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return(await s.fE.get(a.eR.INTERNAL_CONTENT_STATS(e,t,r,n))).data}},52913:(e,t,r)=>{r.d(t,{v:()=>s});function s(e){if(null==e)return"Unknown size";let t="string"==typeof e?parseFloat(e):e;if(Number.isNaN(t))return"Unknown size";if(0===t)return"< 1 KB";if(t<.1){let e=1024*t;return"".concat(e.toFixed(2)," KB")}if(t>=1024){let e=t/1024;return"".concat(e.toFixed(2)," GB")}return"".concat(t.toFixed(2)," MB")}},39834:(e,t,r)=>{r.d(t,{V:()=>a});var s=r(94270);let a=e=>{if(!e||"null"===e)return"";let t=e.trim();if(!t)return"";if(/^(https?:|data:|blob:)/i.test(t)||s.GM&&t.startsWith(s.GM))return t;let r=t.replace(/^\/+/,"");return s.GM?"".concat(s.GM,"/").concat(r):"/".concat(r)}},89728:(e,t,r)=>{r.d(t,{h:()=>s});let s=e=>{let t=new Date(e),r=new Date,s=t.getFullYear()===r.getFullYear();return t.toLocaleDateString("en-US",s?{month:"short",day:"numeric"}:{year:"numeric",month:"short",day:"numeric"})}},752:(e,t,r)=>{r.d(t,{A:()=>s});let s=e=>{let t=new Date(e),r=new Date().getTime()-t.getTime();if(Number.isNaN(r))return"";let s=Math.floor(r/1e3),a=Math.floor(s/60),n=Math.floor(a/60),l=Math.floor(n/24),i=Math.floor(l/7),o=Math.floor(l/30),d=Math.floor(l/365);return s<5?"just now":s<60?"".concat(s," ").concat(1===s?"second":"seconds"," ago"):a<60?"".concat(a," ").concat(1===a?"minute":"minutes"," ago"):n<24?"".concat(n," ").concat(1===n?"hour":"hours"," ago"):l<7?"".concat(l," ").concat(1===l?"day":"days"," ago"):i<5?"".concat(i," ").concat(1===i?"week":"weeks"," ago"):o<12||d<1?"".concat(o," ").concat(1===o?"month":"months"," ago"):"".concat(d," ").concat(1===d?"year":"years"," ago")}}}]);
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.