@design.estate/dees-wcctools 3.4.0 → 3.5.1

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.
@@ -5607,7 +5607,7 @@ var require_sweet_scroll = __commonJS({
5607
5607
  hash: null
5608
5608
  };
5609
5609
  this.loop = function(time) {
5610
- var _a7 = _this, $el = _a7.$el, ctx = _a7.ctx;
5610
+ var _a8 = _this, $el = _a8.$el, ctx = _a8.ctx;
5611
5611
  if (!ctx.start) {
5612
5612
  ctx.start = time;
5613
5613
  }
@@ -5702,7 +5702,7 @@ var require_sweet_scroll = __commonJS({
5702
5702
  if (!canUseDOM) {
5703
5703
  return;
5704
5704
  }
5705
- var _a7 = this, $el = _a7.$el, ctx = _a7.ctx, currentOptions = _a7.opts;
5705
+ var _a8 = this, $el = _a8.$el, ctx = _a8.ctx, currentOptions = _a8.opts;
5706
5706
  var $trigger = ctx.$trigger;
5707
5707
  var opts = __assign2({}, currentOptions, options || {});
5708
5708
  var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
@@ -5769,7 +5769,7 @@ var require_sweet_scroll = __commonJS({
5769
5769
  if (gotoEnd === void 0) {
5770
5770
  gotoEnd = false;
5771
5771
  }
5772
- var _a7 = this, $el = _a7.$el, ctx = _a7.ctx;
5772
+ var _a8 = this, $el = _a8.$el, ctx = _a8.ctx;
5773
5773
  var pos = ctx.pos;
5774
5774
  if (!$el || !ctx.progress) {
5775
5775
  return;
@@ -5825,7 +5825,7 @@ var require_sweet_scroll = __commonJS({
5825
5825
  ctx.id = SweetScroll4.raf(this.loop);
5826
5826
  };
5827
5827
  SweetScroll4.prototype.complete = function() {
5828
- var _a7 = this, $el = _a7.$el, ctx = _a7.ctx;
5828
+ var _a8 = this, $el = _a8.$el, ctx = _a8.ctx;
5829
5829
  var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
5830
5830
  if (!$el || !opts) {
5831
5831
  return;
@@ -5851,18 +5851,18 @@ var require_sweet_scroll = __commonJS({
5851
5851
  for (var _i = 2; _i < arguments.length; _i++) {
5852
5852
  args[_i - 2] = arguments[_i];
5853
5853
  }
5854
- var _a7;
5854
+ var _a8;
5855
5855
  var callback = options[type5];
5856
5856
  var callbackResult;
5857
5857
  var methodResult;
5858
5858
  if (isFunction2(callback)) {
5859
5859
  callbackResult = callback.apply(this, args.concat([this]));
5860
5860
  }
5861
- methodResult = (_a7 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a7, args);
5861
+ methodResult = (_a8 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a8, args);
5862
5862
  return callbackResult !== void 0 ? callbackResult : methodResult;
5863
5863
  };
5864
5864
  SweetScroll4.prototype.bind = function(click, stop) {
5865
- var _a7 = this, $el = _a7.$el, opts = _a7.ctx.opts;
5865
+ var _a8 = this, $el = _a8.$el, opts = _a8.ctx.opts;
5866
5866
  if ($el) {
5867
5867
  if (click) {
5868
5868
  addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
@@ -5873,7 +5873,7 @@ var require_sweet_scroll = __commonJS({
5873
5873
  }
5874
5874
  };
5875
5875
  SweetScroll4.prototype.unbind = function(click, stop) {
5876
- var _a7 = this, $el = _a7.$el, opts = _a7.ctx.opts;
5876
+ var _a8 = this, $el = _a8.$el, opts = _a8.ctx.opts;
5877
5877
  if ($el) {
5878
5878
  if (click) {
5879
5879
  removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
@@ -7105,7 +7105,7 @@ var Subscription = (function() {
7105
7105
  this._finalizers = null;
7106
7106
  }
7107
7107
  Subscription2.prototype.unsubscribe = function() {
7108
- var e_1, _a7, e_2, _b;
7108
+ var e_1, _a8, e_2, _b;
7109
7109
  var errors;
7110
7110
  if (!this.closed) {
7111
7111
  this.closed = true;
@@ -7122,7 +7122,7 @@ var Subscription = (function() {
7122
7122
  e_1 = { error: e_1_1 };
7123
7123
  } finally {
7124
7124
  try {
7125
- if (_parentage_1_1 && !_parentage_1_1.done && (_a7 = _parentage_1.return)) _a7.call(_parentage_1);
7125
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a8 = _parentage_1.return)) _a8.call(_parentage_1);
7126
7126
  } finally {
7127
7127
  if (e_1) throw e_1.error;
7128
7128
  }
@@ -7172,7 +7172,7 @@ var Subscription = (function() {
7172
7172
  }
7173
7173
  };
7174
7174
  Subscription2.prototype.add = function(teardown) {
7175
- var _a7;
7175
+ var _a8;
7176
7176
  if (teardown && teardown !== this) {
7177
7177
  if (this.closed) {
7178
7178
  execFinalizer(teardown);
@@ -7183,7 +7183,7 @@ var Subscription = (function() {
7183
7183
  }
7184
7184
  teardown._addParent(this);
7185
7185
  }
7186
- (this._finalizers = (_a7 = this._finalizers) !== null && _a7 !== void 0 ? _a7 : []).push(teardown);
7186
+ (this._finalizers = (_a8 = this._finalizers) !== null && _a8 !== void 0 ? _a8 : []).push(teardown);
7187
7187
  }
7188
7188
  }
7189
7189
  };
@@ -7302,7 +7302,7 @@ function errorContext(cb) {
7302
7302
  }
7303
7303
  cb();
7304
7304
  if (isRoot) {
7305
- var _a7 = context, errorThrown = _a7.errorThrown, error = _a7.error;
7305
+ var _a8 = context, errorThrown = _a8.errorThrown, error = _a8.error;
7306
7306
  context = null;
7307
7307
  if (errorThrown) {
7308
7308
  throw error;
@@ -7533,7 +7533,7 @@ var Observable = (function() {
7533
7533
  var _this = this;
7534
7534
  var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
7535
7535
  errorContext(function() {
7536
- var _a7 = _this, operator = _a7.operator, source = _a7.source;
7536
+ var _a8 = _this, operator = _a8.operator, source = _a8.source;
7537
7537
  subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
7538
7538
  });
7539
7539
  return subscriber;
@@ -7565,8 +7565,8 @@ var Observable = (function() {
7565
7565
  });
7566
7566
  };
7567
7567
  Observable2.prototype._subscribe = function(subscriber) {
7568
- var _a7;
7569
- return (_a7 = this.source) === null || _a7 === void 0 ? void 0 : _a7.subscribe(subscriber);
7568
+ var _a8;
7569
+ return (_a8 = this.source) === null || _a8 === void 0 ? void 0 : _a8.subscribe(subscriber);
7570
7570
  };
7571
7571
  Observable2.prototype[observable] = function() {
7572
7572
  return this;
@@ -7598,8 +7598,8 @@ var Observable = (function() {
7598
7598
  return Observable2;
7599
7599
  })();
7600
7600
  function getPromiseCtor(promiseCtor) {
7601
- var _a7;
7602
- return (_a7 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a7 !== void 0 ? _a7 : Promise;
7601
+ var _a8;
7602
+ return (_a8 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a8 !== void 0 ? _a8 : Promise;
7603
7603
  }
7604
7604
  function isObserver(value2) {
7605
7605
  return value2 && isFunction(value2.next) && isFunction(value2.error) && isFunction(value2.complete);
@@ -7665,11 +7665,11 @@ var OperatorSubscriber = (function(_super) {
7665
7665
  return _this;
7666
7666
  }
7667
7667
  OperatorSubscriber2.prototype.unsubscribe = function() {
7668
- var _a7;
7668
+ var _a8;
7669
7669
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
7670
7670
  var closed_1 = this.closed;
7671
7671
  _super.prototype.unsubscribe.call(this);
7672
- !closed_1 && ((_a7 = this.onFinalize) === null || _a7 === void 0 ? void 0 : _a7.call(this));
7672
+ !closed_1 && ((_a8 = this.onFinalize) === null || _a8 === void 0 ? void 0 : _a8.call(this));
7673
7673
  }
7674
7674
  };
7675
7675
  return OperatorSubscriber2;
@@ -7710,7 +7710,7 @@ var Subject = (function(_super) {
7710
7710
  Subject2.prototype.next = function(value2) {
7711
7711
  var _this = this;
7712
7712
  errorContext(function() {
7713
- var e_1, _a7;
7713
+ var e_1, _a8;
7714
7714
  _this._throwIfClosed();
7715
7715
  if (!_this.isStopped) {
7716
7716
  if (!_this.currentObservers) {
@@ -7725,7 +7725,7 @@ var Subject = (function(_super) {
7725
7725
  e_1 = { error: e_1_1 };
7726
7726
  } finally {
7727
7727
  try {
7728
- if (_c && !_c.done && (_a7 = _b.return)) _a7.call(_b);
7728
+ if (_c && !_c.done && (_a8 = _b.return)) _a8.call(_b);
7729
7729
  } finally {
7730
7730
  if (e_1) throw e_1.error;
7731
7731
  }
@@ -7766,8 +7766,8 @@ var Subject = (function(_super) {
7766
7766
  };
7767
7767
  Object.defineProperty(Subject2.prototype, "observed", {
7768
7768
  get: function() {
7769
- var _a7;
7770
- return ((_a7 = this.observers) === null || _a7 === void 0 ? void 0 : _a7.length) > 0;
7769
+ var _a8;
7770
+ return ((_a8 = this.observers) === null || _a8 === void 0 ? void 0 : _a8.length) > 0;
7771
7771
  },
7772
7772
  enumerable: false,
7773
7773
  configurable: true
@@ -7783,7 +7783,7 @@ var Subject = (function(_super) {
7783
7783
  };
7784
7784
  Subject2.prototype._innerSubscribe = function(subscriber) {
7785
7785
  var _this = this;
7786
- var _a7 = this, hasError = _a7.hasError, isStopped = _a7.isStopped, observers = _a7.observers;
7786
+ var _a8 = this, hasError = _a8.hasError, isStopped = _a8.isStopped, observers = _a8.observers;
7787
7787
  if (hasError || isStopped) {
7788
7788
  return EMPTY_SUBSCRIPTION;
7789
7789
  }
@@ -7795,7 +7795,7 @@ var Subject = (function(_super) {
7795
7795
  });
7796
7796
  };
7797
7797
  Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
7798
- var _a7 = this, hasError = _a7.hasError, thrownError = _a7.thrownError, isStopped = _a7.isStopped;
7798
+ var _a8 = this, hasError = _a8.hasError, thrownError = _a8.thrownError, isStopped = _a8.isStopped;
7799
7799
  if (hasError) {
7800
7800
  subscriber.error(thrownError);
7801
7801
  } else if (isStopped) {
@@ -7821,20 +7821,20 @@ var AnonymousSubject = (function(_super) {
7821
7821
  return _this;
7822
7822
  }
7823
7823
  AnonymousSubject2.prototype.next = function(value2) {
7824
- var _a7, _b;
7825
- (_b = (_a7 = this.destination) === null || _a7 === void 0 ? void 0 : _a7.next) === null || _b === void 0 ? void 0 : _b.call(_a7, value2);
7824
+ var _a8, _b;
7825
+ (_b = (_a8 = this.destination) === null || _a8 === void 0 ? void 0 : _a8.next) === null || _b === void 0 ? void 0 : _b.call(_a8, value2);
7826
7826
  };
7827
7827
  AnonymousSubject2.prototype.error = function(err) {
7828
- var _a7, _b;
7829
- (_b = (_a7 = this.destination) === null || _a7 === void 0 ? void 0 : _a7.error) === null || _b === void 0 ? void 0 : _b.call(_a7, err);
7828
+ var _a8, _b;
7829
+ (_b = (_a8 = this.destination) === null || _a8 === void 0 ? void 0 : _a8.error) === null || _b === void 0 ? void 0 : _b.call(_a8, err);
7830
7830
  };
7831
7831
  AnonymousSubject2.prototype.complete = function() {
7832
- var _a7, _b;
7833
- (_b = (_a7 = this.destination) === null || _a7 === void 0 ? void 0 : _a7.complete) === null || _b === void 0 ? void 0 : _b.call(_a7);
7832
+ var _a8, _b;
7833
+ (_b = (_a8 = this.destination) === null || _a8 === void 0 ? void 0 : _a8.complete) === null || _b === void 0 ? void 0 : _b.call(_a8);
7834
7834
  };
7835
7835
  AnonymousSubject2.prototype._subscribe = function(subscriber) {
7836
- var _a7, _b;
7837
- return (_b = (_a7 = this.source) === null || _a7 === void 0 ? void 0 : _a7.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
7836
+ var _a8, _b;
7837
+ return (_b = (_a8 = this.source) === null || _a8 === void 0 ? void 0 : _a8.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
7838
7838
  };
7839
7839
  return AnonymousSubject2;
7840
7840
  })(Subject);
@@ -7872,7 +7872,7 @@ var ReplaySubject = (function(_super) {
7872
7872
  return _this;
7873
7873
  }
7874
7874
  ReplaySubject2.prototype.next = function(value2) {
7875
- var _a7 = this, isStopped = _a7.isStopped, _buffer = _a7._buffer, _infiniteTimeWindow = _a7._infiniteTimeWindow, _timestampProvider = _a7._timestampProvider, _windowTime = _a7._windowTime;
7875
+ var _a8 = this, isStopped = _a8.isStopped, _buffer = _a8._buffer, _infiniteTimeWindow = _a8._infiniteTimeWindow, _timestampProvider = _a8._timestampProvider, _windowTime = _a8._windowTime;
7876
7876
  if (!isStopped) {
7877
7877
  _buffer.push(value2);
7878
7878
  !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
@@ -7884,7 +7884,7 @@ var ReplaySubject = (function(_super) {
7884
7884
  this._throwIfClosed();
7885
7885
  this._trimBuffer();
7886
7886
  var subscription = this._innerSubscribe(subscriber);
7887
- var _a7 = this, _infiniteTimeWindow = _a7._infiniteTimeWindow, _buffer = _a7._buffer;
7887
+ var _a8 = this, _infiniteTimeWindow = _a8._infiniteTimeWindow, _buffer = _a8._buffer;
7888
7888
  var copy = _buffer.slice();
7889
7889
  for (var i9 = 0; i9 < copy.length && !subscriber.closed; i9 += _infiniteTimeWindow ? 1 : 2) {
7890
7890
  subscriber.next(copy[i9]);
@@ -7893,7 +7893,7 @@ var ReplaySubject = (function(_super) {
7893
7893
  return subscription;
7894
7894
  };
7895
7895
  ReplaySubject2.prototype._trimBuffer = function() {
7896
- var _a7 = this, _bufferSize = _a7._bufferSize, _timestampProvider = _a7._timestampProvider, _buffer = _a7._buffer, _infiniteTimeWindow = _a7._infiniteTimeWindow;
7896
+ var _a8 = this, _bufferSize = _a8._bufferSize, _timestampProvider = _a8._timestampProvider, _buffer = _a8._buffer, _infiniteTimeWindow = _a8._infiniteTimeWindow;
7897
7897
  var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
7898
7898
  _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
7899
7899
  if (!_infiniteTimeWindow) {
@@ -7954,7 +7954,7 @@ var AsyncAction = (function(_super) {
7954
7954
  return _this;
7955
7955
  }
7956
7956
  AsyncAction2.prototype.schedule = function(state, delay2) {
7957
- var _a7;
7957
+ var _a8;
7958
7958
  if (delay2 === void 0) {
7959
7959
  delay2 = 0;
7960
7960
  }
@@ -7969,7 +7969,7 @@ var AsyncAction = (function(_super) {
7969
7969
  }
7970
7970
  this.pending = true;
7971
7971
  this.delay = delay2;
7972
- this.id = (_a7 = this.id) !== null && _a7 !== void 0 ? _a7 : this.requestAsyncId(scheduler, this.id, delay2);
7972
+ this.id = (_a8 = this.id) !== null && _a8 !== void 0 ? _a8 : this.requestAsyncId(scheduler, this.id, delay2);
7973
7973
  return this;
7974
7974
  };
7975
7975
  AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
@@ -8018,7 +8018,7 @@ var AsyncAction = (function(_super) {
8018
8018
  };
8019
8019
  AsyncAction2.prototype.unsubscribe = function() {
8020
8020
  if (!this.closed) {
8021
- var _a7 = this, id = _a7.id, scheduler = _a7.scheduler;
8021
+ var _a8 = this, id = _a8.id, scheduler = _a8.scheduler;
8022
8022
  var actions = scheduler.actions;
8023
8023
  this.work = this.state = this.scheduler = null;
8024
8024
  this.pending = false;
@@ -8153,7 +8153,7 @@ function isIterable(input) {
8153
8153
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
8154
8154
  function readableStreamLikeToAsyncGenerator(readableStream) {
8155
8155
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
8156
- var reader, _a7, value2, done;
8156
+ var reader, _a8, value2, done;
8157
8157
  return __generator(this, function(_b) {
8158
8158
  switch (_b.label) {
8159
8159
  case 0:
@@ -8166,7 +8166,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
8166
8166
  if (false) return [3, 8];
8167
8167
  return [4, __await(reader.read())];
8168
8168
  case 3:
8169
- _a7 = _b.sent(), value2 = _a7.value, done = _a7.done;
8169
+ _a8 = _b.sent(), value2 = _a8.value, done = _a8.done;
8170
8170
  if (!done) return [3, 5];
8171
8171
  return [4, __await(void 0)];
8172
8172
  case 4:
@@ -8251,7 +8251,7 @@ function fromPromise(promise) {
8251
8251
  }
8252
8252
  function fromIterable(iterable) {
8253
8253
  return new Observable(function(subscriber) {
8254
- var e_1, _a7;
8254
+ var e_1, _a8;
8255
8255
  try {
8256
8256
  for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
8257
8257
  var value2 = iterable_1_1.value;
@@ -8264,7 +8264,7 @@ function fromIterable(iterable) {
8264
8264
  e_1 = { error: e_1_1 };
8265
8265
  } finally {
8266
8266
  try {
8267
- if (iterable_1_1 && !iterable_1_1.done && (_a7 = iterable_1.return)) _a7.call(iterable_1);
8267
+ if (iterable_1_1 && !iterable_1_1.done && (_a8 = iterable_1.return)) _a8.call(iterable_1);
8268
8268
  } finally {
8269
8269
  if (e_1) throw e_1.error;
8270
8270
  }
@@ -8284,7 +8284,7 @@ function fromReadableStreamLike(readableStream) {
8284
8284
  }
8285
8285
  function process2(asyncIterable, subscriber) {
8286
8286
  var asyncIterable_1, asyncIterable_1_1;
8287
- var e_2, _a7;
8287
+ var e_2, _a8;
8288
8288
  return __awaiter(this, void 0, void 0, function() {
8289
8289
  var value2, e_2_1;
8290
8290
  return __generator(this, function(_b) {
@@ -8313,8 +8313,8 @@ function process2(asyncIterable, subscriber) {
8313
8313
  return [3, 11];
8314
8314
  case 6:
8315
8315
  _b.trys.push([6, , 9, 10]);
8316
- if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a7 = asyncIterable_1.return))) return [3, 8];
8317
- return [4, _a7.call(asyncIterable_1)];
8316
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a8 = asyncIterable_1.return))) return [3, 8];
8317
+ return [4, _a8.call(asyncIterable_1)];
8318
8318
  case 7:
8319
8319
  _b.sent();
8320
8320
  _b.label = 8;
@@ -8423,11 +8423,11 @@ function scheduleIterable(input, scheduler) {
8423
8423
  executeSchedule(subscriber, scheduler, function() {
8424
8424
  iterator2 = input[iterator]();
8425
8425
  executeSchedule(subscriber, scheduler, function() {
8426
- var _a7;
8426
+ var _a8;
8427
8427
  var value2;
8428
8428
  var done;
8429
8429
  try {
8430
- _a7 = iterator2.next(), value2 = _a7.value, done = _a7.done;
8430
+ _a8 = iterator2.next(), value2 = _a8.value, done = _a8.done;
8431
8431
  } catch (err) {
8432
8432
  subscriber.error(err);
8433
8433
  return;
@@ -8650,11 +8650,11 @@ function fromEvent(target, eventName, options, resultSelector) {
8650
8650
  if (resultSelector) {
8651
8651
  return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
8652
8652
  }
8653
- var _a7 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
8653
+ var _a8 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
8654
8654
  return function(handler2) {
8655
8655
  return target[methodName](eventName, handler2, options);
8656
8656
  };
8657
- }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a7[0], remove2 = _a7[1];
8657
+ }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a8[0], remove2 = _a8[1];
8658
8658
  if (!add2) {
8659
8659
  if (isArrayLike(target)) {
8660
8660
  return mergeMap(function(subTarget) {
@@ -8772,7 +8772,7 @@ function bufferCount(bufferSize, startBufferEvery) {
8772
8772
  var buffers = [];
8773
8773
  var count2 = 0;
8774
8774
  source.subscribe(createOperatorSubscriber(subscriber, function(value2) {
8775
- var e_1, _a7, e_2, _b;
8775
+ var e_1, _a8, e_2, _b;
8776
8776
  var toEmit = null;
8777
8777
  if (count2++ % startBufferEvery === 0) {
8778
8778
  buffers.push([]);
@@ -8790,7 +8790,7 @@ function bufferCount(bufferSize, startBufferEvery) {
8790
8790
  e_1 = { error: e_1_1 };
8791
8791
  } finally {
8792
8792
  try {
8793
- if (buffers_1_1 && !buffers_1_1.done && (_a7 = buffers_1.return)) _a7.call(buffers_1);
8793
+ if (buffers_1_1 && !buffers_1_1.done && (_a8 = buffers_1.return)) _a8.call(buffers_1);
8794
8794
  } finally {
8795
8795
  if (e_1) throw e_1.error;
8796
8796
  }
@@ -8813,7 +8813,7 @@ function bufferCount(bufferSize, startBufferEvery) {
8813
8813
  }
8814
8814
  }
8815
8815
  }, function() {
8816
- var e_3, _a7;
8816
+ var e_3, _a8;
8817
8817
  try {
8818
8818
  for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
8819
8819
  var buffer2 = buffers_2_1.value;
@@ -8823,7 +8823,7 @@ function bufferCount(bufferSize, startBufferEvery) {
8823
8823
  e_3 = { error: e_3_1 };
8824
8824
  } finally {
8825
8825
  try {
8826
- if (buffers_2_1 && !buffers_2_1.done && (_a7 = buffers_2.return)) _a7.call(buffers_2);
8826
+ if (buffers_2_1 && !buffers_2_1.done && (_a8 = buffers_2.return)) _a8.call(buffers_2);
8827
8827
  } finally {
8828
8828
  if (e_3) throw e_3.error;
8829
8829
  }
@@ -8837,12 +8837,12 @@ function bufferCount(bufferSize, startBufferEvery) {
8837
8837
 
8838
8838
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
8839
8839
  function bufferTime(bufferTimeSpan) {
8840
- var _a7, _b;
8840
+ var _a8, _b;
8841
8841
  var otherArgs = [];
8842
8842
  for (var _i = 1; _i < arguments.length; _i++) {
8843
8843
  otherArgs[_i - 1] = arguments[_i];
8844
8844
  }
8845
- var scheduler = (_a7 = popScheduler(otherArgs)) !== null && _a7 !== void 0 ? _a7 : asyncScheduler;
8845
+ var scheduler = (_a8 = popScheduler(otherArgs)) !== null && _a8 !== void 0 ? _a8 : asyncScheduler;
8846
8846
  var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
8847
8847
  var maxBufferSize = otherArgs[1] || Infinity;
8848
8848
  return operate(function(source, subscriber) {
@@ -8877,7 +8877,7 @@ function bufferTime(bufferTimeSpan) {
8877
8877
  }
8878
8878
  startBuffer();
8879
8879
  var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) {
8880
- var e_1, _a8;
8880
+ var e_1, _a9;
8881
8881
  var recordsCopy = bufferRecords.slice();
8882
8882
  try {
8883
8883
  for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
@@ -8890,7 +8890,7 @@ function bufferTime(bufferTimeSpan) {
8890
8890
  e_1 = { error: e_1_1 };
8891
8891
  } finally {
8892
8892
  try {
8893
- if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a8 = recordsCopy_1.return)) _a8.call(recordsCopy_1);
8893
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a9 = recordsCopy_1.return)) _a9.call(recordsCopy_1);
8894
8894
  } finally {
8895
8895
  if (e_1) throw e_1.error;
8896
8896
  }
@@ -9009,7 +9009,7 @@ function takeUntil(notifier) {
9009
9009
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
9010
9010
  function throttle(durationSelector, config2) {
9011
9011
  return operate(function(source, subscriber) {
9012
- var _a7 = config2 !== null && config2 !== void 0 ? config2 : {}, _b = _a7.leading, leading = _b === void 0 ? true : _b, _c = _a7.trailing, trailing = _c === void 0 ? false : _c;
9012
+ var _a8 = config2 !== null && config2 !== void 0 ? config2 : {}, _b = _a8.leading, leading = _b === void 0 ? true : _b, _c = _a8.trailing, trailing = _c === void 0 ? false : _c;
9013
9013
  var hasValue = false;
9014
9014
  var sendValue = null;
9015
9015
  var throttled = null;
@@ -41545,14 +41545,16 @@ var hasMultipleDemos = (demo) => {
41545
41545
  };
41546
41546
 
41547
41547
  // ts_web/elements/wcc-frame.ts
41548
- var _isNative_dec, _advancedEditorOpen_dec, _viewport_dec, _a, _WccFrame_decorators, _init, _viewport, _advancedEditorOpen, _isNative;
41548
+ var _isResizing_dec, _sidebarWidth_dec, _isNative_dec, _advancedEditorOpen_dec, _viewport_dec, _a, _WccFrame_decorators, _init, _viewport, _advancedEditorOpen, _isNative, _sidebarWidth, _isResizing;
41549
41549
  _WccFrame_decorators = [t4("wcc-frame")];
41550
- var WccFrame = class extends (_a = DeesElement, _viewport_dec = [n5()], _advancedEditorOpen_dec = [n5({ type: Boolean })], _isNative_dec = [n5({ type: Boolean })], _a) {
41550
+ var WccFrame = class extends (_a = DeesElement, _viewport_dec = [n5()], _advancedEditorOpen_dec = [n5({ type: Boolean })], _isNative_dec = [n5({ type: Boolean })], _sidebarWidth_dec = [n5({ type: Number })], _isResizing_dec = [n5({ type: Boolean })], _a) {
41551
41551
  constructor() {
41552
41552
  super(...arguments);
41553
41553
  __privateAdd(this, _viewport, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
41554
41554
  __privateAdd(this, _advancedEditorOpen, __runInitializers(_init, 12, this, false)), __runInitializers(_init, 15, this);
41555
41555
  __privateAdd(this, _isNative, __runInitializers(_init, 16, this, false)), __runInitializers(_init, 19, this);
41556
+ __privateAdd(this, _sidebarWidth, __runInitializers(_init, 20, this, 200)), __runInitializers(_init, 23, this);
41557
+ __privateAdd(this, _isResizing, __runInitializers(_init, 24, this, false)), __runInitializers(_init, 27, this);
41556
41558
  }
41557
41559
  render() {
41558
41560
  return x`
@@ -41567,9 +41569,9 @@ var WccFrame = class extends (_a = DeesElement, _viewport_dec = [n5()], _advance
41567
41569
  ` : `
41568
41570
  bottom: ${this.advancedEditorOpen ? "400px" : "100px"};
41569
41571
  border: 10px solid #ffaeaf;
41570
- left: 200px;
41572
+ left: ${this.sidebarWidth}px;
41571
41573
  `}
41572
- transition: all 0.3s ease;
41574
+ transition: ${this.isResizing ? "none" : "all 0.3s ease"};
41573
41575
  ${this.isNative ? "padding: 0px;" : (() => {
41574
41576
  switch (this.viewport) {
41575
41577
  case "desktop":
@@ -41578,15 +41580,15 @@ var WccFrame = class extends (_a = DeesElement, _viewport_dec = [n5()], _advance
41578
41580
  `;
41579
41581
  case "tablet":
41580
41582
  return `
41581
- padding: 0px ${(document.body.clientWidth - 200 - domtools_css_breakpoints_exports.tablet) / 2}px;
41583
+ padding: 0px ${(document.body.clientWidth - this.sidebarWidth - domtools_css_breakpoints_exports.tablet) / 2}px;
41582
41584
  `;
41583
41585
  case "phablet":
41584
41586
  return `
41585
- padding: 0px ${(document.body.clientWidth - 200 - domtools_css_breakpoints_exports.phablet) / 2}px;
41587
+ padding: 0px ${(document.body.clientWidth - this.sidebarWidth - domtools_css_breakpoints_exports.phablet) / 2}px;
41586
41588
  `;
41587
41589
  case "phone":
41588
41590
  return `
41589
- padding: 0px ${(document.body.clientWidth - 200 - domtools_css_breakpoints_exports.phone) / 2}px;
41591
+ padding: 0px ${(document.body.clientWidth - this.sidebarWidth - domtools_css_breakpoints_exports.phone) / 2}px;
41590
41592
  `;
41591
41593
  }
41592
41594
  })()}
@@ -41634,9 +41636,13 @@ _init = __decoratorStart(_a);
41634
41636
  _viewport = new WeakMap();
41635
41637
  _advancedEditorOpen = new WeakMap();
41636
41638
  _isNative = new WeakMap();
41639
+ _sidebarWidth = new WeakMap();
41640
+ _isResizing = new WeakMap();
41637
41641
  __decorateElement(_init, 4, "viewport", _viewport_dec, WccFrame, _viewport);
41638
41642
  __decorateElement(_init, 4, "advancedEditorOpen", _advancedEditorOpen_dec, WccFrame, _advancedEditorOpen);
41639
41643
  __decorateElement(_init, 4, "isNative", _isNative_dec, WccFrame, _isNative);
41644
+ __decorateElement(_init, 4, "sidebarWidth", _sidebarWidth_dec, WccFrame, _sidebarWidth);
41645
+ __decorateElement(_init, 4, "isResizing", _isResizing_dec, WccFrame, _isResizing);
41640
41646
  WccFrame = __decorateElement(_init, 0, "WccFrame", _WccFrame_decorators, WccFrame);
41641
41647
  __publicField(WccFrame, "styles", [
41642
41648
  i`
@@ -41644,7 +41650,6 @@ __publicField(WccFrame, "styles", [
41644
41650
  border: 10px solid #ffaeaf;
41645
41651
  position: absolute;
41646
41652
  background: ${cssManager.bdTheme("#333", "#000")};
41647
- left: 200px;
41648
41653
  right: 0px;
41649
41654
  top: 0px;
41650
41655
  overflow-y: auto;
@@ -41662,20 +41667,240 @@ __publicField(WccFrame, "styles", [
41662
41667
  ]);
41663
41668
  __runInitializers(_init, 1, WccFrame);
41664
41669
 
41670
+ // ts_web/elements/wcc-contextmenu.ts
41671
+ var _visible_dec, _y_dec, _x_dec, _menuItems_dec, _a2, _WccContextmenu_decorators, _init2, _menuItems, _x, _y, _visible;
41672
+ _WccContextmenu_decorators = [t4("wcc-contextmenu")];
41673
+ var _WccContextmenu = class _WccContextmenu extends (_a2 = DeesElement, _menuItems_dec = [n5({ type: Array })], _x_dec = [n5({ type: Number })], _y_dec = [n5({ type: Number })], _visible_dec = [r5()], _a2) {
41674
+ constructor() {
41675
+ super(...arguments);
41676
+ __privateAdd(this, _menuItems, __runInitializers(_init2, 8, this, [])), __runInitializers(_init2, 11, this);
41677
+ __privateAdd(this, _x, __runInitializers(_init2, 12, this, 0)), __runInitializers(_init2, 15, this);
41678
+ __privateAdd(this, _y, __runInitializers(_init2, 16, this, 0)), __runInitializers(_init2, 19, this);
41679
+ __privateAdd(this, _visible, __runInitializers(_init2, 20, this, false)), __runInitializers(_init2, 23, this);
41680
+ __publicField(this, "boundHandleOutsideClick", this.handleOutsideClick.bind(this));
41681
+ __publicField(this, "boundHandleKeydown", this.handleKeydown.bind(this));
41682
+ }
41683
+ // Static method to show context menu at position
41684
+ static async show(event, menuItems) {
41685
+ event.preventDefault();
41686
+ event.stopPropagation();
41687
+ const existing = document.querySelector("wcc-contextmenu");
41688
+ if (existing) {
41689
+ existing.remove();
41690
+ }
41691
+ const menu = new _WccContextmenu();
41692
+ menu.menuItems = menuItems;
41693
+ menu.x = event.clientX;
41694
+ menu.y = event.clientY;
41695
+ document.body.appendChild(menu);
41696
+ await menu.updateComplete;
41697
+ menu.adjustPosition();
41698
+ }
41699
+ render() {
41700
+ return x`
41701
+ <div class="menu">
41702
+ ${this.menuItems.map((item) => x`
41703
+ <div
41704
+ class="menu-item ${item.disabled ? "disabled" : ""}"
41705
+ @click=${() => this.handleItemClick(item)}
41706
+ >
41707
+ ${item.iconName ? x`<span class="icon">${item.iconName}</span>` : null}
41708
+ <span class="label">${item.name}</span>
41709
+ </div>
41710
+ `)}
41711
+ </div>
41712
+ `;
41713
+ }
41714
+ async connectedCallback() {
41715
+ await super.connectedCallback();
41716
+ requestAnimationFrame(() => {
41717
+ document.addEventListener("click", this.boundHandleOutsideClick);
41718
+ document.addEventListener("contextmenu", this.boundHandleOutsideClick);
41719
+ document.addEventListener("keydown", this.boundHandleKeydown);
41720
+ this.classList.add("visible");
41721
+ });
41722
+ }
41723
+ async disconnectedCallback() {
41724
+ await super.disconnectedCallback();
41725
+ document.removeEventListener("click", this.boundHandleOutsideClick);
41726
+ document.removeEventListener("contextmenu", this.boundHandleOutsideClick);
41727
+ document.removeEventListener("keydown", this.boundHandleKeydown);
41728
+ }
41729
+ adjustPosition() {
41730
+ const rect = this.getBoundingClientRect();
41731
+ const windowWidth = window.innerWidth;
41732
+ const windowHeight = window.innerHeight;
41733
+ let x2 = this.x;
41734
+ let y4 = this.y;
41735
+ if (x2 + rect.width > windowWidth - 10) {
41736
+ x2 = windowWidth - rect.width - 10;
41737
+ }
41738
+ if (y4 + rect.height > windowHeight - 10) {
41739
+ y4 = windowHeight - rect.height - 10;
41740
+ }
41741
+ if (x2 < 10) x2 = 10;
41742
+ if (y4 < 10) y4 = 10;
41743
+ this.style.left = `${x2}px`;
41744
+ this.style.top = `${y4}px`;
41745
+ }
41746
+ handleOutsideClick(e10) {
41747
+ const path2 = e10.composedPath();
41748
+ if (!path2.includes(this)) {
41749
+ this.close();
41750
+ }
41751
+ }
41752
+ handleKeydown(e10) {
41753
+ if (e10.key === "Escape") {
41754
+ this.close();
41755
+ }
41756
+ }
41757
+ async handleItemClick(item) {
41758
+ if (item.disabled) return;
41759
+ await item.action();
41760
+ this.close();
41761
+ }
41762
+ close() {
41763
+ this.classList.remove("visible");
41764
+ setTimeout(() => this.remove(), 150);
41765
+ }
41766
+ };
41767
+ _init2 = __decoratorStart(_a2);
41768
+ _menuItems = new WeakMap();
41769
+ _x = new WeakMap();
41770
+ _y = new WeakMap();
41771
+ _visible = new WeakMap();
41772
+ __decorateElement(_init2, 4, "menuItems", _menuItems_dec, _WccContextmenu, _menuItems);
41773
+ __decorateElement(_init2, 4, "x", _x_dec, _WccContextmenu, _x);
41774
+ __decorateElement(_init2, 4, "y", _y_dec, _WccContextmenu, _y);
41775
+ __decorateElement(_init2, 4, "visible", _visible_dec, _WccContextmenu, _visible);
41776
+ _WccContextmenu = __decorateElement(_init2, 0, "WccContextmenu", _WccContextmenu_decorators, _WccContextmenu);
41777
+ __publicField(_WccContextmenu, "styles", [
41778
+ i`
41779
+ :host {
41780
+ position: fixed;
41781
+ z-index: 10000;
41782
+ opacity: 0;
41783
+ transform: scale(0.95) translateY(-5px);
41784
+ transition: opacity 0.15s ease, transform 0.15s ease;
41785
+ pointer-events: none;
41786
+ }
41787
+
41788
+ :host(.visible) {
41789
+ opacity: 1;
41790
+ transform: scale(1) translateY(0);
41791
+ pointer-events: auto;
41792
+ }
41793
+
41794
+ .menu {
41795
+ min-width: 160px;
41796
+ background: #0f0f0f;
41797
+ border: 1px solid rgba(255, 255, 255, 0.1);
41798
+ border-radius: 6px;
41799
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
41800
+ padding: 4px 0;
41801
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
41802
+ font-size: 12px;
41803
+ }
41804
+
41805
+ .menu-item {
41806
+ display: flex;
41807
+ align-items: center;
41808
+ gap: 8px;
41809
+ padding: 8px 12px;
41810
+ color: #ccc;
41811
+ cursor: pointer;
41812
+ transition: background 0.1s ease;
41813
+ user-select: none;
41814
+ }
41815
+
41816
+ .menu-item:hover {
41817
+ background: rgba(59, 130, 246, 0.15);
41818
+ color: #fff;
41819
+ }
41820
+
41821
+ .menu-item.disabled {
41822
+ opacity: 0.4;
41823
+ cursor: not-allowed;
41824
+ pointer-events: none;
41825
+ }
41826
+
41827
+ .menu-item .icon {
41828
+ font-family: 'Material Symbols Outlined';
41829
+ font-size: 16px;
41830
+ font-weight: normal;
41831
+ font-style: normal;
41832
+ line-height: 1;
41833
+ letter-spacing: normal;
41834
+ text-transform: none;
41835
+ white-space: nowrap;
41836
+ word-wrap: normal;
41837
+ direction: ltr;
41838
+ font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
41839
+ opacity: 0.7;
41840
+ }
41841
+
41842
+ .menu-item:hover .icon {
41843
+ opacity: 1;
41844
+ }
41845
+
41846
+ .menu-item .label {
41847
+ flex: 1;
41848
+ }
41849
+ `
41850
+ ]);
41851
+ __runInitializers(_init2, 1, _WccContextmenu);
41852
+ var WccContextmenu = _WccContextmenu;
41853
+
41665
41854
  // ts_web/elements/wcc-sidebar.ts
41666
- var _searchQuery_dec, _collapsedSections_dec, _expandedElements_dec, _isNative_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a2, _WccSidebar_decorators, _init2, _selectedItem, _selectedType, _dashboardRef, _isNative2, _expandedElements, _collapsedSections, _searchQuery;
41855
+ var _isResizing_dec2, _sidebarWidth_dec2, _pinnedItems_dec, _searchQuery_dec, _collapsedSections_dec, _expandedElements_dec, _isNative_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a3, _WccSidebar_decorators, _init3, _selectedItem, _selectedType, _dashboardRef, _isNative2, _expandedElements, _collapsedSections, _searchQuery, _pinnedItems, _sidebarWidth2, _isResizing2;
41667
41856
  _WccSidebar_decorators = [t4("wcc-sidebar")];
41668
- var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ attribute: false })], _selectedType_dec = [n5({ attribute: false })], _dashboardRef_dec = [n5()], _isNative_dec2 = [n5()], _expandedElements_dec = [r5()], _collapsedSections_dec = [r5()], _searchQuery_dec = [n5()], _a2) {
41857
+ var WccSidebar = class extends (_a3 = DeesElement, _selectedItem_dec = [n5({ attribute: false })], _selectedType_dec = [n5({ attribute: false })], _dashboardRef_dec = [n5()], _isNative_dec2 = [n5()], _expandedElements_dec = [r5()], _collapsedSections_dec = [r5()], _searchQuery_dec = [n5()], _pinnedItems_dec = [n5({ attribute: false })], _sidebarWidth_dec2 = [n5({ type: Number })], _isResizing_dec2 = [r5()], _a3) {
41669
41858
  constructor() {
41670
41859
  super(...arguments);
41671
- __privateAdd(this, _selectedItem, __runInitializers(_init2, 8, this)), __runInitializers(_init2, 11, this);
41672
- __privateAdd(this, _selectedType, __runInitializers(_init2, 12, this)), __runInitializers(_init2, 15, this);
41673
- __privateAdd(this, _dashboardRef, __runInitializers(_init2, 16, this)), __runInitializers(_init2, 19, this);
41674
- __privateAdd(this, _isNative2, __runInitializers(_init2, 20, this, false)), __runInitializers(_init2, 23, this);
41675
- __privateAdd(this, _expandedElements, __runInitializers(_init2, 24, this, /* @__PURE__ */ new Set())), __runInitializers(_init2, 27, this);
41676
- __privateAdd(this, _collapsedSections, __runInitializers(_init2, 28, this, /* @__PURE__ */ new Set())), __runInitializers(_init2, 31, this);
41677
- __privateAdd(this, _searchQuery, __runInitializers(_init2, 32, this, "")), __runInitializers(_init2, 35, this);
41860
+ __privateAdd(this, _selectedItem, __runInitializers(_init3, 8, this)), __runInitializers(_init3, 11, this);
41861
+ __privateAdd(this, _selectedType, __runInitializers(_init3, 12, this)), __runInitializers(_init3, 15, this);
41862
+ __privateAdd(this, _dashboardRef, __runInitializers(_init3, 16, this)), __runInitializers(_init3, 19, this);
41863
+ __privateAdd(this, _isNative2, __runInitializers(_init3, 20, this, false)), __runInitializers(_init3, 23, this);
41864
+ __privateAdd(this, _expandedElements, __runInitializers(_init3, 24, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 27, this);
41865
+ __privateAdd(this, _collapsedSections, __runInitializers(_init3, 28, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 31, this);
41866
+ __privateAdd(this, _searchQuery, __runInitializers(_init3, 32, this, "")), __runInitializers(_init3, 35, this);
41867
+ __privateAdd(this, _pinnedItems, __runInitializers(_init3, 36, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 39, this);
41868
+ __privateAdd(this, _sidebarWidth2, __runInitializers(_init3, 40, this, 200)), __runInitializers(_init3, 43, this);
41869
+ __privateAdd(this, _isResizing2, __runInitializers(_init3, 44, this, false)), __runInitializers(_init3, 47, this);
41678
41870
  __publicField(this, "sectionsInitialized", false);
41871
+ // ============ Resize functionality ============
41872
+ __publicField(this, "startResize", (e10) => {
41873
+ e10.preventDefault();
41874
+ this.isResizing = true;
41875
+ const startX = e10.clientX;
41876
+ const startWidth = this.sidebarWidth;
41877
+ const frame = this.dashboardRef?.shadowRoot?.querySelector("wcc-frame");
41878
+ const properties2 = this.dashboardRef?.shadowRoot?.querySelector("wcc-properties");
41879
+ if (frame) {
41880
+ frame.isResizing = true;
41881
+ }
41882
+ const onMouseMove = (e11) => {
41883
+ const newWidth = Math.min(400, Math.max(150, startWidth + (e11.clientX - startX)));
41884
+ this.sidebarWidth = newWidth;
41885
+ if (frame) {
41886
+ frame.sidebarWidth = newWidth;
41887
+ }
41888
+ if (properties2) {
41889
+ properties2.sidebarWidth = newWidth;
41890
+ }
41891
+ };
41892
+ const onMouseUp = () => {
41893
+ this.isResizing = false;
41894
+ document.removeEventListener("mousemove", onMouseMove);
41895
+ document.removeEventListener("mouseup", onMouseUp);
41896
+ if (frame) {
41897
+ frame.isResizing = false;
41898
+ }
41899
+ this.dispatchEvent(new CustomEvent("widthChanged", { detail: this.sidebarWidth }));
41900
+ };
41901
+ document.addEventListener("mousemove", onMouseMove);
41902
+ document.addEventListener("mouseup", onMouseUp);
41903
+ });
41679
41904
  }
41680
41905
  render() {
41681
41906
  return x`
@@ -41705,7 +41930,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41705
41930
  box-sizing: border-box;
41706
41931
  position: absolute;
41707
41932
  left: 0px;
41708
- width: 200px;
41933
+ width: ${this.sidebarWidth}px;
41709
41934
  top: 0px;
41710
41935
  bottom: 0px;
41711
41936
  overflow-y: auto;
@@ -41803,7 +42028,11 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41803
42028
  }
41804
42029
 
41805
42030
  .selectOption.folder {
41806
- grid-template-columns: 16px 20px 1fr;
42031
+ grid-template-columns: 16px 1fr;
42032
+ }
42033
+
42034
+ .selectOption.folder .text {
42035
+ margin-left: 4px;
41807
42036
  }
41808
42037
 
41809
42038
  .selectOption .expand-icon {
@@ -41932,6 +42161,90 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41932
42161
  background: rgba(59, 130, 246, 0.3);
41933
42162
  border-radius: 2px;
41934
42163
  }
42164
+
42165
+ /* Pinned item highlight in original section */
42166
+ .selectOption.pinned {
42167
+ background: rgba(245, 158, 11, 0.08);
42168
+ }
42169
+
42170
+ .selectOption.pinned:hover {
42171
+ background: rgba(245, 158, 11, 0.12);
42172
+ }
42173
+
42174
+ .selectOption.pinned.selected {
42175
+ background: rgba(245, 158, 11, 0.18);
42176
+ }
42177
+
42178
+ /* Pinned section styling */
42179
+ .section-header.pinned-section {
42180
+ background: rgba(245, 158, 11, 0.08);
42181
+ color: #f59e0b;
42182
+ }
42183
+
42184
+ .section-header.pinned-section:hover {
42185
+ background: rgba(245, 158, 11, 0.12);
42186
+ }
42187
+
42188
+ .section-header.pinned-section .section-icon {
42189
+ opacity: 0.8;
42190
+ }
42191
+
42192
+ /* Section tag pill for pinned items */
42193
+ .section-tag {
42194
+ font-size: 0.5rem;
42195
+ color: #888;
42196
+ margin-left: auto;
42197
+ text-transform: uppercase;
42198
+ letter-spacing: 0.02em;
42199
+ background: rgba(255, 255, 255, 0.06);
42200
+ padding: 0.15rem 0.4rem;
42201
+ border-radius: 9999px;
42202
+ white-space: nowrap;
42203
+ }
42204
+
42205
+ /* Group container */
42206
+ .item-group {
42207
+ margin: 0.375rem 0.375rem;
42208
+ border: 1px solid rgba(255, 255, 255, 0.08);
42209
+ border-radius: 6px;
42210
+ padding: 0.25rem 0;
42211
+ background: rgba(255, 255, 255, 0.01);
42212
+ }
42213
+
42214
+ .item-group-legend {
42215
+ font-size: 0.55rem;
42216
+ text-transform: uppercase;
42217
+ letter-spacing: 0.05em;
42218
+ color: #555;
42219
+ padding: 0.125rem 0.625rem 0.25rem;
42220
+ display: block;
42221
+ }
42222
+
42223
+ .item-group .selectOption {
42224
+ margin-left: 0.25rem;
42225
+ margin-right: 0.25rem;
42226
+ }
42227
+
42228
+ /* Resize handle */
42229
+ .resize-handle {
42230
+ position: absolute;
42231
+ top: 0;
42232
+ right: 0;
42233
+ bottom: 0;
42234
+ width: 4px;
42235
+ cursor: col-resize;
42236
+ background: transparent;
42237
+ transition: background 0.15s ease;
42238
+ z-index: 10;
42239
+ }
42240
+
42241
+ .resize-handle:hover {
42242
+ background: rgba(59, 130, 246, 0.3);
42243
+ }
42244
+
42245
+ .resize-handle.active {
42246
+ background: var(--primary);
42247
+ }
41935
42248
  </style>
41936
42249
  <div class="search-container">
41937
42250
  <input
@@ -41943,15 +42256,20 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41943
42256
  />
41944
42257
  </div>
41945
42258
  <div class="menu">
42259
+ ${this.renderPinnedSection()}
41946
42260
  ${this.renderSections()}
41947
42261
  </div>
42262
+ <div
42263
+ class="resize-handle ${this.isResizing ? "active" : ""}"
42264
+ @mousedown=${this.startResize}
42265
+ ></div>
41948
42266
  `;
41949
42267
  }
41950
42268
  /**
41951
42269
  * Initialize collapsed sections from section config
41952
42270
  */
41953
42271
  initCollapsedSections() {
41954
- if (this.sectionsInitialized) return;
42272
+ if (this.sectionsInitialized || !this.dashboardRef?.sections) return;
41955
42273
  const collapsed = /* @__PURE__ */ new Set();
41956
42274
  for (const section of this.dashboardRef.sections) {
41957
42275
  if (section.collapsed) {
@@ -41961,12 +42279,98 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41961
42279
  this.collapsedSections = collapsed;
41962
42280
  this.sectionsInitialized = true;
41963
42281
  }
42282
+ // ============ Pinning helpers ============
42283
+ getPinKey(sectionName, itemName) {
42284
+ return `${sectionName}::${itemName}`;
42285
+ }
42286
+ isPinned(sectionName, itemName) {
42287
+ return this.pinnedItems.has(this.getPinKey(sectionName, itemName));
42288
+ }
42289
+ togglePin(sectionName, itemName) {
42290
+ const key2 = this.getPinKey(sectionName, itemName);
42291
+ const newPinned = new Set(this.pinnedItems);
42292
+ if (newPinned.has(key2)) {
42293
+ newPinned.delete(key2);
42294
+ } else {
42295
+ newPinned.add(key2);
42296
+ }
42297
+ this.pinnedItems = newPinned;
42298
+ this.dispatchEvent(new CustomEvent("pinnedChanged", { detail: newPinned }));
42299
+ }
42300
+ showContextMenu(e10, sectionName, itemName) {
42301
+ const isPinned = this.isPinned(sectionName, itemName);
42302
+ WccContextmenu.show(e10, [
42303
+ {
42304
+ name: isPinned ? "Unpin" : "Pin",
42305
+ iconName: isPinned ? "push_pin" : "push_pin",
42306
+ action: () => this.togglePin(sectionName, itemName)
42307
+ }
42308
+ ]);
42309
+ }
42310
+ /**
42311
+ * Render the PINNED section (only if there are pinned items)
42312
+ */
42313
+ renderPinnedSection() {
42314
+ if (!this.dashboardRef?.sections || this.pinnedItems.size === 0) {
42315
+ return null;
42316
+ }
42317
+ const isCollapsed = this.collapsedSections.has("__pinned__");
42318
+ const pinnedEntries = [];
42319
+ for (const key2 of this.pinnedItems) {
42320
+ const [sectionName, itemName] = key2.split("::");
42321
+ const section = this.dashboardRef.sections.find((s8) => s8.name === sectionName);
42322
+ if (section) {
42323
+ const entries = getSectionItems(section);
42324
+ const found = entries.find(([name]) => name === itemName);
42325
+ if (found) {
42326
+ pinnedEntries.push({ sectionName, itemName, item: found[1], section });
42327
+ }
42328
+ }
42329
+ }
42330
+ if (pinnedEntries.length === 0) {
42331
+ return null;
42332
+ }
42333
+ return x`
42334
+ <div
42335
+ class="section-header pinned-section ${isCollapsed ? "collapsed" : ""}"
42336
+ @click=${() => this.toggleSectionCollapsed("__pinned__")}
42337
+ >
42338
+ <i class="material-symbols-outlined expand-icon">expand_more</i>
42339
+ <i class="material-symbols-outlined section-icon">push_pin</i>
42340
+ <span>Pinned</span>
42341
+ </div>
42342
+ <div class="section-content ${isCollapsed ? "collapsed" : ""}">
42343
+ ${pinnedEntries.map(({ sectionName, itemName, item, section }) => {
42344
+ const isSelected = this.selectedItem === item;
42345
+ const type5 = section.type === "elements" ? "element" : "page";
42346
+ const icon = section.type === "elements" ? "featured_video" : "insert_drive_file";
42347
+ return x`
42348
+ <div
42349
+ class="selectOption ${isSelected ? "selected" : ""}"
42350
+ @click=${async () => {
42351
+ await dist_ts_exports25.DomTools.setupDomTools();
42352
+ this.selectItem(type5, itemName, item, 0, section);
42353
+ }}
42354
+ @contextmenu=${(e10) => this.showContextMenu(e10, sectionName, itemName)}
42355
+ >
42356
+ <i class="material-symbols-outlined">${icon}</i>
42357
+ <div class="text">${this.highlightMatch(itemName)}</div>
42358
+ <span class="section-tag">${sectionName}</span>
42359
+ </div>
42360
+ `;
42361
+ })}
42362
+ </div>
42363
+ `;
42364
+ }
41964
42365
  /**
41965
42366
  * Render all sections
41966
42367
  */
41967
42368
  renderSections() {
42369
+ if (!this.dashboardRef?.sections) {
42370
+ return null;
42371
+ }
41968
42372
  this.initCollapsedSections();
41969
- return this.dashboardRef.sections.map((section, index2) => {
42373
+ return this.dashboardRef.sections.map((section) => {
41970
42374
  const entries = getSectionItems(section);
41971
42375
  const filteredEntries = entries.filter(([name]) => this.matchesSearch(name));
41972
42376
  if (filteredEntries.length === 0 && this.searchQuery) {
@@ -41997,13 +42401,15 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41997
42401
  const filteredEntries = entries.filter(([name]) => this.matchesSearch(name));
41998
42402
  if (section.type === "pages") {
41999
42403
  return filteredEntries.map(([pageName, item]) => {
42404
+ const isPinned = this.isPinned(section.name, pageName);
42000
42405
  return x`
42001
42406
  <div
42002
- class="selectOption ${this.selectedItem === item ? "selected" : ""}"
42407
+ class="selectOption ${this.selectedItem === item ? "selected" : ""} ${isPinned ? "pinned" : ""}"
42003
42408
  @click=${async () => {
42004
42409
  await dist_ts_exports25.DomTools.setupDomTools();
42005
42410
  this.selectItem("page", pageName, item, 0, section);
42006
42411
  }}
42412
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, pageName)}
42007
42413
  >
42008
42414
  <i class="material-symbols-outlined">insert_drive_file</i>
42009
42415
  <div class="text">${this.highlightMatch(pageName)}</div>
@@ -42011,58 +42417,88 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
42011
42417
  `;
42012
42418
  });
42013
42419
  } else {
42014
- return filteredEntries.map(([elementName, item]) => {
42015
- const anonItem = item;
42016
- const demoCount = anonItem.demo ? getDemoCount(anonItem.demo) : 0;
42017
- const isMultiDemo = anonItem.demo && hasMultipleDemos(anonItem.demo);
42018
- const isExpanded = this.expandedElements.has(elementName);
42019
- const isSelected = this.selectedItem === item;
42020
- if (isMultiDemo) {
42021
- return x`
42022
- <div
42023
- class="selectOption folder ${isExpanded ? "expanded" : ""} ${isSelected ? "selected" : ""}"
42024
- @click=${() => this.toggleExpanded(elementName)}
42025
- >
42026
- <i class="material-symbols-outlined expand-icon">chevron_right</i>
42027
- <i class="material-symbols-outlined">folder</i>
42028
- <div class="text">${this.highlightMatch(elementName)}</div>
42029
- </div>
42030
- ${isExpanded ? x`
42031
- <div class="demo-children">
42032
- ${Array.from({ length: demoCount }, (_3, i9) => {
42033
- const demoIndex = i9;
42034
- const isThisDemoSelected = isSelected && this.dashboardRef.selectedDemoIndex === demoIndex;
42035
- return x`
42036
- <div
42037
- class="demo-child ${isThisDemoSelected ? "selected" : ""}"
42038
- @click=${async () => {
42039
- await dist_ts_exports25.DomTools.setupDomTools();
42040
- this.selectItem("element", elementName, item, demoIndex, section);
42041
- }}
42042
- >
42043
- <i class="material-symbols-outlined">play_circle</i>
42044
- <div class="text">demo${demoIndex + 1}</div>
42045
- </div>
42046
- `;
42047
- })}
42048
- </div>
42049
- ` : null}
42050
- `;
42051
- } else {
42052
- return x`
42053
- <div
42054
- class="selectOption ${isSelected ? "selected" : ""}"
42055
- @click=${async () => {
42056
- await dist_ts_exports25.DomTools.setupDomTools();
42057
- this.selectItem("element", elementName, item, 0, section);
42058
- }}
42059
- >
42060
- <i class="material-symbols-outlined">featured_video</i>
42061
- <div class="text">${this.highlightMatch(elementName)}</div>
42062
- </div>
42063
- `;
42064
- }
42065
- });
42420
+ const groupedItems = /* @__PURE__ */ new Map();
42421
+ for (const entry of filteredEntries) {
42422
+ const [, item] = entry;
42423
+ const group = item.demoGroup || null;
42424
+ if (!groupedItems.has(group)) {
42425
+ groupedItems.set(group, []);
42426
+ }
42427
+ groupedItems.get(group).push(entry);
42428
+ }
42429
+ const result = [];
42430
+ const ungrouped = groupedItems.get(null) || [];
42431
+ for (const entry of ungrouped) {
42432
+ result.push(this.renderElementItem(entry, section));
42433
+ }
42434
+ for (const [groupName, items] of groupedItems) {
42435
+ if (groupName === null) continue;
42436
+ result.push(x`
42437
+ <div class="item-group">
42438
+ <span class="item-group-legend">${groupName}</span>
42439
+ ${items.map((entry) => this.renderElementItem(entry, section))}
42440
+ </div>
42441
+ `);
42442
+ }
42443
+ return result;
42444
+ }
42445
+ }
42446
+ /**
42447
+ * Render a single element item (used by renderSectionItems)
42448
+ */
42449
+ renderElementItem(entry, section) {
42450
+ const [elementName, item] = entry;
42451
+ const anonItem = item;
42452
+ const demoCount = anonItem.demo ? getDemoCount(anonItem.demo) : 0;
42453
+ const isMultiDemo = anonItem.demo && hasMultipleDemos(anonItem.demo);
42454
+ const isExpanded = this.expandedElements.has(elementName);
42455
+ const isSelected = this.selectedItem === item;
42456
+ const isPinned = this.isPinned(section.name, elementName);
42457
+ if (isMultiDemo) {
42458
+ return x`
42459
+ <div
42460
+ class="selectOption folder ${isExpanded ? "expanded" : ""} ${isSelected ? "selected" : ""} ${isPinned ? "pinned" : ""}"
42461
+ @click=${() => this.toggleExpanded(elementName)}
42462
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, elementName)}
42463
+ >
42464
+ <i class="material-symbols-outlined expand-icon">chevron_right</i>
42465
+ <div class="text">${this.highlightMatch(elementName)}</div>
42466
+ </div>
42467
+ ${isExpanded ? x`
42468
+ <div class="demo-children">
42469
+ ${Array.from({ length: demoCount }, (_3, i9) => {
42470
+ const demoIndex = i9;
42471
+ const isThisDemoSelected = isSelected && this.dashboardRef.selectedDemoIndex === demoIndex;
42472
+ return x`
42473
+ <div
42474
+ class="demo-child ${isThisDemoSelected ? "selected" : ""}"
42475
+ @click=${async () => {
42476
+ await dist_ts_exports25.DomTools.setupDomTools();
42477
+ this.selectItem("element", elementName, item, demoIndex, section);
42478
+ }}
42479
+ >
42480
+ <i class="material-symbols-outlined">play_circle</i>
42481
+ <div class="text">demo${demoIndex + 1}</div>
42482
+ </div>
42483
+ `;
42484
+ })}
42485
+ </div>
42486
+ ` : null}
42487
+ `;
42488
+ } else {
42489
+ return x`
42490
+ <div
42491
+ class="selectOption ${isSelected ? "selected" : ""} ${isPinned ? "pinned" : ""}"
42492
+ @click=${async () => {
42493
+ await dist_ts_exports25.DomTools.setupDomTools();
42494
+ this.selectItem("element", elementName, item, 0, section);
42495
+ }}
42496
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, elementName)}
42497
+ >
42498
+ <i class="material-symbols-outlined">featured_video</i>
42499
+ <div class="text">${this.highlightMatch(elementName)}</div>
42500
+ </div>
42501
+ `;
42066
42502
  }
42067
42503
  }
42068
42504
  toggleSectionCollapsed(sectionName) {
@@ -42105,7 +42541,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
42105
42541
  }
42106
42542
  updated(changedProperties) {
42107
42543
  super.updated(changedProperties);
42108
- if (changedProperties.has("selectedItem") && this.selectedItem) {
42544
+ if (changedProperties.has("selectedItem") && this.selectedItem && this.dashboardRef?.sections) {
42109
42545
  for (const section of this.dashboardRef.sections) {
42110
42546
  if (section.type !== "elements") continue;
42111
42547
  const entries = getSectionItems(section);
@@ -42156,7 +42592,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
42156
42592
  this.requestUpdate();
42157
42593
  }
42158
42594
  };
42159
- _init2 = __decoratorStart(_a2);
42595
+ _init3 = __decoratorStart(_a3);
42160
42596
  _selectedItem = new WeakMap();
42161
42597
  _selectedType = new WeakMap();
42162
42598
  _dashboardRef = new WeakMap();
@@ -42164,24 +42600,30 @@ _isNative2 = new WeakMap();
42164
42600
  _expandedElements = new WeakMap();
42165
42601
  _collapsedSections = new WeakMap();
42166
42602
  _searchQuery = new WeakMap();
42167
- __decorateElement(_init2, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
42168
- __decorateElement(_init2, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
42169
- __decorateElement(_init2, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
42170
- __decorateElement(_init2, 4, "isNative", _isNative_dec2, WccSidebar, _isNative2);
42171
- __decorateElement(_init2, 4, "expandedElements", _expandedElements_dec, WccSidebar, _expandedElements);
42172
- __decorateElement(_init2, 4, "collapsedSections", _collapsedSections_dec, WccSidebar, _collapsedSections);
42173
- __decorateElement(_init2, 4, "searchQuery", _searchQuery_dec, WccSidebar, _searchQuery);
42174
- WccSidebar = __decorateElement(_init2, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
42175
- __runInitializers(_init2, 1, WccSidebar);
42603
+ _pinnedItems = new WeakMap();
42604
+ _sidebarWidth2 = new WeakMap();
42605
+ _isResizing2 = new WeakMap();
42606
+ __decorateElement(_init3, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
42607
+ __decorateElement(_init3, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
42608
+ __decorateElement(_init3, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
42609
+ __decorateElement(_init3, 4, "isNative", _isNative_dec2, WccSidebar, _isNative2);
42610
+ __decorateElement(_init3, 4, "expandedElements", _expandedElements_dec, WccSidebar, _expandedElements);
42611
+ __decorateElement(_init3, 4, "collapsedSections", _collapsedSections_dec, WccSidebar, _collapsedSections);
42612
+ __decorateElement(_init3, 4, "searchQuery", _searchQuery_dec, WccSidebar, _searchQuery);
42613
+ __decorateElement(_init3, 4, "pinnedItems", _pinnedItems_dec, WccSidebar, _pinnedItems);
42614
+ __decorateElement(_init3, 4, "sidebarWidth", _sidebarWidth_dec2, WccSidebar, _sidebarWidth2);
42615
+ __decorateElement(_init3, 4, "isResizing", _isResizing_dec2, WccSidebar, _isResizing2);
42616
+ WccSidebar = __decorateElement(_init3, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
42617
+ __runInitializers(_init3, 1, WccSidebar);
42176
42618
 
42177
42619
  // ts_web/elements/wcc-record-button.ts
42178
- var _duration_dec, _state_dec, _a3, _WccRecordButton_decorators, _init3, _state, _duration;
42620
+ var _duration_dec, _state_dec, _a4, _WccRecordButton_decorators, _init4, _state, _duration;
42179
42621
  _WccRecordButton_decorators = [t4("wcc-record-button")];
42180
- var WccRecordButton = class extends (_a3 = DeesElement, _state_dec = [n5({ type: String })], _duration_dec = [n5({ type: Number })], _a3) {
42622
+ var WccRecordButton = class extends (_a4 = DeesElement, _state_dec = [n5({ type: String })], _duration_dec = [n5({ type: Number })], _a4) {
42181
42623
  constructor() {
42182
42624
  super(...arguments);
42183
- __privateAdd(this, _state, __runInitializers(_init3, 8, this, "idle")), __runInitializers(_init3, 11, this);
42184
- __privateAdd(this, _duration, __runInitializers(_init3, 12, this, 0)), __runInitializers(_init3, 15, this);
42625
+ __privateAdd(this, _state, __runInitializers(_init4, 8, this, "idle")), __runInitializers(_init4, 11, this);
42626
+ __privateAdd(this, _duration, __runInitializers(_init4, 12, this, 0)), __runInitializers(_init4, 15, this);
42185
42627
  __publicField(this, "handleClick", () => {
42186
42628
  this.dispatchEvent(new CustomEvent("record-click", {
42187
42629
  bubbles: true,
@@ -42223,12 +42665,12 @@ var WccRecordButton = class extends (_a3 = DeesElement, _state_dec = [n5({ type:
42223
42665
  }
42224
42666
  }
42225
42667
  };
42226
- _init3 = __decoratorStart(_a3);
42668
+ _init4 = __decoratorStart(_a4);
42227
42669
  _state = new WeakMap();
42228
42670
  _duration = new WeakMap();
42229
- __decorateElement(_init3, 4, "state", _state_dec, WccRecordButton, _state);
42230
- __decorateElement(_init3, 4, "duration", _duration_dec, WccRecordButton, _duration);
42231
- WccRecordButton = __decorateElement(_init3, 0, "WccRecordButton", _WccRecordButton_decorators, WccRecordButton);
42671
+ __decorateElement(_init4, 4, "state", _state_dec, WccRecordButton, _state);
42672
+ __decorateElement(_init4, 4, "duration", _duration_dec, WccRecordButton, _duration);
42673
+ WccRecordButton = __decorateElement(_init4, 0, "WccRecordButton", _WccRecordButton_decorators, WccRecordButton);
42232
42674
  __publicField(WccRecordButton, "styles", [
42233
42675
  i`
42234
42676
  :host {
@@ -42281,7 +42723,7 @@ __publicField(WccRecordButton, "styles", [
42281
42723
  }
42282
42724
  `
42283
42725
  ]);
42284
- __runInitializers(_init3, 1, WccRecordButton);
42726
+ __runInitializers(_init4, 1, WccRecordButton);
42285
42727
 
42286
42728
  // ts_web/services/recorder.service.ts
42287
42729
  var RecorderService = class {
@@ -42556,25 +42998,25 @@ var RecorderService = class {
42556
42998
  };
42557
42999
 
42558
43000
  // ts_web/elements/wcc-recording-panel.ts
42559
- 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;
43001
+ 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, _a5, _WccRecordingPanel_decorators, _init5, _dashboardRef2, _panelState, _recordingMode, _audioEnabled, _selectedMicrophoneId, _availableMicrophones, _audioLevel, _recordingDuration, _previewVideoUrl, _trimStart, _trimEnd, _videoDuration, _isDraggingTrim, _isExporting;
42560
43002
  _WccRecordingPanel_decorators = [t4("wcc-recording-panel")];
42561
- 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) {
43003
+ var WccRecordingPanel = class extends (_a5 = 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()], _a5) {
42562
43004
  constructor() {
42563
43005
  super();
42564
- __privateAdd(this, _dashboardRef2, __runInitializers(_init4, 8, this)), __runInitializers(_init4, 11, this);
42565
- __privateAdd(this, _panelState, __runInitializers(_init4, 12, this, "options")), __runInitializers(_init4, 15, this);
42566
- __privateAdd(this, _recordingMode, __runInitializers(_init4, 16, this, "viewport")), __runInitializers(_init4, 19, this);
42567
- __privateAdd(this, _audioEnabled, __runInitializers(_init4, 20, this, false)), __runInitializers(_init4, 23, this);
42568
- __privateAdd(this, _selectedMicrophoneId, __runInitializers(_init4, 24, this, "")), __runInitializers(_init4, 27, this);
42569
- __privateAdd(this, _availableMicrophones, __runInitializers(_init4, 28, this, [])), __runInitializers(_init4, 31, this);
42570
- __privateAdd(this, _audioLevel, __runInitializers(_init4, 32, this, 0)), __runInitializers(_init4, 35, this);
42571
- __privateAdd(this, _recordingDuration, __runInitializers(_init4, 36, this, 0)), __runInitializers(_init4, 39, this);
42572
- __privateAdd(this, _previewVideoUrl, __runInitializers(_init4, 40, this, "")), __runInitializers(_init4, 43, this);
42573
- __privateAdd(this, _trimStart, __runInitializers(_init4, 44, this, 0)), __runInitializers(_init4, 47, this);
42574
- __privateAdd(this, _trimEnd, __runInitializers(_init4, 48, this, 0)), __runInitializers(_init4, 51, this);
42575
- __privateAdd(this, _videoDuration, __runInitializers(_init4, 52, this, 0)), __runInitializers(_init4, 55, this);
42576
- __privateAdd(this, _isDraggingTrim, __runInitializers(_init4, 56, this, null)), __runInitializers(_init4, 59, this);
42577
- __privateAdd(this, _isExporting, __runInitializers(_init4, 60, this, false)), __runInitializers(_init4, 63, this);
43006
+ __privateAdd(this, _dashboardRef2, __runInitializers(_init5, 8, this)), __runInitializers(_init5, 11, this);
43007
+ __privateAdd(this, _panelState, __runInitializers(_init5, 12, this, "options")), __runInitializers(_init5, 15, this);
43008
+ __privateAdd(this, _recordingMode, __runInitializers(_init5, 16, this, "viewport")), __runInitializers(_init5, 19, this);
43009
+ __privateAdd(this, _audioEnabled, __runInitializers(_init5, 20, this, false)), __runInitializers(_init5, 23, this);
43010
+ __privateAdd(this, _selectedMicrophoneId, __runInitializers(_init5, 24, this, "")), __runInitializers(_init5, 27, this);
43011
+ __privateAdd(this, _availableMicrophones, __runInitializers(_init5, 28, this, [])), __runInitializers(_init5, 31, this);
43012
+ __privateAdd(this, _audioLevel, __runInitializers(_init5, 32, this, 0)), __runInitializers(_init5, 35, this);
43013
+ __privateAdd(this, _recordingDuration, __runInitializers(_init5, 36, this, 0)), __runInitializers(_init5, 39, this);
43014
+ __privateAdd(this, _previewVideoUrl, __runInitializers(_init5, 40, this, "")), __runInitializers(_init5, 43, this);
43015
+ __privateAdd(this, _trimStart, __runInitializers(_init5, 44, this, 0)), __runInitializers(_init5, 47, this);
43016
+ __privateAdd(this, _trimEnd, __runInitializers(_init5, 48, this, 0)), __runInitializers(_init5, 51, this);
43017
+ __privateAdd(this, _videoDuration, __runInitializers(_init5, 52, this, 0)), __runInitializers(_init5, 55, this);
43018
+ __privateAdd(this, _isDraggingTrim, __runInitializers(_init5, 56, this, null)), __runInitializers(_init5, 59, this);
43019
+ __privateAdd(this, _isExporting, __runInitializers(_init5, 60, this, false)), __runInitializers(_init5, 63, this);
42578
43020
  // Service instance
42579
43021
  __publicField(this, "recorderService");
42580
43022
  this.recorderService = new RecorderService({
@@ -42968,7 +43410,7 @@ var WccRecordingPanel = class extends (_a4 = DeesElement, _dashboardRef_dec2 = [
42968
43410
  }
42969
43411
  }
42970
43412
  };
42971
- _init4 = __decoratorStart(_a4);
43413
+ _init5 = __decoratorStart(_a5);
42972
43414
  _dashboardRef2 = new WeakMap();
42973
43415
  _panelState = new WeakMap();
42974
43416
  _recordingMode = new WeakMap();
@@ -42983,21 +43425,21 @@ _trimEnd = new WeakMap();
42983
43425
  _videoDuration = new WeakMap();
42984
43426
  _isDraggingTrim = new WeakMap();
42985
43427
  _isExporting = new WeakMap();
42986
- __decorateElement(_init4, 4, "dashboardRef", _dashboardRef_dec2, WccRecordingPanel, _dashboardRef2);
42987
- __decorateElement(_init4, 4, "panelState", _panelState_dec, WccRecordingPanel, _panelState);
42988
- __decorateElement(_init4, 4, "recordingMode", _recordingMode_dec, WccRecordingPanel, _recordingMode);
42989
- __decorateElement(_init4, 4, "audioEnabled", _audioEnabled_dec, WccRecordingPanel, _audioEnabled);
42990
- __decorateElement(_init4, 4, "selectedMicrophoneId", _selectedMicrophoneId_dec, WccRecordingPanel, _selectedMicrophoneId);
42991
- __decorateElement(_init4, 4, "availableMicrophones", _availableMicrophones_dec, WccRecordingPanel, _availableMicrophones);
42992
- __decorateElement(_init4, 4, "audioLevel", _audioLevel_dec, WccRecordingPanel, _audioLevel);
42993
- __decorateElement(_init4, 4, "recordingDuration", _recordingDuration_dec, WccRecordingPanel, _recordingDuration);
42994
- __decorateElement(_init4, 4, "previewVideoUrl", _previewVideoUrl_dec, WccRecordingPanel, _previewVideoUrl);
42995
- __decorateElement(_init4, 4, "trimStart", _trimStart_dec, WccRecordingPanel, _trimStart);
42996
- __decorateElement(_init4, 4, "trimEnd", _trimEnd_dec, WccRecordingPanel, _trimEnd);
42997
- __decorateElement(_init4, 4, "videoDuration", _videoDuration_dec, WccRecordingPanel, _videoDuration);
42998
- __decorateElement(_init4, 4, "isDraggingTrim", _isDraggingTrim_dec, WccRecordingPanel, _isDraggingTrim);
42999
- __decorateElement(_init4, 4, "isExporting", _isExporting_dec, WccRecordingPanel, _isExporting);
43000
- WccRecordingPanel = __decorateElement(_init4, 0, "WccRecordingPanel", _WccRecordingPanel_decorators, WccRecordingPanel);
43428
+ __decorateElement(_init5, 4, "dashboardRef", _dashboardRef_dec2, WccRecordingPanel, _dashboardRef2);
43429
+ __decorateElement(_init5, 4, "panelState", _panelState_dec, WccRecordingPanel, _panelState);
43430
+ __decorateElement(_init5, 4, "recordingMode", _recordingMode_dec, WccRecordingPanel, _recordingMode);
43431
+ __decorateElement(_init5, 4, "audioEnabled", _audioEnabled_dec, WccRecordingPanel, _audioEnabled);
43432
+ __decorateElement(_init5, 4, "selectedMicrophoneId", _selectedMicrophoneId_dec, WccRecordingPanel, _selectedMicrophoneId);
43433
+ __decorateElement(_init5, 4, "availableMicrophones", _availableMicrophones_dec, WccRecordingPanel, _availableMicrophones);
43434
+ __decorateElement(_init5, 4, "audioLevel", _audioLevel_dec, WccRecordingPanel, _audioLevel);
43435
+ __decorateElement(_init5, 4, "recordingDuration", _recordingDuration_dec, WccRecordingPanel, _recordingDuration);
43436
+ __decorateElement(_init5, 4, "previewVideoUrl", _previewVideoUrl_dec, WccRecordingPanel, _previewVideoUrl);
43437
+ __decorateElement(_init5, 4, "trimStart", _trimStart_dec, WccRecordingPanel, _trimStart);
43438
+ __decorateElement(_init5, 4, "trimEnd", _trimEnd_dec, WccRecordingPanel, _trimEnd);
43439
+ __decorateElement(_init5, 4, "videoDuration", _videoDuration_dec, WccRecordingPanel, _videoDuration);
43440
+ __decorateElement(_init5, 4, "isDraggingTrim", _isDraggingTrim_dec, WccRecordingPanel, _isDraggingTrim);
43441
+ __decorateElement(_init5, 4, "isExporting", _isExporting_dec, WccRecordingPanel, _isExporting);
43442
+ WccRecordingPanel = __decorateElement(_init5, 0, "WccRecordingPanel", _WccRecordingPanel_decorators, WccRecordingPanel);
43001
43443
  __publicField(WccRecordingPanel, "styles", [
43002
43444
  i`
43003
43445
  :host {
@@ -43476,31 +43918,32 @@ __publicField(WccRecordingPanel, "styles", [
43476
43918
 
43477
43919
  `
43478
43920
  ]);
43479
- __runInitializers(_init4, 1, WccRecordingPanel);
43921
+ __runInitializers(_init5, 1, WccRecordingPanel);
43480
43922
 
43481
43923
  // ts_web/elements/wcc-properties.ts
43482
- var _recordingDuration_dec2, _isRecording_dec, _showRecordingPanel_dec, _editingProperties_dec, _propertyContent_dec, _isNative_dec3, _warning_dec, _selectedTheme_dec, _selectedViewport_dec, _selectedItem_dec2, _dashboardRef_dec3, _a5, _WccProperties_decorators, _init5, _dashboardRef3, _selectedItem2, _selectedViewport, _selectedTheme, _warning, _isNative3, _propertyContent, _editingProperties, _showRecordingPanel, _isRecording, _recordingDuration2;
43924
+ var _recordingDuration_dec2, _isRecording_dec, _showRecordingPanel_dec, _editingProperties_dec, _propertyContent_dec, _sidebarWidth_dec3, _isNative_dec3, _warning_dec, _selectedTheme_dec, _selectedViewport_dec, _selectedItem_dec2, _dashboardRef_dec3, _a6, _WccProperties_decorators, _init6, _dashboardRef3, _selectedItem2, _selectedViewport, _selectedTheme, _warning, _isNative3, _sidebarWidth3, _propertyContent, _editingProperties, _showRecordingPanel, _isRecording, _recordingDuration2;
43483
43925
  var environment = "native";
43484
43926
  var setEnvironment = (envArg) => {
43485
43927
  environment = envArg;
43486
43928
  };
43487
43929
  _WccProperties_decorators = [t4("wcc-properties")];
43488
- var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
43930
+ var WccProperties = class extends (_a6 = DeesElement, _dashboardRef_dec3 = [n5({
43489
43931
  type: WccDashboard2
43490
- })], _selectedItem_dec2 = [n5()], _selectedViewport_dec = [n5()], _selectedTheme_dec = [n5()], _warning_dec = [n5()], _isNative_dec3 = [n5()], _propertyContent_dec = [r5()], _editingProperties_dec = [r5()], _showRecordingPanel_dec = [r5()], _isRecording_dec = [r5()], _recordingDuration_dec2 = [r5()], _a5) {
43932
+ })], _selectedItem_dec2 = [n5()], _selectedViewport_dec = [n5()], _selectedTheme_dec = [n5()], _warning_dec = [n5()], _isNative_dec3 = [n5()], _sidebarWidth_dec3 = [n5({ type: Number })], _propertyContent_dec = [r5()], _editingProperties_dec = [r5()], _showRecordingPanel_dec = [r5()], _isRecording_dec = [r5()], _recordingDuration_dec2 = [r5()], _a6) {
43491
43933
  constructor() {
43492
43934
  super(...arguments);
43493
- __privateAdd(this, _dashboardRef3, __runInitializers(_init5, 8, this)), __runInitializers(_init5, 11, this);
43494
- __privateAdd(this, _selectedItem2, __runInitializers(_init5, 12, this)), __runInitializers(_init5, 15, this);
43495
- __privateAdd(this, _selectedViewport, __runInitializers(_init5, 16, this, "native")), __runInitializers(_init5, 19, this);
43496
- __privateAdd(this, _selectedTheme, __runInitializers(_init5, 20, this, "dark")), __runInitializers(_init5, 23, this);
43497
- __privateAdd(this, _warning, __runInitializers(_init5, 24, this, null)), __runInitializers(_init5, 27, this);
43498
- __privateAdd(this, _isNative3, __runInitializers(_init5, 28, this, false)), __runInitializers(_init5, 31, this);
43499
- __privateAdd(this, _propertyContent, __runInitializers(_init5, 32, this, [])), __runInitializers(_init5, 35, this);
43500
- __privateAdd(this, _editingProperties, __runInitializers(_init5, 36, this, [])), __runInitializers(_init5, 39, this);
43501
- __privateAdd(this, _showRecordingPanel, __runInitializers(_init5, 40, this, false)), __runInitializers(_init5, 43, this);
43502
- __privateAdd(this, _isRecording, __runInitializers(_init5, 44, this, false)), __runInitializers(_init5, 47, this);
43503
- __privateAdd(this, _recordingDuration2, __runInitializers(_init5, 48, this, 0)), __runInitializers(_init5, 51, this);
43935
+ __privateAdd(this, _dashboardRef3, __runInitializers(_init6, 8, this)), __runInitializers(_init6, 11, this);
43936
+ __privateAdd(this, _selectedItem2, __runInitializers(_init6, 12, this)), __runInitializers(_init6, 15, this);
43937
+ __privateAdd(this, _selectedViewport, __runInitializers(_init6, 16, this, "native")), __runInitializers(_init6, 19, this);
43938
+ __privateAdd(this, _selectedTheme, __runInitializers(_init6, 20, this, "dark")), __runInitializers(_init6, 23, this);
43939
+ __privateAdd(this, _warning, __runInitializers(_init6, 24, this, null)), __runInitializers(_init6, 27, this);
43940
+ __privateAdd(this, _isNative3, __runInitializers(_init6, 28, this, false)), __runInitializers(_init6, 31, this);
43941
+ __privateAdd(this, _sidebarWidth3, __runInitializers(_init6, 32, this, 200)), __runInitializers(_init6, 35, this);
43942
+ __privateAdd(this, _propertyContent, __runInitializers(_init6, 36, this, [])), __runInitializers(_init6, 39, this);
43943
+ __privateAdd(this, _editingProperties, __runInitializers(_init6, 40, this, [])), __runInitializers(_init6, 43, this);
43944
+ __privateAdd(this, _showRecordingPanel, __runInitializers(_init6, 44, this, false)), __runInitializers(_init6, 47, this);
43945
+ __privateAdd(this, _isRecording, __runInitializers(_init6, 48, this, false)), __runInitializers(_init6, 51, this);
43946
+ __privateAdd(this, _recordingDuration2, __runInitializers(_init6, 52, this, 0)), __runInitializers(_init6, 55, this);
43504
43947
  __publicField(this, "editorHeight", 300);
43505
43948
  }
43506
43949
  render() {
@@ -43530,7 +43973,7 @@ var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
43530
43973
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
43531
43974
  box-sizing: border-box;
43532
43975
  position: absolute;
43533
- left: 200px;
43976
+ left: ${this.sidebarWidth}px;
43534
43977
  height: ${this.editingProperties.length > 0 ? 100 + this.editorHeight : 100}px;
43535
43978
  bottom: 0px;
43536
43979
  right: 0px;
@@ -44455,34 +44898,36 @@ var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
44455
44898
  }
44456
44899
  }
44457
44900
  };
44458
- _init5 = __decoratorStart(_a5);
44901
+ _init6 = __decoratorStart(_a6);
44459
44902
  _dashboardRef3 = new WeakMap();
44460
44903
  _selectedItem2 = new WeakMap();
44461
44904
  _selectedViewport = new WeakMap();
44462
44905
  _selectedTheme = new WeakMap();
44463
44906
  _warning = new WeakMap();
44464
44907
  _isNative3 = new WeakMap();
44908
+ _sidebarWidth3 = new WeakMap();
44465
44909
  _propertyContent = new WeakMap();
44466
44910
  _editingProperties = new WeakMap();
44467
44911
  _showRecordingPanel = new WeakMap();
44468
44912
  _isRecording = new WeakMap();
44469
44913
  _recordingDuration2 = new WeakMap();
44470
- __decorateElement(_init5, 4, "dashboardRef", _dashboardRef_dec3, WccProperties, _dashboardRef3);
44471
- __decorateElement(_init5, 4, "selectedItem", _selectedItem_dec2, WccProperties, _selectedItem2);
44472
- __decorateElement(_init5, 4, "selectedViewport", _selectedViewport_dec, WccProperties, _selectedViewport);
44473
- __decorateElement(_init5, 4, "selectedTheme", _selectedTheme_dec, WccProperties, _selectedTheme);
44474
- __decorateElement(_init5, 4, "warning", _warning_dec, WccProperties, _warning);
44475
- __decorateElement(_init5, 4, "isNative", _isNative_dec3, WccProperties, _isNative3);
44476
- __decorateElement(_init5, 4, "propertyContent", _propertyContent_dec, WccProperties, _propertyContent);
44477
- __decorateElement(_init5, 4, "editingProperties", _editingProperties_dec, WccProperties, _editingProperties);
44478
- __decorateElement(_init5, 4, "showRecordingPanel", _showRecordingPanel_dec, WccProperties, _showRecordingPanel);
44479
- __decorateElement(_init5, 4, "isRecording", _isRecording_dec, WccProperties, _isRecording);
44480
- __decorateElement(_init5, 4, "recordingDuration", _recordingDuration_dec2, WccProperties, _recordingDuration2);
44481
- WccProperties = __decorateElement(_init5, 0, "WccProperties", _WccProperties_decorators, WccProperties);
44482
- __runInitializers(_init5, 1, WccProperties);
44914
+ __decorateElement(_init6, 4, "dashboardRef", _dashboardRef_dec3, WccProperties, _dashboardRef3);
44915
+ __decorateElement(_init6, 4, "selectedItem", _selectedItem_dec2, WccProperties, _selectedItem2);
44916
+ __decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec, WccProperties, _selectedViewport);
44917
+ __decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec, WccProperties, _selectedTheme);
44918
+ __decorateElement(_init6, 4, "warning", _warning_dec, WccProperties, _warning);
44919
+ __decorateElement(_init6, 4, "isNative", _isNative_dec3, WccProperties, _isNative3);
44920
+ __decorateElement(_init6, 4, "sidebarWidth", _sidebarWidth_dec3, WccProperties, _sidebarWidth3);
44921
+ __decorateElement(_init6, 4, "propertyContent", _propertyContent_dec, WccProperties, _propertyContent);
44922
+ __decorateElement(_init6, 4, "editingProperties", _editingProperties_dec, WccProperties, _editingProperties);
44923
+ __decorateElement(_init6, 4, "showRecordingPanel", _showRecordingPanel_dec, WccProperties, _showRecordingPanel);
44924
+ __decorateElement(_init6, 4, "isRecording", _isRecording_dec, WccProperties, _isRecording);
44925
+ __decorateElement(_init6, 4, "recordingDuration", _recordingDuration_dec2, WccProperties, _recordingDuration2);
44926
+ WccProperties = __decorateElement(_init6, 0, "WccProperties", _WccProperties_decorators, WccProperties);
44927
+ __runInitializers(_init6, 1, WccProperties);
44483
44928
 
44484
44929
  // ts_web/elements/wcc-dashboard.ts
44485
- var _wccFrame_dec, _warning_dec2, _searchQuery_dec2, _selectedTheme_dec2, _selectedViewport_dec2, _selectedDemoIndex_dec, _selectedItem_dec3, _selectedItemName_dec, _selectedType_dec2, _selectedSection_dec, _sections_dec, _a6, _WccDashboard_decorators, _init6, _sections, _selectedSection, _selectedType2, _selectedItemName, _selectedItem3, _selectedDemoIndex, _selectedViewport2, _selectedTheme2, _searchQuery2, _warning2, _wccFrame;
44930
+ var _wccFrame_dec, _warning_dec2, _sidebarWidth_dec4, _pinnedItems_dec2, _searchQuery_dec2, _selectedTheme_dec2, _selectedViewport_dec2, _selectedDemoIndex_dec, _selectedItem_dec3, _selectedItemName_dec, _selectedType_dec2, _selectedSection_dec, _sections_dec, _a7, _WccDashboard_decorators, _init7, _sections, _selectedSection, _selectedType2, _selectedItemName, _selectedItem3, _selectedDemoIndex, _selectedViewport2, _selectedTheme2, _searchQuery2, _pinnedItems2, _sidebarWidth4, _warning2, _wccFrame;
44486
44931
  var getSectionItems = (section) => {
44487
44932
  let entries = Object.entries(section.items);
44488
44933
  if (section.filter) {
@@ -44494,23 +44939,25 @@ var getSectionItems = (section) => {
44494
44939
  return entries;
44495
44940
  };
44496
44941
  _WccDashboard_decorators = [t4("wcc-dashboard")];
44497
- var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _selectedSection_dec = [n5()], _selectedType_dec2 = [n5()], _selectedItemName_dec = [n5()], _selectedItem_dec3 = [n5()], _selectedDemoIndex_dec = [n5({ type: Number })], _selectedViewport_dec2 = [n5()], _selectedTheme_dec2 = [n5()], _searchQuery_dec2 = [n5()], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a6) {
44942
+ var WccDashboard2 = class extends (_a7 = DeesElement, _sections_dec = [n5()], _selectedSection_dec = [n5()], _selectedType_dec2 = [n5()], _selectedItemName_dec = [n5()], _selectedItem_dec3 = [n5()], _selectedDemoIndex_dec = [n5({ type: Number })], _selectedViewport_dec2 = [n5()], _selectedTheme_dec2 = [n5()], _searchQuery_dec2 = [n5()], _pinnedItems_dec2 = [n5({ attribute: false })], _sidebarWidth_dec4 = [n5({ type: Number })], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a7) {
44498
44943
  constructor(config2) {
44499
44944
  super();
44500
- __privateAdd(this, _sections, __runInitializers(_init6, 8, this, [])), __runInitializers(_init6, 11, this);
44501
- __privateAdd(this, _selectedSection, __runInitializers(_init6, 12, this, null)), __runInitializers(_init6, 15, this);
44502
- __privateAdd(this, _selectedType2, __runInitializers(_init6, 16, this)), __runInitializers(_init6, 19, this);
44503
- __privateAdd(this, _selectedItemName, __runInitializers(_init6, 20, this)), __runInitializers(_init6, 23, this);
44504
- __privateAdd(this, _selectedItem3, __runInitializers(_init6, 24, this)), __runInitializers(_init6, 27, this);
44505
- __privateAdd(this, _selectedDemoIndex, __runInitializers(_init6, 28, this, 0)), __runInitializers(_init6, 31, this);
44506
- __privateAdd(this, _selectedViewport2, __runInitializers(_init6, 32, this, "desktop")), __runInitializers(_init6, 35, this);
44507
- __privateAdd(this, _selectedTheme2, __runInitializers(_init6, 36, this, "dark")), __runInitializers(_init6, 39, this);
44508
- __privateAdd(this, _searchQuery2, __runInitializers(_init6, 40, this, "")), __runInitializers(_init6, 43, this);
44509
- __privateAdd(this, _warning2, __runInitializers(_init6, 44, this, null)), __runInitializers(_init6, 47, this);
44945
+ __privateAdd(this, _sections, __runInitializers(_init7, 8, this, [])), __runInitializers(_init7, 11, this);
44946
+ __privateAdd(this, _selectedSection, __runInitializers(_init7, 12, this, null)), __runInitializers(_init7, 15, this);
44947
+ __privateAdd(this, _selectedType2, __runInitializers(_init7, 16, this)), __runInitializers(_init7, 19, this);
44948
+ __privateAdd(this, _selectedItemName, __runInitializers(_init7, 20, this)), __runInitializers(_init7, 23, this);
44949
+ __privateAdd(this, _selectedItem3, __runInitializers(_init7, 24, this)), __runInitializers(_init7, 27, this);
44950
+ __privateAdd(this, _selectedDemoIndex, __runInitializers(_init7, 28, this, 0)), __runInitializers(_init7, 31, this);
44951
+ __privateAdd(this, _selectedViewport2, __runInitializers(_init7, 32, this, "desktop")), __runInitializers(_init7, 35, this);
44952
+ __privateAdd(this, _selectedTheme2, __runInitializers(_init7, 36, this, "dark")), __runInitializers(_init7, 39, this);
44953
+ __privateAdd(this, _searchQuery2, __runInitializers(_init7, 40, this, "")), __runInitializers(_init7, 43, this);
44954
+ __privateAdd(this, _pinnedItems2, __runInitializers(_init7, 44, this, /* @__PURE__ */ new Set())), __runInitializers(_init7, 47, this);
44955
+ __privateAdd(this, _sidebarWidth4, __runInitializers(_init7, 48, this, 200)), __runInitializers(_init7, 51, this);
44956
+ __privateAdd(this, _warning2, __runInitializers(_init7, 52, this, null)), __runInitializers(_init7, 55, this);
44510
44957
  __publicField(this, "frameScrollY", 0);
44511
44958
  __publicField(this, "sidebarScrollY", 0);
44512
44959
  __publicField(this, "scrollPositionsApplied", false);
44513
- __privateAdd(this, _wccFrame, __runInitializers(_init6, 48, this)), __runInitializers(_init6, 51, this);
44960
+ __privateAdd(this, _wccFrame, __runInitializers(_init7, 56, this)), __runInitializers(_init7, 59, this);
44514
44961
  __publicField(this, "scrollUpdateTimeout");
44515
44962
  __publicField(this, "scrollListenersAttached", false);
44516
44963
  if (config2 && config2.sections) {
@@ -44557,6 +45004,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44557
45004
  .dashboardRef=${this}
44558
45005
  .selectedItem=${this.selectedItem}
44559
45006
  .searchQuery=${this.searchQuery}
45007
+ .pinnedItems=${this.pinnedItems}
45008
+ .sidebarWidth=${this.sidebarWidth}
44560
45009
  .isNative=${this.isNative}
44561
45010
  @selectedType=${(eventArg) => {
44562
45011
  this.selectedType = eventArg.detail;
@@ -44570,6 +45019,19 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44570
45019
  @searchChanged=${(eventArg) => {
44571
45020
  this.searchQuery = eventArg.detail;
44572
45021
  this.updateUrlWithScrollState();
45022
+ }}
45023
+ @pinnedChanged=${(eventArg) => {
45024
+ this.pinnedItems = eventArg.detail;
45025
+ this.updateUrlWithScrollState();
45026
+ }}
45027
+ @widthChanged=${async (eventArg) => {
45028
+ this.sidebarWidth = eventArg.detail;
45029
+ this.updateUrlWithScrollState();
45030
+ const frame = await this.wccFrame;
45031
+ if (frame) {
45032
+ frame.sidebarWidth = eventArg.detail;
45033
+ frame.requestUpdate();
45034
+ }
44573
45035
  }}
44574
45036
  ></wcc-sidebar>
44575
45037
  <wcc-properties
@@ -44579,6 +45041,7 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44579
45041
  .selectedViewport=${this.selectedViewport}
44580
45042
  .selectedTheme=${this.selectedTheme}
44581
45043
  .isNative=${this.isNative}
45044
+ .sidebarWidth=${this.sidebarWidth}
44582
45045
  @selectedViewport=${(eventArg) => {
44583
45046
  this.selectedViewport = eventArg.detail;
44584
45047
  this.scheduleUpdate();
@@ -44597,7 +45060,7 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44597
45060
  this.toggleNative();
44598
45061
  }}
44599
45062
  ></wcc-properties>
44600
- <wcc-frame id="wccFrame" viewport=${this.selectedViewport} .isNative=${this.isNative}>
45063
+ <wcc-frame id="wccFrame" viewport=${this.selectedViewport} .isNative=${this.isNative} .sidebarWidth=${this.sidebarWidth}>
44601
45064
  </wcc-frame>
44602
45065
  `;
44603
45066
  }
@@ -44656,6 +45119,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44656
45119
  const search2 = routeInfo.queryParams.search;
44657
45120
  const frameScrollY = routeInfo.queryParams.frameScrollY;
44658
45121
  const sidebarScrollY = routeInfo.queryParams.sidebarScrollY;
45122
+ const pinned = routeInfo.queryParams.pinned;
45123
+ const sidebarWidth = routeInfo.queryParams.sidebarWidth;
44659
45124
  if (search2) {
44660
45125
  this.searchQuery = search2;
44661
45126
  } else {
@@ -44667,11 +45132,30 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44667
45132
  if (sidebarScrollY) {
44668
45133
  this.sidebarScrollY = parseInt(sidebarScrollY);
44669
45134
  }
44670
- setTimeout(() => {
45135
+ if (pinned) {
45136
+ const newPinned = new Set(pinned.split(",").filter(Boolean));
45137
+ if (this.pinnedItems.size !== newPinned.size || ![...newPinned].every((k3) => this.pinnedItems.has(k3))) {
45138
+ this.pinnedItems = newPinned;
45139
+ }
45140
+ } else if (this.pinnedItems.size > 0) {
45141
+ this.pinnedItems = /* @__PURE__ */ new Set();
45142
+ }
45143
+ if (sidebarWidth) {
45144
+ this.sidebarWidth = parseInt(sidebarWidth, 10);
45145
+ }
45146
+ setTimeout(async () => {
44671
45147
  this.applyScrollPositions();
45148
+ const frame = await this.wccFrame;
45149
+ if (frame) {
45150
+ frame.sidebarWidth = this.sidebarWidth;
45151
+ frame.requestUpdate();
45152
+ }
44672
45153
  }, 100);
44673
45154
  } else {
44674
45155
  this.searchQuery = "";
45156
+ if (this.pinnedItems.size > 0) {
45157
+ this.pinnedItems = /* @__PURE__ */ new Set();
45158
+ }
44675
45159
  }
44676
45160
  const domtoolsInstance = await dist_ts_exports25.elementBasic.setup();
44677
45161
  this.selectedTheme === "bright" ? domtoolsInstance.themeManager.goBright() : domtoolsInstance.themeManager.goDark();
@@ -44708,6 +45192,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44708
45192
  const search2 = routeInfo.queryParams.search;
44709
45193
  const frameScrollY = routeInfo.queryParams.frameScrollY;
44710
45194
  const sidebarScrollY = routeInfo.queryParams.sidebarScrollY;
45195
+ const pinned = routeInfo.queryParams.pinned;
45196
+ const sidebarWidth = routeInfo.queryParams.sidebarWidth;
44711
45197
  if (search2) {
44712
45198
  this.searchQuery = search2;
44713
45199
  } else {
@@ -44719,11 +45205,25 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44719
45205
  if (sidebarScrollY) {
44720
45206
  this.sidebarScrollY = parseInt(sidebarScrollY);
44721
45207
  }
45208
+ if (pinned) {
45209
+ const newPinned = new Set(pinned.split(",").filter(Boolean));
45210
+ if (this.pinnedItems.size !== newPinned.size || ![...newPinned].every((k3) => this.pinnedItems.has(k3))) {
45211
+ this.pinnedItems = newPinned;
45212
+ }
45213
+ } else if (this.pinnedItems.size > 0) {
45214
+ this.pinnedItems = /* @__PURE__ */ new Set();
45215
+ }
45216
+ if (sidebarWidth) {
45217
+ this.sidebarWidth = parseInt(sidebarWidth, 10);
45218
+ }
44722
45219
  setTimeout(() => {
44723
45220
  this.applyScrollPositions();
44724
45221
  }, 100);
44725
45222
  } else {
44726
45223
  this.searchQuery = "";
45224
+ if (this.pinnedItems.size > 0) {
45225
+ this.pinnedItems = /* @__PURE__ */ new Set();
45226
+ }
44727
45227
  }
44728
45228
  const domtoolsInstance = await dist_ts_exports25.elementBasic.setup();
44729
45229
  this.selectedTheme === "bright" ? domtoolsInstance.themeManager.goBright() : domtoolsInstance.themeManager.goDark();
@@ -44791,6 +45291,12 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44791
45291
  if (this.sidebarScrollY > 0) {
44792
45292
  queryParams.set("sidebarScrollY", this.sidebarScrollY.toString());
44793
45293
  }
45294
+ if (this.pinnedItems.size > 0) {
45295
+ queryParams.set("pinned", Array.from(this.pinnedItems).join(","));
45296
+ }
45297
+ if (this.sidebarWidth !== 200) {
45298
+ queryParams.set("sidebarWidth", this.sidebarWidth.toString());
45299
+ }
44794
45300
  const queryString = queryParams.toString();
44795
45301
  const fullUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl;
44796
45302
  this.domtools.router.pushUrl(fullUrl);
@@ -44834,6 +45340,12 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44834
45340
  if (this.sidebarScrollY > 0) {
44835
45341
  queryParams.set("sidebarScrollY", this.sidebarScrollY.toString());
44836
45342
  }
45343
+ if (this.pinnedItems.size > 0) {
45344
+ queryParams.set("pinned", Array.from(this.pinnedItems).join(","));
45345
+ }
45346
+ if (this.sidebarWidth !== 200) {
45347
+ queryParams.set("sidebarWidth", this.sidebarWidth.toString());
45348
+ }
44837
45349
  const queryString = queryParams.toString();
44838
45350
  const fullUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl;
44839
45351
  window.history.replaceState(null, "", fullUrl);
@@ -44853,7 +45365,7 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44853
45365
  this.scrollPositionsApplied = true;
44854
45366
  }
44855
45367
  };
44856
- _init6 = __decoratorStart(_a6);
45368
+ _init7 = __decoratorStart(_a7);
44857
45369
  _sections = new WeakMap();
44858
45370
  _selectedSection = new WeakMap();
44859
45371
  _selectedType2 = new WeakMap();
@@ -44863,21 +45375,25 @@ _selectedDemoIndex = new WeakMap();
44863
45375
  _selectedViewport2 = new WeakMap();
44864
45376
  _selectedTheme2 = new WeakMap();
44865
45377
  _searchQuery2 = new WeakMap();
45378
+ _pinnedItems2 = new WeakMap();
45379
+ _sidebarWidth4 = new WeakMap();
44866
45380
  _warning2 = new WeakMap();
44867
45381
  _wccFrame = new WeakMap();
44868
- __decorateElement(_init6, 4, "sections", _sections_dec, WccDashboard2, _sections);
44869
- __decorateElement(_init6, 4, "selectedSection", _selectedSection_dec, WccDashboard2, _selectedSection);
44870
- __decorateElement(_init6, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
44871
- __decorateElement(_init6, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
44872
- __decorateElement(_init6, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
44873
- __decorateElement(_init6, 4, "selectedDemoIndex", _selectedDemoIndex_dec, WccDashboard2, _selectedDemoIndex);
44874
- __decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
44875
- __decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
44876
- __decorateElement(_init6, 4, "searchQuery", _searchQuery_dec2, WccDashboard2, _searchQuery2);
44877
- __decorateElement(_init6, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
44878
- __decorateElement(_init6, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
44879
- WccDashboard2 = __decorateElement(_init6, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
44880
- __runInitializers(_init6, 1, WccDashboard2);
45382
+ __decorateElement(_init7, 4, "sections", _sections_dec, WccDashboard2, _sections);
45383
+ __decorateElement(_init7, 4, "selectedSection", _selectedSection_dec, WccDashboard2, _selectedSection);
45384
+ __decorateElement(_init7, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
45385
+ __decorateElement(_init7, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
45386
+ __decorateElement(_init7, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
45387
+ __decorateElement(_init7, 4, "selectedDemoIndex", _selectedDemoIndex_dec, WccDashboard2, _selectedDemoIndex);
45388
+ __decorateElement(_init7, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
45389
+ __decorateElement(_init7, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
45390
+ __decorateElement(_init7, 4, "searchQuery", _searchQuery_dec2, WccDashboard2, _searchQuery2);
45391
+ __decorateElement(_init7, 4, "pinnedItems", _pinnedItems_dec2, WccDashboard2, _pinnedItems2);
45392
+ __decorateElement(_init7, 4, "sidebarWidth", _sidebarWidth_dec4, WccDashboard2, _sidebarWidth4);
45393
+ __decorateElement(_init7, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
45394
+ __decorateElement(_init7, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
45395
+ WccDashboard2 = __decorateElement(_init7, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
45396
+ __runInitializers(_init7, 1, WccDashboard2);
44881
45397
 
44882
45398
  // ts_web/index.ts
44883
45399
  var convertLegacyToConfig = (elementsArg, pagesArg) => {