@ohbug/extension-feedback 0.4.0 → 0.6.0
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/LICENSE +6 -6
- package/README.md +22 -25
- package/dist/Box.d.ts.map +1 -1
- package/dist/Selector.d.ts.map +1 -1
- package/dist/index.js +36 -36
- package/dist/index.mjs +243 -227
- package/dist/store.d.ts +2 -2
- package/dist/store.d.ts.map +1 -1
- package/package.json +12 -30
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
const S = {};
|
|
2
|
+
function Le(e) {
|
|
3
|
+
S.context = e;
|
|
4
4
|
}
|
|
5
|
-
const
|
|
6
|
-
equals:
|
|
5
|
+
const ze = (e, t) => e === t, z = Symbol("solid-proxy"), He = Symbol("solid-track"), W = {
|
|
6
|
+
equals: ze
|
|
7
7
|
};
|
|
8
8
|
let be = me;
|
|
9
|
-
const
|
|
9
|
+
const H = {}, O = 1, X = 2, pe = {
|
|
10
10
|
owned: null,
|
|
11
11
|
cleanups: null,
|
|
12
12
|
context: null,
|
|
13
13
|
owner: null
|
|
14
14
|
};
|
|
15
15
|
var y = null;
|
|
16
|
-
let G = null, b = null,
|
|
16
|
+
let G = null, b = null, B = null, $ = null, E = null, le = 0;
|
|
17
17
|
function je(e, t) {
|
|
18
18
|
const n = b, o = y, l = e.length === 0, s = l ? pe : {
|
|
19
19
|
owned: null,
|
|
@@ -34,10 +34,10 @@ function F(e, t) {
|
|
|
34
34
|
value: e,
|
|
35
35
|
observers: null,
|
|
36
36
|
observerSlots: null,
|
|
37
|
-
pending:
|
|
37
|
+
pending: H,
|
|
38
38
|
comparator: t.equals || void 0
|
|
39
|
-
}, o = (l) => (typeof l == "function" && (l = l(n.pending !==
|
|
40
|
-
return [
|
|
39
|
+
}, o = (l) => (typeof l == "function" && (l = l(n.pending !== H ? n.pending : n.value)), ie(n, l));
|
|
40
|
+
return [ve.bind(n), o];
|
|
41
41
|
}
|
|
42
42
|
function j(e, t, n) {
|
|
43
43
|
const o = re(e, t, !1, O);
|
|
@@ -46,29 +46,29 @@ function j(e, t, n) {
|
|
|
46
46
|
function we(e, t, n) {
|
|
47
47
|
be = Fe;
|
|
48
48
|
const o = re(e, t, !1, O);
|
|
49
|
-
o.user = !0,
|
|
49
|
+
o.user = !0, E ? E.push(o) : I(o);
|
|
50
50
|
}
|
|
51
51
|
function de(e, t, n) {
|
|
52
52
|
n = n ? Object.assign({}, W, n) : W;
|
|
53
53
|
const o = re(e, t, !0, 0);
|
|
54
|
-
return o.pending =
|
|
54
|
+
return o.pending = H, o.observers = null, o.observerSlots = null, o.comparator = n.equals || void 0, I(o), ve.bind(o);
|
|
55
55
|
}
|
|
56
56
|
function ye(e) {
|
|
57
|
-
if (
|
|
57
|
+
if (B)
|
|
58
58
|
return e();
|
|
59
59
|
let t;
|
|
60
|
-
const n =
|
|
60
|
+
const n = B = [];
|
|
61
61
|
try {
|
|
62
62
|
t = e();
|
|
63
63
|
} finally {
|
|
64
|
-
|
|
64
|
+
B = null;
|
|
65
65
|
}
|
|
66
66
|
return ce(() => {
|
|
67
67
|
for (let o = 0; o < n.length; o += 1) {
|
|
68
68
|
const l = n[o];
|
|
69
|
-
if (l.pending !==
|
|
69
|
+
if (l.pending !== H) {
|
|
70
70
|
const s = l.pending;
|
|
71
|
-
l.pending =
|
|
71
|
+
l.pending = H, ie(l, s);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}, !1), t;
|
|
@@ -77,17 +77,17 @@ function se(e) {
|
|
|
77
77
|
let t, n = b;
|
|
78
78
|
return b = null, t = e(), b = n, t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Me(e) {
|
|
81
81
|
return y === null || (y.cleanups === null ? y.cleanups = [e] : y.cleanups.push(e)), e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function $e() {
|
|
84
84
|
return b;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ve() {
|
|
87
87
|
const e = G;
|
|
88
88
|
if (this.sources && (this.state || e)) {
|
|
89
|
-
const t =
|
|
90
|
-
|
|
89
|
+
const t = $;
|
|
90
|
+
$ = null, this.state === O || e ? I(this) : Y(this), $ = t;
|
|
91
91
|
}
|
|
92
92
|
if (b) {
|
|
93
93
|
const t = this.observers ? this.observers.length : 0;
|
|
@@ -96,18 +96,18 @@ function $e() {
|
|
|
96
96
|
return this.value;
|
|
97
97
|
}
|
|
98
98
|
function ie(e, t, n) {
|
|
99
|
-
if (
|
|
100
|
-
return e.pending ===
|
|
99
|
+
if (B)
|
|
100
|
+
return e.pending === H && B.push(e), e.pending = t, t;
|
|
101
101
|
if (e.comparator && e.comparator(e.value, t))
|
|
102
102
|
return t;
|
|
103
103
|
let o = !1;
|
|
104
104
|
return e.value = t, e.observers && e.observers.length && ce(() => {
|
|
105
105
|
for (let l = 0; l < e.observers.length; l += 1) {
|
|
106
106
|
const s = e.observers[l];
|
|
107
|
-
o && G.disposed.has(s), (o && !s.tState || !o && !s.state) && (s.pure ?
|
|
107
|
+
o && G.disposed.has(s), (o && !s.tState || !o && !s.state) && (s.pure ? $.push(s) : E.push(s), s.observers && xe(s)), o || (s.state = O);
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
throw
|
|
109
|
+
if ($.length > 1e6)
|
|
110
|
+
throw $ = [], new Error();
|
|
111
111
|
}, !1), t;
|
|
112
112
|
}
|
|
113
113
|
function I(e) {
|
|
@@ -115,14 +115,14 @@ function I(e) {
|
|
|
115
115
|
return;
|
|
116
116
|
ue(e);
|
|
117
117
|
const t = y, n = b, o = le;
|
|
118
|
-
b = y = e,
|
|
118
|
+
b = y = e, De(e, e.value, o), b = n, y = t;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function De(e, t, n) {
|
|
121
121
|
let o;
|
|
122
122
|
try {
|
|
123
123
|
o = e.fn(t);
|
|
124
124
|
} catch (l) {
|
|
125
|
-
|
|
125
|
+
Ee(l);
|
|
126
126
|
}
|
|
127
127
|
(!e.updatedAt || e.updatedAt <= n) && (e.observers && e.observers.length ? ie(e, o) : e.value = o, e.updatedAt = n);
|
|
128
128
|
}
|
|
@@ -157,26 +157,26 @@ function R(e) {
|
|
|
157
157
|
if (e = n[o], e.state === O || t)
|
|
158
158
|
I(e);
|
|
159
159
|
else if (e.state === X || t) {
|
|
160
|
-
const l =
|
|
161
|
-
|
|
160
|
+
const l = $;
|
|
161
|
+
$ = null, Y(e, n[0]), $ = l;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function ce(e, t) {
|
|
165
|
-
if (
|
|
165
|
+
if ($)
|
|
166
166
|
return e();
|
|
167
167
|
let n = !1;
|
|
168
|
-
t || (
|
|
168
|
+
t || ($ = []), E ? n = !0 : E = [], le++;
|
|
169
169
|
try {
|
|
170
170
|
const o = e();
|
|
171
|
-
return
|
|
171
|
+
return Be(n), o;
|
|
172
172
|
} catch (o) {
|
|
173
|
-
|
|
173
|
+
$ || (E = null), Ee(o);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
178
|
-
be(
|
|
179
|
-
}) :
|
|
176
|
+
function Be(e) {
|
|
177
|
+
$ && (me($), $ = null), !e && (E.length ? ye(() => {
|
|
178
|
+
be(E), E = null;
|
|
179
|
+
}) : E = null);
|
|
180
180
|
}
|
|
181
181
|
function me(e) {
|
|
182
182
|
for (let t = 0; t < e.length; t++)
|
|
@@ -188,7 +188,7 @@ function Fe(e) {
|
|
|
188
188
|
const l = e[t];
|
|
189
189
|
l.user ? e[n++] = l : R(l);
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
S.context && Le();
|
|
192
192
|
const o = e.length;
|
|
193
193
|
for (t = 0; t < n; t++)
|
|
194
194
|
R(e[t]);
|
|
@@ -207,7 +207,7 @@ function xe(e) {
|
|
|
207
207
|
const t = G;
|
|
208
208
|
for (let n = 0; n < e.observers.length; n += 1) {
|
|
209
209
|
const o = e.observers[n];
|
|
210
|
-
(!o.state || t) && (o.state = X, o.pure ?
|
|
210
|
+
(!o.state || t) && (o.state = X, o.pure ? $.push(o) : E.push(o), o.observers && xe(o));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function ue(e) {
|
|
@@ -232,10 +232,10 @@ function ue(e) {
|
|
|
232
232
|
}
|
|
233
233
|
e.state = 0, e.context = null;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Ee(e) {
|
|
236
236
|
throw e;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function x(e, t) {
|
|
239
239
|
return se(() => e(t || {}));
|
|
240
240
|
}
|
|
241
241
|
function V(e) {
|
|
@@ -253,7 +253,7 @@ function V(e) {
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
function Re(e, t, n) {
|
|
256
|
-
let o = n.length, l = t.length, s = o, i = 0, r = 0, c = t[l - 1].nextSibling,
|
|
256
|
+
let o = n.length, l = t.length, s = o, i = 0, r = 0, c = t[l - 1].nextSibling, f = null;
|
|
257
257
|
for (; i < l || r < s; ) {
|
|
258
258
|
if (t[i] === n[r]) {
|
|
259
259
|
i++, r++;
|
|
@@ -267,24 +267,24 @@ function Re(e, t, n) {
|
|
|
267
267
|
e.insertBefore(n[r++], a);
|
|
268
268
|
} else if (s === r)
|
|
269
269
|
for (; i < l; )
|
|
270
|
-
(!
|
|
270
|
+
(!f || !f.has(t[i])) && t[i].remove(), i++;
|
|
271
271
|
else if (t[i] === n[s - 1] && n[r] === t[l - 1]) {
|
|
272
272
|
const a = t[--l].nextSibling;
|
|
273
273
|
e.insertBefore(n[r++], t[i++].nextSibling), e.insertBefore(n[--s], a), t[l] = n[s];
|
|
274
274
|
} else {
|
|
275
|
-
if (!
|
|
276
|
-
|
|
277
|
-
let
|
|
278
|
-
for (;
|
|
279
|
-
|
|
275
|
+
if (!f) {
|
|
276
|
+
f = /* @__PURE__ */ new Map();
|
|
277
|
+
let h = r;
|
|
278
|
+
for (; h < s; )
|
|
279
|
+
f.set(n[h], h++);
|
|
280
280
|
}
|
|
281
|
-
const a =
|
|
281
|
+
const a = f.get(t[i]);
|
|
282
282
|
if (a != null)
|
|
283
283
|
if (r < a && a < s) {
|
|
284
|
-
let
|
|
285
|
-
for (; ++
|
|
286
|
-
|
|
287
|
-
if (
|
|
284
|
+
let h = i, v = 1, _;
|
|
285
|
+
for (; ++h < l && h < s && !((_ = f.get(t[h])) == null || _ !== a + v); )
|
|
286
|
+
v++;
|
|
287
|
+
if (v > a - r) {
|
|
288
288
|
const C = t[i];
|
|
289
289
|
for (; r < a; )
|
|
290
290
|
e.insertBefore(n[r++], C);
|
|
@@ -312,22 +312,19 @@ function N(e, t, n) {
|
|
|
312
312
|
let l = o.content.firstChild;
|
|
313
313
|
return n && (l = l.firstChild), l;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Se(e, t = window.document) {
|
|
316
316
|
const n = t[he] || (t[he] = /* @__PURE__ */ new Set());
|
|
317
317
|
for (let o = 0, l = e.length; o < l; o++) {
|
|
318
318
|
const s = e[o];
|
|
319
|
-
n.has(s) || (n.add(s), t.addEventListener(s,
|
|
319
|
+
n.has(s) || (n.add(s), t.addEventListener(s, Ue));
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
function Ue(e, t) {
|
|
323
|
-
t == null ? e.removeAttribute("class") : e.className = t;
|
|
324
|
-
}
|
|
325
322
|
function m(e, t, n, o) {
|
|
326
323
|
if (n !== void 0 && !o && (o = []), typeof t != "function")
|
|
327
324
|
return J(e, t, o, n);
|
|
328
325
|
j((l) => J(e, t(), l, n), o);
|
|
329
326
|
}
|
|
330
|
-
function
|
|
327
|
+
function Ue(e) {
|
|
331
328
|
const t = `$$${e.type}`;
|
|
332
329
|
let n = e.composedPath && e.composedPath()[0] || e.target;
|
|
333
330
|
for (e.target !== n && Object.defineProperty(e, "target", {
|
|
@@ -338,7 +335,7 @@ function Ge(e) {
|
|
|
338
335
|
get() {
|
|
339
336
|
return n || document;
|
|
340
337
|
}
|
|
341
|
-
}),
|
|
338
|
+
}), S.registry && !S.done && (S.done = !0, document.querySelectorAll("[id^=pl-]").forEach((o) => o.remove())); n !== null; ) {
|
|
342
339
|
const o = n[t];
|
|
343
340
|
if (o && !n.disabled) {
|
|
344
341
|
const l = n[`${t}Data`];
|
|
@@ -349,13 +346,13 @@ function Ge(e) {
|
|
|
349
346
|
}
|
|
350
347
|
}
|
|
351
348
|
function J(e, t, n, o, l) {
|
|
352
|
-
for (
|
|
349
|
+
for (S.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
353
350
|
n = n();
|
|
354
351
|
if (t === n)
|
|
355
352
|
return n;
|
|
356
353
|
const s = typeof t, i = o !== void 0;
|
|
357
354
|
if (e = i && n[0] && n[0].parentNode || e, s === "string" || s === "number") {
|
|
358
|
-
if (
|
|
355
|
+
if (S.context)
|
|
359
356
|
return n;
|
|
360
357
|
if (s === "number" && (t = t.toString()), i) {
|
|
361
358
|
let r = n[0];
|
|
@@ -363,7 +360,7 @@ function J(e, t, n, o, l) {
|
|
|
363
360
|
} else
|
|
364
361
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
365
362
|
} else if (t == null || s === "boolean") {
|
|
366
|
-
if (
|
|
363
|
+
if (S.context)
|
|
367
364
|
return n;
|
|
368
365
|
n = P(e, n, o);
|
|
369
366
|
} else {
|
|
@@ -378,9 +375,9 @@ function J(e, t, n, o, l) {
|
|
|
378
375
|
const r = [], c = n && Array.isArray(n);
|
|
379
376
|
if (te(r, t, n, l))
|
|
380
377
|
return j(() => n = J(e, r, n, o, !0)), () => n;
|
|
381
|
-
if (
|
|
382
|
-
for (let
|
|
383
|
-
if (r[
|
|
378
|
+
if (S.context) {
|
|
379
|
+
for (let f = 0; f < r.length; f++)
|
|
380
|
+
if (r[f].parentNode)
|
|
384
381
|
return n = r;
|
|
385
382
|
}
|
|
386
383
|
if (r.length === 0) {
|
|
@@ -390,7 +387,7 @@ function J(e, t, n, o, l) {
|
|
|
390
387
|
c ? n.length === 0 ? ge(e, r, o) : Re(e, n, r) : (n && P(e), ge(e, r));
|
|
391
388
|
n = r;
|
|
392
389
|
} else if (t instanceof Node) {
|
|
393
|
-
if (
|
|
390
|
+
if (S.context && t.parentNode)
|
|
394
391
|
return n = i ? [t] : t;
|
|
395
392
|
if (Array.isArray(n)) {
|
|
396
393
|
if (i)
|
|
@@ -420,8 +417,8 @@ function te(e, t, n, o) {
|
|
|
420
417
|
} else
|
|
421
418
|
e.push(r), l = !0;
|
|
422
419
|
else {
|
|
423
|
-
const
|
|
424
|
-
c && c.nodeType === 3 && c.data ===
|
|
420
|
+
const f = String(r);
|
|
421
|
+
c && c.nodeType === 3 && c.data === f ? e.push(c) : e.push(document.createTextNode(f));
|
|
425
422
|
}
|
|
426
423
|
}
|
|
427
424
|
return l;
|
|
@@ -448,42 +445,48 @@ function P(e, t, n, o) {
|
|
|
448
445
|
e.insertBefore(l, n);
|
|
449
446
|
return [l];
|
|
450
447
|
}
|
|
451
|
-
function
|
|
448
|
+
function Ge(e, t, ...n) {
|
|
452
449
|
if (t === void 0)
|
|
453
450
|
throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");
|
|
454
451
|
if (!e) {
|
|
455
|
-
let o = 0
|
|
452
|
+
let o = 0;
|
|
453
|
+
const l = t.replace(/%s/g, () => n[o++]);
|
|
456
454
|
throw new Error(`Ohbug ${l}`);
|
|
457
455
|
}
|
|
458
456
|
}
|
|
459
|
-
var
|
|
460
|
-
function
|
|
461
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
462
|
-
}
|
|
463
|
-
function We() {
|
|
464
|
-
let e = Ke();
|
|
465
|
-
return Ie(Boolean(e.__OHBUG__), "Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"), e.__OHBUG__;
|
|
457
|
+
var Ie = {};
|
|
458
|
+
function qe() {
|
|
459
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Ie;
|
|
466
460
|
}
|
|
467
|
-
function
|
|
468
|
-
e
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
461
|
+
function Ke() {
|
|
462
|
+
const e = qe();
|
|
463
|
+
return Ge(
|
|
464
|
+
Boolean(e.__OHBUG__),
|
|
465
|
+
"Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"
|
|
466
|
+
), e.__OHBUG__;
|
|
467
|
+
}
|
|
468
|
+
function _e(e, t) {
|
|
469
|
+
e.parentNode && (t.push(e.parentNode), _e(e.parentNode, t));
|
|
470
|
+
}
|
|
471
|
+
function We(e) {
|
|
472
|
+
const t = [];
|
|
473
|
+
return t.push(e), _e(e, t), t;
|
|
474
|
+
}
|
|
475
|
+
var Xe = (e) => {
|
|
476
|
+
const t = e.target || e.srcElement;
|
|
477
|
+
let n = e.target || e.srcElement;
|
|
478
|
+
const o = [];
|
|
476
479
|
for (let i = 0; n && n.nodeType === Node.ELEMENT_NODE && n.nodeType !== Node.DOCUMENT_TYPE_NODE; n = n.previousSibling)
|
|
477
480
|
i && o.push(n), i += 1;
|
|
478
|
-
|
|
481
|
+
const l = typeof e.path > "u" ? We(e.target) : e.path, { outerHTML: s } = t;
|
|
479
482
|
return l.reverse().map((i) => (i.localName || "") + (i.id ? `#${i.id}` : "") + (i.className ? `.${i.className}` : "") + (i.outerHTML === s ? `:nth-child(${o.length})` : "")).filter((i) => Boolean(i)).join(" > ");
|
|
480
483
|
};
|
|
481
|
-
const Ae = Symbol("store-raw"), Q = Symbol("store-node"),
|
|
484
|
+
const Ae = Symbol("store-raw"), Q = Symbol("store-node"), Ye = Symbol("store-name");
|
|
482
485
|
function Ne(e, t) {
|
|
483
|
-
let n = e[
|
|
486
|
+
let n = e[z];
|
|
484
487
|
if (!n) {
|
|
485
|
-
Object.defineProperty(e,
|
|
486
|
-
value: n = new Proxy(e,
|
|
488
|
+
Object.defineProperty(e, z, {
|
|
489
|
+
value: n = new Proxy(e, Ze)
|
|
487
490
|
});
|
|
488
491
|
const o = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
489
492
|
for (let s = 0, i = o.length; s < i; s++) {
|
|
@@ -500,7 +503,7 @@ function Ne(e, t) {
|
|
|
500
503
|
}
|
|
501
504
|
function Z(e) {
|
|
502
505
|
let t;
|
|
503
|
-
return e != null && typeof e == "object" && (e[
|
|
506
|
+
return e != null && typeof e == "object" && (e[z] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
504
507
|
}
|
|
505
508
|
function U(e, t = /* @__PURE__ */ new Set()) {
|
|
506
509
|
let n, o, l, s;
|
|
@@ -515,7 +518,7 @@ function U(e, t = /* @__PURE__ */ new Set()) {
|
|
|
515
518
|
} else {
|
|
516
519
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
517
520
|
const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
518
|
-
for (let c = 0,
|
|
521
|
+
for (let c = 0, f = i.length; c < f; c++)
|
|
519
522
|
s = i[c], !r[s].get && (l = e[s], (o = U(l, t)) !== l && (e[s] = o));
|
|
520
523
|
}
|
|
521
524
|
return e;
|
|
@@ -529,17 +532,17 @@ function fe(e) {
|
|
|
529
532
|
function ne(e, t, n) {
|
|
530
533
|
return e[t] || (e[t] = Oe(n, !0));
|
|
531
534
|
}
|
|
532
|
-
function
|
|
535
|
+
function Je(e, t) {
|
|
533
536
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
534
|
-
return !n || n.get || !n.configurable || t ===
|
|
537
|
+
return !n || n.get || !n.configurable || t === z || t === Q || t === Ye || (delete n.value, delete n.writable, n.get = () => e[z][t]), n;
|
|
535
538
|
}
|
|
536
539
|
function ke(e) {
|
|
537
|
-
if (
|
|
540
|
+
if ($e()) {
|
|
538
541
|
const t = fe(e);
|
|
539
542
|
(t._ || (t._ = Oe()))();
|
|
540
543
|
}
|
|
541
544
|
}
|
|
542
|
-
function
|
|
545
|
+
function Qe(e) {
|
|
543
546
|
return ke(e), Reflect.ownKeys(e);
|
|
544
547
|
}
|
|
545
548
|
function Oe(e, t) {
|
|
@@ -551,13 +554,13 @@ function Oe(e, t) {
|
|
|
551
554
|
});
|
|
552
555
|
return n.$ = o, n;
|
|
553
556
|
}
|
|
554
|
-
const
|
|
557
|
+
const Ze = {
|
|
555
558
|
get(e, t, n) {
|
|
556
559
|
if (t === Ae)
|
|
557
560
|
return e;
|
|
558
|
-
if (t ===
|
|
561
|
+
if (t === z)
|
|
559
562
|
return n;
|
|
560
|
-
if (t ===
|
|
563
|
+
if (t === He)
|
|
561
564
|
return ke(e);
|
|
562
565
|
const o = fe(e), l = o[t];
|
|
563
566
|
let s = l ? o[t]() : e[t];
|
|
@@ -565,7 +568,7 @@ const et = {
|
|
|
565
568
|
return s;
|
|
566
569
|
if (!l) {
|
|
567
570
|
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
568
|
-
|
|
571
|
+
$e() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = ne(o, t, s)());
|
|
569
572
|
}
|
|
570
573
|
return Z(s) ? Ne(s) : s;
|
|
571
574
|
},
|
|
@@ -575,8 +578,8 @@ const et = {
|
|
|
575
578
|
deleteProperty() {
|
|
576
579
|
return !0;
|
|
577
580
|
},
|
|
578
|
-
ownKeys:
|
|
579
|
-
getOwnPropertyDescriptor:
|
|
581
|
+
ownKeys: Qe,
|
|
582
|
+
getOwnPropertyDescriptor: Je
|
|
580
583
|
};
|
|
581
584
|
function ee(e, t, n) {
|
|
582
585
|
if (e[t] === n)
|
|
@@ -593,7 +596,7 @@ function Ce(e, t) {
|
|
|
593
596
|
ee(e, l, t[l]);
|
|
594
597
|
}
|
|
595
598
|
}
|
|
596
|
-
function
|
|
599
|
+
function et(e, t) {
|
|
597
600
|
if (typeof t == "function" && (t = t(e)), t = U(t), Array.isArray(t)) {
|
|
598
601
|
if (e === t)
|
|
599
602
|
return;
|
|
@@ -606,30 +609,30 @@ function tt(e, t) {
|
|
|
606
609
|
} else
|
|
607
610
|
Ce(e, t);
|
|
608
611
|
}
|
|
609
|
-
function
|
|
612
|
+
function D(e, t, n = []) {
|
|
610
613
|
let o, l = e;
|
|
611
614
|
if (t.length > 1) {
|
|
612
615
|
o = t.shift();
|
|
613
616
|
const i = typeof o, r = Array.isArray(e);
|
|
614
617
|
if (Array.isArray(o)) {
|
|
615
618
|
for (let c = 0; c < o.length; c++)
|
|
616
|
-
|
|
619
|
+
D(e, [o[c]].concat(t), n);
|
|
617
620
|
return;
|
|
618
621
|
} else if (r && i === "function") {
|
|
619
622
|
for (let c = 0; c < e.length; c++)
|
|
620
|
-
o(e[c], c) &&
|
|
623
|
+
o(e[c], c) && D(e, [c].concat(t), n);
|
|
621
624
|
return;
|
|
622
625
|
} else if (r && i === "object") {
|
|
623
626
|
const {
|
|
624
627
|
from: c = 0,
|
|
625
|
-
to:
|
|
628
|
+
to: f = e.length - 1,
|
|
626
629
|
by: a = 1
|
|
627
630
|
} = o;
|
|
628
|
-
for (let
|
|
629
|
-
|
|
631
|
+
for (let h = c; h <= f; h += a)
|
|
632
|
+
D(e, [h].concat(t), n);
|
|
630
633
|
return;
|
|
631
634
|
} else if (t.length > 1) {
|
|
632
|
-
|
|
635
|
+
D(e[o], t, [o].concat(n));
|
|
633
636
|
return;
|
|
634
637
|
}
|
|
635
638
|
l = e[o], n = [o].concat(n);
|
|
@@ -637,36 +640,36 @@ function B(e, t, n = []) {
|
|
|
637
640
|
let s = t[0];
|
|
638
641
|
typeof s == "function" && (s = s(l, n), s === l) || o === void 0 && s == null || (s = U(s), o === void 0 || Z(l) && Z(s) && !Array.isArray(s) ? Ce(l, s) : ee(e, o, s));
|
|
639
642
|
}
|
|
640
|
-
function
|
|
643
|
+
function tt(...[e, t]) {
|
|
641
644
|
const n = U(e || {}), o = Array.isArray(n), l = Ne(n);
|
|
642
645
|
function s(...i) {
|
|
643
646
|
ye(() => {
|
|
644
|
-
o && i.length === 1 ?
|
|
647
|
+
o && i.length === 1 ? et(n, i[0]) : D(n, i);
|
|
645
648
|
});
|
|
646
649
|
}
|
|
647
650
|
return [l, s];
|
|
648
651
|
}
|
|
649
|
-
const [p,
|
|
650
|
-
const e =
|
|
652
|
+
const [p, L] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */ N('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" data-ohbug-selector fill="rgba(255,255,255,1)"></path></svg>'), ot = /* @__PURE__ */ N('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" data-ohbug-selector></path></svg>'), oe = () => nt.cloneNode(!0), lt = () => (() => {
|
|
653
|
+
const e = ot.cloneNode(!0);
|
|
651
654
|
return e.firstChild.nextSibling.style.setProperty("fill", "var(--color)"), e;
|
|
652
655
|
})();
|
|
653
|
-
const
|
|
656
|
+
const st = /* @__PURE__ */ N('<div class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none" data-ohbug-selector><div class="tips" data-ohbug-selector>Select element on the page<button class="stop-btn" type="button"></button></div></div>'), it = /* @__PURE__ */ N('<button class="rounded-full cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" data-ohbug-selector type="button"></button>'), rt = /* @__PURE__ */ N('<button class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" data-ohbug-selector type="button">Change</button>'), ct = /* @__PURE__ */ N('<div class="-z-1 fixed" data-ohbug-selector><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div data-ohbug-selector></div></div>'), ut = () => {
|
|
654
657
|
const [e, t] = F();
|
|
655
658
|
let n, o, l, s, i;
|
|
656
659
|
const r = 2;
|
|
657
|
-
function c(
|
|
658
|
-
if (!
|
|
660
|
+
function c(u) {
|
|
661
|
+
if (!u || u.tagName === "HTML")
|
|
659
662
|
return;
|
|
660
663
|
const {
|
|
661
|
-
width:
|
|
664
|
+
width: g,
|
|
662
665
|
height: w,
|
|
663
666
|
top: A,
|
|
664
667
|
right: T,
|
|
665
|
-
bottom:
|
|
668
|
+
bottom: M,
|
|
666
669
|
left: d
|
|
667
|
-
} =
|
|
670
|
+
} = u.getBoundingClientRect();
|
|
668
671
|
i == null || i.setAttribute("style", `
|
|
669
|
-
width: ${
|
|
672
|
+
width: ${g + r * 2}px;
|
|
670
673
|
height: ${w + r * 2}px;
|
|
671
674
|
top: ${A - r}px;
|
|
672
675
|
left: ${d - r}px;
|
|
@@ -681,8 +684,8 @@ const it = /* @__PURE__ */ N('<div class="bg-none border-solid border-4 border-b
|
|
|
681
684
|
bottom: 0;
|
|
682
685
|
left: ${T}px;
|
|
683
686
|
`), l == null || l.setAttribute("style", `
|
|
684
|
-
width: ${
|
|
685
|
-
top: ${
|
|
687
|
+
width: ${g + d}px;
|
|
688
|
+
top: ${M}px;
|
|
686
689
|
bottom: 0;
|
|
687
690
|
left: 0;
|
|
688
691
|
`), s == null || s.setAttribute("style", `
|
|
@@ -692,80 +695,80 @@ const it = /* @__PURE__ */ N('<div class="bg-none border-solid border-4 border-b
|
|
|
692
695
|
left: 0;
|
|
693
696
|
`);
|
|
694
697
|
}
|
|
695
|
-
function u
|
|
696
|
-
if (!
|
|
698
|
+
function f(u) {
|
|
699
|
+
if (!u || u.tagName === "HTML")
|
|
697
700
|
return;
|
|
698
701
|
const {
|
|
699
|
-
width:
|
|
702
|
+
width: g,
|
|
700
703
|
height: w,
|
|
701
704
|
top: A,
|
|
702
705
|
left: T
|
|
703
|
-
} =
|
|
704
|
-
|
|
705
|
-
selectedElement:
|
|
706
|
+
} = u.getBoundingClientRect();
|
|
707
|
+
L({
|
|
708
|
+
selectedElement: u
|
|
706
709
|
}), i == null || i.setAttribute("style", `
|
|
707
|
-
width: ${
|
|
710
|
+
width: ${g + r * 2}px;
|
|
708
711
|
height: ${w + r * 2}px;
|
|
709
712
|
top: ${A - r}px;
|
|
710
713
|
left: ${T - r}px;
|
|
711
714
|
`);
|
|
712
715
|
}
|
|
713
|
-
function a(
|
|
716
|
+
function a(u) {
|
|
714
717
|
var w;
|
|
715
|
-
|
|
718
|
+
L({
|
|
716
719
|
working: !0
|
|
717
720
|
});
|
|
718
|
-
const
|
|
719
|
-
if (((w =
|
|
721
|
+
const g = document.elementFromPoint(u.clientX, u.clientY);
|
|
722
|
+
if (((w = g == null ? void 0 : g.dataset) == null ? void 0 : w.ohbugSelector) !== void 0 || g.tagName === "HTML")
|
|
720
723
|
return !1;
|
|
721
|
-
c(
|
|
724
|
+
c(g);
|
|
722
725
|
}
|
|
723
|
-
function
|
|
726
|
+
function h() {
|
|
724
727
|
document.addEventListener("mousemove", a);
|
|
725
728
|
}
|
|
726
|
-
function
|
|
729
|
+
function v() {
|
|
727
730
|
document.removeEventListener("mousemove", a);
|
|
728
731
|
}
|
|
729
|
-
function
|
|
732
|
+
function _(u) {
|
|
730
733
|
var w;
|
|
731
|
-
const
|
|
732
|
-
if (((w =
|
|
734
|
+
const g = document.elementFromPoint(u.clientX, u.clientY);
|
|
735
|
+
if (((w = g == null ? void 0 : g.dataset) == null ? void 0 : w.ohbugSelector) !== void 0 || g.tagName === "HTML" || p.selectedElement && p.working)
|
|
733
736
|
return !1;
|
|
734
|
-
t(
|
|
737
|
+
t(g), f(e()), v();
|
|
735
738
|
}
|
|
736
739
|
function C() {
|
|
737
|
-
document.addEventListener("mousedown",
|
|
740
|
+
document.addEventListener("mousedown", _);
|
|
738
741
|
}
|
|
739
742
|
function q() {
|
|
740
|
-
document.removeEventListener("mousedown",
|
|
743
|
+
document.removeEventListener("mousedown", _);
|
|
741
744
|
}
|
|
742
745
|
function k() {
|
|
743
|
-
t(null),
|
|
746
|
+
t(null), v(), q(), L({
|
|
744
747
|
working: !1,
|
|
745
748
|
selectedElement: null
|
|
746
749
|
});
|
|
747
750
|
}
|
|
748
751
|
function K() {
|
|
749
|
-
|
|
752
|
+
L({
|
|
750
753
|
working: !0,
|
|
751
754
|
selectedElement: null
|
|
752
|
-
}), t(null),
|
|
755
|
+
}), t(null), h();
|
|
753
756
|
}
|
|
754
757
|
return we(() => {
|
|
755
|
-
p.working ? (
|
|
756
|
-
}),
|
|
757
|
-
const
|
|
758
|
-
return m(
|
|
758
|
+
p.working ? (h(), C()) : (v(), q());
|
|
759
|
+
}), Me(k), (() => {
|
|
760
|
+
const u = ct.cloneNode(!0), g = u.firstChild, w = g.nextSibling, A = w.nextSibling, T = A.nextSibling, M = T.nextSibling;
|
|
761
|
+
return m(u, x(V, {
|
|
759
762
|
get when() {
|
|
760
763
|
return !p.selectedElement && p.working;
|
|
761
764
|
},
|
|
762
765
|
get children() {
|
|
763
|
-
const d =
|
|
764
|
-
return ae.$$click = k, m(ae,
|
|
766
|
+
const d = st.cloneNode(!0), Te = d.firstChild, Pe = Te.firstChild, ae = Pe.nextSibling;
|
|
767
|
+
return ae.$$click = k, m(ae, x(oe, {})), d;
|
|
765
768
|
}
|
|
766
|
-
}),
|
|
769
|
+
}), g), ((d) => {
|
|
767
770
|
n = d;
|
|
768
|
-
})(
|
|
771
|
+
})(g), ((d) => {
|
|
769
772
|
o = d;
|
|
770
773
|
})(w), ((d) => {
|
|
771
774
|
l = d;
|
|
@@ -773,48 +776,61 @@ const it = /* @__PURE__ */ N('<div class="bg-none border-solid border-4 border-b
|
|
|
773
776
|
s = d;
|
|
774
777
|
})(T), ((d) => {
|
|
775
778
|
i = d;
|
|
776
|
-
})(
|
|
779
|
+
})(M), m(M, x(V, {
|
|
777
780
|
get when() {
|
|
778
781
|
return p.selectedElement && p.working;
|
|
779
782
|
},
|
|
780
783
|
get children() {
|
|
781
784
|
return [(() => {
|
|
782
|
-
const d =
|
|
783
|
-
return d.$$click = k, m(d,
|
|
785
|
+
const d = it.cloneNode(!0);
|
|
786
|
+
return d.$$click = k, m(d, x(oe, {})), d;
|
|
784
787
|
})(), (() => {
|
|
785
|
-
const d =
|
|
788
|
+
const d = rt.cloneNode(!0);
|
|
786
789
|
return d.$$click = K, d.style.setProperty("transform", "translate(4px, -8px)"), d;
|
|
787
790
|
})()];
|
|
788
791
|
}
|
|
789
|
-
})), j(() =>
|
|
792
|
+
})), j(() => M.className = `fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e() ? "border-red-500 border-solid" : "border-blue-500 border-dashed"}`), u;
|
|
790
793
|
})();
|
|
791
794
|
};
|
|
792
|
-
|
|
793
|
-
const
|
|
795
|
+
Se(["click"]);
|
|
796
|
+
const ft = /* @__PURE__ */ N('<button class="main-btn" data-ohbug-selector type="button"></button>'), at = /* @__PURE__ */ N('<div class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed" data-ohbug-selector><div class="bg-gray-300 p-4" data-ohbug-selector><textarea autofocus class="bg-transparent outline-none w-full resize-none" data-ohbug-selector maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button class="cursor-pointer" data-ohbug-selector type="button"></button></div><div class="flex flex-1 p-4 justify-between items-center" data-ohbug-selector><span class="text-sm" data-ohbug-selector>Try<a class="ml-1 underline" data-ohbug-selector href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button class="send-btn" data-ohbug-selector type="button"></button></div><button class="rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" data-ohbug-selector type="button"></button></div>'), dt = /* @__PURE__ */ N('<div class="z-max relative" data-ohbug-selector><div></div></div>'), ht = () => {
|
|
794
797
|
const [e, t] = F(!1), [n, o] = F("");
|
|
795
798
|
function l() {
|
|
796
|
-
|
|
799
|
+
L({
|
|
797
800
|
working: !0
|
|
798
801
|
});
|
|
799
802
|
}
|
|
800
803
|
const [s, i] = F(!1);
|
|
801
804
|
async function r() {
|
|
802
805
|
i(!0);
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
806
|
+
let c, f;
|
|
807
|
+
const a = Ke().client;
|
|
808
|
+
if (p.selectedElement) {
|
|
809
|
+
const h = {
|
|
810
|
+
target: p.selectedElement
|
|
811
|
+
};
|
|
812
|
+
c = Xe(h), f = p.selectedElement.outerHTML;
|
|
813
|
+
const v = a.createEvent({
|
|
814
|
+
category: "feedback",
|
|
815
|
+
type: "feedback",
|
|
816
|
+
detail: {
|
|
817
|
+
selector: c,
|
|
818
|
+
outerHTML: f,
|
|
819
|
+
feedback: n()
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
await a.notify(v);
|
|
823
|
+
} else {
|
|
824
|
+
const h = a.createEvent({
|
|
825
|
+
category: "feedback",
|
|
826
|
+
type: "feedback",
|
|
827
|
+
detail: {
|
|
828
|
+
feedback: n()
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
await a.notify(h);
|
|
832
|
+
}
|
|
833
|
+
t(!1), o(""), L({
|
|
818
834
|
working: !1,
|
|
819
835
|
selectedElement: null
|
|
820
836
|
}), i(!1);
|
|
@@ -822,74 +838,48 @@ const at = /* @__PURE__ */ N('<button class="main-btn" data-ohbug-selector type=
|
|
|
822
838
|
return we(() => {
|
|
823
839
|
p.working === !1 && p.selectedElement === null || p.working && !p.selectedElement ? t(!1) : t(!0);
|
|
824
840
|
}), (() => {
|
|
825
|
-
const c =
|
|
826
|
-
return m(c,
|
|
841
|
+
const c = dt.cloneNode(!0), f = c.firstChild;
|
|
842
|
+
return m(c, x(V, {
|
|
827
843
|
get when() {
|
|
828
844
|
return p.working;
|
|
829
845
|
},
|
|
830
846
|
get children() {
|
|
831
|
-
return
|
|
847
|
+
return x(ut, {});
|
|
832
848
|
}
|
|
833
|
-
}),
|
|
849
|
+
}), f), m(f, x(V, {
|
|
834
850
|
get when() {
|
|
835
851
|
return !(p.working && !p.selectedElement);
|
|
836
852
|
},
|
|
837
853
|
get children() {
|
|
838
|
-
const a =
|
|
839
|
-
return a.$$click = () => t((
|
|
854
|
+
const a = ft.cloneNode(!0);
|
|
855
|
+
return a.$$click = () => t((h) => !h), m(a, () => e() ? "\u{1F606}" : "\u{1F642}"), a;
|
|
840
856
|
}
|
|
841
|
-
}), null), m(
|
|
857
|
+
}), null), m(f, x(V, {
|
|
842
858
|
get when() {
|
|
843
859
|
return e();
|
|
844
860
|
},
|
|
845
861
|
get children() {
|
|
846
|
-
const a =
|
|
847
|
-
return
|
|
848
|
-
const
|
|
849
|
-
return
|
|
862
|
+
const a = at.cloneNode(!0), h = a.firstChild, v = h.firstChild, _ = v.nextSibling, C = h.nextSibling, q = C.firstChild, k = q.nextSibling, K = C.nextSibling;
|
|
863
|
+
return v.$$input = (u) => o(u.currentTarget.value), _.$$click = l, m(_, x(lt, {})), k.$$click = r, m(k, () => s() ? "Sending..." : "Send"), K.$$click = () => t((u) => !u), m(K, x(oe, {})), j((u) => {
|
|
864
|
+
const g = p.selectedElement ? "blue" : "gray", w = !n() || s();
|
|
865
|
+
return g !== u._v$ && _.style.setProperty("--color", u._v$ = g), w !== u._v$2 && (k.disabled = u._v$2 = w), u;
|
|
850
866
|
}, {
|
|
851
867
|
_v$: void 0,
|
|
852
868
|
_v$2: void 0
|
|
853
|
-
}), j(() =>
|
|
869
|
+
}), j(() => v.value = n()), a;
|
|
854
870
|
}
|
|
855
871
|
}), null), c;
|
|
856
872
|
})();
|
|
857
873
|
};
|
|
858
|
-
|
|
859
|
-
const
|
|
874
|
+
Se(["click", "input"]);
|
|
875
|
+
const gt = {
|
|
860
876
|
name: "OhbugExtensionFeedback",
|
|
861
877
|
onSetup: () => {
|
|
862
878
|
const e = document.createElement("div");
|
|
863
|
-
e.id = "OhbugExtensionFeedback-ROOT", document.body.appendChild(e), Ve(() =>
|
|
879
|
+
e.id = "OhbugExtensionFeedback-ROOT", document.body.appendChild(e), Ve(() => x(ht, {}), e);
|
|
864
880
|
}
|
|
865
881
|
};
|
|
866
|
-
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`.
|
|
867
|
-
--tw-bg-opacity: 1;
|
|
868
|
-
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
|
|
869
|
-
border-radius: 0.125rem;
|
|
870
|
-
font-size: 0.875rem;
|
|
871
|
-
line-height: 1.25rem;
|
|
872
|
-
padding-left: 0.75rem;
|
|
873
|
-
padding-right: 0.75rem;
|
|
874
|
-
padding-top: 0.25rem;
|
|
875
|
-
padding-bottom: 0.25rem;
|
|
876
|
-
--tw-text-opacity: 1;
|
|
877
|
-
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
878
|
-
-webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
|
|
879
|
-
-o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
880
|
-
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
|
|
881
|
-
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
882
|
-
-o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
883
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
884
|
-
-webkit-transition-duration: 150ms;
|
|
885
|
-
-o-transition-duration: 150ms;
|
|
886
|
-
transition-duration: 150ms;
|
|
887
|
-
}
|
|
888
|
-
.send-btn:disabled {
|
|
889
|
-
cursor: not-allowed;
|
|
890
|
-
opacity: 0.5;
|
|
891
|
-
}
|
|
892
|
-
.main-btn {
|
|
882
|
+
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`.main-btn {
|
|
893
883
|
--tw-bg-opacity: 1;
|
|
894
884
|
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
|
|
895
885
|
border-radius: 0.25rem;
|
|
@@ -940,6 +930,32 @@ function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;
|
|
|
940
930
|
-webkit-box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
|
|
941
931
|
box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
|
|
942
932
|
}
|
|
933
|
+
.send-btn {
|
|
934
|
+
--tw-bg-opacity: 1;
|
|
935
|
+
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
|
|
936
|
+
border-radius: 0.125rem;
|
|
937
|
+
font-size: 0.875rem;
|
|
938
|
+
line-height: 1.25rem;
|
|
939
|
+
padding-left: 0.75rem;
|
|
940
|
+
padding-right: 0.75rem;
|
|
941
|
+
padding-top: 0.25rem;
|
|
942
|
+
padding-bottom: 0.25rem;
|
|
943
|
+
--tw-text-opacity: 1;
|
|
944
|
+
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
945
|
+
-webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
|
|
946
|
+
-o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
947
|
+
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
|
|
948
|
+
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
949
|
+
-o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
950
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
951
|
+
-webkit-transition-duration: 150ms;
|
|
952
|
+
-o-transition-duration: 150ms;
|
|
953
|
+
transition-duration: 150ms;
|
|
954
|
+
}
|
|
955
|
+
.send-btn:disabled {
|
|
956
|
+
cursor: not-allowed;
|
|
957
|
+
opacity: 0.5;
|
|
958
|
+
}
|
|
943
959
|
/* windicss layer base */
|
|
944
960
|
*, ::before, ::after {
|
|
945
961
|
-webkit-box-sizing: border-box;
|
|
@@ -1166,8 +1182,8 @@ textarea::-ms-input-placeholder {
|
|
|
1166
1182
|
font-size: 0.875rem;
|
|
1167
1183
|
line-height: 1.25rem;
|
|
1168
1184
|
}
|
|
1169
|
-
.ml-
|
|
1170
|
-
margin-left: 0.
|
|
1185
|
+
.ml-1 {
|
|
1186
|
+
margin-left: 0.25rem;
|
|
1171
1187
|
}
|
|
1172
1188
|
.outline-none {
|
|
1173
1189
|
outline: 2px solid transparent;
|
|
@@ -1332,5 +1348,5 @@ textarea::-ms-input-placeholder {
|
|
|
1332
1348
|
transition-duration: 150ms;
|
|
1333
1349
|
}`);
|
|
1334
1350
|
export {
|
|
1335
|
-
|
|
1351
|
+
gt as default
|
|
1336
1352
|
};
|