@design.estate/dees-wcctools 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -41662,18 +41662,204 @@ __publicField(WccFrame, "styles", [
41662
41662
  ]);
41663
41663
  __runInitializers(_init, 1, WccFrame);
41664
41664
 
41665
+ // ts_web/elements/wcc-contextmenu.ts
41666
+ var _visible_dec, _y_dec, _x_dec, _menuItems_dec, _a2, _WccContextmenu_decorators, _init2, _menuItems, _x, _y, _visible;
41667
+ _WccContextmenu_decorators = [t4("wcc-contextmenu")];
41668
+ 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) {
41669
+ constructor() {
41670
+ super(...arguments);
41671
+ __privateAdd(this, _menuItems, __runInitializers(_init2, 8, this, [])), __runInitializers(_init2, 11, this);
41672
+ __privateAdd(this, _x, __runInitializers(_init2, 12, this, 0)), __runInitializers(_init2, 15, this);
41673
+ __privateAdd(this, _y, __runInitializers(_init2, 16, this, 0)), __runInitializers(_init2, 19, this);
41674
+ __privateAdd(this, _visible, __runInitializers(_init2, 20, this, false)), __runInitializers(_init2, 23, this);
41675
+ __publicField(this, "boundHandleOutsideClick", this.handleOutsideClick.bind(this));
41676
+ __publicField(this, "boundHandleKeydown", this.handleKeydown.bind(this));
41677
+ }
41678
+ // Static method to show context menu at position
41679
+ static async show(event, menuItems) {
41680
+ event.preventDefault();
41681
+ event.stopPropagation();
41682
+ const existing = document.querySelector("wcc-contextmenu");
41683
+ if (existing) {
41684
+ existing.remove();
41685
+ }
41686
+ const menu = new _WccContextmenu();
41687
+ menu.menuItems = menuItems;
41688
+ menu.x = event.clientX;
41689
+ menu.y = event.clientY;
41690
+ document.body.appendChild(menu);
41691
+ await menu.updateComplete;
41692
+ menu.adjustPosition();
41693
+ }
41694
+ render() {
41695
+ return x`
41696
+ <div class="menu">
41697
+ ${this.menuItems.map((item) => x`
41698
+ <div
41699
+ class="menu-item ${item.disabled ? "disabled" : ""}"
41700
+ @click=${() => this.handleItemClick(item)}
41701
+ >
41702
+ ${item.iconName ? x`<span class="icon">${item.iconName}</span>` : null}
41703
+ <span class="label">${item.name}</span>
41704
+ </div>
41705
+ `)}
41706
+ </div>
41707
+ `;
41708
+ }
41709
+ async connectedCallback() {
41710
+ await super.connectedCallback();
41711
+ requestAnimationFrame(() => {
41712
+ document.addEventListener("click", this.boundHandleOutsideClick);
41713
+ document.addEventListener("contextmenu", this.boundHandleOutsideClick);
41714
+ document.addEventListener("keydown", this.boundHandleKeydown);
41715
+ this.classList.add("visible");
41716
+ });
41717
+ }
41718
+ async disconnectedCallback() {
41719
+ await super.disconnectedCallback();
41720
+ document.removeEventListener("click", this.boundHandleOutsideClick);
41721
+ document.removeEventListener("contextmenu", this.boundHandleOutsideClick);
41722
+ document.removeEventListener("keydown", this.boundHandleKeydown);
41723
+ }
41724
+ adjustPosition() {
41725
+ const rect = this.getBoundingClientRect();
41726
+ const windowWidth = window.innerWidth;
41727
+ const windowHeight = window.innerHeight;
41728
+ let x2 = this.x;
41729
+ let y4 = this.y;
41730
+ if (x2 + rect.width > windowWidth - 10) {
41731
+ x2 = windowWidth - rect.width - 10;
41732
+ }
41733
+ if (y4 + rect.height > windowHeight - 10) {
41734
+ y4 = windowHeight - rect.height - 10;
41735
+ }
41736
+ if (x2 < 10) x2 = 10;
41737
+ if (y4 < 10) y4 = 10;
41738
+ this.style.left = `${x2}px`;
41739
+ this.style.top = `${y4}px`;
41740
+ }
41741
+ handleOutsideClick(e10) {
41742
+ const path2 = e10.composedPath();
41743
+ if (!path2.includes(this)) {
41744
+ this.close();
41745
+ }
41746
+ }
41747
+ handleKeydown(e10) {
41748
+ if (e10.key === "Escape") {
41749
+ this.close();
41750
+ }
41751
+ }
41752
+ async handleItemClick(item) {
41753
+ if (item.disabled) return;
41754
+ await item.action();
41755
+ this.close();
41756
+ }
41757
+ close() {
41758
+ this.classList.remove("visible");
41759
+ setTimeout(() => this.remove(), 150);
41760
+ }
41761
+ };
41762
+ _init2 = __decoratorStart(_a2);
41763
+ _menuItems = new WeakMap();
41764
+ _x = new WeakMap();
41765
+ _y = new WeakMap();
41766
+ _visible = new WeakMap();
41767
+ __decorateElement(_init2, 4, "menuItems", _menuItems_dec, _WccContextmenu, _menuItems);
41768
+ __decorateElement(_init2, 4, "x", _x_dec, _WccContextmenu, _x);
41769
+ __decorateElement(_init2, 4, "y", _y_dec, _WccContextmenu, _y);
41770
+ __decorateElement(_init2, 4, "visible", _visible_dec, _WccContextmenu, _visible);
41771
+ _WccContextmenu = __decorateElement(_init2, 0, "WccContextmenu", _WccContextmenu_decorators, _WccContextmenu);
41772
+ __publicField(_WccContextmenu, "styles", [
41773
+ i`
41774
+ :host {
41775
+ position: fixed;
41776
+ z-index: 10000;
41777
+ opacity: 0;
41778
+ transform: scale(0.95) translateY(-5px);
41779
+ transition: opacity 0.15s ease, transform 0.15s ease;
41780
+ pointer-events: none;
41781
+ }
41782
+
41783
+ :host(.visible) {
41784
+ opacity: 1;
41785
+ transform: scale(1) translateY(0);
41786
+ pointer-events: auto;
41787
+ }
41788
+
41789
+ .menu {
41790
+ min-width: 160px;
41791
+ background: #0f0f0f;
41792
+ border: 1px solid rgba(255, 255, 255, 0.1);
41793
+ border-radius: 6px;
41794
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
41795
+ padding: 4px 0;
41796
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
41797
+ font-size: 12px;
41798
+ }
41799
+
41800
+ .menu-item {
41801
+ display: flex;
41802
+ align-items: center;
41803
+ gap: 8px;
41804
+ padding: 8px 12px;
41805
+ color: #ccc;
41806
+ cursor: pointer;
41807
+ transition: background 0.1s ease;
41808
+ user-select: none;
41809
+ }
41810
+
41811
+ .menu-item:hover {
41812
+ background: rgba(59, 130, 246, 0.15);
41813
+ color: #fff;
41814
+ }
41815
+
41816
+ .menu-item.disabled {
41817
+ opacity: 0.4;
41818
+ cursor: not-allowed;
41819
+ pointer-events: none;
41820
+ }
41821
+
41822
+ .menu-item .icon {
41823
+ font-family: 'Material Symbols Outlined';
41824
+ font-size: 16px;
41825
+ font-weight: normal;
41826
+ font-style: normal;
41827
+ line-height: 1;
41828
+ letter-spacing: normal;
41829
+ text-transform: none;
41830
+ white-space: nowrap;
41831
+ word-wrap: normal;
41832
+ direction: ltr;
41833
+ font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
41834
+ opacity: 0.7;
41835
+ }
41836
+
41837
+ .menu-item:hover .icon {
41838
+ opacity: 1;
41839
+ }
41840
+
41841
+ .menu-item .label {
41842
+ flex: 1;
41843
+ }
41844
+ `
41845
+ ]);
41846
+ __runInitializers(_init2, 1, _WccContextmenu);
41847
+ var WccContextmenu = _WccContextmenu;
41848
+
41665
41849
  // ts_web/elements/wcc-sidebar.ts
