UNPKG

@budibase/server

Version:
2,274 lines • 78.2 kB
import { S as U, i as Q, s as X, F as me, e as A, b as w, d as b, f as v, l as Ne, G as ge, H as he, J as be, k as d, n as m, o as R, ab as De, t as M, g as y, j as Z, B as ie, I as de, a as J, c as I, m as O, p as j, aL as Je, N as $, y as ue, z as D, A as N, O as ve, ae as Tl, cM as ql, aA as Ve, aE as Ul, ba as Ql, ap as Xe, br as We, aD as Ke, bN as Zl, bB as Al, cu as $l, h as Bl, aa as xl, bU as et, ac as Fe, P as lt, ai as zl, aj as Dl, cp as Ue, u as Oe, cN as tt, aJ as Qe, q as nt, v as Ze, w as ot } from "./index-fc73233e.js"; import { c as it } from "./table-080563dc.js"; function rt(n) { let e, l, t, o, i; const s = ( /*#slots*/ n[12].default ), u = me( s, n, /*$$scope*/ n[11], null ); return { c() { e = A("span"), u && u.c(), w(e, "class", "spectrum-Label svelte-35zeo5"), w(e, "style", l = /*outlineColor*/ n[10] ? `border: 2px solid ${/*outlineColor*/ n[10]}` : ""), b( e, "hoverable", /*hoverable*/ n[9] ), b( e, "spectrum-Label--small", /*size*/ n[0] === "S" ), b( e, "spectrum-Label--large", /*size*/ n[0] === "L" ), b( e, "spectrum-Label--grey", /*grey*/ n[1] ), b( e, "spectrum-Label--red", /*red*/ n[2] ), b( e, "spectrum-Label--green", /*green*/ n[6] ), b( e, "spectrum-Label--orange", /*orange*/ n[3] ), b( e, "spectrum-Label--yellow", /*yellow*/ n[4] ), b( e, "spectrum-Label--seafoam", /*seafoam*/ n[5] ), b( e, "spectrum-Label--active", /*active*/ n[7] ), b( e, "spectrum-Label--inactive", /*inactive*/ n[8] ); }, m(r, f) { v(r, e, f), u && u.m(e, null), t = !0, o || (i = Ne( e, "click", /*click_handler*/ n[13] ), o = !0); }, p(r, [f]) { u && u.p && (!t || f & /*$$scope*/ 2048) && ge( u, s, r, /*$$scope*/ r[11], t ? be( s, /*$$scope*/ r[11], f, null ) : he( /*$$scope*/ r[11] ), null ), (!t || f & /*outlineColor*/ 1024 && l !== (l = /*outlineColor*/ r[10] ? `border: 2px solid ${/*outlineColor*/ r[10]}` : "")) && w(e, "style", l), (!t || f & /*hoverable*/ 512) && b( e, "hoverable", /*hoverable*/ r[9] ), (!t || f & /*size*/ 1) && b( e, "spectrum-Label--small", /*size*/ r[0] === "S" ), (!t || f & /*size*/ 1) && b( e, "spectrum-Label--large", /*size*/ r[0] === "L" ), (!t || f & /*grey*/ 2) && b( e, "spectrum-Label--grey", /*grey*/ r[1] ), (!t || f & /*red*/ 4) && b( e, "spectrum-Label--red", /*red*/ r[2] ), (!t || f & /*green*/ 64) && b( e, "spectrum-Label--green", /*green*/ r[6] ), (!t || f & /*orange*/ 8) && b( e, "spectrum-Label--orange", /*orange*/ r[3] ), (!t || f & /*yellow*/ 16) && b( e, "spectrum-Label--yellow", /*yellow*/ r[4] ), (!t || f & /*seafoam*/ 32) && b( e, "spectrum-Label--seafoam", /*seafoam*/ r[5] ), (!t || f & /*active*/ 128) && b( e, "spectrum-Label--active", /*active*/ r[7] ), (!t || f & /*inactive*/ 256) && b( e, "spectrum-Label--inactive", /*inactive*/ r[8] ); }, i(r) { t || (d(u, r), t = !0); }, o(r) { m(u, r), t = !1; }, d(r) { r && R(e), u && u.d(r), o = !1, i(); } }; } function st(n, e, l) { let { $$slots: t = {}, $$scope: o } = e, { size: i = "M" } = e, { grey: s = !1 } = e, { red: u = !1 } = e, { orange: r = !1 } = e, { yellow: f = !1 } = e, { seafoam: c = !1 } = e, { green: _ = !1 } = e, { active: E = !1 } = e, { inactive: S = !1 } = e, { hoverable: T = !1 } = e, { outlineColor: L = null } = e; function H(C) { De.call(this, n, C); } return n.$$set = (C) => { "size" in C && l(0, i = C.size), "grey" in C && l(1, s = C.grey), "red" in C && l(2, u = C.red), "orange" in C && l(3, r = C.orange), "yellow" in C && l(4, f = C.yellow), "seafoam" in C && l(5, c = C.seafoam), "green" in C && l(6, _ = C.green), "active" in C && l(7, E = C.active), "inactive" in C && l(8, S = C.inactive), "hoverable" in C && l(9, T = C.hoverable), "outlineColor" in C && l(10, L = C.outlineColor), "$$scope" in C && l(11, o = C.$$scope); }, [ i, s, u, r, f, c, _, E, S, T, L, o, t, H ]; } class Nl extends U { constructor(e) { super(), Q(this, e, st, rt, X, { size: 0, grey: 1, red: 2, orange: 3, yellow: 4, seafoam: 5, green: 6, active: 7, inactive: 8, hoverable: 9, outlineColor: 10 }); } } function ut(n) { let e, l = (typeof /*value*/ n[0] == "object" ? JSON.stringify( /*value*/ n[0] ) : ( /*value*/ n[0] )) + "", t; return { c() { var o; e = A("div"), t = M(l), w(e, "class", "svelte-1acrdjg"), b( e, "capitalise", /*schema*/ (o = n[1]) == null ? void 0 : o.capitalise ); }, m(o, i) { v(o, e, i), y(e, t); }, p(o, [i]) { var s; i & /*value*/ 1 && l !== (l = (typeof /*value*/ o[0] == "object" ? JSON.stringify( /*value*/ o[0] ) : ( /*value*/ o[0] )) + "") && Z(t, l), i & /*schema*/ 2 && b( e, "capitalise", /*schema*/ (s = o[1]) == null ? void 0 : s.capitalise ); }, i: ie, o: ie, d(o) { o && R(e); } }; } function ft(n, e, l) { let { value: t } = e, { schema: o } = e; return n.$$set = (i) => { "value" in i && l(0, t = i.value), "schema" in i && l(1, o = i.schema); }, [t, o]; } class ze extends U { constructor(e) { super(), Q(this, e, ft, ut, X, { value: 0, schema: 1 }); } } function ct(n) { let e, l, t, o, i, s, u, r, f; return s = new de({ props: { name: "check", size: "S" } }), r = new de({ props: { name: "minus", size: "S" } }), { c() { e = A("label"), l = A("input"), o = J(), i = A("span"), I(s.$$.fragment), u = J(), I(r.$$.fragment), w(l, "type", "checkbox"), w(l, "class", "spectrum-Checkbox-input"), w(l, "id", "checkbox-1"), l.disabled = !0, l.checked = t = !!/*value*/ n[0], w(i, "class", "spectrum-Checkbox-box svelte-ww1lnr"), w(e, "class", "spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-Checkbox--emphasized svelte-ww1lnr"); }, m(c, _) { v(c, e, _), y(e, l), y(e, o), y(e, i), O(s, i, null), y(i, u), O(r, i, null), f = !0; }, p(c, [_]) { (!f || _ & /*value*/ 1 && t !== (t = !!/*value*/ c[0])) && (l.checked = t); }, i(c) { f || (d(s.$$.fragment, c), d(r.$$.fragment, c), f = !0); }, o(c) { m(s.$$.fragment, c), m(r.$$.fragment, c), f = !1; }, d(c) { c && R(e), j(s), j(r); } }; } function at(n, e, l) { let { value: t } = e; return n.$$set = (o) => { "value" in o && l(0, t = o.value); }, [t]; } class _t extends U { constructor(e) { super(), Q(this, e, at, ct, X, { value: 0 }); } } function dt(n) { let e, l = Je( /*isTimeOnly*/ n[1] ? ( /*time*/ n[2] ) : ( /*value*/ n[0] ) ).format( /*format*/ n[3] ) + "", t; return { c() { e = A("div"), t = M(l), w(e, "class", "svelte-1abuiv5"); }, m(o, i) { v(o, e, i), y(e, t); }, p(o, [i]) { i & /*isTimeOnly, time, value, format*/ 15 && l !== (l = Je( /*isTimeOnly*/ o[1] ? ( /*time*/ o[2] ) : ( /*value*/ o[0] ) ).format( /*format*/ o[3] ) + "") && Z(t, l); }, i: ie, o: ie, d(o) { o && R(e); } }; } function mt(n, e, l) { let t, o, i, s, { value: u } = e, { schema: r } = e; return n.$$set = (f) => { "value" in f && l(0, u = f.value), "schema" in f && l(4, r = f.schema); }, n.$$.update = () => { n.$$.dirty & /*value*/ 1 && l(2, t = /* @__PURE__ */ new Date(`0-${u}`)), n.$$.dirty & /*time, schema*/ 20 && l(1, o = !isNaN(t) || (r == null ? void 0 : r.timeOnly)), n.$$.dirty & /*schema*/ 16 && l(5, i = r == null ? void 0 : r.dateOnly), n.$$.dirty & /*isTimeOnly, isDateOnly*/ 34 && l(3, s = o ? "HH:mm:ss" : i ? "MMMM D YYYY" : "MMMM D YYYY, HH:mm"); }, [u, o, t, s, r, i]; } class gt extends U { constructor(e) { super(), Q(this, e, mt, dt, X, { value: 0, schema: 4 }); } } function $e(n, e, l) { const t = n.slice(); return t[7] = e[l], t; } function xe(n) { let e, l; return e = new Nl({ props: { hoverable: !0, grey: !0, $$slots: { default: [ht] }, $$scope: { ctx: n } } }), e.$on( "click", /*onClick*/ n[2] ), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, p(t, o) { const i = {}; o & /*$$scope, relationships*/ 1025 && (i.$$scope = { dirty: o, ctx: t }), e.$set(i); }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function ht(n) { let e = ( /*relationship*/ n[7].primaryDisplay + "" ), l; return { c() { l = M(e); }, m(t, o) { v(t, l, o); }, p(t, o) { o & /*relationships*/ 1 && e !== (e = /*relationship*/ t[7].primaryDisplay + "") && Z(l, e); }, d(t) { t && R(l); } }; } function el(n) { var o; let e, l, t = ( /*relationship*/ ((o = n[7]) == null ? void 0 : o.primaryDisplay) && xe(n) ); return { c() { t && t.c(), e = ue(); }, m(i, s) { t && t.m(i, s), v(i, e, s), l = !0; }, p(i, s) { var u; /*relationship*/ (u = i[7]) != null && u.primaryDisplay ? t ? (t.p(i, s), s & /*relationships*/ 1 && d(t, 1)) : (t = xe(i), t.c(), d(t, 1), t.m(e.parentNode, e)) : t && (D(), m(t, 1, 1, () => { t = null; }), N()); }, i(i) { l || (d(t), l = !0); }, o(i) { m(t), l = !1; }, d(i) { i && R(e), t && t.d(i); } }; } function ll(n) { let e, l, t, o; return { c() { e = A("div"), l = M("+"), t = M( /*leftover*/ n[1] ), o = M(" more"); }, m(i, s) { v(i, e, s), y(e, l), y(e, t), y(e, o); }, p(i, s) { s & /*leftover*/ 2 && Z( t, /*leftover*/ i[1] ); }, d(i) { i && R(e); } }; } function bt(n) { let e, l, t, o = $( /*relationships*/ n[0] ), i = []; for (let r = 0; r < o.length; r += 1) i[r] = el($e(n, o, r)); const s = (r) => m(i[r], 1, 1, () => { i[r] = null; }); let u = ( /*leftover*/ n[1] && ll(n) ); return { c() { for (let r = 0; r < i.length; r += 1) i[r].c(); e = J(), u && u.c(), l = ue(); }, m(r, f) { for (let c = 0; c < i.length; c += 1) i[c] && i[c].m(r, f); v(r, e, f), u && u.m(r, f), v(r, l, f), t = !0; }, p(r, [f]) { if (f & /*onClick, relationships*/ 5) { o = $( /*relationships*/ r[0] ); let c; for (c = 0; c < o.length; c += 1) { const _ = $e(r, o, c); i[c] ? (i[c].p(_, f), d(i[c], 1)) : (i[c] = el(_), i[c].c(), d(i[c], 1), i[c].m(e.parentNode, e)); } for (D(), c = o.length; c < i.length; c += 1) s(c); N(); } /*leftover*/ r[1] ? u ? u.p(r, f) : (u = ll(r), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null); }, i(r) { if (!t) { for (let f = 0; f < o.length; f += 1) d(i[f]); t = !0; } }, o(r) { i = i.filter(Boolean); for (let f = 0; f < i.length; f += 1) m(i[f]); t = !1; }, d(r) { r && (R(e), R(l)), ve(i, r), u && u.d(r); } }; } const wt = 5; function kt(n, e, l) { let t, o, { row: i } = e, { value: s } = e, { schema: u } = e; const r = Tl(), f = (c) => { c.stopPropagation(), r("clickrelationship", { tableId: i.tableId, rowId: i._id, fieldName: u == null ? void 0 : u.name }); }; return n.$$set = (c) => { "row" in c && l(3, i = c.row), "value" in c && l(4, s = c.value), "schema" in c && l(5, u = c.schema); }, n.$$.update = () => { n.$$.dirty & /*value*/ 16 && l(0, t = (s == null ? void 0 : s.slice(0, wt)) ?? []), n.$$.dirty & /*value, relationships*/ 17 && l(1, o = ((s == null ? void 0 : s.length) ?? 0) - t.length); }, [t, o, f, i, s, u]; } class tl extends U { constructor(e) { super(), Q(this, e, kt, bt, X, { row: 3, value: 4, schema: 5 }); } } function nl(n, e, l) { const t = n.slice(); return t[5] = e[l], t; } function pt(n) { let e, l, t, o; return l = new ql({ props: { quiet: !0, target: "_blank", download: ( /*attachment*/ n[5].name ), href: ( /*attachment*/ n[5].url ), $$slots: { default: [Rt] }, $$scope: { ctx: n } } }), l.$on("click", Lt), { c() { e = A("div"), I(l.$$.fragment), w(e, "class", "file svelte-1abirxi"), w(e, "title", t = /*attachment*/ n[5].name); }, m(i, s) { v(i, e, s), O(l, e, null), o = !0; }, p(i, s) { const u = {}; s & /*attachments*/ 1 && (u.download = /*attachment*/ i[5].name), s & /*attachments*/ 1 && (u.href = /*attachment*/ i[5].url), s & /*$$scope, attachments*/ 257 && (u.$$scope = { dirty: s, ctx: i }), l.$set(u), (!o || s & /*attachments*/ 1 && t !== (t = /*attachment*/ i[5].name)) && w(e, "title", t); }, i(i) { o || (d(l.$$.fragment, i), o = !0); }, o(i) { m(l.$$.fragment, i), o = !1; }, d(i) { i && R(e), j(l); } }; } function vt(n) { let e, l; return e = new ql({ props: { quiet: !0, target: "_blank", download: ( /*attachment*/ n[5].name ), href: ( /*attachment*/ n[5].url ), $$slots: { default: [Ct] }, $$scope: { ctx: n } } }), e.$on("click", Et), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, p(t, o) { const i = {}; o & /*attachments*/ 1 && (i.download = /*attachment*/ t[5].name), o & /*attachments*/ 1 && (i.href = /*attachment*/ t[5].url), o & /*$$scope, attachments*/ 257 && (i.$$scope = { dirty: o, ctx: t }), e.$set(i); }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function Rt(n) { let e = ( /*attachment*/ n[5].extension + "" ), l; return { c() { l = M(e); }, m(t, o) { v(t, l, o); }, p(t, o) { o & /*attachments*/ 1 && e !== (e = /*attachment*/ t[5].extension + "") && Z(l, e); }, d(t) { t && R(l); } }; } function Ct(n) { let e, l, t, o, i; return { c() { e = A("div"), l = A("img"), Ve(l.src, t = /*attachment*/ n[5].url) || w(l, "src", t), w(l, "alt", o = /*attachment*/ n[5].extension), w(l, "class", "svelte-1abirxi"), w(e, "class", "center svelte-1abirxi"), w(e, "title", i = /*attachment*/ n[5].name); }, m(s, u) { v(s, e, u), y(e, l); }, p(s, u) { u & /*attachments*/ 1 && !Ve(l.src, t = /*attachment*/ s[5].url) && w(l, "src", t), u & /*attachments*/ 1 && o !== (o = /*attachment*/ s[5].extension) && w(l, "alt", o), u & /*attachments*/ 1 && i !== (i = /*attachment*/ s[5].name) && w(e, "title", i); }, d(s) { s && R(e); } }; } function ol(n) { let e, l, t, o, i; const s = [vt, pt], u = []; function r(f, c) { return c & /*attachments*/ 1 && (e = null), e == null && (e = !!/*isImage*/ f[2]( /*attachment*/ f[5].extension )), e ? 0 : 1; } return l = r(n, -1), t = u[l] = s[l](n), { c() { t.c(), o = ue(); }, m(f, c) { u[l].m(f, c), v(f, o, c), i = !0; }, p(f, c) { let _ = l; l = r(f, c), l === _ ? u[l].p(f, c) : (D(), m(u[_], 1, 1, () => { u[_] = null; }), N(), t = u[l], t ? t.p(f, c) : (t = u[l] = s[l](f), t.c()), d(t, 1), t.m(o.parentNode, o)); }, i(f) { i || (d(t), i = !0); }, o(f) { m(t), i = !1; }, d(f) { f && R(o), u[l].d(f); } }; } function il(n) { let e, l, t, o; return { c() { e = A("div"), l = M("+"), t = M( /*leftover*/ n[1] ), o = M(" more"); }, m(i, s) { v(i, e, s), y(e, l), y(e, t), y(e, o); }, p(i, s) { s & /*leftover*/ 2 && Z( t, /*leftover*/ i[1] ); }, d(i) { i && R(e); } }; } function St(n) { let e, l, t, o = $( /*attachments*/ n[0] ), i = []; for (let r = 0; r < o.length; r += 1) i[r] = ol(nl(n, o, r)); const s = (r) => m(i[r], 1, 1, () => { i[r] = null; }); let u = ( /*leftover*/ n[1] && il(n) ); return { c() { for (let r = 0; r < i.length; r += 1) i[r].c(); e = J(), u && u.c(), l = ue(); }, m(r, f) { for (let c = 0; c < i.length; c += 1) i[c] && i[c].m(r, f); v(r, e, f), u && u.m(r, f), v(r, l, f), t = !0; }, p(r, [f]) { if (f & /*attachments, isImage*/ 5) { o = $( /*attachments*/ r[0] ); let c; for (c = 0; c < o.length; c += 1) { const _ = nl(r, o, c); i[c] ? (i[c].p(_, f), d(i[c], 1)) : (i[c] = ol(_), i[c].c(), d(i[c], 1), i[c].m(e.parentNode, e)); } for (D(), c = o.length; c < i.length; c += 1) s(c); N(); } /*leftover*/ r[1] ? u ? u.p(r, f) : (u = il(r), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null); }, i(r) { if (!t) { for (let f = 0; f < o.length; f += 1) d(i[f]); t = !0; } }, o(r) { i = i.filter(Boolean); for (let f = 0; f < i.length; f += 1) m(i[f]); t = !1; }, d(r) { r && (R(e), R(l)), ve(i, r), u && u.d(r); } }; } const yt = 5, Et = (n) => { n.stopPropagation(); }, Lt = (n) => { n.stopPropagation(); }; function Tt(n, e, l) { let t, o, { value: i } = e; const s = ["png", "tiff", "gif", "raw", "jpg", "jpeg"], u = (r) => s.includes((r == null ? void 0 : r.toLowerCase()) ?? ""); return n.$$set = (r) => { "value" in r && l(3, i = r.value); }, n.$$.update = () => { n.$$.dirty & /*value*/ 8 && l(0, t = (i == null ? void 0 : i.slice(0, yt)) ?? []), n.$$.dirty & /*value, attachments*/ 9 && l(1, o = ((i == null ? void 0 : i.length) ?? 0) - t.length); }, [t, o, u, i]; } class qt extends U { constructor(e) { super(), Q(this, e, Tt, St, X, { value: 3 }); } } function rl(n, e, l) { const t = n.slice(); return t[4] = e[l], t; } function At(n) { let e = ( /*badge*/ n[4] + "" ), l; return { c() { l = M(e); }, m(t, o) { v(t, l, o); }, p(t, o) { o & /*badges*/ 1 && e !== (e = /*badge*/ t[4] + "") && Z(l, e); }, d(t) { t && R(l); } }; } function sl(n) { let e, l; return e = new Nl({ props: { size: "S", grey: !0, $$slots: { default: [At] }, $$scope: { ctx: n } } }), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, p(t, o) { const i = {}; o & /*$$scope, badges*/ 129 && (i.$$scope = { dirty: o, ctx: t }), e.$set(i); }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function ul(n) { let e, l, t, o; return { c() { e = A("div"), l = M("+"), t = M( /*leftover*/ n[1] ), o = M(" more"); }, m(i, s) { v(i, e, s), y(e, l), y(e, t), y(e, o); }, p(i, s) { s & /*leftover*/ 2 && Z( t, /*leftover*/ i[1] ); }, d(i) { i && R(e); } }; } function Bt(n) { let e, l, t, o = $( /*badges*/ n[0] ), i = []; for (let r = 0; r < o.length; r += 1) i[r] = sl(rl(n, o, r)); const s = (r) => m(i[r], 1, 1, () => { i[r] = null; }); let u = ( /*leftover*/ n[1] && ul(n) ); return { c() { for (let r = 0; r < i.length; r += 1) i[r].c(); e = J(), u && u.c(), l = ue(); }, m(r, f) { for (let c = 0; c < i.length; c += 1) i[c] && i[c].m(r, f); v(r, e, f), u && u.m(r, f), v(r, l, f), t = !0; }, p(r, [f]) { if (f & /*badges*/ 1) { o = $( /*badges*/ r[0] ); let c; for (c = 0; c < o.length; c += 1) { const _ = rl(r, o, c); i[c] ? (i[c].p(_, f), d(i[c], 1)) : (i[c] = sl(_), i[c].c(), d(i[c], 1), i[c].m(e.parentNode, e)); } for (D(), c = o.length; c < i.length; c += 1) s(c); N(); } /*leftover*/ r[1] ? u ? u.p(r, f) : (u = ul(r), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null); }, i(r) { if (!t) { for (let f = 0; f < o.length; f += 1) d(i[f]); t = !0; } }, o(r) { i = i.filter(Boolean); for (let f = 0; f < i.length; f += 1) m(i[f]); t = !1; }, d(r) { r && (R(e), R(l)), ve(i, r), u && u.d(r); } }; } const zt = 5; function Dt(n, e, l) { let t, o, i, { value: s } = e; return n.$$set = (u) => { "value" in u && l(2, s = u.value); }, n.$$.update = () => { n.$$.dirty & /*value*/ 4 && l(3, t = Array.isArray(s) ? s : [s].filter((u) => !!u)), n.$$.dirty & /*arrayValue*/ 8 && l(0, o = t.slice(0, zt)), n.$$.dirty & /*arrayValue, badges*/ 9 && l(1, i = t.length - o.length); }, [o, i, s, t]; } class Nt extends U { constructor(e) { super(), Q(this, e, Dt, Bt, X, { value: 2 }); } } function Mt(n) { let e, l, t, o, i; return l = new de({ props: { size: "S", name: "copy" } }), { c() { e = A("div"), I(l.$$.fragment); }, m(s, u) { v(s, e, u), O(l, e, null), t = !0, o || (i = Ne(e, "click", Ul( /*onClick*/ n[0] )), o = !0); }, p: ie, i(s) { t || (d(l.$$.fragment, s), t = !0); }, o(s) { m(l.$$.fragment, s), t = !1; }, d(s) { s && R(e), j(l), o = !1, i(); } }; } function It(n, e, l) { let { value: t } = e; const o = async (i) => { i.stopPropagation(); try { await Ql(t), Xe.success("Copied to clipboard"); } catch { Xe.error("Failed to copy to clipboard. Check the dev console for the value."), console.warn("Failed to copy the value", t); } }; return n.$$set = (i) => { "value" in i && l(1, t = i.value); }, [o, t]; } class Ot extends U { constructor(e) { super(), Q(this, e, It, Mt, X, { value: 1 }); } } function fl(n) { let e, l, t; var o = ( /*renderer*/ n[3] ); function i(s, u) { return { props: { row: ( /*row*/ s[0] ), schema: ( /*schema*/ s[1] ), value: ( /*cellValue*/ s[4] ), $$slots: { default: [jt] }, $$scope: { ctx: s } } }; } return o && (l = We(o, i(n)), l.$on( "clickrelationship", /*clickrelationship_handler*/ n[10] ), l.$on( "buttonclick", /*buttonclick_handler*/ n[11] )), { c() { e = A("div"), l && I(l.$$.fragment), Ke( e, "--max-cell-width", /*schema*/ n[1].width ? "none" : "200px" ), w(e, "class", "svelte-16j2cvj"); }, m(s, u) { v(s, e, u), l && O(l, e, null), t = !0; }, p(s, u) { if (u & /*renderer*/ 8 && o !== (o = /*renderer*/ s[3])) { if (l) { D(); const r = l; m(r.$$.fragment, 1, 0, () => { j(r, 1); }), N(); } o ? (l = We(o, i(s)), l.$on( "clickrelationship", /*clickrelationship_handler*/ s[10] ), l.$on( "buttonclick", /*buttonclick_handler*/ s[11] ), I(l.$$.fragment), d(l.$$.fragment, 1), O(l, e, null)) : l = null; } else if (o) { const r = {}; u & /*row*/ 1 && (r.row = /*row*/ s[0]), u & /*schema*/ 2 && (r.schema = /*schema*/ s[1]), u & /*cellValue*/ 16 && (r.value = /*cellValue*/ s[4]), u & /*$$scope*/ 4096 && (r.$$scope = { dirty: u, ctx: s }), l.$set(r); } (!t || u & /*schema*/ 2) && Ke( e, "--max-cell-width", /*schema*/ s[1].width ? "none" : "200px" ); }, i(s) { t || (l && d(l.$$.fragment, s), t = !0); }, o(s) { l && m(l.$$.fragment, s), t = !1; }, d(s) { s && R(e), l && j(l); } }; } function jt(n) { let e; const l = ( /*#slots*/ n[9].default ), t = me( l, n, /*$$scope*/ n[12], null ); return { c() { t && t.c(); }, m(o, i) { t && t.m(o, i), e = !0; }, p(o, i) { t && t.p && (!e || i & /*$$scope*/ 4096) && ge( t, l, o, /*$$scope*/ o[12], e ? be( l, /*$$scope*/ o[12], i, null ) : he( /*$$scope*/ o[12] ), null ); }, i(o) { e || (d(t, o), e = !0); }, o(o) { m(t, o), e = !1; }, d(o) { t && t.d(o); } }; } function Ht(n) { let e, l, t = ( /*renderer*/ n[3] && /*customRenderer*/ (n[2] || /*cellValue*/ n[4] != null && /*cellValue*/ n[4] !== "") && fl(n) ); return { c() { t && t.c(), e = ue(); }, m(o, i) { t && t.m(o, i), v(o, e, i), l = !0; }, p(o, [i]) { /*renderer*/ o[3] && /*customRenderer*/ (o[2] || /*cellValue*/ o[4] != null && /*cellValue*/ o[4] !== "") ? t ? (t.p(o, i), i & /*renderer, customRenderer, cellValue*/ 28 && d(t, 1)) : (t = fl(o), t.c(), d(t, 1), t.m(e.parentNode, e)) : t && (D(), m(t, 1, 1, () => { t = null; }), N()); }, i(o) { l || (d(t), l = !0); }, o(o) { m(t), l = !1; }, d(o) { o && R(e), t && t.d(o); } }; } function Ft(n, e, l) { let t, o, i, { $$slots: s = {}, $$scope: u } = e, { row: r } = e, { schema: f } = e, { value: c } = e, { customRenderers: _ = [] } = e, { snippets: E } = e, S; const T = { boolean: _t, datetime: gt, link: tl, attachment: qt, string: ze, options: ze, number: ze, longform: ze, array: Nt, internal: Ot, bb_reference: tl }, L = (k) => (k == null ? void 0 : k.type) === "datetime" && (k != null && k.template) ? "string" : (k == null ? void 0 : k.type) || "string", H = (k, z) => z ? Zl(z, { value: k, snippets: E }) : k; function C(k) { De.call(this, n, k); } function q(k) { De.call(this, n, k); } return n.$$set = (k) => { "row" in k && l(0, r = k.row), "schema" in k && l(1, f = k.schema), "value" in k && l(5, c = k.value), "customRenderers" in k && l(6, _ = k.customRenderers), "snippets" in k && l(7, E = k.snippets), "$$scope" in k && l(12, u = k.$$scope); }, n.$$.update = () => { n.$$.dirty & /*schema*/ 2 && l(8, t = L(f)), n.$$.dirty & /*customRenderers, schema*/ 66 && l(2, o = _ == null ? void 0 : _.find((k) => k.column === (f == null ? void 0 : f.name))), n.$$.dirty & /*customRenderer, type*/ 260 && l(3, S = (o == null ? void 0 : o.component) ?? T[t] ?? ze), n.$$.dirty & /*value, schema*/ 34 && l(4, i = H(c, f.template)); }, [ r, f, o, S, i, c, _, E, t, s, C, q, u ]; } class Pt extends U { constructor(e) { super(), Q(this, e, Ft, Ht, X, { row: 0, schema: 1, value: 5, customRenderers: 6, snippets: 7 }); } } function cl(n) { let e, l; return e = new Al({ props: { value: ( /*selected*/ n[0] ), disabled: ( /*data*/ n[4].__disabled ) } }), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, p(t, o) { const i = {}; o & /*selected*/ 1 && (i.value = /*selected*/ t[0]), o & /*data*/ 16 && (i.disabled = /*data*/ t[4].__disabled), e.$set(i); }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function al(n) { let e, l; return e = new $l({ props: { size: "S", $$slots: { default: [Yt] }, $$scope: { ctx: n } } }), e.$on("click", function() { Bl( /*onEdit*/ n[1] ) && n[1].apply(this, arguments); }), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, p(t, o) { n = t; const i = {}; o & /*$$scope*/ 32 && (i.$$scope = { dirty: o, ctx: n }), e.$set(i); }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function Yt(n) { let e; return { c() { e = M("Edit"); }, m(l, t) { v(l, e, t); }, d(l) { l && R(e); } }; } function Gt(n) { let e, l, t, o = ( /*allowSelectRows*/ n[2] && /*data*/ n[4].__selectable !== !1 && cl(n) ), i = ( /*allowEditRows*/ n[3] && al(n) ); return { c() { e = A("div"), o && o.c(), l = J(), i && i.c(), w(e, "class", "svelte-1fa8hd3"); }, m(s, u) { v(s, e, u), o && o.m(e, null), y(e, l), i && i.m(e, null), t = !0; }, p(s, [u]) { /*allowSelectRows*/ s[2] && /*data*/ s[4].__selectable !== !1 ? o ? (o.p(s, u), u & /*allowSelectRows, data*/ 20 && d(o, 1)) : (o = cl(s), o.c(), d(o, 1), o.m(e, l)) : o && (D(), m(o, 1, 1, () => { o = null; }), N()), /*allowEditRows*/ s[3] ? i ? (i.p(s, u), u & /*allowEditRows*/ 8 && d(i, 1)) : (i = al(s), i.c(), d(i, 1), i.m(e, null)) : i && (D(), m(i, 1, 1, () => { i = null; }), N()); }, i(s) { t || (d(o), d(i), t = !0); }, o(s) { m(o), m(i), t = !1; }, d(s) { s && R(e), o && o.d(), i && i.d(); } }; } function Jt(n, e, l) { let { selected: t } = e, { onEdit: o } = e, { allowSelectRows: i = !1 } = e, { allowEditRows: s = !1 } = e, { data: u } = e; return n.$$set = (r) => { "selected" in r && l(0, t = r.selected), "onEdit" in r && l(1, o = r.onEdit), "allowSelectRows" in r && l(2, i = r.allowSelectRows), "allowEditRows" in r && l(3, s = r.allowEditRows), "data" in r && l(4, u = r.data); }, [t, o, i, s, u]; } class Vt extends U { constructor(e) { super(), Q(this, e, Jt, Gt, X, { selected: 0, onEdit: 1, allowSelectRows: 2, allowEditRows: 3, data: 4 }); } } const Xt = (n) => ({}), _l = (n) => ({}); function dl(n, e, l) { const t = n.slice(); return t[64] = e[l], t; } function ml(n, e, l) { const t = n.slice(); return t[67] = e[l], t; } function gl(n, e, l) { const t = n.slice(); return t[67] = e[l], t; } const Wt = (n) => ({}), hl = (n) => ({}); function Kt(n) { let e, l, t, o, i, s, u = ( /*fields*/ n[18].length && bl(n) ); const r = [xt, $t], f = []; function c(_, E) { var S; return ( /*sortedRows*/ (S = _[24]) != null && S.length ? 0 : 1 ); } return t = c(n), o = f[t] = r[t](n), { c() { e = A("div"), u && u.c(), l = J(), o.c(), w(e, "class", "spectrum-Table svelte-qx6w80"), w(e, "style", i = `${/*heightStyle*/ n[25]}${/*gridStyle*/ n[23]}`), b(e, "no-scroll", !/*rowCount*/ n[2]); }, m(_, E) { v(_, e, E), u && u.m(e, null), y(e, l), f[t].m(e, null), s = !0; }, p(_, E) { /*fields*/ _[18].length ? u ? (u.p(_, E), E[0] & /*fields*/ 262144 && d(u, 1)) : (u = bl(_), u.c(), d(u, 1), u.m(e, l)) : u && (D(), m(u, 1, 1, () => { u = null; }), N()); let S = t; t = c(_), t === S ? f[t].p(_, E) : (D(), m(f[S], 1, 1, () => { f[S] = null; }), N(), o = f[t], o ? o.p(_, E) : (o = f[t] = r[t](_), o.c()), d(o, 1), o.m(e, null)), (!s || E[0] & /*heightStyle, gridStyle*/ 41943040 && i !== (i = `${/*heightStyle*/ _[25]}${/*gridStyle*/ _[23]}`)) && w(e, "style", i), (!s || E[0] & /*rowCount*/ 4) && b(e, "no-scroll", !/*rowCount*/ _[2]); }, i(_) { s || (d(u), d(o), s = !0); }, o(_) { m(u), m(o), s = !1; }, d(_) { _ && R(e), u && u.d(), f[t].d(); } }; } function Ut(n) { let e, l; const t = ( /*#slots*/ n[44].loadingIndicator ), o = me( t, n, /*$$scope*/ n[55], hl ), i = o || nn(); return { c() { e = A("div"), i && i.c(), w(e, "class", "loading svelte-qx6w80"), w( e, "style", /*heightStyle*/ n[25] ); }, m(s, u) { v(s, e, u), i && i.m(e, null), l = !0; }, p(s, u) { o && o.p && (!l || u[1] & /*$$scope*/ 16777216) && ge( o, t, s, /*$$scope*/ s[55], l ? be( t, /*$$scope*/ s[55], u, Wt ) : he( /*$$scope*/ s[55] ), hl ), (!l || u[0] & /*heightStyle*/ 33554432) && w( e, "style", /*heightStyle*/ s[25] ); }, i(s) { l || (d(i, s), l = !0); }, o(s) { m(i, s), l = !1; }, d(s) { s && R(e), i && i.d(s); } }; } function bl(n) { let e, l, t, o = ( /*showEditColumn*/ n[17] && wl(n) ), i = $( /*fields*/ n[18] ), s = []; for (let r = 0; r < i.length; r += 1) s[r] = Rl(gl(n, i, r)); const u = (r) => m(s[r], 1, 1, () => { s[r] = null; }); return { c() { e = A("div"), o && o.c(), l = J(); for (let r = 0; r < s.length; r += 1) s[r].c(); w(e, "class", "spectrum-Table-head svelte-qx6w80"); }, m(r, f) { v(r, e, f), o && o.m(e, null), y(e, l); for (let c = 0; c < s.length; c += 1) s[c] && s[c].m(e, null); t = !0; }, p(r, f) { if (/*showEditColumn*/ r[17] ? o ? (o.p(r, f), f[0] & /*showEditColumn*/ 131072 && d(o, 1)) : (o = wl(r), o.c(), d(o, 1), o.m(e, l)) : o && (D(), m(o, 1, 1, () => { o = null; }), N()), f[0] & /*showHeaderBorder, schema, fields, sortColumn, sortOrder, sortBy, editColumn, allowEditColumns, getDisplayName*/ 939888769) { i = $( /*fields*/ r[18] ); let c; for (c = 0; c < i.length; c += 1) { const _ = gl(r, i, c); s[c] ? (s[c].p(_, f), d(s[c], 1)) : (s[c] = Rl(_), s[c].c(), d(s[c], 1), s[c].m(e, null)); } for (D(), c = i.length; c < s.length; c += 1) u(c); N(); } }, i(r) { if (!t) { d(o); for (let f = 0; f < i.length; f += 1) d(s[f]); t = !0; } }, o(r) { m(o), s = s.filter(Boolean); for (let f = 0; f < s.length; f += 1) m(s[f]); t = !1; }, d(r) { r && R(e), o && o.d(), ve(s, r); } }; } function wl(n) { let e, l, t, o; const i = [Zt, Qt], s = []; function u(r, f) { return ( /*allowSelectRows*/ r[5] ? 0 : 1 ); } return l = u(n), t = s[l] = i[l](n), { c() { e = A("div"), t.c(), w(e, "class", "spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-qx6w80"), b(e, "noBorderHeader", !/*showHeaderBorder*/ n[12]); }, m(r, f) { v(r, e, f), s[l].m(e, null), o = !0; }, p(r, f) { let c = l; l = u(r), l === c ? s[l].p(r, f) : (D(), m(s[c], 1, 1, () => { s[c] = null; }), N(), t = s[l], t ? t.p(r, f) : (t = s[l] = i[l](r), t.c()), d(t, 1), t.m(e, null)), (!o || f[0] & /*showHeaderBorder*/ 4096) && b(e, "noBorderHeader", !/*showHeaderBorder*/ r[12]); }, i(r) { o || (d(t), o = !0); }, o(r) { m(t), o = !1; }, d(r) { r && R(e), s[l].d(); } }; } function Qt(n) { let e; return { c() { e = M("Edit"); }, m(l, t) { v(l, e, t); }, p: ie, i: ie, o: ie, d(l) { l && R(e); } }; } function Zt(n) { let e, l, t; function o(s) { n[45](s); } let i = {}; return ( /*checkboxStatus*/ n[21] !== void 0 && (i.value = /*checkboxStatus*/ n[21]), e = new Al({ props: i }), Fe.push(() => zl(e, "value", o)), e.$on( "change", /*toggleSelectAll*/ n[32] ), { c() { I(e.$$.fragment); }, m(s, u) { O(e, s, u), t = !0; }, p(s, u) { const r = {}; !l && u[0] & /*checkboxStatus*/ 2097152 && (l = !0, r.value = /*checkboxStatus*/ s[21], Dl(() => l = !1)), e.$set(r); }, i(s) { t || (d(e.$$.fragment, s), t = !0); }, o(s) { m(e.$$.fragment, s), t = !1; }, d(s) { j(e, s); } } ); } function kl(n) { let e, l; return e = new de({ props: { name: "magic-wand", size: "S", color: "var(--spectrum-global-color-gray-600)" } }), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function pl(n) { let e, l; return e = new de({ props: { name: "caret-down", size: "S", color: "var(--spectrum-global-color-gray-700)" } }), { c() { I(e.$$.fragment); }, m(t, o) { O(e, t, o), l = !0; }, i(t) { l || (d(e.$$.fragment, t), l = !0); }, o(t) { m(e.$$.fragment, t), l = !1; }, d(t) { j(e, t); } }; } function vl(n) { let e, l; function t(...o) { return ( /*click_handler*/ n[46]( /*field*/ n[67], ...o ) ); } return e = new de({ props: { name: "pencil", size: "S", hoverable: !0, color: "var(--spectrum-global-color-gray-600)", hoverColor: "var(--spectrum-global-color-gray-900)" } }), e.$on("click", t), { c() { I(e.$$.fragment); }, m(o, i) { O(e, o, i), l = !0; }, p(o, i) { n = o; }, i(o) { l || (d(e.$$.fragment, o), l = !0); }, o(o) { m(e.$$.fragment, o), l = !1; }, d(o) { j(e, o); } }; } function Rl(n) { var C, q; let e, l, t = ( /*getDisplayName*/ n[28]( /*schema*/ n[0][ /*field*/ n[67] ] ) + "" ), o, i, s, u, r, f, c, _, E, S = ( /*schema*/ ((C = n[0][ /*field*/ n[67] ]) == null ? void 0 : C.autocolumn) && kl() ), T = ( /*sortColumn*/ n[15] === /*field*/ n[67] && pl() ), L = ( /*allowEditColumns*/ n[7] && /*schema*/ ((q = n[0][ /*field*/ n[67] ]) == null ? void 0 : q.editable) !== !1 && vl(n) ); function H() { return ( /*click_handler_1*/ n[47]( /*field*/ n[67] ) ); } return { c() { e = A("div"), l = A("div"), o = M(t), i = J(), S && S.c(), s = J(), T && T.c(), u = J(), L && L.c(), f = J(), w(l, "class", "title svelte-qx6w80"), w(l, "title", r = /*field*/ n[67]), w(e, "class", "spectrum-Table-headCell svelte-qx6w80"), b(e, "noBorderHeader", !/*showHeaderBorder*/ n[12]), b( e, "spectrum-Table-headCell--alignCenter", /*schema*/ n[0][ /*field*/ n[67] ].align === "Center" ), b( e, "spectrum-Table-headCell--alignRight", /*schema*/ n[0][ /*field*/ n[67] ].align === "Right" ), b( e, "is-sortable", /*schema*/ n[0][ /*field*/ n[67] ].sortable !== !1 ), b( e, "is-sorted-desc", /*sortColumn*/ n[15] === /*field*/ n[67] && /*sortOrder*/ n[16] === "Descending" ), b( e, "is-sorted-asc", /*sortColumn*/ n[15] === /*field*/ n[67] && /*sortOrder*/ n[16] === "Ascending" ); }, m(k, z) { v(k, e, z), y(e, l), y(l, o), y(l, i), S && S.m(l, null), y(l, s), T && T.m(l, null), y(l, u), L && L.m(l, null), y(e, f), c = !0, _ || (E = Ne(e, "click", H), _ = !0); }, p(k, z) { var le, ne; n = k, (!c || z[0] & /*schema, fields*/ 262145) && t !== (t = /*getDisplayName*/ n[28]( /*schema*/ n[0][ /*field*/ n[67] ] ) + "") && Z(o, t), /*schema*/ (le = n[0][ /*field*/ n[67] ]) != null && le.autocolumn ? S ? z[0] & /*schema, fields*/ 262145 && d(S, 1) : (S = kl(), S.c(), d(S, 1), S.m(l, s)) : S && (D(), m(S, 1, 1, () => { S = null; }), N()), /*sortColumn*/ n[15] === /*field*/ n[67] ? T ? z[0] & /*sortColumn, fields*/ 294912 && d(T, 1) : (T = pl(), T.c(), d(T, 1), T.m(l, u)) : T && (D(), m(T, 1, 1, () => { T = null; }), N()), /*allowEditColumns*/ n[7] && /*schema*/ ((ne = n[0][ /*field*/ n[67] ]) == null ? void 0 : ne.editable) !== !1 ? L ? (L.p(n, z), z[0] & /*allowEditColumns, schema, fields*/ 262273 && d(L, 1)) : (L = vl(n), L.c(), d(L, 1), L.m(l, null)) : L && (D(), m(L, 1, 1, () => { L = null; }), N()), (!c || z[0] & /*fields*/ 262144 && r !== (r = /*field*/ n[67])) && w(l, "title", r), (!c || z[0] & /*showHeaderBorder*/ 4096) && b(e, "noBorderHeader", !/*showHeaderBorder*/ n[12]), (!c || z[0] & /*schema, fields*/ 262145) && b( e, "spectrum-Table-headCell--alignCenter", /*schema*/ n[0][ /*field*/ n[67] ].align === "Center" ), (!c || z[0] & /*schema, fields*/ 262145) && b( e, "spectrum-Table-headCell--alignRight", /*schema*/ n[0][ /*field*/ n[67] ].align === "Right" ), (!c || z[0] & /*schema, fields*/ 262145) && b( e, "is-sortable", /*schema*/ n[0][ /*field*/ n[67] ].sortable !== !1 ), (!c || z[0] & /*sortColumn, fields, sortOrder*/ 360448) && b( e, "is-sorted-desc", /*sortColumn*/ n[15] === /*field*/ n[67] && /*sortOrder*/ n[16] === "Descending" ), (!c || z[0] & /*sortColumn, fields, sortOrder*/ 360448) && b( e, "is-sorted-asc", /*sortColumn*/ n[15] === /*field*/ n[67] && /*sortOrder*/ n[16] === "Ascending" ); }, i(k) { c || (d(S), d(T), d(L), c = !0); }, o(k) { m(S), m(T), m(L), c = !1; }, d(k) { k && R(e), S && S.d(), T && T.d(), L && L.d(), _ = !1, E(); } }; } function $t(n) { let e, l, t, o; const i = [ln, en], s = []; function u(r, f) { return ( /*customPlaceholder*/ r[11] ? 0 : 1 ); } return l = u(n), t = s[l] = i[l](n), { c() { var r; e = A("div"), t.c(), w(e, "class", "placeholder svelte-qx6w80"), b( e, "placeholder--custom", /*customPlaceholder*/ n[11] ), b(e, "placeholder--no-fields", !/*fields*/ ((r = n[18]) != null && r.length)); }, m(r, f) { v(r, e, f), s[l].m(e, null), o = !0; }, p(r, f) { var _; let c = l; l = u(r), l === c ? s[l].p(r, f) : (D(), m(s[c], 1, 1, () => { s[c] = null; }), N(), t = s[l], t ? t.p(r, f) : (t = s[l] = i[l](r), t.c()), d(t, 1), t.m(e, null)), (!o || f[0] & /*customPlaceholder*/ 2048) && b( e, "placeholder--custom", /*customPlaceholder*/ r[11] ), (!o || f[0] & /*fields*/ 262144) && b(e, "placeholder--no-fields", !/*fields*/ ((_ = r[18]) != null && _.length)); }, i(r) { o || (d(t), o = !0); }, o(r) { m(t), o = !1; }, d(r) { r && R(e), s[l].d(); } }; } function xt(n) { let e, l, t = $( /*sortedRows*/ n[24] ), o = []; for (let s = 0; s < t.length; s += 1) o[s] = yl(dl(n, t, s)); const i = (s) => m(o[s], 1, 1, () => { o[s] = null; }); return { c() { for (let s = 0; s < o.length; s += 1) o[s].c(); e = ue(); }, m(s, u) { for (let r = 0; r < o.length; r += 1) o[r] && o[r].m(s, u); v(s, e, u), l = !0; }, p(s, u) { if (u[0] & /*allowClickRows, fields, cellStyles, schema, dispatch, sortedRows, customRenderers, snippets, showHeaderBorder, selectedRows, editRow, allowSelectRows, allowEditRows, showEditColumn*/ 1162236771 | u[1] & /*toggleSelectRow, $$scope*/ 16777217) { t = $( /*sortedRows*/ s[24] ); let r; for (r = 0; r < t.length; r += 1) { const f = dl(s, t, r); o[r] ? (o[r].p(f, u), d(o[r], 1)) : (o[r] = yl(f), o[r].c(), d(o[r], 1), o[r].m(e.parentNode, e)); } for (D(), r = t.length; r < o.length; r += 1) i(r); N(); } }, i(s) { if (!l) { for (let u = 0; u < t.length; u += 1) d(o[u]); l = !0; } }, o(s) { o = o.filter(Boolean); for (let u = 0; u < o.length; u += 1) m(o[u]); l = !1; }, d(s) { s && R(e), ve(o, s); } }; } function en(n) { let e, l, t, o, i, s; return l = new de({ props: { name: "table", size: "XXL", color: "var(--spectrum-global-color-gray-600)" } }), { c() { e = A("div"), I(l.$$.fragment), t = J(), o = A("div"), i = M( /*placeholderText*/ n[13] ), w(o, "class", "svelte-qx6w80"), w(e, "class", "placeholder-content svelte-qx6w80"); }, m(u, r) { v(u, e, r), O(l, e, null), y(e, t), y(e, o), y(o, i), s = !0; }, p(u, r) { (!s || r[0] & /*placeholderText*/ 8192) && Z( i, /*placeholderText*/ u[13] ); }, i(u) { s || (d(l.$$.fragment, u), s = !0); }, o(u) { m(l.$$.fragment, u), s = !1; }, d(u) { u && R(e), j(l); } }; } function ln(n) { let e; const l = ( /*#slots*/ n[44].placeholder ), t = me( l, n, /*$$scope*/ n[55], _l ); return { c() { t && t.c(); }, m(o, i) { t && t.m(o, i), e = !0; }, p(o, i) { t && t.p && (!e || i[1] & /*$$scope*/ 16777216) && ge( t, l, o, /*$$scope*/ o[55], e ? be( l, /*$$scope*/ o[55], i, Xt ) : he( /*$$scope*/ o[55] ), _l ); }, i(o) { e || (d(t, o), e = !0); }, o(o) { m(t, o), e = !1; }, d(o) { t && t.d(o); } }; } function Cl(n) { let e, l, t, o, i; function s(...f) { return ( /*func*/ n[48]( /*row*/ n[64], ...f ) ); } function u(...f) { return ( /*func_1*/ n[49]( /*row*/ n[64], ...f ) ); } l = new Vt({ props: { data: ( /*row*/ n[64] ), selected: ( /*selectedRows*/ n[1].findIndex(s) !== -1 ), onEdit: u, allowSelectRows: ( /*allowSelectRows*/ n[5] ), allowEditRows: ( /*allowEditRows*/ n[6] ) } }); function r(...f) { return ( /*click_handler_2*/ n[50]( /*row*/ n[64], ...f ) ); } return { c() { e = A("div"), I(l.$$.fragment), w(e, "class", "spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-qx6w80"), b(e, "noBorderCheckbox", !/*showHeaderBorder*/ n[12]); }, m(f, c) { v(f, e, c), O(l, e, null), t = !0, o || (i = Ne(e, "click", r), o = !0); }, p(f, c) { n = f; const _ = {}; c[0] & /*sortedRows*/ 16777216 && (_.data = /*row*/ n[64]), c[0] & /*selectedRows, sortedRows*/ 16777218 && (_.sel