@realsee/dnalogel 3.73.1-alpha.1 → 3.73.1-alpha.2

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,10 +1,10 @@
1
- import { SvelteComponent as ve, init as Ce, safe_not_equal as ke, append_styles as he, space as ae, empty as Te, insert as R, transition_in as b, transition_out as h, check_outros as V, detach as Z, getContext as Pe, onMount as ye, element as X, attr as _, toggle_class as H, set_style as F, append as Ee, group_outros as j, create_component as Y, mount_component as $, destroy_component as x, binding_callbacks as W, noop as I, bind as Me, add_flush_callback as Se } from "../../vendor/svelte/internal/index.js";
2
- import we from "./Tag/index.js";
1
+ import { SvelteComponent as ke, init as Te, safe_not_equal as Pe, append_styles as ye, space as le, empty as Ee, insert as R, transition_in as b, transition_out as k, check_outros as V, detach as Z, getContext as Me, onMount as Se, element as Y, attr as _, toggle_class as H, set_style as F, append as we, group_outros as j, create_component as $, mount_component as x, destroy_component as ee, binding_callbacks as X, noop as I, bind as De, add_flush_callback as He } from "../../vendor/svelte/internal/index.js";
2
+ import Ie from "./Tag/index.js";
3
3
  import "three";
4
- import { noTypecheck as ie } from "../utils/noTypecheck.js";
5
- import De from "./Common/TagPoint.js";
4
+ import { noTypecheck as ae } from "../utils/noTypecheck.js";
5
+ import Le from "./Common/TagPoint.js";
6
6
  import "../../shared-utils/tag.js";
7
- import { isModelLike as He } from "../../shared-utils/five/mode.js";
7
+ import { isModelLike as ze } from "../../shared-utils/five/mode.js";
8
8
  import "../../vendor/hammerjs/hammer.js";
9
9
  import "../../shared-utils/three/PointSelector/index.js";
10
10
  import "../../shared-utils/three/CSS3DRenderer/index.js";
@@ -16,7 +16,7 @@ import "../../shared-utils/three/blink.js";
16
16
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
17
17
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
18
18
  import "../../shared-utils/five/FivePuppet.js";
19
- import Ie from "./Common/TagPopover/index.js";
19
+ import Ue from "./Common/TagPopover/index.js";
20
20
  import "./Tag/TextTag/index.js";
21
21
  import "./Tag/TextTag/TextTag.js";
22
22
  import "./Common/Line/Straight.js";
@@ -187,141 +187,141 @@ import "./Common/AudioPlayer.js";
187
187
  import "./Common/TagPopover/TagPopoverToolBar.js";
188
188
  import "./Common/TagPopover/ArrowRightIcon.js";
189
189
  import "./Common/TagPopover/ShareIcon.js";
