@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/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
- const E = {};
2
- function ze(e) {
3
- E.context = e;
1
+ const S = {};
2
+ function Le(e) {
3
+ S.context = e;
4
4
  }
5
- const Le = (e, t) => e === t, L = Symbol("solid-proxy"), De = Symbol("solid-track"), W = {
6
- equals: Le
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 D = {}, O = 1, X = 2, pe = {
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, M = null, v = null, _ = null, le = 0;
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: D,
37
+ pending: H,
38
38
  comparator: t.equals || void 0
39
- }, o = (l) => (typeof l == "function" && (l = l(n.pending !== D ? n.pending : n.value)), ie(n, l));
40
- return [$e.bind(n), o];
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, _ ? _.push(o) : I(o);
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 = D, o.observers = null, o.observerSlots = null, o.comparator = n.equals || void 0, I(o), $e.bind(o);
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 (M)
57
+ if (B)
58
58
  return e();
59
59
  let t;
60
- const n = M = [];
60
+ const n = B = [];
61
61
  try {
62
62
  t = e();
63
63
  } finally {
64
- M = null;
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 !== D) {
69
+ if (l.pending !== H) {
70
70
  const s = l.pending;
71
- l.pending = D, ie(l, s);
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 He(e) {
80
+ function Me(e) {
81
81
  return y === null || (y.cleanups === null ? y.cleanups = [e] : y.cleanups.push(e)), e;
82
82
  }
83
- function ve() {
83
+ function $e() {
84
84
  return b;
85
85
  }
86
- function $e() {
86
+ function ve() {
87
87
  const e = G;
88
88
  if (this.sources && (this.state || e)) {
89
- const t = v;
90
- v = null, this.state === O || e ? I(this) : Y(this), v = t;
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 (M)
100
- return e.pending === D && M.push(e), e.pending = t, t;
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 ? v.push(s) : _.push(s), s.observers && xe(s)), o || (s.state = O);
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 (v.length > 1e6)
110
- throw v = [], new Error();
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, Be(e, e.value, o), b = n, y = t;
118
+ b = y = e, De(e, e.value, o), b = n, y = t;
119
119
  }
120
- function Be(e, t, n) {
120
+ function De(e, t, n) {
121
121
  let o;
122
122
  try {
123
123
  o = e.fn(t);
124
124
  } catch (l) {
125
- Se(l);
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 = v;
161
- v = null, Y(e, n[0]), v = l;
160
+ const l = $;
161
+ $ = null, Y(e, n[0]), $ = l;
162
162
  }
163
163
  }
164
164
  function ce(e, t) {
165
- if (v)
165
+ if ($)
166
166
  return e();
167
167
  let n = !1;
168
- t || (v = []), _ ? n = !0 : _ = [], le++;
168
+ t || ($ = []), E ? n = !0 : E = [], le++;
169
169
  try {
170
170
  const o = e();
171
- return Me(n), o;
171
+ return Be(n), o;
172
172
  } catch (o) {
173
- v || (_ = null), Se(o);
173
+ $ || (E = null), Ee(o);
174
174
  }
175
175
  }
176
- function Me(e) {
177
- v && (me(v), v = null), !e && (_.length ? ye(() => {
178
- be(_), _ = null;
179
- }) : _ = null);
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
- E.context && ze();
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 ? v.push(o) : _.push(o), o.observers && xe(o));
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 Se(e) {
235
+ function Ee(e) {
236
236
  throw e;
237
237
  }
238
- function S(e, t) {
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, u = null;
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
- (!u || !u.has(t[i])) && t[i].remove(), i++;
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 (!u) {
276
- u = /* @__PURE__ */ new Map();
277
- let g = r;
278
- for (; g < s; )
279
- u.set(n[g], g++);
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 = u.get(t[i]);
281
+ const a = f.get(t[i]);
282
282
  if (a != null)
283
283
  if (r < a && a < s) {
284
- let g = i, $ = 1, x;
285
- for (; ++g < l && g < s && !((x = u.get(t[g])) == null || x !== a + $); )
286
- $++;
287
- if ($ > a - r) {
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 _e(e, t = window.document) {
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, Ge));
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 Ge(e) {
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
- }), E.registry && !E.done && (E.done = !0, document.querySelectorAll("[id^=pl-]").forEach((o) => o.remove())); n !== null; ) {
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 (E.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
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 (E.context)
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 (E.context)
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 (E.context) {
382
- for (let u = 0; u < r.length; u++)
383
- if (r[u].parentNode)
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 (E.context && t.parentNode)
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 u = String(r);
424
- c && c.nodeType === 3 && c.data === u ? e.push(c) : e.push(document.createTextNode(u));
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 Ie(e, t, ...n) {
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, l = t.replace(/%s/g, () => n[o++]);
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 qe = {};
460
- function Ke() {
461
- return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : qe;
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 Ee(e, t) {
468
- e.parentNode && (t.push(e.parentNode), Ee(e.parentNode, t));
469
- }
470
- function Xe(e) {
471
- let t = [];
472
- return t.push(e), Ee(e, t), t;
473
- }
474
- var Ye = (e) => {
475
- let t = e.target || e.srcElement, n = e.target || e.srcElement, o = [];
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
- let l = typeof e.path > "u" ? Xe(e.target) : e.path, { outerHTML: s } = t;
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"), Je = Symbol("store-name");
484
+ const Ae = Symbol("store-raw"), Q = Symbol("store-node"), Ye = Symbol("store-name");
482
485
  function Ne(e, t) {
483
- let n = e[L];
486
+ let n = e[z];
484
487
  if (!n) {
485
- Object.defineProperty(e, L, {
486
- value: n = new Proxy(e, et)
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[L] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(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, u = i.length; c < u; c++)
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 Qe(e, t) {
535
+ function Je(e, t) {
533
536
  const n = Reflect.getOwnPropertyDescriptor(e, t);
534
- return !n || n.get || !n.configurable || t === L || t === Q || t === Je || (delete n.value, delete n.writable, n.get = () => e[L][t]), n;
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 (ve()) {
540
+ if ($e()) {
538
541
  const t = fe(e);
539
542
  (t._ || (t._ = Oe()))();
540
543
  }
541
544
  }
542
- function Ze(e) {
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 et = {
557
+ const Ze = {
555
558
  get(e, t, n) {
556
559
  if (t === Ae)
557
560
  return e;
558
- if (t === L)
561
+ if (t === z)
559
562
  return n;
560
- if (t === De)
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
- ve() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = ne(o, t, s)());
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: Ze,
579
- getOwnPropertyDescriptor: Qe
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 tt(e, t) {
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 B(e, t, n = []) {
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
- B(e, [o[c]].concat(t), n);
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) && B(e, [c].concat(t), n);
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: u = e.length - 1,
628
+ to: f = e.length - 1,
626
629
  by: a = 1
627
630
  } = o;
628
- for (let g = c; g <= u; g += a)
629
- B(e, [g].concat(t), n);
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
- B(e[o], t, [o].concat(n));
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 nt(...[e, t]) {
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 ? tt(n, i[0]) : B(n, i);
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, z] = nt({ working: !1, selectedElement: null }), 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="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>'), lt = /* @__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 = () => ot.cloneNode(!0), st = () => (() => {
650
- const e = lt.cloneNode(!0);
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 it = /* @__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>'), rt = /* @__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>'), ct = /* @__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>'), ut = /* @__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>'), ft = () => {
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(f) {
658
- if (!f)
660
+ function c(u) {
661
+ if (!u || u.tagName === "HTML")
659
662
  return;
660
663
  const {
661
- width: h,
664
+ width: g,
662
665
  height: w,
663
666
  top: A,
664
667
  right: T,
665
- bottom: H,
668
+ bottom: M,
666
669
  left: d
667
- } = f.getBoundingClientRect();
670
+ } = u.getBoundingClientRect();
668
671
  i == null || i.setAttribute("style", `
669
- width: ${h + r * 2}px;
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: ${h + d}px;
685
- top: ${H}px;
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(f) {
696
- if (!f)
698
+ function f(u) {
699
+ if (!u || u.tagName === "HTML")
697
700
  return;
698
701
  const {
699
- width: h,
702
+ width: g,
700
703
  height: w,
701
704
  top: A,
702
705
  left: T
703
- } = f.getBoundingClientRect();
704
- z({
705
- selectedElement: f
706
+ } = u.getBoundingClientRect();
707
+ L({
708
+ selectedElement: u
706
709
  }), i == null || i.setAttribute("style", `
707
- width: ${h + r * 2}px;
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(f) {
716
+ function a(u) {
714
717
  var w;
715
- z({
718
+ L({
716
719
  working: !0
717
720
  });
718
- const h = document.elementFromPoint(f.clientX, f.clientY);
719
- if (((w = h == null ? void 0 : h.dataset) == null ? void 0 : w.ohbugSelector) !== void 0)
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(h);
724
+ c(g);
722
725
  }
723
- function g() {
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 x(f) {
732
+ function _(u) {
730
733
  var w;
731
- const h = document.elementFromPoint(f.clientX, f.clientY);
732
- if (((w = h == null ? void 0 : h.dataset) == null ? void 0 : w.ohbugSelector) !== void 0 || p.selectedElement && p.working)
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(h), u(e()), $();
737
+ t(g), f(e()), v();
735
738
  }
736
739
  function C() {
737
- document.addEventListener("mousedown", x);
740
+ document.addEventListener("mousedown", _);
738
741
  }
739
742
  function q() {
740
- document.removeEventListener("mousedown", x);
743
+ document.removeEventListener("mousedown", _);
741
744
  }
742
745
  function k() {
743
- t(null), $(), q(), z({
746
+ t(null), v(), q(), L({
744
747
  working: !1,
745
748
  selectedElement: null
746
749
  });
747
750
  }
748
751
  function K() {
749
- z({
752
+ L({
750
753
  working: !0,
751
754
  selectedElement: null
752
- }), t(null), g();
755
+ }), t(null), h();
753
756
  }
754
757
  return we(() => {
755
- p.working ? (g(), C()) : ($(), q());
756
- }), He(k), (() => {
757
- const f = ut.cloneNode(!0), h = f.firstChild, w = h.nextSibling, A = w.nextSibling, T = A.nextSibling, H = T.nextSibling;
758
- return m(f, S(V, {
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 = it.cloneNode(!0), Te = d.firstChild, Pe = Te.firstChild, ae = Pe.nextSibling;
764
- return ae.$$click = k, m(ae, S(oe, {})), d;
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
- }), h), ((d) => {
769
+ }), g), ((d) => {
767
770
  n = d;
768
- })(h), ((d) => {
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
- })(H), m(H, S(V, {
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 = rt.cloneNode(!0);
783
- return d.$$click = k, m(d, S(oe, {})), d;
785
+ const d = it.cloneNode(!0);
786
+ return d.$$click = k, m(d, x(oe, {})), d;
784
787
  })(), (() => {
785
- const d = ct.cloneNode(!0);
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(() => Ue(H, `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"}`)), f;
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
- _e(["click"]);
793
- const at = /* @__PURE__ */ N('<button class="main-btn" data-ohbug-selector type="button"></button>'), dt = /* @__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-2 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>'), ht = /* @__PURE__ */ N('<div class="z-max relative" data-ohbug-selector><div></div></div>'), gt = () => {
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
- z({
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
- const c = {
804
- target: p.selectedElement
805
- };
806
- let u, a;
807
- p.selectedElement && (u = Ye(c), a = p.selectedElement.outerHTML);
808
- const $ = We().client, x = $.createEvent({
809
- category: "feedback",
810
- type: "feedback",
811
- detail: {
812
- selector: u,
813
- outerHTML: a,
814
- feedback: n()
815
- }
816
- });
817
- await $.notify(x), t(!1), o(""), z({
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 = ht.cloneNode(!0), u = c.firstChild;
826
- return m(c, S(V, {
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 S(ft, {});
847
+ return x(ut, {});
832
848
  }
833
- }), u), m(u, S(V, {
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 = at.cloneNode(!0);
839
- return a.$$click = () => t((g) => !g), m(a, () => e() ? "\u{1F606}" : "\u{1F642}"), a;
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(u, S(V, {
857
+ }), null), m(f, x(V, {
842
858
  get when() {
843
859
  return e();
844
860
  },
845
861
  get children() {
846
- const a = dt.cloneNode(!0), g = a.firstChild, $ = g.firstChild, x = $.nextSibling, C = g.nextSibling, q = C.firstChild, k = q.nextSibling, K = C.nextSibling;
847
- return $.$$input = (f) => o(f.currentTarget.value), x.$$click = l, m(x, S(st, {})), k.$$click = r, m(k, () => s() ? "Sending..." : "Send"), K.$$click = () => t((f) => !f), m(K, S(oe, {})), j((f) => {
848
- const h = p.selectedElement ? "blue" : "gray", w = !n() || s();
849
- return h !== f._v$ && x.style.setProperty("--color", f._v$ = h), w !== f._v$2 && (k.disabled = f._v$2 = w), f;
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(() => $.value = n()), a;
869
+ }), j(() => v.value = n()), a;
854
870
  }
855
871
  }), null), c;
856
872
  })();
857
873
  };
858
- _e(["click", "input"]);
859
- const bt = {
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(() => S(gt, {}), e);
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(`.send-btn {
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-2 {
1170
- margin-left: 0.5rem;
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
- bt as default
1351
+ gt as default
1336
1352
  };