PageSourceSearch

https://tungsten.run/_next/static/chunks/pages/stash-ec5811ae8604dca0.js

js tungsten.run collected 2026-10-08 06:44:19 UTC 18,351 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d445498f-5729-40b8-8a1d-0c7888938f39",e._sentryDebugIdIdentifier="sentry-dbid-d445498f-5729-40b8-8a1d-0c7888938f39")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1219],{21017:function(e,r,t){"use strict";t.d(r,{Z:function(){return B}});var n=t(67294),a=t(3241),i=t(48427),l=t(82623);let s=(0,n.createContext)({padding:0}),o=s.Provider,c=()=>(0,n.useContext)(s).padding;var d=t(56817),u=t(14258),m=t(96768),p=(0,d.k)((e,{padding:r,withBorder:t,inheritPadding:n})=>{let a=(0,u.a)({size:r,sizes:e.spacing}),i=`calc(-1 * ${a})`,l="dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3];return{cardSection:{display:"block",marginLeft:i,marginRight:i,paddingLeft:n?a:void 0,paddingRight:n?a:void 0,borderTop:t?`${(0,m.h)(1)} solid ${l}`:void 0,borderBottom:t?`${(0,m.h)(1)} solid ${l}`:void 0,"& + &":{borderTop:0},"&[data-first]":{marginTop:i,borderTop:0,borderBottom:t?`${(0,m.h)(1)} solid ${l}`:void 0},"&[data-last]":{marginBottom:i,borderBottom:0}}}}),f=t(64523),h=Object.defineProperty,x=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,r,t)=>r in e?h(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,j=(e,r)=>{for(var t in r||(r={}))g.call(r,t)&&y(e,t,r[t]);if(x)for(var t of x(r))b.call(r,t)&&y(e,t,r[t]);return e},v=(e,r)=>{var t={};for(var n in e)g.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&x)for(var n of x(e))0>r.indexOf(n)&&b.call(e,n)&&(t[n]=e[n]);return t};let w={withBorder:!1,inheritPadding:!1},O=(0,n.forwardRef)((e,r)=>{let t=(0,a.N4)("CardSection",w,e),{className:i,withBorder:l,inheritPadding:s,unstyled:o,variant:d}=t,u=v(t,["className","withBorder","inheritPadding","unstyled","variant"]),{classes:m,cx:h}=p({padding:c(),withBorder:l,inheritPadding:s},{name:"Card",unstyled:o,variant:d});return n.createElement(f.x,j({className:h(m.cardSection,i),ref:r},u))});O.displayName="@mantine/core/CardSection";let C=(0,i.F)(O);var P=(0,d.k)(e=>({root:{position:"relative",overflow:"hidden",backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white}})),S=Object.defineProperty,E=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,k=(e,r,t)=>r in e?S(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_=(e,r)=>{for(var t in r||(r={}))N.call(r,t)&&k(e,t,r[t]);if(E)for(var t of E(r))z.call(r,t)&&k(e,t,r[t]);return e},Z=(e,r)=>{var t={};for(var n in e)N.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&E)for(var n of E(e))0>r.indexOf(n)&&z.call(e,n)&&(t[n]=e[n]);return t};let I={padding:"md"},D=(0,n.forwardRef)((e,r)=>{let t=(0,a.N4)("Card",I,e),{className:i,padding:s,radius:c,children:d,unstyled:u,variant:m}=t,p=Z(t,["className","padding","radius","children","unstyled","variant"]),{classes:f,cx:h}=P(null,{name:"Card",unstyled:u,variant:m}),x=n.Children.toArray(d),g=x.map((e,r)=>"object"==typeof e&&e&&"type"in e&&e.type===C?(0,n.cloneElement)(e,{variant:m,padding:s,"data-first":0===r||void 0,"data-last":r===x.length-1||void 0}):e);return n.createElement(o,{value:{padding:s}},n.createElement(l.X,_({className:h(f.root,i),radius:c,p:s,ref:r},p),g))});D.Section=C,D.displayName="@mantine/core/Card";let B=(0,i.F)(D)},43523:function(e,r,t){"use strict";t.d(r,{M:function(){return x}});var n=t(67294),a=t(3241),i=t(48427),l=(0,t(56817).k)((e,{inline:r})=>({root:{display:r?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}})),s=t(64523),o=Object.defineProperty,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(e,r,t)=>r in e?o(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,p=(e,r)=>{for(var t in r||(r={}))d.call(r,t)&&m(e,t,r[t]);if(c)for(var t of c(r))u.call(r,t)&&m(e,t,r[t]);return e},f=(e,r)=>{var t={};for(var n in e)d.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&c)for(var n of c(e))0>r.indexOf(n)&&u.call(e,n)&&(t[n]=e[n]);return t};let h=(0,n.forwardRef)((e,r)=>{let t=(0,a.N4)("Center",{},e),{inline:i,className:o,unstyled:c,variant:d}=t,u=f(t,["inline","className","unstyled","variant"]),{classes:m,cx:h}
1=l({inline:i},{name:"Center",unstyled:c,variant:d});return n.createElement(s.x,p({ref:r,className:h(m.root,o)},u))});h.displayName="@mantine/core/Center";let x=(0,i.F)(h)},72445:function(e,r,t){"use strict";t.d(r,{W:function(){return b}});var n=t(67294),a=t(96768),i=t(3241),l=t(56817),s=t(14258),o=(0,l.k)((e,{fluid:r,sizes:t},{size:n})=>({root:{paddingLeft:e.spacing.md,paddingRight:e.spacing.md,maxWidth:r?"100%":(0,s.a)({size:n,sizes:t}),marginLeft:"auto",marginRight:"auto"}})),c=t(64523),d=Object.defineProperty,u=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,r,t)=>r in e?d(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,h=(e,r)=>{for(var t in r||(r={}))m.call(r,t)&&f(e,t,r[t]);if(u)for(var t of u(r))p.call(r,t)&&f(e,t,r[t]);return e},x=(e,r)=>{var t={};for(var n in e)m.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&u)for(var n of u(e))0>r.indexOf(n)&&p.call(e,n)&&(t[n]=e[n]);return t};let g={sizes:{xs:(0,a.h)(540),sm:(0,a.h)(720),md:(0,a.h)(960),lg:(0,a.h)(1140),xl:(0,a.h)(1320)}},b=(0,n.forwardRef)((e,r)=>{let t=(0,i.N4)("Container",g,e),{className:a,fluid:l,size:s,unstyled:d,sizes:u,variant:m}=t,p=x(t,["className","fluid","size","unstyled","sizes","variant"]),{classes:f,cx:b}=o({fluid:l,sizes:u},{unstyled:d,name:"Container",variant:m,size:s});return n.createElement(c.x,h({className:b(f.root,a),ref:r},p))});b.displayName="@mantine/core/Container"},18054:function(e,r,t){"use strict";t.d(r,{S:function(){return h}});var n=t(67294),a=t(3241),i=t(83979),l=t(80665),s=Object.defineProperty,o=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=(e,r,t)=>r in e?s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,m=(e,r)=>{for(var t in r||(r={}))c.call(r,t)&&u(e,t,r[t]);if(o)for(var t of o(r))d.call(r,t)&&u(e,t,r[t]);return e},p=(e,r)=>{var t={};for(var n in e)c.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&o)for(var n of o(e))0>r.indexOf(n)&&d.call(e,n)&&(t[n]=e[n]);return t};let f={multiple:!1},h=(0,n.forwardRef)((e,r)=>{let t=(0,a.N4)("FileButton",f,e),{onChange:s,children:o,multiple:c,accept:d,name:u,form:h,resetRef:x,disabled:g,capture:b,inputProps:y}=t,j=p(t,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps"]),v=(0,n.useRef)();return(0,i.k)(x,()=>{v.current.value=""}),n.createElement(n.Fragment,null,o(m({onClick:()=>{g||v.current.click()}},j)),n.createElement("input",m({style:{display:"none"},type:"file",accept:d,multiple:c,onChange:e=>{c?s(Array.from(e.currentTarget.files)):s(e.currentTarget.files[0]||null)},ref:(0,l.Y)(r,v),name:u,form:h,capture:b},y)))});h.displayName="@mantine/core/FileButton"},19236:function(e,r,t){"use strict";t.d(r,{D:function(){return S}});var n=t(67294),a=t(3241),i=t(96768),l=t(56817),s=Object.defineProperty,o=Object.defineProperties,c=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(e,r,t)=>r in e?s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,f=(e,r)=>{for(var t in r||(r={}))u.call(r,t)&&p(e,t,r[t]);if(d)for(var t of d(r))m.call(r,t)&&p(e,t,r[t]);return e},h=(e,r)=>o(e,c(r)),x=(0,l.k)((e,{element:r,weight:t,inline:n},{size:a})=>({root:h(f({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:t||e.headings.sizes[r].fontWeight||e.headings.fontWeight,fontSize:void 0!==a?a in e.headings.sizes?e.headings.sizes[a].fontSize:(0,i.h)(a):e.headings.sizes[r].fontSize,lineHeight:n?1:void 0!==a&&a in e.headings.sizes?e.headings.sizes[a].lineHeight:e.headings.sizes[r].lineHeight,margin:0})})),g=t(95117),b=Object.defineProperty,y=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,w=(e,r,t)=>r in e?b(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,O=(e,r)=>{for(var t in r||(r={}))j.call(r,t)&&w(e,t,r[t]);if(y)for(var t of y(r))v.call(r,t)&&w(e,t,r[t]);return e},C=(e,r)=>{var t={};for(var n in e)j.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&y)for(var n of y(e))0>r.indexOf(n)&&v.call(e,n)&&(t[n]=e[n]);return t};let P={order:1},S=(0,n.forwardRef)((e,r)=>{let t=(0,a.N4)("Title",P,e),{className:i,order:l,children:s,unstyled:o,size:c,weight:d,inline:u,variant:m}=t,p=C(t,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:f,cx:h}=x({element:`h${l}`,weight:d,inline:u},{name:"Title",unstyled:o,variant:m,size:c});return[1,2,3,4,5,6].includes(l)?n.createElement(g.x,O({variant:m,component:`h${l}`,ref:r,className:h(f.root,i)},p),s):null});S.displayName="@mantine/core/Title"},99217:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stash",function(){return t(50142)}])},18877:function(e,r,t){"use strict";var n=t(85893),a=t(72445);r.Z=function(e){let{children:r,...t}=e;return(0,n.jsx)(a.W,{sx:e=>({width:"100%",maxWidth:"80rem",padding:"4rem 2rem",[e.fn.smallerThan("sm")]:{width:"100%",padding:"var(--mobile-vertical-padding) var(--mobile-horizontal-padding)"}}),...t,children:r})}},16679:function(e,r,t){"use strict";var n=t(85893),a=t(67294),i=t(64523),l=t(44457),s=t(71232),o=t(79986),c=t(57105);r.Z=function(e){let{values:r,onChange:t,...d}=e,[u,m]=(0,a.useState)(""),p=e=>e.replace(/,/g,"").replace(/\s+/g," ").trim();return(0,n.jsxs)(i.x,{...d,children:[(0,n.jsx)(l.Ph,{data:[],placeholder:"Enter a trigger word..",maxLength:80,styles:{rightSection:{display:"none"}},searchable:!0,creatable:!0,onCreate:e=>{let n=p(e);return n&&r.length<10&&!r.includes(n)&&(null==t||t([...r,n])),m(""),null},searchValue:u,onSearchChange:e=>{(0===e.length||e.trim().length>0)&&m(e)},value:"",getCreateLabel:e=>"".concat(e)}),(0,n.jsx)(s.Z,{mt:"1rem",spacing:4,mih:"2rem",children:r.map(e=>(0,n.jsx)(i.x,{onClick:()=>{null==t||t(r.filter(r=>r!==e))},children:(0,n.jsx)(c.Z,{word:e,rightIcon:(0,n.jsx)(o.Tw,{}),onClick:()=>{null==t||t(r.filter(r=>r!==e))}})},e))})]})}},50142:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return ee},default:function(){return er}});var n=t(85893),a=t(45578),i=t.n(a),l=t(11163),s=t(64523),o=t(19236),c=t(95117
1),d=t(71232),u=t(88393),m=t(67841),p=t(43523),f=t(20966),h=t(91759),x=t(78551),g=t(30202),b=t(58889),y=t(54102),j=t(47389),v=t(18877),w=t(79986),O=t(13480),C=t(67294),P=t(3241),S=t(18054),E=t(32103),N=t(97564),z=t(94151),k=t(3941),_=t(80061),Z=t(38078),I=t(77248),D=t(98029),B=t(78798),T=t(29867),R=t(37685),F=t(55087),W=t(40413),A=t(17657),L=t(89769),M=t(16679),G=function(e){let{onCreateSuccess:r,opened:t,onClose:a,...i}=e,l=(0,P.rZ)(),o=(0,y.b)(),u=(0,b.Z)(o),p=(0,I.c)({initialValues:{name:"",base:"pdxl",type:"lora",extra:{negative:!1,trigger_words:[]}},validate:{name:e=>e.trim().length<1?"Cannot be empty":null}}),f=(0,F.A$)(p.values.base),h=(0,F.V_)().filter(e=>e.supportedUploadTypes.includes(B.BY.LORA)||e.supportedUploadTypes.includes(B.BY.EMBEDDING)),x=f.supportedUploadTypes.filter(e=>e===B.BY.LORA||e===B.BY.EMBEDDING);(0,C.useEffect)(()=>{"embedding"===p.values.type&&x.every(e=>e!==B.BY.EMBEDDING)&&p.setFieldValue("type","lora")},[p,x]);let[g,j]=(0,C.useState)(null),[v,O]=(0,C.useState)(null),[G,$]=(0,C.useState)(null),[V,U]=(0,C.useState)(0),Y=(0,C.useRef)(null),H=e=>{j(e||null),O(null),$(null),U(0)},X=(0,D.D)({mutationFn:()=>{let e={};return"embedding"===p.values.type?e={negative:p.values.extra.negative}:"lora"===p.values.type&&(e={trigger_words:p.values.extra.trigger_words}),u.create({name:p.values.name,base:p.values.base,type:p.values.type,extra:e,file_uuid:v})},onSuccess:()=>{r()},onError:e=>{(0,R.zg)(e)===T.Z.STORAGE_FULL&&(0,W.HV)("Not enough space")}}),q=async e=>{Y.current=new AbortController;let{signal:r}=Y.current;return await u.uploadFile(e,r,e=>{U(e)}).catch(e=>{if(e instanceof Error&&"Aborted"===e.message)return null;throw e})},Q=(0,n.jsxs)(s.x,{children:[(0,n.jsx)(S.S,{accept:".safetensors,.sft",onChange:e=>{if(H(),$(null),e){if(e.size>1258291200){$("File is too large (max ".concat((0,A.td)(1258291200,0),")"));return}(e.name.endsWith(".safetensors")||e.name.endsWith(".sft"))&&(j(e),q(e).then(e=>{e&&O(e)}))}},children:e=>(0,n.jsx)(m.z,{variant:"default",...e,leftIcon:(0,n.jsx)(w.rG,{size:"1rem"}),children:"Upload file"})}),G&&(0,n.jsx)(c.x,{c:"red",fz:"sm",mt:8,children:G})]}),J=p.isValid()&&v;return(0,C.useEffect)(()=>{t||H()},[t]),(0,n.jsxs)(E.u,{title:"Create stash",opened:t,onClose:a,...i,children:[(0,n.jsxs)(N.K,{spacing:"1.5rem",children:[(0,n.jsx)(z.I.Wrapper,{label:"Weight",withAsterisk:!0,children:(0,n.jsxs)(s.x,{children:[!g&&Q,g&&!v&&(0,n.jsxs)(s.x,{children:[(0,n.jsx)(k.E,{radius:"md",value:V,w:"12rem",animate:!0,size:"12px"}),(0,n.jsxs)(c.x,{children:[g.name," (",(0,A.td)(g.size,1),")"]})]}),g&&v&&(0,n.jsxs)(d.Z,{mt:4,noWrap:!0,children:[(0,n.jsx)(w.nQ,{size:"2rem",color:l.colors.green[6],strokeWidth:4}),(0,n.jsxs)(c.x,{children:[g.name," (",(0,A.td)(g.size,1),")"]})]})]})}),(0,n.jsx)(_.o,{label:"Stash name",withAsterisk:!0,placeholder:"My Awesome Stash",maxLength:100,...p.getInputProps("name")}),(0,n.jsx)(L.Z,{label:"Model base",withAsterisk:!0,data:h.map(e=>({label:e.text,value:e.base})),...p.getInputProps("base"),onChange:e=>{null!==e&&p.setFieldValue("base",e)},maxDropdownHeight:160,dropdownPosition:"bottom"}),(0,n.jsx)(L.Z,{label:"Model type",withAsterisk:!0,data:F.Ph.filter(e=>x.includes(e.value)),...p.getInputProps("type")}),"embedding"===p.values.type&&(0,n.jsx)(Z.X,{label:"Negative Embedding",size:"md",...p.getInputProps("extra.negative",{type:"checkbox"})}),"lora"===p.values.type&&(0,n.jsx)(s.x,{children:(0,n.jsx)(z.I.Wrapper,{label:"Trigger words",children:(0,n.jsx)(M.Z,{values:p.values.extra.trigger_words,onChange:e=>{p.setFieldValue("extra.trigger_words",e)}})})})]}),(0,n.jsx)(d.Z,{position:"right",mt:"1.5rem",children:(0,n.jsx)(m.z,{color:"green",onClick:()=>X.mutate(),disabled:!J,loading:X.isPending,children:"Create"})})]})},$=t(89814),V=t(21017),U=t(17789),Y=t(49834),H=t(45142),X=function(e){let{stash:r,onDeleteSuccess:t,...a}=e,i=(0,y.b)(),l=(0,b.Z)(i),o=(0,D.D)({mutationFn:()=>l.del(r.uuid),onSuccess:()=>{t()}});return(0,n.jsxs)(E.u,{...a,title:"Delete stash",children:[(0,n.jsx)(s.x,{children:(0,n.jsxs)(c.x,{children:["Delete"," ",(0,n.jsx)(c.x,{span:!0,fw:600,children:r.name}),"?"]})}),(0,n.jsx)(d.Z,{position:"right",mt:"2rem",children:(0,n.jsx)(m.z,{color:"red",onClick:()=>{o.mutate()},loading:o.isPending,children:"Delete"})})]})},q=function(e){let{stash:r,onDeleteSuccess:t,...a}=e,i=(0,H.Z)(),l=!!(null==i?void 0:i.current_subscription),o="green";l?r.status!==B.Re.APPROVED&&(o="yellow"):o="red";let[u,m]=(0,h.q)(),p=(0,C.useMemo)(()=>(0,b.Z)((0,y.b)()),[]),f=async()=>{try{let e=await p.getPresignedUrl(r.uuid);window.open(e,"_blank")}catch(e){}};return(0,n.jsxs)(s.x,{...a,children:[(0,n.jsx)(X,{stash:r,onDeleteSuccess:()=>{null==t||t(r.uuid),m.close()},opened:u,onClose:m.close}),(0,n.jsx)(V.Z,{withBorder:!0,h:"12rem",c:"white",children:(0,n.jsxs)(s.x,{h:"100%",children:[(0,n.jsx)(c.x,{fz:{base:"md",sm:"lg"},fw:600,truncate:!0,children:r.name}),(0,n.jsxs)(s.x,{mt:"1rem",fz:{base:"sm",sm:"md"},children:[(0,n.jsx)(c.x,{truncate:!0,ff:"monospace",children:r.filename}),(0,n.jsx)(d.Z,{mt:4,children:(0,n.jsx)(c.x,{ff:"monospace",children:(0,A.td)(r.size)})})]}),(0,n.jsxs)(d.Z,{position:"apart",bottom:"1rem",mt:"2rem",w:"100%",children:[(0,n.jsx)(U.C,{color:o,variant:"dot",children:l?r.status:"inactive"}),(0,n.jsxs)(d.Z,{spacing:"0.5rem",children:[(0,n.jsx)(Y.A,{variant:"outline",ml:"auto",onClick:()=>{f()},children:(0,n.jsx)(w._8,{})}),(0,n.jsx)(Y.A,{color:"red",variant:"outline",ml:"auto",onClick:()=>{m.open()},children:(0,n.jsx)(w.pJ,{})})]})]})]})})]})},Q=function(e){let{stashes:r,onDeleteSuccess:t,...a}=e;return(0,n.jsx)(s.x,{...a,children:(0,n.jsx)($.M,{cols:4,breakpoints:[{maxWidth:"lg",cols:4},{maxWidth:"md",cols:2},{maxWidth:"sm",cols:2}
1],sx:e=>({[e.fn.largerThan("sm")]:{rowGap:"2rem",columnGap:"1rem"},[e.fn.smallerThan("sm")]:{rowGap:"2rem !important",columnGap:"0.75rem"}}),children:r.map(e=>(0,n.jsx)(q,{stash:e,onDeleteSuccess:()=>{null==t||t()}},e.uuid))})})},J=function(e){let{maxBytes:r,currentBytes:t,...a}=e;return(0,n.jsx)(s.x,{...a,children:(0,n.jsxs)(s.x,{children:[(0,n.jsx)(k.E,{value:t/r*100,w:"14rem",size:"sm"}),(0,n.jsxs)(c.x,{mt:4,fz:"sm",ml:"4px",children:[(0,A.hN)(t)," / ",(0,A.hN)(r)," used"]})]})})};function K(e){let{self:r,storageUse:t}=e,a=(0,l.useRouter)(),[j,O]=(0,h.q)(),C=(0,y.b)(),P=(0,b.Z)(C),S=["stash",null==r?void 0:r.uuid],{data:E,isLoading:N,isRefetching:z}=(0,x.a)({queryKey:S,queryFn:()=>P.list({}),enabled:!!r}),k=i()(E,"uuid"),_=r&&!!r.current_subscription,Z=N||z,I=(0,g.NL)();return(0,n.jsxs)(v.Z,{maw:"70rem",children:[(0,n.jsx)(G,{opened:j,onClose:O.close,onCreateSuccess:()=>{a.replace(a.asPath),I.invalidateQueries({queryKey:S}),O.close()}}),(0,n.jsxs)(s.x,{mb:"1rem",children:[(0,n.jsx)(o.D,{children:"Stash"}),(0,n.jsx)(c.x,{c:"dimmed",children:"Boost your generation with private models."})]}),(0,n.jsxs)(s.x,{children:[(0,n.jsxs)(d.Z,{mt:"0.5rem",position:"right",align:"center",spacing:"1.5rem",sx:{rowGap:"0.75rem"},children:[t&&(0,n.jsx)(J,{mt:"0.5rem",currentBytes:t.storage_use,maxBytes:t.storage_limit}),(0,n.jsx)(u.u,{label:"You need a subscription to use stash.",children:(0,n.jsx)(s.x,{children:(0,n.jsx)(m.z,{leftIcon:(0,n.jsx)(w.pO,{size:"1.1rem"}),color:"green",onClick:()=>{O.open()},disabled:!_,children:"Upload stash"})})})]}),(0,n.jsxs)(s.x,{mt:"2rem",children:[Z&&(0,n.jsx)(p.M,{children:(0,n.jsx)(f.a,{})}),!Z&&0===k.length&&(0,n.jsx)(p.M,{mih:"4rem",children:(0,n.jsx)(c.x,{children:"Nothing found."})}),!Z&&k.length>0&&(0,n.jsx)(Q,{stashes:k,onDeleteSuccess:()=>{a.replace(a.asPath),I.invalidateQueries({queryKey:S})}})]})]})]})}var ee=!0,er=K;K.getLayout=function(e,r){let{self:t}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O.Z,{title:"Stash"}),(0,n.jsx)(j.Z,{self:t,children:e})]})}}},function(e){e.O(0,[5970,8391,2651,5777,3835,4457,5578,6116,2929,9685,2888,9774,179],function(){return e(e.s=99217)}),_N_E=e.O()}]);

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.