41666
- var _collapsedSections_dec, _expandedElements_dec, _isNative_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a2, _WccSidebar_decorators, _init2, _selectedItem, _selectedType, _dashboardRef, _isNative2, _expandedElements, _collapsedSections;
41850
+ var _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;
41667
41851
  _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()], _a2) {
41852
+ 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 })], _a3) {
41669
41853
  constructor() {
41670
41854
  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);
41855
+ __privateAdd(this, _selectedItem, __runInitializers(_init3, 8, this)), __runInitializers(_init3, 11, this);
41856
+ __privateAdd(this, _selectedType, __runInitializers(_init3, 12, this)), __runInitializers(_init3, 15, this);
41857
+ __privateAdd(this, _dashboardRef, __runInitializers(_init3, 16, this)), __runInitializers(_init3, 19, this);
41858
+ __privateAdd(this, _isNative2, __runInitializers(_init3, 20, this, false)), __runInitializers(_init3, 23, this);
41859
+ __privateAdd(this, _expandedElements, __runInitializers(_init3, 24, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 27, this);
41860
+ __privateAdd(this, _collapsedSections, __runInitializers(_init3, 28, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 31, this);
41861
+ __privateAdd(this, _searchQuery, __runInitializers(_init3, 32, this, "")), __runInitializers(_init3, 35, this);
41862
+ __privateAdd(this, _pinnedItems, __runInitializers(_init3, 36, this, /* @__PURE__ */ new Set())), __runInitializers(_init3, 39, this);
41677
41863
  __publicField(this, "sectionsInitialized", false);
41678
41864
  }
41679
41865
  render() {
@@ -41802,7 +41988,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41802
41988
  }
41803
41989
 
41804
41990
  .selectOption.folder {
41805
- grid-template-columns: 16px 20px 1fr;
41991
+ grid-template-columns: 16px 1fr;
41806
41992
  }
41807
41993
 
41808
41994
  .selectOption .expand-icon {
@@ -41899,8 +42085,109 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41899
42085
  ::-webkit-scrollbar-thumb:hover {
41900
42086
  background: rgba(255, 255, 255, 0.2);
41901
42087
  }
42088
+
42089
+ .search-container {
42090
+ padding: 0.5rem;
42091
+ border-bottom: 1px solid var(--border);
42092
+ }
42093
+
42094
+ .search-input {
42095
+ width: 100%;
42096
+ box-sizing: border-box;
42097
+ background: var(--input);
42098
+ border: 1px solid var(--border);
42099
+ border-radius: var(--radius);
42100
+ padding: 0.5rem 0.75rem;
42101
+ color: var(--foreground);
42102
+ font-size: 0.75rem;
42103
+ font-family: inherit;
42104
+ outline: none;
42105
+ transition: border-color 0.15s ease;
42106
+ }
42107
+
42108
+ .search-input:focus {
42109
+ border-color: var(--primary);
42110
+ }
42111
+
42112
+ .search-input::placeholder {
42113
+ color: var(--muted-foreground);
42114
+ }
42115
+
42116
+ .highlight {
42117
+ background: rgba(59, 130, 246, 0.3);
42118
+ border-radius: 2px;
42119
+ }
42120
+
42121
+ /* Pinned item highlight in original section */
42122
+ .selectOption.pinned {
42123
+ background: rgba(245, 158, 11, 0.08);
42124
+ }
42125
+
42126
+ .selectOption.pinned:hover {
42127
+ background: rgba(245, 158, 11, 0.12);
42128
+ }
42129
+
42130
+ .selectOption.pinned.selected {
42131
+ background: rgba(245, 158, 11, 0.18);
42132
+ }
42133
+
42134
+ /* Pinned section styling */
42135
+ .section-header.pinned-section {
42136
+ background: rgba(245, 158, 11, 0.08);
42137
+ color: #f59e0b;
42138
+ }
42139
+
42140
+ .section-header.pinned-section:hover {
42141
+ background: rgba(245, 158, 11, 0.12);
42142
+ }
42143
+
42144
+ .section-header.pinned-section .section-icon {
42145
+ opacity: 0.8;
42146
+ }
42147
+
42148
+ /* Section tag for pinned items */
42149
+ .section-tag {
42150
+ font-size: 0.55rem;
42151
+ color: #555;
42152
+ margin-left: auto;
42153
+ text-transform: uppercase;
42154
+ letter-spacing: 0.03em;
42155
+ }
42156
+
42157
+ /* Group container */
42158
+ .item-group {
42159
+ margin: 0.375rem 0.375rem;
42160
+ border: 1px solid rgba(255, 255, 255, 0.08);
42161
+ border-radius: 6px;
42162
+ padding: 0.25rem 0;
42163
+ background: rgba(255, 255, 255, 0.01);
42164
+ }
42165
+
42166
+ .item-group-legend {
42167
+ font-size: 0.55rem;
42168
+ text-transform: uppercase;
42169
+ letter-spacing: 0.05em;
42170
+ color: #555;
42171
+ padding: 0.125rem 0.625rem 0.25rem;
42172
+ display: block;
42173
+ }
42174
+
42175
+ .item-group .selectOption {
42176
+ margin-left: 0.25rem;
42177
+ margin-right: 0.25rem;
42178
+ }
41902
42179
  </style>
42180
+ <div class="search-container">
42181
+ <input
42182
+ type="text"
42183
+ class="search-input"
42184
+ placeholder="Search..."
42185
+ .value=${this.searchQuery}
42186
+ @input=${this.handleSearchInput}
42187
+ />
42188
+ </div>
41903
42189
  <div class="menu">
42190
+ ${this.renderPinnedSection()}
41904
42191
  ${this.renderSections()}
41905
42192
  </div>
41906
42193
  `;
@@ -41909,7 +42196,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41909
42196
  * Initialize collapsed sections from section config
41910
42197
  */
41911
42198
  initCollapsedSections() {
41912
- if (this.sectionsInitialized) return;
42199
+ if (this.sectionsInitialized || !this.dashboardRef?.sections) return;
41913
42200
  const collapsed = /* @__PURE__ */ new Set();
41914
42201
  for (const section of this.dashboardRef.sections) {
41915
42202
  if (section.collapsed) {
@@ -41919,12 +42206,104 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41919
42206
  this.collapsedSections = collapsed;
41920
42207
  this.sectionsInitialized = true;
41921
42208
  }
42209
+ // ============ Pinning helpers ============
42210
+ getPinKey(sectionName, itemName) {
42211
+ return `${sectionName}::${itemName}`;
42212
+ }
42213
+ isPinned(sectionName, itemName) {
42214
+ return this.pinnedItems.has(this.getPinKey(sectionName, itemName));
42215
+ }
42216
+ togglePin(sectionName, itemName) {
42217
+ const key2 = this.getPinKey(sectionName, itemName);
42218
+ const newPinned = new Set(this.pinnedItems);
42219
+ if (newPinned.has(key2)) {
42220
+ newPinned.delete(key2);
42221
+ } else {
42222
+ newPinned.add(key2);
42223
+ }
42224
+ this.pinnedItems = newPinned;
42225
+ this.dispatchEvent(new CustomEvent("pinnedChanged", { detail: newPinned }));
42226
+ }
42227
+ showContextMenu(e10, sectionName, itemName) {
42228
+ const isPinned = this.isPinned(sectionName, itemName);
42229
+ WccContextmenu.show(e10, [
42230
+ {
42231
+ name: isPinned ? "Unpin" : "Pin",
42232
+ iconName: isPinned ? "push_pin" : "push_pin",
42233
+ action: () => this.togglePin(sectionName, itemName)
42234
+ }
42235
+ ]);
42236
+ }
42237
+ /**
42238
+ * Render the PINNED section (only if there are pinned items)
42239
+ */
42240
+ renderPinnedSection() {
42241
+ if (!this.dashboardRef?.sections || this.pinnedItems.size === 0) {
42242
+ return null;
42243
+ }
42244
+ const isCollapsed = this.collapsedSections.has("__pinned__");
42245
+ const pinnedEntries = [];
42246
+ for (const key2 of this.pinnedItems) {
42247
+ const [sectionName, itemName] = key2.split("::");
42248
+ const section = this.dashboardRef.sections.find((s8) => s8.name === sectionName);
42249
+ if (section) {
42250
+ const entries = getSectionItems(section);
42251
+ const found = entries.find(([name]) => name === itemName);
42252
+ if (found) {
42253
+ pinnedEntries.push({ sectionName, itemName, item: found[1], section });
42254
+ }
42255
+ }
42256
+ }
42257
+ const filteredEntries = pinnedEntries.filter((e10) => this.matchesSearch(e10.itemName));
42258
+ if (filteredEntries.length === 0 && this.searchQuery) {
42259
+ return null;
42260
+ }
42261
+ return x`
42262
+ <div
42263
+ class="section-header pinned-section ${isCollapsed ? "collapsed" : ""}"
42264
+ @click=${() => this.toggleSectionCollapsed("__pinned__")}
42265
+ >
42266
+ <i class="material-symbols-outlined expand-icon">expand_more</i>
42267
+ <i class="material-symbols-outlined section-icon">push_pin</i>
42268
+ <span>Pinned</span>
42269
+ </div>
42270
+ <div class="section-content ${isCollapsed ? "collapsed" : ""}">
42271
+ ${filteredEntries.map(({ sectionName, itemName, item, section }) => {
42272
+ const isSelected = this.selectedItem === item;
42273
+ const type5 = section.type === "elements" ? "element" : "page";
42274
+ const icon = section.type === "elements" ? "featured_video" : "insert_drive_file";
42275
+ return x`
42276
+ <div
42277
+ class="selectOption ${isSelected ? "selected" : ""}"
42278
+ @click=${async () => {
42279
+ await dist_ts_exports25.DomTools.setupDomTools();
42280
+ this.selectItem(type5, itemName, item, 0, section);
42281
+ }}
42282
+ @contextmenu=${(e10) => this.showContextMenu(e10, sectionName, itemName)}
42283
+ >
42284
+ <i class="material-symbols-outlined">${icon}</i>
42285
+ <div class="text">${this.highlightMatch(itemName)}</div>
42286
+ <span class="section-tag">${sectionName}</span>
42287
+ </div>
42288
+ `;
42289
+ })}
42290
+ </div>
42291
+ `;
42292
+ }
41922
42293
  /**
41923
42294
  * Render all sections
41924
42295
  */
41925
42296
  renderSections() {
42297
+ if (!this.dashboardRef?.sections) {
42298
+ return null;
42299
+ }
41926
42300
  this.initCollapsedSections();
41927
- return this.dashboardRef.sections.map((section, index2) => {
42301
+ return this.dashboardRef.sections.map((section) => {
42302
+ const entries = getSectionItems(section);
42303
+ const filteredEntries = entries.filter(([name]) => this.matchesSearch(name));
42304
+ if (filteredEntries.length === 0 && this.searchQuery) {
42305
+ return null;
42306
+ }
41928
42307
  const isCollapsed = this.collapsedSections.has(section.name);
41929
42308
  const sectionIcon = section.icon || (section.type === "pages" ? "insert_drive_file" : "widgets");
41930
42309
  return x`
@@ -41947,74 +42326,107 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41947
42326
  */
41948
42327
  renderSectionItems(section) {
41949
42328
  const entries = getSectionItems(section);
42329
+ const filteredEntries = entries.filter(([name]) => this.matchesSearch(name));
41950
42330
  if (section.type === "pages") {
41951
- return entries.map(([pageName, item]) => {
42331
+ return filteredEntries.map(([pageName, item]) => {
42332
+ const isPinned = this.isPinned(section.name, pageName);
41952
42333
  return x`
41953
42334
  <div
41954
- class="selectOption ${this.selectedItem === item ? "selected" : ""}"
42335
+ class="selectOption ${this.selectedItem === item ? "selected" : ""} ${isPinned ? "pinned" : ""}"
41955
42336
  @click=${async () => {
41956
42337
  await dist_ts_exports25.DomTools.setupDomTools();
41957
42338
  this.selectItem("page", pageName, item, 0, section);
41958
42339
  }}
42340
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, pageName)}
41959
42341
  >
41960
42342
  <i class="material-symbols-outlined">insert_drive_file</i>
41961
- <div class="text">${pageName}</div>
42343
+ <div class="text">${this.highlightMatch(pageName)}</div>
41962
42344
  </div>
41963
42345
  `;
41964
42346
  });
41965
42347
  } else {
41966
- return entries.map(([elementName, item]) => {
41967
- const anonItem = item;
41968
- const demoCount = anonItem.demo ? getDemoCount(anonItem.demo) : 0;
41969
- const isMultiDemo = anonItem.demo && hasMultipleDemos(anonItem.demo);
41970
- const isExpanded = this.expandedElements.has(elementName);
41971
- const isSelected = this.selectedItem === item;
41972
- if (isMultiDemo) {
41973
- return x`
41974
- <div
41975
- class="selectOption folder ${isExpanded ? "expanded" : ""} ${isSelected ? "selected" : ""}"
41976
- @click=${() => this.toggleExpanded(elementName)}
41977
- >
41978
- <i class="material-symbols-outlined expand-icon">chevron_right</i>
41979
- <i class="material-symbols-outlined">folder</i>
41980
- <div class="text">${elementName}</div>
41981
- </div>
41982
- ${isExpanded ? x`
41983
- <div class="demo-children">
41984
- ${Array.from({ length: demoCount }, (_3, i9) => {
41985
- const demoIndex = i9;
41986
- const isThisDemoSelected = isSelected && this.dashboardRef.selectedDemoIndex === demoIndex;
41987
- return x`
41988
- <div
41989
- class="demo-child ${isThisDemoSelected ? "selected" : ""}"
41990
- @click=${async () => {
41991
- await dist_ts_exports25.DomTools.setupDomTools();
41992
- this.selectItem("element", elementName, item, demoIndex, section);
41993
- }}
41994
- >
41995
- <i class="material-symbols-outlined">play_circle</i>
41996
- <div class="text">demo${demoIndex + 1}</div>
41997
- </div>
41998
- `;
41999
- })}
42000
- </div>
42001
- ` : null}
42002
- `;
42003
- } else {
42004
- return x`
42005
- <div
42006
- class="selectOption ${isSelected ? "selected" : ""}"
42007
- @click=${async () => {
42008
- await dist_ts_exports25.DomTools.setupDomTools();
42009
- this.selectItem("element", elementName, item, 0, section);
42010
- }}
42011
- >
42012
- <i class="material-symbols-outlined">featured_video</i>
42013
- <div class="text">${elementName}</div>
42014
- </div>
42015
- `;
42016
- }
42017
- });
42348
+ const groupedItems = /* @__PURE__ */ new Map();
42349
+ for (const entry of filteredEntries) {
42350
+ const [, item] = entry;
42351
+ const group = item.demoGroup || null;
42352
+ if (!groupedItems.has(group)) {
42353
+ groupedItems.set(group, []);
42354
+ }
42355
+ groupedItems.get(group).push(entry);
42356
+ }
42357
+ const result = [];
42358
+ const ungrouped = groupedItems.get(null) || [];
42359
+ for (const entry of ungrouped) {
42360
+ result.push(this.renderElementItem(entry, section));
42361
+ }
42362
+ for (const [groupName, items] of groupedItems) {
42363
+ if (groupName === null) continue;
42364
+ result.push(x`
42365
+ <div class="item-group">
42366
+ <span class="item-group-legend">${groupName}</span>
42367
+ ${items.map((entry) => this.renderElementItem(entry, section))}
42368
+ </div>
42369
+ `);
42370
+ }
42371
+ return result;
42372
+ }
42373
+ }
42374
+ /**
42375
+ * Render a single element item (used by renderSectionItems)
42376
+ */
42377
+ renderElementItem(entry, section) {
42378
+ const [elementName, item] = entry;
42379
+ const anonItem = item;
42380
+ const demoCount = anonItem.demo ? getDemoCount(anonItem.demo) : 0;
42381
+ const isMultiDemo = anonItem.demo && hasMultipleDemos(anonItem.demo);
42382
+ const isExpanded = this.expandedElements.has(elementName);
42383
+ const isSelected = this.selectedItem === item;
42384
+ const isPinned = this.isPinned(section.name, elementName);
42385
+ if (isMultiDemo) {
42386
+ return x`
42387
+ <div
42388
+ class="selectOption folder ${isExpanded ? "expanded" : ""} ${isSelected ? "selected" : ""} ${isPinned ? "pinned" : ""}"
42389
+ @click=${() => this.toggleExpanded(elementName)}
42390
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, elementName)}
42391
+ >
42392
+ <i class="material-symbols-outlined expand-icon">chevron_right</i>
42393
+ <div class="text">${this.highlightMatch(elementName)}</div>
42394
+ </div>
42395
+ ${isExpanded ? x`
42396
+ <div class="demo-children">
42397
+ ${Array.from({ length: demoCount }, (_3, i9) => {
42398
+ const demoIndex = i9;
42399
+ const isThisDemoSelected = isSelected && this.dashboardRef.selectedDemoIndex === demoIndex;
42400
+ return x`
42401
+ <div
42402
+ class="demo-child ${isThisDemoSelected ? "selected" : ""}"
42403
+ @click=${async () => {
42404
+ await dist_ts_exports25.DomTools.setupDomTools();
42405
+ this.selectItem("element", elementName, item, demoIndex, section);
42406
+ }}
42407
+ >
42408
+ <i class="material-symbols-outlined">play_circle</i>
42409
+ <div class="text">demo${demoIndex + 1}</div>
42410
+ </div>
42411
+ `;
42412
+ })}
42413
+ </div>
42414
+ ` : null}
42415
+ `;
42416
+ } else {
42417
+ return x`
42418
+ <div
42419
+ class="selectOption ${isSelected ? "selected" : ""} ${isPinned ? "pinned" : ""}"
42420
+ @click=${async () => {
42421
+ await dist_ts_exports25.DomTools.setupDomTools();
42422
+ this.selectItem("element", elementName, item, 0, section);
42423
+ }}
42424
+ @contextmenu=${(e10) => this.showContextMenu(e10, section.name, elementName)}
42425
+ >
42426
+ <i class="material-symbols-outlined">featured_video</i>
42427
+ <div class="text">${this.highlightMatch(elementName)}</div>
42428
+ </div>
42429
+ `;
42018
42430
  }
42019
42431
  }
42020
42432
  toggleSectionCollapsed(sectionName) {
@@ -42035,9 +42447,29 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
42035
42447
  }
42036
42448
  this.expandedElements = newSet;
42037
42449
  }
42450
+ handleSearchInput(e10) {
42451
+ const input = e10.target;
42452
+ this.searchQuery = input.value;
42453
+ this.dispatchEvent(new CustomEvent("searchChanged", { detail: this.searchQuery }));
42454
+ }
42455
+ matchesSearch(name) {
42456
+ if (!this.searchQuery) return true;
42457
+ return name.toLowerCase().includes(this.searchQuery.toLowerCase());
42458
+ }
42459
+ highlightMatch(text8) {
42460
+ if (!this.searchQuery) return x`${text8}`;
42461
+ const lowerText = text8.toLowerCase();
42462
+ const lowerQuery = this.searchQuery.toLowerCase();
42463
+ const index2 = lowerText.indexOf(lowerQuery);
42464
+ if (index2 === -1) return x`${text8}`;
42465
+ const before = text8.slice(0, index2);
42466
+ const match2 = text8.slice(index2, index2 + this.searchQuery.length);
42467
+ const after = text8.slice(index2 + this.searchQuery.length);
42468
+ return x`${before}<span class="highlight">${match2}</span>${after}`;
42469
+ }
42038
42470
  updated(changedProperties) {
42039
42471
  super.updated(changedProperties);
42040
- if (changedProperties.has("selectedItem") && this.selectedItem) {
42472
+ if (changedProperties.has("selectedItem") && this.selectedItem && this.dashboardRef?.sections) {
42041
42473
  for (const section of this.dashboardRef.sections) {
42042
42474
  if (section.type !== "elements") continue;
42043
42475
  const entries = getSectionItems(section);
@@ -42088,30 +42520,34 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
42088
42520
  this.requestUpdate();
42089
42521
  }
42090
42522
  };
42091
- _init2 = __decoratorStart(_a2);
42523
+ _init3 = __decoratorStart(_a3);
42092
42524
  _selectedItem = new WeakMap();
42093
42525
  _selectedType = new WeakMap();
42094
42526
  _dashboardRef = new WeakMap();
42095
42527
  _isNative2 = new WeakMap();
42096
42528
  _expandedElements = new WeakMap();
42097
42529
  _collapsedSections = new WeakMap();
42098
- __decorateElement(_init2, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
42099
- __decorateElement(_init2, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
42100
- __decorateElement(_init2, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
42101
- __decorateElement(_init2, 4, "isNative", _isNative_dec2, WccSidebar, _isNative2);
42102
- __decorateElement(_init2, 4, "expandedElements", _expandedElements_dec, WccSidebar, _expandedElements);
42103
- __decorateElement(_init2, 4, "collapsedSections", _collapsedSections_dec, WccSidebar, _collapsedSections);
42104
- WccSidebar = __decorateElement(_init2, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
42105
- __runInitializers(_init2, 1, WccSidebar);
42530
+ _searchQuery = new WeakMap();
42531
+ _pinnedItems = new WeakMap();
42532
+ __decorateElement(_init3, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
42533
+ __decorateElement(_init3, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
42534
+ __decorateElement(_init3, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
42535
+ __decorateElement(_init3, 4, "isNative", _isNative_dec2, WccSidebar, _isNative2);
42536
+ __decorateElement(_init3, 4, "expandedElements", _expandedElements_dec, WccSidebar, _expandedElements);
42537
+ __decorateElement(_init3, 4, "collapsedSections", _collapsedSections_dec, WccSidebar, _collapsedSections);
42538
+ __decorateElement(_init3, 4, "searchQuery", _searchQuery_dec, WccSidebar, _searchQuery);
42539
+ __decorateElement(_init3, 4, "pinnedItems", _pinnedItems_dec, WccSidebar, _pinnedItems);
42540
+ WccSidebar = __decorateElement(_init3, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
42541
+ __runInitializers(_init3, 1, WccSidebar);
42106
42542
 
42107
42543
  // ts_web/elements/wcc-record-button.ts
42108
- var _duration_dec, _state_dec, _a3, _WccRecordButton_decorators, _init3, _state, _duration;
42544
+ var _duration_dec, _state_dec, _a4, _WccRecordButton_decorators, _init4, _state, _duration;
42109
42545
  _WccRecordButton_decorators = [t4("wcc-record-button")];
42110
- var WccRecordButton = class extends (_a3 = DeesElement, _state_dec = [n5({ type: String })], _duration_dec = [n5({ type: Number })], _a3) {
42546
+ var WccRecordButton = class extends (_a4 = DeesElement, _state_dec = [n5({ type: String })], _duration_dec = [n5({ type: Number })], _a4) {
42111
42547
  constructor() {
42112
42548
  super(...arguments);
42113
- __privateAdd(this, _state, __runInitializers(_init3, 8, this, "idle")), __runInitializers(_init3, 11, this);
42114
- __privateAdd(this, _duration, __runInitializers(_init3, 12, this, 0)), __runInitializers(_init3, 15, this);
42549
+ __privateAdd(this, _state, __runInitializers(_init4, 8, this, "idle")), __runInitializers(_init4, 11, this);
42550
+ __privateAdd(this, _duration, __runInitializers(_init4, 12, this, 0)), __runInitializers(_init4, 15, this);
42115
42551
  __publicField(this, "handleClick", () => {
42116
42552
  this.dispatchEvent(new CustomEvent("record-click", {
42117
42553
  bubbles: true,
@@ -42153,12 +42589,12 @@ var WccRecordButton = class extends (_a3 = DeesElement, _state_dec = [n5({ type:
42153
42589
  }
42154
42590
  }
42155
42591
  };
42156
- _init3 = __decoratorStart(_a3);
42592
+ _init4 = __decoratorStart(_a4);
42157
42593
  _state = new WeakMap();
42158
42594
  _duration = new WeakMap();
42159
- __decorateElement(_init3, 4, "state", _state_dec, WccRecordButton, _state);
42160
- __decorateElement(_init3, 4, "duration", _duration_dec, WccRecordButton, _duration);
42161
- WccRecordButton = __decorateElement(_init3, 0, "WccRecordButton", _WccRecordButton_decorators, WccRecordButton);
42595
+ __decorateElement(_init4, 4, "state", _state_dec, WccRecordButton, _state);
42596
+ __decorateElement(_init4, 4, "duration", _duration_dec, WccRecordButton, _duration);
42597
+ WccRecordButton = __decorateElement(_init4, 0, "WccRecordButton", _WccRecordButton_decorators, WccRecordButton);
42162
42598
  __publicField(WccRecordButton, "styles", [
42163
42599
  i`
42164
42600
  :host {
@@ -42211,7 +42647,7 @@ __publicField(WccRecordButton, "styles", [
42211
42647
  }
42212
42648
  `
42213
42649
  ]);
42214
- __runInitializers(_init3, 1, WccRecordButton);
42650
+ __runInitializers(_init4, 1, WccRecordButton);
42215
42651
 
42216
42652
  // ts_web/services/recorder.service.ts
42217
42653
  var RecorderService = class {
@@ -42486,25 +42922,25 @@ var RecorderService = class {
42486
42922
  };
42487
42923
 
42488
42924
  // ts_web/elements/wcc-recording-panel.ts
42489
- 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;
42925
+ 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;
42490
42926
  _WccRecordingPanel_decorators = [t4("wcc-recording-panel")];
42491
- 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) {
42927
+ 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) {
42492
42928
  constructor() {
42493
42929
  super();
42494
- __privateAdd(this, _dashboardRef2, __runInitializers(_init4, 8, this)), __runInitializers(_init4, 11, this);
42495
- __privateAdd(this, _panelState, __runInitializers(_init4, 12, this, "options")), __runInitializers(_init4, 15, this);
42496
- __privateAdd(this, _recordingMode, __runInitializers(_init4, 16, this, "viewport")), __runInitializers(_init4, 19, this);
42497
- __privateAdd(this, _audioEnabled, __runInitializers(_init4, 20, this, false)), __runInitializers(_init4, 23, this);
42498
- __privateAdd(this, _selectedMicrophoneId, __runInitializers(_init4, 24, this, "")), __runInitializers(_init4, 27, this);
42499
- __privateAdd(this, _availableMicrophones, __runInitializers(_init4, 28, this, [])), __runInitializers(_init4, 31, this);
42500
- __privateAdd(this, _audioLevel, __runInitializers(_init4, 32, this, 0)), __runInitializers(_init4, 35, this);
42501
- __privateAdd(this, _recordingDuration, __runInitializers(_init4, 36, this, 0)), __runInitializers(_init4, 39, this);
42502
- __privateAdd(this, _previewVideoUrl, __runInitializers(_init4, 40, this, "")), __runInitializers(_init4, 43, this);
42503
- __privateAdd(this, _trimStart, __runInitializers(_init4, 44, this, 0)), __runInitializers(_init4, 47, this);
42504
- __privateAdd(this, _trimEnd, __runInitializers(_init4, 48, this, 0)), __runInitializers(_init4, 51, this);
42505
- __privateAdd(this, _videoDuration, __runInitializers(_init4, 52, this, 0)), __runInitializers(_init4, 55, this);
42506
- __privateAdd(this, _isDraggingTrim, __runInitializers(_init4, 56, this, null)), __runInitializers(_init4, 59, this);
42507
- __privateAdd(this, _isExporting, __runInitializers(_init4, 60, this, false)), __runInitializers(_init4, 63, this);
42930
+ __privateAdd(this, _dashboardRef2, __runInitializers(_init5, 8, this)), __runInitializers(_init5, 11, this);
42931
+ __privateAdd(this, _panelState, __runInitializers(_init5, 12, this, "options")), __runInitializers(_init5, 15, this);
42932
+ __privateAdd(this, _recordingMode, __runInitializers(_init5, 16, this, "viewport")), __runInitializers(_init5, 19, this);
42933
+ __privateAdd(this, _audioEnabled, __runInitializers(_init5, 20, this, false)), __runInitializers(_init5, 23, this);
42934
+ __privateAdd(this, _selectedMicrophoneId, __runInitializers(_init5, 24, this, "")), __runInitializers(_init5, 27, this);
42935
+ __privateAdd(this, _availableMicrophones, __runInitializers(_init5, 28, this, [])), __runInitializers(_init5, 31, this);
42936
+ __privateAdd(this, _audioLevel, __runInitializers(_init5, 32, this, 0)), __runInitializers(_init5, 35, this);
42937
+ __privateAdd(this, _recordingDuration, __runInitializers(_init5, 36, this, 0)), __runInitializers(_init5, 39, this);
42938
+ __privateAdd(this, _previewVideoUrl, __runInitializers(_init5, 40, this, "")), __runInitializers(_init5, 43, this);
42939
+ __privateAdd(this, _trimStart, __runInitializers(_init5, 44, this, 0)), __runInitializers(_init5, 47, this);
42940
+ __privateAdd(this, _trimEnd, __runInitializers(_init5, 48, this, 0)), __runInitializers(_init5, 51, this);
42941
+ __privateAdd(this, _videoDuration, __runInitializers(_init5, 52, this, 0)), __runInitializers(_init5, 55, this);
42942
+ __privateAdd(this, _isDraggingTrim, __runInitializers(_init5, 56, this, null)), __runInitializers(_init5, 59, this);
42943
+ __privateAdd(this, _isExporting, __runInitializers(_init5, 60, this, false)), __runInitializers(_init5, 63, this);
42508
42944
  // Service instance
42509
42945
  __publicField(this, "recorderService");
42510
42946
  this.recorderService = new RecorderService({
@@ -42898,7 +43334,7 @@ var WccRecordingPanel = class extends (_a4 = DeesElement, _dashboardRef_dec2 = [
42898
43334
  }
42899
43335
  }
42900
43336
  };
42901
- _init4 = __decoratorStart(_a4);
43337
+ _init5 = __decoratorStart(_a5);
42902
43338
  _dashboardRef2 = new WeakMap();
42903
43339
  _panelState = new WeakMap();
42904
43340
  _recordingMode = new WeakMap();
@@ -42913,21 +43349,21 @@ _trimEnd = new WeakMap();
42913
43349
  _videoDuration = new WeakMap();
42914
43350
  _isDraggingTrim = new WeakMap();
42915
43351
  _isExporting = new WeakMap();
42916
- __decorateElement(_init4, 4, "dashboardRef", _dashboardRef_dec2, WccRecordingPanel, _dashboardRef2);
42917
- __decorateElement(_init4, 4, "panelState", _panelState_dec, WccRecordingPanel, _panelState);
42918
- __decorateElement(_init4, 4, "recordingMode", _recordingMode_dec, WccRecordingPanel, _recordingMode);
42919
- __decorateElement(_init4, 4, "audioEnabled", _audioEnabled_dec, WccRecordingPanel, _audioEnabled);
42920
- __decorateElement(_init4, 4, "selectedMicrophoneId", _selectedMicrophoneId_dec, WccRecordingPanel, _selectedMicrophoneId);
42921
- __decorateElement(_init4, 4, "availableMicrophones", _availableMicrophones_dec, WccRecordingPanel, _availableMicrophones);
42922
- __decorateElement(_init4, 4, "audioLevel", _audioLevel_dec, WccRecordingPanel, _audioLevel);
42923
- __decorateElement(_init4, 4, "recordingDuration", _recordingDuration_dec, WccRecordingPanel, _recordingDuration);
42924
- __decorateElement(_init4, 4, "previewVideoUrl", _previewVideoUrl_dec, WccRecordingPanel, _previewVideoUrl);
42925
- __decorateElement(_init4, 4, "trimStart", _trimStart_dec, WccRecordingPanel, _trimStart);
42926
- __decorateElement(_init4, 4, "trimEnd", _trimEnd_dec, WccRecordingPanel, _trimEnd);
42927
- __decorateElement(_init4, 4, "videoDuration", _videoDuration_dec, WccRecordingPanel, _videoDuration);
42928
- __decorateElement(_init4, 4, "isDraggingTrim", _isDraggingTrim_dec, WccRecordingPanel, _isDraggingTrim);
42929
- __decorateElement(_init4, 4, "isExporting", _isExporting_dec, WccRecordingPanel, _isExporting);
42930
- WccRecordingPanel = __decorateElement(_init4, 0, "WccRecordingPanel", _WccRecordingPanel_decorators, WccRecordingPanel);
43352
+ __decorateElement(_init5, 4, "dashboardRef", _dashboardRef_dec2, WccRecordingPanel, _dashboardRef2);
43353
+ __decorateElement(_init5, 4, "panelState", _panelState_dec, WccRecordingPanel, _panelState);
43354
+ __decorateElement(_init5, 4, "recordingMode", _recordingMode_dec, WccRecordingPanel, _recordingMode);
43355
+ __decorateElement(_init5, 4, "audioEnabled", _audioEnabled_dec, WccRecordingPanel, _audioEnabled);
43356
+ __decorateElement(_init5, 4, "selectedMicrophoneId", _selectedMicrophoneId_dec, WccRecordingPanel, _selectedMicrophoneId);
43357
+ __decorateElement(_init5, 4, "availableMicrophones", _availableMicrophones_dec, WccRecordingPanel, _availableMicrophones);
43358
+ __decorateElement(_init5, 4, "audioLevel", _audioLevel_dec, WccRecordingPanel, _audioLevel);
43359
+ __decorateElement(_init5, 4, "recordingDuration", _recordingDuration_dec, WccRecordingPanel, _recordingDuration);
43360
+ __decorateElement(_init5, 4, "previewVideoUrl", _previewVideoUrl_dec, WccRecordingPanel, _previewVideoUrl);
43361
+ __decorateElement(_init5, 4, "trimStart", _trimStart_dec, WccRecordingPanel, _trimStart);
43362
+ __decorateElement(_init5, 4, "trimEnd", _trimEnd_dec, WccRecordingPanel, _trimEnd);
43363
+ __decorateElement(_init5, 4, "videoDuration", _videoDuration_dec, WccRecordingPanel, _videoDuration);
43364
+ __decorateElement(_init5, 4, "isDraggingTrim", _isDraggingTrim_dec, WccRecordingPanel, _isDraggingTrim);
43365
+ __decorateElement(_init5, 4, "isExporting", _isExporting_dec, WccRecordingPanel, _isExporting);
43366
+ WccRecordingPanel = __decorateElement(_init5, 0, "WccRecordingPanel", _WccRecordingPanel_decorators, WccRecordingPanel);
42931
43367
  __publicField(WccRecordingPanel, "styles", [
42932
43368
  i`
42933
43369
  :host {
@@ -43406,31 +43842,31 @@ __publicField(WccRecordingPanel, "styles", [
43406
43842
 
43407
43843
  `
43408
43844
  ]);
43409
- __runInitializers(_init4, 1, WccRecordingPanel);
43845
+ __runInitializers(_init5, 1, WccRecordingPanel);
43410
43846
 
43411
43847
  // ts_web/elements/wcc-properties.ts
43412
- 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;
43848
+ var _recordingDuration_dec2, _isRecording_dec, _showRecordingPanel_dec, _editingProperties_dec, _propertyContent_dec, _isNative_dec3, _warning_dec, _selectedTheme_dec, _selectedViewport_dec, _selectedItem_dec2, _dashboardRef_dec3, _a6, _WccProperties_decorators, _init6, _dashboardRef3, _selectedItem2, _selectedViewport, _selectedTheme, _warning, _isNative3, _propertyContent, _editingProperties, _showRecordingPanel, _isRecording, _recordingDuration2;
43413
43849
  var environment = "native";
43414
43850
  var setEnvironment = (envArg) => {
43415
43851
  environment = envArg;
43416
43852
  };
43417
43853
  _WccProperties_decorators = [t4("wcc-properties")];
43418
- var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
43854
+ var WccProperties = class extends (_a6 = DeesElement, _dashboardRef_dec3 = [n5({
43419
43855
  type: WccDashboard2
43420
- })], _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) {
43856
+ })], _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()], _a6) {
43421
43857
  constructor() {
43422
43858
  super(...arguments);
43423
- __privateAdd(this, _dashboardRef3, __runInitializers(_init5, 8, this)), __runInitializers(_init5, 11, this);
43424
- __privateAdd(this, _selectedItem2, __runInitializers(_init5, 12, this)), __runInitializers(_init5, 15, this);
43425
- __privateAdd(this, _selectedViewport, __runInitializers(_init5, 16, this, "native")), __runInitializers(_init5, 19, this);
43426
- __privateAdd(this, _selectedTheme, __runInitializers(_init5, 20, this, "dark")), __runInitializers(_init5, 23, this);
43427
- __privateAdd(this, _warning, __runInitializers(_init5, 24, this, null)), __runInitializers(_init5, 27, this);
43428
- __privateAdd(this, _isNative3, __runInitializers(_init5, 28, this, false)), __runInitializers(_init5, 31, this);
43429
- __privateAdd(this, _propertyContent, __runInitializers(_init5, 32, this, [])), __runInitializers(_init5, 35, this);
43430
- __privateAdd(this, _editingProperties, __runInitializers(_init5, 36, this, [])), __runInitializers(_init5, 39, this);
43431
- __privateAdd(this, _showRecordingPanel, __runInitializers(_init5, 40, this, false)), __runInitializers(_init5, 43, this);
43432
- __privateAdd(this, _isRecording, __runInitializers(_init5, 44, this, false)), __runInitializers(_init5, 47, this);
43433
- __privateAdd(this, _recordingDuration2, __runInitializers(_init5, 48, this, 0)), __runInitializers(_init5, 51, this);
43859
+ __privateAdd(this, _dashboardRef3, __runInitializers(_init6, 8, this)), __runInitializers(_init6, 11, this);
43860
+ __privateAdd(this, _selectedItem2, __runInitializers(_init6, 12, this)), __runInitializers(_init6, 15, this);
43861
+ __privateAdd(this, _selectedViewport, __runInitializers(_init6, 16, this, "native")), __runInitializers(_init6, 19, this);
43862
+ __privateAdd(this, _selectedTheme, __runInitializers(_init6, 20, this, "dark")), __runInitializers(_init6, 23, this);
43863
+ __privateAdd(this, _warning, __runInitializers(_init6, 24, this, null)), __runInitializers(_init6, 27, this);
43864
+ __privateAdd(this, _isNative3, __runInitializers(_init6, 28, this, false)), __runInitializers(_init6, 31, this);
43865
+ __privateAdd(this, _propertyContent, __runInitializers(_init6, 32, this, [])), __runInitializers(_init6, 35, this);
43866
+ __privateAdd(this, _editingProperties, __runInitializers(_init6, 36, this, [])), __runInitializers(_init6, 39, this);
43867
+ __privateAdd(this, _showRecordingPanel, __runInitializers(_init6, 40, this, false)), __runInitializers(_init6, 43, this);
43868
+ __privateAdd(this, _isRecording, __runInitializers(_init6, 44, this, false)), __runInitializers(_init6, 47, this);
43869
+ __privateAdd(this, _recordingDuration2, __runInitializers(_init6, 48, this, 0)), __runInitializers(_init6, 51, this);
43434
43870
  __publicField(this, "editorHeight", 300);
43435
43871
  }
43436
43872
  render() {
@@ -44385,7 +44821,7 @@ var WccProperties = class extends (_a5 = DeesElement, _dashboardRef_dec3 = [n5({
44385
44821
  }
44386
44822
  }
44387
44823
  };
44388
- _init5 = __decoratorStart(_a5);
44824
+ _init6 = __decoratorStart(_a6);
44389
44825
  _dashboardRef3 = new WeakMap();
44390
44826
  _selectedItem2 = new WeakMap();
44391
44827
  _selectedViewport = new WeakMap();
@@ -44397,22 +44833,22 @@ _editingProperties = new WeakMap();
44397
44833
  _showRecordingPanel = new WeakMap();
44398
44834
  _isRecording = new WeakMap();
44399
44835
  _recordingDuration2 = new WeakMap();
44400
- __decorateElement(_init5, 4, "dashboardRef", _dashboardRef_dec3, WccProperties, _dashboardRef3);
44401
- __decorateElement(_init5, 4, "selectedItem", _selectedItem_dec2, WccProperties, _selectedItem2);
44402
- __decorateElement(_init5, 4, "selectedViewport", _selectedViewport_dec, WccProperties, _selectedViewport);
44403
- __decorateElement(_init5, 4, "selectedTheme", _selectedTheme_dec, WccProperties, _selectedTheme);
44404
- __decorateElement(_init5, 4, "warning", _warning_dec, WccProperties, _warning);
44405
- __decorateElement(_init5, 4, "isNative", _isNative_dec3, WccProperties, _isNative3);
44406
- __decorateElement(_init5, 4, "propertyContent", _propertyContent_dec, WccProperties, _propertyContent);
44407
- __decorateElement(_init5, 4, "editingProperties", _editingProperties_dec, WccProperties, _editingProperties);
44408
- __decorateElement(_init5, 4, "showRecordingPanel", _showRecordingPanel_dec, WccProperties, _showRecordingPanel);
44409
- __decorateElement(_init5, 4, "isRecording", _isRecording_dec, WccProperties, _isRecording);
44410
- __decorateElement(_init5, 4, "recordingDuration", _recordingDuration_dec2, WccProperties, _recordingDuration2);
44411
- WccProperties = __decorateElement(_init5, 0, "WccProperties", _WccProperties_decorators, WccProperties);
44412
- __runInitializers(_init5, 1, WccProperties);
44836
+ __decorateElement(_init6, 4, "dashboardRef", _dashboardRef_dec3, WccProperties, _dashboardRef3);
44837
+ __decorateElement(_init6, 4, "selectedItem", _selectedItem_dec2, WccProperties, _selectedItem2);
44838
+ __decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec, WccProperties, _selectedViewport);
44839
+ __decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec, WccProperties, _selectedTheme);
44840
+ __decorateElement(_init6, 4, "warning", _warning_dec, WccProperties, _warning);
44841
+ __decorateElement(_init6, 4, "isNative", _isNative_dec3, WccProperties, _isNative3);
44842
+ __decorateElement(_init6, 4, "propertyContent", _propertyContent_dec, WccProperties, _propertyContent);
44843
+ __decorateElement(_init6, 4, "editingProperties", _editingProperties_dec, WccProperties, _editingProperties);
44844
+ __decorateElement(_init6, 4, "showRecordingPanel", _showRecordingPanel_dec, WccProperties, _showRecordingPanel);
44845
+ __decorateElement(_init6, 4, "isRecording", _isRecording_dec, WccProperties, _isRecording);
44846
+ __decorateElement(_init6, 4, "recordingDuration", _recordingDuration_dec2, WccProperties, _recordingDuration2);
44847
+ WccProperties = __decorateElement(_init6, 0, "WccProperties", _WccProperties_decorators, WccProperties);
44848
+ __runInitializers(_init6, 1, WccProperties);
44413
44849
 
44414
44850
  // ts_web/elements/wcc-dashboard.ts
44415
- var _wccFrame_dec, _warning_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, _warning2, _wccFrame;
44851
+ var _wccFrame_dec, _warning_dec2, _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, _warning2, _wccFrame;
44416
44852
  var getSectionItems = (section) => {
44417
44853
  let entries = Object.entries(section.items);
44418
44854
  if (section.filter) {
@@ -44424,22 +44860,24 @@ var getSectionItems = (section) => {
44424
44860
  return entries;
44425
44861
  };
44426
44862
  _WccDashboard_decorators = [t4("wcc-dashboard")];
44427
- 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()], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a6) {
44863
+ 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 })], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a7) {
44428
44864
  constructor(config2) {
44429
44865
  super();
44430
- __privateAdd(this, _sections, __runInitializers(_init6, 8, this, [])), __runInitializers(_init6, 11, this);
44431
- __privateAdd(this, _selectedSection, __runInitializers(_init6, 12, this, null)), __runInitializers(_init6, 15, this);
44432
- __privateAdd(this, _selectedType2, __runInitializers(_init6, 16, this)), __runInitializers(_init6, 19, this);
44433
- __privateAdd(this, _selectedItemName, __runInitializers(_init6, 20, this)), __runInitializers(_init6, 23, this);
44434
- __privateAdd(this, _selectedItem3, __runInitializers(_init6, 24, this)), __runInitializers(_init6, 27, this);
44435
- __privateAdd(this, _selectedDemoIndex, __runInitializers(_init6, 28, this, 0)), __runInitializers(_init6, 31, this);
44436
- __privateAdd(this, _selectedViewport2, __runInitializers(_init6, 32, this, "desktop")), __runInitializers(_init6, 35, this);
44437
- __privateAdd(this, _selectedTheme2, __runInitializers(_init6, 36, this, "dark")), __runInitializers(_init6, 39, this);
44438
- __privateAdd(this, _warning2, __runInitializers(_init6, 40, this, null)), __runInitializers(_init6, 43, this);
44866
+ __privateAdd(this, _sections, __runInitializers(_init7, 8, this, [])), __runInitializers(_init7, 11, this);
44867
+ __privateAdd(this, _selectedSection, __runInitializers(_init7, 12, this, null)), __runInitializers(_init7, 15, this);
44868
+ __privateAdd(this, _selectedType2, __runInitializers(_init7, 16, this)), __runInitializers(_init7, 19, this);
44869
+ __privateAdd(this, _selectedItemName, __runInitializers(_init7, 20, this)), __runInitializers(_init7, 23, this);
44870
+ __privateAdd(this, _selectedItem3, __runInitializers(_init7, 24, this)), __runInitializers(_init7, 27, this);
44871
+ __privateAdd(this, _selectedDemoIndex, __runInitializers(_init7, 28, this, 0)), __runInitializers(_init7, 31, this);
44872
+ __privateAdd(this, _selectedViewport2, __runInitializers(_init7, 32, this, "desktop")), __runInitializers(_init7, 35, this);
44873
+ __privateAdd(this, _selectedTheme2, __runInitializers(_init7, 36, this, "dark")), __runInitializers(_init7, 39, this);
44874
+ __privateAdd(this, _searchQuery2, __runInitializers(_init7, 40, this, "")), __runInitializers(_init7, 43, this);
44875
+ __privateAdd(this, _pinnedItems2, __runInitializers(_init7, 44, this, /* @__PURE__ */ new Set())), __runInitializers(_init7, 47, this);
44876
+ __privateAdd(this, _warning2, __runInitializers(_init7, 48, this, null)), __runInitializers(_init7, 51, this);
44439
44877
  __publicField(this, "frameScrollY", 0);
44440
44878
  __publicField(this, "sidebarScrollY", 0);
44441
44879
  __publicField(this, "scrollPositionsApplied", false);
44442
- __privateAdd(this, _wccFrame, __runInitializers(_init6, 44, this)), __runInitializers(_init6, 47, this);
44880
+ __privateAdd(this, _wccFrame, __runInitializers(_init7, 52, this)), __runInitializers(_init7, 55, this);
44443
44881
  __publicField(this, "scrollUpdateTimeout");
44444
44882
  __publicField(this, "scrollListenersAttached", false);
44445
44883
  if (config2 && config2.sections) {
@@ -44485,6 +44923,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44485
44923
  <wcc-sidebar
44486
44924
  .dashboardRef=${this}
44487
44925
  .selectedItem=${this.selectedItem}
44926
+ .searchQuery=${this.searchQuery}
44927
+ .pinnedItems=${this.pinnedItems}
44488
44928
  .isNative=${this.isNative}
44489
44929
  @selectedType=${(eventArg) => {
44490
44930
  this.selectedType = eventArg.detail;
@@ -44494,6 +44934,14 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44494
44934
  }}
44495
44935
  @selectedItem=${(eventArg) => {
44496
44936
  this.selectedItem = eventArg.detail;
44937
+ }}
44938
+ @searchChanged=${(eventArg) => {
44939
+ this.searchQuery = eventArg.detail;
44940
+ this.updateUrlWithScrollState();
44941
+ }}
44942
+ @pinnedChanged=${(eventArg) => {
44943
+ this.pinnedItems = eventArg.detail;
44944
+ this.updateUrlWithScrollState();
44497
44945
  }}
44498
44946
  ></wcc-sidebar>
44499
44947
  <wcc-properties
@@ -44577,17 +45025,37 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44577
45025
  }
44578
45026
  }
44579
45027
  if (routeInfo.queryParams) {
45028
+ const search2 = routeInfo.queryParams.search;
44580
45029
  const frameScrollY = routeInfo.queryParams.frameScrollY;
44581
45030
  const sidebarScrollY = routeInfo.queryParams.sidebarScrollY;
45031
+ const pinned = routeInfo.queryParams.pinned;
45032
+ if (search2) {
45033
+ this.searchQuery = search2;
45034
+ } else {
45035
+ this.searchQuery = "";
45036
+ }
44582
45037
  if (frameScrollY) {
44583
45038
  this.frameScrollY = parseInt(frameScrollY);
44584
45039
  }
44585
45040
  if (sidebarScrollY) {
44586
45041
  this.sidebarScrollY = parseInt(sidebarScrollY);
44587
45042
  }
45043
+ if (pinned) {
45044
+ const newPinned = new Set(pinned.split(",").filter(Boolean));
45045
+ if (this.pinnedItems.size !== newPinned.size || ![...newPinned].every((k3) => this.pinnedItems.has(k3))) {
45046
+ this.pinnedItems = newPinned;
45047
+ }
45048
+ } else if (this.pinnedItems.size > 0) {
45049
+ this.pinnedItems = /* @__PURE__ */ new Set();
45050
+ }
44588
45051
  setTimeout(() => {
44589
45052
  this.applyScrollPositions();
44590
45053
  }, 100);
45054
+ } else {
45055
+ this.searchQuery = "";
45056
+ if (this.pinnedItems.size > 0) {
45057
+ this.pinnedItems = /* @__PURE__ */ new Set();
45058
+ }
44591
45059
  }
44592
45060
  const domtoolsInstance = await dist_ts_exports25.elementBasic.setup();
44593
45061
  this.selectedTheme === "bright" ? domtoolsInstance.themeManager.goBright() : domtoolsInstance.themeManager.goDark();
@@ -44621,17 +45089,37 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44621
45089
  }
44622
45090
  }
44623
45091
  if (routeInfo.queryParams) {
45092
+ const search2 = routeInfo.queryParams.search;
44624
45093
  const frameScrollY = routeInfo.queryParams.frameScrollY;
44625
45094
  const sidebarScrollY = routeInfo.queryParams.sidebarScrollY;
45095
+ const pinned = routeInfo.queryParams.pinned;
45096
+ if (search2) {
45097
+ this.searchQuery = search2;
45098
+ } else {
45099
+ this.searchQuery = "";
45100
+ }
44626
45101
  if (frameScrollY) {
44627
45102
  this.frameScrollY = parseInt(frameScrollY);
44628
45103
  }
44629
45104
  if (sidebarScrollY) {
44630
45105
  this.sidebarScrollY = parseInt(sidebarScrollY);
44631
45106
  }
45107
+ if (pinned) {
45108
+ const newPinned = new Set(pinned.split(",").filter(Boolean));
45109
+ if (this.pinnedItems.size !== newPinned.size || ![...newPinned].every((k3) => this.pinnedItems.has(k3))) {
45110
+ this.pinnedItems = newPinned;
45111
+ }
45112
+ } else if (this.pinnedItems.size > 0) {
45113
+ this.pinnedItems = /* @__PURE__ */ new Set();
45114
+ }
44632
45115
  setTimeout(() => {
44633
45116
  this.applyScrollPositions();
44634
45117
  }, 100);
45118
+ } else {
45119
+ this.searchQuery = "";
45120
+ if (this.pinnedItems.size > 0) {
45121
+ this.pinnedItems = /* @__PURE__ */ new Set();
45122
+ }
44635
45123
  }
44636
45124
  const domtoolsInstance = await dist_ts_exports25.elementBasic.setup();
44637
45125
  this.selectedTheme === "bright" ? domtoolsInstance.themeManager.goBright() : domtoolsInstance.themeManager.goDark();
@@ -44690,12 +45178,18 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44690
45178
  const sectionName = this.selectedSection ? encodeURIComponent(this.selectedSection.name) : this.selectedType;
44691
45179
  const baseUrl = `/wcctools-route/${sectionName}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44692
45180
  const queryParams = new URLSearchParams();
45181
+ if (this.searchQuery) {
45182
+ queryParams.set("search", this.searchQuery);
45183
+ }
44693
45184
  if (this.frameScrollY > 0) {
44694
45185
  queryParams.set("frameScrollY", this.frameScrollY.toString());
44695
45186
  }
44696
45187
  if (this.sidebarScrollY > 0) {
44697
45188
  queryParams.set("sidebarScrollY", this.sidebarScrollY.toString());
44698
45189
  }
45190
+ if (this.pinnedItems.size > 0) {
45191
+ queryParams.set("pinned", Array.from(this.pinnedItems).join(","));
45192
+ }
44699
45193
  const queryString = queryParams.toString();
44700
45194
  const fullUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl;
44701
45195
  this.domtools.router.pushUrl(fullUrl);
@@ -44730,12 +45224,18 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44730
45224
  const sectionName = this.selectedSection ? encodeURIComponent(this.selectedSection.name) : this.selectedType;
44731
45225
  const baseUrl = `/wcctools-route/${sectionName}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44732
45226
  const queryParams = new URLSearchParams();
45227
+ if (this.searchQuery) {
45228
+ queryParams.set("search", this.searchQuery);
45229
+ }
44733
45230
  if (this.frameScrollY > 0) {
44734
45231
  queryParams.set("frameScrollY", this.frameScrollY.toString());
44735
45232
  }
44736
45233
  if (this.sidebarScrollY > 0) {
44737
45234
  queryParams.set("sidebarScrollY", this.sidebarScrollY.toString());
44738
45235
  }
45236
+ if (this.pinnedItems.size > 0) {
45237
+ queryParams.set("pinned", Array.from(this.pinnedItems).join(","));
45238
+ }
44739
45239
  const queryString = queryParams.toString();
44740
45240
  const fullUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl;
44741
45241
  window.history.replaceState(null, "", fullUrl);
@@ -44755,7 +45255,7 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _sections_dec = [n5()], _s
44755
45255
  this.scrollPositionsApplied = true;
44756
45256
  }
44757
45257
  };
44758
- _init6 = __decoratorStart(_a6);
45258
+ _init7 = __decoratorStart(_a7);
44759
45259
  _sections = new WeakMap();
44760
45260
  _selectedSection = new WeakMap();
44761
45261
  _selectedType2 = new WeakMap();
@@ -44764,20 +45264,24 @@ _selectedItem3 = new WeakMap();
44764
45264
  _selectedDemoIndex = new WeakMap();
44765
45265
  _selectedViewport2 = new WeakMap();
44766
45266
  _selectedTheme2 = new WeakMap();
45267
+ _searchQuery2 = new WeakMap();
45268
+ _pinnedItems2 = new WeakMap();
44767
45269
  _warning2 = new WeakMap();
44768
45270
  _wccFrame = new WeakMap();
44769
- __decorateElement(_init6, 4, "sections", _sections_dec, WccDashboard2, _sections);
44770
- __decorateElement(_init6, 4, "selectedSection", _selectedSection_dec, WccDashboard2, _selectedSection);
44771
- __decorateElement(_init6, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
44772
- __decorateElement(_init6, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
44773
- __decorateElement(_init6, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
44774
- __decorateElement(_init6, 4, "selectedDemoIndex", _selectedDemoIndex_dec, WccDashboard2, _selectedDemoIndex);
44775
- __decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
44776
- __decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
44777
- __decorateElement(_init6, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
44778
- __decorateElement(_init6, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
44779
- WccDashboard2 = __decorateElement(_init6, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
44780
- __runInitializers(_init6, 1, WccDashboard2);
45271
+ __decorateElement(_init7, 4, "sections", _sections_dec, WccDashboard2, _sections);
45272
+ __decorateElement(_init7, 4, "selectedSection", _selectedSection_dec, WccDashboard2, _selectedSection);
45273
+ __decorateElement(_init7, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
45274
+ __decorateElement(_init7, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
45275
+ __decorateElement(_init7, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
45276
+ __decorateElement(_init7, 4, "selectedDemoIndex", _selectedDemoIndex_dec, WccDashboard2, _selectedDemoIndex);
45277
+ __decorateElement(_init7, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
45278
+ __decorateElement(_init7, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
45279
+ __decorateElement(_init7, 4, "searchQuery", _searchQuery_dec2, WccDashboard2, _searchQuery2);
45280
+ __decorateElement(_init7, 4, "pinnedItems", _pinnedItems_dec2, WccDashboard2, _pinnedItems2);
45281
+ __decorateElement(_init7, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
45282
+ __decorateElement(_init7, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
45283
+ WccDashboard2 = __decorateElement(_init7, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
45284
+ __runInitializers(_init7, 1, WccDashboard2);
44781
45285
 
44782
45286
  // ts_web/index.ts
44783
45287
  var convertLegacyToConfig = (elementsArg, pagesArg) => {