import { defineComponent as l, ref as v, computed as m, createBlock as x, watch as g, onMounted as b, openBlock as f, resolveDynamicComponent as u, normalizeClass as h, nextTick as k, createElementBlock as w, createVNode as i, createElementVNode as a, unref as _, toDisplayString as d } from "vue";
import { _ as y } from "./O3ZwnbUT.js";
import { d as j, y as z } from "./D3vetmbz.js";
const C = 4, B = 4, E = 4, P = 4, q = 4, N = 4, $ = 4, D = 5, L = 4, V = 4, A = 4, F = 5, I = 4, M = 4, S = 4, T = 4, G = 6, H = 4, J = 5, K = 4, O = 4, Q = 4, R = 4, U = 4, W = 4, X = 4, Y = 4, Z = 4, s4 = 4, t4 = 4, p4 = 4, o4 = 4, e4 = 4, n4 = 5, c4 = 4, a4 = 5, i4 = 4, d4 = 4, l4 = 5, m4 = 17, f4 = 5, r4 = 6, v4 = 4, x4 = 5, g4 = 4, b4 = 4, u4 = 4, h4 = 4, k4 = 4, w4 = 4, _4 = 4, y4 = 4, j4 = 4, z4 = 4, C4 = 4, B4 = 4, E4 = 5, P4 = 5, q4 = 6, N4 = 5, $4 = 4, D4 = 5, L4 = 6, V4 = 4, A4 = 6, F4 = 4, I4 = 4, M4 = 5, S4 = 8, T4 = 4, G4 = 5, H4 = 4, J4 = 4, K4 = 4, O4 = 6, Q4 = 4, R4 = 4, U4 = 5, W4 = 4, X4 = 4, Y4 = 4, Z4 = 4, ss = 4, ts = 4, ps = 4, os = 4, es = 4, ns = 4, cs = 4, as = 4, is = 5, ds = 5, ls = 5, ms = 5, fs = 5, rs = 5, vs = 5, xs = 5, gs = 7, bs = 10, us = 10, hs = 5, ks = 4, ws = 4, _s = 4, ys = 5, js = 4, zs = 4, Cs = 4, Bs = 4, Es = 5, Ps = 4, qs = 4, Ns = 4, $s = 4, Ds = 4, Ls = 4, Vs = 4, As = 4, Fs = 5, Is = 4, Ms = 5, Ss = 2, Ts = 5, Gs = 4, Hs = 4, Js = 6, Ks = 4, Os = 4, Qs = 5, Rs = 4, Us = 4, Ws = 5, Xs = 4, Ys = 4, Zs = 4, st = 6, tt = 4, pt = 5, ot = 4, et = 4, nt = 5, ct = 5, at = 5, it = 5, dt = 4, lt = 4, mt = 4, ft = 4, rt = 4, vt = 4, xt = 4, gt = 4, bt = 5, ut = 4, ht = 5, kt = 7, wt = 4, _t = 4, yt = 4, jt = 6, zt = 4, Ct = 4, Bt = 5, Et = 4, Pt = 9, qt = 9, Nt = 5, $t = 5, Dt = 5, Lt = 4, Vt = 6, At = 10, Ft = 5, It = 4, Mt = 4, St = 5, Tt = 4, Gt = 5, Ht = 5, Jt = 4, Kt = 4, Ot = 4, Qt = 4, Rt = 4, Ut = 4, Wt = 5, Xt = 4, Yt = 4, Zt = 4, sp = 4, tp = 4, pp = 5, op = 5, ep = 4, np = 4, cp = 5, ap = 4, ip = 5, dp = 7, lp = 7, mp = 4, fp = 4, rp = 4, vp = 4, xp = 7, gp = 4, bp = 4, up = 4, hp = 4, kp = 4, wp = 4, _p = 4, yp = 4, jp = 4, zp = 4, Cp = 4, Bp = 4, Ep = 4, Pp = 4, qp = 9, Np = 4, $p = 4, Dp = 4, Lp = 4, Vp = 9, Ap = 9, Fp = 4, Ip = 4, Mp = 4, Sp = 5, Tp = 5, Gp = 8, Hp = 4, Jp = 4, Kp = 4, Op = 5, Qp = 4, Rp = 6, Up = 4, Wp = 4, Xp = 6, Yp = 5, Zp = 6, so = 5, to = 5, po = 4, oo = 4, eo = 7, no = 4, co = 5, ao = 4, io = 4, lo = 4, mo = 4, fo = 4, ro = 7, vo = 5, xo = 4, go = 4, bo = 4, uo = 7, ho = 10, ko = 7, wo = 5, _o = 4, yo = 4, jo = 4, zo = 5, Co = 5, Bo = 5, Eo = 5, Po = 5, qo = 5, No = 4, $o = 4, Do = 13, Lo = 4, Vo = 5, Ao = 6, Fo = 5, Io = 5, Mo = 5, So = 4, To = 4, Go = 4, Ho = 4, Jo = 5, Ko = 4, Oo = 4, Qo = 4, Ro = 4, Uo = 4, Wo = 5, Xo = 4, Yo = 4, Zo = 4, se = 5, te = 4, pe = 4, oe = 4, ee = 4, ne = 4, ce = 4, ae = 4, ie = 4, de = 4, le = 4, me = 4, fe = 4, re = 6, ve = 4, xe = 5, ge = 5, be = 4, ue = 5, he = 7, ke = 4, we = 5, _e = 4, ye = 4, je = 4, ze = 4, Ce = 4, Be = 5, Ee = 5, Pe = 4, qe = 4, Ne = 4, $e = 4, De = 4, Le = 4, Ve = 5, Ae = 4, Fe = 5, Ie = 5, Me = 6, Se = 4, Te = 5, Ge = 5, He = 4, Je = 4, Ke = 5, Oe = 4, Qe = 4, Re = 5, Ue = 4, We = 6, Xe = 4, Ye = 5, Ze = 6, sn = 6, tn = 5, pn = 7, on = 5, en = 4, nn = 5, cn = 4, an = 7, dn = 7, ln = 7, mn = 7, fn = 7, rn = 9, vn = 4, xn = 5, gn = 6, bn = 4, un = 5, hn = 4, kn = 4, wn = 4, _n = 5, yn = 5, jn = 5, zn = 4, Cn = 4, Bn = 4, En = 4, Pn = 4, qn = 4, Nn = 4, $n = 4, Dn = 4, Ln = 4, Vn = 4, An = 4, Fn = 4, In = 4, Mn = 4, Sn = 4, Tn = 4, Gn = 5, Hn = 4, Jn = 4, Kn = 4, On = 4, Qn = 4, Rn = 4, Un = 4, Wn = {
  aa: C,
  aac: B,
  ac: E,
  accdb: P,
  accdt: q,
  ace: N,
  adn: $,
  ai: D,
  aif: L,
  aifc: V,
  aiff: A,
  ait: F,
  amr: I,
  ani: M,
  apk: S,
  app: T,
  applescript: G,
  asax: H,
  asc: J,
  ascx: K,
  asf: O,
  ash: Q,
  ashx: R,
  asm: U,
  asmx: W,
  asp: X,
  aspx: Y,
  asx: Z,
  au: s4,
  aup: t4,
  avi: p4,
  axd: o4,
  aze: e4,
  bak: n4,
  bash: c4,
  bat: a4,
  bin: i4,
  blank: d4,
  bmp: l4,
  bowerrc: m4,
  bpg: f4,
  browser: r4,
  bz2: v4,
  bzempty: x4,
  c: g4,
  cab: b4,
  cad: u4,
  caf: h4,
  cal: k4,
  cd: w4,
  cdda: _4,
  cer: y4,
  cfg: j4,
  cfm: z4,
  cfml: C4,
  cgi: B4,
  chm: E4,
  class: 7,
  cmd: P4,
  "code-workspace": 5,
  codekit: q4,
  coffee: N4,
  coffeelintignore: $4,
  com: D4,
  compile: L4,
  conf: V4,
  config: A4,
  cpp: F4,
  cptx: I4,
  cr2: M4,
  crdownload: S4,
  crt: T4,
  crypt: G4,
  cs: H4,
  csh: J4,
  cson: K4,
  csproj: O4,
  css: Q4,
  csv: R4,
  cue: U4,
  cur: W4,
  dart: X4,
  dat: Y4,
  data: Z4,
  db: ss,
  dbf: ts,
  deb: ps,
  default: 6,
  dgn: os,
  dist: es,
  diz: ns,
  dll: cs,
  dmg: as,
  dng: is,
  doc: ds,
  docb: ls,
  docm: ms,
  docx: fs,
  dot: rs,
  dotm: vs,
  dotx: xs,
  download: gs,
  dpj: bs,
  ds_store: us,
  dsn: hs,
  dtd: ks,
  dwg: ws,
  dxf: _s,
  editorconfig: ys,
  el: js,
  elf: zs,
  eml: Cs,
  enc: Bs,
  eot: Es,
  eps: Ps,
  epub: qs,
  eslintignore: Ns,
  exe: $s,
  f4v: Ds,
  fax: Ls,
  fb2: Vs,
  fla: As,
  flac: Fs,
  flv: Is,
  fnt: Ms,
  folder: Ss,
  fon: Ts,
  g2: Gs,
  ga: Hs,
  gadget: Js,
  gdp: Ks,
  gem: Os,
  gif: Qs,
  gitattributes: Rs,
  gitignore: Us,
  go: Ws,
  gp: Xs,
  gpg: Ys,
  gpl: Zs,
  gradle: st,
  gz: tt,
  h: pt,
  handlebars: ot,
  hbs: et,
  heic: nt,
  hlp: ct,
  hs: at,
  hsl: it,
  htm: dt,
  html: lt,
  ibooks: mt,
  icns: ft,
  ico: rt,
  ics: vt,
  idx: xt,
  iff: gt,
  ifo: bt,
  image: ut,
  img: ht,
  iml: kt,
  in: 5,
  inc: wt,
  indd: _t,
  inf: yt,
  info: jt,
  ini: zt,
  inv: Ct,
  iso: Bt,
  j2: Et,
  jar: Pt,
  java: qt,
  jpe: Nt,
  jpeg: $t,
  jpg: Dt,
  js: Lt,
  json: Vt,
  jsp: At,
  jsx: Ft,
  key: It,
  kf8: Mt,
  kmk: St,
  ksh: Tt,
  kt: Gt,
  kts: Ht,
  kup: Jt,
  less: Kt,
  lex: Ot,
  licx: Qt,
  lisp: Rt,
  lit: Ut,
  lnk: Wt,
  lock: Xt,
  log: Yt,
  lua: Zt,
  m: sp,
  m2v: tp,
  m3u: pp,
  m3u8: op,
  m4: ep,
  m4a: np,
  m4r: cp,
  m4v: ap,
  map: ip,
  master: dp,
  mc: lp,
  md: mp,
  mdb: fp,
  mdf: rp,
  me: vp,
  mi: xp,
  mid: gp,
  midi: bp,
  mk: up,
  mkv: hp,
  mm: kp,
  mng: wp,
  mo: _p,
  mobi: yp,
  mod: jp,
  mov: zp,
  mp2: Cp,
  mp3: Bp,
  mp4: Ep,
  mpa: Pp,
  mpd: qp,
  mpe: Np,
  mpeg: $p,
  mpg: Dp,
  mpga: Lp,
  mpp: Vp,
  mpt: Ap,
  msg: Fp,
  msi: Ip,
  msu: Mp,
  nef: Sp,
  nes: Tp,
  nfo: Gp,
  nix: Hp,
  npmignore: Jp,
  ocx: Kp,
  odb: Op,
  ods: Qp,
  odt: Rp,
  ogg: Up,
  ogv: Wp,
  ost: Xp,
  otf: Yp,
  ott: Zp,
  ova: so,
  ovf: to,
  p12: po,
  p7b: oo,
  pages: eo,
  part: no,
  pcd: co,
  pdb: ao,
  pdf: io,
  pem: lo,
  pfx: mo,
  pgp: fo,
  ph: ro,
  phar: vo,
  php: xo,
  pid: go,
  pkg: bo,
  pl: uo,
  plist: ho,
  pm: ko,
  png: wo,
  po: _o,
  pom: yo,
  pot: jo,
  potx: zo,
  pps: Co,
  ppsx: Bo,
  ppt: Eo,
  pptm: Po,
  pptx: qo,
  prop: No,
  ps: $o,
  ps1: Do,
  psd: Lo,
  psp: Vo,
  pst: Ao,
  pub: Fo,
  py: Io,
  pyc: Mo,
  qt: So,
  ra: To,
  ram: Go,
  rar: Ho,
  raw: Jo,
  rb: Ko,
  rdf: Oo,
  rdl: Qo,
  reg: Ro,
  resx: Uo,
  retry: Wo,
  rm: Xo,
  rom: Yo,
  rpm: Zo,
  rpt: se,
  rsa: te,
  rss: pe,
  rst: oe,
  rtf: ee,
  ru: ne,
  rub: ce,
  sass: ae,
  scss: ie,
  sdf: de,
  sed: le,
  sh: me,
  sit: fe,
  sitemap: re,
  skin: ve,
  sldm: xe,
  sldx: ge,
  sln: be,
  sol: ue,
  sphinx: he,
  sql: ke,
  sqlite: we,
  step: _e,
  stl: ye,
  svg: je,
  swd: ze,
  swf: Ce,
  swift: Be,
  swp: Ee,
  sys: Pe,
  tar: qe,
  tax: Ne,
  tcsh: $e,
  tex: De,
  tfignore: Le,
  tga: Ve,
  tgz: Ae,
  tif: Fe,
  tiff: Ie,
  tmp: Me,
  tmx: Se,
  torrent: Te,
  tpl: Ge,
  ts: He,
  tsv: Je,
  ttf: Ke,
  twig: Oe,
  txt: Qe,
  udf: Re,
  vb: Ue,
  vbproj: We,
  vbs: Xe,
  vcd: Ye,
  vcf: Ze,
  vcs: sn,
  vdi: tn,
  vdx: pn,
  vmdk: on,
  vob: en,
  vox: nn,
  vscodeignore: cn,
  vsd: an,
  vss: dn,
  vst: ln,
  vsx: mn,
  vtx: fn,
  war: rn,
  wav: vn,
  wbk: xn,
  webinfo: gn,
  webm: bn,
  webp: un,
  wma: hn,
  wmf: kn,
  wmv: wn,
  woff: _n,
  woff2: yn,
  wps: jn,
  wsf: zn,
  xaml: Cn,
  xcf: Bn,
  xfl: En,
  xlm: Pn,
  xls: qn,
  xlsm: Nn,
  xlsx: $n,
  xlt: Dn,
  xltm: Ln,
  xltx: Vn,
  xml: An,
  xpi: Fn,
  xps: In,
  xrb: Mn,
  xsd: Sn,
  xsl: Tn,
  xspf: Gn,
  xz: Hn,
  yaml: Jn,
  yml: Kn,
  z: On,
  z1: Qn,
  zip: Rn,
  zsh: Un
}, r = Wn, Xn = (t, o, p = "span", s = "path") => {
  for (let e = 0; e < o; e++) {
    const n = document.createElement(p);
    n.classList.add(s + (e + 1)), t.appendChild(n);
  }
}, Yn = (t) => {
  for (; t.firstChild; )
    t.removeChild(t.firstChild);
}, Zn = (t, o = "blank") => {
  var p;
  return ((p = t.classList.value.split(" ").find((s) => s.replace("fi-", "") in r)) == null ? void 0 : p.replace("fi-", "")) ?? o;
}, sc = (t = "fi", o = { tag: "span", classPrefix: "path" }) => {
  let p = [];
  typeof t == "string" ? p = Array.from(document.getElementsByClassName(t)) : p = [t];
  for (let s = 0; s < p.length; s++) {
    const e = p[s];
    Yn(e);
    const n = Zn(e), c = r[n];
    Xn(e, c, o.tag, o.classPrefix);
  }
}, tc = /* @__PURE__ */ l({
  __name: "file-icons",
  props: {
    name: {},
    tag: { default: "span" },
    options: {}
  },
  setup(t) {
    const o = t, p = v(), s = m(() => {
      var n, c;
      return {
        tag: (n = o.options) == null ? void 0 : n.tag,
        classPrefix: (c = o.options) == null ? void 0 : c.classPrefix
      };
    }), e = () => {
      k(() => {
        sc(p.value, s.value);
      });
    };
    return g([() => o.name, s], e), b(e), (n, c) => (f(), x(u(n.tag), {
      ref_key: "el",
      ref: p,
      class: h(`fi fi-${n.name}`)
    }, null, 8, ["class"]));
  }
}), pc = { class: "vpdf:relative vpdf:cursor-pointer vpdf:overflow-hidden vpdf:px-2 vpdf:py-1 vpdf:select-none" }, oc = { class: "vpdf:flex vpdf:items-center vpdf:gap-2" }, ec = { class: "vpdf:flex vpdf:flex-auto vpdf:flex-col vpdf:justify-center vpdf:gap-0.5" }, nc = { class: "vpdf:text-sm vpdf:leading-none vpdf:font-semibold" }, cc = { class: "vpdf:text-xs vpdf:leading-none" }, lc = /* @__PURE__ */ l({
  __name: "attachmentItem",
  props: {
    attachment: {},
    size: {}
  },
  setup(t) {
    const o = t, p = m(() => {
      const s = j(o.attachment.rawFilename);
      return s ? z(s) ?? "blank" : "blank";
    });
    return (s, e) => (f(), w("div", pc, [
      i(y, { class: "vpdf:bg-primary-500" }),
      a("div", oc, [
        i(_(tc), {
          name: p.value,
          class: "vpdf:text-3xl"
        }, null, 8, ["name"]),
        a("div", ec, [
          a("div", nc, d(s.attachment.filename), 1),
          a("div", cc, d(s.size), 1)
        ])
      ])
    ]));
  }
});
export {
  lc as default
};
