@novely/solid-renderer 0.47.0-experemental.0 → 0.48.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.
package/dist/index.jsx CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.9.4/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0,
@@ -846,10 +846,10 @@ function mergeProps(...sources) {
846
846
  return false;
847
847
  },
848
848
  keys() {
849
- const keys2 = [];
849
+ const keys = [];
850
850
  for (let i = 0; i < sources.length; i++)
851
- keys2.push(...Object.keys(resolveSource(sources[i])));
852
- return [...new Set(keys2)];
851
+ keys.push(...Object.keys(resolveSource(sources[i])));
852
+ return [...new Set(keys)];
853
853
  }
854
854
  },
855
855
  propTraps
@@ -889,10 +889,10 @@ function mergeProps(...sources) {
889
889
  }
890
890
  return target;
891
891
  }
892
- function splitProps(props, ...keys2) {
892
+ function splitProps(props, ...keys) {
893
893
  if (SUPPORTS_PROXY && $PROXY in props) {
894
- const blocked = new Set(keys2.length > 1 ? keys2.flat() : keys2[0]);
895
- const res = keys2.map((k) => {
894
+ const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
895
+ const res = keys.map((k) => {
896
896
  return new Proxy(
897
897
  {
898
898
  get(property) {
@@ -927,13 +927,13 @@ function splitProps(props, ...keys2) {
927
927
  return res;
928
928
  }
929
929
  const otherObject = {};
930
- const objects = keys2.map(() => ({}));
930
+ const objects = keys.map(() => ({}));
931
931
  for (const propName of Object.getOwnPropertyNames(props)) {
932
932
  const desc = Object.getOwnPropertyDescriptor(props, propName);
933
933
  const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
934
934
  let blocked = false;
935
935
  let objectIndex = 0;
936
- for (const k of keys2) {
936
+ for (const k of keys) {
937
937
  if (k.includes(propName)) {
938
938
  blocked = true;
939
939
  isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
@@ -1034,7 +1034,7 @@ function Match(props) {
1034
1034
  return props;
1035
1035
  }
1036
1036
 
1037
- // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/web/dist/web.js
1037
+ // ../../node_modules/.pnpm/solid-js@1.9.4/node_modules/solid-js/web/dist/web.js
1038
1038
  var booleans = [
1039
1039
  "allowfullscreen",
1040
1040
  "async",
@@ -1911,7 +1911,7 @@ var Queue = class {
1911
1911
  }
1912
1912
  };
1913
1913
 
1914
- // ../../node_modules/.pnpm/p-limit@6.1.0/node_modules/p-limit/index.js
1914
+ // ../../node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.js
1915
1915
  function pLimit(concurrency) {
1916
1916
  validateConcurrency(concurrency);
1917
1917
  const queue = new Queue();
@@ -1984,7 +1984,7 @@ function validateConcurrency(concurrency) {
1984
1984
  }
1985
1985
  }
1986
1986
 
1987
- // ../../node_modules/.pnpm/simple-web-audio@0.8.0_postcss@8.4.49/node_modules/simple-web-audio/dist/index.mjs
1987
+ // ../../node_modules/.pnpm/simple-web-audio@0.8.0_postcss@8.5.1/node_modules/simple-web-audio/dist/index.mjs
1988
1988
  var waitForInteraction = (() => {
1989
1989
  const { promise, resolve } = Promise.withResolvers();
1990
1990
  const onUserInteraction = () => {
@@ -2538,11 +2538,11 @@ var createAudio2 = (storageData) => {
2538
2538
  };
2539
2539
  const clear = (keepAudio) => {
2540
2540
  context.voiceStop();
2541
- const entries2 = [
2541
+ const entries = [
2542
2542
  [store.music, keepAudio.music],
2543
2543
  [store.sound, keepAudio.sounds]
2544
2544
  ];
2545
- const clearEntries = entries2.flatMap(([incoming, keep]) => {
2545
+ const clearEntries = entries.flatMap(([incoming, keep]) => {
2546
2546
  return Object.entries(incoming).filter(([name]) => !keep.has(name)).map(([_, a]) => a);
2547
2547
  });
2548
2548
  for (const music of clearEntries) {
@@ -2967,9 +2967,9 @@ var canvasDrawImages = async (canvas = createCanvas(), ctx = getContext(canvas),
2967
2967
  }
2968
2968
  return [canvas, ctx];
2969
2969
  };
2970
- var onKey = (cb, ...keys2) => {
2970
+ var onKey = (cb, ...keys) => {
2971
2971
  return (e) => {
2972
- if (keys2.some((key) => key === e.key)) {
2972
+ if (keys.some((key) => key === e.key)) {
2973
2973
  cb(e);
2974
2974
  }
2975
2975
  };
@@ -3084,7 +3084,7 @@ var useData = () => {
3084
3084
  };
3085
3085
 
3086
3086
  // src/screens/custom-screen.tsx
3087
- var _tmpl$ = /* @__PURE__ */ template(`<div class="custom">`);
3087
+ var _tmpl$ = /* @__PURE__ */ template(`<div class=custom>`);
3088
3088
  var CustomScreen = (props) => {
3089
3089
  const {
3090
3090
  $rendererState
@@ -3116,7 +3116,7 @@ var CustomScreen = (props) => {
3116
3116
  return dom();
3117
3117
  },
3118
3118
  get children() {
3119
- const _el$ = _tmpl$();
3119
+ var _el$ = _tmpl$();
3120
3120
  _el$.$$click = onClick;
3121
3121
  insert(_el$, dom);
3122
3122
  return _el$;
@@ -3138,11 +3138,11 @@ var Character = (props) => {
3138
3138
  };
3139
3139
 
3140
3140
  // src/components/Icon.tsx
3141
- var _tmpl$2 = /* @__PURE__ */ template(`<svg data-icon fill="currentColor" width="24" height="24" viewBox="0 0 256 256"><use>`);
3141
+ var _tmpl$2 = /* @__PURE__ */ template(`<svg data-icon fill=currentColor width=24 height=24 viewBox="0 0 256 256"><use>`);
3142
3142
  var Icon = (props) => {
3143
3143
  const [it, rest] = splitProps(props, ["icon"]);
3144
3144
  return (() => {
3145
- const _el$ = _tmpl$2(), _el$2 = _el$.firstChild;
3145
+ var _el$ = _tmpl$2(), _el$2 = _el$.firstChild;
3146
3146
  spread(_el$, rest, true, true);
3147
3147
  createRenderEffect(() => setAttribute(_el$2, "href", it.icon));
3148
3148
  return _el$;
@@ -3150,14 +3150,14 @@ var Icon = (props) => {
3150
3150
  };
3151
3151
 
3152
3152
  // src/components/ControlPanelButtons.tsx
3153
- var _tmpl$3 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content">`);
3154
- var _tmpl$22 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button" data-dialog-overview-button><span class="control-panel__button__content">`);
3155
- var _tmpl$32 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button control-panel__button--auto-mode"><span class="control-panel__button__content">`);
3156
- var _tmpl$4 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button">`);
3153
+ var _tmpl$3 = /* @__PURE__ */ template(`<button role=menuitem type=button class="button control-panel__button"><span class=control-panel__button__content>`);
3154
+ var _tmpl$22 = /* @__PURE__ */ template(`<button role=menuitem type=button class="button control-panel__button"data-dialog-overview-button><span class=control-panel__button__content>`);
3155
+ var _tmpl$32 = /* @__PURE__ */ template(`<button role=menuitem type=button class="button control-panel__button control-panel__button--auto-mode"><span class=control-panel__button__content>`);
3156
+ var _tmpl$4 = /* @__PURE__ */ template(`<button role=menuitem type=button class="button control-panel__button">`);
3157
3157
  var ControlPanelButtons = (props) => {
3158
3158
  const data = useData();
3159
3159
  return [(() => {
3160
- const _el$ = _tmpl$3(), _el$2 = _el$.firstChild;
3160
+ var _el$ = _tmpl$3(), _el$2 = _el$.firstChild;
3161
3161
  addEventListener2(_el$, "click", data.options.back, true);
3162
3162
  insert(_el$2, () => data.t("GoBack"));
3163
3163
  insert(_el$, createComponent(Icon, {
@@ -3167,7 +3167,7 @@ var ControlPanelButtons = (props) => {
3167
3167
  createRenderEffect(() => setAttribute(_el$, "title", data.t("GoBack")));
3168
3168
  return _el$;
3169
3169
  })(), (() => {
3170
- const _el$3 = _tmpl$22(), _el$4 = _el$3.firstChild;
3170
+ var _el$3 = _tmpl$22(), _el$4 = _el$3.firstChild;
3171
3171
  addEventListener2(_el$3, "click", props.openDialogOverview, true);
3172
3172
  insert(_el$4, () => data.t("DialogOverview"));
3173
3173
  insert(_el$3, createComponent(Icon, {
@@ -3177,7 +3177,7 @@ var ControlPanelButtons = (props) => {
3177
3177
  createRenderEffect(() => setAttribute(_el$3, "title", data.t("DialogOverview")));
3178
3178
  return _el$3;
3179
3179
  })(), (() => {
3180
- const _el$5 = _tmpl$3(), _el$6 = _el$5.firstChild;
3180
+ var _el$5 = _tmpl$3(), _el$6 = _el$5.firstChild;
3181
3181
  _el$5.$$click = () => {
3182
3182
  data.options.save("manual");
3183
3183
  };
@@ -3189,7 +3189,7 @@ var ControlPanelButtons = (props) => {
3189
3189
  createRenderEffect(() => setAttribute(_el$5, "title", data.t("DoSave")));
3190
3190
  return _el$5;
3191
3191
  })(), (() => {
3192
- const _el$7 = _tmpl$32(), _el$8 = _el$7.firstChild;
3192
+ var _el$7 = _tmpl$32(), _el$8 = _el$7.firstChild;
3193
3193
  _el$7.$$click = () => {
3194
3194
  props.setAuto((prev) => !prev);
3195
3195
  };
@@ -3203,7 +3203,7 @@ var ControlPanelButtons = (props) => {
3203
3203
  createRenderEffect(() => setAttribute(_el$7, "title", data.t(props.auto() ? "Stop" : "Auto")));
3204
3204
  return _el$7;
3205
3205
  })(), (() => {
3206
- const _el$9 = _tmpl$3(), _el$10 = _el$9.firstChild;
3206
+ var _el$9 = _tmpl$3(), _el$10 = _el$9.firstChild;
3207
3207
  _el$9.$$click = () => {
3208
3208
  data.options.save("auto");
3209
3209
  data.options.exit(true);
@@ -3217,7 +3217,7 @@ var ControlPanelButtons = (props) => {
3217
3217
  createRenderEffect(() => setAttribute(_el$9, "title", data.t("Settings")));
3218
3218
  return _el$9;
3219
3219
  })(), (() => {
3220
- const _el$11 = _tmpl$3(), _el$12 = _el$11.firstChild;
3220
+ var _el$11 = _tmpl$3(), _el$12 = _el$11.firstChild;
3221
3221
  _el$11.$$click = () => {
3222
3222
  data.options.exit();
3223
3223
  };
@@ -3233,7 +3233,7 @@ var ControlPanelButtons = (props) => {
3233
3233
  return data.media.hyperWide();
3234
3234
  },
3235
3235
  get children() {
3236
- const _el$13 = _tmpl$4();
3236
+ var _el$13 = _tmpl$4();
3237
3237
  _el$13.$$click = () => {
3238
3238
  props.closeDropdown();
3239
3239
  };
@@ -3248,15 +3248,15 @@ var ControlPanelButtons = (props) => {
3248
3248
  delegateEvents(["click"]);
3249
3249
 
3250
3250
  // src/components/DialogName.tsx
3251
- var _tmpl$5 = /* @__PURE__ */ template(`<div class="action-dialog-name">`);
3252
- var _tmpl$23 = /* @__PURE__ */ template(`<span class="action-dialog-mood-separator">&#10022;`);
3251
+ var _tmpl$5 = /* @__PURE__ */ template(`<div class=action-dialog-name>`);
3252
+ var _tmpl$23 = /* @__PURE__ */ template(`<span class=action-dialog-mood-separator>&#10022;`);
3253
3253
  var DialogName = (props) => {
3254
3254
  const data = useData();
3255
3255
  const color = () => {
3256
3256
  return props.character ? data.options.getCharacterColor(props.character) : "#000";
3257
3257
  };
3258
3258
  return (() => {
3259
- const _el$ = _tmpl$5();
3259
+ var _el$ = _tmpl$5();
3260
3260
  insert(_el$, () => props.name || " ", null);
3261
3261
  insert(_el$, createComponent(Show, {
3262
3262
  get when() {
@@ -3265,15 +3265,15 @@ var DialogName = (props) => {
3265
3265
  children: (mood) => [" ", _tmpl$23(), " ", createMemo(mood)]
3266
3266
  }), null);
3267
3267
  createRenderEffect((_p$) => {
3268
- const _v$ = color(), _v$2 = props.character ? 1 : 0, _v$3 = props.character ? "visible" : "hidden";
3269
- _v$ !== _p$._v$ && ((_p$._v$ = _v$) != null ? _el$.style.setProperty("color", _v$) : _el$.style.removeProperty("color"));
3270
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$.style.setProperty("opacity", _v$2) : _el$.style.removeProperty("opacity"));
3271
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$.style.setProperty("visibility", _v$3) : _el$.style.removeProperty("visibility"));
3268
+ var _v$ = color(), _v$2 = props.character ? 1 : 0, _v$3 = props.character ? "visible" : "hidden";
3269
+ _v$ !== _p$.e && ((_p$.e = _v$) != null ? _el$.style.setProperty("color", _v$) : _el$.style.removeProperty("color"));
3270
+ _v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$.style.setProperty("opacity", _v$2) : _el$.style.removeProperty("opacity"));
3271
+ _v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("visibility", _v$3) : _el$.style.removeProperty("visibility"));
3272
3272
  return _p$;
3273
3273
  }, {
3274
- _v$: void 0,
3275
- _v$2: void 0,
3276
- _v$3: void 0
3274
+ e: void 0,
3275
+ t: void 0,
3276
+ a: void 0
3277
3277
  });
3278
3278
  return _el$;
3279
3279
  })();
@@ -3323,8 +3323,8 @@ var Modal = (props) => {
3323
3323
  dialog[it.isOpen() ? it.isModal ? "showModal" : "show" : "close"]();
3324
3324
  });
3325
3325
  return (() => {
3326
- const _el$ = _tmpl$6();
3327
- const _ref$ = dialog;
3326
+ var _el$ = _tmpl$6();
3327
+ var _ref$ = dialog;
3328
3328
  typeof _ref$ === "function" ? use(_ref$, _el$) : dialog = _el$;
3329
3329
  spread(_el$, mergeProps(rest, {
3330
3330
  get ["class"]() {
@@ -3335,7 +3335,7 @@ var Modal = (props) => {
3335
3335
  })();
3336
3336
  };
3337
3337
 
3338
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.9.3/node_modules/@solid-primitives/transition-group/dist/index.js
3338
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.1.0_solid-js@1.9.4/node_modules/@solid-primitives/transition-group/dist/index.js
3339
3339
  var noop2 = () => {
3340
3340
  };
3341
3341
  var noopTransition = (el, done) => done();
@@ -3346,9 +3346,7 @@ function createSwitchTransition(source, options) {
3346
3346
  return () => initReturned;
3347
3347
  }
3348
3348
  const { onEnter = noopTransition, onExit = noopTransition } = options;
3349
- const [returned, setReturned] = createSignal(
3350
- options.appear ? [] : initReturned
3351
- );
3349
+ const [returned, setReturned] = createSignal(options.appear ? [] : initReturned);
3352
3350
  const [isTransitionPending] = useTransition();
3353
3351
  let next;
3354
3352
  let isExiting = false;
@@ -3373,40 +3371,40 @@ function createSwitchTransition(source, options) {
3373
3371
  onEnter(el, after ?? noop2);
3374
3372
  }
3375
3373
  const triggerTransitions = options.mode === "out-in" ? (
3374
+ // exit -> enter
3376
3375
  // exit -> enter
3377
3376
  (prev) => isExiting || exitTransition2(prev, enterTransition2)
3378
3377
  ) : options.mode === "in-out" ? (
3378
+ // enter -> exit
3379
3379
  // enter -> exit
3380
3380
  (prev) => enterTransition2(() => exitTransition2(prev))
3381
3381
  ) : (
3382
+ // exit & enter
3382
3383
  // exit & enter
3383
3384
  (prev) => {
3384
3385
  exitTransition2(prev);
3385
3386
  enterTransition2();
3386
3387
  }
3387
3388
  );
3388
- createComputed(
3389
- (prev) => {
3390
- const el = source();
3391
- if (untrack(isTransitionPending)) {
3392
- isTransitionPending();
3393
- return prev;
3394
- }
3395
- if (el !== prev) {
3396
- next = el;
3397
- batch(() => untrack(() => triggerTransitions(prev)));
3398
- }
3399
- return el;
3400
- },
3401
- options.appear ? void 0 : initSource
3402
- );
3389
+ createComputed((prev) => {
3390
+ const el = source();
3391
+ if (untrack(isTransitionPending)) {
3392
+ isTransitionPending();
3393
+ return prev;
3394
+ }
3395
+ if (el !== prev) {
3396
+ next = el;
3397
+ batch(() => untrack(() => triggerTransitions(prev)));
3398
+ }
3399
+ return el;
3400
+ }, options.appear ? void 0 : initSource);
3403
3401
  return returned;
3404
3402
  }
3405
3403
 
3406
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.9.3/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3404
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.3.0_solid-js@1.9.4/node_modules/@solid-primitives/utils/dist/index.js
3407
3405
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
3408
3406
 
3409
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.9.3/node_modules/@solid-primitives/refs/dist/index.js
3407
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.1.0_solid-js@1.9.4/node_modules/@solid-primitives/refs/dist/index.js
3410
3408
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
3411
3409
  function getFirstChild(value, predicate) {
3412
3410
  if (predicate(value))
@@ -3427,7 +3425,7 @@ function resolveFirst(fn, predicate = defaultElementPredicate, serverPredicate =
3427
3425
  return createMemo(() => getFirstChild(children2(), isServer ? serverPredicate : predicate));
3428
3426
  }
3429
3427
 
3430
- // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.9.3/node_modules/solid-transition-group/dist/index.js
3428
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.9.4/node_modules/solid-transition-group/dist/index.js
3431
3429
  function createClassnames(props) {
3432
3430
  return createMemo(() => {
3433
3431
  const name = props.name || "s";
@@ -3532,10 +3530,10 @@ var { useContextState, removeContextState } = createContextStateRoot(() => {
3532
3530
  });
3533
3531
 
3534
3532
  // src/components/Save.tsx
3535
- var _tmpl$7 = /* @__PURE__ */ template(`<div class="saves__list-item__overlay">`);
3536
- var _tmpl$24 = /* @__PURE__ */ template(`<iframe tabindex="-1" class="saves__list-item__iframe" src="about:blank">`);
3537
- var _tmpl$33 = /* @__PURE__ */ template(`<li class="saves__list-item"><div class="saves__list-item__load" role="button" tabindex="0"></div><div class="saves__list-item__description"><div></div><div></div></div><button type="reset" class="button saves__button-reset"><span>`);
3538
- var _tmpl$42 = /* @__PURE__ */ template(`<div class="saves__list-item__iframe">`);
3533
+ var _tmpl$7 = /* @__PURE__ */ template(`<div class=saves__list-item__overlay>`);
3534
+ var _tmpl$24 = /* @__PURE__ */ template(`<iframe tabindex=-1 class=saves__list-item__iframe src=about:blank>`, true, false);
3535
+ var _tmpl$33 = /* @__PURE__ */ template(`<li class=saves__list-item><div class=saves__list-item__load role=button tabindex=0></div><div class=saves__list-item__description><div></div><div></div></div><button type=reset class="button saves__button-reset"><span>`);
3536
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=saves__list-item__iframe>`);
3539
3537
  var CURRENT_DATE = /* @__PURE__ */ new Date();
3540
3538
  var CURRENT_YEAR = CURRENT_DATE.getFullYear();
3541
3539
  var stylesheet = createRetrieved(getDocumentStyles);
@@ -3641,7 +3639,7 @@ var Save = (props) => {
3641
3639
  clearTimeout(previewDoneTimeoutId);
3642
3640
  });
3643
3641
  return (() => {
3644
- const _el$ = _tmpl$33(), _el$2 = _el$.firstChild, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild;
3642
+ var _el$ = _tmpl$33(), _el$2 = _el$.firstChild, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild;
3645
3643
  setAttribute(_el$, "data-timestamp", timestamp);
3646
3644
  _el$2.$$keyup = (event) => {
3647
3645
  if (event.code === "Space") {
@@ -3676,7 +3674,7 @@ var Save = (props) => {
3676
3674
  },
3677
3675
  get children() {
3678
3676
  return [(() => {
3679
- const _el$4 = _tmpl$24();
3677
+ var _el$4 = _tmpl$24();
3680
3678
  _el$4.addEventListener("load", () => {
3681
3679
  onIframeLoaded();
3682
3680
  });
@@ -3721,13 +3719,13 @@ var Save = (props) => {
3721
3719
  _el$8.$$clickData = timestamp;
3722
3720
  insert(_el$9, () => t("Remove"));
3723
3721
  createRenderEffect((_p$) => {
3724
- const _v$ = t("LoadASaveFrom") + " " + stringDate(), _v$2 = t("DeleteASaveFrom") + " " + stringDate();
3725
- _v$ !== _p$._v$ && setAttribute(_el$2, "aria-label", _p$._v$ = _v$);
3726
- _v$2 !== _p$._v$2 && setAttribute(_el$8, "aria-label", _p$._v$2 = _v$2);
3722
+ var _v$ = t("LoadASaveFrom") + " " + stringDate(), _v$2 = t("DeleteASaveFrom") + " " + stringDate();
3723
+ _v$ !== _p$.e && setAttribute(_el$2, "aria-label", _p$.e = _v$);
3724
+ _v$2 !== _p$.t && setAttribute(_el$8, "aria-label", _p$.t = _v$2);
3727
3725
  return _p$;
3728
3726
  }, {
3729
- _v$: void 0,
3730
- _v$2: void 0
3727
+ e: void 0,
3728
+ t: void 0
3731
3729
  });
3732
3730
  return _el$;
3733
3731
  })();
@@ -3892,8 +3890,8 @@ var createTypewriter = ({
3892
3890
  bypassed = false;
3893
3891
  });
3894
3892
  return (() => {
3895
- const _el$ = _tmpl$8();
3896
- const _ref$ = node;
3893
+ var _el$ = _tmpl$8();
3894
+ var _ref$ = node;
3897
3895
  typeof _ref$ === "function" ? use(_ref$, _el$) : node = _el$;
3898
3896
  spread(_el$, mergeProps(() => props.attributes), false, false);
3899
3897
  return _el$;
@@ -3964,7 +3962,7 @@ var Canvas = (props) => {
3964
3962
  removeEventListener("resize", onResizeThrottled);
3965
3963
  });
3966
3964
  return (() => {
3967
- const _el$ = _tmpl$9();
3965
+ var _el$ = _tmpl$9();
3968
3966
  use(setCanvas, _el$);
3969
3967
  spread(_el$, rest, false, false);
3970
3968
  return _el$;
@@ -3972,12 +3970,12 @@ var Canvas = (props) => {
3972
3970
  };
3973
3971
 
3974
3972
  // src/components/Select.tsx
3975
- var _tmpl$10 = /* @__PURE__ */ template(`<div class="select"><label class="select__label"><span class="select__label__icon"></span> </label><div class="select__select-container"><select>`);
3973
+ var _tmpl$10 = /* @__PURE__ */ template(`<div class=select><label class=select__label><span class=select__label__icon></span> </label><div class=select__select-container><select>`);
3976
3974
  var Select = (props) => {
3977
3975
  const [local, rest] = splitProps(props, ["icon", "label"]);
3978
3976
  const id = createUniqueId();
3979
3977
  return (() => {
3980
- const _el$ = _tmpl$10(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild;
3978
+ var _el$ = _tmpl$10(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild;
3981
3979
  setAttribute(_el$2, "for", id);
3982
3980
  setAttribute(_el$3, "aria-hidden", true);
3983
3981
  insert(_el$3, createComponent(Icon, {
@@ -4001,12 +3999,12 @@ var Select = (props) => {
4001
3999
  };
4002
4000
 
4003
4001
  // src/components/Range.tsx
4004
- var _tmpl$11 = /* @__PURE__ */ template(`<div class="range"><label class="range__label"><span class="range__label__icon"></span> </label><input>`);
4002
+ var _tmpl$11 = /* @__PURE__ */ template(`<div class=range><label class=range__label><span class=range__label__icon></span> </label><input>`);
4005
4003
  var Range = (props) => {
4006
4004
  const [local, rest] = splitProps(props, ["icon", "label"]);
4007
4005
  const id = createUniqueId();
4008
4006
  return (() => {
4009
- const _el$ = _tmpl$11(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
4007
+ var _el$ = _tmpl$11(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
4010
4008
  setAttribute(_el$2, "for", id);
4011
4009
  setAttribute(_el$3, "aria-hidden", true);
4012
4010
  insert(_el$3, () => createComponent(Icon, {
@@ -4025,10 +4023,10 @@ var Range = (props) => {
4025
4023
  };
4026
4024
 
4027
4025
  // src/components/DialogOverview.tsx
4028
- var _tmpl$12 = /* @__PURE__ */ template(`<div class="dialog-overview__head"><span></span><button type="button" class="button">`);
4029
- var _tmpl$25 = /* @__PURE__ */ template(`<div class="dialog-overview__body"><table class="dialog-overview__list">`);
4030
- var _tmpl$34 = /* @__PURE__ */ template(`<button type="button" class="dialog-overview__button-audio-control">`);
4031
- var _tmpl$43 = /* @__PURE__ */ template(`<tr class="dialog-overview__list-item"><td class="dialog-overview__list-item__name"><span></span></td><td></td><td class="dialog-overview__list-item__text"><span>`);
4026
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=dialog-overview__head><span></span><button type=button class=button>`);
4027
+ var _tmpl$25 = /* @__PURE__ */ template(`<div class=dialog-overview__body><table class=dialog-overview__list>`);
4028
+ var _tmpl$34 = /* @__PURE__ */ template(`<button type=button class=dialog-overview__button-audio-control>`);
4029
+ var _tmpl$43 = /* @__PURE__ */ template(`<tr class=dialog-overview__list-item><td class=dialog-overview__list-item__name><span></span></td><td></td><td class=dialog-overview__list-item__text><span>`);
4032
4030
  var DialogOverview = (props) => {
4033
4031
  const data = useData();
4034
4032
  const [scrollArea, setScrollArea] = createSignal();
@@ -4057,7 +4055,7 @@ var DialogOverview = (props) => {
4057
4055
  trapFocus: () => props.shown,
4058
4056
  get children() {
4059
4057
  return [(() => {
4060
- const _el$ = _tmpl$12(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
4058
+ var _el$ = _tmpl$12(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
4061
4059
  insert(_el$2, () => data.t("DialogOverview"));
4062
4060
  _el$3.$$click = () => {
4063
4061
  props.close();
@@ -4065,7 +4063,7 @@ var DialogOverview = (props) => {
4065
4063
  insert(_el$3, () => data.t("Close"));
4066
4064
  return _el$;
4067
4065
  })(), (() => {
4068
- const _el$4 = _tmpl$25(), _el$5 = _el$4.firstChild;
4066
+ var _el$4 = _tmpl$25(), _el$5 = _el$4.firstChild;
4069
4067
  use(setScrollArea, _el$5);
4070
4068
  insert(_el$5, createComponent(Show, {
4071
4069
  get when() {
@@ -4077,19 +4075,19 @@ var DialogOverview = (props) => {
4077
4075
  get ["for"]() {
4078
4076
  return data.options.getDialogOverview();
4079
4077
  },
4080
- children: (entries2) => createComponent(For, {
4078
+ children: (entries) => createComponent(For, {
4081
4079
  get each() {
4082
- return entries2();
4080
+ return entries();
4083
4081
  },
4084
4082
  children: (entry) => (() => {
4085
- const _el$6 = _tmpl$43(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$11 = _el$9.nextSibling, _el$12 = _el$11.firstChild;
4083
+ var _el$6 = _tmpl$43(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$11 = _el$9.nextSibling, _el$12 = _el$11.firstChild;
4086
4084
  insert(_el$8, () => removeTagsFromHTML(entry.name));
4087
4085
  insert(_el$9, createComponent(Show, {
4088
4086
  get when() {
4089
4087
  return entry.voice;
4090
4088
  },
4091
4089
  get children() {
4092
- const _el$10 = _tmpl$34();
4090
+ var _el$10 = _tmpl$34();
4093
4091
  _el$10.$$click = async () => {
4094
4092
  if (!entry.voice) return;
4095
4093
  const voice = props.audio.getAudio("voice", entry.voice);
@@ -4152,25 +4150,22 @@ var Await = (props) => {
4152
4150
  });
4153
4151
  };
4154
4152
 
4155
- // ../../node_modules/.pnpm/@solid-primitives+destructure@0.1.17_solid-js@1.9.3/node_modules/@solid-primitives/destructure/dist/index.js
4153
+ // ../../node_modules/.pnpm/@solid-primitives+destructure@0.2.0_solid-js@1.9.4/node_modules/@solid-primitives/destructure/dist/index.js
4156
4154
  var isReactiveObject = (value) => typeof value === "object" && value !== null;
4157
4155
  function createProxyCache(obj, get) {
4158
- return new Proxy(
4159
- {},
4160
- {
4161
- get: (target, key) => {
4162
- if (key === Symbol.iterator || key === "length")
4163
- return Reflect.get(obj, key);
4164
- const saved = Reflect.get(target, key);
4165
- if (saved)
4166
- return saved;
4167
- const value = get(key);
4168
- Reflect.set(target, key, value);
4169
- return value;
4170
- },
4171
- set: () => false
4172
- }
4173
- );
4156
+ return new Proxy({}, {
4157
+ get: (target, key) => {
4158
+ if (key === Symbol.iterator || key === "length")
4159
+ return Reflect.get(obj, key);
4160
+ const saved = Reflect.get(target, key);
4161
+ if (saved)
4162
+ return saved;
4163
+ const value = get(key);
4164
+ Reflect.set(target, key, value);
4165
+ return value;
4166
+ },
4167
+ set: () => false
4168
+ });
4174
4169
  }
4175
4170
  function destructure(source, options) {
4176
4171
  const config = options ?? {};
@@ -4198,21 +4193,21 @@ function destructure(source, options) {
4198
4193
  }
4199
4194
 
4200
4195
  // src/screens/game.tsx
4201
- var _tmpl$13 = /* @__PURE__ */ template(`<div class="action-dialog-person">`);
4202
- var _tmpl$26 = /* @__PURE__ */ template(`<span class="dialog-label">`);
4203
- var _tmpl$35 = /* @__PURE__ */ template(`<div class="choice-dialog__choices">`);
4204
- var _tmpl$44 = /* @__PURE__ */ template(`<label for="novely-input" class="input-dialog__text input-dialog__label">`);
4205
- var _tmpl$52 = /* @__PURE__ */ template(`<span class="input-dialog__text input-dialog__error" aria-live="polite" aria-atomic="true">`);
4206
- var _tmpl$62 = /* @__PURE__ */ template(`<button type="submit" class="button dialog-input__button">`);
4207
- var _tmpl$72 = /* @__PURE__ */ template(`<div class="exit-dialog-buttons"><button type="button" class="button"></button><button type="button" class="button">`);
4208
- var _tmpl$82 = /* @__PURE__ */ template(`<button type="button" class="button control-panel__button">`);
4209
- var _tmpl$92 = /* @__PURE__ */ template(`<span class="control-panel-container-fix" aria-hidden="true">&#8203;`);
4210
- var _tmpl$102 = /* @__PURE__ */ template(`<div class="control-panel-container-backdrop">`);
4211
- var _tmpl$112 = /* @__PURE__ */ template(`<div class="control-panel"><div role="menubar" class="control-panel-container">`);
4212
- var _tmpl$122 = /* @__PURE__ */ template(`<div class="loading overlay game"><div class="loading__animation"><div></div><div></div><div></div><div>`);
4213
- var _tmpl$132 = /* @__PURE__ */ template(`<div><div class="background"></div><div class="characters"></div><div class="action-dialog"><div class="action-dialog-container" role="button" tabindex="0"><div class="action-dialog-content"></div></div></div><div></div><div class="action-text" role="button" tabindex="0"></div><div class="action-image">`);
4214
- var _tmpl$14 = /* @__PURE__ */ template(`<button type="button" class="button choice-dialog__choice"><span>`);
4215
- var _tmpl$15 = /* @__PURE__ */ template(`<div class="action-image__image-container">`);
4196
+ var _tmpl$13 = /* @__PURE__ */ template(`<div class=action-dialog-person>`);
4197
+ var _tmpl$26 = /* @__PURE__ */ template(`<span class=dialog-label>`);
4198
+ var _tmpl$35 = /* @__PURE__ */ template(`<div class=choice-dialog__choices>`);
4199
+ var _tmpl$44 = /* @__PURE__ */ template(`<label for=novely-input class="input-dialog__text input-dialog__label">`);
4200
+ var _tmpl$52 = /* @__PURE__ */ template(`<span class="input-dialog__text input-dialog__error"aria-live=polite aria-atomic=true>`);
4201
+ var _tmpl$62 = /* @__PURE__ */ template(`<button type=submit class="button dialog-input__button">`);
4202
+ var _tmpl$72 = /* @__PURE__ */ template(`<div class=exit-dialog-buttons><button type=button class=button></button><button type=button class=button>`);
4203
+ var _tmpl$82 = /* @__PURE__ */ template(`<button type=button class="button control-panel__button">`);
4204
+ var _tmpl$92 = /* @__PURE__ */ template(`<span class=control-panel-container-fix aria-hidden=true>&#8203;`);
4205
+ var _tmpl$102 = /* @__PURE__ */ template(`<div class=control-panel-container-backdrop>`);
4206
+ var _tmpl$112 = /* @__PURE__ */ template(`<div class=control-panel><div role=menubar class=control-panel-container>`);
4207
+ var _tmpl$122 = /* @__PURE__ */ template(`<div class="loading overlay game"><div class=loading__animation><div></div><div></div><div></div><div>`);
4208
+ var _tmpl$132 = /* @__PURE__ */ template(`<div><div class=background></div><div class=characters></div><div class=action-dialog><div class=action-dialog-container role=button tabindex=0><div class=action-dialog-content></div></div></div><div></div><div class=action-text role=button tabindex=0></div><div class=action-image>`);
4209
+ var _tmpl$14 = /* @__PURE__ */ template(`<button type=button class="button choice-dialog__choice"><span>`);
4210
+ var _tmpl$15 = /* @__PURE__ */ template(`<div class=action-image__image-container>`);
4216
4211
  var Game = (props) => {
4217
4212
  const data = useData();
4218
4213
  const {
@@ -4303,7 +4298,7 @@ var Game = (props) => {
4303
4298
  }
4304
4299
  });
4305
4300
  return (() => {
4306
- const _el$ = _tmpl$132(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$7 = _el$5.firstChild, _el$17 = _el$4.nextSibling, _el$18 = _el$17.nextSibling, _el$24 = _el$18.nextSibling;
4301
+ var _el$ = _tmpl$132(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$7 = _el$5.firstChild, _el$17 = _el$4.nextSibling, _el$18 = _el$17.nextSibling, _el$24 = _el$18.nextSibling;
4307
4302
  setAttribute(_el$3, "data-characters", true);
4308
4303
  insert(_el$3, createComponent(For, {
4309
4304
  get each() {
@@ -4342,7 +4337,7 @@ var Game = (props) => {
4342
4337
  return dialog().miniature.emotion;
4343
4338
  },
4344
4339
  get children() {
4345
- const _el$6 = _tmpl$13();
4340
+ var _el$6 = _tmpl$13();
4346
4341
  insert(_el$6, createComponent(Show, {
4347
4342
  get when() {
4348
4343
  return dialog().miniature.emotion;
@@ -4393,20 +4388,20 @@ var Game = (props) => {
4393
4388
  trapFocus: () => !props.isPreview && !exitPromptShown(),
4394
4389
  get children() {
4395
4390
  return [(() => {
4396
- const _el$8 = _tmpl$26();
4391
+ var _el$8 = _tmpl$26();
4397
4392
  insert(_el$8, () => choice().label || " ");
4398
4393
  createRenderEffect((_p$) => {
4399
- const _v$ = Boolean(choice().label), _v$2 = !choice().label;
4400
- _v$ !== _p$._v$ && setAttribute(_el$8, "data-used", _p$._v$ = _v$);
4401
- _v$2 !== _p$._v$2 && setAttribute(_el$8, "aria-hidden", _p$._v$2 = _v$2);
4394
+ var _v$ = Boolean(choice().label), _v$2 = !choice().label;
4395
+ _v$ !== _p$.e && setAttribute(_el$8, "data-used", _p$.e = _v$);
4396
+ _v$2 !== _p$.t && setAttribute(_el$8, "aria-hidden", _p$.t = _v$2);
4402
4397
  return _p$;
4403
4398
  }, {
4404
- _v$: void 0,
4405
- _v$2: void 0
4399
+ e: void 0,
4400
+ t: void 0
4406
4401
  });
4407
4402
  return _el$8;
4408
4403
  })(), (() => {
4409
- const _el$9 = _tmpl$35();
4404
+ var _el$9 = _tmpl$35();
4410
4405
  insert(_el$9, createComponent(For, {
4411
4406
  get each() {
4412
4407
  return choice().choices;
@@ -4421,7 +4416,7 @@ var Game = (props) => {
4421
4416
  return visible();
4422
4417
  },
4423
4418
  get children() {
4424
- const _el$26 = _tmpl$14(), _el$27 = _el$26.firstChild;
4419
+ var _el$26 = _tmpl$14(), _el$27 = _el$26.firstChild;
4425
4420
  _el$26.$$click = () => {
4426
4421
  onSelect();
4427
4422
  if (disabled()) return;
@@ -4463,15 +4458,15 @@ var Game = (props) => {
4463
4458
  trapFocus: () => !props.isPreview && !exitPromptShown(),
4464
4459
  get children() {
4465
4460
  return [(() => {
4466
- const _el$10 = _tmpl$44();
4461
+ var _el$10 = _tmpl$44();
4467
4462
  insert(_el$10, () => input().label);
4468
4463
  return _el$10;
4469
4464
  })(), createMemo(() => input().element), (() => {
4470
- const _el$11 = _tmpl$52();
4465
+ var _el$11 = _tmpl$52();
4471
4466
  insert(_el$11, () => input().error);
4472
4467
  return _el$11;
4473
4468
  })(), (() => {
4474
- const _el$12 = _tmpl$62();
4469
+ var _el$12 = _tmpl$62();
4475
4470
  _el$12.$$click = onInputButtonClick;
4476
4471
  insert(_el$12, () => data.t("Sumbit"));
4477
4472
  createRenderEffect(() => setAttribute(_el$12, "aria-disabled", Boolean(input().error)));
@@ -4486,11 +4481,11 @@ var Game = (props) => {
4486
4481
  trapFocus: () => !props.isPreview && exitPromptShown(),
4487
4482
  get children() {
4488
4483
  return [(() => {
4489
- const _el$13 = _tmpl$26();
4484
+ var _el$13 = _tmpl$26();
4490
4485
  insert(_el$13, () => data.t("ExitDialogWarning"));
4491
4486
  return _el$13;
4492
4487
  })(), (() => {
4493
- const _el$14 = _tmpl$72(), _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling;
4488
+ var _el$14 = _tmpl$72(), _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling;
4494
4489
  _el$15.$$click = () => {
4495
4490
  data.$rendererState.setKey("exitPromptShown", false);
4496
4491
  };
@@ -4537,7 +4532,7 @@ var Game = (props) => {
4537
4532
  return !props.isPreview;
4538
4533
  },
4539
4534
  get children() {
4540
- const _el$19 = _tmpl$112(), _el$23 = _el$19.firstChild;
4535
+ var _el$19 = _tmpl$112(), _el$23 = _el$19.firstChild;
4541
4536
  insert(_el$19, createComponent(Show, {
4542
4537
  get when() {
4543
4538
  return data.media.hyperWide();
@@ -4548,7 +4543,7 @@ var Game = (props) => {
4548
4543
  return !controlPanelMenuExpanded();
4549
4544
  },
4550
4545
  get children() {
4551
- const _el$20 = _tmpl$82();
4546
+ var _el$20 = _tmpl$82();
4552
4547
  _el$20.$$click = () => {
4553
4548
  setControlPanelMenuExpanded((prev) => !prev);
4554
4549
  };
@@ -4557,13 +4552,13 @@ var Game = (props) => {
4557
4552
  icon: "#novely-list-icon"
4558
4553
  }));
4559
4554
  createRenderEffect((_p$) => {
4560
- const _v$3 = data.t("OpenMenu"), _v$4 = controlPanelMenuExpanded();
4561
- _v$3 !== _p$._v$3 && setAttribute(_el$20, "title", _p$._v$3 = _v$3);
4562
- _v$4 !== _p$._v$4 && setAttribute(_el$20, "aria-expanded", _p$._v$4 = _v$4);
4555
+ var _v$3 = data.t("OpenMenu"), _v$4 = controlPanelMenuExpanded();
4556
+ _v$3 !== _p$.e && setAttribute(_el$20, "title", _p$.e = _v$3);
4557
+ _v$4 !== _p$.t && setAttribute(_el$20, "aria-expanded", _p$.t = _v$4);
4563
4558
  return _p$;
4564
4559
  }, {
4565
- _v$3: void 0,
4566
- _v$4: void 0
4560
+ e: void 0,
4561
+ t: void 0
4567
4562
  });
4568
4563
  return _el$20;
4569
4564
  }
@@ -4601,13 +4596,13 @@ var Game = (props) => {
4601
4596
  setAuto
4602
4597
  }));
4603
4598
  createRenderEffect((_p$) => {
4604
- const _v$5 = !!(data.media.hyperWide() && !controlPanelMenuExpanded()), _v$6 = !!(data.media.hyperWide() && controlPanelMenuExpanded());
4605
- _v$5 !== _p$._v$5 && _el$23.classList.toggle("control-panel-container--wide-closed", _p$._v$5 = _v$5);
4606
- _v$6 !== _p$._v$6 && _el$23.classList.toggle("control-panel-container--wide-open", _p$._v$6 = _v$6);
4599
+ var _v$5 = !!(data.media.hyperWide() && !controlPanelMenuExpanded()), _v$6 = !!(data.media.hyperWide() && controlPanelMenuExpanded());
4600
+ _v$5 !== _p$.e && _el$23.classList.toggle("control-panel-container--wide-closed", _p$.e = _v$5);
4601
+ _v$6 !== _p$.t && _el$23.classList.toggle("control-panel-container--wide-open", _p$.t = _v$6);
4607
4602
  return _p$;
4608
4603
  }, {
4609
- _v$5: void 0,
4610
- _v$6: void 0
4604
+ e: void 0,
4605
+ t: void 0
4611
4606
  });
4612
4607
  return _el$19;
4613
4608
  }
@@ -4651,7 +4646,7 @@ var Game = (props) => {
4651
4646
  return image().visible;
4652
4647
  },
4653
4648
  get children() {
4654
- const _el$28 = _tmpl$15();
4649
+ var _el$28 = _tmpl$15();
4655
4650
  insert(_el$28, () => image().image);
4656
4651
  return _el$28;
4657
4652
  }
@@ -4676,33 +4671,33 @@ var Game = (props) => {
4676
4671
  }
4677
4672
  }), null);
4678
4673
  createRenderEffect((_p$) => {
4679
- const _v$7 = `${props.className || ""} game`, _v$8 = !!props.isPreview, _v$9 = bg().startsWith("url") ? void 0 : bg(), _v$10 = bg().startsWith("url") ? bg() : void 0, _v$11 = charactersCount(), _v$12 = !!dialog().visible, _v$13 = !dialog().visible, _v$14 = !(dialog().miniature.character && dialog().miniature.emotion), _v$15 = !dialog().content, _v$16 = !!props.isPreview, _v$17 = !!Boolean(text().content), _v$18 = !text().content;
4680
- _v$7 !== _p$._v$7 && className(_el$, _p$._v$7 = _v$7);
4681
- _v$8 !== _p$._v$8 && _el$.classList.toggle("preview", _p$._v$8 = _v$8);
4682
- _v$9 !== _p$._v$9 && ((_p$._v$9 = _v$9) != null ? _el$2.style.setProperty("background-color", _v$9) : _el$2.style.removeProperty("background-color"));
4683
- _v$10 !== _p$._v$10 && ((_p$._v$10 = _v$10) != null ? _el$2.style.setProperty("background-image", _v$10) : _el$2.style.removeProperty("background-image"));
4684
- _v$11 !== _p$._v$11 && ((_p$._v$11 = _v$11) != null ? _el$3.style.setProperty("--shown-characters-count", _v$11) : _el$3.style.removeProperty("--shown-characters-count"));
4685
- _v$12 !== _p$._v$12 && _el$4.classList.toggle("action-dialog--visible", _p$._v$12 = _v$12);
4686
- _v$13 !== _p$._v$13 && _el$4.classList.toggle("action-dialog--hidden", _p$._v$13 = _v$13);
4687
- _v$14 !== _p$._v$14 && setAttribute(_el$5, "data-no-person", _p$._v$14 = _v$14);
4688
- _v$15 !== _p$._v$15 && setAttribute(_el$5, "aria-disabled", _p$._v$15 = _v$15);
4689
- _v$16 !== _p$._v$16 && _el$7.classList.toggle("action-dialog-content--disable-shadow", _p$._v$16 = _v$16);
4690
- _v$17 !== _p$._v$17 && _el$18.classList.toggle("action-text--shown", _p$._v$17 = _v$17);
4691
- _v$18 !== _p$._v$18 && setAttribute(_el$18, "aria-disabled", _p$._v$18 = _v$18);
4674
+ var _v$7 = `${props.className || ""} game`, _v$8 = !!props.isPreview, _v$9 = bg().startsWith("url") ? void 0 : bg(), _v$10 = bg().startsWith("url") ? bg() : void 0, _v$11 = charactersCount(), _v$12 = !!dialog().visible, _v$13 = !dialog().visible, _v$14 = !(dialog().miniature.character && dialog().miniature.emotion), _v$15 = !dialog().content, _v$16 = !!props.isPreview, _v$17 = !!Boolean(text().content), _v$18 = !text().content;
4675
+ _v$7 !== _p$.e && className(_el$, _p$.e = _v$7);
4676
+ _v$8 !== _p$.t && _el$.classList.toggle("preview", _p$.t = _v$8);
4677
+ _v$9 !== _p$.a && ((_p$.a = _v$9) != null ? _el$2.style.setProperty("background-color", _v$9) : _el$2.style.removeProperty("background-color"));
4678
+ _v$10 !== _p$.o && ((_p$.o = _v$10) != null ? _el$2.style.setProperty("background-image", _v$10) : _el$2.style.removeProperty("background-image"));
4679
+ _v$11 !== _p$.i && ((_p$.i = _v$11) != null ? _el$3.style.setProperty("--shown-characters-count", _v$11) : _el$3.style.removeProperty("--shown-characters-count"));
4680
+ _v$12 !== _p$.n && _el$4.classList.toggle("action-dialog--visible", _p$.n = _v$12);
4681
+ _v$13 !== _p$.s && _el$4.classList.toggle("action-dialog--hidden", _p$.s = _v$13);
4682
+ _v$14 !== _p$.h && setAttribute(_el$5, "data-no-person", _p$.h = _v$14);
4683
+ _v$15 !== _p$.r && setAttribute(_el$5, "aria-disabled", _p$.r = _v$15);
4684
+ _v$16 !== _p$.d && _el$7.classList.toggle("action-dialog-content--disable-shadow", _p$.d = _v$16);
4685
+ _v$17 !== _p$.l && _el$18.classList.toggle("action-text--shown", _p$.l = _v$17);
4686
+ _v$18 !== _p$.u && setAttribute(_el$18, "aria-disabled", _p$.u = _v$18);
4692
4687
  return _p$;
4693
4688
  }, {
4694
- _v$7: void 0,
4695
- _v$8: void 0,
4696
- _v$9: void 0,
4697
- _v$10: void 0,
4698
- _v$11: void 0,
4699
- _v$12: void 0,
4700
- _v$13: void 0,
4701
- _v$14: void 0,
4702
- _v$15: void 0,
4703
- _v$16: void 0,
4704
- _v$17: void 0,
4705
- _v$18: void 0
4689
+ e: void 0,
4690
+ t: void 0,
4691
+ a: void 0,
4692
+ o: void 0,
4693
+ i: void 0,
4694
+ n: void 0,
4695
+ s: void 0,
4696
+ h: void 0,
4697
+ r: void 0,
4698
+ d: void 0,
4699
+ l: void 0,
4700
+ u: void 0
4706
4701
  });
4707
4702
  return _el$;
4708
4703
  })();
@@ -4710,17 +4705,17 @@ var Game = (props) => {
4710
4705
  delegateEvents(["click", "keydown"]);
4711
4706
 
4712
4707
  // src/screens/loading.tsx
4713
- var _tmpl$16 = /* @__PURE__ */ template(`<div class="loading"><div class="loading__animation"><div></div><div></div><div></div><div>`);
4708
+ var _tmpl$16 = /* @__PURE__ */ template(`<div class=loading><div class=loading__animation><div></div><div></div><div></div><div>`);
4714
4709
  var Loading = (props) => {
4715
4710
  return (() => {
4716
- const _el$ = _tmpl$16();
4711
+ var _el$ = _tmpl$16();
4717
4712
  createRenderEffect(() => _el$.classList.toggle("overlay", !!props.overlay));
4718
4713
  return _el$;
4719
4714
  })();
4720
4715
  };
4721
4716
 
4722
4717
  // src/screens/mainmenu.tsx
4723
- var _tmpl$17 = /* @__PURE__ */ template(`<div class="main-menu"><div class="main-menu__controls"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text">`);
4718
+ var _tmpl$17 = /* @__PURE__ */ template(`<div class=main-menu><div class=main-menu__controls><button type=button class="button main-menu__button"><span class=main-menu__button__text></span></button><button type=button class="button main-menu__button"><span class=main-menu__button__text></span></button><button type=button class="button main-menu__button"><span class=main-menu__button__text></span></button><button type=button class="button main-menu__button"><span class=main-menu__button__text>`);
4724
4719
  var _tmpl$27 = /* @__PURE__ */ template(`<button>`);
4725
4720
  var MainMenu = () => {
4726
4721
  const {
@@ -4737,7 +4732,7 @@ var MainMenu = () => {
4737
4732
  $rendererState.mutate((s) => s.screen, screen);
4738
4733
  });
4739
4734
  return (() => {
4740
- const _el$ = _tmpl$17(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
4735
+ var _el$ = _tmpl$17(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
4741
4736
  _el$3.$$click = () => {
4742
4737
  options.newGame();
4743
4738
  };
@@ -4776,7 +4771,7 @@ var MainMenu = () => {
4776
4771
  return rendererStore().mainmenu;
4777
4772
  },
4778
4773
  children: (item) => (() => {
4779
- const _el$11 = _tmpl$27();
4774
+ var _el$11 = _tmpl$27();
4780
4775
  spread(_el$11, mergeProps(() => item(goto)), false, false);
4781
4776
  return _el$11;
4782
4777
  })()
@@ -4788,8 +4783,8 @@ var MainMenu = () => {
4788
4783
  delegateEvents(["click"]);
4789
4784
 
4790
4785
  // src/screens/saves.tsx
4791
- var _tmpl$18 = /* @__PURE__ */ template(`<ol class="saves__list">`);
4792
- var _tmpl$28 = /* @__PURE__ */ template(`<div class="saves"><div class="saves__controls"><button type="button" class="button saves__button"></button></div><div class="saves__list-container">`);
4786
+ var _tmpl$18 = /* @__PURE__ */ template(`<ol class=saves__list>`);
4787
+ var _tmpl$28 = /* @__PURE__ */ template(`<div class=saves><div class=saves__controls><button type=button class="button saves__button"></button></div><div class=saves__list-container>`);
4793
4788
  var _tmpl$36 = /* @__PURE__ */ template(`<div class="saves__list saves__list--empty">`);
4794
4789
  var Saves = () => {
4795
4790
  const {
@@ -4807,9 +4802,9 @@ var Saves = () => {
4807
4802
  onMount(() => {
4808
4803
  const listElement = list();
4809
4804
  if (!listElement) return;
4810
- const observer = new IntersectionObserver((entries2) => {
4805
+ const observer = new IntersectionObserver((entries) => {
4811
4806
  const currentEntryTimestamps = [];
4812
- entries2.forEach((entry) => {
4807
+ entries.forEach((entry) => {
4813
4808
  if (!entry.isIntersecting) return;
4814
4809
  if (processed.has(entry.target)) return;
4815
4810
  if (!(entry.target instanceof HTMLElement)) return;
@@ -4857,7 +4852,7 @@ var Saves = () => {
4857
4852
  return !targets.every((item) => completed.includes(item));
4858
4853
  };
4859
4854
  return (() => {
4860
- const _el$ = _tmpl$28(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
4855
+ var _el$ = _tmpl$28(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
4861
4856
  _el$3.$$click = () => {
4862
4857
  $rendererState.setKey("screen", "mainmenu");
4863
4858
  };
@@ -4868,13 +4863,13 @@ var Saves = () => {
4868
4863
  },
4869
4864
  get fallback() {
4870
4865
  return (() => {
4871
- const _el$6 = _tmpl$36();
4866
+ var _el$6 = _tmpl$36();
4872
4867
  insert(_el$6, () => t("NoSaves"));
4873
4868
  return _el$6;
4874
4869
  })();
4875
4870
  },
4876
4871
  get children() {
4877
- const _el$5 = _tmpl$18();
4872
+ var _el$5 = _tmpl$18();
4878
4873
  use(setList, _el$5);
4879
4874
  insert(_el$5, createComponent(For, {
4880
4875
  get each() {
@@ -4905,7 +4900,7 @@ var Saves = () => {
4905
4900
  delegateEvents(["click"]);
4906
4901
 
4907
4902
  // src/screens/settings.tsx
4908
- var _tmpl$19 = /* @__PURE__ */ template(`<div class="root settings"><div class="settings__controls"><button type="button" class="button settings__button"></button><button type="button" class="button settings__button"></button></div><div class="settings__options">`);
4903
+ var _tmpl$19 = /* @__PURE__ */ template(`<div class="root settings"><div class=settings__controls><button type=button class="button settings__button"></button><button type=button class="button settings__button"></button></div><div class=settings__options>`);
4909
4904
  var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
4910
4905
  var Settings = (props) => {
4911
4906
  const {
@@ -4952,7 +4947,7 @@ var Settings = (props) => {
4952
4947
  return fn;
4953
4948
  };
4954
4949
  return (() => {
4955
- const _el$ = _tmpl$19(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
4950
+ var _el$ = _tmpl$19(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
4956
4951
  _el$3.$$click = () => {
4957
4952
  $rendererState.setKey("screen", "mainmenu");
4958
4953
  };
@@ -4973,7 +4968,7 @@ var Settings = (props) => {
4973
4968
  return options.languages;
4974
4969
  },
4975
4970
  children: (lang) => (() => {
4976
- const _el$6 = _tmpl$29();
4971
+ var _el$6 = _tmpl$29();
4977
4972
  _el$6.value = lang;
4978
4973
  insert(_el$6, () => options.getLanguageDisplayName(lang));
4979
4974
  createRenderEffect(() => _el$6.selected = lang === language());
@@ -4992,7 +4987,7 @@ var Settings = (props) => {
4992
4987
  return createComponent(For, {
4993
4988
  each: ["Slow", "Medium", "Fast", "Auto"],
4994
4989
  children: (speed) => (() => {
4995
- const _el$7 = _tmpl$29();
4990
+ var _el$7 = _tmpl$29();
4996
4991
  _el$7.value = speed;
4997
4992
  insert(_el$7, () => t("TextSpeed" + speed));
4998
4993
  createRenderEffect(() => _el$7.selected = speed === textSpeed());
@@ -5057,7 +5052,7 @@ var Settings = (props) => {
5057
5052
  delegateEvents(["click"]);
5058
5053
 
5059
5054
  // src/components/Root.tsx
5060
- var _tmpl$20 = /* @__PURE__ */ template(`<div class="root">`);
5055
+ var _tmpl$20 = /* @__PURE__ */ template(`<div class=root>`);
5061
5056
  var createRootComponent = ({
5062
5057
  $rendererState,
5063
5058
  $contextState,
@@ -5091,8 +5086,8 @@ var createRootComponent = ({
5091
5086
  emitter.emit("screen:change", currentScreen);
5092
5087
  });
5093
5088
  return (() => {
5094
- const _el$ = _tmpl$20();
5095
- const _ref$ = setRoot;
5089
+ var _el$ = _tmpl$20();
5090
+ var _ref$ = setRoot;
5096
5091
  typeof _ref$ === "function" ? use(_ref$, _el$) : setRoot = _el$;
5097
5092
  insert(_el$, createComponent(Provider, {
5098
5093
  $rendererState,
@@ -0,0 +1,2 @@
1
+ declare const showModal: () => void;
2
+ export { showModal };
@@ -438,13 +438,14 @@
438
438
 
439
439
  /* src/styles/action-dialog/action-dialog.css */
440
440
  .action-dialog {
441
+ --min-dialog-height: 26vh;
442
+ min-height: var(--min-dialog-height);
441
443
  z-index: 22;
442
444
  text-align: left;
443
445
  cursor: default;
444
446
  flex-direction: column;
445
447
  justify-content: flex-end;
446
448
  width: 75%;
447
- min-height: 26vh;
448
449
  display: flex;
449
450
  position: fixed;
450
451
  bottom: .4rem;
@@ -461,13 +462,13 @@
461
462
  height: 100%;
462
463
  min-height: 18vh;
463
464
  color: var(--novely-dialog-color, #fff);
464
- border: var(--novely-dialog-border-width, .18rem) solid var(--novely-dialog-border-color, #fff);
465
- border-radius: var(--novely-dialog-border-radius, .875rem);
466
- box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-dialog-box-shadow-color, #00000072);
467
- background-image: var(--novely-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
468
- background-color: var(--novely-dialog-background-color, #f092b4d8);
469
- background-position: var(--novely-dialog-background-position, 0 0, 3.125rem 3.125rem);
470
- background-size: var(--novely-dialog-background-size, 6.25rem 6.25rem);
465
+ border: var(--novely-dialog-border-width, .15rem) solid var(--novely-dialog-border-color, #fff);
466
+ border-radius: var(--novely-dialog-border-radius, .4rem);
467
+ box-shadow: var(--novely-px) var(--novely-px) .2rem var(--novely-dialog-box-shadow-color, #00000072);
468
+ background-image: var(--novely-dialog-background-image, none);
469
+ background-color: var(--novely-dialog-background-color, #f092b4df);
470
+ background-position: var(--novely-dialog-background-position);
471
+ background-size: var(--novely-dialog-background-size);
471
472
  flex-wrap: nowrap;
472
473
  flex-grow: 1;
473
474
  padding-bottom: 2.8rem;
@@ -480,7 +481,11 @@
480
481
  max-height: 25vh;
481
482
  display: flex;
482
483
  }
483
- .action-dialog-name,
484
+ .action-dialog-name {
485
+ margin: 0;
486
+ padding: .2rem 1.5vmin;
487
+ display: block;
488
+ }
484
489
  .action-dialog-content {
485
490
  margin: 0;
486
491
  padding: 1vmin;
@@ -488,9 +493,9 @@
488
493
  }
489
494
  .action-dialog-name {
490
495
  width: fit-content;
491
- box-shadow: var(--novely-px) var(--novely-px) .18rem #00000042;
496
+ box-shadow: var(--novely-px) var(--novely-px) .15rem #00000042;
492
497
  background: #fff;
493
- border-radius: .438rem .438rem 0 0;
498
+ border-radius: .3rem .3rem 0 0;
494
499
  margin-left: 5vmin;
495
500
  font-size: 1.85rem;
496
501
  line-height: 1.2;
@@ -522,20 +527,27 @@
522
527
  }
523
528
  @media (max-aspect-ratio: .8) {
524
529
  .action-dialog {
525
- width: 100%;
526
- bottom: 0;
527
- left: unset;
530
+ --min-dialog-height: 20vh;
531
+ --dialog-bottom-offset: min(calc(2.8rem * 4), 22vh);
532
+ width: calc(100% - .8rem);
533
+ left: .4rem;
534
+ top: calc(100vh - var(--min-dialog-height) - var(--dialog-bottom-offset) - 6vh);
535
+ bottom: unset;
528
536
  transform: unset;
529
- }
530
- .action-dialog-name,
531
- .action-dialog-content {
532
- font-size: 1.2rem;
537
+ justify-content: flex-start;
533
538
  }
534
539
  .action-dialog-container {
535
- border-radius: var(--novely-dialog-border-radius, .875rem .875rem 0 0);
540
+ flex-grow: unset;
541
+ height: auto;
542
+ min-height: 12vh;
543
+ padding-bottom: 0;
544
+ }
545
+ .action-dialog-name {
546
+ font-size: 1.2rem;
536
547
  }
537
548
  .action-dialog-content {
538
549
  text-shadow: none;
550
+ font-size: 1.2rem;
539
551
  }
540
552
  }
541
553
  @media (max-aspect-ratio: .26) {
@@ -693,13 +705,13 @@
693
705
  .input-dialog {
694
706
  min-width: 35vw;
695
707
  color: var(--novely-input-dialog-color, #fff);
696
- border: var(--novely-input-dialog-border-width, .18rem) solid var(--novely-input-dialog-border-color, #fff);
697
- border-radius: var(--novely-input-dialog-border-radius, .875rem);
698
- box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-input-dialog-box-shadow-color, #00000072);
699
- background-image: var(--novely-input-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
700
- background-color: var(--novely-input-dialog-background-color, #f092b4d8);
701
- background-position: var(--novely-input-dialog-background-position, 0 0, 3.125rem 3.125rem);
702
- background-size: var(--novely-input-dialog-background-size, 6.25rem 6.25rem);
708
+ border: var(--novely-input-dialog-border-width, .15rem) solid var(--novely-input-dialog-border-color, #fff);
709
+ border-radius: var(--novely-input-dialog-border-radius, .4rem);
710
+ box-shadow: var(--novely-px) var(--novely-px) .2rem var(--novely-input-dialog-box-shadow-color, #00000072);
711
+ background-image: var(--novely-input-dialog-background-image, none);
712
+ background-color: var(--novely-input-dialog-background-color, #f092b4df);
713
+ background-position: var(--novely-input-dialog-background-position);
714
+ background-size: var(--novely-input-dialog-background-size);
703
715
  justify-content: center;
704
716
  align-items: center;
705
717
  }
@@ -745,19 +757,24 @@ input[name=novely-input][type=checkbox] {
745
757
  padding: .4rem .6rem;
746
758
  font-size: 1.2375rem;
747
759
  }
760
+ @media (max-aspect-ratio: .8) {
761
+ .dialog-input__button {
762
+ font-size: 1.1rem;
763
+ }
764
+ }
748
765
 
749
766
  /* src/styles/input-dialog/index.css */
750
767
 
751
768
  /* src/styles/exit-dialog/exit-dialog.css */
752
769
  .exit-dialog {
753
770
  color: var(--novely-exit-dialog-color, #fff);
754
- border: var(--novely-exit-dialog-border-width, .18rem) solid var(--novely-exit-dialog-border-color, #fff);
755
- border-radius: var(--novely-exit-dialog-border-radius, .875rem);
756
- box-shadow: var(--novely-px) var(--novely-px) .25rem var(--novely-exit-dialog-box-shadow-color, #00000072);
757
- background-image: var(--novely-exit-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
758
- background-color: var(--novely-exit-dialog-background-color, #f092b4d8);
759
- background-position: var(--novely-exit-dialog-background-position, 0 0, 3.125rem 3.125rem);
760
- background-size: var(--novely-exit-dialog-background-size, 6.25rem 6.25rem);
771
+ border: var(--novely-exit-dialog-border-width, .15rem) solid var(--novely-exit-dialog-border-color, #fff);
772
+ border-radius: var(--novely-exit-dialog-border-radius, .4rem);
773
+ box-shadow: var(--novely-px) var(--novely-px) .2rem var(--novely-exit-dialog-box-shadow-color, #00000072);
774
+ background-image: var(--novely-exit-dialog-background-image, none);
775
+ background-color: var(--novely-exit-dialog-background-color, #f092b4df);
776
+ background-position: var(--novely-exit-dialog-background-position);
777
+ background-size: var(--novely-exit-dialog-background-size);
761
778
  justify-content: center;
762
779
  align-items: center;
763
780
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.47.0-experemental.0",
3
+ "version": "0.48.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,17 +10,17 @@
10
10
  "module": "./dist/index.jsx",
11
11
  "sideEffects": false,
12
12
  "devDependencies": {
13
- "esbuild": "^0.24.0",
13
+ "esbuild": "^0.24.2",
14
14
  "esbuild-plugin-solid": "^0.6.0",
15
- "typescript": "^5.6.2"
15
+ "typescript": "^5.7.3"
16
16
  },
17
17
  "dependencies": {
18
- "@solid-primitives/destructure": "^0.1.17",
18
+ "@solid-primitives/destructure": "^0.2.0",
19
19
  "clsx": "^2.1.1",
20
- "es-toolkit": "^1.23.0",
21
- "solid-js": "~1.9.3",
20
+ "es-toolkit": "^1.31.0",
21
+ "solid-js": "~1.9.4",
22
22
  "solid-transition-group": "^0.2.3",
23
- "@novely/core": "0.49.0-experemental.0",
23
+ "@novely/core": "0.50.0",
24
24
  "@novely/renderer-toolkit": "0.12.1",
25
25
  "@novely/typewriter": "0.5.1"
26
26
  },