@tatamicks/core 1.0.3 → 1.0.4

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.
Files changed (35) hide show
  1. package/dist/PalettePanel-BTB1LkgU.cjs +9 -0
  2. package/dist/PalettePanel-BTB1LkgU.cjs.map +1 -0
  3. package/dist/{PalettePanel-N5Y1TJAk.js → PalettePanel-CrA2BGLq.js} +959 -942
  4. package/dist/PalettePanel-CrA2BGLq.js.map +1 -0
  5. package/dist/PalettePanel.css +1 -1
  6. package/dist/canvas.cjs +1 -1
  7. package/dist/canvas.mjs +4 -4
  8. package/dist/index.cjs +2 -2
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.css +1 -1
  11. package/dist/index.mjs +352 -343
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/{paperSettingsWidget-d93s3Gsr.js → paperSettingsWidget-CAIw_Ofm.js} +1582 -1535
  14. package/dist/paperSettingsWidget-CAIw_Ofm.js.map +1 -0
  15. package/dist/paperSettingsWidget-CIRKgnz4.cjs +2 -0
  16. package/dist/paperSettingsWidget-CIRKgnz4.cjs.map +1 -0
  17. package/dist/shell.cjs +1 -1
  18. package/dist/shell.mjs +2 -2
  19. package/dist/{sidebarPortal-B2Mk9Aba.js → sidebarPortal-Bigm11qq.js} +156 -151
  20. package/dist/sidebarPortal-Bigm11qq.js.map +1 -0
  21. package/dist/sidebarPortal-Dit8f3sD.cjs +3 -0
  22. package/dist/sidebarPortal-Dit8f3sD.cjs.map +1 -0
  23. package/dist/src/canvas.d.ts +4 -0
  24. package/dist/src/index.d.ts +5 -3
  25. package/dist/src/shell.d.ts +3 -1
  26. package/package.json +1 -1
  27. package/dist/PalettePanel-0cFP3tbA.cjs +0 -9
  28. package/dist/PalettePanel-0cFP3tbA.cjs.map +0 -1
  29. package/dist/PalettePanel-N5Y1TJAk.js.map +0 -1
  30. package/dist/paperSettingsWidget-CJ4QFjYK.cjs +0 -2
  31. package/dist/paperSettingsWidget-CJ4QFjYK.cjs.map +0 -1
  32. package/dist/paperSettingsWidget-d93s3Gsr.js.map +0 -1
  33. package/dist/sidebarPortal-B2Mk9Aba.js.map +0 -1
  34. package/dist/sidebarPortal-BCIVv4yO.cjs +0 -3
  35. package/dist/sidebarPortal-BCIVv4yO.cjs.map +0 -1
@@ -1,22 +1,22 @@
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 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-B2Mk9Aba.js";
4
- import { createPortal as St } from "react-dom";
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
- const Xe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
1
+ import { jsx as t, jsxs as p, Fragment as se } from "react/jsx-runtime";
2
+ import { useCallback as y, useState as O, useRef as ae, useEffect as me, useContext as ze, createContext as _t, useMemo as ne, memo as ge, useId as sn } from "react";
3
+ import { Z as xt, a9 as wt, a6 as Nt, aa as Ct, a7 as St, P as F, e as It, O as K, L as ue, B as rn, ab as cn, y as dn, X as hn, F as un, r as _e, K as pn, w as Oe, H as Ae, V as Me, a as mn, ac as bn, s as ht, f as fn, h as ut, n as vn, u as gn, b as yn, E as _n, N as xn } from "./sidebarPortal-Bigm11qq.js";
4
+ import { createPortal as $t } from "react-dom";
5
+ import './PalettePanel.css';const wn = "_container_zau2f_4", Nn = "_section_zau2f_17", Cn = "_divider_zau2f_24", Sn = "_sectionLabel_zau2f_32", In = "_select_zau2f_39", $n = "_numberInput_zau2f_60", Ln = "_heightModeSwitch_zau2f_88", kn = "_switchLabel_zau2f_94", Tn = "_switchLabelActive_zau2f_102", En = "_toggle_zau2f_106", An = "_thumb_zau2f_123", D = {
6
+ container: wn,
7
+ section: Nn,
8
+ divider: Cn,
9
+ sectionLabel: Sn,
10
+ select: In,
11
+ numberInput: $n,
12
+ heightModeSwitch: Ln,
13
+ switchLabel: kn,
14
+ switchLabelActive: Tn,
15
+ toggle: En,
16
+ thumb: An
17
+ }, Mn = (e) => /* @__PURE__ */ t("div", { className: D.divider, "aria-hidden": "true" });
18
+ Mn.displayName = "ActionBarDivider";
19
+ const Qe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
20
20
  "svg",
21
21
  {
22
22
  viewBox: "0 0 16 16",
@@ -35,8 +35,8 @@ const Xe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
35
35
  ]
36
36
  }
37
37
  );
38
- Xe.displayName = "UndoIcon";
39
- const Qe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
38
+ Qe.displayName = "UndoIcon";
39
+ const et = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
40
40
  "svg",
41
41
  {
42
42
  viewBox: "0 0 16 16",
@@ -55,8 +55,8 @@ const Qe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
55
55
  ]
56
56
  }
57
57
  );
58
- Qe.displayName = "RedoIcon";
59
- const et = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
58
+ et.displayName = "RedoIcon";
59
+ const tt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
60
60
  "svg",
61
61
  {
62
62
  viewBox: "0 0 16 16",
@@ -78,8 +78,8 @@ const et = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
78
78
  ]
79
79
  }
80
80
  );
81
- et.displayName = "TrashIcon";
82
- const tt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
81
+ tt.displayName = "TrashIcon";
82
+ const nt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
83
83
  "svg",
84
84
  {
85
85
  viewBox: "0 0 16 16",
@@ -98,7 +98,7 @@ const tt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
98
98
  ]
99
99
  }
100
100
  );
101
- tt.displayName = "CopyIcon";
101
+ nt.displayName = "CopyIcon";
102
102
  const Be = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
103
103
  "svg",
104
104
  {
@@ -121,7 +121,7 @@ const Be = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
121
121
  }
122
122
  );
123
123
  Be.displayName = "PasteIcon";
124
- const nt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
124
+ const lt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
125
125
  "svg",
126
126
  {
127
127
  viewBox: "0 0 16 16",
@@ -140,8 +140,8 @@ const nt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
140
140
  ]
141
141
  }
142
142
  );
143
- nt.displayName = "DuplicateIcon";
144
- const It = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
143
+ lt.displayName = "DuplicateIcon";
144
+ const Lt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
145
145
  "svg",
146
146
  {
147
147
  viewBox: "0 0 16 16",
@@ -173,8 +173,8 @@ const It = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
173
173
  ]
174
174
  }
175
175
  );
176
- It.displayName = "PrintIcon";
177
- const $t = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
176
+ Lt.displayName = "PrintIcon";
177
+ const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
178
178
  "svg",
179
179
  {
180
180
  viewBox: "0 0 16 16",
@@ -195,8 +195,8 @@ const $t = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
195
195
  ]
196
196
  }
197
197
  );
198
- $t.displayName = "StyleIcon";
199
- const Lt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
198
+ kt.displayName = "StyleIcon";
199
+ const Tt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
200
200
  "svg",
201
201
  {
202
202
  viewBox: "0 0 16 16",
@@ -216,8 +216,8 @@ const Lt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
216
216
  ]
217
217
  }
218
218
  );
219
- Lt.displayName = "LayoutIcon";
220
- const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
219
+ Tt.displayName = "LayoutIcon";
220
+ const Et = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
221
221
  "svg",
222
222
  {
223
223
  viewBox: "0 0 16 16",
@@ -240,8 +240,8 @@ const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
240
240
  ]
241
241
  }
242
242
  );
243
- kt.displayName = "BlockSettingsIcon";
244
- const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
243
+ Et.displayName = "BlockSettingsIcon";
244
+ const Pn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
245
245
  "svg",
