narrat 2.2.18 → 2.2.19

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.
package/dist/narrat.es.js CHANGED
@@ -41978,21 +41978,25 @@ const gX = /* @__PURE__ */ pi(hX, [["render", mX]]), yX = "data:image/svg+xml;ba
41978
41978
  })), i = It(() => ({
41979
41979
  invisible: n.value !== "appear"
41980
41980
  })), o = Xt(), a = It(() => {
41981
- var c, d;
41982
- return (d = (c = ht().splashScreens) == null ? void 0 : c.engineSplashScreen) != null ? d : {};
41981
+ var d, h;
41982
+ return (h = (d = ht().splashScreens) == null ? void 0 : d.engineSplashScreen) != null ? h : {};
41983
41983
  }), s = It(() => typeof a.value.overrideText == "string" ? a.value.overrideText : "Made with narrat engine"), u = It(() => {
41984
- var c;
41985
- return (c = a.value.overrideLogo) != null ? c : yX;
41984
+ var d;
41985
+ return (d = a.value.overrideLogo) != null ? d : yX;
41986
41986
  }), l = It(() => typeof a.value.fadeDuration == "number" ? a.value.fadeDuration : 2), f = It(() => typeof a.value.timeBeforeFadeout == "number" ? a.value.timeBeforeFadeout : 3);
41987
- return lc(async () => {
41988
- if (a.value.skip || o.options.debug) {
41989
- e("finished");
41987
+ lc(async () => {
41988
+ if (await fo(10), n.value = "appear", a.value.skip || o.options.debug) {
41989
+ c();
41990
41990
  return;
41991
41991
  }
41992
- await fo(10), n.value = "appear", await fo(l.value * 1e3), await fo(f.value * 1e3), n.value = "disappear", await fo(l.value * 1e3), o.loading.loaded ? e("finished") : o.listener.once("gameLoaded", () => {
41992
+ await fo(l.value * 1e3), await fo(f.value * 1e3), n.value = "disappear", await fo(l.value * 1e3), c();
41993
+ });
41994
+ function c() {
41995
+ o.loading.loaded ? e("finished") : o.listener.once("gameLoaded", () => {
41993
41996
  e("finished");
41994
41997
  });
41995
- }), (c, d) => (qe(), ct("div", bX, [
41998
+ }
41999
+ return (d, h) => (qe(), ct("div", bX, [
41996
42000
  Ee("div", {
41997
42001
  id: "engine-splash-header",
41998
42002
  class: ho(["flex justify-center flex-col items-center", wn(i)]),