@brad-frost-web/eddie-recipes 0.52.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,59 +1,59 @@
1
- import { E as z } from "../../../chunks/EdElement.DJfwJlMF.js";
2
- import { a as k, r as _, o as p, b as l, A as v, n as a } from "../../../chunks/lit.DaG29oZV.js";
3
- const b = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
4
- var y = Object.defineProperty, i = (d, e, t, s) => {
5
- for (var o = void 0, h = d.length - 1, n; h >= 0; h--)
6
- (n = d[h]) && (o = n(e, t, o) || o);
7
- return o && y(e, t, o), o;
1
+ import { E as S } from "../../../chunks/EdElement.DJfwJlMF.js";
2
+ import { a as w, r as L, o as f, b as c, A as E, n as o } from "../../../chunks/lit.DaG29oZV.js";
3
+ const R = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
4
+ var U = Object.defineProperty, a = (h, e, t, s) => {
5
+ for (var r = void 0, n = h.length - 1, l; n >= 0; n--)
6
+ (l = h[n]) && (r = l(e, t, r) || r);
7
+ return r && U(e, t, r), r;
8
8
  };
9
- const g = "https://visualzzz.bradfrost.com/", w = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], M = "[data-visualzzz-avoid]", c = 200, S = {
9
+ const C = "https://visualzzz.bradfrost.com/", P = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], A = "[data-visualzzz-avoid]", m = 200, F = {
10
10
  speed: "g.globalSpeed",
11
11
  aspect: "g.aspectRatio"
12
- }, E = [
12
+ }, O = [
13
13
  "textAxes",
14
14
  "textAxisAnim",
15
15
  "textSource",
16
16
  "quoteAttrColor",
17
17
  "quoteMarks"
18
18
  ];
19
- function f(d) {
20
- if (!d) return {};
21
- if (typeof d == "object") return d;
22
- if (typeof d == "string")
19
+ function g(h) {
20
+ if (!h) return {};
21
+ if (typeof h == "object") return h;
22
+ if (typeof h == "string")
23
23
  try {
24
- const e = JSON.parse(d);
24
+ const e = JSON.parse(h);
25
25
  return e && typeof e == "object" ? e : {};
26
26
  } catch {
27
27
  return {};
28
28
  }
29
29
  return {};
30
30
  }
31
- class r extends z {
31
+ class i extends S {
32
32
  constructor() {
33
- super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = g, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
33
+ super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = C, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
34
34
  this._reducedMotion = e.matches;
35
35
  }, this._maskScheduled = !1, this._maskReady = !1, this._readMask = () => {
36
36
  this._maskScheduled = !1;
37
37
  const e = this._maskFrame, t = this._maskSelectorInUse;
38
38
  if (!e?.contentWindow || !t || !this._maskReady) return;
39
- const s = e.getBoundingClientRect(), o = [];
40
- for (const h of document.querySelectorAll(t))
41
- for (const n of this._rectsFor(h)) {
42
- if (n.width <= 0 || n.height <= 0) continue;
43
- const m = n.left - s.left, u = n.top - s.top;
44
- u + n.height < -c || u > s.height + c || m + n.width < -c || m > s.width + c || o.push({ x: m, y: u, w: n.width, h: n.height });
39
+ const s = e.getBoundingClientRect(), r = e.clientWidth ? s.width / e.clientWidth : 1, n = e.clientHeight ? s.height / e.clientHeight : 1;
40
+ if (!r || !n) return;
41
+ const l = s.width / r, k = s.height / n, _ = [];
42
+ for (const M of document.querySelectorAll(t))
43
+ for (const d of this._rectsFor(M)) {
44
+ if (d.width <= 0 || d.height <= 0) continue;
45
+ const u = (d.left - s.left) / r, p = (d.top - s.top) / n, b = d.width / r, y = d.height / n;
46
+ p + y < -m || p > k + m || u + b < -m || u > l + m || _.push({ x: u, y: p, w: b, h: y });
45
47
  }
46
- e.contentWindow.postMessage(
47
- {
48
- type: "visualzzz:mask",
49
- v: 1,
50
- rects: o,
51
- vw: s.width,
52
- vh: s.height,
53
- dpr: window.devicePixelRatio || 1
54
- },
55
- new URL(this.baseUrl).origin
56
- );
48
+ const z = {
49
+ type: "visualzzz:mask",
50
+ v: 1,
51
+ rects: _,
52
+ vw: l,
53
+ vh: k,
54
+ dpr: window.devicePixelRatio || 1
55
+ }, v = JSON.stringify(z);
56
+ v !== this._maskLastPayload && (this._maskLastPayload = v, e.contentWindow.postMessage(z, new URL(this.baseUrl).origin));
57
57
  }, this._scheduleMask = () => {
58
58
  this._maskScheduled || (this._maskScheduled = !0, requestAnimationFrame(this._readMask));
59
59
  }, this._onEmbedMessage = (e) => {
@@ -61,7 +61,7 @@ class r extends z {
61
61
  }, this._warnedDrops = /* @__PURE__ */ new Set();
62
62
  }
63
63
  static get styles() {
64
- return _(b);
64
+ return L(R);
65
65
  }
66
66
  connectedCallback() {
67
67
  if (super.connectedCallback(), typeof window < "u" && window.matchMedia && (this._motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), this._reducedMotion = this._motionQuery.matches, this._motionQuery.addEventListener("change", this._onMotionChange)), typeof IntersectionObserver > "u") {
@@ -102,11 +102,11 @@ class r extends z {
102
102
  childList: !0,
103
103
  subtree: !0,
104
104
  characterData: !0
105
- }), document.fonts?.ready?.then(this._scheduleMask), this._scheduleMask();
105
+ }), document.fonts?.ready?.then(this._scheduleMask), this._maskDriftPoll = setInterval(this._scheduleMask, 300), this._scheduleMask();
106
106
  }
107
107
  }
