PageSourceSearch

https://shelfy.so/_next/static/chunks/40624-1b0b13580283f197.js

js shelfy.so collected 2026-10-09 22:42:22 UTC 9,890 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35569,40624,57950],{3998:(e,r,t)=>{t.d(r,{$:()=>d,r:()=>i});var a=t(95155),s=t(12115),l=t(32467),n=t(83101),o=t(64269);let i=(0,n.F)("inline-flex items-center justify-center rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none ring-offset-background",{variants:{variant:{default:"text-primary-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input 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 outline-none focus:outline-none",fullGhost:"bg-white hover:bg-accent hover:text-accent-foreground outline-none focus:outline-none",link:"underline-offset-4 hover:underline text-primary"},size:{default:"h-10 py-2 px-4",lg:"h-11 px-8 rounded-md",sm:"h-9 px-3 rounded-md",xs:"h-7 px-3 rounded-md",xxs:"h-5 px-2 rounded-md"},width:{full:"w-full"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,r)=>{let{className:t,variant:s,size:n,width:d,asChild:c=!1,...u}=e,x=c?l.DX:"button";return(0,a.jsx)(x,{className:(0,o.cn)(i({variant:s,size:n,width:d,className:t})),ref:r,...u})});d.displayName="Button"},35569:(e,r,t)=>{t.r(r),t.d(r,{apiSliceProxy:()=>l,useGetResourcesQuery:()=>n});var a=t(61321),s=t(49973);let l=(0,a.xP)({reducerPath:"apiProxy",baseQuery:s.W,tagTypes:["Resources"],endpoints:e=>({getResources:e.query({query:()=>({url:"collections"}),providesTags:["Resources"]})})}),{useGetResourcesQuery:n}=l},65142:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(95155),s=t(12115),l=t(64269);let n=s.forwardRef((e,r)=>{let{className:t,type:s,...n}=e;return(0,a.jsx)("input",{type:s,className:(0,l.cn)("placeholder-gray-300 flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none   disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})});n.displayName="Input";let o=n},74475:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(95155),s=t(12115),l=t(94994),n=t(20781),o=t(42138),i=t(79933);function d(e){let{isOpen:r,onClose:t,resource:d,onSuccess:c}=e,{toast:u}=(0,i.dj)(),[x,m]=(0,s.useState)(""),[f,p]=(0,s.useState)(""),[h,g]=(0,s.useState)(!1),y=(0,s.useRef)(null),[b]=(0,o.useUpdateLinkMutation)();(0,s.useEffect)(()=>{r&&d&&(m(d.title||""),p(d.description||""),setTimeout(()=>{y.current&&(y.current.focus(),y.current.select())},100))},[r,d]);let v=()=>{t(),m(""),p("")},w=async()=>{if(x.trim()){g(!0);try{await b({id:d.id,payload:{title:x,description:f}}).unwrap(),v(),u({title:"Resource renamed",description:'Resource has been renamed to "'.concat(x,'"')}),c&&c()}catch(e){u({variant:"destructive",title:"Error",description:"Failed to rename resource. Please try again."})}finally{g(!1)}}};return(0,a.jsx)(l.A,{isOpen:r,onClose:v,title:"Rename Resource",size:"sm",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"resource-title",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Title"}),(0,a.jsx)("input",{ref:y,id:"resource-title",type:"text",value:x,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&x.trim()?w():"Escape"===e.key&&v()},placeholder:"Resource Title",className:"w-full px-3 py-2 border border-gray-100 rounded-md focus:outline-none "})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"resource-description",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Description"}),(0,a.jsx)("textarea",{id:"resource-description",value:f,onChange:e=>p(e.target.value),onKeyDown:e=>{"Escape"===e.key&&v()},placeholder:"Resource Description",className:"w-full px-3 py-2 border border-gray-100 rounded-md focus:outline-none resize-none",rows:4})]}),(0,a.jsxs)("div",{className:"flex justify-end gap-3 w-full pt-2",children:[(0,a.jsx)(n.$,{className:"min-w-[100px] min-w-[66] h-[40p
1x]",variant:"dark",onClick:v,disabled:h,children:"Cancel"}),(0,a.jsx)(n.$,{className:"min-w-[100px] min-w-[66] h-[40px]",variant:"black",onClick:w,disabled:h||!x.trim(),children:h?"Saving...":"Save"})]})]})})}},94994:(e,r,t)=>{t.d(r,{A:()=>c});var a=t(95155),s=t(12115),l=t(51834),n=t(861),o=t(64269),i=t(63892);let d={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},c=e=>{let{isOpen:r,onClose:t,children:c,title:u,footerContent:x,hideCloseButton:m=!1,className:f="",size:p="md",fullscreenOnMobile:h=!1,preventCloseOnOutsideClick:g=!1}=e,y=s.useRef(0);s.useEffect(()=>{r&&(y.current=Date.now())},[r]);let b=()=>Date.now()-y.current<500;return(0,a.jsx)(l.lG,{open:r,onOpenChange:e=>{e||g||t()},children:(0,a.jsxs)(l.Cf,{overlayClassName:"z-[12200]",className:(0,o.cn)(h?"sm:".concat(d[p]):d[p],"bg-white dark:bg-gray-600","z-[12210]",f,"p-0",h&&"w-screen max-w-none rounded-none sm:rounded-lg"),"data-fullscreen-mobile":!!h||void 0,onInteractOutside:e=>{if(g||b())return void e.preventDefault();t()},onPointerDownOutside:e=>{if(b())return void e.preventDefault()},onEscapeKeyDown:e=>{if(g)return void e.preventDefault();t()},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[u?(0,a.jsx)(l.c7,{className:"flex w-full flex-row space-y-0 border-b border-gray-100 dark:border-gray-700",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-2.5 sm:px-6 sm:py-4 w-full",children:[(0,a.jsx)(l.L3,{className:"min-w-0 flex-1 truncate text-[15px] sm:text-lg font-semibold text-black dark:text-gray-100 m-0 leading-tight",children:u}),!m&&(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(l.HM,{asChild:!0,children:(0,a.jsx)("button",{className:"p-1 rounded text-gray-400 dark:text-gray-100 hover:text-gray-700 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors cursor-pointer focus:outline-none focus-visible:ring-0","aria-label":"Close modal",autoFocus:!1,children:(0,a.jsx)(i.A,{name:"Close",width:18,height:18,className:"text-gray-400 dark:text-white"})})})})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.s6,{children:(0,a.jsx)(l.L3,{children:"Modal"})}),!m&&(0,a.jsx)(l.c7,{className:"flex w-full flex-row space-y-0 border-b border-gray-100 dark:border-gray-700",children:(0,a.jsx)("div",{className:"flex items-center justify-end px-4 py-2.5 sm:px-6 sm:py-4 w-full",children:(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(l.HM,{asChild:!0,children:(0,a.jsx)("button",{className:"p-1 rounded text-gray-400 dark:text-gray-100 hover:text-gray-700 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors cursor-pointer focus:outline-none focus-visible:ring-0","aria-label":"Close modal",autoFocus:!1,children:(0,a.jsx)(i.A,{name:"Close",width:18,height:18,className:"text-gray-400 dark:text-white"})})})})})})]}),(0,a.jsx)("div",{className:(0,o.cn)("overflow-y-auto sm:p-6",h?"p-0":"p-4",h?"max-h-[calc(100dvh-52px)] sm:max-h-[70vh]":"max-h-[70vh]"),children:c}),x&&(0,a.jsx)(l.Es,{className:(0,o.cn)("sm:p-6",h?"p-0":"p-4"),children:x})]})})}},98053:(e,r,t)=>{t.d(r,{$v:()=>p,EO:()=>u,Lt:()=>i,Rx:()=>h,Zr:()=>g,ck:()=>m,r7:()=>f,wd:()=>x});var a=t(95155),s=t(12115),l=t(35646),n=t(64269),o=t(3998);let i=l.bL;l.l9;let d=e=>{let{className:r,children:t,...s}=e;return(0,a.jsx)(l.ZL,{className:(0,n.cn)(r),...s,children:(0,a.jsx)("div",{className:"fixed inset-0 z-[12015] flex items-end justify-center sm:items-center",children:t})})};d.displayName=l.ZL.displayName;let c=s.forwardRef((e,r)=>{let{className:t,children:s,...o}=e;return(0,a.jsx)(l.hJ,{className:(0,n.cn)("fixed inset-0 z-[12020] bg-black/50 dark:bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:r})});c.displayName=l.hJ.displayName;let u=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(c,{}),(0,a.jsx)(l.UC,{ref:r,className:(0,n.cn)("fixed z-[12025] grid w-full max-w-lg scale-100 gap-4 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 p-6 opacity-100 shadow-xl animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full",t),...s})]})});u.displayName=l.UC.displayName;let x=e=>{let{className:r,...t}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",r),...t})};x.displayName="AlertDialogHeader";let m=e=>{let{className:r,...t}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",r),...t})};m.displayName="AlertDialogFooter";let f=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)(l.hE,{ref:r,className:(0,n.cn)("text-lg font-semibold text-gray-900 dark:text-gray-100",t),...s})});f.displayName=l.hE.displayName;let p=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)(l.VY,{ref:r,className:(0,n.cn)("text-sm text-gray-600 dark:text-gray-300",t),...s})});p.displayName=l.VY.displayName;let h=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)(l.rc,{ref:r,className:(0,n.cn)((0,o.r)(),t),...s})});h.displayName=l.rc.displayName;let g=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)(l.ZD,{ref:r,className:(0,n.cn)((0,o.r)({variant:"outline"}),"mt-2 sm:mt-0","bg-white text-gray-900 border-gray-200 hover:bg-gray-50","dark:bg-gray-700 dark:text-gray-100 dark:border-gray-600 dark:hover:bg-gray-650",t),...s})});g.displayName=l.ZD.displayName}}]);

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.