@design.estate/dees-wcctools 1.2.1 → 1.3.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_bundle/bundle.js +1581 -198
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_demotools/demotools.d.ts +1 -1
- package/dist_ts_demotools/demotools.js +86 -38
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/wcc-dashboard.d.ts +10 -10
- package/dist_ts_web/elements/wcc-dashboard.js +317 -245
- package/dist_ts_web/elements/wcc-frame.d.ts +3 -3
- package/dist_ts_web/elements/wcc-frame.js +108 -57
- package/dist_ts_web/elements/wcc-properties.d.ts +14 -8
- package/dist_ts_web/elements/wcc-properties.js +442 -323
- package/dist_ts_web/elements/wcc-record-button.d.ts +12 -0
- package/dist_ts_web/elements/wcc-record-button.js +165 -0
- package/dist_ts_web/elements/wcc-recording-panel.d.ts +42 -0
- package/dist_ts_web/elements/wcc-recording-panel.js +1063 -0
- package/dist_ts_web/elements/wcc-sidebar.d.ts +4 -4
- package/dist_ts_web/elements/wcc-sidebar.js +125 -71
- package/dist_ts_web/index.d.ts +3 -0
- package/dist_ts_web/index.js +5 -1
- package/dist_ts_web/services/recorder.service.d.ts +44 -0
- package/dist_ts_web/services/recorder.service.js +306 -0
- package/dist_watch/bundle.js +1939 -521
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +8 -8
- package/readme.md +133 -141
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/wcc-dashboard.ts +10 -10
- package/ts_web/elements/wcc-frame.ts +3 -3
- package/ts_web/elements/wcc-properties.ts +53 -9
- package/ts_web/elements/wcc-record-button.ts +108 -0
- package/ts_web/elements/wcc-recording-panel.ts +974 -0
- package/ts_web/elements/wcc-sidebar.ts +4 -4
- package/ts_web/index.ts +5 -0
- package/ts_web/readme.md +123 -0
- package/ts_web/services/recorder.service.ts +391 -0
package/dist_watch/bundle.js
CHANGED
|
@@ -4,6 +4,12 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
|
|
8
|
+
var __typeError = (msg) => {
|
|
9
|
+
throw TypeError(msg);
|
|
10
|
+
};
|
|
11
|
+
var __defNormalProp = (obj, key2, value2) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2;
|
|
12
|
+
var __name = (target, value2) => __defProp(target, "name", { value: value2, configurable: true });
|
|
7
13
|
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
8
14
|
get: (a4, b4) => (typeof require !== "undefined" ? require : a4)[b4]
|
|
9
15
|
}) : x2)(function(x2) {
|
|
@@ -33,14 +39,46 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
39
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
40
|
mod
|
|
35
41
|
));
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)];
|
|
43
|
+
var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
|
|
44
|
+
var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
|
|
45
|
+
var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
|
|
46
|
+
var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
|
|
47
|
+
var __runInitializers = (array, flags, self2, value2) => {
|
|
48
|
+
for (var i9 = 0, fns = array[flags >> 1], n12 = fns && fns.length; i9 < n12; i9++) flags & 1 ? fns[i9].call(self2) : value2 = fns[i9].call(self2, value2);
|
|
49
|
+
return value2;
|
|
43
50
|
};
|
|
51
|
+
var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
52
|
+
var fn, it, done, ctx, access, k3 = flags & 7, s8 = !!(flags & 8), p6 = !!(flags & 16);
|
|
53
|
+
var j2 = k3 > 3 ? array.length + 1 : k3 ? s8 ? 1 : 2 : 0, key2 = __decoratorStrings[k3 + 5];
|
|
54
|
+
var initializers = k3 > 3 && (array[j2 - 1] = []), extraInitializers = array[j2] || (array[j2] = []);
|
|
55
|
+
var desc = k3 && (!p6 && !s8 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p6) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
|
|
56
|
+
return __privateGet(this, extra);
|
|
57
|
+
}, set [name](x2) {
|
|
58
|
+
return __privateSet(this, extra, x2);
|
|
59
|
+
} }, name));
|
|
60
|
+
k3 ? p6 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
|
|
61
|
+
for (var i9 = decorators.length - 1; i9 >= 0; i9--) {
|
|
62
|
+
ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
|
|
63
|
+
if (k3) {
|
|
64
|
+
ctx.static = s8, ctx.private = p6, access = ctx.access = { has: p6 ? (x2) => __privateIn(target, x2) : (x2) => name in x2 };
|
|
65
|
+
if (k3 ^ 3) access.get = p6 ? (x2) => (k3 ^ 1 ? __privateGet : __privateMethod)(x2, target, k3 ^ 4 ? extra : desc.get) : (x2) => x2[name];
|
|
66
|
+
if (k3 > 2) access.set = p6 ? (x2, y4) => __privateSet(x2, target, y4, k3 ^ 4 ? extra : desc.set) : (x2, y4) => x2[name] = y4;
|
|
67
|
+
}
|
|
68
|
+
it = (0, decorators[i9])(k3 ? k3 < 4 ? p6 ? extra : desc[key2] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
|
|
69
|
+
if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p6 ? extra = it : desc[key2] = it : target = it);
|
|
70
|
+
else if (typeof it !== "object" || it === null) __typeError("Object expected");
|
|
71
|
+
else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
|
|
72
|
+
}
|
|
73
|
+
return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p6 ? k3 ^ 4 ? extra : desc : target;
|
|
74
|
+
};
|
|
75
|
+
var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value2);
|
|
76
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
77
|
+
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
|
|
78
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
79
|
+
var __privateAdd = (obj, member, value2) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
|
|
80
|
+
var __privateSet = (obj, member, value2, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value2) : member.set(obj, value2), value2);
|
|
81
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
44
82
|
|
|
45
83
|
// node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
|
|
46
84
|
var require_dist_ts = __commonJS({
|
|
@@ -416,10 +454,10 @@ var require_TreePosition = __commonJS({
|
|
|
416
454
|
var require_TreeIterator = __commonJS({
|
|
417
455
|
"node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreeIterator.js"(exports, module) {
|
|
418
456
|
"use strict";
|
|
419
|
-
var TREE = Symbol();
|
|
420
|
-
var ROOT = Symbol();
|
|
421
|
-
var NEXT = Symbol();
|
|
422
|
-
var ITERATE_FUNC = Symbol();
|
|
457
|
+
var TREE = /* @__PURE__ */ Symbol();
|
|
458
|
+
var ROOT = /* @__PURE__ */ Symbol();
|
|
459
|
+
var NEXT = /* @__PURE__ */ Symbol();
|
|
460
|
+
var ITERATE_FUNC = /* @__PURE__ */ Symbol();
|
|
423
461
|
var TreeIterator = class {
|
|
424
462
|
constructor(tree, root6, firstResult, iterateFunction) {
|
|
425
463
|
this[TREE] = tree;
|
|
@@ -5557,7 +5595,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5557
5595
|
hash: null
|
|
5558
5596
|
};
|
|
5559
5597
|
this.loop = function(time) {
|
|
5560
|
-
var
|
|
5598
|
+
var _a14 = _this, $el = _a14.$el, ctx = _a14.ctx;
|
|
5561
5599
|
if (!ctx.start) {
|
|
5562
5600
|
ctx.start = time;
|
|
5563
5601
|
}
|
|
@@ -5652,7 +5690,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5652
5690
|
if (!canUseDOM) {
|
|
5653
5691
|
return;
|
|
5654
5692
|
}
|
|
5655
|
-
var
|
|
5693
|
+
var _a14 = this, $el = _a14.$el, ctx = _a14.ctx, currentOptions = _a14.opts;
|
|
5656
5694
|
var $trigger = ctx.$trigger;
|
|
5657
5695
|
var opts = __assign2({}, currentOptions, options || {});
|
|
5658
5696
|
var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
|
|
@@ -5691,7 +5729,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5691
5729
|
if ($header) {
|
|
5692
5730
|
scroll.top = Math.max(0, scroll.top - getSize($header).height);
|
|
5693
5731
|
}
|
|
5694
|
-
var
|
|
5732
|
+
var _b2 = getViewportAndElementSizes($el), viewport = _b2.viewport, size = _b2.size;
|
|
5695
5733
|
scroll.top = vertical ? Math.max(0, Math.min(size.height - viewport.height, scroll.top)) : getScroll($el, "y");
|
|
5696
5734
|
scroll.left = horizontal ? Math.max(0, Math.min(size.width - viewport.width, scroll.left)) : getScroll($el, "x");
|
|
5697
5735
|
if (this.hook(opts, "before", scroll, $trigger) === false) {
|
|
@@ -5719,7 +5757,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5719
5757
|
if (gotoEnd === void 0) {
|
|
5720
5758
|
gotoEnd = false;
|
|
5721
5759
|
}
|
|
5722
|
-
var
|
|
5760
|
+
var _a14 = this, $el = _a14.$el, ctx = _a14.ctx;
|
|
5723
5761
|
var pos = ctx.pos;
|
|
5724
5762
|
if (!$el || !ctx.progress) {
|
|
5725
5763
|
return;
|
|
@@ -5775,7 +5813,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5775
5813
|
ctx.id = SweetScroll4.raf(this.loop);
|
|
5776
5814
|
};
|
|
5777
5815
|
SweetScroll4.prototype.complete = function() {
|
|
5778
|
-
var
|
|
5816
|
+
var _a14 = this, $el = _a14.$el, ctx = _a14.ctx;
|
|
5779
5817
|
var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
|
|
5780
5818
|
if (!$el || !opts) {
|
|
5781
5819
|
return;
|
|
@@ -5801,18 +5839,18 @@ var require_sweet_scroll = __commonJS({
|
|
|
5801
5839
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5802
5840
|
args[_i - 2] = arguments[_i];
|
|
5803
5841
|
}
|
|
5804
|
-
var
|
|
5842
|
+
var _a14;
|
|
5805
5843
|
var callback = options[type5];
|
|
5806
5844
|
var callbackResult;
|
|
5807
5845
|
var methodResult;
|
|
5808
5846
|
if (isFunction2(callback)) {
|
|
5809
5847
|
callbackResult = callback.apply(this, args.concat([this]));
|
|
5810
5848
|
}
|
|
5811
|
-
methodResult = (
|
|
5849
|
+
methodResult = (_a14 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a14, args);
|
|
5812
5850
|
return callbackResult !== void 0 ? callbackResult : methodResult;
|
|
5813
5851
|
};
|
|
5814
5852
|
SweetScroll4.prototype.bind = function(click, stop) {
|
|
5815
|
-
var
|
|
5853
|
+
var _a14 = this, $el = _a14.$el, opts = _a14.ctx.opts;
|
|
5816
5854
|
if ($el) {
|
|
5817
5855
|
if (click) {
|
|
5818
5856
|
addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -5823,7 +5861,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5823
5861
|
}
|
|
5824
5862
|
};
|
|
5825
5863
|
SweetScroll4.prototype.unbind = function(click, stop) {
|
|
5826
|
-
var
|
|
5864
|
+
var _a14 = this, $el = _a14.$el, opts = _a14.ctx.opts;
|
|
5827
5865
|
if ($el) {
|
|
5828
5866
|
if (click) {
|
|
5829
5867
|
removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -5844,7 +5882,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
5844
5882
|
});
|
|
5845
5883
|
|
|
5846
5884
|
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js
|
|
5847
|
-
var t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = Symbol(), o = /* @__PURE__ */ new WeakMap();
|
|
5885
|
+
var t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = /* @__PURE__ */ Symbol(), o = /* @__PURE__ */ new WeakMap();
|
|
5848
5886
|
var n = class {
|
|
5849
5887
|
constructor(t8, e10, o12) {
|
|
5850
5888
|
if (this._$cssResult$ = true, o12 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -5912,7 +5950,7 @@ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNam
|
|
|
5912
5950
|
}
|
|
5913
5951
|
return i9;
|
|
5914
5952
|
} }, f = (t8, s8) => !i2(t8, s8), b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
5915
|
-
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
5953
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
5916
5954
|
var y = class extends HTMLElement {
|
|
5917
5955
|
static addInitializer(t8) {
|
|
5918
5956
|
this._$Ei(), (this.l ??= []).push(t8);
|
|
@@ -5922,7 +5960,7 @@ var y = class extends HTMLElement {
|
|
|
5922
5960
|
}
|
|
5923
5961
|
static createProperty(t8, s8 = b) {
|
|
5924
5962
|
if (s8.state && (s8.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t8) && ((s8 = Object.create(s8)).wrapped = true), this.elementProperties.set(t8, s8), !s8.noAccessor) {
|
|
5925
|
-
const i9 = Symbol(), h8 = this.getPropertyDescriptor(t8, i9, s8);
|
|
5963
|
+
const i9 = /* @__PURE__ */ Symbol(), h8 = this.getPropertyDescriptor(t8, i9, s8);
|
|
5926
5964
|
void 0 !== h8 && e2(this.prototype, t8, h8);
|
|
5927
5965
|
}
|
|
5928
5966
|
}
|
|
@@ -6098,7 +6136,7 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProper
|
|
|
6098
6136
|
|
|
6099
6137
|
// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js
|
|
6100
6138
|
var t2 = globalThis, i3 = t2.trustedTypes, s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t8) => t8 }) : void 0, e3 = "$lit$", h2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o3 = "?" + h2, n3 = `<${o3}>`, r3 = document, l2 = () => r3.createComment(""), c3 = (t8) => null === t8 || "object" != typeof t8 && "function" != typeof t8, a2 = Array.isArray, u2 = (t8) => a2(t8) || "function" == typeof t8?.[Symbol.iterator], d2 = "[ \n\f\r]", f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
|
|
6101
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), p2 = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t8) => (i9, ...s8) => ({ _$litType$: t8, strings: i9, values: s8 }), x = y2(1), b2 = y2(2), w = y2(3), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r3.createTreeWalker(r3, 129);
|
|
6139
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p2 = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t8) => (i9, ...s8) => ({ _$litType$: t8, strings: i9, values: s8 }), x = y2(1), b2 = y2(2), w = y2(3), T = /* @__PURE__ */ Symbol.for("lit-noChange"), E = /* @__PURE__ */ Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r3.createTreeWalker(r3, 129);
|
|
6102
6140
|
function P(t8, i9) {
|
|
6103
6141
|
if (!a2(t8) || !t8.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
6104
6142
|
return void 0 !== s2 ? s2.createHTML(i9) : i9;
|
|
@@ -6603,7 +6641,7 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
|
|
6603
6641
|
done = true;
|
|
6604
6642
|
}
|
|
6605
6643
|
;
|
|
6606
|
-
function
|
|
6644
|
+
function __runInitializers2(thisArg, initializers, value2) {
|
|
6607
6645
|
var useValue = arguments.length > 2;
|
|
6608
6646
|
for (var i9 = 0; i9 < initializers.length; i9++) {
|
|
6609
6647
|
value2 = useValue ? initializers[i9].call(thisArg, value2) : initializers[i9].call(thisArg);
|
|
@@ -6981,7 +7019,7 @@ var tslib_es6_default = {
|
|
|
6981
7019
|
__decorate,
|
|
6982
7020
|
__param,
|
|
6983
7021
|
__esDecorate,
|
|
6984
|
-
__runInitializers,
|
|
7022
|
+
__runInitializers: __runInitializers2,
|
|
6985
7023
|
__propKey,
|
|
6986
7024
|
__setFunctionName,
|
|
6987
7025
|
__metadata,
|
|
@@ -7055,7 +7093,7 @@ var Subscription = (function() {
|
|
|
7055
7093
|
this._finalizers = null;
|
|
7056
7094
|
}
|
|
7057
7095
|
Subscription2.prototype.unsubscribe = function() {
|
|
7058
|
-
var e_1,
|
|
7096
|
+
var e_1, _a14, e_2, _b2;
|
|
7059
7097
|
var errors;
|
|
7060
7098
|
if (!this.closed) {
|
|
7061
7099
|
this.closed = true;
|
|
@@ -7072,7 +7110,7 @@ var Subscription = (function() {
|
|
|
7072
7110
|
e_1 = { error: e_1_1 };
|
|
7073
7111
|
} finally {
|
|
7074
7112
|
try {
|
|
7075
|
-
if (_parentage_1_1 && !_parentage_1_1.done && (
|
|
7113
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a14 = _parentage_1.return)) _a14.call(_parentage_1);
|
|
7076
7114
|
} finally {
|
|
7077
7115
|
if (e_1) throw e_1.error;
|
|
7078
7116
|
}
|
|
@@ -7110,7 +7148,7 @@ var Subscription = (function() {
|
|
|
7110
7148
|
e_2 = { error: e_2_1 };
|
|
7111
7149
|
} finally {
|
|
7112
7150
|
try {
|
|
7113
|
-
if (_finalizers_1_1 && !_finalizers_1_1.done && (
|
|
7151
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b2 = _finalizers_1.return)) _b2.call(_finalizers_1);
|
|
7114
7152
|
} finally {
|
|
7115
7153
|
if (e_2) throw e_2.error;
|
|
7116
7154
|
}
|
|
@@ -7122,7 +7160,7 @@ var Subscription = (function() {
|
|
|
7122
7160
|
}
|
|
7123
7161
|
};
|
|
7124
7162
|
Subscription2.prototype.add = function(teardown) {
|
|
7125
|
-
var
|
|
7163
|
+
var _a14;
|
|
7126
7164
|
if (teardown && teardown !== this) {
|
|
7127
7165
|
if (this.closed) {
|
|
7128
7166
|
execFinalizer(teardown);
|
|
@@ -7133,7 +7171,7 @@ var Subscription = (function() {
|
|
|
7133
7171
|
}
|
|
7134
7172
|
teardown._addParent(this);
|
|
7135
7173
|
}
|
|
7136
|
-
(this._finalizers = (
|
|
7174
|
+
(this._finalizers = (_a14 = this._finalizers) !== null && _a14 !== void 0 ? _a14 : []).push(teardown);
|
|
7137
7175
|
}
|
|
7138
7176
|
}
|
|
7139
7177
|
};
|
|
@@ -7252,7 +7290,7 @@ function errorContext(cb) {
|
|
|
7252
7290
|
}
|
|
7253
7291
|
cb();
|
|
7254
7292
|
if (isRoot) {
|
|
7255
|
-
var
|
|
7293
|
+
var _a14 = context, errorThrown = _a14.errorThrown, error = _a14.error;
|
|
7256
7294
|
context = null;
|
|
7257
7295
|
if (errorThrown) {
|
|
7258
7296
|
throw error;
|
|
@@ -7483,7 +7521,7 @@ var Observable = (function() {
|
|
|
7483
7521
|
var _this = this;
|
|
7484
7522
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
7485
7523
|
errorContext(function() {
|
|
7486
|
-
var
|
|
7524
|
+
var _a14 = _this, operator = _a14.operator, source = _a14.source;
|
|
7487
7525
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
7488
7526
|
});
|
|
7489
7527
|
return subscriber;
|
|
@@ -7515,8 +7553,8 @@ var Observable = (function() {
|
|
|
7515
7553
|
});
|
|
7516
7554
|
};
|
|
7517
7555
|
Observable2.prototype._subscribe = function(subscriber) {
|
|
7518
|
-
var
|
|
7519
|
-
return (
|
|
7556
|
+
var _a14;
|
|
7557
|
+
return (_a14 = this.source) === null || _a14 === void 0 ? void 0 : _a14.subscribe(subscriber);
|
|
7520
7558
|
};
|
|
7521
7559
|
Observable2.prototype[observable] = function() {
|
|
7522
7560
|
return this;
|
|
@@ -7548,8 +7586,8 @@ var Observable = (function() {
|
|
|
7548
7586
|
return Observable2;
|
|
7549
7587
|
})();
|
|
7550
7588
|
function getPromiseCtor(promiseCtor) {
|
|
7551
|
-
var
|
|
7552
|
-
return (
|
|
7589
|
+
var _a14;
|
|
7590
|
+
return (_a14 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a14 !== void 0 ? _a14 : Promise;
|
|
7553
7591
|
}
|
|
7554
7592
|
function isObserver(value2) {
|
|
7555
7593
|
return value2 && isFunction(value2.next) && isFunction(value2.error) && isFunction(value2.complete);
|
|
@@ -7615,11 +7653,11 @@ var OperatorSubscriber = (function(_super) {
|
|
|
7615
7653
|
return _this;
|
|
7616
7654
|
}
|
|
7617
7655
|
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
7618
|
-
var
|
|
7656
|
+
var _a14;
|
|
7619
7657
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
7620
7658
|
var closed_1 = this.closed;
|
|
7621
7659
|
_super.prototype.unsubscribe.call(this);
|
|
7622
|
-
!closed_1 && ((
|
|
7660
|
+
!closed_1 && ((_a14 = this.onFinalize) === null || _a14 === void 0 ? void 0 : _a14.call(this));
|
|
7623
7661
|
}
|
|
7624
7662
|
};
|
|
7625
7663
|
return OperatorSubscriber2;
|
|
@@ -7660,22 +7698,22 @@ var Subject = (function(_super) {
|
|
|
7660
7698
|
Subject2.prototype.next = function(value2) {
|
|
7661
7699
|
var _this = this;
|
|
7662
7700
|
errorContext(function() {
|
|
7663
|
-
var e_1,
|
|
7701
|
+
var e_1, _a14;
|
|
7664
7702
|
_this._throwIfClosed();
|
|
7665
7703
|
if (!_this.isStopped) {
|
|
7666
7704
|
if (!_this.currentObservers) {
|
|
7667
7705
|
_this.currentObservers = Array.from(_this.observers);
|
|
7668
7706
|
}
|
|
7669
7707
|
try {
|
|
7670
|
-
for (var
|
|
7671
|
-
var observer =
|
|
7708
|
+
for (var _b2 = __values(_this.currentObservers), _c2 = _b2.next(); !_c2.done; _c2 = _b2.next()) {
|
|
7709
|
+
var observer = _c2.value;
|
|
7672
7710
|
observer.next(value2);
|
|
7673
7711
|
}
|
|
7674
7712
|
} catch (e_1_1) {
|
|
7675
7713
|
e_1 = { error: e_1_1 };
|
|
7676
7714
|
} finally {
|
|
7677
7715
|
try {
|
|
7678
|
-
if (
|
|
7716
|
+
if (_c2 && !_c2.done && (_a14 = _b2.return)) _a14.call(_b2);
|
|
7679
7717
|
} finally {
|
|
7680
7718
|
if (e_1) throw e_1.error;
|
|
7681
7719
|
}
|
|
@@ -7716,8 +7754,8 @@ var Subject = (function(_super) {
|
|
|
7716
7754
|
};
|
|
7717
7755
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
7718
7756
|
get: function() {
|
|
7719
|
-
var
|
|
7720
|
-
return ((
|
|
7757
|
+
var _a14;
|
|
7758
|
+
return ((_a14 = this.observers) === null || _a14 === void 0 ? void 0 : _a14.length) > 0;
|
|
7721
7759
|
},
|
|
7722
7760
|
enumerable: false,
|
|
7723
7761
|
configurable: true
|
|
@@ -7733,7 +7771,7 @@ var Subject = (function(_super) {
|
|
|
7733
7771
|
};
|
|
7734
7772
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
7735
7773
|
var _this = this;
|
|
7736
|
-
var
|
|
7774
|
+
var _a14 = this, hasError = _a14.hasError, isStopped = _a14.isStopped, observers = _a14.observers;
|
|
7737
7775
|
if (hasError || isStopped) {
|
|
7738
7776
|
return EMPTY_SUBSCRIPTION;
|
|
7739
7777
|
}
|
|
@@ -7745,7 +7783,7 @@ var Subject = (function(_super) {
|
|
|
7745
7783
|
});
|
|
7746
7784
|
};
|
|
7747
7785
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
7748
|
-
var
|
|
7786
|
+
var _a14 = this, hasError = _a14.hasError, thrownError = _a14.thrownError, isStopped = _a14.isStopped;
|
|
7749
7787
|
if (hasError) {
|
|
7750
7788
|
subscriber.error(thrownError);
|
|
7751
7789
|
} else if (isStopped) {
|
|
@@ -7771,20 +7809,20 @@ var AnonymousSubject = (function(_super) {
|
|
|
7771
7809
|
return _this;
|
|
7772
7810
|
}
|
|
7773
7811
|
AnonymousSubject2.prototype.next = function(value2) {
|
|
7774
|
-
var
|
|
7775
|
-
(
|
|
7812
|
+
var _a14, _b2;
|
|
7813
|
+
(_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a14, value2);
|
|
7776
7814
|
};
|
|
7777
7815
|
AnonymousSubject2.prototype.error = function(err) {
|
|
7778
|
-
var
|
|
7779
|
-
(
|
|
7816
|
+
var _a14, _b2;
|
|
7817
|
+
(_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a14, err);
|
|
7780
7818
|
};
|
|
7781
7819
|
AnonymousSubject2.prototype.complete = function() {
|
|
7782
|
-
var
|
|
7783
|
-
(
|
|
7820
|
+
var _a14, _b2;
|
|
7821
|
+
(_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a14);
|
|
7784
7822
|
};
|
|
7785
7823
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
7786
|
-
var
|
|
7787
|
-
return (
|
|
7824
|
+
var _a14, _b2;
|
|
7825
|
+
return (_b2 = (_a14 = this.source) === null || _a14 === void 0 ? void 0 : _a14.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : EMPTY_SUBSCRIPTION;
|
|
7788
7826
|
};
|
|
7789
7827
|
return AnonymousSubject2;
|
|
7790
7828
|
})(Subject);
|
|
@@ -7822,7 +7860,7 @@ var ReplaySubject = (function(_super) {
|
|
|
7822
7860
|
return _this;
|
|
7823
7861
|
}
|
|
7824
7862
|
ReplaySubject2.prototype.next = function(value2) {
|
|
7825
|
-
var
|
|
7863
|
+
var _a14 = this, isStopped = _a14.isStopped, _buffer = _a14._buffer, _infiniteTimeWindow = _a14._infiniteTimeWindow, _timestampProvider = _a14._timestampProvider, _windowTime = _a14._windowTime;
|
|
7826
7864
|
if (!isStopped) {
|
|
7827
7865
|
_buffer.push(value2);
|
|
7828
7866
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -7834,7 +7872,7 @@ var ReplaySubject = (function(_super) {
|
|
|
7834
7872
|
this._throwIfClosed();
|
|
7835
7873
|
this._trimBuffer();
|
|
7836
7874
|
var subscription = this._innerSubscribe(subscriber);
|
|
7837
|
-
var
|
|
7875
|
+
var _a14 = this, _infiniteTimeWindow = _a14._infiniteTimeWindow, _buffer = _a14._buffer;
|
|
7838
7876
|
var copy = _buffer.slice();
|
|
7839
7877
|
for (var i9 = 0; i9 < copy.length && !subscriber.closed; i9 += _infiniteTimeWindow ? 1 : 2) {
|
|
7840
7878
|
subscriber.next(copy[i9]);
|
|
@@ -7843,7 +7881,7 @@ var ReplaySubject = (function(_super) {
|
|
|
7843
7881
|
return subscription;
|
|
7844
7882
|
};
|
|
7845
7883
|
ReplaySubject2.prototype._trimBuffer = function() {
|
|
7846
|
-
var
|
|
7884
|
+
var _a14 = this, _bufferSize = _a14._bufferSize, _timestampProvider = _a14._timestampProvider, _buffer = _a14._buffer, _infiniteTimeWindow = _a14._infiniteTimeWindow;
|
|
7847
7885
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
7848
7886
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
7849
7887
|
if (!_infiniteTimeWindow) {
|
|
@@ -7904,7 +7942,7 @@ var AsyncAction = (function(_super) {
|
|
|
7904
7942
|
return _this;
|
|
7905
7943
|
}
|
|
7906
7944
|
AsyncAction2.prototype.schedule = function(state, delay2) {
|
|
7907
|
-
var
|
|
7945
|
+
var _a14;
|
|
7908
7946
|
if (delay2 === void 0) {
|
|
7909
7947
|
delay2 = 0;
|
|
7910
7948
|
}
|
|
@@ -7919,7 +7957,7 @@ var AsyncAction = (function(_super) {
|
|
|
7919
7957
|
}
|
|
7920
7958
|
this.pending = true;
|
|
7921
7959
|
this.delay = delay2;
|
|
7922
|
-
this.id = (
|
|
7960
|
+
this.id = (_a14 = this.id) !== null && _a14 !== void 0 ? _a14 : this.requestAsyncId(scheduler, this.id, delay2);
|
|
7923
7961
|
return this;
|
|
7924
7962
|
};
|
|
7925
7963
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
|
|
@@ -7968,7 +8006,7 @@ var AsyncAction = (function(_super) {
|
|
|
7968
8006
|
};
|
|
7969
8007
|
AsyncAction2.prototype.unsubscribe = function() {
|
|
7970
8008
|
if (!this.closed) {
|
|
7971
|
-
var
|
|
8009
|
+
var _a14 = this, id = _a14.id, scheduler = _a14.scheduler;
|
|
7972
8010
|
var actions = scheduler.actions;
|
|
7973
8011
|
this.work = this.state = this.scheduler = null;
|
|
7974
8012
|
this.pending = false;
|
|
@@ -8103,30 +8141,30 @@ function isIterable(input) {
|
|
|
8103
8141
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
8104
8142
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
8105
8143
|
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
8106
|
-
var reader,
|
|
8107
|
-
return __generator(this, function(
|
|
8108
|
-
switch (
|
|
8144
|
+
var reader, _a14, value2, done;
|
|
8145
|
+
return __generator(this, function(_b2) {
|
|
8146
|
+
switch (_b2.label) {
|
|
8109
8147
|
case 0:
|
|
8110
8148
|
reader = readableStream.getReader();
|
|
8111
|
-
|
|
8149
|
+
_b2.label = 1;
|
|
8112
8150
|
case 1:
|
|
8113
|
-
|
|
8114
|
-
|
|
8151
|
+
_b2.trys.push([1, , 9, 10]);
|
|
8152
|
+
_b2.label = 2;
|
|
8115
8153
|
case 2:
|
|
8116
8154
|
if (false) return [3, 8];
|
|
8117
8155
|
return [4, __await(reader.read())];
|
|
8118
8156
|
case 3:
|
|
8119
|
-
|
|
8157
|
+
_a14 = _b2.sent(), value2 = _a14.value, done = _a14.done;
|
|
8120
8158
|
if (!done) return [3, 5];
|
|
8121
8159
|
return [4, __await(void 0)];
|
|
8122
8160
|
case 4:
|
|
8123
|
-
return [2,
|
|
8161
|
+
return [2, _b2.sent()];
|
|
8124
8162
|
case 5:
|
|
8125
8163
|
return [4, __await(value2)];
|
|
8126
8164
|
case 6:
|
|
8127
|
-
return [4,
|
|
8165
|
+
return [4, _b2.sent()];
|
|
8128
8166
|
case 7:
|
|
8129
|
-
|
|
8167
|
+
_b2.sent();
|
|
8130
8168
|
return [3, 2];
|
|
8131
8169
|
case 8:
|
|
8132
8170
|
return [3, 10];
|
|
@@ -8201,7 +8239,7 @@ function fromPromise(promise) {
|
|
|
8201
8239
|
}
|
|
8202
8240
|
function fromIterable(iterable) {
|
|
8203
8241
|
return new Observable(function(subscriber) {
|
|
8204
|
-
var e_1,
|
|
8242
|
+
var e_1, _a14;
|
|
8205
8243
|
try {
|
|
8206
8244
|
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
8207
8245
|
var value2 = iterable_1_1.value;
|
|
@@ -8214,7 +8252,7 @@ function fromIterable(iterable) {
|
|
|
8214
8252
|
e_1 = { error: e_1_1 };
|
|
8215
8253
|
} finally {
|
|
8216
8254
|
try {
|
|
8217
|
-
if (iterable_1_1 && !iterable_1_1.done && (
|
|
8255
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a14 = iterable_1.return)) _a14.call(iterable_1);
|
|
8218
8256
|
} finally {
|
|
8219
8257
|
if (e_1) throw e_1.error;
|
|
8220
8258
|
}
|
|
@@ -8234,40 +8272,40 @@ function fromReadableStreamLike(readableStream) {
|
|
|
8234
8272
|
}
|
|
8235
8273
|
function process2(asyncIterable, subscriber) {
|
|
8236
8274
|
var asyncIterable_1, asyncIterable_1_1;
|
|
8237
|
-
var e_2,
|
|
8275
|
+
var e_2, _a14;
|
|
8238
8276
|
return __awaiter(this, void 0, void 0, function() {
|
|
8239
8277
|
var value2, e_2_1;
|
|
8240
|
-
return __generator(this, function(
|
|
8241
|
-
switch (
|
|
8278
|
+
return __generator(this, function(_b2) {
|
|
8279
|
+
switch (_b2.label) {
|
|
8242
8280
|
case 0:
|
|
8243
|
-
|
|
8281
|
+
_b2.trys.push([0, 5, 6, 11]);
|
|
8244
8282
|
asyncIterable_1 = __asyncValues(asyncIterable);
|
|
8245
|
-
|
|
8283
|
+
_b2.label = 1;
|
|
8246
8284
|
case 1:
|
|
8247
8285
|
return [4, asyncIterable_1.next()];
|
|
8248
8286
|
case 2:
|
|
8249
|
-
if (!(asyncIterable_1_1 =
|
|
8287
|
+
if (!(asyncIterable_1_1 = _b2.sent(), !asyncIterable_1_1.done)) return [3, 4];
|
|
8250
8288
|
value2 = asyncIterable_1_1.value;
|
|
8251
8289
|
subscriber.next(value2);
|
|
8252
8290
|
if (subscriber.closed) {
|
|
8253
8291
|
return [2];
|
|
8254
8292
|
}
|
|
8255
|
-
|
|
8293
|
+
_b2.label = 3;
|
|
8256
8294
|
case 3:
|
|
8257
8295
|
return [3, 1];
|
|
8258
8296
|
case 4:
|
|
8259
8297
|
return [3, 11];
|
|
8260
8298
|
case 5:
|
|
8261
|
-
e_2_1 =
|
|
8299
|
+
e_2_1 = _b2.sent();
|
|
8262
8300
|
e_2 = { error: e_2_1 };
|
|
8263
8301
|
return [3, 11];
|
|
8264
8302
|
case 6:
|
|
8265
|
-
|
|
8266
|
-
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (
|
|
8267
|
-
return [4,
|
|
8303
|
+
_b2.trys.push([6, , 9, 10]);
|
|
8304
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a14 = asyncIterable_1.return))) return [3, 8];
|
|
8305
|
+
return [4, _a14.call(asyncIterable_1)];
|
|
8268
8306
|
case 7:
|
|
8269
|
-
|
|
8270
|
-
|
|
8307
|
+
_b2.sent();
|
|
8308
|
+
_b2.label = 8;
|
|
8271
8309
|
case 8:
|
|
8272
8310
|
return [3, 10];
|
|
8273
8311
|
case 9:
|
|
@@ -8373,11 +8411,11 @@ function scheduleIterable(input, scheduler) {
|
|
|
8373
8411
|
executeSchedule(subscriber, scheduler, function() {
|
|
8374
8412
|
iterator2 = input[iterator]();
|
|
8375
8413
|
executeSchedule(subscriber, scheduler, function() {
|
|
8376
|
-
var
|
|
8414
|
+
var _a14;
|
|
8377
8415
|
var value2;
|
|
8378
8416
|
var done;
|
|
8379
8417
|
try {
|
|
8380
|
-
|
|
8418
|
+
_a14 = iterator2.next(), value2 = _a14.value, done = _a14.done;
|
|
8381
8419
|
} catch (err) {
|
|
8382
8420
|
subscriber.error(err);
|
|
8383
8421
|
return;
|
|
@@ -8600,11 +8638,11 @@ function fromEvent(target, eventName, options, resultSelector) {
|
|
|
8600
8638
|
if (resultSelector) {
|
|
8601
8639
|
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
8602
8640
|
}
|
|
8603
|
-
var
|
|
8641
|
+
var _a14 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
|
|
8604
8642
|
return function(handler2) {
|
|
8605
8643
|
return target[methodName](eventName, handler2, options);
|
|
8606
8644
|
};
|
|
8607
|
-
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 =
|
|
8645
|
+
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a14[0], remove2 = _a14[1];
|
|
8608
8646
|
if (!add2) {
|
|
8609
8647
|
if (isArrayLike(target)) {
|
|
8610
8648
|
return mergeMap(function(subTarget) {
|
|
@@ -8722,7 +8760,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
8722
8760
|
var buffers = [];
|
|
8723
8761
|
var count2 = 0;
|
|
8724
8762
|
source.subscribe(createOperatorSubscriber(subscriber, function(value2) {
|
|
8725
|
-
var e_1,
|
|
8763
|
+
var e_1, _a14, e_2, _b2;
|
|
8726
8764
|
var toEmit = null;
|
|
8727
8765
|
if (count2++ % startBufferEvery === 0) {
|
|
8728
8766
|
buffers.push([]);
|
|
@@ -8740,7 +8778,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
8740
8778
|
e_1 = { error: e_1_1 };
|
|
8741
8779
|
} finally {
|
|
8742
8780
|
try {
|
|
8743
|
-
if (buffers_1_1 && !buffers_1_1.done && (
|
|
8781
|
+
if (buffers_1_1 && !buffers_1_1.done && (_a14 = buffers_1.return)) _a14.call(buffers_1);
|
|
8744
8782
|
} finally {
|
|
8745
8783
|
if (e_1) throw e_1.error;
|
|
8746
8784
|
}
|
|
@@ -8756,14 +8794,14 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
8756
8794
|
e_2 = { error: e_2_1 };
|
|
8757
8795
|
} finally {
|
|
8758
8796
|
try {
|
|
8759
|
-
if (toEmit_1_1 && !toEmit_1_1.done && (
|
|
8797
|
+
if (toEmit_1_1 && !toEmit_1_1.done && (_b2 = toEmit_1.return)) _b2.call(toEmit_1);
|
|
8760
8798
|
} finally {
|
|
8761
8799
|
if (e_2) throw e_2.error;
|
|
8762
8800
|
}
|
|
8763
8801
|
}
|
|
8764
8802
|
}
|
|
8765
8803
|
}, function() {
|
|
8766
|
-
var e_3,
|
|
8804
|
+
var e_3, _a14;
|
|
8767
8805
|
try {
|
|
8768
8806
|
for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
|
8769
8807
|
var buffer2 = buffers_2_1.value;
|
|
@@ -8773,7 +8811,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
8773
8811
|
e_3 = { error: e_3_1 };
|
|
8774
8812
|
} finally {
|
|
8775
8813
|
try {
|
|
8776
|
-
if (buffers_2_1 && !buffers_2_1.done && (
|
|
8814
|
+
if (buffers_2_1 && !buffers_2_1.done && (_a14 = buffers_2.return)) _a14.call(buffers_2);
|
|
8777
8815
|
} finally {
|
|
8778
8816
|
if (e_3) throw e_3.error;
|
|
8779
8817
|
}
|
|
@@ -8787,13 +8825,13 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
8787
8825
|
|
|
8788
8826
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
|
|
8789
8827
|
function bufferTime(bufferTimeSpan) {
|
|
8790
|
-
var
|
|
8828
|
+
var _a14, _b2;
|
|
8791
8829
|
var otherArgs = [];
|
|
8792
8830
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8793
8831
|
otherArgs[_i - 1] = arguments[_i];
|
|
8794
8832
|
}
|
|
8795
|
-
var scheduler = (
|
|
8796
|
-
var bufferCreationInterval = (
|
|
8833
|
+
var scheduler = (_a14 = popScheduler(otherArgs)) !== null && _a14 !== void 0 ? _a14 : asyncScheduler;
|
|
8834
|
+
var bufferCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null;
|
|
8797
8835
|
var maxBufferSize = otherArgs[1] || Infinity;
|
|
8798
8836
|
return operate(function(source, subscriber) {
|
|
8799
8837
|
var bufferRecords = [];
|
|
@@ -8827,7 +8865,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
8827
8865
|
}
|
|
8828
8866
|
startBuffer();
|
|
8829
8867
|
var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) {
|
|
8830
|
-
var e_1,
|
|
8868
|
+
var e_1, _a15;
|
|
8831
8869
|
var recordsCopy = bufferRecords.slice();
|
|
8832
8870
|
try {
|
|
8833
8871
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -8840,7 +8878,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
8840
8878
|
e_1 = { error: e_1_1 };
|
|
8841
8879
|
} finally {
|
|
8842
8880
|
try {
|
|
8843
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
8881
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a15 = recordsCopy_1.return)) _a15.call(recordsCopy_1);
|
|
8844
8882
|
} finally {
|
|
8845
8883
|
if (e_1) throw e_1.error;
|
|
8846
8884
|
}
|
|
@@ -8959,7 +8997,7 @@ function takeUntil(notifier) {
|
|
|
8959
8997
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
|
|
8960
8998
|
function throttle(durationSelector, config2) {
|
|
8961
8999
|
return operate(function(source, subscriber) {
|
|
8962
|
-
var
|
|
9000
|
+
var _a14 = config2 !== null && config2 !== void 0 ? config2 : {}, _b2 = _a14.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a14.trailing, trailing = _c2 === void 0 ? false : _c2;
|
|
8963
9001
|
var hasValue = false;
|
|
8964
9002
|
var sendValue = null;
|
|
8965
9003
|
var throttled = null;
|
|
@@ -9209,7 +9247,7 @@ function n5(t8) {
|
|
|
9209
9247
|
})(t8, e10, o12);
|
|
9210
9248
|
}
|
|
9211
9249
|
|
|
9212
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
9250
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/index.js
|
|
9213
9251
|
var dist_ts_exports25 = {};
|
|
9214
9252
|
__export(dist_ts_exports25, {
|
|
9215
9253
|
DomTools: () => DomTools,
|
|
@@ -9220,7 +9258,7 @@ __export(dist_ts_exports25, {
|
|
|
9220
9258
|
plugins: () => domtools_pluginexports_exports
|
|
9221
9259
|
});
|
|
9222
9260
|
|
|
9223
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
9261
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
|
|
9224
9262
|
var domtools_elementbasic_exports = {};
|
|
9225
9263
|
__export(domtools_elementbasic_exports, {
|
|
9226
9264
|
setup: () => setup,
|
|
@@ -10093,7 +10131,7 @@ var secondsInWeek = secondsInDay * 7;
|
|
|
10093
10131
|
var secondsInYear = secondsInDay * daysInYear;
|
|
10094
10132
|
var secondsInMonth = secondsInYear / 12;
|
|
10095
10133
|
var secondsInQuarter = secondsInMonth * 3;
|
|
10096
|
-
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
10134
|
+
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
10097
10135
|
|
|
10098
10136
|
// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
|
|
10099
10137
|
function constructFrom(date, value2) {
|
|
@@ -12509,9 +12547,9 @@ function isProtectedWeekYearToken(token) {
|
|
|
12509
12547
|
return weekYearTokenRE.test(token);
|
|
12510
12548
|
}
|
|
12511
12549
|
function warnOrThrowProtectedError(token, format2, input) {
|
|
12512
|
-
const
|
|
12513
|
-
console.warn(
|
|
12514
|
-
if (throwTokens.includes(token)) throw new RangeError(
|
|
12550
|
+
const _message2 = message(token, format2, input);
|
|
12551
|
+
console.warn(_message2);
|
|
12552
|
+
if (throwTokens.includes(token)) throw new RangeError(_message2);
|
|
12515
12553
|
}
|
|
12516
12554
|
function message(token, format2, input) {
|
|
12517
12555
|
const subject = token[0] === "Y" ? "years" : "days of the month";
|
|
@@ -22742,11 +22780,13 @@ function regexCheck(regex) {
|
|
|
22742
22780
|
}
|
|
22743
22781
|
}
|
|
22744
22782
|
|
|
22745
|
-
// node_modules/.pnpm/unist-util-is@6.0.
|
|
22783
|
+
// node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
|
|
22746
22784
|
var is = (
|
|
22747
22785
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
22748
22786
|
/**
|
|
22749
22787
|
* @type {(
|
|
22788
|
+
* (<Condition extends ReadonlyArray<string>>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition[number]}) &
|
|
22789
|
+
* (<Condition extends Array<string>>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition[number]}) &
|
|
22750
22790
|
* (<Condition extends string>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
22751
22791
|
* (<Condition extends Props>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
22752
22792
|
* (<Condition extends TestFunction>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
@@ -22801,7 +22841,14 @@ var convert = (
|
|
|
22801
22841
|
return castFactory(test);
|
|
22802
22842
|
}
|
|
22803
22843
|
if (typeof test === "object") {
|
|
22804
|
-
return Array.isArray(test) ? anyFactory(test) :
|
|
22844
|
+
return Array.isArray(test) ? anyFactory(test) : (
|
|
22845
|
+
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
22846
|
+
// narrows to `Array`.
|
|
22847
|
+
propertiesFactory(
|
|
22848
|
+
/** @type {Props} */
|
|
22849
|
+
test
|
|
22850
|
+
)
|
|
22851
|
+
);
|
|
22805
22852
|
}
|
|
22806
22853
|
if (typeof test === "string") {
|
|
22807
22854
|
return typeFactory(test);
|
|
@@ -22824,7 +22871,7 @@ function anyFactory(tests) {
|
|
|
22824
22871
|
return false;
|
|
22825
22872
|
}
|
|
22826
22873
|
}
|
|
22827
|
-
function
|
|
22874
|
+
function propertiesFactory(check) {
|
|
22828
22875
|
const checkAsRecord = (
|
|
22829
22876
|
/** @type {Record<string, unknown>} */
|
|
22830
22877
|
check
|
|
@@ -22869,12 +22916,12 @@ function looksLikeANode(value2) {
|
|
|
22869
22916
|
return value2 !== null && typeof value2 === "object" && "type" in value2;
|
|
22870
22917
|
}
|
|
22871
22918
|
|
|
22872
|
-
// node_modules/.pnpm/unist-util-visit-parents@6.0.
|
|
22919
|
+
// node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js
|
|
22873
22920
|
function color(d5) {
|
|
22874
22921
|
return d5;
|
|
22875
22922
|
}
|
|
22876
22923
|
|
|
22877
|
-
// node_modules/.pnpm/unist-util-visit-parents@6.0.
|
|
22924
|
+
// node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js
|
|
22878
22925
|
var empty2 = [];
|
|
22879
22926
|
var CONTINUE = true;
|
|
22880
22927
|
var EXIT = false;
|
|
@@ -36369,7 +36416,7 @@ function remarkStringify(options) {
|
|
|
36369
36416
|
}
|
|
36370
36417
|
}
|
|
36371
36418
|
|
|
36372
|
-
// node_modules/.pnpm/turndown@7.2.
|
|
36419
|
+
// node_modules/.pnpm/turndown@7.2.2/node_modules/turndown/lib/turndown.browser.es.js
|
|
36373
36420
|
function extend2(destination) {
|
|
36374
36421
|
for (var i9 = 1; i9 < arguments.length; i9++) {
|
|
36375
36422
|
var source = arguments[i9];
|
|
@@ -36390,6 +36437,9 @@ function trimTrailingNewlines(string3) {
|
|
|
36390
36437
|
while (indexEnd > 0 && string3[indexEnd - 1] === "\n") indexEnd--;
|
|
36391
36438
|
return string3.substring(0, indexEnd);
|
|
36392
36439
|
}
|
|
36440
|
+
function trimNewlines(string3) {
|
|
36441
|
+
return trimTrailingNewlines(trimLeadingNewlines(string3));
|
|
36442
|
+
}
|
|
36393
36443
|
var blockElements = [
|
|
36394
36444
|
"ADDRESS",
|
|
36395
36445
|
"ARTICLE",
|
|
@@ -36523,8 +36573,7 @@ rules.heading = {
|
|
|
36523
36573
|
rules.blockquote = {
|
|
36524
36574
|
filter: "blockquote",
|
|
36525
36575
|
replacement: function(content3) {
|
|
36526
|
-
content3 = content3.replace(
|
|
36527
|
-
content3 = content3.replace(/^/gm, "> ");
|
|
36576
|
+
content3 = trimNewlines(content3).replace(/^/gm, "> ");
|
|
36528
36577
|
return "\n\n" + content3 + "\n\n";
|
|
36529
36578
|
}
|
|
36530
36579
|
};
|
|
@@ -36549,8 +36598,10 @@ rules.listItem = {
|
|
|
36549
36598
|
var index2 = Array.prototype.indexOf.call(parent.children, node2);
|
|
36550
36599
|
prefix = (start ? Number(start) + index2 : index2 + 1) + ". ";
|
|
36551
36600
|
}
|
|
36552
|
-
|
|
36553
|
-
|
|
36601
|
+
var isParagraph = /\n$/.test(content3);
|
|
36602
|
+
content3 = trimNewlines(content3) + (isParagraph ? "\n" : "");
|
|
36603
|
+
content3 = content3.replace(/\n/gm, "\n" + " ".repeat(prefix.length));
|
|
36604
|
+
return prefix + content3 + (node2.nextSibling ? "\n" : "");
|
|
36554
36605
|
}
|
|
36555
36606
|
};
|
|
36556
36607
|
rules.indentedCodeBlock = {
|
|
@@ -38896,8 +38947,8 @@ var Stringmap2 = class {
|
|
|
38896
38947
|
}
|
|
38897
38948
|
};
|
|
38898
38949
|
|
|
38899
|
-
// node_modules/.pnpm/lenis@1.3.
|
|
38900
|
-
var version = "1.3.
|
|
38950
|
+
// node_modules/.pnpm/lenis@1.3.15/node_modules/lenis/dist/lenis.mjs
|
|
38951
|
+
var version = "1.3.15";
|
|
38901
38952
|
function clamp2(min3, input, max3) {
|
|
38902
38953
|
return Math.max(min3, Math.min(input, max3));
|
|
38903
38954
|
}
|
|
@@ -39447,16 +39498,13 @@ var Lenis = class {
|
|
|
39447
39498
|
onClick = (event) => {
|
|
39448
39499
|
const path2 = event.composedPath();
|
|
39449
39500
|
const anchor = path2.find(
|
|
39450
|
-
(node2) => node2 instanceof HTMLAnchorElement &&
|
|
39501
|
+
(node2) => node2 instanceof HTMLAnchorElement && node2.getAttribute("href")?.includes("#")
|
|
39451
39502
|
);
|
|
39452
39503
|
if (anchor) {
|
|
39453
|
-
const
|
|
39454
|
-
if (
|
|
39504
|
+
const href = anchor.getAttribute("href");
|
|
39505
|
+
if (href) {
|
|
39455
39506
|
const options = typeof this.options.anchors === "object" && this.options.anchors ? this.options.anchors : void 0;
|
|
39456
|
-
|
|
39457
|
-
if (["#", "/#", "./#", "#top", "/#top", "./#top"].includes(id)) {
|
|
39458
|
-
target = 0;
|
|
39459
|
-
}
|
|
39507
|
+
const target = `#${href.split("#")[1]}`;
|
|
39460
39508
|
this.scrollTo(target, options);
|
|
39461
39509
|
}
|
|
39462
39510
|
}
|
|
@@ -39668,7 +39716,7 @@ var Lenis = class {
|
|
|
39668
39716
|
userData
|
|
39669
39717
|
} = {}) {
|
|
39670
39718
|
if ((this.isStopped || this.isLocked) && !force) return;
|
|
39671
|
-
if (typeof target === "string" && ["top", "left", "start"].includes(target)) {
|
|
39719
|
+
if (typeof target === "string" && ["top", "left", "start", "#"].includes(target)) {
|
|
39672
39720
|
target = 0;
|
|
39673
39721
|
} else if (typeof target === "string" && ["bottom", "right", "end"].includes(target)) {
|
|
39674
39722
|
target = this.limit;
|
|
@@ -39676,6 +39724,13 @@ var Lenis = class {
|
|
|
39676
39724
|
let node2;
|
|
39677
39725
|
if (typeof target === "string") {
|
|
39678
39726
|
node2 = document.querySelector(target);
|
|
39727
|
+
if (!node2) {
|
|
39728
|
+
if (target === "#top") {
|
|
39729
|
+
target = 0;
|
|
39730
|
+
} else {
|
|
39731
|
+
console.warn("Lenis: Target not found", target);
|
|
39732
|
+
}
|
|
39733
|
+
}
|
|
39679
39734
|
} else if (target instanceof HTMLElement && target?.nodeType) {
|
|
39680
39735
|
node2 = target;
|
|
39681
39736
|
}
|
|
@@ -39960,7 +40015,7 @@ var Lenis = class {
|
|
|
39960
40015
|
}
|
|
39961
40016
|
};
|
|
39962
40017
|
|
|
39963
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40018
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.plugins.js
|
|
39964
40019
|
var import_sweet_scroll = __toESM(require_sweet_scroll(), 1);
|
|
39965
40020
|
var lik = {
|
|
39966
40021
|
ObjectMap: ObjectMap2,
|
|
@@ -39968,7 +40023,7 @@ var lik = {
|
|
|
39968
40023
|
FastMap: FastMap2
|
|
39969
40024
|
};
|
|
39970
40025
|
|
|
39971
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40026
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.breakpoints.js
|
|
39972
40027
|
var domtools_css_breakpoints_exports = {};
|
|
39973
40028
|
__export(domtools_css_breakpoints_exports, {
|
|
39974
40029
|
cssForDesktop: () => cssForDesktop,
|
|
@@ -40038,7 +40093,7 @@ var cssForPhone = (cssArg) => {
|
|
|
40038
40093
|
`);
|
|
40039
40094
|
};
|
|
40040
40095
|
|
|
40041
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40096
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.scroller.js
|
|
40042
40097
|
var Scroller = class {
|
|
40043
40098
|
constructor(domtoolsInstanceArg) {
|
|
40044
40099
|
this.scrollCallbacks = [];
|
|
@@ -40172,7 +40227,7 @@ var Scroller = class {
|
|
|
40172
40227
|
}
|
|
40173
40228
|
};
|
|
40174
40229
|
|
|
40175
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40230
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.thememanager.js
|
|
40176
40231
|
var ThemeManager = class {
|
|
40177
40232
|
constructor(domtoolsRefArg) {
|
|
40178
40233
|
this.goBrightBoolean = false;
|
|
@@ -40221,7 +40276,7 @@ var ThemeManager = class {
|
|
|
40221
40276
|
}
|
|
40222
40277
|
};
|
|
40223
40278
|
|
|
40224
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40279
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.keyboard.js
|
|
40225
40280
|
var Key;
|
|
40226
40281
|
(function(Key2) {
|
|
40227
40282
|
Key2[Key2["Backspace"] = 8] = "Backspace";
|
|
@@ -40407,35 +40462,49 @@ var Keyboard = class {
|
|
|
40407
40462
|
}
|
|
40408
40463
|
};
|
|
40409
40464
|
|
|
40410
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40465
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.domtools.js
|
|
40411
40466
|
var DomTools = class _DomTools {
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40467
|
+
static {
|
|
40468
|
+
this.initializationPromise = null;
|
|
40469
|
+
}
|
|
40415
40470
|
/**
|
|
40416
40471
|
* setups domtools
|
|
40417
40472
|
*/
|
|
40418
40473
|
static async setupDomTools(optionsArg = {}) {
|
|
40419
|
-
|
|
40420
|
-
|
|
40421
|
-
|
|
40422
|
-
|
|
40423
|
-
|
|
40424
|
-
|
|
40425
|
-
|
|
40426
|
-
|
|
40427
|
-
domToolsInstance.
|
|
40474
|
+
if (!optionsArg.ignoreGlobal && _DomTools.initializationPromise) {
|
|
40475
|
+
return await _DomTools.initializationPromise;
|
|
40476
|
+
}
|
|
40477
|
+
if (!optionsArg.ignoreGlobal) {
|
|
40478
|
+
_DomTools.initializationPromise = (async () => {
|
|
40479
|
+
let domToolsInstance;
|
|
40480
|
+
if (!globalThis.deesDomTools) {
|
|
40481
|
+
globalThis.deesDomTools = new _DomTools(optionsArg);
|
|
40482
|
+
domToolsInstance = globalThis.deesDomTools;
|
|
40483
|
+
const readyStateChangedFunc = () => {
|
|
40484
|
+
if (document.readyState === "interactive" || document.readyState === "complete") {
|
|
40485
|
+
domToolsInstance.elements.headElement = document.querySelector("head");
|
|
40486
|
+
domToolsInstance.elements.bodyElement = document.querySelector("body");
|
|
40487
|
+
domToolsInstance.keyboard = new Keyboard(document.body);
|
|
40488
|
+
domToolsInstance.domReady.resolve();
|
|
40489
|
+
}
|
|
40490
|
+
};
|
|
40491
|
+
if (document.readyState === "interactive" || document.readyState === "complete") {
|
|
40492
|
+
readyStateChangedFunc();
|
|
40493
|
+
} else {
|
|
40494
|
+
document.addEventListener("readystatechange", readyStateChangedFunc);
|
|
40495
|
+
}
|
|
40496
|
+
domToolsInstance.domToolsReady.resolve();
|
|
40497
|
+
} else {
|
|
40498
|
+
domToolsInstance = globalThis.deesDomTools;
|
|
40428
40499
|
}
|
|
40429
|
-
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
domToolsInstance = new _DomTools(optionsArg);
|
|
40500
|
+
await domToolsInstance.domToolsReady.promise;
|
|
40501
|
+
return domToolsInstance;
|
|
40502
|
+
})();
|
|
40503
|
+
return await _DomTools.initializationPromise;
|
|
40434
40504
|
} else {
|
|
40435
|
-
domToolsInstance =
|
|
40505
|
+
const domToolsInstance = new _DomTools(optionsArg);
|
|
40506
|
+
return domToolsInstance;
|
|
40436
40507
|
}
|
|
40437
|
-
await domToolsInstance.domToolsReady.promise;
|
|
40438
|
-
return domToolsInstance;
|
|
40439
40508
|
}
|
|
40440
40509
|
/**
|
|
40441
40510
|
* if you can, use the static asysnc .setupDomTools() function instead since it is safer to use.
|
|
@@ -40474,12 +40543,13 @@ var DomTools = class _DomTools {
|
|
|
40474
40543
|
this.deesComms = new dist_ts_exports16.DeesComms();
|
|
40475
40544
|
this.scroller = new Scroller(this);
|
|
40476
40545
|
this.themeManager = new ThemeManager(this);
|
|
40477
|
-
this.keyboard =
|
|
40546
|
+
this.keyboard = null;
|
|
40478
40547
|
this.domToolsReady = dist_ts_exports.defer();
|
|
40479
40548
|
this.domReady = dist_ts_exports.defer();
|
|
40480
40549
|
this.globalStylesReady = dist_ts_exports.defer();
|
|
40481
40550
|
this.runOnceTrackerStringMap = new lik.Stringmap();
|
|
40482
40551
|
this.runOnceResultMap = new lik.FastMap();
|
|
40552
|
+
this.runOnceErrorMap = new lik.FastMap();
|
|
40483
40553
|
}
|
|
40484
40554
|
/**
|
|
40485
40555
|
* run a function once and always get the Promise of the first execution
|
|
@@ -40491,13 +40561,22 @@ var DomTools = class _DomTools {
|
|
|
40491
40561
|
if (!this.runOnceTrackerStringMap.checkString(identifierArg)) {
|
|
40492
40562
|
this.runOnceTrackerStringMap.addString(identifierArg);
|
|
40493
40563
|
this.runOnceTrackerStringMap.addString(runningId);
|
|
40494
|
-
|
|
40495
|
-
|
|
40496
|
-
|
|
40564
|
+
try {
|
|
40565
|
+
const result = await funcArg();
|
|
40566
|
+
this.runOnceResultMap.addToMap(identifierArg, result);
|
|
40567
|
+
} catch (error) {
|
|
40568
|
+
this.runOnceErrorMap.addToMap(identifierArg, error);
|
|
40569
|
+
} finally {
|
|
40570
|
+
this.runOnceTrackerStringMap.removeString(runningId);
|
|
40571
|
+
}
|
|
40497
40572
|
}
|
|
40498
40573
|
return await this.runOnceTrackerStringMap.registerUntilTrue((stringMap) => {
|
|
40499
40574
|
return !stringMap.includes(runningId);
|
|
40500
40575
|
}, () => {
|
|
40576
|
+
const error = this.runOnceErrorMap.getByKey(identifierArg);
|
|
40577
|
+
if (error) {
|
|
40578
|
+
throw error;
|
|
40579
|
+
}
|
|
40501
40580
|
return this.runOnceResultMap.getByKey(identifierArg);
|
|
40502
40581
|
});
|
|
40503
40582
|
}
|
|
@@ -40550,7 +40629,7 @@ var DomTools = class _DomTools {
|
|
|
40550
40629
|
}
|
|
40551
40630
|
};
|
|
40552
40631
|
|
|
40553
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40632
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.basestyles.js
|
|
40554
40633
|
var scrollBarStyles = (() => {
|
|
40555
40634
|
const returnStylesOld = navigator.userAgent.indexOf("Mac OS X") === -1 ? i``.cssText : ``;
|
|
40556
40635
|
const returnStyles = i`
|
|
@@ -40585,7 +40664,7 @@ var globalBaseStyles = i`
|
|
|
40585
40664
|
${r(scrollBarStyles)}
|
|
40586
40665
|
`.cssText;
|
|
40587
40666
|
|
|
40588
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40667
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
|
|
40589
40668
|
var staticStyles = i`
|
|
40590
40669
|
* {
|
|
40591
40670
|
transition: background 0.1s, color 0.1s;
|
|
@@ -40623,7 +40702,7 @@ var setup = async (elementArg, optionsArg = {}) => {
|
|
|
40623
40702
|
return domTools;
|
|
40624
40703
|
};
|
|
40625
40704
|
|
|
40626
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40705
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.js
|
|
40627
40706
|
var domtools_css_exports = {};
|
|
40628
40707
|
__export(domtools_css_exports, {
|
|
40629
40708
|
cssGridColumns: () => cssGridColumns
|
|
@@ -40636,7 +40715,7 @@ var cssGridColumns = (amountOfColumnsArg, gapSizeArg) => {
|
|
|
40636
40715
|
return returnString;
|
|
40637
40716
|
};
|
|
40638
40717
|
|
|
40639
|
-
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.
|
|
40718
|
+
// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.pluginexports.js
|
|
40640
40719
|
var domtools_pluginexports_exports = {};
|
|
40641
40720
|
__export(domtools_pluginexports_exports, {
|
|
40642
40721
|
SweetScroll: () => import_sweet_scroll2.default,
|
|
@@ -40652,7 +40731,7 @@ __export(domtools_pluginexports_exports, {
|
|
|
40652
40731
|
});
|
|
40653
40732
|
var import_sweet_scroll2 = __toESM(require_sweet_scroll(), 1);
|
|
40654
40733
|
|
|
40655
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
40734
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/plugins.js
|
|
40656
40735
|
var isounique3 = __toESM(require_dist_ts(), 1);
|
|
40657
40736
|
var lit = {
|
|
40658
40737
|
css: i,
|
|
@@ -40661,8 +40740,20 @@ var lit = {
|
|
|
40661
40740
|
property: n5
|
|
40662
40741
|
};
|
|
40663
40742
|
|
|
40664
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
40665
|
-
var CssManager = class {
|
|
40743
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/classes.cssmanager.js
|
|
40744
|
+
var CssManager = class _CssManager {
|
|
40745
|
+
static {
|
|
40746
|
+
this.instance = null;
|
|
40747
|
+
}
|
|
40748
|
+
/**
|
|
40749
|
+
* Returns the singleton instance of CssManager
|
|
40750
|
+
*/
|
|
40751
|
+
static getSingleton() {
|
|
40752
|
+
if (!_CssManager.instance) {
|
|
40753
|
+
_CssManager.instance = new _CssManager();
|
|
40754
|
+
}
|
|
40755
|
+
return _CssManager.instance;
|
|
40756
|
+
}
|
|
40666
40757
|
constructor() {
|
|
40667
40758
|
this.domtoolsPromise = DomTools.setupDomTools();
|
|
40668
40759
|
this.goBright = false;
|
|
@@ -40731,7 +40822,7 @@ var CssManager = class {
|
|
|
40731
40822
|
};
|
|
40732
40823
|
|
|
40733
40824
|
// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js
|
|
40734
|
-
var a3 = Symbol.for(""), o7 = (t8) => {
|
|
40825
|
+
var a3 = /* @__PURE__ */ Symbol.for(""), o7 = (t8) => {
|
|
40735
40826
|
if (t8?.r === a3) return t8?._$litStatic$;
|
|
40736
40827
|
}, s4 = (t8) => ({ _$litStatic$: t8, r: a3 }), i5 = (t8, ...r10) => ({ _$litStatic$: r10.reduce(((r11, e10, a4) => r11 + ((t9) => {
|
|
40737
40828
|
if (void 0 !== t9._$litStatic$) return t9._$litStatic$;
|
|
@@ -40818,8 +40909,8 @@ function e7(e10, r10) {
|
|
|
40818
40909
|
return (n12, s8, i9) => {
|
|
40819
40910
|
const o12 = (t8) => t8.renderRoot?.querySelector(e10) ?? null;
|
|
40820
40911
|
if (r10) {
|
|
40821
|
-
const { get: e11, set: r11 } = "object" == typeof s8 ? n12 : i9 ?? (() => {
|
|
40822
|
-
const t8 = Symbol();
|
|
40912
|
+
const { get: e11, set: r11 } = "object" == typeof s8 ? n12 : i9 ?? /* @__PURE__ */ (() => {
|
|
40913
|
+
const t8 = /* @__PURE__ */ Symbol();
|
|
40823
40914
|
return { get() {
|
|
40824
40915
|
return this[t8];
|
|
40825
40916
|
}, set(e12) {
|
|
@@ -40874,7 +40965,7 @@ function n8(n12) {
|
|
|
40874
40965
|
};
|
|
40875
40966
|
}
|
|
40876
40967
|
|
|
40877
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
40968
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/classes.dees-element.js
|
|
40878
40969
|
var __decorate2 = function(decorators, target, key2, desc) {
|
|
40879
40970
|
var c9 = arguments.length, r10 = c9 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key2) : desc, d5;
|
|
40880
40971
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r10 = Reflect.decorate(decorators, target, key2, desc);
|
|
@@ -40944,7 +41035,7 @@ __decorate2([
|
|
|
40944
41035
|
__metadata2("design:type", dist_ts_exports25.DomTools)
|
|
40945
41036
|
], DeesElement.prototype, "domtools", void 0);
|
|
40946
41037
|
|
|
40947
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
41038
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/directives/index.js
|
|
40948
41039
|
var directives_exports = {};
|
|
40949
41040
|
__export(directives_exports, {
|
|
40950
41041
|
asyncAppend: () => c8,
|
|
@@ -41037,7 +41128,7 @@ var f5 = class extends i6 {
|
|
|
41037
41128
|
}
|
|
41038
41129
|
};
|
|
41039
41130
|
|
|
41040
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
41131
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/directives/classes.resolvedirective.js
|
|
41041
41132
|
var ResolveDirective = class extends f5 {
|
|
41042
41133
|
constructor() {
|
|
41043
41134
|
super(...arguments);
|
|
@@ -41080,7 +41171,7 @@ var resolveExec = (funcArg) => {
|
|
|
41080
41171
|
return resolve(funcArg());
|
|
41081
41172
|
};
|
|
41082
41173
|
|
|
41083
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
41174
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribedirective.js
|
|
41084
41175
|
var SubscribeDirective = class extends f5 {
|
|
41085
41176
|
constructor() {
|
|
41086
41177
|
super(...arguments);
|
|
@@ -41110,7 +41201,7 @@ var SubscribeDirective = class extends f5 {
|
|
|
41110
41201
|
};
|
|
41111
41202
|
var subscribe = e4(SubscribeDirective);
|
|
41112
41203
|
|
|
41113
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
41204
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribewithtemplate.js
|
|
41114
41205
|
var SubscribeWithTemplateDirective = class extends f5 {
|
|
41115
41206
|
constructor() {
|
|
41116
41207
|
super(...arguments);
|
|
@@ -41264,8 +41355,8 @@ var c8 = e4(class extends o11 {
|
|
|
41264
41355
|
}
|
|
41265
41356
|
});
|
|
41266
41357
|
|
|
41267
|
-
// node_modules/.pnpm/@design.estate+dees-element@2.1.
|
|
41268
|
-
var cssManager =
|
|
41358
|
+
// node_modules/.pnpm/@design.estate+dees-element@2.1.3/node_modules/@design.estate/dees-element/dist_ts/index.js
|
|
41359
|
+
var cssManager = CssManager.getSingleton();
|
|
41269
41360
|
|
|
41270
41361
|
// ts_web/elements/wcctools.helpers.ts
|
|
41271
41362
|
var resolveTemplateFactory = async (factoryArg) => {
|
|
@@ -41273,11 +41364,14 @@ var resolveTemplateFactory = async (factoryArg) => {
|
|
|
41273
41364
|
};
|
|
41274
41365
|
|
|
41275
41366
|
// ts_web/elements/wcc-frame.ts
|
|
41276
|
-
var
|
|
41367
|
+
var _isFullscreen_dec, _advancedEditorOpen_dec, _viewport_dec, _a, _WccFrame_decorators, _init, _viewport, _advancedEditorOpen, _isFullscreen;
|
|
41368
|
+
_WccFrame_decorators = [t4("wcc-frame")];
|
|
41369
|
+
var WccFrame = class extends (_a = DeesElement, _viewport_dec = [n5()], _advancedEditorOpen_dec = [n5({ type: Boolean })], _isFullscreen_dec = [n5({ type: Boolean })], _a) {
|
|
41277
41370
|
constructor() {
|
|
41278
41371
|
super(...arguments);
|
|
41279
|
-
this
|
|
41280
|
-
this
|
|
41372
|
+
__privateAdd(this, _viewport, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
|
|
41373
|
+
__privateAdd(this, _advancedEditorOpen, __runInitializers(_init, 12, this, false)), __runInitializers(_init, 15, this);
|
|
41374
|
+
__privateAdd(this, _isFullscreen, __runInitializers(_init, 16, this, false)), __runInitializers(_init, 19, this);
|
|
41281
41375
|
}
|
|
41282
41376
|
render() {
|
|
41283
41377
|
return x`
|
|
@@ -41355,7 +41449,15 @@ var WccFrame = class extends DeesElement {
|
|
|
41355
41449
|
return this.shadowRoot.querySelector(".viewport");
|
|
41356
41450
|
}
|
|
41357
41451
|
};
|
|
41358
|
-
|
|
41452
|
+
_init = __decoratorStart(_a);
|
|
41453
|
+
_viewport = new WeakMap();
|
|
41454
|
+
_advancedEditorOpen = new WeakMap();
|
|
41455
|
+
_isFullscreen = new WeakMap();
|
|
41456
|
+
__decorateElement(_init, 4, "viewport", _viewport_dec, WccFrame, _viewport);
|
|
41457
|
+
__decorateElement(_init, 4, "advancedEditorOpen", _advancedEditorOpen_dec, WccFrame, _advancedEditorOpen);
|
|
41458
|
+
__decorateElement(_init, 4, "isFullscreen", _isFullscreen_dec, WccFrame, _isFullscreen);
|
|
41459
|
+
WccFrame = __decorateElement(_init, 0, "WccFrame", _WccFrame_decorators, WccFrame);
|
|
41460
|
+
__publicField(WccFrame, "styles", [
|
|
41359
41461
|
i`
|
|
41360
41462
|
:host {
|
|
41361
41463
|
border: 10px solid #ffaeaf;
|
|
@@ -41376,25 +41478,19 @@ WccFrame.styles = [
|
|
|
41376
41478
|
min-height: 100%;
|
|
41377
41479
|
}
|
|
41378
41480
|
`
|
|
41379
|
-
];
|
|
41380
|
-
|
|
41381
|
-
n5()
|
|
41382
|
-
], WccFrame.prototype, "viewport", 2);
|
|
41383
|
-
__decorateClass([
|
|
41384
|
-
n5({ type: Boolean })
|
|
41385
|
-
], WccFrame.prototype, "advancedEditorOpen", 2);
|
|
41386
|
-
__decorateClass([
|
|
41387
|
-
n5({ type: Boolean })
|
|
41388
|
-
], WccFrame.prototype, "isFullscreen", 2);
|
|
41389
|
-
WccFrame = __decorateClass([
|
|
41390
|
-
t4("wcc-frame")
|
|
41391
|
-
], WccFrame);
|
|
41481
|
+
]);
|
|
41482
|
+
__runInitializers(_init, 1, WccFrame);
|
|
41392
41483
|
|
|
41393
41484
|
// ts_web/elements/wcc-sidebar.ts
|
|
41394
|
-
var
|
|
41485
|
+
var _isFullscreen_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a2, _WccSidebar_decorators, _init2, _selectedItem, _selectedType, _dashboardRef, _isFullscreen2;
|
|
41486
|
+
_WccSidebar_decorators = [t4("wcc-sidebar")];
|
|
41487
|
+
var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ attribute: false })], _selectedType_dec = [n5({ attribute: false })], _dashboardRef_dec = [n5()], _isFullscreen_dec2 = [n5()], _a2) {
|
|
41395
41488
|
constructor() {
|
|
41396
41489
|
super(...arguments);
|
|
41397
|
-
this
|
|
41490
|
+
__privateAdd(this, _selectedItem, __runInitializers(_init2, 8, this)), __runInitializers(_init2, 11, this);
|
|
41491
|
+
__privateAdd(this, _selectedType, __runInitializers(_init2, 12, this)), __runInitializers(_init2, 15, this);
|
|
41492
|
+
__privateAdd(this, _dashboardRef, __runInitializers(_init2, 16, this)), __runInitializers(_init2, 19, this);
|
|
41493
|
+
__privateAdd(this, _isFullscreen2, __runInitializers(_init2, 20, this, false)), __runInitializers(_init2, 23, this);
|
|
41398
41494
|
}
|
|
41399
41495
|
render() {
|
|
41400
41496
|
return x`
|
|
@@ -41603,37 +41699,1343 @@ var WccSidebar = class extends DeesElement {
|
|
|
41603
41699
|
this.dashboardRef.buildUrl();
|
|
41604
41700
|
}
|
|
41605
41701
|
};
|
|
41606
|
-
|
|
41607
|
-
|
|
41608
|
-
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41612
|
-
|
|
41613
|
-
|
|
41614
|
-
|
|
41615
|
-
|
|
41616
|
-
|
|
41617
|
-
|
|
41618
|
-
|
|
41619
|
-
|
|
41620
|
-
|
|
41702
|
+
_init2 = __decoratorStart(_a2);
|
|
41703
|
+
_selectedItem = new WeakMap();
|
|
41704
|
+
_selectedType = new WeakMap();
|
|
41705
|
+
_dashboardRef = new WeakMap();
|
|
41706
|
+
_isFullscreen2 = new WeakMap();
|
|
41707
|
+
__decorateElement(_init2, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
|
|
41708
|
+
__decorateElement(_init2, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
|
|
41709
|
+
__decorateElement(_init2, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
|
|
41710
|
+
__decorateElement(_init2, 4, "isFullscreen", _isFullscreen_dec2, WccSidebar, _isFullscreen2);
|
|
41711
|
+
WccSidebar = __decorateElement(_init2, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
|
|
41712
|
+
__runInitializers(_init2, 1, WccSidebar);
|
|
41713
|
+
|
|
41714
|
+
// ts_web/elements/wcc-record-button.ts
|
|
41715
|
+
var _duration_dec, _state_dec, _a3, _WccRecordButton_decorators, _init3, _state, _duration;
|
|
41716
|
+
_WccRecordButton_decorators = [t4("wcc-record-button")];
|
|
41717
|
+
var WccRecordButton = class extends (_a3 = DeesElement, _state_dec = [n5({ type: String })], _duration_dec = [n5({ type: Number })], _a3) {
|
|
41718
|
+
constructor() {
|
|
41719
|
+
super(...arguments);
|
|
41720
|
+
__privateAdd(this, _state, __runInitializers(_init3, 8, this, "idle")), __runInitializers(_init3, 11, this);
|
|
41721
|
+
__privateAdd(this, _duration, __runInitializers(_init3, 12, this, 0)), __runInitializers(_init3, 15, this);
|
|
41722
|
+
__publicField(this, "handleClick", () => {
|
|
41723
|
+
this.dispatchEvent(new CustomEvent("record-click", {
|
|
41724
|
+
bubbles: true,
|
|
41725
|
+
composed: true
|
|
41726
|
+
}));
|
|
41727
|
+
});
|
|
41728
|
+
}
|
|
41729
|
+
formatDuration(seconds) {
|
|
41730
|
+
const mins = Math.floor(seconds / 60);
|
|
41731
|
+
const secs = seconds % 60;
|
|
41732
|
+
return `${mins.toString().padStart(2, "0")}:${secs.toString().padStart(2, "0")}`;
|
|
41733
|
+
}
|
|
41734
|
+
render() {
|
|
41735
|
+
return x`
|
|
41736
|
+
<div class="content">
|
|
41737
|
+
<div class="rec-icon"></div>
|
|
41738
|
+
${this.state === "recording" ? x`
|
|
41739
|
+
<span class="recording-timer">${this.formatDuration(this.duration)}</span>
|
|
41740
|
+
` : null}
|
|
41741
|
+
</div>
|
|
41742
|
+
`;
|
|
41743
|
+
}
|
|
41744
|
+
async connectedCallback() {
|
|
41745
|
+
await super.connectedCallback();
|
|
41746
|
+
this.addEventListener("click", this.handleClick);
|
|
41747
|
+
}
|
|
41748
|
+
async disconnectedCallback() {
|
|
41749
|
+
await super.disconnectedCallback();
|
|
41750
|
+
this.removeEventListener("click", this.handleClick);
|
|
41751
|
+
}
|
|
41752
|
+
updated(changedProperties) {
|
|
41753
|
+
super.updated(changedProperties);
|
|
41754
|
+
if (changedProperties.has("state")) {
|
|
41755
|
+
if (this.state === "recording") {
|
|
41756
|
+
this.classList.add("recording");
|
|
41757
|
+
} else {
|
|
41758
|
+
this.classList.remove("recording");
|
|
41759
|
+
}
|
|
41760
|
+
}
|
|
41761
|
+
}
|
|
41762
|
+
};
|
|
41763
|
+
_init3 = __decoratorStart(_a3);
|
|
41764
|
+
_state = new WeakMap();
|
|
41765
|
+
_duration = new WeakMap();
|
|
41766
|
+
__decorateElement(_init3, 4, "state", _state_dec, WccRecordButton, _state);
|
|
41767
|
+
__decorateElement(_init3, 4, "duration", _duration_dec, WccRecordButton, _duration);
|
|
41768
|
+
WccRecordButton = __decorateElement(_init3, 0, "WccRecordButton", _WccRecordButton_decorators, WccRecordButton);
|
|
41769
|
+
__publicField(WccRecordButton, "styles", [
|
|
41770
|
+
i`
|
|
41771
|
+
:host {
|
|
41772
|
+
display: flex;
|
|
41773
|
+
align-items: center;
|
|
41774
|
+
justify-content: center;
|
|
41775
|
+
background: transparent;
|
|
41776
|
+
cursor: pointer;
|
|
41777
|
+
transition: all 0.15s ease;
|
|
41778
|
+
color: #666;
|
|
41779
|
+
user-select: none;
|
|
41780
|
+
}
|
|
41781
|
+
|
|
41782
|
+
:host(:hover) {
|
|
41783
|
+
background: rgba(239, 68, 68, 0.05);
|
|
41784
|
+
color: #f87171;
|
|
41785
|
+
}
|
|
41786
|
+
|
|
41787
|
+
:host(.recording) {
|
|
41788
|
+
background: rgba(239, 68, 68, 0.15);
|
|
41789
|
+
color: #f87171;
|
|
41790
|
+
}
|
|
41791
|
+
|
|
41792
|
+
.content {
|
|
41793
|
+
display: flex;
|
|
41794
|
+
align-items: center;
|
|
41795
|
+
justify-content: center;
|
|
41796
|
+
gap: 0.25rem;
|
|
41797
|
+
}
|
|
41798
|
+
|
|
41799
|
+
.rec-icon {
|
|
41800
|
+
width: 12px;
|
|
41801
|
+
height: 12px;
|
|
41802
|
+
border-radius: 50%;
|
|
41803
|
+
background: currentColor;
|
|
41804
|
+
}
|
|
41805
|
+
|
|
41806
|
+
:host(.recording) .rec-icon {
|
|
41807
|
+
animation: pulse-recording 1s ease-in-out infinite;
|
|
41808
|
+
}
|
|
41809
|
+
|
|
41810
|
+
@keyframes pulse-recording {
|
|
41811
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
41812
|
+
50% { opacity: 0.5; transform: scale(0.9); }
|
|
41813
|
+
}
|
|
41814
|
+
|
|
41815
|
+
.recording-timer {
|
|
41816
|
+
font-family: 'Consolas', 'Monaco', monospace;
|
|
41817
|
+
font-size: 0.7rem;
|
|
41818
|
+
}
|
|
41819
|
+
`
|
|
41820
|
+
]);
|
|
41821
|
+
__runInitializers(_init3, 1, WccRecordButton);
|
|
41822
|
+
|
|
41823
|
+
// ts_web/services/recorder.service.ts
|
|
41824
|
+
var RecorderService = class {
|
|
41825
|
+
// Recording state
|
|
41826
|
+
mediaRecorder = null;
|
|
41827
|
+
recordedChunks = [];
|
|
41828
|
+
durationInterval = null;
|
|
41829
|
+
_duration = 0;
|
|
41830
|
+
_recordedBlob = null;
|
|
41831
|
+
_isRecording = false;
|
|
41832
|
+
// Audio monitoring state
|
|
41833
|
+
audioContext = null;
|
|
41834
|
+
audioAnalyser = null;
|
|
41835
|
+
audioMonitoringInterval = null;
|
|
41836
|
+
monitoringStream = null;
|
|
41837
|
+
// Current recording stream
|
|
41838
|
+
currentStream = null;
|
|
41839
|
+
// Event callbacks
|
|
41840
|
+
events = {};
|
|
41841
|
+
constructor(events) {
|
|
41842
|
+
if (events) {
|
|
41843
|
+
this.events = events;
|
|
41844
|
+
}
|
|
41845
|
+
}
|
|
41846
|
+
// Public getters
|
|
41847
|
+
get isRecording() {
|
|
41848
|
+
return this._isRecording;
|
|
41849
|
+
}
|
|
41850
|
+
get duration() {
|
|
41851
|
+
return this._duration;
|
|
41852
|
+
}
|
|
41853
|
+
get recordedBlob() {
|
|
41854
|
+
return this._recordedBlob;
|
|
41855
|
+
}
|
|
41856
|
+
// Update event callbacks
|
|
41857
|
+
setEvents(events) {
|
|
41858
|
+
this.events = { ...this.events, ...events };
|
|
41859
|
+
}
|
|
41860
|
+
// ==================== Microphone Management ====================
|
|
41861
|
+
async loadMicrophones(requestPermission = false) {
|
|
41862
|
+
try {
|
|
41863
|
+
if (requestPermission) {
|
|
41864
|
+
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
41865
|
+
stream.getTracks().forEach((track2) => track2.stop());
|
|
41866
|
+
}
|
|
41867
|
+
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
41868
|
+
return devices.filter((d5) => d5.kind === "audioinput");
|
|
41869
|
+
} catch (error) {
|
|
41870
|
+
console.error("Error loading microphones:", error);
|
|
41871
|
+
return [];
|
|
41872
|
+
}
|
|
41873
|
+
}
|
|
41874
|
+
async startAudioMonitoring(deviceId) {
|
|
41875
|
+
this.stopAudioMonitoring();
|
|
41876
|
+
if (!deviceId) return;
|
|
41877
|
+
try {
|
|
41878
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
41879
|
+
audio: { deviceId: { exact: deviceId } }
|
|
41880
|
+
});
|
|
41881
|
+
this.monitoringStream = stream;
|
|
41882
|
+
this.audioContext = new AudioContext();
|
|
41883
|
+
const source = this.audioContext.createMediaStreamSource(stream);
|
|
41884
|
+
this.audioAnalyser = this.audioContext.createAnalyser();
|
|
41885
|
+
this.audioAnalyser.fftSize = 256;
|
|
41886
|
+
source.connect(this.audioAnalyser);
|
|
41887
|
+
const dataArray = new Uint8Array(this.audioAnalyser.frequencyBinCount);
|
|
41888
|
+
this.audioMonitoringInterval = window.setInterval(() => {
|
|
41889
|
+
if (this.audioAnalyser) {
|
|
41890
|
+
this.audioAnalyser.getByteFrequencyData(dataArray);
|
|
41891
|
+
const average = dataArray.reduce((a4, b4) => a4 + b4) / dataArray.length;
|
|
41892
|
+
const level = Math.min(100, average / 128 * 100);
|
|
41893
|
+
this.events.onAudioLevelUpdate?.(level);
|
|
41894
|
+
}
|
|
41895
|
+
}, 50);
|
|
41896
|
+
} catch (error) {
|
|
41897
|
+
console.error("Error starting audio monitoring:", error);
|
|
41898
|
+
this.events.onAudioLevelUpdate?.(0);
|
|
41899
|
+
}
|
|
41900
|
+
}
|
|
41901
|
+
stopAudioMonitoring() {
|
|
41902
|
+
if (this.audioMonitoringInterval) {
|
|
41903
|
+
clearInterval(this.audioMonitoringInterval);
|
|
41904
|
+
this.audioMonitoringInterval = null;
|
|
41905
|
+
}
|
|
41906
|
+
if (this.audioContext) {
|
|
41907
|
+
this.audioContext.close();
|
|
41908
|
+
this.audioContext = null;
|
|
41909
|
+
}
|
|
41910
|
+
if (this.monitoringStream) {
|
|
41911
|
+
this.monitoringStream.getTracks().forEach((track2) => track2.stop());
|
|
41912
|
+
this.monitoringStream = null;
|
|
41913
|
+
}
|
|
41914
|
+
this.audioAnalyser = null;
|
|
41915
|
+
}
|
|
41916
|
+
// ==================== Recording Control ====================
|
|
41917
|
+
async startRecording(options) {
|
|
41918
|
+
try {
|
|
41919
|
+
this.stopAudioMonitoring();
|
|
41920
|
+
const displayMediaOptions = {
|
|
41921
|
+
video: {
|
|
41922
|
+
displaySurface: options.mode === "viewport" ? "browser" : "monitor"
|
|
41923
|
+
},
|
|
41924
|
+
audio: false
|
|
41925
|
+
};
|
|
41926
|
+
if (options.mode === "viewport") {
|
|
41927
|
+
displayMediaOptions.preferCurrentTab = true;
|
|
41928
|
+
}
|
|
41929
|
+
const videoStream = await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
|
|
41930
|
+
if (options.mode === "viewport" && options.viewportElement) {
|
|
41931
|
+
try {
|
|
41932
|
+
if ("CropTarget" in window) {
|
|
41933
|
+
const cropTarget = await window.CropTarget.fromElement(options.viewportElement);
|
|
41934
|
+
const [videoTrack] = videoStream.getVideoTracks();
|
|
41935
|
+
await videoTrack.cropTo(cropTarget);
|
|
41936
|
+
}
|
|
41937
|
+
} catch (e10) {
|
|
41938
|
+
console.warn("Element Capture not supported, recording full tab:", e10);
|
|
41939
|
+
}
|
|
41940
|
+
}
|
|
41941
|
+
let combinedStream = videoStream;
|
|
41942
|
+
if (options.audioDeviceId) {
|
|
41943
|
+
try {
|
|
41944
|
+
const audioStream = await navigator.mediaDevices.getUserMedia({
|
|
41945
|
+
audio: { deviceId: { exact: options.audioDeviceId } }
|
|
41946
|
+
});
|
|
41947
|
+
combinedStream = new MediaStream([
|
|
41948
|
+
...videoStream.getVideoTracks(),
|
|
41949
|
+
...audioStream.getAudioTracks()
|
|
41950
|
+
]);
|
|
41951
|
+
} catch (audioError) {
|
|
41952
|
+
console.warn("Could not add audio:", audioError);
|
|
41953
|
+
}
|
|
41954
|
+
}
|
|
41955
|
+
this.currentStream = combinedStream;
|
|
41956
|
+
const mimeType = MediaRecorder.isTypeSupported("video/webm;codecs=vp9") ? "video/webm;codecs=vp9" : "video/webm";
|
|
41957
|
+
this.mediaRecorder = new MediaRecorder(combinedStream, { mimeType });
|
|
41958
|
+
this.recordedChunks = [];
|
|
41959
|
+
this.mediaRecorder.ondataavailable = (e10) => {
|
|
41960
|
+
if (e10.data.size > 0) {
|
|
41961
|
+
this.recordedChunks.push(e10.data);
|
|
41962
|
+
}
|
|
41963
|
+
};
|
|
41964
|
+
this.mediaRecorder.onstop = () => this.handleRecordingComplete();
|
|
41965
|
+
videoStream.getVideoTracks()[0].onended = () => {
|
|
41966
|
+
if (this._isRecording) {
|
|
41967
|
+
this.stopRecording();
|
|
41968
|
+
this.events.onStreamEnded?.();
|
|
41969
|
+
}
|
|
41970
|
+
};
|
|
41971
|
+
this.mediaRecorder.start(1e3);
|
|
41972
|
+
this._duration = 0;
|
|
41973
|
+
this.durationInterval = window.setInterval(() => {
|
|
41974
|
+
this._duration++;
|
|
41975
|
+
this.events.onDurationUpdate?.(this._duration);
|
|
41976
|
+
}, 1e3);
|
|
41977
|
+
this._isRecording = true;
|
|
41978
|
+
} catch (error) {
|
|
41979
|
+
console.error("Error starting recording:", error);
|
|
41980
|
+
this._isRecording = false;
|
|
41981
|
+
this.events.onError?.(error);
|
|
41982
|
+
throw error;
|
|
41983
|
+
}
|
|
41984
|
+
}
|
|
41985
|
+
stopRecording() {
|
|
41986
|
+
if (this.mediaRecorder && this.mediaRecorder.state !== "inactive") {
|
|
41987
|
+
this.mediaRecorder.stop();
|
|
41988
|
+
}
|
|
41989
|
+
if (this.durationInterval) {
|
|
41990
|
+
clearInterval(this.durationInterval);
|
|
41991
|
+
this.durationInterval = null;
|
|
41992
|
+
}
|
|
41993
|
+
}
|
|
41994
|
+
handleRecordingComplete() {
|
|
41995
|
+
this._recordedBlob = new Blob(this.recordedChunks, { type: "video/webm" });
|
|
41996
|
+
if (this.currentStream) {
|
|
41997
|
+
this.currentStream.getTracks().forEach((track2) => track2.stop());
|
|
41998
|
+
this.currentStream = null;
|
|
41999
|
+
}
|
|
42000
|
+
this._isRecording = false;
|
|
42001
|
+
this.events.onRecordingComplete?.(this._recordedBlob);
|
|
42002
|
+
}
|
|
42003
|
+
// ==================== Trim & Export ====================
|
|
42004
|
+
async exportTrimmedVideo(videoElement, trimStart, trimEnd) {
|
|
42005
|
+
return new Promise((resolve2, reject) => {
|
|
42006
|
+
const canvas = document.createElement("canvas");
|
|
42007
|
+
canvas.width = videoElement.videoWidth || 1280;
|
|
42008
|
+
canvas.height = videoElement.videoHeight || 720;
|
|
42009
|
+
const ctx = canvas.getContext("2d");
|
|
42010
|
+
if (!ctx) {
|
|
42011
|
+
reject(new Error("Could not get canvas context"));
|
|
42012
|
+
return;
|
|
42013
|
+
}
|
|
42014
|
+
const canvasStream = canvas.captureStream(30);
|
|
42015
|
+
let combinedStream;
|
|
42016
|
+
try {
|
|
42017
|
+
const audioCtx = new AudioContext();
|
|
42018
|
+
const source = audioCtx.createMediaElementSource(videoElement);
|
|
42019
|
+
const destination = audioCtx.createMediaStreamDestination();
|
|
42020
|
+
source.connect(destination);
|
|
42021
|
+
source.connect(audioCtx.destination);
|
|
42022
|
+
combinedStream = new MediaStream([
|
|
42023
|
+
...canvasStream.getVideoTracks(),
|
|
42024
|
+
...destination.stream.getAudioTracks()
|
|
42025
|
+
]);
|
|
42026
|
+
const cleanup = () => {
|
|
42027
|
+
audioCtx.close();
|
|
42028
|
+
};
|
|
42029
|
+
this.recordTrimmedStream(videoElement, canvas, ctx, combinedStream, trimStart, trimEnd, cleanup, resolve2, reject);
|
|
42030
|
+
} catch (audioError) {
|
|
42031
|
+
console.warn("Could not capture audio, recording video only:", audioError);
|
|
42032
|
+
combinedStream = canvasStream;
|
|
42033
|
+
this.recordTrimmedStream(videoElement, canvas, ctx, combinedStream, trimStart, trimEnd, () => {
|
|
42034
|
+
}, resolve2, reject);
|
|
42035
|
+
}
|
|
42036
|
+
});
|
|
42037
|
+
}
|
|
42038
|
+
recordTrimmedStream(video, canvas, ctx, stream, trimStart, trimEnd, cleanup, resolve2, reject) {
|
|
42039
|
+
const mimeType = MediaRecorder.isTypeSupported("video/webm;codecs=vp9") ? "video/webm;codecs=vp9" : "video/webm";
|
|
42040
|
+
const recorder = new MediaRecorder(stream, { mimeType });
|
|
42041
|
+
const chunks = [];
|
|
42042
|
+
recorder.ondataavailable = (e10) => {
|
|
42043
|
+
if (e10.data.size > 0) {
|
|
42044
|
+
chunks.push(e10.data);
|
|
42045
|
+
}
|
|
42046
|
+
};
|
|
42047
|
+
recorder.onstop = () => {
|
|
42048
|
+
cleanup();
|
|
42049
|
+
resolve2(new Blob(chunks, { type: "video/webm" }));
|
|
42050
|
+
};
|
|
42051
|
+
recorder.onerror = (e10) => {
|
|
42052
|
+
cleanup();
|
|
42053
|
+
reject(new Error("Recording error: " + e10));
|
|
42054
|
+
};
|
|
42055
|
+
video.currentTime = trimStart;
|
|
42056
|
+
video.onseeked = () => {
|
|
42057
|
+
recorder.start(100);
|
|
42058
|
+
video.play();
|
|
42059
|
+
const drawFrame = () => {
|
|
42060
|
+
if (video.currentTime >= trimEnd || video.paused || video.ended) {
|
|
42061
|
+
video.pause();
|
|
42062
|
+
video.onseeked = null;
|
|
42063
|
+
setTimeout(() => {
|
|
42064
|
+
if (recorder.state === "recording") {
|
|
42065
|
+
recorder.stop();
|
|
42066
|
+
}
|
|
42067
|
+
}, 100);
|
|
42068
|
+
return;
|
|
42069
|
+
}
|
|
42070
|
+
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
42071
|
+
requestAnimationFrame(drawFrame);
|
|
42072
|
+
};
|
|
42073
|
+
drawFrame();
|
|
42074
|
+
};
|
|
42075
|
+
}
|
|
42076
|
+
// ==================== Cleanup ====================
|
|
42077
|
+
reset() {
|
|
42078
|
+
this._recordedBlob = null;
|
|
42079
|
+
this.recordedChunks = [];
|
|
42080
|
+
this._duration = 0;
|
|
42081
|
+
this._isRecording = false;
|
|
42082
|
+
}
|
|
42083
|
+
dispose() {
|
|
42084
|
+
this.stopRecording();
|
|
42085
|
+
this.stopAudioMonitoring();
|
|
42086
|
+
this.reset();
|
|
42087
|
+
if (this.currentStream) {
|
|
42088
|
+
this.currentStream.getTracks().forEach((track2) => track2.stop());
|
|
42089
|
+
this.currentStream = null;
|
|
42090
|
+
}
|
|
42091
|
+
}
|
|
42092
|
+
};
|
|
42093
|
+
|
|
42094
|
+
// ts_web/elements/wcc-recording-panel.ts
|
|
42095
|
+
var _isExporting_dec, _isDraggingTrim_dec, _videoDuration_dec, _trimEnd_dec, _trimStart_dec, _previewVideoUrl_dec, _recordingDuration_dec, _audioLevel_dec, _availableMicrophones_dec, _selectedMicrophoneId_dec, _audioEnabled_dec, _recordingMode_dec, _panelState_dec, _dashboardRef_dec2, _a4, _WccRecordingPanel_decorators, _init4, _dashboardRef2, _panelState, _recordingMode, _audioEnabled, _selectedMicrophoneId, _availableMicrophones, _audioLevel, _recordingDuration, _previewVideoUrl, _trimStart, _trimEnd, _videoDuration, _isDraggingTrim, _isExporting;
|
|
42096
|
+
_WccRecordingPanel_decorators = [t4("wcc-recording-panel")];
|
|
42097
|
+
var WccRecordingPanel = class extends (_a4 = DeesElement, _dashboardRef_dec2 = [n5({ attribute: false })], _panelState_dec = [r5()], _recordingMode_dec = [r5()], _audioEnabled_dec = [r5()], _selectedMicrophoneId_dec = [r5()], _availableMicrophones_dec = [r5()], _audioLevel_dec = [r5()], _recordingDuration_dec = [r5()], _previewVideoUrl_dec = [r5()], _trimStart_dec = [r5()], _trimEnd_dec = [r5()], _videoDuration_dec = [r5()], _isDraggingTrim_dec = [r5()], _isExporting_dec = [r5()], _a4) {
|
|
42098
|
+
constructor() {
|
|
42099
|
+
super();
|
|
42100
|
+
__privateAdd(this, _dashboardRef2, __runInitializers(_init4, 8, this)), __runInitializers(_init4, 11, this);
|
|
42101
|
+
__privateAdd(this, _panelState, __runInitializers(_init4, 12, this, "options")), __runInitializers(_init4, 15, this);
|
|
42102
|
+
__privateAdd(this, _recordingMode, __runInitializers(_init4, 16, this, "viewport")), __runInitializers(_init4, 19, this);
|
|
42103
|
+
__privateAdd(this, _audioEnabled, __runInitializers(_init4, 20, this, false)), __runInitializers(_init4, 23, this);
|
|
42104
|
+
__privateAdd(this, _selectedMicrophoneId, __runInitializers(_init4, 24, this, "")), __runInitializers(_init4, 27, this);
|
|
42105
|
+
__privateAdd(this, _availableMicrophones, __runInitializers(_init4, 28, this, [])), __runInitializers(_init4, 31, this);
|
|
42106
|
+
__privateAdd(this, _audioLevel, __runInitializers(_init4, 32, this, 0)), __runInitializers(_init4, 35, this);
|
|
42107
|
+
__privateAdd(this, _recordingDuration, __runInitializers(_init4, 36, this, 0)), __runInitializers(_init4, 39, this);
|
|
42108
|
+
__privateAdd(this, _previewVideoUrl, __runInitializers(_init4, 40, this, "")), __runInitializers(_init4, 43, this);
|
|
42109
|
+
__privateAdd(this, _trimStart, __runInitializers(_init4, 44, this, 0)), __runInitializers(_init4, 47, this);
|
|
42110
|
+
__privateAdd(this, _trimEnd, __runInitializers(_init4, 48, this, 0)), __runInitializers(_init4, 51, this);
|
|
42111
|
+
__privateAdd(this, _videoDuration, __runInitializers(_init4, 52, this, 0)), __runInitializers(_init4, 55, this);
|
|
42112
|
+
__privateAdd(this, _isDraggingTrim, __runInitializers(_init4, 56, this, null)), __runInitializers(_init4, 59, this);
|
|
42113
|
+
__privateAdd(this, _isExporting, __runInitializers(_init4, 60, this, false)), __runInitializers(_init4, 63, this);
|
|
42114
|
+
// Service instance
|
|
42115
|
+
__publicField(this, "recorderService");
|
|
42116
|
+
this.recorderService = new RecorderService({
|
|
42117
|
+
onDurationUpdate: (duration) => {
|
|
42118
|
+
this.recordingDuration = duration;
|
|
42119
|
+
this.dispatchEvent(new CustomEvent("duration-update", {
|
|
42120
|
+
detail: { duration },
|
|
42121
|
+
bubbles: true,
|
|
42122
|
+
composed: true
|
|
42123
|
+
}));
|
|
42124
|
+
},
|
|
42125
|
+
onRecordingComplete: (blob) => {
|
|
42126
|
+
this.handleRecordingComplete(blob);
|
|
42127
|
+
},
|
|
42128
|
+
onAudioLevelUpdate: (level) => {
|
|
42129
|
+
this.audioLevel = level;
|
|
42130
|
+
},
|
|
42131
|
+
onStreamEnded: () => {
|
|
42132
|
+
this.stopRecording();
|
|
42133
|
+
}
|
|
42134
|
+
});
|
|
42135
|
+
}
|
|
42136
|
+
render() {
|
|
42137
|
+
if (this.panelState === "options") {
|
|
42138
|
+
return this.renderOptionsPanel();
|
|
42139
|
+
} else if (this.panelState === "preview") {
|
|
42140
|
+
return this.renderPreviewModal();
|
|
42141
|
+
}
|
|
42142
|
+
return x``;
|
|
42143
|
+
}
|
|
42144
|
+
renderOptionsPanel() {
|
|
42145
|
+
return x`
|
|
42146
|
+
<div class="recording-options-panel">
|
|
42147
|
+
<div class="recording-options-header">
|
|
42148
|
+
<span class="recording-options-title">Recording Settings</span>
|
|
42149
|
+
<button class="recording-options-close" @click=${() => this.close()}>✕</button>
|
|
42150
|
+
</div>
|
|
42151
|
+
<div class="recording-options-content">
|
|
42152
|
+
<div class="recording-option-group">
|
|
42153
|
+
<div class="recording-option-label">Record Area</div>
|
|
42154
|
+
<div class="recording-mode-buttons">
|
|
42155
|
+
<button
|
|
42156
|
+
class="recording-mode-btn ${this.recordingMode === "viewport" ? "selected" : ""}"
|
|
42157
|
+
@click=${() => this.recordingMode = "viewport"}
|
|
42158
|
+
>
|
|
42159
|
+
Viewport Only
|
|
42160
|
+
</button>
|
|
42161
|
+
<button
|
|
42162
|
+
class="recording-mode-btn ${this.recordingMode === "screen" ? "selected" : ""}"
|
|
42163
|
+
@click=${() => this.recordingMode = "screen"}
|
|
42164
|
+
>
|
|
42165
|
+
Entire Screen
|
|
42166
|
+
</button>
|
|
42167
|
+
</div>
|
|
42168
|
+
</div>
|
|
42169
|
+
|
|
42170
|
+
<div class="recording-option-group">
|
|
42171
|
+
<div class="recording-option-label">Audio</div>
|
|
42172
|
+
<div class="audio-toggle">
|
|
42173
|
+
<input
|
|
42174
|
+
type="checkbox"
|
|
42175
|
+
id="audioToggle"
|
|
42176
|
+
?checked=${this.audioEnabled}
|
|
42177
|
+
@change=${(e10) => this.handleAudioToggle(e10.target.checked)}
|
|
42178
|
+
/>
|
|
42179
|
+
<label for="audioToggle">Enable Microphone</label>
|
|
42180
|
+
</div>
|
|
42181
|
+
|
|
42182
|
+
${this.audioEnabled ? x`
|
|
42183
|
+
<select
|
|
42184
|
+
class="microphone-select"
|
|
42185
|
+
.value=${this.selectedMicrophoneId}
|
|
42186
|
+
@change=${(e10) => this.handleMicrophoneChange(e10.target.value)}
|
|
42187
|
+
>
|
|
42188
|
+
<option value="">Select Microphone...</option>
|
|
42189
|
+
${this.availableMicrophones.map((mic) => x`
|
|
42190
|
+
<option value=${mic.deviceId}>${mic.label || `Microphone ${mic.deviceId.slice(0, 8)}`}</option>
|
|
42191
|
+
`)}
|
|
42192
|
+
</select>
|
|
42193
|
+
|
|
42194
|
+
${this.selectedMicrophoneId ? x`
|
|
42195
|
+
<div class="audio-level-container">
|
|
42196
|
+
<div class="audio-level-label">Input Level</div>
|
|
42197
|
+
<div class="audio-level-bar">
|
|
42198
|
+
<div class="audio-level-fill" style="width: ${this.audioLevel}%"></div>
|
|
42199
|
+
</div>
|
|
42200
|
+
</div>
|
|
42201
|
+
` : null}
|
|
42202
|
+
` : null}
|
|
42203
|
+
</div>
|
|
42204
|
+
|
|
42205
|
+
<button class="start-recording-btn" @click=${() => this.startRecording()}>
|
|
42206
|
+
<div class="rec-dot"></div>
|
|
42207
|
+
Start Recording
|
|
42208
|
+
</button>
|
|
42209
|
+
</div>
|
|
42210
|
+
</div>
|
|
42211
|
+
`;
|
|
42212
|
+
}
|
|
42213
|
+
renderPreviewModal() {
|
|
42214
|
+
return x`
|
|
42215
|
+
<div class="preview-modal-overlay" @click=${(e10) => {
|
|
42216
|
+
if (e10.target.classList.contains("preview-modal-overlay")) {
|
|
42217
|
+
this.discardRecording();
|
|
42218
|
+
}
|
|
42219
|
+
}}>
|
|
42220
|
+
<div class="preview-modal">
|
|
42221
|
+
<div class="preview-modal-header">
|
|
42222
|
+
<span class="preview-modal-title">Recording Preview</span>
|
|
42223
|
+
<button class="preview-modal-close" @click=${() => this.discardRecording()}>✕</button>
|
|
42224
|
+
</div>
|
|
42225
|
+
<div class="preview-modal-content">
|
|
42226
|
+
<div class="preview-video-container">
|
|
42227
|
+
<video
|
|
42228
|
+
class="preview-video"
|
|
42229
|
+
src=${this.previewVideoUrl}
|
|
42230
|
+
controls
|
|
42231
|
+
@loadedmetadata=${(e10) => this.handleVideoLoaded(e10.target)}
|
|
42232
|
+
></video>
|
|
42233
|
+
</div>
|
|
42234
|
+
|
|
42235
|
+
<!-- Trim Section -->
|
|
42236
|
+
<div class="trim-section">
|
|
42237
|
+
<div class="trim-section-header">
|
|
42238
|
+
<span class="trim-section-title">Trim Video</span>
|
|
42239
|
+
<span class="trim-duration-info">
|
|
42240
|
+
${this.formatDuration(Math.floor(this.trimEnd - this.trimStart))}
|
|
42241
|
+
${this.trimStart > 0 || this.trimEnd < this.videoDuration ? `(trimmed from ${this.formatDuration(Math.floor(this.videoDuration))})` : ""}
|
|
42242
|
+
</span>
|
|
42243
|
+
</div>
|
|
42244
|
+
|
|
42245
|
+
<div
|
|
42246
|
+
class="trim-timeline"
|
|
42247
|
+
@mousedown=${(e10) => this.handleTimelineClick(e10)}
|
|
42248
|
+
@mousemove=${(e10) => this.handleTimelineDrag(e10)}
|
|
42249
|
+
@mouseup=${() => this.handleTimelineDragEnd()}
|
|
42250
|
+
@mouseleave=${() => this.handleTimelineDragEnd()}
|
|
42251
|
+
>
|
|
42252
|
+
<div class="trim-track"></div>
|
|
42253
|
+
<div
|
|
42254
|
+
class="trim-selected"
|
|
42255
|
+
style="left: ${this.getHandlePositionStyle(this.trimStart)}; right: ${this.getHandlePositionFromEndStyle(this.trimEnd)};"
|
|
42256
|
+
></div>
|
|
42257
|
+
<div
|
|
42258
|
+
class="trim-handle start-handle"
|
|
42259
|
+
style="left: ${this.getHandlePositionStyle(this.trimStart)};"
|
|
42260
|
+
@mousedown=${(e10) => {
|
|
42261
|
+
e10.stopPropagation();
|
|
42262
|
+
this.isDraggingTrim = "start";
|
|
42263
|
+
}}
|
|
42264
|
+
></div>
|
|
42265
|
+
<div
|
|
42266
|
+
class="trim-handle end-handle"
|
|
42267
|
+
style="left: ${this.getHandlePositionStyle(this.trimEnd)};"
|
|
42268
|
+
@mousedown=${(e10) => {
|
|
42269
|
+
e10.stopPropagation();
|
|
42270
|
+
this.isDraggingTrim = "end";
|
|
42271
|
+
}}
|
|
42272
|
+
></div>
|
|
42273
|
+
</div>
|
|
42274
|
+
|
|
42275
|
+
<div class="trim-time-labels">
|
|
42276
|
+
<span>${this.formatDuration(Math.floor(this.trimStart))}</span>
|
|
42277
|
+
<span>${this.formatDuration(Math.floor(this.trimEnd))}</span>
|
|
42278
|
+
</div>
|
|
42279
|
+
|
|
42280
|
+
<div class="trim-actions">
|
|
42281
|
+
<button class="trim-action-btn" @click=${() => this.resetTrim()}>
|
|
42282
|
+
Reset Trim
|
|
42283
|
+
</button>
|
|
42284
|
+
<button class="trim-action-btn" @click=${() => this.previewTrimmedSection()}>
|
|
42285
|
+
Preview Selection
|
|
42286
|
+
</button>
|
|
42287
|
+
</div>
|
|
42288
|
+
</div>
|
|
42289
|
+
</div>
|
|
42290
|
+
<div class="preview-modal-actions">
|
|
42291
|
+
<button class="preview-btn secondary" @click=${() => this.discardRecording()}>Discard</button>
|
|
42292
|
+
<button
|
|
42293
|
+
class="preview-btn primary"
|
|
42294
|
+
?disabled=${this.isExporting}
|
|
42295
|
+
@click=${() => this.downloadRecording()}
|
|
42296
|
+
>
|
|
42297
|
+
${this.isExporting ? x`<span class="export-spinner"></span>Exporting...` : "Download"}
|
|
42298
|
+
</button>
|
|
42299
|
+
</div>
|
|
42300
|
+
</div>
|
|
42301
|
+
</div>
|
|
42302
|
+
`;
|
|
42303
|
+
}
|
|
42304
|
+
// ==================== Audio Methods ====================
|
|
42305
|
+
async handleAudioToggle(enabled) {
|
|
42306
|
+
this.audioEnabled = enabled;
|
|
42307
|
+
if (enabled) {
|
|
42308
|
+
this.availableMicrophones = await this.recorderService.loadMicrophones(true);
|
|
42309
|
+
if (this.availableMicrophones.length > 0 && !this.selectedMicrophoneId) {
|
|
42310
|
+
this.selectedMicrophoneId = this.availableMicrophones[0].deviceId;
|
|
42311
|
+
await this.recorderService.startAudioMonitoring(this.selectedMicrophoneId);
|
|
42312
|
+
}
|
|
42313
|
+
} else {
|
|
42314
|
+
this.recorderService.stopAudioMonitoring();
|
|
42315
|
+
this.selectedMicrophoneId = "";
|
|
42316
|
+
this.audioLevel = 0;
|
|
42317
|
+
}
|
|
42318
|
+
}
|
|
42319
|
+
async handleMicrophoneChange(deviceId) {
|
|
42320
|
+
this.selectedMicrophoneId = deviceId;
|
|
42321
|
+
if (deviceId) {
|
|
42322
|
+
await this.recorderService.startAudioMonitoring(deviceId);
|
|
42323
|
+
} else {
|
|
42324
|
+
this.recorderService.stopAudioMonitoring();
|
|
42325
|
+
this.audioLevel = 0;
|
|
42326
|
+
}
|
|
42327
|
+
}
|
|
42328
|
+
// ==================== Recording Methods ====================
|
|
42329
|
+
async startRecording() {
|
|
42330
|
+
try {
|
|
42331
|
+
let viewportElement;
|
|
42332
|
+
if (this.recordingMode === "viewport" && this.dashboardRef) {
|
|
42333
|
+
const wccFrame = await this.dashboardRef.wccFrame;
|
|
42334
|
+
viewportElement = await wccFrame.getViewportElement();
|
|
42335
|
+
}
|
|
42336
|
+
await this.recorderService.startRecording({
|
|
42337
|
+
mode: this.recordingMode,
|
|
42338
|
+
audioDeviceId: this.audioEnabled ? this.selectedMicrophoneId : void 0,
|
|
42339
|
+
viewportElement
|
|
42340
|
+
});
|
|
42341
|
+
this.panelState = "recording";
|
|
42342
|
+
this.dispatchEvent(new CustomEvent("recording-start", {
|
|
42343
|
+
bubbles: true,
|
|
42344
|
+
composed: true
|
|
42345
|
+
}));
|
|
42346
|
+
} catch (error) {
|
|
42347
|
+
console.error("Failed to start recording:", error);
|
|
42348
|
+
this.panelState = "options";
|
|
42349
|
+
}
|
|
42350
|
+
}
|
|
42351
|
+
stopRecording() {
|
|
42352
|
+
this.recorderService.stopRecording();
|
|
42353
|
+
}
|
|
42354
|
+
handleRecordingComplete(blob) {
|
|
42355
|
+
if (this.previewVideoUrl) {
|
|
42356
|
+
URL.revokeObjectURL(this.previewVideoUrl);
|
|
42357
|
+
}
|
|
42358
|
+
this.previewVideoUrl = URL.createObjectURL(blob);
|
|
42359
|
+
this.panelState = "preview";
|
|
42360
|
+
this.dispatchEvent(new CustomEvent("recording-stop", {
|
|
42361
|
+
bubbles: true,
|
|
42362
|
+
composed: true
|
|
42363
|
+
}));
|
|
42364
|
+
}
|
|
42365
|
+
discardRecording() {
|
|
42366
|
+
if (this.previewVideoUrl) {
|
|
42367
|
+
URL.revokeObjectURL(this.previewVideoUrl);
|
|
42368
|
+
this.previewVideoUrl = "";
|
|
42369
|
+
}
|
|
42370
|
+
this.recorderService.reset();
|
|
42371
|
+
this.trimStart = 0;
|
|
42372
|
+
this.trimEnd = 0;
|
|
42373
|
+
this.videoDuration = 0;
|
|
42374
|
+
this.isExporting = false;
|
|
42375
|
+
this.recordingDuration = 0;
|
|
42376
|
+
this.close();
|
|
42377
|
+
}
|
|
42378
|
+
async downloadRecording() {
|
|
42379
|
+
const recordedBlob = this.recorderService.recordedBlob;
|
|
42380
|
+
if (!recordedBlob) return;
|
|
42381
|
+
this.isExporting = true;
|
|
42382
|
+
try {
|
|
42383
|
+
let blobToDownload;
|
|
42384
|
+
const needsTrim = this.trimStart > 0.1 || this.trimEnd < this.videoDuration - 0.1;
|
|
42385
|
+
if (needsTrim) {
|
|
42386
|
+
const video = this.shadowRoot?.querySelector(".preview-video");
|
|
42387
|
+
if (video) {
|
|
42388
|
+
blobToDownload = await this.recorderService.exportTrimmedVideo(video, this.trimStart, this.trimEnd);
|
|
42389
|
+
} else {
|
|
42390
|
+
blobToDownload = recordedBlob;
|
|
42391
|
+
}
|
|
42392
|
+
} else {
|
|
42393
|
+
blobToDownload = recordedBlob;
|
|
42394
|
+
}
|
|
42395
|
+
const timestamp2 = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
42396
|
+
const filename = `wcctools-recording-${timestamp2}.webm`;
|
|
42397
|
+
const url = URL.createObjectURL(blobToDownload);
|
|
42398
|
+
const a4 = document.createElement("a");
|
|
42399
|
+
a4.href = url;
|
|
42400
|
+
a4.download = filename;
|
|
42401
|
+
document.body.appendChild(a4);
|
|
42402
|
+
a4.click();
|
|
42403
|
+
document.body.removeChild(a4);
|
|
42404
|
+
URL.revokeObjectURL(url);
|
|
42405
|
+
this.discardRecording();
|
|
42406
|
+
} catch (error) {
|
|
42407
|
+
console.error("Error exporting video:", error);
|
|
42408
|
+
this.isExporting = false;
|
|
42409
|
+
}
|
|
42410
|
+
}
|
|
42411
|
+
// ==================== Trim Methods ====================
|
|
42412
|
+
handleVideoLoaded(video) {
|
|
42413
|
+
const duration = Number.isFinite(video.duration) ? video.duration : this.recordingDuration;
|
|
42414
|
+
this.videoDuration = duration;
|
|
42415
|
+
this.trimStart = 0;
|
|
42416
|
+
this.trimEnd = duration;
|
|
42417
|
+
}
|
|
42418
|
+
formatDuration(seconds) {
|
|
42419
|
+
const mins = Math.floor(seconds / 60);
|
|
42420
|
+
const secs = seconds % 60;
|
|
42421
|
+
return `${mins.toString().padStart(2, "0")}:${secs.toString().padStart(2, "0")}`;
|
|
42422
|
+
}
|
|
42423
|
+
getHandlePositionStyle(time) {
|
|
42424
|
+
if (this.videoDuration === 0) return "12px";
|
|
42425
|
+
const percentage = time / this.videoDuration;
|
|
42426
|
+
return `calc(12px + ${(percentage * 100).toFixed(2)}% - ${(percentage * 24).toFixed(2)}px)`;
|
|
42427
|
+
}
|
|
42428
|
+
getHandlePositionFromEndStyle(time) {
|
|
42429
|
+
if (this.videoDuration === 0) return "12px";
|
|
42430
|
+
const percentage = time / this.videoDuration;
|
|
42431
|
+
const remainingPercentage = 1 - percentage;
|
|
42432
|
+
return `calc(12px + ${(remainingPercentage * 100).toFixed(2)}% - ${(remainingPercentage * 24).toFixed(2)}px)`;
|
|
42433
|
+
}
|
|
42434
|
+
handleTimelineClick(e10) {
|
|
42435
|
+
if (this.isDraggingTrim) return;
|
|
42436
|
+
const timeline = e10.currentTarget;
|
|
42437
|
+
const rect = timeline.getBoundingClientRect();
|
|
42438
|
+
const x2 = e10.clientX - rect.left;
|
|
42439
|
+
const percentage = Math.max(0, Math.min(1, (x2 - 12) / (rect.width - 24)));
|
|
42440
|
+
const time = percentage * this.videoDuration;
|
|
42441
|
+
const video = this.shadowRoot?.querySelector(".preview-video");
|
|
42442
|
+
if (video) {
|
|
42443
|
+
video.currentTime = time;
|
|
42444
|
+
}
|
|
42445
|
+
}
|
|
42446
|
+
handleTimelineDrag(e10) {
|
|
42447
|
+
if (!this.isDraggingTrim) return;
|
|
42448
|
+
const timeline = e10.currentTarget;
|
|
42449
|
+
const rect = timeline.getBoundingClientRect();
|
|
42450
|
+
const x2 = e10.clientX - rect.left;
|
|
42451
|
+
const percentage = Math.max(0, Math.min(1, (x2 - 12) / (rect.width - 24)));
|
|
42452
|
+
const time = percentage * this.videoDuration;
|
|
42453
|
+
const minDuration = 1;
|
|
42454
|
+
if (this.isDraggingTrim === "start") {
|
|
42455
|
+
this.trimStart = Math.min(time, this.trimEnd - minDuration);
|
|
42456
|
+
this.trimStart = Math.max(0, this.trimStart);
|
|
42457
|
+
} else if (this.isDraggingTrim === "end") {
|
|
42458
|
+
this.trimEnd = Math.max(time, this.trimStart + minDuration);
|
|
42459
|
+
this.trimEnd = Math.min(this.videoDuration, this.trimEnd);
|
|
42460
|
+
}
|
|
42461
|
+
const video = this.shadowRoot?.querySelector(".preview-video");
|
|
42462
|
+
if (video) {
|
|
42463
|
+
video.currentTime = this.isDraggingTrim === "start" ? this.trimStart : this.trimEnd;
|
|
42464
|
+
}
|
|
42465
|
+
}
|
|
42466
|
+
handleTimelineDragEnd() {
|
|
42467
|
+
this.isDraggingTrim = null;
|
|
42468
|
+
}
|
|
42469
|
+
resetTrim() {
|
|
42470
|
+
this.trimStart = 0;
|
|
42471
|
+
this.trimEnd = this.videoDuration;
|
|
42472
|
+
const video = this.shadowRoot?.querySelector(".preview-video");
|
|
42473
|
+
if (video) {
|
|
42474
|
+
video.currentTime = 0;
|
|
42475
|
+
}
|
|
42476
|
+
}
|
|
42477
|
+
previewTrimmedSection() {
|
|
42478
|
+
const video = this.shadowRoot?.querySelector(".preview-video");
|
|
42479
|
+
if (!video) return;
|
|
42480
|
+
video.currentTime = this.trimStart;
|
|
42481
|
+
video.play();
|
|
42482
|
+
const checkTime = () => {
|
|
42483
|
+
if (video.currentTime >= this.trimEnd) {
|
|
42484
|
+
video.pause();
|
|
42485
|
+
video.removeEventListener("timeupdate", checkTime);
|
|
42486
|
+
}
|
|
42487
|
+
};
|
|
42488
|
+
video.addEventListener("timeupdate", checkTime);
|
|
42489
|
+
}
|
|
42490
|
+
// ==================== Lifecycle ====================
|
|
42491
|
+
close() {
|
|
42492
|
+
this.recorderService.stopAudioMonitoring();
|
|
42493
|
+
this.dispatchEvent(new CustomEvent("close", {
|
|
42494
|
+
bubbles: true,
|
|
42495
|
+
composed: true
|
|
42496
|
+
}));
|
|
42497
|
+
}
|
|
42498
|
+
async disconnectedCallback() {
|
|
42499
|
+
await super.disconnectedCallback();
|
|
42500
|
+
this.recorderService.dispose();
|
|
42501
|
+
if (this.previewVideoUrl) {
|
|
42502
|
+
URL.revokeObjectURL(this.previewVideoUrl);
|
|
42503
|
+
}
|
|
42504
|
+
}
|
|
42505
|
+
};
|
|
42506
|
+
_init4 = __decoratorStart(_a4);
|
|
42507
|
+
_dashboardRef2 = new WeakMap();
|
|
42508
|
+
_panelState = new WeakMap();
|
|
42509
|
+
_recordingMode = new WeakMap();
|
|
42510
|
+
_audioEnabled = new WeakMap();
|
|
42511
|
+
_selectedMicrophoneId = new WeakMap();
|
|
42512
|
+
_availableMicrophones = new WeakMap();
|
|
42513
|
+
_audioLevel = new WeakMap();
|
|
42514
|
+
_recordingDuration = new WeakMap();
|
|
42515
|
+
_previewVideoUrl = new WeakMap();
|
|
42516
|
+
_trimStart = new WeakMap();
|
|
42517
|
+
_trimEnd = new WeakMap();
|
|
42518
|
+
_videoDuration = new WeakMap();
|
|
42519
|
+
_isDraggingTrim = new WeakMap();
|
|
42520
|
+
_isExporting = new WeakMap();
|
|
42521
|
+
__decorateElement(_init4, 4, "dashboardRef", _dashboardRef_dec2, WccRecordingPanel, _dashboardRef2);
|
|
42522
|
+
__decorateElement(_init4, 4, "panelState", _panelState_dec, WccRecordingPanel, _panelState);
|
|
42523
|
+
__decorateElement(_init4, 4, "recordingMode", _recordingMode_dec, WccRecordingPanel, _recordingMode);
|
|
42524
|
+
__decorateElement(_init4, 4, "audioEnabled", _audioEnabled_dec, WccRecordingPanel, _audioEnabled);
|
|
42525
|
+
__decorateElement(_init4, 4, "selectedMicrophoneId", _selectedMicrophoneId_dec, WccRecordingPanel, _selectedMicrophoneId);
|
|
42526
|
+
__decorateElement(_init4, 4, "availableMicrophones", _availableMicrophones_dec, WccRecordingPanel, _availableMicrophones);
|
|
42527
|
+
__decorateElement(_init4, 4, "audioLevel", _audioLevel_dec, WccRecordingPanel, _audioLevel);
|
|
42528
|
+
__decorateElement(_init4, 4, "recordingDuration", _recordingDuration_dec, WccRecordingPanel, _recordingDuration);
|
|
42529
|
+
__decorateElement(_init4, 4, "previewVideoUrl", _previewVideoUrl_dec, WccRecordingPanel, _previewVideoUrl);
|
|
42530
|
+
__decorateElement(_init4, 4, "trimStart", _trimStart_dec, WccRecordingPanel, _trimStart);
|
|
42531
|
+
__decorateElement(_init4, 4, "trimEnd", _trimEnd_dec, WccRecordingPanel, _trimEnd);
|
|
42532
|
+
__decorateElement(_init4, 4, "videoDuration", _videoDuration_dec, WccRecordingPanel, _videoDuration);
|
|
42533
|
+
__decorateElement(_init4, 4, "isDraggingTrim", _isDraggingTrim_dec, WccRecordingPanel, _isDraggingTrim);
|
|
42534
|
+
__decorateElement(_init4, 4, "isExporting", _isExporting_dec, WccRecordingPanel, _isExporting);
|
|
42535
|
+
WccRecordingPanel = __decorateElement(_init4, 0, "WccRecordingPanel", _WccRecordingPanel_decorators, WccRecordingPanel);
|
|
42536
|
+
__publicField(WccRecordingPanel, "styles", [
|
|
42537
|
+
i`
|
|
42538
|
+
:host {
|
|
42539
|
+
/* CSS Variables */
|
|
42540
|
+
--background: #0a0a0a;
|
|
42541
|
+
--foreground: #e5e5e5;
|
|
42542
|
+
--input: #141414;
|
|
42543
|
+
--primary: #3b82f6;
|
|
42544
|
+
--border: rgba(255, 255, 255, 0.06);
|
|
42545
|
+
--radius-sm: 2px;
|
|
42546
|
+
--radius-md: 4px;
|
|
42547
|
+
--radius-lg: 6px;
|
|
42548
|
+
}
|
|
42549
|
+
|
|
42550
|
+
/* Recording Options Panel */
|
|
42551
|
+
.recording-options-panel {
|
|
42552
|
+
position: fixed;
|
|
42553
|
+
right: 16px;
|
|
42554
|
+
bottom: 116px;
|
|
42555
|
+
width: 360px;
|
|
42556
|
+
background: #0c0c0c;
|
|
42557
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
42558
|
+
border-radius: var(--radius-md);
|
|
42559
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
42560
|
+
z-index: 1000;
|
|
42561
|
+
overflow: hidden;
|
|
42562
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
42563
|
+
}
|
|
42564
|
+
|
|
42565
|
+
.recording-options-header {
|
|
42566
|
+
padding: 0.75rem 1rem;
|
|
42567
|
+
background: rgba(255, 255, 255, 0.02);
|
|
42568
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
42569
|
+
display: flex;
|
|
42570
|
+
justify-content: space-between;
|
|
42571
|
+
align-items: center;
|
|
42572
|
+
}
|
|
42573
|
+
|
|
42574
|
+
.recording-options-title {
|
|
42575
|
+
font-size: 0.8rem;
|
|
42576
|
+
font-weight: 500;
|
|
42577
|
+
color: #ccc;
|
|
42578
|
+
}
|
|
42579
|
+
|
|
42580
|
+
.recording-options-close {
|
|
42581
|
+
width: 24px;
|
|
42582
|
+
height: 24px;
|
|
42583
|
+
background: transparent;
|
|
42584
|
+
border: none;
|
|
42585
|
+
color: #666;
|
|
42586
|
+
cursor: pointer;
|
|
42587
|
+
display: flex;
|
|
42588
|
+
align-items: center;
|
|
42589
|
+
justify-content: center;
|
|
42590
|
+
border-radius: var(--radius-sm);
|
|
42591
|
+
transition: all 0.15s ease;
|
|
42592
|
+
}
|
|
42593
|
+
|
|
42594
|
+
.recording-options-close:hover {
|
|
42595
|
+
background: rgba(255, 255, 255, 0.05);
|
|
42596
|
+
color: #999;
|
|
42597
|
+
}
|
|
42598
|
+
|
|
42599
|
+
.recording-options-content {
|
|
42600
|
+
padding: 1rem;
|
|
42601
|
+
}
|
|
42602
|
+
|
|
42603
|
+
.recording-option-group {
|
|
42604
|
+
margin-bottom: 1rem;
|
|
42605
|
+
}
|
|
42606
|
+
|
|
42607
|
+
.recording-option-group:last-child {
|
|
42608
|
+
margin-bottom: 0;
|
|
42609
|
+
}
|
|
42610
|
+
|
|
42611
|
+
.recording-option-label {
|
|
42612
|
+
font-size: 0.7rem;
|
|
42613
|
+
font-weight: 500;
|
|
42614
|
+
color: #888;
|
|
42615
|
+
text-transform: uppercase;
|
|
42616
|
+
letter-spacing: 0.05em;
|
|
42617
|
+
margin-bottom: 0.5rem;
|
|
42618
|
+
}
|
|
42619
|
+
|
|
42620
|
+
.recording-mode-buttons {
|
|
42621
|
+
display: flex;
|
|
42622
|
+
gap: 0.5rem;
|
|
42623
|
+
}
|
|
42624
|
+
|
|
42625
|
+
.recording-mode-btn {
|
|
42626
|
+
flex: 1;
|
|
42627
|
+
padding: 0.6rem 0.75rem;
|
|
42628
|
+
background: var(--input);
|
|
42629
|
+
border: 1px solid transparent;
|
|
42630
|
+
border-radius: var(--radius-sm);
|
|
42631
|
+
color: #999;
|
|
42632
|
+
font-size: 0.75rem;
|
|
42633
|
+
cursor: pointer;
|
|
42634
|
+
transition: all 0.15s ease;
|
|
42635
|
+
text-align: center;
|
|
42636
|
+
}
|
|
42637
|
+
|
|
42638
|
+
.recording-mode-btn:hover {
|
|
42639
|
+
border-color: var(--primary);
|
|
42640
|
+
color: #ccc;
|
|
42641
|
+
}
|
|
42642
|
+
|
|
42643
|
+
.recording-mode-btn.selected {
|
|
42644
|
+
background: rgba(59, 130, 246, 0.15);
|
|
42645
|
+
border-color: var(--primary);
|
|
42646
|
+
color: var(--primary);
|
|
42647
|
+
}
|
|
42648
|
+
|
|
42649
|
+
.audio-toggle {
|
|
42650
|
+
display: flex;
|
|
42651
|
+
align-items: center;
|
|
42652
|
+
gap: 0.5rem;
|
|
42653
|
+
margin-bottom: 0.75rem;
|
|
42654
|
+
}
|
|
42655
|
+
|
|
42656
|
+
.audio-toggle input[type="checkbox"] {
|
|
42657
|
+
width: 1rem;
|
|
42658
|
+
height: 1rem;
|
|
42659
|
+
accent-color: var(--primary);
|
|
42660
|
+
}
|
|
42661
|
+
|
|
42662
|
+
.audio-toggle label {
|
|
42663
|
+
font-size: 0.75rem;
|
|
42664
|
+
color: #999;
|
|
42665
|
+
cursor: pointer;
|
|
42666
|
+
}
|
|
42667
|
+
|
|
42668
|
+
.microphone-select {
|
|
42669
|
+
width: 100%;
|
|
42670
|
+
padding: 0.5rem 0.75rem;
|
|
42671
|
+
background: var(--input);
|
|
42672
|
+
border: 1px solid transparent;
|
|
42673
|
+
border-radius: var(--radius-sm);
|
|
42674
|
+
color: var(--foreground);
|
|
42675
|
+
font-size: 0.75rem;
|
|
42676
|
+
outline: none;
|
|
42677
|
+
cursor: pointer;
|
|
42678
|
+
transition: all 0.15s ease;
|
|
42679
|
+
}
|
|
42680
|
+
|
|
42681
|
+
.microphone-select:focus {
|
|
42682
|
+
border-color: var(--primary);
|
|
42683
|
+
}
|
|
42684
|
+
|
|
42685
|
+
.microphone-select:disabled {
|
|
42686
|
+
opacity: 0.5;
|
|
42687
|
+
cursor: not-allowed;
|
|
42688
|
+
}
|
|
42689
|
+
|
|
42690
|
+
.audio-level-container {
|
|
42691
|
+
margin-top: 0.75rem;
|
|
42692
|
+
padding: 0.5rem;
|
|
42693
|
+
background: rgba(255, 255, 255, 0.02);
|
|
42694
|
+
border-radius: var(--radius-sm);
|
|
42695
|
+
}
|
|
42696
|
+
|
|
42697
|
+
.audio-level-label {
|
|
42698
|
+
font-size: 0.65rem;
|
|
42699
|
+
color: #666;
|
|
42700
|
+
margin-bottom: 0.25rem;
|
|
42701
|
+
}
|
|
42702
|
+
|
|
42703
|
+
.audio-level-bar {
|
|
42704
|
+
height: 8px;
|
|
42705
|
+
background: var(--input);
|
|
42706
|
+
border-radius: 4px;
|
|
42707
|
+
overflow: hidden;
|
|
42708
|
+
}
|
|
42709
|
+
|
|
42710
|
+
.audio-level-fill {
|
|
42711
|
+
height: 100%;
|
|
42712
|
+
background: linear-gradient(90deg, #22c55e, #84cc16, #eab308);
|
|
42713
|
+
border-radius: 4px;
|
|
42714
|
+
transition: width 0.1s ease;
|
|
42715
|
+
}
|
|
42716
|
+
|
|
42717
|
+
.start-recording-btn {
|
|
42718
|
+
width: 100%;
|
|
42719
|
+
padding: 0.75rem;
|
|
42720
|
+
background: #dc2626;
|
|
42721
|
+
border: none;
|
|
42722
|
+
border-radius: var(--radius-sm);
|
|
42723
|
+
color: white;
|
|
42724
|
+
font-size: 0.8rem;
|
|
42725
|
+
font-weight: 500;
|
|
42726
|
+
cursor: pointer;
|
|
42727
|
+
transition: all 0.15s ease;
|
|
42728
|
+
margin-top: 1rem;
|
|
42729
|
+
display: flex;
|
|
42730
|
+
align-items: center;
|
|
42731
|
+
justify-content: center;
|
|
42732
|
+
gap: 0.5rem;
|
|
42733
|
+
}
|
|
42734
|
+
|
|
42735
|
+
.start-recording-btn:hover {
|
|
42736
|
+
background: #b91c1c;
|
|
42737
|
+
}
|
|
42738
|
+
|
|
42739
|
+
.start-recording-btn .rec-dot {
|
|
42740
|
+
width: 10px;
|
|
42741
|
+
height: 10px;
|
|
42742
|
+
background: white;
|
|
42743
|
+
border-radius: 50%;
|
|
42744
|
+
}
|
|
42745
|
+
|
|
42746
|
+
/* Preview Modal */
|
|
42747
|
+
.preview-modal-overlay {
|
|
42748
|
+
position: fixed;
|
|
42749
|
+
top: 0;
|
|
42750
|
+
left: 0;
|
|
42751
|
+
right: 0;
|
|
42752
|
+
bottom: 0;
|
|
42753
|
+
background: rgba(0, 0, 0, 0.8);
|
|
42754
|
+
display: flex;
|
|
42755
|
+
align-items: center;
|
|
42756
|
+
justify-content: center;
|
|
42757
|
+
z-index: 1000;
|
|
42758
|
+
backdrop-filter: blur(4px);
|
|
42759
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
42760
|
+
}
|
|
42761
|
+
|
|
42762
|
+
.preview-modal {
|
|
42763
|
+
width: 90%;
|
|
42764
|
+
max-width: 800px;
|
|
42765
|
+
background: #0c0c0c;
|
|
42766
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
42767
|
+
border-radius: var(--radius-lg);
|
|
42768
|
+
overflow: hidden;
|
|
42769
|
+
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
|
|
42770
|
+
}
|
|
42771
|
+
|
|
42772
|
+
.preview-modal-header {
|
|
42773
|
+
padding: 1rem 1.25rem;
|
|
42774
|
+
background: rgba(255, 255, 255, 0.02);
|
|
42775
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
42776
|
+
display: flex;
|
|
42777
|
+
justify-content: space-between;
|
|
42778
|
+
align-items: center;
|
|
42779
|
+
}
|
|
42780
|
+
|
|
42781
|
+
.preview-modal-title {
|
|
42782
|
+
font-size: 0.9rem;
|
|
42783
|
+
font-weight: 500;
|
|
42784
|
+
color: #ccc;
|
|
42785
|
+
}
|
|
42786
|
+
|
|
42787
|
+
.preview-modal-close {
|
|
42788
|
+
width: 28px;
|
|
42789
|
+
height: 28px;
|
|
42790
|
+
background: transparent;
|
|
42791
|
+
border: none;
|
|
42792
|
+
color: #666;
|
|
42793
|
+
cursor: pointer;
|
|
42794
|
+
display: flex;
|
|
42795
|
+
align-items: center;
|
|
42796
|
+
justify-content: center;
|
|
42797
|
+
border-radius: var(--radius-sm);
|
|
42798
|
+
font-size: 1.2rem;
|
|
42799
|
+
transition: all 0.15s ease;
|
|
42800
|
+
}
|
|
42801
|
+
|
|
42802
|
+
.preview-modal-close:hover {
|
|
42803
|
+
background: rgba(255, 255, 255, 0.05);
|
|
42804
|
+
color: #999;
|
|
42805
|
+
}
|
|
42806
|
+
|
|
42807
|
+
.preview-modal-content {
|
|
42808
|
+
padding: 1.25rem;
|
|
42809
|
+
}
|
|
42810
|
+
|
|
42811
|
+
.preview-video-container {
|
|
42812
|
+
background: #000;
|
|
42813
|
+
border-radius: var(--radius-sm);
|
|
42814
|
+
overflow: hidden;
|
|
42815
|
+
aspect-ratio: 16 / 9;
|
|
42816
|
+
}
|
|
42817
|
+
|
|
42818
|
+
.preview-video {
|
|
42819
|
+
width: 100%;
|
|
42820
|
+
height: 100%;
|
|
42821
|
+
object-fit: contain;
|
|
42822
|
+
}
|
|
42823
|
+
|
|
42824
|
+
.preview-modal-actions {
|
|
42825
|
+
padding: 1rem 1.25rem;
|
|
42826
|
+
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
42827
|
+
display: flex;
|
|
42828
|
+
justify-content: flex-end;
|
|
42829
|
+
gap: 0.75rem;
|
|
42830
|
+
}
|
|
42831
|
+
|
|
42832
|
+
.preview-btn {
|
|
42833
|
+
padding: 0.6rem 1.25rem;
|
|
42834
|
+
border-radius: var(--radius-sm);
|
|
42835
|
+
font-size: 0.8rem;
|
|
42836
|
+
font-weight: 500;
|
|
42837
|
+
cursor: pointer;
|
|
42838
|
+
transition: all 0.15s ease;
|
|
42839
|
+
}
|
|
42840
|
+
|
|
42841
|
+
.preview-btn.secondary {
|
|
42842
|
+
background: transparent;
|
|
42843
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
42844
|
+
color: #999;
|
|
42845
|
+
}
|
|
42846
|
+
|
|
42847
|
+
.preview-btn.secondary:hover {
|
|
42848
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
42849
|
+
color: #ccc;
|
|
42850
|
+
}
|
|
42851
|
+
|
|
42852
|
+
.preview-btn.primary {
|
|
42853
|
+
background: var(--primary);
|
|
42854
|
+
border: none;
|
|
42855
|
+
color: white;
|
|
42856
|
+
}
|
|
42857
|
+
|
|
42858
|
+
.preview-btn.primary:hover {
|
|
42859
|
+
background: #2563eb;
|
|
42860
|
+
}
|
|
42861
|
+
|
|
42862
|
+
.preview-btn.primary:disabled {
|
|
42863
|
+
background: #1e3a5f;
|
|
42864
|
+
cursor: not-allowed;
|
|
42865
|
+
opacity: 0.7;
|
|
42866
|
+
}
|
|
42867
|
+
|
|
42868
|
+
/* Trim Timeline Styles */
|
|
42869
|
+
.trim-section {
|
|
42870
|
+
margin-top: 1.25rem;
|
|
42871
|
+
padding-top: 1.25rem;
|
|
42872
|
+
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
42873
|
+
}
|
|
42874
|
+
|
|
42875
|
+
.trim-section-header {
|
|
42876
|
+
display: flex;
|
|
42877
|
+
justify-content: space-between;
|
|
42878
|
+
align-items: center;
|
|
42879
|
+
margin-bottom: 0.75rem;
|
|
42880
|
+
}
|
|
42881
|
+
|
|
42882
|
+
.trim-section-title {
|
|
42883
|
+
font-size: 0.75rem;
|
|
42884
|
+
font-weight: 500;
|
|
42885
|
+
color: #888;
|
|
42886
|
+
text-transform: uppercase;
|
|
42887
|
+
letter-spacing: 0.05em;
|
|
42888
|
+
}
|
|
42889
|
+
|
|
42890
|
+
.trim-duration-info {
|
|
42891
|
+
font-size: 0.7rem;
|
|
42892
|
+
color: #666;
|
|
42893
|
+
font-family: 'Consolas', 'Monaco', monospace;
|
|
42894
|
+
}
|
|
42895
|
+
|
|
42896
|
+
.trim-timeline {
|
|
42897
|
+
position: relative;
|
|
42898
|
+
height: 48px;
|
|
42899
|
+
background: var(--input);
|
|
42900
|
+
border-radius: var(--radius-sm);
|
|
42901
|
+
margin-bottom: 0.75rem;
|
|
42902
|
+
user-select: none;
|
|
42903
|
+
}
|
|
42904
|
+
|
|
42905
|
+
.trim-track {
|
|
42906
|
+
position: absolute;
|
|
42907
|
+
top: 50%;
|
|
42908
|
+
left: 12px;
|
|
42909
|
+
right: 12px;
|
|
42910
|
+
height: 6px;
|
|
42911
|
+
background: #333;
|
|
42912
|
+
transform: translateY(-50%);
|
|
42913
|
+
border-radius: 3px;
|
|
42914
|
+
}
|
|
42915
|
+
|
|
42916
|
+
.trim-selected {
|
|
42917
|
+
position: absolute;
|
|
42918
|
+
top: 50%;
|
|
42919
|
+
height: 6px;
|
|
42920
|
+
background: var(--primary);
|
|
42921
|
+
transform: translateY(-50%);
|
|
42922
|
+
border-radius: 3px;
|
|
42923
|
+
pointer-events: none;
|
|
42924
|
+
}
|
|
42925
|
+
|
|
42926
|
+
.trim-handle {
|
|
42927
|
+
position: absolute;
|
|
42928
|
+
top: 50%;
|
|
42929
|
+
width: 16px;
|
|
42930
|
+
height: 36px;
|
|
42931
|
+
background: white;
|
|
42932
|
+
border: 2px solid var(--primary);
|
|
42933
|
+
border-radius: 4px;
|
|
42934
|
+
transform: translate(-50%, -50%);
|
|
42935
|
+
cursor: ew-resize;
|
|
42936
|
+
z-index: 2;
|
|
42937
|
+
display: flex;
|
|
42938
|
+
align-items: center;
|
|
42939
|
+
justify-content: center;
|
|
42940
|
+
transition: background 0.15s ease, transform 0.1s ease;
|
|
42941
|
+
}
|
|
42942
|
+
|
|
42943
|
+
.trim-handle:hover {
|
|
42944
|
+
background: #e0e0e0;
|
|
42945
|
+
}
|
|
42946
|
+
|
|
42947
|
+
.trim-handle:active {
|
|
42948
|
+
background: var(--primary);
|
|
42949
|
+
transform: translate(-50%, -50%) scale(1.05);
|
|
42950
|
+
}
|
|
42951
|
+
|
|
42952
|
+
.trim-handle::before {
|
|
42953
|
+
content: '';
|
|
42954
|
+
width: 2px;
|
|
42955
|
+
height: 16px;
|
|
42956
|
+
background: #666;
|
|
42957
|
+
border-radius: 1px;
|
|
42958
|
+
}
|
|
42959
|
+
|
|
42960
|
+
.trim-handle:active::before {
|
|
42961
|
+
background: white;
|
|
42962
|
+
}
|
|
42963
|
+
|
|
42964
|
+
.trim-time-labels {
|
|
42965
|
+
display: flex;
|
|
42966
|
+
justify-content: space-between;
|
|
42967
|
+
font-size: 0.65rem;
|
|
42968
|
+
color: #666;
|
|
42969
|
+
font-family: 'Consolas', 'Monaco', monospace;
|
|
42970
|
+
padding: 0 12px;
|
|
42971
|
+
}
|
|
42972
|
+
|
|
42973
|
+
.trim-actions {
|
|
42974
|
+
display: flex;
|
|
42975
|
+
gap: 0.5rem;
|
|
42976
|
+
margin-top: 0.75rem;
|
|
42977
|
+
}
|
|
42978
|
+
|
|
42979
|
+
.trim-action-btn {
|
|
42980
|
+
flex: 1;
|
|
42981
|
+
padding: 0.5rem 0.75rem;
|
|
42982
|
+
background: var(--input);
|
|
42983
|
+
border: 1px solid transparent;
|
|
42984
|
+
border-radius: var(--radius-sm);
|
|
42985
|
+
color: #999;
|
|
42986
|
+
font-size: 0.75rem;
|
|
42987
|
+
cursor: pointer;
|
|
42988
|
+
transition: all 0.15s ease;
|
|
42989
|
+
text-align: center;
|
|
42990
|
+
}
|
|
42991
|
+
|
|
42992
|
+
.trim-action-btn:hover {
|
|
42993
|
+
border-color: var(--primary);
|
|
42994
|
+
color: #ccc;
|
|
42995
|
+
}
|
|
42996
|
+
|
|
42997
|
+
.export-spinner {
|
|
42998
|
+
display: inline-block;
|
|
42999
|
+
width: 14px;
|
|
43000
|
+
height: 14px;
|
|
43001
|
+
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
43002
|
+
border-radius: 50%;
|
|
43003
|
+
border-top-color: white;
|
|
43004
|
+
animation: spin 0.8s linear infinite;
|
|
43005
|
+
margin-right: 0.5rem;
|
|
43006
|
+
}
|
|
43007
|
+
|
|
43008
|
+
@keyframes spin {
|
|
43009
|
+
to { transform: rotate(360deg); }
|
|
43010
|
+
}
|
|
43011
|
+
`
|
|
43012
|
+
]);
|
|
43013
|
+
__runInitializers(_init4, 1, WccRecordingPanel);
|
|
41621
43014
|
|
|
41622
43015
|
// ts_web/elements/wcc-properties.ts
|
|
43016
|
+
var _recordingDuration_dec2, _isRecording_dec, _showRecordingPanel_dec, _editingProperties_dec, _propertyContent_dec, _isFullscreen_dec3, _warning_dec, _selectedTheme_dec, _selectedViewport_dec, _selectedItem_dec2, _dashboardRef_dec3, _a5, _WccProperties_decorators, _init5, _dashboardRef3, _selectedItem2, _selectedViewport, _selectedTheme, _warning, _isFullscreen3, _propertyContent, _editingProperties, _showRecordingPanel, _isRecording, _recordingDuration2;
|
|
41623
43017
|
var environment = "native";
|
|
41624
43018
|
var setEnvironment = (envArg) => {
|
|
41625
43019
|
environment = envArg;
|
|
41626
43020
|
};
|
|
41627
|
-
|
|
43021
|
+
_WccProperties_decorators = [t4("wcc-properties")];
|
|
43022
|
+
var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
|
|
43023
|
+
type: WccDashboard2
|
|
43024
|
+
})], _selectedItem_dec2 = [n5()], _selectedViewport_dec = [n5()], _selectedTheme_dec = [n5()], _warning_dec = [n5()], _isFullscreen_dec3 = [n5()], _propertyContent_dec = [r5()], _editingProperties_dec = [r5()], _showRecordingPanel_dec = [r5()], _isRecording_dec = [r5()], _recordingDuration_dec2 = [r5()], _a5) {
|
|
41628
43025
|
constructor() {
|
|
41629
43026
|
super(...arguments);
|
|
41630
|
-
this
|
|
41631
|
-
this
|
|
41632
|
-
this
|
|
41633
|
-
this
|
|
41634
|
-
this
|
|
41635
|
-
this
|
|
41636
|
-
this
|
|
43027
|
+
__privateAdd(this, _dashboardRef3, __runInitializers(_init5, 8, this)), __runInitializers(_init5, 11, this);
|
|
43028
|
+
__privateAdd(this, _selectedItem2, __runInitializers(_init5, 12, this)), __runInitializers(_init5, 15, this);
|
|
43029
|
+
__privateAdd(this, _selectedViewport, __runInitializers(_init5, 16, this, "native")), __runInitializers(_init5, 19, this);
|
|
43030
|
+
__privateAdd(this, _selectedTheme, __runInitializers(_init5, 20, this, "dark")), __runInitializers(_init5, 23, this);
|
|
43031
|
+
__privateAdd(this, _warning, __runInitializers(_init5, 24, this, null)), __runInitializers(_init5, 27, this);
|
|
43032
|
+
__privateAdd(this, _isFullscreen3, __runInitializers(_init5, 28, this, false)), __runInitializers(_init5, 31, this);
|
|
43033
|
+
__privateAdd(this, _propertyContent, __runInitializers(_init5, 32, this, [])), __runInitializers(_init5, 35, this);
|
|
43034
|
+
__privateAdd(this, _editingProperties, __runInitializers(_init5, 36, this, [])), __runInitializers(_init5, 39, this);
|
|
43035
|
+
__privateAdd(this, _showRecordingPanel, __runInitializers(_init5, 40, this, false)), __runInitializers(_init5, 43, this);
|
|
43036
|
+
__privateAdd(this, _isRecording, __runInitializers(_init5, 44, this, false)), __runInitializers(_init5, 47, this);
|
|
43037
|
+
__privateAdd(this, _recordingDuration2, __runInitializers(_init5, 48, this, 0)), __runInitializers(_init5, 51, this);
|
|
43038
|
+
__publicField(this, "editorHeight", 300);
|
|
41637
43039
|
}
|
|
41638
43040
|
render() {
|
|
41639
43041
|
return x`
|
|
@@ -41673,7 +43075,7 @@ var WccProperties = class extends DeesElement {
|
|
|
41673
43075
|
}
|
|
41674
43076
|
.grid {
|
|
41675
43077
|
display: grid;
|
|
41676
|
-
grid-template-columns: 1fr 150px 300px 70px;
|
|
43078
|
+
grid-template-columns: 1fr 150px 300px 70px 70px;
|
|
41677
43079
|
height: 100%;
|
|
41678
43080
|
}
|
|
41679
43081
|
.properties {
|
|
@@ -42236,9 +43638,36 @@ var WccProperties = class extends DeesElement {
|
|
|
42236
43638
|
${this.isFullscreen ? "fullscreen_exit" : "fullscreen"}
|
|
42237
43639
|
</i>
|
|
42238
43640
|
</div>
|
|
43641
|
+
<!-- Recording Button -->
|
|
43642
|
+
<wcc-record-button
|
|
43643
|
+
.state=${this.isRecording ? "recording" : "idle"}
|
|
43644
|
+
.duration=${this.recordingDuration}
|
|
43645
|
+
@record-click=${() => this.handleRecordButtonClick()}
|
|
43646
|
+
></wcc-record-button>
|
|
42239
43647
|
</div>
|
|
42240
43648
|
${this.warning ? x`<div class="warning">${this.warning}</div>` : null}
|
|
42241
43649
|
</div>
|
|
43650
|
+
|
|
43651
|
+
<!-- Recording Panel (options + preview) -->
|
|
43652
|
+
${this.showRecordingPanel ? x`
|
|
43653
|
+
<wcc-recording-panel
|
|
43654
|
+
.dashboardRef=${this.dashboardRef}
|
|
43655
|
+
@recording-start=${() => {
|
|
43656
|
+
this.isRecording = true;
|
|
43657
|
+
}}
|
|
43658
|
+
@recording-stop=${() => {
|
|
43659
|
+
this.isRecording = false;
|
|
43660
|
+
}}
|
|
43661
|
+
@duration-update=${(e10) => {
|
|
43662
|
+
this.recordingDuration = e10.detail.duration;
|
|
43663
|
+
}}
|
|
43664
|
+
@close=${() => {
|
|
43665
|
+
this.showRecordingPanel = false;
|
|
43666
|
+
this.isRecording = false;
|
|
43667
|
+
this.recordingDuration = 0;
|
|
43668
|
+
}}
|
|
43669
|
+
></wcc-recording-panel>
|
|
43670
|
+
` : null}
|
|
42242
43671
|
`;
|
|
42243
43672
|
}
|
|
42244
43673
|
async findElementRecursively(container, elementClass, maxDepth = 5) {
|
|
@@ -42524,51 +43953,65 @@ var WccProperties = class extends DeesElement {
|
|
|
42524
43953
|
})
|
|
42525
43954
|
);
|
|
42526
43955
|
}
|
|
42527
|
-
|
|
42528
|
-
|
|
42529
|
-
|
|
42530
|
-
|
|
42531
|
-
|
|
42532
|
-
|
|
42533
|
-
|
|
42534
|
-
|
|
42535
|
-
|
|
42536
|
-
|
|
42537
|
-
|
|
42538
|
-
|
|
42539
|
-
|
|
42540
|
-
|
|
42541
|
-
|
|
42542
|
-
|
|
42543
|
-
|
|
42544
|
-
|
|
42545
|
-
|
|
42546
|
-
|
|
42547
|
-
|
|
42548
|
-
|
|
42549
|
-
|
|
42550
|
-
|
|
42551
|
-
|
|
42552
|
-
|
|
42553
|
-
|
|
42554
|
-
WccProperties
|
|
42555
|
-
|
|
42556
|
-
|
|
43956
|
+
// ==================== Recording Methods ====================
|
|
43957
|
+
handleRecordButtonClick() {
|
|
43958
|
+
if (this.isRecording) {
|
|
43959
|
+
const panel = this.shadowRoot?.querySelector("wcc-recording-panel");
|
|
43960
|
+
if (panel && panel.stopRecording) {
|
|
43961
|
+
panel.stopRecording();
|
|
43962
|
+
}
|
|
43963
|
+
} else {
|
|
43964
|
+
this.showRecordingPanel = !this.showRecordingPanel;
|
|
43965
|
+
}
|
|
43966
|
+
}
|
|
43967
|
+
};
|
|
43968
|
+
_init5 = __decoratorStart(_a5);
|
|
43969
|
+
_dashboardRef3 = new WeakMap();
|
|
43970
|
+
_selectedItem2 = new WeakMap();
|
|
43971
|
+
_selectedViewport = new WeakMap();
|
|
43972
|
+
_selectedTheme = new WeakMap();
|
|
43973
|
+
_warning = new WeakMap();
|
|
43974
|
+
_isFullscreen3 = new WeakMap();
|
|
43975
|
+
_propertyContent = new WeakMap();
|
|
43976
|
+
_editingProperties = new WeakMap();
|
|
43977
|
+
_showRecordingPanel = new WeakMap();
|
|
43978
|
+
_isRecording = new WeakMap();
|
|
43979
|
+
_recordingDuration2 = new WeakMap();
|
|
43980
|
+
__decorateElement(_init5, 4, "dashboardRef", _dashboardRef_dec3, WccProperties, _dashboardRef3);
|
|
43981
|
+
__decorateElement(_init5, 4, "selectedItem", _selectedItem_dec2, WccProperties, _selectedItem2);
|
|
43982
|
+
__decorateElement(_init5, 4, "selectedViewport", _selectedViewport_dec, WccProperties, _selectedViewport);
|
|
43983
|
+
__decorateElement(_init5, 4, "selectedTheme", _selectedTheme_dec, WccProperties, _selectedTheme);
|
|
43984
|
+
__decorateElement(_init5, 4, "warning", _warning_dec, WccProperties, _warning);
|
|
43985
|
+
__decorateElement(_init5, 4, "isFullscreen", _isFullscreen_dec3, WccProperties, _isFullscreen3);
|
|
43986
|
+
__decorateElement(_init5, 4, "propertyContent", _propertyContent_dec, WccProperties, _propertyContent);
|
|
43987
|
+
__decorateElement(_init5, 4, "editingProperties", _editingProperties_dec, WccProperties, _editingProperties);
|
|
43988
|
+
__decorateElement(_init5, 4, "showRecordingPanel", _showRecordingPanel_dec, WccProperties, _showRecordingPanel);
|
|
43989
|
+
__decorateElement(_init5, 4, "isRecording", _isRecording_dec, WccProperties, _isRecording);
|
|
43990
|
+
__decorateElement(_init5, 4, "recordingDuration", _recordingDuration_dec2, WccProperties, _recordingDuration2);
|
|
43991
|
+
WccProperties = __decorateElement(_init5, 0, "WccProperties", _WccProperties_decorators, WccProperties);
|
|
43992
|
+
__runInitializers(_init5, 1, WccProperties);
|
|
42557
43993
|
|
|
42558
43994
|
// ts_web/elements/wcc-dashboard.ts
|
|
42559
|
-
var
|
|
43995
|
+
var _wccFrame_dec, _warning_dec2, _elements_dec, _pages_dec, _isFullscreen_dec4, _selectedTheme_dec2, _selectedViewport_dec2, _selectedItem_dec3, _selectedItemName_dec, _selectedType_dec2, _a6, _WccDashboard_decorators, _init6, _selectedType2, _selectedItemName, _selectedItem3, _selectedViewport2, _selectedTheme2, _isFullscreen4, _pages, _elements, _warning2, _wccFrame;
|
|
43996
|
+
_WccDashboard_decorators = [t4("wcc-dashboard")];
|
|
43997
|
+
var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()], _selectedItemName_dec = [n5()], _selectedItem_dec3 = [n5()], _selectedViewport_dec2 = [n5()], _selectedTheme_dec2 = [n5()], _isFullscreen_dec4 = [n5()], _pages_dec = [n5()], _elements_dec = [n5()], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a6) {
|
|
42560
43998
|
constructor(elementsArg, pagesArg) {
|
|
42561
43999
|
super();
|
|
42562
|
-
this
|
|
42563
|
-
this
|
|
42564
|
-
this
|
|
42565
|
-
this
|
|
42566
|
-
this
|
|
42567
|
-
this
|
|
42568
|
-
this
|
|
42569
|
-
this
|
|
42570
|
-
this
|
|
42571
|
-
this
|
|
44000
|
+
__privateAdd(this, _selectedType2, __runInitializers(_init6, 8, this)), __runInitializers(_init6, 11, this);
|
|
44001
|
+
__privateAdd(this, _selectedItemName, __runInitializers(_init6, 12, this)), __runInitializers(_init6, 15, this);
|
|
44002
|
+
__privateAdd(this, _selectedItem3, __runInitializers(_init6, 16, this)), __runInitializers(_init6, 19, this);
|
|
44003
|
+
__privateAdd(this, _selectedViewport2, __runInitializers(_init6, 20, this, "desktop")), __runInitializers(_init6, 23, this);
|
|
44004
|
+
__privateAdd(this, _selectedTheme2, __runInitializers(_init6, 24, this, "dark")), __runInitializers(_init6, 27, this);
|
|
44005
|
+
__privateAdd(this, _isFullscreen4, __runInitializers(_init6, 28, this, false)), __runInitializers(_init6, 31, this);
|
|
44006
|
+
__privateAdd(this, _pages, __runInitializers(_init6, 32, this, {})), __runInitializers(_init6, 35, this);
|
|
44007
|
+
__privateAdd(this, _elements, __runInitializers(_init6, 36, this, {})), __runInitializers(_init6, 39, this);
|
|
44008
|
+
__privateAdd(this, _warning2, __runInitializers(_init6, 40, this, null)), __runInitializers(_init6, 43, this);
|
|
44009
|
+
__publicField(this, "frameScrollY", 0);
|
|
44010
|
+
__publicField(this, "sidebarScrollY", 0);
|
|
44011
|
+
__publicField(this, "scrollPositionsApplied", false);
|
|
44012
|
+
__privateAdd(this, _wccFrame, __runInitializers(_init6, 44, this)), __runInitializers(_init6, 47, this);
|
|
44013
|
+
__publicField(this, "scrollUpdateTimeout");
|
|
44014
|
+
__publicField(this, "scrollListenersAttached", false);
|
|
42572
44015
|
if (elementsArg) {
|
|
42573
44016
|
this.elements = elementsArg;
|
|
42574
44017
|
console.log("got elements:");
|
|
@@ -42791,39 +44234,29 @@ var WccDashboard2 = class extends DeesElement {
|
|
|
42791
44234
|
this.scrollPositionsApplied = true;
|
|
42792
44235
|
}
|
|
42793
44236
|
};
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
42803
|
-
|
|
42804
|
-
|
|
42805
|
-
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
|
|
42814
|
-
|
|
42815
|
-
|
|
42816
|
-
|
|
42817
|
-
], WccDashboard2.prototype, "elements", 2);
|
|
42818
|
-
__decorateClass([
|
|
42819
|
-
n5()
|
|
42820
|
-
], WccDashboard2.prototype, "warning", 2);
|
|
42821
|
-
__decorateClass([
|
|
42822
|
-
r7("wcc-frame")
|
|
42823
|
-
], WccDashboard2.prototype, "wccFrame", 2);
|
|
42824
|
-
WccDashboard2 = __decorateClass([
|
|
42825
|
-
t4("wcc-dashboard")
|
|
42826
|
-
], WccDashboard2);
|
|
44237
|
+
_init6 = __decoratorStart(_a6);
|
|
44238
|
+
_selectedType2 = new WeakMap();
|
|
44239
|
+
_selectedItemName = new WeakMap();
|
|
44240
|
+
_selectedItem3 = new WeakMap();
|
|
44241
|
+
_selectedViewport2 = new WeakMap();
|
|
44242
|
+
_selectedTheme2 = new WeakMap();
|
|
44243
|
+
_isFullscreen4 = new WeakMap();
|
|
44244
|
+
_pages = new WeakMap();
|
|
44245
|
+
_elements = new WeakMap();
|
|
44246
|
+
_warning2 = new WeakMap();
|
|
44247
|
+
_wccFrame = new WeakMap();
|
|
44248
|
+
__decorateElement(_init6, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
|
|
44249
|
+
__decorateElement(_init6, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
|
|
44250
|
+
__decorateElement(_init6, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
|
|
44251
|
+
__decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
|
|
44252
|
+
__decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
|
|
44253
|
+
__decorateElement(_init6, 4, "isFullscreen", _isFullscreen_dec4, WccDashboard2, _isFullscreen4);
|
|
44254
|
+
__decorateElement(_init6, 4, "pages", _pages_dec, WccDashboard2, _pages);
|
|
44255
|
+
__decorateElement(_init6, 4, "elements", _elements_dec, WccDashboard2, _elements);
|
|
44256
|
+
__decorateElement(_init6, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
|
|
44257
|
+
__decorateElement(_init6, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
|
|
44258
|
+
WccDashboard2 = __decorateElement(_init6, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
|
|
44259
|
+
__runInitializers(_init6, 1, WccDashboard2);
|
|
42827
44260
|
|
|
42828
44261
|
// ts_web/index.ts
|
|
42829
44262
|
var setupWccTools = (elementsArg, pagesArg) => {
|
|
@@ -42851,20 +44284,34 @@ __export(elements_exports, {
|
|
|
42851
44284
|
});
|
|
42852
44285
|
|
|
42853
44286
|
// test/elements/test-demoelement.ts
|
|
44287
|
+
var _demoENum_dec, _demoNumber_dec, _demoString_dec, _demoBoolean_dec, _notTypedAndNotInitizalized_dec, _typedAndNotInitizalized_dec, _notTyped_dec, _a7, _TestDemoelement_decorators, _init7, _notTyped, _typedAndNotInitizalized, _notTypedAndNotInitizalized, _demoBoolean, _demoString, _demoNumber, _demoENum;
|
|
42854
44288
|
var ETestEnum = /* @__PURE__ */ ((ETestEnum2) => {
|
|
42855
44289
|
ETestEnum2["first"] = "first";
|
|
42856
44290
|
ETestEnum2["second"] = "second";
|
|
42857
44291
|
ETestEnum2["awesome"] = "awesome";
|
|
42858
44292
|
return ETestEnum2;
|
|
42859
44293
|
})(ETestEnum || {});
|
|
42860
|
-
|
|
44294
|
+
_TestDemoelement_decorators = [t4("test-demoelement")];
|
|
44295
|
+
var TestDemoelement = class extends (_a7 = DeesElement, _notTyped_dec = [n5()], _typedAndNotInitizalized_dec = [n5({
|
|
44296
|
+
type: String
|
|
44297
|
+
})], _notTypedAndNotInitizalized_dec = [n5()], _demoBoolean_dec = [n5({
|
|
44298
|
+
type: Boolean
|
|
44299
|
+
})], _demoString_dec = [n5({
|
|
44300
|
+
type: String
|
|
44301
|
+
})], _demoNumber_dec = [n5({
|
|
44302
|
+
type: Number
|
|
44303
|
+
})], _demoENum_dec = [n5({
|
|
44304
|
+
type: ETestEnum
|
|
44305
|
+
})], _a7) {
|
|
42861
44306
|
constructor() {
|
|
42862
44307
|
super();
|
|
42863
|
-
this
|
|
42864
|
-
this
|
|
42865
|
-
this
|
|
42866
|
-
this
|
|
42867
|
-
this
|
|
44308
|
+
__privateAdd(this, _notTyped, __runInitializers(_init7, 8, this, "hello")), __runInitializers(_init7, 11, this);
|
|
44309
|
+
__privateAdd(this, _typedAndNotInitizalized, __runInitializers(_init7, 12, this)), __runInitializers(_init7, 15, this);
|
|
44310
|
+
__privateAdd(this, _notTypedAndNotInitizalized, __runInitializers(_init7, 16, this)), __runInitializers(_init7, 19, this);
|
|
44311
|
+
__privateAdd(this, _demoBoolean, __runInitializers(_init7, 20, this, false)), __runInitializers(_init7, 23, this);
|
|
44312
|
+
__privateAdd(this, _demoString, __runInitializers(_init7, 24, this, "default demo string")), __runInitializers(_init7, 27, this);
|
|
44313
|
+
__privateAdd(this, _demoNumber, __runInitializers(_init7, 28, this, 2)), __runInitializers(_init7, 31, this);
|
|
44314
|
+
__privateAdd(this, _demoENum, __runInitializers(_init7, 32, this, "first" /* first */)), __runInitializers(_init7, 35, this);
|
|
42868
44315
|
}
|
|
42869
44316
|
render() {
|
|
42870
44317
|
return x`
|
|
@@ -42883,8 +44330,24 @@ var TestDemoelement = class extends DeesElement {
|
|
|
42883
44330
|
`;
|
|
42884
44331
|
}
|
|
42885
44332
|
};
|
|
42886
|
-
|
|
42887
|
-
|
|
44333
|
+
_init7 = __decoratorStart(_a7);
|
|
44334
|
+
_notTyped = new WeakMap();
|
|
44335
|
+
_typedAndNotInitizalized = new WeakMap();
|
|
44336
|
+
_notTypedAndNotInitizalized = new WeakMap();
|
|
44337
|
+
_demoBoolean = new WeakMap();
|
|
44338
|
+
_demoString = new WeakMap();
|
|
44339
|
+
_demoNumber = new WeakMap();
|
|
44340
|
+
_demoENum = new WeakMap();
|
|
44341
|
+
__decorateElement(_init7, 4, "notTyped", _notTyped_dec, TestDemoelement, _notTyped);
|
|
44342
|
+
__decorateElement(_init7, 4, "typedAndNotInitizalized", _typedAndNotInitizalized_dec, TestDemoelement, _typedAndNotInitizalized);
|
|
44343
|
+
__decorateElement(_init7, 4, "notTypedAndNotInitizalized", _notTypedAndNotInitizalized_dec, TestDemoelement, _notTypedAndNotInitizalized);
|
|
44344
|
+
__decorateElement(_init7, 4, "demoBoolean", _demoBoolean_dec, TestDemoelement, _demoBoolean);
|
|
44345
|
+
__decorateElement(_init7, 4, "demoString", _demoString_dec, TestDemoelement, _demoString);
|
|
44346
|
+
__decorateElement(_init7, 4, "demoNumber", _demoNumber_dec, TestDemoelement, _demoNumber);
|
|
44347
|
+
__decorateElement(_init7, 4, "demoENum", _demoENum_dec, TestDemoelement, _demoENum);
|
|
44348
|
+
TestDemoelement = __decorateElement(_init7, 0, "TestDemoelement", _TestDemoelement_decorators, TestDemoelement);
|
|
44349
|
+
__publicField(TestDemoelement, "demo", () => x`<test-demoelement>This is a slot text</test-demoelement>`);
|
|
44350
|
+
__publicField(TestDemoelement, "styles", [
|
|
42888
44351
|
i`
|
|
42889
44352
|
.maincontainer,
|
|
42890
44353
|
.themeindicator {
|
|
@@ -42920,56 +44383,16 @@ TestDemoelement.styles = [
|
|
|
42920
44383
|
color: green;
|
|
42921
44384
|
}
|
|
42922
44385
|
`
|
|
42923
|
-
];
|
|
42924
|
-
|
|
42925
|
-
n5()
|
|
42926
|
-
], TestDemoelement.prototype, "notTyped", 2);
|
|
42927
|
-
__decorateClass([
|
|
42928
|
-
n5({
|
|
42929
|
-
type: String
|
|
42930
|
-
})
|
|
42931
|
-
], TestDemoelement.prototype, "typedAndNotInitizalized", 2);
|
|
42932
|
-
__decorateClass([
|
|
42933
|
-
n5()
|
|
42934
|
-
], TestDemoelement.prototype, "notTypedAndNotInitizalized", 2);
|
|
42935
|
-
__decorateClass([
|
|
42936
|
-
n5({
|
|
42937
|
-
type: Boolean
|
|
42938
|
-
})
|
|
42939
|
-
], TestDemoelement.prototype, "demoBoolean", 2);
|
|
42940
|
-
__decorateClass([
|
|
42941
|
-
n5({
|
|
42942
|
-
type: String
|
|
42943
|
-
})
|
|
42944
|
-
], TestDemoelement.prototype, "demoString", 2);
|
|
42945
|
-
__decorateClass([
|
|
42946
|
-
n5({
|
|
42947
|
-
type: Number
|
|
42948
|
-
})
|
|
42949
|
-
], TestDemoelement.prototype, "demoNumber", 2);
|
|
42950
|
-
__decorateClass([
|
|
42951
|
-
n5({
|
|
42952
|
-
type: ETestEnum
|
|
42953
|
-
})
|
|
42954
|
-
], TestDemoelement.prototype, "demoENum", 2);
|
|
42955
|
-
TestDemoelement = __decorateClass([
|
|
42956
|
-
t4("test-demoelement")
|
|
42957
|
-
], TestDemoelement);
|
|
44386
|
+
]);
|
|
44387
|
+
__runInitializers(_init7, 1, TestDemoelement);
|
|
42958
44388
|
|
|
42959
44389
|
// test/elements/test-noprops.ts
|
|
42960
|
-
var
|
|
42961
|
-
|
|
42962
|
-
|
|
42963
|
-
|
|
42964
|
-
|
|
42965
|
-
|
|
42966
|
-
</div>
|
|
42967
|
-
`;
|
|
42968
|
-
}
|
|
42969
|
-
};
|
|
42970
|
-
TestNoProps.demo = () => x`<test-noprops></test-noprops>`;
|
|
42971
|
-
TestNoProps.styles = [
|
|
42972
|
-
i`
|
|
44390
|
+
var _TestNoProps_decorators, _init8, _a8;
|
|
44391
|
+
_TestNoProps_decorators = [t4("test-noprops")];
|
|
44392
|
+
var TestNoProps = class extends (_a8 = DeesElement) {
|
|
44393
|
+
static demo = () => x`<test-noprops></test-noprops>`;
|
|
44394
|
+
static styles = [
|
|
44395
|
+
i`
|
|
42973
44396
|
:host {
|
|
42974
44397
|
display: block;
|
|
42975
44398
|
padding: 20px;
|
|
@@ -42982,18 +44405,29 @@ TestNoProps.styles = [
|
|
|
42982
44405
|
color: #666;
|
|
42983
44406
|
}
|
|
42984
44407
|
`
|
|
42985
|
-
];
|
|
42986
|
-
|
|
42987
|
-
|
|
42988
|
-
|
|
44408
|
+
];
|
|
44409
|
+
render() {
|
|
44410
|
+
return x`
|
|
44411
|
+
<div class="message">
|
|
44412
|
+
This element has no @property decorators.
|
|
44413
|
+
Properties panel should handle this gracefully.
|
|
44414
|
+
</div>
|
|
44415
|
+
`;
|
|
44416
|
+
}
|
|
44417
|
+
};
|
|
44418
|
+
_init8 = __decoratorStart(_a8);
|
|
44419
|
+
TestNoProps = __decorateElement(_init8, 0, "TestNoProps", _TestNoProps_decorators, TestNoProps);
|
|
44420
|
+
__runInitializers(_init8, 1, TestNoProps);
|
|
42989
44421
|
|
|
42990
44422
|
// test/elements/test-complextypes.ts
|
|
42991
|
-
var
|
|
44423
|
+
var _dateProperty_dec, _functionProperty_dec, _simpleObject_dec, _complexData_dec, _numberArray_dec, _stringArray_dec, _a9, _TestComplexTypes_decorators, _init9, _stringArray, _numberArray, _complexData, _simpleObject, _functionProperty, _dateProperty;
|
|
44424
|
+
_TestComplexTypes_decorators = [t4("test-complextypes")];
|
|
44425
|
+
var TestComplexTypes = class extends (_a9 = DeesElement, _stringArray_dec = [n5({ type: Array })], _numberArray_dec = [n5({ type: Array })], _complexData_dec = [n5({ attribute: false })], _simpleObject_dec = [n5({ type: Object })], _functionProperty_dec = [n5({ attribute: false })], _dateProperty_dec = [n5({ type: Date })], _a9) {
|
|
42992
44426
|
constructor() {
|
|
42993
44427
|
super(...arguments);
|
|
42994
|
-
this
|
|
42995
|
-
this
|
|
42996
|
-
this
|
|
44428
|
+
__privateAdd(this, _stringArray, __runInitializers(_init9, 8, this, ["apple", "banana", "cherry"])), __runInitializers(_init9, 11, this);
|
|
44429
|
+
__privateAdd(this, _numberArray, __runInitializers(_init9, 12, this, [1, 2, 3, 4, 5])), __runInitializers(_init9, 15, this);
|
|
44430
|
+
__privateAdd(this, _complexData, __runInitializers(_init9, 16, this, {
|
|
42997
44431
|
name: "Default Name",
|
|
42998
44432
|
age: 0,
|
|
42999
44433
|
tags: [],
|
|
@@ -43002,16 +44436,16 @@ var TestComplexTypes = class extends DeesElement {
|
|
|
43002
44436
|
modified: /* @__PURE__ */ new Date(),
|
|
43003
44437
|
author: "Unknown"
|
|
43004
44438
|
}
|
|
43005
|
-
};
|
|
43006
|
-
this
|
|
44439
|
+
})), __runInitializers(_init9, 19, this);
|
|
44440
|
+
__privateAdd(this, _simpleObject, __runInitializers(_init9, 20, this, {
|
|
43007
44441
|
key1: "value1",
|
|
43008
44442
|
key2: "value2",
|
|
43009
44443
|
key3: 123
|
|
43010
|
-
};
|
|
43011
|
-
this
|
|
44444
|
+
})), __runInitializers(_init9, 23, this);
|
|
44445
|
+
__privateAdd(this, _functionProperty, __runInitializers(_init9, 24, this, () => {
|
|
43012
44446
|
console.log("This is a function property");
|
|
43013
|
-
};
|
|
43014
|
-
this
|
|
44447
|
+
})), __runInitializers(_init9, 27, this);
|
|
44448
|
+
__privateAdd(this, _dateProperty, __runInitializers(_init9, 28, this, /* @__PURE__ */ new Date())), __runInitializers(_init9, 31, this);
|
|
43015
44449
|
}
|
|
43016
44450
|
render() {
|
|
43017
44451
|
return x`
|
|
@@ -43047,7 +44481,21 @@ var TestComplexTypes = class extends DeesElement {
|
|
|
43047
44481
|
`;
|
|
43048
44482
|
}
|
|
43049
44483
|
};
|
|
43050
|
-
|
|
44484
|
+
_init9 = __decoratorStart(_a9);
|
|
44485
|
+
_stringArray = new WeakMap();
|
|
44486
|
+
_numberArray = new WeakMap();
|
|
44487
|
+
_complexData = new WeakMap();
|
|
44488
|
+
_simpleObject = new WeakMap();
|
|
44489
|
+
_functionProperty = new WeakMap();
|
|
44490
|
+
_dateProperty = new WeakMap();
|
|
44491
|
+
__decorateElement(_init9, 4, "stringArray", _stringArray_dec, TestComplexTypes, _stringArray);
|
|
44492
|
+
__decorateElement(_init9, 4, "numberArray", _numberArray_dec, TestComplexTypes, _numberArray);
|
|
44493
|
+
__decorateElement(_init9, 4, "complexData", _complexData_dec, TestComplexTypes, _complexData);
|
|
44494
|
+
__decorateElement(_init9, 4, "simpleObject", _simpleObject_dec, TestComplexTypes, _simpleObject);
|
|
44495
|
+
__decorateElement(_init9, 4, "functionProperty", _functionProperty_dec, TestComplexTypes, _functionProperty);
|
|
44496
|
+
__decorateElement(_init9, 4, "dateProperty", _dateProperty_dec, TestComplexTypes, _dateProperty);
|
|
44497
|
+
TestComplexTypes = __decorateElement(_init9, 0, "TestComplexTypes", _TestComplexTypes_decorators, TestComplexTypes);
|
|
44498
|
+
__publicField(TestComplexTypes, "demo", () => x`
|
|
43051
44499
|
<test-complextypes
|
|
43052
44500
|
.complexData=${{
|
|
43053
44501
|
name: "Test User",
|
|
@@ -43060,8 +44508,8 @@ TestComplexTypes.demo = () => x`
|
|
|
43060
44508
|
}
|
|
43061
44509
|
}}
|
|
43062
44510
|
></test-complextypes>
|
|
43063
|
-
|
|
43064
|
-
TestComplexTypes
|
|
44511
|
+
`);
|
|
44512
|
+
__publicField(TestComplexTypes, "styles", [
|
|
43065
44513
|
i`
|
|
43066
44514
|
:host {
|
|
43067
44515
|
display: block;
|
|
@@ -43092,31 +44540,17 @@ TestComplexTypes.styles = [
|
|
|
43092
44540
|
overflow-x: auto;
|
|
43093
44541
|
}
|
|
43094
44542
|
`
|
|
43095
|
-
];
|
|
43096
|
-
|
|
43097
|
-
n5({ type: Array })
|
|
43098
|
-
], TestComplexTypes.prototype, "stringArray", 2);
|
|
43099
|
-
__decorateClass([
|
|
43100
|
-
n5({ type: Array })
|
|
43101
|
-
], TestComplexTypes.prototype, "numberArray", 2);
|
|
43102
|
-
__decorateClass([
|
|
43103
|
-
n5({ attribute: false })
|
|
43104
|
-
], TestComplexTypes.prototype, "complexData", 2);
|
|
43105
|
-
__decorateClass([
|
|
43106
|
-
n5({ type: Object })
|
|
43107
|
-
], TestComplexTypes.prototype, "simpleObject", 2);
|
|
43108
|
-
__decorateClass([
|
|
43109
|
-
n5({ attribute: false })
|
|
43110
|
-
], TestComplexTypes.prototype, "functionProperty", 2);
|
|
43111
|
-
__decorateClass([
|
|
43112
|
-
n5({ type: Date })
|
|
43113
|
-
], TestComplexTypes.prototype, "dateProperty", 2);
|
|
43114
|
-
TestComplexTypes = __decorateClass([
|
|
43115
|
-
t4("test-complextypes")
|
|
43116
|
-
], TestComplexTypes);
|
|
44543
|
+
]);
|
|
44544
|
+
__runInitializers(_init9, 1, TestComplexTypes);
|
|
43117
44545
|
|
|
43118
44546
|
// ts_demotools/demotools.ts
|
|
43119
|
-
var
|
|
44547
|
+
var _runAfterRender_dec, _a10, _DeesDemoWrapper_decorators, _init10, _runAfterRender;
|
|
44548
|
+
_DeesDemoWrapper_decorators = [t4("dees-demowrapper")];
|
|
44549
|
+
var DeesDemoWrapper = class extends (_a10 = DeesElement, _runAfterRender_dec = [n5({ attribute: false })], _a10) {
|
|
44550
|
+
constructor() {
|
|
44551
|
+
super(...arguments);
|
|
44552
|
+
__privateAdd(this, _runAfterRender, __runInitializers(_init10, 8, this)), __runInitializers(_init10, 11, this);
|
|
44553
|
+
}
|
|
43120
44554
|
render() {
|
|
43121
44555
|
return x`
|
|
43122
44556
|
<slot></slot>
|
|
@@ -43134,27 +44568,28 @@ var DeesDemoWrapper = class extends DeesElement {
|
|
|
43134
44568
|
}
|
|
43135
44569
|
}
|
|
43136
44570
|
};
|
|
43137
|
-
|
|
44571
|
+
_init10 = __decoratorStart(_a10);
|
|
44572
|
+
_runAfterRender = new WeakMap();
|
|
44573
|
+
__decorateElement(_init10, 4, "runAfterRender", _runAfterRender_dec, DeesDemoWrapper, _runAfterRender);
|
|
44574
|
+
DeesDemoWrapper = __decorateElement(_init10, 0, "DeesDemoWrapper", _DeesDemoWrapper_decorators, DeesDemoWrapper);
|
|
44575
|
+
__publicField(DeesDemoWrapper, "styles", [
|
|
43138
44576
|
i`
|
|
43139
44577
|
:host {
|
|
43140
44578
|
display: contents;
|
|
43141
44579
|
}
|
|
43142
44580
|
`
|
|
43143
|
-
];
|
|
43144
|
-
|
|
43145
|
-
n5({ attribute: false })
|
|
43146
|
-
], DeesDemoWrapper.prototype, "runAfterRender", 2);
|
|
43147
|
-
DeesDemoWrapper = __decorateClass([
|
|
43148
|
-
t4("dees-demowrapper")
|
|
43149
|
-
], DeesDemoWrapper);
|
|
44581
|
+
]);
|
|
44582
|
+
__runInitializers(_init10, 1, DeesDemoWrapper);
|
|
43150
44583
|
|
|
43151
44584
|
// test/elements/test-withwrapper.ts
|
|
43152
|
-
var
|
|
44585
|
+
var _isActive_dec, _counter_dec, _dynamicValue_dec, _a11, _TestWithWrapper_decorators, _init11, _dynamicValue, _counter, _isActive;
|
|
44586
|
+
_TestWithWrapper_decorators = [t4("test-withwrapper")];
|
|
44587
|
+
var TestWithWrapper = class extends (_a11 = DeesElement, _dynamicValue_dec = [n5({ type: String })], _counter_dec = [n5({ type: Number })], _isActive_dec = [n5({ type: Boolean })], _a11) {
|
|
43153
44588
|
constructor() {
|
|
43154
44589
|
super(...arguments);
|
|
43155
|
-
this
|
|
43156
|
-
this
|
|
43157
|
-
this
|
|
44590
|
+
__privateAdd(this, _dynamicValue, __runInitializers(_init11, 8, this, "Initial value")), __runInitializers(_init11, 11, this);
|
|
44591
|
+
__privateAdd(this, _counter, __runInitializers(_init11, 12, this, 0)), __runInitializers(_init11, 15, this);
|
|
44592
|
+
__privateAdd(this, _isActive, __runInitializers(_init11, 16, this, false)), __runInitializers(_init11, 19, this);
|
|
43158
44593
|
}
|
|
43159
44594
|
render() {
|
|
43160
44595
|
return x`
|
|
@@ -43178,7 +44613,15 @@ var TestWithWrapper = class extends DeesElement {
|
|
|
43178
44613
|
`;
|
|
43179
44614
|
}
|
|
43180
44615
|
};
|
|
43181
|
-
|
|
44616
|
+
_init11 = __decoratorStart(_a11);
|
|
44617
|
+
_dynamicValue = new WeakMap();
|
|
44618
|
+
_counter = new WeakMap();
|
|
44619
|
+
_isActive = new WeakMap();
|
|
44620
|
+
__decorateElement(_init11, 4, "dynamicValue", _dynamicValue_dec, TestWithWrapper, _dynamicValue);
|
|
44621
|
+
__decorateElement(_init11, 4, "counter", _counter_dec, TestWithWrapper, _counter);
|
|
44622
|
+
__decorateElement(_init11, 4, "isActive", _isActive_dec, TestWithWrapper, _isActive);
|
|
44623
|
+
TestWithWrapper = __decorateElement(_init11, 0, "TestWithWrapper", _TestWithWrapper_decorators, TestWithWrapper);
|
|
44624
|
+
__publicField(TestWithWrapper, "demo", () => x`
|
|
43182
44625
|
<dees-demowrapper .runAfterRender=${async (wrapper) => {
|
|
43183
44626
|
console.log("DemoWrapper: Found wrapper element", wrapper);
|
|
43184
44627
|
const testElement = wrapper.querySelector("test-withwrapper");
|
|
@@ -43197,8 +44640,8 @@ TestWithWrapper.demo = () => x`
|
|
|
43197
44640
|
This div is also inside the wrapper
|
|
43198
44641
|
</div>
|
|
43199
44642
|
</dees-demowrapper>
|
|
43200
|
-
|
|
43201
|
-
TestWithWrapper
|
|
44643
|
+
`);
|
|
44644
|
+
__publicField(TestWithWrapper, "styles", [
|
|
43202
44645
|
i`
|
|
43203
44646
|
:host {
|
|
43204
44647
|
display: block;
|
|
@@ -43236,44 +44679,35 @@ TestWithWrapper.styles = [
|
|
|
43236
44679
|
font-family: monospace;
|
|
43237
44680
|
}
|
|
43238
44681
|
`
|
|
43239
|
-
];
|
|
43240
|
-
|
|
43241
|
-
n5({ type: String })
|
|
43242
|
-
], TestWithWrapper.prototype, "dynamicValue", 2);
|
|
43243
|
-
__decorateClass([
|
|
43244
|
-
n5({ type: Number })
|
|
43245
|
-
], TestWithWrapper.prototype, "counter", 2);
|
|
43246
|
-
__decorateClass([
|
|
43247
|
-
n5({ type: Boolean })
|
|
43248
|
-
], TestWithWrapper.prototype, "isActive", 2);
|
|
43249
|
-
TestWithWrapper = __decorateClass([
|
|
43250
|
-
t4("test-withwrapper")
|
|
43251
|
-
], TestWithWrapper);
|
|
44682
|
+
]);
|
|
44683
|
+
__runInitializers(_init11, 1, TestWithWrapper);
|
|
43252
44684
|
|
|
43253
44685
|
// test/elements/test-edgecases.ts
|
|
43254
|
-
var
|
|
44686
|
+
var _circularRef_dec, _emptyObject_dec, _emptyArray_dec, _emptyString_dec, _booleanNumber_dec, _booleanString_dec, _floatNumber_dec, _verySmallNumber_dec, _veryLargeNumber_dec, _nanNumber_dec, _infinityNumber_dec, _htmlString_dec, _specialChars_dec, _longString_dec, _undefinedNumber_dec, _nullableString_dec, _a12, _TestEdgeCases_decorators, _init12, _nullableString, _undefinedNumber, _longString, _specialChars, _htmlString, _infinityNumber, _nanNumber, _veryLargeNumber, _verySmallNumber, _floatNumber, _booleanString, _booleanNumber, _emptyString, _emptyArray, _emptyObject, _circularRef;
|
|
44687
|
+
_TestEdgeCases_decorators = [t4("test-edgecases")];
|
|
44688
|
+
var TestEdgeCases = class extends (_a12 = DeesElement, _nullableString_dec = [n5({ type: String })], _undefinedNumber_dec = [n5({ type: Number })], _longString_dec = [n5({ type: String })], _specialChars_dec = [n5({ type: String })], _htmlString_dec = [n5({ type: String })], _infinityNumber_dec = [n5({ type: Number })], _nanNumber_dec = [n5({ type: Number })], _veryLargeNumber_dec = [n5({ type: Number })], _verySmallNumber_dec = [n5({ type: Number })], _floatNumber_dec = [n5({ type: Number })], _booleanString_dec = [n5({ type: String })], _booleanNumber_dec = [n5({ type: Number })], _emptyString_dec = [n5({ type: String })], _emptyArray_dec = [n5({ type: Array })], _emptyObject_dec = [n5({ type: Object })], _circularRef_dec = [n5({ attribute: false })], _a12) {
|
|
43255
44689
|
constructor() {
|
|
43256
44690
|
super(...arguments);
|
|
43257
|
-
this
|
|
43258
|
-
this
|
|
43259
|
-
this
|
|
43260
|
-
this
|
|
43261
|
-
this
|
|
43262
|
-
this
|
|
43263
|
-
this
|
|
43264
|
-
this
|
|
43265
|
-
this
|
|
43266
|
-
this
|
|
43267
|
-
this
|
|
43268
|
-
this
|
|
43269
|
-
this
|
|
43270
|
-
this
|
|
43271
|
-
this
|
|
43272
|
-
this
|
|
44691
|
+
__privateAdd(this, _nullableString, __runInitializers(_init12, 8, this, null)), __runInitializers(_init12, 11, this);
|
|
44692
|
+
__privateAdd(this, _undefinedNumber, __runInitializers(_init12, 12, this)), __runInitializers(_init12, 15, this);
|
|
44693
|
+
__privateAdd(this, _longString, __runInitializers(_init12, 16, this, "Lorem ipsum ".repeat(50))), __runInitializers(_init12, 19, this);
|
|
44694
|
+
__privateAdd(this, _specialChars, __runInitializers(_init12, 20, this, "!@#$%^&*()_+-=[]{}|;':\",./<>?`~")), __runInitializers(_init12, 23, this);
|
|
44695
|
+
__privateAdd(this, _htmlString, __runInitializers(_init12, 24, this, '<script>alert("test")<\/script><b>Bold text</b>')), __runInitializers(_init12, 27, this);
|
|
44696
|
+
__privateAdd(this, _infinityNumber, __runInitializers(_init12, 28, this, Infinity)), __runInitializers(_init12, 31, this);
|
|
44697
|
+
__privateAdd(this, _nanNumber, __runInitializers(_init12, 32, this, NaN)), __runInitializers(_init12, 35, this);
|
|
44698
|
+
__privateAdd(this, _veryLargeNumber, __runInitializers(_init12, 36, this, Number.MAX_SAFE_INTEGER)), __runInitializers(_init12, 39, this);
|
|
44699
|
+
__privateAdd(this, _verySmallNumber, __runInitializers(_init12, 40, this, Number.MIN_SAFE_INTEGER)), __runInitializers(_init12, 43, this);
|
|
44700
|
+
__privateAdd(this, _floatNumber, __runInitializers(_init12, 44, this, 3.14159265359)), __runInitializers(_init12, 47, this);
|
|
44701
|
+
__privateAdd(this, _booleanString, __runInitializers(_init12, 48, this, "false")), __runInitializers(_init12, 51, this);
|
|
44702
|
+
__privateAdd(this, _booleanNumber, __runInitializers(_init12, 52, this, 0)), __runInitializers(_init12, 55, this);
|
|
44703
|
+
__privateAdd(this, _emptyString, __runInitializers(_init12, 56, this, "")), __runInitializers(_init12, 59, this);
|
|
44704
|
+
__privateAdd(this, _emptyArray, __runInitializers(_init12, 60, this, [])), __runInitializers(_init12, 63, this);
|
|
44705
|
+
__privateAdd(this, _emptyObject, __runInitializers(_init12, 64, this, {})), __runInitializers(_init12, 67, this);
|
|
44706
|
+
__privateAdd(this, _circularRef, __runInitializers(_init12, 68, this, (() => {
|
|
43273
44707
|
const obj = { name: "circular" };
|
|
43274
44708
|
obj.self = obj;
|
|
43275
44709
|
return obj;
|
|
43276
|
-
})();
|
|
44710
|
+
})())), __runInitializers(_init12, 71, this);
|
|
43277
44711
|
}
|
|
43278
44712
|
formatValue(value2) {
|
|
43279
44713
|
if (value2 === null) return "null";
|
|
@@ -43355,8 +44789,42 @@ var TestEdgeCases = class extends DeesElement {
|
|
|
43355
44789
|
`;
|
|
43356
44790
|
}
|
|
43357
44791
|
};
|
|
43358
|
-
|
|
43359
|
-
|
|
44792
|
+
_init12 = __decoratorStart(_a12);
|
|
44793
|
+
_nullableString = new WeakMap();
|
|
44794
|
+
_undefinedNumber = new WeakMap();
|
|
44795
|
+
_longString = new WeakMap();
|
|
44796
|
+
_specialChars = new WeakMap();
|
|
44797
|
+
_htmlString = new WeakMap();
|
|
44798
|
+
_infinityNumber = new WeakMap();
|
|
44799
|
+
_nanNumber = new WeakMap();
|
|
44800
|
+
_veryLargeNumber = new WeakMap();
|
|
44801
|
+
_verySmallNumber = new WeakMap();
|
|
44802
|
+
_floatNumber = new WeakMap();
|
|
44803
|
+
_booleanString = new WeakMap();
|
|
44804
|
+
_booleanNumber = new WeakMap();
|
|
44805
|
+
_emptyString = new WeakMap();
|
|
44806
|
+
_emptyArray = new WeakMap();
|
|
44807
|
+
_emptyObject = new WeakMap();
|
|
44808
|
+
_circularRef = new WeakMap();
|
|
44809
|
+
__decorateElement(_init12, 4, "nullableString", _nullableString_dec, TestEdgeCases, _nullableString);
|
|
44810
|
+
__decorateElement(_init12, 4, "undefinedNumber", _undefinedNumber_dec, TestEdgeCases, _undefinedNumber);
|
|
44811
|
+
__decorateElement(_init12, 4, "longString", _longString_dec, TestEdgeCases, _longString);
|
|
44812
|
+
__decorateElement(_init12, 4, "specialChars", _specialChars_dec, TestEdgeCases, _specialChars);
|
|
44813
|
+
__decorateElement(_init12, 4, "htmlString", _htmlString_dec, TestEdgeCases, _htmlString);
|
|
44814
|
+
__decorateElement(_init12, 4, "infinityNumber", _infinityNumber_dec, TestEdgeCases, _infinityNumber);
|
|
44815
|
+
__decorateElement(_init12, 4, "nanNumber", _nanNumber_dec, TestEdgeCases, _nanNumber);
|
|
44816
|
+
__decorateElement(_init12, 4, "veryLargeNumber", _veryLargeNumber_dec, TestEdgeCases, _veryLargeNumber);
|
|
44817
|
+
__decorateElement(_init12, 4, "verySmallNumber", _verySmallNumber_dec, TestEdgeCases, _verySmallNumber);
|
|
44818
|
+
__decorateElement(_init12, 4, "floatNumber", _floatNumber_dec, TestEdgeCases, _floatNumber);
|
|
44819
|
+
__decorateElement(_init12, 4, "booleanString", _booleanString_dec, TestEdgeCases, _booleanString);
|
|
44820
|
+
__decorateElement(_init12, 4, "booleanNumber", _booleanNumber_dec, TestEdgeCases, _booleanNumber);
|
|
44821
|
+
__decorateElement(_init12, 4, "emptyString", _emptyString_dec, TestEdgeCases, _emptyString);
|
|
44822
|
+
__decorateElement(_init12, 4, "emptyArray", _emptyArray_dec, TestEdgeCases, _emptyArray);
|
|
44823
|
+
__decorateElement(_init12, 4, "emptyObject", _emptyObject_dec, TestEdgeCases, _emptyObject);
|
|
44824
|
+
__decorateElement(_init12, 4, "circularRef", _circularRef_dec, TestEdgeCases, _circularRef);
|
|
44825
|
+
TestEdgeCases = __decorateElement(_init12, 0, "TestEdgeCases", _TestEdgeCases_decorators, TestEdgeCases);
|
|
44826
|
+
__publicField(TestEdgeCases, "demo", () => x`<test-edgecases></test-edgecases>`);
|
|
44827
|
+
__publicField(TestEdgeCases, "styles", [
|
|
43360
44828
|
i`
|
|
43361
44829
|
:host {
|
|
43362
44830
|
display: block;
|
|
@@ -43394,61 +44862,13 @@ TestEdgeCases.styles = [
|
|
|
43394
44862
|
border-radius: 2px;
|
|
43395
44863
|
}
|
|
43396
44864
|
`
|
|
43397
|
-
];
|
|
43398
|
-
|
|
43399
|
-
n5({ type: String })
|
|
43400
|
-
], TestEdgeCases.prototype, "nullableString", 2);
|
|
43401
|
-
__decorateClass([
|
|
43402
|
-
n5({ type: Number })
|
|
43403
|
-
], TestEdgeCases.prototype, "undefinedNumber", 2);
|
|
43404
|
-
__decorateClass([
|
|
43405
|
-
n5({ type: String })
|
|
43406
|
-
], TestEdgeCases.prototype, "longString", 2);
|
|
43407
|
-
__decorateClass([
|
|
43408
|
-
n5({ type: String })
|
|
43409
|
-
], TestEdgeCases.prototype, "specialChars", 2);
|
|
43410
|
-
__decorateClass([
|
|
43411
|
-
n5({ type: String })
|
|
43412
|
-
], TestEdgeCases.prototype, "htmlString", 2);
|
|
43413
|
-
__decorateClass([
|
|
43414
|
-
n5({ type: Number })
|
|
43415
|
-
], TestEdgeCases.prototype, "infinityNumber", 2);
|
|
43416
|
-
__decorateClass([
|
|
43417
|
-
n5({ type: Number })
|
|
43418
|
-
], TestEdgeCases.prototype, "nanNumber", 2);
|
|
43419
|
-
__decorateClass([
|
|
43420
|
-
n5({ type: Number })
|
|
43421
|
-
], TestEdgeCases.prototype, "veryLargeNumber", 2);
|
|
43422
|
-
__decorateClass([
|
|
43423
|
-
n5({ type: Number })
|
|
43424
|
-
], TestEdgeCases.prototype, "verySmallNumber", 2);
|
|
43425
|
-
__decorateClass([
|
|
43426
|
-
n5({ type: Number })
|
|
43427
|
-
], TestEdgeCases.prototype, "floatNumber", 2);
|
|
43428
|
-
__decorateClass([
|
|
43429
|
-
n5({ type: String })
|
|
43430
|
-
], TestEdgeCases.prototype, "booleanString", 2);
|
|
43431
|
-
__decorateClass([
|
|
43432
|
-
n5({ type: Number })
|
|
43433
|
-
], TestEdgeCases.prototype, "booleanNumber", 2);
|
|
43434
|
-
__decorateClass([
|
|
43435
|
-
n5({ type: String })
|
|
43436
|
-
], TestEdgeCases.prototype, "emptyString", 2);
|
|
43437
|
-
__decorateClass([
|
|
43438
|
-
n5({ type: Array })
|
|
43439
|
-
], TestEdgeCases.prototype, "emptyArray", 2);
|
|
43440
|
-
__decorateClass([
|
|
43441
|
-
n5({ type: Object })
|
|
43442
|
-
], TestEdgeCases.prototype, "emptyObject", 2);
|
|
43443
|
-
__decorateClass([
|
|
43444
|
-
n5({ attribute: false })
|
|
43445
|
-
], TestEdgeCases.prototype, "circularRef", 2);
|
|
43446
|
-
TestEdgeCases = __decorateClass([
|
|
43447
|
-
t4("test-edgecases")
|
|
43448
|
-
], TestEdgeCases);
|
|
44865
|
+
]);
|
|
44866
|
+
__runInitializers(_init12, 1, TestEdgeCases);
|
|
43449
44867
|
|
|
43450
44868
|
// test/elements/test-nested.ts
|
|
43451
|
-
var
|
|
44869
|
+
var _TestNestedWrapper_decorators, _init13, _a13, _found_dec, _depth_dec, _message_dec, _b, _TestNestedTarget_decorators, _init14, _message, _depth, _found, _testId_dec, _c, _TestNested_decorators, _init15, _testId;
|
|
44870
|
+
_TestNestedWrapper_decorators = [t4("test-nested-wrapper")];
|
|
44871
|
+
var TestNestedWrapper = class extends (_a13 = DeesElement) {
|
|
43452
44872
|
render() {
|
|
43453
44873
|
return x`
|
|
43454
44874
|
<div style="border: 1px dashed #ccc; padding: 10px; margin: 5px;">
|
|
@@ -43457,15 +44877,16 @@ var TestNestedWrapper = class extends DeesElement {
|
|
|
43457
44877
|
`;
|
|
43458
44878
|
}
|
|
43459
44879
|
};
|
|
43460
|
-
|
|
43461
|
-
|
|
43462
|
-
|
|
43463
|
-
|
|
44880
|
+
_init13 = __decoratorStart(_a13);
|
|
44881
|
+
TestNestedWrapper = __decorateElement(_init13, 0, "TestNestedWrapper", _TestNestedWrapper_decorators, TestNestedWrapper);
|
|
44882
|
+
__runInitializers(_init13, 1, TestNestedWrapper);
|
|
44883
|
+
_TestNestedTarget_decorators = [t4("test-nested-target")];
|
|
44884
|
+
var TestNestedTarget = class extends (_b = DeesElement, _message_dec = [n5({ type: String })], _depth_dec = [n5({ type: Number })], _found_dec = [n5({ type: Boolean })], _b) {
|
|
43464
44885
|
constructor() {
|
|
43465
44886
|
super(...arguments);
|
|
43466
|
-
this
|
|
43467
|
-
this
|
|
43468
|
-
this
|
|
44887
|
+
__privateAdd(this, _message, __runInitializers(_init14, 8, this, "I am deeply nested!")), __runInitializers(_init14, 11, this);
|
|
44888
|
+
__privateAdd(this, _depth, __runInitializers(_init14, 12, this, 0)), __runInitializers(_init14, 15, this);
|
|
44889
|
+
__privateAdd(this, _found, __runInitializers(_init14, 16, this, false)), __runInitializers(_init14, 19, this);
|
|
43469
44890
|
}
|
|
43470
44891
|
render() {
|
|
43471
44892
|
return x`
|
|
@@ -43478,7 +44899,15 @@ var TestNestedTarget = class extends DeesElement {
|
|
|
43478
44899
|
`;
|
|
43479
44900
|
}
|
|
43480
44901
|
};
|
|
43481
|
-
|
|
44902
|
+
_init14 = __decoratorStart(_b);
|
|
44903
|
+
_message = new WeakMap();
|
|
44904
|
+
_depth = new WeakMap();
|
|
44905
|
+
_found = new WeakMap();
|
|
44906
|
+
__decorateElement(_init14, 4, "message", _message_dec, TestNestedTarget, _message);
|
|
44907
|
+
__decorateElement(_init14, 4, "depth", _depth_dec, TestNestedTarget, _depth);
|
|
44908
|
+
__decorateElement(_init14, 4, "found", _found_dec, TestNestedTarget, _found);
|
|
44909
|
+
TestNestedTarget = __decorateElement(_init14, 0, "TestNestedTarget", _TestNestedTarget_decorators, TestNestedTarget);
|
|
44910
|
+
__publicField(TestNestedTarget, "styles", [
|
|
43482
44911
|
i`
|
|
43483
44912
|
:host {
|
|
43484
44913
|
display: block;
|
|
@@ -43493,23 +44922,13 @@ TestNestedTarget.styles = [
|
|
|
43493
44922
|
color: #01579b;
|
|
43494
44923
|
}
|
|
43495
44924
|
`
|
|
43496
|
-
];
|
|
43497
|
-
|
|
43498
|
-
|
|
43499
|
-
|
|
43500
|
-
__decorateClass([
|
|
43501
|
-
n5({ type: Number })
|
|
43502
|
-
], TestNestedTarget.prototype, "depth", 2);
|
|
43503
|
-
__decorateClass([
|
|
43504
|
-
n5({ type: Boolean })
|
|
43505
|
-
], TestNestedTarget.prototype, "found", 2);
|
|
43506
|
-
TestNestedTarget = __decorateClass([
|
|
43507
|
-
t4("test-nested-target")
|
|
43508
|
-
], TestNestedTarget);
|
|
43509
|
-
var TestNested = class extends DeesElement {
|
|
44925
|
+
]);
|
|
44926
|
+
__runInitializers(_init14, 1, TestNestedTarget);
|
|
44927
|
+
_TestNested_decorators = [t4("test-nested")];
|
|
44928
|
+
var TestNested = class extends (_c = DeesElement, _testId_dec = [n5({ type: String })], _c) {
|
|
43510
44929
|
constructor() {
|
|
43511
44930
|
super(...arguments);
|
|
43512
|
-
this
|
|
44931
|
+
__privateAdd(this, _testId, __runInitializers(_init15, 8, this, "nested-test")), __runInitializers(_init15, 11, this);
|
|
43513
44932
|
}
|
|
43514
44933
|
render() {
|
|
43515
44934
|
return x`
|
|
@@ -43544,10 +44963,14 @@ var TestNested = class extends DeesElement {
|
|
|
43544
44963
|
`;
|
|
43545
44964
|
}
|
|
43546
44965
|
};
|
|
43547
|
-
|
|
44966
|
+
_init15 = __decoratorStart(_c);
|
|
44967
|
+
_testId = new WeakMap();
|
|
44968
|
+
__decorateElement(_init15, 4, "testId", _testId_dec, TestNested, _testId);
|
|
44969
|
+
TestNested = __decorateElement(_init15, 0, "TestNested", _TestNested_decorators, TestNested);
|
|
44970
|
+
__publicField(TestNested, "demo", () => x`
|
|
43548
44971
|
<test-nested></test-nested>
|
|
43549
|
-
|
|
43550
|
-
TestNested
|
|
44972
|
+
`);
|
|
44973
|
+
__publicField(TestNested, "styles", [
|
|
43551
44974
|
i`
|
|
43552
44975
|
:host {
|
|
43553
44976
|
display: block;
|
|
@@ -43568,13 +44991,8 @@ TestNested.styles = [
|
|
|
43568
44991
|
border-radius: 4px;
|
|
43569
44992
|
}
|
|
43570
44993
|
`
|
|
43571
|
-
];
|
|
43572
|
-
|
|
43573
|
-
n5({ type: String })
|
|
43574
|
-
], TestNested.prototype, "testId", 2);
|
|
43575
|
-
TestNested = __decorateClass([
|
|
43576
|
-
t4("test-nested")
|
|
43577
|
-
], TestNested);
|
|
44994
|
+
]);
|
|
44995
|
+
__runInitializers(_init15, 1, TestNested);
|
|
43578
44996
|
|
|
43579
44997
|
// test/pages/index.ts
|
|
43580
44998
|
var pages_exports = {};
|