1import{S as _,i as b,s as U,d as w,v as z,c as L,a as Q,b as y,e as M,m as v,t as E,f as k,g as P}from"./Ch9ldKUt.js";import"./DfbTn-pQ.js";import{t as g}from"./DTboVM62.js";import{I as S}from"./DTCyxJZM.js";function h(n){var r;let s,o;s=new S({props:{title:n[3],icon:n[2],size:n[1],theme:((r=n[4][n[0]])==null?void 0:r.theme)??"default"},$$inline:!0});const u={c:function(){y(s.$$.fragment)},l:function(e){M(s.$$.fragment,e)},m:function(e,c){v(s,e,c),o=!0},p:function(e,[c]){var i;const m={};c&8&&(m.title=e[3]),c&4&&(m.icon=e[2]),c&2&&(m.size=e[1]),c&1&&(m.theme=((i=e[4][e[0]])==null?void 0:i.theme)??"default"),s.$set(m)},i:function(e){o||(E(s.$$.fragment,e),o=!0)},o:function(e){k(s.$$.fragment,e),o=!1},d:function(e){P(s,e)}};return w("SvelteRegisterBlock",{block:u,id:h.name,type:"component",source:"",ctx:n}),u}function j(n,s,o){let u,r,a,e;z(g,"t"),L(n,g,t=>o(7,e=t));let{$$slots:c={},$$scope:m}=s;Q("UploadQueueListItemStatus",c,[]);let{status:i}=s,{size:d="md"}=s,{statusMessage:l=null}=s;const f={pending:{icon:"upload",theme:"default",status:e("uploadItemStatus.pending")},progress:{icon:"spinner",theme:"primary",status:e("uploadItemStatus.progress")},done:{icon:"check-invert",theme:"success",status:e("uploadItemStatus.done")},failed:{icon:"xmark-invert",theme:"danger",status:e("uploadItemStatus.failed")},aborted:{icon:"xmark-invert",theme:"danger",status:e("uploadItemStatus.aborted")},destroyed:{icon:"xmark-invert",theme:"warning",status:e("uploadItemStatus.destroyed")}};n.$$.on_mount.push(function(){i===void 0&&!("status"in s||n.$$.bound[n.$$.props.status])&&console.warn("<UploadQueueListItemStatus> was created without expected prop 'status'")});const I=["status","size","statusMessage"];return Object.keys(s).forEach(t=>{!~I.indexOf(t)&&t.slice(0,2)!=="$$"&&t!=="slot"&&console.warn(`<UploadQueueListItemStatus> was created with unknown prop '${t}'`)}),n.$$set=t=>{"status"in t&&o(0,i=t.status),"size"in t&&o(1,d=t.size),"statusMessage"in t&&o(5,l=t.statusMessage)},n.$capture_state=()=>({IconButton:S,t:g,status:i,size:d,statusMessage:l,statusMap:f,icon:a,statusText:u,message:r,$t:e}),n.$inject_state=t=>{"status"in t&&o(0,i=t.status),"size"in t&&o(1,d=t.size),"statusMessage"in t&&o(5,l=t.statusMessage),"icon"in t&&o(2,a=t.icon),"statusText"in t&&o(6,u=t.statusText),"message"in t&&o(3,r=t.message)},s&&"$$inject"in s&&n.$inject_state(s.$$inject),n.$$.update=()=>{var t,p;n.$$.dirty&129&&o(6,u=((t=f[i])==null?void 0:t.status)??e("uploadItemStatus.unknown")),n.$$.dirty&96&&o(3,r=u+(l?`: ${l}`:"")),n.$$.dirty&1&&o(2,a=((p=f[i])==null?void 0:p.icon)??"exclamation")},[i,d,a,r,f,l,u,e]}class O extends _{constructor(s){super(s),b(this,s,j,h,U,{status:0,size:1,statusMessage:5}),w("SvelteRegisterComponent",{component:this,tagName:"UploadQueueListItemStatus",options:s,id:h.name})}get status(){throw new Error("<UploadQueueListItemStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set status(s){throw new Error("<UploadQueueListItemStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get size(){throw new Error("<UploadQueueListItemStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set size(s){throw new Error("<UploadQueueListItemStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get statusMessage(){throw new Error("<UploadQueueListItemStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set statusMessage(s){throw new Error("<UploadQueueListItemStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}export{O as U};
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.