1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9298],{79298:(e,n,r)=>{r.d(n,{QQ:()=>F,dv:()=>i,SF:()=>t,kO:()=>k,y1:()=>L,RL:()=>D,i8:()=>Q,HH:()=>b,bo:()=>a,jM:()=>U,HB:()=>s.HB,LY:()=>s.LY,tA:()=>c,VN:()=>l,DJ:()=>s.DJ,u7:()=>g});var o=r(85409),t={maxPerUser:30,nameMin:1,nameMax:40};o.YjP().trim().min(t.nameMin).max(t.nameMax);var a={fast:"120ms",base:"160ms",slow:"240ms",springLoadMs:600},l={"@media (prefers-reduced-motion: reduce)":{transitionDuration:"0s",animationDuration:"0s"}},i={limit:"Maximum 30 folders.",duplicate:"That name is taken.",tooLong:"Name is too long.",empty:"Name is required.",newFolder:"New folder",namePlaceholder:"Folder name",rename:"Rename",moveUp:"Move up",moveDown:"Move down",delete:"Delete",deleteTitle:function(e){return"Delete '".concat(e,"'?")},deleteBody:function(e,n,r){return 1===e?"Its 1 ".concat(n.one," stays in your ").concat(r,"."):"Its ".concat(e," ").concat(n.many," stay in your ").concat(r,".")},drop:"drop"};function c(e){return"limit"===e?i.limit:"duplicate"===e?i.duplicate:i.tooLong}var s=r(91126),d=r(43078),u=r(64084),m=r(95155),f=r(19749),x=r(16105),p=r(7678),h=r(34636),v=r(12115);function b(e){var n,r,o,t,c,s,b,g,_,j,y,S,C=(0,f.c)(30),w=e.initialValue,k=e.placeholder,D=e.error,T=e.onCommit,z=e.onCancel,R=e["aria-label"],B=void 0===k?i.namePlaceholder:k,M=(0,u._)((0,v.useState)(void 0===w?"":w),2),N=M[0],E=M[1],A=(0,v.useRef)(null),L=(0,v.useId)(),I=(0,v.useRef)(!1);C[0]===Symbol.for("react.memo_cache_sentinel")?(n=function(){var e=A.current;e&&(e.focus(),e.select())},r=[],C[0]=n,C[1]=r):(n=C[0],r=C[1]),(0,v.useEffect)(n,r),C[2]!==D?(o=function(){D&&(I.current=!1)},t=[D],C[2]=D,C[3]=o,C[4]=t):(o=C[3],t=C[4]),(0,v.useEffect)(o,t),C[5]===Symbol.for("react.memo_cache_sentinel")?(c=function(e){I.current||(I.current=!0,e())},C[5]=c):c=C[5];var O=c;C[6]!==z||C[7]!==T||C[8]!==N?(s=function(){var e=N.trim();e?O(function(){return T(e)}):O(function(){return z()})},C[6]=z,C[7]=T,C[8]=N,C[9]=s):s=C[9];var F=s,W=!!D||void 0,U=D?L:void 0;C[10]===Symbol.for("react.memo_cache_sentinel")?(b=function(e){I.current=!1,E(e.target.value)},C[10]=b):b=C[10],C[11]!==F||C[12]!==z?(g=function(e){"Enter"===e.key&&(e.preventDefault(),F()),"Escape"===e.key&&(e.preventDefault(),I.current=!0,z())},C[11]=F,C[12]=z,C[13]=g):g=C[13];var P=D?"status.danger.fg":"brand.solid";return C[14]===Symbol.for("react.memo_cache_sentinel")?(_=(0,d._)({transition:"border-color ".concat(a.fast)},l),C[14]=_):_=C[14],C[15]!==R||C[16]!==F||C[17]!==B||C[18]!==U||C[19]!==g||C[20]!==P||C[21]!==W||C[22]!==N?(j=(0,m.jsx)(x.p,{ref:A,"aria-label":R,"aria-invalid":W,"aria-describedby":U,value:N,placeholder:B,onChange:b,onBlur:F,onKeyDown:g,size:"sm",h:"auto",py:"1",fontSize:"sm",bg:"bg.surface",borderColor:P,borderRadius:"md",color:"fg",css:_}
1),C[15]=R,C[16]=F,C[17]=B,C[18]=U,C[19]=g,C[20]=P,C[21]=W,C[22]=N,C[23]=j):j=C[23],C[24]!==D||C[25]!==L?(y=D&&(0,m.jsx)(p.Text,{id:L,role:"status",fontSize:"xs",color:"status.danger.fg",mt:"1",px:"0.5",children:D}),C[24]=D,C[25]=L,C[26]=y):y=C[26],C[27]!==j||C[28]!==y?(S=(0,m.jsxs)(h.Box,{flex:1,minW:0,children:[j,y]}),C[27]=j,C[28]=y,C[29]=S):S=C[29],S}function g(e){var n,r,o,t,l,i,c,s,d,m,x,p,h,b,g=(0,f.c)(22),_=null!=(n=null==e?void 0:e.springLoadMs)?n:a.springLoadMs,j=null!=(r=null==e?void 0:e.flashMs)?r:parseInt(a.slow,10),y=(0,u._)((0,v.useState)(!1),2),S=y[0],C=y[1],w=(0,u._)((0,v.useState)(null),2),k=w[0],D=w[1],T=(0,u._)((0,v.useState)(null),2),z=T[0],R=T[1],B=(0,u._)((0,v.useState)(null),2),M=B[0],N=B[1],E=(0,u._)((0,v.useState)(null),2),A=E[0],L=E[1],I=(0,u._)((0,v.useState)(null),2),O=I[0],F=I[1],W=(0,v.useRef)(null),U=(0,v.useRef)(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(o=function(){W.current&&clearTimeout(W.current),W.current=null},g[0]=o):o=g[0];var P=o;g[1]===Symbol.for("react.memo_cache_sentinel")?(t=function(){return function(){P(),U.current&&clearTimeout(U.current)}},l=[P],g[1]=t,g[2]=l):(t=g[1],l=g[2]),(0,v.useEffect)(t,l),g[3]===Symbol.for("react.memo_cache_sentinel")?(i=function(){D(null),L(null),C(!0)},g[3]=i):i=g[3];var V=i;g[4]===Symbol.for("react.memo_cache_sentinel")?(c=function(){L(null),C(!1)},g[4]=c):c=g[4];var Y=c;g[5]===Symbol.for("react.memo_cache_sentinel")?(s=function(e){C(!1),L(null),D(e)},g[5]=s):s=g[5];var H=s;g[6]===Symbol.for("react.memo_cache_sentinel")?(d=function(){L(null),D(null)},g[6]=d):d=g[6];var J=d;g[7]!==_?(m=function(e,n){R(e),P(),(null==n?void 0:n.collapsed)&&(W.current=setTimeout(function(){return N(e)},_))},g[7]=_,g[8]=m):m=g[8];var K=m;g[9]===Symbol.for("react.memo_cache_sentinel")?(x=function(e){R(function(n){return n===e?null:n}),N(function(n){return n===e?null:n}),P()},g[9]=x):x=g[9];var Z=x;g[10]===Symbol.for("react.memo_cache_sentinel")?(p=function(){R(null),N(null),P()},g[10]=p):p=g[10];var Q=p;g[11]!==j?(h=function(e){F(e),U.current&&clearTimeout(U.current),U.current=setTimeout(function(){return F(null)},j)},g[11]=j,g[12]=h):h=g[12];var q=h;return g[13]!==z||g[14]!==q||g[15]!==A||g[16]!==S||g[17]!==K||g[18]!==O||g[19]!==k||g[20]!==M?(b={newOpen:S,openNew:V,closeNew:Y,renamingId:k,startRename:H,stopRename:J,dropTargetId:z,setDropTarget:R,springOpenId:M,onDragEnterTarget:K,onDragLeaveTarget:Z,clearDrag:Q,inlineError:A,setInlineError:L,recentlyMovedId:O,flashMoved:q},g[13]=z,g[14]=q,g[15]=A,g[16]=S,g[17]=K,g[18]=O,g[19]=k,g[20]=M,g[21]=b):b=g[21],b}var _=r(83153),j=r(96843),y=r(51069),S=r(92206),C=r(2857),w=r(15927),k=34;function D(e){var n,r,o,t,c,s,u,x,v,b,g,_,k,D,z=(0,f.c)(56),R=e.label,B=e.count,M=e.active,N=e.dropTarget,E=e.flash,A=e.collapsed,L=e.onToggleCollapsed,I=e.eyebrow,O=e.draggable,F=e.onDragStart,W=e.onDragEnd,U=e.onDragOver,P=e.onDragEnter,V=e.onDragLeave,Y=e.onDrop,H=e.onClick,J=e.trailing,K=e.trailingAlwaysVisible,Z=e.dotColor,Q=e["data-testid"],q="function"==typeof L,G="string"==typeof R?R:"folder",X=T;z[0]!==P?(n=function(e){X(e)||null==P||P(e)},z[0]=P,z[1]=n):n=z[1];var $=n;z[2]!==V?(r=function(e){X(e)||null==V||V(e)},z[2]=V,z[3]=r):r=z[3];var ee=r,en=N?"true":void 0,er=M?"true":void 0,eo=E?"true":void 0,et=O||void 0,ea=N||E?"brand.subtle":M?"brand.muted":"transparent",el=N?"inset 0 0 0 1px var(--chakra-colors-brand-solid)":"none",ei=N?"brand.subtle":M?"brand.muted":"bg.surface";z[4]!==ei?(o={bg:ei},z[4]=ei,z[5]=o):o=z[5],z[6]===Symbol.for("react.memo_cache_sentinel")?(t=(0,j._)((0,d._)({transition:"background ".concat(a.fast,", box-shadow ").concat(a.fast)},l),{"&:focus-within [data-folder-trailing], &:hover [data-folder-trailing]":{opacity:1}}),z[6]=t):t=z[6];var ec=M?"scaleY(1)":"scaleY(0)";z[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,d._)({transition:"transform ".concat(a.base)},l),z[7]=c):c=z[7],z[8]!==ec?(s=(0,m.jsx)(h.Box,{"aria-hidden":!0,position:"absolute",left:"-3",top:"7px",bottom:"7px",w:"0.5",borderRadius:"xs",bg:"brand.solid",transformOrigin:"center",transform:ec,css:c}),z[8]=ec,z[9]=s):s=z[9],z[10]!==A||z[11]!==q||z[12]!==G||z[13]!==L?(u=q&&(0,m.jsx)(y.K,{"aria-label":"".concat(A?"Expand":"Collapse"," ").concat(G),"aria-expanded":!A,variant:"plain",size:"xs",minW:"6",h:"6",color:"fg.subtle",onClick:function(e){e.stopPropagation(),null==L||L()},children:(0,m.jsx)(h.Box,{as:"span",display:"inline-flex",transform:A?"rotate(0deg)":"rotate(90deg)",css:(0,d._)({transition:"transform ".concat(a.base)},l),children:(0,m.jsx)(w.A,{size:14})})}),z[10]=A,z[11]=q,z[12]=G,z[13]=L,z[14]=u):u=z[14];var es=q?"1":"2.5";z[15]===Symbol.for("react.memo_cache_sentinel")?(x={outline:"2px s
1olid",outlineColor:"brand.solid",outlineOffset:"-2px",borderRadius:"lg"},z[15]=x):x=z[15],z[16]!==Z?(v=Z&&(0,m.jsx)(h.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:Z,flexShrink:0}),z[16]=Z,z[17]=v):v=z[17];var ed=I?"true":void 0,eu=I?"xs":"sm",em=I||M?"medium":"normal",ef=I?"label-tight":void 0,ex=M?"brand.fg":I?"fg.subtle":"fg.muted";return z[18]!==R||z[19]!==ed||z[20]!==eu||z[21]!==em||z[22]!==ef||z[23]!==ex?(b=(0,m.jsx)(p.Text,{"data-user-content":!0,flex:1,minW:0,"data-eyebrow":ed,fontSize:eu,fontWeight:em,letterSpacing:ef,color:ex,truncate:!0,children:R}),z[18]=R,z[19]=ed,z[20]=eu,z[21]=em,z[22]=ef,z[23]=ex,z[24]=b):b=z[24],z[25]!==B||z[26]!==N?(g=N?(0,m.jsx)(p.Text,{fontSize:"xs",letterSpacing:"label-wide",color:"brand.fg",flexShrink:0,children:i.drop}):void 0!==B&&(0,m.jsx)(p.Text,{fontSize:"xs",color:"fg.subtle",flexShrink:0,children:B}),z[25]=B,z[26]=N,z[27]=g):g=z[27],z[28]!==H||z[29]!==es||z[30]!==v||z[31]!==b||z[32]!==g?(_=(0,m.jsxs)(S.Button,{unstyled:!0,onClick:H,display:"flex",alignItems:"center",gap:"2.5",flex:1,minW:0,px:es,py:"2.5",textAlign:"left",cursor:"pointer",_focusVisible:x,children:[v,b,g]}),z[28]=H,z[29]=es,z[30]=v,z[31]=b,z[32]=g,z[33]=_):_=z[33],z[34]!==J||z[35]!==K?(k=J&&(0,m.jsx)(h.Box,{"data-folder-trailing":!0,pr:"1.5",opacity:+!!K,css:(0,j._)((0,d._)({transition:"opacity ".concat(a.fast)},l),{"&:has([data-state=open])":{opacity:1}}),children:J}),z[34]=J,z[35]=K,z[36]=k):k=z[36],z[37]!==$||z[38]!==ee||z[39]!==W||z[40]!==U||z[41]!==F||z[42]!==Y||z[43]!==o||z[44]!==s||z[45]!==u||z[46]!==_||z[47]!==k||z[48]!==en||z[49]!==er||z[50]!==eo||z[51]!==et||z[52]!==ea||z[53]!==el||z[54]!==Q?(D=(0,m.jsxs)(C.Flex,{className:"group",position:"relative",align:"center",gap:"1.5",borderRadius:"lg","data-drop-target":en,"data-active":er,"data-flash":eo,draggable:et,onDragStart:F,onDragEnd:W,onDragOver:U,onDragEnter:$,onDragLeave:ee,onDrop:Y,"data-testid":Q,bg:ea,boxShadow:el,_hover:o,css:t,children:[s,u,_,k]}),z[37]=$,z[38]=ee,z[39]=W,z[40]=U,z[41]=F,z[42]=Y,z[43]=o,z[44]=s,z[45]=u,z[46]=_,z[47]=k,z[48]=en,z[49]=er,z[50]=eo,z[51]=et,z[52]=ea,z[53]=el,z[54]=Q,z[55]=D):D=z[55],D}function T(e){return(0,_._)(e.relatedTarget,Node)&&e.currentTarget.contains(e.relatedTarget)}var z=r(63286),R=r(50153),B=r(21594),M=r(61480),N=r(32664),E=r(99189),A=r(11190);function L(e){var n,r,o,t,a,l,c,s,u,x,p,h,v,b=(0,f.c)(28),g=e.folderName,_=e.onRename,S=e.onMoveUp,C=e.onMoveDown,w=e.onDelete,k=e.canMoveUp,D=e.canMoveDown,T=e.children,L=e.contentProps,O=void 0===k||k,F=void 0===D||D;b[0]===Symbol.for("react.memo_cache_sentinel")?(n={placement:"bottom-end"},b[0]=n):n=b[0];var W="".concat(g," options");return b[1]===Symbol.for("react.memo_cache_sentinel")?(r={color:"fg"},b[1]=r):r=b[1],b[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,m.jsx)(B.A,{size:14}),b[2]=o):o=b[2],b[3]!==W?(t=(0,m.jsx)(z.cQ,{asChild:!0,children:(0,m.jsx)(y.K,{"aria-label":W,variant:"plain",minW:"6",w:"6",h:"6",p:0,color:"fg.subtle",_hover:r,onClick:I,children:o})}),b[3]=W,b[4]=t):t=b[4],b[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m.jsx)(M.A,{size:13}),b[5]=a):a=b[5],b[6]!==_?(l=(0,m.jsxs)(z.Dr,{value:"rename",onClick:_,children:[a,i.rename]}),b[6]=_,b[7]=l):l=b[7],b[8]!==O||b[9]!==S?(c=S&&(0,m.jsxs)(z.Dr,{value:"move-up",disabled:!O,onClick:function(){O&&S()},children:[(0,m.jsx)(N.A,{size:13}),i.moveUp]}),b[8]=O,b[9]=S,b[10]=c):c=b[10],b[11]!==F||b[12]!==C?(s=C&&(0,m.jsxs)(z.Dr,{value:"move-down",disabled:!F,onClick:function(){F&&C()},children:[(0,m.jsx)(E.A,{size:13}),i.moveDown]}),b[11]=F,b[12]=C,b[13]=s):s=b[13],b[14]===Symbol.for("react.memo_cache_sentinel")?(u={bg:"status.danger.subtle"},b[14]=u):u=b[14],b[15]===Symbol.for("react.memo_cache_sentinel")?(x=(0,m.jsx)(A.A,{size:13}),b[15]=x):x=b[15],b[16]!==w?(p=(0,m.jsxs)(z.Dr,{value:"delete",color:"status.danger.fg",_hover:u,onClick:w,children:[x,i.delete]}),b[16]=w,b[17]=p):p=b[17],b[18]!==T||b[19]!==L||b[20]!==c||b[21]!==s||b[22]!==p||b[23]!==l?(h=(0,m.jsx)(R.Z,{children:(0,m.jsx)(z.y3,{children:(0,m.jsxs)(z.rm,(0,j._)((0,d._)({bg:"bg.panel",borderColor:"border.field",boxShadow:"cardLift"},L),{children:[T,l,c,s,p]}))})}),b[18]=T,b[19]=L,b[20]=c,b[21]=s,b[22]=p,b[23]=l,b[24]=h):h=b[24],b[25]!==h||b[26]!==t?(v=(0,m.jsxs)(z.il,{positioning:n,children:[t,h]}),b[25]=h,b[26]=t,b[27]=v):v=b[27],v}function I(e){return e.stopPropagation()}var O=r(43111);function F(e){var n,r,o,t,a,l,c,s,d,x,h,b,g=(0,f.c)(31),_=e.open,j=e.folderName,y=e.count,C=e.noun,w=e.home,k=e.onConfirm,D=e.onCancel;g[0]!==y||g[1]!==j?(n={folderName:j,count:y},g[0]=y,g[1]=j,g[2]=n):n=g[2];var T=(0,u._)((0,v.useState)(n),2),z=T[0],B=T[1];return _&&(z.folderName!==j||z.count!==y)&&B({folderName:j,count:y}),g[3]!==D?(r=function(e){e.open||D()},g[3]=D,g[4]=r):r=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,m.jsx)(O.Xi,{}),g[5]=o):o=g[5],g[6]!==z.folderName?(t=i.deleteTitle(z.folderName),g[6]=z.folderName,g[7]=t):t=g[7],g[8]!==t?(a=(0,m.jsx)(O.c7,{children:(0,m.jsx)(O.L3,{"data-user-content":!0,children:t})}),g[8]=t,g[9]=a):a=g[9],g[10]!==w||g[11]!==C||g[12]!==z.count?(l=i.deleteBody(z.count,C,w),g[10]=w,g[11]=C,g[12]=z.count,g[13]=l):l=g[13],g[14]!==l?(c=(0,m.jsx)(O.R4,{children:(0,m.jsx)(p.Text,{color:"fg.muted",children:l})}),g[14]=l,g[15]=c):c=g[15],g[16]!==D?(s=(0,m.jsx)(S.Button,{variant:"outline",onClick:D,children:"Cancel"}),g[16]=D,g[17]=s):s=g[17],g[18]!==k?(d=(0,m.jsx)(S.Button,{colorPalette:"red",onClick:k,children:i.delete}),g[18]=k,g[19]=d):d=g[19],g[20]!==s||g[21]!==d?(x=(0,m.jsxs)(O.Es,{gap:2,children:[s,d]}),g[20]=s,g[21]=d,g[22]=x):x=g[22],g[23]!==x||g[24]!==a||g[25]!==c?(h=(0,m.jsxs)(R.Z,{children:[o,(0,m.jsx)(O.f5,{children:(0,m.jsxs)(O.Cf,{children:[a,c,x]})})]}),g[23]=x,g[24]=a,g[25]=c,g[26]=h):h=g[26],g[27]!==_||g[28]!==h||g[29]!==r?(b=(0,m.jsx)(O.Dz,{open:_,onOpenChange:r,role:"alertdialog",size:"sm",children:h}
1),g[27]=_,g[28]=h,g[29]=r,g[30]=b):b=g[30],b}var W=r(74593);function U(e){var n,r,o,t,c,s,u,x=(0,f.c)(11),v=e.open,g=e.onOpen,_=e.onCommit,j=e.onCancel,y=e.error;return e.atLimit?(x[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m.jsx)(p.Text,{role:"status",fontSize:"xs",color:"fg.subtle",px:"2.5",py:"2.5",children:i.limit}),x[0]=n):n=x[0],n):v?(x[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m.jsx)(h.Box,{w:"1.5",h:"1.5",borderRadius:"full",bg:"brand.solid",flexShrink:0}),x[1]=r):r=x[1],x[2]!==y||x[3]!==j||x[4]!==_?(o=(0,m.jsxs)(C.Flex,{align:"center",gap:"2",px:"2",py:"1",mt:"1",children:[r,(0,m.jsx)(b,{"aria-label":"New folder name",error:y,onCommit:_,onCancel:j})]}),x[2]=y,x[3]=j,x[4]=_,x[5]=o):o=x[5],o):(x[6]===Symbol.for("react.memo_cache_sentinel")?(t={borderColor:"border.hover",color:"fg",bg:"transparent"},c=(0,d._)({transition:"border-color ".concat(a.fast,", color ").concat(a.fast)},l),s=(0,m.jsx)(W.A,{size:13}),x[6]=t,x[7]=c,x[8]=s):(t=x[6],c=x[7],s=x[8]),x[9]!==g?(u=(0,m.jsxs)(S.Button,{onClick:g,variant:"outline",justifyContent:"flex-start",gap:"2.5",w:"full",h:"auto",px:"2",py:"2.5",mt:"1",borderRadius:"lg",borderStyle:"dashed",borderColor:"border.field",bg:"transparent",color:"fg.muted",fontSize:"sm",fontWeight:"normal",_hover:t,css:c,children:[s,i.newFolder]}),x[9]=g,x[10]=u):u=x[10],u)}var P=r(42021),V=r(77828),Y=r(72521),H=r(52336),J=r(29563),K=r(29840),Z={justifyContent:"flex-start",gap:"2.5",w:"full",h:"9",px:"3",variant:"ghost"};function Q(e){var n,r,o,t,a,l,c=(0,u._)((0,v.useState)(!1),2),s=c[0],f=c[1],x=null!==e.target,g=(n=e.target)?"folder"===n.mode?"folder:".concat(n.id):"item"===n.mode?"item:".concat(null!=(r=n.id)?r:n.label):"new":"closed",_=(0,u._)((0,v.useState)(g),2),y=_[0],w=_[1];g!==y&&(w(g),f(!1));var k=function(){f(!1),e.onClose()},D=function(){var n;f(!1),null==(n=e.onRenameCancel)||n.call(e)},T=(0,u._)((0,v.useState)(e.target),2),z=T[0],B=T[1];e.target&&e.target!==z&&B(e.target);var L=null!=(o=e.target)?o:z,I=function(e,n,r){return(0,P._)(function(){var o;return(0,V.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null==r?void 0:r(e,n)];case 1:return(o=t.sent())&&!o.ok||f(!1),[3,3];case 2:return t.sent(),f(!1),[3,3];case 3:return[2]}})})()};return(0,m.jsx)(Y.Kg,{open:x,onOpenChange:function(e){e.open||k()},placement:"bottom",children:(0,m.jsxs)(R.Z,{children:[(0,m.jsx)(Y.ou,{bg:"nav.scrim"}),(0,m.jsx)(Y.I9,{children:(0,m.jsxs)(Y.zj,{borderTopRadius:"surface",pb:"env(safe-area-inset-bottom)",children:[(0,m.jsx)(Y.BE,{pb:"2",children:(0,m.jsxs)(Y.gk,{"data-user-content":!0,fontSize:"sm",color:"fg.muted",truncate:!0,children:[(null==L?void 0:L.mode)==="folder"&&L.name,(null==L?void 0:L.mode)==="item"&&L.label,(null==L?void 0:L.mode)==="new"&&i.newFolder]})}),(0,m.jsxs)(Y.ys,{pt:0,pb:"3",children:[(null==L?void 0:L.mode)==="folder"&&(0,m.jsxs)(H.Stack,{gap:"0.5",children:[null==(l=e.folderExtras)?void 0:l.call(e,L.id),s?(0,m.jsx)(C.Flex,{px:"3.5",py:"1.5",children:(0,m.jsx)(b,{"aria-label":"Rename folder",initialValue:L.name,error:e.error,onCommit:function(n){I(L.id,n,e.onRename)},onCancel:D},L.id)}):(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{onClick:function(){return f(!0)},children:[(0,m.jsx)(M.A,{size:16})," ",i.rename]})),(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{disabled:!L.canMoveUp,onClick:function(){var n;return null==(n=e.onMoveUp)?void 0:n.call(e,L.id)},children:[(0,m.jsx)(N.A,{size:16})," ",i.moveUp]})),(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{disabled:!L.canMoveDown,onClick:function(){var n;return null==(n=e.onMoveDown)?void 0:n.call(e,L.id)},children:[(0,m.jsx)(E.A,{size:16})," ",i.moveDown]})),(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{color:"status.danger.fg",onClick:function(){var n;return null==(n=e.onDelete)?void 0:n.call(e,L.id)},children:[(0,m.jsx)(A.A,{size:16})," ",i.delete]}))]}),(null==L?void 0:L.mode)==="item"&&(0,m.jsxs)(H.Stack,{gap:"2.5",children:[e.itemRename&&L.id&&(s?(0,m.jsx)(C.Flex,{px:"3.5",py:"1.5",children:(0,m.jsx)(b,{"aria-label":e.itemRename.ariaLabel,initialValue:null!=(t=L.name)?t:L.label,placeholder:e.itemRename.placeholder,error:e.error,onCommit:function(n){var r;I(L.id,n,null==(r=e.itemRename)?void 0:r.onRename)},onCancel:D},L.id)}):(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{onClick:function(){return f(!0)},children:[(0,m.jsx)(M.A,{size:16})," ",e.itemRename.label]}))),(0,m.jsxs)(h.Box,{children:[(0,m.jsx)(p.Text,{fontSize:"xs",color:"fg.subtle",px:"3.5",pb:"1.5",children:"Move to folder"}),(0,m.jsx)(J.Bz,{value:null!=(a=L.currentFolderId)?a:"",onValueChange:function(n){var r;return null==(r=e.onMoveItem)?void 0:r.call(e,n.value||null)},children:(0,m.jsx)(H.Stack,{gap:"0.5",children:e.folders.map(function(e){return(0,m.jsxs)(J.CU,{value:e.id,h:"11",px:"3.5",borderRadius:"lg",_hover:{bg:"bg.hover"},children:[(0,m.jsx)(J.GS,{}),(0,m.jsx)(J.rB,{}),(0,m.jsx)(J.JZ,{"data-user-content":!0,children:e.name})]},e.id)})})}),L.currentFolderId&&(0,m.jsxs)(S.Button,(0,j._)((0,d._)({},Z),{onClick:function(){var n;return null==(n=e.onMoveItem)?void 0:n.call(e,null)},children:[(0,m.jsx)(K.A,{size:16})," Remove from folder"]}))]}),e.itemExtras&&(0,m.jsx)(H.Stack,{gap:"0.5",borderTopWidth:"1px",borderColor:"border.hairline",pt:"2",children:e.itemExtras})]}),(null==L?void 0:L.mode)==="new"&&(e.atLimit?(0,m.jsx)(p.Text,{role:"status",fontSize:"sm",color:"fg.subtle",px:"3.5",py:"2.5",children:i.limit}):(0,m.jsx)(C.Flex,{px:"3.5",py:"1.5",children:(0,m.jsx)(b,{"aria-label":"New folder name",error:e.error,onCommit:function(n){var r;return null==(r=e.onCreate)?void 0:r.call(e,n)},onCancel:k})}))]})]})})]})})}},91126:(e,n,r)=>{r.d(n,{DJ:()=>t,HB:()=>a,LY:()=>l});var o={folder:"application/x-anathema-folder",item:"application/x-anathema-item"};function t(e,n,r){var t,a,l;e.dataTransfer.setData(o[n.kind],JSON.stringify(n)),e.dataTransfer.effectAllowed="move",r&&"u">typeof document&&(t=e,a=r,(l=document.createElement("div")).textContent=a,l.setAttribute("aria-hidden","true"),Object.assign(l.style,{position:"fixed",top:"-1000px",left:"-1000px",padding:"6px 10px",borderRadius:"999px",fontSize:"xs",fontWeight:"500",maxWidth:"220px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",background:"var(--chakra-colors-bg-panel)",color:"var(--chakra-colors-fg)",border:"1px solid var(--chakra-colors-border-field)",boxShadow:"var(--chakra-shadows-card-lift)"}),document.body.appendChild(l),t.dataTransfer.setDragImage(l,12,16),requestAnimationFrame(function(){return l.remove()}))}function a(e,n){return Array.from(e.dataTransfer.types).includes(o[n])}function l(e){for(var n=0,r=["folder","item"];n<r.length;n++){var t=r[n],a=e.dataTransfer.getData(o[t]);if(a)try{var l=JSON.parse(a);if(l&&l.kind===t)return l}catch(e){break}}return null}}}]);
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.