1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="e9e04f08-7c07-43f5-88f5-b45f863b0984",e._sentryDebugIdIdentifier="sentry-dbid-e9e04f08-7c07-43f5-88f5-b45f863b0984")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65090],{65090:(e,l,t)=>{t.r(l),t.d(l,{LibraryResourcesPanel:()=>x});var s=t(95155),n=t(12115),i=t(51529),d=t(22544),a=t(59435),r=t(92455),c=t(70727),o=t(21969),u=t(59865),f=t(23376);function x(e){var l,t,x;let{onPrev:p}=e,{watch:m,control:b,formState:{isValid:h}}=(0,d.xW)(),{fields:g,append:k,remove:v}=(0,d.jz)({control:b,name:"resources"}),j=(0,d.FH)({control:b,name:"resources"}),y=m(["thumbnail","title","description"]),[w,N]=(0,n.useState)(null),_=(0,n.useRef)(!1),I=null!=j?j:[];(0,n.useEffect)(()=>{_.current&&g.length>0&&(N(g[g.length-1].id),_.current=!1)},[g]);let C=null!==w&&g.some(e=>e.id===w)?w:null!=(t=null==(l=g[0])?void 0:l.id)?t:null,D=g.findIndex(e=>e.id===C),E=(0,n.useCallback)(e=>{N(e)},[]),T=(0,n.useCallback)(()=>{k({id:(0,o.$)(),title:"",description:"",content:"",attachments:[]}),_.current=!0},[k]),z=(0,n.useCallback)(e=>{let l=g.findIndex(l=>l.id===e);if(-1!==l&&(v(l),C===e)){var t,s;let e=null!=(t=g[l+1])?t:g[l-1];N(null!=(s=null==e?void 0:e.id)?s:null)}},[g,v,C]),S=g.map((e,l)=>{var t,s,n,i,d,a;return{id:e.id,title:null!=(i=null==(t=I[l])?void 0:t.title)?i:"",description:null!=(d=null==(s=I[l])?void 0:s.description)?d:"",content:null!=(a=null==(n=I[l])?void 0:n.content)?a:""}});return(0,s.jsxs)("div",{className:"screen-layout px-5 pt-10 max-desktop:px-4 max-desktop:pt-5",children:[(0,s.jsxs)("div",{className:"grid grid-cols-[400px_minmax(0,1fr)] gap-10 max-desktop:block",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 max-desktop:hidden",children:[(0,s.jsx)("p",{className:"font-bold text-neutral-900 text-title-2",children:"미리보기"}),(0,s.jsxs)(c.c,{children:[(0,s.jsx)(c.c.Cover,{src:y[0],alt:null!=(x=y[1])?x:"미리보기",placeholder:!0}),(0,s.jsxs)(c.c.Body,{children:[(0,s.jsx)(c.c.Title,{children:y[1]||"ìë£ì§ ì 목"}),(0,s.jsx)(c.c.Description,{children:y[2]||"íì¤ ì¤ëª
"})]})]})]}),(0,s.jsx)(r.Y,{items:S,selectedId:C,onSelect:E,onAdd:T,onDelete:z}),(0,s.jsx)(f.T,{className:"max-desktop:hidden",variant:"blue",icon:e=>(0,s.jsx)(i.v,{...e,weight:"fill"}),title:"ë¹ ìë£ì§ì ìì¬ìì!",description:"ìë£ì§ì ë±ë¡íë ¤ë©´ ìµì 1ê° ì´ìì ì±í°ê° íìí´ì!\n첫 ë´ì©ì ì±ì주ì¸ì."})]}),D>=0&&(0,s.jsx)(a.k,{className:"max-desktop:mt-4",index:D},C)]}),(0,s.jsxs)("div",{className:"max-desktop:fixed-bottom mt-10 flex justify-center gap-3",children:[(0,s.jsx)(u.$,{type:"button",variant:"grayOutline",size:"large",className:"w-35 max-desktop:w-full",onClick:p,children:"ì´ì "}),(0,s.jsx)(u.$,{type:"submit",variant:"primaryFill",size:"large",className:"w-35 max-desktop:w-full",disabled:0===g.length||!h,children:"ìë£"})]})]})}}}]);
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.