108
108
  _stopMask() {
109
- this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1);
109
+ this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskDriftPoll !== void 0 && clearInterval(this._maskDriftPoll), this._maskDriftPoll = void 0, this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1, this._maskLastPayload = void 0);
110
110
  }
111
111
  /**
112
112
  * Build the embed URL: share-URL baseline, then structural props, then the
@@ -117,17 +117,17 @@ class r extends z {
117
117
  if (this.configUrl) {
118
118
  const s = new URL(this.baseUrl);
119
119
  e.protocol = s.protocol, e.host = s.host, e.pathname = s.pathname;
120
- for (const [h, n] of Object.entries(S))
121
- e.searchParams.has(h) && !e.searchParams.has(n) && e.searchParams.set(n, e.searchParams.get(h));
122
- const o = E.filter((h) => e.searchParams.has(h));
123
- o.length && this._warnDropped(o);
120
+ for (const [n, l] of Object.entries(F))
121
+ e.searchParams.has(n) && !e.searchParams.has(l) && e.searchParams.set(l, e.searchParams.get(n));
122
+ const r = O.filter((n) => e.searchParams.has(n));
123
+ r.length && this._warnDropped(r);
124
124
  }
125
- const t = (s, o) => e.searchParams.set(s, String(o));
125
+ const t = (s, r) => e.searchParams.set(s, String(r));
126
126
  this.anim && t("anim", this.anim), this.theme && t("theme", this.theme), this.dark !== void 0 && t("dark", this.dark ? "1" : "0"), this.speed !== void 0 && (t("speed", this.speed), t("g.globalSpeed", this.speed));
127
- for (const [s, o] of Object.entries(f(this.params)))
128
- t(`p.${s}`, o);
129
- for (const [s, o] of Object.entries(f(this.globals)))
130
- t(`g.${s}`, o);
127
+ for (const [s, r] of Object.entries(g(this.params)))
128
+ t(`p.${s}`, r);
129
+ for (const [s, r] of Object.entries(g(this.globals)))
130
+ t(`g.${s}`, r);
131
131
  if (e.pathname.endsWith("embed.html") || (e.pathname = e.pathname.replace(/\/?$/, "/embed.html")), this.maskSelector) {
132
132
  t("mask", "1");
133
133
  const s = [
@@ -138,8 +138,8 @@ class r extends z {
138
138
  ["maskDrift", this.maskDrift],
139
139
  ["maskPad", this.maskPad]
140
140
  ];
141
- for (const [o, h] of s)
142
- h !== void 0 && t(o, h);
141
+ for (const [r, n] of s)
142
+ n !== void 0 && t(r, n);
143
143
  }
144
144
  return t("controls", "0"), e.toString();
145
145
  }
@@ -159,16 +159,16 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
159
159
  * default marker". Anything else is taken as the consumer's own selector.
160
160
  */
