@ahoo-wang/wow-view-engine 9.6.2 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $ as e, $i as t, $o as n, A as r, An as i, Bo as a, Br as o, C as s, Ca as c, Cs as l, Ct as u, D as d, Da as f, Dn as p, Dt as m, E as h, Ea as g, Et as ee, F as te, Fa as ne, Fi as _, Fr as re, Ft as ie, Gt as ae, H as oe, Hs as se, Ht as v, I as ce, Is as le, J as ue, Jt as de, K as fe, Kt as y, L as pe, La as me, Lr as he, M as ge, Mn as _e, Mt as ve, N as ye, Na as be, Ni as xe, Ns as Se, O as Ce, On as we, P as Te, Pa as Ee, Pi as De, Pr as Oe, Pt as b, Q as ke, Qi as x, Qr as Ae, Qt as je, R as Me, S as Ne, Sa as S, Ss as Pe, T as Fe, U as Ie, Ua as C, Un as w, Uo as Le, Ur as Re, V as ze, Vn as Be, Vr as Ve, Vs as He, Vt as Ue, W as T, Wa as We, Wo as Ge, Wt as Ke, Yt as qe, Z as Je, Za as Ye, Zt as Xe, _s as E, an as Ze, ao as Qe, ar as $e, as as et, b as tt, ca as nt, ci as rt, cr as it, cs as at, do as ot, dt as st, en as D, eo as ct, er as lt, es as ut, et as dt, fa as ft, fo as pt, ft as mt, ho as ht, in as gt, io as _t, j as vt, ja as yt, js as bt, jt as xt, ka as St, ki as O, ks as Ct, la as wt, ls as Tt, mo as Et, mt as Dt, ni as Ot, nn as k, no as kt, ns as At, nt as jt, on as Mt, or as Nt, ot as Pt, pi as Ft, po as A, pt as It, q as Lt, qi as j, qr as Rt, ri as zt, ro as M, rs as Bt, si as Vt, so as Ht, st as Ut, ti as Wt, tn as N, to as Gt, tr as Kt, tt as qt, ua as P, ui as Jt, ut as Yt, v as Xt, va as F, vs as I, vt as Zt, w as Qt, wt as $t, xa as L, y as en, ya as tn, ys as R, yt as nn, zr as rn, zs as an } from "./actions-HgK33Jzg.js";
1
+ import { $ as e, $i as t, $o as n, A as r, An as i, Bo as a, Br as o, C as s, Ca as c, Cs as l, Ct as u, D as d, Da as f, Dn as p, Dt as m, E as h, Ea as g, Et as ee, F as te, Fa as ne, Fi as _, Fr as re, Ft as ie, Gt as ae, H as oe, Hs as se, Ht as v, I as ce, Is as le, J as ue, Jt as de, K as fe, Kt as y, L as pe, La as me, Lr as he, M as ge, Mn as _e, Mt as ve, N as ye, Na as be, Ni as xe, Ns as Se, O as Ce, On as we, P as Te, Pa as Ee, Pi as De, Pr as Oe, Pt as b, Q as ke, Qi as x, Qr as Ae, Qt as je, R as Me, S as Ne, Sa as S, Ss as Pe, T as Fe, U as Ie, Ua as C, Un as w, Uo as Le, Ur as Re, V as ze, Vn as Be, Vr as Ve, Vs as He, Vt as Ue, W as T, Wa as We, Wo as Ge, Wt as Ke, Yt as qe, Z as Je, Za as Ye, Zt as Xe, _s as E, an as Ze, ao as Qe, ar as $e, as as et, b as tt, ca as nt, ci as rt, cr as it, cs as at, do as ot, dt as st, en as D, eo as ct, er as lt, es as ut, et as dt, fa as ft, fo as pt, ft as mt, ho as ht, in as gt, io as _t, j as vt, ja as yt, js as bt, jt as xt, ka as St, ki as O, ks as Ct, la as wt, ls as Tt, mo as Et, mt as Dt, ni as Ot, nn as k, no as kt, ns as At, nt as jt, on as Mt, or as Nt, ot as Pt, pi as Ft, po as A, pt as It, q as Lt, qi as j, qr as Rt, ri as zt, ro as M, rs as Bt, si as Vt, so as Ht, st as Ut, ti as Wt, tn as N, to as Gt, tr as Kt, tt as qt, ua as P, ui as Jt, ut as Yt, v as Xt, va as F, vs as I, vt as Zt, w as Qt, wt as $t, xa as L, y as en, ya as tn, ys as R, yt as nn, zr as rn, zs as an } from "./actions-DDwX_NYM.js";
2
2
  import { AggregationGroupType as on, QueryErrorCodes as z } from "@ahoo-wang/wow-client";
