@tatamicks/core 1.0.1 → 1.0.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,21 +1,21 @@
1
1
  import { jsx as t, jsxs as p, Fragment as oe } from "react/jsx-runtime";
2
- import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as De, createContext as gt, useMemo as te, memo as fe, useId as an } from "react";
3
- import { Z as yt, a2 as _t, $ as xt, a3 as wt, a0 as Nt, P as F, d as Ct, y as K, L as he, B as on, a4 as sn, o as rn, J as cn, F as dn, j as ye, w as hn, m as Re, H as Ee, V as Ae, a5 as un, s as dt, e as pn, g as ht, u as mn, a as bn, t as vn, N as fn } from "./sidebarPortal-C06y4JSP.js";
2
+ import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as Pe, createContext as gt, useMemo as te, memo as fe, useId as an } from "react";
3
+ import { Z as yt, a8 as _t, a5 as xt, a9 as wt, a6 as Nt, P as F, d as Ct, M as K, L as he, B as on, aa as sn, x as rn, T as cn, F as dn, q as ye, J as hn, v as Re, H as Ee, V as Ae, ab as un, s as dt, e as pn, g as ht, l as mn, u as bn, a as vn, C as fn, N as gn } from "./sidebarPortal-BN6FVwaF.js";
4
4
  import { createPortal as St } from "react-dom";
5
- import './PalettePanel.css';const gn = "_container_1xv5c_4", yn = "_section_1xv5c_16", _n = "_divider_1xv5c_23", xn = "_sectionLabel_1xv5c_31", wn = "_select_1xv5c_38", Nn = "_numberInput_1xv5c_59", Cn = "_heightModeSwitch_1xv5c_87", Sn = "_switchLabel_1xv5c_93", In = "_switchLabelActive_1xv5c_101", $n = "_toggle_1xv5c_105", Ln = "_thumb_1xv5c_122", D = {
6
- container: gn,
7
- section: yn,
8
- divider: _n,
9
- sectionLabel: xn,
10
- select: wn,
11
- numberInput: Nn,
12
- heightModeSwitch: Cn,
13
- switchLabel: Sn,
14
- switchLabelActive: In,
15
- toggle: $n,
16
- thumb: Ln
17
- }, kn = (e) => /* @__PURE__ */ t("div", { className: D.divider, "aria-hidden": "true" });
18
- kn.displayName = "ActionBarDivider";
5
+ import './PalettePanel.css';const yn = "_container_1xv5c_4", _n = "_section_1xv5c_16", xn = "_divider_1xv5c_23", wn = "_sectionLabel_1xv5c_31", Nn = "_select_1xv5c_38", Cn = "_numberInput_1xv5c_59", Sn = "_heightModeSwitch_1xv5c_87", In = "_switchLabel_1xv5c_93", $n = "_switchLabelActive_1xv5c_101", Ln = "_toggle_1xv5c_105", kn = "_thumb_1xv5c_122", P = {
6
+ container: yn,
7
+ section: _n,
8
+ divider: xn,
9
+ sectionLabel: wn,
10
+ select: Nn,
11
+ numberInput: Cn,
12
+ heightModeSwitch: Sn,
13
+ switchLabel: In,
14
+ switchLabelActive: $n,
15
+ toggle: Ln,
16
+ thumb: kn
17
+ }, Tn = (e) => /* @__PURE__ */ t("div", { className: P.divider, "aria-hidden": "true" });
18
+ Tn.displayName = "ActionBarDivider";
19
19
  const Xe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
20
20
  "svg",
21
21
  {
@@ -241,7 +241,7 @@ const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
241
241
  }
242
242
  );
243
243
  kt.displayName = "BlockSettingsIcon";
244
- const Tn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
244
+ const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
245
245
  "svg",
246
246
  {
247
247
  viewBox: "0 0 24 24",
@@ -253,8 +253,8 @@ const Tn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
253
253
  children: /* @__PURE__ */ t("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })
254
254
  }
255
255
  );
256
- Tn.displayName = "ChevronLeftIcon";
257
- const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
256
+ En.displayName = "ChevronLeftIcon";
257
+ const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
258
258
  "svg",
259
259
  {
260
260
  viewBox: "0 0 24 24",
@@ -266,8 +266,8 @@ const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
266
266
  children: /* @__PURE__ */ t("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })
267
267
  }
268
268
  );
269
- En.displayName = "ChevronRightIcon";
270
- const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
269
+ An.displayName = "ChevronRightIcon";
270
+ const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
271
271
  "svg",
272
272
  {
273
273
  viewBox: "0 0 24 24",
@@ -279,8 +279,8 @@ const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
279
279
  children: /* @__PURE__ */ t("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })
280
280
  }
281
281
  );
282
- An.displayName = "AddPageIcon";
283
- const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
282
+ Mn.displayName = "AddPageIcon";
283
+ const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
284
284
  "svg",
285
285
  {
286
286
  viewBox: "0 0 24 24",
@@ -292,7 +292,7 @@ const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
292
292
  children: /* @__PURE__ */ t("path", { d: "M19 13H5v-2h14v2z" })
293
293
  }
294
294
  );
295
- Mn.displayName = "DeletePageIcon";
295
+ Dn.displayName = "DeletePageIcon";
296
296
  const Pn = {
297
297
  undo: {
298
298
  actionId: "undo",
@@ -354,10 +354,10 @@ const Pn = {
354
354
  message: "ページを削除しました",
355
355
  shortcut: null
356
356
  }
357
- }, lt = (e) => Pn[e], Dn = "_container_1tnp6_5", Bn = "_input_1tnp6_13", zn = "_label_1tnp6_29", Oe = {
358
- container: Dn,
359
- input: Bn,
360
- label: zn
357
+ }, lt = (e) => Pn[e], Bn = "_container_1tnp6_5", zn = "_input_1tnp6_13", Wn = "_label_1tnp6_29", Oe = {
358
+ container: Bn,
359
+ input: zn,
360
+ label: Wn
361
361
  }, ae = ({
362
362
  value: e,
363
363
  onChange: n,
@@ -386,19 +386,19 @@ const Pn = {
386
386
  ] });
387
387
  };
388
388
  ae.displayName = "Checkbox";