161
161
  get maskSelector() {
162
- return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? M : this.mask;
162
+ return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? A : this.mask;
163
163
  }
164
164
  render() {
165
- const e = w.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
165
+ const e = P.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
166
166
  [`ed-r-visualzzz--ratio-${e.replace(":", "-")}`]: e !== "fill",
167
167
  "ed-r-visualzzz--fill": e === "fill",
168
168
  "ed-r-visualzzz--decorative": t && !this.interactive
169
169
  });
170
- return l`
171
- <div class="${s}" part="frame" aria-hidden="${p(t ? "true" : void 0)}">
170
+ return c`
171
+ <div class="${s}" part="frame" aria-hidden="${f(t ? "true" : void 0)}">
172
172
  ${this._reducedMotion ? this.renderStill() : this.renderLive(t)}
173
173
  </div>
174
174
  `;
@@ -180,96 +180,96 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
180
180
  * an animation someone asked not to see.
181
181
  */
182
182
  renderStill() {
183
- return this.slotEmpty("fallback") ? this.posterSrc ? l`<img
183
+ return this.slotEmpty("fallback") ? this.posterSrc ? c`<img
184
184
  class="ed-r-visualzzz__poster"
185
185
  part="poster"
186
186
  src="${this.posterSrc}"
187
187
  alt="${this.posterAlt ?? ""}"
188
- />` : l`<slot name="fallback"></slot>` : l`<slot name="fallback"></slot>`;
188
+ />` : c`<slot name="fallback"></slot>` : c`<slot name="fallback"></slot>`;
189
189
  }
190
190
  renderLive(e) {
191
- return this._seen ? l`<iframe
191
+ return this._seen ? c`<iframe
192
192
  class="ed-r-visualzzz__frame"
193
193
  part="iframe"
194
194
  src="${this.embedUrl}"
195
- title="${p(this.label)}"
195
+ title="${f(this.label)}"
196
196
  loading="lazy"
197
- tabindex="${p(e ? "-1" : void 0)}"
198
- ></iframe>` : this.posterSrc ? l`<img
197
+ tabindex="${f(e ? "-1" : void 0)}"
198
+ ></iframe>` : this.posterSrc ? c`<img
199
199
  class="ed-r-visualzzz__poster"
200
200
  part="poster"
201
201
  src="${this.posterSrc}"
202
202
  alt="${this.posterAlt ?? ""}"
203
- />` : v;
203
+ />` : E;
204
204
  }
205
205
  }
206
- i([
207
- a()
208
- ], r.prototype, "anim");
209
- i([
210
- a({ type: Object })
211
- ], r.prototype, "params");
212
- i([
213
- a({ type: Object })
214
- ], r.prototype, "globals");
215
- i([
216
- a()
217
- ], r.prototype, "configUrl");
218
- i([
219
- a()
220
- ], r.prototype, "theme");
221
- i([
222
- a({ type: Boolean })
223
- ], r.prototype, "dark");
224
- i([
225
- a({ type: Number })
226
- ], r.prototype, "speed");
227
- i([
228
- a({ reflect: !0 })
229
- ], r.prototype, "ratio");
230
- i([
231
- a()
232
- ], r.prototype, "posterSrc");
233
- i([
234
- a()
235
- ], r.prototype, "posterAlt");
236
- i([
237
- a()
238
- ], r.prototype, "label");
239
- i([
240
- a({ type: Boolean })
241
- ], r.prototype, "interactive");
242
- i([
243
- a()
244
- ], r.prototype, "mask");
245
- i([
246
- a({ type: Number })
247
- ], r.prototype, "maskFeather");
248
- i([
249
- a({ type: Number })
250
- ], r.prototype, "maskCorner");
251
- i([
252
- a({ type: Number })
253
- ], r.prototype, "maskWobble");
254
- i([
255
- a({ type: Number })
256
- ], r.prototype, "maskLobes");
257
- i([
258
- a({ type: Number })
259
- ], r.prototype, "maskDrift");
260
- i([
261
- a({ type: Number })
262
- ], r.prototype, "maskPad");
263
- i([
264
- a()
265
- ], r.prototype, "baseUrl");
266
- i([
267
- k()
268
- ], r.prototype, "_reducedMotion");
269
- i([
270
- k()
271
- ], r.prototype, "_seen");
272
- customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", r);
206
+ a([
207
+ o()
208
+ ], i.prototype, "anim");
209
+ a([
210
+ o({ type: Object })
211
+ ], i.prototype, "params");
212
+ a([
213
+ o({ type: Object })
214
+ ], i.prototype, "globals");
215
+ a([
216
+ o()
217
+ ], i.prototype, "configUrl");
218
+ a([
219
+ o()
220
+ ], i.prototype, "theme");
221
+ a([
222
+ o({ type: Boolean })
223
+ ], i.prototype, "dark");
224
+ a([
225
+ o({ type: Number })
226
+ ], i.prototype, "speed");
227
+ a([
228
+ o({ reflect: !0 })
229
+ ], i.prototype, "ratio");
230
+ a([
231
+ o()
232
+ ], i.prototype, "posterSrc");
233
+ a([
234
+ o()
235
+ ], i.prototype, "posterAlt");
236
+ a([
237
+ o()
238
+ ], i.prototype, "label");
239
+ a([
240
+ o({ type: Boolean })
241
+ ], i.prototype, "interactive");
242
+ a([
243
+ o()
244
+ ], i.prototype, "mask");
245
+ a([
246
+ o({ type: Number })
247
+ ], i.prototype, "maskFeather");
248
+ a([
249
+ o({ type: Number })
250
+ ], i.prototype, "maskCorner");
251
+ a([
252
+ o({ type: Number })
253
+ ], i.prototype, "maskWobble");
254
+ a([
255
+ o({ type: Number })
256
+ ], i.prototype, "maskLobes");
257
+ a([
258
+ o({ type: Number })
259
+ ], i.prototype, "maskDrift");
260
+ a([
261
+ o({ type: Number })
262
+ ], i.prototype, "maskPad");
263
+ a([
264
+ o()
265
+ ], i.prototype, "baseUrl");
266
+ a([
267
+ w()
268
+ ], i.prototype, "_reducedMotion");
269
+ a([
270
+ w()
271
+ ], i.prototype, "_seen");
272
+ customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", i);
273
273
  export {
274
- r as EdRVisualzzz
274
+ i as EdRVisualzzz
275
275
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brad-frost-web/eddie-recipes",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -280,6 +280,8 @@ export declare class EdRVisualzzz extends EdElement {
280
280
  private _maskMutations?;
281
281
  private _maskScheduled;
282
282
  private _maskReady;
283
+ private _maskLastPayload?;
284
+ private _maskDriftPoll?;
283
285
  /**
284
286
  * Measure the marked elements and hand the embed their boxes.
285
287
  *
@@ -1 +1 @@
1
- {"version":3,"file":"visualzzz.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/visualzzz/visualzzz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAQzF,QAAA,MAAM,MAAM,uEAAwE,CAAC;AAErF,KAAK,cAAc,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAyC5C,sEAAsE;AACtE,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAoB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;OAKG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAE3B;;;;OAIG;IAEH,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAE5B;;;;;;;;;;;;OAYG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;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,CAAC,eAAe,CAErB;IAEF,iBAAiB;IA0BjB,oBAAoB;IAOpB;;;;;OAKG;IACH,OAAO;IAQP,OAAO,CAAC,UAAU,CAAC,CAAoB;IACvC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,cAAc,CAAC,CAAmB;IAC1C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAC,CAAS;IAClC,OAAO,CAAC,cAAc,CAAC,CAAiC;IAExD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,SAAS,CA6Df;IAEF,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAMrB;IAEF,OAAO,CAAC,UAAU;IA4ClB,OAAO,CAAC,SAAS;IAkBjB;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAkFrB;IAED,0EAA0E;IAC1E,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,YAAY;IAYpB;;;;;;;OAOG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAKhC;IAED,MAAM;IAiBN;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,UAAU;CAuBnB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
@@ -1,61 +1,61 @@
1
- import { EdElement as z } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
- import { unsafeCSS as _, html as l, nothing as v } from "lit";
3
- import { property as a, state as k } from "lit/decorators.js";
4
- import { ifDefined as p } from "lit/directives/if-defined.js";
5
- const b = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
6
- var y = Object.defineProperty, i = (d, e, t, s) => {
7
- for (var o = void 0, h = d.length - 1, n; h >= 0; h--)
8
- (n = d[h]) && (o = n(e, t, o) || o);
9
- return o && y(e, t, o), o;
1
+ import { EdElement as S } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
+ import { unsafeCSS as L, html as c, nothing as R } from "lit";
3
+ import { property as a, state as w } from "lit/decorators.js";
4
+ import { ifDefined as f } from "lit/directives/if-defined.js";
5
+ const E = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
6
+ var U = Object.defineProperty, o = (h, e, t, s) => {
7
+ for (var r = void 0, n = h.length - 1, l; n >= 0; n--)
8
+ (l = h[n]) && (r = l(e, t, r) || r);
9
+ return r && U(e, t, r), r;
10
10
  };
11
- const g = "https://visualzzz.bradfrost.com/", w = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], M = "[data-visualzzz-avoid]", c = 200, S = {
11
+ const C = "https://visualzzz.bradfrost.com/", P = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], A = "[data-visualzzz-avoid]", m = 200, F = {
12
12
  speed: "g.globalSpeed",
13
13
  aspect: "g.aspectRatio"
14
- }, R = [
14
+ }, O = [
15
15
  "textAxes",
16
16
  "textAxisAnim",
17
17
  "textSource",
18
18
  "quoteAttrColor",
19
19
  "quoteMarks"
20
20
  ];
21
- function f(d) {
22
- if (!d) return {};
23
- if (typeof d == "object") return d;
24
- if (typeof d == "string")
21
+ function g(h) {
22
+ if (!h) return {};
23
+ if (typeof h == "object") return h;
24
+ if (typeof h == "string")
25
25
  try {
26
- const e = JSON.parse(d);
26
+ const e = JSON.parse(h);
27
27
  return e && typeof e == "object" ? e : {};
28
28
  } catch {
29
29
  return {};
30
30
  }
31
31
  return {};
32
32
  }
33
- class r extends z {
33
+ class i extends S {
34
34
  constructor() {
35
- super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = g, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
35
+ super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = C, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
36
36
  this._reducedMotion = e.matches;
37
37
  }, this._maskScheduled = !1, this._maskReady = !1, this._readMask = () => {
38
38
  this._maskScheduled = !1;
39
39
  const e = this._maskFrame, t = this._maskSelectorInUse;
40
40
  if (!e?.contentWindow || !t || !this._maskReady) return;
41
- const s = e.getBoundingClientRect(), o = [];
42
- for (const h of document.querySelectorAll(t))
43
- for (const n of this._rectsFor(h)) {
44
- if (n.width <= 0 || n.height <= 0) continue;
45
- const m = n.left - s.left, u = n.top - s.top;
46
- u + n.height < -c || u > s.height + c || m + n.width < -c || m > s.width + c || o.push({ x: m, y: u, w: n.width, h: n.height });
41
+ const s = e.getBoundingClientRect(), r = e.clientWidth ? s.width / e.clientWidth : 1, n = e.clientHeight ? s.height / e.clientHeight : 1;
42
+ if (!r || !n) return;
43
+ const l = s.width / r, k = s.height / n, _ = [];
44
+ for (const M of document.querySelectorAll(t))
45
+ for (const d of this._rectsFor(M)) {
46
+ if (d.width <= 0 || d.height <= 0) continue;
47
+ const u = (d.left - s.left) / r, p = (d.top - s.top) / n, b = d.width / r, y = d.height / n;
48
+ p + y < -m || p > k + m || u + b < -m || u > l + m || _.push({ x: u, y: p, w: b, h: y });
47
49
  }
48
- e.contentWindow.postMessage(
49
- {
50
- type: "visualzzz:mask",
51
- v: 1,
52
- rects: o,
53
- vw: s.width,
54
- vh: s.height,
55
- dpr: window.devicePixelRatio || 1
56
- },
57
- new URL(this.baseUrl).origin
58
- );
50
+ const z = {
51
+ type: "visualzzz:mask",
52
+ v: 1,
53
+ rects: _,
54
+ vw: l,
55
+ vh: k,
56
+ dpr: window.devicePixelRatio || 1
57
+ }, v = JSON.stringify(z);
58
+ v !== this._maskLastPayload && (this._maskLastPayload = v, e.contentWindow.postMessage(z, new URL(this.baseUrl).origin));
59
59
  }, this._scheduleMask = () => {
60
60
  this._maskScheduled || (this._maskScheduled = !0, requestAnimationFrame(this._readMask));
61
61
  }, this._onEmbedMessage = (e) => {
@@ -63,7 +63,7 @@ class r extends z {
63
63
  }, this._warnedDrops = /* @__PURE__ */ new Set();
64
64
  }
65
65
  static get styles() {
66
- return _(b);
66
+ return L(E);
67
67
  }
68
68
  connectedCallback() {
69
69
  if (super.connectedCallback(), typeof window < "u" && window.matchMedia && (this._motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), this._reducedMotion = this._motionQuery.matches, this._motionQuery.addEventListener("change", this._onMotionChange)), typeof IntersectionObserver > "u") {
@@ -104,11 +104,11 @@ class r extends z {
104
104
  childList: !0,
105
105
  subtree: !0,
106
106
  characterData: !0
107
- }), document.fonts?.ready?.then(this._scheduleMask), this._scheduleMask();
107
+ }), document.fonts?.ready?.then(this._scheduleMask), this._maskDriftPoll = setInterval(this._scheduleMask, 300), this._scheduleMask();
108
108
  }
109
109
  }
110
110
  _stopMask() {
111
- this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1);
111
+ this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskDriftPoll !== void 0 && clearInterval(this._maskDriftPoll), this._maskDriftPoll = void 0, this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1, this._maskLastPayload = void 0);
112
112
  }
113
113
  /**
114
114
  * Build the embed URL: share-URL baseline, then structural props, then the
@@ -119,17 +119,17 @@ class r extends z {
119
119
  if (this.configUrl) {
120
120
  const s = new URL(this.baseUrl);
121
121
  e.protocol = s.protocol, e.host = s.host, e.pathname = s.pathname;
122
- for (const [h, n] of Object.entries(S))
123
- e.searchParams.has(h) && !e.searchParams.has(n) && e.searchParams.set(n, e.searchParams.get(h));
124
- const o = R.filter((h) => e.searchParams.has(h));
125
- o.length && this._warnDropped(o);
122
+ for (const [n, l] of Object.entries(F))
123
+ e.searchParams.has(n) && !e.searchParams.has(l) && e.searchParams.set(l, e.searchParams.get(n));
124
+ const r = O.filter((n) => e.searchParams.has(n));
125
+ r.length && this._warnDropped(r);
126
126
  }
127
- const t = (s, o) => e.searchParams.set(s, String(o));
127
+ const t = (s, r) => e.searchParams.set(s, String(r));
128
128
  this.anim && t("anim", this.anim), this.theme && t("theme", this.theme), this.dark !== void 0 && t("dark", this.dark ? "1" : "0"), this.speed !== void 0 && (t("speed", this.speed), t("g.globalSpeed", this.speed));
129
- for (const [s, o] of Object.entries(f(this.params)))
130
- t(`p.${s}`, o);
131
- for (const [s, o] of Object.entries(f(this.globals)))
132
- t(`g.${s}`, o);
129
+ for (const [s, r] of Object.entries(g(this.params)))
130
+ t(`p.${s}`, r);
131
+ for (const [s, r] of Object.entries(g(this.globals)))
132
+ t(`g.${s}`, r);
133
133
  if (e.pathname.endsWith("embed.html") || (e.pathname = e.pathname.replace(/\/?$/, "/embed.html")), this.maskSelector) {
134
134
  t("mask", "1");
135
135
  const s = [
@@ -140,8 +140,8 @@ class r extends z {
140
140
  ["maskDrift", this.maskDrift],
141
141
  ["maskPad", this.maskPad]
142
142
  ];
143
- for (const [o, h] of s)
144
- h !== void 0 && t(o, h);
143
+ for (const [r, n] of s)
144
+ n !== void 0 && t(r, n);
145
145
  }
146
146
  return t("controls", "0"), e.toString();
147
147
  }
@@ -161,16 +161,16 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
161
161
  * default marker". Anything else is taken as the consumer's own selector.
162
162
  */
163
163
  get maskSelector() {
164
- return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? M : this.mask;
164
+ return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? A : this.mask;
165
165
  }
166
166
  render() {
167
- const e = w.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
167
+ const e = P.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
168
168
  [`ed-r-visualzzz--ratio-${e.replace(":", "-")}`]: e !== "fill",
169
169
  "ed-r-visualzzz--fill": e === "fill",
170
170
  "ed-r-visualzzz--decorative": t && !this.interactive
171
171
  });
172
- return l`
173
- <div class="${s}" part="frame" aria-hidden="${p(t ? "true" : void 0)}">
172
+ return c`
173
+ <div class="${s}" part="frame" aria-hidden="${f(t ? "true" : void 0)}">
174
174
  ${this._reducedMotion ? this.renderStill() : this.renderLive(t)}
175
175
  </div>
176
176
  `;