190
- function Ue(t) {
191
- he(t, "svelte-2g2g8a", ".tag.svelte-2g2g8a{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto;will-change:opacity;transition:opacity 0.2s linear}.tag.enableZIndex.svelte-2g2g8a{position:absolute}.tag.hide.svelte-2g2g8a{opacity:0;pointer-events:none}.tag.hide.svelte-2g2g8a *{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a *{pointer-events:none !important}");
190
+ function Ae(o) {
191
+ ye(o, "svelte-2g2g8a", ".tag.svelte-2g2g8a{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto;will-change:opacity;transition:opacity 0.2s linear}.tag.enableZIndex.svelte-2g2g8a{position:absolute}.tag.hide.svelte-2g2g8a{opacity:0;pointer-events:none}.tag.hide.svelte-2g2g8a *{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a{pointer-events:none !important}.tag.unClickable.svelte-2g2g8a *{pointer-events:none !important}");
192
192
  }
193
- function re(t) {
193
+ function pe(o) {
194
194
  let e, i, a, m, r, n, u, l, g, d;
195
- const U = [ze, Le], v = [];
196
- function L(f, s) {
195
+ const L = [Ze, Re], v = [];
196
+ function z(f, s) {
197
197
  return (
198
198
  /*havePoint*/
199
- f[10] ? 0 : 1
199
+ f[12] ? 0 : 1
200
200
  );
201
201
  }
202
- i = L(t), a = v[i] = U[i](t);
203
- const o = [Re, Ae], C = [];
202
+ i = z(o), a = v[i] = L[i](o);
203
+ const t = [Oe, Ne], C = [];
204
204
  function S(f, s) {
205
205
  return (
206
206
  /*haveContent*/
207
207
  f[25] ? 0 : 1
208
208
  );
209
209
  }
210
- return r = S(t), n = C[r] = o[r](t), {
210
+ return r = S(o), n = C[r] = t[r](o), {
211
211
  c() {
212
- e = X("div"), a.c(), m = ae(), n.c(), _(e, "class", "tag svelte-2g2g8a"), _(
212
+ e = Y("div"), a.c(), m = le(), n.c(), _(e, "class", "tag svelte-2g2g8a"), _(
213
213
  e,
214
214
  "data-tag-id",
215
215
  /*id*/
216
- t[23]
216
+ o[24]
217
217
  ), _(
218
218
  e,
219
219
  "data-tag-unfolded",
220
220
  /*unfolded*/
221
- t[8]
221
+ o[10]
222
222
  ), _(e, "data-content-type", u = /*tag*/
223
- t[0].contentType), _(e, "data-popover-enabled", l = /*tag*/
224
- t[0].isPopoverConfigEnabled()), _(e, "id", g = `tag-${/*id*/
225
- t[23]}`), H(
223
+ o[0].contentType), _(e, "data-popover-enabled", l = /*tag*/
224
+ o[0].isPopoverConfigEnabled()), _(e, "id", g = `tag-${/*id*/
225
+ o[24]}`), H(
226
226
  e,
227
227
  "unClickable",
228
228
  /*tag*/
229
- t[0].config.clickable === !1
229
+ o[0].config.clickable === !1
230
230
  ), H(
231
231
  e,
232
232
  "hide",
233
233
  /*hide*/
234
- t[21]
234
+ o[22]
235
235
  ), H(
236
236
  e,
237
237
  "enableZIndex",
238
238
  /*zIndex*/
239
- t[18]
239
+ o[19]
240
240
  ), F(
241
241
  e,
242
242
  "z-index",
243
243
  /*zIndex*/
244
- t[18]
244
+ o[19]
245
245
  ), F(e, "transform", `translate3d(${/*left*/
246
- t[20]}, ${/*top*/
247
- t[19]}, 0) scale(${/*screenPosition*/
248
- t[9].scale})`);
246
+ o[21]}, ${/*top*/
247
+ o[20]}, 0) scale(${/*screenPosition*/
248
+ o[11].scale})`);
249
249
  },
250
250
  m(f, s) {
251
- R(f, e, s), v[i].m(e, null), Ee(e, m), C[r].m(e, null), t[36](e), d = !0;
251
+ R(f, e, s), v[i].m(e, null), we(e, m), C[r].m(e, null), o[36](e), d = !0;
252
252
  },
253
253
  p(f, s) {
254
254
  let w = i;
255
- i = L(f), i === w ? v[i].p(f, s) : (j(), h(v[w], 1, 1, () => {
255
+ i = z(f), i === w ? v[i].p(f, s) : (j(), k(v[w], 1, 1, () => {
256
256
  v[w] = null;
257
- }), V(), a = v[i], a ? a.p(f, s) : (a = v[i] = U[i](f), a.c()), b(a, 1), a.m(e, m));
257
+ }), V(), a = v[i], a ? a.p(f, s) : (a = v[i] = L[i](f), a.c()), b(a, 1), a.m(e, m));
258
258
  let D = r;
259
- r = S(f), r === D ? C[r].p(f, s) : (j(), h(C[D], 1, 1, () => {
259
+ r = S(f), r === D ? C[r].p(f, s) : (j(), k(C[D], 1, 1, () => {
260
260
  C[D] = null;
261
- }), V(), n = C[r], n ? n.p(f, s) : (n = C[r] = o[r](f), n.c()), b(n, 1), n.m(e, null)), (!d || s[0] & /*id*/
262
- 8388608) && _(
261
+ }), V(), n = C[r], n ? n.p(f, s) : (n = C[r] = t[r](f), n.c()), b(n, 1), n.m(e, null)), (!d || s[0] & /*id*/
262
+ 16777216) && _(
263
263
  e,
264
264
  "data-tag-id",
265
265
  /*id*/
266
- f[23]
266
+ f[24]
267
267
  ), (!d || s[0] & /*unfolded*/
268
- 256) && _(
268
+ 1024) && _(
269
269
  e,
270
270
  "data-tag-unfolded",
271
271
  /*unfolded*/
272
- f[8]
272
+ f[10]
273
273
  ), (!d || s[0] & /*tag*/
274
274
  1 && u !== (u = /*tag*/
275
275
  f[0].contentType)) && _(e, "data-content-type", u), (!d || s[0] & /*tag*/
276
276
  1 && l !== (l = /*tag*/
277
277
  f[0].isPopoverConfigEnabled())) && _(e, "data-popover-enabled", l), (!d || s[0] & /*id*/
278
- 8388608 && g !== (g = `tag-${/*id*/
279
- f[23]}`)) && _(e, "id", g), (!d || s[0] & /*tag*/
278
+ 16777216 && g !== (g = `tag-${/*id*/
279
+ f[24]}`)) && _(e, "id", g), (!d || s[0] & /*tag*/
280
280
  1) && H(
281
281
  e,
282
282
  "unClickable",
283
283
  /*tag*/
284
284
  f[0].config.clickable === !1
285
285
  ), (!d || s[0] & /*hide*/
286
- 2097152) && H(
286
+ 4194304) && H(
287
287
  e,
288
288
  "hide",
289
289
  /*hide*/
290
- f[21]
290
+ f[22]
291
291
  ), (!d || s[0] & /*zIndex*/
292
- 262144) && H(
292
+ 524288) && H(
293
293
  e,
294
294
  "enableZIndex",
295
295
  /*zIndex*/
296
- f[18]
296
+ f[19]
297
297
  ), s[0] & /*zIndex*/
298
- 262144 && F(
298
+ 524288 && F(
299
299
  e,
300
300
  "z-index",
301
301
  /*zIndex*/
302
- f[18]
302
+ f[19]
303
303
  ), s[0] & /*left, top, screenPosition*/
304
- 1573376 && F(e, "transform", `translate3d(${/*left*/
305
- f[20]}, ${/*top*/
306
- f[19]}, 0) scale(${/*screenPosition*/
307
- f[9].scale})`);
304
+ 3147776 && F(e, "transform", `translate3d(${/*left*/
305
+ f[21]}, ${/*top*/
306
+ f[20]}, 0) scale(${/*screenPosition*/
307
+ f[11].scale})`);
308
308
  },
309
309
  i(f) {
310
310
  d || (b(a), b(n), d = !0);
311
311
  },
312
312
  o(f) {
313
- h(a), h(n), d = !1;
313
+ k(a), k(n), d = !1;
314
314
  },
315
315
  d(f) {
316
- f && Z(e), v[i].d(), C[r].d(), t[36](null);
316
+ f && Z(e), v[i].d(), C[r].d(), o[36](null);
317
317
  }
318
318
  };
319
319
  }
320
- function Le(t) {
320
+ function Re(o) {
321
321
  let e;
322
322
  return {
323
323
  c() {
324
- e = X("div"), _(e, "data-info", "tag point is disable");
324
+ e = Y("div"), _(e, "data-info", "tag point is disable");
325
325
  },
326
326
  m(i, a) {
327
327
  R(i, e, a);
@@ -334,84 +334,84 @@ function Le(t) {
334
334
  }
335
335
  };
336
336
  }
337
- function ze(t) {
337
+ function Ze(o) {
338
338
  let e, i, a;
339
339
  function m(n) {
340
- t[34](n);
340
+ o[34](n);
341
341
  }
342
342
  let r = {
343
343
  tag: (
344
344
  /*tag*/
345
- t[0]
345
+ o[0]
346
346
  ),
347
347
  handleMouseEnter: (
348
348
  /*handleMouseEnter*/
349
- t[30]
349
+ o[30]
350
350
  ),
351
351
  handleMouseLeave: (
352
352
  /*handleMouseLeave*/
353
- t[31]
353
+ o[31]
354
354
  ),
355
355
  handleTagPointClick: (
356
356
  /*handleTagPointClick*/
357
- t[32]
357
+ o[32]
358
358
  )
359
359
  };
360
360
  return (
361
361
  /*tagPointClickHelper*/
362
- t[12] !== void 0 && (r.tagPointClickHelper = /*tagPointClickHelper*/
363
- t[12]), e = new De({ props: r }), W.push(() => Me(e, "tagPointClickHelper", m)), t[35](e), e.$on(
362
+ o[13] !== void 0 && (r.tagPointClickHelper = /*tagPointClickHelper*/
363
+ o[13]), e = new Le({ props: r }), X.push(() => De(e, "tagPointClickHelper", m)), o[35](e), e.$on(
364
364
  "audioInstanceReady",
365
365
  /*audioEventHandlers*/
366
- t[27].audioInstanceReady
366
+ o[27].audioInstanceReady
367
367
  ), e.$on(
368
368
  "audioPlay",
369
369
  /*audioEventHandlers*/
370
- t[27].audioPlay
370
+ o[27].audioPlay
371
371
  ), e.$on(
372
372
  "audioPause",
373
373
  /*audioEventHandlers*/
374
- t[27].audioPause
374
+ o[27].audioPause
375
375
  ), e.$on(
376
376
  "audioTimeUpdate",
377
377
  /*audioEventHandlers*/
378
- t[27].audioTimeUpdate
378
+ o[27].audioTimeUpdate
379
379
  ), e.$on(
380
380
  "audioDuration",
381
381
  /*audioEventHandlers*/
382
- t[27].audioDuration
382
+ o[27].audioDuration
383
383
  ), {
384
384
  c() {
385
- Y(e.$$.fragment);
385
+ $(e.$$.fragment);
386
386
  },
387
387
  m(n, u) {
388
- $(e, n, u), a = !0;
388
+ x(e, n, u), a = !0;
389
389
  },
390
390
  p(n, u) {
391
391
  const l = {};
392
392
  u[0] & /*tag*/
393
393
  1 && (l.tag = /*tag*/
394
394
  n[0]), !i && u[0] & /*tagPointClickHelper*/
395
- 4096 && (i = !0, l.tagPointClickHelper = /*tagPointClickHelper*/
396
- n[12], Se(() => i = !1)), e.$set(l);
395
+ 8192 && (i = !0, l.tagPointClickHelper = /*tagPointClickHelper*/
396
+ n[13], He(() => i = !1)), e.$set(l);
397
397
  },
398
398
  i(n) {
399
399
  a || (b(e.$$.fragment, n), a = !0);
400
400
  },
401
401
  o(n) {
402
- h(e.$$.fragment, n), a = !1;
402
+ k(e.$$.fragment, n), a = !1;
403
403
  },
404
404
  d(n) {
405
- t[35](null), x(e, n);
405
+ o[35](null), ee(e, n);
406
406
  }
407
407
  }
408
408
  );
409
409
  }
410
- function Ae(t) {
410
+ function Ne(o) {
411
411
  let e;
412
412
  return {
413
413
  c() {
414
- e = X("div"), _(e, "data-info", "tag content is disable");
414
+ e = Y("div"), _(e, "data-info", "tag content is disable");
415
415
  },
416
416
  m(i, a) {
417
417
  R(i, e, a);
@@ -424,52 +424,52 @@ function Ae(t) {
424
424
  }
425
425
  };
426
426
  }
427
- function Re(t) {
427
+ function Oe(o) {
428
428
  let e, i;
429
- return e = new we({
429
+ return e = new Ie({
430
430
  props: {
431
431
  mediaStore: (
432
432
  /*mediaStore*/
433
- t[1]
433
+ o[1]
434
434
  ),
435
- tag: ie(
435
+ tag: ae(
436
436
  /*tag*/
437
- t[0]
437
+ o[0]
438
438
  ),
439
439
  hooks: (
440
440
  /*hooks*/
441
- t[26]
441
+ o[26]
442
442
  ),
443
443
  state: (
444
444
  /*state*/
445
- t[4]
445
+ o[4]
446
446
  ),
447
447
  temporaryState: (
448
448
  /*temporaryState*/
449
- t[5]
449
+ o[5]
450
450
  ),
451
451
  rendererMap: (
452
452
  /*rendererMap*/
453
- t[2]
453
+ o[2]
454
454
  ),
455
455
  contentTypeMap: (
456
456
  /*contentTypeMap*/
457
- t[3]
457
+ o[3]
458
458
  )
459
459
  }
460
460
  }), {
461
461
  c() {
462
- Y(e.$$.fragment);
462
+ $(e.$$.fragment);
463
463
  },
464
464
  m(a, m) {
465
- $(e, a, m), i = !0;
465
+ x(e, a, m), i = !0;
466
466
  },
467
467
  p(a, m) {
468
468
  const r = {};
469
469
  m[0] & /*mediaStore*/
470
470
  2 && (r.mediaStore = /*mediaStore*/
471
471
  a[1]), m[0] & /*tag*/
472
- 1 && (r.tag = ie(
472
+ 1 && (r.tag = ae(
473
473
  /*tag*/
474
474
  a[0]
475
475
  )), m[0] & /*state*/
@@ -486,82 +486,82 @@ function Re(t) {
486
486
  i || (b(e.$$.fragment, a), i = !0);
487
487
  },
488
488
  o(a) {
489
- h(e.$$.fragment, a), i = !1;
489
+ k(e.$$.fragment, a), i = !1;
490
490
  },
491
491
  d(a) {
492
- x(e, a);
492
+ ee(e, a);
493
493
  }
494
494
  };
495
495
  }
496
- function ne(t) {
496
+ function me(o) {
497
497
  var a;
498
498
  let e, i;
499
- return e = new Ie({
499
+ return e = new Ue({
500
500
  props: {
501
501
  tag: (
502
502
  /*tag*/
503
- t[0]
503
+ o[0]
504
504
  ),
505
505
  config: (
506
506
  /*tag*/
507
- t[0].config.popoverConfig
507
+ o[0].config.popoverConfig
508
508
  ),
509
509
  theme: (
510
510
  /*tag*/
511
- (a = t[0].config.popoverConfig) == null ? void 0 : a.theme
511
+ (a = o[0].config.popoverConfig) == null ? void 0 : a.theme
512
512
  ),
513
513
  wrapperElement: (
514
514
  /*wrapperElement*/
515
- t[6]
515
+ o[6]
516
516
  ),
517
517
  triggerElement: (
518
518
  /*tagPointClickHelper*/
519
- t[12]
519
+ o[13]
520
520
  ),
521
521
  popoverContainer: (
522
522
  /*popoverContainer*/
523
- t[7]
523
+ o[7]
524
524
  ),
525
525
  visible: !0,
526
526
  closePopover: (
527
527
  /*closePopover*/
528
- t[33]
528
+ o[33]
529
529
  ),
530
530
  audioInstance: (
531
531
  /*audioInstance*/
532
- t[14]
532
+ o[15]
533
533
  ),
534
534
  audioPlaying: (
535
535
  /*audioPlaying*/
536
- t[15]
536
+ o[16]
537
537
  ),
538
538
  audioCurrentTime: (
539
539
  /*audioCurrentTime*/
540
- t[16]
540
+ o[17]
541
541
  ),
542
542
  audioDuration: (
543
543
  /*audioDuration*/
544
- t[17]
544
+ o[18]
545
545
  )
546
546
  }
547
547
  }), e.$on(
548
548
  "mouseenter",
549
549
  /*handlePopoverMouseEnter*/
550
- t[28]
550
+ o[28]
551
551
  ), e.$on(
552
552
  "mouseleave",
553
553
  /*handlePopoverMouseLeave*/
554
- t[29]
554
+ o[29]
555
555
  ), e.$on(
556
556
  "close",
557
557
  /*closePopover*/
558
- t[33]
558
+ o[33]
559
559
  ), {
560
560
  c() {
561
- Y(e.$$.fragment);
561
+ $(e.$$.fragment);
562
562
  },
563
563
  m(m, r) {
564
- $(e, m, r), i = !0;
564
+ x(e, m, r), i = !0;
565
565
  },
566
566
  p(m, r) {
567
567
  var u;
@@ -575,47 +575,47 @@ function ne(t) {
575
575
  (u = m[0].config.popoverConfig) == null ? void 0 : u.theme), r[0] & /*wrapperElement*/
576
576
  64 && (n.wrapperElement = /*wrapperElement*/
577
577
  m[6]), r[0] & /*tagPointClickHelper*/
578
- 4096 && (n.triggerElement = /*tagPointClickHelper*/
579
- m[12]), r[0] & /*popoverContainer*/
578
+ 8192 && (n.triggerElement = /*tagPointClickHelper*/
579
+ m[13]), r[0] & /*popoverContainer*/
580
580
  128 && (n.popoverContainer = /*popoverContainer*/
581
581
  m[7]), r[0] & /*audioInstance*/
582
- 16384 && (n.audioInstance = /*audioInstance*/
583
- m[14]), r[0] & /*audioPlaying*/
584
- 32768 && (n.audioPlaying = /*audioPlaying*/
585
- m[15]), r[0] & /*audioCurrentTime*/
586
- 65536 && (n.audioCurrentTime = /*audioCurrentTime*/
587
- m[16]), r[0] & /*audioDuration*/
588
- 131072 && (n.audioDuration = /*audioDuration*/
589
- m[17]), e.$set(n);
582
+ 32768 && (n.audioInstance = /*audioInstance*/
583
+ m[15]), r[0] & /*audioPlaying*/
584
+ 65536 && (n.audioPlaying = /*audioPlaying*/
585
+ m[16]), r[0] & /*audioCurrentTime*/
586
+ 131072 && (n.audioCurrentTime = /*audioCurrentTime*/
587
+ m[17]), r[0] & /*audioDuration*/
588
+ 262144 && (n.audioDuration = /*audioDuration*/
589
+ m[18]), e.$set(n);
590
590
  },
591
591
  i(m) {
592
592
  i || (b(e.$$.fragment, m), i = !0);
593
593
  },
594
594
  o(m) {
595
- h(e.$$.fragment, m), i = !1;
595
+ k(e.$$.fragment, m), i = !1;
596
596
  },
597
597
  d(m) {
598
- x(e, m);
598
+ ee(e, m);
599
599
  }
600
600
  };
601
601
  }
602
- function Ze(t) {
602
+ function qe(o) {
603
603
  var u;
604
604
  let e, i = (
605
605
  /*tag*/
606
- t[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
607
- t[24] && /*isHovering*/
608
- (t[11] || /*tag*/
609
- ((u = t[0].config.popoverConfig) == null ? void 0 : u.debug))
606
+ o[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
607
+ o[9] && /*isHovering*/
608
+ (o[8] || /*tag*/
609
+ ((u = o[0].config.popoverConfig) == null ? void 0 : u.debug))
610
610
  ), a, m, r = (
611
611
  /*screenPosition*/
612
- t[9] && (!/*disable*/
613
- t[22] || /*isHovering*/
614
- t[11]) && re(t)
615
- ), n = i && ne(t);
612
+ o[11] && (!/*disable*/
613
+ o[23] || /*isHovering*/
614
+ o[8]) && pe(o)
615
+ ), n = i && me(o);
616
616
  return {
617
617
  c() {
618
- r && r.c(), e = ae(), n && n.c(), a = Te();
618
+ r && r.c(), e = le(), n && n.c(), a = Ee();
619
619
  },
620
620
  m(l, g) {
621
621
  r && r.m(l, g), R(l, e, g), n && n.m(l, g), R(l, a, g), m = !0;
@@ -623,18 +623,18 @@ function Ze(t) {
623
623
  p(l, g) {
624
624
  var d;
625
625
  /*screenPosition*/
626
- l[9] && (!/*disable*/
627
- l[22] || /*isHovering*/
628
- l[11]) ? r ? (r.p(l, g), g[0] & /*screenPosition, disable, isHovering*/
629
- 4196864 && b(r, 1)) : (r = re(l), r.c(), b(r, 1), r.m(e.parentNode, e)) : r && (j(), h(r, 1, 1, () => {
626
+ l[11] && (!/*disable*/
627
+ l[23] || /*isHovering*/
628
+ l[8]) ? r ? (r.p(l, g), g[0] & /*screenPosition, disable, isHovering*/
629
+ 8390912 && b(r, 1)) : (r = pe(l), r.c(), b(r, 1), r.m(e.parentNode, e)) : r && (j(), k(r, 1, 1, () => {
630
630
  r = null;
631
631
  }), V()), g[0] & /*tag, hasPopoverContent, isHovering*/
632
- 16779265 && (i = /*tag*/
632
+ 769 && (i = /*tag*/
633
633
  l[0].isPopoverConfigEnabled() && /*hasPopoverContent*/
634
- l[24] && /*isHovering*/
635
- (l[11] || /*tag*/
634
+ l[9] && /*isHovering*/
635
+ (l[8] || /*tag*/
636
636
  ((d = l[0].config.popoverConfig) == null ? void 0 : d.debug))), i ? n ? (n.p(l, g), g[0] & /*tag, hasPopoverContent, isHovering*/
637
- 16779265 && b(n, 1)) : (n = ne(l), n.c(), b(n, 1), n.m(a.parentNode, a)) : n && (j(), h(n, 1, 1, () => {
637
+ 769 && b(n, 1)) : (n = me(l), n.c(), b(n, 1), n.m(a.parentNode, a)) : n && (j(), k(n, 1, 1, () => {
638
638
  n = null;
639
639
  }), V());
640
640
  },
@@ -642,142 +642,151 @@ function Ze(t) {
642
642
  m || (b(r), b(n), m = !0);
643
643
  },
644
644
  o(l) {
645
- h(r), h(n), m = !1;
645
+ k(r), k(n), m = !1;
646
646
  },
647
647
  d(l) {
648
648
  r && r.d(l), l && Z(e), n && n.d(l), l && Z(a);
649
649
  }
650
650
  };
651
651
  }
652
- function Ne(t, e, i) {
653
- let a, m, r, n, u, l, g, d, U, v, L, { tag: o } = e, { mediaStore: C } = e, { rendererMap: S = /* @__PURE__ */ new Map() } = e, { contentTypeMap: f = /* @__PURE__ */ new Map() } = e, { state: s } = e, { temporaryState: w } = e, { wrapperElement: D = null } = e, { popoverContainer: ee = null } = e;
654
- const pe = Pe("hooks");
655
- let T = !1, y, P, B = null, G = !1, J = !1, K = null, Q = null, N = !1, te = 0, oe = 0;
656
- const me = {
652
+ function Fe(o, e, i) {
653
+ let a, m, r, n, u, l, g, d, L, v, z, { tag: t } = e, { mediaStore: C } = e, { rendererMap: S = /* @__PURE__ */ new Map() } = e, { contentTypeMap: f = /* @__PURE__ */ new Map() } = e, { state: s } = e, { temporaryState: w } = e, { wrapperElement: D = null } = e, { popoverContainer: oe = null } = e;
654
+ const fe = Me("hooks");
655
+ let T = !1, y, P, B = null, G = !1, J = !1, K = null, Q = !1, W = null, N = !1, te = 0, ie = 0;
656
+ const ue = {
657
657
  audioInstanceReady: (p) => {
658
- i(14, Q = p.detail), i(15, N = !Q.paused);
658
+ i(15, W = p.detail), i(16, N = !W.paused);
659
659
  },
660
660
  audioPlay: () => {
661
- i(15, N = !0);
661
+ i(16, N = !0);
662
662
  },
663
663
  audioPause: () => {
664
- i(15, N = !1);
664
+ i(16, N = !1);
665
665
  },
666
666
  audioTimeUpdate: (p) => {
667
- i(16, te = p.detail);
667
+ i(17, te = p.detail);
668
668
  },
669
669
  audioDuration: (p) => {
670
- i(17, oe = p.detail);
670
+ i(18, ie = p.detail);
671
671
  }
672
672
  };
673
673
  let O = !1;
674
674
  const q = (p) => {
675
675
  if (P && clearTimeout(P), p === !0 && !O) {
676
- O = !0, i(11, T = !0);
676
+ O = !0, i(8, T = !0);
677
677
  return;
678
678
  }
679
679
  P = setTimeout(
680
680
  () => {
681
681
  var c;
682
- !G && !J && !((c = o.config.popoverConfig) != null && c.debug) && (O = !1, i(11, T = !1));
682
+ !G && !J && !((c = t.config.popoverConfig) != null && c.debug) && (O = !1, i(8, T = !1));
683
683
  },
684
684
  300
685
685
  );
686
- }, le = () => {
686
+ }, se = () => {
687
687
  G = !0, P && clearTimeout(P);
688
- }, fe = () => {
688
+ }, de = () => {
689
689
  G = !1, q(!1);
690
- }, ue = (p) => {
691
- var c, k, E, M, z, A;
692
- if (J = !0, o.isPopoverConfigEnabled() && o.isHoverEnabled() && ((k = (c = o.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : k.trigger) === "hover") {
690
+ }, ge = (p) => {
691
+ var c, h, E, U, M, A;
692
+ if (!Q && (J = !0, t.isPopoverConfigEnabled() && t.isHoverEnabled() && ((h = (c = t.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : h.trigger) === "hover")) {
693
693
  if (P && clearTimeout(P), y !== void 0)
694
694
  return;
695
- ((M = (E = o.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : M.triggerDelay) > 0 ? y = setTimeout(
695
+ ((U = (E = t.currentConfig) == null ? void 0 : E.popoverConfig) == null ? void 0 : U.triggerDelay) > 0 ? y = setTimeout(
696
696
  () => {
697
- q(!0), o.hooks.emit("hover", { event: p, tag: o }), y = void 0;
697
+ q(!0), t.hooks.emit("hover", { event: p, tag: t }), y = void 0;
698
698
  },
699
- (A = (z = o.currentConfig) == null ? void 0 : z.popoverConfig) == null ? void 0 : A.triggerDelay
700
- ) : (q(!0), o.hooks.emit("hover", { event: p, tag: o }));
699
+ (A = (M = t.currentConfig) == null ? void 0 : M.popoverConfig) == null ? void 0 : A.triggerDelay
700
+ ) : (q(!0), t.hooks.emit("hover", { event: p, tag: t }));
701
701
  }
702
- }, se = (p) => {
703
- var c, k;
704
- J = !1, o.isHoverEnabled() && o.isPopoverConfigEnabled() && ((k = (c = o.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : k.trigger) === "hover" && (y !== void 0 && (clearTimeout(y), y = void 0), q(!1));
705
- }, de = (p) => {
706
- var k, E;
707
- const c = o.contentType === "Audio" && o.data.appearance === "plane";
708
- o.isPopoverConfigEnabled() && o.isHoverEnabled() && ((E = (k = o.currentConfig) == null ? void 0 : k.popoverConfig) == null ? void 0 : E.trigger) === "click" && (c ? T || (i(11, T = !0), o.hooks.emit("hover", { event: p, tag: o })) : (i(11, T = !T), T && o.hooks.emit("hover", { event: p, tag: o })));
702
+ }, ce = (p) => {
703
+ var c, h;
704
+ J = !1, t.isHoverEnabled() && t.isPopoverConfigEnabled() && ((h = (c = t.currentConfig) == null ? void 0 : c.popoverConfig) == null ? void 0 : h.trigger) === "hover" && (y !== void 0 && (clearTimeout(y), y = void 0), q(!1));
705
+ }, _e = (p) => {
706
+ var h, E;
707
+ const c = t.contentType === "Audio" && t.data.appearance === "plane";
708
+ t.isPopoverConfigEnabled() && t.isHoverEnabled() && ((E = (h = t.currentConfig) == null ? void 0 : h.popoverConfig) == null ? void 0 : E.trigger) === "click" && (c ? T || (i(8, T = !0), t.hooks.emit("hover", { event: p, tag: t })) : (i(8, T = !T), T && t.hooks.emit("hover", { event: p, tag: t })));
709
709
  };
710
- function ge() {
711
- O = !1, i(11, T = !1);
710
+ function be() {
711
+ O = !1, i(8, T = !1);
712
712
  }
713
- ye(() => () => {
714
- y && clearTimeout(y), P && clearTimeout(P);
715
- });
716
- function ce(p) {
717
- B = p, i(12, B);
713
+ const re = () => {
714
+ Q = !0, setTimeout(
715
+ () => {
716
+ Q = !1;
717
+ },
718
+ 500
719
+ );
720
+ };
721
+ Se(() => (document.addEventListener("touchstart", re, { passive: !0 }), () => {
722
+ y && clearTimeout(y), P && clearTimeout(P), document.removeEventListener("touchstart", re);
723
+ }));
724
+ function ve(p) {
725
+ B = p, i(13, B);
718
726
  }
719
- function _e(p) {
720
- W[p ? "unshift" : "push"](() => {
721
- K = p, i(13, K);
727
+ function Ce(p) {
728
+ X[p ? "unshift" : "push"](() => {
729
+ K = p, i(14, K);
722
730
  });
723
731
  }
724
- function be(p) {
725
- W[p ? "unshift" : "push"](() => {
726
- o.dom = p, i(0, o);
732
+ function he(p) {
733
+ X[p ? "unshift" : "push"](() => {
734
+ t.dom = p, i(0, t);
727
735
  });
728
736
  }
729
- return t.$$set = (p) => {
730
- "tag" in p && i(0, o = p.tag), "mediaStore" in p && i(1, C = p.mediaStore), "rendererMap" in p && i(2, S = p.rendererMap), "contentTypeMap" in p && i(3, f = p.contentTypeMap), "state" in p && i(4, s = p.state), "temporaryState" in p && i(5, w = p.temporaryState), "wrapperElement" in p && i(6, D = p.wrapperElement), "popoverContainer" in p && i(7, ee = p.popoverContainer);
731
- }, t.$$.update = () => {
732
- var p, c, k, E;
733
- t.$$.dirty[0] & /*tag, rendererMap*/
734
- 5 && i(10, a = (() => {
735
- var M, z, A;
736
- return ((z = (M = o.style) == null ? void 0 : M.point) == null ? void 0 : z.enabled) === !1 || ((A = S.get(o.contentType)) == null ? void 0 : A.usePoint) === !1 || o.contentType === "Sticker" || o.contentType === "Link" || o.contentType === "VRLink" || o.contentType === "PanoLink" ? !1 : o.contentType === "Panorama" ? !0 : o.contentType === "Audio" && o.data.appearance === "plane" ? o.isPopoverConfigEnabled() : !0;
737
- })()), t.$$.dirty[0] & /*tag, havePoint*/
738
- 1025 && i(25, m = (() => !(o.isPopoverConfigEnabled() && o.contentType === "Panorama" || o.isPopoverConfigEnabled() && o.contentType === "ImageText" || o.isPopoverConfigEnabled() && o.contentType === "Text" || o.isPopoverConfigEnabled() && o.contentType === "Audio" || o.stickType !== "2DPoint" || o.entryFromModel && He(o.five.state.mode) && a))()), t.$$.dirty[0] & /*tag*/
739
- 1 && i(24, r = (() => {
737
+ return o.$$set = (p) => {
738
+ "tag" in p && i(0, t = p.tag), "mediaStore" in p && i(1, C = p.mediaStore), "rendererMap" in p && i(2, S = p.rendererMap), "contentTypeMap" in p && i(3, f = p.contentTypeMap), "state" in p && i(4, s = p.state), "temporaryState" in p && i(5, w = p.temporaryState), "wrapperElement" in p && i(6, D = p.wrapperElement), "popoverContainer" in p && i(7, oe = p.popoverContainer);
739
+ }, o.$$.update = () => {
740
+ var p, c, h, E, U;
741
+ o.$$.dirty[0] & /*tag, rendererMap*/
742
+ 5 && i(12, a = (() => {
743
+ var M, A, ne;
744
+ return ((A = (M = t.style) == null ? void 0 : M.point) == null ? void 0 : A.enabled) === !1 || ((ne = S.get(t.contentType)) == null ? void 0 : ne.usePoint) === !1 || t.contentType === "Sticker" || t.contentType === "Link" || t.contentType === "VRLink" || t.contentType === "PanoLink" ? !1 : t.contentType === "Panorama" ? !0 : t.contentType === "Audio" && t.data.appearance === "plane" ? t.isPopoverConfigEnabled() : !0;
745
+ })()), o.$$.dirty[0] & /*tag, havePoint*/
746
+ 4097 && i(25, m = (() => !(t.isPopoverConfigEnabled() && t.contentType === "Panorama" || t.isPopoverConfigEnabled() && t.contentType === "ImageText" || t.isPopoverConfigEnabled() && t.contentType === "Text" || t.isPopoverConfigEnabled() && t.contentType === "Audio" || t.stickType !== "2DPoint" || t.entryFromModel && ze(t.five.state.mode) && a))()), o.$$.dirty[0] & /*tag*/
747
+ 1 && i(9, r = (() => {
740
748
  var M;
741
- return o.contentType === "Marketing" ? !!(o.data.title || o.data.name || o.data.description || o.data.tooltip || (M = o.data.price) != null && M.value || o.data.brandTags && o.data.brandTags.length > 0 || o.data.tags && o.data.tags.length > 0 || o.data.imageUrl || o.data.mediaUrl || o.data.mediaData && o.data.mediaData.length > 0) : !!(o.data.title || o.data.name || o.data.text || o.data.description || o.data.tooltip || o.data.imageUrl || o.data.mediaUrl || o.data.audioUrl || o.data.mediaData && o.data.mediaData.length > 0);
742
- })()), t.$$.dirty[0] & /*tag*/
743
- 1 && i(23, n = o.id), t.$$.dirty[0] & /*tag*/
744
- 1 && i(9, u = o.screenPosition), t.$$.dirty[0] & /*tag*/
745
- 1 && i(22, l = o.enabled === !1 || !o.state), t.$$.dirty[0] & /*tag, screenPosition*/
746
- 513 && i(21, g = !((p = o.state) != null && p.visible) || ((c = o.temporaryState) == null ? void 0 : c.visible) === !1 || !u), t.$$.dirty[0] & /*tag*/
747
- 1 && i(8, d = ((k = o.state) == null ? void 0 : k.unfolded) && !o.isPopoverConfigEnabled()), t.$$.dirty[0] & /*screenPosition*/
748
- 512 && i(20, U = (u == null ? void 0 : u.leftPx) + "px"), t.$$.dirty[0] & /*screenPosition*/
749
- 512 && i(19, v = (u == null ? void 0 : u.topPx) + "px"), t.$$.dirty[0] & /*unfolded, tag*/
750
- 257 && i(18, L = d ? ((E = o.zIndex) != null ? E : 0) + (d ? 1e6 : 0) : void 0);
749
+ return t.contentType === "Marketing" ? !!(t.data.title || t.data.name || t.data.description || t.data.tooltip || (M = t.data.price) != null && M.value || t.data.brandTags && t.data.brandTags.length > 0 || t.data.tags && t.data.tags.length > 0 || t.data.imageUrl || t.data.mediaUrl || t.data.mediaData && t.data.mediaData.length > 0) : !!(t.data.title || t.data.name || t.data.text || t.data.description || t.data.tooltip || t.data.imageUrl || t.data.mediaUrl || t.data.audioUrl || t.data.mediaData && t.data.mediaData.length > 0);
750
+ })()), o.$$.dirty[0] & /*tag*/
751
+ 1 && i(24, n = t.id), o.$$.dirty[0] & /*tag*/
752
+ 1 && i(11, u = t.screenPosition), o.$$.dirty[0] & /*tag*/
753
+ 1 && i(23, l = t.enabled === !1 || !t.state), o.$$.dirty[0] & /*tag, screenPosition*/
754
+ 2049 && i(22, g = !((p = t.state) != null && p.visible) || ((c = t.temporaryState) == null ? void 0 : c.visible) === !1 || !u), o.$$.dirty[0] & /*tag*/
755
+ 1 && i(10, d = ((h = t.state) == null ? void 0 : h.unfolded) && !t.isPopoverConfigEnabled()), o.$$.dirty[0] & /*screenPosition*/
756
+ 2048 && i(21, L = (u == null ? void 0 : u.leftPx) + "px"), o.$$.dirty[0] & /*screenPosition*/
757
+ 2048 && i(20, v = (u == null ? void 0 : u.topPx) + "px"), o.$$.dirty[0] & /*unfolded, tag*/
758
+ 1025 && i(19, z = d ? ((E = t.zIndex) != null ? E : 0) + (d ? 1e6 : 0) : void 0), o.$$.dirty[0] & /*tag*/
759
+ 1 && console.log("zff ~ tag.isPopoverConfigEnabled():", t.isPopoverConfigEnabled()), o.$$.dirty[0] & /*hasPopoverContent*/
760
+ 512 && console.log("zff ~ hasPopoverContent:", r), o.$$.dirty[0] & /*isHovering*/
761
+ 256 && console.log("zff ~ isHovering:", T), o.$$.dirty[0] & /*tag*/
762
+ 1 && console.log("zff ~ tag.config.popoverConfig?.debug:", (U = t.config.popoverConfig) == null ? void 0 : U.debug);
751
763
  }, [
752
- o,
764
+ t,
753
765
  C,
754
766
  S,
755
767
  f,
756
768
  s,
757
769
  w,
758
770
  D,
759
- ee,
771
+ oe,
772
+ T,
773
+ r,
760
774
  d,
761
775
  u,
762
776
  a,
763
- T,
764
777
  B,
765
778
  K,
766
- Q,
779
+ W,
767
780
  N,
768
781
  te,
769
- oe,
770
- L,
782
+ ie,
783
+ z,
771
784
  v,
772
- U,
785
+ L,
773
786
  g,
774
787
  l,
775
788
  n,
776
- r,
777
789
  m,
778
- pe,
779
- me,
780
- le,
781
790
  fe,
782
791
  ue,
783
792
  se,
@@ -785,17 +794,20 @@ function Ne(t, e, i) {
785
794
  ge,
786
795
  ce,
787
796
  _e,
788
- be
797
+ be,
798
+ ve,
799
+ Ce,
800
+ he
789
801
  ];
790
802
  }
791
- class dr extends ve {
803
+ class _r extends ke {
792
804
  constructor(e) {
793
- super(), Ce(
805
+ super(), Te(
794
806
  this,
795
807
  e,
796
- Ne,
797
- Ze,
798
- ke,
808
+ Fe,
809
+ qe,
810
+ Pe,
799
811
  {
800
812
  tag: 0,
801
813
  mediaStore: 1,
@@ -806,11 +818,11 @@ class dr extends ve {
806
818
  wrapperElement: 6,
807
819
  popoverContainer: 7
808
820
  },
809
- Ue,
821
+ Ae,
810
822
  [-1, -1]
811
823
  );
812
824
  }
813
825
  }
814
826
  export {
815
- dr as default
827
+ _r as default
816
828
  };