pwa-auth 3.7.2 → 3.7.3

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.
@@ -47,8 +47,13 @@ export declare class UserSettings extends UserSettings_base {
47
47
  private clipHeight;
48
48
  private sheetShift;
49
49
  private rollMotion;
50
+ private leaving;
51
+ private leaveClipHeight;
52
+ private leaveSheetShift;
53
+ private leaveMotion;
50
54
  private booted;
51
55
  private heldHeight;
56
+ private leaveFrom;
52
57
  private columnWidth;
53
58
  private columnObserver;
54
59
  constructor();
@@ -63,14 +68,24 @@ export declare class UserSettings extends UserSettings_base {
63
68
  protected willUpdate(changed: PropertyValues): void;
64
69
  protected updated(changed: PropertyValues): void;
65
70
  private watchColumn;
66
- private clip;
67
- private sheet;
71
+ private clipFor;
72
+ private frontClip;
73
+ private backClip;
74
+ private sheetOf;
68
75
  private reduced;
76
+ private sheetPx;
69
77
  private rest;
78
+ private layerStyle;
79
+ private shiftStyle;
70
80
  private clipStyle;
71
81
  private sheetStyle;
72
- private rollBetween;
73
- private onClipEnd;
82
+ private leaveClipStyle;
83
+ private leaveSheetStyle;
84
+ private rollLayer;
85
+ private onFrontEnd;
86
+ private onBackEnd;
87
+ private layerOf;
88
+ private panel;
74
89
  protected render(): import("lit-html").TemplateResult<1>;
75
90
  }
76
91
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/settings/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI5E,OAAO,EAAS,QAAQ,EAAE,MAAqB,gBAAgB,CAAC;AAGhE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;;;;;;;;;;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IAAI;IAuBhD,OAAO,CAAC,WAAW;IA4BnB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAef,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,SAAS;IAkCjB,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,SAAS,CAMf;IAEF,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,KAAK;IAmCb,SAAS,CAAC,MAAM;CAoGjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACF"}
@@ -35,14 +35,19 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
35
35
  this.clipHeight = 'auto';
36
36
  this.sheetShift = 'none';
37
37
  this.rollMotion = false;
38
+ this.leaving = '';
39
+ this.leaveClipHeight = '0px';
40
+ this.leaveSheetShift = 'translate3d(0, 0, 0)';
41
+ this.leaveMotion = false;
38
42
  this.booted = false;
39
43
  this.heldHeight = null;
44
+ this.leaveFrom = 0;
40
45
  this.columnWidth = 0;
41
46
  this.columnObserver = null;
42
47
  this.onSubmit = (event) => {
43
48
  event.preventDefault();
44
49
  };
45
- this.onClipEnd = (event) => {
50
+ this.onFrontEnd = (event) => {
46
51
  if (!(event instanceof TransitionEvent))
47
52
  return;
48
53
  if (event.target !== event.currentTarget)
@@ -51,6 +56,16 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
51
56
  return;
52
57
  this.rest();
53
58
  };
59
+ this.onBackEnd = (event) => {
60
+ if (!(event instanceof TransitionEvent))
61
+ return;
62
+ if (event.target !== event.currentTarget)
63
+ return;
64
+ if (event.propertyName !== 'max-height')
65
+ return;
66
+ this.leaving = '';
67
+ this.leaveMotion = false;
68
+ };
54
69
  }
55
70
  connectedCallback() {
56
71
  applyFirebaseConfig(this);
@@ -108,13 +123,25 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
108
123
  :host { --pwa_slide: 0s; }
109
124
  }
110
125
 
111
- /* Required - this settings roll only. Block, so the sheet is not stretched. */
126
+ /* Required - this settings roll only. The two clips share one cell so the
127
+ stage is as tall as the lower edge, and the incoming clip paints in front. */
128
+ .settings-stage {
129
+ display: grid;
130
+ }
131
+
112
132
  .settings-clip {
133
+ grid-area: 1 / 1;
134
+ align-self: start;
135
+ justify-self: stretch;
113
136
  display: block;
114
137
  overflow: hidden;
115
138
  min-height: 0;
139
+ width: 100%;
116
140
  }
117
141
 
142
+ .settings-clip.is-front { z-index: 2; }
143
+ .settings-clip.is-back { z-index: 1; }
144
+
118
145
  .settings-sheet {
119
146
  display: block;
120
147
  height: auto;
@@ -123,6 +150,11 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
123
150
  background-color: var(--pwa_background, var(--pwa_settings_background_color, #fff));
124
151
  }
125
152
 
153
+ /* Required - an inactive tab stays fully behind the fold. */
154
+ .settings-sheet > section[hidden] {
155
+ display: none !important;
156
+ }
157
+
126
158
  form {
127
159
  box-sizing: border-box;
128
160
  display: grid;
@@ -161,13 +193,21 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
161
193
  return;
162
194
  if (!changed.has('profileTopic'))
163
195
  return;
164
- const clip = this.clip();
165
- if (!clip)
196
+ if (this.reduced())
166
197
  return;
167
- this.heldHeight = Math.ceil(clip.getBoundingClientRect().height);
198
+ const previous = String(changed.get('profileTopic') || '');
199
+ if (!previous || previous === this.profileTopic)
200
+ return;
201
+ const clip = this.clipFor(previous);
202
+ this.leaveFrom = clip ? Math.ceil(clip.getBoundingClientRect().height) : 0;
203
+ this.leaving = previous;
204
+ this.leaveMotion = false;
205
+ this.leaveClipHeight = `${this.leaveFrom}px`;
206
+ this.leaveSheetShift = 'translate3d(0, 0, 0)';
168
207
  this.rollMotion = false;
169
- this.clipHeight = `${this.heldHeight}px`;
170
- this.sheetShift = 'translate3d(0, 0, 0)';
208
+ this.clipHeight = '0px';
209
+ this.sheetShift = 'translate3d(0, -100%, 0)';
210
+ this.heldHeight = 0;
171
211
  }
172
212
  updated(changed) {
173
213
  const boot = !this.booted;
@@ -176,17 +216,24 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
176
216
  this.watchColumn();
177
217
  if (boot || !changed.has('profileTopic') || !this.login || changed.has('login'))
178
218
  return;
179
- const clip = this.clip();
180
- const sheet = this.sheet();
181
- if (!clip || !sheet || this.heldHeight == null)
182
- return;
183
- const from = this.heldHeight;
184
- this.heldHeight = null;
185
- const to = Math.ceil(sheet.getBoundingClientRect().height);
186
- if (Math.abs(to - from) > 1)
187
- this.rollBetween(clip, sheet, from, to, to);
188
- else
189
- this.rest();
219
+ const clip = this.frontClip();
220
+ const sheet = this.sheetOf(clip);
221
+ if (clip && sheet && this.heldHeight != null) {
222
+ const from = this.heldHeight;
223
+ this.heldHeight = null;
224
+ const to = this.sheetPx(clip, sheet);
225
+ if (Math.abs(to - from) > 1)
226
+ this.rollLayer('front', clip, sheet, from, to, to);
227
+ else
228
+ this.rest();
229
+ }
230
+ const back = this.backClip();
231
+ const backSheet = this.sheetOf(back);
232
+ if (back && backSheet && this.leaving) {
233
+ const sheetH = this.sheetPx(back, backSheet);
234
+ const from = this.leaveFrom || sheetH;
235
+ this.rollLayer('back', back, backSheet, from, 0, sheetH);
236
+ }
190
237
  }
191
238
  watchColumn() {
192
239
  if (typeof ResizeObserver === 'undefined')
@@ -196,55 +243,98 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
196
243
  if (!width || width === this.columnWidth)
197
244
  return;
198
245
  this.columnWidth = width;
199
- if (!this.rollMotion)
200
- return;
201
- const clip = this.clip();
202
- const sheet = this.sheet();
203
- if (!clip || !sheet)
204
- return;
205
- const from = Math.ceil(clip.getBoundingClientRect().height);
206
- const sheetH = Math.ceil(sheet.getBoundingClientRect().height);
207
- this.rollBetween(clip, sheet, from, sheetH, sheetH);
246
+ if (this.rollMotion) {
247
+ const clip = this.frontClip();
248
+ const sheet = this.sheetOf(clip);
249
+ if (clip && sheet) {
250
+ const from = Math.ceil(clip.getBoundingClientRect().height);
251
+ const sheetH = this.sheetPx(clip, sheet);
252
+ this.rollLayer('front', clip, sheet, from, sheetH, sheetH);
253
+ }
254
+ }
255
+ if (this.leaveMotion) {
256
+ const clip = this.backClip();
257
+ const sheet = this.sheetOf(clip);
258
+ if (clip && sheet) {
259
+ const from = Math.ceil(clip.getBoundingClientRect().height);
260
+ const sheetH = this.sheetPx(clip, sheet);
261
+ this.rollLayer('back', clip, sheet, from, 0, sheetH);
262
+ }
263
+ }
208
264
  });
209
265
  this.columnObserver.observe(this);
210
266
  }
211
- clip() {
212
- return this.shadowRoot?.querySelector('.settings-clip') ?? null;
267
+ clipFor(name) {
268
+ return this.shadowRoot?.querySelector(`.settings-clip[data-panel="${name}"]`) ?? null;
269
+ }
270
+ frontClip() {
271
+ return this.clipFor(this.profileTopic || 'profile');
213
272
  }
214
- sheet() {
215
- return this.shadowRoot?.querySelector('.settings-sheet') ?? null;
273
+ backClip() {
274
+ return this.leaving ? this.clipFor(this.leaving) : null;
275
+ }
276
+ sheetOf(clip) {
277
+ return clip?.querySelector('.settings-sheet') ?? null;
216
278
  }
217
279
  reduced() {
218
280
  return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
219
281
  }
282
+ sheetPx(clip, sheet) {
283
+ const transition = clip.style.transition;
284
+ const maxHeight = clip.style.maxHeight;
285
+ const height = clip.style.height;
286
+ clip.style.transition = 'none';
287
+ clip.style.maxHeight = 'none';
288
+ clip.style.height = 'auto';
289
+ const px = Math.ceil(sheet.offsetHeight);
290
+ clip.style.height = height;
291
+ clip.style.maxHeight = maxHeight;
292
+ clip.style.transition = transition;
293
+ return px;
294
+ }
220
295
  rest() {
221
296
  this.rollMotion = false;
222
297
  this.clipHeight = 'auto';
223
298
  this.sheetShift = 'none';
224
299
  }
225
- clipStyle() {
226
- const travel = this.rollMotion && !this.reduced();
300
+ layerStyle(motion, height) {
301
+ const travel = motion && !this.reduced();
227
302
  return {
228
- height: this.clipHeight,
229
- maxHeight: this.clipHeight === 'auto' ? 'none' : this.clipHeight,
303
+ height,
304
+ maxHeight: height === 'auto' ? 'none' : height,
230
305
  transition: travel
231
306
  ? 'height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out'
232
307
  : 'none',
233
308
  };
234
309
  }
235
- sheetStyle() {
236
- const travel = this.rollMotion && !this.reduced();
310
+ shiftStyle(motion, shift) {
311
+ const travel = motion && !this.reduced();
237
312
  return {
238
- transform: this.sheetShift,
313
+ transform: shift,
239
314
  transition: travel ? 'transform var(--pwa_slide, 2s) ease-in-out' : 'none',
240
315
  };
241
316
  }
242
- rollBetween(clip, sheet, from, to, sheetHeight) {
317
+ clipStyle() {
318
+ return this.layerStyle(this.rollMotion, this.clipHeight);
319
+ }
320
+ sheetStyle() {
321
+ return this.shiftStyle(this.rollMotion, this.sheetShift);
322
+ }
323
+ leaveClipStyle() {
324
+ return this.layerStyle(this.leaveMotion, this.leaveClipHeight);
325
+ }
326
+ leaveSheetStyle() {
327
+ return this.shiftStyle(this.leaveMotion, this.leaveSheetShift);
328
+ }
329
+ rollLayer(layer, clip, sheet, from, to, sheetHeight) {
243
330
  const start = from - sheetHeight;
244
331
  const end = to - sheetHeight;
245
332
  const shift = (px) => `translate3d(0, ${px}px, 0)`;
246
333
  if (this.reduced() || Math.abs(to - from) <= 1) {
247
- this.rest();
334
+ if (layer === 'front')
335
+ this.rest();
336
+ else
337
+ this.leaving = '';
248
338
  return;
249
339
  }
250
340
  const travel = 'height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out';
@@ -260,9 +350,57 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
260
350
  clip.style.height = `${Math.max(0, to)}px`;
261
351
  clip.style.maxHeight = `${Math.max(0, to)}px`;
262
352
  sheet.style.transform = shift(end);
263
- this.rollMotion = true;
264
- this.clipHeight = `${Math.max(0, to)}px`;
265
- this.sheetShift = shift(end);
353
+ if (layer === 'front') {
354
+ this.rollMotion = true;
355
+ this.clipHeight = `${Math.max(0, to)}px`;
356
+ this.sheetShift = shift(end);
357
+ }
358
+ else {
359
+ this.leaveMotion = true;
360
+ this.leaveClipHeight = `${Math.max(0, to)}px`;
361
+ this.leaveSheetShift = shift(end);
362
+ }
363
+ }
364
+ layerOf(name) {
365
+ if (name === this.leaving)
366
+ return 'back';
367
+ if (this.tabOn(name))
368
+ return 'front';
369
+ return 'idle';
370
+ }
371
+ panel(name, title) {
372
+ const layer = this.layerOf(name);
373
+ const on = layer === 'front';
374
+ const concealed = layer === 'idle';
375
+ const id = `pwa-panel-${name}`;
376
+ const labelledby = `pwa-tab-${name}`;
377
+ const body = name === 'profile' ? html `
378
+ <h2>${title}</h2>
379
+ <contact-photo emptyArtwork="${this.empty}" exportparts="progress, file, preview"></contact-photo>
380
+ ` : name === 'verification' ? html `
381
+ <h2>Contact Information</h2>
382
+ <email-verify exportparts="notice, status: verify-status, submit: verify-submit, verified, unverified"></email-verify>
383
+ <input-name exportparts="name, submit: name-submit"></input-name>
384
+ <contact-email exportparts="email, submit: email-submit"></contact-email>
385
+ ` : name === 'password' ? html `
386
+ <h2>Password</h2>
387
+ <input-password exportparts="password, verify, submit: password-submit"></input-password>
388
+ ` : html `
389
+ <h2>Delete Account</h2>
390
+ <delete-user exportparts="submit: delete"></delete-user>
391
+ `;
392
+ return html `
393
+ <section
394
+ id="${id}"
395
+ part="panel"
396
+ role="tabpanel"
397
+ aria-labelledby="${labelledby}"
398
+ aria-hidden="${on ? 'false' : 'true'}"
399
+ ?inert="${!on}"
400
+ ?hidden="${concealed}">
401
+ ${body}
402
+ </section>
403
+ `;
266
404
  }
267
405
  render() {
268
406
  if (!this.login) {
@@ -343,92 +481,21 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
343
481
  </nav>
344
482
 
345
483
 
346
- <div
347
- class="settings-clip"
348
- style=${styleMap(this.clipStyle())}
349
- @transitionend=${this.onClipEnd}>
350
- <div class="settings-sheet" style=${styleMap(this.sheetStyle())}>
351
-
352
-
353
- <!-- Page 1: Profile -->
354
- <section
355
- id="pwa-panel-profile"
356
- part="panel"
357
- role="tabpanel"
358
- aria-labelledby="pwa-tab-profile"
359
- aria-hidden="${this.tabOn('profile') ? 'false' : 'true'}"
360
- ?inert="${!this.tabOn('profile')}"
361
- ?hidden="${!this.tabOn('profile')}">
362
-
363
- <!-- Display Username -->
364
- <h2>${title}</h2>
365
-
366
- <!-- Custom Image Element - Display / Upload -->
367
- <contact-photo emptyArtwork="${this.empty}" exportparts="progress, file, preview"></contact-photo>
368
-
369
- </section>
370
-
371
- <!-- Page 2: Verification -->
372
- <section
373
- id="pwa-panel-verification"
374
- part="panel"
375
- role="tabpanel"
376
- aria-labelledby="pwa-tab-verification"
377
- aria-hidden="${this.tabOn('verification') ? 'false' : 'true'}"
378
- ?inert="${!this.tabOn('verification')}"
379
- ?hidden="${!this.tabOn('verification')}">
380
-
381
- <!-- Page Title -->
382
- <h2>Contact Information</h2>
383
-
384
- <!-- Required - unverified notice. Sign-in stays open. -->
385
- <email-verify exportparts="notice, status: verify-status, submit: verify-submit, verified, unverified"></email-verify>
386
-
387
- <!-- Custom - Username -->
388
- <input-name exportparts="name, submit: name-submit"></input-name>
389
-
390
- <!-- Custom - Email -->
391
- <contact-email exportparts="email, submit: email-submit"></contact-email>
392
-
393
- </section>
394
-
395
- <!-- Page 3: Password -->
396
- <section
397
- id="pwa-panel-password"
398
- part="panel"
399
- role="tabpanel"
400
- aria-labelledby="pwa-tab-password"
401
- aria-hidden="${this.tabOn('password') ? 'false' : 'true'}"
402
- ?inert="${!this.tabOn('password')}"
403
- ?hidden="${!this.tabOn('password')}">
404
-
405
- <!-- Page Title -->
406
- <h2>Password</h2>
407
-
408
- <!-- Custom - Password -->
409
- <input-password exportparts="password, verify, submit: password-submit"></input-password>
410
-
411
- </section>
412
-
413
- <!-- Page 4: Delete -->
414
- <section
415
- id="pwa-panel-delete"
416
- part="panel"
417
- role="tabpanel"
418
- aria-labelledby="pwa-tab-delete"
419
- aria-hidden="${this.tabOn('delete') ? 'false' : 'true'}"
420
- ?inert="${!this.tabOn('delete')}"
421
- ?hidden="${!this.tabOn('delete')}">
422
-
423
- <!-- Page Title -->
424
- <h2>Delete Account</h2>
425
-
426
- <!-- Custom - Delete -->
427
- <delete-user exportparts="submit: delete"></delete-user>
428
-
429
- </section>
430
-
431
- </div>
484
+ <div class="settings-stage">
485
+ ${['profile', 'verification', 'password', 'delete'].map((name) => {
486
+ const layer = this.layerOf(name);
487
+ return html `
488
+ <div
489
+ class="settings-clip ${layer === 'front' ? 'is-front' : layer === 'back' ? 'is-back' : ''}"
490
+ data-panel="${name}"
491
+ style=${styleMap(layer === 'back' ? this.leaveClipStyle() : layer === 'front' ? this.clipStyle() : { height: '0px', maxHeight: '0px', transition: 'none' })}
492
+ @transitionend=${layer === 'back' ? this.onBackEnd : this.onFrontEnd}>
493
+ <div class="settings-sheet" style=${styleMap(layer === 'back' ? this.leaveSheetStyle() : layer === 'front' ? this.sheetStyle() : { transform: 'translate3d(0, -100%, 0)', transition: 'none' })}>
494
+ ${this.panel(name, title)}
495
+ </div>
496
+ </div>
497
+ `;
498
+ })}
432
499
  </div>
433
500
 
434
501
  `;
@@ -466,6 +533,22 @@ __decorate([
466
533
  state(),
467
534
  __metadata("design:type", Object)
468
535
  ], UserSettings.prototype, "rollMotion", void 0);
536
+ __decorate([
537
+ state(),
538
+ __metadata("design:type", Object)
539
+ ], UserSettings.prototype, "leaving", void 0);
540
+ __decorate([
541
+ state(),
542
+ __metadata("design:type", Object)
543
+ ], UserSettings.prototype, "leaveClipHeight", void 0);
544
+ __decorate([
545
+ state(),
546
+ __metadata("design:type", Object)
547
+ ], UserSettings.prototype, "leaveSheetShift", void 0);
548
+ __decorate([
549
+ state(),
550
+ __metadata("design:type", Object)
551
+ ], UserSettings.prototype, "leaveMotion", void 0);
469
552
  UserSettings = __decorate([
470
553
  customElement('user-settings'),
471
554
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../typescript/webcomponents/settings/settings.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAkB,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAgB,mBAAmB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAA4B,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAA6B,8BAA8B,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAY,MAAqB,gBAAgB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAwB,yBAAyB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAA0B,qBAAqB,CAAC;AACrE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAG3C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAwB1D;QAAgB,KAAK,EAAE,CAAC;QArBwB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KAAK,EAAE;;gDAA6B;AAGpB;IAAhB,KAAK,EAAE;;gDAA4B;AAGnB;IAAhB,KAAK,EAAE;;6CAAsB;AAGb;IAAhB,KAAK,EAAE;;qDAAiC;AAGxB;IAAhB,KAAK,EAAE;;qDAAkD;AAGzC;IAAhB,KAAK,EAAE;;iDAA6B;AA7B1B,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;;GAClB,YAAY,CA4fxB"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://www.jackspublishing.com",
7
7
  "email": "jack.solutionbox@gmail.com"
8
8
  },
9
- "version": "3.7.2",
9
+ "version": "3.7.3",
10
10
  "description": "Five elements: user-icon, user-drawer, user-login, user-settings, and email-reset. pwa- events, a small API, and --pwa_ theme variables.",
11
11
  "homepage": "https://pwa-authentic.firebaseapp.com",
12
12
  "repository": {
@@ -1746,7 +1746,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1746
1746
  ?disabled="${!1===this.login||this.busy}"
1747
1747
  @click="${this.alertDelete}">${this.busy?"Deleting…":"Delete"}</button>
1748
1748
 
1749
- `}show(t){this.tone="error",this.status=KE(t),gE(PE,t)}}Mb([ut(),Gb("design:type",Boolean)],Hb.prototype,"login",void 0),Mb([ut(),Gb("design:type",String)],Hb.prototype,"email",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"busy",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"status",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"tone",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"showPassword",void 0),customElements.define("delete-user",Hb);var Ub=function(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},Vb=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let jb=class extends(wt(bn)(it)){constructor(){super(),this.empty="",this.profileTopic="",this.name="",this.email="",this.login=!1,this.clipHeight="auto",this.sheetShift="none",this.rollMotion=!1,this.booted=!1,this.heldHeight=null,this.columnWidth=0,this.columnObserver=null,this.onSubmit=t=>{t.preventDefault()},this.onClipEnd=t=>{t instanceof TransitionEvent&&t.target===t.currentTarget&&"max-height"===t.propertyName&&this.rest()}}connectedCallback(){nb(this),this.hasAttribute("role")||this.setAttribute("role","region"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Account settings"),super.connectedCallback(),this.addEventListener("submit",this.onSubmit)}disconnectedCallback(){this.removeEventListener("submit",this.onSubmit),this.columnObserver?.disconnect(),this.columnObserver=null,super.disconnectedCallback()}onTabKey(t){if("ArrowRight"!==t.key&&"ArrowLeft"!==t.key)return;t.preventDefault();const e=["profile","verification","password","delete"],n=e.indexOf(this.profileTopic),s=e[(n+("ArrowRight"===t.key?1:-1)+e.length)%e.length];bn.dispatch(on(s)),this.updateComplete.then(()=>{this.shadowRoot?.querySelector(`button[value="${s}"]`)?.focus()})}stateChanged(t){this.profileTopic=t.frontend.settings,this.login=Boolean(t.frontend?.login),this.name=t.backend.name,this.email=t.backend.email}static get styles(){return[bb,Sn,eD,i`
1749
+ `}show(t){this.tone="error",this.status=KE(t),gE(PE,t)}}Mb([ut(),Gb("design:type",Boolean)],Hb.prototype,"login",void 0),Mb([ut(),Gb("design:type",String)],Hb.prototype,"email",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"busy",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"status",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"tone",void 0),Mb([ut(),Gb("design:type",Object)],Hb.prototype,"showPassword",void 0),customElements.define("delete-user",Hb);var Ub=function(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},Vb=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let jb=class extends(wt(bn)(it)){constructor(){super(),this.empty="",this.profileTopic="",this.name="",this.email="",this.login=!1,this.clipHeight="auto",this.sheetShift="none",this.rollMotion=!1,this.leaving="",this.leaveClipHeight="0px",this.leaveSheetShift="translate3d(0, 0, 0)",this.leaveMotion=!1,this.booted=!1,this.heldHeight=null,this.leaveFrom=0,this.columnWidth=0,this.columnObserver=null,this.onSubmit=t=>{t.preventDefault()},this.onFrontEnd=t=>{t instanceof TransitionEvent&&t.target===t.currentTarget&&"max-height"===t.propertyName&&this.rest()},this.onBackEnd=t=>{t instanceof TransitionEvent&&t.target===t.currentTarget&&"max-height"===t.propertyName&&(this.leaving="",this.leaveMotion=!1)}}connectedCallback(){nb(this),this.hasAttribute("role")||this.setAttribute("role","region"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Account settings"),super.connectedCallback(),this.addEventListener("submit",this.onSubmit)}disconnectedCallback(){this.removeEventListener("submit",this.onSubmit),this.columnObserver?.disconnect(),this.columnObserver=null,super.disconnectedCallback()}onTabKey(t){if("ArrowRight"!==t.key&&"ArrowLeft"!==t.key)return;t.preventDefault();const e=["profile","verification","password","delete"],n=e.indexOf(this.profileTopic),s=e[(n+("ArrowRight"===t.key?1:-1)+e.length)%e.length];bn.dispatch(on(s)),this.updateComplete.then(()=>{this.shadowRoot?.querySelector(`button[value="${s}"]`)?.focus()})}stateChanged(t){this.profileTopic=t.frontend.settings,this.login=Boolean(t.frontend?.login),this.name=t.backend.name,this.email=t.backend.email}static get styles(){return[bb,Sn,eD,i`
1750
1750
 
1751
1751
  :host {
1752
1752
  display: block;
@@ -1763,13 +1763,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1763
1763
  :host { --pwa_slide: 0s; }
1764
1764
  }
1765
1765
 
1766
- /* Required - this settings roll only. Block, so the sheet is not stretched. */
1766
+ /* Required - this settings roll only. The two clips share one cell so the
1767
+ stage is as tall as the lower edge, and the incoming clip paints in front. */
1768
+ .settings-stage {
1769
+ display: grid;
1770
+ }
1771
+
1767
1772
  .settings-clip {
1773
+ grid-area: 1 / 1;
1774
+ align-self: start;
1775
+ justify-self: stretch;
1768
1776
  display: block;
1769
1777
  overflow: hidden;
1770
1778
  min-height: 0;
1779
+ width: 100%;
1771
1780
  }
1772
1781
 
1782
+ .settings-clip.is-front { z-index: 2; }
1783
+ .settings-clip.is-back { z-index: 1; }
1784
+
1773
1785
  .settings-sheet {
1774
1786
  display: block;
1775
1787
  height: auto;
@@ -1778,6 +1790,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1778
1790
  background-color: var(--pwa_background, var(--pwa_settings_background_color, #fff));
1779
1791
  }
1780
1792
 
1793
+ /* Required - an inactive tab stays fully behind the fold. */
1794
+ .settings-sheet > section[hidden] {
1795
+ display: none !important;
1796
+ }
1797
+
1781
1798
  form {
1782
1799
  box-sizing: border-box;
1783
1800
  display: grid;
@@ -1802,7 +1819,32 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1802
1819
  }
1803
1820
  }
1804
1821
 
1805
- `]}openTab(t){bn.dispatch(on(t))}tabOn(t){return(this.profileTopic||"profile")===t}willUpdate(t){if(!this.booted||!this.login||t.has("login"))return;if(!t.has("profileTopic"))return;const e=this.clip();e&&(this.heldHeight=Math.ceil(e.getBoundingClientRect().height),this.rollMotion=!1,this.clipHeight=`${this.heldHeight}px`,this.sheetShift="translate3d(0, 0, 0)")}updated(t){const e=!this.booted;if(this.booted=!0,e&&this.watchColumn(),e||!t.has("profileTopic")||!this.login||t.has("login"))return;const n=this.clip(),s=this.sheet();if(!n||!s||null==this.heldHeight)return;const r=this.heldHeight;this.heldHeight=null;const i=Math.ceil(s.getBoundingClientRect().height);Math.abs(i-r)>1?this.rollBetween(n,s,r,i,i):this.rest()}watchColumn(){"undefined"!=typeof ResizeObserver&&(this.columnObserver=new ResizeObserver(()=>{const t=Math.round(this.getBoundingClientRect().width);if(!t||t===this.columnWidth)return;if(this.columnWidth=t,!this.rollMotion)return;const e=this.clip(),n=this.sheet();if(!e||!n)return;const s=Math.ceil(e.getBoundingClientRect().height),r=Math.ceil(n.getBoundingClientRect().height);this.rollBetween(e,n,s,r,r)}),this.columnObserver.observe(this))}clip(){return this.shadowRoot?.querySelector(".settings-clip")??null}sheet(){return this.shadowRoot?.querySelector(".settings-sheet")??null}reduced(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}rest(){this.rollMotion=!1,this.clipHeight="auto",this.sheetShift="none"}clipStyle(){const t=this.rollMotion&&!this.reduced();return{height:this.clipHeight,maxHeight:"auto"===this.clipHeight?"none":this.clipHeight,transition:t?"height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out":"none"}}sheetStyle(){const t=this.rollMotion&&!this.reduced();return{transform:this.sheetShift,transition:t?"transform var(--pwa_slide, 2s) ease-in-out":"none"}}rollBetween(t,e,n,s,r){const i=n-r,o=s-r,a=t=>`translate3d(0, ${t}px, 0)`;if(this.reduced()||Math.abs(s-n)<=1)return void this.rest();t.style.transition="none",e.style.transition="none",t.style.height=`${Math.max(0,n)}px`,t.style.maxHeight=`${Math.max(0,n)}px`,e.style.transform=a(i),t.offsetHeight,t.style.transition="height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out",e.style.transition="transform var(--pwa_slide, 2s) ease-in-out",t.style.height=`${Math.max(0,s)}px`,t.style.maxHeight=`${Math.max(0,s)}px`,e.style.transform=a(o),this.rollMotion=!0,this.clipHeight=`${Math.max(0,s)}px`,this.sheetShift=a(o)}render(){if(!this.login)return U`
1822
+ `]}openTab(t){bn.dispatch(on(t))}tabOn(t){return(this.profileTopic||"profile")===t}willUpdate(t){if(!this.booted||!this.login||t.has("login"))return;if(!t.has("profileTopic"))return;if(this.reduced())return;const e=String(t.get("profileTopic")||"");if(!e||e===this.profileTopic)return;const n=this.clipFor(e);this.leaveFrom=n?Math.ceil(n.getBoundingClientRect().height):0,this.leaving=e,this.leaveMotion=!1,this.leaveClipHeight=`${this.leaveFrom}px`,this.leaveSheetShift="translate3d(0, 0, 0)",this.rollMotion=!1,this.clipHeight="0px",this.sheetShift="translate3d(0, -100%, 0)",this.heldHeight=0}updated(t){const e=!this.booted;if(this.booted=!0,e&&this.watchColumn(),e||!t.has("profileTopic")||!this.login||t.has("login"))return;const n=this.frontClip(),s=this.sheetOf(n);if(n&&s&&null!=this.heldHeight){const t=this.heldHeight;this.heldHeight=null;const e=this.sheetPx(n,s);Math.abs(e-t)>1?this.rollLayer("front",n,s,t,e,e):this.rest()}const r=this.backClip(),i=this.sheetOf(r);if(r&&i&&this.leaving){const t=this.sheetPx(r,i),e=this.leaveFrom||t;this.rollLayer("back",r,i,e,0,t)}}watchColumn(){"undefined"!=typeof ResizeObserver&&(this.columnObserver=new ResizeObserver(()=>{const t=Math.round(this.getBoundingClientRect().width);if(t&&t!==this.columnWidth){if(this.columnWidth=t,this.rollMotion){const t=this.frontClip(),e=this.sheetOf(t);if(t&&e){const n=Math.ceil(t.getBoundingClientRect().height),s=this.sheetPx(t,e);this.rollLayer("front",t,e,n,s,s)}}if(this.leaveMotion){const t=this.backClip(),e=this.sheetOf(t);if(t&&e){const n=Math.ceil(t.getBoundingClientRect().height),s=this.sheetPx(t,e);this.rollLayer("back",t,e,n,0,s)}}}}),this.columnObserver.observe(this))}clipFor(t){return this.shadowRoot?.querySelector(`.settings-clip[data-panel="${t}"]`)??null}frontClip(){return this.clipFor(this.profileTopic||"profile")}backClip(){return this.leaving?this.clipFor(this.leaving):null}sheetOf(t){return t?.querySelector(".settings-sheet")??null}reduced(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}sheetPx(t,e){const n=t.style.transition,s=t.style.maxHeight,r=t.style.height;t.style.transition="none",t.style.maxHeight="none",t.style.height="auto";const i=Math.ceil(e.offsetHeight);return t.style.height=r,t.style.maxHeight=s,t.style.transition=n,i}rest(){this.rollMotion=!1,this.clipHeight="auto",this.sheetShift="none"}layerStyle(t,e){return{height:e,maxHeight:"auto"===e?"none":e,transition:t&&!this.reduced()?"height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out":"none"}}shiftStyle(t,e){return{transform:e,transition:t&&!this.reduced()?"transform var(--pwa_slide, 2s) ease-in-out":"none"}}clipStyle(){return this.layerStyle(this.rollMotion,this.clipHeight)}sheetStyle(){return this.shiftStyle(this.rollMotion,this.sheetShift)}leaveClipStyle(){return this.layerStyle(this.leaveMotion,this.leaveClipHeight)}leaveSheetStyle(){return this.shiftStyle(this.leaveMotion,this.leaveSheetShift)}rollLayer(t,e,n,s,r,i){const o=s-i,a=r-i,B=t=>`translate3d(0, ${t}px, 0)`;if(this.reduced()||Math.abs(r-s)<=1)return void("front"===t?this.rest():this.leaving="");e.style.transition="none",n.style.transition="none",e.style.height=`${Math.max(0,s)}px`,e.style.maxHeight=`${Math.max(0,s)}px`,n.style.transform=B(o),e.offsetHeight,e.style.transition="height var(--pwa_slide, 2s) ease-in-out, max-height var(--pwa_slide, 2s) ease-in-out",n.style.transition="transform var(--pwa_slide, 2s) ease-in-out",e.style.height=`${Math.max(0,r)}px`,e.style.maxHeight=`${Math.max(0,r)}px`,n.style.transform=B(a),"front"===t?(this.rollMotion=!0,this.clipHeight=`${Math.max(0,r)}px`,this.sheetShift=B(a)):(this.leaveMotion=!0,this.leaveClipHeight=`${Math.max(0,r)}px`,this.leaveSheetShift=B(a))}layerOf(t){return t===this.leaving?"back":this.tabOn(t)?"front":"idle"}panel(t,e){const n=this.layerOf(t),s="front"===n,r="idle"===n,i=`pwa-panel-${t}`,o=`pwa-tab-${t}`,a="profile"===t?U`
1823
+ <h2>${e}</h2>
1824
+ <contact-photo emptyArtwork="${this.empty}" exportparts="progress, file, preview"></contact-photo>
1825
+ `:"verification"===t?U`
1826
+ <h2>Contact Information</h2>
1827
+ <email-verify exportparts="notice, status: verify-status, submit: verify-submit, verified, unverified"></email-verify>
1828
+ <input-name exportparts="name, submit: name-submit"></input-name>
1829
+ <contact-email exportparts="email, submit: email-submit"></contact-email>
1830
+ `:"password"===t?U`
1831
+ <h2>Password</h2>
1832
+ <input-password exportparts="password, verify, submit: password-submit"></input-password>
1833
+ `:U`
1834
+ <h2>Delete Account</h2>
1835
+ <delete-user exportparts="submit: delete"></delete-user>
1836
+ `;return U`
1837
+ <section
1838
+ id="${i}"
1839
+ part="panel"
1840
+ role="tabpanel"
1841
+ aria-labelledby="${o}"
1842
+ aria-hidden="${s?"false":"true"}"
1843
+ ?inert="${!s}"
1844
+ ?hidden="${r}">
1845
+ ${a}
1846
+ </section>
1847
+ `}render(){if(!this.login)return U`
1806
1848
  <p class="signed-out" part="signed-out" role="status">Sign in to change the photo, name, email, or password.</p>
1807
1849
  `;const t=rb(this.name,this.email);return U`
1808
1850
 
@@ -1876,95 +1918,21 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1876
1918
  </nav>
1877
1919
 
1878
1920
 
1879
- <div
1880
- class="settings-clip"
1881
- style=${mt(this.clipStyle())}
1882
- @transitionend=${this.onClipEnd}>
1883
- <div class="settings-sheet" style=${mt(this.sheetStyle())}>
1884
-
1885
-
1886
- <!-- Page 1: Profile -->
1887
- <section
1888
- id="pwa-panel-profile"
1889
- part="panel"
1890
- role="tabpanel"
1891
- aria-labelledby="pwa-tab-profile"
1892
- aria-hidden="${this.tabOn("profile")?"false":"true"}"
1893
- ?inert="${!this.tabOn("profile")}"
1894
- ?hidden="${!this.tabOn("profile")}">
1895
-
1896
- <!-- Display Username -->
1897
- <h2>${t}</h2>
1898
-
1899
- <!-- Custom Image Element - Display / Upload -->
1900
- <contact-photo emptyArtwork="${this.empty}" exportparts="progress, file, preview"></contact-photo>
1901
-
1902
- </section>
1903
-
1904
- <!-- Page 2: Verification -->
1905
- <section
1906
- id="pwa-panel-verification"
1907
- part="panel"
1908
- role="tabpanel"
1909
- aria-labelledby="pwa-tab-verification"
1910
- aria-hidden="${this.tabOn("verification")?"false":"true"}"
1911
- ?inert="${!this.tabOn("verification")}"
1912
- ?hidden="${!this.tabOn("verification")}">
1913
-
1914
- <!-- Page Title -->
1915
- <h2>Contact Information</h2>
1916
-
1917
- <!-- Required - unverified notice. Sign-in stays open. -->
1918
- <email-verify exportparts="notice, status: verify-status, submit: verify-submit, verified, unverified"></email-verify>
1919
-
1920
- <!-- Custom - Username -->
1921
- <input-name exportparts="name, submit: name-submit"></input-name>
1922
-
1923
- <!-- Custom - Email -->
1924
- <contact-email exportparts="email, submit: email-submit"></contact-email>
1925
-
1926
- </section>
1927
-
1928
- <!-- Page 3: Password -->
1929
- <section
1930
- id="pwa-panel-password"
1931
- part="panel"
1932
- role="tabpanel"
1933
- aria-labelledby="pwa-tab-password"
1934
- aria-hidden="${this.tabOn("password")?"false":"true"}"
1935
- ?inert="${!this.tabOn("password")}"
1936
- ?hidden="${!this.tabOn("password")}">
1937
-
1938
- <!-- Page Title -->
1939
- <h2>Password</h2>
1940
-
1941
- <!-- Custom - Password -->
1942
- <input-password exportparts="password, verify, submit: password-submit"></input-password>
1943
-
1944
- </section>
1945
-
1946
- <!-- Page 4: Delete -->
1947
- <section
1948
- id="pwa-panel-delete"
1949
- part="panel"
1950
- role="tabpanel"
1951
- aria-labelledby="pwa-tab-delete"
1952
- aria-hidden="${this.tabOn("delete")?"false":"true"}"
1953
- ?inert="${!this.tabOn("delete")}"
1954
- ?hidden="${!this.tabOn("delete")}">
1955
-
1956
- <!-- Page Title -->
1957
- <h2>Delete Account</h2>
1958
-
1959
- <!-- Custom - Delete -->
1960
- <delete-user exportparts="submit: delete"></delete-user>
1961
-
1962
- </section>
1963
-
1964
- </div>
1921
+ <div class="settings-stage">
1922
+ ${["profile","verification","password","delete"].map(e=>{const n=this.layerOf(e);return U`
1923
+ <div
1924
+ class="settings-clip ${"front"===n?"is-front":"back"===n?"is-back":""}"
1925
+ data-panel="${e}"
1926
+ style=${mt("back"===n?this.leaveClipStyle():"front"===n?this.clipStyle():{height:"0px",maxHeight:"0px",transition:"none"})}
1927
+ @transitionend=${"back"===n?this.onBackEnd:this.onFrontEnd}>
1928
+ <div class="settings-sheet" style=${mt("back"===n?this.leaveSheetStyle():"front"===n?this.sheetStyle():{transform:"translate3d(0, -100%, 0)",transition:"none"})}>
1929
+ ${this.panel(e,t)}
1930
+ </div>
1931
+ </div>
1932
+ `})}
1965
1933
  </div>
1966
1934
 
1967
- `}};Ub([lt({type:String,reflect:!0}),Vb("design:type",Object)],jb.prototype,"empty",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"profileTopic",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"name",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"email",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"login",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"clipHeight",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"sheetShift",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"rollMotion",void 0),jb=Ub([at("user-settings"),Vb("design:paramtypes",[])],jb);const $b=i`
1935
+ `}};Ub([lt({type:String,reflect:!0}),Vb("design:type",Object)],jb.prototype,"empty",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"profileTopic",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"name",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"email",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"login",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"clipHeight",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"sheetShift",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"rollMotion",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"leaving",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"leaveClipHeight",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"leaveSheetShift",void 0),Ub([ut(),Vb("design:type",Object)],jb.prototype,"leaveMotion",void 0),jb=Ub([at("user-settings"),Vb("design:paramtypes",[])],jb);const $b=i`
1968
1936
 
1969
1937
  :host {
1970
1938
  display: block;