@@ -182,96 +182,96 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
182
182
  * an animation someone asked not to see.
183
183
  */
184
184
  renderStill() {
185
- return this.slotEmpty("fallback") ? this.posterSrc ? l`<img
185
+ return this.slotEmpty("fallback") ? this.posterSrc ? c`<img
186
186
  class="ed-r-visualzzz__poster"
187
187
  part="poster"
188
188
  src="${this.posterSrc}"
189
189
  alt="${this.posterAlt ?? ""}"
190
- />` : l`<slot name="fallback"></slot>` : l`<slot name="fallback"></slot>`;
190
+ />` : c`<slot name="fallback"></slot>` : c`<slot name="fallback"></slot>`;
191
191
  }
192
192
  renderLive(e) {
193
- return this._seen ? l`<iframe
193
+ return this._seen ? c`<iframe
194
194
  class="ed-r-visualzzz__frame"
195
195
  part="iframe"
196
196
  src="${this.embedUrl}"
197
- title="${p(this.label)}"
197
+ title="${f(this.label)}"
198
198
  loading="lazy"
199
- tabindex="${p(e ? "-1" : void 0)}"
200
- ></iframe>` : this.posterSrc ? l`<img
199
+ tabindex="${f(e ? "-1" : void 0)}"
200
+ ></iframe>` : this.posterSrc ? c`<img
201
201
  class="ed-r-visualzzz__poster"
202
202
  part="poster"
203
203
  src="${this.posterSrc}"
204
204
  alt="${this.posterAlt ?? ""}"
205
- />` : v;
205
+ />` : R;
206
206
  }
