okno 1.0.0-beta4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -0
- package/dist/adapters/astro.d.ts +3 -0
- package/dist/adapters/astro.d.ts.map +1 -0
- package/dist/adapters/astro.js +32 -0
- package/dist/adapters/index.d.ts +3 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/vite.d.ts +4 -0
- package/dist/adapters/vite.d.ts.map +1 -0
- package/dist/adapters/vite.js +21 -0
- package/dist/client-CeppRtrT.js +55 -0
- package/dist/core/__tests__/builders.test.d.ts +2 -0
- package/dist/core/__tests__/builders.test.d.ts.map +1 -0
- package/dist/core/__tests__/fields.test.d.ts +2 -0
- package/dist/core/__tests__/fields.test.d.ts.map +1 -0
- package/dist/core/__tests__/runtime.test.d.ts +2 -0
- package/dist/core/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/core/builders/collection.d.ts +9 -0
- package/dist/core/builders/collection.d.ts.map +1 -0
- package/dist/core/builders/component.d.ts +26 -0
- package/dist/core/builders/component.d.ts.map +1 -0
- package/dist/core/builders/global.d.ts +8 -0
- package/dist/core/builders/global.d.ts.map +1 -0
- package/dist/core/builders/group.d.ts +18 -0
- package/dist/core/builders/group.d.ts.map +1 -0
- package/dist/core/builders/index.d.ts +8 -0
- package/dist/core/builders/index.d.ts.map +1 -0
- package/dist/core/builders/page.d.ts +9 -0
- package/dist/core/builders/page.d.ts.map +1 -0
- package/dist/core/builders/utils.d.ts +8 -0
- package/dist/core/builders/utils.d.ts.map +1 -0
- package/dist/core/components/index.d.ts +3 -0
- package/dist/core/components/index.d.ts.map +1 -0
- package/dist/core/components/link.d.ts +12 -0
- package/dist/core/components/link.d.ts.map +1 -0
- package/dist/core/components/meta.d.ts +12 -0
- package/dist/core/components/meta.d.ts.map +1 -0
- package/dist/core/field-result.d.ts +26 -0
- package/dist/core/field-result.d.ts.map +1 -0
- package/dist/core/fields/boolean.d.ts +12 -0
- package/dist/core/fields/boolean.d.ts.map +1 -0
- package/dist/core/fields/date.d.ts +14 -0
- package/dist/core/fields/date.d.ts.map +1 -0
- package/dist/core/fields/enum.d.ts +14 -0
- package/dist/core/fields/enum.d.ts.map +1 -0
- package/dist/core/fields/index.d.ts +12 -0
- package/dist/core/fields/index.d.ts.map +1 -0
- package/dist/core/fields/media.d.ts +33 -0
- package/dist/core/fields/media.d.ts.map +1 -0
- package/dist/core/fields/number.d.ts +16 -0
- package/dist/core/fields/number.d.ts.map +1 -0
- package/dist/core/fields/reference.d.ts +12 -0
- package/dist/core/fields/reference.d.ts.map +1 -0
- package/dist/core/fields/richtext.d.ts +13 -0
- package/dist/core/fields/richtext.d.ts.map +1 -0
- package/dist/core/fields/slug.d.ts +10 -0
- package/dist/core/fields/slug.d.ts.map +1 -0
- package/dist/core/fields/string.d.ts +21 -0
- package/dist/core/fields/string.d.ts.map +1 -0
- package/dist/core/fields/types.d.ts +101 -0
- package/dist/core/fields/types.d.ts.map +1 -0
- package/dist/core/fields/user.d.ts +13 -0
- package/dist/core/fields/user.d.ts.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +23 -0
- package/dist/core/okno.d.ts +21 -0
- package/dist/core/okno.d.ts.map +1 -0
- package/dist/core/runtime.d.ts +9 -0
- package/dist/core/runtime.d.ts.map +1 -0
- package/dist/core/schema.d.ts +2 -0
- package/dist/core/schema.d.ts.map +1 -0
- package/dist/editor/index.js +1753 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/meta-D-_nuC5Y.js +548 -0
- package/dist/server/client.d.ts +29 -0
- package/dist/server/client.d.ts.map +1 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +6 -0
- package/dist/server/types.d.ts +48 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/types/global.d.ts +54 -0
- package/dist/types/global.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/path.d.ts +35 -0
- package/dist/types/path.d.ts.map +1 -0
- package/dist/types/query.d.ts +31 -0
- package/dist/types/query.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vite.dev.config.d.ts +3 -0
- package/dist/vite.dev.config.d.ts.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,1753 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
8
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
9
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
+
var _t2, _e, _a, _r, _o, _i, _a2, _s, _n, _l, _c, _f_instances, d_fn, _h, _p, _u, _g, _e2, _b, _f, _v, _x_instances, m_fn, w_fn, _x, _y, _k, _C, __, _z, _L, _S, _j, _E, _$, _O, _M, _D, _P, _W, _T, _R, _A, _I, _N, _H, _F, _K, _U, _X, _Y, _B, _Z, _h2, _q, _J, _V, _G, _Q, _tt, _et, _rt, _ot, _it, _at, _st, _nt, _q2, _lt, _ct, _dt, _ht, _pt, _ut, _gt, _bt, _ft, _mt, _wt, _vt, _xt, _yt, _kt, _Ct, __t, _V2, _b2;
|
|
13
|
+
import { untrack as t, onMount as e, getContext as r, tick as o, setContext as i, mount as a } from "svelte";
|
|
14
|
+
import "svelte/internal/disclose-version";
|
|
15
|
+
import "svelte/internal/flags/async";
|
|
16
|
+
import * as s from "svelte/internal/client";
|
|
17
|
+
import { on as n } from "svelte/events";
|
|
18
|
+
import { createSubscriber as l } from "svelte/reactivity";
|
|
19
|
+
import c from "pocketbase";
|
|
20
|
+
import { Spring as d } from "svelte/motion";
|
|
21
|
+
const h = [];
|
|
22
|
+
function p(t2, e2, r2) {
|
|
23
|
+
const o2 = r2.map((t3) => {
|
|
24
|
+
if ("string" == typeof t3) return t3;
|
|
25
|
+
if (t3 instanceof Error) return `${t3.name}: ${t3.message}
|
|
26
|
+
${t3.stack}`;
|
|
27
|
+
try {
|
|
28
|
+
return JSON.stringify(t3);
|
|
29
|
+
} catch {
|
|
30
|
+
return String(t3);
|
|
31
|
+
}
|
|
32
|
+
}).join(" ");
|
|
33
|
+
h.push({ timestamp: Date.now(), module: t2, level: e2, message: o2 }), h.length > 1e3 && h.shift();
|
|
34
|
+
}
|
|
35
|
+
function u(t2) {
|
|
36
|
+
return { info: (...e2) => {
|
|
37
|
+
p(t2, "info", e2);
|
|
38
|
+
}, error: (...e2) => {
|
|
39
|
+
p(t2, "error", e2);
|
|
40
|
+
}, warn: (...e2) => {
|
|
41
|
+
p(t2, "warn", e2);
|
|
42
|
+
}, ok: (...e2) => {
|
|
43
|
+
p(t2, "ok", e2);
|
|
44
|
+
}, table: (t3, e2) => {
|
|
45
|
+
console.table(t3, e2);
|
|
46
|
+
}, group: (t3) => {
|
|
47
|
+
t3 ? console.group(`%c—— ${t3} ——`, "color: #6366f1") : console.group();
|
|
48
|
+
}, groupEnd: () => console.groupEnd() };
|
|
49
|
+
}
|
|
50
|
+
const g = "undefined" != typeof window ? window : void 0;
|
|
51
|
+
function b(t2, e2) {
|
|
52
|
+
if (/* @__PURE__ */ (function(t3) {
|
|
53
|
+
return "function" == typeof t3;
|
|
54
|
+
})(t2)) {
|
|
55
|
+
const r2 = t2();
|
|
56
|
+
return void 0 === r2 ? e2 : r2;
|
|
57
|
+
}
|
|
58
|
+
return void 0 === t2 ? e2 : t2;
|
|
59
|
+
}
|
|
60
|
+
new (_a = class {
|
|
61
|
+
constructor(t2 = {}) {
|
|
62
|
+
__privateAdd(this, _t2);
|
|
63
|
+
__privateAdd(this, _e);
|
|
64
|
+
const { window: e2 = g, document: r2 = e2 == null ? void 0 : e2.document } = t2;
|
|
65
|
+
void 0 !== e2 && (__privateSet(this, _t2, r2), __privateSet(this, _e, l((t3) => {
|
|
66
|
+
const r3 = n(e2, "focusin", t3), o2 = n(e2, "focusout", t3);
|
|
67
|
+
return () => {
|
|
68
|
+
r3(), o2();
|
|
69
|
+
};
|
|
70
|
+
})));
|
|
71
|
+
}
|
|
72
|
+
get current() {
|
|
73
|
+
var _a3;
|
|
74
|
+
return (_a3 = __privateGet(this, _e)) == null ? void 0 : _a3.call(this), __privateGet(this, _t2) ? (function(t2) {
|
|
75
|
+
let e2 = t2.activeElement;
|
|
76
|
+
for (; e2 == null ? void 0 : e2.shadowRoot; ) {
|
|
77
|
+
const t3 = e2.shadowRoot.activeElement;
|
|
78
|
+
if (t3 === e2) break;
|
|
79
|
+
e2 = t3;
|
|
80
|
+
}
|
|
81
|
+
return e2;
|
|
82
|
+
})(__privateGet(this, _t2)) : null;
|
|
83
|
+
}
|
|
84
|
+
}, _t2 = new WeakMap(), _e = new WeakMap(), _a)();
|
|
85
|
+
class f {
|
|
86
|
+
constructor(e2, r2 = {}) {
|
|
87
|
+
__privateAdd(this, _f_instances);
|
|
88
|
+
__privateAdd(this, _r);
|
|
89
|
+
__privateAdd(this, _o, 0);
|
|
90
|
+
__privateAdd(this, _i, s.derived(() => b(__privateGet(this, _o)) ?? 0));
|
|
91
|
+
__privateAdd(this, _a2, null);
|
|
92
|
+
__privateAdd(this, _s, null);
|
|
93
|
+
__privateAdd(this, _n, s.state(0));
|
|
94
|
+
__privateAdd(this, _l, s.state(false));
|
|
95
|
+
__privateAdd(this, _c, g);
|
|
96
|
+
r2.window && __privateSet(this, _c, r2.window), __privateSet(this, _o, r2.fpsLimit), __privateSet(this, _r, e2), this.start = this.start.bind(this), this.stop = this.stop.bind(this), this.toggle = this.toggle.bind(this), s.user_effect(() => ((r2.immediate ?? 1) && t(this.start), this.stop));
|
|
97
|
+
}
|
|
98
|
+
start() {
|
|
99
|
+
__privateGet(this, _c) && (s.set(__privateGet(this, _l), true), __privateSet(this, _a2, 0), __privateSet(this, _s, __privateGet(this, _c).requestAnimationFrame(__privateMethod(this, _f_instances, d_fn).bind(this))));
|
|
100
|
+
}
|
|
101
|
+
stop() {
|
|
102
|
+
__privateGet(this, _s) && __privateGet(this, _c) && (s.set(__privateGet(this, _l), false), __privateGet(this, _c).cancelAnimationFrame(__privateGet(this, _s)), __privateSet(this, _s, null));
|
|
103
|
+
}
|
|
104
|
+
toggle() {
|
|
105
|
+
s.get(__privateGet(this, _l)) ? this.stop() : this.start();
|
|
106
|
+
}
|
|
107
|
+
get fps() {
|
|
108
|
+
return s.get(__privateGet(this, _l)) ? s.get(__privateGet(this, _n)) : 0;
|
|
109
|
+
}
|
|
110
|
+
get running() {
|
|
111
|
+
return s.get(__privateGet(this, _l));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
_r = new WeakMap();
|
|
115
|
+
_o = new WeakMap();
|
|
116
|
+
_i = new WeakMap();
|
|
117
|
+
_a2 = new WeakMap();
|
|
118
|
+
_s = new WeakMap();
|
|
119
|
+
_n = new WeakMap();
|
|
120
|
+
_l = new WeakMap();
|
|
121
|
+
_c = new WeakMap();
|
|
122
|
+
_f_instances = new WeakSet();
|
|
123
|
+
d_fn = function(t2) {
|
|
124
|
+
if (!s.get(__privateGet(this, _l)) || !__privateGet(this, _c)) return;
|
|
125
|
+
null === __privateGet(this, _a2) && __privateSet(this, _a2, t2);
|
|
126
|
+
const e2 = t2 - __privateGet(this, _a2), r2 = 1e3 / e2;
|
|
127
|
+
s.get(__privateGet(this, _i)) && r2 > s.get(__privateGet(this, _i)) || (s.set(__privateGet(this, _n), r2), __privateSet(this, _a2, t2), __privateGet(this, _r).call(this, { delta: e2, timestamp: t2 })), __privateSet(this, _s, __privateGet(this, _c).requestAnimationFrame(__privateMethod(this, _f_instances, d_fn).bind(this)));
|
|
128
|
+
};
|
|
129
|
+
function m() {
|
|
130
|
+
}
|
|
131
|
+
function w(t2, e2, r2, o2) {
|
|
132
|
+
s.user_effect(() => {
|
|
133
|
+
const i2 = b(t2);
|
|
134
|
+
if (null == i2) return;
|
|
135
|
+
const a2 = b(e2);
|
|
136
|
+
if (!Array.isArray(a2)) return n(i2, a2, r2, o2);
|
|
137
|
+
for (const t3 of a2) s.user_effect(() => n(i2, t3, r2, o2));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function v(t2, e2, r2, o2, i2, a2) {
|
|
141
|
+
if (null === t2 || "object" != typeof t2) return t2;
|
|
142
|
+
const s2 = Object.getPrototypeOf(t2);
|
|
143
|
+
if (null !== s2 && s2 !== Object.prototype && !Array.isArray(t2)) return t2;
|
|
144
|
+
let n2 = r2.get(t2);
|
|
145
|
+
return n2 || (n2 = new Proxy(t2, { get: (t3, s3) => (o2 == null ? void 0 : o2(), v(Reflect.get(t3, s3), e2, r2, o2, i2, a2)), set: (t3, r3, o3) => (i2 == null ? void 0 : i2(), Reflect.set(t3, r3, o3), a2(e2), true) }), r2.set(t2, n2)), n2;
|
|
146
|
+
}
|
|
147
|
+
class x {
|
|
148
|
+
constructor(t2, e2, r2 = {}) {
|
|
149
|
+
__privateAdd(this, _x_instances);
|
|
150
|
+
__privateAdd(this, _h);
|
|
151
|
+
__privateAdd(this, _p);
|
|
152
|
+
__privateAdd(this, _u);
|
|
153
|
+
__privateAdd(this, _g);
|
|
154
|
+
__privateAdd(this, _e2);
|
|
155
|
+
__privateAdd(this, _b);
|
|
156
|
+
__privateAdd(this, _f, /* @__PURE__ */ new WeakMap());
|
|
157
|
+
__privateAdd(this, _v, (t2) => {
|
|
158
|
+
var _a3;
|
|
159
|
+
t2.key === __privateGet(this, _p) && null !== t2.newValue && (__privateSet(this, _h, __privateMethod(this, _x_instances, m_fn).call(this, t2.newValue)), (_a3 = __privateGet(this, _b)) == null ? void 0 : _a3.call(this));
|
|
160
|
+
});
|
|
161
|
+
const { storage: o2 = "local", serializer: i2 = { serialize: JSON.stringify, deserialize: JSON.parse }, syncTabs: a2 = true } = r2, s2 = "window" in r2 ? r2.window : g;
|
|
162
|
+
if (__privateSet(this, _h, e2), __privateSet(this, _p, t2), __privateSet(this, _u, i2), void 0 === s2) return;
|
|
163
|
+
const c2 = (function(t3, e3) {
|
|
164
|
+
switch (t3) {
|
|
165
|
+
case "local":
|
|
166
|
+
return e3.localStorage;
|
|
167
|
+
case "session":
|
|
168
|
+
return e3.sessionStorage;
|
|
169
|
+
}
|
|
170
|
+
})(o2, s2);
|
|
171
|
+
__privateSet(this, _g, c2);
|
|
172
|
+
const d2 = c2.getItem(t2);
|
|
173
|
+
null !== d2 ? __privateSet(this, _h, __privateMethod(this, _x_instances, m_fn).call(this, d2)) : __privateMethod(this, _x_instances, w_fn).call(this, e2), __privateSet(this, _e2, l((t3) => {
|
|
174
|
+
__privateSet(this, _b, t3);
|
|
175
|
+
const e3 = a2 && "local" === o2 ? n(s2, "storage", __privateGet(this, _v)) : null;
|
|
176
|
+
return () => {
|
|
177
|
+
e3 == null ? void 0 : e3(), __privateSet(this, _b, void 0);
|
|
178
|
+
};
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
get current() {
|
|
182
|
+
var _a3, _b3, _c2, _d;
|
|
183
|
+
(_a3 = __privateGet(this, _e2)) == null ? void 0 : _a3.call(this);
|
|
184
|
+
const t2 = (_b3 = __privateGet(this, _g)) == null ? void 0 : _b3.getItem(__privateGet(this, _p)), e2 = t2 ? __privateMethod(this, _x_instances, m_fn).call(this, t2) : __privateGet(this, _h);
|
|
185
|
+
return v(e2, e2, __privateGet(this, _f), (_c2 = __privateGet(this, _e2)) == null ? void 0 : _c2.bind(this), (_d = __privateGet(this, _b)) == null ? void 0 : _d.bind(this), __privateMethod(this, _x_instances, w_fn).bind(this));
|
|
186
|
+
}
|
|
187
|
+
set current(t2) {
|
|
188
|
+
var _a3;
|
|
189
|
+
__privateMethod(this, _x_instances, w_fn).call(this, t2), (_a3 = __privateGet(this, _b)) == null ? void 0 : _a3.call(this);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
_h = new WeakMap();
|
|
193
|
+
_p = new WeakMap();
|
|
194
|
+
_u = new WeakMap();
|
|
195
|
+
_g = new WeakMap();
|
|
196
|
+
_e2 = new WeakMap();
|
|
197
|
+
_b = new WeakMap();
|
|
198
|
+
_f = new WeakMap();
|
|
199
|
+
_v = new WeakMap();
|
|
200
|
+
_x_instances = new WeakSet();
|
|
201
|
+
m_fn = function(t2) {
|
|
202
|
+
try {
|
|
203
|
+
return __privateGet(this, _u).deserialize(t2);
|
|
204
|
+
} catch (e2) {
|
|
205
|
+
return void console.error(`Error when parsing "${t2}" from persisted store "${__privateGet(this, _p)}"`, e2);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
w_fn = function(t2) {
|
|
209
|
+
var _a3;
|
|
210
|
+
try {
|
|
211
|
+
null != t2 && ((_a3 = __privateGet(this, _g)) == null ? void 0 : _a3.setItem(__privateGet(this, _p), __privateGet(this, _u).serialize(t2)));
|
|
212
|
+
} catch (t3) {
|
|
213
|
+
console.error(`Error when writing value from persisted store "${__privateGet(this, _p)}" to ${__privateGet(this, _g)}`, t3);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
class y {
|
|
217
|
+
constructor(t2) {
|
|
218
|
+
__privateAdd(this, _x);
|
|
219
|
+
__privateAdd(this, _y, s.derived(() => b(__privateGet(this, _x).element)));
|
|
220
|
+
__privateAdd(this, _k, s.derived(() => {
|
|
221
|
+
var _a3;
|
|
222
|
+
return b((_a3 = __privateGet(this, _x)) == null ? void 0 : _a3.idle, 200);
|
|
223
|
+
}));
|
|
224
|
+
__privateAdd(this, _C, s.derived(() => b(__privateGet(this, _x).offset, { left: 0, right: 0, top: 0, bottom: 0 })));
|
|
225
|
+
__privateAdd(this, __, s.derived(() => __privateGet(this, _x).onScroll ?? m));
|
|
226
|
+
__privateAdd(this, _z, s.derived(() => __privateGet(this, _x).onStop ?? m));
|
|
227
|
+
__privateAdd(this, _L, s.derived(() => __privateGet(this, _x).eventListenerOptions ?? { capture: false, passive: true }));
|
|
228
|
+
__privateAdd(this, _S, s.derived(() => b(__privateGet(this, _x).behavior, "auto")));
|
|
229
|
+
__privateAdd(this, _j, s.derived(() => __privateGet(this, _x).onError ?? ((t2) => {
|
|
230
|
+
console.error(t2);
|
|
231
|
+
})));
|
|
232
|
+
__privateAdd(this, _E, s.state(0));
|
|
233
|
+
__privateAdd(this, _$, s.state(0));
|
|
234
|
+
__privateAdd(this, _O, s.derived(() => this.internalX));
|
|
235
|
+
__privateAdd(this, _M, s.derived(() => this.internalY));
|
|
236
|
+
__privateAdd(this, _D, s.state(false));
|
|
237
|
+
__privateAdd(this, _P, s.state(s.proxy({ left: true, right: false, top: true, bottom: false })));
|
|
238
|
+
__privateAdd(this, _W, s.state(s.proxy({ left: false, right: false, top: false, bottom: false })));
|
|
239
|
+
__privateAdd(this, _T, s.state(s.proxy({ x: 0, y: 0 })));
|
|
240
|
+
__publicField(this, "setArrivedState", () => {
|
|
241
|
+
var _a3, _b3, _c2;
|
|
242
|
+
if (!window || !this.element) return;
|
|
243
|
+
const t2 = ((_b3 = (_a3 = this.element) == null ? void 0 : _a3.document) == null ? void 0 : _b3.documentElement) || ((_c2 = this.element) == null ? void 0 : _c2.documentElement) || this.element, { display: e2, flexDirection: r2, direction: o2 } = getComputedStyle(t2), i2 = "rtl" === o2 ? -1 : 1, a2 = t2.scrollLeft;
|
|
244
|
+
a2 !== this.internalX && (this.directions.left = a2 < this.internalX, this.directions.right = a2 > this.internalX);
|
|
245
|
+
const s2 = a2 * i2 <= (this.offset.left || 0), n2 = a2 * i2 + t2.clientWidth >= t2.scrollWidth - (this.offset.right || 0) - 1;
|
|
246
|
+
"flex" === e2 && "row-reverse" === r2 ? (this.arrived.left = n2, this.arrived.right = s2) : (this.arrived.left = s2, this.arrived.right = n2), this.internalX = a2;
|
|
247
|
+
let l2 = t2.scrollTop;
|
|
248
|
+
this.element !== window.document || l2 || (l2 = window.document.body.scrollTop), l2 !== this.internalY && (this.directions.top = l2 < this.internalY, this.directions.bottom = l2 > this.internalY);
|
|
249
|
+
const c2 = l2 <= (this.offset.top || 0), d2 = l2 + t2.clientHeight >= t2.scrollHeight - (this.offset.bottom || 0) - 1;
|
|
250
|
+
"flex" === e2 && "column-reverse" === r2 ? (this.arrived.top = d2, this.arrived.bottom = c2) : (this.arrived.top = c2, this.arrived.bottom = d2);
|
|
251
|
+
const h2 = t2.scrollHeight - (this.offset.bottom || 0);
|
|
252
|
+
this.progress.y = l2 / (h2 - t2.clientHeight) * 100;
|
|
253
|
+
const p2 = t2.scrollWidth - (this.offset.left || 0);
|
|
254
|
+
this.progress.x = Math.abs(a2 / (p2 - t2.clientWidth) * 100), this.internalY = l2;
|
|
255
|
+
});
|
|
256
|
+
__privateAdd(this, _R, (t2) => {
|
|
257
|
+
window && (this.setArrivedState(), this.isScrolling = true, this.onScrollEndDebounced(t2), this.onScroll(t2));
|
|
258
|
+
});
|
|
259
|
+
__publicField(this, "onScrollEnd", (t2) => {
|
|
260
|
+
this.isScrolling && (this.isScrolling = false, this.directions.left = false, this.directions.right = false, this.directions.top = false, this.directions.bottom = false, this.onStop(t2));
|
|
261
|
+
});
|
|
262
|
+
__publicField(this, "onScrollEndDebounced", (function(t2, e2) {
|
|
263
|
+
let r2 = s.state(null);
|
|
264
|
+
const o2 = s.derived(() => b(e2, 250));
|
|
265
|
+
function i2(...e3) {
|
|
266
|
+
if (s.get(r2)) s.get(r2).timeout && clearTimeout(s.get(r2).timeout);
|
|
267
|
+
else {
|
|
268
|
+
let t3, e4;
|
|
269
|
+
const o3 = new Promise((r3, o4) => {
|
|
270
|
+
t3 = r3, e4 = o4;
|
|
271
|
+
});
|
|
272
|
+
s.set(r2, { timeout: null, runner: null, promise: o3, resolve: t3, reject: e4 }, true);
|
|
273
|
+
}
|
|
274
|
+
return s.get(r2).runner = async () => {
|
|
275
|
+
if (!s.get(r2)) return;
|
|
276
|
+
const o3 = s.get(r2);
|
|
277
|
+
s.set(r2, null);
|
|
278
|
+
try {
|
|
279
|
+
o3.resolve(await t2.apply(this, e3));
|
|
280
|
+
} catch (t3) {
|
|
281
|
+
o3.reject(t3);
|
|
282
|
+
}
|
|
283
|
+
}, s.get(r2).timeout = setTimeout(s.get(r2).runner, s.get(o2)), s.get(r2).promise;
|
|
284
|
+
}
|
|
285
|
+
return i2.cancel = async () => {
|
|
286
|
+
(s.get(r2) && null !== s.get(r2).timeout || (await new Promise((t3) => setTimeout(t3, 0)), s.get(r2) && null !== s.get(r2).timeout)) && (clearTimeout(s.get(r2).timeout), s.get(r2).reject("Cancelled"), s.set(r2, null));
|
|
287
|
+
}, i2.runScheduledNow = async () => {
|
|
288
|
+
var _a3, _b3;
|
|
289
|
+
(s.get(r2) && s.get(r2).timeout || (await new Promise((t3) => setTimeout(t3, 0)), s.get(r2) && s.get(r2).timeout)) && (clearTimeout(s.get(r2).timeout), s.get(r2).timeout = null, await ((_b3 = (_a3 = s.get(r2)).runner) == null ? void 0 : _b3.call(_a3)));
|
|
290
|
+
}, Object.defineProperty(i2, "pending", { enumerable: true, get: () => {
|
|
291
|
+
var _a3;
|
|
292
|
+
return !!((_a3 = s.get(r2)) == null ? void 0 : _a3.timeout);
|
|
293
|
+
} }), i2;
|
|
294
|
+
})(this.onScrollEnd, () => this.idle));
|
|
295
|
+
__privateSet(this, _x, t2), w(() => this.element, "scroll", __privateGet(this, _R), this.eventListenerOptions), w(() => this.element, "scrollend", (t3) => this.onScrollEnd(t3), this.eventListenerOptions), e(() => {
|
|
296
|
+
this.setArrivedState();
|
|
297
|
+
}), new f(() => this.setArrivedState());
|
|
298
|
+
}
|
|
299
|
+
get element() {
|
|
300
|
+
return s.get(__privateGet(this, _y));
|
|
301
|
+
}
|
|
302
|
+
set element(t2) {
|
|
303
|
+
s.set(__privateGet(this, _y), t2);
|
|
304
|
+
}
|
|
305
|
+
get idle() {
|
|
306
|
+
return s.get(__privateGet(this, _k));
|
|
307
|
+
}
|
|
308
|
+
set idle(t2) {
|
|
309
|
+
s.set(__privateGet(this, _k), t2);
|
|
310
|
+
}
|
|
311
|
+
get offset() {
|
|
312
|
+
return s.get(__privateGet(this, _C));
|
|
313
|
+
}
|
|
314
|
+
set offset(t2) {
|
|
315
|
+
s.set(__privateGet(this, _C), t2);
|
|
316
|
+
}
|
|
317
|
+
get onScroll() {
|
|
318
|
+
return s.get(__privateGet(this, __));
|
|
319
|
+
}
|
|
320
|
+
set onScroll(t2) {
|
|
321
|
+
s.set(__privateGet(this, __), t2);
|
|
322
|
+
}
|
|
323
|
+
get onStop() {
|
|
324
|
+
return s.get(__privateGet(this, _z));
|
|
325
|
+
}
|
|
326
|
+
set onStop(t2) {
|
|
327
|
+
s.set(__privateGet(this, _z), t2);
|
|
328
|
+
}
|
|
329
|
+
get eventListenerOptions() {
|
|
330
|
+
return s.get(__privateGet(this, _L));
|
|
331
|
+
}
|
|
332
|
+
set eventListenerOptions(t2) {
|
|
333
|
+
s.set(__privateGet(this, _L), t2);
|
|
334
|
+
}
|
|
335
|
+
get behavior() {
|
|
336
|
+
return s.get(__privateGet(this, _S));
|
|
337
|
+
}
|
|
338
|
+
set behavior(t2) {
|
|
339
|
+
s.set(__privateGet(this, _S), t2);
|
|
340
|
+
}
|
|
341
|
+
get onError() {
|
|
342
|
+
return s.get(__privateGet(this, _j));
|
|
343
|
+
}
|
|
344
|
+
set onError(t2) {
|
|
345
|
+
s.set(__privateGet(this, _j), t2);
|
|
346
|
+
}
|
|
347
|
+
get internalX() {
|
|
348
|
+
return s.get(__privateGet(this, _E));
|
|
349
|
+
}
|
|
350
|
+
set internalX(t2) {
|
|
351
|
+
s.set(__privateGet(this, _E), t2, true);
|
|
352
|
+
}
|
|
353
|
+
get internalY() {
|
|
354
|
+
return s.get(__privateGet(this, _$));
|
|
355
|
+
}
|
|
356
|
+
set internalY(t2) {
|
|
357
|
+
s.set(__privateGet(this, _$), t2, true);
|
|
358
|
+
}
|
|
359
|
+
get x() {
|
|
360
|
+
return s.get(__privateGet(this, _O));
|
|
361
|
+
}
|
|
362
|
+
set x(t2) {
|
|
363
|
+
this.scrollTo(t2, void 0);
|
|
364
|
+
}
|
|
365
|
+
get y() {
|
|
366
|
+
return s.get(__privateGet(this, _M));
|
|
367
|
+
}
|
|
368
|
+
set y(t2) {
|
|
369
|
+
this.scrollTo(void 0, t2);
|
|
370
|
+
}
|
|
371
|
+
get isScrolling() {
|
|
372
|
+
return s.get(__privateGet(this, _D));
|
|
373
|
+
}
|
|
374
|
+
set isScrolling(t2) {
|
|
375
|
+
s.set(__privateGet(this, _D), t2, true);
|
|
376
|
+
}
|
|
377
|
+
get arrived() {
|
|
378
|
+
return s.get(__privateGet(this, _P));
|
|
379
|
+
}
|
|
380
|
+
set arrived(t2) {
|
|
381
|
+
s.set(__privateGet(this, _P), t2, true);
|
|
382
|
+
}
|
|
383
|
+
get directions() {
|
|
384
|
+
return s.get(__privateGet(this, _W));
|
|
385
|
+
}
|
|
386
|
+
set directions(t2) {
|
|
387
|
+
s.set(__privateGet(this, _W), t2, true);
|
|
388
|
+
}
|
|
389
|
+
get progress() {
|
|
390
|
+
return s.get(__privateGet(this, _T));
|
|
391
|
+
}
|
|
392
|
+
set progress(t2) {
|
|
393
|
+
s.set(__privateGet(this, _T), t2, true);
|
|
394
|
+
}
|
|
395
|
+
scrollTo(t2, e2) {
|
|
396
|
+
var _a3, _b3, _c2, _d;
|
|
397
|
+
if (!window) return;
|
|
398
|
+
(_a3 = this.element instanceof Document ? window.document.body : this.element) == null ? void 0 : _a3.scrollTo({ top: e2 ?? this.y, left: t2 ?? this.x, behavior: this.behavior });
|
|
399
|
+
const r2 = ((_c2 = (_b3 = this.element) == null ? void 0 : _b3.document) == null ? void 0 : _c2.documentElement) || ((_d = this.element) == null ? void 0 : _d.documentElement) || this.element;
|
|
400
|
+
null != t2 && (this.internalX = r2.scrollLeft), null != e2 && (this.internalY = r2.scrollTop);
|
|
401
|
+
}
|
|
402
|
+
scrollToTop() {
|
|
403
|
+
this.scrollTo(void 0, 0);
|
|
404
|
+
}
|
|
405
|
+
scrollToBottom() {
|
|
406
|
+
var _a3, _b3, _c2;
|
|
407
|
+
if (!window) return;
|
|
408
|
+
const t2 = ((_b3 = (_a3 = this.element) == null ? void 0 : _a3.document) == null ? void 0 : _b3.documentElement) || ((_c2 = this.element) == null ? void 0 : _c2.documentElement) || this.element;
|
|
409
|
+
t2 && this.scrollTo(void 0, t2.scrollHeight);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
_x = new WeakMap();
|
|
413
|
+
_y = new WeakMap();
|
|
414
|
+
_k = new WeakMap();
|
|
415
|
+
_C = new WeakMap();
|
|
416
|
+
__ = new WeakMap();
|
|
417
|
+
_z = new WeakMap();
|
|
418
|
+
_L = new WeakMap();
|
|
419
|
+
_S = new WeakMap();
|
|
420
|
+
_j = new WeakMap();
|
|
421
|
+
_E = new WeakMap();
|
|
422
|
+
_$ = new WeakMap();
|
|
423
|
+
_O = new WeakMap();
|
|
424
|
+
_M = new WeakMap();
|
|
425
|
+
_D = new WeakMap();
|
|
426
|
+
_P = new WeakMap();
|
|
427
|
+
_W = new WeakMap();
|
|
428
|
+
_T = new WeakMap();
|
|
429
|
+
_R = new WeakMap();
|
|
430
|
+
const k = u("telemetry");
|
|
431
|
+
class C {
|
|
432
|
+
constructor() {
|
|
433
|
+
__publicField(this, "modules");
|
|
434
|
+
__privateAdd(this, _A, s.state(false));
|
|
435
|
+
__privateAdd(this, _I, s.state(false));
|
|
436
|
+
__publicField(this, "init", (t2) => {
|
|
437
|
+
this.modules = t2;
|
|
438
|
+
});
|
|
439
|
+
__publicField(this, "track", async (t2 = "info", e2, r2) => {
|
|
440
|
+
var _a3, _b3;
|
|
441
|
+
try {
|
|
442
|
+
await this.modules.pb.collection("logs").create({ project: this.modules.project.id, user: ((_b3 = (_a3 = this.modules.auth) == null ? void 0 : _a3.user) == null ? void 0 : _b3.id) || null, type: t2, message: e2, meta: {}, logs: h, data: r2 || null }), k[t2](e2, ...r2 ? [r2] : []);
|
|
443
|
+
} catch (o2) {
|
|
444
|
+
k[t2](e2, ...r2 ? [r2] : []);
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
get loading() {
|
|
449
|
+
return s.get(__privateGet(this, _A));
|
|
450
|
+
}
|
|
451
|
+
set loading(t2) {
|
|
452
|
+
s.set(__privateGet(this, _A), t2, true);
|
|
453
|
+
}
|
|
454
|
+
get ready() {
|
|
455
|
+
return s.get(__privateGet(this, _I));
|
|
456
|
+
}
|
|
457
|
+
set ready(t2) {
|
|
458
|
+
s.set(__privateGet(this, _I), t2, true);
|
|
459
|
+
}
|
|
460
|
+
get can() {
|
|
461
|
+
return this.modules.can;
|
|
462
|
+
}
|
|
463
|
+
on(t2, e2) {
|
|
464
|
+
return this.modules.bus.on(t2, e2);
|
|
465
|
+
}
|
|
466
|
+
emit(t2, ...e2) {
|
|
467
|
+
this.modules.bus.emit(t2, ...e2);
|
|
468
|
+
}
|
|
469
|
+
storage(t2, e2, r2) {
|
|
470
|
+
const o2 = new x(e2, r2);
|
|
471
|
+
Object.defineProperty(this, t2, { get: () => o2.current, set: (t3) => {
|
|
472
|
+
o2.current = t3;
|
|
473
|
+
}, enumerable: true, configurable: true });
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
_A = new WeakMap();
|
|
477
|
+
_I = new WeakMap();
|
|
478
|
+
class _ extends C {
|
|
479
|
+
constructor() {
|
|
480
|
+
super(...arguments);
|
|
481
|
+
__privateAdd(this, _N, s.derived(() => !!this.modules.auth.user));
|
|
482
|
+
__privateAdd(this, _H, s.derived(() => !!this.modules.auth.user));
|
|
483
|
+
__privateAdd(this, _F, s.derived(() => this.modules.status.ready && null !== this.modules.auth.user && null !== this.modules.project.id));
|
|
484
|
+
__privateAdd(this, _K, s.derived(() => null !== this.modules.auth.user && null !== this.modules.project.adapter && null !== this.modules.project.id && false === this.modules.content.ready));
|
|
485
|
+
__privateAdd(this, _U, s.derived(() => null !== this.modules.auth.user && null !== this.modules.project.adapter && null !== this.modules.project.id && this.modules.win.opened));
|
|
486
|
+
}
|
|
487
|
+
get authenticate() {
|
|
488
|
+
return s.get(__privateGet(this, _N));
|
|
489
|
+
}
|
|
490
|
+
set authenticate(t2) {
|
|
491
|
+
s.set(__privateGet(this, _N), t2);
|
|
492
|
+
}
|
|
493
|
+
get logout() {
|
|
494
|
+
return s.get(__privateGet(this, _H));
|
|
495
|
+
}
|
|
496
|
+
set logout(t2) {
|
|
497
|
+
s.set(__privateGet(this, _H), t2);
|
|
498
|
+
}
|
|
499
|
+
get fetchProject() {
|
|
500
|
+
return s.get(__privateGet(this, _F));
|
|
501
|
+
}
|
|
502
|
+
set fetchProject(t2) {
|
|
503
|
+
s.set(__privateGet(this, _F), t2);
|
|
504
|
+
}
|
|
505
|
+
get fetchContent() {
|
|
506
|
+
return s.get(__privateGet(this, _K));
|
|
507
|
+
}
|
|
508
|
+
set fetchContent(t2) {
|
|
509
|
+
s.set(__privateGet(this, _K), t2);
|
|
510
|
+
}
|
|
511
|
+
get edit() {
|
|
512
|
+
return s.get(__privateGet(this, _U));
|
|
513
|
+
}
|
|
514
|
+
set edit(t2) {
|
|
515
|
+
s.set(__privateGet(this, _U), t2);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
_N = new WeakMap();
|
|
519
|
+
_H = new WeakMap();
|
|
520
|
+
_F = new WeakMap();
|
|
521
|
+
_K = new WeakMap();
|
|
522
|
+
_U = new WeakMap();
|
|
523
|
+
const z = "undefined" != typeof window && window.matchMedia("(pointer: coarse)").matches;
|
|
524
|
+
function L() {
|
|
525
|
+
try {
|
|
526
|
+
if (navigator.vibrate) return void navigator.vibrate(50);
|
|
527
|
+
if (!z) return;
|
|
528
|
+
const t2 = document.createElement("label");
|
|
529
|
+
t2.ariaHidden = "true", t2.style.display = "none";
|
|
530
|
+
const e2 = document.createElement("input");
|
|
531
|
+
e2.type = "checkbox", e2.setAttribute("switch", ""), t2.appendChild(e2), document.head.appendChild(t2), t2.click(), document.head.removeChild(t2);
|
|
532
|
+
} catch {
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
L.confirm = () => {
|
|
536
|
+
navigator.vibrate ? navigator.vibrate([50, 70, 50]) : (L(), setTimeout(() => L(), 120));
|
|
537
|
+
}, L.error = () => {
|
|
538
|
+
navigator.vibrate ? navigator.vibrate([50, 70, 50, 70, 50]) : (L(), setTimeout(() => L(), 120), setTimeout(() => L(), 240));
|
|
539
|
+
};
|
|
540
|
+
const S = L;
|
|
541
|
+
function j(t2) {
|
|
542
|
+
return t2.then((t3) => [void 0, t3]).catch((t3) => [t3]);
|
|
543
|
+
}
|
|
544
|
+
const E = (t2) => JSON.parse(JSON.stringify(t2));
|
|
545
|
+
const $ = u("auth");
|
|
546
|
+
class O extends C {
|
|
547
|
+
constructor() {
|
|
548
|
+
super(...arguments);
|
|
549
|
+
__privateAdd(this, _X, s.state(null));
|
|
550
|
+
__privateAdd(this, _Y, s.state(s.proxy({ type: "info", text: "", visible: false })));
|
|
551
|
+
}
|
|
552
|
+
get user() {
|
|
553
|
+
return s.get(__privateGet(this, _X));
|
|
554
|
+
}
|
|
555
|
+
set user(t2) {
|
|
556
|
+
s.set(__privateGet(this, _X), t2, true);
|
|
557
|
+
}
|
|
558
|
+
get msg() {
|
|
559
|
+
return s.get(__privateGet(this, _Y));
|
|
560
|
+
}
|
|
561
|
+
set msg(t2) {
|
|
562
|
+
s.set(__privateGet(this, _Y), t2, true);
|
|
563
|
+
}
|
|
564
|
+
async start() {
|
|
565
|
+
this.on("status:ready", () => {
|
|
566
|
+
this.loading = true, this.user = this.modules.pb.authStore.record, this.modules.pb.authStore.onChange(async () => {
|
|
567
|
+
this.user = this.modules.pb.authStore.record, this.check();
|
|
568
|
+
}), this.on("auth:msg", (t2) => this.msg = t2), this.check();
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
check() {
|
|
572
|
+
this.user ? (this.loading = false, this.ready = true, this.emit("auth:login", { user: this.user })) : (this.loading = false, this.ready = true, this.emit("auth:logout"));
|
|
573
|
+
}
|
|
574
|
+
async register(t2) {
|
|
575
|
+
this.loading = true;
|
|
576
|
+
const { firstName: e2, lastName: r2, email: o2, password: i2 } = t2, [a2, s2] = await j(this.modules.pb.collection("users").create(t2));
|
|
577
|
+
return a2 ? (S.error(), this.track("error", "Registration failed", { error: (a2 == null ? void 0 : a2.message) || a2, ...t2 }), this.msg = { type: "error", text: (a2 == null ? void 0 : a2.message) || "Registration failed", visible: true }, this.loading = false, this.emit("auth:error", { error: this.msg.text }), { success: false, error: (a2 == null ? void 0 : a2.message) || a2 }) : (this.track("ok", "User registered"), this.loading = false, { success: true, user: s2 });
|
|
578
|
+
}
|
|
579
|
+
async login(t2, e2) {
|
|
580
|
+
this.loading = true, this.msg = { type: "info", text: "", visible: false };
|
|
581
|
+
const [r2, o2] = await j(this.modules.pb.collection("users").authWithPassword(t2, e2));
|
|
582
|
+
return r2 ? (S.error(), this.track("error", "Login failed", { error: (r2 == null ? void 0 : r2.message) || r2, email: t2 }), this.msg = { type: "error", text: (r2 == null ? void 0 : r2.message) || "Login failed", visible: true }, this.loading = false, this.emit("auth:error", { error: this.msg.text }), { success: false, error: (r2 == null ? void 0 : r2.message) || r2 }) : (this.track("ok", "User logged in"), this.loading = false, { success: true });
|
|
583
|
+
}
|
|
584
|
+
async logout() {
|
|
585
|
+
this.user && ($.info("Logging out user:", this.user.id), this.modules.pb.authStore.clear(), this.user = null);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
_X = new WeakMap();
|
|
589
|
+
_Y = new WeakMap();
|
|
590
|
+
const M = u("bus");
|
|
591
|
+
class D extends C {
|
|
592
|
+
constructor() {
|
|
593
|
+
super(...arguments);
|
|
594
|
+
__publicField(this, "handlers", /* @__PURE__ */ new Map());
|
|
595
|
+
}
|
|
596
|
+
on(t2, e2) {
|
|
597
|
+
return this.handlers.has(t2) || this.handlers.set(t2, /* @__PURE__ */ new Set()), this.handlers.get(t2).add(e2), () => {
|
|
598
|
+
var _a3, _b3;
|
|
599
|
+
(_a3 = this.handlers.get(t2)) == null ? void 0 : _a3.delete(e2), 0 === ((_b3 = this.handlers.get(t2)) == null ? void 0 : _b3.size) && this.handlers.delete(t2);
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
emit(t2, ...e2) {
|
|
603
|
+
const r2 = this.handlers.get(t2);
|
|
604
|
+
if (!r2 || 0 === r2.size) return void (t2.startsWith("hover:") || t2.startsWith("keys:") || M.warn(`No listeners for "${t2}"`));
|
|
605
|
+
const o2 = e2[0];
|
|
606
|
+
["keys:pressed"].includes(t2) || M.info(`${t2}`, o2), r2.forEach((e3) => {
|
|
607
|
+
try {
|
|
608
|
+
e3(o2);
|
|
609
|
+
} catch (e4) {
|
|
610
|
+
M.error(`Error in handler for "${t2}":`, e4);
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
has(t2) {
|
|
615
|
+
var _a3;
|
|
616
|
+
return (((_a3 = this.handlers.get(t2)) == null ? void 0 : _a3.size) ?? 0) > 0;
|
|
617
|
+
}
|
|
618
|
+
debug() {
|
|
619
|
+
M.info("Registered events:", Array.from(this.handlers.entries()).map(([t2, e2]) => `${t2}: ${e2.size}`));
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
const P = u("project");
|
|
623
|
+
class W extends C {
|
|
624
|
+
constructor() {
|
|
625
|
+
super();
|
|
626
|
+
__privateAdd(this, _B, s.state(false));
|
|
627
|
+
__privateAdd(this, _Z, s.state(void 0));
|
|
628
|
+
__privateAdd(this, _h2, s.state(null));
|
|
629
|
+
__privateAdd(this, _q, s.state(null));
|
|
630
|
+
this.adapter = window.__OKNO_ADAPTER__ || false, this.id = window.__OKNO_PROJECT__;
|
|
631
|
+
}
|
|
632
|
+
get adapter() {
|
|
633
|
+
return s.get(__privateGet(this, _B));
|
|
634
|
+
}
|
|
635
|
+
set adapter(t2) {
|
|
636
|
+
s.set(__privateGet(this, _B), t2, true);
|
|
637
|
+
}
|
|
638
|
+
get id() {
|
|
639
|
+
return s.get(__privateGet(this, _Z));
|
|
640
|
+
}
|
|
641
|
+
set id(t2) {
|
|
642
|
+
s.set(__privateGet(this, _Z), t2, true);
|
|
643
|
+
}
|
|
644
|
+
get current() {
|
|
645
|
+
return s.get(__privateGet(this, _h2));
|
|
646
|
+
}
|
|
647
|
+
set current(t2) {
|
|
648
|
+
s.set(__privateGet(this, _h2), t2, true);
|
|
649
|
+
}
|
|
650
|
+
get error() {
|
|
651
|
+
return s.get(__privateGet(this, _q));
|
|
652
|
+
}
|
|
653
|
+
set error(t2) {
|
|
654
|
+
s.set(__privateGet(this, _q), t2, true);
|
|
655
|
+
}
|
|
656
|
+
start() {
|
|
657
|
+
this.id ? this.on("auth:login", () => {
|
|
658
|
+
this.can.fetchProject && this.fetch();
|
|
659
|
+
}) : P.warn("Project ID not provided, skipping fetch.");
|
|
660
|
+
}
|
|
661
|
+
async fetch() {
|
|
662
|
+
this.loading = true;
|
|
663
|
+
const [t2, e2] = await j(this.modules.pb.collection("projects").getOne(this.id)), r2 = e2;
|
|
664
|
+
return t2 || !r2 ? (this.emit("project:error", { error: this.error }), this.loading = false, null) : (P.ok(`Project fetched: ${r2.name}, (${r2.id})`), this.loading = false, this.ready = true, this.current = r2, this.emit("project:ready", { project: r2 }), r2);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
_B = new WeakMap();
|
|
668
|
+
_Z = new WeakMap();
|
|
669
|
+
_h2 = new WeakMap();
|
|
670
|
+
_q = new WeakMap();
|
|
671
|
+
class T extends C {
|
|
672
|
+
constructor() {
|
|
673
|
+
super(...arguments);
|
|
674
|
+
__privateAdd(this, _J, s.state(s.proxy(/* @__PURE__ */ new Map())));
|
|
675
|
+
}
|
|
676
|
+
get listeners() {
|
|
677
|
+
return s.get(__privateGet(this, _J));
|
|
678
|
+
}
|
|
679
|
+
set listeners(t2) {
|
|
680
|
+
s.set(__privateGet(this, _J), t2, true);
|
|
681
|
+
}
|
|
682
|
+
add(t2, e2, r2) {
|
|
683
|
+
const { target: o2 = document, capture: i2 = false } = r2 || {};
|
|
684
|
+
this.listeners.has(t2) || this.listeners.set(t2, []), this.listeners.get(t2).push({ handler: e2, target: o2 }), o2.addEventListener(t2, e2, i2);
|
|
685
|
+
}
|
|
686
|
+
remove(t2, e2, r2) {
|
|
687
|
+
const { target: o2 = document, capture: i2 = false } = r2 || {};
|
|
688
|
+
if (!this.listeners.has(t2)) return;
|
|
689
|
+
const a2 = this.listeners.get(t2), s2 = a2.findIndex((t3) => t3.handler === e2 && t3.target === o2);
|
|
690
|
+
-1 !== s2 && (a2.splice(s2, 1), o2.removeEventListener(t2, e2, i2)), 0 === a2.length && this.listeners.delete(t2);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
_J = new WeakMap();
|
|
694
|
+
class R extends C {
|
|
695
|
+
constructor() {
|
|
696
|
+
super(...arguments);
|
|
697
|
+
__publicField(this, "handlers", /* @__PURE__ */ new Map());
|
|
698
|
+
__privateAdd(this, _V, s.state(s.proxy({ key: null, code: null, ctrlKey: false, metaKey: false, altKey: false })));
|
|
699
|
+
__publicField(this, "handleKeydown", (t2) => {
|
|
700
|
+
if (this.hasFocus()) return;
|
|
701
|
+
const { key: e2, code: r2, ctrlKey: o2, metaKey: i2, altKey: a2 } = t2;
|
|
702
|
+
this.active = { key: e2, code: r2, ctrlKey: o2, metaKey: i2, altKey: a2 };
|
|
703
|
+
const s2 = this.handlers.get(e2);
|
|
704
|
+
s2 && s2.forEach((e3) => e3(t2));
|
|
705
|
+
});
|
|
706
|
+
__publicField(this, "handleKeyup", (t2) => {
|
|
707
|
+
this.reset();
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
get active() {
|
|
711
|
+
return s.get(__privateGet(this, _V));
|
|
712
|
+
}
|
|
713
|
+
set active(t2) {
|
|
714
|
+
s.set(__privateGet(this, _V), t2, true);
|
|
715
|
+
}
|
|
716
|
+
start() {
|
|
717
|
+
this.modules.events.add("keydown", (t2) => this.handleKeydown(t2)), this.modules.events.add("keyup", (t2) => this.handleKeyup(t2));
|
|
718
|
+
}
|
|
719
|
+
bind(t2, e2) {
|
|
720
|
+
return this.handlers.has(t2) || this.handlers.set(t2, /* @__PURE__ */ new Set()), this.handlers.get(t2).add(e2), () => {
|
|
721
|
+
var _a3;
|
|
722
|
+
(_a3 = this.handlers.get(t2)) == null ? void 0 : _a3.delete(e2);
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
hasFocus() {
|
|
726
|
+
var _a3;
|
|
727
|
+
let t2 = document.activeElement;
|
|
728
|
+
if (!t2) return false;
|
|
729
|
+
for (; (_a3 = t2 == null ? void 0 : t2.shadowRoot) == null ? void 0 : _a3.activeElement; ) t2 = t2.shadowRoot.activeElement;
|
|
730
|
+
return "INPUT" === t2.tagName || "TEXTAREA" === t2.tagName || "true" === t2.contentEditable;
|
|
731
|
+
}
|
|
732
|
+
reset() {
|
|
733
|
+
this.active.key = null, this.active.code = null, this.active.ctrlKey = false, this.active.metaKey = false, this.active.altKey = false;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
_V = new WeakMap();
|
|
737
|
+
class A extends C {
|
|
738
|
+
constructor(t2) {
|
|
739
|
+
super();
|
|
740
|
+
__privateAdd(this, _G, s.state(null));
|
|
741
|
+
__privateAdd(this, _Q, s.state(null));
|
|
742
|
+
__privateAdd(this, _tt, s.state(null));
|
|
743
|
+
__privateAdd(this, _et, s.state("autumn"));
|
|
744
|
+
__privateAdd(this, _rt, s.state(true));
|
|
745
|
+
__privateAdd(this, _ot, s.state(s.proxy({ x: 0, y: 0 })));
|
|
746
|
+
__privateAdd(this, _it, s.derived(() => {
|
|
747
|
+
const t2 = this.dragging.active ? this.dragging.current : this.position.current;
|
|
748
|
+
return this.getClosestExit(t2);
|
|
749
|
+
}));
|
|
750
|
+
__privateAdd(this, _at, s.derived(() => {
|
|
751
|
+
if (!this.opened) return false;
|
|
752
|
+
if (!this.dragging.active) return false;
|
|
753
|
+
const { x: t2, y: e2 } = this.dragging.current, { w: r2, h: o2 } = this.dimensions;
|
|
754
|
+
return t2 < -window.innerWidth + 0.8 * r2 ? "left" : t2 > 0.4 * r2 ? "right" : e2 > 0.6 * o2 && "bottom";
|
|
755
|
+
}));
|
|
756
|
+
__privateAdd(this, _st, s.derived(() => {
|
|
757
|
+
if (!this.dragging.active) return false;
|
|
758
|
+
const { y: t2 } = this.dragging.current, { h: e2 } = this.dimensions;
|
|
759
|
+
return t2 < e2 - window.innerHeight && "top";
|
|
760
|
+
}));
|
|
761
|
+
__privateAdd(this, _nt, s.state(s.proxy({ active: false, start: { x: 0, y: 0 }, current: { x: 0, y: 0 } })));
|
|
762
|
+
__publicField(this, "position", new d({ x: 0, y: 0 }, { stiffness: 0.15, damping: 0.8 }));
|
|
763
|
+
__publicField(this, "contentScrollState", new y({ element: () => {
|
|
764
|
+
} }));
|
|
765
|
+
this.wrapper = t2, this.storage("opened", "okno-win-opened", false), this.storage("storedPosition", "okno-win-position", { x: 0, y: 0 }), this.storage("exitedFrom", "okno-win-exited", "right"), this.storage("dimensions", "okno-win-dimensions", { w: 600, h: 700 });
|
|
766
|
+
}
|
|
767
|
+
get wrapper() {
|
|
768
|
+
return s.get(__privateGet(this, _G));
|
|
769
|
+
}
|
|
770
|
+
set wrapper(t2) {
|
|
771
|
+
s.set(__privateGet(this, _G), t2, true);
|
|
772
|
+
}
|
|
773
|
+
get winEl() {
|
|
774
|
+
return s.get(__privateGet(this, _Q));
|
|
775
|
+
}
|
|
776
|
+
set winEl(t2) {
|
|
777
|
+
s.set(__privateGet(this, _Q), t2, true);
|
|
778
|
+
}
|
|
779
|
+
get contentEl() {
|
|
780
|
+
return s.get(__privateGet(this, _tt));
|
|
781
|
+
}
|
|
782
|
+
set contentEl(t2) {
|
|
783
|
+
s.set(__privateGet(this, _tt), t2, true);
|
|
784
|
+
}
|
|
785
|
+
get theme() {
|
|
786
|
+
return s.get(__privateGet(this, _et));
|
|
787
|
+
}
|
|
788
|
+
set theme(t2) {
|
|
789
|
+
s.set(__privateGet(this, _et), t2, true);
|
|
790
|
+
}
|
|
791
|
+
get centered() {
|
|
792
|
+
return s.get(__privateGet(this, _rt));
|
|
793
|
+
}
|
|
794
|
+
set centered(t2) {
|
|
795
|
+
s.set(__privateGet(this, _rt), t2, true);
|
|
796
|
+
}
|
|
797
|
+
get mouse() {
|
|
798
|
+
return s.get(__privateGet(this, _ot));
|
|
799
|
+
}
|
|
800
|
+
set mouse(t2) {
|
|
801
|
+
s.set(__privateGet(this, _ot), t2, true);
|
|
802
|
+
}
|
|
803
|
+
get side() {
|
|
804
|
+
return s.get(__privateGet(this, _it));
|
|
805
|
+
}
|
|
806
|
+
set side(t2) {
|
|
807
|
+
s.set(__privateGet(this, _it), t2);
|
|
808
|
+
}
|
|
809
|
+
get willClose() {
|
|
810
|
+
return s.get(__privateGet(this, _at));
|
|
811
|
+
}
|
|
812
|
+
set willClose(t2) {
|
|
813
|
+
s.set(__privateGet(this, _at), t2);
|
|
814
|
+
}
|
|
815
|
+
get isOutOfBounds() {
|
|
816
|
+
return s.get(__privateGet(this, _st));
|
|
817
|
+
}
|
|
818
|
+
set isOutOfBounds(t2) {
|
|
819
|
+
s.set(__privateGet(this, _st), t2);
|
|
820
|
+
}
|
|
821
|
+
get dragging() {
|
|
822
|
+
return s.get(__privateGet(this, _nt));
|
|
823
|
+
}
|
|
824
|
+
set dragging(t2) {
|
|
825
|
+
s.set(__privateGet(this, _nt), t2, true);
|
|
826
|
+
}
|
|
827
|
+
start() {
|
|
828
|
+
const t2 = this.opened ? this.storedPosition : this.getOffscreenPosition(this.exitedFrom, this.storedPosition);
|
|
829
|
+
this.position.set(t2, { instant: true }), this.dragging.current = { ...t2 }, this.modules.keys.bind("e", () => {
|
|
830
|
+
this.dragging.active || this.modules.keys.hasFocus() || this[this.opened ? "close" : "open"]();
|
|
831
|
+
}), this.ensureInBounds(), this.modules.events.add("mousemove", (t3) => this.handleMouseMove(t3)), this.modules.events.add("pointerup", () => this.handlePointerUp()), this.modules.events.add("mouseout", () => this.handleMouseOut(), { target: document.documentElement }), this.modules.events.add("resize", () => this.ensureInBounds(), { target: window }), this.opened && this.modules.dom.addClass("okno-edit");
|
|
832
|
+
}
|
|
833
|
+
clampX(t2) {
|
|
834
|
+
const { w: e2 } = this.dimensions, r2 = -window.innerWidth + e2 + 16;
|
|
835
|
+
return Math.max(r2, Math.min(-16, t2));
|
|
836
|
+
}
|
|
837
|
+
clampY(t2) {
|
|
838
|
+
const { h: e2 } = this.dimensions, r2 = -window.innerHeight + e2 + 16;
|
|
839
|
+
return Math.max(r2, Math.min(-16, t2));
|
|
840
|
+
}
|
|
841
|
+
clampPosition(t2) {
|
|
842
|
+
return { x: this.clampX(t2.x), y: this.clampY(t2.y) };
|
|
843
|
+
}
|
|
844
|
+
ensureInBounds() {
|
|
845
|
+
if (!this.opened) return;
|
|
846
|
+
const t2 = this.clampPosition(this.position.current);
|
|
847
|
+
t2.x === this.position.current.x && t2.y === this.position.current.y || (this.position.set(t2), this.storedPosition = { ...t2 });
|
|
848
|
+
}
|
|
849
|
+
open() {
|
|
850
|
+
S(), this.animateIn(), this.can.edit && this.modules.dom.addClass("okno-edit");
|
|
851
|
+
}
|
|
852
|
+
close() {
|
|
853
|
+
this.modules.dom.removeClass("okno-edit"), this.animateOut();
|
|
854
|
+
}
|
|
855
|
+
toggle() {
|
|
856
|
+
this[this.opened ? "close" : "open"]();
|
|
857
|
+
}
|
|
858
|
+
getOffscreenPosition(t2, e2) {
|
|
859
|
+
const { w: r2, h: o2 } = this.dimensions;
|
|
860
|
+
return "left" === t2 ? { x: -window.innerWidth - 16, y: e2.y } : "right" === t2 ? { x: r2 + 16, y: e2.y } : "bottom" === t2 ? { x: e2.x, y: o2 + 16 } : "top" === t2 ? { x: e2.x, y: -window.innerHeight - 16 } : e2;
|
|
861
|
+
}
|
|
862
|
+
getOnscreenPosition(t2, e2) {
|
|
863
|
+
const { w: r2, h: o2 } = this.dimensions;
|
|
864
|
+
return "left" === t2 ? { x: -window.innerWidth + r2 + 16, y: e2.y } : "right" === t2 ? { x: -16, y: e2.y } : "bottom" === t2 ? { x: e2.x, y: -16 } : "top" === t2 ? { x: e2.x, y: -window.innerHeight + o2 + 16 } : e2;
|
|
865
|
+
}
|
|
866
|
+
getClosestExit(t2 = this.position.current) {
|
|
867
|
+
const { w: e2, h: r2 } = this.dimensions, o2 = Math.abs(t2.x + window.innerWidth), i2 = Math.abs(t2.x - e2), a2 = Math.abs(t2.y - r2);
|
|
868
|
+
return a2 <= o2 && a2 <= i2 ? "bottom" : o2 <= i2 ? "left" : "right";
|
|
869
|
+
}
|
|
870
|
+
animateIn() {
|
|
871
|
+
this.opened = true;
|
|
872
|
+
const t2 = this.getOnscreenPosition(this.exitedFrom, this.position.current), e2 = this.clampPosition(t2);
|
|
873
|
+
this.dragging.current = { ...e2 }, this.storedPosition = { ...e2 }, this.position.set(e2);
|
|
874
|
+
}
|
|
875
|
+
animateOut(t2 = this.getClosestExit()) {
|
|
876
|
+
this.exitedFrom = t2, this.position.set(this.getOffscreenPosition(t2, this.position.current)), this.opened = false;
|
|
877
|
+
}
|
|
878
|
+
handleMouseMove(t2) {
|
|
879
|
+
if (this.mouse = { x: t2.clientX, y: t2.clientY }, !this.dragging.active) return;
|
|
880
|
+
const e2 = t2.clientX - this.dragging.start.x, r2 = t2.clientY - this.dragging.start.y;
|
|
881
|
+
this.dragging.current.x = this.storedPosition.x + e2, this.dragging.current.y = this.storedPosition.y + r2;
|
|
882
|
+
}
|
|
883
|
+
handleMouseOut() {
|
|
884
|
+
this.dragging.active && this.dragEnd();
|
|
885
|
+
}
|
|
886
|
+
handlePointerUp() {
|
|
887
|
+
this.dragging.active && this.dragEnd();
|
|
888
|
+
}
|
|
889
|
+
dragStart(t2) {
|
|
890
|
+
t2.target.setPointerCapture(t2.pointerId), this.dragging.active = true, this.dragging.start.x = this.mouse.x, this.dragging.start.y = this.mouse.y, this.dragging.current.x = this.position.current.x, this.dragging.current.y = this.position.current.y;
|
|
891
|
+
}
|
|
892
|
+
dragEnd() {
|
|
893
|
+
const t2 = this.willClose, e2 = { ...this.dragging.current };
|
|
894
|
+
if (this.dragging.active = false, this.position.set(e2, { instant: true }), t2) {
|
|
895
|
+
const t3 = this.getClosestExit(e2);
|
|
896
|
+
this.exitedFrom = t3, this.position.set(this.getOffscreenPosition(t3, e2)), this.opened = false;
|
|
897
|
+
} else {
|
|
898
|
+
const t3 = this.clampPosition(e2);
|
|
899
|
+
this.position.set(t3), this.storedPosition = { ...t3 };
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
_G = new WeakMap();
|
|
904
|
+
_Q = new WeakMap();
|
|
905
|
+
_tt = new WeakMap();
|
|
906
|
+
_et = new WeakMap();
|
|
907
|
+
_rt = new WeakMap();
|
|
908
|
+
_ot = new WeakMap();
|
|
909
|
+
_it = new WeakMap();
|
|
910
|
+
_at = new WeakMap();
|
|
911
|
+
_st = new WeakMap();
|
|
912
|
+
_nt = new WeakMap();
|
|
913
|
+
const I = u("status");
|
|
914
|
+
class N extends C {
|
|
915
|
+
constructor() {
|
|
916
|
+
super(...arguments);
|
|
917
|
+
__privateAdd(this, _q2, s.state(null));
|
|
918
|
+
__privateAdd(this, _lt, s.state(false));
|
|
919
|
+
__privateAdd(this, _ct, s.state(""));
|
|
920
|
+
__privateAdd(this, _dt, s.state(""));
|
|
921
|
+
}
|
|
922
|
+
get error() {
|
|
923
|
+
return s.get(__privateGet(this, _q2));
|
|
924
|
+
}
|
|
925
|
+
set error(t2) {
|
|
926
|
+
s.set(__privateGet(this, _q2), t2, true);
|
|
927
|
+
}
|
|
928
|
+
get maintenance() {
|
|
929
|
+
return s.get(__privateGet(this, _lt));
|
|
930
|
+
}
|
|
931
|
+
set maintenance(t2) {
|
|
932
|
+
s.set(__privateGet(this, _lt), t2, true);
|
|
933
|
+
}
|
|
934
|
+
get title() {
|
|
935
|
+
return s.get(__privateGet(this, _ct));
|
|
936
|
+
}
|
|
937
|
+
set title(t2) {
|
|
938
|
+
s.set(__privateGet(this, _ct), t2, true);
|
|
939
|
+
}
|
|
940
|
+
get message() {
|
|
941
|
+
return s.get(__privateGet(this, _dt));
|
|
942
|
+
}
|
|
943
|
+
set message(t2) {
|
|
944
|
+
s.set(__privateGet(this, _dt), t2, true);
|
|
945
|
+
}
|
|
946
|
+
start() {
|
|
947
|
+
this.fetch();
|
|
948
|
+
}
|
|
949
|
+
async fetch() {
|
|
950
|
+
this.loading = true;
|
|
951
|
+
const [t2, e2] = await j(this.modules.pb.collection("status").getFullList(1, {}));
|
|
952
|
+
if (t2) return this.emit("status:error", { error: this.error }), this.loading = false, null;
|
|
953
|
+
const r2 = e2[0];
|
|
954
|
+
if (this.maintenance = (r2 == null ? void 0 : r2.maintenance) || false, this.title = (r2 == null ? void 0 : r2.title) || "", this.message = (r2 == null ? void 0 : r2.message) || "", this.loading = false, this.ready = true, this.maintenance) return I.warn("Status: maintenance:", this.title, this.message), void this.emit("status:maintenance", { title: this.title, message: this.message });
|
|
955
|
+
I.ok("Status: ready"), this.emit("status:ready", { data: e2 });
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
_q2 = new WeakMap();
|
|
959
|
+
_lt = new WeakMap();
|
|
960
|
+
_ct = new WeakMap();
|
|
961
|
+
_dt = new WeakMap();
|
|
962
|
+
class H extends C {
|
|
963
|
+
constructor() {
|
|
964
|
+
super(...arguments);
|
|
965
|
+
__publicField(this, "scroll", { disable: (t2 = {}) => {
|
|
966
|
+
this.addClass(t2.touchOnly ? "fubi-scroll-touch-disabled" : "fubi-scroll-disabled");
|
|
967
|
+
}, enable: () => {
|
|
968
|
+
this.removeClass("fubi-scroll-disabled"), this.removeClass("fubi-scroll-touch-disabled");
|
|
969
|
+
} });
|
|
970
|
+
}
|
|
971
|
+
addClass(t2) {
|
|
972
|
+
document.documentElement.classList.add(t2);
|
|
973
|
+
}
|
|
974
|
+
removeClass(t2) {
|
|
975
|
+
document.documentElement.classList.remove(t2);
|
|
976
|
+
}
|
|
977
|
+
toggleClass(t2) {
|
|
978
|
+
document.documentElement.classList.toggle(t2);
|
|
979
|
+
}
|
|
980
|
+
scrollToElement(t2) {
|
|
981
|
+
t2.scrollIntoView({ behavior: "smooth", block: "center", inline: "center" });
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
const F = u("content");
|
|
985
|
+
class K extends C {
|
|
986
|
+
constructor() {
|
|
987
|
+
super(...arguments);
|
|
988
|
+
__privateAdd(this, _ht, s.state(s.proxy({})));
|
|
989
|
+
__privateAdd(this, _pt, s.state(s.proxy([])));
|
|
990
|
+
__privateAdd(this, _ut, s.state(s.proxy([])));
|
|
991
|
+
__privateAdd(this, _gt, s.state(s.proxy({})));
|
|
992
|
+
__privateAdd(this, _bt, s.state(s.proxy({})));
|
|
993
|
+
__privateAdd(this, _ft, s.derived(() => Object.entries(this.schema).filter(([t2, e2]) => "page" === e2.type).map(([t2]) => ({ name: t2 }))));
|
|
994
|
+
__privateAdd(this, _mt, s.derived(() => Object.entries(this.schema).filter(([t2, e2]) => "global" === e2.type).map(([t2]) => ({ name: t2 }))));
|
|
995
|
+
__privateAdd(this, _wt, s.derived(() => Object.entries(this.schema).filter(([t2, e2]) => "collection" === e2.type).map(([t2]) => ({ name: t2 }))));
|
|
996
|
+
__privateAdd(this, _vt, s.derived(() => {
|
|
997
|
+
var _a3;
|
|
998
|
+
return (_a3 = this.modules.sidebar) == null ? void 0 : _a3.active;
|
|
999
|
+
}));
|
|
1000
|
+
__privateAdd(this, _xt, s.derived(() => {
|
|
1001
|
+
var _a3;
|
|
1002
|
+
return ((_a3 = this.selected) == null ? void 0 : _a3.name) ? this.schema[this.selected.name] ?? null : null;
|
|
1003
|
+
}));
|
|
1004
|
+
__privateAdd(this, _yt, s.derived(() => {
|
|
1005
|
+
var _a3;
|
|
1006
|
+
if (!((_a3 = this.selected) == null ? void 0 : _a3.name)) return null;
|
|
1007
|
+
const t2 = this.collections.find((t3) => t3.name === this.selected.name);
|
|
1008
|
+
if (!t2) return null;
|
|
1009
|
+
const e2 = this.records.filter((e3) => e3.collection === t2.id), r2 = this.selected.type;
|
|
1010
|
+
return "page" === r2 || "global" === r2 ? e2[0] ?? null : e2;
|
|
1011
|
+
}));
|
|
1012
|
+
__privateAdd(this, _kt, s.derived(() => {
|
|
1013
|
+
var _a3;
|
|
1014
|
+
return ((_a3 = this.selected) == null ? void 0 : _a3.itemId) ? Array.isArray(this.selectedRecords) ? this.selectedRecords.find((t2) => t2.id === this.selected.itemId) ?? null : this.selectedRecords : null;
|
|
1015
|
+
}));
|
|
1016
|
+
__privateAdd(this, _Ct, s.derived(() => JSON.stringify(this.formData) !== JSON.stringify(this.originalData)));
|
|
1017
|
+
__privateAdd(this, __t, s.derived(() => (function(t2, e2) {
|
|
1018
|
+
if (!(t2 == null ? void 0 : t2.fields)) return [];
|
|
1019
|
+
const r2 = Object.entries(t2.fields);
|
|
1020
|
+
if (!r2.some(([t3, e3]) => "group" === e3.type)) return [{ key: "_general", implicit: true, fields: r2.map(([t3, r3]) => ({ key: t3, def: r3, path: t3, value: e2[t3] ?? "" })) }];
|
|
1021
|
+
const o2 = [], i2 = [];
|
|
1022
|
+
for (const [t3, a2] of r2) "group" === a2.type ? o2.push({ key: t3, implicit: false, fields: Object.entries(a2.fields).map(([r3, o3]) => {
|
|
1023
|
+
var _a3;
|
|
1024
|
+
return { key: r3, def: o3, path: `${t3}.${r3}`, value: ((_a3 = e2[t3]) == null ? void 0 : _a3[r3]) ?? "" };
|
|
1025
|
+
}) }) : i2.push({ key: t3, def: a2, path: t3, value: e2[t3] ?? "" });
|
|
1026
|
+
return i2.length > 0 && o2.unshift({ key: "_general", implicit: true, fields: i2 }), o2;
|
|
1027
|
+
})(this.selectedSchema, this.formData)));
|
|
1028
|
+
}
|
|
1029
|
+
get schema() {
|
|
1030
|
+
return s.get(__privateGet(this, _ht));
|
|
1031
|
+
}
|
|
1032
|
+
set schema(t2) {
|
|
1033
|
+
s.set(__privateGet(this, _ht), t2, true);
|
|
1034
|
+
}
|
|
1035
|
+
get records() {
|
|
1036
|
+
return s.get(__privateGet(this, _pt));
|
|
1037
|
+
}
|
|
1038
|
+
set records(t2) {
|
|
1039
|
+
s.set(__privateGet(this, _pt), t2, true);
|
|
1040
|
+
}
|
|
1041
|
+
get collections() {
|
|
1042
|
+
return s.get(__privateGet(this, _ut));
|
|
1043
|
+
}
|
|
1044
|
+
set collections(t2) {
|
|
1045
|
+
s.set(__privateGet(this, _ut), t2, true);
|
|
1046
|
+
}
|
|
1047
|
+
get formData() {
|
|
1048
|
+
return s.get(__privateGet(this, _gt));
|
|
1049
|
+
}
|
|
1050
|
+
set formData(t2) {
|
|
1051
|
+
s.set(__privateGet(this, _gt), t2, true);
|
|
1052
|
+
}
|
|
1053
|
+
get originalData() {
|
|
1054
|
+
return s.get(__privateGet(this, _bt));
|
|
1055
|
+
}
|
|
1056
|
+
set originalData(t2) {
|
|
1057
|
+
s.set(__privateGet(this, _bt), t2, true);
|
|
1058
|
+
}
|
|
1059
|
+
get pages() {
|
|
1060
|
+
return s.get(__privateGet(this, _ft));
|
|
1061
|
+
}
|
|
1062
|
+
set pages(t2) {
|
|
1063
|
+
s.set(__privateGet(this, _ft), t2);
|
|
1064
|
+
}
|
|
1065
|
+
get globals() {
|
|
1066
|
+
return s.get(__privateGet(this, _mt));
|
|
1067
|
+
}
|
|
1068
|
+
set globals(t2) {
|
|
1069
|
+
s.set(__privateGet(this, _mt), t2);
|
|
1070
|
+
}
|
|
1071
|
+
get collectionDefs() {
|
|
1072
|
+
return s.get(__privateGet(this, _wt));
|
|
1073
|
+
}
|
|
1074
|
+
set collectionDefs(t2) {
|
|
1075
|
+
s.set(__privateGet(this, _wt), t2);
|
|
1076
|
+
}
|
|
1077
|
+
get selected() {
|
|
1078
|
+
return s.get(__privateGet(this, _vt));
|
|
1079
|
+
}
|
|
1080
|
+
set selected(t2) {
|
|
1081
|
+
s.set(__privateGet(this, _vt), t2);
|
|
1082
|
+
}
|
|
1083
|
+
get selectedSchema() {
|
|
1084
|
+
return s.get(__privateGet(this, _xt));
|
|
1085
|
+
}
|
|
1086
|
+
set selectedSchema(t2) {
|
|
1087
|
+
s.set(__privateGet(this, _xt), t2);
|
|
1088
|
+
}
|
|
1089
|
+
get selectedRecords() {
|
|
1090
|
+
return s.get(__privateGet(this, _yt));
|
|
1091
|
+
}
|
|
1092
|
+
set selectedRecords(t2) {
|
|
1093
|
+
s.set(__privateGet(this, _yt), t2);
|
|
1094
|
+
}
|
|
1095
|
+
get selectedItem() {
|
|
1096
|
+
return s.get(__privateGet(this, _kt));
|
|
1097
|
+
}
|
|
1098
|
+
set selectedItem(t2) {
|
|
1099
|
+
s.set(__privateGet(this, _kt), t2);
|
|
1100
|
+
}
|
|
1101
|
+
get isDirty() {
|
|
1102
|
+
return s.get(__privateGet(this, _Ct));
|
|
1103
|
+
}
|
|
1104
|
+
set isDirty(t2) {
|
|
1105
|
+
s.set(__privateGet(this, _Ct), t2);
|
|
1106
|
+
}
|
|
1107
|
+
get fields() {
|
|
1108
|
+
return s.get(__privateGet(this, __t));
|
|
1109
|
+
}
|
|
1110
|
+
set fields(t2) {
|
|
1111
|
+
s.set(__privateGet(this, __t), t2);
|
|
1112
|
+
}
|
|
1113
|
+
get currentRecord() {
|
|
1114
|
+
const t2 = this.selectedItem ?? this.selectedRecords;
|
|
1115
|
+
return !t2 || Array.isArray(t2) ? null : t2;
|
|
1116
|
+
}
|
|
1117
|
+
start() {
|
|
1118
|
+
this.on("project:ready", () => this.fetch());
|
|
1119
|
+
}
|
|
1120
|
+
initForm() {
|
|
1121
|
+
const t2 = (function(t3, e2) {
|
|
1122
|
+
const r2 = E((e2 == null ? void 0 : e2.draft) ?? (e2 == null ? void 0 : e2.data) ?? {});
|
|
1123
|
+
if (!(t3 == null ? void 0 : t3.fields)) return r2;
|
|
1124
|
+
for (const [e3, o2] of Object.entries(t3.fields)) if ("group" === o2.type) {
|
|
1125
|
+
e3 in r2 || (r2[e3] = {});
|
|
1126
|
+
for (const t4 of Object.keys(o2.fields)) t4 in r2[e3] || (r2[e3][t4] = "");
|
|
1127
|
+
} else e3 in r2 || (r2[e3] = "");
|
|
1128
|
+
return r2;
|
|
1129
|
+
})(this.selectedSchema, this.currentRecord);
|
|
1130
|
+
this.formData = t2, this.originalData = E(t2);
|
|
1131
|
+
}
|
|
1132
|
+
updateField(t2, e2) {
|
|
1133
|
+
const r2 = t2.split(".");
|
|
1134
|
+
1 !== r2.length ? (this.formData[r2[0]] || (this.formData[r2[0]] = {}), this.formData[r2[0]][r2[1]] = e2) : this.formData[r2[0]] = e2;
|
|
1135
|
+
}
|
|
1136
|
+
async save() {
|
|
1137
|
+
const t2 = E(this.formData), e2 = this.currentRecord;
|
|
1138
|
+
e2 ? await this.updateRecord(e2, t2) : await this.createRecord(t2);
|
|
1139
|
+
}
|
|
1140
|
+
async publish() {
|
|
1141
|
+
var _a3, _b3;
|
|
1142
|
+
const t2 = this.currentRecord;
|
|
1143
|
+
if (!t2) return;
|
|
1144
|
+
const e2 = E(this.formData), r2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
1145
|
+
try {
|
|
1146
|
+
await this.modules.pb.collection("content").update(t2.id, { data: e2, draft: null, published: r2, published_by: (_b3 = (_a3 = this.modules.auth) == null ? void 0 : _a3.user) == null ? void 0 : _b3.id }), t2.data = e2, t2.draft = null, t2.published = r2, this.originalData = E(this.formData), F.info("Published:", t2.id);
|
|
1147
|
+
} catch (t3) {
|
|
1148
|
+
F.error("Publish failed:", t3);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
discard() {
|
|
1152
|
+
const t2 = this.currentRecord;
|
|
1153
|
+
if (!t2) return;
|
|
1154
|
+
const e2 = t2.data ?? {};
|
|
1155
|
+
this.formData = E(e2), this.originalData = E(e2);
|
|
1156
|
+
}
|
|
1157
|
+
async fetch() {
|
|
1158
|
+
var _a3;
|
|
1159
|
+
if ((_a3 = this.modules.project) == null ? void 0 : _a3.id) {
|
|
1160
|
+
this.loading = true;
|
|
1161
|
+
try {
|
|
1162
|
+
const t2 = await this.modules.pb.send(`/api/content?project=${this.modules.project.id}`);
|
|
1163
|
+
this.schema = t2.schema ?? {}, this.records = t2.content ?? [], this.collections = t2.collections ?? [], this.ready = true, this.emit("content:ready"), F.info("Schema:", Object.keys(this.schema)), F.info("Records:", this.records.length);
|
|
1164
|
+
} catch (t2) {
|
|
1165
|
+
F.error("Fetch failed:", t2);
|
|
1166
|
+
} finally {
|
|
1167
|
+
this.loading = false;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
async ensureCollection(t2) {
|
|
1172
|
+
const e2 = this.collections.find((e3) => e3.name === t2);
|
|
1173
|
+
if (e2) return e2;
|
|
1174
|
+
const r2 = this.schema[t2];
|
|
1175
|
+
if (!r2) throw new Error(`Unknown schema: ${t2}`);
|
|
1176
|
+
const o2 = await this.modules.pb.collection("collections").create({ project: this.modules.project.id, name: t2, type: r2.type });
|
|
1177
|
+
return this.collections.push(o2), F.info("Created collection:", o2.id), o2;
|
|
1178
|
+
}
|
|
1179
|
+
async createRecord(t2) {
|
|
1180
|
+
var _a3;
|
|
1181
|
+
if ((_a3 = this.selected) == null ? void 0 : _a3.name) try {
|
|
1182
|
+
const e2 = await this.ensureCollection(this.selected.name), r2 = await this.modules.pb.collection("content").create({ collection: e2.id, draft: t2 });
|
|
1183
|
+
this.records.push(r2), this.originalData = t2, F.info("Created record:", r2.id);
|
|
1184
|
+
} catch (t3) {
|
|
1185
|
+
F.error("Create failed:", t3);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
async updateRecord(t2, e2) {
|
|
1189
|
+
try {
|
|
1190
|
+
await this.modules.pb.collection("content").update(t2.id, { draft: e2 }), t2.draft = e2, this.originalData = e2, F.info("Saved draft:", t2.id);
|
|
1191
|
+
} catch (t3) {
|
|
1192
|
+
F.error("Save failed:", t3);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
_ht = new WeakMap();
|
|
1197
|
+
_pt = new WeakMap();
|
|
1198
|
+
_ut = new WeakMap();
|
|
1199
|
+
_gt = new WeakMap();
|
|
1200
|
+
_bt = new WeakMap();
|
|
1201
|
+
_ft = new WeakMap();
|
|
1202
|
+
_mt = new WeakMap();
|
|
1203
|
+
_wt = new WeakMap();
|
|
1204
|
+
_vt = new WeakMap();
|
|
1205
|
+
_xt = new WeakMap();
|
|
1206
|
+
_yt = new WeakMap();
|
|
1207
|
+
_kt = new WeakMap();
|
|
1208
|
+
_Ct = new WeakMap();
|
|
1209
|
+
__t = new WeakMap();
|
|
1210
|
+
let U = (_b2 = class extends C {
|
|
1211
|
+
constructor() {
|
|
1212
|
+
super();
|
|
1213
|
+
__privateAdd(this, _V2, s.state());
|
|
1214
|
+
this.storage("active", "okno-sidebar-active", false);
|
|
1215
|
+
}
|
|
1216
|
+
get active() {
|
|
1217
|
+
return s.get(__privateGet(this, _V2));
|
|
1218
|
+
}
|
|
1219
|
+
set active(t2) {
|
|
1220
|
+
s.set(__privateGet(this, _V2), t2, true);
|
|
1221
|
+
}
|
|
1222
|
+
start() {
|
|
1223
|
+
this.on("content:ready", () => {
|
|
1224
|
+
this.active && this.emit("sidebar:select");
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
select(t2) {
|
|
1228
|
+
this.active = { name: t2.name, type: t2.type, itemId: t2.itemId }, this.emit("sidebar:select");
|
|
1229
|
+
}
|
|
1230
|
+
selectItem(t2) {
|
|
1231
|
+
this.active && (this.active = { ...this.active, itemId: t2 }, this.emit("sidebar:select"));
|
|
1232
|
+
}
|
|
1233
|
+
backToList() {
|
|
1234
|
+
this.active && (this.active = { ...this.active, itemId: void 0 }, this.emit("sidebar:select"));
|
|
1235
|
+
}
|
|
1236
|
+
}, _V2 = new WeakMap(), _b2);
|
|
1237
|
+
function X() {
|
|
1238
|
+
return r("app").modules;
|
|
1239
|
+
}
|
|
1240
|
+
const Y = u("app"), B = [["path", { d: "M15 6L9 12.0001L15 18", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }]], Z = [["path", { d: "M9.00005 6L15 12L9 18", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }]], q = (t2) => t2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1241
|
+
var J = s.from_svg('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"></svg>');
|
|
1242
|
+
function V(t2, r2) {
|
|
1243
|
+
s.push(r2, true);
|
|
1244
|
+
let o2, i2 = s.prop(r2, "size", 3, 24), a2 = s.prop(r2, "absoluteStrokeWidth", 3, false), n2 = s.prop(r2, "color", 3, "currentColor"), l2 = s.prop(r2, "showAlt", 3, false), c2 = s.prop(r2, "className", 3, ""), d2 = s.state(void 0), h2 = s.state(void 0);
|
|
1245
|
+
const p2 = s.derived(() => ({ size: i2(), strokeWidth: r2.strokeWidth, absoluteStrokeWidth: a2(), color: n2(), altIcon: r2.altIcon, showAlt: l2(), class: c2() }));
|
|
1246
|
+
e(() => {
|
|
1247
|
+
if (o2) return s.set(d2, /* @__PURE__ */ (function(t3, e2) {
|
|
1248
|
+
const r3 = (t4, r4) => {
|
|
1249
|
+
const { color: o3 = "currentColor", size: i3 = 24, strokeWidth: a3, absoluteStrokeWidth: s2 = false, class: n3 = "", altIcon: l3, showAlt: c3 = false, ...d3 } = r4, h3 = { xmlns: "http://www.w3.org/2000/svg", width: i3, height: i3, viewBox: "0 0 24 24", fill: "none", color: o3, class: n3, ...d3 }, p3 = c3 && l3 ? l3 : e2, u3 = void 0 !== a3 ? s2 ? a3 * (24 / Number(i3)) : a3 : void 0;
|
|
1250
|
+
Object.entries(h3).forEach(([e3, r5]) => {
|
|
1251
|
+
t4.setAttribute(q(e3), String(r5));
|
|
1252
|
+
}), t4.innerHTML = "", p3.forEach(([e3, r5]) => {
|
|
1253
|
+
const o4 = document.createElementNS("http://www.w3.org/2000/svg", e3), i4 = { ...r5 };
|
|
1254
|
+
void 0 !== u3 && (i4["stroke-width"] = u3, i4.stroke = "currentColor"), Object.entries(i4).forEach(([t5, e4]) => {
|
|
1255
|
+
o4.setAttribute(q(t5), String(e4));
|
|
1256
|
+
}), t4.appendChild(o4);
|
|
1257
|
+
});
|
|
1258
|
+
};
|
|
1259
|
+
return { render: (t4, e3) => (r3(t4, e3), { update(e4) {
|
|
1260
|
+
r3(t4, e4);
|
|
1261
|
+
}, destroy() {
|
|
1262
|
+
t4.innerHTML = "";
|
|
1263
|
+
} }) };
|
|
1264
|
+
})(0, r2.icon), true), s.set(h2, s.get(d2).render(o2, s.get(p2)), true), () => {
|
|
1265
|
+
var _a3;
|
|
1266
|
+
(_a3 = s.get(h2)) == null ? void 0 : _a3.destroy();
|
|
1267
|
+
};
|
|
1268
|
+
}), s.user_effect(() => {
|
|
1269
|
+
s.get(d2) && o2 && s.get(h2) && s.get(h2).update(s.get(p2));
|
|
1270
|
+
});
|
|
1271
|
+
var u2 = J();
|
|
1272
|
+
s.bind_this(u2, (t3) => o2 = t3, () => o2), s.template_effect(() => {
|
|
1273
|
+
s.set_attribute(u2, "width", i2()), s.set_attribute(u2, "height", i2()), s.set_class(u2, 0, s.clsx(c2()));
|
|
1274
|
+
}), s.append(t2, u2), s.pop();
|
|
1275
|
+
}
|
|
1276
|
+
var G = s.from_html('<button><!> <p class="sr-only"> </p></button>');
|
|
1277
|
+
function Q(t2, e2) {
|
|
1278
|
+
s.push(e2, true);
|
|
1279
|
+
let r2 = s.rest_props(e2, ["$$slots", "$$events", "$$legacy"]);
|
|
1280
|
+
var o2 = G();
|
|
1281
|
+
s.attribute_effect(o2, () => ({ class: `focus-visible flex-center text-neutral-400 superellipse size-32 shrink-0 rounded-[10px] hover:bg-orange-600/10 hover:text-orange-600 active:bg-orange-600/20 active:text-orange-600 ${e2.padding ?? ""} disabled:pointer-events-none disabled:opacity-30`, ...r2 }));
|
|
1282
|
+
var i2 = s.child(o2);
|
|
1283
|
+
V(i2, { get icon() {
|
|
1284
|
+
return e2.icon;
|
|
1285
|
+
}, get className() {
|
|
1286
|
+
return e2.iconSize;
|
|
1287
|
+
}, get absoluteStrokeWidth() {
|
|
1288
|
+
return e2.iconStroke;
|
|
1289
|
+
} });
|
|
1290
|
+
var a2 = s.sibling(i2, 2), n2 = s.child(a2, true);
|
|
1291
|
+
s.reset(a2), s.reset(o2), s.template_effect(() => s.set_text(n2, e2.label)), s.append(t2, o2), s.pop();
|
|
1292
|
+
}
|
|
1293
|
+
var tt = s.from_html('<div class="group/header border-black/10 dark:border-white/10 superellipse bg-neutral-50 relative flex h-50 w-full items-center justify-between rounded-tr-[24px] border-b-[0.5px] px-10 select-none dark:bg-neutral-800"><div class="absolute top-9 left-8 z-1 flex"><!> <!></div> <div class="absolute top-9 right-9 z-10 flex items-end gap-8"><button><span class="font-medium">Save</span></button> <button class="text-white bg-sky-500 border-sky-600 shadow-xs superellipse hover:bg-sky-600 active:bg-sky-700 flex h-32 items-center gap-6 rounded-[10px] border-[0.5px] px-12"><span class="font-medium">Publish</span></button></div> <div tabindex="-1" class="absolute inset-0 z-0 focus:outline-0" draggable="false"></div></div>');
|
|
1294
|
+
s.delegate(["click", "pointerdown"]);
|
|
1295
|
+
var et = s.from_html("<div>Let go to Close</div>");
|
|
1296
|
+
const rt = [["path", { d: "M7 17L7 13", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M12 17L12 7", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5", key: "1" }], ["path", { d: "M17 17L17 11", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5", key: "2" }], ["path", { d: "M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "1.5", key: "3" }]], ot = [["path", { d: "M8 17H16", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M8 13H12", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "1" }], ["path", { d: "M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "2" }]], it = [["path", { d: "M3 16L7.46967 11.5303C7.80923 11.1908 8.26978 11 8.75 11C9.23022 11 9.69077 11.1908 10.0303 11.5303L14 15.5M15.5 17L14 15.5M21 16L18.5303 13.5303C18.1908 13.1908 17.7302 13 17.25 13C16.7698 13 16.3092 13.1908 15.9697 13.5303L14 15.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M15.5 8C15.7761 8 16 7.77614 16 7.5C16 7.22386 15.7761 7 15.5 7M15.5 8C15.2239 8 15 7.77614 15 7.5C15 7.22386 15.2239 7 15.5 7M15.5 8V7", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "1" }], ["path", { d: "M3.69797 19.7472C2.5 18.3446 2.5 16.2297 2.5 12C2.5 7.77027 2.5 5.6554 3.69797 4.25276C3.86808 4.05358 4.05358 3.86808 4.25276 3.69797C5.6554 2.5 7.77027 2.5 12 2.5C16.2297 2.5 18.3446 2.5 19.7472 3.69797C19.9464 3.86808 20.1319 4.05358 20.302 4.25276C21.5 5.6554 21.5 7.77027 21.5 12C21.5 16.2297 21.5 18.3446 20.302 19.7472C20.1319 19.9464 19.9464 20.1319 19.7472 20.302C18.3446 21.5 16.2297 21.5 12 21.5C7.77027 21.5 5.6554 21.5 4.25276 20.302C4.05358 20.1319 3.86808 19.9464 3.69797 19.7472Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "2" }]], at = [["path", { d: "M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "1" }], ["path", { d: "M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "2" }]], st = [["path", { d: "M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z", stroke: "currentColor", strokeWidth: "1.5", key: "1" }]], nt = [["path", { d: "M15.5 10.5C15.5 8.567 13.933 7 12 7C10.067 7 8.5 8.567 8.5 10.5C8.5 12.433 10.067 14 12 14C13.933 14 15.5 12.433 15.5 10.5Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "0" }], ["path", { d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "1" }], ["path", { d: "M18 20C18 16.6863 15.3137 14 12 14C8.68629 14 6 16.6863 6 20", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", key: "2" }]];
|
|
1297
|
+
var lt = s.from_html('<div><p class="font-medium px-10 text-sm/none capitalize select-none"> </p> <!></div>');
|
|
1298
|
+
function ct(t2, e2) {
|
|
1299
|
+
const r2 = s.rest_props(e2, ["$$slots", "$$events", "$$legacy", "title", "children", "style"]);
|
|
1300
|
+
var o2 = lt();
|
|
1301
|
+
s.attribute_effect(o2, () => ({ class: `flex flex-col gap-6 ${e2.style}`, ...r2 }));
|
|
1302
|
+
var i2 = s.child(o2), a2 = s.child(i2, true);
|
|
1303
|
+
s.reset(i2);
|
|
1304
|
+
var n2 = s.sibling(i2, 2);
|
|
1305
|
+
s.snippet(n2, () => e2.children), s.reset(o2), s.template_effect(() => s.set_text(a2, e2.title)), s.append(t2, o2);
|
|
1306
|
+
}
|
|
1307
|
+
var dt = s.from_html('<ul class="flex flex-col gap-1"><!></ul>');
|
|
1308
|
+
function ht(t2, e2) {
|
|
1309
|
+
let r2 = s.rest_props(e2, ["$$slots", "$$events", "$$legacy", "title", "children", "style"]);
|
|
1310
|
+
ct(t2, s.spread_props({ get title() {
|
|
1311
|
+
return e2.title;
|
|
1312
|
+
} }, () => r2, { children: (t3, r3) => {
|
|
1313
|
+
var o2 = dt(), i2 = s.child(o2);
|
|
1314
|
+
s.snippet(i2, () => e2.children), s.reset(o2), s.append(t3, o2);
|
|
1315
|
+
}, $$slots: { default: true } }));
|
|
1316
|
+
}
|
|
1317
|
+
var pt = s.from_html('<li><button><!> <span class="capitalize"> </span></button></li>');
|
|
1318
|
+
function ut(t2, e2) {
|
|
1319
|
+
let r2 = s.rest_props(e2, ["$$slots", "$$events", "$$legacy", "icon", "label", "active"]);
|
|
1320
|
+
var o2 = pt(), i2 = s.child(o2);
|
|
1321
|
+
s.attribute_effect(i2, () => ({ "data-active": e2.active ? "true" : null, class: ["superellipse focus-visible flex h-32 w-full cursor-pointer items-center gap-6 rounded-[8px] px-8 select-none", e2.active ? "bg-black/5 dark:bg-white/5 text-neutral-700 dark:text-white" : "hover:bg-black/5 dark:hover:bg-white/5 active:bg-black/10 dark:active:bg-white/10"], ...r2 }));
|
|
1322
|
+
var a2 = s.child(i2);
|
|
1323
|
+
V(a2, { get icon() {
|
|
1324
|
+
return e2.icon;
|
|
1325
|
+
}, className: "size-20 text-orange-600 ", strokeWidth: 1.8 });
|
|
1326
|
+
var n2 = s.sibling(a2, 2), l2 = s.child(n2, true);
|
|
1327
|
+
s.reset(n2), s.reset(i2), s.reset(o2), s.template_effect(() => s.set_text(l2, e2.label)), s.append(t2, o2);
|
|
1328
|
+
}
|
|
1329
|
+
var gt = s.from_html('<nav class="border-black/10 dark:border-white/10 relative z-10 h-full w-180 shrink-0 border-r-[0.5px]"><button class="bg-rose-500/0 absolute top-0 right-0 bottom-0 w-5 translate-x-3 cursor-ew-resize" tabindex="-1"><span class="sr-only">Resize sidebar</span></button> <header class="group/header relative h-50"><div class="absolute top-18 left-18 z-10 flex gap-6"><button class=" border-black/10 dark:border-white/5 group-has-focus-within/window:bg-rose-500 group-has-focus-within/window:hover:bg-rose-600 group-has-focus-within/window:active:bg-rose-700 bg-black/15 dark:bg-white/10 size-14 rounded-full border-[0.5px]"><span class="sr-only">Close</span></button> <button class="bg-black/15 dark:bg-white/10 group-has-focus-within/window:bg-amber-400 group-has-focus-within/window:hover:bg-amber-500 group-has-focus-within/window:active:bg-amber-600 border-black/10 dark:border-white/5 size-14 rounded-full border-[0.5px]"><span class="sr-only">Close</span></button> <button class="bg-black/15 dark:bg-white/10 group-has-focus-within/window:bg-green-400 group-has-focus-within/window:hover:bg-green-500 group-has-focus-within/window:active:bg-green-600 border-black/10 dark:border-white/5 size-14 rounded-full border-[0.5px]"><span class="sr-only">Close</span></button></div> <div tabindex="-1" class="absolute inset-0 z-0 focus:outline-0" draggable="false"></div></header> <div class="dark:text-white/50 flex min-h-[calc(100%-50px)] flex-col gap-28 px-8 py-9"><!> <!> <div class="flex-1"></div> <!></div></nav>');
|
|
1330
|
+
s.delegate(["click", "pointerdown"]);
|
|
1331
|
+
var bt = s.from_html('<span class="text-rose-500">*</span>'), ft = s.from_html('<p class="text-stone-300"> </p>'), mt = s.from_html('<div><label> <!></label> <div class="flex-1"></div> <div class="flex items-center gap-8"><!></div></div>'), wt = s.from_html("<textarea></textarea>"), vt = s.from_html("<input/>"), xt = s.from_html('<p class="text-rose-500 px-12 pb-6 text-xs/none"> </p>'), yt = s.from_html("<div><!> <!> <!></div>");
|
|
1332
|
+
function kt(t2, r2) {
|
|
1333
|
+
s.push(r2, true);
|
|
1334
|
+
const { content: i2 } = X();
|
|
1335
|
+
var a2 = s.comment(), n2 = s.first_child(a2), l2 = (t3) => {
|
|
1336
|
+
!(function(t4, r3) {
|
|
1337
|
+
const i3 = s.props_id();
|
|
1338
|
+
s.push(r3, true);
|
|
1339
|
+
let a3 = s.prop(r3, "id", 3, i3), n3 = s.prop(r3, "value", 15, ""), l3 = s.prop(r3, "label", 3, ""), c2 = s.prop(r3, "required", 3, false), d2 = s.prop(r3, "disabled", 3, false), h2 = s.prop(r3, "multiline", 3, false), p2 = s.prop(r3, "type", 3, "text"), u2 = s.rest_props(r3, ["$$slots", "$$events", "$$legacy", "id", "value", "label", "required", "placeholder", "maxlength", "error", "disabled", "multiline", "type", "class"]), g2 = s.state(void 0), b2 = s.derived(() => n3().length);
|
|
1340
|
+
const f2 = s.derived(() => ({ id: a3(), required: c2(), placeholder: r3.placeholder, maxlength: r3.maxlength, disabled: d2(), ...u2 })), m2 = s.derived(() => ["resize-none px-10 py-6 text-base/[125%] focus:outline-0 dark:text-neutral-200", d2() && "pointer-events-none opacity-50", r3.class]);
|
|
1341
|
+
function w2() {
|
|
1342
|
+
s.get(g2) && h2() && (s.get(g2).style.height = "0", s.get(g2).style.height = s.get(g2).scrollHeight + "px");
|
|
1343
|
+
}
|
|
1344
|
+
function v2() {
|
|
1345
|
+
w2();
|
|
1346
|
+
}
|
|
1347
|
+
e(() => w2());
|
|
1348
|
+
var x2 = { insertAtCursor: function(t5) {
|
|
1349
|
+
if (!s.get(g2)) return;
|
|
1350
|
+
const e2 = s.get(g2).selectionStart, r4 = s.get(g2).selectionEnd;
|
|
1351
|
+
n3(n3().slice(0, e2) + t5 + n3().slice(r4)), o().then(() => {
|
|
1352
|
+
const r5 = e2 + t5.length;
|
|
1353
|
+
s.get(g2).setSelectionRange(r5, r5), s.get(g2).focus(), w2();
|
|
1354
|
+
});
|
|
1355
|
+
}, focus: function() {
|
|
1356
|
+
var _a3;
|
|
1357
|
+
(_a3 = s.get(g2)) == null ? void 0 : _a3.focus();
|
|
1358
|
+
} }, y2 = yt(), k2 = s.child(y2), C2 = (t5) => {
|
|
1359
|
+
var e2 = mt(), o2 = s.child(e2);
|
|
1360
|
+
s.set_class(o2, 1, s.clsx(["text-neutral-500 dark:text-neutral-300 capitalize"]));
|
|
1361
|
+
var i4 = s.child(o2, true), n4 = s.sibling(i4), h3 = (t6) => {
|
|
1362
|
+
var e3 = bt();
|
|
1363
|
+
s.append(t6, e3);
|
|
1364
|
+
};
|
|
1365
|
+
s.if(n4, (t6) => {
|
|
1366
|
+
c2() && t6(h3);
|
|
1367
|
+
}), s.reset(o2);
|
|
1368
|
+
var p3 = s.sibling(o2, 4), u3 = s.child(p3), g3 = (t6) => {
|
|
1369
|
+
var e3 = ft(), o3 = s.child(e3);
|
|
1370
|
+
s.reset(e3), s.template_effect(() => s.set_text(o3, `${s.get(b2) ?? ""}/${r3.maxlength ?? ""}`)), s.append(t6, e3);
|
|
1371
|
+
};
|
|
1372
|
+
s.if(u3, (t6) => {
|
|
1373
|
+
r3.maxlength && t6(g3);
|
|
1374
|
+
}), s.reset(p3), s.reset(e2), s.template_effect(() => {
|
|
1375
|
+
s.set_class(e2, 1, s.clsx(["flex px-10 text-xs/none select-none", d2() && "pointer-events-none opacity-50"])), s.set_attribute(o2, "for", a3()), s.set_text(i4, l3());
|
|
1376
|
+
}), s.append(t5, e2);
|
|
1377
|
+
};
|
|
1378
|
+
s.if(k2, (t5) => {
|
|
1379
|
+
l3() && t5(C2);
|
|
1380
|
+
});
|
|
1381
|
+
var _2 = s.sibling(k2, 2), z2 = (t5) => {
|
|
1382
|
+
var e2 = wt();
|
|
1383
|
+
s.remove_textarea_child(e2), s.attribute_effect(e2, () => ({ rows: "1", class: s.get(m2), oninput: v2, ...s.get(f2) })), s.bind_this(e2, (t6) => s.set(g2, t6), () => s.get(g2)), s.bind_value(e2, n3), s.append(t5, e2);
|
|
1384
|
+
}, L2 = (t5) => {
|
|
1385
|
+
var e2 = vt();
|
|
1386
|
+
s.attribute_effect(e2, () => ({ type: p2(), class: s.get(m2), ...s.get(f2) }), void 0, void 0, void 0, void 0, true), s.bind_this(e2, (t6) => s.set(g2, t6), () => s.get(g2)), s.bind_value(e2, n3), s.append(t5, e2);
|
|
1387
|
+
};
|
|
1388
|
+
s.if(_2, (t5) => {
|
|
1389
|
+
h2() ? t5(z2) : t5(L2, false);
|
|
1390
|
+
});
|
|
1391
|
+
var S2 = s.sibling(_2, 2), j2 = (t5) => {
|
|
1392
|
+
var e2 = xt(), o2 = s.child(e2, true);
|
|
1393
|
+
s.reset(e2), s.template_effect(() => s.set_text(o2, r3.error)), s.append(t5, e2);
|
|
1394
|
+
};
|
|
1395
|
+
s.if(S2, (t5) => {
|
|
1396
|
+
r3.error && t5(j2);
|
|
1397
|
+
}), s.reset(y2), s.template_effect(() => s.set_class(y2, 1, s.clsx(["input focus-within superellipse flex flex-col gap-1 overflow-clip border-b-[0.5px] focus-within:z-10", "border-black/10 dark:border-white/10 first:rounded-t-[10px]", "last:rounded-b-[10px] last:border-b-0", "text-neutral-600", "has-disabled:bg-stone-100 has-disabled:cursor-not-allowed", l3() ? "pt-10 pb-3" : "py-5"]))), s.append(t4, y2), s.pop(x2);
|
|
1398
|
+
})(t3, { get value() {
|
|
1399
|
+
return r2.field.value;
|
|
1400
|
+
}, get label() {
|
|
1401
|
+
return r2.field.key;
|
|
1402
|
+
}, get required() {
|
|
1403
|
+
return r2.field.def.required;
|
|
1404
|
+
}, get status() {
|
|
1405
|
+
return r2.field.status;
|
|
1406
|
+
}, oninput: (t4) => i2.updateField(r2.field.path, t4.target.value), get "data-field"() {
|
|
1407
|
+
return r2.field.path;
|
|
1408
|
+
} });
|
|
1409
|
+
};
|
|
1410
|
+
s.if(n2, (t3) => {
|
|
1411
|
+
"string" === r2.field.def.type && t3(l2);
|
|
1412
|
+
}), s.append(t2, a2), s.pop();
|
|
1413
|
+
}
|
|
1414
|
+
var Ct = s.from_html('<div class="frame superellipse flex flex-col rounded-[10px]"></div>'), _t = s.from_html('<div class="flex flex-col gap-16 px-10 py-9"></div>');
|
|
1415
|
+
function zt(t2, e2) {
|
|
1416
|
+
s.push(e2, true);
|
|
1417
|
+
const { content: r2, bus: o2 } = X();
|
|
1418
|
+
o2.on("sidebar:select", () => r2.initForm()), r2.selectedRecords && r2.initForm();
|
|
1419
|
+
var i2 = _t();
|
|
1420
|
+
s.each(i2, 21, () => r2.fields, s.index, (t3, e3) => {
|
|
1421
|
+
{
|
|
1422
|
+
let r3 = s.derived(() => s.get(e3).implicit ? null : s.get(e3).key);
|
|
1423
|
+
ct(t3, { get title() {
|
|
1424
|
+
return s.get(r3);
|
|
1425
|
+
}, children: (t4, r4) => {
|
|
1426
|
+
var o3 = Ct();
|
|
1427
|
+
s.each(o3, 21, () => s.get(e3).fields, s.index, (t5, e4) => {
|
|
1428
|
+
kt(t5, { get field() {
|
|
1429
|
+
return s.get(e4);
|
|
1430
|
+
} });
|
|
1431
|
+
}), s.reset(o3), s.append(t4, o3);
|
|
1432
|
+
}, $$slots: { default: true } });
|
|
1433
|
+
}
|
|
1434
|
+
}), s.reset(i2), s.append(t2, i2), s.pop();
|
|
1435
|
+
}
|
|
1436
|
+
var Lt = s.from_html('<table class="min-w-full"><thead><tr><!></tr></thead><tbody class="bg-white dark:bg-neutral-900 z-0"><!></tbody></table>');
|
|
1437
|
+
var St = s.from_html('<th class="group/th sticky top-0"><button><!></button></th>');
|
|
1438
|
+
function jt(t2, e2) {
|
|
1439
|
+
var r2 = St(), o2 = s.child(r2);
|
|
1440
|
+
s.set_class(o2, 1, s.clsx(["font-medium sticky top-0 left-0 flex h-32 w-full min-w-0 items-center border-[0.5px] border-t-0 border-l-0 px-10 text-left text-sm/none capitalize group-first/th:pl-34 group-last/th:border-r-0 dark:bg-neutral-800", "bg-white hover:bg-neutral-100 active:bg-neutral-200 border-neutral-200", "dark:hover:bg-neutral-700 dark:active:bg-neutral-600 dark:border-white/10 dark:text-neutral-400 dark:bg-neutral-800"])), o2.__click = function(...t3) {
|
|
1441
|
+
var _a3;
|
|
1442
|
+
(_a3 = e2.onclick) == null ? void 0 : _a3.apply(this, t3);
|
|
1443
|
+
};
|
|
1444
|
+
var i2 = s.child(o2), a2 = (t3) => {
|
|
1445
|
+
var r3 = s.comment(), o3 = s.first_child(r3);
|
|
1446
|
+
s.snippet(o3, () => e2.children), s.append(t3, r3);
|
|
1447
|
+
};
|
|
1448
|
+
s.if(i2, (t3) => {
|
|
1449
|
+
e2.children && t3(a2);
|
|
1450
|
+
}), s.reset(o2), s.reset(r2), s.append(t2, r2);
|
|
1451
|
+
}
|
|
1452
|
+
s.delegate(["click"]);
|
|
1453
|
+
var Et = s.from_html("<tr><!></tr>");
|
|
1454
|
+
var $t = s.from_html('<td class="first:text-neutral-500 dark:first:text-neutral-200 text-neutral-400 min-w-0 px-10 first:pl-8"><div class="flex items-center gap-6 whitespace-nowrap"><!></div></td>');
|
|
1455
|
+
function Ot(t2, e2) {
|
|
1456
|
+
var r2 = $t(), o2 = s.child(r2), i2 = s.child(o2);
|
|
1457
|
+
s.snippet(i2, () => e2.children), s.reset(o2), s.reset(r2), s.append(t2, r2);
|
|
1458
|
+
}
|
|
1459
|
+
var Mt = s.from_html("<!> <!> <!> <!> <!>", 1), Dt = s.from_html("<!> ", 1), Pt = s.from_html("<!> <!> <!> <!> <!>", 1);
|
|
1460
|
+
function Wt(t2, e2) {
|
|
1461
|
+
s.push(e2, true);
|
|
1462
|
+
const { content: r2, sidebar: o2 } = X(), i2 = s.derived(() => {
|
|
1463
|
+
var _a3;
|
|
1464
|
+
const t3 = r2.selectedSchema;
|
|
1465
|
+
return ((_a3 = t3 == null ? void 0 : t3.fields) == null ? void 0 : _a3.slug) ? t3.fields.slug.source ?? "title" : "title";
|
|
1466
|
+
}), a2 = s.derived(() => {
|
|
1467
|
+
const t3 = r2.selectedRecords;
|
|
1468
|
+
return Array.isArray(t3) ? t3 : [];
|
|
1469
|
+
});
|
|
1470
|
+
{
|
|
1471
|
+
const e3 = (t3) => {
|
|
1472
|
+
var e4 = Mt(), r3 = s.first_child(e4);
|
|
1473
|
+
jt(r3, { children: (t4, e5) => {
|
|
1474
|
+
s.next();
|
|
1475
|
+
var r4 = s.text();
|
|
1476
|
+
s.template_effect(() => s.set_text(r4, s.get(i2))), s.append(t4, r4);
|
|
1477
|
+
} });
|
|
1478
|
+
var o3 = s.sibling(r3, 2);
|
|
1479
|
+
jt(o3, { children: (t4, e5) => {
|
|
1480
|
+
s.next();
|
|
1481
|
+
var r4 = s.text("Slug");
|
|
1482
|
+
s.append(t4, r4);
|
|
1483
|
+
} });
|
|
1484
|
+
var a3 = s.sibling(o3, 2);
|
|
1485
|
+
jt(a3, { children: (t4, e5) => {
|
|
1486
|
+
s.next();
|
|
1487
|
+
var r4 = s.text("Updated");
|
|
1488
|
+
s.append(t4, r4);
|
|
1489
|
+
} });
|
|
1490
|
+
var n2 = s.sibling(a3, 2);
|
|
1491
|
+
jt(n2, { children: (t4, e5) => {
|
|
1492
|
+
s.next();
|
|
1493
|
+
var r4 = s.text("Updated By");
|
|
1494
|
+
s.append(t4, r4);
|
|
1495
|
+
} }), jt(s.sibling(n2, 2), { children: (t4, e5) => {
|
|
1496
|
+
s.next();
|
|
1497
|
+
var r4 = s.text("Created");
|
|
1498
|
+
s.append(t4, r4);
|
|
1499
|
+
} }), s.append(t3, e4);
|
|
1500
|
+
};
|
|
1501
|
+
!(function(t3, e4) {
|
|
1502
|
+
var r3 = Lt(), o3 = s.child(r3), i3 = s.child(o3), a3 = s.child(i3);
|
|
1503
|
+
s.snippet(a3, () => e4.head), s.reset(i3), s.reset(o3);
|
|
1504
|
+
var n2 = s.sibling(o3), l2 = s.child(n2);
|
|
1505
|
+
s.snippet(l2, () => e4.children), s.reset(n2), s.reset(r3), s.append(t3, r3);
|
|
1506
|
+
})(t2, { head: e3, children: (t3, e4) => {
|
|
1507
|
+
var r3 = s.comment(), n2 = s.first_child(r3);
|
|
1508
|
+
s.each(n2, 17, () => s.get(a2), s.index, (t4, e5) => {
|
|
1509
|
+
!(function(t5, e6) {
|
|
1510
|
+
let r4 = s.rest_props(e6, ["$$slots", "$$events", "$$legacy", "children"]);
|
|
1511
|
+
var o3 = Et();
|
|
1512
|
+
s.attribute_effect(o3, () => ({ class: " border-black/10 hover:bg-neutral-50 dark:border-white/10 h-40 cursor-pointer border-b-[0.5px] px-10 dark:hover:bg-neutral-800", ...r4 }));
|
|
1513
|
+
var i3 = s.child(o3);
|
|
1514
|
+
s.snippet(i3, () => e6.children), s.reset(o3), s.append(t5, o3);
|
|
1515
|
+
})(t4, { onclick: () => o2.selectItem(s.get(e5).id), children: (t5, r4) => {
|
|
1516
|
+
var o3 = Pt(), a3 = s.first_child(o3);
|
|
1517
|
+
Ot(a3, { children: (t6, r5) => {
|
|
1518
|
+
var o4 = Dt(), a4 = s.first_child(o4);
|
|
1519
|
+
V(a4, { get icon() {
|
|
1520
|
+
return ot;
|
|
1521
|
+
}, className: "size-20 shrink-0 text-sky-500" });
|
|
1522
|
+
var n4 = s.sibling(a4);
|
|
1523
|
+
s.template_effect(() => {
|
|
1524
|
+
var _a3, _b3;
|
|
1525
|
+
return s.set_text(n4, ` ${((_a3 = s.get(e5).data) == null ? void 0 : _a3[s.get(i2)]) ?? ((_b3 = s.get(e5).draft) == null ? void 0 : _b3[s.get(i2)]) ?? "—" ?? ""}`);
|
|
1526
|
+
}), s.append(t6, o4);
|
|
1527
|
+
} });
|
|
1528
|
+
var n3 = s.sibling(a3, 2);
|
|
1529
|
+
Ot(n3, { children: (t6, r5) => {
|
|
1530
|
+
s.next();
|
|
1531
|
+
var o4 = s.text();
|
|
1532
|
+
s.template_effect(() => s.set_text(o4, s.get(e5).slug ?? "—")), s.append(t6, o4);
|
|
1533
|
+
} });
|
|
1534
|
+
var l2 = s.sibling(n3, 2);
|
|
1535
|
+
Ot(l2, { children: (t6, r5) => {
|
|
1536
|
+
s.next();
|
|
1537
|
+
var o4 = s.text();
|
|
1538
|
+
s.template_effect((t7) => s.set_text(o4, t7), [() => s.get(e5).updated ? new Date(s.get(e5).updated).toLocaleDateString() : "—"]), s.append(t6, o4);
|
|
1539
|
+
} });
|
|
1540
|
+
var c2 = s.sibling(l2, 2);
|
|
1541
|
+
Ot(c2, { children: (t6, e6) => {
|
|
1542
|
+
s.next();
|
|
1543
|
+
var r5 = s.text("Gabriel Uhlíř");
|
|
1544
|
+
s.append(t6, r5);
|
|
1545
|
+
} }), Ot(s.sibling(c2, 2), { children: (t6, r5) => {
|
|
1546
|
+
s.next();
|
|
1547
|
+
var o4 = s.text();
|
|
1548
|
+
s.template_effect((t7) => s.set_text(o4, t7), [() => s.get(e5).created ? new Date(s.get(e5).created).toLocaleDateString() : "—"]), s.append(t6, o4);
|
|
1549
|
+
} }), s.append(t5, o3);
|
|
1550
|
+
}, $$slots: { default: true } });
|
|
1551
|
+
}), s.append(t3, r3);
|
|
1552
|
+
} });
|
|
1553
|
+
}
|
|
1554
|
+
s.pop();
|
|
1555
|
+
}
|
|
1556
|
+
var Tt = s.from_html("<p>Media View</p>"), Rt = s.from_html('<div role="dialog" aria-modal="false" aria-label="okno" data-okno-window=""><!> <!> <main><!> <div class=" bg-neutral-50 dark:bg-neutral-900 h-[calc(100%-50px)] flex-col overflow-auto"><!> <!> <!></div></main></div>');
|
|
1557
|
+
function At(t2, e2) {
|
|
1558
|
+
s.push(e2, true);
|
|
1559
|
+
const { sidebar: r2, content: o2, win: i2 } = X();
|
|
1560
|
+
var a2 = Rt();
|
|
1561
|
+
a2.__contextmenu = (t3) => {
|
|
1562
|
+
t3.preventDefault();
|
|
1563
|
+
};
|
|
1564
|
+
var n2 = s.child(a2);
|
|
1565
|
+
!(function(t3, e3) {
|
|
1566
|
+
s.push(e3, true);
|
|
1567
|
+
const { win: r3 } = X();
|
|
1568
|
+
var o3 = et();
|
|
1569
|
+
s.template_effect(() => s.set_class(o3, 1, s.clsx(["flex-center pointer-events-none fixed top-0", "bg-orange-500 text-white font-medium h-40 px-16", "superellipse rounded-tl-[20px] rounded-tr-[20px]", "transition-[opacity,scale]", "bottom" === r3.side ? "left-1/2 origin-bottom -translate-x-1/2 -translate-y-[calc(100%+8px)] rounded-full rounded-b-[20px]" : "left" === r3.side ? "right-0 origin-bottom-left translate-x-full -translate-y-full rounded-br-[20px] rounded-bl-[4px]" : "left-0 origin-bottom-right -translate-x-full -translate-y-full rounded-br-[4px] rounded-bl-[20px]", r3.willClose ? "scale-100 opacity-100 duration-1000 ease-spring-bounce" : "scale-80 opacity-0 duration-200 ease-out"]))), s.append(t3, o3), s.pop();
|
|
1570
|
+
})(n2, {});
|
|
1571
|
+
var l2 = s.sibling(n2, 2);
|
|
1572
|
+
!(function(t3, e3) {
|
|
1573
|
+
s.push(e3, true);
|
|
1574
|
+
const { win: r3, content: o3, sidebar: i3 } = X(), a3 = s.derived(() => [{ name: "Welcome", items: [{ icon: nt, name: "Login", type: "login" }, { icon: rt, name: "Create Account", type: "register" }] }]), n3 = s.derived(() => [{ name: "Pages", items: o3.pages.map((t4) => ({ icon: ot, name: t4.name, type: "page" })) }, { name: "Collections", items: o3.collectionDefs.map((t4) => ({ icon: at, name: t4.name, type: "collection" })) }, { name: "Globals", items: o3.globals.map((t4) => ({ icon: at, name: t4.name, type: "global" })) }]), l3 = { items: [{ icon: it, name: "Media", type: "media" }, { icon: nt, name: "Users", type: "users" }, { icon: rt, name: "Usage", type: "usage" }, { icon: st, name: "Settings", type: "settings" }] };
|
|
1575
|
+
var c3 = gt(), d3 = s.sibling(s.child(c3), 2), h3 = s.child(d3);
|
|
1576
|
+
s.child(h3).__click = () => r3.close(), s.next(4), s.reset(h3), s.sibling(h3, 2).__pointerdown = (t4) => r3.dragStart(t4), s.reset(d3);
|
|
1577
|
+
var p3 = s.sibling(d3, 2), u3 = s.child(p3);
|
|
1578
|
+
s.each(u3, 17, () => s.get(a3), s.index, (t4, e4) => {
|
|
1579
|
+
ht(t4, { get title() {
|
|
1580
|
+
return s.get(e4).name;
|
|
1581
|
+
}, children: (t5, r4) => {
|
|
1582
|
+
var o4 = s.comment(), a4 = s.first_child(o4);
|
|
1583
|
+
s.each(a4, 17, () => s.get(e4).items, s.index, (t6, e5) => {
|
|
1584
|
+
{
|
|
1585
|
+
let r5 = s.derived(() => i3.active.name === s.get(e5).name && i3.active.type === s.get(e5).type);
|
|
1586
|
+
ut(t6, { get icon() {
|
|
1587
|
+
return s.get(e5).icon;
|
|
1588
|
+
}, get label() {
|
|
1589
|
+
return s.get(e5).name;
|
|
1590
|
+
}, get active() {
|
|
1591
|
+
return s.get(r5);
|
|
1592
|
+
}, onclick: () => i3.select(s.get(e5)) });
|
|
1593
|
+
}
|
|
1594
|
+
}), s.append(t5, o4);
|
|
1595
|
+
}, $$slots: { default: true } });
|
|
1596
|
+
});
|
|
1597
|
+
var g3 = s.sibling(u3, 2);
|
|
1598
|
+
s.each(g3, 17, () => s.get(n3), s.index, (t4, e4) => {
|
|
1599
|
+
var r4 = s.comment(), o4 = s.first_child(r4), a4 = (t5) => {
|
|
1600
|
+
ht(t5, { get title() {
|
|
1601
|
+
return s.get(e4).name;
|
|
1602
|
+
}, get style() {
|
|
1603
|
+
return s.get(e4).style;
|
|
1604
|
+
}, children: (t6, r5) => {
|
|
1605
|
+
var o5 = s.comment(), a5 = s.first_child(o5);
|
|
1606
|
+
s.each(a5, 17, () => s.get(e4).items, s.index, (t7, e5) => {
|
|
1607
|
+
{
|
|
1608
|
+
let r6 = s.derived(() => i3.active.name === s.get(e5).name && i3.active.type === s.get(e5).type);
|
|
1609
|
+
ut(t7, { get icon() {
|
|
1610
|
+
return s.get(e5).icon;
|
|
1611
|
+
}, get label() {
|
|
1612
|
+
return s.get(e5).name;
|
|
1613
|
+
}, get active() {
|
|
1614
|
+
return s.get(r6);
|
|
1615
|
+
}, onclick: () => i3.select(s.get(e5)) });
|
|
1616
|
+
}
|
|
1617
|
+
}), s.append(t6, o5);
|
|
1618
|
+
}, $$slots: { default: true } });
|
|
1619
|
+
};
|
|
1620
|
+
s.if(o4, (t5) => {
|
|
1621
|
+
s.get(e4).items.length > 0 && t5(a4);
|
|
1622
|
+
}), s.append(t4, r4);
|
|
1623
|
+
}), ht(s.sibling(g3, 4), { title: "", children: (t4, e4) => {
|
|
1624
|
+
var r4 = s.comment(), o4 = s.first_child(r4);
|
|
1625
|
+
s.each(o4, 17, () => l3.items, s.index, (t5, e5) => {
|
|
1626
|
+
{
|
|
1627
|
+
let r5 = s.derived(() => i3.active.name === s.get(e5).name && i3.active.type === s.get(e5).type);
|
|
1628
|
+
ut(t5, { get icon() {
|
|
1629
|
+
return s.get(e5).icon;
|
|
1630
|
+
}, get label() {
|
|
1631
|
+
return s.get(e5).name;
|
|
1632
|
+
}, get active() {
|
|
1633
|
+
return s.get(r5);
|
|
1634
|
+
}, onclick: () => i3.select(s.get(e5)) });
|
|
1635
|
+
}
|
|
1636
|
+
}), s.append(t4, r4);
|
|
1637
|
+
}, $$slots: { default: true } }), s.reset(p3), s.reset(c3), s.append(t3, c3), s.pop();
|
|
1638
|
+
})(l2, {});
|
|
1639
|
+
var c2 = s.sibling(l2, 2), d2 = s.child(c2);
|
|
1640
|
+
!(function(t3, e3) {
|
|
1641
|
+
s.push(e3, true);
|
|
1642
|
+
const { content: r3, win: o3 } = X();
|
|
1643
|
+
var i3 = tt(), a3 = s.child(i3), n3 = s.child(a3);
|
|
1644
|
+
Q(n3, { get icon() {
|
|
1645
|
+
return B;
|
|
1646
|
+
}, iconSize: "size-36", iconStroke: 1.5, padding: "pr-2", label: "Back" }), Q(s.sibling(n3, 2), { get icon() {
|
|
1647
|
+
return Z;
|
|
1648
|
+
}, iconSize: "size-36", iconStroke: 1.5, padding: "pl-2", label: "Forward" }), s.reset(a3);
|
|
1649
|
+
var l3 = s.sibling(a3, 2), c3 = s.child(l3);
|
|
1650
|
+
s.set_class(c3, 1, s.clsx([" superellipse flex h-32 items-center gap-6 rounded-[10px] px-12", "bg-green-600 border-green-700 hover:bg-green-700 shadow-xs text-white border-[0.5px]", "dark:disabled:bg-white/5 dark:disabled:text-white/30", "disabled:bg-black/5 disabled:text-black/30 disabled:cursor-not-allowed disabled:border-0 disabled:shadow-none"])), c3.__click = () => r3 == null ? void 0 : r3.save(), s.sibling(c3, 2).__click = () => r3 == null ? void 0 : r3.publish(), s.reset(l3), s.sibling(l3, 2).__pointerdown = (t4) => o3.dragStart(t4), s.reset(i3), s.template_effect(() => c3.disabled = !(r3 == null ? void 0 : r3.isDirty) || null), s.append(t3, i3), s.pop();
|
|
1651
|
+
})(d2, {});
|
|
1652
|
+
var h2 = s.sibling(d2, 2), p2 = s.child(h2), u2 = (t3) => {
|
|
1653
|
+
var e3 = s.comment(), r3 = s.first_child(e3);
|
|
1654
|
+
s.key(r3, () => {
|
|
1655
|
+
var _a3, _b3;
|
|
1656
|
+
return `${(_a3 = o2.selected) == null ? void 0 : _a3.name}-${(_b3 = o2.selected) == null ? void 0 : _b3.itemId}`;
|
|
1657
|
+
}, (t4) => {
|
|
1658
|
+
zt(t4, {});
|
|
1659
|
+
}), s.append(t3, e3);
|
|
1660
|
+
};
|
|
1661
|
+
s.if(p2, (t3) => {
|
|
1662
|
+
"page" === r2.active.type && t3(u2);
|
|
1663
|
+
});
|
|
1664
|
+
var g2 = s.sibling(p2, 2), b2 = (t3) => {
|
|
1665
|
+
var e3 = s.comment(), o3 = s.first_child(e3), i3 = (t4) => {
|
|
1666
|
+
zt(t4, {});
|
|
1667
|
+
}, a3 = (t4) => {
|
|
1668
|
+
Wt(t4, {});
|
|
1669
|
+
};
|
|
1670
|
+
s.if(o3, (t4) => {
|
|
1671
|
+
r2.active.itemId ? t4(i3) : t4(a3, false);
|
|
1672
|
+
}), s.append(t3, e3);
|
|
1673
|
+
};
|
|
1674
|
+
s.if(g2, (t3) => {
|
|
1675
|
+
"collection" === r2.active.type && t3(b2);
|
|
1676
|
+
});
|
|
1677
|
+
var f2 = s.sibling(g2, 2), m2 = (t3) => {
|
|
1678
|
+
var e3 = Tt();
|
|
1679
|
+
s.append(t3, e3);
|
|
1680
|
+
};
|
|
1681
|
+
s.if(f2, (t3) => {
|
|
1682
|
+
"media" === r2.active.type && t3(m2);
|
|
1683
|
+
}), s.reset(h2), s.reset(c2), s.bind_this(c2, (t3) => i2.contentEl = t3, () => i2 == null ? void 0 : i2.contentEl), s.reset(a2), s.bind_this(a2, (t3) => i2.winEl = t3, () => i2 == null ? void 0 : i2.winEl), s.template_effect(() => {
|
|
1684
|
+
var _a3, _b3, _c2, _d, _e3;
|
|
1685
|
+
s.set_class(a2, 1, s.clsx(["window group/window fixed", ((_a3 = i2.dragging) == null ? void 0 : _a3.active) && "dragging", "text-black/50 dark:text-neutral-50", "text-[15px]/[150%]", "overscroll-contain", "w-full max-w-600", "sm:outline-black/10 dark:sm:outline-white/10", "focus:shadow-2xl focus-within:shadow-2xl shadow-lg", "focus:bg-neutral-100/95 bg-neutral-200/95 backdrop-blur-lg", " dark:bg-neutral-800/95", "flex", `theme-${i2.theme}`, "superellipse sm:outline-[0.5px] right-0 bottom-0 h-700 rounded-[24px]"])), s.set_style(a2, `height: ${i2.dimensions.h}px;
|
|
1686
|
+
width: ${i2.dimensions.w}px;
|
|
1687
|
+
translate: ${i2.dragging.active ? i2.dragging.current.x : (_c2 = (_b3 = i2.position) == null ? void 0 : _b3.current) == null ? void 0 : _c2.x}px ${i2.dragging.active ? i2.dragging.current.y : (_e3 = (_d = i2.position) == null ? void 0 : _d.current) == null ? void 0 : _e3.y}px;`), s.set_class(c2, 1, s.clsx(["superellipse relative h-full w-[calc(100%-180px)] flex-1 overflow-clip rounded-r-[24px]", "transition-opacity duration-300 ease-out-cubic will-change-[opacity]", i2.willClose && "opacity-30"]));
|
|
1688
|
+
}), s.append(t2, a2), s.pop();
|
|
1689
|
+
}
|
|
1690
|
+
s.delegate(["contextmenu"]);
|
|
1691
|
+
var It = s.from_html('<div class="flex w-full items-center gap-6"><div></div> </div>'), Nt = s.from_html("<p> <span> </span></p>"), Ht = s.from_html('<details open><summary class="text-amber-500 border-amber-500/30 mt-8 border-b pb-4 hover:underline"> </summary> <!></details>'), Ft = s.from_html('<div class="bg-black text-white/50 font-mono rounded-lg divide-white/10 [&_span]:text-white fixed bottom-8 left-8 flex max-w-250 flex-col space-y-8 p-8 text-[10px]/none touch:top-8 touch:bottom-auto"><div class="text-amber-500 border-amber-500/30 mt-8 border-b pb-4"><p>Modules</p></div> <!> <!></div>');
|
|
1692
|
+
function Kt(t2, e2) {
|
|
1693
|
+
s.push(e2, true);
|
|
1694
|
+
const { status: r2, win: o2, auth: i2, project: a2 } = X(), n2 = [["Status", r2], ["Auth", i2], ["Project", a2]], l2 = s.derived(() => {
|
|
1695
|
+
var _a3, _b3, _c2, _d, _e3, _f2, _g2, _h3, _i2, _j2, _k2, _l2, _m, _n2, _o2, _p2;
|
|
1696
|
+
return [{ name: "Project", values: [["id", a2.id]] }, { name: "User", values: [["User id", JSON.stringify((_a3 = i2 == null ? void 0 : i2.user) == null ? void 0 : _a3.id)], ["Role", (_b3 = i2 == null ? void 0 : i2.user) == null ? void 0 : _b3.role]] }, { name: "win", values: [["dragging", (_c2 = o2.dragging) == null ? void 0 : _c2.active], ["mouse", ((_d = o2.mouse) == null ? void 0 : _d.x) + ", " + ((_e3 = o2.mouse) == null ? void 0 : _e3.y)], ["start", ((_g2 = (_f2 = o2 == null ? void 0 : o2.dragging) == null ? void 0 : _f2.start) == null ? void 0 : _g2.x) + ", " + ((_i2 = (_h3 = o2 == null ? void 0 : o2.dragging) == null ? void 0 : _h3.start) == null ? void 0 : _i2.y)], ["current", ((_k2 = (_j2 = o2 == null ? void 0 : o2.dragging) == null ? void 0 : _j2.current) == null ? void 0 : _k2.x) + ", " + ((_m = (_l2 = o2 == null ? void 0 : o2.dragging) == null ? void 0 : _l2.current) == null ? void 0 : _m.y)], ["width", (_n2 = o2 == null ? void 0 : o2.dimensions) == null ? void 0 : _n2.w], ["height", (_o2 = o2 == null ? void 0 : o2.dimensions) == null ? void 0 : _o2.h], ["contentScroll", (_p2 = o2 == null ? void 0 : o2.contentScrollState) == null ? void 0 : _p2.y]] }];
|
|
1697
|
+
});
|
|
1698
|
+
var c2 = Ft(), d2 = s.sibling(s.child(c2), 2);
|
|
1699
|
+
s.each(d2, 17, () => n2, s.index, (t3, e3) => {
|
|
1700
|
+
var r3 = s.derived(() => s.to_array(s.get(e3), 2));
|
|
1701
|
+
let o3 = () => s.get(r3)[1];
|
|
1702
|
+
var i3 = It(), a3 = s.child(i3), n3 = s.sibling(a3);
|
|
1703
|
+
s.reset(i3), s.template_effect(() => {
|
|
1704
|
+
var _a3, _b3;
|
|
1705
|
+
s.set_class(a3, 1, s.clsx(["glass size-8 rounded-full", ((_a3 = o3()) == null ? void 0 : _a3.ready) ? "bg-green-500" : ((_b3 = o3()) == null ? void 0 : _b3.loading) ? "bg-orange-500" : "bg-white/10"])), s.set_text(n3, ` ${s.get(r3)[0] ?? ""}`);
|
|
1706
|
+
}), s.append(t3, i3);
|
|
1707
|
+
});
|
|
1708
|
+
var h2 = s.sibling(d2, 2);
|
|
1709
|
+
s.each(h2, 17, () => s.get(l2), s.index, (t3, e3) => {
|
|
1710
|
+
var r3 = Ht(), o3 = s.child(r3), i3 = s.child(o3, true);
|
|
1711
|
+
s.reset(o3);
|
|
1712
|
+
var a3 = s.sibling(o3, 2);
|
|
1713
|
+
s.each(a3, 17, () => s.get(e3).values, s.index, (t4, e4) => {
|
|
1714
|
+
var r4 = s.derived(() => s.to_array(s.get(e4), 2));
|
|
1715
|
+
var o4 = Nt(), i4 = s.child(o4), a4 = s.sibling(i4), n3 = s.child(a4, true);
|
|
1716
|
+
s.reset(a4), s.reset(o4), s.template_effect(() => {
|
|
1717
|
+
s.set_text(i4, `${s.get(r4)[0] ?? ""}: `), s.set_text(n3, s.get(r4)[1]);
|
|
1718
|
+
}), s.append(t4, o4);
|
|
1719
|
+
}), s.reset(r3), s.template_effect(() => s.set_text(i3, s.get(e3).name)), s.append(t3, r3);
|
|
1720
|
+
}), s.reset(c2), s.append(t2, c2), s.pop();
|
|
1721
|
+
}
|
|
1722
|
+
var Ut = s.from_html("<!> <!>", 1);
|
|
1723
|
+
function Xt(t2, r2) {
|
|
1724
|
+
s.push(r2, true);
|
|
1725
|
+
const o2 = ((t3) => {
|
|
1726
|
+
const e2 = { pb: new c("https://db.conte.build"), auth: new O(), bus: new D(), project: new W(), events: new T(), keys: new R(), win: new A(t3.wrapper), status: new N(), can: new _(), dom: new H(), content: new K(), sidebar: new U() };
|
|
1727
|
+
return Object.values(e2).forEach((t4) => {
|
|
1728
|
+
var _a3;
|
|
1729
|
+
t4.init && ((_a3 = t4.init) == null ? void 0 : _a3.call(t4, e2));
|
|
1730
|
+
}), Y.ok("All modules initialized."), { modules: e2, start: () => {
|
|
1731
|
+
Object.values(e2).forEach((t4) => {
|
|
1732
|
+
var _a3;
|
|
1733
|
+
t4.start && ((_a3 = t4.start) == null ? void 0 : _a3.call(t4));
|
|
1734
|
+
});
|
|
1735
|
+
} };
|
|
1736
|
+
})({ wrapper: r2.wrapper });
|
|
1737
|
+
i("app", o2), e(() => o2.start());
|
|
1738
|
+
var a2 = Ut(), n2 = s.first_child(a2);
|
|
1739
|
+
At(n2, {}), Kt(s.sibling(n2, 2), {}), s.append(t2, a2), s.pop();
|
|
1740
|
+
}
|
|
1741
|
+
const Yt = () => {
|
|
1742
|
+
if ("undefined" == typeof window || !window.__OKNO_ADAPTER__) return;
|
|
1743
|
+
const t2 = document.createElement("div");
|
|
1744
|
+
t2.id = "okno-shadow-root";
|
|
1745
|
+
const e2 = t2.attachShadow({ mode: "open" });
|
|
1746
|
+
e2.innerHTML = '<style>/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-orange-200:oklch(90.1% .076 70.697);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:#ec4700;--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-cyan-600:oklch(60.9% .126 221.723);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-blue-600:oklch(54.6% .245 262.881);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:#202020;--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-stone-100:oklch(97% .001 106.424);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:1px;--text-xs:.75em;--text-sm:.875em;--text-sm--line-height: calc(1.25/.875em) ;--text-base:1em;--text-lg:1.125em;--font-weight-normal:400;--font-weight-medium:500;--radius-lg:.5rem;--drop-shadow-xs:0 1px 1px #0000000d;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1.5s linear infinite;--blur-lg:16px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--ease-in-cubic:cubic-bezier(.5,0,.6,.2);--ease-out-cubic:cubic-bezier(.2,.6,.35,1);--ease-spring-bounce:linear(0,.0024 .38%,.01,.0225,.0395 1.6%,.0898 2.48%,.1607 3.41%,.2314 4.2%,.3214 5.1%,.6696 8.31%,.8106,.9368 11.05%,1.0395,1.1222 13.68%,1.155,1.1829,1.2059 15.6%,1.2249,1.2388 16.94%,1.2484 17.64%,1.2535 18.46%,1.2524 19.33%,1.2451 20.24%,1.232,1.2142 22.1%,1.1901 23.15%,1.0569 28.08%,1.0258 29.36%,1.0004 30.56%,.9758,.9573,.9446 34.76%,.9374 36.21%,.9358 37.96%,.9411 39.92%,.9519 41.93%,.9852 46.77%,.9993 49.19%,1.0102 51.87%,1.0156 54.61%,1.0163 56.51%,1.015 58.61%,1.0004 67.73%,.9962 72.9%,.9962 77.36%,1.0008 89.98%,1.0006 99.98%)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.top-9{top:calc(var(--spacing)*9)}.top-18{top:calc(var(--spacing)*18)}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-9{right:calc(var(--spacing)*9)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-8{left:calc(var(--spacing)*8)}.left-18{left:calc(var(--spacing)*18)}.left-full{left:100%}.z-0{z-index:0}.z-1{z-index:1}.z-10{z-index:10}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.size-32{width:calc(var(--spacing)*32);height:calc(var(--spacing)*32)}.size-36{width:calc(var(--spacing)*36);height:calc(var(--spacing)*36)}.size-48{width:calc(var(--spacing)*48);height:calc(var(--spacing)*48)}.h-14{height:calc(var(--spacing)*14)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-32{height:calc(var(--spacing)*32)}.h-40{height:calc(var(--spacing)*40)}.h-44{height:calc(var(--spacing)*44)}.h-50{height:calc(var(--spacing)*50)}.h-700{height:calc(var(--spacing)*700)}.h-\\[calc\\(100\\%-50px\\)\\]{height:calc(100% - 50px)}.h-full{height:100%}.min-h-\\[calc\\(100\\%-50px\\)\\]{min-height:calc(100% - 50px)}.w-5{width:calc(var(--spacing)*5)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-180{width:calc(var(--spacing)*180)}.w-\\[calc\\(100\\%-180px\\)\\]{width:calc(100% - 180px)}.w-auto{width:auto}.w-full{width:100%}.max-w-250{max-width:calc(var(--spacing)*250)}.max-w-600{max-width:calc(var(--spacing)*600)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-120{min-width:calc(var(--spacing)*120)}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:0 100%}.origin-bottom-right{transform-origin:100% 100%}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-2{--tw-translate-x:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing)*3);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-\\[calc\\(100\\%\\+8px\\)\\]{--tw-translate-y: calc((100% + 8px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-80{--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-ew-resize{cursor:ew-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-16{gap:calc(var(--spacing)*16)}.gap-24{gap:calc(var(--spacing)*24)}.gap-28{gap:calc(var(--spacing)*28)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-white\\/10>:not(:last-child)){border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){:where(.divide-white\\/10>:not(:last-child)){border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-x-auto{overflow-x:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[12px\\]{border-radius:12px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[16px\\]{border-radius:16px}.rounded-\\[24px\\]{border-radius:24px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-tl-\\[20px\\]{border-top-left-radius:20px}.rounded-r-\\[24px\\]{border-top-right-radius:24px;border-bottom-right-radius:24px}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[24px\\]{border-top-right-radius:24px}.rounded-b-\\[20px\\]{border-bottom-right-radius:20px;border-bottom-left-radius:20px}.rounded-br-\\[4px\\]{border-bottom-right-radius:4px}.rounded-br-\\[20px\\]{border-bottom-right-radius:20px}.rounded-bl-\\[4px\\]{border-bottom-left-radius:4px}.rounded-bl-\\[20px\\]{border-bottom-left-radius:20px}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[0\\.5px\\]{border-style:var(--tw-border-style);border-width:.5px}.border-\\[0\\.7px\\]{border-style:var(--tw-border-style);border-width:.7px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-r-\\[0\\.5px\\]{border-right-style:var(--tw-border-style);border-right-width:.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-b-\\[0\\.7px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.7px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-amber-500\\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\\/30{border-color:color-mix(in oklab,var(--color-amber-500)30%,transparent)}}.border-black\\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\\/10{border-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.border-green-700{border-color:var(--color-green-700)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-500\\/20{border-color:#73737333}@supports (color:color-mix(in lab,red,red)){.border-neutral-500\\/20{border-color:color-mix(in oklab,var(--color-neutral-500)20%,transparent)}}.border-neutral-800\\/0{border-color:#0000}@supports (color:color-mix(in lab,red,red)){.border-neutral-800\\/0{border-color:color-mix(in oklab,var(--color-neutral-800)0%,transparent)}}.border-orange-200\\/10{border-color:#ffd7a81a}@supports (color:color-mix(in lab,red,red)){.border-orange-200\\/10{border-color:color-mix(in oklab,var(--color-orange-200)10%,transparent)}}.border-orange-700{border-color:var(--color-orange-700)}.border-sky-600{border-color:var(--color-sky-600)}.bg-black{background-color:var(--color-black)}.bg-black\\/5{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\\/15{background-color:#00000026}@supports (color:color-mix(in lab,red,red)){.bg-black\\/15{background-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200\\/95{background-color:#e5e5e5f2}@supports (color:color-mix(in lab,red,red)){.bg-neutral-200\\/95{background-color:color-mix(in oklab,var(--color-neutral-200)95%,transparent)}}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-neutral-900\\/8{background-color:#17171714}@supports (color:color-mix(in lab,red,red)){.bg-neutral-900\\/8{background-color:color-mix(in oklab,var(--color-neutral-900)8%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-rose-500\\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.bg-rose-500\\/0{background-color:color-mix(in oklab,var(--color-rose-500)0%,transparent)}}.bg-sky-500{background-color:var(--color-sky-500)}.bg-white{background-color:var(--color-white)}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.p-2{padding:calc(var(--spacing)*2)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.px-16{padding-inline:calc(var(--spacing)*16)}.px-20{padding-inline:calc(var(--spacing)*20)}.px-\\[0\\.3em\\]{padding-inline:.3em}.py-1{padding-block:calc(var(--spacing)*1)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-9{padding-block:calc(var(--spacing)*9)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-\\[0\\.2em\\]{padding-block:.2em}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-9{padding-top:calc(var(--spacing)*9)}.pt-10{padding-top:calc(var(--spacing)*10)}.pr-2{padding-right:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pb-12{padding-bottom:calc(var(--spacing)*12)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-12{padding-left:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-\\[10px\\]\\/none{font-size:10px;line-height:1}.text-\\[13px\\]\\/\\[120\\%\\]{font-size:13px;line-height:120%}.text-\\[14px\\]\\/\\[120\\%\\]{font-size:14px;line-height:120%}.text-\\[15px\\]\\/\\[150\\%\\]{font-size:15px;line-height:150%}.text-\\[20px\\]\\/none{font-size:20px;line-height:1}.text-\\[24px\\]\\/none{font-size:24px;line-height:1}.text-base\\/\\[125\\%\\]{font-size:var(--text-base);line-height:125%}.text-base\\/none{font-size:var(--text-base);line-height:1}.text-lg\\/none{font-size:var(--text-lg);line-height:1}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/\\[140\\%\\]{font-size:var(--text-sm);line-height:140%}.text-sm\\/none{font-size:var(--text-sm);line-height:1}.text-xs\\/none{font-size:var(--text-xs);line-height:1}.leading-\\[90\\%\\]{--tw-leading:90%;line-height:90%}.leading-\\[140\\%\\]{--tw-leading:140%;line-height:140%}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.whitespace-nowrap{white-space:nowrap}.text-amber-500{color:var(--color-amber-500)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab,red,red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-neutral-300{color:var(--color-neutral-300)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-950\\/30{color:#0a0a0a4d}@supports (color:color-mix(in lab,red,red)){.text-neutral-950\\/30{color:color-mix(in oklab,var(--color-neutral-950)30%,transparent)}}.text-orange-600{color:var(--color-orange-600)}.text-rose-500{color:var(--color-rose-500)}.text-sky-500{color:var(--color-sky-500)}.text-stone-300{color:var(--color-stone-300)}.text-white{color:var(--color-white)}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.capitalize{text-transform:capitalize}.italic{font-style:italic}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.drop-shadow-xs{--tw-drop-shadow-size:drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000d));--tw-drop-shadow:drop-shadow(var(--drop-shadow-xs));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[opacity\\,scale\\]{transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-out-cubic{--tw-ease:var(--ease-out-cubic);transition-timing-function:var(--ease-out-cubic)}.ease-spring-bounce{--tw-ease:var(--ease-spring-bounce);transition-timing-function:var(--ease-spring-bounce)}.will-change-\\[opacity\\]{will-change:opacity}.will-change-\\[rotation\\]{will-change:rotation}.select-none{-webkit-user-select:none;user-select:none}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-1000{animation-duration:1s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.ease-out-cubic{animation-timing-function:cubic-bezier(.2,.6,.35,1)}.ease-spring-bounce{animation-timing-function:linear(0,.0024 .38%,.01,.0225,.0395 1.6%,.0898 2.48%,.1607 3.41%,.2314 4.2%,.3214 5.1%,.6696 8.31%,.8106,.9368 11.05%,1.0395,1.1222 13.68%,1.155,1.1829,1.2059 15.6%,1.2249,1.2388 16.94%,1.2484 17.64%,1.2535 18.46%,1.2524 19.33%,1.2451 20.24%,1.232,1.2142 22.1%,1.1901 23.15%,1.0569 28.08%,1.0258 29.36%,1.0004 30.56%,.9758,.9573,.9446 34.76%,.9374 36.21%,.9358 37.96%,.9411 39.92%,.9519 41.93%,.9852 46.77%,.9993 49.19%,1.0102 51.87%,1.0156 54.61%,1.0163 56.51%,1.015 58.61%,1.0004 67.73%,.9962 72.9%,.9962 77.36%,1.0008 89.98%,1.0006 99.98%)}.group-first\\/th\\:pl-34:is(:where(.group\\/th):first-child *){padding-left:calc(var(--spacing)*34)}.group-last\\/th\\:border-r-0:is(:where(.group\\/th):last-child *){border-right-style:var(--tw-border-style);border-right-width:0}@media(hover:hover){.group-hover\\/listitem\\:text-neutral-400:is(:where(.group\\/listitem):hover *){color:var(--color-neutral-400)}}.group-has-focus-within\\/window\\:bg-amber-400:is(:where(.group\\/window):has(:focus-within) *){background-color:var(--color-amber-400)}.group-has-focus-within\\/window\\:bg-green-400:is(:where(.group\\/window):has(:focus-within) *){background-color:var(--color-green-400)}.group-has-focus-within\\/window\\:bg-rose-500:is(:where(.group\\/window):has(:focus-within) *){background-color:var(--color-rose-500)}.first\\:rounded-t-\\[10px\\]:first-child{border-top-left-radius:10px;border-top-right-radius:10px}.first\\:rounded-t-\\[16px\\]:first-child{border-top-left-radius:16px;border-top-right-radius:16px}.first\\:pl-8:first-child{padding-left:calc(var(--spacing)*8)}.first\\:text-neutral-500:first-child{color:var(--color-neutral-500)}.last\\:rounded-b-\\[10px\\]:last-child{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.last\\:rounded-b-\\[16px\\]:last-child{border-bottom-right-radius:16px;border-bottom-left-radius:16px}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\\:z-10:focus-within{z-index:10}.focus-within\\:shadow-2xl:focus-within{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.hover\\:border-neutral-300:hover{border-color:var(--color-neutral-300)}.hover\\:border-orange-800:hover{border-color:var(--color-orange-800)}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.hover\\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\\:bg-neutral-50:hover{background-color:var(--color-neutral-50)}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-orange-600\\/10:hover{background-color:#ec47001a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-orange-600\\/10:hover{background-color:color-mix(in oklab,var(--color-orange-600)10%,transparent)}}.hover\\:bg-orange-700:hover{background-color:var(--color-orange-700)}.hover\\:bg-sky-600:hover{background-color:var(--color-sky-600)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-orange-500:hover{color:var(--color-orange-500)}.hover\\:text-orange-600:hover{color:var(--color-orange-600)}.hover\\:underline:hover{text-decoration-line:underline}.group-has-focus-within\\/window\\:hover\\:bg-amber-500:is(:where(.group\\/window):has(:focus-within) *):hover{background-color:var(--color-amber-500)}.group-has-focus-within\\/window\\:hover\\:bg-green-500:is(:where(.group\\/window):has(:focus-within) *):hover{background-color:var(--color-green-500)}.group-has-focus-within\\/window\\:hover\\:bg-rose-600:is(:where(.group\\/window):has(:focus-within) *):hover{background-color:var(--color-rose-600)}}.focus\\:z-10:focus{z-index:10}.focus\\:bg-neutral-100\\/95:focus{background-color:#f5f5f5f2}@supports (color:color-mix(in lab,red,red)){.focus\\:bg-neutral-100\\/95:focus{background-color:color-mix(in oklab,var(--color-neutral-100)95%,transparent)}}.focus\\:shadow-2xl:focus{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:outline-0:focus{outline-style:var(--tw-outline-style);outline-width:0}.active\\:bg-black\\/10:active{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.active\\:bg-black\\/10:active{background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.active\\:bg-neutral-100:active{background-color:var(--color-neutral-100)}.active\\:bg-neutral-200:active{background-color:var(--color-neutral-200)}.active\\:bg-orange-600\\/20:active{background-color:#ec470033}@supports (color:color-mix(in lab,red,red)){.active\\:bg-orange-600\\/20:active{background-color:color-mix(in oklab,var(--color-orange-600)20%,transparent)}}.active\\:bg-orange-900:active{background-color:var(--color-orange-900)}.active\\:bg-sky-700:active{background-color:var(--color-sky-700)}.active\\:text-orange-600:active{color:var(--color-orange-600)}.group-has-focus-within\\/window\\:active\\:bg-amber-600:is(:where(.group\\/window):has(:focus-within) *):active{background-color:var(--color-amber-600)}.group-has-focus-within\\/window\\:active\\:bg-green-600:is(:where(.group\\/window):has(:focus-within) *):active{background-color:var(--color-green-600)}.group-has-focus-within\\/window\\:active\\:bg-rose-700:is(:where(.group\\/window):has(:focus-within) *):active{background-color:var(--color-rose-700)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-0:disabled{border-style:var(--tw-border-style);border-width:0}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.disabled\\:bg-black\\/5:disabled{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.disabled\\:bg-neutral-100:disabled{background-color:var(--color-neutral-100)}.disabled\\:text-black\\/30:disabled{color:#0000004d}@supports (color:color-mix(in lab,red,red)){.disabled\\:text-black\\/30:disabled{color:color-mix(in oklab,var(--color-black)30%,transparent)}}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.disabled\\:saturate-0:disabled{--tw-saturate:saturate(0%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.has-disabled\\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\\:bg-stone-100:has(:disabled){background-color:var(--color-stone-100)}@media(min-width:40rem){.sm\\:outline-\\[0\\.5px\\]{outline-style:var(--tw-outline-style);outline-width:.5px}.sm\\:outline-black\\/10{outline-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.sm\\:outline-black\\/10{outline-color:color-mix(in oklab,var(--color-black)10%,transparent)}}}@media(prefers-color-scheme:dark){.dark\\:border-white\\/5{border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/5{border-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:bg-neutral-800{background-color:var(--color-neutral-800)}.dark\\:bg-neutral-800\\/95{background-color:#202020f2}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-800\\/95{background-color:color-mix(in oklab,var(--color-neutral-800)95%,transparent)}}.dark\\:bg-neutral-900{background-color:var(--color-neutral-900)}.dark\\:bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-white\\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:text-neutral-50{color:var(--color-neutral-50)}.dark\\:text-neutral-200{color:var(--color-neutral-200)}.dark\\:text-neutral-300{color:var(--color-neutral-300)}.dark\\:text-neutral-400{color:var(--color-neutral-400)}.dark\\:text-white{color:var(--color-white)}.dark\\:text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.dark\\:text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.dark\\:first\\:text-neutral-200:first-child{color:var(--color-neutral-200)}@media(hover:hover){.dark\\:hover\\:bg-neutral-700:hover{background-color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-800:hover{background-color:var(--color-neutral-800)}.dark\\:hover\\:bg-white\\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-white\\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}}.dark\\:active\\:bg-neutral-600:active{background-color:var(--color-neutral-600)}.dark\\:active\\:bg-white\\/10:active{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:active\\:bg-white\\/10:active{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:disabled\\:bg-white\\/5:disabled{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:disabled\\:bg-white\\/5:disabled{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:disabled\\:text-white\\/30:disabled{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.dark\\:disabled\\:text-white\\/30:disabled{color:color-mix(in oklab,var(--color-white)30%,transparent)}}@media(min-width:40rem){.dark\\:sm\\:outline-white\\/10{outline-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:sm\\:outline-white\\/10{outline-color:color-mix(in oklab,var(--color-white)10%,transparent)}}}}@media(hover:none)and (pointer:coarse){.touch\\:top-8{top:calc(var(--spacing)*8)}.touch\\:bottom-auto{bottom:auto}}.\\[\\&_span\\]\\:text-white span{color:var(--color-white)}}.flex-center{justify-content:center;align-items:center;display:flex}.absolute-center{--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);position:absolute;top:50%;left:50%}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--px:.5px;--tw-scroll-snap-strictness:proximity}.xxx{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.xxx{background-color:color-mix(in oklab,var(--color-orange-500)10%,transparent)}}.xxxx{border-style:var(--tw-border-style);border-width:1px;border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.xxxx{border-color:color-mix(in oklab,var(--color-orange-500)20%,transparent)}}.xxxx{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.xxxx{background-color:color-mix(in oklab,var(--color-orange-500)10%,transparent)}}.squircle{corner-shape:squircle}.superellipse{corner-shape:superellipse(1.4)}#okno-wrapper{font-synthesis:none;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:400;line-height:155%}.button{box-shadow:inset 0 -1px 2px #00000026,inset 0 1px 2px #fff6,0 2px 2px #0000001a}.focus-visible:focus{outline-style:var(--tw-outline-style);outline-width:0}.focus-visible:focus-visible{outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:var(--color-cyan-600)}.focus-visible-orange:focus{outline-style:var(--tw-outline-style);outline-width:0}.focus-visible-orange:focus-visible{outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:var(--color-orange-600)}.input{width:100%}.window{transition:scale .1s,box-shadow .1s}:is(textarea:autofill,input:autofill){transition:background-color 9999s ease-in-out;box-shadow:0 0 0 1000px var(--color-neutral-50) inset!important;-webkit-box-shadow:0 0 0 1000px var(--color-neutral-50)inset!important;-webkit-text-fill-color:var(--color-neutral-600)!important}@media(prefers-color-scheme:dark){:is(textarea:autofill,input:autofill){transition:background-color 9999s ease-in-out;box-shadow:0 0 0 1000px var(--color-neutral-800) inset!important;-webkit-box-shadow:0 0 0 1000px var(--color-neutral-800)inset!important;-webkit-text-fill-color:var(--color-neutral-200)!important}}.frame{box-sizing:border-box;border-style:var(--tw-border-style);border-width:.5px;border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.frame{border-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.frame{background-color:var(--color-white);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(prefers-color-scheme:dark){.frame{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.frame{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.frame{background-color:var(--color-neutral-800)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}</style>';
|
|
1747
|
+
const r2 = document.createElement("div");
|
|
1748
|
+
r2.id = "okno-wrapper", e2.appendChild(r2), document.body.appendChild(t2), document.head.insertAdjacentHTML("beforeend", '<style id="okno-global-styles">:root{--okno-color-primary: oklch(68.5% .169 237.323 / 30%);--okno-color-primary-hover: oklch(68.5% .169 237.323 / 50%);--okno-color-primary-active: oklch(68.5% .169 237.323);--okno-color-bg: oklch(68.5% .169 237.323 / 10%);--okno-color-bg-hover: #2a2a2a;--okno-color-text: #ffffff;--okno-color-text-secondary: #aaaaaa;--okno-color-border: #333333;--okno-color-border-hover: #444444}[data-okno]{position:relative}[data-okno]:focus{outline:0px solid transparent}.okno-edit [data-okno]{cursor:pointer}.okno-edit [data-okno]:before{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border:solid 1px transparent;transition-property:inset,border-color,border-radius,filter,background-color;transition-duration:.1s;transition-timing-function:var(--ease-in-cubic);will-change:inset,border-color,border-radius,filter}.okno-edit [data-okno]:hover:before,.okno-edit [data-okno].okno-edit-field:before{top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:4px;border:solid 1px var(--okno-color-primary-active);background-color:var(--okno-color-bg);filter:drop-shadow(0 1px 1px var(--okno-color-primary));transition-timing-function:var(--ease-out-cubic)}.okno-edit [data-okno].okno-edit-field:before{background-color:transparent;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:8px}[data-okno-window]{view-transition-name:okno-window}</style>'), a(Xt, { target: r2, props: { wrapper: r2 } });
|
|
1749
|
+
};
|
|
1750
|
+
"undefined" != typeof document && ("loading" === document.readyState ? document.addEventListener("DOMContentLoaded", Yt) : Yt());
|
|
1751
|
+
export {
|
|
1752
|
+
Yt as editor
|
|
1753
|
+
};
|