File size: 2,096 Bytes
4e514a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
const {
  SvelteComponent: m,
  attr: f,
  detach: o,
  element: d,
  init: b,
  insert: g,
  noop: c,
  safe_not_equal: v,
  src_url_equal: u,
  toggle_class: a
} = window.__gradio__svelte__internal;
function _(n) {
  let e, l;
  return {
    c() {
      e = d("img"), u(e.src, l = /*value*/
      n[0].url) || f(e, "src", l), f(e, "alt", "");
    },
    m(t, i) {
      g(t, e, i);
    },
    p(t, i) {
      i & /*value*/
      1 && !u(e.src, l = /*value*/
      t[0].url) && f(e, "src", l);
    },
    d(t) {
      t && o(e);
    }
  };
}
function y(n) {
  let e, l = (
    /*value*/
    n[0] && _(n)
  );
  return {
    c() {
      e = d("div"), l && l.c(), f(e, "class", "container svelte-1sgcyba"), a(
        e,
        "table",
        /*type*/
        n[1] === "table"
      ), a(
        e,
        "gallery",
        /*type*/
        n[1] === "gallery"
      ), a(
        e,
        "selected",
        /*selected*/
        n[2]
      ), a(
        e,
        "border",
        /*value*/
        n[0]
      );
    },
    m(t, i) {
      g(t, e, i), l && l.m(e, null);
    },
    p(t, [i]) {
      /*value*/
      t[0] ? l ? l.p(t, i) : (l = _(t), l.c(), l.m(e, null)) : l && (l.d(1), l = null), i & /*type*/
      2 && a(
        e,
        "table",
        /*type*/
        t[1] === "table"
      ), i & /*type*/
      2 && a(
        e,
        "gallery",
        /*type*/
        t[1] === "gallery"
      ), i & /*selected*/
      4 && a(
        e,
        "selected",
        /*selected*/
        t[2]
      ), i & /*value*/
      1 && a(
        e,
        "border",
        /*value*/
        t[0]
      );
    },
    i: c,
    o: c,
    d(t) {
      t && o(e), l && l.d();
    }
  };
}
function h(n, e, l) {
  let { value: t } = e, { type: i } = e, { selected: r = !1 } = e;
  return n.$$set = (s) => {
    "value" in s && l(0, t = s.value), "type" in s && l(1, i = s.type), "selected" in s && l(2, r = s.selected);
  }, [t, i, r];
}
class k extends m {
  constructor(e) {
    super(), b(this, e, h, y, v, { value: 0, type: 1, selected: 2 });
  }
}
export {
  k as default
};