207
207
  }
208
- i([
208
+ o([
209
209
  a()
210
- ], r.prototype, "anim");
211
- i([
210
+ ], i.prototype, "anim");
211
+ o([
212
212
  a({ type: Object })
213
- ], r.prototype, "params");
214
- i([
213
+ ], i.prototype, "params");
214
+ o([
215
215
  a({ type: Object })
216
- ], r.prototype, "globals");
217
- i([
216
+ ], i.prototype, "globals");
217
+ o([
218
218
  a()
219
- ], r.prototype, "configUrl");
220
- i([
219
+ ], i.prototype, "configUrl");
220
+ o([
221
221
  a()
222
- ], r.prototype, "theme");
223
- i([
222
+ ], i.prototype, "theme");
223
+ o([
224
224
  a({ type: Boolean })
225
- ], r.prototype, "dark");
226
- i([
225
+ ], i.prototype, "dark");
226
+ o([
227
227
  a({ type: Number })
228
- ], r.prototype, "speed");
229
- i([
228
+ ], i.prototype, "speed");
229
+ o([
230
230
  a({ reflect: !0 })
231
- ], r.prototype, "ratio");
232
- i([
231
+ ], i.prototype, "ratio");
232
+ o([
233
233
  a()
234
- ], r.prototype, "posterSrc");
235
- i([
234
+ ], i.prototype, "posterSrc");
235
+ o([
236
236
  a()
237
- ], r.prototype, "posterAlt");
238
- i([
237
+ ], i.prototype, "posterAlt");
238
+ o([
239
239
  a()
240
- ], r.prototype, "label");
241
- i([
240
+ ], i.prototype, "label");
241
+ o([
242
242
  a({ type: Boolean })
243
- ], r.prototype, "interactive");
244
- i([
243
+ ], i.prototype, "interactive");
244
+ o([
245
245
  a()
246
- ], r.prototype, "mask");
247
- i([
246
+ ], i.prototype, "mask");
247
+ o([
248
248
  a({ type: Number })
249
- ], r.prototype, "maskFeather");
250
- i([
249
+ ], i.prototype, "maskFeather");
250
+ o([
251
251
  a({ type: Number })
252
- ], r.prototype, "maskCorner");
253
- i([
252
+ ], i.prototype, "maskCorner");
253
+ o([
254
254
  a({ type: Number })
255
- ], r.prototype, "maskWobble");
256
- i([
255
+ ], i.prototype, "maskWobble");
256
+ o([
257
257
  a({ type: Number })
258
- ], r.prototype, "maskLobes");
259
- i([
258
+ ], i.prototype, "maskLobes");
259
+ o([
260
260
  a({ type: Number })
261
- ], r.prototype, "maskDrift");
262
- i([
261
+ ], i.prototype, "maskDrift");
262
+ o([
263
263
  a({ type: Number })
264
- ], r.prototype, "maskPad");
265
- i([
264
+ ], i.prototype, "maskPad");
265
+ o([
266
266
  a()
267
- ], r.prototype, "baseUrl");
268
- i([
269
- k()
270
- ], r.prototype, "_reducedMotion");
271
- i([
272
- k()
273
- ], r.prototype, "_seen");
274
- customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", r);
267
+ ], i.prototype, "baseUrl");
268
+ o([
269
+ w()
270
+ ], i.prototype, "_reducedMotion");
271
+ o([
272
+ w()
273
+ ], i.prototype, "_seen");
274
+ customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", i);
275
275
  export {
276
- r as EdRVisualzzz
276
+ i as EdRVisualzzz
277
277
  };