246
246
  {
247
247
  viewBox: "0 0 24 24",
@@ -253,8 +253,8 @@ const En = ({ 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
- En.displayName = "ChevronLeftIcon";
257
- const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
256
+ Pn.displayName = "ChevronLeftIcon";
257
+ const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
258
258
  "svg",
259
259
  {
260
260
  viewBox: "0 0 24 24",
@@ -266,8 +266,8 @@ const An = ({ 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
- An.displayName = "ChevronRightIcon";
270
- const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
269
+ Dn.displayName = "ChevronRightIcon";
270
+ const zn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
271
271
  "svg",
272
272
  {
273
273
  viewBox: "0 0 24 24",
@@ -279,8 +279,8 @@ const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
279
279
  children: /* @__PURE__ */ t("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })
280
280
  }
281
281
  );
282
- Mn.displayName = "AddPageIcon";
283
- const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
282
+ zn.displayName = "AddPageIcon";
283
+ const Bn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
284
284
  "svg",
285
285
  {
286
286
  viewBox: "0 0 24 24",
@@ -292,8 +292,8 @@ const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
292
292
  children: /* @__PURE__ */ t("path", { d: "M19 13H5v-2h14v2z" })
293
293
  }
294
294
  );
295
- Dn.displayName = "DeletePageIcon";
296
- const Pn = {
295
+ Bn.displayName = "DeletePageIcon";
296
+ const Rn = {
297
297
  undo: {
298
298
  actionId: "undo",
299
299
  message: "元に戻しました",
@@ -354,11 +354,11 @@ const Pn = {
354
354
  message: "ページを削除しました",
355
355
  shortcut: null
356
356
  }
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
- }, ae = ({
357
+ }, it = (e) => Rn[e], Wn = "_container_1tnp6_5", On = "_input_1tnp6_13", Fn = "_label_1tnp6_29", Fe = {
358
+ container: Wn,
359
+ input: On,
360
+ label: Fn
361
+ }, oe = ({
362
362
  value: e,
363
363
  onChange: n,
364
364
  readOnly: i = !1,
@@ -371,34 +371,34 @@ const Pn = {
371
371
  },
372
372
  [n]
373
373
  );
374
- return /* @__PURE__ */ p("label", { className: Oe.container, children: [
374
+ return /* @__PURE__ */ p("label", { className: Fe.container, children: [
375
375
  /* @__PURE__ */ t(
376
376
  "input",
377
377
  {
378
378
  type: "checkbox",
379
- className: Oe.input,
379
+ className: Fe.input,
380
380
  checked: !!e,
381
381
  onChange: c,
382
382
  disabled: i
383
383
  }
384
384
  ),
385
- o && /* @__PURE__ */ t("span", { className: Oe.label, children: o })
385
+ o && /* @__PURE__ */ t("span", { className: Fe.label, children: o })
386
386
  ] });
387
387
  };
388
- ae.displayName = "Checkbox";
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
- statusBadge: Gn,
398
- statusBadgeOn: Hn,
399
- statusBadgeOff: Kn,
400
- content: Zn,
401
- contentNoPadding: Yn
388
+ oe.displayName = "Checkbox";
389
+ const jn = "_header_1c1mq_6", Un = "_title_1c1mq_32", Vn = "_actions_1c1mq_43", qn = "_titleGroup_1c1mq_49", Gn = "_infoIcon_1c1mq_60", Hn = "_chevron_1c1mq_84", Kn = "_chevronOpen_1c1mq_92", Zn = "_statusBadge_1c1mq_98", Yn = "_statusBadgeOn_1c1mq_108", Jn = "_statusBadgeOff_1c1mq_113", Xn = "_content_1c1mq_120", Qn = "_contentNoPadding_1c1mq_127", R = {
390
+ header: jn,
391
+ title: Un,
392
+ actions: Vn,
393
+ titleGroup: qn,
394
+ infoIcon: Gn,
395
+ chevron: Hn,
396
+ chevronOpen: Kn,
397
+ statusBadge: Zn,
398
+ statusBadgeOn: Yn,
399
+ statusBadgeOff: Jn,
400
+ content: Xn,
401
+ contentNoPadding: Qn
402
402
  }, V = ({
403
403
  title: e,
404
404
  children: n,
@@ -412,27 +412,27 @@ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43",
412
412
  closeLabel: d,
413
413
  noPadding: u = !1
414
414
  }) => {
415
- const [h, f] = O(
415
+ const [h, v] = O(
416
416
  i ? l : !1
417
- ), v = a !== void 0, m = v ? !a : h, g = () => {
417
+ ), f = a !== void 0, m = f ? !a : h, g = () => {
418
418
  const $ = m;
419
- v || f(!$), o == null || o($);
420
- }, _ = !i || !m, w = u ? W.contentNoPadding : W.content, L = i ? m ? d : s : void 0;
421
- return /* @__PURE__ */ p("div", { className: W.section, children: [
419
+ f || v(!$), o == null || o($);
420
+ }, _ = !i || !m, w = u ? R.contentNoPadding : R.content, L = i ? m ? d : s : void 0;
421
+ return /* @__PURE__ */ p("div", { className: R.section, children: [
422
422
  i ? /* @__PURE__ */ p(
423
423
  "button",
424
424
  {
425
425
  type: "button",
426
- className: W.header,
426
+ className: R.header,
427
427
  onClick: g,
428
428
  "aria-expanded": !m,
429
429
  children: [
430
- /* @__PURE__ */ p("span", { className: W.titleGroup, children: [
431
- /* @__PURE__ */ t("span", { className: W.title, children: e }),
430
+ /* @__PURE__ */ p("span", { className: R.titleGroup, children: [
431
+ /* @__PURE__ */ t("span", { className: R.title, children: e }),
432
432
  c && /* @__PURE__ */ t(
433
433
  "span",
434
434
  {
435
- className: W.infoIcon,
435
+ className: R.infoIcon,
436
436
  title: c,
437
437
  role: "img",
438
438
  "aria-label": c,
@@ -444,7 +444,7 @@ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43",
444
444
  "span",
445
445
  {
446
446
  role: "none",
447
- className: W.actions,
447
+ className: R.actions,
448
448
  onClick: ($) => $.stopPropagation(),
449
449
  children: r
450
450
  }
@@ -452,7 +452,7 @@ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43",
452
452
  L && /* @__PURE__ */ t(
453
453
  "span",
454
454
  {
455
- className: `${W.statusBadge} ${m ? W.statusBadgeOff : W.statusBadgeOn}`,
455
+ className: `${R.statusBadge} ${m ? R.statusBadgeOff : R.statusBadgeOn}`,
456
456
  "aria-hidden": "true",
457
457
  children: L
458
458
  }
@@ -460,20 +460,20 @@ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43",
460
460
  /* @__PURE__ */ t(
461
461
  "span",
462
462
  {
463
- className: `${W.chevron} ${m ? "" : W.chevronOpen}`,
463
+ className: `${R.chevron} ${m ? "" : R.chevronOpen}`,
464
464
  "aria-hidden": !0,
465
465
  children: "▾"
466
466
  }
467
467
  )
468
468
  ]
469
469
  }
470
- ) : /* @__PURE__ */ p("div", { className: W.header, children: [
471
- /* @__PURE__ */ p("span", { className: W.titleGroup, children: [
472
- /* @__PURE__ */ t("span", { className: W.title, children: e }),
470
+ ) : /* @__PURE__ */ p("div", { className: R.header, children: [
471
+ /* @__PURE__ */ p("span", { className: R.titleGroup, children: [
472
+ /* @__PURE__ */ t("span", { className: R.title, children: e }),
473
473
  c && /* @__PURE__ */ t(
474
474
  "span",
475
475
  {
476
- className: W.infoIcon,
476
+ className: R.infoIcon,
477
477
  title: c,
478
478
  role: "img",
479
479
  "aria-label": c,
@@ -481,13 +481,13 @@ const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43",
481
481
  }
482
482
  )
483
483
  ] }),
484
- r && /* @__PURE__ */ t("span", { className: W.actions, children: r })
484
+ r && /* @__PURE__ */ t("span", { className: R.actions, children: r })
485
485
  ] }),
486
486
  _ && /* @__PURE__ */ t("div", { className: w, children: n })
487
487
  ] });
488
488
  };
489
489
  V.displayName = "CollapsibleSection";
490
- function Le(e) {
490
+ function ke(e) {
491
491
  if (!e)
492
492
  return null;
493
493
  const n = e.match(/^#([0-9a-f]{6}|[0-9a-f]{8})$/i);
@@ -504,7 +504,7 @@ function Le(e) {
504
504
  }
505
505
  return null;
506
506
  }
507
- function Jn(e) {
507
+ function el(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 Jn(e) {
515
515
  }
516
516
  return `#${o}${c}${r}`;
517
517
  }
518
- const Xn = [
518
+ const tl = [
519
519
  { label: "無色", value: void 0 },
520
520
  { label: "白", value: "#ffffff" },
521
521
  { label: "グレー1", value: "#efefef" },
@@ -546,31 +546,31 @@ const Xn = [
546
546
  { label: "青紫", value: "#9FC5E8" },
547
547
  { label: "紫", value: "#B4A7D6" },
548
548
  { label: "赤紫", value: "#D5A6BD" }
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
- }, Tt = ({
549
+ ], nl = "_container_1cdzu_5", ll = "_colorButton_1cdzu_13", il = "_textInputWrapper_1cdzu_40", al = "_textInputPrefix_1cdzu_62", ol = "_textInput_1cdzu_40", sl = "_popover_1cdzu_96", rl = "_palette_1cdzu_112", cl = "_paletteButton_1cdzu_119", dl = "_selected_1cdzu_142", hl = "_transparentPaletteButton_1cdzu_148", ul = "_rgbaInputs_1cdzu_154", pl = "_rgbaInputGroup_1cdzu_161", ml = "_rgbaLabel_1cdzu_175", B = {
550
+ container: nl,
551
+ colorButton: ll,
552
+ textInputWrapper: il,
553
+ textInputPrefix: al,
554
+ textInput: ol,
555
+ popover: sl,
556
+ palette: rl,
557
+ paletteButton: cl,
558
+ selected: dl,
559
+ transparentPaletteButton: hl,
560
+ rgbaInputs: ul,
561
+ rgbaInputGroup: pl,
562
+ rgbaLabel: ml
563
+ }, At = ({
564
564
  onColorSelect: e,
565
565
  selectedColor: n,
566
566
  readOnly: i = !1
567
- }) => /* @__PURE__ */ t("div", { className: z.palette, children: Xn.map((l, a) => {
567
+ }) => /* @__PURE__ */ t("div", { className: B.palette, children: tl.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",
571
571
  {
572
572
  type: "button",
573
- className: `${z.paletteButton} ${o ? z.transparentPaletteButton : ""} ${c ? z.selected : ""}`,
573
+ className: `${B.paletteButton} ${o ? B.transparentPaletteButton : ""} ${c ? B.selected : ""}`,
574
574
  onClick: () => e(l.value),
575
575
  disabled: i,
576
576
  title: l.label,
@@ -580,9 +580,9 @@ const Xn = [
580
580
  l.value ?? `undefined-${a}`
581
581
  );
582
582
  }) });
583
- Tt.displayName = "ColorPalette";
584
- const ul = "_input_14n56_5", pl = {
585
- input: ul
583
+ At.displayName = "ColorPalette";
584
+ const bl = "_input_14n56_5", fl = {
585
+ input: bl
586
586
  }, G = ({
587
587
  value: e,
588
588
  onChange: n,
@@ -596,9 +596,9 @@ const ul = "_input_14n56_5", pl = {
596
596
  height: d,
597
597
  ariaLabel: u,
598
598
  config: h,
599
- onBlur: f
599
+ onBlur: v
600
600
  }) => {
601
- const v = l ?? (h == null ? void 0 : h.min) ?? 1, m = a ?? (h == null ? void 0 : h.max), g = o ?? (h == null ? void 0 : h.step) ?? 1, _ = c ?? (h == null ? void 0 : h.integer) ?? !1, w = r ?? (h == null ? void 0 : h.placeholder), L = s ?? (h == null ? void 0 : h.width), $ = d ?? (h == null ? void 0 : h.height), k = y(
601
+ const f = l ?? (h == null ? void 0 : h.min) ?? 1, m = a ?? (h == null ? void 0 : h.max), g = o ?? (h == null ? void 0 : h.step) ?? 1, _ = c ?? (h == null ? void 0 : h.integer) ?? !1, w = r ?? (h == null ? void 0 : h.placeholder), L = s ?? (h == null ? void 0 : h.width), $ = d ?? (h == null ? void 0 : h.height), k = y(
602
602
  (S) => {
603
603
  const b = S.target.value;
604
604
  if (b === "") {
@@ -606,21 +606,21 @@ const ul = "_input_14n56_5", pl = {
606
606
  return;
607
607
  }
608
608
  let x = Number.parseFloat(b);
609
- Number.isNaN(x) || (_ && (x = Math.round(x)), v !== void 0 && x < v && (x = v), m !== void 0 && x > m && (x = m), n(x));
609
+ Number.isNaN(x) || (_ && (x = Math.round(x)), f !== void 0 && x < f && (x = f), m !== void 0 && x > m && (x = m), n(x));
610
610
  },
611
- [n, v, m, _]
611
+ [n, f, m, _]
612
612
  ), I = {};
613
613
  return L !== void 0 && (I.width = `${L}px`), $ !== void 0 && (I.height = `${$}px`, I.paddingTop = 0, I.paddingBottom = 0), /* @__PURE__ */ t(
614
614
  "input",
615
615
  {
616
616
  type: "number",
617
- className: pl.input,
617
+ className: fl.input,
618
618
  style: I,
619
619
  value: e ?? "",
620
620
  onChange: k,
621
- onBlur: f,
621
+ onBlur: v,
622
622
  disabled: i,
623
- min: v,
623
+ min: f,
624
624
  max: m,
625
625
  step: g,
626
626
  placeholder: w,
@@ -629,13 +629,13 @@ const ul = "_input_14n56_5", pl = {
629
629
  );
630
630
  };
631
631
  G.displayName = "NumberInput";
632
- const Et = ({
632
+ const Mt = ({
633
633
  rgba: e,
634
634
  onChange: n,
635
635
  readOnly: i = !1
636
- }) => /* @__PURE__ */ p("div", { className: z.rgbaInputs, children: [
637
- /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
638
- /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "R" }),
636
+ }) => /* @__PURE__ */ p("div", { className: B.rgbaInputs, children: [
637
+ /* @__PURE__ */ p("div", { className: B.rgbaInputGroup, children: [
638
+ /* @__PURE__ */ t("span", { className: B.rgbaLabel, children: "R" }),
639
639
  /* @__PURE__ */ t(
640
640
  G,
641
641
  {
@@ -650,8 +650,8 @@ const Et = ({
650
650
  }
651
651
  )
652
652
  ] }),
653
- /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
654
- /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "G" }),
653
+ /* @__PURE__ */ p("div", { className: B.rgbaInputGroup, children: [
654
+ /* @__PURE__ */ t("span", { className: B.rgbaLabel, children: "G" }),
655
655
  /* @__PURE__ */ t(
656
656
  G,
657
657
  {
@@ -666,8 +666,8 @@ const Et = ({
666
666
  }
667
667
  )
668
668
  ] }),
669
- /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
670
- /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "B" }),
669
+ /* @__PURE__ */ p("div", { className: B.rgbaInputGroup, children: [
670
+ /* @__PURE__ */ t("span", { className: B.rgbaLabel, children: "B" }),
671
671
  /* @__PURE__ */ t(
672
672
  G,
673
673
  {
@@ -682,8 +682,8 @@ const Et = ({
682
682
  }
683
683
  )
684
684
  ] }),
685
- /* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
686
- /* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "A" }),
685
+ /* @__PURE__ */ p("div", { className: B.rgbaInputGroup, children: [
686
+ /* @__PURE__ */ t("span", { className: B.rgbaLabel, children: "A" }),
687
687
  /* @__PURE__ */ t(
688
688
  G,
689
689
  {
@@ -699,8 +699,8 @@ const Et = ({
699
699
  )
700
700
  ] })
701
701
  ] });
702
- Et.displayName = "RGBAInputs";
703
- const At = ({
702
+ Mt.displayName = "RGBAInputs";
703
+ const Pt = ({
704
704
  isOpen: e,
705
705
  onClose: n,
706
706
  rgba: i,
@@ -709,8 +709,8 @@ const At = ({
709
709
  selectedColor: o,
710
710
  readOnly: c = !1
711
711
  }) => {
712
- const r = ie(null);
713
- return pe(() => {
712
+ const r = ae(null);
713
+ return me(() => {
714
714
  if (!e) return;
715
715
  const s = (d) => {
716
716
  r.current && !r.current.contains(d.target) && n();
@@ -721,25 +721,25 @@ const At = ({
721
721
  }, [e, n]), e ? /* @__PURE__ */ p(
722
722
  "div",
723
723
  {
724
- className: z.popover,
724
+ className: B.popover,
725
725
  ref: r,
726
- style: { zIndex: yt.DROPDOWN },
726
+ style: { zIndex: xt.DROPDOWN },
727
727
  children: [
728
728
  /* @__PURE__ */ t(
729
- Tt,
729
+ At,
730
730
  {
731
731
  onColorSelect: a,
732
732
  selectedColor: o,
733
733
  readOnly: c
734
734
  }
735
735
  ),
736
- /* @__PURE__ */ t(Et, { rgba: i, onChange: l, readOnly: c })
736
+ /* @__PURE__ */ t(Mt, { rgba: i, onChange: l, readOnly: c })
737
737
  ]
738
738
  }
739
739
  ) : null;
740
740
  };
741
- At.displayName = "ColorPickerPopover";
742
- const le = ({
741
+ Pt.displayName = "ColorPickerPopover";
742
+ const ie = ({
743
743
  value: e,
744
744
  onChange: n,
745
745
  readOnly: i = !1,
@@ -750,9 +750,9 @@ const le = ({
750
750
  height: r,
751
751
  config: s
752
752
  }) => {
753
- const d = a ?? (s == null ? void 0 : s.allowUndefined) ?? !0, u = o ?? (d ? "未設定" : "#000000"), h = c ?? (s == null ? void 0 : s.width), f = r ?? (s == null ? void 0 : s.height), [v, m] = O(!1), g = ie(null), [_, w] = O(() => Le(e) ?? { r: 0, g: 0, b: 0, a: 1 });
754
- pe(() => {
755
- const E = Le(e);
753
+ const d = a ?? (s == null ? void 0 : s.allowUndefined) ?? !0, u = o ?? (d ? "未設定" : "#000000"), h = c ?? (s == null ? void 0 : s.width), v = r ?? (s == null ? void 0 : s.height), [f, m] = O(!1), g = ae(null), [_, w] = O(() => ke(e) ?? { r: 0, g: 0, b: 0, a: 1 });
754
+ me(() => {
755
+ const E = ke(e);
756
756
  E && w(E);
757
757
  }, [e]);
758
758
  const L = y(() => {
@@ -760,13 +760,13 @@ const le = ({
760
760
  }, [i]), [$, k] = O(
761
761
  e ? e.replace(/^#/, "") : ""
762
762
  );
763
- pe(() => {
763
+ me(() => {
764
764
  k(e ? e.replace(/^#/, "") : "");
765
765
  }, [e]);
766
766
  const I = y(
767
767
  (E) => {
768
- const B = E.target.value;
769
- /^[0-9A-Fa-f]*$/.test(B) && k(B);
768
+ const z = E.target.value;
769
+ /^[0-9A-Fa-f]*$/.test(z) && k(z);
770
770
  },
771
771
  []
772
772
  ), S = y(
@@ -776,8 +776,8 @@ const le = ({
776
776
  return;
777
777
  }
778
778
  if (/^[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$/.test(E)) {
779
- const B = `#${E}`, J = Le(B);
780
- J && w(J), n(B);
779
+ const z = `#${E}`, J = ke(z);
780
+ J && w(J), n(z);
781
781
  } else
782
782
  k(e ? e.replace(/^#/, "") : "");
783
783
  },
@@ -795,43 +795,43 @@ const le = ({
795
795
  ), N = y(
796
796
  (E) => {
797
797
  if (E) {
798
- const B = Le(E);
799
- B && (w(B), k(E.replace(/^#/, "")));
798
+ const z = ke(E);
799
+ z && (w(z), k(E.replace(/^#/, "")));
800
800
  } else
801
801
  k("");
802
802
  n(E);
803
803
  },
804
804
  [n]
805
805
  ), C = y(
806
- (E, B) => {
807
- if (B === void 0) return;
808
- const J = { ..._, [E]: B };
809
- w(J), n(Jn(J));
806
+ (E, z) => {
807
+ if (z === void 0) return;
808
+ const J = { ..._, [E]: z };
809
+ w(J), n(el(J));
810
810
  },
811
811
  [_, n]
812
- ), T = e ?? "未設定", D = {};
813
- e && (D.background = e);
812
+ ), T = e ?? "未設定", P = {};
813
+ e && (P.background = e);
814
814
  const A = {};
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: [
815
+ return h !== void 0 ? A.width = `${h}px` : A.width = "100%", v !== void 0 && (A.height = `${v}px`), /* @__PURE__ */ p("div", { className: B.container, style: A, ref: g, children: [
816
816
  /* @__PURE__ */ t(
817
817
  "button",
818
818
  {
819
819
  type: "button",
820
- className: z.colorButton,
820
+ className: B.colorButton,
821
821
  onClick: L,
822
822
  disabled: i,
823
823
  title: T,
824
824
  "aria-label": "カラーピッカーを開く",
825
- style: D
825
+ style: P
826
826
  }
827
827
  ),
828
- l && /* @__PURE__ */ p("div", { className: z.textInputWrapper, children: [
829
- /* @__PURE__ */ t("span", { className: z.textInputPrefix, children: "#" }),
828
+ l && /* @__PURE__ */ p("div", { className: B.textInputWrapper, children: [
829
+ /* @__PURE__ */ t("span", { className: B.textInputPrefix, children: "#" }),
830
830
  /* @__PURE__ */ t(
831
831
  "input",
832
832
  {
833
833
  type: "text",
834
- className: z.textInput,
834
+ className: B.textInput,
835
835
  value: $,
836
836
  onChange: I,
837
837
  onKeyDown: x,
@@ -843,9 +843,9 @@ const le = ({
843
843
  )
844
844
  ] }),
845
845
  /* @__PURE__ */ t(
846
- At,
846
+ Pt,
847
847
  {
848
- isOpen: v,
848
+ isOpen: f,
849
849
  onClose: () => m(!1),
850
850
  rgba: _,
851
851
  onRgbaChange: C,
@@ -856,47 +856,47 @@ const le = ({
856
856
  )
857
857
  ] });
858
858
  };
859
- le.displayName = "ColorPicker";
860
- const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_1n9lj_45", Fe = {
861
- container: ml,
862
- valueInput: bl,
863
- unitSelect: vl
859
+ ie.displayName = "ColorPicker";
860
+ const vl = "_container_1n9lj_5", gl = "_valueInput_1n9lj_23", yl = "_unitSelect_1n9lj_45", je = {
861
+ container: vl,
862
+ valueInput: gl,
863
+ unitSelect: yl
864
864
  }, j = (e) => {
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(
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), v = e.ariaLabel, f = (n == null ? void 0 : n.unit) ?? (o == null ? void 0 : o[0]), m = y(
866
866
  (k) => {
867
- const I = k.target.value, S = (n == null ? void 0 : n.unit) ?? v;
867
+ const I = k.target.value, S = (n == null ? void 0 : n.unit) ?? f;
868
868
  if (S === void 0) return;
869
869
  let b = Number.parseFloat(I);
870
870
  if (Number.isNaN(b)) return;
871
871
  const x = c ?? 1;
872
872
  b < x && (b = x), r !== void 0 && b > r && (b = r), i({ value: b, unit: S });
873
873
  },
874
- [n, i, v, c, r]
874
+ [n, i, f, c, r]
875
875
  ), g = y(
876
876
  (k) => {
877
877
  const I = k.target.value;
878
878
  if (I === "") return;
879
- const S = (n == null ? void 0 : n.unit) ?? v;
879
+ const S = (n == null ? void 0 : n.unit) ?? f;
880
880
  if (S === void 0) return;
881
881
  let b = Number.parseFloat(I);
882
882
  if (Number.isNaN(b)) return;
883
883
  const x = c ?? 1;
884
884
  b < x && (b = x, i({ value: b, unit: S })), r !== void 0 && b > r && (b = r, i({ value: b, unit: S }));
885
885
  },
886
- [n, i, v, c, r]
886
+ [n, i, f, c, r]
887
887
  ), _ = y(
888
888
  (k) => {
889
889
  const I = k.target.value;
890
890
  i({ value: (n == null ? void 0 : n.value) ?? 1, unit: I });
891
891
  },
892
892
  [n, i]
893
- ), w = (n == null ? void 0 : n.value) ?? "", L = (n == null ? void 0 : n.unit) ?? v ?? "", $ = {};
894
- return u !== void 0 ? $.width = `${u}px` : $.width = "100%", h !== void 0 && ($.height = `${h}px`), /* @__PURE__ */ p("div", { className: Fe.container, style: $, children: [
893
+ ), w = (n == null ? void 0 : n.value) ?? "", L = (n == null ? void 0 : n.unit) ?? f ?? "", $ = {};
894
+ return u !== void 0 ? $.width = `${u}px` : $.width = "100%", h !== void 0 && ($.height = `${h}px`), /* @__PURE__ */ p("div", { className: je.container, style: $, children: [
895
895
  /* @__PURE__ */ t(
896
896
  "input",
897
897
  {
898
898
  type: "number",
899
- className: Fe.valueInput,
899
+ className: je.valueInput,
900
900
  value: w,
901
901
  onChange: m,
902
902
  onBlur: g,
@@ -906,13 +906,13 @@ const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_
906
906
  step: s,
907
907
  readOnly: l,
908
908
  disabled: l,
909
- "aria-label": f
909
+ "aria-label": v
910
910
  }
911
911
  ),
912
912
  /* @__PURE__ */ t(
913
913
  "select",
914
914
  {
915
- className: Fe.unitSelect,
915
+ className: je.unitSelect,
916
916
  value: L,
917
917
  onChange: _,
918
918
  disabled: l || !o || o.length <= 1,
@@ -921,11 +921,11 @@ const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_
921
921
  }
922
922
  )
923
923
  ] });
924
- }, fl = "_container_14f2v_5", gl = "_select_14f2v_11", yl = "_placeholderOverlay_14f2v_44", je = {
925
- container: fl,
926
- select: gl,
927
- placeholderOverlay: yl
928
- }, ge = (e) => {
924
+ }, _l = "_container_14f2v_5", xl = "_select_14f2v_11", wl = "_placeholderOverlay_14f2v_44", Ue = {
925
+ container: _l,
926
+ select: xl,
927
+ placeholderOverlay: wl
928
+ }, ye = (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) => {
931
931
  const _ = g.target.value;
@@ -939,18 +939,18 @@ const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_
939
939
  }
940
940
  },
941
941
  [i, o]
942
- ), h = n ?? "", f = n !== void 0 && n !== "", v = {};
943
- r !== void 0 ? v.width = `${r}px` : v.width = "100%";
942
+ ), h = n ?? "", v = n !== void 0 && n !== "", f = {};
943
+ r !== void 0 ? f.width = `${r}px` : f.width = "100%";
944
944
  const m = {
945
945
  width: "100%",
946
946
  height: s ? `${s}px` : void 0
947
947
  };
948
- return /* @__PURE__ */ p("div", { className: je.container, style: v, children: [
949
- !f && /* @__PURE__ */ t("div", { className: je.placeholderOverlay, style: m, children: c }),
948
+ return /* @__PURE__ */ p("div", { className: Ue.container, style: f, children: [
949
+ !v && /* @__PURE__ */ t("div", { className: Ue.placeholderOverlay, style: m, children: c }),
950
950
  /* @__PURE__ */ p(
951
951
  "select",
952
952
  {
953
- className: je.select,
953
+ className: Ue.select,
954
954
  style: m,
955
955
  value: h,
956
956
  onChange: u,
@@ -964,9 +964,9 @@ const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_
964
964
  )
965
965
  ] });
966
966
  };
967
- ge.displayName = "Dropdown";
968
- const _l = "_button_16snt_1", xl = {
969
- button: _l
967
+ ye.displayName = "Dropdown";
968
+ const Nl = "_button_16snt_1", Cl = {
969
+ button: Nl
970
970
  }, Z = ({
971
971
  icon: e,
972
972
  label: n,
@@ -979,7 +979,7 @@ const _l = "_button_16snt_1", xl = {
979
979
  "button",
980
980
  {
981
981
  type: "button",
982
- className: xl.button,
982
+ className: Cl.button,
983
983
  onMouseDown: c ? (r) => r.preventDefault() : void 0,
984
984
  onMouseEnter: l,
985
985
  onClick: i,
@@ -990,20 +990,20 @@ const _l = "_button_16snt_1", xl = {
990
990
  }
991
991
  );
992
992
  Z.displayName = "IconActionButton";
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
- }, Mt = ({
993
+ const Sl = "_container_ytzac_4", Il = "_scrollArea_ytzac_21", $l = "_emptyState_ytzac_29", Ve = {
994
+ container: Sl,
995
+ scrollArea: Il,
996
+ emptyState: $l
997
+ }, Dt = ({
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 }) }), 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 = ({
1001
+ }) => /* @__PURE__ */ t("div", { className: `${Ve.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ve.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ve.emptyState, children: n }) }), Ll = "_root_vttth_1", kl = "_list_vttth_9", Tl = "_trigger_vttth_24", El = "_content_vttth_69", Re = {
1002
+ root: Ll,
1003
+ list: kl,
1004
+ trigger: Tl,
1005
+ content: El
1006
+ }, We = _t(void 0), Al = ({
1007
1007
  defaultValue: e,
1008
1008
  value: n,
1009
1009
  onValueChange: i,
@@ -1014,28 +1014,28 @@ const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_
1014
1014
  const [c, r] = O(e), s = n ?? c, d = (u) => {
1015
1015
  r(u), i == null || i(u);
1016
1016
  };
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
- }, Tl = ({
1017
+ return /* @__PURE__ */ t(We.Provider, { value: { value: s, onChange: d, variant: a }, children: /* @__PURE__ */ t("div", { className: `${Re.root} ${o}`, "data-variant": a, children: l }) });
1018
+ }, Ml = ({
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 = Pe(We);
1025
+ const o = ze(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 };
1029
1029
  return i !== void 0 && (r.width = `${i}px`), l !== void 0 && (r.height = `${l}px`), /* @__PURE__ */ t(
1030
1030
  "div",
1031
1031
  {
1032
- className: `${ze.list} ${n}`,
1032
+ className: `${Re.list} ${n}`,
1033
1033
  "data-variant": c,
1034
1034
  style: r,
1035
1035
  children: e
1036
1036
  }
1037
1037
  );
1038
- }, _e = ({
1038
+ }, xe = ({
1039
1039
  value: e,
1040
1040
  children: n,
1041
1041
  className: i = "",
@@ -1044,36 +1044,36 @@ const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_
1044
1044
  height: o,
1045
1045
  style: c
1046
1046
  }) => {
1047
- const r = Pe(We);
1047
+ const r = ze(We);
1048
1048
  if (!r)
1049
1049
  throw new Error("TabsTrigger must be used within a Tabs component");
1050
- const { value: s, onChange: d, variant: u } = r, h = s === e, f = { ...c };
1051
- return a !== void 0 && (f.width = `${a}px`), o !== void 0 && (f.height = `${o}px`), /* @__PURE__ */ t(
1050
+ const { value: s, onChange: d, variant: u } = r, h = s === e, v = { ...c };
1051
+ return a !== void 0 && (v.width = `${a}px`), o !== void 0 && (v.height = `${o}px`), /* @__PURE__ */ t(
1052
1052
  "button",
1053
1053
  {
1054
- className: `${ze.trigger} ${i}`,
1054
+ className: `${Re.trigger} ${i}`,
1055
1055
  "data-state": h ? "active" : "inactive",
1056
1056
  "data-variant": u,
1057
1057
  onClick: () => d(e),
1058
1058
  disabled: l,
1059
1059
  type: "button",
1060
- style: f,
1060
+ style: v,
1061
1061
  children: n
1062
1062
  }
1063
1063
  );
1064
- }, xe = ({
1064
+ }, we = ({
1065
1065
  value: e,
1066
1066
  children: n,
1067
1067
  className: i = ""
1068
1068
  }) => {
1069
- const l = Pe(We);
1069
+ const l = ze(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
- return a !== e ? null : /* @__PURE__ */ t("div", { className: `${ze.content} ${i}`, children: n });
1074
- }, El = "_input_jxjyc_5", Al = {
1075
- input: El
1076
- }, Se = ({
1073
+ return a !== e ? null : /* @__PURE__ */ t("div", { className: `${Re.content} ${i}`, children: n });
1074
+ }, Pl = "_input_jxjyc_5", Dl = {
1075
+ input: Pl
1076
+ }, Ie = ({
1077
1077
  value: e,
1078
1078
  onChange: n,
1079
1079
  readOnly: i = !1,
@@ -1087,7 +1087,7 @@ const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_
1087
1087
  config: u,
1088
1088
  onBlur: h
1089
1089
  }) => {
1090
- const f = l ?? (u == null ? void 0 : u.placeholder), v = a ?? (u == null ? void 0 : u.maxLength), m = o ?? (u == null ? void 0 : u.multiline) ?? !1, g = c ?? (u == null ? void 0 : u.rows) ?? 3, _ = y(
1090
+ const v = l ?? (u == null ? void 0 : u.placeholder), f = a ?? (u == null ? void 0 : u.maxLength), m = o ?? (u == null ? void 0 : u.multiline) ?? !1, g = c ?? (u == null ? void 0 : u.rows) ?? 3, _ = y(
1091
1091
  ($) => {
1092
1092
  n($.target.value);
1093
1093
  },
@@ -1095,19 +1095,19 @@ const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_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: Al.input,
1098
+ className: Dl.input,
1099
1099
  style: w,
1100
1100
  value: e ?? "",
1101
1101
  onChange: _,
1102
1102
  disabled: i,
1103
- placeholder: f,
1104
- maxLength: v,
1103
+ placeholder: v,
1104
+ maxLength: f,
1105
1105
  "aria-label": d
1106
1106
  };
1107
1107
  return m ? /* @__PURE__ */ t("textarea", { ...L, rows: g }) : /* @__PURE__ */ t("input", { ...L, type: "text", onBlur: h });
1108
1108
  };
1109
- Se.displayName = "TextInput";
1110
- const Ml = ({
1109
+ Ie.displayName = "TextInput";
1110
+ const zl = ({
1111
1111
  actionContext: e,
1112
1112
  onActionFeedback: n,
1113
1113
  onPrint: i
@@ -1115,16 +1115,16 @@ const Ml = ({
1115
1115
  const l = e.isEnabled("undo"), a = e.isEnabled("redo"), o = e.isEnabled("paste"), c = y(
1116
1116
  (r) => {
1117
1117
  e.execute(r);
1118
- const s = lt(r);
1118
+ const s = it(r);
1119
1119
  s && (n == null || n(s));
1120
1120
  },
1121
1121
  [e, n]
1122
1122
  );
1123
- return /* @__PURE__ */ p(oe, { children: [
1123
+ return /* @__PURE__ */ p(se, { children: [
1124
1124
  /* @__PURE__ */ t(
1125
1125
  Z,
1126
1126
  {
1127
- icon: /* @__PURE__ */ t(Xe, { "aria-hidden": "true" }),
1127
+ icon: /* @__PURE__ */ t(Qe, { "aria-hidden": "true" }),
1128
1128
  label: "元に戻す",
1129
1129
  title: "元に戻す (Ctrl+Z / Cmd+Z)",
1130
1130
  onClick: () => c("undo"),
@@ -1135,7 +1135,7 @@ const Ml = ({
1135
1135
  /* @__PURE__ */ t(
1136
1136
  Z,
1137
1137
  {
1138
- icon: /* @__PURE__ */ t(Qe, { "aria-hidden": "true" }),
1138
+ icon: /* @__PURE__ */ t(et, { "aria-hidden": "true" }),
1139
1139
  label: "やり直し",
1140
1140
  title: "やり直し (Ctrl+Y / Cmd+Y)",
1141
1141
  onClick: () => c("redo"),
@@ -1157,7 +1157,7 @@ const Ml = ({
1157
1157
  /* @__PURE__ */ t(
1158
1158
  Z,
1159
1159
  {
1160
- icon: /* @__PURE__ */ t(It, { "aria-hidden": "true" }),
1160
+ icon: /* @__PURE__ */ t(Lt, { "aria-hidden": "true" }),
1161
1161
  label: "印刷",
1162
1162
  title: "印刷 (Ctrl+P)",
1163
1163
  onClick: () => i ? i() : window.print(),
@@ -1166,8 +1166,8 @@ const Ml = ({
1166
1166
  )
1167
1167
  ] });
1168
1168
  };
1169
- Ml.displayName = "CanvasActionSection";
1170
- const ut = { value: 1, unit: "fr" }, Dl = ({
1169
+ zl.displayName = "CanvasActionSection";
1170
+ const pt = { value: 1, unit: "fr" }, Bl = ({
1171
1171
  grid: e,
1172
1172
  onGridChange: n
1173
1173
  }) => {
@@ -1175,36 +1175,36 @@ const ut = { value: 1, unit: "fr" }, Dl = ({
1175
1175
  (a) => {
1176
1176
  const o = parseInt(a.target.value, 10);
1177
1177
  if (!o || o < 1 || o > 100) return;
1178
- const c = _t(e), r = e.colCount, s = [...c];
1178
+ const c = wt(e), r = e.colCount, s = [...c];
1179
1179
  if (o > r)
1180
1180
  for (let d = r; d < o; d++)
1181
- s.push({ ...ut });
1181
+ s.push({ ...pt });
1182
1182
  else
1183
1183
  s.splice(o);
1184
- n({ ...e, ...xt(s) });
1184
+ n({ ...e, ...Nt(s) });
1185
1185
  },
1186
1186
  [e, n]
1187
1187
  ), l = y(
1188
1188
  (a) => {
1189
1189
  const o = parseInt(a.target.value, 10);
1190
1190
  if (!o || o < 1 || o > 100) return;
1191
- const c = wt(e), r = e.rowCount, s = [...c];
1191
+ const c = Ct(e), r = e.rowCount, s = [...c];
1192
1192
  if (o > r)
1193
1193
  for (let d = r; d < o; d++)
1194
- s.push({ ...ut });
1194
+ s.push({ ...pt });
1195
1195
  else
1196
1196
  s.splice(o);
1197
- n({ ...e, ...Nt(s) });
1197
+ n({ ...e, ...St(s) });
1198
1198
  },
1199
1199
  [e, n]
1200
1200
  );
1201
- return /* @__PURE__ */ p(oe, { children: [
1202
- /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "列" }),
1201
+ return /* @__PURE__ */ p(se, { children: [
1202
+ /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "列" }),
1203
1203
  /* @__PURE__ */ t(
1204
1204
  "input",
1205
1205
  {
1206
1206
  type: "number",
1207
- className: P.numberInput,
1207
+ className: D.numberInput,
1208
1208
  value: e.colCount,
1209
1209
  min: 1,
1210
1210
  max: 100,
@@ -1213,12 +1213,12 @@ const ut = { value: 1, unit: "fr" }, Dl = ({
1213
1213
  title: "列数"
1214
1214
  }
1215
1215
  ),
1216
- /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "行" }),
1216
+ /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "行" }),
1217
1217
  /* @__PURE__ */ t(
1218
1218
  "input",
1219
1219
  {
1220
1220
  type: "number",
1221
- className: P.numberInput,
1221
+ className: D.numberInput,
1222
1222
  value: e.rowCount,
1223
1223
  min: 1,
1224
1224
  max: 100,
@@ -1229,8 +1229,8 @@ const ut = { value: 1, unit: "fr" }, Dl = ({
1229
1229
  )
1230
1230
  ] });
1231
1231
  };
1232
- Dl.displayName = "GridSettingsSection";
1233
- function ke(e, n) {
1232
+ Bl.displayName = "GridSettingsSection";
1233
+ function Te(e, n) {
1234
1234
  switch (n) {
1235
1235
  case "cm":
1236
1236
  return e / 10;
@@ -1240,60 +1240,60 @@ function ke(e, n) {
1240
1240
  return e;
1241
1241
  }
1242
1242
  }
1243
- const Pl = [
1243
+ const Rl = [
1244
1244
  { value: F.A4, label: "A4" },
1245
1245
  { value: F.A3, label: "A3" },
1246
1246
  { value: F.B5, label: "B5" },
1247
1247
  { value: F.LETTER, label: "Letter" },
1248
1248
  { value: F.LEGAL, label: "Legal" },
1249
1249
  { value: F.CUSTOM, label: "カスタム" }
1250
- ], Bl = ({
1250
+ ], Wl = ({
1251
1251
  paper: e,
1252
1252
  onPaperChange: n
1253
1253
  }) => {
1254
1254
  const i = e.size.preset === F.CUSTOM, l = e.autoHeight === !0, a = e.autoWidth === !0, o = y(
1255
1255
  (h) => {
1256
- const f = h.target.value;
1257
- f && n({
1256
+ const v = h.target.value;
1257
+ v && n({
1258
1258
  ...e,
1259
- size: { ...Ct[f] }
1259
+ size: { ...It[v] }
1260
1260
  });
1261
1261
  },
1262
1262
  [e, n]
1263
1263
  ), c = y(
1264
1264
  ({ target: h }) => {
1265
- const f = Number(h.value);
1266
- if (!f || f <= 0) return;
1267
- const v = K.fromDim(e.margin.left) + K.fromDim(e.margin.right), m = ke(v, e.size.width.unit);
1268
- if (f < m) return;
1265
+ const v = Number(h.value);
1266
+ if (!v || v <= 0) return;
1267
+ const f = K.fromDim(e.margin.left) + K.fromDim(e.margin.right), m = Te(f, e.size.width.unit);
1268
+ if (v < m) return;
1269
1269
  const g = {
1270
1270
  ...e.size,
1271
- width: { ...e.size.width, value: f }
1271
+ width: { ...e.size.width, value: v }
1272
1272
  };
1273
1273
  n({ ...e, size: g });
1274
1274
  },
1275
1275
  [e, n]
1276
1276
  ), r = y(
1277
1277
  ({ target: h }) => {
1278
- const f = Number(h.value);
1279
- if (!f || f <= 0) return;
1280
- const v = K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom), m = ke(v, e.size.height.unit);
1281
- if (f < m) return;
1278
+ const v = Number(h.value);
1279
+ if (!v || v <= 0) return;
1280
+ const f = K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom), m = Te(f, e.size.height.unit);
1281
+ if (v < m) return;
1282
1282
  const g = {
1283
1283
  ...e.size,
1284
- height: { ...e.size.height, value: f }
1284
+ height: { ...e.size.height, value: v }
1285
1285
  };
1286
1286
  n({ ...e, size: g });
1287
1287
  },
1288
1288
  [e, n]
1289
1289
  ), s = y(
1290
1290
  ({ target: h }) => {
1291
- const f = h.value, v = {
1291
+ const v = h.value, f = {
1292
1292
  ...e.size,
1293
- width: { ...e.size.width, unit: f },
1294
- height: { ...e.size.height, unit: f }
1293
+ width: { ...e.size.width, unit: v },
1294
+ height: { ...e.size.height, unit: v }
1295
1295
  };
1296
- n({ ...e, size: v });
1296
+ n({ ...e, size: f });
1297
1297
  },
1298
1298
  [e, n]
1299
1299
  ), d = y(() => {
@@ -1301,24 +1301,24 @@ const Pl = [
1301
1301
  }, [e, l, n]), u = y(() => {
1302
1302
  n({ ...e, autoWidth: a ? void 0 : !0 });
1303
1303
  }, [e, a, n]);
1304
- return /* @__PURE__ */ p(oe, { children: [
1305
- /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "用紙" }),
1304
+ return /* @__PURE__ */ p(se, { children: [
1305
+ /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "用紙" }),
1306
1306
  /* @__PURE__ */ t(
1307
1307
  "select",
1308
1308
  {
1309
- className: P.select,
1309
+ className: D.select,
1310
1310
  value: e.size.preset,
1311
1311
  onChange: o,
1312
1312
  "aria-label": "用紙サイズ",
1313
1313
  title: "用紙サイズ",
1314
- children: Pl.map((h) => /* @__PURE__ */ t("option", { value: h.value, children: h.label }, h.value))
1314
+ children: Rl.map((h) => /* @__PURE__ */ t("option", { value: h.value, children: h.label }, h.value))
1315
1315
  }
1316
1316
  ),
1317
- /* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
1317
+ /* @__PURE__ */ p("div", { className: D.heightModeSwitch, children: [
1318
1318
  /* @__PURE__ */ t(
1319
1319
  "span",
1320
1320
  {
1321
- className: `${P.switchLabel} ${l ? "" : P.switchLabelActive}`,
1321
+ className: `${D.switchLabel} ${l ? "" : D.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: P.toggle,
1332
+ className: D.toggle,
1333
1333
  onClick: d,
1334
- children: /* @__PURE__ */ t("span", { className: P.thumb })
1334
+ children: /* @__PURE__ */ t("span", { className: D.thumb })
1335
1335
  }
1336
1336
  ),
1337
1337
  /* @__PURE__ */ t(
1338
1338
  "span",
1339
1339
  {
1340
- className: `${P.switchLabel} ${l ? P.switchLabelActive : ""}`,
1340
+ className: `${D.switchLabel} ${l ? D.switchLabelActive : ""}`,
1341
1341
  children: "自動"
1342
1342
  }
1343
1343
  )
1344
1344
  ] }),
1345
- /* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
1345
+ /* @__PURE__ */ p("div", { className: D.heightModeSwitch, children: [
1346
1346
  /* @__PURE__ */ t(
1347
1347
  "span",
1348
1348
  {
1349
- className: `${P.switchLabel} ${a ? "" : P.switchLabelActive}`,
1349
+ className: `${D.switchLabel} ${a ? "" : D.switchLabelActive}`,
1350
1350
  children: "幅固定"
1351
1351
  }
1352
1352
  ),
@@ -1357,27 +1357,27 @@ const Pl = [
1357
1357
  role: "switch",
1358
1358
  "aria-checked": a,
1359
1359
  "aria-label": "幅モード",
1360
- className: P.toggle,
1360
+ className: D.toggle,
1361
1361
  onClick: u,
1362
- children: /* @__PURE__ */ t("span", { className: P.thumb })
1362
+ children: /* @__PURE__ */ t("span", { className: D.thumb })
1363
1363
  }
1364
1364
  ),
1365
1365
  /* @__PURE__ */ t(
1366
1366
  "span",
1367
1367
  {
1368
- className: `${P.switchLabel} ${a ? P.switchLabelActive : ""}`,
1368
+ className: `${D.switchLabel} ${a ? D.switchLabelActive : ""}`,
1369
1369
  children: "幅自動"
1370
1370
  }
1371
1371
  )
1372
1372
  ] }),
1373
- i && /* @__PURE__ */ p(oe, { children: [
1373
+ i && /* @__PURE__ */ p(se, { children: [
1374
1374
  /* @__PURE__ */ t(
1375
1375
  "input",
1376
1376
  {
1377
1377
  type: "number",
1378
- className: P.numberInput,
1378
+ className: D.numberInput,
1379
1379
  value: e.size.width.value,
1380
- min: ke(
1380
+ min: Te(
1381
1381
  K.fromDim(e.margin.left) + K.fromDim(e.margin.right),
1382
1382
  e.size.width.unit
1383
1383
  ),
@@ -1388,14 +1388,14 @@ const Pl = [
1388
1388
  title: "幅"
1389
1389
  }
1390
1390
  ),
1391
- /* @__PURE__ */ t("span", { className: P.sectionLabel, children: "×" }),
1391
+ /* @__PURE__ */ t("span", { className: D.sectionLabel, children: "×" }),
1392
1392
  /* @__PURE__ */ t(
1393
1393
  "input",
1394
1394
  {
1395
1395
  type: "number",
1396
- className: P.numberInput,
1396
+ className: D.numberInput,
1397
1397
  value: e.size.height.value,
1398
- min: ke(
1398
+ min: Te(
1399
1399
  K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom),
1400
1400
  e.size.height.unit
1401
1401
  ),
@@ -1409,7 +1409,7 @@ const Pl = [
1409
1409
  /* @__PURE__ */ p(
1410
1410
  "select",
1411
1411
  {
1412
- className: P.select,
1412
+ className: D.select,
1413
1413
  value: e.size.width.unit,
1414
1414
  onChange: s,
1415
1415
  "aria-label": "用紙単位",
@@ -1424,8 +1424,8 @@ const Pl = [
1424
1424
  ] })
1425
1425
  ] });
1426
1426
  };
1427
- Bl.displayName = "PaperSettingsSection";
1428
- function ne(e, n, i) {
1427
+ Wl.displayName = "PaperSettingsSection";
1428
+ function le(e, n, i) {
1429
1429
  const l = n.split("."), a = (o, c) => {
1430
1430
  const r = l[c];
1431
1431
  if (c === l.length - 1) {
@@ -1459,7 +1459,7 @@ function Y(e, n) {
1459
1459
  (c) => i(c, l) === a
1460
1460
  ) ? a : void 0;
1461
1461
  }
1462
- function zl(e, n, i) {
1462
+ function Ol(e, n, i) {
1463
1463
  var o, c;
1464
1464
  if (!e) return [];
1465
1465
  const l = [], a = [
@@ -1475,9 +1475,9 @@ function zl(e, n, i) {
1475
1475
  },
1476
1476
  { key: "left", style: e.left, x1: 0, y1: 0, x2: 0, y2: i }
1477
1477
  ];
1478
- for (const { key: r, style: s, x1: d, y1: u, x2: h, y2: f } of a) {
1478
+ for (const { key: r, style: s, x1: d, y1: u, x2: h, y2: v } of a) {
1479
1479
  if (!(s != null && s.type)) continue;
1480
- const v = ((o = s.width) == null ? void 0 : o.unit) === "px" ? s.width.value : ((c = s.width) == null ? void 0 : c.value) ?? 1, m = s.type === he.DASHED ? "8 4" : s.type === he.DOTTED ? "2 4" : void 0;
1480
+ const f = ((o = s.width) == null ? void 0 : o.unit) === "px" ? s.width.value : ((c = s.width) == null ? void 0 : c.value) ?? 1, m = s.type === ue.DASHED ? "8 4" : s.type === ue.DOTTED ? "2 4" : void 0;
1481
1481
  l.push(
1482
1482
  /* @__PURE__ */ t(
1483
1483
  "line",
@@ -1485,9 +1485,9 @@ function zl(e, n, i) {
1485
1485
  x1: d,
1486
1486
  y1: u,
1487
1487
  x2: h,
1488
- y2: f,
1488
+ y2: v,
1489
1489
  stroke: s.color ?? "#000",
1490
- strokeWidth: v,
1490
+ strokeWidth: f,
1491
1491
  strokeDasharray: m
1492
1492
  },
1493
1493
  r
@@ -1496,67 +1496,67 @@ function zl(e, n, i) {
1496
1496
  }
1497
1497
  return l;
1498
1498
  }
1499
- const it = ({
1499
+ const at = ({
1500
1500
  selectedBlocks: e,
1501
1501
  onUpdateBlocks: n
1502
1502
  }) => {
1503
1503
  const i = (u) => {
1504
1504
  const h = {};
1505
- for (const f of e)
1506
- h[f.id] = { style: { ...f.style, backgroundColor: u } };
1505
+ for (const v of e)
1506
+ h[v.id] = { style: { ...v.style, backgroundColor: u } };
1507
1507
  n(h);
1508
- }, l = (u, h, f) => {
1508
+ }, l = (u, h, v) => {
1509
1509
  var g, _, w;
1510
- const v = {}, m = u === "all" ? ["top", "right", "bottom", "left"] : [u];
1510
+ const f = {}, m = u === "all" ? ["top", "right", "bottom", "left"] : [u];
1511
1511
  for (const L of e) {
1512
1512
  let $ = L.style || {};
1513
1513
  for (const k of m) {
1514
- if ($ = ne($, `border.${k}.${h}`, f), h === "type" && f == null && ($ = ne($, `border.${k}.width`, null), $ = ne($, `border.${k}.color`, null)), h === "type" && f !== void 0 && f !== null) {
1514
+ if ($ = le($, `border.${k}.${h}`, v), h === "type" && v == null && ($ = le($, `border.${k}.width`, null), $ = le($, `border.${k}.color`, null)), h === "type" && v !== void 0 && v !== null) {
1515
1515
  const I = (g = L.style) == null ? void 0 : g.border, S = I == null ? void 0 : I[k];
1516
- S != null && S.width || ($ = ne($, `border.${k}.width`, {
1516
+ S != null && S.width || ($ = le($, `border.${k}.width`, {
1517
1517
  value: 1,
1518
1518
  unit: "px"
1519
- })), S != null && S.color || ($ = ne($, `border.${k}.color`, "#000000"));
1519
+ })), S != null && S.color || ($ = le($, `border.${k}.color`, "#000000"));
1520
1520
  }
1521
- if (h === "color" && f !== void 0 && f !== null) {
1521
+ if (h === "color" && v !== void 0 && v !== null) {
1522
1522
  const I = (_ = L.style) == null ? void 0 : _.border, S = I == null ? void 0 : I[k];
1523
- S != null && S.type || ($ = ne(
1523
+ S != null && S.type || ($ = le(
1524
1524
  $,
1525
1525
  `border.${k}.type`,
1526
- he.SOLID
1527
- )), S != null && S.width || ($ = ne($, `border.${k}.width`, {
1526
+ ue.SOLID
1527
+ )), S != null && S.width || ($ = le($, `border.${k}.width`, {
1528
1528
  value: 1,
1529
1529
  unit: "px"
1530
1530
  }));
1531
1531
  }
1532
- if (h === "width" && f !== void 0 && f !== null) {
1532
+ if (h === "width" && v !== void 0 && v !== null) {
1533
1533
  const I = (w = L.style) == null ? void 0 : w.border, S = I == null ? void 0 : I[k];
1534
- S != null && S.type || ($ = ne(
1534
+ S != null && S.type || ($ = le(
1535
1535
  $,
1536
1536
  `border.${k}.type`,
1537
- he.SOLID
1538
- )), S != null && S.color || ($ = ne($, `border.${k}.color`, "#000000"));
1537
+ ue.SOLID
1538
+ )), S != null && S.color || ($ = le($, `border.${k}.color`, "#000000"));
1539
1539
  }
1540
1540
  }
1541
- v[L.id] = { style: $ };
1541
+ f[L.id] = { style: $ };
1542
1542
  }
1543
- n(v);
1543
+ n(f);
1544
1544
  }, a = Y(
1545
1545
  e,
1546
1546
  "style.backgroundColor"
1547
- ), o = te(() => {
1547
+ ), o = ne(() => {
1548
1548
  var h;
1549
1549
  if (e.length !== 1) return;
1550
1550
  const u = e[0];
1551
1551
  return (h = u == null ? void 0 : u.style) == null ? void 0 : h.border;
1552
- }, [e]), c = te(
1553
- () => zl(o, 80, 80),
1552
+ }, [e]), c = ne(
1553
+ () => Ol(o, 80, 80),
1554
1554
  [o]
1555
1555
  );
1556
1556
  if (e.length === 0) return null;
1557
1557
  const r = (u) => u === "all" ? "top" : u, s = (u) => /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
1558
1558
  /* @__PURE__ */ t(
1559
- ge,
1559
+ ye,
1560
1560
  {
1561
1561
  value: Y(
1562
1562
  e,
@@ -1567,9 +1567,9 @@ const it = ({
1567
1567
  height: 24,
1568
1568
  options: [
1569
1569
  { label: "", value: null },
1570
- { label: "実線", value: he.SOLID },
1571
- { label: "破線", value: he.DASHED },
1572
- { label: "点線", value: he.DOTTED }
1570
+ { label: "実線", value: ue.SOLID },
1571
+ { label: "破線", value: ue.DASHED },
1572
+ { label: "点線", value: ue.DOTTED }
1573
1573
  ]
1574
1574
  }
1575
1575
  ),
@@ -1583,12 +1583,12 @@ const it = ({
1583
1583
  onChange: (h) => l(u, "width", h),
1584
1584
  placeholder: "太さ",
1585
1585
  height: 24,
1586
- allowedUnits: on,
1586
+ allowedUnits: rn,
1587
1587
  min: 1
1588
1588
  }
1589
1589
  ),
1590
1590
  /* @__PURE__ */ t(
1591
- le,
1591
+ ie,
1592
1592
  {
1593
1593
  value: Y(
1594
1594
  e,
@@ -1738,7 +1738,7 @@ const it = ({
1738
1738
  }
1739
1739
  ),
1740
1740
  /* @__PURE__ */ t(
1741
- le,
1741
+ ie,
1742
1742
  {
1743
1743
  value: a,
1744
1744
  onChange: (u) => i(u),
@@ -1746,34 +1746,34 @@ const it = ({
1746
1746
  allowUndefined: !0
1747
1747
  }
1748
1748
  ),
1749
- /* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(kl, { defaultValue: "all", variant: "segmented", children: [
1750
- /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(Tl, { style: { width: "100%", display: "flex" }, children: [
1751
- /* @__PURE__ */ t(_e, { value: "all", height: 24, style: d, children: "共通" }),
1752
- /* @__PURE__ */ t(_e, { value: "top", height: 24, style: d, children: "上" }),
1753
- /* @__PURE__ */ t(_e, { value: "bottom", height: 24, style: d, children: "下" }),
1754
- /* @__PURE__ */ t(_e, { value: "left", height: 24, style: d, children: "左" }),
1755
- /* @__PURE__ */ t(_e, { value: "right", height: 24, style: d, children: "右" })
1749
+ /* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(Al, { defaultValue: "all", variant: "segmented", children: [
1750
+ /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(Ml, { style: { width: "100%", display: "flex" }, children: [
1751
+ /* @__PURE__ */ t(xe, { value: "all", height: 24, style: d, children: "共通" }),
1752
+ /* @__PURE__ */ t(xe, { value: "top", height: 24, style: d, children: "上" }),
1753
+ /* @__PURE__ */ t(xe, { value: "bottom", height: 24, style: d, children: "下" }),
1754
+ /* @__PURE__ */ t(xe, { value: "left", height: 24, style: d, children: "左" }),
1755
+ /* @__PURE__ */ t(xe, { value: "right", height: 24, style: d, children: "右" })
1756
1756
  ] }) }),
1757
1757
  /* @__PURE__ */ p("div", { style: { marginTop: "4px" }, children: [
1758
- /* @__PURE__ */ t(xe, { value: "all", children: s("all") }),
1759
- /* @__PURE__ */ t(xe, { value: "top", children: s("top") }),
1760
- /* @__PURE__ */ t(xe, { value: "bottom", children: s("bottom") }),
1761
- /* @__PURE__ */ t(xe, { value: "left", children: s("left") }),
1762
- /* @__PURE__ */ t(xe, { value: "right", children: s("right") })
1758
+ /* @__PURE__ */ t(we, { value: "all", children: s("all") }),
1759
+ /* @__PURE__ */ t(we, { value: "top", children: s("top") }),
1760
+ /* @__PURE__ */ t(we, { value: "bottom", children: s("bottom") }),
1761
+ /* @__PURE__ */ t(we, { value: "left", children: s("left") }),
1762
+ /* @__PURE__ */ t(we, { value: "right", children: s("right") })
1763
1763
  ] })
1764
1764
  ] }) })
1765
1765
  ]
1766
1766
  }
1767
1767
  );
1768
1768
  };
1769
- it.displayName = "BackgroundBorderPanel";
1770
- const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", Fl = "_label_1gf2q_22", jl = "_inputWrapper_1gf2q_32", q = {
1771
- container: Wl,
1772
- grid: Rl,
1773
- field: Ol,
1774
- label: Fl,
1775
- inputWrapper: jl
1776
- }, at = ({
1769
+ at.displayName = "BackgroundBorderPanel";
1770
+ const Fl = "_container_1gf2q_1", jl = "_grid_1gf2q_9", Ul = "_field_1gf2q_15", Vl = "_label_1gf2q_22", ql = "_inputWrapper_1gf2q_32", q = {
1771
+ container: Fl,
1772
+ grid: jl,
1773
+ field: Ul,
1774
+ label: Vl,
1775
+ inputWrapper: ql
1776
+ }, ot = ({
1777
1777
  selectedBlocks: e,
1778
1778
  onUpdateBlocks: n,
1779
1779
  gridSize: i
@@ -1787,11 +1787,11 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1787
1787
  if (u === void 0) return;
1788
1788
  const h = Math.max(
1789
1789
  ...e.map((w) => w.layout.x + w.layout.w)
1790
- ), f = Math.max(
1790
+ ), v = Math.max(
1791
1791
  ...e.map((w) => w.layout.y + w.layout.h)
1792
- ), v = h - (a ?? 0), m = f - (o ?? 0);
1792
+ ), f = h - (a ?? 0), m = v - (o ?? 0);
1793
1793
  let g = s;
1794
- r === "x" && i ? g = Math.max(0, Math.min(s, i.cols - v)) : r === "y" && i ? g = Math.max(0, Math.min(s, i.rows - m)) : g = Math.max(0, s);
1794
+ r === "x" && i ? g = Math.max(0, Math.min(s, i.cols - f)) : r === "y" && i ? g = Math.max(0, Math.min(s, i.rows - m)) : g = Math.max(0, s);
1795
1795
  const _ = g - u;
1796
1796
  e.forEach((w) => {
1797
1797
  const L = w.layout[r] + _;
@@ -1805,16 +1805,16 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1805
1805
  else if (r === "y" && i)
1806
1806
  h = Math.max(0, Math.min(s, i.rows - u.layout.h));
1807
1807
  else if (r === "w" && i) {
1808
- const f = i.cols - u.layout.x;
1809
- h = Math.max(1, Math.min(s, f));
1808
+ const v = i.cols - u.layout.x;
1809
+ h = Math.max(1, Math.min(s, v));
1810
1810
  } else if (r === "h" && i) {
1811
- const f = i.rows - u.layout.y;
1812
- h = Math.max(1, Math.min(s, f));
1811
+ const v = i.rows - u.layout.y;
1812
+ h = Math.max(1, Math.min(s, v));
1813
1813
  } else r === "w" || r === "h" ? h = Math.max(1, s) : h = Math.max(0, s);
1814
1814
  d[u.id] = { layout: { ...u.layout, [r]: h } };
1815
1815
  });
1816
1816
  n(d, {
1817
- mergeKey: sn(
1817
+ mergeKey: cn(
1818
1818
  r,
1819
1819
  e.map((u) => u.id)
1820
1820
  )
@@ -1883,19 +1883,19 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
1883
1883
  ] })
1884
1884
  ] }) });
1885
1885
  };
1886
- at.displayName = "LayoutPanel";
1887
- const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13", ql = "_active_xhfvf_46", Ve = {
1888
- group: Ul,
1889
- btn: Vl,
1890
- active: ql
1891
- }, Ze = fe(
1892
- ({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: Ve.group, children: e.map((l) => {
1886
+ ot.displayName = "LayoutPanel";
1887
+ const Gl = "_group_xhfvf_1", Hl = "_btn_xhfvf_13", Kl = "_active_xhfvf_46", qe = {
1888
+ group: Gl,
1889
+ btn: Hl,
1890
+ active: Kl
1891
+ }, Ye = ge(
1892
+ ({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: qe.group, children: e.map((l) => {
1893
1893
  const a = n === l.value;
1894
1894
  return /* @__PURE__ */ t(
1895
1895
  "button",
1896
1896
  {
1897
1897
  type: "button",
1898
- className: [Ve.btn, a ? Ve.active : ""].filter(Boolean).join(" "),
1898
+ className: [qe.btn, a ? qe.active : ""].filter(Boolean).join(" "),
1899
1899
  title: l.label,
1900
1900
  "aria-label": l.label,
1901
1901
  "aria-pressed": a,
@@ -1906,31 +1906,31 @@ const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13", ql = "_active_xhfvf_46", Ve =
1906
1906
  );
1907
1907
  }) })
1908
1908
  );
1909
- Ze.displayName = "AlignmentToggle";
1910
- const se = rn.defaultProps.styleConfig, re = {
1909
+ Ye.displayName = "AlignmentToggle";
1910
+ const re = dn.defaultProps.styleConfig, ce = {
1911
1911
  fontSize: 11,
1912
1912
  color: "#888",
1913
1913
  whiteSpace: "nowrap",
1914
1914
  width: 62,
1915
1915
  flexShrink: 0
1916
- }, ce = {
1916
+ }, de = {
1917
1917
  display: "flex",
1918
1918
  gap: 4,
1919
1919
  alignItems: "center"
1920
- }, Dt = ({
1920
+ }, zt = ({
1921
1921
  value: e,
1922
1922
  onChange: n,
1923
1923
  readOnly: i = !1
1924
1924
  }) => {
1925
- const l = te(
1925
+ const l = ne(
1926
1926
  () => ({
1927
- checkboxSize: (e == null ? void 0 : e.checkboxSize) ?? se.checkboxSize,
1928
- borderWidth: (e == null ? void 0 : e.borderWidth) ?? se.borderWidth,
1929
- borderColor: (e == null ? void 0 : e.borderColor) ?? se.borderColor,
1930
- checkWidth: (e == null ? void 0 : e.checkWidth) ?? se.checkWidth,
1931
- checkColor: (e == null ? void 0 : e.checkColor) ?? se.checkColor,
1932
- backgroundColor: (e == null ? void 0 : e.backgroundColor) ?? se.backgroundColor,
1933
- checkedBackgroundColor: (e == null ? void 0 : e.checkedBackgroundColor) ?? se.checkedBackgroundColor
1927
+ checkboxSize: (e == null ? void 0 : e.checkboxSize) ?? re.checkboxSize,
1928
+ borderWidth: (e == null ? void 0 : e.borderWidth) ?? re.borderWidth,
1929
+ borderColor: (e == null ? void 0 : e.borderColor) ?? re.borderColor,
1930
+ checkWidth: (e == null ? void 0 : e.checkWidth) ?? re.checkWidth,
1931
+ checkColor: (e == null ? void 0 : e.checkColor) ?? re.checkColor,
1932
+ backgroundColor: (e == null ? void 0 : e.backgroundColor) ?? re.backgroundColor,
1933
+ checkedBackgroundColor: (e == null ? void 0 : e.checkedBackgroundColor) ?? re.checkedBackgroundColor
1934
1934
  }),
1935
1935
  [e]
1936
1936
  ), a = y(
@@ -1954,12 +1954,12 @@ const se = rn.defaultProps.styleConfig, re = {
1954
1954
  },
1955
1955
  children: [!1, !0].map((o) => /* @__PURE__ */ p("div", { style: { textAlign: "center" }, children: [
1956
1956
  /* @__PURE__ */ t("div", { style: { fontSize: 11, color: "#888", marginBottom: 4 }, children: o ? "チェック" : "未チェック" }),
1957
- /* @__PURE__ */ t("div", { style: { width: 24, height: 24 }, children: /* @__PURE__ */ t(cn, { checked: o, styleConfig: l }) })
1957
+ /* @__PURE__ */ t("div", { style: { width: 24, height: 24 }, children: /* @__PURE__ */ t(hn, { checked: o, styleConfig: l }) })
1958
1958
  ] }, String(o)))
1959
1959
  }
1960
1960
  ),
1961
- /* @__PURE__ */ p("div", { style: ce, children: [
1962
- /* @__PURE__ */ t("span", { style: re, children: "サイズ" }),
1961
+ /* @__PURE__ */ p("div", { style: de, children: [
1962
+ /* @__PURE__ */ t("span", { style: ce, children: "サイズ" }),
1963
1963
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
1964
1964
  j,
1965
1965
  {
@@ -1971,8 +1971,8 @@ const se = rn.defaultProps.styleConfig, re = {
1971
1971
  }
1972
1972
  ) })
1973
1973
  ] }),
1974
- /* @__PURE__ */ p("div", { style: ce, children: [
1975
- /* @__PURE__ */ t("span", { style: re, children: "枠線 幅" }),
1974
+ /* @__PURE__ */ p("div", { style: de, children: [
1975
+ /* @__PURE__ */ t("span", { style: ce, children: "枠線 幅" }),
1976
1976
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
1977
1977
  j,
1978
1978
  {
@@ -1984,10 +1984,10 @@ const se = rn.defaultProps.styleConfig, re = {
1984
1984
  }
1985
1985
  ) })
1986
1986
  ] }),
1987
- /* @__PURE__ */ p("div", { style: ce, children: [
1988
- /* @__PURE__ */ t("span", { style: re, children: "枠線 色" }),
1987
+ /* @__PURE__ */ p("div", { style: de, children: [
1988
+ /* @__PURE__ */ t("span", { style: ce, children: "枠線 色" }),
1989
1989
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
1990
- le,
1990
+ ie,
1991
1991
  {
1992
1992
  value: l.borderColor,
1993
1993
  onChange: (o) => a("borderColor", o),
@@ -1996,8 +1996,8 @@ const se = rn.defaultProps.styleConfig, re = {
1996
1996
  }
1997
1997
  ) })
1998
1998
  ] }),
1999
- /* @__PURE__ */ p("div", { style: ce, children: [
2000
- /* @__PURE__ */ t("span", { style: re, children: "チェック 幅" }),
1999
+ /* @__PURE__ */ p("div", { style: de, children: [
2000
+ /* @__PURE__ */ t("span", { style: ce, children: "チェック 幅" }),
2001
2001
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
2002
2002
  j,
2003
2003
  {
@@ -2009,10 +2009,10 @@ const se = rn.defaultProps.styleConfig, re = {
2009
2009
  }
2010
2010
  ) })
2011
2011
  ] }),
2012
- /* @__PURE__ */ p("div", { style: ce, children: [
2013
- /* @__PURE__ */ t("span", { style: re, children: "チェック 色" }),
2012
+ /* @__PURE__ */ p("div", { style: de, children: [
2013
+ /* @__PURE__ */ t("span", { style: ce, children: "チェック 色" }),
2014
2014
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
2015
- le,
2015
+ ie,
2016
2016
  {
2017
2017
  value: l.checkColor,
2018
2018
  onChange: (o) => a("checkColor", o),
@@ -2021,10 +2021,10 @@ const se = rn.defaultProps.styleConfig, re = {
2021
2021
  }
2022
2022
  ) })
2023
2023
  ] }),
2024
- /* @__PURE__ */ p("div", { style: ce, children: [
2025
- /* @__PURE__ */ t("span", { style: re, children: "背景色" }),
2024
+ /* @__PURE__ */ p("div", { style: de, children: [
2025
+ /* @__PURE__ */ t("span", { style: ce, children: "背景色" }),
2026
2026
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
2027
- le,
2027
+ ie,
2028
2028
  {
2029
2029
  value: l.backgroundColor,
2030
2030
  onChange: (o) => a("backgroundColor", o),
@@ -2033,10 +2033,10 @@ const se = rn.defaultProps.styleConfig, re = {
2033
2033
  }
2034
2034
  ) })
2035
2035
  ] }),
2036
- /* @__PURE__ */ p("div", { style: ce, children: [
2037
- /* @__PURE__ */ t("span", { style: re, children: "チェック時 背景色" }),
2036
+ /* @__PURE__ */ p("div", { style: de, children: [
2037
+ /* @__PURE__ */ t("span", { style: ce, children: "チェック時 背景色" }),
2038
2038
  /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
2039
- le,
2039
+ ie,
2040
2040
  {
2041
2041
  value: l.checkedBackgroundColor,
2042
2042
  onChange: (o) => a("checkedBackgroundColor", o),
@@ -2048,37 +2048,37 @@ const se = rn.defaultProps.styleConfig, re = {
2048
2048
  ] })
2049
2049
  ] });
2050
2050
  };
2051
- Dt.displayName = "CheckboxStyleEditor";
2052
- const Gl = "_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 = {
2053
- group: Gl,
2054
- btn: Hl,
2055
- active: Kl,
2056
- iconBold: Zl,
2057
- iconItalic: Yl,
2058
- iconUnderline: Jl,
2059
- iconLineThrough: Xl
2060
- }, Ql = [
2051
+ zt.displayName = "CheckboxStyleEditor";
2052
+ const Zl = "_group_1uyid_1", Yl = "_btn_1uyid_13", Jl = "_active_1uyid_46", Xl = "_iconBold_1uyid_52", Ql = "_iconItalic_1uyid_59", ei = "_iconUnderline_1uyid_66", ti = "_iconLineThrough_1uyid_73", pe = {
2053
+ group: Zl,
2054
+ btn: Yl,
2055
+ active: Jl,
2056
+ iconBold: Xl,
2057
+ iconItalic: Ql,
2058
+ iconUnderline: ei,
2059
+ iconLineThrough: ti
2060
+ }, ni = [
2061
2061
  {
2062
2062
  key: "fontWeight",
2063
2063
  label: "太字",
2064
- icon: /* @__PURE__ */ t("span", { className: ue.iconBold, "aria-hidden": "true", children: "B" })
2064
+ icon: /* @__PURE__ */ t("span", { className: pe.iconBold, "aria-hidden": "true", children: "B" })
2065
2065
  },
2066
2066
  {
2067
2067
  key: "italic",
2068
2068
  label: "斜体",
2069
- icon: /* @__PURE__ */ t("span", { className: ue.iconItalic, "aria-hidden": "true", children: "I" })
2069
+ icon: /* @__PURE__ */ t("span", { className: pe.iconItalic, "aria-hidden": "true", children: "I" })
2070
2070
  },
2071
2071
  {
2072
2072
  key: "underline",
2073
2073
  label: "下線",
2074
- icon: /* @__PURE__ */ t("span", { className: ue.iconUnderline, "aria-hidden": "true", children: "U" })
2074
+ icon: /* @__PURE__ */ t("span", { className: pe.iconUnderline, "aria-hidden": "true", children: "U" })
2075
2075
  },
2076
2076
  {
2077
2077
  key: "lineThrough",
2078
2078
  label: "取り消し線",
2079
- icon: /* @__PURE__ */ t("span", { className: ue.iconLineThrough, "aria-hidden": "true", children: "S" })
2079
+ icon: /* @__PURE__ */ t("span", { className: pe.iconLineThrough, "aria-hidden": "true", children: "S" })
2080
2080
  }
2081
- ], Pt = ({
2081
+ ], Bt = ({
2082
2082
  value: e,
2083
2083
  onChange: n,
2084
2084
  readOnly: i = !1
@@ -2086,13 +2086,13 @@ const Gl = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
2086
2086
  const l = e ?? {}, a = (o) => {
2087
2087
  i || n({ ...l, [o]: !l[o] });
2088
2088
  };
2089
- return /* @__PURE__ */ t("fieldset", { className: ue.group, children: Ql.map(({ key: o, label: c, icon: r }) => {
2089
+ return /* @__PURE__ */ t("fieldset", { className: pe.group, children: ni.map(({ key: o, label: c, icon: r }) => {
2090
2090
  const s = !!l[o];
2091
2091
  return /* @__PURE__ */ t(
2092
2092
  "button",
2093
2093
  {
2094
2094
  type: "button",
2095
- className: [ue.btn, s ? ue.active : ""].filter(Boolean).join(" "),
2095
+ className: [pe.btn, s ? pe.active : ""].filter(Boolean).join(" "),
2096
2096
  title: c,
2097
2097
  "aria-label": c,
2098
2098
  "aria-pressed": s,
@@ -2104,19 +2104,19 @@ const Gl = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
2104
2104
  );
2105
2105
  }) });
2106
2106
  };
2107
- Pt.displayName = "FontDecorationToggle";
2108
- const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell_12n4v_14", li = "_colorCell_12n4v_15", we = {
2109
- root: ei,
2110
- fontFamilyCell: ti,
2111
- fontSizeCell: ni,
2112
- colorCell: li
2113
- }, ii = [
2107
+ Bt.displayName = "FontDecorationToggle";
2108
+ const li = "_root_12n4v_6", ii = "_fontFamilyCell_12n4v_13", ai = "_fontSizeCell_12n4v_14", oi = "_colorCell_12n4v_15", Ne = {
2109
+ root: li,
2110
+ fontFamilyCell: ii,
2111
+ fontSizeCell: ai,
2112
+ colorCell: oi
2113
+ }, si = [
2114
2114
  { label: "ゴシック体", value: "sans-serif" },
2115
2115
  { label: "明朝体", value: "serif" },
2116
2116
  { label: "等幅", value: "monospace" },
2117
2117
  { label: "Arial", value: "Arial, sans-serif" },
2118
2118
  { label: "Times New Roman", value: "'Times New Roman', serif" }
2119
- ], Bt = ({
2119
+ ], Rt = ({
2120
2120
  value: e,
2121
2121
  onChange: n,
2122
2122
  readOnly: i = !1
@@ -2145,28 +2145,28 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
2145
2145
  underline: l.underline,
2146
2146
  lineThrough: l.lineThrough
2147
2147
  };
2148
- return /* @__PURE__ */ p("div", { className: we.root, children: [
2149
- /* @__PURE__ */ t("div", { className: we.fontFamilyCell, children: /* @__PURE__ */ t(
2150
- ge,
2148
+ return /* @__PURE__ */ p("div", { className: Ne.root, children: [
2149
+ /* @__PURE__ */ t("div", { className: Ne.fontFamilyCell, children: /* @__PURE__ */ t(
2150
+ ye,
2151
2151
  {
2152
2152
  value: l.fontFamily,
2153
2153
  onChange: a,
2154
2154
  readOnly: i,
2155
- options: ii,
2155
+ options: si,
2156
2156
  placeholder: "フォント"
2157
2157
  }
2158
2158
  ) }),
2159
- /* @__PURE__ */ t("div", { className: we.fontSizeCell, children: /* @__PURE__ */ t(
2159
+ /* @__PURE__ */ t("div", { className: Ne.fontSizeCell, children: /* @__PURE__ */ t(
2160
2160
  j,
2161
2161
  {
2162
2162
  value: l.fontSize,
2163
2163
  onChange: o,
2164
2164
  readOnly: i,
2165
- config: { allowedUnits: dn, min: 1, step: 1 }
2165
+ config: { allowedUnits: un, min: 1, step: 1 }
2166
2166
  }
2167
2167
  ) }),
2168
- /* @__PURE__ */ t("div", { className: we.colorCell, children: /* @__PURE__ */ t(
2169
- le,
2168
+ /* @__PURE__ */ t("div", { className: Ne.colorCell, children: /* @__PURE__ */ t(
2169
+ ie,
2170
2170
  {
2171
2171
  value: l.color,
2172
2172
  onChange: c,
@@ -2174,8 +2174,8 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
2174
2174
  allowUndefined: !0
2175
2175
  }
2176
2176
  ) }),
2177
- /* @__PURE__ */ t("div", { className: we.decorationCell, children: /* @__PURE__ */ t(
2178
- Pt,
2177
+ /* @__PURE__ */ t("div", { className: Ne.decorationCell, children: /* @__PURE__ */ t(
2178
+ Bt,
2179
2179
  {
2180
2180
  value: s,
2181
2181
  onChange: r,
@@ -2184,64 +2184,64 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
2184
2184
  ) })
2185
2185
  ] });
2186
2186
  };
2187
- Bt.displayName = "FontStyleEditor";
2188
- const zt = ({
2187
+ Rt.displayName = "FontStyleEditor";
2188
+ const Wt = ({
2189
2189
  value: e,
2190
2190
  onChange: n,
2191
2191
  readOnly: i = !1
2192
2192
  }) => {
2193
- const l = e.options ?? [], a = an(), o = te(() => {
2194
- const v = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set();
2193
+ const l = e.options ?? [], a = sn(), o = ne(() => {
2194
+ const f = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set();
2195
2195
  for (const [g, _] of l.entries())
2196
- v.has(_.value) ? (m.add(v.get(_.value)), m.add(g)) : v.set(_.value, g);
2196
+ f.has(_.value) ? (m.add(f.get(_.value)), m.add(g)) : f.set(_.value, g);
2197
2197
  return m;
2198
2198
  }, [l]), c = y(() => {
2199
- const v = {
2199
+ const f = {
2200
2200
  label: `選択肢${l.length + 1}`,
2201
2201
  value: `option${l.length + 1}`
2202
2202
  };
2203
- n({ ...e, options: [...l, v] });
2203
+ n({ ...e, options: [...l, f] });
2204
2204
  }, [l, e, n]), r = y(
2205
- (v) => {
2206
- n({ ...e, options: l.filter((m, g) => g !== v) });
2205
+ (f) => {
2206
+ n({ ...e, options: l.filter((m, g) => g !== f) });
2207
2207
  },
2208
2208
  [l, e, n]
2209
2209
  ), s = y(
2210
- (v, m) => {
2210
+ (f, m) => {
2211
2211
  n({
2212
2212
  ...e,
2213
2213
  options: l.map(
2214
- (g, _) => _ === v ? { ...g, label: m } : g
2214
+ (g, _) => _ === f ? { ...g, label: m } : g
2215
2215
  )
2216
2216
  });
2217
2217
  },
2218
2218
  [l, e, n]
2219
2219
  ), d = y(
2220
- (v, m) => {
2220
+ (f, m) => {
2221
2221
  n({
2222
2222
  ...e,
2223
2223
  options: l.map(
2224
- (g, _) => _ === v ? { ...g, value: m } : g
2224
+ (g, _) => _ === f ? { ...g, value: m } : g
2225
2225
  )
2226
2226
  });
2227
2227
  },
2228
2228
  [l, e, n]
2229
2229
  ), u = y(
2230
- (v, m) => {
2230
+ (f, m) => {
2231
2231
  n({
2232
2232
  ...e,
2233
2233
  options: l.map(
2234
- (g, _) => _ === v ? { ...g, color: m } : g
2234
+ (g, _) => _ === f ? { ...g, color: m } : g
2235
2235
  )
2236
2236
  });
2237
2237
  },
2238
2238
  [l, e, n]
2239
2239
  ), h = y(
2240
- (v) => {
2241
- n({ ...e, allowEmpty: v });
2240
+ (f) => {
2241
+ n({ ...e, allowEmpty: f });
2242
2242
  },
2243
2243
  [e, n]
2244
- ), f = {
2244
+ ), v = {
2245
2245
  padding: "4px 8px",
2246
2246
  border: "1px solid #ccc",
2247
2247
  borderRadius: 4,
@@ -2252,10 +2252,10 @@ const zt = ({
2252
2252
  };
2253
2253
  return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
2254
2254
  /* @__PURE__ */ t(
2255
- ae,
2255
+ oe,
2256
2256
  {
2257
2257
  value: e.allowEmpty ?? !0,
2258
- onChange: (v) => h(v ?? !0),
2258
+ onChange: (f) => h(f ?? !0),
2259
2259
  label: "空選択を許可",
2260
2260
  readOnly: i
2261
2261
  }
@@ -2270,7 +2270,7 @@ const zt = ({
2270
2270
  maxHeight: 300,
2271
2271
  overflowY: "auto"
2272
2272
  },
2273
- children: l.map((v, m) => /* @__PURE__ */ p(
2273
+ children: l.map((f, m) => /* @__PURE__ */ p(
2274
2274
  "div",
2275
2275
  {
2276
2276
  style: {
@@ -2333,8 +2333,8 @@ const zt = ({
2333
2333
  {
2334
2334
  type: "text",
2335
2335
  id: `${a}-label-${m}`,
2336
- style: f,
2337
- value: v.label,
2336
+ style: v,
2337
+ value: f.label,
2338
2338
  onChange: (g) => s(m, g.target.value),
2339
2339
  disabled: i,
2340
2340
  placeholder: "表示名"
@@ -2362,10 +2362,10 @@ const zt = ({
2362
2362
  type: "text",
2363
2363
  id: `${a}-value-${m}`,
2364
2364
  style: {
2365
- ...f,
2365
+ ...v,
2366
2366
  borderColor: o.has(m) ? "#e53e3e" : "#ccc"
2367
2367
  },
2368
- value: v.value,
2368
+ value: f.value,
2369
2369
  onChange: (g) => d(m, g.target.value),
2370
2370
  disabled: i,
2371
2371
  placeholder: "内部値"
@@ -2399,9 +2399,9 @@ const zt = ({
2399
2399
  }
2400
2400
  ),
2401
2401
  /* @__PURE__ */ t(
2402
- le,
2402
+ ie,
2403
2403
  {
2404
- value: v.color,
2404
+ value: f.color,
2405
2405
  onChange: (g) => u(m, g),
2406
2406
  allowUndefined: !0,
2407
2407
  placeholder: "色を選択"
@@ -2410,7 +2410,7 @@ const zt = ({
2410
2410
  ] })
2411
2411
  ]
2412
2412
  },
2413
- v.value || `option-${m}`
2413
+ f.value || `option-${m}`
2414
2414
  ))
2415
2415
  }
2416
2416
  ),
@@ -2434,16 +2434,16 @@ const zt = ({
2434
2434
  )
2435
2435
  ] });
2436
2436
  };
2437
- zt.displayName = "OptionsEditor";
2438
- 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 = {
2439
- root: ai,
2440
- linkLabel: oi,
2441
- allRow: si,
2442
- grid: ri,
2443
- sideRow: ci,
2444
- cell: di,
2445
- spacer: hi
2446
- }, Wt = ({
2437
+ Wt.displayName = "OptionsEditor";
2438
+ const ri = "_root_111zo_7", ci = "_linkLabel_111zo_14", di = "_allRow_111zo_31", hi = "_grid_111zo_38", ui = "_sideRow_111zo_45", pi = "_cell_111zo_53", mi = "_spacer_111zo_59", Q = {
2439
+ root: ri,
2440
+ linkLabel: ci,
2441
+ allRow: di,
2442
+ grid: hi,
2443
+ sideRow: ui,
2444
+ cell: pi,
2445
+ spacer: mi
2446
+ }, Ot = ({
2447
2447
  bulk: e,
2448
2448
  onChange: n,
2449
2449
  readOnly: i = !1
@@ -2459,8 +2459,8 @@ const ai = "_root_111zo_7", oi = "_linkLabel_111zo_14", si = "_allRow_111zo_31",
2459
2459
  ),
2460
2460
  "全辺を一括設定"
2461
2461
  ] });
2462
- Wt.displayName = "PaddingLinkCheckbox";
2463
- const ee = { value: 0, unit: "px" }, Rt = ({
2462
+ Ot.displayName = "PaddingLinkCheckbox";
2463
+ const ee = { value: 0, unit: "px" }, Ft = ({
2464
2464
  value: e,
2465
2465
  onChange: n,
2466
2466
  readOnly: i = !1
@@ -2504,7 +2504,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2504
2504
  );
2505
2505
  return /* @__PURE__ */ p("div", { className: Q.root, children: [
2506
2506
  /* @__PURE__ */ t(
2507
- Wt,
2507
+ Ot,
2508
2508
  {
2509
2509
  bulk: a,
2510
2510
  onChange: o,
@@ -2518,7 +2518,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2518
2518
  {
2519
2519
  value: l.all ?? ee,
2520
2520
  onChange: c,
2521
- config: { allowedUnits: ye, min: 0 },
2521
+ config: { allowedUnits: _e, min: 0 },
2522
2522
  readOnly: i
2523
2523
  }
2524
2524
  ) }) })
@@ -2530,7 +2530,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2530
2530
  {
2531
2531
  value: l.top ?? ee,
2532
2532
  onChange: r,
2533
- config: { allowedUnits: ye, min: 0 },
2533
+ config: { allowedUnits: _e, min: 0 },
2534
2534
  readOnly: i
2535
2535
  }
2536
2536
  ) }),
@@ -2540,7 +2540,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2540
2540
  {
2541
2541
  value: l.left ?? ee,
2542
2542
  onChange: u,
2543
- config: { allowedUnits: ye, min: 0 },
2543
+ config: { allowedUnits: _e, min: 0 },
2544
2544
  readOnly: i
2545
2545
  }
2546
2546
  ) }),
@@ -2550,7 +2550,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2550
2550
  {
2551
2551
  value: l.right ?? ee,
2552
2552
  onChange: s,
2553
- config: { allowedUnits: ye, min: 0 },
2553
+ config: { allowedUnits: _e, min: 0 },
2554
2554
  readOnly: i
2555
2555
  }
2556
2556
  ) })
@@ -2560,7 +2560,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2560
2560
  {
2561
2561
  value: l.bottom ?? ee,
2562
2562
  onChange: d,
2563
- config: { allowedUnits: ye, min: 0 },
2563
+ config: { allowedUnits: _e, min: 0 },
2564
2564
  readOnly: i
2565
2565
  }
2566
2566
  ) })
@@ -2568,47 +2568,47 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2568
2568
  )
2569
2569
  ] });
2570
2570
  };
2571
- Rt.displayName = "PaddingEditor";
2572
- const Ne = hn.defaultProps, ui = [
2573
- { label: "標準", value: Re.normal },
2574
- { label: "単語で折り返し", value: Re.breakWord },
2575
- { label: "文字で折り返し", value: Re.breakAll }
2576
- ], qe = {
2571
+ Ft.displayName = "PaddingEditor";
2572
+ const Ce = pn.defaultProps, bi = [
2573
+ { label: "標準", value: Oe.normal },
2574
+ { label: "単語で折り返し", value: Oe.breakWord },
2575
+ { label: "文字で折り返し", value: Oe.breakAll }
2576
+ ], Ge = {
2577
2577
  display: "flex",
2578
2578
  alignItems: "center",
2579
2579
  gap: 6,
2580
2580
  marginBottom: 4
2581
- }, Ge = {
2581
+ }, He = {
2582
2582
  fontSize: 11,
2583
2583
  color: "#666",
2584
2584
  minWidth: 72,
2585
2585
  flexShrink: 0
2586
- }, Ot = ({
2586
+ }, jt = ({
2587
2587
  multiline: e,
2588
2588
  lineHeight: n,
2589
2589
  wordWrap: i,
2590
2590
  onChange: l,
2591
2591
  readOnly: a = !1
2592
2592
  }) => /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
2593
- /* @__PURE__ */ p("div", { style: qe, children: [
2594
- /* @__PURE__ */ t("span", { style: Ge, children: "複数行" }),
2593
+ /* @__PURE__ */ p("div", { style: Ge, children: [
2594
+ /* @__PURE__ */ t("span", { style: He, children: "複数行" }),
2595
2595
  /* @__PURE__ */ t(
2596
- ae,
2596
+ oe,
2597
2597
  {
2598
- value: e ?? Ne.multiline,
2598
+ value: e ?? Ce.multiline,
2599
2599
  onChange: (o) => l("multiline", o ?? !1),
2600
2600
  readOnly: a,
2601
2601
  label: "複数行入力を有効にする"
2602
2602
  }
2603
2603
  )
2604
2604
  ] }),
2605
- /* @__PURE__ */ p("div", { style: qe, children: [
2606
- /* @__PURE__ */ t("span", { style: Ge, children: "行間" }),
2605
+ /* @__PURE__ */ p("div", { style: Ge, children: [
2606
+ /* @__PURE__ */ t("span", { style: He, children: "行間" }),
2607
2607
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2608
2608
  G,
2609
2609
  {
2610
- value: n ?? Ne.lineHeight,
2611
- onChange: (o) => l("lineHeight", o ?? Ne.lineHeight),
2610
+ value: n ?? Ce.lineHeight,
2611
+ onChange: (o) => l("lineHeight", o ?? Ce.lineHeight),
2612
2612
  readOnly: a,
2613
2613
  min: 0.5,
2614
2614
  max: 5,
@@ -2617,22 +2617,38 @@ const Ne = hn.defaultProps, ui = [
2617
2617
  }
2618
2618
  ) })
2619
2619
  ] }),
2620
- /* @__PURE__ */ p("div", { style: qe, children: [
2621
- /* @__PURE__ */ t("span", { style: Ge, children: "折り返し" }),
2620
+ /* @__PURE__ */ p("div", { style: Ge, children: [
2621
+ /* @__PURE__ */ t("span", { style: He, children: "折り返し" }),
2622
2622
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2623
- ge,
2623
+ ye,
2624
2624
  {
2625
- value: i ?? Ne.wordWrap,
2626
- onChange: (o) => l("wordWrap", o ?? Ne.wordWrap),
2627
- options: ui,
2625
+ value: i ?? Ce.wordWrap,
2626
+ onChange: (o) => l("wordWrap", o ?? Ce.wordWrap),
2627
+ options: bi,
2628
2628
  readOnly: a,
2629
2629
  height: 24
2630
2630
  }
2631
2631
  ) })
2632
2632
  ] })
2633
2633
  ] });
2634
- Ot.displayName = "TextBehaviorEditor";
2635
- const Me = [
2634
+ jt.displayName = "TextBehaviorEditor";
2635
+ const mt = "data-tatamicks-portal-root";
2636
+ let te = null;
2637
+ function fi() {
2638
+ if (typeof document > "u")
2639
+ throw new Error("getTatamicksPortalRoot requires a DOM environment");
2640
+ if (te && document.body.contains(te))
2641
+ return te;
2642
+ const e = document.querySelector(`[${mt}]`);
2643
+ return e instanceof HTMLElement ? (te = e, te) : (te = document.createElement("div"), te.setAttribute(mt, "true"), Object.assign(te.style, {
2644
+ position: "fixed",
2645
+ inset: "0",
2646
+ pointerEvents: "none",
2647
+ isolation: "isolate",
2648
+ zIndex: "auto"
2649
+ }), document.body.appendChild(te), te);
2650
+ }
2651
+ const Pe = [
2636
2652
  { label: "テキスト", inputType: "text" },
2637
2653
  { label: "数字のみ", inputType: "text", pattern: "[0-9]+" },
2638
2654
  { label: "半角英字のみ", inputType: "text", pattern: "[a-zA-Z]+" },
@@ -2670,10 +2686,10 @@ const Me = [
2670
2686
  hideLength: !0
2671
2687
  },
2672
2688
  { label: "その他", inputType: "text", isCustom: !0 }
2673
- ], pi = Me.map((e) => ({
2689
+ ], vi = Pe.map((e) => ({
2674
2690
  label: e.label,
2675
2691
  value: e.label
2676
- })), mi = `[0-9] 数字のみ
2692
+ })), gi = `[0-9] 数字のみ
2677
2693
  [a-z] 英小文字
2678
2694
  [A-Z] 英大文字
2679
2695
  [ぁ-ん] ひらがな
@@ -2681,17 +2697,17 @@ const Me = [
2681
2697
  * 0回以上繰り返し
2682
2698
  {3} 3回繰り返し
2683
2699
  {3,5} 3〜5回繰り返し
2684
- . 任意の1文字`, He = {
2700
+ . 任意の1文字`, Ke = {
2685
2701
  display: "flex",
2686
2702
  alignItems: "center",
2687
2703
  gap: 6,
2688
2704
  marginBottom: 4
2689
- }, Ke = {
2705
+ }, Ze = {
2690
2706
  fontSize: 11,
2691
2707
  color: "#666",
2692
2708
  minWidth: 72,
2693
2709
  flexShrink: 0
2694
- }, Ft = ({
2710
+ }, Ut = ({
2695
2711
  inputType: e,
2696
2712
  minLength: n,
2697
2713
  maxLength: i,
@@ -2700,7 +2716,7 @@ const Me = [
2700
2716
  onChangeBatch: o,
2701
2717
  readOnly: c = !1
2702
2718
  }) => {
2703
- const [r, s] = O(!1), [d, u] = O({}), h = ie(null), f = y(() => {
2719
+ const [r, s] = O(!1), [d, u] = O({}), h = ae(null), v = y(() => {
2704
2720
  var S;
2705
2721
  const I = (S = h.current) == null ? void 0 : S.getBoundingClientRect();
2706
2722
  I && (u({
@@ -2708,12 +2724,12 @@ const Me = [
2708
2724
  bottom: window.innerHeight - I.top + 4,
2709
2725
  right: window.innerWidth - I.right
2710
2726
  }), s(!0));
2711
- }, []), v = y(() => s(!1), []), m = e ?? "text", g = l ?? void 0, _ = (() => {
2712
- const I = Me.find((S) => S.isCustom || S.inputType !== m ? !1 : S.pattern === g);
2727
+ }, []), f = y(() => s(!1), []), m = e ?? "text", g = l ?? void 0, _ = (() => {
2728
+ const I = Pe.find((S) => S.isCustom || S.inputType !== m ? !1 : S.pattern === g);
2713
2729
  return (I == null ? void 0 : I.label) ?? "その他";
2714
- })(), w = _ === "その他", L = Me.find((I) => I.label === _), $ = !(L != null && L.hideLength), k = y(
2730
+ })(), w = _ === "その他", L = Pe.find((I) => I.label === _), $ = !(L != null && L.hideLength), k = y(
2715
2731
  (I) => {
2716
- const S = Me.find((N) => N.label === I);
2732
+ const S = Pe.find((N) => N.label === I);
2717
2733
  if (!S) return;
2718
2734
  const b = S.isCustom ? "" : S.pattern ?? null, x = {
2719
2735
  inputType: S.inputType,
@@ -2728,21 +2744,21 @@ const Me = [
2728
2744
  [a, o]
2729
2745
  );
2730
2746
  return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
2731
- /* @__PURE__ */ p("div", { style: He, children: [
2732
- /* @__PURE__ */ t("span", { style: Ke, children: "入力タイプ" }),
2747
+ /* @__PURE__ */ p("div", { style: Ke, children: [
2748
+ /* @__PURE__ */ t("span", { style: Ze, children: "入力タイプ" }),
2733
2749
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2734
- ge,
2750
+ ye,
2735
2751
  {
2736
2752
  value: _,
2737
2753
  onChange: k,
2738
- options: pi,
2754
+ options: vi,
2739
2755
  readOnly: c,
2740
2756
  height: 24
2741
2757
  }
2742
2758
  ) })
2743
2759
  ] }),
2744
- $ && /* @__PURE__ */ p("div", { style: He, children: [
2745
- /* @__PURE__ */ t("span", { style: Ke, children: "文字数" }),
2760
+ $ && /* @__PURE__ */ p("div", { style: Ke, children: [
2761
+ /* @__PURE__ */ t("span", { style: Ze, children: "文字数" }),
2746
2762
  /* @__PURE__ */ p(
2747
2763
  "div",
2748
2764
  {
@@ -2776,12 +2792,12 @@ const Me = [
2776
2792
  }
2777
2793
  )
2778
2794
  ] }),
2779
- w && /* @__PURE__ */ p("div", { style: He, children: [
2795
+ w && /* @__PURE__ */ p("div", { style: Ke, children: [
2780
2796
  /* @__PURE__ */ p(
2781
2797
  "span",
2782
2798
  {
2783
2799
  style: {
2784
- ...Ke,
2800
+ ...Ze,
2785
2801
  display: "flex",
2786
2802
  alignItems: "center",
2787
2803
  gap: 2
@@ -2810,10 +2826,10 @@ const Me = [
2810
2826
  outline: "none"
2811
2827
  },
2812
2828
  "aria-label": "入力パターンの使い方",
2813
- onMouseEnter: f,
2814
- onMouseLeave: v,
2815
- onFocus: f,
2816
- onBlur: v,
2829
+ onMouseEnter: v,
2830
+ onMouseLeave: f,
2831
+ onFocus: v,
2832
+ onBlur: f,
2817
2833
  children: "i"
2818
2834
  }
2819
2835
  )
@@ -2821,7 +2837,7 @@ const Me = [
2821
2837
  }
2822
2838
  ),
2823
2839
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
2824
- Se,
2840
+ Ie,
2825
2841
  {
2826
2842
  value: l ?? "",
2827
2843
  onChange: (I) => {
@@ -2832,13 +2848,13 @@ const Me = [
2832
2848
  }
2833
2849
  ) })
2834
2850
  ] }),
2835
- r && St(
2851
+ r && $t(
2836
2852
  /* @__PURE__ */ t(
2837
2853
  "pre",
2838
2854
  {
2839
2855
  style: {
2840
2856
  ...d,
2841
- zIndex: 9999999,
2857
+ zIndex: xt.TOOLTIP,
2842
2858
  width: "max-content",
2843
2859
  margin: 0,
2844
2860
  padding: "6px 10px",
@@ -2852,15 +2868,15 @@ const Me = [
2852
2868
  whiteSpace: "pre",
2853
2869
  pointerEvents: "none"
2854
2870
  },
2855
- children: mi
2871
+ children: gi
2856
2872
  }
2857
2873
  ),
2858
- document.body
2874
+ fi()
2859
2875
  )
2860
2876
  ] });
2861
2877
  };
2862
- Ft.displayName = "TextValidationEditor";
2863
- const jt = {
2878
+ Ut.displayName = "TextValidationEditor";
2879
+ const Vt = {
2864
2880
  alignment: "配置",
2865
2881
  fontStyle: "フォントスタイル",
2866
2882
  padding: "パディング",
@@ -2870,9 +2886,9 @@ const jt = {
2870
2886
  textBehavior: "テキスト動作",
2871
2887
  selectConfig: "選択肢設定",
2872
2888
  checkboxStyle: "チェックボックスデザイン"
2873
- }, bi = [
2889
+ }, yi = [
2874
2890
  {
2875
- value: Ee.left,
2891
+ value: Ae.left,
2876
2892
  label: "左揃え",
2877
2893
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2878
2894
  /* @__PURE__ */ t("rect", { x: "1", y: "2", width: "1.5", height: "12", rx: "0.5" }),
@@ -2882,7 +2898,7 @@ const jt = {
2882
2898
  ] })
2883
2899
  },
2884
2900
  {
2885
- value: Ee.center,
2901
+ value: Ae.center,
2886
2902
  label: "中央揃え",
2887
2903
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2888
2904
  /* @__PURE__ */ t("rect", { x: "7.25", y: "2", width: "1.5", height: "12", rx: "0.5" }),
@@ -2892,7 +2908,7 @@ const jt = {
2892
2908
  ] })
2893
2909
  },
2894
2910
  {
2895
- value: Ee.right,
2911
+ value: Ae.right,
2896
2912
  label: "右揃え",
2897
2913
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2898
2914
  /* @__PURE__ */ t("rect", { x: "13.5", y: "2", width: "1.5", height: "12", rx: "0.5" }),
@@ -2901,9 +2917,9 @@ const jt = {
2901
2917
  /* @__PURE__ */ t("rect", { x: "5", y: "11", width: "7", height: "2.5", rx: "0.5" })
2902
2918
  ] })
2903
2919
  }
2904
- ], vi = [
2920
+ ], _i = [
2905
2921
  {
2906
- value: Ae.top,
2922
+ value: Me.top,
2907
2923
  label: "上揃え",
2908
2924
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2909
2925
  /* @__PURE__ */ t("rect", { x: "1", y: "1", width: "14", height: "1" }),
@@ -2912,7 +2928,7 @@ const jt = {
2912
2928
  ] })
2913
2929
  },
2914
2930
  {
2915
- value: Ae.center,
2931
+ value: Me.center,
2916
2932
  label: "中央揃え",
2917
2933
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2918
2934
  /* @__PURE__ */ t("rect", { x: "1", y: "7.5", width: "14", height: "1" }),
@@ -2921,7 +2937,7 @@ const jt = {
2921
2937
  ] })
2922
2938
  },
2923
2939
  {
2924
- value: Ae.bottom,
2940
+ value: Me.bottom,
2925
2941
  label: "下揃え",
2926
2942
  icon: /* @__PURE__ */ p("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
2927
2943
  /* @__PURE__ */ t("rect", { x: "1", y: "14", width: "14", height: "1" }),
@@ -2930,13 +2946,13 @@ const jt = {
2930
2946
  ] })
2931
2947
  }
2932
2948
  ];
2933
- function me(e) {
2949
+ function be(e) {
2934
2950
  return typeof e == "object" && e !== null && typeof e.value == "number" && typeof e.unit == "string";
2935
2951
  }
2936
- function fi(e) {
2952
+ function xi(e) {
2937
2953
  return typeof e == "object" && e !== null && Array.isArray(e.options);
2938
2954
  }
2939
- const ot = fe(
2955
+ const st = ge(
2940
2956
  ({
2941
2957
  kind: e,
2942
2958
  defaultProps: n,
@@ -2948,7 +2964,7 @@ const ot = fe(
2948
2964
  }) => {
2949
2965
  switch (e) {
2950
2966
  case "alignment": {
2951
- const r = i("horizontal") ?? Ee.left, s = i("vertical") ?? Ae.center;
2967
+ const r = i("horizontal") ?? Ae.left, s = i("vertical") ?? Me.center;
2952
2968
  return /* @__PURE__ */ p(
2953
2969
  "div",
2954
2970
  {
@@ -2960,17 +2976,17 @@ const ot = fe(
2960
2976
  },
2961
2977
  children: [
2962
2978
  /* @__PURE__ */ t(
2963
- Ze,
2979
+ Ye,
2964
2980
  {
2965
- options: bi,
2981
+ options: yi,
2966
2982
  current: r,
2967
2983
  onChange: (d) => l("horizontal", d)
2968
2984
  }
2969
2985
  ),
2970
2986
  /* @__PURE__ */ t(
2971
- Ze,
2987
+ Ye,
2972
2988
  {
2973
- options: vi,
2989
+ options: _i,
2974
2990
  current: s,
2975
2991
  onChange: (d) => l("vertical", d)
2976
2992
  }
@@ -2982,7 +2998,7 @@ const ot = fe(
2982
2998
  case "fontStyle": {
2983
2999
  const r = i("fontSize"), s = {
2984
3000
  fontFamily: i("fontFamily"),
2985
- fontSize: me(r) ? r : void 0,
3001
+ fontSize: be(r) ? r : void 0,
2986
3002
  color: i("color"),
2987
3003
  fontWeight: i("fontWeight"),
2988
3004
  italic: i("italic"),
@@ -2990,7 +3006,7 @@ const ot = fe(
2990
3006
  lineThrough: i("lineThrough")
2991
3007
  };
2992
3008
  return /* @__PURE__ */ t(
2993
- Bt,
3009
+ Rt,
2994
3010
  {
2995
3011
  value: s,
2996
3012
  onChange: (d) => {
@@ -3004,18 +3020,18 @@ const ot = fe(
3004
3020
  );
3005
3021
  }
3006
3022
  case "padding": {
3007
- const r = i("top"), s = i("right"), d = i("bottom"), u = i("left"), h = i("bulk"), f = i("all"), v = {
3008
- top: me(r) ? r : void 0,
3009
- right: me(s) ? s : void 0,
3010
- bottom: me(d) ? d : void 0,
3011
- left: me(u) ? u : void 0,
3023
+ const r = i("top"), s = i("right"), d = i("bottom"), u = i("left"), h = i("bulk"), v = i("all"), f = {
3024
+ top: be(r) ? r : void 0,
3025
+ right: be(s) ? s : void 0,
3026
+ bottom: be(d) ? d : void 0,
3027
+ left: be(u) ? u : void 0,
3012
3028
  bulk: typeof h == "boolean" ? h : !1,
3013
- all: me(f) ? f : void 0
3029
+ all: be(v) ? v : void 0
3014
3030
  };
3015
3031
  return /* @__PURE__ */ t(
3016
- Rt,
3032
+ Ft,
3017
3033
  {
3018
- value: v,
3034
+ value: f,
3019
3035
  onChange: (m) => {
3020
3036
  if (a)
3021
3037
  a(m);
@@ -3029,7 +3045,7 @@ const ot = fe(
3029
3045
  case "required": {
3030
3046
  const r = i("required");
3031
3047
  return /* @__PURE__ */ t(
3032
- ae,
3048
+ oe,
3033
3049
  {
3034
3050
  value: r ?? !1,
3035
3051
  onChange: (s) => l("required", s ?? !1),
@@ -3040,7 +3056,7 @@ const ot = fe(
3040
3056
  case "placeholder": {
3041
3057
  const r = i("placeholder");
3042
3058
  return /* @__PURE__ */ t(
3043
- Se,
3059
+ Ie,
3044
3060
  {
3045
3061
  value: r ?? "",
3046
3062
  onChange: (s) => l("placeholder", s ?? "")
@@ -3049,7 +3065,7 @@ const ot = fe(
3049
3065
  }
3050
3066
  case "textValidation":
3051
3067
  return /* @__PURE__ */ t(
3052
- Ft,
3068
+ Ut,
3053
3069
  {
3054
3070
  inputType: i("inputType"),
3055
3071
  minLength: i("minLength") ?? void 0,
@@ -3061,7 +3077,7 @@ const ot = fe(
3061
3077
  );
3062
3078
  case "textBehavior":
3063
3079
  return /* @__PURE__ */ t(
3064
- Ot,
3080
+ jt,
3065
3081
  {
3066
3082
  multiline: i("multiline"),
3067
3083
  lineHeight: i("lineHeight") ?? void 0,
@@ -3072,7 +3088,7 @@ const ot = fe(
3072
3088
  case "checkboxStyle": {
3073
3089
  const r = i("styleConfig");
3074
3090
  return /* @__PURE__ */ t(
3075
- Dt,
3091
+ zt,
3076
3092
  {
3077
3093
  value: r,
3078
3094
  onChange: (s) => l("styleConfig", s)
@@ -3080,9 +3096,9 @@ const ot = fe(
3080
3096
  );
3081
3097
  }
3082
3098
  case "selectConfig": {
3083
- const r = i("selectConfig"), s = fi(r) ? r : { options: [] };
3099
+ const r = i("selectConfig"), s = xi(r) ? r : { options: [] };
3084
3100
  return /* @__PURE__ */ t(
3085
- zt,
3101
+ Wt,
3086
3102
  {
3087
3103
  value: s,
3088
3104
  onChange: (d) => l("selectConfig", d)
@@ -3091,19 +3107,19 @@ const ot = fe(
3091
3107
  }
3092
3108
  default: {
3093
3109
  if (c) {
3094
- const u = c, h = Object.keys(n)[0] ?? e, f = i(h);
3110
+ const u = c, h = Object.keys(n)[0] ?? e, v = i(h);
3095
3111
  return /* @__PURE__ */ t(
3096
3112
  u,
3097
3113
  {
3098
- value: f,
3099
- onChange: (v) => l(h, v),
3114
+ value: v,
3115
+ onChange: (f) => l(h, f),
3100
3116
  readOnly: o
3101
3117
  }
3102
3118
  );
3103
3119
  }
3104
3120
  const r = Object.keys(n)[0] ?? e, s = i(r), d = s == null ? "" : typeof s == "object" ? JSON.stringify(s) : String(s);
3105
3121
  return /* @__PURE__ */ t(
3106
- Se,
3122
+ Ie,
3107
3123
  {
3108
3124
  value: d,
3109
3125
  onChange: (u) => l(r, u ?? "")
@@ -3113,8 +3129,8 @@ const ot = fe(
3113
3129
  }
3114
3130
  }
3115
3131
  );
3116
- ot.displayName = "PropDefEditor";
3117
- const Ut = fe(
3132
+ st.displayName = "PropDefEditor";
3133
+ const qt = ge(
3118
3134
  ({
3119
3135
  propDef: e,
3120
3136
  selectedBlocks: n,
@@ -3128,7 +3144,7 @@ const Ut = fe(
3128
3144
  var _;
3129
3145
  const g = Y(n, `props.${m}`);
3130
3146
  return g !== void 0 ? g : ((_ = o == null ? void 0 : o[u]) == null ? void 0 : _[m]) ?? s[m] ?? null;
3131
- }, f = d !== void 0 && Object.keys(s).some((m) => m in ((d == null ? void 0 : d.props) ?? {})), v = y(
3147
+ }, v = d !== void 0 && Object.keys(s).some((m) => m in ((d == null ? void 0 : d.props) ?? {})), f = y(
3132
3148
  (m) => {
3133
3149
  var g;
3134
3150
  if (m) {
@@ -3155,14 +3171,14 @@ const Ut = fe(
3155
3171
  return /* @__PURE__ */ t(
3156
3172
  V,
3157
3173
  {
3158
- title: jt[r] ?? r,
3174
+ title: Vt[r] ?? r,
3159
3175
  collapsible: !0,
3160
- isOpen: f,
3161
- onOpenChange: v,
3176
+ isOpen: v,
3177
+ onOpenChange: f,
3162
3178
  openLabel: "カスタム",
3163
3179
  closeLabel: "標準",
3164
3180
  children: /* @__PURE__ */ t(
3165
- ot,
3181
+ st,
3166
3182
  {
3167
3183
  kind: r,
3168
3184
  defaultProps: s,
@@ -3177,8 +3193,8 @@ const Ut = fe(
3177
3193
  );
3178
3194
  }
3179
3195
  );
3180
- Ut.displayName = "PropertyField";
3181
- const st = ({
3196
+ qt.displayName = "PropertyField";
3197
+ const rt = ({
3182
3198
  selectedBlocks: e,
3183
3199
  pluginRegistry: n,
3184
3200
  onUpdateBlocks: i,
@@ -3187,30 +3203,30 @@ const st = ({
3187
3203
  }) => {
3188
3204
  const o = e[0], c = o ? n[o.kind] : void 0;
3189
3205
  if (!o || !c || e.length === 0) return null;
3190
- const r = (h, f) => {
3191
- const v = {};
3206
+ const r = (h, v) => {
3207
+ const f = {};
3192
3208
  e.forEach((m) => {
3193
- v[m.id] = {
3194
- props: { ...m.props, [h]: f }
3209
+ f[m.id] = {
3210
+ props: { ...m.props, [h]: v }
3195
3211
  };
3196
- }), i(v);
3212
+ }), i(f);
3197
3213
  }, s = (h) => {
3198
- const f = {};
3199
- e.forEach((v) => {
3200
- f[v.id] = {
3201
- props: { ...v.props, ...h }
3214
+ const v = {};
3215
+ e.forEach((f) => {
3216
+ v[f.id] = {
3217
+ props: { ...f.props, ...h }
3202
3218
  };
3203
- }), i(f);
3219
+ }), i(v);
3204
3220
  }, d = (h) => {
3205
- const f = {};
3206
- e.forEach((v) => {
3207
- const m = { ...v.props };
3221
+ const v = {};
3222
+ e.forEach((f) => {
3223
+ const m = { ...f.props };
3208
3224
  for (const g of h)
3209
3225
  delete m[g];
3210
- f[v.id] = { props: m };
3211
- }), i(f);
3226
+ v[f.id] = { props: m };
3227
+ }), i(v);
3212
3228
  }, u = c.properties.map((h) => /* @__PURE__ */ t(
3213
- Ut,
3229
+ qt,
3214
3230
  {
3215
3231
  propDef: h,
3216
3232
  selectedBlocks: e,
@@ -3223,12 +3239,12 @@ const st = ({
3223
3239
  ));
3224
3240
  return c.properties.length === 0 ? null : a ? /* @__PURE__ */ t(V, { title: c.meta.displayName, children: u }) : /* @__PURE__ */ t("div", { children: u });
3225
3241
  };
3226
- st.displayName = "PluginPanels";
3227
- const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26", xi = "_popover_13lr1_31", Ie = {
3228
- bar: gi,
3229
- divider: yi,
3230
- barWrapper: _i,
3231
- popover: xi
3242
+ rt.displayName = "PluginPanels";
3243
+ const wi = "_bar_13lr1_4", Ni = "_divider_13lr1_18", Ci = "_barWrapper_13lr1_26", Si = "_popover_13lr1_31", $e = {
3244
+ bar: wi,
3245
+ divider: Ni,
3246
+ barWrapper: Ci,
3247
+ popover: Si
3232
3248
  }, ve = ({
3233
3249
  icon: e,
3234
3250
  label: n,
@@ -3249,22 +3265,22 @@ const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26"
3249
3265
  }
3250
3266
  );
3251
3267
  ve.displayName = "SelectionActionBarButton";
3252
- const Vt = gt(null);
3253
- function wi() {
3254
- const e = Pe(Vt);
3268
+ const Gt = _t(null);
3269
+ function Ii() {
3270
+ const e = ze(Gt);
3255
3271
  if (e === null)
3256
3272
  throw new Error(
3257
3273
  "useSelectionActionBar must be used inside SelectionActionBar"
3258
3274
  );
3259
3275
  return e;
3260
3276
  }
3261
- const Ni = ({
3277
+ const $i = ({
3262
3278
  items: e = [],
3263
3279
  className: n,
3264
3280
  style: i,
3265
3281
  onPointerDown: l
3266
3282
  }) => {
3267
- const [a, o] = O(null), [c, r] = O(null), s = ie(null), d = y(() => {
3283
+ const [a, o] = O(null), [c, r] = O(null), s = ae(null), d = y(() => {
3268
3284
  s.current !== null && (window.clearTimeout(s.current), s.current = null);
3269
3285
  }, []), u = y(() => {
3270
3286
  d();
@@ -3273,33 +3289,33 @@ const Ni = ({
3273
3289
  o(null);
3274
3290
  }, 120);
3275
3291
  }, [d]);
3276
- pe(() => {
3292
+ me(() => {
3277
3293
  if (a === null) return;
3278
3294
  const m = (g) => {
3279
3295
  c && !c.contains(g.target) && o(null);
3280
3296
  };
3281
3297
  return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
3282
- }, [a, c]), pe(() => () => {
3298
+ }, [a, c]), me(() => () => {
3283
3299
  d();
3284
3300
  }, [d]);
3285
- const f = y(
3301
+ const v = y(
3286
3302
  (m) => {
3287
3303
  d(), o(m);
3288
3304
  },
3289
3305
  [d]
3290
- ), v = y(
3306
+ ), f = y(
3291
3307
  (m) => {
3292
3308
  d(), o(m);
3293
3309
  },
3294
3310
  [d]
3295
3311
  );
3296
3312
  return /* @__PURE__ */ t(
3297
- Vt.Provider,
3313
+ Gt.Provider,
3298
3314
  {
3299
3315
  value: {
3300
3316
  openPanel: a,
3301
- openPanelByHover: f,
3302
- openPanelByClick: v,
3317
+ openPanelByHover: v,
3318
+ openPanelByClick: f,
3303
3319
  onPointerDown: l,
3304
3320
  wrapperEl: c
3305
3321
  },
@@ -3307,7 +3323,7 @@ const Ni = ({
3307
3323
  "div",
3308
3324
  {
3309
3325
  ref: r,
3310
- className: Ie.barWrapper,
3326
+ className: $e.barWrapper,
3311
3327
  style: i,
3312
3328
  onMouseEnter: u,
3313
3329
  onMouseLeave: h,
@@ -3318,7 +3334,7 @@ const Ni = ({
3318
3334
  children: /* @__PURE__ */ t(
3319
3335
  "div",
3320
3336
  {
3321
- className: `${Ie.bar}${n ? ` ${n}` : ""}`,
3337
+ className: `${$e.bar}${n ? ` ${n}` : ""}`,
3322
3338
  onPointerDown: l,
3323
3339
  children: e
3324
3340
  }
@@ -3328,7 +3344,7 @@ const Ni = ({
3328
3344
  }
3329
3345
  );
3330
3346
  };
3331
- Ni.displayName = "SelectionActionBar";
3347
+ $i.displayName = "SelectionActionBar";
3332
3348
  const De = ({
3333
3349
  id: e,
3334
3350
  icon: n,
@@ -3341,8 +3357,8 @@ const De = ({
3341
3357
  openPanelByClick: c,
3342
3358
  onPointerDown: r,
3343
3359
  wrapperEl: s
3344
- } = wi();
3345
- return /* @__PURE__ */ p(oe, { children: [
3360
+ } = Ii();
3361
+ return /* @__PURE__ */ p(se, { children: [
3346
3362
  /* @__PURE__ */ t(
3347
3363
  ve,
3348
3364
  {
@@ -3352,11 +3368,11 @@ const De = ({
3352
3368
  onClick: () => c(e)
3353
3369
  }
3354
3370
  ),
3355
- a === e && s && St(
3371
+ a === e && s && $t(
3356
3372
  /* @__PURE__ */ t(
3357
3373
  "div",
3358
3374
  {
3359
- className: Ie.popover,
3375
+ className: $e.popover,
3360
3376
  "data-testid": `popover-${e}`,
3361
3377
  onPointerDown: r,
3362
3378
  children: l
@@ -3367,7 +3383,7 @@ const De = ({
3367
3383
  ] });
3368
3384
  };
3369
3385
  De.displayName = "SelectionActionBarPanel";
3370
- function Oa({
3386
+ function Va({
3371
3387
  context: e,
3372
3388
  gridSize: n,
3373
3389
  onActionFeedback: i
@@ -3375,15 +3391,15 @@ function Oa({
3375
3391
  var _;
3376
3392
  const { actionContext: l, pluginRegistry: a } = e, o = e.editorState, c = o.selectedBlockIds ?? [], r = l.isEnabled("paste"), s = o.pageIdx, d = (((_ = e.book.pages[s]) == null ? void 0 : _.blocks) ?? []).filter(
3377
3393
  (w) => c.includes(w.id)
3378
- ), u = c.length > 0, h = d.length > 0, f = h && Object.keys(a).length > 0, v = (w, L) => l.execute("updateBlocks", { updates: w, options: L }), m = (w, L) => {
3394
+ ), u = c.length > 0, h = d.length > 0, v = h && Object.keys(a).length > 0, f = (w, L) => l.execute("updateBlocks", { updates: w, options: L }), m = (w, L) => {
3379
3395
  L();
3380
- const $ = lt(w);
3396
+ const $ = it(w);
3381
3397
  $ && (i == null || i($));
3382
3398
  }, g = [
3383
3399
  /* @__PURE__ */ t(
3384
3400
  ve,
3385
3401
  {
3386
- icon: /* @__PURE__ */ t(et, { "aria-hidden": "true" }),
3402
+ icon: /* @__PURE__ */ t(tt, { "aria-hidden": "true" }),
3387
3403
  label: "選択を削除",
3388
3404
  title: "削除 (Delete / Backspace)",
3389
3405
  onClick: () => m("delete", () => l.execute("delete")),
@@ -3394,7 +3410,7 @@ function Oa({
3394
3410
  /* @__PURE__ */ t(
3395
3411
  ve,
3396
3412
  {
3397
- icon: /* @__PURE__ */ t(tt, { "aria-hidden": "true" }),
3413
+ icon: /* @__PURE__ */ t(nt, { "aria-hidden": "true" }),
3398
3414
  label: "選択をコピー",
3399
3415
  title: "コピー (Ctrl+C / Cmd+C)",
3400
3416
  onClick: () => m("copy", () => l.execute("copy")),
@@ -3405,7 +3421,7 @@ function Oa({
3405
3421
  /* @__PURE__ */ t(
3406
3422
  ve,
3407
3423
  {
3408
- icon: /* @__PURE__ */ t(nt, { "aria-hidden": "true" }),
3424
+ icon: /* @__PURE__ */ t(lt, { "aria-hidden": "true" }),
3409
3425
  label: "選択を複製",
3410
3426
  title: "複製 (Ctrl+D / Cmd+D)",
3411
3427
  onClick: () => m("duplicate", () => l.execute("duplicate")),
@@ -3413,7 +3429,7 @@ function Oa({
3413
3429
  },
3414
3430
  "duplicate"
3415
3431
  ),
3416
- /* @__PURE__ */ t("div", { className: Ie.divider, "aria-hidden": "true" }, "divider-paste"),
3432
+ /* @__PURE__ */ t("div", { className: $e.divider, "aria-hidden": "true" }, "divider-paste"),
3417
3433
  /* @__PURE__ */ t(
3418
3434
  ve,
3419
3435
  {
@@ -3426,11 +3442,11 @@ function Oa({
3426
3442
  "paste"
3427
3443
  )
3428
3444
  ];
3429
- return (h || f) && g.push(
3445
+ return (h || v) && g.push(
3430
3446
  /* @__PURE__ */ t(
3431
3447
  "div",
3432
3448
  {
3433
- className: Ie.divider,
3449
+ className: $e.divider,
3434
3450
  "aria-hidden": "true"
3435
3451
  },
3436
3452
  "divider-panels"
@@ -3440,13 +3456,13 @@ function Oa({
3440
3456
  De,
3441
3457
  {
3442
3458
  id: "style",
3443
- icon: /* @__PURE__ */ t($t, { "aria-hidden": "true" }),
3459
+ icon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
3444
3460
  label: "スタイル設定",
3445
3461
  children: /* @__PURE__ */ t(
3446
- it,
3462
+ at,
3447
3463
  {
3448
3464
  selectedBlocks: d,
3449
- onUpdateBlocks: v
3465
+ onUpdateBlocks: f
3450
3466
  }
3451
3467
  )
3452
3468
  },
@@ -3456,32 +3472,32 @@ function Oa({
3456
3472
  De,
3457
3473
  {
3458
3474
  id: "layout",
3459
- icon: /* @__PURE__ */ t(Lt, { "aria-hidden": "true" }),
3475
+ icon: /* @__PURE__ */ t(Tt, { "aria-hidden": "true" }),
3460
3476
  label: "レイアウト設定",
3461
3477
  children: /* @__PURE__ */ t(
3462
- at,
3478
+ ot,
3463
3479
  {
3464
3480
  selectedBlocks: d,
3465
- onUpdateBlocks: v,
3481
+ onUpdateBlocks: f,
3466
3482
  gridSize: n
3467
3483
  }
3468
3484
  )
3469
3485
  },
3470
3486
  "layout"
3471
3487
  )
3472
- ), f && g.push(
3488
+ ), v && g.push(
3473
3489
  /* @__PURE__ */ t(
3474
3490
  De,
3475
3491
  {
3476
3492
  id: "plugin",
3477
- icon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
3493
+ icon: /* @__PURE__ */ t(Et, { "aria-hidden": "true" }),
3478
3494
  label: "ブロック設定",
3479
3495
  children: /* @__PURE__ */ t(
3480
- st,
3496
+ rt,
3481
3497
  {
3482
3498
  selectedBlocks: d,
3483
3499
  pluginRegistry: a,
3484
- onUpdateBlocks: v,
3500
+ onUpdateBlocks: f,
3485
3501
  showGroupHeader: !1
3486
3502
  }
3487
3503
  )
@@ -3490,19 +3506,20 @@ function Oa({
3490
3506
  )
3491
3507
  ), g;
3492
3508
  }
3493
- const pt = 8, Ci = 36, Fa = ({
3509
+ const bt = 8, Li = 36, qa = ({
3494
3510
  selectionBoundingBox: e,
3495
3511
  isDragging: n,
3496
- zIndex: i = yt.SELECTION_ACTION_BAR,
3512
+ zIndex: i = 1,
3497
3513
  children: l
3498
3514
  }) => {
3499
3515
  if (e == null || n)
3500
3516
  return null;
3501
- const a = e, o = a.top - pt - Ci, c = o >= 0 ? o : a.bottom + pt, r = {
3517
+ const a = e, o = a.top - bt - Li, c = o >= 0 ? o : a.bottom + bt, r = {
3502
3518
  position: "absolute",
3503
3519
  inset: 0,
3504
3520
  pointerEvents: "none",
3505
- zIndex: i
3521
+ zIndex: i,
3522
+ ...mn
3506
3523
  }, s = {
3507
3524
  position: "absolute",
3508
3525
  top: `${c}px`,
@@ -3529,9 +3546,9 @@ const pt = 8, Ci = 36, Fa = ({
3529
3546
  }
3530
3547
  );
3531
3548
  };
3532
- function ja(e, n) {
3549
+ function Ga(e, n) {
3533
3550
  const [i, l] = O(null);
3534
- return pe(() => {
3551
+ return me(() => {
3535
3552
  if (n.length === 0) {
3536
3553
  l(null);
3537
3554
  return;
@@ -3544,10 +3561,10 @@ function ja(e, n) {
3544
3561
  }
3545
3562
  const c = o.getBoundingClientRect();
3546
3563
  let r = 1 / 0, s = 1 / 0, d = -1 / 0, u = -1 / 0, h = !1;
3547
- for (const f of n) {
3548
- const v = o.querySelector(`[data-block-id="${f}"]`);
3549
- if (!v) continue;
3550
- const m = v.getBoundingClientRect();
3564
+ for (const v of n) {
3565
+ const f = o.querySelector(`[data-block-id="${v}"]`);
3566
+ if (!f) continue;
3567
+ const m = f.getBoundingClientRect();
3551
3568
  r = Math.min(r, m.left - c.left), s = Math.min(s, m.top - c.top), d = Math.max(d, m.right - c.left), u = Math.max(u, m.bottom - c.top), h = !0;
3552
3569
  }
3553
3570
  if (!h) {
@@ -3566,60 +3583,60 @@ function ja(e, n) {
3566
3583
  return () => cancelAnimationFrame(a);
3567
3584
  }, [e, n]), i;
3568
3585
  }
3569
- const Si = "_container_3lvww_1", Ii = "_row_3lvww_9", $i = "_label_3lvww_15", Li = "_inputWrapper_3lvww_24", ki = "_error_3lvww_31", X = {
3570
- container: Si,
3571
- row: Ii,
3572
- label: $i,
3573
- inputWrapper: Li,
3574
- error: ki
3586
+ const ki = "_container_3lvww_1", Ti = "_row_3lvww_9", Ei = "_label_3lvww_15", Ai = "_inputWrapper_3lvww_24", Mi = "_error_3lvww_31", X = {
3587
+ container: ki,
3588
+ row: Ti,
3589
+ label: Ei,
3590
+ inputWrapper: Ai,
3591
+ error: Mi
3575
3592
  };
3576
- function mt(e, n, i) {
3593
+ function ft(e, n, i) {
3577
3594
  const l = e.trim();
3578
3595
  return l ? /\s/.test(l) ? "スペースは使用できません" : l !== n && (i != null && i.has(l)) ? "このIDは既に使用されています" : null : "IDを入力してください";
3579
3596
  }
3580
- const qt = ({
3597
+ const Ht = ({
3581
3598
  selectedBlocks: e,
3582
3599
  onUpdateBlocks: n,
3583
3600
  allBlockIds: i
3584
3601
  }) => {
3585
3602
  const [l, a] = O(""), [o, c] = O(null), r = e[0];
3586
- pe(() => {
3603
+ me(() => {
3587
3604
  e.length === 1 && r && (a(r.id), c(null));
3588
3605
  }, [e, r]);
3589
3606
  const s = () => {
3590
3607
  if (!r) return;
3591
- const v = r.id, m = l.trim();
3592
- if (m === v || !m) {
3593
- a(v), c(null);
3608
+ const f = r.id, m = l.trim();
3609
+ if (m === f || !m) {
3610
+ a(f), c(null);
3594
3611
  return;
3595
3612
  }
3596
- if (mt(m, v, i)) {
3597
- a(v), c(null);
3613
+ if (ft(m, f, i)) {
3614
+ a(f), c(null);
3598
3615
  return;
3599
3616
  }
3600
- n({ [v]: { id: m } });
3601
- }, d = (v) => {
3602
- const m = v ?? "";
3603
- a(m), r && c(mt(m, r.id, i));
3604
- }, u = (v) => {
3617
+ n({ [f]: { id: m } });
3618
+ }, d = (f) => {
3619
+ const m = f ?? "";
3620
+ a(m), r && c(ft(m, r.id, i));
3621
+ }, u = (f) => {
3605
3622
  const m = {};
3606
3623
  e.forEach((g) => {
3607
3624
  m[g.id] = {
3608
- behavior: { ...g.behavior, readOnly: !!v || void 0 }
3625
+ behavior: { ...g.behavior, readOnly: !!f || void 0 }
3609
3626
  };
3610
3627
  }), n(m);
3611
- }, h = (v) => {
3628
+ }, h = (f) => {
3612
3629
  const m = {};
3613
3630
  e.forEach((g) => {
3614
3631
  m[g.id] = {
3615
- behavior: { ...g.behavior, heightFit: v || void 0 }
3632
+ behavior: { ...g.behavior, heightFit: f || void 0 }
3616
3633
  };
3617
3634
  }), n(m);
3618
- }, f = (v) => {
3635
+ }, v = (f) => {
3619
3636
  const m = {};
3620
3637
  e.forEach((g) => {
3621
3638
  m[g.id] = {
3622
- behavior: { ...g.behavior, widthFit: v || void 0 }
3639
+ behavior: { ...g.behavior, widthFit: f || void 0 }
3623
3640
  };
3624
3641
  }), n(m);
3625
3642
  };
@@ -3628,7 +3645,7 @@ const qt = ({
3628
3645
  /* @__PURE__ */ t("span", { className: X.label, children: "ID" }),
3629
3646
  /* @__PURE__ */ p("div", { className: X.inputWrapper, children: [
3630
3647
  /* @__PURE__ */ t(
3631
- Se,
3648
+ Ie,
3632
3649
  {
3633
3650
  value: l,
3634
3651
  onChange: d,
@@ -3640,7 +3657,7 @@ const qt = ({
3640
3657
  ] })
3641
3658
  ] }),
3642
3659
  e.length > 0 && /* @__PURE__ */ t("div", { className: X.row, children: /* @__PURE__ */ t("div", { className: X.inputWrapper, children: /* @__PURE__ */ t(
3643
- ae,
3660
+ oe,
3644
3661
  {
3645
3662
  label: "読み取り専用",
3646
3663
  value: !!Y(e, "behavior.readOnly"),
@@ -3648,7 +3665,7 @@ const qt = ({
3648
3665
  }
3649
3666
  ) }) }),
3650
3667
  e.length > 0 && /* @__PURE__ */ t("div", { className: X.row, children: /* @__PURE__ */ t("div", { className: X.inputWrapper, children: /* @__PURE__ */ t(
3651
- ae,
3668
+ oe,
3652
3669
  {
3653
3670
  label: "高さ自動フィット",
3654
3671
  value: !!Y(e, "behavior.heightFit"),
@@ -3656,45 +3673,45 @@ const qt = ({
3656
3673
  }
3657
3674
  ) }) }),
3658
3675
  e.length > 0 && /* @__PURE__ */ t("div", { className: X.row, children: /* @__PURE__ */ t("div", { className: X.inputWrapper, children: /* @__PURE__ */ t(
3659
- ae,
3676
+ oe,
3660
3677
  {
3661
3678
  label: "幅自動フィット",
3662
3679
  value: !!Y(e, "behavior.widthFit"),
3663
- onChange: f
3680
+ onChange: v
3664
3681
  }
3665
3682
  ) }) })
3666
3683
  ] });
3667
3684
  };
3668
- qt.displayName = "MetaPanel";
3669
- const Ti = "_container_2zb6l_1", Ei = "_scrollArea_2zb6l_18", Ai = "_emptyState_2zb6l_33", Ye = {
3670
- container: Ti,
3671
- scrollArea: Ei,
3672
- emptyState: Ai
3673
- }, Je = ({
3685
+ Ht.displayName = "MetaPanel";
3686
+ const Pi = "_container_2zb6l_1", Di = "_scrollArea_2zb6l_18", zi = "_emptyState_2zb6l_33", Je = {
3687
+ container: Pi,
3688
+ scrollArea: Di,
3689
+ emptyState: zi
3690
+ }, Xe = ({
3674
3691
  children: e,
3675
3692
  className: n = ""
3676
- }) => /* @__PURE__ */ t("div", { className: `${Ye.container}${n ? ` ${n}` : ""}`, children: e });
3677
- Je.displayName = "BlockPropertyPanel";
3678
- const Mi = fe(
3693
+ }) => /* @__PURE__ */ t("div", { className: `${Je.container}${n ? ` ${n}` : ""}`, children: e });
3694
+ Xe.displayName = "BlockPropertyPanel";
3695
+ const Bi = ge(
3679
3696
  ({ context: e, gridSize: n, className: i = "" }) => {
3680
- 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(() => {
3697
+ 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)) ?? []), v = s[0], f = v ? l[v.kind] : void 0, m = ne(() => {
3681
3698
  var _;
3682
3699
  if (s.length === 0) return !1;
3683
3700
  const g = (_ = s[0]) == null ? void 0 : _.kind;
3684
3701
  return s.every((w) => w.kind === g);
3685
3702
  }, [s]);
3686
- return s.length === 0 ? /* @__PURE__ */ t(Je, { className: i, children: /* @__PURE__ */ p("div", { className: Ye.emptyState, children: [
3703
+ return s.length === 0 ? /* @__PURE__ */ t(Xe, { className: i, children: /* @__PURE__ */ p("div", { className: Je.emptyState, children: [
3687
3704
  "ブロックを選択すると",
3688
3705
  /* @__PURE__ */ t("br", {}),
3689
3706
  "プロパティが表示されます"
3690
- ] }) }) : /* @__PURE__ */ t(Je, { className: i, children: /* @__PURE__ */ p("div", { className: Ye.scrollArea, children: [
3707
+ ] }) }) : /* @__PURE__ */ t(Xe, { className: i, children: /* @__PURE__ */ p("div", { className: Je.scrollArea, children: [
3691
3708
  /* @__PURE__ */ t(
3692
3709
  V,
3693
3710
  {
3694
3711
  title: "配置・サイズ",
3695
3712
  description: "ブロックの位置(X・Y座標)と大きさ(幅・高さ)をグリッド単位で設定します",
3696
3713
  children: /* @__PURE__ */ t(
3697
- at,
3714
+ ot,
3698
3715
  {
3699
3716
  selectedBlocks: s,
3700
3717
  onUpdateBlocks: u,
@@ -3709,7 +3726,7 @@ const Mi = fe(
3709
3726
  title: "背景・枠線",
3710
3727
  description: "ブロックの背景色と枠線(線の種類・色・太さ)を設定します",
3711
3728
  children: /* @__PURE__ */ t(
3712
- it,
3729
+ at,
3713
3730
  {
3714
3731
  selectedBlocks: s,
3715
3732
  onUpdateBlocks: u
@@ -3717,8 +3734,8 @@ const Mi = fe(
3717
3734
  )
3718
3735
  }
3719
3736
  ),
3720
- v && m && v.properties.length > 0 && /* @__PURE__ */ t(
3721
- st,
3737
+ f && m && f.properties.length > 0 && /* @__PURE__ */ t(
3738
+ rt,
3722
3739
  {
3723
3740
  selectedBlocks: s,
3724
3741
  pluginRegistry: l,
@@ -3732,7 +3749,7 @@ const Mi = fe(
3732
3749
  title: "基本設定",
3733
3750
  description: "ブロックのID(識別子)や読み取り専用にするかどうかなど、動作に関わる設定をします",
3734
3751
  children: /* @__PURE__ */ t(
3735
- qt,
3752
+ Ht,
3736
3753
  {
3737
3754
  selectedBlocks: s,
3738
3755
  onUpdateBlocks: u,
@@ -3744,14 +3761,14 @@ const Mi = fe(
3744
3761
  ] }) });
3745
3762
  }
3746
3763
  );
3747
- Mi.displayName = "DefaultBlockPropertyPanel";
3748
- const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActive_qrad9_30", zi = "_propertyList_qrad9_46", Wi = "_emptyState_qrad9_131", be = {
3749
- kindSelector: Di,
3750
- kindTab: Pi,
3751
- kindTabActive: Bi,
3752
- propertyList: zi,
3753
- emptyState: Wi
3754
- }, Gt = fe(
3764
+ Bi.displayName = "DefaultBlockPropertyPanel";
3765
+ const Ri = "_kindSelector_qrad9_1", Wi = "_kindTab_qrad9_9", Oi = "_kindTabActive_qrad9_30", Fi = "_propertyList_qrad9_46", ji = "_emptyState_qrad9_131", fe = {
3766
+ kindSelector: Ri,
3767
+ kindTab: Wi,
3768
+ kindTabActive: Oi,
3769
+ propertyList: Fi,
3770
+ emptyState: ji
3771
+ }, Kt = ge(
3755
3772
  ({
3756
3773
  propDef: e,
3757
3774
  kindDefaults: n,
@@ -3760,8 +3777,8 @@ const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActiv
3760
3777
  const { kind: l, defaultProps: a } = e, o = Object.keys(a).some((d) => d in n), c = (d) => n[d] ?? a[d] ?? null, r = (d, u) => i({ ...n, [d]: u }), s = (d) => {
3761
3778
  if (d) {
3762
3779
  const u = { ...n };
3763
- for (const [h, f] of Object.entries(a))
3764
- u[h] = n[h] ?? f;
3780
+ for (const [h, v] of Object.entries(a))
3781
+ u[h] = n[h] ?? v;
3765
3782
  i(u);
3766
3783
  } else {
3767
3784
  const u = { ...n };
@@ -3773,14 +3790,14 @@ const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActiv
3773
3790
  return /* @__PURE__ */ t(
3774
3791
  V,
3775
3792
  {
3776
- title: jt[l] ?? l,
3793
+ title: Vt[l] ?? l,
3777
3794
  collapsible: !0,
3778
3795
  isOpen: o,
3779
3796
  onOpenChange: s,
3780
3797
  openLabel: "カスタム",
3781
3798
  closeLabel: "標準",
3782
3799
  children: /* @__PURE__ */ t(
3783
- ot,
3800
+ st,
3784
3801
  {
3785
3802
  kind: l,
3786
3803
  defaultProps: a,
@@ -3792,8 +3809,8 @@ const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActiv
3792
3809
  );
3793
3810
  }
3794
3811
  );
3795
- Gt.displayName = "DefaultsPropField";
3796
- const Ht = fe(
3812
+ Kt.displayName = "DefaultsPropField";
3813
+ const Zt = ge(
3797
3814
  ({ blockDefaults: e, pluginRegistry: n, onChange: i }) => {
3798
3815
  const l = Object.keys(n), [a, o] = O(
3799
3816
  l[0] ?? ""
@@ -3804,7 +3821,7 @@ const Ht = fe(
3804
3821
  },
3805
3822
  [e, a, i]
3806
3823
  );
3807
- return l.length === 0 ? /* @__PURE__ */ t("div", { className: be.emptyState, children: "プラグインが登録されていません" }) : /* @__PURE__ */ p(
3824
+ return l.length === 0 ? /* @__PURE__ */ t("div", { className: fe.emptyState, children: "プラグインが登録されていません" }) : /* @__PURE__ */ p(
3808
3825
  V,
3809
3826
  {
3810
3827
  title: "ブロック共通デフォルト",
@@ -3812,21 +3829,21 @@ const Ht = fe(
3812
3829
  noPadding: !0,
3813
3830
  description: "各ブロック種類に共通して適用されるデフォルト値です",
3814
3831
  children: [
3815
- /* @__PURE__ */ t("div", { className: be.kindSelector, children: l.map((s) => {
3832
+ /* @__PURE__ */ t("div", { className: fe.kindSelector, children: l.map((s) => {
3816
3833
  const d = n[s];
3817
3834
  return /* @__PURE__ */ t(
3818
3835
  "button",
3819
3836
  {
3820
3837
  type: "button",
3821
- className: `${be.kindTab} ${a === s ? be.kindTabActive : ""}`,
3838
+ className: `${fe.kindTab} ${a === s ? fe.kindTabActive : ""}`,
3822
3839
  onClick: () => o(s),
3823
3840
  children: (d == null ? void 0 : d.meta.displayName) ?? s
3824
3841
  },
3825
3842
  s
3826
3843
  );
3827
3844
  }) }),
3828
- 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(
3829
- Gt,
3845
+ c && /* @__PURE__ */ t("div", { className: fe.propertyList, children: c.properties.length === 0 ? /* @__PURE__ */ t("div", { className: fe.emptyState, children: "カスタマイズ可能なプロパティがありません" }) : c.properties.map((s) => /* @__PURE__ */ t(
3846
+ Kt,
3830
3847
  {
3831
3848
  propDef: s,
3832
3849
  kindDefaults: e[a] ?? {},
@@ -3839,21 +3856,21 @@ const Ht = fe(
3839
3856
  );
3840
3857
  }
3841
3858
  );
3842
- Ht.displayName = "BlockDefaultsPanel";
3843
- 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", qi = "_itemId_12dfx_75", Gi = "_itemMeta_12dfx_80", Hi = "_itemKind_12dfx_87", Ki = "_itemActions_12dfx_95", Zi = "_actionButton_12dfx_100", Yi = "_empty_12dfx_136", U = {
3844
- list: Ri,
3845
- item: Oi,
3846
- selected: Fi,
3847
- dragHandle: ji,
3848
- ghost: Ui,
3849
- itemInfo: Vi,
3850
- itemId: qi,
3851
- itemMeta: Gi,
3852
- itemKind: Hi,
3853
- itemActions: Ki,
3854
- actionButton: Zi,
3855
- empty: Yi
3856
- }, Kt = ({
3859
+ Zt.displayName = "BlockDefaultsPanel";
3860
+ const Ui = "_list_12dfx_10", Vi = "_item_12dfx_19", qi = "_selected_12dfx_41", Gi = "_dragHandle_12dfx_46", Hi = "_ghost_12dfx_57", Ki = "_itemInfo_12dfx_68", Zi = "_itemId_12dfx_75", Yi = "_itemMeta_12dfx_80", Ji = "_itemKind_12dfx_87", Xi = "_itemActions_12dfx_95", Qi = "_actionButton_12dfx_100", ea = "_empty_12dfx_136", U = {
3861
+ list: Ui,
3862
+ item: Vi,
3863
+ selected: qi,
3864
+ dragHandle: Gi,
3865
+ ghost: Hi,
3866
+ itemInfo: Ki,
3867
+ itemId: Zi,
3868
+ itemMeta: Yi,
3869
+ itemKind: Ji,
3870
+ itemActions: Xi,
3871
+ actionButton: Qi,
3872
+ empty: ea
3873
+ }, Yt = ({
3857
3874
  blocks: e,
3858
3875
  onBlocksChange: n,
3859
3876
  selectedBlockIds: i,
@@ -3862,21 +3879,21 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3862
3879
  }) => {
3863
3880
  const [o, c] = O(null), [r, s] = O(
3864
3881
  null
3865
- ), d = ie(null), u = ie(null), h = [...e].reverse(), f = (() => {
3882
+ ), d = ae(null), u = ae(null), h = [...e].reverse(), v = (() => {
3866
3883
  if (o === null) return null;
3867
3884
  const b = h.findIndex((x) => x.id === o);
3868
3885
  return b === -1 ? null : b;
3869
- })(), v = te(() => {
3870
- if (f === null || r === null)
3886
+ })(), f = ne(() => {
3887
+ if (v === null || r === null)
3871
3888
  return h;
3872
- const b = h[f];
3889
+ const b = h[v];
3873
3890
  if (!b) return h;
3874
- const N = [...h.filter((T, D) => D !== f)], C = Math.max(
3891
+ const N = [...h.filter((T, P) => P !== v)], C = Math.max(
3875
3892
  0,
3876
3893
  Math.min(r, N.length)
3877
3894
  );
3878
3895
  return N.splice(C, 0, b), N;
3879
- }, [h, f, r]), m = y(
3896
+ }, [h, v, r]), m = y(
3880
3897
  (b) => {
3881
3898
  const x = e.findIndex((T) => T.id === b);
3882
3899
  if (x === -1 || x === e.length - 1) return;
@@ -3894,7 +3911,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3894
3911
  [e, n]
3895
3912
  ), _ = y(
3896
3913
  (b) => {
3897
- const x = e.findIndex((D) => D.id === b);
3914
+ const x = e.findIndex((P) => P.id === b);
3898
3915
  if (x === -1 || x === e.length - 1) return;
3899
3916
  const N = [...e], C = N[x], T = N[x + 1];
3900
3917
  !C || !T || (N[x] = T, N[x + 1] = C, n(N));
@@ -3902,7 +3919,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3902
3919
  [e, n]
3903
3920
  ), w = y(
3904
3921
  (b) => {
3905
- const x = e.findIndex((D) => D.id === b);
3922
+ const x = e.findIndex((P) => P.id === b);
3906
3923
  if (x === -1 || x === 0) return;
3907
3924
  const N = [...e], C = N[x], T = N[x - 1];
3908
3925
  !C || !T || (N[x] = T, N[x - 1] = C, n(N));
@@ -3923,48 +3940,48 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3923
3940
  }, [n, l, a]), k = y(
3924
3941
  (b, x, N) => {
3925
3942
  if (b.preventDefault(), b.dataTransfer.dropEffect = "move", o === null || N === o) return;
3926
- 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;
3943
+ 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;
3927
3944
  if (E === r) return;
3928
3945
  s(E);
3929
- const B = d.current;
3930
- if (B) {
3931
- const J = [...B].reverse(), rt = J.find(
3932
- ($e) => $e.id === o
3946
+ const z = d.current;
3947
+ if (z) {
3948
+ const J = [...z].reverse(), ct = J.find(
3949
+ (Le) => Le.id === o
3933
3950
  );
3934
- if (rt) {
3935
- const $e = J.filter(
3936
- (ln) => ln.id !== o
3937
- ), nn = Math.max(0, Math.min(E, $e.length)), ct = [...$e];
3938
- ct.splice(nn, 0, rt), n([...ct].reverse());
3951
+ if (ct) {
3952
+ const Le = J.filter(
3953
+ (on) => on.id !== o
3954
+ ), an = Math.max(0, Math.min(E, Le.length)), dt = [...Le];
3955
+ dt.splice(an, 0, ct), n([...dt].reverse());
3939
3956
  }
3940
3957
  }
3941
3958
  },
3942
3959
  [o, r, n]
3943
3960
  ), I = y(
3944
3961
  (b) => {
3945
- b.currentTarget.contains(b.relatedTarget) || s(f);
3962
+ b.currentTarget.contains(b.relatedTarget) || s(v);
3946
3963
  },
3947
- [f]
3964
+ [v]
3948
3965
  ), S = y(
3949
3966
  (b) => {
3950
- if (b.preventDefault(), d.current = null, f !== null && r !== null) {
3951
- const x = h[f];
3967
+ if (b.preventDefault(), d.current = null, v !== null && r !== null) {
3968
+ const x = h[v];
3952
3969
  if (x) {
3953
- const N = h.filter((E, B) => B !== f), C = Math.max(
3970
+ const N = h.filter((E, z) => z !== v), C = Math.max(
3954
3971
  0,
3955
3972
  Math.min(r, N.length)
3956
3973
  ), T = [...N];
3957
3974
  T.splice(C, 0, x);
3958
- const D = [...T].reverse();
3959
- D.every((E, B) => {
3975
+ const P = [...T].reverse();
3976
+ P.every((E, z) => {
3960
3977
  var J;
3961
- return E.id === ((J = e[B]) == null ? void 0 : J.id);
3962
- }) || n(D);
3978
+ return E.id === ((J = e[z]) == null ? void 0 : J.id);
3979
+ }) || n(P);
3963
3980
  }
3964
3981
  }
3965
3982
  c(null), s(null);
3966
3983
  },
3967
- [e, f, r, h, n]
3984
+ [e, v, r, h, n]
3968
3985
  );
3969
3986
  return /* @__PURE__ */ p(
3970
3987
  V,
@@ -3983,14 +4000,14 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
3983
4000
  onDragLeave: I,
3984
4001
  onDrop: S,
3985
4002
  onDragOver: (b) => b.preventDefault(),
3986
- children: v.map((b, x) => {
4003
+ children: f.map((b, x) => {
3987
4004
  const N = h.findIndex(
3988
4005
  (A) => A.id === b.id
3989
- ), C = b.id === o, T = e.length - 1 - N, D = (i == null ? void 0 : i.includes(b.id)) ?? !1;
4006
+ ), C = b.id === o, T = e.length - 1 - N, P = (i == null ? void 0 : i.includes(b.id)) ?? !1;
3990
4007
  return /* @__PURE__ */ p(
3991
4008
  "li",
3992
4009
  {
3993
- className: `${U.item} ${C ? U.ghost : ""} ${D ? U.selected : ""}`,
4010
+ className: `${U.item} ${C ? U.ghost : ""} ${P ? U.selected : ""}`,
3994
4011
  draggable: !C,
3995
4012
  onDragStart: C ? void 0 : (A) => L(A, N),
3996
4013
  onDragEnd: $,
@@ -4088,26 +4105,26 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
4088
4105
  }
4089
4106
  );
4090
4107
  };
4091
- Kt.displayName = "BlockOrderPanel";
4092
- const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22", Te = {
4093
- container: Ji,
4094
- group: Xi,
4095
- divider: Qi
4096
- }, Zt = ({
4108
+ Yt.displayName = "BlockOrderPanel";
4109
+ const ta = "_container_1x0zd_4", na = "_group_1x0zd_16", la = "_divider_1x0zd_22", Ee = {
4110
+ container: ta,
4111
+ group: na,
4112
+ divider: la
4113
+ }, Jt = ({
4097
4114
  context: e,
4098
4115
  onActionFeedback: n
4099
4116
  }) => {
4100
4117
  const { actionContext: i } = e, l = e.editorState.selectedBlockIds, a = ((l == null ? void 0 : l.length) ?? 0) > 0, o = i.isEnabled("undo"), c = i.isEnabled("redo"), r = i.isEnabled("paste"), s = (d) => {
4101
4118
  i.execute(d);
4102
- const u = lt(d);
4119
+ const u = it(d);
4103
4120
  u && (n == null || n(u));
4104
4121
  };
4105
- return /* @__PURE__ */ p("div", { className: Te.container, "data-testid": "canvas-action-panel", children: [
4106
- /* @__PURE__ */ p("div", { className: Te.group, children: [
4122
+ return /* @__PURE__ */ p("div", { className: Ee.container, "data-testid": "canvas-action-panel", children: [
4123
+ /* @__PURE__ */ p("div", { className: Ee.group, children: [
4107
4124
  /* @__PURE__ */ t(
4108
4125
  Z,
4109
4126
  {
4110
- icon: /* @__PURE__ */ t(Xe, { "aria-hidden": "true" }),
4127
+ icon: /* @__PURE__ */ t(Qe, { "aria-hidden": "true" }),
4111
4128
  label: "元に戻す",
4112
4129
  title: "元に戻す (Ctrl+Z / Cmd+Z)",
4113
4130
  onClick: () => s("undo"),
@@ -4117,7 +4134,7 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4117
4134
  /* @__PURE__ */ t(
4118
4135
  Z,
4119
4136
  {
4120
- icon: /* @__PURE__ */ t(Qe, { "aria-hidden": "true" }),
4137
+ icon: /* @__PURE__ */ t(et, { "aria-hidden": "true" }),
4121
4138
  label: "やり直し",
4122
4139
  title: "やり直し (Ctrl+Y / Cmd+Y)",
4123
4140
  onClick: () => s("redo"),
@@ -4125,12 +4142,12 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4125
4142
  }
4126
4143
  )
4127
4144
  ] }),
4128
- /* @__PURE__ */ t("div", { className: Te.divider, "aria-hidden": "true" }),
4129
- /* @__PURE__ */ p("div", { className: Te.group, children: [
4145
+ /* @__PURE__ */ t("div", { className: Ee.divider, "aria-hidden": "true" }),
4146
+ /* @__PURE__ */ p("div", { className: Ee.group, children: [
4130
4147
  /* @__PURE__ */ t(
4131
4148
  Z,
4132
4149
  {
4133
- icon: /* @__PURE__ */ t(et, { "aria-hidden": "true" }),
4150
+ icon: /* @__PURE__ */ t(tt, { "aria-hidden": "true" }),
4134
4151
  label: "選択を削除",
4135
4152
  title: "削除 (Delete / Backspace)",
4136
4153
  onClick: () => s("delete"),
@@ -4140,7 +4157,7 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4140
4157
  /* @__PURE__ */ t(
4141
4158
  Z,
4142
4159
  {
4143
- icon: /* @__PURE__ */ t(tt, { "aria-hidden": "true" }),
4160
+ icon: /* @__PURE__ */ t(nt, { "aria-hidden": "true" }),
4144
4161
  label: "選択をコピー",
4145
4162
  title: "コピー (Ctrl+C / Cmd+C)",
4146
4163
  onClick: () => s("copy"),
@@ -4160,7 +4177,7 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4160
4177
  /* @__PURE__ */ t(
4161
4178
  Z,
4162
4179
  {
4163
- icon: /* @__PURE__ */ t(nt, { "aria-hidden": "true" }),
4180
+ icon: /* @__PURE__ */ t(lt, { "aria-hidden": "true" }),
4164
4181
  label: "選択を複製",
4165
4182
  title: "複製 (Ctrl+D / Cmd+D)",
4166
4183
  onClick: () => s("duplicate"),
@@ -4170,37 +4187,37 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
4170
4187
  ] })
4171
4188
  ] });
4172
4189
  };
4173
- Zt.displayName = "CanvasActionPanel";
4174
- const Yt = ({ children: e, className: n }) => /* @__PURE__ */ t(Mt, { className: n, children: e });
4175
- Yt.displayName = "CanvasPanel";
4176
- const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18", la = "_gridSizeRow_69k7e_29", de = {
4177
- field: ea,
4178
- horizontal: ta,
4179
- label: na,
4180
- gridSizeRow: la
4181
- }, bt = { value: 1, unit: "fr" }, Jt = ({ grid: e, onGridChange: n }) => {
4190
+ Jt.displayName = "CanvasActionPanel";
4191
+ const Xt = ({ children: e, className: n }) => /* @__PURE__ */ t(Dt, { className: n, children: e });
4192
+ Xt.displayName = "CanvasPanel";
4193
+ const ia = "_field_69k7e_6", aa = "_horizontal_69k7e_12", oa = "_label_69k7e_18", sa = "_gridSizeRow_69k7e_29", he = {
4194
+ field: ia,
4195
+ horizontal: aa,
4196
+ label: oa,
4197
+ gridSizeRow: sa
4198
+ }, vt = { value: 1, unit: "fr" }, Qt = ({ grid: e, onGridChange: n }) => {
4182
4199
  const i = y(
4183
4200
  (a) => {
4184
4201
  if (!a || a < 1 || a > 100) return;
4185
- const o = _t(e), c = e.colCount, r = [...o];
4202
+ const o = wt(e), c = e.colCount, r = [...o];
4186
4203
  if (a > c)
4187
4204
  for (let s = c; s < a; s++)
4188
- r.push({ ...bt });
4205
+ r.push({ ...vt });
4189
4206
  else
4190
4207
  r.splice(a);
4191
- n({ ...e, ...xt(r) });
4208
+ n({ ...e, ...Nt(r) });
4192
4209
  },
4193
4210
  [e, n]
4194
4211
  ), l = y(
4195
4212
  (a) => {
4196
4213
  if (!a || a < 1 || a > 100) return;
4197
- const o = wt(e), c = e.rowCount, r = [...o];
4214
+ const o = Ct(e), c = e.rowCount, r = [...o];
4198
4215
  if (a > c)
4199
4216
  for (let s = c; s < a; s++)
4200
- r.push({ ...bt });
4217
+ r.push({ ...vt });
4201
4218
  else
4202
4219
  r.splice(a);
4203
- n({ ...e, ...Nt(r) });
4220
+ n({ ...e, ...St(r) });
4204
4221
  },
4205
4222
  [e, n]
4206
4223
  );
@@ -4211,9 +4228,9 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4211
4228
  collapsible: !0,
4212
4229
  defaultCollapsed: !1,
4213
4230
  description: "ブロックを配置するグリッドの列数と行数を設定します",
4214
- children: /* @__PURE__ */ p("div", { className: de.gridSizeRow, children: [
4215
- /* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
4216
- /* @__PURE__ */ t("span", { className: de.label, children: "列数" }),
4231
+ children: /* @__PURE__ */ p("div", { className: he.gridSizeRow, children: [
4232
+ /* @__PURE__ */ p("div", { className: `${he.field} ${he.horizontal}`, children: [
4233
+ /* @__PURE__ */ t("span", { className: he.label, children: "列数" }),
4217
4234
  /* @__PURE__ */ t(
4218
4235
  G,
4219
4236
  {
@@ -4225,8 +4242,8 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4225
4242
  }
4226
4243
  )
4227
4244
  ] }),
4228
- /* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
4229
- /* @__PURE__ */ t("span", { className: de.label, children: "行数" }),
4245
+ /* @__PURE__ */ p("div", { className: `${he.field} ${he.horizontal}`, children: [
4246
+ /* @__PURE__ */ t("span", { className: he.label, children: "行数" }),
4230
4247
  /* @__PURE__ */ t(
4231
4248
  G,
4232
4249
  {
@@ -4242,19 +4259,19 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
4242
4259
  }
4243
4260
  );
4244
4261
  };
4245
- Jt.displayName = "GridSizePanel";
4246
- 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 = {
4247
- topRow: ia,
4248
- linkSwitch: aa,
4249
- switchLabel: oa,
4250
- switchLabelActive: sa,
4251
- toggle: ra,
4252
- thumb: ca,
4253
- topCell: da,
4254
- sideCell: ha,
4255
- bottomCell: ua,
4256
- sideMargins: pa
4257
- }, Xt = ({ paper: e, onPaperChange: n }) => {
4262
+ Qt.displayName = "GridSizePanel";
4263
+ const ra = "_topRow_2ni80_6", ca = "_linkSwitch_2ni80_15", da = "_switchLabel_2ni80_23", ha = "_switchLabelActive_2ni80_31", ua = "_toggle_2ni80_35", pa = "_thumb_2ni80_52", ma = "_topCell_2ni80_70", ba = "_sideCell_2ni80_75", fa = "_bottomCell_2ni80_81", va = "_sideMargins_2ni80_88", H = {
4264
+ topRow: ra,
4265
+ linkSwitch: ca,
4266
+ switchLabel: da,
4267
+ switchLabelActive: ha,
4268
+ toggle: ua,
4269
+ thumb: pa,
4270
+ topCell: ma,
4271
+ sideCell: ba,
4272
+ bottomCell: fa,
4273
+ sideMargins: va
4274
+ }, en = ({ paper: e, onPaperChange: n }) => {
4258
4275
  const [i, l] = O(!1), a = y(
4259
4276
  (s) => {
4260
4277
  if (!s) return;
@@ -4354,7 +4371,7 @@ const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2n
4354
4371
  }
4355
4372
  ) })
4356
4373
  ] }),
4357
- !i && /* @__PURE__ */ p(oe, { children: [
4374
+ !i && /* @__PURE__ */ p(se, { children: [
4358
4375
  /* @__PURE__ */ p("div", { className: H.sideMargins, children: [
4359
4376
  /* @__PURE__ */ t("div", { className: H.sideCell, children: /* @__PURE__ */ t(
4360
4377
  j,
@@ -4392,21 +4409,21 @@ const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2n
4392
4409
  }
4393
4410
  );
4394
4411
  };
4395
- Xt.displayName = "MarginPanel";
4396
- 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 = {
4397
- grid: ma,
4398
- colSpan2: ba,
4399
- colSpan3: va,
4400
- label: fa,
4401
- modeLabel: ga,
4402
- modeToggle: ya,
4403
- switchLabel: _a,
4404
- switchLabelActive: xa,
4405
- toggle: wa,
4406
- thumb: Na,
4407
- checkboxCell: Ca
4412
+ en.displayName = "MarginPanel";
4413
+ const ga = "_grid_ddemj_5", ya = "_colSpan2_ddemj_13", _a = "_colSpan3_ddemj_18", xa = "_label_ddemj_23", wa = "_modeLabel_ddemj_32", Na = "_modeToggle_ddemj_40", Ca = "_switchLabel_ddemj_47", Sa = "_switchLabelActive_ddemj_55", Ia = "_toggle_ddemj_59", $a = "_thumb_ddemj_76", La = "_checkboxCell_ddemj_92", M = {
4414
+ grid: ga,
4415
+ colSpan2: ya,
4416
+ colSpan3: _a,
4417
+ label: xa,
4418
+ modeLabel: wa,
4419
+ modeToggle: Na,
4420
+ switchLabel: Ca,
4421
+ switchLabelActive: Sa,
4422
+ toggle: Ia,
4423
+ thumb: $a,
4424
+ checkboxCell: La
4408
4425
  };
4409
- function vt(e, n) {
4426
+ function gt(e, n) {
4410
4427
  switch (n) {
4411
4428
  case "cm":
4412
4429
  return e / 10;
@@ -4416,11 +4433,11 @@ function vt(e, n) {
4416
4433
  return e;
4417
4434
  }
4418
4435
  }
4419
- const Qt = ({
4436
+ const tn = ({
4420
4437
  paper: e,
4421
4438
  onPaperChange: n
4422
4439
  }) => {
4423
- const i = te(
4440
+ const i = ne(
4424
4441
  () => [
4425
4442
  { value: F.A4, label: "A4 (210 × 297 mm)" },
4426
4443
  { value: F.A3, label: "A3 (297 × 420 mm)" },
@@ -4437,7 +4454,7 @@ const Qt = ({
4437
4454
  [e, n]
4438
4455
  ), a = y(
4439
4456
  (_) => {
4440
- _ && n({ ...e, size: Ct[_] });
4457
+ _ && n({ ...e, size: It[_] });
4441
4458
  },
4442
4459
  [e, n]
4443
4460
  ), o = y(
@@ -4466,12 +4483,12 @@ const Qt = ({
4466
4483
  n({ ...e, autoHeight: s ? void 0 : !0 });
4467
4484
  }, [e, s, n]), h = y(() => {
4468
4485
  n({ ...e, autoWidth: d ? void 0 : !0 });
4469
- }, [e, d, n]), f = s ? "最小高さ" : "高さ", v = d ? "最小幅" : "幅", m = te(() => {
4486
+ }, [e, d, n]), v = s ? "最小高さ" : "高さ", f = d ? "最小幅" : "幅", m = ne(() => {
4470
4487
  const _ = K.fromDim(e.margin.left) + K.fromDim(e.margin.right);
4471
- return vt(_, e.size.width.unit);
4472
- }, [e.margin.left, e.margin.right, e.size.width.unit]), g = te(() => {
4488
+ return gt(_, e.size.width.unit);
4489
+ }, [e.margin.left, e.margin.right, e.size.width.unit]), g = ne(() => {
4473
4490
  const _ = K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom);
4474
- return vt(_, e.size.height.unit);
4491
+ return gt(_, e.size.height.unit);
4475
4492
  }, [e.margin.top, e.margin.bottom, e.size.height.unit]);
4476
4493
  return /* @__PURE__ */ t(
4477
4494
  V,
@@ -4483,7 +4500,7 @@ const Qt = ({
4483
4500
  children: /* @__PURE__ */ p("div", { className: M.grid, children: [
4484
4501
  /* @__PURE__ */ t("span", { className: `${M.label} ${M.colSpan2}`, children: "用紙サイズ" }),
4485
4502
  /* @__PURE__ */ t("div", { className: M.colSpan3, children: /* @__PURE__ */ t(
4486
- ge,
4503
+ ye,
4487
4504
  {
4488
4505
  value: e.size.preset,
4489
4506
  options: i,
@@ -4492,7 +4509,7 @@ const Qt = ({
4492
4509
  ) }),
4493
4510
  /* @__PURE__ */ t("span", { className: `${M.label} ${M.colSpan2}`, children: "横向き" }),
4494
4511
  /* @__PURE__ */ t("div", { className: M.checkboxCell, children: /* @__PURE__ */ t(
4495
- ae,
4512
+ oe,
4496
4513
  {
4497
4514
  value: e.orientation === !0,
4498
4515
  onChange: l
@@ -4556,8 +4573,8 @@ const Qt = ({
4556
4573
  }
4557
4574
  )
4558
4575
  ] }),
4559
- r && /* @__PURE__ */ p(oe, { children: [
4560
- /* @__PURE__ */ t("span", { className: M.label, children: v }),
4576
+ r && /* @__PURE__ */ p(se, { children: [
4577
+ /* @__PURE__ */ t("span", { className: M.label, children: f }),
4561
4578
  /* @__PURE__ */ t("div", { className: M.colSpan3, children: /* @__PURE__ */ t(
4562
4579
  j,
4563
4580
  {
@@ -4568,7 +4585,7 @@ const Qt = ({
4568
4585
  max: 500
4569
4586
  }
4570
4587
  ) }),
4571
- /* @__PURE__ */ t("span", { className: M.label, children: f }),
4588
+ /* @__PURE__ */ t("span", { className: M.label, children: v }),
4572
4589
  /* @__PURE__ */ t("div", { className: M.colSpan3, children: /* @__PURE__ */ t(
4573
4590
  j,
4574
4591
  {
@@ -4584,8 +4601,8 @@ const Qt = ({
4584
4601
  }
4585
4602
  );
4586
4603
  };
4587
- Qt.displayName = "PaperSizePanel";
4588
- const Sa = ({
4604
+ tn.displayName = "PaperSizePanel";
4605
+ const ka = ({
4589
4606
  context: e,
4590
4607
  onBlockHover: n,
4591
4608
  onBlockDragChange: i,
@@ -4603,11 +4620,11 @@ const Sa = ({
4603
4620
  );
4604
4621
  o(
4605
4622
  { ...a, pages: g },
4606
- { mergeKey: un(r) }
4623
+ { mergeKey: bn(r) }
4607
4624
  );
4608
4625
  },
4609
4626
  [a, o, r]
4610
- ), f = y(
4627
+ ), v = y(
4611
4628
  (m) => {
4612
4629
  const g = a.pages.map(
4613
4630
  (_, w) => w === r ? { ..._, blocks: m } : _
@@ -4615,7 +4632,7 @@ const Sa = ({
4615
4632
  o({ ...a, pages: g });
4616
4633
  },
4617
4634
  [a, o, r]
4618
- ), v = y(
4635
+ ), f = y(
4619
4636
  (m) => {
4620
4637
  const g = a.pages.map(
4621
4638
  (_, w) => w === r ? { ..._, blockDefaults: m } : _
@@ -4624,30 +4641,30 @@ const Sa = ({
4624
4641
  },
4625
4642
  [a, o, r]
4626
4643
  );
4627
- return /* @__PURE__ */ p(Yt, { children: [
4644
+ return /* @__PURE__ */ p(Xt, { children: [
4628
4645
  /* @__PURE__ */ t(
4629
- Zt,
4646
+ Jt,
4630
4647
  {
4631
4648
  context: e,
4632
4649
  onActionFeedback: l
4633
4650
  }
4634
4651
  ),
4635
- /* @__PURE__ */ t(Qt, { paper: a.paper, onPaperChange: u }),
4636
- /* @__PURE__ */ t(Xt, { paper: a.paper, onPaperChange: u }),
4637
- /* @__PURE__ */ t(Jt, { grid: d.grid, onGridChange: h }),
4652
+ /* @__PURE__ */ t(tn, { paper: a.paper, onPaperChange: u }),
4653
+ /* @__PURE__ */ t(en, { paper: a.paper, onPaperChange: u }),
4654
+ /* @__PURE__ */ t(Qt, { grid: d.grid, onGridChange: h }),
4638
4655
  c && Object.keys(c).length > 0 && /* @__PURE__ */ t(
4639
- Ht,
4656
+ Zt,
4640
4657
  {
4641
4658
  blockDefaults: d.blockDefaults ?? {},
4642
4659
  pluginRegistry: c,
4643
- onChange: v
4660
+ onChange: f
4644
4661
  }
4645
4662
  ),
4646
4663
  /* @__PURE__ */ t(
4647
- Kt,
4664
+ Yt,
4648
4665
  {
4649
4666
  blocks: d.blocks,
4650
- onBlocksChange: f,
4667
+ onBlocksChange: v,
4651
4668
  selectedBlockIds: s,
4652
4669
  onBlockHover: n,
4653
4670
  onBlockDragChange: i
@@ -4655,27 +4672,27 @@ const Sa = ({
4655
4672
  )
4656
4673
  ] });
4657
4674
  };
4658
- Sa.displayName = "DefaultCanvasPanel";
4659
- const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33", R = {
4660
- buttonGroup: Ia,
4661
- button: $a,
4662
- error: La
4663
- }, ft = (e, n) => {
4675
+ ka.displayName = "DefaultCanvasPanel";
4676
+ const Ta = "_buttonGroup_5h1ft_1", Ea = "_button_5h1ft_1", Aa = "_error_5h1ft_33", W = {
4677
+ buttonGroup: Ta,
4678
+ button: Ea,
4679
+ error: Aa
4680
+ }, yt = (e, n) => {
4664
4681
  const i = [];
4665
4682
  for (const l of Object.keys(e))
4666
4683
  l in n || i.push({ id: l, value: void 0 });
4667
4684
  for (const [l, a] of Object.entries(n))
4668
4685
  i.push({ id: l, value: a });
4669
4686
  return i;
4670
- }, en = ({
4687
+ }, nn = ({
4671
4688
  book: e,
4672
4689
  values: n,
4673
4690
  onBookChange: i,
4674
4691
  onValuesChange: l
4675
4692
  }) => {
4676
- const [a, o] = O(""), c = ie(null), r = ie(null), s = y(() => {
4693
+ const [a, o] = O(""), c = ae(null), r = ae(null), s = y(() => {
4677
4694
  try {
4678
- const b = dt(e), x = new Blob([b], { type: "application/json" }), N = URL.createObjectURL(x), C = document.createElement("a");
4695
+ const b = ht(e), x = new Blob([b], { type: "application/json" }), N = URL.createObjectURL(x), C = document.createElement("a");
4679
4696
  C.href = N, C.download = "book.json", C.click(), URL.revokeObjectURL(N), o("");
4680
4697
  } catch (b) {
4681
4698
  o(
@@ -4684,7 +4701,7 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4684
4701
  }
4685
4702
  }, [e]), d = y(async () => {
4686
4703
  try {
4687
- const b = dt(e);
4704
+ const b = ht(e);
4688
4705
  await navigator.clipboard.writeText(b), o(""), alert("ブックをクリップボードにコピーしました");
4689
4706
  } catch (b) {
4690
4707
  o(
@@ -4693,23 +4710,23 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4693
4710
  }
4694
4711
  }, [e]), u = y(
4695
4712
  (b) => {
4696
- const x = pn(b);
4713
+ const x = fn(b);
4697
4714
  i(x);
4698
4715
  },
4699
4716
  [i]
4700
4717
  ), h = y(() => {
4701
4718
  var b;
4702
4719
  (b = c.current) == null || b.click();
4703
- }, []), f = y(
4720
+ }, []), v = y(
4704
4721
  (b) => {
4705
4722
  var C;
4706
4723
  const x = (C = b.target.files) == null ? void 0 : C[0];
4707
4724
  if (!x) return;
4708
4725
  const N = new FileReader();
4709
4726
  N.onload = (T) => {
4710
- var D;
4727
+ var P;
4711
4728
  try {
4712
- u((D = T.target) == null ? void 0 : D.result), o(""), alert("インポートしました");
4729
+ u((P = T.target) == null ? void 0 : P.result), o(""), alert("インポートしました");
4713
4730
  } catch (A) {
4714
4731
  o(
4715
4732
  `インポートエラー: ${A instanceof Error ? A.message : String(A)}`
@@ -4718,7 +4735,7 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4718
4735
  }, N.readAsText(x), b.target.value = "";
4719
4736
  },
4720
4737
  [u]
4721
- ), v = y(async () => {
4738
+ ), f = y(async () => {
4722
4739
  try {
4723
4740
  const b = await navigator.clipboard.readText();
4724
4741
  u(b), o(""), alert("インポートしました");
@@ -4755,9 +4772,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4755
4772
  if (!x) return;
4756
4773
  const N = new FileReader();
4757
4774
  N.onload = (T) => {
4758
- var D;
4775
+ var P;
4759
4776
  try {
4760
- const A = ht((D = T.target) == null ? void 0 : D.result), E = ft(n, A);
4777
+ const A = ut((P = T.target) == null ? void 0 : P.result), E = yt(n, A);
4761
4778
  l(E), o(""), alert("値をインポートしました");
4762
4779
  } catch (A) {
4763
4780
  o(
@@ -4769,14 +4786,14 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4769
4786
  [l, n]
4770
4787
  ), L = y(async () => {
4771
4788
  try {
4772
- const b = await navigator.clipboard.readText(), x = ht(b), N = ft(n, x);
4789
+ const b = await navigator.clipboard.readText(), x = ut(b), N = yt(n, x);
4773
4790
  l(N), o(""), alert("値をインポートしました");
4774
4791
  } catch (b) {
4775
4792
  o(
4776
4793
  `クリップボードエラー: ${b instanceof Error ? b.message : String(b)}`
4777
4794
  );
4778
4795
  }
4779
- }, [l, n]), $ = ie(null), k = y(() => {
4796
+ }, [l, n]), $ = ae(null), k = y(() => {
4780
4797
  try {
4781
4798
  const b = e.pages[0], x = JSON.stringify(
4782
4799
  { grid: b.grid, blocks: b.blocks },
@@ -4799,15 +4816,15 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4799
4816
  if (!x) return;
4800
4817
  const N = new FileReader();
4801
4818
  N.onload = (T) => {
4802
- var D;
4819
+ var P;
4803
4820
  try {
4804
- const A = JSON.parse((D = T.target) == null ? void 0 : D.result), E = mn({
4821
+ const A = JSON.parse((P = T.target) == null ? void 0 : P.result), E = vn({
4805
4822
  grid: A.grid,
4806
4823
  blocks: A.blocks ?? [],
4807
4824
  ...A.metaData !== void 0 ? { metaData: A.metaData } : {},
4808
4825
  ...A.blockDefaults !== void 0 ? { blockDefaults: A.blockDefaults } : {}
4809
- }), B = [...e.pages];
4810
- B[0] = E, i({ ...e, pages: B }), o(""), alert("スキーマをインポートしました");
4826
+ }), z = [...e.pages];
4827
+ z[0] = E, i({ ...e, pages: z }), o(""), alert("スキーマをインポートしました");
4811
4828
  } catch (A) {
4812
4829
  o(
4813
4830
  `インポートエラー: ${A instanceof Error ? A.message : String(A)}`
@@ -4817,14 +4834,14 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4817
4834
  },
4818
4835
  [e, i]
4819
4836
  );
4820
- return /* @__PURE__ */ p(oe, { children: [
4837
+ return /* @__PURE__ */ p(se, { children: [
4821
4838
  /* @__PURE__ */ p(V, { title: "ブック", children: [
4822
- /* @__PURE__ */ p("div", { className: R.buttonGroup, children: [
4839
+ /* @__PURE__ */ p("div", { className: W.buttonGroup, children: [
4823
4840
  /* @__PURE__ */ t(
4824
4841
  "button",
4825
4842
  {
4826
4843
  type: "button",
4827
- className: R.button,
4844
+ className: W.button,
4828
4845
  "data-testid": "export-book-file",
4829
4846
  onClick: s,
4830
4847
  children: "📥 ファイルにエクスポート"
@@ -4834,19 +4851,19 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4834
4851
  "button",
4835
4852
  {
4836
4853
  type: "button",
4837
- className: R.button,
4854
+ className: W.button,
4838
4855
  "data-testid": "export-book-clipboard",
4839
4856
  onClick: d,
4840
4857
  children: "📋 クリップボードにコピー"
4841
4858
  }
4842
4859
  )
4843
4860
  ] }),
4844
- /* @__PURE__ */ p("div", { className: R.buttonGroup, children: [
4861
+ /* @__PURE__ */ p("div", { className: W.buttonGroup, children: [
4845
4862
  /* @__PURE__ */ t(
4846
4863
  "button",
4847
4864
  {
4848
4865
  type: "button",
4849
- className: R.button,
4866
+ className: W.button,
4850
4867
  "data-testid": "import-book-file",
4851
4868
  onClick: h,
4852
4869
  children: "📤 ファイルからインポート"
@@ -4856,9 +4873,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4856
4873
  "button",
4857
4874
  {
4858
4875
  type: "button",
4859
- className: R.button,
4876
+ className: W.button,
4860
4877
  "data-testid": "import-book-clipboard",
4861
- onClick: v,
4878
+ onClick: f,
4862
4879
  children: "📋 クリップボードからペースト"
4863
4880
  }
4864
4881
  )
@@ -4870,17 +4887,17 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4870
4887
  type: "file",
4871
4888
  accept: ".json",
4872
4889
  style: { display: "none" },
4873
- onChange: f
4890
+ onChange: v
4874
4891
  }
4875
4892
  )
4876
4893
  ] }),
4877
4894
  /* @__PURE__ */ p(V, { title: "値", children: [
4878
- /* @__PURE__ */ p("div", { className: R.buttonGroup, children: [
4895
+ /* @__PURE__ */ p("div", { className: W.buttonGroup, children: [
4879
4896
  /* @__PURE__ */ t(
4880
4897
  "button",
4881
4898
  {
4882
4899
  type: "button",
4883
- className: R.button,
4900
+ className: W.button,
4884
4901
  "data-testid": "export-values-file",
4885
4902
  onClick: m,
4886
4903
  children: "📥 ファイルにエクスポート"
@@ -4890,19 +4907,19 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4890
4907
  "button",
4891
4908
  {
4892
4909
  type: "button",
4893
- className: R.button,
4910
+ className: W.button,
4894
4911
  "data-testid": "export-values-clipboard",
4895
4912
  onClick: g,
4896
4913
  children: "📋 クリップボードにコピー"
4897
4914
  }
4898
4915
  )
4899
4916
  ] }),
4900
- /* @__PURE__ */ p("div", { className: R.buttonGroup, children: [
4917
+ /* @__PURE__ */ p("div", { className: W.buttonGroup, children: [
4901
4918
  /* @__PURE__ */ t(
4902
4919
  "button",
4903
4920
  {
4904
4921
  type: "button",
4905
- className: R.button,
4922
+ className: W.button,
4906
4923
  "data-testid": "import-values-file",
4907
4924
  onClick: _,
4908
4925
  children: "📤 ファイルからインポート"
@@ -4912,7 +4929,7 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4912
4929
  "button",
4913
4930
  {
4914
4931
  type: "button",
4915
- className: R.button,
4932
+ className: W.button,
4916
4933
  "data-testid": "import-values-clipboard",
4917
4934
  onClick: L,
4918
4935
  children: "📋 クリップボードからペースト"
@@ -4931,21 +4948,21 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4931
4948
  )
4932
4949
  ] }),
4933
4950
  /* @__PURE__ */ p(V, { title: "スキーマ", children: [
4934
- /* @__PURE__ */ t("div", { className: R.buttonGroup, children: /* @__PURE__ */ t(
4951
+ /* @__PURE__ */ t("div", { className: W.buttonGroup, children: /* @__PURE__ */ t(
4935
4952
  "button",
4936
4953
  {
4937
4954
  type: "button",
4938
- className: R.button,
4955
+ className: W.button,
4939
4956
  "data-testid": "export-schema-file",
4940
4957
  onClick: k,
4941
4958
  children: "📥 スキーマをエクスポート"
4942
4959
  }
4943
4960
  ) }),
4944
- /* @__PURE__ */ t("div", { className: R.buttonGroup, children: /* @__PURE__ */ t(
4961
+ /* @__PURE__ */ t("div", { className: W.buttonGroup, children: /* @__PURE__ */ t(
4945
4962
  "button",
4946
4963
  {
4947
4964
  type: "button",
4948
- className: R.button,
4965
+ className: W.button,
4949
4966
  "data-testid": "import-schema-file",
4950
4967
  onClick: I,
4951
4968
  children: "📤 スキーマをインポート"
@@ -4962,17 +4979,17 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
4962
4979
  }
4963
4980
  )
4964
4981
  ] }),
4965
- a && /* @__PURE__ */ t("div", { className: R.error, role: "alert", children: a })
4982
+ a && /* @__PURE__ */ t("div", { className: W.error, role: "alert", children: a })
4966
4983
  ] });
4967
4984
  };
4968
- en.displayName = "ImportExportPanel";
4969
- const ka = ({
4985
+ nn.displayName = "ImportExportPanel";
4986
+ const Ma = ({
4970
4987
  context: e,
4971
4988
  sections: n
4972
4989
  }) => {
4973
4990
  const i = [
4974
4991
  /* @__PURE__ */ t(
4975
- en,
4992
+ nn,
4976
4993
  {
4977
4994
  book: e.book,
4978
4995
  values: e.values,
@@ -4983,23 +5000,23 @@ const ka = ({
4983
5000
  "import-export"
4984
5001
  )
4985
5002
  ];
4986
- return /* @__PURE__ */ t(Mt, { children: n ?? i });
5003
+ return /* @__PURE__ */ t(Dt, { children: n ?? i });
4987
5004
  };
4988
- ka.displayName = "OtherPanel";
4989
- const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0l_23", Ma = "_itemName_16a0l_49", Da = "_itemPreview_16a0l_77", Ce = {
4990
- container: Ta,
4991
- paletteItems: Ea,
4992
- item: Aa,
4993
- itemName: Ma,
4994
- itemPreview: Da
4995
- }, Pa = ({ context: e, className: n }) => {
5005
+ Ma.displayName = "OtherPanel";
5006
+ const Pa = "_container_16a0l_1", Da = "_paletteItems_16a0l_11", za = "_item_16a0l_23", Ba = "_itemName_16a0l_49", Ra = "_itemPreview_16a0l_77", Se = {
5007
+ container: Pa,
5008
+ paletteItems: Da,
5009
+ item: za,
5010
+ itemName: Ba,
5011
+ itemPreview: Ra
5012
+ }, Wa = ({ context: e, className: n }) => {
4996
5013
  const i = Object.values(e.pluginRegistry).filter(
4997
5014
  (o) => o !== void 0
4998
- ), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = bn(
5015
+ ), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = gn(
4999
5016
  e.book.paper,
5000
- (l == null ? void 0 : l.grid) ?? vn
5017
+ (l == null ? void 0 : l.grid) ?? yn
5001
5018
  );
5002
- return /* @__PURE__ */ t("div", { className: `${Ce.container} ${n || ""}`, children: /* @__PURE__ */ t("div", { className: Ce.paletteItems, children: i.map((o) => {
5019
+ return /* @__PURE__ */ t("div", { className: `${Se.container} ${n || ""}`, children: /* @__PURE__ */ t("div", { className: Se.paletteItems, children: i.map((o) => {
5003
5020
  const c = o.meta.defaultSize ?? { w: 1, h: 1 }, r = a({
5004
5021
  id: "ghost",
5005
5022
  kind: o.kind,
@@ -5007,7 +5024,7 @@ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0
5007
5024
  props: {}
5008
5025
  });
5009
5026
  return /* @__PURE__ */ t(
5010
- tn,
5027
+ ln,
5011
5028
  {
5012
5029
  plugin: o,
5013
5030
  ghostWidth: r.width,
@@ -5017,9 +5034,9 @@ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0
5017
5034
  );
5018
5035
  }) }) });
5019
5036
  };
5020
- Pa.displayName = "PalettePanel";
5021
- const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5022
- const l = te(() => {
5037
+ Wa.displayName = "PalettePanel";
5038
+ const ln = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5039
+ const l = ne(() => {
5023
5040
  var c, r;
5024
5041
  return {
5025
5042
  id: `preview-${e.kind}`,
@@ -5034,20 +5051,20 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5034
5051
  };
5035
5052
  }, [e]), a = null, o = y(
5036
5053
  (c) => {
5037
- fn(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
5054
+ _n(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
5038
5055
  const r = Math.round(n), s = Math.round(i), d = document.createElement("div");
5039
5056
  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));
5040
5057
  },
5041
5058
  [e, n, i]
5042
5059
  );
5043
- return /* @__PURE__ */ p("div", { className: Ce.item, "data-testid": `palette-item-${e.kind}`, children: [
5060
+ return /* @__PURE__ */ p("div", { className: Se.item, "data-testid": `palette-item-${e.kind}`, children: [
5044
5061
  /* @__PURE__ */ t(
5045
5062
  "button",
5046
5063
  {
5047
5064
  type: "button",
5048
5065
  draggable: !0,
5049
5066
  onDragStart: o,
5050
- className: Ce.itemName,
5067
+ className: Se.itemName,
5051
5068
  "aria-label": `${e.meta.displayName}ブロックを追加`,
5052
5069
  children: e.meta.displayName
5053
5070
  }
@@ -5055,7 +5072,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5055
5072
  /* @__PURE__ */ t(
5056
5073
  "div",
5057
5074
  {
5058
- className: Ce.itemPreview,
5075
+ className: Se.itemPreview,
5059
5076
  draggable: !0,
5060
5077
  onDragStart: o,
5061
5078
  "aria-hidden": "true",
@@ -5068,60 +5085,60 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5068
5085
  onChange: () => {
5069
5086
  },
5070
5087
  readOnly: !0,
5071
- mode: gn.FORM
5088
+ mode: xn.FORM
5072
5089
  }
5073
5090
  )
5074
5091
  }
5075
5092
  )
5076
5093
  ] });
5077
5094
  };
5078
- tn.displayName = "PaletteItem";
5095
+ ln.displayName = "PaletteItem";
5079
5096
  export {
5080
- Tn as A,
5081
- it as B,
5082
- En as C,
5083
- Dn as D,
5084
- Qt as E,
5085
- st as F,
5086
- Dl as G,
5087
- Ut as H,
5097
+ Mn as A,
5098
+ at as B,
5099
+ Pn as C,
5100
+ Bn as D,
5101
+ tn as E,
5102
+ rt as F,
5103
+ Bl as G,
5104
+ qt as H,
5088
5105
  Z as I,
5089
5106
  ve as J,
5090
5107
  De as K,
5091
- at as L,
5092
- Xt as M,
5108
+ ot as L,
5109
+ en as M,
5093
5110
  G as N,
5094
- ka as O,
5095
- Bl as P,
5096
- Mt as Q,
5097
- Se as R,
5098
- Fa as S,
5099
- kl as T,
5100
- wi as U,
5101
- An as a,
5102
- Mn as b,
5103
- Ml as c,
5104
- Ni as d,
5105
- Mi as e,
5106
- Pa as f,
5107
- Oa as g,
5108
- Sa as h,
5109
- Tl as i,
5110
- _e as j,
5111
- xe as k,
5112
- Ht as l,
5113
- Kt as m,
5114
- Je as n,
5115
- Zt as o,
5116
- Yt as p,
5117
- ae as q,
5111
+ Ma as O,
5112
+ Wl as P,
5113
+ Dt as Q,
5114
+ Ie as R,
5115
+ qa as S,
5116
+ Al as T,
5117
+ Ii as U,
5118
+ Dn as a,
5119
+ zn as b,
5120
+ zl as c,
5121
+ $i as d,
5122
+ Bi as e,
5123
+ Wa as f,
5124
+ Va as g,
5125
+ ka as h,
5126
+ Ml as i,
5127
+ xe as j,
5128
+ we as k,
5129
+ Zt as l,
5130
+ Yt as m,
5131
+ Xe as n,
5132
+ Jt as o,
5133
+ Xt as p,
5134
+ oe as q,
5118
5135
  V as r,
5119
- P as s,
5120
- le as t,
5121
- ja as u,
5136
+ D as s,
5137
+ ie as t,
5138
+ Ga as u,
5122
5139
  j as v,
5123
- ge as w,
5124
- Jt as x,
5125
- en as y,
5126
- qt as z
5140
+ ye as w,
5141
+ Qt as x,
5142
+ nn as y,
5143
+ Ht as z
5127
5144
  };