389
- const Wn = "_header_1c1mq_6", Rn = "_title_1c1mq_32", On = "_actions_1c1mq_43", Fn = "_titleGroup_1c1mq_49", jn = "_infoIcon_1c1mq_60", Un = "_chevron_1c1mq_84", Vn = "_chevronOpen_1c1mq_92", Gn = "_statusBadge_1c1mq_98", qn = "_statusBadgeOn_1c1mq_108", Hn = "_statusBadgeOff_1c1mq_113", Kn = "_content_1c1mq_120", Zn = "_contentNoPadding_1c1mq_127", W = {
390
- header: Wn,
391
- title: Rn,
392
- actions: On,
393
- titleGroup: Fn,
394
- infoIcon: jn,
395
- chevron: Un,
396
- chevronOpen: Vn,
389
+ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43", jn = "_titleGroup_1c1mq_49", Un = "_infoIcon_1c1mq_60", Vn = "_chevron_1c1mq_84", qn = "_chevronOpen_1c1mq_92", Gn = "_statusBadge_1c1mq_98", Hn = "_statusBadgeOn_1c1mq_108", Kn = "_statusBadgeOff_1c1mq_113", Zn = "_content_1c1mq_120", Yn = "_contentNoPadding_1c1mq_127", W = {
390
+ header: Rn,
391
+ title: On,
392
+ actions: Fn,
393
+ titleGroup: jn,
394
+ infoIcon: Un,
395
+ chevron: Vn,
396
+ chevronOpen: qn,
397
397
  statusBadge: Gn,
398
- statusBadgeOn: qn,
399
- statusBadgeOff: Hn,
400
- content: Kn,
401
- contentNoPadding: Zn
398
+ statusBadgeOn: Hn,
399
+ statusBadgeOff: Kn,
400
+ content: Zn,
401
+ contentNoPadding: Yn
402
402
  }, V = ({
403
403
  title: e,
404
404
  children: n,
@@ -504,7 +504,7 @@ function Le(e) {
504
504
  }
505
505
  return null;
506
506
  }
507
- function Yn(e) {
507
+ function Jn(e) {
508
508
  const { r: n, g: i, b: l, a } = e;
509
509
  if (a === 0)
510
510
  return;
@@ -515,7 +515,7 @@ function Yn(e) {
515
515
  }
516
516
  return `#${o}${c}${r}`;
517
517
  }
518
- const Jn = [
518
+ const Xn = [
519
519
  { label: "無色", value: void 0 },
520
520
  { label: "白", value: "#ffffff" },
521
521
  { label: "グレー1", value: "#efefef" },
@@ -546,25 +546,25 @@ const Jn = [
546
546
  { label: "青紫", value: "#9FC5E8" },
547
547
  { label: "紫", value: "#B4A7D6" },
548
548
  { label: "赤紫", value: "#D5A6BD" }
549
- ], Xn = "_container_1cdzu_5", Qn = "_colorButton_1cdzu_13", el = "_textInputWrapper_1cdzu_40", tl = "_textInputPrefix_1cdzu_62", nl = "_textInput_1cdzu_40", ll = "_popover_1cdzu_96", il = "_palette_1cdzu_112", al = "_paletteButton_1cdzu_119", ol = "_selected_1cdzu_142", sl = "_transparentPaletteButton_1cdzu_148", rl = "_rgbaInputs_1cdzu_154", cl = "_rgbaInputGroup_1cdzu_161", dl = "_rgbaLabel_1cdzu_175", z = {
550
- container: Xn,
551
- colorButton: Qn,
552
- textInputWrapper: el,
553
- textInputPrefix: tl,
554
- textInput: nl,
555
- popover: ll,
556
- palette: il,
557
- paletteButton: al,
558
- selected: ol,
559
- transparentPaletteButton: sl,
560
- rgbaInputs: rl,
561
- rgbaInputGroup: cl,
562
- rgbaLabel: dl
549
+ ], Qn = "_container_1cdzu_5", el = "_colorButton_1cdzu_13", tl = "_textInputWrapper_1cdzu_40", nl = "_textInputPrefix_1cdzu_62", ll = "_textInput_1cdzu_40", il = "_popover_1cdzu_96", al = "_palette_1cdzu_112", ol = "_paletteButton_1cdzu_119", sl = "_selected_1cdzu_142", rl = "_transparentPaletteButton_1cdzu_148", cl = "_rgbaInputs_1cdzu_154", dl = "_rgbaInputGroup_1cdzu_161", hl = "_rgbaLabel_1cdzu_175", z = {
550
+ container: Qn,
551
+ colorButton: el,
552
+ textInputWrapper: tl,
553
+ textInputPrefix: nl,
554
+ textInput: ll,
555
+ popover: il,
556
+ palette: al,
557
+ paletteButton: ol,
558
+ selected: sl,
559
+ transparentPaletteButton: rl,
560
+ rgbaInputs: cl,
561
+ rgbaInputGroup: dl,
562
+ rgbaLabel: hl
563
563
  }, Tt = ({
564
564
  onColorSelect: e,
565
565
  selectedColor: n,
566
566
  readOnly: i = !1
567
- }) => /* @__PURE__ */ t("div", { className: z.palette, children: Jn.map((l, a) => {
567
+ }) => /* @__PURE__ */ t("div", { className: z.palette, children: Xn.map((l, a) => {
568
568
  const o = l.value === void 0, c = l.value === n, r = o ? {} : { backgroundColor: l.value };
569
569
  return /* @__PURE__ */ t(
570
570
  "button",
@@ -581,9 +581,9 @@ const Jn = [
581
581
  );
582
582
  }) });
583
583
  Tt.displayName = "ColorPalette";
584
- const hl = "_input_14n56_5", ul = {
585
- input: hl
586
- }, q = ({
584
+ const ul = "_input_14n56_5", pl = {
585
+ input: ul
586
+ }, G = ({
587
587
  value: e,
588
588
  onChange: n,
589
589
  readOnly: i = !1,
@@ -614,7 +614,7 @@ const hl = "_input_14n56_5", ul = {
614
614
  "input",
615
615
  {
616
616
  type: "number",
617
- className: ul.input,
617
+ className: pl.input,
618
618
  style: I,
619
619
  value: e ?? "",
620
620
  onChange: k,
@@ -628,7 +628,7 @@ const hl = "_input_14n56_5", ul = {
628
628
  }
629
629
  );
630
630
  };
631
- q.displayName = "NumberInput";
631
+ G.displayName = "NumberInput";
632
632
  const Et = ({
633
633
  rgba: e,
634
634
  onChange: n,
@@ -637,7 +637,7 @@ const Et = ({
637
637
  /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
638
638
  /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "R" }),
639
639
  /* @__PURE__ */ t(
640
- q,
640
+ G,
641
641
  {
642
642
  value: e.r,
643
643
  onChange: (l) => n("r", l),
@@ -653,7 +653,7 @@ const Et = ({
653
653
  /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
654
654
  /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "G" }),
655
655
  /* @__PURE__ */ t(
656
- q,
656
+ G,
657
657
  {
658
658
  value: e.g,
659
659
  onChange: (l) => n("g", l),
@@ -669,7 +669,7 @@ const Et = ({
669
669
  /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
670
670
  /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "B" }),
671
671
  /* @__PURE__ */ t(
672
- q,
672
+ G,
673
673
  {
674
674
  value: e.b,
675
675
  onChange: (l) => n("b", l),
@@ -685,7 +685,7 @@ const Et = ({
685
685
  /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
686
686
  /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "A" }),
687
687
  /* @__PURE__ */ t(
688
- q,
688
+ G,
689
689
  {
690
690
  value: Math.round(e.a * 100),
691
691
  onChange: (l) => n("a", l !== void 0 ? l / 100 : void 0),
@@ -806,11 +806,11 @@ const le = ({
806
806
  (E, B) => {
807
807
  if (B === void 0) return;
808
808
  const J = { ..._, [E]: B };
809
- w(J), n(Yn(J));
809
+ w(J), n(Jn(J));
810
810
  },
811
811
  [_, n]
812
- ), T = e ?? "未設定", P = {};
813
- e && (P.background = e);
812
+ ), T = e ?? "未設定", D = {};
813
+ e && (D.background = e);
814
814
  const A = {};
815
815
  return h !== void 0 ? A.width = `${h}px` : A.width = "100%", f !== void 0 && (A.height = `${f}px`), /* @__PURE__ */ p("div", { className: z.container, style: A, ref: g, children: [
816
816
  /* @__PURE__ */ t(
@@ -822,7 +822,7 @@ const le = ({
822
822
  disabled: i,
823
823
  title: T,
824
824
  "aria-label": "カラーピッカーを開く",
825
- style: P
825
+ style: D
826
826
  }
827
827
  ),
828
828
  l && /* @__PURE__ */ p("div", { className: z.textInputWrapper, children: [
@@ -857,10 +857,10 @@ const le = ({
857
857
  ] });
858
858
  };
859
859
  le.displayName = "ColorPicker";
860
- const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_1n9lj_45", Fe = {
861
- container: pl,
862
- valueInput: ml,
863
- unitSelect: bl
860
+ const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_1n9lj_45", Fe = {
861
+ container: ml,
862
+ valueInput: bl,
863
+ unitSelect: vl
864
864
  }, j = (e) => {
865
865
  const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.allowedUnits ?? (a == null ? void 0 : a.allowedUnits), c = e.min ?? (a == null ? void 0 : a.min), r = e.max ?? (a == null ? void 0 : a.max), s = e.step ?? (a == null ? void 0 : a.step) ?? 1, d = e.placeholder ?? (a == null ? void 0 : a.placeholder), u = e.width ?? (a == null ? void 0 : a.width), h = e.height ?? (a == null ? void 0 : a.height), f = e.ariaLabel, v = (n == null ? void 0 : n.unit) ?? (o == null ? void 0 : o[0]), m = y(
866
866
  (k) => {
@@ -921,10 +921,10 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
921
921
  }
922
922
  )
923
923
  ] });
924
- }, vl = "_container_14f2v_5", fl = "_select_14f2v_11", gl = "_placeholderOverlay_14f2v_44", je = {
925
- container: vl,
926
- select: fl,
927
- placeholderOverlay: gl
924
+ }, fl = "_container_14f2v_5", gl = "_select_14f2v_11", yl = "_placeholderOverlay_14f2v_44", je = {
925
+ container: fl,
926
+ select: gl,
927
+ placeholderOverlay: yl
928
928
  }, ge = (e) => {
929
929
  const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.options ?? (a == null ? void 0 : a.options) ?? [], c = e.placeholder ?? (a == null ? void 0 : a.placeholder) ?? "選択してください", r = e.width ?? (a == null ? void 0 : a.width), s = e.height ?? (a == null ? void 0 : a.height), d = e.allowEmpty ?? (a == null ? void 0 : a.allowEmpty) ?? !0, u = y(
930
930
  (g) => {
@@ -965,8 +965,8 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
965
965
  ] });
966
966
  };
967
967
  ge.displayName = "Dropdown";
968
- const yl = "_button_16snt_1", _l = {
969
- button: yl
968
+ const _l = "_button_16snt_1", xl = {
969
+ button: _l
970
970
  }, Z = ({
971
971
  icon: e,
972
972
  label: n,
@@ -979,7 +979,7 @@ const yl = "_button_16snt_1", _l = {
979
979
  "button",
980
980
  {
981
981
  type: "button",
982
- className: _l.button,
982
+ className: xl.button,
983
983
  onMouseDown: c ? (r) => r.preventDefault() : void 0,
984
984
  onMouseEnter: l,
985
985
  onClick: i,
@@ -990,20 +990,20 @@ const yl = "_button_16snt_1", _l = {
990
990
  }
991
991
  );
992
992
  Z.displayName = "IconActionButton";
993
- const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_ytzac_29", Ue = {
994
- container: xl,
995
- scrollArea: wl,
996
- emptyState: Nl
993
+ const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_ytzac_29", Ue = {
994
+ container: wl,
995
+ scrollArea: Nl,
996
+ emptyState: Cl
997
997
  }, Mt = ({
998
998
  children: e,
999
999
  emptyMessage: n,
1000
1000
  className: i
1001
- }) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }), Cl = "_root_vttth_1", Sl = "_list_vttth_9", Il = "_trigger_vttth_24", $l = "_content_vttth_69", ze = {
1002
- root: Cl,
1003
- list: Sl,
1004
- trigger: Il,
1005
- content: $l
1006
- }, We = gt(void 0), Ll = ({
1001
+ }) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }), Sl = "_root_vttth_1", Il = "_list_vttth_9", $l = "_trigger_vttth_24", Ll = "_content_vttth_69", ze = {
1002
+ root: Sl,
1003
+ list: Il,
1004
+ trigger: $l,
1005
+ content: Ll
1006
+ }, We = gt(void 0), kl = ({
1007
1007
  defaultValue: e,
1008
1008
  value: n,
1009
1009
  onValueChange: i,
@@ -1015,14 +1015,14 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
1015
1015
  r(u), i == null || i(u);
1016
1016
  };
1017
1017
  return /* @__PURE__ */ t(We.Provider, { value: { value: s, onChange: d, variant: a }, children: /* @__PURE__ */ t("div", { className: `${ze.root} ${o}`, "data-variant": a, children: l }) });
1018
- }, kl = ({
1018
+ }, Tl = ({
1019
1019
  children: e,
1020
1020
  className: n = "",
1021
1021
  width: i,
1022
1022
  height: l,
1023
1023
  style: a
1024
1024
  }) => {
1025
- const o = De(We);
1025
+ const o = Pe(We);
1026
1026
  if (!o)
1027
1027
  throw new Error("TabsList must be used within a Tabs component");
1028
1028
  const { variant: c } = o, r = { ...a };
@@ -1044,7 +1044,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
1044
1044
  height: o,
1045
1045
  style: c
1046
1046
  }) => {
1047
- const r = De(We);
1047
+ const r = Pe(We);
1048
1048
  if (!r)
1049
1049
  throw new Error("TabsTrigger must be used within a Tabs component");
1050
1050
  const { value: s, onChange: d, variant: u } = r, h = s === e, f = { ...c };
@@ -1066,13 +1066,13 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
1066
1066
  children: n,
1067
1067
  className: i = ""
1068
1068
  }) => {
1069
- const l = De(We);
1069
+ const l = Pe(We);
1070
1070
  if (!l)
1071
1071
  throw new Error("TabsContent must be used within a Tabs component");
1072
1072
  const { value: a } = l;
1073
1073
  return a !== e ? null : /* @__PURE__ */ t("div", { className: `${ze.content} ${i}`, children: n });
1074
- }, Tl = "_input_jxjyc_5", El = {
1075
- input: Tl
1074
+ }, El = "_input_jxjyc_5", Al = {
1075
+ input: El
1076
1076
  }, Se = ({
1077
1077
  value: e,
1078
1078
  onChange: n,
@@ -1095,7 +1095,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
1095
1095
  ), w = {};
1096
1096
  r !== void 0 ? w.width = `${r}px` : w.width = "100%", s !== void 0 && (w.height = `${s}px`);
1097
1097
  const L = {
1098
- className: El.input,
1098
+ className: Al.input,
1099
1099
  style: w,
1100
1100
  value: e ?? "",
1101
1101
  onChange: _,
@@ -1107,7 +1107,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
1107
1107
  return m ? /* @__PURE__ */ t("textarea", { ...L, rows: g }) : /* @__PURE__ */ t("input", { ...L, type: "text", onBlur: h });
1108
1108
  };
1109
1109
  Se.displayName = "TextInput";
1110
- const Al = ({
1110
+ const Ml = ({
1111
1111
  actionContext: e,
1112
1112
  onActionFeedback: n,
1113
1113
  onPrint: i
@@ -1166,8 +1166,8 @@ const Al = ({
1166
1166
  )
1167
1167
  ] });
1168
1168
  };
1169
- Al.displayName = "CanvasActionSection";
1170
- const ut = { value: 1, unit: "fr" }, Ml = ({
1169
+ Ml.displayName = "CanvasActionSection";
1170
+ const ut = { value: 1, unit: "fr" }, Dl = ({
1171
1171
  grid: e,
1172
1172
  onGridChange: n
1173
1173
  }) => {
@@ -1199,12 +1199,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
1199
1199
  [e, n]
1200
1200
  );
1201
1201
  return /* @__PURE__ */ p(oe, { children: [
1202
- /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "列" }),
1202
+ /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "列" }),
1203
1203
  /* @__PURE__ */ t(
1204
1204
  "input",
1205
1205
  {
1206
1206
  type: "number",
1207
- className: D.numberInput,
1207
+ className: P.numberInput,
1208
1208
  value: e.colCount,
1209
1209
  min: 1,
1210
1210
  max: 100,
@@ -1213,12 +1213,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
1213
1213
  title: "列数"
1214
1214
  }
1215
1215
  ),
1216
- /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "行" }),
1216
+ /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "行" }),
1217
1217
  /* @__PURE__ */ t(
1218
1218
  "input",
1219
1219
  {
1220
1220
  type: "number",
1221
- className: D.numberInput,
1221
+ className: P.numberInput,
1222
1222
  value: e.rowCount,
1223
1223
  min: 1,
1224
1224
  max: 100,
@@ -1229,7 +1229,7 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
1229
1229
  )
1230
1230
  ] });
1231
1231
  };
1232
- Ml.displayName = "GridSettingsSection";
1232
+ Dl.displayName = "GridSettingsSection";
1233
1233
  function ke(e, n) {
1234
1234
  switch (n) {
1235
1235
  case "cm":
@@ -1247,7 +1247,7 @@ const Pl = [
1247
1247
  { value: F.LETTER, label: "Letter" },
1248
1248
  { value: F.LEGAL, label: "Legal" },
1249
1249
  { value: F.CUSTOM, label: "カスタム" }
1250
- ], Dl = ({
1250
+ ], Bl = ({
1251
1251
  paper: e,
1252
1252
  onPaperChange: n
1253
1253
  }) => {
@@ -1302,11 +1302,11 @@ const Pl = [
1302
1302
  n({ ...e, autoWidth: a ? void 0 : !0 });
1303
1303
  }, [e, a, n]);
1304
1304
  return /* @__PURE__ */ p(oe, { children: [
1305
- /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "用紙" }),
1305
+ /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "用紙" }),
1306
1306
  /* @__PURE__ */ t(
1307
1307
  "select",
1308
1308
  {
1309
- className: D.select,
1309
+ className: P.select,
1310
1310
  value: e.size.preset,
1311
1311
  onChange: o,
1312
1312
  "aria-label": "用紙サイズ",
@@ -1314,11 +1314,11 @@ const Pl = [
1314
1314
  children: Pl.map((h) => /* @__PURE__ */ t("option", { value: h.value, children: h.label }, h.value))
1315
1315
  }
1316
1316
  ),
1317
- /* @__PURE__ */ p("div", { className: D.heightModeSwitch, children: [
1317
+ /* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
1318
1318
  /* @__PURE__ */ t(
1319
1319
  "span",
1320
1320
  {
1321
- className: `${D.switchLabel} ${l ? "" : D.switchLabelActive}`,
1321
+ className: `${P.switchLabel} ${l ? "" : P.switchLabelActive}`,
1322
1322
  children: "固定"
1323
1323
  }
1324
1324
  ),
@@ -1329,24 +1329,24 @@ const Pl = [
1329
1329
  role: "switch",
1330
1330
  "aria-checked": l,
1331
1331
  "aria-label": "高さモード",
1332
- className: D.toggle,
1332
+ className: P.toggle,
1333
1333
  onClick: d,
1334
- children: /* @__PURE__ */ t("span", { className: D.thumb })
1334
+ children: /* @__PURE__ */ t("span", { className: P.thumb })
1335
1335
  }
1336
1336
  ),
1337
1337
  /* @__PURE__ */ t(
1338
1338
  "span",
1339
1339
  {
1340
- className: `${D.switchLabel} ${l ? D.switchLabelActive : ""}`,
1340
+ className: `${P.switchLabel} ${l ? P.switchLabelActive : ""}`,
1341
1341
  children: "自動"
1342
1342
  }
1343
1343
  )
1344
1344
  ] }),
1345
- /* @__PURE__ */ p("div", { className: D.heightModeSwitch, children: [
1345
+ /* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
1346
1346
  /* @__PURE__ */ t(
1347
1347
  "span",
1348
1348
  {
1349
- className: `${D.switchLabel} ${a ? "" : D.switchLabelActive}`,
1349
+ className: `${P.switchLabel} ${a ? "" : P.switchLabelActive}`,
1350
1350
  children: "幅固定"
1351
1351
  }
1352
1352
  ),
@@ -1357,15 +1357,15 @@ const Pl = [
1357
1357
  role: "switch",
1358
1358
  "aria-checked": a,
1359
1359
  "aria-label": "幅モード",
1360
- className: D.toggle,
1360
+ className: P.toggle,
1361
1361
  onClick: u,
1362
- children: /* @__PURE__ */ t("span", { className: D.thumb })
1362
+ children: /* @__PURE__ */ t("span", { className: P.thumb })
1363
1363
  }
1364
1364
  ),
1365
1365
  /* @__PURE__ */ t(
1366
1366
  "span",
1367
1367
  {
1368
- className: `${D.switchLabel} ${a ? D.switchLabelActive : ""}`,
1368
+ className: `${P.switchLabel} ${a ? P.switchLabelActive : ""}`,
1369
1369
  children: "幅自動"
1370
1370
  }
1371
1371
  )
@@ -1375,7 +1375,7 @@ const Pl = [
1375
1375
  "input",
1376
1376
  {
1377
1377
  type: "number",
1378
- className: D.numberInput,
1378
+ className: P.numberInput,
1379
1379
  value: e.size.width.value,
1380
1380
  min: ke(
1381
1381
  K.fromDim(e.margin.left) + K.fromDim(e.margin.right),
@@ -1388,12 +1388,12 @@ const Pl = [
1388
1388
  title: "幅"
1389
1389
  }
1390
1390
  ),
1391
- /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "×" }),
1391
+ /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "×" }),
1392
1392
  /* @__PURE__ */ t(
1393
1393
  "input",
1394
1394
  {
1395
1395
  type: "number",
1396
- className: D.numberInput,
1396
+ className: P.numberInput,
1397
1397
  value: e.size.height.value,
1398
1398
  min: ke(
1399
1399
  K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom),
@@ -1409,7 +1409,7 @@ const Pl = [
1409
1409
  /* @__PURE__ */ p(
1410
1410
  "select",
1411
1411
  {
1412
- className: D.select,
1412
+ className: P.select,
1413
1413
  value: e.size.width.unit,
1414
1414
  onChange: s,
1415
1415
  "aria-label": "用紙単位",
@@ -1424,7 +1424,7 @@ const Pl = [
1424
1424
  ] })
1425
1425
  ] });
1426
1426
  };
1427
- Dl.displayName = "PaperSettingsSection";
1427
+ Bl.displayName = "PaperSettingsSection";
1428
1428
  function ne(e, n, i) {
1429
1429
  const l = n.split("."), a = (o, c) => {
1430
1430
  const r = l[c];
@@ -1459,7 +1459,7 @@ function Y(e, n) {
1459
1459
  (c) => i(c, l) === a
1460
1460
  ) ? a : void 0;
1461
1461
  }
1462
- function Bl(e, n, i) {
1462
+ function zl(e, n, i) {
1463
1463
  var o, c;
1464
1464
  if (!e) return [];
1465
1465
  const l = [], a = [
@@ -1496,7 +1496,7 @@ function Bl(e, n, i) {
1496
1496
  }
1497
1497
  return l;
1498
1498
  }
1499
- function zl(e) {
1499
+ function Wl(e) {
1500
1500
  const n = e == null ? void 0 : e.border;
1501
1501
  if (!n) return;
1502
1502
  const i = (a) => {
@@ -1563,9 +1563,9 @@ const it = ({
1563
1563
  ), o = te(() => {
1564
1564
  if (e.length !== 1) return;
1565
1565
  const u = e[0];
1566
- return zl(u == null ? void 0 : u.style);
1566
+ return Wl(u == null ? void 0 : u.style);
1567
1567
  }, [e]), c = te(
1568
- () => Bl(o, 80, 80),
1568
+ () => zl(o, 80, 80),
1569
1569
  [o]
1570
1570
  );
1571
1571
  if (e.length === 0) return null;
@@ -1761,8 +1761,8 @@ const it = ({
1761
1761
  allowUndefined: !0
1762
1762
  }
1763
1763
  ),
1764
- /* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(Ll, { defaultValue: "all", variant: "segmented", children: [
1765
- /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(kl, { style: { width: "100%", display: "flex" }, children: [
1764
+ /* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(kl, { defaultValue: "all", variant: "segmented", children: [
1765
+ /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(Tl, { style: { width: "100%", display: "flex" }, children: [
1766
1766
  /* @__PURE__ */ t(_e, { value: "all", height: 24, style: d, children: "共通" }),
1767
1767
  /* @__PURE__ */ t(_e, { value: "top", height: 24, style: d, children: "上" }),
1768
1768
  /* @__PURE__ */ t(_e, { value: "bottom", height: 24, style: d, children: "下" }),
@@ -1782,12 +1782,12 @@ const it = ({
1782
1782
  );
1783
1783
  };
1784
1784
  it.displayName = "BackgroundBorderPanel";
1785
- const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", Fl = "_label_1gf2q_22", jl = "_inputWrapper_1gf2q_32", G = {
1786
- container: Wl,
1787
- grid: Rl,
1788
- field: Ol,
1789
- label: Fl,
1790
- inputWrapper: jl
1785
+ const Rl = "_container_1gf2q_1", Ol = "_grid_1gf2q_9", Fl = "_field_1gf2q_15", jl = "_label_1gf2q_22", Ul = "_inputWrapper_1gf2q_32", q = {
1786
+ container: Rl,
1787
+ grid: Ol,
1788
+ field: Fl,
1789
+ label: jl,
1790
+ inputWrapper: Ul
1791
1791
  }, at = ({
1792
1792
  selectedBlocks: e,
1793
1793
  onUpdateBlocks: n,
@@ -1835,11 +1835,11 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1835
1835
  )
1836
1836
  });
1837
1837
  };
1838
- return /* @__PURE__ */ t("div", { className: G.container, children: /* @__PURE__ */ p("div", { className: G.grid, children: [
1839
- /* @__PURE__ */ p("div", { className: G.field, children: [
1840
- /* @__PURE__ */ t("span", { className: G.label, children: "X" }),
1841
- /* @__PURE__ */ t("div", { className: G.inputWrapper, children: /* @__PURE__ */ t(
1842
- q,
1838
+ return /* @__PURE__ */ t("div", { className: q.container, children: /* @__PURE__ */ p("div", { className: q.grid, children: [
1839
+ /* @__PURE__ */ p("div", { className: q.field, children: [
1840
+ /* @__PURE__ */ t("span", { className: q.label, children: "X" }),
1841
+ /* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
1842
+ G,
1843
1843
  {
1844
1844
  value: l ? a : Y(e, "layout.x"),
1845
1845
  onChange: (r) => c("x", r),
@@ -1851,10 +1851,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1851
1851
  }
1852
1852
  ) })
1853
1853
  ] }),
1854
- /* @__PURE__ */ p("div", { className: G.field, children: [
1855
- /* @__PURE__ */ t("span", { className: G.label, children: "Y" }),
1856
- /* @__PURE__ */ t("div", { className: G.inputWrapper, children: /* @__PURE__ */ t(
1857
- q,
1854
+ /* @__PURE__ */ p("div", { className: q.field, children: [
1855
+ /* @__PURE__ */ t("span", { className: q.label, children: "Y" }),
1856
+ /* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
1857
+ G,
1858
1858
  {
1859
1859
  value: l ? o : Y(e, "layout.y"),
1860
1860
  onChange: (r) => c("y", r),
@@ -1866,10 +1866,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1866
1866
  }
1867
1867
  ) })
1868
1868
  ] }),
1869
- /* @__PURE__ */ p("div", { className: G.field, children: [
1870
- /* @__PURE__ */ t("span", { className: G.label, children: "W" }),
1871
- /* @__PURE__ */ t("div", { className: G.inputWrapper, children: /* @__PURE__ */ t(
1872
- q,
1869
+ /* @__PURE__ */ p("div", { className: q.field, children: [
1870
+ /* @__PURE__ */ t("span", { className: q.label, children: "W" }),
1871
+ /* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
1872
+ G,
1873
1873
  {
1874
1874
  value: Y(e, "layout.w"),
1875
1875
  onChange: (r) => c("w", r),
@@ -1881,10 +1881,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1881
1881
  }
1882
1882
  ) })
1883
1883
  ] }),
1884
- /* @__PURE__ */ p("div", { className: G.field, children: [
1885
- /* @__PURE__ */ t("span", { className: G.label, children: "H" }),
1886
- /* @__PURE__ */ t("div", { className: G.inputWrapper, children: /* @__PURE__ */ t(
1887
- q,
1884
+ /* @__PURE__ */ p("div", { className: q.field, children: [
1885
+ /* @__PURE__ */ t("span", { className: q.label, children: "H" }),
1886
+ /* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
1887
+ G,
1888
1888
  {
1889
1889
  value: Y(e, "layout.h"),
1890
1890
  onChange: (r) => c("h", r),
@@ -1899,9 +1899,9 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1899
1899
  ] }) });
1900
1900
  };
1901
1901
  at.displayName = "LayoutPanel";
1902
- const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13", Gl = "_active_xhfvf_46", Ve = {
1903
- group: Ul,
1904
- btn: Vl,
1902
+ const Vl = "_group_xhfvf_1", ql = "_btn_xhfvf_13", Gl = "_active_xhfvf_46", Ve = {
1903
+ group: Vl,
1904
+ btn: ql,
1905
1905
  active: Gl
1906
1906
  }, Ze = fe(
1907
1907
  ({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: Ve.group, children: e.map((l) => {
@@ -1932,7 +1932,7 @@ const se = rn.defaultProps.styleConfig, re = {
1932
1932
  display: "flex",
1933
1933
  gap: 4,
1934
1934
  alignItems: "center"
1935
- }, Pt = ({
1935
+ }, Dt = ({
1936
1936
  value: e,
1937
1937
  onChange: n,
1938
1938
  readOnly: i = !1
@@ -2063,16 +2063,16 @@ const se = rn.defaultProps.styleConfig, re = {
2063
2063
  ] })
2064
2064
  ] });
2065
2065
  };
2066
- Pt.displayName = "CheckboxStyleEditor";
2067
- const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl = "_iconBold_1uyid_52", Yl = "_iconItalic_1uyid_59", Jl = "_iconUnderline_1uyid_66", Xl = "_iconLineThrough_1uyid_73", ue = {
2068
- group: ql,
2069
- btn: Hl,
2070
- active: Kl,
2071
- iconBold: Zl,
2072
- iconItalic: Yl,
2073
- iconUnderline: Jl,
2074
- iconLineThrough: Xl
2075
- }, Ql = [
2066
+ Dt.displayName = "CheckboxStyleEditor";
2067
+ const Hl = "_group_1uyid_1", Kl = "_btn_1uyid_13", Zl = "_active_1uyid_46", Yl = "_iconBold_1uyid_52", Jl = "_iconItalic_1uyid_59", Xl = "_iconUnderline_1uyid_66", Ql = "_iconLineThrough_1uyid_73", ue = {
2068
+ group: Hl,
2069
+ btn: Kl,
2070
+ active: Zl,
2071
+ iconBold: Yl,
2072
+ iconItalic: Jl,
2073
+ iconUnderline: Xl,
2074
+ iconLineThrough: Ql
2075
+ }, ei = [
2076
2076
  {
2077
2077
  key: "fontWeight",
2078
2078
  label: "太字",
@@ -2093,7 +2093,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
2093
2093
  label: "取り消し線",
2094
2094
  icon: /* @__PURE__ */ t("span", { className: ue.iconLineThrough, "aria-hidden": "true", children: "S" })
2095
2095
  }
2096
- ], Dt = ({
2096
+ ], Pt = ({
2097
2097
  value: e,
2098
2098
  onChange: n,
2099
2099
  readOnly: i = !1
@@ -2101,7 +2101,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
2101
2101
  const l = e ?? {}, a = (o) => {
2102
2102
  i || n({ ...l, [o]: !l[o] });
2103
2103
  };
2104
- return /* @__PURE__ */ t("fieldset", { className: ue.group, children: Ql.map(({ key: o, label: c, icon: r }) => {
2104
+ return /* @__PURE__ */ t("fieldset", { className: ue.group, children: ei.map(({ key: o, label: c, icon: r }) => {
2105
2105
  const s = !!l[o];
2106
2106
  return /* @__PURE__ */ t(
2107
2107
  "button",
@@ -2119,13 +2119,13 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
2119
2119
  );
2120
2120
  }) });
2121
2121
  };
2122
- Dt.displayName = "FontDecorationToggle";
2123
- const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell_12n4v_14", li = "_colorCell_12n4v_15", we = {
2124
- root: ei,
2125
- fontFamilyCell: ti,
2126
- fontSizeCell: ni,
2127
- colorCell: li
2128
- }, ii = [
2122
+ Pt.displayName = "FontDecorationToggle";
2123
+ const ti = "_root_12n4v_6", ni = "_fontFamilyCell_12n4v_13", li = "_fontSizeCell_12n4v_14", ii = "_colorCell_12n4v_15", we = {
2124
+ root: ti,
2125
+ fontFamilyCell: ni,
2126
+ fontSizeCell: li,
2127
+ colorCell: ii
2128
+ }, ai = [
2129
2129
  { label: "ゴシック体", value: "sans-serif" },
2130
2130
  { label: "明朝体", value: "serif" },
2131
2131
  { label: "等幅", value: "monospace" },
@@ -2167,7 +2167,7 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
2167
2167
  value: l.fontFamily,
2168
2168
  onChange: a,
2169
2169
  readOnly: i,
2170
- options: ii,
2170
+ options: ai,
2171
2171
  placeholder: "フォント"
2172
2172
  }
2173
2173
  ) }),
@@ -2190,7 +2190,7 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
2190
2190
  }
2191
2191
  ) }),
2192
2192
  /* @__PURE__ */ t("div", { className: we.decorationCell, children: /* @__PURE__ */ t(
2193
- Dt,
2193
+ Pt,
2194
2194
  {
2195
2195
  value: s,
2196
2196
  onChange: r,
@@ -2450,14 +2450,14 @@ const zt = ({
2450
2450
  ] });
2451
2451
  };
2452
2452
  zt.displayName = "OptionsEditor";
2453
- const ai = "_root_111zo_7", oi = "_linkLabel_111zo_14", si = "_allRow_111zo_31", ri = "_grid_111zo_38", ci = "_sideRow_111zo_45", di = "_cell_111zo_53", hi = "_spacer_111zo_59", Q = {
2454
- root: ai,
2455
- linkLabel: oi,
2456
- allRow: si,
2457
- grid: ri,
2458
- sideRow: ci,
2459
- cell: di,
2460
- spacer: hi
2453
+ const oi = "_root_111zo_7", si = "_linkLabel_111zo_14", ri = "_allRow_111zo_31", ci = "_grid_111zo_38", di = "_sideRow_111zo_45", hi = "_cell_111zo_53", ui = "_spacer_111zo_59", Q = {
2454
+ root: oi,
2455
+ linkLabel: si,
2456
+ allRow: ri,
2457
+ grid: ci,
2458
+ sideRow: di,
2459
+ cell: hi,
2460
+ spacer: ui
2461
2461
  }, Wt = ({
2462
2462
  bulk: e,
2463
2463
  onChange: n,
@@ -2584,16 +2584,16 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2584
2584
  ] });
2585
2585
  };
2586
2586
  Rt.displayName = "PaddingEditor";
2587
- const Ne = hn.defaultProps, ui = [
2587
+ const Ne = hn.defaultProps, pi = [
2588
2588
  { label: "標準", value: Re.normal },
2589
2589
  { label: "単語で折り返し", value: Re.breakWord },
2590
2590
  { label: "文字で折り返し", value: Re.breakAll }
2591
- ], Ge = {
2591
+ ], qe = {
2592
2592
  display: "flex",
2593
2593
  alignItems: "center",
2594
2594
  gap: 6,
2595
2595
  marginBottom: 4
2596
- }, qe = {
2596
+ }, Ge = {
2597
2597
  fontSize: 11,
2598
2598
  color: "#666",
2599
2599
  minWidth: 72,
@@ -2605,8 +2605,8 @@ const Ne = hn.defaultProps, ui = [
2605
2605
  onChange: l,
2606
2606
  readOnly: a = !1
2607
2607
  }) => /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
2608
- /* @__PURE__ */ p("div", { style: Ge, children: [
2609
- /* @__PURE__ */ t("span", { style: qe, children: "複数行" }),
2608
+ /* @__PURE__ */ p("div", { style: qe, children: [
2609
+ /* @__PURE__ */ t("span", { style: Ge, children: "複数行" }),
2610
2610
  /* @__PURE__ */ t(
2611
2611
  ae,
2612
2612
  {
@@ -2617,10 +2617,10 @@ const Ne = hn.defaultProps, ui = [
2617
2617
  }
2618
2618
  )
2619
2619
  ] }),
2620
- /* @__PURE__ */ p("div", { style: Ge, children: [
2621
- /* @__PURE__ */ t("span", { style: qe, children: "行間" }),
2620
+ /* @__PURE__ */ p("div", { style: qe, children: [
2621
+ /* @__PURE__ */ t("span", { style: Ge, children: "行間" }),
2622
2622
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2623
- q,
2623
+ G,
2624
2624
  {
2625
2625
  value: n ?? Ne.lineHeight,
2626
2626
  onChange: (o) => l("lineHeight", o ?? Ne.lineHeight),
@@ -2632,14 +2632,14 @@ const Ne = hn.defaultProps, ui = [
2632
2632
  }
2633
2633
  ) })
2634
2634
  ] }),
2635
- /* @__PURE__ */ p("div", { style: Ge, children: [
2636
- /* @__PURE__ */ t("span", { style: qe, children: "折り返し" }),
2635
+ /* @__PURE__ */ p("div", { style: qe, children: [
2636
+ /* @__PURE__ */ t("span", { style: Ge, children: "折り返し" }),
2637
2637
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2638
2638
  ge,
2639
2639
  {
2640
2640
  value: i ?? Ne.wordWrap,
2641
2641
  onChange: (o) => l("wordWrap", o ?? Ne.wordWrap),
2642
- options: ui,
2642
+ options: pi,
2643
2643
  readOnly: a,
2644
2644
  height: 24
2645
2645
  }
@@ -2685,10 +2685,10 @@ const Me = [
2685
2685
  hideLength: !0
2686
2686
  },
2687
2687
  { label: "その他", inputType: "text", isCustom: !0 }
2688
- ], pi = Me.map((e) => ({
2688
+ ], mi = Me.map((e) => ({
2689
2689
  label: e.label,
2690
2690
  value: e.label
2691
- })), mi = `[0-9] 数字のみ
2691
+ })), bi = `[0-9] 数字のみ
2692
2692
  [a-z] 英小文字
2693
2693
  [A-Z] 英大文字
2694
2694
  [ぁ-ん] ひらがな
@@ -2750,7 +2750,7 @@ const Me = [
2750
2750
  {
2751
2751
  value: _,
2752
2752
  onChange: k,
2753
- options: pi,
2753
+ options: mi,
2754
2754
  readOnly: c,
2755
2755
  height: 24
2756
2756
  }
@@ -2764,7 +2764,7 @@ const Me = [
2764
2764
  style: { display: "flex", alignItems: "center", gap: 4, flex: 1 },
2765
2765
  children: [
2766
2766
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2767
- q,
2767
+ G,
2768
2768
  {
2769
2769
  value: n,
2770
2770
  onChange: (I) => a("minLength", I ?? null),
@@ -2776,7 +2776,7 @@ const Me = [
2776
2776
  ) }),
2777
2777
  /* @__PURE__ */ t("span", { style: { fontSize: 11, color: "#666" }, children: "〜" }),
2778
2778
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2779
- q,
2779
+ G,
2780
2780
  {
2781
2781
  value: i,
2782
2782
  onChange: (I) => a("maxLength", I ?? null),
@@ -2867,7 +2867,7 @@ const Me = [
2867
2867
  whiteSpace: "pre",
2868
2868
  pointerEvents: "none"
2869
2869
  },
2870
- children: mi
2870
+ children: bi
2871
2871
  }
2872
2872
  ),
2873
2873
  document.body
@@ -2885,7 +2885,7 @@ const jt = {
2885
2885
  textBehavior: "テキスト動作",
2886
2886
  selectConfig: "選択肢設定",
2887
2887
  checkboxStyle: "チェックボックスデザイン"
2888
- }, bi = [
2888
+ }, vi = [
2889
2889
  {
2890
2890
  value: Ee.left,
2891
2891
  label: "左揃え",
@@ -2916,7 +2916,7 @@ const jt = {
2916
2916
  /* @__PURE__ */ t("rect", { x: "5", y: "11", width: "7", height: "2.5", rx: "0.5" })
2917
2917
  ] })
2918
2918
  }
2919
- ], vi = [
2919
+ ], fi = [
2920
2920
  {
2921
2921
  value: Ae.top,
2922
2922
  label: "上揃え",
@@ -2948,7 +2948,7 @@ const jt = {
2948
2948
  function me(e) {
2949
2949
  return typeof e == "object" && e !== null && typeof e.value == "number" && typeof e.unit == "string";
2950
2950
  }
2951
- function fi(e) {
2951
+ function gi(e) {
2952
2952
  return typeof e == "object" && e !== null && Array.isArray(e.options);
2953
2953
  }
2954
2954
  const ot = fe(
@@ -2977,7 +2977,7 @@ const ot = fe(
2977
2977
  /* @__PURE__ */ t(
2978
2978
  Ze,
2979
2979
  {
2980
- options: bi,
2980
+ options: vi,
2981
2981
  current: r,
2982
2982
  onChange: (d) => l("horizontal", d)
2983
2983
  }
@@ -2985,7 +2985,7 @@ const ot = fe(
2985
2985
  /* @__PURE__ */ t(
2986
2986
  Ze,
2987
2987
  {
2988
- options: vi,
2988
+ options: fi,
2989
2989
  current: s,
2990
2990
  onChange: (d) => l("vertical", d)
2991
2991
  }
@@ -3087,7 +3087,7 @@ const ot = fe(
3087
3087
  case "checkboxStyle": {
3088
3088
  const r = i("styleConfig");
3089
3089
  return /* @__PURE__ */ t(
3090
- Pt,
3090
+ Dt,
3091
3091
  {
3092
3092
  value: r,
3093
3093
  onChange: (s) => l("styleConfig", s)
@@ -3095,7 +3095,7 @@ const ot = fe(
3095
3095
  );
3096
3096
  }
3097
3097
  case "selectConfig": {
3098
- const r = i("selectConfig"), s = fi(r) ? r : { options: [] };
3098
+ const r = i("selectConfig"), s = gi(r) ? r : { options: [] };
3099
3099
  return /* @__PURE__ */ t(
3100
3100
  zt,
3101
3101
  {
@@ -3239,11 +3239,11 @@ const st = ({
3239
3239
  return c.properties.length === 0 ? null : a ? /* @__PURE__ */ t(V, { title: c.meta.displayName, children: u }) : /* @__PURE__ */ t("div", { children: u });
3240
3240
  };
3241
3241
  st.displayName = "PluginPanels";
3242
- const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26", xi = "_popover_13lr1_31", Ie = {
3243
- bar: gi,
3244
- divider: yi,
3245
- barWrapper: _i,
3246
- popover: xi
3242
+ const yi = "_bar_13lr1_4", _i = "_divider_13lr1_18", xi = "_barWrapper_13lr1_26", wi = "_popover_13lr1_31", Ie = {
3243
+ bar: yi,
3244
+ divider: _i,
3245
+ barWrapper: xi,
3246
+ popover: wi
3247
3247
  }, ve = ({
3248
3248
  icon: e,
3249
3249
  label: n,
@@ -3265,15 +3265,15 @@ const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26"
3265
3265
  );
3266
3266
  ve.displayName = "SelectionActionBarButton";
3267
3267
  const Vt = gt(null);
3268
- function wi() {
3269
- const e = De(Vt);
3268
+ function Ni() {
3269
+ const e = Pe(Vt);
3270
3270
  if (e === null)
3271
3271
  throw new Error(
3272
3272
  "useSelectionActionBar must be used inside SelectionActionBar"
3273
3273
  );
3274
3274
  return e;
3275
3275
  }
3276
- const Ni = ({
3276
+ const Ci = ({
3277
3277
  items: e = [],
3278
3278
  className: n,
3279
3279
  style: i,
@@ -3343,8 +3343,8 @@ const Ni = ({
3343
3343
  }
3344
3344
  );
3345
3345
  };
3346
- Ni.displayName = "SelectionActionBar";
3347
- const Pe = ({
3346
+ Ci.displayName = "SelectionActionBar";
3347
+ const De = ({
3348
3348
  id: e,
3349
3349
  icon: n,
3350
3350
  label: i,
@@ -3356,7 +3356,7 @@ const Pe = ({
3356
3356
  openPanelByClick: c,
3357
3357
  onPointerDown: r,
3358
3358
  wrapperEl: s
3359
- } = wi();
3359
+ } = Ni();
3360
3360
  return /* @__PURE__ */ p(oe, { children: [
3361
3361
  /* @__PURE__ */ t(
3362
3362
  ve,
@@ -3381,8 +3381,8 @@ const Pe = ({
3381
3381
  )
3382
3382
  ] });
3383
3383
  };
3384
- Pe.displayName = "SelectionActionBarPanel";
3385
- function Oa({
3384
+ De.displayName = "SelectionActionBarPanel";
3385
+ function Fa({
3386
3386
  context: e,
3387
3387
  gridSize: n,
3388
3388
  onActionFeedback: i
@@ -3452,7 +3452,7 @@ function Oa({
3452
3452
  )
3453
3453
  ), h && g.push(
3454
3454
  /* @__PURE__ */ t(
3455
- Pe,
3455
+ De,
3456
3456
  {
3457
3457
  id: "style",
3458
3458
  icon: /* @__PURE__ */ t($t, { "aria-hidden": "true" }),
@@ -3468,7 +3468,7 @@ function Oa({
3468
3468
  "style"
3469
3469
  ),
3470
3470
  /* @__PURE__ */ t(
3471
- Pe,
3471
+ De,
3472
3472
  {
3473
3473
  id: "layout",
3474
3474
  icon: /* @__PURE__ */ t(Lt, { "aria-hidden": "true" }),
@@ -3486,7 +3486,7 @@ function Oa({
3486
3486
  )
3487
3487
  ), f && g.push(
3488
3488
  /* @__PURE__ */ t(
3489
- Pe,
3489
+ De,
3490
3490
  {
3491
3491
  id: "plugin",
3492
3492
  icon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
@@ -3505,7 +3505,7 @@ function Oa({
3505
3505
  )
3506
3506
  ), g;
3507
3507
  }
3508
- const pt = 8, Ci = 36, Fa = ({
3508
+ const pt = 8, Si = 36, ja = ({
3509
3509
  selectionBoundingBox: e,
3510
3510
  isDragging: n,
3511
3511
  zIndex: i = yt.SELECTION_ACTION_BAR,
@@ -3513,7 +3513,7 @@ const pt = 8, Ci = 36, Fa = ({
3513
3513
  }) => {
3514
3514
  if (e == null || n)
3515
3515
  return null;
3516
- const a = e, o = a.top - pt - Ci, c = o >= 0 ? o : a.bottom + pt, r = {
3516
+ const a = e, o = a.top - pt - Si, c = o >= 0 ? o : a.bottom + pt, r = {
3517
3517
  position: "absolute",
3518
3518
  inset: 0,
3519
3519
  pointerEvents: "none",
@@ -3544,7 +3544,7 @@ const pt = 8, Ci = 36, Fa = ({
3544
3544
  }
3545
3545
  );
3546
3546
  };
3547
- function ja(e, n) {
3547
+ function Ua(e, n) {
3548
3548
  const [i, l] = O(null);
3549
3549
  return pe(() => {
3550
3550
  if (n.length === 0) {
@@ -3581,18 +3581,18 @@ function ja(e, n) {
3581
3581
  return () => cancelAnimationFrame(a);
3582
3582
  }, [e, n]), i;
3583
3583
  }
3584
- const Si = "_container_3lvww_1", Ii = "_row_3lvww_9", $i = "_label_3lvww_15", Li = "_inputWrapper_3lvww_24", ki = "_error_3lvww_31", X = {
3585
- container: Si,
3586
- row: Ii,
3587
- label: $i,
3588
- inputWrapper: Li,
3589
- error: ki
3584
+ const Ii = "_container_3lvww_1", $i = "_row_3lvww_9", Li = "_label_3lvww_15", ki = "_inputWrapper_3lvww_24", Ti = "_error_3lvww_31", X = {
3585
+ container: Ii,
3586
+ row: $i,
3587
+ label: Li,
3588
+ inputWrapper: ki,
3589
+ error: Ti
3590
3590
  };
3591
3591
  function mt(e, n, i) {
3592
3592
  const l = e.trim();
3593
3593
  return l ? /\s/.test(l) ? "スペースは使用できません" : l !== n && (i != null && i.has(l)) ? "このIDは既に使用されています" : null : "IDを入力してください";
3594
3594
  }
3595
- const Gt = ({
3595
+ const qt = ({
3596
3596
  selectedBlocks: e,
3597
3597
  onUpdateBlocks: n,
3598
3598
  allBlockIds: i
@@ -3680,17 +3680,17 @@ const Gt = ({
3680
3680
  ) }) })
3681
3681
  ] });
3682
3682
  };
3683
- Gt.displayName = "MetaPanel";
3684
- const Ti = "_container_2zb6l_1", Ei = "_scrollArea_2zb6l_18", Ai = "_emptyState_2zb6l_33", Ye = {
3685
- container: Ti,
3686
- scrollArea: Ei,
3687
- emptyState: Ai
3683
+ qt.displayName = "MetaPanel";
3684
+ const Ei = "_container_2zb6l_1", Ai = "_scrollArea_2zb6l_18", Mi = "_emptyState_2zb6l_33", Ye = {
3685
+ container: Ei,
3686
+ scrollArea: Ai,
3687
+ emptyState: Mi
3688
3688
  }, Je = ({
3689
3689
  children: e,
3690
3690
  className: n = ""
3691
3691
  }) => /* @__PURE__ */ t("div", { className: `${Ye.container}${n ? ` ${n}` : ""}`, children: e });
3692
3692
  Je.displayName = "BlockPropertyPanel";
3693
- const Mi = fe(
3693
+ const Di = fe(
3694
3694
  ({ context: e, gridSize: n, className: i = "" }) => {
3695
3695
  const { pluginRegistry: l, actionContext: a } = e, o = e.editorState.pageIdx, c = e.book.pages[o], r = e.editorState.selectedBlockIds ?? [], s = (c == null ? void 0 : c.blocks.filter((g) => r.includes(g.id))) ?? [], d = c == null ? void 0 : c.blockDefaults, u = (g, _) => a.execute("updateBlocks", { updates: g, options: _ }), h = new Set((c == null ? void 0 : c.blocks.map((g) => g.id)) ?? []), f = s[0], v = f ? l[f.kind] : void 0, m = te(() => {
3696
3696
  var _;
@@ -3747,7 +3747,7 @@ const Mi = fe(
3747
3747
  title: "基本設定",
3748
3748
  description: "ブロックのID(識別子)や読み取り専用にするかどうかなど、動作に関わる設定をします",
3749
3749
  children: /* @__PURE__ */ t(
3750
- Gt,
3750
+ qt,
3751
3751
  {
3752
3752
  selectedBlocks: s,
3753
3753
  onUpdateBlocks: u,
@@ -3759,14 +3759,14 @@ const Mi = fe(
3759
3759
  ] }) });
3760
3760
  }
3761
3761
  );
3762
- Mi.displayName = "DefaultBlockPropertyPanel";
3763
- const Pi = "_kindSelector_qrad9_1", Di = "_kindTab_qrad9_9", Bi = "_kindTabActive_qrad9_30", zi = "_propertyList_qrad9_46", Wi = "_emptyState_qrad9_131", be = {
3762
+ Di.displayName = "DefaultBlockPropertyPanel";
3763
+ const Pi = "_kindSelector_qrad9_1", Bi = "_kindTab_qrad9_9", zi = "_kindTabActive_qrad9_30", Wi = "_propertyList_qrad9_46", Ri = "_emptyState_qrad9_131", be = {
3764
3764
  kindSelector: Pi,
3765
- kindTab: Di,
3766
- kindTabActive: Bi,
3767
- propertyList: zi,
3768
- emptyState: Wi
3769
- }, qt = fe(
3765
+ kindTab: Bi,
3766
+ kindTabActive: zi,
3767
+ propertyList: Wi,
3768
+ emptyState: Ri
3769
+ }, Gt = fe(
3770
3770
  ({
3771
3771
  propDef: e,
3772
3772
  kindDefaults: n,
@@ -3807,7 +3807,7 @@ const Pi = "_kindSelector_qrad9_1", Di = "_kindTab_qrad9_9", Bi = "_kindTabActiv
3807
3807
  );
3808
3808
  }
3809
3809
  );
3810
- qt.displayName = "DefaultsPropField";
3810
+ Gt.displayName = "DefaultsPropField";
3811
3811
  const Ht = fe(
3812
3812
  ({ blockDefaults: e, pluginRegistry: n, onChange: i }) => {
3813
3813
  const l = Object.keys(n), [a, o] = O(
@@ -3841,7 +3841,7 @@ const Ht = fe(
3841
3841
  );
3842
3842
  }) }),
3843
3843
  c && /* @__PURE__ */ t("div", { className: be.propertyList, children: c.properties.length === 0 ? /* @__PURE__ */ t("div", { className: be.emptyState, children: "カスタマイズ可能なプロパティがありません" }) : c.properties.map((s) => /* @__PURE__ */ t(
3844
- qt,
3844
+ Gt,
3845
3845
  {
3846
3846
  propDef: s,
3847
3847
  kindDefaults: e[a] ?? {},
@@ -3855,19 +3855,19 @@ const Ht = fe(
3855
3855
  }
3856
3856
  );
3857
3857
  Ht.displayName = "BlockDefaultsPanel";
3858
- const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", ji = "_dragHandle_12dfx_46", Ui = "_ghost_12dfx_57", Vi = "_itemInfo_12dfx_68", Gi = "_itemId_12dfx_75", qi = "_itemMeta_12dfx_80", Hi = "_itemKind_12dfx_87", Ki = "_itemActions_12dfx_95", Zi = "_actionButton_12dfx_100", Yi = "_empty_12dfx_136", U = {
3859
- list: Ri,
3860
- item: Oi,
3861
- selected: Fi,
3862
- dragHandle: ji,
3863
- ghost: Ui,
3864
- itemInfo: Vi,
3858
+ const Oi = "_list_12dfx_10", Fi = "_item_12dfx_19", ji = "_selected_12dfx_41", Ui = "_dragHandle_12dfx_46", Vi = "_ghost_12dfx_57", qi = "_itemInfo_12dfx_68", Gi = "_itemId_12dfx_75", Hi = "_itemMeta_12dfx_80", Ki = "_itemKind_12dfx_87", Zi = "_itemActions_12dfx_95", Yi = "_actionButton_12dfx_100", Ji = "_empty_12dfx_136", U = {
3859
+ list: Oi,
3860
+ item: Fi,
3861
+ selected: ji,
3862
+ dragHandle: Ui,
3863
+ ghost: Vi,
3864
+ itemInfo: qi,
3865
3865
  itemId: Gi,
3866
- itemMeta: qi,
3867
- itemKind: Hi,
3868
- itemActions: Ki,
3869
- actionButton: Zi,
3870
- empty: Yi
3866
+ itemMeta: Hi,
3867
+ itemKind: Ki,
3868
+ itemActions: Zi,
3869
+ actionButton: Yi,
3870
+ empty: Ji
3871
3871
  }, Kt = ({
3872
3872
  blocks: e,
3873
3873
  onBlocksChange: n,
@@ -3886,7 +3886,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3886
3886
  return h;
3887
3887
  const b = h[f];
3888
3888
  if (!b) return h;
3889
- const N = [...h.filter((T, P) => P !== f)], C = Math.max(
3889
+ const N = [...h.filter((T, D) => D !== f)], C = Math.max(
3890
3890
  0,
3891
3891
  Math.min(r, N.length)
3892
3892
  );
@@ -3909,7 +3909,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3909
3909
  [e, n]
3910
3910
  ), _ = y(
3911
3911
  (b) => {
3912
- const x = e.findIndex((P) => P.id === b);
3912
+ const x = e.findIndex((D) => D.id === b);
3913
3913
  if (x === -1 || x === e.length - 1) return;
3914
3914
  const N = [...e], C = N[x], T = N[x + 1];
3915
3915
  !C || !T || (N[x] = T, N[x + 1] = C, n(N));
@@ -3917,7 +3917,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3917
3917
  [e, n]
3918
3918
  ), w = y(
3919
3919
  (b) => {
3920
- const x = e.findIndex((P) => P.id === b);
3920
+ const x = e.findIndex((D) => D.id === b);
3921
3921
  if (x === -1 || x === 0) return;
3922
3922
  const N = [...e], C = N[x], T = N[x - 1];
3923
3923
  !C || !T || (N[x] = T, N[x - 1] = C, n(N));
@@ -3938,7 +3938,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3938
3938
  }, [n, l, a]), k = y(
3939
3939
  (b, x, N) => {
3940
3940
  if (b.preventDefault(), b.dataTransfer.dropEffect = "move", o === null || N === o) return;
3941
- const C = r ?? u.current ?? 0, T = x < C ? x : x - 1, P = b.currentTarget.getBoundingClientRect(), A = P.top + P.height / 2, E = b.clientY < A ? T : T + 1;
3941
+ const C = r ?? u.current ?? 0, T = x < C ? x : x - 1, D = b.currentTarget.getBoundingClientRect(), A = D.top + D.height / 2, E = b.clientY < A ? T : T + 1;
3942
3942
  if (E === r) return;
3943
3943
  s(E);
3944
3944
  const B = d.current;
@@ -3970,11 +3970,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3970
3970
  Math.min(r, N.length)
3971
3971
  ), T = [...N];
3972
3972
  T.splice(C, 0, x);
3973
- const P = [...T].reverse();
3974
- P.every((E, B) => {
3973
+ const D = [...T].reverse();
3974
+ D.every((E, B) => {
3975
3975
  var J;
3976
3976
  return E.id === ((J = e[B]) == null ? void 0 : J.id);
3977
- }) || n(P);
3977
+ }) || n(D);
3978
3978
  }
3979
3979
  }
3980
3980
  c(null), s(null);
@@ -4001,11 +4001,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
4001
4001
  children: v.map((b, x) => {
4002
4002
  const N = h.findIndex(
4003
4003
  (A) => A.id === b.id
4004
- ), C = b.id === o, T = e.length - 1 - N, P = (i == null ? void 0 : i.includes(b.id)) ?? !1;
4004
+ ), C = b.id === o, T = e.length - 1 - N, D = (i == null ? void 0 : i.includes(b.id)) ?? !1;
4005
4005
  return /* @__PURE__ */ p(
4006
4006
  "li",
4007
4007
  {
4008
- className: `${U.item} ${C ? U.ghost : ""} ${P ? U.selected : ""}`,
4008
+ className: `${U.item} ${C ? U.ghost : ""} ${D ? U.selected : ""}`,
4009
4009
  draggable: !C,
4010
4010
  onDragStart: C ? void 0 : (A) => L(A, N),
4011
4011
  onDragEnd: $,
@@ -4104,10 +4104,10 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
4104
4104
  );
4105
4105
  };
4106
4106
  Kt.displayName = "BlockOrderPanel";
4107
- const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22", Te = {
4108
- container: Ji,
4109
- group: Xi,
4110
- divider: Qi
4107
+ const Xi = "_container_1x0zd_4", Qi = "_group_1x0zd_16", ea = "_divider_1x0zd_22", Te = {
4108
+ container: Xi,
4109
+ group: Qi,
4110
+ divider: ea
4111
4111
  }, Zt = ({
4112
4112
  context: e,
4113
4113
  onActionFeedback: n
@@ -4188,11 +4188,11 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4188
4188
  Zt.displayName = "CanvasActionPanel";
4189
4189
  const Yt = ({ children: e, className: n }) => /* @__PURE__ */ t(Mt, { className: n, children: e });
4190
4190
  Yt.displayName = "CanvasPanel";
4191
- const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18", la = "_gridSizeRow_69k7e_29", de = {
4192
- field: ea,
4193
- horizontal: ta,
4194
- label: na,
4195
- gridSizeRow: la
4191
+ const ta = "_field_69k7e_6", na = "_horizontal_69k7e_12", la = "_label_69k7e_18", ia = "_gridSizeRow_69k7e_29", de = {
4192
+ field: ta,
4193
+ horizontal: na,
4194
+ label: la,
4195
+ gridSizeRow: ia
4196
4196
  }, bt = { value: 1, unit: "fr" }, Jt = ({ grid: e, onGridChange: n }) => {
4197
4197
  const i = y(
4198
4198
  (a) => {
@@ -4230,7 +4230,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4230
4230
  /* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
4231
4231
  /* @__PURE__ */ t("span", { className: de.label, children: "列数" }),
4232
4232
  /* @__PURE__ */ t(
4233
- q,
4233
+ G,
4234
4234
  {
4235
4235
  value: e.colCount,
4236
4236
  onChange: i,
@@ -4243,7 +4243,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4243
4243
  /* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
4244
4244
  /* @__PURE__ */ t("span", { className: de.label, children: "行数" }),
4245
4245
  /* @__PURE__ */ t(
4246
- q,
4246
+ G,
4247
4247
  {
4248
4248
  value: e.rowCount,
4249
4249
  onChange: l,
@@ -4258,17 +4258,17 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4258
4258
  );
4259
4259
  };
4260
4260
  Jt.displayName = "GridSizePanel";
4261
- const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2ni80_23", sa = "_switchLabelActive_2ni80_31", ra = "_toggle_2ni80_35", ca = "_thumb_2ni80_52", da = "_topCell_2ni80_70", ha = "_sideCell_2ni80_75", ua = "_bottomCell_2ni80_81", pa = "_sideMargins_2ni80_88", H = {
4262
- topRow: ia,
4263
- linkSwitch: aa,
4264
- switchLabel: oa,
4265
- switchLabelActive: sa,
4266
- toggle: ra,
4267
- thumb: ca,
4268
- topCell: da,
4269
- sideCell: ha,
4270
- bottomCell: ua,
4271
- sideMargins: pa
4261
+ const aa = "_topRow_2ni80_6", oa = "_linkSwitch_2ni80_15", sa = "_switchLabel_2ni80_23", ra = "_switchLabelActive_2ni80_31", ca = "_toggle_2ni80_35", da = "_thumb_2ni80_52", ha = "_topCell_2ni80_70", ua = "_sideCell_2ni80_75", pa = "_bottomCell_2ni80_81", ma = "_sideMargins_2ni80_88", H = {
4262
+ topRow: aa,
4263
+ linkSwitch: oa,
4264
+ switchLabel: sa,
4265
+ switchLabelActive: ra,
4266
+ toggle: ca,
4267
+ thumb: da,
4268
+ topCell: ha,
4269
+ sideCell: ua,
4270
+ bottomCell: pa,
4271
+ sideMargins: ma
4272
4272
  }, Xt = ({ paper: e, onPaperChange: n }) => {
4273
4273
  const [i, l] = O(!1), a = y(
4274
4274
  (s) => {
@@ -4408,18 +4408,18 @@ const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2n
4408
4408
  );
4409
4409
  };
4410
4410
  Xt.displayName = "MarginPanel";
4411
- const ma = "_grid_ddemj_5", ba = "_colSpan2_ddemj_13", va = "_colSpan3_ddemj_18", fa = "_label_ddemj_23", ga = "_modeLabel_ddemj_32", ya = "_modeToggle_ddemj_40", _a = "_switchLabel_ddemj_47", xa = "_switchLabelActive_ddemj_55", wa = "_toggle_ddemj_59", Na = "_thumb_ddemj_76", Ca = "_checkboxCell_ddemj_92", M = {
4412
- grid: ma,
4413
- colSpan2: ba,
4414
- colSpan3: va,
4415
- label: fa,
4416
- modeLabel: ga,
4417
- modeToggle: ya,
4418
- switchLabel: _a,
4419
- switchLabelActive: xa,
4420
- toggle: wa,
4421
- thumb: Na,
4422
- checkboxCell: Ca
4411
+ const ba = "_grid_ddemj_5", va = "_colSpan2_ddemj_13", fa = "_colSpan3_ddemj_18", ga = "_label_ddemj_23", ya = "_modeLabel_ddemj_32", _a = "_modeToggle_ddemj_40", xa = "_switchLabel_ddemj_47", wa = "_switchLabelActive_ddemj_55", Na = "_toggle_ddemj_59", Ca = "_thumb_ddemj_76", Sa = "_checkboxCell_ddemj_92", M = {
4412
+ grid: ba,
4413
+ colSpan2: va,
4414
+ colSpan3: fa,
4415
+ label: ga,
4416
+ modeLabel: ya,
4417
+ modeToggle: _a,
4418
+ switchLabel: xa,
4419
+ switchLabelActive: wa,
4420
+ toggle: Na,
4421
+ thumb: Ca,
4422
+ checkboxCell: Sa
4423
4423
  };
4424
4424
  function vt(e, n) {
4425
4425
  switch (n) {
@@ -4600,7 +4600,7 @@ const Qt = ({
4600
4600
  );
4601
4601
  };
4602
4602
  Qt.displayName = "PaperSizePanel";
4603
- const Sa = ({
4603
+ const Ia = ({
4604
4604
  context: e,
4605
4605
  onBlockHover: n,
4606
4606
  onBlockDragChange: i,
@@ -4670,11 +4670,11 @@ const Sa = ({
4670
4670
  )
4671
4671
  ] });
4672
4672
  };
4673
- Sa.displayName = "DefaultCanvasPanel";
4674
- const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33", R = {
4675
- buttonGroup: Ia,
4676
- button: $a,
4677
- error: La
4673
+ Ia.displayName = "DefaultCanvasPanel";
4674
+ const $a = "_buttonGroup_5h1ft_1", La = "_button_5h1ft_1", ka = "_error_5h1ft_33", R = {
4675
+ buttonGroup: $a,
4676
+ button: La,
4677
+ error: ka
4678
4678
  }, ft = (e, n) => {
4679
4679
  const i = [];
4680
4680
  for (const l of Object.keys(e))
@@ -4722,9 +4722,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4722
4722
  if (!x) return;
4723
4723
  const N = new FileReader();
4724
4724
  N.onload = (T) => {
4725
- var P;
4725
+ var D;
4726
4726
  try {
4727
- u((P = T.target) == null ? void 0 : P.result), o(""), alert("インポートしました");
4727
+ u((D = T.target) == null ? void 0 : D.result), o(""), alert("インポートしました");
4728
4728
  } catch (A) {
4729
4729
  o(
4730
4730
  `インポートエラー: ${A instanceof Error ? A.message : String(A)}`
@@ -4770,9 +4770,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4770
4770
  if (!x) return;
4771
4771
  const N = new FileReader();
4772
4772
  N.onload = (T) => {
4773
- var P;
4773
+ var D;
4774
4774
  try {
4775
- const A = ht((P = T.target) == null ? void 0 : P.result), E = ft(n, A);
4775
+ const A = ht((D = T.target) == null ? void 0 : D.result), E = ft(n, A);
4776
4776
  l(E), o(""), alert("値をインポートしました");
4777
4777
  } catch (A) {
4778
4778
  o(
@@ -4814,9 +4814,14 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4814
4814
  if (!x) return;
4815
4815
  const N = new FileReader();
4816
4816
  N.onload = (T) => {
4817
- var P;
4817
+ var D;
4818
4818
  try {
4819
- const A = JSON.parse((P = T.target) == null ? void 0 : P.result), E = { grid: A.grid, blocks: A.blocks }, B = [...e.pages];
4819
+ const A = JSON.parse((D = T.target) == null ? void 0 : D.result), E = mn({
4820
+ grid: A.grid,
4821
+ blocks: A.blocks ?? [],
4822
+ ...A.metaData !== void 0 ? { metaData: A.metaData } : {},
4823
+ ...A.blockDefaults !== void 0 ? { blockDefaults: A.blockDefaults } : {}
4824
+ }), B = [...e.pages];
4820
4825
  B[0] = E, i({ ...e, pages: B }), o(""), alert("スキーマをインポートしました");
4821
4826
  } catch (A) {
4822
4827
  o(
@@ -4976,7 +4981,7 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4976
4981
  ] });
4977
4982
  };
4978
4983
  en.displayName = "ImportExportPanel";
4979
- const ka = ({
4984
+ const Ta = ({
4980
4985
  context: e,
4981
4986
  sections: n
4982
4987
  }) => {
@@ -4995,19 +5000,19 @@ const ka = ({
4995
5000
  ];
4996
5001
  return /* @__PURE__ */ t(Mt, { children: n ?? i });
4997
5002
  };
4998
- ka.displayName = "OtherPanel";
4999
- const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0l_23", Ma = "_itemName_16a0l_49", Pa = "_itemPreview_16a0l_77", Ce = {
5000
- container: Ta,
5001
- paletteItems: Ea,
5002
- item: Aa,
5003
- itemName: Ma,
5003
+ Ta.displayName = "OtherPanel";
5004
+ const Ea = "_container_16a0l_1", Aa = "_paletteItems_16a0l_11", Ma = "_item_16a0l_23", Da = "_itemName_16a0l_49", Pa = "_itemPreview_16a0l_77", Ce = {
5005
+ container: Ea,
5006
+ paletteItems: Aa,
5007
+ item: Ma,
5008
+ itemName: Da,
5004
5009
  itemPreview: Pa
5005
- }, Da = ({ context: e, className: n }) => {
5010
+ }, Ba = ({ context: e, className: n }) => {
5006
5011
  const i = Object.values(e.pluginRegistry).filter(
5007
5012
  (o) => o !== void 0
5008
- ), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = mn(
5013
+ ), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = bn(
5009
5014
  e.book.paper,
5010
- (l == null ? void 0 : l.grid) ?? bn
5015
+ (l == null ? void 0 : l.grid) ?? vn
5011
5016
  );
5012
5017
  return /* @__PURE__ */ t("div", { className: `${Ce.container} ${n || ""}`, children: /* @__PURE__ */ t("div", { className: Ce.paletteItems, children: i.map((o) => {
5013
5018
  const c = o.meta.defaultSize ?? { w: 1, h: 1 }, r = a({
@@ -5027,7 +5032,7 @@ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0
5027
5032
  );
5028
5033
  }) }) });
5029
5034
  };
5030
- Da.displayName = "PalettePanel";
5035
+ Ba.displayName = "PalettePanel";
5031
5036
  const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5032
5037
  const l = te(() => {
5033
5038
  var c, r;
@@ -5044,7 +5049,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5044
5049
  };
5045
5050
  }, [e]), a = null, o = y(
5046
5051
  (c) => {
5047
- vn(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
5052
+ fn(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
5048
5053
  const r = Math.round(n), s = Math.round(i), d = document.createElement("div");
5049
5054
  d.style.cssText = `position:fixed;top:-9999px;left:-9999px;width:${r}px;height:${s}px;background:rgba(147,197,253,0.45);border-radius:4px;`, document.body.appendChild(d), c.dataTransfer.setDragImage(d, r / 2, s / 2), requestAnimationFrame(() => document.body.removeChild(d));
5050
5055
  },
@@ -5078,7 +5083,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5078
5083
  onChange: () => {
5079
5084
  },
5080
5085
  readOnly: !0,
5081
- mode: fn.FORM
5086
+ mode: gn.FORM
5082
5087
  }
5083
5088
  )
5084
5089
  }
@@ -5087,36 +5092,36 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5087
5092
  };
5088
5093
  tn.displayName = "PaletteItem";
5089
5094
  export {
5090
- kn as A,
5095
+ Tn as A,
5091
5096
  it as B,
5092
- Tn as C,
5093
- Mn as D,
5097
+ En as C,
5098
+ Dn as D,
5094
5099
  Qt as E,
5095
5100
  st as F,
5096
- Ml as G,
5101
+ Dl as G,
5097
5102
  Ut as H,
5098
5103
  Z as I,
5099
5104
  ve as J,
5100
- Pe as K,
5105
+ De as K,
5101
5106
  at as L,
5102
5107
  Xt as M,
5103
- q as N,
5104
- ka as O,
5105
- Dl as P,
5108
+ G as N,
5109
+ Ta as O,
5110
+ Bl as P,
5106
5111
  Mt as Q,
5107
5112
  Se as R,
5108
- Fa as S,
5109
- Ll as T,
5110
- wi as U,
5111
- En as a,
5112
- An as b,
5113
- Al as c,
5114
- Ni as d,
5115
- Mi as e,
5116
- Da as f,
5117
- Oa as g,
5118
- Sa as h,
5119
- kl as i,
5113
+ ja as S,
5114
+ kl as T,
5115
+ Ni as U,
5116
+ An as a,
5117
+ Mn as b,
5118
+ Ml as c,
5119
+ Ci as d,
5120
+ Di as e,
5121
+ Ba as f,
5122
+ Fa as g,
5123
+ Ia as h,
5124
+ Tl as i,
5120
5125
  _e as j,
5121
5126
  xe as k,
5122
5127
  Ht as l,
@@ -5126,12 +5131,12 @@ export {
5126
5131
  Yt as p,
5127
5132
  ae as q,
5128
5133
  V as r,
5129
- D as s,
5134
+ P as s,
5130
5135
  le as t,
5131
- ja as u,
5136
+ Ua as u,
5132
5137
  j as v,
5133
5138
  ge as w,
5134
5139
  Jt as x,
5135
5140
  en as y,
5136
- Gt as z
5141
+ qt as z
5137
5142
  };