3
3
  import { dequal as B } from "dequal";
4
4
  //#region src/model/config.ts
@@ -1023,9 +1023,7 @@ function ei(e, t = () => !1) {
1023
1023
  w: 1,
1024
1024
  h: t
1025
1025
  })), i += t, e += 1;
1026
- continue;
1027
- }
1028
- r.push(ni(a, {
1026
+ } else r.push(ni(a, {
1029
1027
  id: a.id,
1030
1028
  x: 0,
1031
1029
  y: i,
@@ -2116,16 +2114,11 @@ function Ga(e) {
2116
2114
  t.delete(e);
2117
2115
  }),
2118
2116
  emit: (...n) => {
2119
- for (let r of [...t]) {
2120
- if (!e) {
2121
- r(...n);
2122
- continue;
2123
- }
2124
- try {
2125
- r(...n);
2126
- } catch (t) {
2127
- e(t);
2128
- }
2117
+ for (let r of [...t]) if (!e) r(...n);
2118
+ else try {
2119
+ r(...n);
2120
+ } catch (t) {
2121
+ e(t);
2129
2122
  }
2130
2123
  },
2131
2124
  clear: () => {
@@ -2173,9 +2166,9 @@ var Qa = class {
2173
2166
  this.environment = e, this.fire = t, this.delay = null, this.due = null;
2174
2167
  }
2175
2168
  sync(e) {
2176
- return e === null ? (this.stop(), null) : this.handle !== void 0 && this.delay === e ? this.due : (this.stop(), this.delay = e, this.due = this.environment.now().getTime() + e, this.handle = this.environment.setTimeout(() => {
2169
+ return e === null ? (this.stop(), null) : (this.handle !== void 0 && this.delay === e || (this.stop(), this.delay = e, this.due = this.environment.now().getTime() + e, this.handle = this.environment.setTimeout(() => {
2177
2170
  this.handle = void 0, this.delay = null, this.fire();
2178
- }, e), this.due);
2171
+ }, e)), this.due);
2179
2172
  }
2180
2173
  stop() {
2181
2174
  this.due = null, this.handle !== void 0 && (this.environment.clearTimeout(this.handle), this.handle = void 0, this.delay = null);
@@ -2189,11 +2182,7 @@ var Qa = class {
2189
2182
  this.due = e;
2190
2183
  let t = Math.min(Math.max(0, e - this.environment.now().getTime()), _t);
2191
2184
  this.handle = this.environment.setTimeout(() => {
2192
- if (this.handle = void 0, this.environment.now().getTime() < e) {
2193
- this.due = null, this.syncAt(e);
2194
- return;
2195
- }
2196
- this.due = null, this.spent = e, this.fire();
2185
+ this.handle = void 0, this.environment.now().getTime() < e ? (this.due = null, this.syncAt(e)) : (this.due = null, this.spent = e, this.fire());
2197
2186
  }, t);
2198
2187
  }
2199
2188
  stop() {
@@ -2252,7 +2241,7 @@ var no = 1e3, ro = class {
2252
2241
  return t === null || !B(e, t.config);
2253
2242
  }
2254
2243
  refuse(e) {
2255
- return Ya(this.refusal, e) ? this.refusal : (this.refusal = e, this.notify(), this.refusal);
2244
+ return Ya(this.refusal, e) || (this.refusal = e, this.notify()), this.refusal;
2256
2245
  }
2257
2246
  revert() {
2258
2247
  let e = this.current.saved;
@@ -3070,14 +3059,10 @@ var Yo = class {
3070
3059
  if ($o(r.draft) && $o(r.applied)) return;
3071
3060
  this.undone = [];
3072
3061
  let i = this.done[this.done.length - 1];
3073
- if (i && Ko.has(e.command) && i.step.command === e.command && i.step.subject === e.subject) {
3074
- i.draft = Qo(i.draft, r.draft), i.applied = Qo(i.applied, r.applied), $o(i.draft) && $o(i.applied) && this.done.pop();
3075
- return;
3076
- }
3077
- this.done.push({
3062
+ i && Ko.has(e.command) && i.step.command === e.command && i.step.subject === e.subject ? (i.draft = Qo(i.draft, r.draft), i.applied = Qo(i.applied, r.applied), $o(i.draft) && $o(i.applied) && this.done.pop()) : (this.done.push({
3078
3063
  step: e,
3079
3064
  ...r
3080
- }), this.done.length > 100 && this.done.shift();
3065
+ }), this.done.length > 100 && this.done.shift());
3081
3066
  }
3082
3067
  undo() {
3083
3068
  let e = this.done.pop();
@@ -3802,13 +3787,7 @@ var hs = class extends as {
3802
3787
  return (n) => e.some((e) => e.id === n && e.tab === t);
3803
3788
  }
3804
3789
  showTab(e) {
3805
- if (!this.disposed) {
3806
- if (this.requestedTab = e, !this.synced) {
3807
- this.store.setState({ tab: pe(this.state.applied, e) });
3808
- return;
3809
- }
3810
- this.sync();
3811
- }
3790
+ this.disposed || (this.requestedTab = e, this.synced ? this.sync() : this.store.setState({ tab: pe(this.state.applied, e) }));
3812
3791
  }
3813
3792
  commit(e, t, n) {
3814
3793
  let r = this.canonical(e), i = this.canonical(t);
@@ -4732,14 +4711,10 @@ var dc = { status: "idle" }, fc = class {
4732
4711
  if (this.disposed || $(this.state.issues)) return;
4733
4712
  this.appliedAdmitted = !0, this.autoTimer.stop();
4734
4713
  let e = this.restyle(this.state.draft);
4735
- if (e) {
4736
- this.store.setState({ applied: this.state.draft }), e();
4737
- return;
4738
- }
4739
- this.store.setState({
4714
+ e ? (this.store.setState({ applied: this.state.draft }), e()) : (this.store.setState({
4740
4715
  applied: this.state.draft,
4741
4716
  ...this.startOver()
4742
- }), this.execute({ keepSelection: !1 });
4717
+ }), this.execute({ keepSelection: !1 }));
4743
4718
  }
4744
4719
  restyle(e) {
4745
4720
  return null;
@@ -4751,11 +4726,7 @@ var dc = { status: "idle" }, fc = class {
4751
4726
  this.disposed || this.state.autoApply === e || (this.store.setState({ autoApply: e }), this.syncAutoApply());
4752
4727
  }
4753
4728
  syncAutoApply() {
4754
- if (this.disposed || !Ao(this.state)) {
4755
- this.autoTimer.stop();
4756
- return;
4757
- }
4758
- this.autoTimer.stop(), this.autoTimer.sync(300);
4729
+ this.disposed || !Ao(this.state) ? this.autoTimer.stop() : (this.autoTimer.stop(), this.autoTimer.sync(300));
4759
4730
  }
4760
4731
  refresh() {
4761
4732
  !this.disposed && this.appliedAdmitted && (this.capabilities?.revalidate(), this.candidates.reset(), this.execute({ keepSelection: !0 }));
@@ -4770,10 +4741,10 @@ var dc = { status: "idle" }, fc = class {
4770
4741
  if (this.disposed) return this.refusedScope;
4771
4742
  if (B(e ?? null, this.injectedScope)) return this.store.refuse(Ka);
4772
4743
  let t = this.admit(this.state.applied, null), n = this.admit(this.state.applied, e);
4773
- return this.store.refuse(Ja(t, n)).length > 0 ? this.refusedScope : (this.injectedScope = e ?? null, this.candidates.reset(), this.appliedAdmitted = !$(n), this.store.setState({
4744
+ return this.store.refuse(Ja(t, n)).length > 0 || (this.injectedScope = e ?? null, this.candidates.reset(), this.appliedAdmitted = !$(n), this.store.setState({
4774
4745
  issues: this.admit(this.state.draft),
4775
4746
  ...this.startOver()
4776
- }), this.appliedAdmitted && this.execute({ keepSelection: !1 }), this.refusedScope);
4747
+ }), this.appliedAdmitted && this.execute({ keepSelection: !1 })), this.refusedScope;
4777
4748
  }
4778
4749
  issuesAt() {
4779
4750
  return this.state.issues;
@@ -4893,25 +4864,13 @@ var dc = { status: "idle" }, fc = class {
4893
4864
  });
4894
4865
  }
4895
4866
  onFailure(e, t, n, r) {
4896
- if (!ha(r) && this.isCurrent(e)) {
4897
- if (r instanceof ma) {
4898
- this.failed(e, t, n, r);
4899
- return;
4900
- }
4901
- dt(r).then((i) => {
4902
- if (this.capabilities && za({
4903
- reason: i.reason,
4904
- ...i.violation ? { code: i.violation.code } : {},
4905
- ...i.status === void 0 ? {} : { status: i.status }
4906
- }) && this.capabilities.recheck(i.violation?.code), this.isCurrent(e)) {
4907
- if (this.recovers(i)) {
4908
- this.execute({ keepSelection: !1 });
4909
- return;
4910
- }
4911
- this.failed(e, t, n, r);
4912
- }
4913
- });
4914
- }
4867
+ !ha(r) && this.isCurrent(e) && (r instanceof ma ? this.failed(e, t, n, r) : dt(r).then((i) => {
4868
+ this.capabilities && za({
4869
+ reason: i.reason,
4870
+ ...i.violation ? { code: i.violation.code } : {},
4871
+ ...i.status === void 0 ? {} : { status: i.status }
4872
+ }) && this.capabilities.recheck(i.violation?.code), this.isCurrent(e) && (this.recovers(i) ? this.execute({ keepSelection: !1 }) : this.failed(e, t, n, r));
4873
+ }));
4915
4874
  }
4916
4875
  failed(e, t, n, r) {
4917
4876
  this.context.queryFailed("query", r);
@@ -4950,11 +4909,7 @@ var dc = { status: "idle" }, fc = class {
4950
4909
  return t && this.runtimes.has(t) ? [t, ...n] : n;
4951
4910
  }
4952
4911
  close(e) {
4953
- if (mc(e) && this.runtimes.has(e)) {
4954
- this.forget(e);
4955
- return;
4956
- }
4957
- e.dispose();
4912
+ mc(e) && this.runtimes.has(e) ? this.forget(e) : e.dispose();
4958
4913
  }
4959
4914
  forget(e) {
4960
4915
  e.dispose(), this.runtimes.delete(e);
@@ -6069,4 +6024,4 @@ function ul(e) {
6069
6024
  //#endregion
6070
6025
  export { Ci as $, Rn as $t, aa as A, ir as At, Bi as B, rr as Bt, Qi as C, Dr as Ct, $i as D, Er as Dt, la as E, Tr as Et, Ki as F, sr as Ft, vi as G, Yn as Gt, gi as H, Bn as Ht, Ui as I, pr as It, Si as J, Gn as Jt, wi as K, Un as Kt, Vi as L, vr as Lt, oa as M, cr as Mt, ra as N, or as Nt, ea as O, Cr as Ot, ca as P, lr as Pt, Di as Q, Jn as Qt, Hi as R, mr as Rt, fa as S, kr as St, ta as T, wr as Tt, Ei as U, H as Ut, Gi as V, Hn as Vt, hi as W, Zn as Wt, bi as X, Qn as Xt, _i as Y, U as Yt, xi as Z, qn as Zt, ko as _, sn as _n, Vr as _t, Fc as a, Mn as an, qr as at, ka as b, Lr as bt, bc as c, Fn as cn, K as ct, qs as d, Cn as dn, ri as dt, zn as en, $r as et, Hs as f, Sn as fn, ii as ft, Ao as g, mn as gn, Br as gt, jo as h, yn as hn, Ur as ht, Gc as i, In as in, W as it, ia as j, ar as jt, na as k, yr as kt, Qs as l, V as ln, Jr as lt, Bs as m, bn as mn, Qr as mt, ll as n, kn as nn, Wr as nt, yc as o, Pn as on, ti as ot, Ls as p, vn as pn, ei as pt, Ti as q, Wn as qt, cl as r, Ln as rn, Gr as rt, xc as s, Nn as sn, G as st, ul as t, On as tn, Kr as tt, Js as u, wn as un, q as ut, eo as v, fn as vn, Hr as vt, sa as w, Ar as wt, da as x, zr as xt, Ga as y, un as yn, Rr as yt, Wi as z, $n as zt };
6071
6026
 
6072
- //# sourceMappingURL=viewRuntimeTypes-JEPw0nsg.js.map
6027
+ //# sourceMappingURL=viewRuntimeTypes-DSFYiS5g.js.map