@design.estate/dees-wcctools 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5607,7 +5607,7 @@ var require_sweet_scroll = __commonJS({
5607
5607
  hash: null
5608
5608
  };
5609
5609
  this.loop = function(time) {
5610
- var _a14 = _this, $el = _a14.$el, ctx = _a14.ctx;
5610
+ var _a17 = _this, $el = _a17.$el, ctx = _a17.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 _a14 = this, $el = _a14.$el, ctx = _a14.ctx, currentOptions = _a14.opts;
5705
+ var _a17 = this, $el = _a17.$el, ctx = _a17.ctx, currentOptions = _a17.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 _a14 = this, $el = _a14.$el, ctx = _a14.ctx;
5772
+ var _a17 = this, $el = _a17.$el, ctx = _a17.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 _a14 = this, $el = _a14.$el, ctx = _a14.ctx;
5828
+ var _a17 = this, $el = _a17.$el, ctx = _a17.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 _a14;
5854
+ var _a17;
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 = (_a14 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a14, args);
5861
+ methodResult = (_a17 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a17, args);
5862
5862
  return callbackResult !== void 0 ? callbackResult : methodResult;
5863
5863
  };
5864
5864
  SweetScroll4.prototype.bind = function(click, stop) {
5865
- var _a14 = this, $el = _a14.$el, opts = _a14.ctx.opts;
5865
+ var _a17 = this, $el = _a17.$el, opts = _a17.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 _a14 = this, $el = _a14.$el, opts = _a14.ctx.opts;
5876
+ var _a17 = this, $el = _a17.$el, opts = _a17.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, _a14, e_2, _b2;
7108
+ var e_1, _a17, e_2, _b2;
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 && (_a14 = _parentage_1.return)) _a14.call(_parentage_1);
7125
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a17 = _parentage_1.return)) _a17.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 _a14;
7175
+ var _a17;
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 = (_a14 = this._finalizers) !== null && _a14 !== void 0 ? _a14 : []).push(teardown);
7186
+ (this._finalizers = (_a17 = this._finalizers) !== null && _a17 !== void 0 ? _a17 : []).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 _a14 = context, errorThrown = _a14.errorThrown, error = _a14.error;
7305
+ var _a17 = context, errorThrown = _a17.errorThrown, error = _a17.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 _a14 = _this, operator = _a14.operator, source = _a14.source;
7536
+ var _a17 = _this, operator = _a17.operator, source = _a17.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 _a14;
7569
- return (_a14 = this.source) === null || _a14 === void 0 ? void 0 : _a14.subscribe(subscriber);
7568
+ var _a17;
7569
+ return (_a17 = this.source) === null || _a17 === void 0 ? void 0 : _a17.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 _a14;
7602
- return (_a14 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a14 !== void 0 ? _a14 : Promise;
7601
+ var _a17;
7602
+ return (_a17 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a17 !== void 0 ? _a17 : 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 _a14;
7668
+ var _a17;
7669
7669
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
7670
7670
  var closed_1 = this.closed;
7671
7671
  _super.prototype.unsubscribe.call(this);
7672
- !closed_1 && ((_a14 = this.onFinalize) === null || _a14 === void 0 ? void 0 : _a14.call(this));
7672
+ !closed_1 && ((_a17 = this.onFinalize) === null || _a17 === void 0 ? void 0 : _a17.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, _a14;
7713
+ var e_1, _a17;
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 (_c2 && !_c2.done && (_a14 = _b2.return)) _a14.call(_b2);
7728
+ if (_c2 && !_c2.done && (_a17 = _b2.return)) _a17.call(_b2);
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 _a14;
7770
- return ((_a14 = this.observers) === null || _a14 === void 0 ? void 0 : _a14.length) > 0;
7769
+ var _a17;
7770
+ return ((_a17 = this.observers) === null || _a17 === void 0 ? void 0 : _a17.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 _a14 = this, hasError = _a14.hasError, isStopped = _a14.isStopped, observers = _a14.observers;
7786
+ var _a17 = this, hasError = _a17.hasError, isStopped = _a17.isStopped, observers = _a17.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 _a14 = this, hasError = _a14.hasError, thrownError = _a14.thrownError, isStopped = _a14.isStopped;
7798
+ var _a17 = this, hasError = _a17.hasError, thrownError = _a17.thrownError, isStopped = _a17.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 _a14, _b2;
7825
- (_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a14, value2);
7824
+ var _a17, _b2;
7825
+ (_b2 = (_a17 = this.destination) === null || _a17 === void 0 ? void 0 : _a17.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a17, value2);
7826
7826
  };
7827
7827
  AnonymousSubject2.prototype.error = function(err) {
7828
- var _a14, _b2;
7829
- (_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a14, err);
7828
+ var _a17, _b2;
7829
+ (_b2 = (_a17 = this.destination) === null || _a17 === void 0 ? void 0 : _a17.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a17, err);
7830
7830
  };
7831
7831
  AnonymousSubject2.prototype.complete = function() {
7832
- var _a14, _b2;
7833
- (_b2 = (_a14 = this.destination) === null || _a14 === void 0 ? void 0 : _a14.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a14);
7832
+ var _a17, _b2;
7833
+ (_b2 = (_a17 = this.destination) === null || _a17 === void 0 ? void 0 : _a17.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a17);
7834
7834
  };
7835
7835
  AnonymousSubject2.prototype._subscribe = function(subscriber) {
7836
- var _a14, _b2;
7837
- return (_b2 = (_a14 = this.source) === null || _a14 === void 0 ? void 0 : _a14.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : EMPTY_SUBSCRIPTION;
7836
+ var _a17, _b2;
7837
+ return (_b2 = (_a17 = this.source) === null || _a17 === void 0 ? void 0 : _a17.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : 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 _a14 = this, isStopped = _a14.isStopped, _buffer = _a14._buffer, _infiniteTimeWindow = _a14._infiniteTimeWindow, _timestampProvider = _a14._timestampProvider, _windowTime = _a14._windowTime;
7875
+ var _a17 = this, isStopped = _a17.isStopped, _buffer = _a17._buffer, _infiniteTimeWindow = _a17._infiniteTimeWindow, _timestampProvider = _a17._timestampProvider, _windowTime = _a17._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 _a14 = this, _infiniteTimeWindow = _a14._infiniteTimeWindow, _buffer = _a14._buffer;
7887
+ var _a17 = this, _infiniteTimeWindow = _a17._infiniteTimeWindow, _buffer = _a17._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 _a14 = this, _bufferSize = _a14._bufferSize, _timestampProvider = _a14._timestampProvider, _buffer = _a14._buffer, _infiniteTimeWindow = _a14._infiniteTimeWindow;
7896
+ var _a17 = this, _bufferSize = _a17._bufferSize, _timestampProvider = _a17._timestampProvider, _buffer = _a17._buffer, _infiniteTimeWindow = _a17._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 _a14;
7957
+ var _a17;
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 = (_a14 = this.id) !== null && _a14 !== void 0 ? _a14 : this.requestAsyncId(scheduler, this.id, delay2);
7972
+ this.id = (_a17 = this.id) !== null && _a17 !== void 0 ? _a17 : 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 _a14 = this, id = _a14.id, scheduler = _a14.scheduler;
8021
+ var _a17 = this, id = _a17.id, scheduler = _a17.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, _a14, value2, done;
8156
+ var reader, _a17, value2, done;
8157
8157
  return __generator(this, function(_b2) {
8158
8158
  switch (_b2.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
- _a14 = _b2.sent(), value2 = _a14.value, done = _a14.done;
8169
+ _a17 = _b2.sent(), value2 = _a17.value, done = _a17.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, _a14;
8254
+ var e_1, _a17;
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 && (_a14 = iterable_1.return)) _a14.call(iterable_1);
8267
+ if (iterable_1_1 && !iterable_1_1.done && (_a17 = iterable_1.return)) _a17.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, _a14;
8287
+ var e_2, _a17;
8288
8288
  return __awaiter(this, void 0, void 0, function() {
8289
8289
  var value2, e_2_1;
8290
8290
  return __generator(this, function(_b2) {
@@ -8313,8 +8313,8 @@ function process2(asyncIterable, subscriber) {
8313
8313
  return [3, 11];
8314
8314
  case 6:
8315
8315
  _b2.trys.push([6, , 9, 10]);
8316
- if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a14 = asyncIterable_1.return))) return [3, 8];
8317
- return [4, _a14.call(asyncIterable_1)];
8316
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a17 = asyncIterable_1.return))) return [3, 8];
8317
+ return [4, _a17.call(asyncIterable_1)];
8318
8318
  case 7:
8319
8319
  _b2.sent();
8320
8320
  _b2.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 _a14;
8426
+ var _a17;
8427
8427
  var value2;
8428
8428
  var done;
8429
8429
  try {
8430
- _a14 = iterator2.next(), value2 = _a14.value, done = _a14.done;
8430
+ _a17 = iterator2.next(), value2 = _a17.value, done = _a17.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 _a14 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
8653
+ var _a17 = __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 = _a14[0], remove2 = _a14[1];
8657
+ }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a17[0], remove2 = _a17[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, _a14, e_2, _b2;
8775
+ var e_1, _a17, e_2, _b2;
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 && (_a14 = buffers_1.return)) _a14.call(buffers_1);
8793
+ if (buffers_1_1 && !buffers_1_1.done && (_a17 = buffers_1.return)) _a17.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, _a14;
8816
+ var e_3, _a17;
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 && (_a14 = buffers_2.return)) _a14.call(buffers_2);
8826
+ if (buffers_2_1 && !buffers_2_1.done && (_a17 = buffers_2.return)) _a17.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 _a14, _b2;
8840
+ var _a17, _b2;
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 = (_a14 = popScheduler(otherArgs)) !== null && _a14 !== void 0 ? _a14 : asyncScheduler;
8845
+ var scheduler = (_a17 = popScheduler(otherArgs)) !== null && _a17 !== void 0 ? _a17 : asyncScheduler;
8846
8846
  var bufferCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : 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, _a15;
8880
+ var e_1, _a18;
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 && (_a15 = recordsCopy_1.return)) _a15.call(recordsCopy_1);
8893
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a18 = recordsCopy_1.return)) _a18.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 _a14 = config2 !== null && config2 !== void 0 ? config2 : {}, _b2 = _a14.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a14.trailing, trailing = _c2 === void 0 ? false : _c2;
9012
+ var _a17 = config2 !== null && config2 !== void 0 ? config2 : {}, _b2 = _a17.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a17.trailing, trailing = _c2 === void 0 ? false : _c2;
9013
9013
  var hasValue = false;
9014
9014
  var sendValue = null;
9015
9015
  var throttled = null;
@@ -41663,9 +41663,9 @@ __publicField(WccFrame, "styles", [
41663
41663
  __runInitializers(_init, 1, WccFrame);
41664
41664
 
41665
41665
  // ts_web/elements/wcc-sidebar.ts
41666
- var _expandedElements_dec, _isNative_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a2, _WccSidebar_decorators, _init2, _selectedItem, _selectedType, _dashboardRef, _isNative2, _expandedElements;
41666
+ var _collapsedSections_dec, _expandedElements_dec, _isNative_dec2, _dashboardRef_dec, _selectedType_dec, _selectedItem_dec, _a2, _WccSidebar_decorators, _init2, _selectedItem, _selectedType, _dashboardRef, _isNative2, _expandedElements, _collapsedSections;
41667
41667
  _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()], _a2) {
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) {
41669
41669
  constructor() {
41670
41670
  super(...arguments);
41671
41671
  __privateAdd(this, _selectedItem, __runInitializers(_init2, 8, this)), __runInitializers(_init2, 11, this);
@@ -41673,6 +41673,8 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41673
41673
  __privateAdd(this, _dashboardRef, __runInitializers(_init2, 16, this)), __runInitializers(_init2, 19, this);
41674
41674
  __privateAdd(this, _isNative2, __runInitializers(_init2, 20, this, false)), __runInitializers(_init2, 23, this);
41675
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
+ __publicField(this, "sectionsInitialized", false);
41676
41678
  }
41677
41679
  render() {
41678
41680
  return x`
@@ -41715,7 +41717,7 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41715
41717
  padding: 0.5rem 0;
41716
41718
  }
41717
41719
 
41718
- h3 {
41720
+ .section-header {
41719
41721
  padding: 0.3rem 0.75rem;
41720
41722
  font-size: 0.65rem;
41721
41723
  font-weight: 500;
@@ -41727,12 +41729,45 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41727
41729
  background: rgba(59, 130, 246, 0.03);
41728
41730
  border-bottom: 1px solid var(--border);
41729
41731
  border-top: 1px solid var(--border);
41732
+ display: flex;
41733
+ align-items: center;
41734
+ gap: 0.5rem;
41735
+ cursor: pointer;
41736
+ user-select: none;
41737
+ transition: all 0.15s ease;
41730
41738
  }
41731
41739
 
41732
- h3:first-child {
41740
+ .section-header:first-child {
41733
41741
  margin-top: 0;
41734
41742
  }
41735
41743
 
41744
+ .section-header:hover {
41745
+ background: rgba(59, 130, 246, 0.08);
41746
+ }
41747
+
41748
+ .section-header .expand-icon {
41749
+ font-size: 14px;
41750
+ opacity: 0.5;
41751
+ transition: transform 0.2s ease;
41752
+ }
41753
+
41754
+ .section-header.collapsed .expand-icon {
41755
+ transform: rotate(-90deg);
41756
+ }
41757
+
41758
+ .section-header .section-icon {
41759
+ font-size: 14px;
41760
+ opacity: 0.6;
41761
+ }
41762
+
41763
+ .section-content {
41764
+ overflow: hidden;
41765
+ }
41766
+
41767
+ .section-content.collapsed {
41768
+ display: none;
41769
+ }
41770
+
41736
41771
  .material-symbols-outlined {
41737
41772
  font-family: 'Material Symbols Outlined';
41738
41773
  font-weight: normal;
@@ -41866,83 +41901,130 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41866
41901
  }
41867
41902
  </style>
41868
41903
  <div class="menu">
41869
- <h3>Pages</h3>
41870
- ${(() => {
41871
- const pages = Object.keys(this.dashboardRef.pages);
41872
- return pages.map((pageName) => {
41873
- const item = this.dashboardRef.pages[pageName];
41904
+ ${this.renderSections()}
41905
+ </div>
41906
+ `;
41907
+ }
41908
+ /**
41909
+ * Initialize collapsed sections from section config
41910
+ */
41911
+ initCollapsedSections() {
41912
+ if (this.sectionsInitialized) return;
41913
+ const collapsed = /* @__PURE__ */ new Set();
41914
+ for (const section of this.dashboardRef.sections) {
41915
+ if (section.collapsed) {
41916
+ collapsed.add(section.name);
41917
+ }
41918
+ }
41919
+ this.collapsedSections = collapsed;
41920
+ this.sectionsInitialized = true;
41921
+ }
41922
+ /**
41923
+ * Render all sections
41924
+ */
41925
+ renderSections() {
41926
+ this.initCollapsedSections();
41927
+ return this.dashboardRef.sections.map((section, index2) => {
41928
+ const isCollapsed = this.collapsedSections.has(section.name);
41929
+ const sectionIcon = section.icon || (section.type === "pages" ? "insert_drive_file" : "widgets");
41930
+ return x`
41931
+ <div
41932
+ class="section-header ${isCollapsed ? "collapsed" : ""}"
41933
+ @click=${() => this.toggleSectionCollapsed(section.name)}
41934
+ >
41935
+ <i class="material-symbols-outlined expand-icon">expand_more</i>
41936
+ ${section.icon ? x`<i class="material-symbols-outlined section-icon">${section.icon}</i>` : null}
41937
+ <span>${section.name}</span>
41938
+ </div>
41939
+ <div class="section-content ${isCollapsed ? "collapsed" : ""}">
41940
+ ${this.renderSectionItems(section)}
41941
+ </div>
41942
+ `;
41943
+ });
41944
+ }
41945
+ /**
41946
+ * Render items for a section
41947
+ */
41948
+ renderSectionItems(section) {
41949
+ const entries = getSectionItems(section);
41950
+ if (section.type === "pages") {
41951
+ return entries.map(([pageName, item]) => {
41874
41952
  return x`
41875
- <div
41876
- class="selectOption ${this.selectedItem === item ? "selected" : null}"
41877
- @click=${async () => {
41878
- const domtools2 = await dist_ts_exports25.DomTools.setupDomTools();
41879
- this.selectItem("page", pageName, item, 0);
41953
+ <div
41954
+ class="selectOption ${this.selectedItem === item ? "selected" : ""}"
41955
+ @click=${async () => {
41956
+ await dist_ts_exports25.DomTools.setupDomTools();
41957
+ this.selectItem("page", pageName, item, 0, section);
41880
41958
  }}
41881
- >
41882
- <i class="material-symbols-outlined">insert_drive_file</i>
41883
- <div class="text">${pageName}</div>
41884
- </div>
41885
- `;
41959
+ >
41960
+ <i class="material-symbols-outlined">insert_drive_file</i>
41961
+ <div class="text">${pageName}</div>
41962
+ </div>
41963
+ `;
41886
41964
  });
41887
- })()}
41888
- <h3>Elements</h3>
41889
- ${(() => {
41890
- const elements = Object.keys(this.dashboardRef.elements);
41891
- return elements.map((elementName) => {
41892
- const item = this.dashboardRef.elements[elementName];
41893
- const demoCount = item.demo ? getDemoCount(item.demo) : 0;
41894
- const isMultiDemo = item.demo && hasMultipleDemos(item.demo);
41965
+ } 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);
41895
41970
  const isExpanded = this.expandedElements.has(elementName);
41896
41971
  const isSelected = this.selectedItem === item;
41897
41972
  if (isMultiDemo) {
41898
41973
  return x`
41899
- <div
41900
- class="selectOption folder ${isExpanded ? "expanded" : ""} ${isSelected ? "selected" : ""}"
41901
- @click=${() => this.toggleExpanded(elementName)}
41902
- >
41903
- <i class="material-symbols-outlined expand-icon">chevron_right</i>
41904
- <i class="material-symbols-outlined">folder</i>
41905
- <div class="text">${elementName}</div>
41906
- </div>
41907
- ${isExpanded ? x`
41908
- <div class="demo-children">
41909
- ${Array.from({ length: demoCount }, (_3, i9) => {
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) => {
41910
41985
  const demoIndex = i9;
41911
41986
  const isThisDemoSelected = isSelected && this.dashboardRef.selectedDemoIndex === demoIndex;
41912
41987
  return x`
41913
- <div
41914
- class="demo-child ${isThisDemoSelected ? "selected" : ""}"
41915
- @click=${async () => {
41988
+ <div
41989
+ class="demo-child ${isThisDemoSelected ? "selected" : ""}"
41990
+ @click=${async () => {
41916
41991
  await dist_ts_exports25.DomTools.setupDomTools();
41917
- this.selectItem("element", elementName, item, demoIndex);
41992
+ this.selectItem("element", elementName, item, demoIndex, section);
41918
41993
  }}
41919
- >
41920
- <i class="material-symbols-outlined">play_circle</i>
41921
- <div class="text">demo${demoIndex + 1}</div>
41922
- </div>
41923
- `;
41994
+ >
41995
+ <i class="material-symbols-outlined">play_circle</i>
41996
+ <div class="text">demo${demoIndex + 1}</div>
41997
+ </div>
41998
+ `;
41924
41999
  })}
41925
- </div>
41926
- ` : null}
41927
- `;
42000
+ </div>
42001
+ ` : null}
42002
+ `;
41928
42003
  } else {
41929
42004
  return x`
41930
- <div
41931
- class="selectOption ${isSelected ? "selected" : null}"
41932
- @click=${async () => {
42005
+ <div
42006
+ class="selectOption ${isSelected ? "selected" : ""}"
42007
+ @click=${async () => {
41933
42008
  await dist_ts_exports25.DomTools.setupDomTools();
41934
- this.selectItem("element", elementName, item, 0);
42009
+ this.selectItem("element", elementName, item, 0, section);
41935
42010
  }}
41936
- >
41937
- <i class="material-symbols-outlined">featured_video</i>
41938
- <div class="text">${elementName}</div>
41939
- </div>
41940
- `;
42011
+ >
42012
+ <i class="material-symbols-outlined">featured_video</i>
42013
+ <div class="text">${elementName}</div>
42014
+ </div>
42015
+ `;
41941
42016
  }
41942
42017
  });
41943
- })()}
41944
- </div>
41945
- `;
42018
+ }
42019
+ }
42020
+ toggleSectionCollapsed(sectionName) {
42021
+ const newSet = new Set(this.collapsedSections);
42022
+ if (newSet.has(sectionName)) {
42023
+ newSet.delete(sectionName);
42024
+ } else {
42025
+ newSet.add(sectionName);
42026
+ }
42027
+ this.collapsedSections = newSet;
41946
42028
  }
41947
42029
  toggleExpanded(elementName) {
41948
42030
  const newSet = new Set(this.expandedElements);
@@ -41953,14 +42035,40 @@ var WccSidebar = class extends (_a2 = DeesElement, _selectedItem_dec = [n5({ att
41953
42035
  }
41954
42036
  this.expandedElements = newSet;
41955
42037
  }
41956
- selectItem(typeArg, itemNameArg, itemArg, demoIndex = 0) {
42038
+ updated(changedProperties) {
42039
+ super.updated(changedProperties);
42040
+ if (changedProperties.has("selectedItem") && this.selectedItem) {
42041
+ for (const section of this.dashboardRef.sections) {
42042
+ if (section.type !== "elements") continue;
42043
+ const entries = getSectionItems(section);
42044
+ const found = entries.find(([_3, item]) => item === this.selectedItem);
42045
+ if (found) {
42046
+ const [elementName, item] = found;
42047
+ const anonItem = item;
42048
+ if (anonItem.demo && hasMultipleDemos(anonItem.demo)) {
42049
+ if (!this.expandedElements.has(elementName)) {
42050
+ const newSet = new Set(this.expandedElements);
42051
+ newSet.add(elementName);
42052
+ this.expandedElements = newSet;
42053
+ }
42054
+ }
42055
+ break;
42056
+ }
42057
+ }
42058
+ }
42059
+ }
42060
+ selectItem(typeArg, itemNameArg, itemArg, demoIndex = 0, section) {
41957
42061
  console.log("selected item");
41958
42062
  console.log(itemNameArg);
41959
42063
  console.log(itemArg);
41960
42064
  console.log("demo index:", demoIndex);
42065
+ console.log("section:", section?.name);
41961
42066
  this.selectedItem = itemArg;
41962
42067
  this.selectedType = typeArg;
41963
42068
  this.dashboardRef.selectedDemoIndex = demoIndex;
42069
+ if (section) {
42070
+ this.dashboardRef.selectedSection = section;
42071
+ }
41964
42072
  this.dispatchEvent(
41965
42073
  new CustomEvent("selectedType", {
41966
42074
  detail: typeArg
@@ -41986,11 +42094,13 @@ _selectedType = new WeakMap();
41986
42094
  _dashboardRef = new WeakMap();
41987
42095
  _isNative2 = new WeakMap();
41988
42096
  _expandedElements = new WeakMap();
42097
+ _collapsedSections = new WeakMap();
41989
42098
  __decorateElement(_init2, 4, "selectedItem", _selectedItem_dec, WccSidebar, _selectedItem);
41990
42099
  __decorateElement(_init2, 4, "selectedType", _selectedType_dec, WccSidebar, _selectedType);
41991
42100
  __decorateElement(_init2, 4, "dashboardRef", _dashboardRef_dec, WccSidebar, _dashboardRef);
41992
42101
  __decorateElement(_init2, 4, "isNative", _isNative_dec2, WccSidebar, _isNative2);
41993
42102
  __decorateElement(_init2, 4, "expandedElements", _expandedElements_dec, WccSidebar, _expandedElements);
42103
+ __decorateElement(_init2, 4, "collapsedSections", _collapsedSections_dec, WccSidebar, _collapsedSections);
41994
42104
  WccSidebar = __decorateElement(_init2, 0, "WccSidebar", _WccSidebar_decorators, WccSidebar);
41995
42105
  __runInitializers(_init2, 1, WccSidebar);
41996
42106
 
@@ -44302,19 +44412,29 @@ WccProperties = __decorateElement(_init5, 0, "WccProperties", _WccProperties_dec
44302
44412
  __runInitializers(_init5, 1, WccProperties);
44303
44413
 
44304
44414
  // ts_web/elements/wcc-dashboard.ts
44305
- var _wccFrame_dec, _warning_dec2, _elements_dec, _pages_dec, _selectedTheme_dec2, _selectedViewport_dec2, _selectedDemoIndex_dec, _selectedItem_dec3, _selectedItemName_dec, _selectedType_dec2, _a6, _WccDashboard_decorators, _init6, _selectedType2, _selectedItemName, _selectedItem3, _selectedDemoIndex, _selectedViewport2, _selectedTheme2, _pages, _elements, _warning2, _wccFrame;
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;
44416
+ var getSectionItems = (section) => {
44417
+ let entries = Object.entries(section.items);
44418
+ if (section.filter) {
44419
+ entries = entries.filter(([name, item]) => section.filter(name, item));
44420
+ }
44421
+ if (section.sort) {
44422
+ entries.sort(section.sort);
44423
+ }
44424
+ return entries;
44425
+ };
44306
44426
  _WccDashboard_decorators = [t4("wcc-dashboard")];
44307
- var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()], _selectedItemName_dec = [n5()], _selectedItem_dec3 = [n5()], _selectedDemoIndex_dec = [n5({ type: Number })], _selectedViewport_dec2 = [n5()], _selectedTheme_dec2 = [n5()], _pages_dec = [n5()], _elements_dec = [n5()], _warning_dec2 = [n5()], _wccFrame_dec = [r7("wcc-frame")], _a6) {
44308
- constructor(elementsArg, pagesArg) {
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) {
44428
+ constructor(config2) {
44309
44429
  super();
44310
- __privateAdd(this, _selectedType2, __runInitializers(_init6, 8, this)), __runInitializers(_init6, 11, this);
44311
- __privateAdd(this, _selectedItemName, __runInitializers(_init6, 12, this)), __runInitializers(_init6, 15, this);
44312
- __privateAdd(this, _selectedItem3, __runInitializers(_init6, 16, this)), __runInitializers(_init6, 19, this);
44313
- __privateAdd(this, _selectedDemoIndex, __runInitializers(_init6, 20, this, 0)), __runInitializers(_init6, 23, this);
44314
- __privateAdd(this, _selectedViewport2, __runInitializers(_init6, 24, this, "desktop")), __runInitializers(_init6, 27, this);
44315
- __privateAdd(this, _selectedTheme2, __runInitializers(_init6, 28, this, "dark")), __runInitializers(_init6, 31, this);
44316
- __privateAdd(this, _pages, __runInitializers(_init6, 32, this, {})), __runInitializers(_init6, 35, this);
44317
- __privateAdd(this, _elements, __runInitializers(_init6, 36, this, {})), __runInitializers(_init6, 39, this);
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);
44318
44438
  __privateAdd(this, _warning2, __runInitializers(_init6, 40, this, null)), __runInitializers(_init6, 43, this);
44319
44439
  __publicField(this, "frameScrollY", 0);
44320
44440
  __publicField(this, "sidebarScrollY", 0);
@@ -44322,19 +44442,34 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44322
44442
  __privateAdd(this, _wccFrame, __runInitializers(_init6, 44, this)), __runInitializers(_init6, 47, this);
44323
44443
  __publicField(this, "scrollUpdateTimeout");
44324
44444
  __publicField(this, "scrollListenersAttached", false);
44325
- if (elementsArg) {
44326
- this.elements = elementsArg;
44327
- console.log("got elements:");
44328
- console.log(this.elements);
44329
- }
44330
- if (pagesArg) {
44331
- this.pages = pagesArg;
44445
+ if (config2 && config2.sections) {
44446
+ this.sections = config2.sections;
44447
+ console.log("got sections:", this.sections.map((s8) => s8.name));
44332
44448
  }
44333
44449
  }
44334
44450
  // Derived from selectedViewport - no need for separate property
44335
44451
  get isNative() {
44336
44452
  return this.selectedViewport === "native";
44337
44453
  }
44454
+ /**
44455
+ * Find an item by name across all sections, returns the item and its section
44456
+ */
44457
+ findItemByName(name) {
44458
+ for (const section of this.sections) {
44459
+ const entries = getSectionItems(section);
44460
+ const found = entries.find(([itemName]) => itemName === name);
44461
+ if (found) {
44462
+ return { item: found[1], section };
44463
+ }
44464
+ }
44465
+ return null;
44466
+ }
44467
+ /**
44468
+ * Find a section by name (URL-decoded)
44469
+ */
44470
+ findSectionByName(name) {
44471
+ return this.sections.find((s8) => s8.name === name) || null;
44472
+ }
44338
44473
  render() {
44339
44474
  return x`
44340
44475
  <style>
@@ -44415,17 +44550,31 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44415
44550
  this.setupScrollListeners();
44416
44551
  }, 500);
44417
44552
  this.domtools.router.on(
44418
- "/wcctools-route/:itemType/:itemName/:demoIndex/:viewport/:theme",
44553
+ "/wcctools-route/:sectionName/:itemName/:demoIndex/:viewport/:theme",
44419
44554
  async (routeInfo) => {
44420
- this.selectedType = routeInfo.params.itemType;
44555
+ const sectionName = decodeURIComponent(routeInfo.params.sectionName);
44556
+ this.selectedSection = this.findSectionByName(sectionName);
44421
44557
  this.selectedItemName = routeInfo.params.itemName;
44422
44558
  this.selectedDemoIndex = parseInt(routeInfo.params.demoIndex) || 0;
44423
44559
  this.selectedViewport = routeInfo.params.viewport;
44424
44560
  this.selectedTheme = routeInfo.params.theme;
44425
- if (routeInfo.params.itemType === "element") {
44426
- this.selectedItem = this.elements[routeInfo.params.itemName];
44427
- } else if (routeInfo.params.itemType === "page") {
44428
- this.selectedItem = this.pages[routeInfo.params.itemName];
44561
+ if (this.selectedSection) {
44562
+ const entries = getSectionItems(this.selectedSection);
44563
+ const found = entries.find(([name]) => name === routeInfo.params.itemName);
44564
+ if (found) {
44565
+ this.selectedItem = found[1];
44566
+ this.selectedType = this.selectedSection.type === "elements" ? "element" : "page";
44567
+ }
44568
+ } else {
44569
+ const legacyType = routeInfo.params.sectionName;
44570
+ if (legacyType === "element" || legacyType === "page") {
44571
+ this.selectedType = legacyType;
44572
+ const result = this.findItemByName(routeInfo.params.itemName);
44573
+ if (result) {
44574
+ this.selectedItem = result.item;
44575
+ this.selectedSection = result.section;
44576
+ }
44577
+ }
44429
44578
  }
44430
44579
  if (routeInfo.queryParams) {
44431
44580
  const frameScrollY = routeInfo.queryParams.frameScrollY;
@@ -44445,17 +44594,31 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44445
44594
  }
44446
44595
  );
44447
44596
  this.domtools.router.on(
44448
- "/wcctools-route/:itemType/:itemName/:viewport/:theme",
44597
+ "/wcctools-route/:sectionName/:itemName/:viewport/:theme",
44449
44598
  async (routeInfo) => {
44450
- this.selectedType = routeInfo.params.itemType;
44599
+ const sectionName = decodeURIComponent(routeInfo.params.sectionName);
44600
+ this.selectedSection = this.findSectionByName(sectionName);
44451
44601
  this.selectedItemName = routeInfo.params.itemName;
44452
44602
  this.selectedDemoIndex = 0;
44453
44603
  this.selectedViewport = routeInfo.params.viewport;
44454
44604
  this.selectedTheme = routeInfo.params.theme;
44455
- if (routeInfo.params.itemType === "element") {
44456
- this.selectedItem = this.elements[routeInfo.params.itemName];
44457
- } else if (routeInfo.params.itemType === "page") {
44458
- this.selectedItem = this.pages[routeInfo.params.itemName];
44605
+ if (this.selectedSection) {
44606
+ const entries = getSectionItems(this.selectedSection);
44607
+ const found = entries.find(([name]) => name === routeInfo.params.itemName);
44608
+ if (found) {
44609
+ this.selectedItem = found[1];
44610
+ this.selectedType = this.selectedSection.type === "elements" ? "element" : "page";
44611
+ }
44612
+ } else {
44613
+ const legacyType = routeInfo.params.sectionName;
44614
+ if (legacyType === "element" || legacyType === "page") {
44615
+ this.selectedType = legacyType;
44616
+ const result = this.findItemByName(routeInfo.params.itemName);
44617
+ if (result) {
44618
+ this.selectedItem = result.item;
44619
+ this.selectedSection = result.section;
44620
+ }
44621
+ }
44459
44622
  }
44460
44623
  if (routeInfo.queryParams) {
44461
44624
  const frameScrollY = routeInfo.queryParams.frameScrollY;
@@ -44524,7 +44687,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44524
44687
  }
44525
44688
  }
44526
44689
  buildUrl() {
44527
- const baseUrl = `/wcctools-route/${this.selectedType}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44690
+ const sectionName = this.selectedSection ? encodeURIComponent(this.selectedSection.name) : this.selectedType;
44691
+ const baseUrl = `/wcctools-route/${sectionName}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44528
44692
  const queryParams = new URLSearchParams();
44529
44693
  if (this.frameScrollY > 0) {
44530
44694
  queryParams.set("frameScrollY", this.frameScrollY.toString());
@@ -44563,7 +44727,8 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44563
44727
  }, 300);
44564
44728
  }
44565
44729
  updateUrlWithScrollState() {
44566
- const baseUrl = `/wcctools-route/${this.selectedType}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44730
+ const sectionName = this.selectedSection ? encodeURIComponent(this.selectedSection.name) : this.selectedType;
44731
+ const baseUrl = `/wcctools-route/${sectionName}/${this.selectedItemName}/${this.selectedDemoIndex}/${this.selectedViewport}/${this.selectedTheme}`;
44567
44732
  const queryParams = new URLSearchParams();
44568
44733
  if (this.frameScrollY > 0) {
44569
44734
  queryParams.set("frameScrollY", this.frameScrollY.toString());
@@ -44591,36 +44756,63 @@ var WccDashboard2 = class extends (_a6 = DeesElement, _selectedType_dec2 = [n5()
44591
44756
  }
44592
44757
  };
44593
44758
  _init6 = __decoratorStart(_a6);
44759
+ _sections = new WeakMap();
44760
+ _selectedSection = new WeakMap();
44594
44761
  _selectedType2 = new WeakMap();
44595
44762
  _selectedItemName = new WeakMap();
44596
44763
  _selectedItem3 = new WeakMap();
44597
44764
  _selectedDemoIndex = new WeakMap();
44598
44765
  _selectedViewport2 = new WeakMap();
44599
44766
  _selectedTheme2 = new WeakMap();
44600
- _pages = new WeakMap();
44601
- _elements = new WeakMap();
44602
44767
  _warning2 = new WeakMap();
44603
44768
  _wccFrame = new WeakMap();
44769
+ __decorateElement(_init6, 4, "sections", _sections_dec, WccDashboard2, _sections);
44770
+ __decorateElement(_init6, 4, "selectedSection", _selectedSection_dec, WccDashboard2, _selectedSection);
44604
44771
  __decorateElement(_init6, 4, "selectedType", _selectedType_dec2, WccDashboard2, _selectedType2);
44605
44772
  __decorateElement(_init6, 4, "selectedItemName", _selectedItemName_dec, WccDashboard2, _selectedItemName);
44606
44773
  __decorateElement(_init6, 4, "selectedItem", _selectedItem_dec3, WccDashboard2, _selectedItem3);
44607
44774
  __decorateElement(_init6, 4, "selectedDemoIndex", _selectedDemoIndex_dec, WccDashboard2, _selectedDemoIndex);
44608
44775
  __decorateElement(_init6, 4, "selectedViewport", _selectedViewport_dec2, WccDashboard2, _selectedViewport2);
44609
44776
  __decorateElement(_init6, 4, "selectedTheme", _selectedTheme_dec2, WccDashboard2, _selectedTheme2);
44610
- __decorateElement(_init6, 4, "pages", _pages_dec, WccDashboard2, _pages);
44611
- __decorateElement(_init6, 4, "elements", _elements_dec, WccDashboard2, _elements);
44612
44777
  __decorateElement(_init6, 4, "warning", _warning_dec2, WccDashboard2, _warning2);
44613
44778
  __decorateElement(_init6, 4, "wccFrame", _wccFrame_dec, WccDashboard2, _wccFrame);
44614
44779
  WccDashboard2 = __decorateElement(_init6, 0, "WccDashboard", _WccDashboard_decorators, WccDashboard2);
44615
44780
  __runInitializers(_init6, 1, WccDashboard2);
44616
44781
 
44617
44782
  // ts_web/index.ts
44618
- var setupWccTools = (elementsArg, pagesArg) => {
44783
+ var convertLegacyToConfig = (elementsArg, pagesArg) => {
44784
+ const sections = [];
44785
+ if (pagesArg && Object.keys(pagesArg).length > 0) {
44786
+ sections.push({
44787
+ name: "Pages",
44788
+ type: "pages",
44789
+ items: pagesArg
44790
+ });
44791
+ }
44792
+ if (elementsArg && Object.keys(elementsArg).length > 0) {
44793
+ sections.push({
44794
+ name: "Elements",
44795
+ type: "elements",
44796
+ items: elementsArg
44797
+ });
44798
+ }
44799
+ return { sections };
44800
+ };
44801
+ var isWccConfig = (arg) => {
44802
+ return arg && typeof arg === "object" && "sections" in arg && Array.isArray(arg.sections);
44803
+ };
44804
+ var setupWccTools = (configOrElements, pagesArg) => {
44805
+ let config2;
44806
+ if (isWccConfig(configOrElements)) {
44807
+ config2 = configOrElements;
44808
+ } else {
44809
+ config2 = convertLegacyToConfig(configOrElements, pagesArg);
44810
+ }
44619
44811
  let hasRun = false;
44620
44812
  const runWccToolsSetup = async () => {
44621
44813
  if (document.readyState === "complete" && !hasRun) {
44622
44814
  hasRun = true;
44623
- const wccTools = new WccDashboard2(elementsArg, pagesArg);
44815
+ const wccTools = new WccDashboard2(config2);
44624
44816
  document.querySelector("body").append(wccTools);
44625
44817
  }
44626
44818
  };
@@ -45354,6 +45546,1000 @@ __publicField(TestNested, "styles", [
45354
45546
  ]);
45355
45547
  __runInitializers(_init15, 1, TestNested);
45356
45548
 
45549
+ // test/views/index.ts
45550
+ var views_exports = {};
45551
+ __export(views_exports, {
45552
+ ViewDashboard: () => ViewDashboard,
45553
+ ViewEmptyState: () => ViewEmptyState,
45554
+ ViewSettings: () => ViewSettings
45555
+ });
45556
+
45557
+ // test/views/view-dashboard.ts
45558
+ var _notificationCount_dec, _title_dec, _a14, _ViewDashboard_decorators, _init16, _title, _notificationCount;
45559
+ _ViewDashboard_decorators = [t4("view-dashboard")];
45560
+ var ViewDashboard = class extends (_a14 = DeesElement, _title_dec = [n5()], _notificationCount_dec = [n5({ type: Number })], _a14) {
45561
+ constructor() {
45562
+ super(...arguments);
45563
+ __privateAdd(this, _title, __runInitializers(_init16, 8, this, "Dashboard")), __runInitializers(_init16, 11, this);
45564
+ __privateAdd(this, _notificationCount, __runInitializers(_init16, 12, this, 3)), __runInitializers(_init16, 15, this);
45565
+ }
45566
+ render() {
45567
+ return x`
45568
+ <div class="dashboard">
45569
+ <header class="header">
45570
+ <h1>${this.title}</h1>
45571
+ <div class="header-actions">
45572
+ <div class="notification-badge" data-count="${this.notificationCount}">
45573
+ <span>Notifications</span>
45574
+ </div>
45575
+ <span>User</span>
45576
+ </div>
45577
+ </header>
45578
+
45579
+ <nav class="sidebar">
45580
+ <div class="nav-item active">Overview</div>
45581
+ <div class="nav-item">Analytics</div>
45582
+ <div class="nav-item">Projects</div>
45583
+ <div class="nav-item">Team</div>
45584
+ <div class="nav-item">Settings</div>
45585
+ </nav>
45586
+
45587
+ <main class="content">
45588
+ <div class="content-header">
45589
+ <h2>Overview</h2>
45590
+ <p>Welcome back! Here's what's happening with your projects.</p>
45591
+ </div>
45592
+
45593
+ <div class="stats-grid">
45594
+ <div class="stat-card">
45595
+ <div class="label">Total Revenue</div>
45596
+ <div class="value">$45,231</div>
45597
+ <div class="change">+20.1% from last month</div>
45598
+ </div>
45599
+ <div class="stat-card">
45600
+ <div class="label">Active Users</div>
45601
+ <div class="value">2,350</div>
45602
+ <div class="change">+180 new users</div>
45603
+ </div>
45604
+ <div class="stat-card">
45605
+ <div class="label">Pending Tasks</div>
45606
+ <div class="value">12</div>
45607
+ <div class="change negative">-3 from yesterday</div>
45608
+ </div>
45609
+ <div class="stat-card">
45610
+ <div class="label">Completion Rate</div>
45611
+ <div class="value">94.2%</div>
45612
+ <div class="change">+2.4% this week</div>
45613
+ </div>
45614
+ </div>
45615
+
45616
+ <div class="recent-activity">
45617
+ <h3>Recent Activity</h3>
45618
+ <div class="activity-item">
45619
+ <div class="activity-icon">+</div>
45620
+ <div class="activity-content">
45621
+ <div class="title">New project created</div>
45622
+ <div class="time">2 minutes ago</div>
45623
+ </div>
45624
+ </div>
45625
+ <div class="activity-item">
45626
+ <div class="activity-icon">U</div>
45627
+ <div class="activity-content">
45628
+ <div class="title">User settings updated</div>
45629
+ <div class="time">1 hour ago</div>
45630
+ </div>
45631
+ </div>
45632
+ <div class="activity-item">
45633
+ <div class="activity-icon">D</div>
45634
+ <div class="activity-content">
45635
+ <div class="title">Deployment completed</div>
45636
+ <div class="time">3 hours ago</div>
45637
+ </div>
45638
+ </div>
45639
+ </div>
45640
+ </main>
45641
+ </div>
45642
+ `;
45643
+ }
45644
+ };
45645
+ _init16 = __decoratorStart(_a14);
45646
+ _title = new WeakMap();
45647
+ _notificationCount = new WeakMap();
45648
+ __decorateElement(_init16, 4, "title", _title_dec, ViewDashboard, _title);
45649
+ __decorateElement(_init16, 4, "notificationCount", _notificationCount_dec, ViewDashboard, _notificationCount);
45650
+ ViewDashboard = __decorateElement(_init16, 0, "ViewDashboard", _ViewDashboard_decorators, ViewDashboard);
45651
+ __publicField(ViewDashboard, "demo", () => x`<view-dashboard></view-dashboard>`);
45652
+ __publicField(ViewDashboard, "styles", [
45653
+ cssManager.defaultStyles,
45654
+ i`
45655
+ :host {
45656
+ display: block;
45657
+ min-height: 100%;
45658
+ background: ${cssManager.bdTheme("#f5f5f5", "#0a0a0a")};
45659
+ color: ${cssManager.bdTheme("#1a1a1a", "#e5e5e5")};
45660
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
45661
+ }
45662
+
45663
+ .dashboard {
45664
+ display: grid;
45665
+ grid-template-columns: 240px 1fr;
45666
+ grid-template-rows: 60px 1fr;
45667
+ min-height: 100vh;
45668
+ }
45669
+
45670
+ .header {
45671
+ grid-column: 1 / -1;
45672
+ background: ${cssManager.bdTheme("#fff", "#111")};
45673
+ border-bottom: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
45674
+ display: flex;
45675
+ align-items: center;
45676
+ justify-content: space-between;
45677
+ padding: 0 24px;
45678
+ }
45679
+
45680
+ .header h1 {
45681
+ font-size: 18px;
45682
+ font-weight: 600;
45683
+ margin: 0;
45684
+ }
45685
+
45686
+ .header-actions {
45687
+ display: flex;
45688
+ align-items: center;
45689
+ gap: 16px;
45690
+ }
45691
+
45692
+ .notification-badge {
45693
+ position: relative;
45694
+ padding: 8px;
45695
+ cursor: pointer;
45696
+ }
45697
+
45698
+ .notification-badge::after {
45699
+ content: attr(data-count);
45700
+ position: absolute;
45701
+ top: 2px;
45702
+ right: 2px;
45703
+ background: #ef4444;
45704
+ color: white;
45705
+ font-size: 10px;
45706
+ padding: 2px 6px;
45707
+ border-radius: 10px;
45708
+ font-weight: 600;
45709
+ }
45710
+
45711
+ .sidebar {
45712
+ background: ${cssManager.bdTheme("#fff", "#0f0f0f")};
45713
+ border-right: 1px solid ${cssManager.bdTheme("#e5e5e5", "#1a1a1a")};
45714
+ padding: 16px 0;
45715
+ }
45716
+
45717
+ .nav-item {
45718
+ display: flex;
45719
+ align-items: center;
45720
+ gap: 12px;
45721
+ padding: 12px 24px;
45722
+ color: ${cssManager.bdTheme("#666", "#999")};
45723
+ cursor: pointer;
45724
+ transition: all 0.15s ease;
45725
+ }
45726
+
45727
+ .nav-item:hover {
45728
+ background: ${cssManager.bdTheme("#f5f5f5", "#1a1a1a")};
45729
+ color: ${cssManager.bdTheme("#1a1a1a", "#fff")};
45730
+ }
45731
+
45732
+ .nav-item.active {
45733
+ background: ${cssManager.bdTheme("rgba(59, 130, 246, 0.1)", "rgba(59, 130, 246, 0.15)")};
45734
+ color: #3b82f6;
45735
+ border-right: 3px solid #3b82f6;
45736
+ }
45737
+
45738
+ .content {
45739
+ padding: 24px;
45740
+ overflow-y: auto;
45741
+ }
45742
+
45743
+ .content-header {
45744
+ margin-bottom: 24px;
45745
+ }
45746
+
45747
+ .content-header h2 {
45748
+ font-size: 24px;
45749
+ font-weight: 600;
45750
+ margin: 0 0 8px 0;
45751
+ }
45752
+
45753
+ .content-header p {
45754
+ color: ${cssManager.bdTheme("#666", "#888")};
45755
+ margin: 0;
45756
+ }
45757
+
45758
+ .stats-grid {
45759
+ display: grid;
45760
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
45761
+ gap: 16px;
45762
+ margin-bottom: 24px;
45763
+ }
45764
+
45765
+ .stat-card {
45766
+ background: ${cssManager.bdTheme("#fff", "#111")};
45767
+ border: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
45768
+ border-radius: 8px;
45769
+ padding: 20px;
45770
+ }
45771
+
45772
+ .stat-card .label {
45773
+ font-size: 12px;
45774
+ text-transform: uppercase;
45775
+ letter-spacing: 0.05em;
45776
+ color: ${cssManager.bdTheme("#666", "#888")};
45777
+ margin-bottom: 8px;
45778
+ }
45779
+
45780
+ .stat-card .value {
45781
+ font-size: 28px;
45782
+ font-weight: 700;
45783
+ }
45784
+
45785
+ .stat-card .change {
45786
+ font-size: 12px;
45787
+ color: #22c55e;
45788
+ margin-top: 4px;
45789
+ }
45790
+
45791
+ .stat-card .change.negative {
45792
+ color: #ef4444;
45793
+ }
45794
+
45795
+ .recent-activity {
45796
+ background: ${cssManager.bdTheme("#fff", "#111")};
45797
+ border: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
45798
+ border-radius: 8px;
45799
+ padding: 20px;
45800
+ }
45801
+
45802
+ .recent-activity h3 {
45803
+ font-size: 16px;
45804
+ font-weight: 600;
45805
+ margin: 0 0 16px 0;
45806
+ }
45807
+
45808
+ .activity-item {
45809
+ display: flex;
45810
+ align-items: center;
45811
+ gap: 12px;
45812
+ padding: 12px 0;
45813
+ border-bottom: 1px solid ${cssManager.bdTheme("#f0f0f0", "#1a1a1a")};
45814
+ }
45815
+
45816
+ .activity-item:last-child {
45817
+ border-bottom: none;
45818
+ }
45819
+
45820
+ .activity-icon {
45821
+ width: 36px;
45822
+ height: 36px;
45823
+ border-radius: 8px;
45824
+ background: ${cssManager.bdTheme("#f5f5f5", "#1a1a1a")};
45825
+ display: flex;
45826
+ align-items: center;
45827
+ justify-content: center;
45828
+ font-size: 14px;
45829
+ }
45830
+
45831
+ .activity-content {
45832
+ flex: 1;
45833
+ }
45834
+
45835
+ .activity-content .title {
45836
+ font-weight: 500;
45837
+ margin-bottom: 2px;
45838
+ }
45839
+
45840
+ .activity-content .time {
45841
+ font-size: 12px;
45842
+ color: ${cssManager.bdTheme("#888", "#666")};
45843
+ }
45844
+ `
45845
+ ]);
45846
+ __runInitializers(_init16, 1, ViewDashboard);
45847
+
45848
+ // test/views/view-settings.ts
45849
+ var _userEmail_dec, _userName_dec, _activeTab_dec, _a15, _ViewSettings_decorators, _init17, _activeTab, _userName, _userEmail;
45850
+ _ViewSettings_decorators = [t4("view-settings")];
45851
+ var ViewSettings = class extends (_a15 = DeesElement, _activeTab_dec = [n5()], _userName_dec = [n5()], _userEmail_dec = [n5()], _a15) {
45852
+ constructor() {
45853
+ super(...arguments);
45854
+ __privateAdd(this, _activeTab, __runInitializers(_init17, 8, this, "profile")), __runInitializers(_init17, 11, this);
45855
+ __privateAdd(this, _userName, __runInitializers(_init17, 12, this, "John Doe")), __runInitializers(_init17, 15, this);
45856
+ __privateAdd(this, _userEmail, __runInitializers(_init17, 16, this, "john@example.com")), __runInitializers(_init17, 19, this);
45857
+ }
45858
+ handleTabClick(tab2) {
45859
+ this.activeTab = tab2;
45860
+ }
45861
+ render() {
45862
+ return x`
45863
+ <div class="settings-layout">
45864
+ <div class="settings-header">
45865
+ <h1>Settings</h1>
45866
+ <p>Manage your account settings and preferences</p>
45867
+ </div>
45868
+
45869
+ <div class="settings-content">
45870
+ <nav class="settings-nav">
45871
+ <div
45872
+ class="nav-item ${this.activeTab === "profile" ? "active" : ""}"
45873
+ @click=${() => this.handleTabClick("profile")}
45874
+ >
45875
+ Profile
45876
+ </div>
45877
+ <div
45878
+ class="nav-item ${this.activeTab === "notifications" ? "active" : ""}"
45879
+ @click=${() => this.handleTabClick("notifications")}
45880
+ >
45881
+ Notifications
45882
+ </div>
45883
+ <div
45884
+ class="nav-item ${this.activeTab === "security" ? "active" : ""}"
45885
+ @click=${() => this.handleTabClick("security")}
45886
+ >
45887
+ Security
45888
+ </div>
45889
+ </nav>
45890
+
45891
+ <div class="settings-panel">
45892
+ ${this.activeTab === "profile" ? this.renderProfile() : null}
45893
+ ${this.activeTab === "notifications" ? this.renderNotifications() : null}
45894
+ ${this.activeTab === "security" ? this.renderSecurity() : null}
45895
+ </div>
45896
+ </div>
45897
+ </div>
45898
+ `;
45899
+ }
45900
+ renderProfile() {
45901
+ return x`
45902
+ <div class="panel-header">
45903
+ <h2>Profile Information</h2>
45904
+ <p>Update your personal details and email address</p>
45905
+ </div>
45906
+
45907
+ <div class="form-row">
45908
+ <div class="form-group">
45909
+ <label>First Name</label>
45910
+ <input type="text" value="John" />
45911
+ </div>
45912
+ <div class="form-group">
45913
+ <label>Last Name</label>
45914
+ <input type="text" value="Doe" />
45915
+ </div>
45916
+ </div>
45917
+
45918
+ <div class="form-group">
45919
+ <label>Email Address</label>
45920
+ <input type="email" value="${this.userEmail}" />
45921
+ </div>
45922
+
45923
+ <div class="form-group">
45924
+ <label>Bio</label>
45925
+ <input type="text" placeholder="Tell us about yourself..." />
45926
+ </div>
45927
+
45928
+ <div class="button-group">
45929
+ <button class="btn btn-primary">Save Changes</button>
45930
+ <button class="btn btn-secondary">Cancel</button>
45931
+ </div>
45932
+ `;
45933
+ }
45934
+ renderNotifications() {
45935
+ return x`
45936
+ <div class="panel-header">
45937
+ <h2>Notification Preferences</h2>
45938
+ <p>Choose what notifications you want to receive</p>
45939
+ </div>
45940
+
45941
+ <div class="toggle-group">
45942
+ <div class="toggle-label">
45943
+ <span class="title">Email Notifications</span>
45944
+ <span class="description">Receive email updates about your account activity</span>
45945
+ </div>
45946
+ <div class="toggle active"></div>
45947
+ </div>
45948
+
45949
+ <div class="toggle-group">
45950
+ <div class="toggle-label">
45951
+ <span class="title">Push Notifications</span>
45952
+ <span class="description">Receive push notifications on your device</span>
45953
+ </div>
45954
+ <div class="toggle active"></div>
45955
+ </div>
45956
+
45957
+ <div class="toggle-group">
45958
+ <div class="toggle-label">
45959
+ <span class="title">Weekly Digest</span>
45960
+ <span class="description">Get a weekly summary of your activity</span>
45961
+ </div>
45962
+ <div class="toggle"></div>
45963
+ </div>
45964
+
45965
+ <div class="toggle-group">
45966
+ <div class="toggle-label">
45967
+ <span class="title">Marketing Emails</span>
45968
+ <span class="description">Receive tips, updates, and promotions</span>
45969
+ </div>
45970
+ <div class="toggle"></div>
45971
+ </div>
45972
+
45973
+ <div class="button-group">
45974
+ <button class="btn btn-primary">Save Preferences</button>
45975
+ </div>
45976
+ `;
45977
+ }
45978
+ renderSecurity() {
45979
+ return x`
45980
+ <div class="panel-header">
45981
+ <h2>Security Settings</h2>
45982
+ <p>Manage your password and security options</p>
45983
+ </div>
45984
+
45985
+ <div class="security-item">
45986
+ <div class="info">
45987
+ <span class="title">Password</span>
45988
+ <span class="status">Last changed 30 days ago</span>
45989
+ </div>
45990
+ <button class="btn btn-secondary">Change Password</button>
45991
+ </div>
45992
+
45993
+ <div class="security-item">
45994
+ <div class="info">
45995
+ <span class="title">Two-Factor Authentication</span>
45996
+ <span class="status enabled">Enabled</span>
45997
+ </div>
45998
+ <button class="btn btn-secondary">Manage</button>
45999
+ </div>
46000
+
46001
+ <div class="security-item">
46002
+ <div class="info">
46003
+ <span class="title">Active Sessions</span>
46004
+ <span class="status">3 devices</span>
46005
+ </div>
46006
+ <button class="btn btn-secondary">View All</button>
46007
+ </div>
46008
+
46009
+ <div class="button-group">
46010
+ <button class="btn btn-danger">Delete Account</button>
46011
+ </div>
46012
+ `;
46013
+ }
46014
+ };
46015
+ _init17 = __decoratorStart(_a15);
46016
+ _activeTab = new WeakMap();
46017
+ _userName = new WeakMap();
46018
+ _userEmail = new WeakMap();
46019
+ __decorateElement(_init17, 4, "activeTab", _activeTab_dec, ViewSettings, _activeTab);
46020
+ __decorateElement(_init17, 4, "userName", _userName_dec, ViewSettings, _userName);
46021
+ __decorateElement(_init17, 4, "userEmail", _userEmail_dec, ViewSettings, _userEmail);
46022
+ ViewSettings = __decorateElement(_init17, 0, "ViewSettings", _ViewSettings_decorators, ViewSettings);
46023
+ __publicField(ViewSettings, "demo", [
46024
+ () => x`<view-settings></view-settings>`,
46025
+ () => x`<view-settings activeTab="notifications"></view-settings>`,
46026
+ () => x`<view-settings activeTab="security"></view-settings>`
46027
+ ]);
46028
+ __publicField(ViewSettings, "styles", [
46029
+ cssManager.defaultStyles,
46030
+ i`
46031
+ :host {
46032
+ display: block;
46033
+ min-height: 100%;
46034
+ background: ${cssManager.bdTheme("#f5f5f5", "#0a0a0a")};
46035
+ color: ${cssManager.bdTheme("#1a1a1a", "#e5e5e5")};
46036
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
46037
+ }
46038
+
46039
+ .settings-layout {
46040
+ max-width: 1000px;
46041
+ margin: 0 auto;
46042
+ padding: 40px 24px;
46043
+ }
46044
+
46045
+ .settings-header {
46046
+ margin-bottom: 32px;
46047
+ }
46048
+
46049
+ .settings-header h1 {
46050
+ font-size: 28px;
46051
+ font-weight: 700;
46052
+ margin: 0 0 8px 0;
46053
+ }
46054
+
46055
+ .settings-header p {
46056
+ color: ${cssManager.bdTheme("#666", "#888")};
46057
+ margin: 0;
46058
+ }
46059
+
46060
+ .settings-content {
46061
+ display: grid;
46062
+ grid-template-columns: 200px 1fr;
46063
+ gap: 32px;
46064
+ }
46065
+
46066
+ .settings-nav {
46067
+ display: flex;
46068
+ flex-direction: column;
46069
+ gap: 4px;
46070
+ }
46071
+
46072
+ .nav-item {
46073
+ padding: 12px 16px;
46074
+ border-radius: 6px;
46075
+ cursor: pointer;
46076
+ transition: all 0.15s ease;
46077
+ color: ${cssManager.bdTheme("#666", "#999")};
46078
+ }
46079
+
46080
+ .nav-item:hover {
46081
+ background: ${cssManager.bdTheme("#e5e5e5", "#1a1a1a")};
46082
+ color: ${cssManager.bdTheme("#1a1a1a", "#fff")};
46083
+ }
46084
+
46085
+ .nav-item.active {
46086
+ background: ${cssManager.bdTheme("#1a1a1a", "#3b82f6")};
46087
+ color: #fff;
46088
+ }
46089
+
46090
+ .settings-panel {
46091
+ background: ${cssManager.bdTheme("#fff", "#111")};
46092
+ border: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
46093
+ border-radius: 12px;
46094
+ padding: 24px;
46095
+ }
46096
+
46097
+ .panel-header {
46098
+ margin-bottom: 24px;
46099
+ padding-bottom: 16px;
46100
+ border-bottom: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
46101
+ }
46102
+
46103
+ .panel-header h2 {
46104
+ font-size: 18px;
46105
+ font-weight: 600;
46106
+ margin: 0 0 4px 0;
46107
+ }
46108
+
46109
+ .panel-header p {
46110
+ font-size: 14px;
46111
+ color: ${cssManager.bdTheme("#666", "#888")};
46112
+ margin: 0;
46113
+ }
46114
+
46115
+ .form-group {
46116
+ margin-bottom: 20px;
46117
+ }
46118
+
46119
+ .form-group label {
46120
+ display: block;
46121
+ font-size: 14px;
46122
+ font-weight: 500;
46123
+ margin-bottom: 8px;
46124
+ }
46125
+
46126
+ .form-group input {
46127
+ width: 100%;
46128
+ padding: 10px 14px;
46129
+ border: 1px solid ${cssManager.bdTheme("#ddd", "#333")};
46130
+ border-radius: 6px;
46131
+ font-size: 14px;
46132
+ background: ${cssManager.bdTheme("#fff", "#0a0a0a")};
46133
+ color: ${cssManager.bdTheme("#1a1a1a", "#e5e5e5")};
46134
+ box-sizing: border-box;
46135
+ }
46136
+
46137
+ .form-group input:focus {
46138
+ outline: none;
46139
+ border-color: #3b82f6;
46140
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
46141
+ }
46142
+
46143
+ .form-row {
46144
+ display: grid;
46145
+ grid-template-columns: 1fr 1fr;
46146
+ gap: 16px;
46147
+ }
46148
+
46149
+ .toggle-group {
46150
+ display: flex;
46151
+ align-items: center;
46152
+ justify-content: space-between;
46153
+ padding: 16px 0;
46154
+ border-bottom: 1px solid ${cssManager.bdTheme("#f0f0f0", "#1a1a1a")};
46155
+ }
46156
+
46157
+ .toggle-group:last-child {
46158
+ border-bottom: none;
46159
+ }
46160
+
46161
+ .toggle-label {
46162
+ display: flex;
46163
+ flex-direction: column;
46164
+ gap: 4px;
46165
+ }
46166
+
46167
+ .toggle-label .title {
46168
+ font-weight: 500;
46169
+ }
46170
+
46171
+ .toggle-label .description {
46172
+ font-size: 13px;
46173
+ color: ${cssManager.bdTheme("#666", "#888")};
46174
+ }
46175
+
46176
+ .toggle {
46177
+ width: 44px;
46178
+ height: 24px;
46179
+ background: ${cssManager.bdTheme("#ddd", "#333")};
46180
+ border-radius: 12px;
46181
+ position: relative;
46182
+ cursor: pointer;
46183
+ transition: background 0.2s ease;
46184
+ }
46185
+
46186
+ .toggle.active {
46187
+ background: #3b82f6;
46188
+ }
46189
+
46190
+ .toggle::after {
46191
+ content: '';
46192
+ position: absolute;
46193
+ top: 2px;
46194
+ left: 2px;
46195
+ width: 20px;
46196
+ height: 20px;
46197
+ background: white;
46198
+ border-radius: 50%;
46199
+ transition: transform 0.2s ease;
46200
+ }
46201
+
46202
+ .toggle.active::after {
46203
+ transform: translateX(20px);
46204
+ }
46205
+
46206
+ .button-group {
46207
+ display: flex;
46208
+ gap: 12px;
46209
+ margin-top: 24px;
46210
+ padding-top: 24px;
46211
+ border-top: 1px solid ${cssManager.bdTheme("#e5e5e5", "#222")};
46212
+ }
46213
+
46214
+ .btn {
46215
+ padding: 10px 20px;
46216
+ border-radius: 6px;
46217
+ font-size: 14px;
46218
+ font-weight: 500;
46219
+ cursor: pointer;
46220
+ transition: all 0.15s ease;
46221
+ }
46222
+
46223
+ .btn-primary {
46224
+ background: #3b82f6;
46225
+ color: white;
46226
+ border: none;
46227
+ }
46228
+
46229
+ .btn-primary:hover {
46230
+ background: #2563eb;
46231
+ }
46232
+
46233
+ .btn-secondary {
46234
+ background: transparent;
46235
+ color: ${cssManager.bdTheme("#666", "#999")};
46236
+ border: 1px solid ${cssManager.bdTheme("#ddd", "#333")};
46237
+ }
46238
+
46239
+ .btn-secondary:hover {
46240
+ background: ${cssManager.bdTheme("#f5f5f5", "#1a1a1a")};
46241
+ }
46242
+
46243
+ .btn-danger {
46244
+ background: #ef4444;
46245
+ color: white;
46246
+ border: none;
46247
+ }
46248
+
46249
+ .btn-danger:hover {
46250
+ background: #dc2626;
46251
+ }
46252
+
46253
+ .security-item {
46254
+ display: flex;
46255
+ align-items: center;
46256
+ justify-content: space-between;
46257
+ padding: 16px;
46258
+ background: ${cssManager.bdTheme("#f9f9f9", "#0a0a0a")};
46259
+ border-radius: 8px;
46260
+ margin-bottom: 12px;
46261
+ }
46262
+
46263
+ .security-item .info {
46264
+ display: flex;
46265
+ flex-direction: column;
46266
+ gap: 4px;
46267
+ }
46268
+
46269
+ .security-item .title {
46270
+ font-weight: 500;
46271
+ }
46272
+
46273
+ .security-item .status {
46274
+ font-size: 13px;
46275
+ color: ${cssManager.bdTheme("#666", "#888")};
46276
+ }
46277
+
46278
+ .security-item .status.enabled {
46279
+ color: #22c55e;
46280
+ }
46281
+ `
46282
+ ]);
46283
+ __runInitializers(_init17, 1, ViewSettings);
46284
+
46285
+ // test/views/view-empty-state.ts
46286
+ var _description_dec, _title_dec2, _variant_dec, _a16, _ViewEmptyState_decorators, _init18, _variant, _title2, _description;
46287
+ _ViewEmptyState_decorators = [t4("view-empty-state")];
46288
+ var ViewEmptyState = class extends (_a16 = DeesElement, _variant_dec = [n5()], _title_dec2 = [n5()], _description_dec = [n5()], _a16) {
46289
+ constructor() {
46290
+ super(...arguments);
46291
+ __privateAdd(this, _variant, __runInitializers(_init18, 8, this, "empty")), __runInitializers(_init18, 11, this);
46292
+ __privateAdd(this, _title2, __runInitializers(_init18, 12, this, "")), __runInitializers(_init18, 15, this);
46293
+ __privateAdd(this, _description, __runInitializers(_init18, 16, this, "")), __runInitializers(_init18, 19, this);
46294
+ }
46295
+ getContent() {
46296
+ switch (this.variant) {
46297
+ case "no-results":
46298
+ return {
46299
+ title: this.title || "No results found",
46300
+ description: this.description || "We couldn't find what you're looking for. Try adjusting your search or filters.",
46301
+ icon: "search",
46302
+ primaryAction: "Clear Filters",
46303
+ secondaryAction: "Go Back"
46304
+ };
46305
+ case "error":
46306
+ return {
46307
+ title: this.title || "Something went wrong",
46308
+ description: this.description || "We're having trouble loading this page. Please try again or contact support if the problem persists.",
46309
+ icon: "error",
46310
+ primaryAction: "Try Again",
46311
+ secondaryAction: "Contact Support"
46312
+ };
46313
+ default:
46314
+ return {
46315
+ title: this.title || "No items yet",
46316
+ description: this.description || "Get started by creating your first item. It only takes a few seconds.",
46317
+ icon: "folder",
46318
+ primaryAction: "Create New",
46319
+ secondaryAction: "Learn More"
46320
+ };
46321
+ }
46322
+ }
46323
+ render() {
46324
+ const content3 = this.getContent();
46325
+ return x`
46326
+ <div class="empty-state">
46327
+ ${this.renderIcon(content3.icon)}
46328
+ <h2>${content3.title}</h2>
46329
+ <p>${content3.description}</p>
46330
+ <div class="actions">
46331
+ <button class="btn btn-primary">${content3.primaryAction}</button>
46332
+ <button class="btn btn-secondary">${content3.secondaryAction}</button>
46333
+ </div>
46334
+ </div>
46335
+ `;
46336
+ }
46337
+ renderIcon(type5) {
46338
+ switch (type5) {
46339
+ case "search":
46340
+ return x`<div class="search-icon"></div>`;
46341
+ case "error":
46342
+ return x`<div class="error-icon"></div>`;
46343
+ default:
46344
+ return x`
46345
+ <div class="folder-icon">
46346
+ <div class="folder-tab"></div>
46347
+ <div class="folder-back"></div>
46348
+ <div class="folder-front"></div>
46349
+ </div>
46350
+ `;
46351
+ }
46352
+ }
46353
+ };
46354
+ _init18 = __decoratorStart(_a16);
46355
+ _variant = new WeakMap();
46356
+ _title2 = new WeakMap();
46357
+ _description = new WeakMap();
46358
+ __decorateElement(_init18, 4, "variant", _variant_dec, ViewEmptyState, _variant);
46359
+ __decorateElement(_init18, 4, "title", _title_dec2, ViewEmptyState, _title2);
46360
+ __decorateElement(_init18, 4, "description", _description_dec, ViewEmptyState, _description);
46361
+ ViewEmptyState = __decorateElement(_init18, 0, "ViewEmptyState", _ViewEmptyState_decorators, ViewEmptyState);
46362
+ __publicField(ViewEmptyState, "demo", [
46363
+ () => x`<view-empty-state></view-empty-state>`,
46364
+ () => x`<view-empty-state variant="no-results"></view-empty-state>`,
46365
+ () => x`<view-empty-state variant="error"></view-empty-state>`
46366
+ ]);
46367
+ __publicField(ViewEmptyState, "styles", [
46368
+ cssManager.defaultStyles,
46369
+ i`
46370
+ :host {
46371
+ display: flex;
46372
+ align-items: center;
46373
+ justify-content: center;
46374
+ min-height: 100%;
46375
+ background: ${cssManager.bdTheme("#f5f5f5", "#0a0a0a")};
46376
+ color: ${cssManager.bdTheme("#1a1a1a", "#e5e5e5")};
46377
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
46378
+ padding: 40px;
46379
+ box-sizing: border-box;
46380
+ }
46381
+
46382
+ .empty-state {
46383
+ text-align: center;
46384
+ max-width: 400px;
46385
+ }
46386
+
46387
+ .icon-container {
46388
+ width: 120px;
46389
+ height: 120px;
46390
+ margin: 0 auto 24px;
46391
+ background: ${cssManager.bdTheme("#e5e5e5", "#1a1a1a")};
46392
+ border-radius: 50%;
46393
+ display: flex;
46394
+ align-items: center;
46395
+ justify-content: center;
46396
+ }
46397
+
46398
+ .icon {
46399
+ font-size: 48px;
46400
+ opacity: 0.5;
46401
+ }
46402
+
46403
+ .icon.error {
46404
+ color: #ef4444;
46405
+ opacity: 1;
46406
+ }
46407
+
46408
+ h2 {
46409
+ font-size: 24px;
46410
+ font-weight: 600;
46411
+ margin: 0 0 12px 0;
46412
+ }
46413
+
46414
+ p {
46415
+ color: ${cssManager.bdTheme("#666", "#888")};
46416
+ margin: 0 0 24px 0;
46417
+ line-height: 1.6;
46418
+ }
46419
+
46420
+ .actions {
46421
+ display: flex;
46422
+ gap: 12px;
46423
+ justify-content: center;
46424
+ flex-wrap: wrap;
46425
+ }
46426
+
46427
+ .btn {
46428
+ padding: 12px 24px;
46429
+ border-radius: 8px;
46430
+ font-size: 14px;
46431
+ font-weight: 500;
46432
+ cursor: pointer;
46433
+ transition: all 0.15s ease;
46434
+ border: none;
46435
+ }
46436
+
46437
+ .btn-primary {
46438
+ background: #3b82f6;
46439
+ color: white;
46440
+ }
46441
+
46442
+ .btn-primary:hover {
46443
+ background: #2563eb;
46444
+ transform: translateY(-1px);
46445
+ }
46446
+
46447
+ .btn-secondary {
46448
+ background: ${cssManager.bdTheme("#e5e5e5", "#1a1a1a")};
46449
+ color: ${cssManager.bdTheme("#1a1a1a", "#e5e5e5")};
46450
+ }
46451
+
46452
+ .btn-secondary:hover {
46453
+ background: ${cssManager.bdTheme("#ddd", "#222")};
46454
+ }
46455
+
46456
+ .illustration {
46457
+ margin-bottom: 24px;
46458
+ }
46459
+
46460
+ .illustration svg {
46461
+ width: 200px;
46462
+ height: 150px;
46463
+ }
46464
+
46465
+ .folder-icon {
46466
+ width: 80px;
46467
+ height: 80px;
46468
+ margin: 0 auto 16px;
46469
+ position: relative;
46470
+ }
46471
+
46472
+ .folder-back {
46473
+ position: absolute;
46474
+ width: 80px;
46475
+ height: 60px;
46476
+ background: ${cssManager.bdTheme("#ddd", "#333")};
46477
+ border-radius: 4px 4px 8px 8px;
46478
+ bottom: 0;
46479
+ }
46480
+
46481
+ .folder-front {
46482
+ position: absolute;
46483
+ width: 80px;
46484
+ height: 50px;
46485
+ background: ${cssManager.bdTheme("#e5e5e5", "#444")};
46486
+ border-radius: 0 4px 8px 8px;
46487
+ bottom: 0;
46488
+ }
46489
+
46490
+ .folder-tab {
46491
+ position: absolute;
46492
+ width: 30px;
46493
+ height: 12px;
46494
+ background: ${cssManager.bdTheme("#ddd", "#333")};
46495
+ border-radius: 4px 4px 0 0;
46496
+ top: 0;
46497
+ left: 0;
46498
+ }
46499
+
46500
+ .search-icon {
46501
+ width: 60px;
46502
+ height: 60px;
46503
+ border: 4px solid ${cssManager.bdTheme("#ccc", "#444")};
46504
+ border-radius: 50%;
46505
+ position: relative;
46506
+ margin: 0 auto 16px;
46507
+ }
46508
+
46509
+ .search-icon::after {
46510
+ content: '';
46511
+ position: absolute;
46512
+ width: 4px;
46513
+ height: 20px;
46514
+ background: ${cssManager.bdTheme("#ccc", "#444")};
46515
+ border-radius: 2px;
46516
+ bottom: -18px;
46517
+ right: -8px;
46518
+ transform: rotate(-45deg);
46519
+ }
46520
+
46521
+ .error-icon {
46522
+ width: 80px;
46523
+ height: 80px;
46524
+ border: 4px solid #ef4444;
46525
+ border-radius: 50%;
46526
+ position: relative;
46527
+ margin: 0 auto 16px;
46528
+ display: flex;
46529
+ align-items: center;
46530
+ justify-content: center;
46531
+ }
46532
+
46533
+ .error-icon::before {
46534
+ content: '!';
46535
+ font-size: 40px;
46536
+ font-weight: 700;
46537
+ color: #ef4444;
46538
+ }
46539
+ `
46540
+ ]);
46541
+ __runInitializers(_init18, 1, ViewEmptyState);
46542
+
45357
46543
  // test/pages/index.ts
45358
46544
  var pages_exports = {};
45359
46545
  __export(pages_exports, {
@@ -45503,7 +46689,27 @@ var pageLongScroll = () => x`
45503
46689
  `;
45504
46690
 
45505
46691
  // html/index.ts
45506
- setupWccTools(elements_exports, pages_exports);
46692
+ setupWccTools({
46693
+ sections: [
46694
+ {
46695
+ name: "Pages",
46696
+ type: "pages",
46697
+ items: pages_exports
46698
+ },
46699
+ {
46700
+ name: "Views",
46701
+ type: "elements",
46702
+ items: views_exports,
46703
+ icon: "web"
46704
+ },
46705
+ {
46706
+ name: "Elements",
46707
+ type: "elements",
46708
+ items: elements_exports,
46709
+ sort: ([a4], [b4]) => a4.localeCompare(b4)
46710
+ }
46711
+ ]
46712
+ });
45507
46713
  domtools_elementbasic_exports.setup();
45508
46714
  /*! Bundled license information:
45509
46715