@geckou/ui-vue 0.3.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +8 -1
  2. package/dist/components/ArticleList/Card/Artistic.vue.d.ts +10 -0
  3. package/dist/components/ArticleList/Card/Entertainment.vue.d.ts +10 -0
  4. package/dist/components/ArticleList/Card/Gallery.vue.d.ts +10 -0
  5. package/dist/components/ArticleList/Card/Grid.vue.d.ts +11 -0
  6. package/dist/components/ArticleList/Card/News.vue.d.ts +9 -0
  7. package/dist/components/ArticleList/Card/Rounded.vue.d.ts +10 -0
  8. package/dist/components/ArticleList/Card/Row.vue.d.ts +9 -0
  9. package/dist/components/ArticleList/Card/Simple.vue.d.ts +10 -0
  10. package/dist/components/ArticleList/Card/Standard.vue.d.ts +10 -0
  11. package/dist/components/ArticleList/Card/Tile.vue.d.ts +10 -0
  12. package/dist/components/ArticleList/GenericArticleList.vue.d.ts +11 -0
  13. package/dist/components/ArticleList/List/Artistic.vue.d.ts +8 -0
  14. package/dist/components/ArticleList/List/Entertainment.vue.d.ts +8 -0
  15. package/dist/components/ArticleList/List/Gallery.vue.d.ts +8 -0
  16. package/dist/components/ArticleList/List/Grid.vue.d.ts +11 -0
  17. package/dist/components/ArticleList/List/News.vue.d.ts +8 -0
  18. package/dist/components/ArticleList/List/Rounded.vue.d.ts +8 -0
  19. package/dist/components/ArticleList/List/Row.vue.d.ts +8 -0
  20. package/dist/components/ArticleList/List/Simple.vue.d.ts +8 -0
  21. package/dist/components/ArticleList/List/Standard.vue.d.ts +8 -0
  22. package/dist/components/ArticleList/List/Tile.vue.d.ts +8 -0
  23. package/dist/components/ArticleList/Parts/AuthorInfo.vue.d.ts +31 -0
  24. package/dist/components/ArticleList/Parts/CardContainer.vue.d.ts +20 -0
  25. package/dist/components/ArticleList/Parts/CardHeading.vue.d.ts +12 -0
  26. package/dist/components/ArticleList/Parts/CategoryList.vue.d.ts +19 -0
  27. package/dist/components/ArticleList/Parts/ExcerptText.vue.d.ts +12 -0
  28. package/dist/components/ArticleList/Parts/MetadataList.vue.d.ts +32 -0
  29. package/dist/components/ArticleList/Parts/NoImage.vue.d.ts +2 -0
  30. package/dist/components/ArticleList/Parts/PostedDate.vue.d.ts +14 -0
  31. package/dist/components/ArticleList/Parts/TagList.vue.d.ts +18 -0
  32. package/dist/components/ArticleList/Parts/ThumbnailImage.vue.d.ts +17 -0
  33. package/dist/components/BasicButton.vue.d.ts +26 -0
  34. package/dist/components/CheckBox.vue.d.ts +34 -0
  35. package/dist/components/CheckBoxes.vue.d.ts +18 -0
  36. package/dist/components/CheckButton.vue.d.ts +31 -0
  37. package/dist/components/DatePicker.vue.d.ts +27 -0
  38. package/dist/components/DateRangePicker.vue.d.ts +31 -0
  39. package/dist/components/DateSelector.vue.d.ts +17 -0
  40. package/dist/components/DropdownUi.vue.d.ts +37 -0
  41. package/dist/components/ErrorMessage.vue.d.ts +9 -0
  42. package/dist/components/Icon/CalendarIcon.vue.d.ts +2 -0
  43. package/dist/components/Icon/CheckIcon.vue.d.ts +2 -0
  44. package/dist/components/Icon/CloseIcon.vue.d.ts +2 -0
  45. package/dist/components/Icon/Folder.vue.d.ts +2 -0
  46. package/dist/components/Icon/Image.vue.d.ts +2 -0
  47. package/dist/components/Icon/KeyboardArrowDownIcon.vue.d.ts +2 -0
  48. package/dist/components/Icon/Tag.vue.d.ts +2 -0
  49. package/dist/components/InputBox.vue.d.ts +27 -0
  50. package/dist/components/InputGroup.vue.d.ts +17 -0
  51. package/dist/components/LabeledCheckbox.vue.d.ts +20 -0
  52. package/dist/components/LabeledFieldset.vue.d.ts +21 -0
  53. package/dist/components/LoadingSpinner.vue.d.ts +2 -0
  54. package/dist/components/ModalBox.vue.d.ts +27 -0
  55. package/dist/components/PopupBox.vue.d.ts +30 -0
  56. package/dist/components/RadioButtons.vue.d.ts +20 -0
  57. package/dist/components/SelectBox.vue.d.ts +37 -0
  58. package/dist/components/SlideDownUi.vue.d.ts +37 -0
  59. package/dist/components/TabUI.vue.d.ts +52 -0
  60. package/dist/components/TextArea.vue.d.ts +33 -0
  61. package/dist/components/TextBox.vue.d.ts +44 -0
  62. package/dist/components/TextButton.vue.d.ts +10 -0
  63. package/dist/components/ToggleButton.vue.d.ts +23 -0
  64. package/dist/const/index.d.ts +1 -0
  65. package/dist/const/list-theme.d.ts +62 -0
  66. package/dist/index.d.ts +43 -0
  67. package/dist/index.js +3518 -0
  68. package/dist/scripts/form-validation-manager.d.ts +30 -0
  69. package/dist/scripts/unique-id.d.ts +1 -0
  70. package/dist/scripts/use-click-outside.d.ts +13 -0
  71. package/dist/scripts/utils.d.ts +15 -0
  72. package/dist/style.css +1 -0
  73. package/dist/types/index.d.ts +48 -77
  74. package/package.json +16 -8
  75. package/dist/assets/scss/functions.scss +0 -6
  76. package/dist/assets/scss/mixin.scss +0 -33
  77. package/dist/components/ArticleList/Card/Artistic.vue +0 -311
  78. package/dist/components/ArticleList/Card/Entertainment.vue +0 -245
  79. package/dist/components/ArticleList/Card/Gallery.vue +0 -255
  80. package/dist/components/ArticleList/Card/Grid.vue +0 -248
  81. package/dist/components/ArticleList/Card/News.vue +0 -151
  82. package/dist/components/ArticleList/Card/Rounded.vue +0 -155
  83. package/dist/components/ArticleList/Card/Row.vue +0 -168
  84. package/dist/components/ArticleList/Card/Simple.vue +0 -233
  85. package/dist/components/ArticleList/Card/Standard.vue +0 -188
  86. package/dist/components/ArticleList/Card/Tile.vue +0 -172
  87. package/dist/components/ArticleList/GenericArticleList.vue +0 -143
  88. package/dist/components/ArticleList/List/Artistic.vue +0 -24
  89. package/dist/components/ArticleList/List/Entertainment.vue +0 -24
  90. package/dist/components/ArticleList/List/Gallery.vue +0 -24
  91. package/dist/components/ArticleList/List/Grid.vue +0 -216
  92. package/dist/components/ArticleList/List/News.vue +0 -24
  93. package/dist/components/ArticleList/List/Rounded.vue +0 -24
  94. package/dist/components/ArticleList/List/Row.vue +0 -24
  95. package/dist/components/ArticleList/List/Simple.vue +0 -24
  96. package/dist/components/ArticleList/List/Standard.vue +0 -24
  97. package/dist/components/ArticleList/List/Tile.vue +0 -24
  98. package/dist/components/ArticleList/Parts/AuthorInfo.vue +0 -100
  99. package/dist/components/ArticleList/Parts/CardContainer.vue +0 -23
  100. package/dist/components/ArticleList/Parts/CardHeading.vue +0 -43
  101. package/dist/components/ArticleList/Parts/CategoryList.vue +0 -41
  102. package/dist/components/ArticleList/Parts/ExcerptText.vue +0 -43
  103. package/dist/components/ArticleList/Parts/MetadataList.vue +0 -120
  104. package/dist/components/ArticleList/Parts/NoImage.vue +0 -36
  105. package/dist/components/ArticleList/Parts/PostedDate.vue +0 -41
  106. package/dist/components/ArticleList/Parts/TagList.vue +0 -41
  107. package/dist/components/ArticleList/Parts/ThumbnailImage.vue +0 -85
  108. package/dist/components/BasicButton.vue +0 -143
  109. package/dist/components/CheckBox.vue +0 -140
  110. package/dist/components/CheckBoxes.vue +0 -101
  111. package/dist/components/CheckButton.vue +0 -127
  112. package/dist/components/DatePicker.vue +0 -234
  113. package/dist/components/DateRangePicker.vue +0 -85
  114. package/dist/components/DateSelector.vue +0 -273
  115. package/dist/components/DropdownUi.vue +0 -118
  116. package/dist/components/ErrorMessage.vue +0 -61
  117. package/dist/components/Icon/CalendarIcon.vue +0 -8
  118. package/dist/components/Icon/CheckIcon.vue +0 -8
  119. package/dist/components/Icon/CloseIcon.vue +0 -8
  120. package/dist/components/Icon/Folder.vue +0 -8
  121. package/dist/components/Icon/Image.vue +0 -14
  122. package/dist/components/Icon/KeyboardArrowDownIcon.vue +0 -8
  123. package/dist/components/Icon/Tag.vue +0 -8
  124. package/dist/components/InputBox.vue +0 -134
  125. package/dist/components/InputGroup.vue +0 -41
  126. package/dist/components/LabeledCheckbox.vue +0 -82
  127. package/dist/components/LabeledFieldset.vue +0 -41
  128. package/dist/components/LoadingSpinner.vue +0 -56
  129. package/dist/components/ModalBox.vue +0 -192
  130. package/dist/components/PopupBox.vue +0 -93
  131. package/dist/components/RadioButtons.vue +0 -163
  132. package/dist/components/SelectBox.vue +0 -166
  133. package/dist/components/SlideDownUi.vue +0 -123
  134. package/dist/components/TabUI.vue +0 -123
  135. package/dist/components/TextArea.vue +0 -115
  136. package/dist/components/TextBox.vue +0 -111
  137. package/dist/components/TextButton.vue +0 -47
  138. package/dist/components/ToggleButton.vue +0 -179
  139. package/dist/const/index.ts +0 -2
  140. package/dist/const/list-theme.ts +0 -62
  141. package/dist/index.ts +0 -126
  142. package/dist/scripts/form-validation-manager.ts +0 -63
  143. package/dist/scripts/utils.ts +0 -44
  144. package/dist/types/custom.d.ts +0 -1
  145. package/dist/types/vue-shim.d.ts +0 -5
package/dist/index.js ADDED
@@ -0,0 +1,3518 @@
1
+ var Ke = Object.defineProperty;
2
+ var Xe = (e, t, s) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var se = (e, t, s) => Xe(e, typeof t != "symbol" ? t + "" : t, s);
4
+ import { defineComponent as w, ref as V, computed as M, onMounted as K, onUnmounted as qe, watch as B, openBlock as n, createElementBlock as $, normalizeClass as l, normalizeStyle as I, renderSlot as N, withDirectives as P, unref as z, Fragment as T, renderList as E, toDisplayString as R, vShow as ce, createBlock as f, withCtx as L, createElementVNode as v, vModelDynamic as Be, createVNode as k, vModelText as ne, nextTick as Ue, createStaticVNode as Je, createCommentVNode as p, vModelSelect as Qe, withModifiers as ae, vModelCheckbox as ue, vModelRadio as et, reactive as tt, onBeforeUnmount as le, createTextVNode as Te, watchEffect as at, onUpdated as Re, Teleport as lt, resolveDynamicComponent as Le, shallowRef as st, onScopeDispose as ot } from "vue";
5
+ import { INPUT_BOX_DEFAULT_STYLES as nt, COLOR as C, convertFullWidthToHalfWidth as rt, isEmptyValue as ee, validateInputValue as Pe, MESSAGES as re, validateDateObject as it, splitDate as Ee, composeDateValue as ct, formatDateValue as ut, daysInMonth as dt, createFormValidationStore as mt } from "@geckou/ui-core";
6
+ import { parseISO as yt, format as gt } from "date-fns";
7
+ const ht = /* @__PURE__ */ w({
8
+ __name: "InputBox",
9
+ props: {
10
+ cssStyle: {},
11
+ isErrored: { type: Boolean },
12
+ isDisabled: { type: Boolean }
13
+ },
14
+ setup(e) {
15
+ const t = e, s = V(null), a = M(() => ({
16
+ ...nt,
17
+ ...t.cssStyle ?? {}
18
+ })), o = M(
19
+ () => a.value[c.value] ?? a.value.default
20
+ ), c = V("default"), u = (d) => d ? d.matches(":disabled") ? c.value = "disabled" : d.matches(":focus") ? c.value = "focus" : d.tagName.toLowerCase() === "select" ? c.value = d.required && !d.value ? "error" : "valid" : t.isErrored || d.matches(":invalid") ? c.value = "error" : d.matches(":valid") && d.matches(":not(:placeholder-shown)") && d.matches(":not(:invalid)") ? c.value = "valid" : c.value = "default" : c.value = "default", m = () => {
21
+ var g;
22
+ const d = (g = s.value) == null ? void 0 : g.querySelector("input, textarea, select");
23
+ u(d);
24
+ };
25
+ return K(() => {
26
+ if (!s.value)
27
+ return;
28
+ new MutationObserver(m).observe(s.value, { childList: !0, subtree: !0 }), s.value.addEventListener("focusin", m, !0), s.value.addEventListener("blur", m, !0);
29
+ }), qe(() => {
30
+ s.value && (s.value.removeEventListener("focusin", m, !0), s.value.removeEventListener("blur", m, !0));
31
+ }), B(
32
+ () => t.isDisabled,
33
+ () => c.value = t.isDisabled ? "disabled" : "default",
34
+ { immediate: !0 }
35
+ ), B(
36
+ () => t.isErrored,
37
+ () => {
38
+ t.isDisabled || m();
39
+ }
40
+ ), (d, g) => {
41
+ var h, b, x;
42
+ return n(), $("div", {
43
+ ref_key: "inputBox",
44
+ ref: s,
45
+ class: l(d.$style.input_box),
46
+ style: I({
47
+ "--text-color": o.value.textColor,
48
+ "--placeholder-color": o.value.placeholderColor,
49
+ "--background-color": o.value.backgroundColor,
50
+ "--border-style": `0 0 0 ${((h = o.value.border) == null ? void 0 : h.size) || "1px"} ${(b = o.value.border) == null ? void 0 : b.color} inset`,
51
+ "--radius-size": ((x = o.value.border) == null ? void 0 : x.radius) || ".25rem",
52
+ "--box-shadow": o.value.boxShadow || "0 0 0 0 rgba(0, 0, 0, 0)"
53
+ })
54
+ }, [
55
+ N(d.$slots, "default")
56
+ ], 6);
57
+ };
58
+ }
59
+ }), bt = "_input_box_4lok0_1", $t = {
60
+ input_box: bt
61
+ }, S = (e, t) => {
62
+ const s = e.__vccOpts || e;
63
+ for (const [a, o] of t)
64
+ s[a] = o;
65
+ return s;
66
+ }, ft = {
67
+ $style: $t
68
+ }, te = /* @__PURE__ */ S(ht, [["__cssModules", ft]]), vt = /* @__PURE__ */ w({
69
+ __name: "ErrorMessage",
70
+ props: {
71
+ cssStyle: {},
72
+ errorMessages: {}
73
+ },
74
+ setup(e) {
75
+ const { red: t } = C;
76
+ return (s, a) => {
77
+ var o, c;
78
+ return P((n(), $("div", {
79
+ class: l(s.$style.error_messages),
80
+ style: I({
81
+ "--error-text-color": ((o = e.cssStyle) == null ? void 0 : o.textColor) || "#fff",
82
+ "--error-background-color": ((c = e.cssStyle) == null ? void 0 : c.backgroundColor) || z(t)
83
+ })
84
+ }, [
85
+ (n(!0), $(T, null, E(e.errorMessages, (u) => (n(), $("span", { key: u }, R(u), 1))), 128))
86
+ ], 6)), [
87
+ [ce, e.errorMessages && e.errorMessages.length]
88
+ ]);
89
+ };
90
+ }
91
+ }), kt = "_error_messages_basoi_1", pt = {
92
+ error_messages: kt
93
+ }, _t = {
94
+ $style: pt
95
+ }, X = /* @__PURE__ */ S(vt, [["__cssModules", _t]]), xt = ["type", "name", "required", "placeholder", "disabled", "autocomplete", "maxlength", "aria-invalid"], wt = /* @__PURE__ */ w({
96
+ __name: "TextBox",
97
+ props: {
98
+ name: {},
99
+ modelValue: { default: void 0 },
100
+ cssStyle: { default: void 0 },
101
+ inputType: { default: "text" },
102
+ placeholder: { default: "入力してください" },
103
+ isDisabled: { type: Boolean },
104
+ isRequired: { type: Boolean },
105
+ maxLength: { default: 30 },
106
+ autocomplete: { default: "off" },
107
+ validates: { default: () => [] }
108
+ },
109
+ emits: ["update:modelValue"],
110
+ setup(e, { emit: t }) {
111
+ const s = t, a = e, o = V([]), c = M({
112
+ get: () => a.modelValue ?? "",
113
+ set: (m) => {
114
+ const d = typeof m == "number" ? m : rt(String(m));
115
+ s("update:modelValue", d);
116
+ }
117
+ }), u = () => {
118
+ o.value = Pe(c.value, {
119
+ isRequired: a.isRequired,
120
+ validates: a.validates
121
+ });
122
+ };
123
+ return B(c, () => u(), {
124
+ immediate: !ee(a.modelValue),
125
+ flush: "post"
126
+ }), (m, d) => (n(), f(te, {
127
+ cssStyle: e.cssStyle,
128
+ class: l(m.$style.text_box),
129
+ isErrored: !!o.value.length,
130
+ isDisabled: e.isDisabled
131
+ }, {
132
+ default: L(() => {
133
+ var g, h, b, x;
134
+ return [
135
+ N(m.$slots, "before"),
136
+ P(v("input", {
137
+ "onUpdate:modelValue": d[0] || (d[0] = (D) => c.value = D),
138
+ type: e.inputType,
139
+ name: e.name,
140
+ required: e.isRequired,
141
+ placeholder: e.placeholder,
142
+ disabled: e.isDisabled,
143
+ autocomplete: e.autocomplete,
144
+ maxlength: e.maxLength,
145
+ "aria-invalid": o.value.length ? "true" : void 0,
146
+ onBlur: d[1] || (d[1] = (D) => u())
147
+ }, null, 40, xt), [
148
+ [Be, c.value]
149
+ ]),
150
+ N(m.$slots, "after"),
151
+ k(X, {
152
+ errorMessages: o.value,
153
+ cssStyle: {
154
+ textColor: (h = (g = e.cssStyle) == null ? void 0 : g.error) == null ? void 0 : h.backgroundColor,
155
+ backgroundColor: (x = (b = e.cssStyle) == null ? void 0 : b.error) == null ? void 0 : x.textColor
156
+ }
157
+ }, null, 8, ["errorMessages", "cssStyle"])
158
+ ];
159
+ }),
160
+ _: 3
161
+ }, 8, ["cssStyle", "class", "isErrored", "isDisabled"]));
162
+ }
163
+ }), St = "_text_box_dqty_1", Dt = {
164
+ text_box: St
165
+ }, Mt = {
166
+ $style: Dt
167
+ }, Ct = /* @__PURE__ */ S(wt, [["__cssModules", Mt]]), zt = ["name", "required", "placeholder", "disabled", "autocomplete", "rows", "maxlength", "aria-invalid"], Vt = /* @__PURE__ */ w({
168
+ __name: "TextArea",
169
+ props: {
170
+ name: {},
171
+ modelValue: { default: void 0 },
172
+ cssStyle: { default: void 0 },
173
+ placeholder: { default: "入力してください" },
174
+ isDisabled: { type: Boolean, default: !1 },
175
+ isRequired: { type: Boolean, default: !1 },
176
+ rows: { default: void 0 },
177
+ maxLength: { default: 100 },
178
+ autocomplete: { default: "off" },
179
+ validates: { default: () => [] },
180
+ autoAdjustHeight: { type: Boolean }
181
+ },
182
+ emits: ["update:modelValue"],
183
+ setup(e, { emit: t }) {
184
+ const s = t, a = e, o = M({
185
+ get: () => a.modelValue ?? "",
186
+ set: (g) => s("update:modelValue", g)
187
+ }), c = V([]), u = V(null), m = () => {
188
+ c.value = Pe(o.value, {
189
+ isRequired: a.isRequired,
190
+ validates: a.validates
191
+ });
192
+ }, d = () => {
193
+ a.autoAdjustHeight && Ue(() => {
194
+ u.value && (u.value.style.height = "auto", u.value.style.height = `calc(${u.value.scrollHeight}px - 2rem)`);
195
+ });
196
+ };
197
+ return K(d), B(
198
+ o,
199
+ () => {
200
+ m(), d();
201
+ },
202
+ // 数値 0 も初期値として扱うため truthy 判定は使わない
203
+ { immediate: !ee(a.modelValue), flush: "post" }
204
+ ), (g, h) => (n(), f(te, {
205
+ cssStyle: e.cssStyle,
206
+ class: l(g.$style.text_area),
207
+ isErrored: !!c.value.length,
208
+ isDisabled: e.isDisabled
209
+ }, {
210
+ default: L(() => {
211
+ var b, x, D, r;
212
+ return [
213
+ P(v("textarea", {
214
+ ref_key: "textareaRef",
215
+ ref: u,
216
+ "onUpdate:modelValue": h[0] || (h[0] = (i) => o.value = i),
217
+ name: e.name,
218
+ required: e.isRequired,
219
+ placeholder: e.placeholder,
220
+ disabled: e.isDisabled,
221
+ autocomplete: e.autocomplete,
222
+ rows: e.rows,
223
+ maxlength: e.maxLength,
224
+ "aria-invalid": c.value.length ? "true" : void 0,
225
+ onBlur: h[1] || (h[1] = (i) => m())
226
+ }, null, 40, zt), [
227
+ [ne, o.value]
228
+ ]),
229
+ k(X, {
230
+ errorMessages: c.value,
231
+ cssStyle: {
232
+ textColor: (x = (b = e.cssStyle) == null ? void 0 : b.error) == null ? void 0 : x.backgroundColor,
233
+ backgroundColor: (r = (D = e.cssStyle) == null ? void 0 : D.error) == null ? void 0 : r.textColor
234
+ }
235
+ }, null, 8, ["errorMessages", "cssStyle"])
236
+ ];
237
+ }),
238
+ _: 1
239
+ }, 8, ["cssStyle", "class", "isErrored", "isDisabled"]));
240
+ }
241
+ }), It = "_text_area_1f3te_2", Nt = {
242
+ text_area: It
243
+ }, qt = {
244
+ $style: Nt
245
+ }, Bt = /* @__PURE__ */ S(Vt, [["__cssModules", qt]]), Ut = {}, Tt = {
246
+ viewBox: "0 0 24 24",
247
+ xmlns: "http://www.w3.org/2000/svg"
248
+ };
249
+ function Rt(e, t) {
250
+ return n(), $("svg", Tt, [...t[0] || (t[0] = [
251
+ Je('<g><circle cx="12" cy="2.5" r="1.5" opacity=".14"></circle><circle cx="16.75" cy="3.77" r="1.5" opacity=".29"></circle><circle cx="20.23" cy="7.25" r="1.5" opacity=".43"></circle><circle cx="21.50" cy="12.00" r="1.5" opacity=".57"></circle><circle cx="20.23" cy="16.75" r="1.5" opacity=".71"></circle><circle cx="16.75" cy="20.23" r="1.5" opacity=".86"></circle><circle cx="12" cy="21.5" r="1.5"></circle><animateTransform attributeName="transform" type="rotate" calcMode="discrete" dur="0.75s" values="0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12" repeatCount="indefinite"></animateTransform></g>', 1)
252
+ ])]);
253
+ }
254
+ const Ae = /* @__PURE__ */ S(Ut, [["render", Rt]]), Lt = ["type", "disabled"], Pt = /* @__PURE__ */ w({
255
+ __name: "BasicButton",
256
+ props: {
257
+ cssStyle: {},
258
+ duration: {},
259
+ isLoading: { type: Boolean },
260
+ isDisabled: { type: Boolean },
261
+ buttonType: {}
262
+ },
263
+ setup(e) {
264
+ var o;
265
+ const t = e, s = M(() => {
266
+ var u, m;
267
+ const c = t.isDisabled ? (u = t.cssStyle) == null ? void 0 : u.disabled : (m = t.cssStyle) == null ? void 0 : m.default;
268
+ return {
269
+ textColor: C.white,
270
+ backgroundColor: t.isDisabled ? C.darkGray : C.blue,
271
+ backgroundImage: "none",
272
+ border: {
273
+ color: t.isDisabled ? C.darkGray : C.blue,
274
+ size: "1px",
275
+ radius: ".25rem"
276
+ },
277
+ boxShadow: "0 0 0 0 transparent",
278
+ ...c
279
+ };
280
+ }), a = ((o = t.cssStyle) == null ? void 0 : o.hover) || {};
281
+ return (c, u) => {
282
+ var m, d, g, h, b, x, D, r, i, y, _, U, J, me, ye, ge, he, be, $e, fe, ve, ke, pe, _e, xe, we, Se, De, Me, Ce, ze;
283
+ return n(), $("button", {
284
+ class: l([c.$style.button, { [c.$style.loading]: e.isLoading }]),
285
+ style: I({
286
+ "--text-color": (m = s.value) == null ? void 0 : m.textColor,
287
+ "--background-color": (d = s.value) == null ? void 0 : d.backgroundColor,
288
+ "--background-image": (g = s.value) == null ? void 0 : g.backgroundImage,
289
+ "--border-color": (b = (h = s.value) == null ? void 0 : h.border) == null ? void 0 : b.color,
290
+ "--border-size": (D = (x = s.value) == null ? void 0 : x.border) == null ? void 0 : D.size,
291
+ "--radius-size": (i = (r = s.value) == null ? void 0 : r.border) == null ? void 0 : i.radius,
292
+ "--box-shadow": (y = s.value) == null ? void 0 : y.boxShadow,
293
+ "--hover-text-color": ((_ = z(a)) == null ? void 0 : _.textColor) || ((U = s.value) == null ? void 0 : U.textColor),
294
+ "--hover-background-color": ((J = z(a)) == null ? void 0 : J.backgroundColor) || ((me = s.value) == null ? void 0 : me.backgroundColor) && `${(ye = s.value) == null ? void 0 : ye.backgroundColor}cc`,
295
+ "--hover-background-image": ((ge = z(a)) == null ? void 0 : ge.backgroundImage) || ((he = s.value) == null ? void 0 : he.backgroundImage),
296
+ "--hover-border-color": (($e = (be = z(a)) == null ? void 0 : be.border) == null ? void 0 : $e.color) || ((ve = (fe = s.value) == null ? void 0 : fe.border) == null ? void 0 : ve.color),
297
+ "--hover-border-size": ((pe = (ke = z(a)) == null ? void 0 : ke.border) == null ? void 0 : pe.size) || ((xe = (_e = s.value) == null ? void 0 : _e.border) == null ? void 0 : xe.size),
298
+ "--hover-radius-size": ((Se = (we = z(a)) == null ? void 0 : we.border) == null ? void 0 : Se.radius) || ((Me = (De = s.value) == null ? void 0 : De.border) == null ? void 0 : Me.radius),
299
+ "--hover-box-shadow": ((Ce = z(a)) == null ? void 0 : Ce.boxShadow) || ((ze = s.value) == null ? void 0 : ze.boxShadow),
300
+ "--duration": `${e.duration || 0.3}s`
301
+ }),
302
+ type: e.buttonType || "button",
303
+ disabled: e.isDisabled || e.isLoading
304
+ }, [
305
+ P(v("div", {
306
+ class: l(c.$style.loading_animation)
307
+ }, [
308
+ c.$slots.loading ? N(c.$slots, "loading", {}, void 0, void 0, 0) : (n(), f(Ae, { key: 1 }))
309
+ ], 2), [
310
+ [ce, e.isLoading]
311
+ ]),
312
+ v("div", null, [
313
+ N(c.$slots, "default")
314
+ ])
315
+ ], 14, Lt);
316
+ };
317
+ }
318
+ }), Et = "_button_pz98w_1", At = "_loading_pz98w_25", Gt = "_loading_animation_pz98w_35", jt = {
319
+ button: Et,
320
+ loading: At,
321
+ loading_animation: Gt
322
+ }, Ht = {
323
+ $style: jt
324
+ }, Wt = /* @__PURE__ */ S(Pt, [["__cssModules", Ht]]), Ot = {}, Ft = {
325
+ xmlns: "http://www.w3.org/2000/svg",
326
+ viewBox: "0 -960 960 960"
327
+ };
328
+ function Zt(e, t) {
329
+ return n(), $("svg", Ft, [...t[0] || (t[0] = [
330
+ v("path", { d: "M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z" }, null, -1)
331
+ ])]);
332
+ }
333
+ const Q = /* @__PURE__ */ S(Ot, [["render", Zt]]), Yt = ["disabled", "required"], Kt = {
334
+ key: 0,
335
+ value: ""
336
+ }, Xt = {
337
+ key: 1,
338
+ disabled: "",
339
+ selected: "",
340
+ value: ""
341
+ }, Jt = ["value"], Qt = ["value", "disabled"], ea = ["label"], ta = ["value", "disabled"], aa = /* @__PURE__ */ w({
342
+ __name: "SelectBox",
343
+ props: {
344
+ options: {},
345
+ name: {},
346
+ modelValue: { default: void 0 },
347
+ cssStyle: { default: void 0 },
348
+ placeholder: { default: "選択してください" },
349
+ canOmitSelect: { type: Boolean },
350
+ isDisabled: { type: Boolean },
351
+ isRequired: { type: Boolean }
352
+ },
353
+ emits: ["update:modelValue"],
354
+ setup(e, { emit: t }) {
355
+ const s = t, a = e, o = V([]), c = M({
356
+ get: () => a.modelValue ?? "",
357
+ set: (d) => s("update:modelValue", d)
358
+ }), u = (d) => typeof d == "object" && d !== null && "label" in d && typeof d.label == "string" && "value" in d, m = () => {
359
+ o.value = [], ee(c.value) && a.isRequired && o.value.push(re.required);
360
+ };
361
+ return B(
362
+ () => c.value,
363
+ () => m(),
364
+ { immediate: !ee(a.modelValue), flush: "post" }
365
+ ), (d, g) => (n(), f(te, {
366
+ cssStyle: e.cssStyle,
367
+ class: l(d.$style.select_box),
368
+ isDisabled: e.isDisabled
369
+ }, {
370
+ default: L(() => {
371
+ var h, b, x, D;
372
+ return [
373
+ P(v("select", {
374
+ "onUpdate:modelValue": g[0] || (g[0] = (r) => c.value = r),
375
+ disabled: e.isDisabled,
376
+ required: e.isRequired,
377
+ class: l(d.$style.select),
378
+ onBlur: g[1] || (g[1] = (r) => m())
379
+ }, [
380
+ e.canOmitSelect ? (n(), $("option", Kt, R(e.placeholder || "選択しない"), 1)) : (n(), $("option", Xt, R(e.placeholder || "選択してください"), 1)),
381
+ ["0", "NA"].includes(c.value.toString()) && e.isDisabled ? (n(), $("option", {
382
+ key: 2,
383
+ disabled: "",
384
+ selected: "",
385
+ value: c.value
386
+ }, R(e.placeholder || "選択してください"), 9, Jt)) : p("", !0),
387
+ (n(!0), $(T, null, E(e.options, (r) => (n(), $(T, {
388
+ key: u(r) ? r.value : Object.keys(r)[0]
389
+ }, [
390
+ u(r) ? (n(), $("option", {
391
+ key: 0,
392
+ value: r.value,
393
+ disabled: r.isDisabled
394
+ }, R(r.label), 9, Qt)) : (n(), $(T, { key: 1 }, [
395
+ (n(!0), $(T, null, E(r, (i, y) => (n(), $("optgroup", {
396
+ key: y,
397
+ label: y
398
+ }, [
399
+ (n(!0), $(T, null, E(i, (_) => (n(), $("option", {
400
+ key: _.value,
401
+ value: _.value,
402
+ disabled: _.isDisabled
403
+ }, R(_.label), 9, ta))), 128))
404
+ ], 8, ea))), 128)),
405
+ g[2] || (g[2] = v("hr", null, null, -1))
406
+ ], 64))
407
+ ], 64))), 128))
408
+ ], 42, Yt), [
409
+ [Qe, c.value]
410
+ ]),
411
+ v("div", {
412
+ class: l(d.$style.arrow_container)
413
+ }, [
414
+ N(d.$slots, "arrow"),
415
+ d.$slots.arrow ? p("", !0) : (n(), f(Q, {
416
+ key: 0,
417
+ class: l(d.$style.arrow)
418
+ }, null, 8, ["class"]))
419
+ ], 2),
420
+ k(X, {
421
+ errorMessages: o.value,
422
+ cssStyle: {
423
+ textColor: (b = (h = e.cssStyle) == null ? void 0 : h.error) == null ? void 0 : b.backgroundColor,
424
+ backgroundColor: (D = (x = e.cssStyle) == null ? void 0 : x.error) == null ? void 0 : D.textColor
425
+ }
426
+ }, null, 8, ["errorMessages", "cssStyle"])
427
+ ];
428
+ }),
429
+ _: 3
430
+ }, 8, ["cssStyle", "class", "isDisabled"]));
431
+ }
432
+ }), la = "_select_box_pnpdo_1", sa = "_arrow_container_pnpdo_10", oa = {
433
+ select_box: la,
434
+ arrow_container: sa
435
+ }, na = {
436
+ $style: oa
437
+ }, ra = /* @__PURE__ */ S(aa, [["__cssModules", na]]), ia = {}, ca = {
438
+ xmlns: "http://www.w3.org/2000/svg",
439
+ viewBox: "0 -960 960 960"
440
+ };
441
+ function ua(e, t) {
442
+ return n(), $("svg", ca, [...t[0] || (t[0] = [
443
+ v("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" }, null, -1)
444
+ ])]);
445
+ }
446
+ const Ge = /* @__PURE__ */ S(ia, [["render", ua]]), da = ["name", "value", "disabled"], ma = /* @__PURE__ */ w({
447
+ __name: "CheckBox",
448
+ props: {
449
+ name: {},
450
+ value: { default: void 0 },
451
+ modelValue: { type: Boolean },
452
+ isDisabled: { type: Boolean },
453
+ cssStyle: { default: void 0 },
454
+ isDisableAnimation: { type: Boolean }
455
+ },
456
+ emits: ["update:modelValue"],
457
+ setup(e, { emit: t }) {
458
+ const s = t, a = e, o = M({
459
+ get: () => a.modelValue ?? !1,
460
+ set: (u) => s("update:modelValue", u)
461
+ }), c = M(() => {
462
+ var m, d;
463
+ const u = a.isDisabled ? (m = a.cssStyle) == null ? void 0 : m.disabled : (d = a.cssStyle) == null ? void 0 : d.default;
464
+ return {
465
+ textColor: a.isDisabled ? C.darkGray : C.blue,
466
+ backgroundColor: a.isDisabled ? C.lightGray : C.white,
467
+ border: {
468
+ color: a.isDisabled ? C.darkGray : C.blue,
469
+ size: "1px",
470
+ radius: ".25rem"
471
+ },
472
+ ...u
473
+ };
474
+ });
475
+ return (u, m) => {
476
+ var d, g, h, b, x, D, r, i;
477
+ return n(), $("button", {
478
+ class: l(u.$style.check_box),
479
+ style: I({
480
+ "--text-color": (d = c.value) == null ? void 0 : d.textColor,
481
+ "--border-color": (h = (g = c.value) == null ? void 0 : g.border) == null ? void 0 : h.color,
482
+ "--border-size": (x = (b = c.value) == null ? void 0 : b.border) == null ? void 0 : x.size,
483
+ "--radius-size": (r = (D = c.value) == null ? void 0 : D.border) == null ? void 0 : r.radius,
484
+ "--background-color": (i = c.value) == null ? void 0 : i.backgroundColor,
485
+ "--duration": e.isDisableAnimation ? "0s" : ".3s"
486
+ }),
487
+ type: "button",
488
+ onClick: m[1] || (m[1] = ae((y) => e.isDisabled ? null : o.value = !o.value, ["stop"]))
489
+ }, [
490
+ P(v("input", {
491
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => o.value = y),
492
+ type: "checkbox",
493
+ name: e.name,
494
+ value: e.value,
495
+ disabled: e.isDisabled
496
+ }, null, 8, da), [
497
+ [ue, o.value]
498
+ ]),
499
+ v("div", {
500
+ class: l(u.$style.check_container)
501
+ }, [
502
+ N(u.$slots, "check"),
503
+ u.$slots.check ? p("", !0) : (n(), f(Ge, { key: 0 }))
504
+ ], 2)
505
+ ], 6);
506
+ };
507
+ }
508
+ }), ya = "_check_box_1956i_15", ga = "_pop_1956i_1", ha = "_check_container_1956i_53", ba = {
509
+ check_box: ya,
510
+ pop: ga,
511
+ check_container: ha
512
+ }, $a = {
513
+ $style: ba
514
+ }, je = /* @__PURE__ */ S(ma, [["__cssModules", $a]]), fa = /* @__PURE__ */ w({
515
+ __name: "LabeledCheckbox",
516
+ props: {
517
+ name: {},
518
+ label: {},
519
+ value: { default: void 0 },
520
+ modelValue: { type: Boolean },
521
+ isDisabled: { type: Boolean },
522
+ cssStyle: { default: void 0 },
523
+ isDisableAnimation: { type: Boolean }
524
+ },
525
+ emits: ["update:modelValue"],
526
+ setup(e, { emit: t }) {
527
+ const s = t, a = e, o = M({
528
+ get: () => a.modelValue ?? !1,
529
+ set: (u) => s("update:modelValue", u)
530
+ }), c = M(() => {
531
+ var m, d;
532
+ const u = a.isDisabled ? (m = a.cssStyle) == null ? void 0 : m.disabled : (d = a.cssStyle) == null ? void 0 : d.default;
533
+ return {
534
+ textColor: a.isDisabled ? C.darkGray : C.black,
535
+ backgroundColor: a.isDisabled ? C.darkGray : C.blue,
536
+ ...u ?? {}
537
+ };
538
+ });
539
+ return (u, m) => {
540
+ var d, g;
541
+ return n(), $("label", {
542
+ class: l(u.$style.labeled_check_box)
543
+ }, [
544
+ k(je, {
545
+ modelValue: o.value,
546
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => o.value = h),
547
+ name: e.name,
548
+ value: e.value,
549
+ isDisabled: e.isDisabled,
550
+ cssStyle: e.cssStyle,
551
+ isDisableAnimation: e.isDisableAnimation,
552
+ style: { "pointer-events": "none" }
553
+ }, null, 8, ["modelValue", "name", "value", "isDisabled", "cssStyle", "isDisableAnimation"]),
554
+ v("span", {
555
+ class: l(u.$style.label),
556
+ style: I({
557
+ "--text-color": (d = c.value) == null ? void 0 : d.textColor,
558
+ "--checked-color": (g = c.value) == null ? void 0 : g.backgroundColor
559
+ })
560
+ }, R(e.label), 7)
561
+ ], 2);
562
+ };
563
+ }
564
+ }), va = "_labeled_check_box_ck3yh_1", ka = "_label_ck3yh_1", pa = {
565
+ labeled_check_box: va,
566
+ label: ka
567
+ }, _a = {
568
+ $style: pa
569
+ }, He = /* @__PURE__ */ S(fa, [["__cssModules", _a]]), xa = /* @__PURE__ */ w({
570
+ __name: "CheckBoxes",
571
+ props: {
572
+ name: {},
573
+ options: {},
574
+ modelValue: { default: void 0 },
575
+ isDisabled: { type: Boolean },
576
+ isRequired: { type: Boolean },
577
+ cssStyle: { default: void 0 }
578
+ },
579
+ emits: ["update:modelValue"],
580
+ setup(e, { emit: t }) {
581
+ var g, h;
582
+ const s = t, a = e, o = V(
583
+ a.options.map((b) => {
584
+ var x;
585
+ return {
586
+ value: b.value,
587
+ label: b.label,
588
+ checked: ((x = a.modelValue) == null ? void 0 : x.includes(b.value)) || !1
589
+ };
590
+ })
591
+ ), c = M(
592
+ () => o.value.filter((b) => b.checked).map((b) => b.value)
593
+ ), u = V(""), m = () => u.value = a.isRequired && c.value.length === 0 ? re.required : "";
594
+ B(
595
+ c,
596
+ (b, x) => {
597
+ x && ((r, i) => r.length === i.length && r.every((y, _) => y === i[_]))(b, x) || (m(), s("update:modelValue", b));
598
+ },
599
+ {
600
+ deep: !0,
601
+ immediate: !!((g = a.modelValue) != null && g.length)
602
+ }
603
+ ), B(
604
+ () => a.modelValue,
605
+ (b) => {
606
+ b && o.value.forEach(
607
+ (x) => x.checked = b.includes(x.value)
608
+ );
609
+ },
610
+ {
611
+ deep: !0,
612
+ immediate: !0
613
+ }
614
+ );
615
+ const d = {
616
+ ...((h = a.cssStyle) == null ? void 0 : h.error) ?? {},
617
+ textColor: C.white,
618
+ backgroundColor: C.red,
619
+ border: {
620
+ color: C.red,
621
+ size: "1px",
622
+ radius: ".25rem"
623
+ }
624
+ };
625
+ return (b, x) => (n(), $("div", {
626
+ class: l(b.$style.check_boxes)
627
+ }, [
628
+ (n(!0), $(T, null, E(o.value, (D, r) => (n(), f(He, {
629
+ key: D.value,
630
+ modelValue: o.value[r].checked,
631
+ "onUpdate:modelValue": (i) => o.value[r].checked = i,
632
+ name: e.name,
633
+ value: D.value,
634
+ label: D.label,
635
+ isDisabled: a.isDisabled,
636
+ cssStyle: a.cssStyle
637
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "value", "label", "isDisabled", "cssStyle"]))), 128)),
638
+ k(X, {
639
+ errorMessages: u.value ? [u.value] : [],
640
+ cssStyle: {
641
+ textColor: d.textColor,
642
+ backgroundColor: d.backgroundColor
643
+ }
644
+ }, null, 8, ["errorMessages", "cssStyle"])
645
+ ], 2));
646
+ }
647
+ }), wa = "_check_boxes_1cn70_1", Sa = {
648
+ check_boxes: wa
649
+ }, Da = {
650
+ $style: Sa
651
+ }, Ma = /* @__PURE__ */ S(xa, [["__cssModules", Da]]), Ca = ["name", "disabled"], za = /* @__PURE__ */ w({
652
+ __name: "CheckButton",
653
+ props: {
654
+ name: {},
655
+ modelValue: { type: Boolean },
656
+ isDisabled: { type: Boolean },
657
+ cssStyle: { default: () => ({ default: {} }) },
658
+ isDisableAnimation: { type: Boolean }
659
+ },
660
+ emits: ["update:modelValue"],
661
+ setup(e, { emit: t }) {
662
+ const s = t, a = e, o = V(a.modelValue ?? !1), c = M(() => a.isDisabled ? a.cssStyle.disabled : a.cssStyle.default);
663
+ return B(
664
+ () => o.value,
665
+ (u) => s("update:modelValue", u)
666
+ ), B(
667
+ () => a.modelValue,
668
+ (u) => o.value = u,
669
+ { immediate: !0 }
670
+ ), (u, m) => {
671
+ var d, g, h, b, x, D, r;
672
+ return n(), $("label", {
673
+ class: l(u.$style.check_box),
674
+ style: I({
675
+ "--border-color": ((g = (d = c.value) == null ? void 0 : d.border) == null ? void 0 : g.color) || "blue",
676
+ "--border-size": ((b = (h = c.value) == null ? void 0 : h.border) == null ? void 0 : b.size) || "1px",
677
+ "--radius-size": ((D = (x = c.value) == null ? void 0 : x.border) == null ? void 0 : D.radius) || "0.25rem",
678
+ "--background-color": ((r = c.value) == null ? void 0 : r.backgroundColor) || "#fff",
679
+ "--duration": e.isDisableAnimation ? "0s" : ".3s"
680
+ })
681
+ }, [
682
+ P(v("input", {
683
+ "onUpdate:modelValue": m[0] || (m[0] = (i) => o.value = i),
684
+ type: "checkbox",
685
+ name: e.name,
686
+ disabled: e.isDisabled
687
+ }, null, 8, Ca), [
688
+ [ue, o.value]
689
+ ]),
690
+ v("div", {
691
+ class: l(u.$style.check_container)
692
+ }, [
693
+ N(u.$slots, "check"),
694
+ u.$slots.check ? p("", !0) : (n(), f(Ge, { key: 0 }))
695
+ ], 2)
696
+ ], 6);
697
+ };
698
+ }
699
+ }), Va = "_check_box_7lw3v_15", Ia = "_pop_7lw3v_1", Na = "_check_container_7lw3v_52", qa = {
700
+ check_box: Va,
701
+ pop: Ia,
702
+ check_container: Na
703
+ }, Ba = {
704
+ $style: qa
705
+ }, Ua = /* @__PURE__ */ S(za, [["__cssModules", Ba]]), Ta = ["disabled"], Ra = /* @__PURE__ */ w({
706
+ __name: "LabeledFieldset",
707
+ props: {
708
+ isDisabled: { type: Boolean }
709
+ },
710
+ setup(e) {
711
+ return (t, s) => (n(), $("div", {
712
+ class: l(t.$style.fieldset)
713
+ }, [
714
+ v("fieldset", { disabled: e.isDisabled }, [
715
+ t.$slots.label ? (n(), $("legend", {
716
+ key: 0,
717
+ class: l(t.$style.legend)
718
+ }, [
719
+ N(t.$slots, "label")
720
+ ], 2)) : p("", !0),
721
+ v("div", {
722
+ class: l(t.$style.input)
723
+ }, [
724
+ N(t.$slots, "default")
725
+ ], 2)
726
+ ], 8, Ta)
727
+ ], 2));
728
+ }
729
+ }), La = "_fieldset_1iro5_1", Pa = "_legend_1iro5_9", Ea = "_input_1iro5_14", Aa = {
730
+ fieldset: La,
731
+ legend: Pa,
732
+ input: Ea
733
+ }, Ga = {
734
+ $style: Aa
735
+ }, ja = /* @__PURE__ */ S(Ra, [["__cssModules", Ga]]);
736
+ let Ve = 0;
737
+ function de(e) {
738
+ return Ve += 1, `${e}_${Ve}`;
739
+ }
740
+ const Ha = ["name", "value", "disabled", "required", "checked"], Wa = /* @__PURE__ */ w({
741
+ __name: "RadioButtons",
742
+ props: {
743
+ modelValue: {},
744
+ options: {},
745
+ name: { default: void 0 },
746
+ isDisabled: { type: Boolean },
747
+ isRequired: { type: Boolean },
748
+ cssStyle: { default: void 0 },
749
+ isDisableAnimation: { type: Boolean }
750
+ },
751
+ emits: ["update:modelValue"],
752
+ setup(e, { emit: t }) {
753
+ const s = t, a = e, o = a.name ?? de("radio_group"), c = V([]), u = M({
754
+ get: () => a.modelValue ?? "",
755
+ set: (g) => s("update:modelValue", g)
756
+ }), m = M(() => {
757
+ var h, b;
758
+ const g = a.isDisabled ? (h = a.cssStyle) == null ? void 0 : h.disabled : (b = a.cssStyle) == null ? void 0 : b.default;
759
+ return {
760
+ textColor: a.isDisabled ? C.darkGray : C.black,
761
+ backgroundColor: a.isDisabled ? C.lightGray : C.white,
762
+ border: {
763
+ color: a.isDisabled ? C.darkGray : C.blue,
764
+ size: "1px"
765
+ },
766
+ ...g ?? {}
767
+ };
768
+ }), d = () => {
769
+ c.value = [], ee(u.value) && a.isRequired && c.value.push(re.required);
770
+ };
771
+ return B(
772
+ () => u.value,
773
+ () => d(),
774
+ { immediate: !ee(a.modelValue) }
775
+ ), (g, h) => (n(), $("div", {
776
+ class: l(g.$style.radios)
777
+ }, [
778
+ (n(!0), $(T, null, E(e.options, (b) => {
779
+ var x, D, r, i, y;
780
+ return n(), $("label", {
781
+ key: b.value,
782
+ class: l(g.$style.radio),
783
+ style: I({
784
+ "--border-color": (D = (x = m.value) == null ? void 0 : x.border) == null ? void 0 : D.color,
785
+ "--border-size": (i = (r = m.value) == null ? void 0 : r.border) == null ? void 0 : i.size,
786
+ "--background-color": (y = m.value) == null ? void 0 : y.backgroundColor,
787
+ "--duration": e.isDisableAnimation ? "0s" : ".3s"
788
+ })
789
+ }, [
790
+ P(v("input", {
791
+ "onUpdate:modelValue": h[0] || (h[0] = (_) => u.value = _),
792
+ type: "radio",
793
+ name: z(o),
794
+ value: b.value,
795
+ disabled: e.isDisabled,
796
+ required: e.isRequired,
797
+ checked: b.value === u.value
798
+ }, null, 8, Ha), [
799
+ [et, u.value]
800
+ ]),
801
+ v("span", null, R(b.label), 1)
802
+ ], 6);
803
+ }), 128)),
804
+ k(X, { errorMessages: c.value }, null, 8, ["errorMessages"])
805
+ ], 2));
806
+ }
807
+ }), Oa = "_radios_hh7eh_15", Fa = "_radio_hh7eh_15", Za = "_pop_hh7eh_1", Ya = {
808
+ radios: Oa,
809
+ radio: Fa,
810
+ pop: Za
811
+ }, Ka = {
812
+ $style: Ya
813
+ }, Xa = /* @__PURE__ */ S(Wa, [["__cssModules", Ka]]), Ja = ["disabled"], Qa = ["name", "disabled"], el = ["data-on", "data-off"], tl = /* @__PURE__ */ w({
814
+ __name: "ToggleButton",
815
+ props: {
816
+ name: {},
817
+ label: { default: () => ({ on: "ON", off: "OFF" }) },
818
+ modelValue: { type: Boolean },
819
+ isDisabled: { type: Boolean },
820
+ cssStyle: { default: void 0 }
821
+ },
822
+ emits: ["update:modelValue"],
823
+ setup(e, { emit: t }) {
824
+ const s = t, a = e, o = M({
825
+ get: () => a.modelValue ?? !1,
826
+ set: (m) => s("update:modelValue", m)
827
+ }), c = M(() => {
828
+ const m = a.label.on.length, d = a.label.off.length;
829
+ return m > d ? m : d;
830
+ }), u = M(() => {
831
+ var d, g;
832
+ const m = a.isDisabled ? (d = a.cssStyle) == null ? void 0 : d.disabled : (g = a.cssStyle) == null ? void 0 : g.default;
833
+ return {
834
+ on: {
835
+ textColor: a.isDisabled ? C.lightGray : C.white,
836
+ backgroundColor: a.isDisabled ? C.gray : C.blue,
837
+ border: {
838
+ color: a.isDisabled ? C.gray : C.blue,
839
+ size: "1px",
840
+ radius: ".25rem"
841
+ },
842
+ boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
843
+ ...m == null ? void 0 : m.on
844
+ },
845
+ off: {
846
+ textColor: a.isDisabled ? C.gray : C.white,
847
+ backgroundColor: a.isDisabled ? C.lightGray : C.darkGray,
848
+ border: {
849
+ color: a.isDisabled ? C.gray : C.darkGray,
850
+ size: "1px",
851
+ radius: ".25rem"
852
+ },
853
+ boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
854
+ ...m == null ? void 0 : m.off
855
+ }
856
+ }[o.value ? "on" : "off"];
857
+ });
858
+ return (m, d) => {
859
+ var g, h, b, x, D, r, i, y, _;
860
+ return n(), $("button", {
861
+ class: l(m.$style.toggle_button),
862
+ style: I({
863
+ "--text-color": (g = u.value) == null ? void 0 : g.textColor,
864
+ "--border-color": (b = (h = u.value) == null ? void 0 : h.border) == null ? void 0 : b.color,
865
+ "--border-size": (D = (x = u.value) == null ? void 0 : x.border) == null ? void 0 : D.size,
866
+ "--radius-size": (i = (r = u.value) == null ? void 0 : r.border) == null ? void 0 : i.radius,
867
+ "--background-color": (y = u.value) == null ? void 0 : y.backgroundColor,
868
+ "--box-shadow": (_ = u.value) == null ? void 0 : _.boxShadow,
869
+ "--inline-size": `${c.value * 2}ch`
870
+ }),
871
+ type: "button",
872
+ disabled: e.isDisabled,
873
+ onClick: d[1] || (d[1] = ae((U) => e.isDisabled ? null : o.value = !o.value, ["stop"]))
874
+ }, [
875
+ P(v("input", {
876
+ "onUpdate:modelValue": d[0] || (d[0] = (U) => o.value = U),
877
+ type: "checkbox",
878
+ name: e.name,
879
+ disabled: e.isDisabled
880
+ }, null, 8, Qa), [
881
+ [ue, o.value]
882
+ ]),
883
+ v("div", {
884
+ class: l([m.$style.text, { [m.$style.on]: o.value }]),
885
+ "data-on": e.label.on,
886
+ "data-off": e.label.off
887
+ }, null, 10, el),
888
+ v("div", {
889
+ class: l(m.$style.handle)
890
+ }, null, 2)
891
+ ], 14, Ja);
892
+ };
893
+ }
894
+ }), al = "_toggle_button_1phgw_1", ll = "_text_1phgw_27", sl = "_on_1phgw_56", ol = "_handle_1phgw_62", nl = {
895
+ toggle_button: al,
896
+ text: ll,
897
+ on: sl,
898
+ handle: ol
899
+ }, rl = {
900
+ $style: nl
901
+ }, il = /* @__PURE__ */ S(tl, [["__cssModules", rl]]), cl = "_input_group_7evrk_1", ul = {
902
+ input_group: cl
903
+ }, dl = {};
904
+ function ml(e, t) {
905
+ return n(), $("div", {
906
+ class: l(e.$style.input_group)
907
+ }, [
908
+ N(e.$slots, "default")
909
+ ], 2);
910
+ }
911
+ const yl = {
912
+ $style: ul
913
+ }, gl = /* @__PURE__ */ S(dl, [["render", ml], ["__cssModules", yl]]), hl = ["disabled"], bl = /* @__PURE__ */ w({
914
+ __name: "TextButton",
915
+ props: {
916
+ text: {},
917
+ variant: { default: "default" },
918
+ isDisabled: { type: Boolean, default: !1 }
919
+ },
920
+ setup(e) {
921
+ const t = e, s = M(
922
+ () => t.variant === "caution" ? C.red : "var(--link-color)"
923
+ );
924
+ return (a, o) => (n(), $("button", {
925
+ type: "button",
926
+ class: l(a.$style.text_button),
927
+ disabled: e.isDisabled,
928
+ style: I({ "--text-button-color": s.value })
929
+ }, R(e.text), 15, hl));
930
+ }
931
+ }), $l = "_text_button_awtwg_1", fl = {
932
+ text_button: $l
933
+ }, vl = {
934
+ $style: fl
935
+ }, We = /* @__PURE__ */ S(bl, [["__cssModules", vl]]), kl = {}, pl = {
936
+ xmlns: "http://www.w3.org/2000/svg",
937
+ viewBox: "0 -960 960 960"
938
+ };
939
+ function _l(e, t) {
940
+ return n(), $("svg", pl, [...t[0] || (t[0] = [
941
+ v("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" }, null, -1)
942
+ ])]);
943
+ }
944
+ const xl = /* @__PURE__ */ S(kl, [["render", _l]]), wl = ["type", "name", "max", "min", "required", "disabled"], Sl = ["aria-label", "disabled"], Dl = ["aria-label", "disabled"], Ml = { key: 0 }, Cl = ["aria-label", "disabled"], zl = /* @__PURE__ */ w({
945
+ __name: "DatePicker",
946
+ props: {
947
+ name: {},
948
+ modelValue: {},
949
+ isDisabled: { type: Boolean, default: !1 },
950
+ isRequired: { type: Boolean },
951
+ formValidationManager: { default: null },
952
+ minDate: { default: "" },
953
+ maxDate: { default: "" },
954
+ size: { default: "medium" },
955
+ type: { default: "date" }
956
+ },
957
+ emits: ["update:modelValue"],
958
+ setup(e, { emit: t }) {
959
+ const s = t, a = V(null), o = e, c = tt({
960
+ year: "",
961
+ month: "",
962
+ day: ""
963
+ }), u = V(""), m = V(""), d = (r) => {
964
+ o.formValidationManager && o.formValidationManager.setValid(o.name, r);
965
+ }, g = (r) => !r && o.isRequired ? { isValid: !1, message: re.required } : { isValid: !0, message: "" }, h = (r) => it(
966
+ { year: r.year, month: r.month, day: r.day ?? "" },
967
+ { type: o.type, isRequired: o.isRequired }
968
+ ), b = (r) => {
969
+ const { year: i, month: y, day: _ } = Ee(r);
970
+ c.year = i, c.month = y, c.day = o.type === "month" ? "" : _;
971
+ }, x = () => ct({ ...c }, o.type);
972
+ B(
973
+ () => u.value,
974
+ (r) => {
975
+ b(r);
976
+ const { isValid: i, message: y } = g(r);
977
+ m.value = y, s("update:modelValue", r), d(i);
978
+ }
979
+ ), B(
980
+ () => c,
981
+ (r) => {
982
+ const { isValid: i, message: y } = h(r);
983
+ m.value = y, d(i), i && (u.value = x());
984
+ },
985
+ { deep: !0 }
986
+ );
987
+ const D = (r) => {
988
+ if (!r) {
989
+ u.value = "", b(""), m.value = "", d(g("").isValid);
990
+ return;
991
+ }
992
+ const i = ut(r, o.type);
993
+ !i || i === u.value || (u.value = i, b(i));
994
+ };
995
+ return B(
996
+ () => o.modelValue,
997
+ (r) => D(r)
998
+ ), D(o.modelValue), d(g(u.value).isValid), le(() => {
999
+ var r;
1000
+ return (r = o.formValidationManager) == null ? void 0 : r.remove(o.name);
1001
+ }), (r, i) => (n(), f(te, {
1002
+ isDisabled: e.isDisabled,
1003
+ class: l([
1004
+ r.$style.date_picker,
1005
+ r.$style[e.size],
1006
+ { [r.$style.is_disabled]: e.isDisabled }
1007
+ ]),
1008
+ isErrored: !!m.value
1009
+ }, {
1010
+ default: L(() => [
1011
+ v("div", {
1012
+ class: l(r.$style.date_input)
1013
+ }, [
1014
+ k(xl, {
1015
+ class: l(r.$style.icon)
1016
+ }, null, 8, ["class"]),
1017
+ P(v("input", {
1018
+ ref_key: "datePicker",
1019
+ ref: a,
1020
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => u.value = y),
1021
+ type: e.type,
1022
+ name: e.name,
1023
+ max: e.maxDate,
1024
+ min: e.minDate,
1025
+ required: e.isRequired,
1026
+ disabled: e.isDisabled
1027
+ }, null, 8, wl), [
1028
+ [Be, u.value]
1029
+ ])
1030
+ ], 2),
1031
+ P(v("input", {
1032
+ "onUpdate:modelValue": i[1] || (i[1] = (y) => c.year = y),
1033
+ placeholder: "年",
1034
+ "aria-label": `${e.name}の年`,
1035
+ maxlength: "4",
1036
+ type: "text",
1037
+ disabled: e.isDisabled,
1038
+ class: l(r.$style.year)
1039
+ }, null, 10, Sl), [
1040
+ [ne, c.year]
1041
+ ]),
1042
+ i[4] || (i[4] = Te("/ ", -1)),
1043
+ P(v("input", {
1044
+ "onUpdate:modelValue": i[2] || (i[2] = (y) => c.month = y),
1045
+ placeholder: "月",
1046
+ "aria-label": `${e.name}の月`,
1047
+ maxlength: "2",
1048
+ type: "text",
1049
+ disabled: e.isDisabled
1050
+ }, null, 8, Dl), [
1051
+ [ne, c.month]
1052
+ ]),
1053
+ e.type === "date" ? (n(), $("span", Ml, "/")) : p("", !0),
1054
+ e.type === "date" ? P((n(), $("input", {
1055
+ key: 1,
1056
+ "onUpdate:modelValue": i[3] || (i[3] = (y) => c.day = y),
1057
+ placeholder: "日",
1058
+ "aria-label": `${e.name}の日`,
1059
+ maxlength: "2",
1060
+ type: "text",
1061
+ disabled: e.isDisabled
1062
+ }, null, 8, Cl)), [
1063
+ [ne, c.day]
1064
+ ]) : p("", !0),
1065
+ k(X, {
1066
+ errorMessages: m.value ? [m.value] : []
1067
+ }, null, 8, ["errorMessages"])
1068
+ ]),
1069
+ _: 1
1070
+ }, 8, ["isDisabled", "class", "isErrored"]));
1071
+ }
1072
+ }), Vl = "_icon_1mylj_1", Il = "_date_input_1mylj_14", Nl = "_date_picker_1mylj_34", ql = "_year_1mylj_45", Bl = "_small_1mylj_51", Ul = {
1073
+ icon: Vl,
1074
+ date_input: Il,
1075
+ date_picker: Nl,
1076
+ year: ql,
1077
+ small: Bl
1078
+ }, Tl = {
1079
+ $style: Ul
1080
+ }, ie = /* @__PURE__ */ S(zl, [["__cssModules", Tl]]), Rl = /* @__PURE__ */ w({
1081
+ __name: "DateRangePicker",
1082
+ props: {
1083
+ name: {},
1084
+ modelValue: { default: () => ({ start: "", end: "" }) },
1085
+ isDisabled: { type: Boolean, default: !1 },
1086
+ isRequired: { type: Boolean, default: !1 },
1087
+ formValidationManager: { default: null },
1088
+ minDate: { default: "" },
1089
+ maxDate: { default: "" },
1090
+ size: { default: "medium" },
1091
+ type: { default: "date" }
1092
+ },
1093
+ emits: ["update:modelValue"],
1094
+ setup(e, { emit: t }) {
1095
+ const s = t, a = e, o = M(() => a.modelValue.start), c = M(() => a.modelValue.end), u = (d) => s("update:modelValue", { start: d ?? "", end: c.value }), m = (d) => s("update:modelValue", { start: o.value, end: d ?? "" });
1096
+ return (d, g) => (n(), $("div", {
1097
+ class: l(d.$style.date_range_picker)
1098
+ }, [
1099
+ k(ie, {
1100
+ name: `${e.name}Start`,
1101
+ modelValue: o.value,
1102
+ isDisabled: e.isDisabled,
1103
+ isRequired: e.isRequired,
1104
+ formValidationManager: e.formValidationManager,
1105
+ minDate: e.minDate,
1106
+ maxDate: c.value || e.maxDate,
1107
+ size: e.size,
1108
+ type: e.type,
1109
+ "onUpdate:modelValue": u
1110
+ }, null, 8, ["name", "modelValue", "isDisabled", "isRequired", "formValidationManager", "minDate", "maxDate", "size", "type"]),
1111
+ v("div", {
1112
+ class: l(d.$style.range)
1113
+ }, "〜", 2),
1114
+ k(ie, {
1115
+ name: `${e.name}End`,
1116
+ modelValue: c.value,
1117
+ isDisabled: e.isDisabled,
1118
+ isRequired: e.isRequired,
1119
+ formValidationManager: e.formValidationManager,
1120
+ minDate: o.value || e.minDate,
1121
+ maxDate: e.maxDate,
1122
+ size: e.size,
1123
+ type: e.type,
1124
+ "onUpdate:modelValue": m
1125
+ }, null, 8, ["name", "modelValue", "isDisabled", "isRequired", "formValidationManager", "minDate", "maxDate", "size", "type"])
1126
+ ], 2));
1127
+ }
1128
+ }), Ll = "_date_range_picker_1t03t_1", Pl = "_range_1t03t_8", El = {
1129
+ date_range_picker: Ll,
1130
+ range: Pl
1131
+ }, Al = {
1132
+ $style: El
1133
+ }, Gl = /* @__PURE__ */ S(Rl, [["__cssModules", Al]]), jl = ["value"], Hl = ["value"], Wl = ["value"], Ol = ["value"], Fl = ["value"], Zl = ["value"], Yl = /* @__PURE__ */ w({
1134
+ __name: "DateSelector",
1135
+ props: {
1136
+ name: {},
1137
+ modelValue: {},
1138
+ isRequired: { type: Boolean },
1139
+ formValidationManager: { default: null },
1140
+ type: { default: "date" }
1141
+ },
1142
+ emits: ["update:modelValue"],
1143
+ setup(e, { emit: t }) {
1144
+ const s = t, a = e, o = V({
1145
+ year: "",
1146
+ month: "",
1147
+ day: ""
1148
+ }), c = M(() => {
1149
+ const r = /* @__PURE__ */ new Date(), i = r.getFullYear() - 100, y = r.getFullYear() - 14;
1150
+ return Array.from(
1151
+ { length: y - i + 1 },
1152
+ (U, J) => (i + J).toString()
1153
+ ).map((U) => ({ label: U, value: U }));
1154
+ }), u = M(() => Array.from({ length: 12 }, (r, i) => {
1155
+ const y = (i + 1).toString();
1156
+ return {
1157
+ label: y,
1158
+ value: y.padStart(2, "0")
1159
+ };
1160
+ })), m = M(() => {
1161
+ var y, _;
1162
+ const r = Number((y = o.value) == null ? void 0 : y.month);
1163
+ if (!r)
1164
+ return 31;
1165
+ const i = Number((_ = o.value) == null ? void 0 : _.year) || 2e3;
1166
+ return dt(i, r);
1167
+ }), d = M(() => {
1168
+ const r = [], i = m.value;
1169
+ for (let y = 1; y <= i; y++) {
1170
+ const _ = y.toString();
1171
+ r.push(_);
1172
+ }
1173
+ return r.map((y) => ({
1174
+ label: y,
1175
+ value: String(y).padStart(2, "0")
1176
+ }));
1177
+ }), g = (r) => {
1178
+ const y = r.currentTarget.firstElementChild;
1179
+ y && y.click();
1180
+ }, h = (r, i) => {
1181
+ const y = r.target, { value: _ } = y;
1182
+ o.value = { ...o.value, [i]: _ };
1183
+ };
1184
+ B(m, (r) => {
1185
+ const i = Number(o.value.day);
1186
+ i && i > r && (o.value = { ...o.value, day: String(r).padStart(2, "0") });
1187
+ });
1188
+ const b = { year: "", month: "", day: "" };
1189
+ at(() => {
1190
+ o.value = a.modelValue ? Ee(a.modelValue) : { ...b };
1191
+ });
1192
+ const x = (r) => {
1193
+ a.formValidationManager && a.formValidationManager.setValid(a.name, r);
1194
+ }, D = (r) => {
1195
+ const i = !!(r.year && r.month && (a.type === "month" || r.day)), y = !r.year && !r.month && !r.day;
1196
+ return a.isRequired ? i : i || y;
1197
+ };
1198
+ return x(D(o.value)), B(
1199
+ () => o.value,
1200
+ (r) => {
1201
+ const i = !!(r.year && r.month && (a.type === "month" || r.day)), y = !r.year && !r.month && !r.day;
1202
+ if (x(D(r)), y)
1203
+ s("update:modelValue", "");
1204
+ else if (i) {
1205
+ const _ = a.type === "month" ? [r.year, r.month] : [r.year, r.month, r.day];
1206
+ s("update:modelValue", _.filter(Boolean).join("-"));
1207
+ } else
1208
+ return;
1209
+ },
1210
+ { deep: !0 }
1211
+ ), le(() => {
1212
+ var r;
1213
+ return (r = a.formValidationManager) == null ? void 0 : r.remove(a.name);
1214
+ }), (r, i) => (n(), f(te, {
1215
+ class: l(r.$style.date_selector)
1216
+ }, {
1217
+ default: L(() => [
1218
+ v("div", {
1219
+ class: l([r.$style.selector_wrapper]),
1220
+ onClick: i[1] || (i[1] = (y) => g(y))
1221
+ }, [
1222
+ v("select", {
1223
+ value: o.value.year,
1224
+ class: l(r.$style.year),
1225
+ onChange: i[0] || (i[0] = (y) => h(y, "year"))
1226
+ }, [
1227
+ i[7] || (i[7] = v("option", {
1228
+ disabled: "",
1229
+ selected: "",
1230
+ value: ""
1231
+ }, "年", -1)),
1232
+ (n(!0), $(T, null, E(c.value, (y) => (n(), $("option", {
1233
+ key: y.value,
1234
+ value: y.value
1235
+ }, R(y.label), 9, Hl))), 128))
1236
+ ], 42, jl),
1237
+ k(Q)
1238
+ ], 2),
1239
+ v("div", {
1240
+ class: l([r.$style.selector_wrapper]),
1241
+ onClick: i[3] || (i[3] = (y) => g(y))
1242
+ }, [
1243
+ v("select", {
1244
+ value: o.value.month,
1245
+ onChange: i[2] || (i[2] = (y) => h(y, "month"))
1246
+ }, [
1247
+ i[8] || (i[8] = v("option", {
1248
+ disabled: "",
1249
+ selected: "",
1250
+ value: ""
1251
+ }, "月", -1)),
1252
+ (n(!0), $(T, null, E(u.value, (y) => (n(), $("option", {
1253
+ key: y.value,
1254
+ value: y.value
1255
+ }, R(y.label), 9, Ol))), 128))
1256
+ ], 40, Wl),
1257
+ k(Q)
1258
+ ], 2),
1259
+ e.type === "date" ? (n(), $("div", {
1260
+ key: 0,
1261
+ class: l([r.$style.selector_wrapper]),
1262
+ onClick: i[5] || (i[5] = (y) => g(y))
1263
+ }, [
1264
+ v("select", {
1265
+ value: o.value.day,
1266
+ onChange: i[4] || (i[4] = (y) => h(y, "day"))
1267
+ }, [
1268
+ i[9] || (i[9] = v("option", {
1269
+ disabled: "",
1270
+ selected: "",
1271
+ value: ""
1272
+ }, "日", -1)),
1273
+ (n(!0), $(T, null, E(d.value, (y) => (n(), $("option", {
1274
+ key: y.value,
1275
+ value: y.value
1276
+ }, R(y.label), 9, Zl))), 128))
1277
+ ], 40, Fl),
1278
+ k(Q)
1279
+ ], 2)) : p("", !0),
1280
+ k(We, {
1281
+ text: "削除",
1282
+ variant: "caution",
1283
+ class: l(r.$style.delete_button),
1284
+ onClick: i[6] || (i[6] = (y) => o.value = { year: "", month: "", day: "" })
1285
+ }, null, 8, ["class"])
1286
+ ]),
1287
+ _: 1
1288
+ }, 8, ["class"]));
1289
+ }
1290
+ }), Kl = "_date_selector_1yxst_1", Xl = "_selector_wrapper_1yxst_11", Jl = "_year_1yxst_37", Ql = "_delete_button_1yxst_41", es = {
1291
+ date_selector: Kl,
1292
+ selector_wrapper: Xl,
1293
+ year: Jl,
1294
+ delete_button: Ql
1295
+ }, ts = {
1296
+ $style: es
1297
+ }, as = /* @__PURE__ */ S(Yl, [["__cssModules", ts]]);
1298
+ function Oe(e, t) {
1299
+ const s = (a) => {
1300
+ const o = e.value;
1301
+ o && !o.contains(a.target) && t();
1302
+ };
1303
+ K(() => document.addEventListener("pointerdown", s)), le(
1304
+ () => document.removeEventListener("pointerdown", s)
1305
+ );
1306
+ }
1307
+ const ls = ["disabled"], ss = /* @__PURE__ */ w({
1308
+ __name: "DropdownUi",
1309
+ props: {
1310
+ isHiddenArrow: { type: Boolean, default: !1 },
1311
+ contentAlignment: { default: "left" },
1312
+ isDisabled: { type: Boolean, default: !1 },
1313
+ contentsWidth: { default: "auto" }
1314
+ },
1315
+ setup(e, { expose: t }) {
1316
+ const s = V(!1), a = V(null), o = V(null), c = V(0), u = () => s.value = !s.value, m = () => s.value = !1, d = () => {
1317
+ const g = o.value;
1318
+ g && (c.value = g.clientHeight);
1319
+ };
1320
+ return Oe(a, () => m()), K(() => d()), Re(() => d()), t({ isContentsOpened: s }), (g, h) => (n(), $("div", {
1321
+ ref_key: "root",
1322
+ ref: a,
1323
+ class: l(g.$style.drop_down_box)
1324
+ }, [
1325
+ v("button", {
1326
+ class: l(g.$style.button),
1327
+ disabled: e.isDisabled,
1328
+ type: "button",
1329
+ style: I({
1330
+ "--trigger-color": e.isDisabled || !g.$slots.contents ? "var(--text-color)" : "var(--link-color)",
1331
+ cursor: e.isDisabled || !g.$slots.contents ? "auto" : "pointer"
1332
+ }),
1333
+ onClick: ae(u, ["prevent"])
1334
+ }, [
1335
+ N(g.$slots, "trigger"),
1336
+ e.isHiddenArrow || !g.$slots.contents || e.isDisabled ? p("", !0) : (n(), f(Q, {
1337
+ key: 0,
1338
+ class: l([g.$style.icon, { [g.$style.open]: s.value }])
1339
+ }, null, 8, ["class"]))
1340
+ ], 14, ls),
1341
+ g.$slots.contents ? (n(), $("div", {
1342
+ key: 0,
1343
+ class: l(g.$style.contents),
1344
+ style: I({
1345
+ boxShadow: s.value ? "var(--box-shadow)" : "none",
1346
+ blockSize: s.value ? `${c.value}px` : 0,
1347
+ inlineSize: e.contentsWidth,
1348
+ right: e.contentAlignment === "right" ? "calc(var(--bv) * -0.5)" : "auto",
1349
+ left: e.contentAlignment === "left" ? "calc(var(--bv) * -0.5)" : "auto",
1350
+ zIndex: "2"
1351
+ })
1352
+ }, [
1353
+ v("div", {
1354
+ ref_key: "contents",
1355
+ ref: o,
1356
+ onClick: m
1357
+ }, [
1358
+ N(g.$slots, "contents")
1359
+ ], 512)
1360
+ ], 6)) : p("", !0)
1361
+ ], 2));
1362
+ }
1363
+ }), os = "_drop_down_box_1azx1_1", ns = "_button_1azx1_5", rs = "_icon_1azx1_14", is = "_open_1azx1_23", cs = "_contents_1azx1_27", us = {
1364
+ drop_down_box: os,
1365
+ button: ns,
1366
+ icon: rs,
1367
+ open: is,
1368
+ contents: cs
1369
+ }, ds = {
1370
+ $style: us
1371
+ }, ms = /* @__PURE__ */ S(ss, [["__cssModules", ds]]), ys = {}, gs = {
1372
+ xmlns: "http://www.w3.org/2000/svg",
1373
+ viewBox: "0 -960 960 960"
1374
+ };
1375
+ function hs(e, t) {
1376
+ return n(), $("svg", gs, [...t[0] || (t[0] = [
1377
+ v("path", { d: "m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" }, null, -1)
1378
+ ])]);
1379
+ }
1380
+ const bs = /* @__PURE__ */ S(ys, [["render", hs]]), $s = ["aria-hidden", "inert"], fs = ["aria-labelledby", "aria-label"], vs = ["id"];
1381
+ let oe = 0, Ie = "";
1382
+ const ks = /* @__PURE__ */ w({
1383
+ __name: "ModalBox",
1384
+ props: {
1385
+ isShown: { type: Boolean },
1386
+ size: {},
1387
+ ariaLabel: {}
1388
+ },
1389
+ emits: ["closeModal"],
1390
+ setup(e, { emit: t }) {
1391
+ const s = e, a = de("modal_header"), o = V(null), c = t, u = () => typeof document > "u" ? null : document.body;
1392
+ let m = !1;
1393
+ const d = (h) => {
1394
+ const b = u();
1395
+ !b || m === h || (m = h, oe += h ? 1 : -1, oe === 1 && h ? (Ie = b.style.overflow, b.style.overflow = "hidden") : oe <= 0 && (oe = 0, b.style.overflow = Ie));
1396
+ }, g = () => {
1397
+ d(!1), c("closeModal", !1);
1398
+ };
1399
+ return B(
1400
+ () => s.isShown,
1401
+ (h) => {
1402
+ h ? d(!0) : g();
1403
+ }
1404
+ ), B(
1405
+ () => s.isShown,
1406
+ async (h) => {
1407
+ var b;
1408
+ h && (await Ue(), (b = o.value) == null || b.focus());
1409
+ }
1410
+ ), K(() => d(s.isShown)), le(() => g()), (h, b) => (n(), $("div", {
1411
+ class: l([h.$style.overlay, { [h.$style.display]: e.isShown }]),
1412
+ "aria-hidden": !e.isShown,
1413
+ inert: !e.isShown,
1414
+ onClick: ae(g, ["self"])
1415
+ }, [
1416
+ v("div", {
1417
+ ref_key: "dialog",
1418
+ ref: o,
1419
+ role: "dialog",
1420
+ "aria-modal": "true",
1421
+ "aria-labelledby": h.$slots.header ? z(a) : void 0,
1422
+ "aria-label": h.$slots.header ? void 0 : e.ariaLabel ?? "ダイアログ",
1423
+ tabindex: -1,
1424
+ class: l([h.$style.container, h.$style[e.size ?? "medium"]])
1425
+ }, [
1426
+ h.$slots.header ? (n(), $("header", {
1427
+ key: 0,
1428
+ id: z(a),
1429
+ class: l(h.$style.header)
1430
+ }, [
1431
+ N(h.$slots, "header")
1432
+ ], 10, vs)) : p("", !0),
1433
+ v("div", {
1434
+ class: l(h.$style.contents)
1435
+ }, [
1436
+ N(h.$slots, "default")
1437
+ ], 2),
1438
+ h.$slots.footer ? (n(), $("footer", {
1439
+ key: 1,
1440
+ class: l(h.$style.footer)
1441
+ }, [
1442
+ N(h.$slots, "footer")
1443
+ ], 2)) : p("", !0),
1444
+ v("button", {
1445
+ type: "button",
1446
+ class: l(h.$style.close_button),
1447
+ onClick: g
1448
+ }, [
1449
+ k(bs)
1450
+ ], 2)
1451
+ ], 10, fs)
1452
+ ], 10, $s));
1453
+ }
1454
+ }), ps = "_container_1fmv7_1", _s = "_small_1fmv7_13", xs = "_large_1fmv7_16", ws = "_header_1fmv7_20", Ss = "_contents_1fmv7_34", Ds = "_footer_1fmv7_45", Ms = "_close_button_1fmv7_62", Cs = "_overlay_1fmv7_80", zs = "_display_1fmv7_105", Vs = {
1455
+ container: ps,
1456
+ small: _s,
1457
+ large: xs,
1458
+ header: ws,
1459
+ contents: Ss,
1460
+ footer: Ds,
1461
+ close_button: Ms,
1462
+ overlay: Cs,
1463
+ display: zs
1464
+ }, Is = {
1465
+ $style: Vs
1466
+ }, Ns = /* @__PURE__ */ S(ks, [["__cssModules", Is]]), qs = /* @__PURE__ */ w({
1467
+ __name: "PopupBox",
1468
+ props: {
1469
+ position: { default: () => ({ x: "right", y: "top" }) }
1470
+ },
1471
+ setup(e, { expose: t }) {
1472
+ const s = V(!1);
1473
+ let a = null;
1474
+ const o = () => {
1475
+ s.value = !0, a !== null && clearTimeout(a), a = setTimeout(() => {
1476
+ s.value = !1, a = null;
1477
+ }, 3e3);
1478
+ };
1479
+ return le(() => {
1480
+ a !== null && clearTimeout(a);
1481
+ }), t({
1482
+ showPopup: o
1483
+ }), (c, u) => (n(), f(lt, { to: "body" }, [
1484
+ v("div", {
1485
+ class: l([
1486
+ c.$style.popup,
1487
+ c.$style[`x-${e.position.x}`],
1488
+ c.$style[`y-${e.position.y}`],
1489
+ { [c.$style.show]: s.value }
1490
+ ])
1491
+ }, [
1492
+ N(c.$slots, "default")
1493
+ ], 2)
1494
+ ]));
1495
+ }
1496
+ }), Bs = "_popup_1ck2i_23", Us = "_show_1ck2i_38", Ts = {
1497
+ "x-left": "_x-left_1ck2i_1",
1498
+ "x-right": "_x-right_1ck2i_4",
1499
+ "x-center": "_x-center_1ck2i_7",
1500
+ "y-top": "_y-top_1ck2i_12",
1501
+ "y-bottom": "_y-bottom_1ck2i_15",
1502
+ "y-center": "_y-center_1ck2i_18",
1503
+ popup: Bs,
1504
+ show: Us
1505
+ }, Rs = {
1506
+ $style: Ts
1507
+ }, Ls = /* @__PURE__ */ S(qs, [["__cssModules", Rs]]), Ps = ["disabled"], Es = { class: "width:100% text-align:left" }, As = /* @__PURE__ */ w({
1508
+ __name: "SlideDownUi",
1509
+ props: {
1510
+ isOpened: { type: [Boolean, null], default: null },
1511
+ isHiddenArrow: { type: Boolean },
1512
+ isDisabled: { type: Boolean },
1513
+ isDisableClickOutside: { type: Boolean },
1514
+ duration: { default: 0.3 }
1515
+ },
1516
+ setup(e, { expose: t }) {
1517
+ const s = e, a = V(s.isOpened || !1), o = V(null), c = V(null), u = V(0), m = () => a.value = !a.value, d = () => {
1518
+ s.isDisableClickOutside || (a.value = !1);
1519
+ }, g = () => {
1520
+ const h = c.value;
1521
+ h && (u.value = h.clientHeight);
1522
+ };
1523
+ return Oe(o, () => d()), K(() => g()), Re(() => g()), B(
1524
+ () => s.isOpened,
1525
+ (h) => {
1526
+ typeof h == "boolean" && (a.value = h);
1527
+ }
1528
+ ), t({ isOpenedContents: a }), (h, b) => (n(), $("div", {
1529
+ ref_key: "root",
1530
+ ref: o,
1531
+ class: l({ [h.$style.opened]: a.value }),
1532
+ style: I({ "--accordion-toggle-duration": `${s.duration}s` })
1533
+ }, [
1534
+ v("button", {
1535
+ class: l(h.$style.trigger),
1536
+ disabled: e.isDisabled,
1537
+ type: "button",
1538
+ onClick: ae(m, ["prevent"])
1539
+ }, [
1540
+ v("div", Es, [
1541
+ N(h.$slots, "trigger")
1542
+ ]),
1543
+ e.isHiddenArrow ? p("", !0) : (n(), f(Q, {
1544
+ key: 0,
1545
+ class: l(h.$style.icon)
1546
+ }, null, 8, ["class"]))
1547
+ ], 10, Ps),
1548
+ v("div", {
1549
+ style: I({ height: a.value ? `${u.value}px` : 0 }),
1550
+ class: l(h.$style.contents)
1551
+ }, [
1552
+ v("div", {
1553
+ ref_key: "contents",
1554
+ ref: c,
1555
+ class: l(h.$style.container)
1556
+ }, [
1557
+ N(h.$slots, "default")
1558
+ ], 2)
1559
+ ], 6)
1560
+ ], 6));
1561
+ }
1562
+ }), Gs = "_trigger_1p4x4_12", js = "_icon_1p4x4_23", Hs = "_contents_1p4x4_33", Ws = "_opened_1p4x4_38", Os = "_overflow_1p4x4_1", Fs = {
1563
+ trigger: Gs,
1564
+ icon: js,
1565
+ contents: Hs,
1566
+ opened: Ws,
1567
+ overflow: Os
1568
+ }, Zs = {
1569
+ $style: Fs
1570
+ }, Ys = /* @__PURE__ */ S(As, [["__cssModules", Zs]]), Ks = ["id", "aria-controls", "aria-selected", "tabindex", "onClick"], Xs = ["id", "aria-labelledby"], Js = /* @__PURE__ */ w({
1571
+ __name: "TabUI",
1572
+ props: {
1573
+ tabs: {},
1574
+ color: { default: void 0 },
1575
+ cssStyle: { default: void 0 },
1576
+ initialIndex: { default: 0 }
1577
+ },
1578
+ setup(e) {
1579
+ const t = e, s = de("tabs"), a = (b) => `${s}_tab_${b}`, o = (b) => `${s}_panel_${b}`, c = t.tabs[t.initialIndex] ?? t.tabs[0], u = V((c == null ? void 0 : c.key) ?? ""), m = V([]), d = (b) => u.value = b, g = (b) => {
1580
+ var x;
1581
+ u.value = t.tabs[b].key, (x = m.value[b]) == null || x.focus();
1582
+ }, h = (b) => {
1583
+ if (b.key !== "ArrowLeft" && b.key !== "ArrowRight")
1584
+ return;
1585
+ const x = t.tabs.findIndex(
1586
+ (r) => r.key === u.value
1587
+ );
1588
+ if (x === -1)
1589
+ return;
1590
+ b.preventDefault();
1591
+ const D = t.tabs.length - 1;
1592
+ b.key === "ArrowLeft" ? g(x > 0 ? x - 1 : D) : g(x < D ? x + 1 : 0);
1593
+ };
1594
+ return (b, x) => {
1595
+ var D, r;
1596
+ return n(), $("div", null, [
1597
+ v("div", {
1598
+ class: l(b.$style.tabs),
1599
+ style: I({
1600
+ "--active-color": ((D = e.color) == null ? void 0 : D.active) || z(C).blue,
1601
+ "--background-color": ((r = e.color) == null ? void 0 : r.background) || "transparent"
1602
+ }),
1603
+ role: "tablist",
1604
+ onKeydown: h
1605
+ }, [
1606
+ (n(!0), $(T, null, E(e.tabs, (i, y) => (n(), $("button", {
1607
+ id: a(i.key),
1608
+ key: i.key,
1609
+ ref_for: !0,
1610
+ ref: (_) => {
1611
+ _ && (m.value[y] = _);
1612
+ },
1613
+ role: "tab",
1614
+ "aria-controls": o(i.key),
1615
+ "aria-selected": u.value === i.key,
1616
+ tabindex: u.value === i.key ? 0 : -1,
1617
+ class: l({ [b.$style.active]: u.value === i.key }),
1618
+ onClick: (_) => d(i.key)
1619
+ }, [
1620
+ N(b.$slots, i.key),
1621
+ b.$slots[i.key] ? p("", !0) : (n(), $(T, { key: 0 }, [
1622
+ Te(R(i.label), 1)
1623
+ ], 64))
1624
+ ], 10, Ks))), 128))
1625
+ ], 38),
1626
+ (n(!0), $(T, null, E(e.tabs, (i) => P((n(), $("div", {
1627
+ id: o(i.key),
1628
+ key: `${i.key}_panel`,
1629
+ role: "tabpanel",
1630
+ "aria-labelledby": a(i.key)
1631
+ }, [
1632
+ N(b.$slots, `${i.key}Contents`)
1633
+ ], 8, Xs)), [
1634
+ [ce, u.value === i.key]
1635
+ ])), 128))
1636
+ ]);
1637
+ };
1638
+ }
1639
+ }), Qs = "_tabs_1d9po_1", eo = "_active_1d9po_12", to = {
1640
+ tabs: Qs,
1641
+ active: eo
1642
+ }, ao = {
1643
+ $style: to
1644
+ }, lo = /* @__PURE__ */ S(Js, [["__cssModules", ao]]), q = (e) => {
1645
+ var t, s;
1646
+ return (s = (t = e == null ? void 0 : e._embedded) == null ? void 0 : t.author) == null ? void 0 : s[0];
1647
+ }, so = (e) => {
1648
+ var s, a;
1649
+ return (((a = (s = e == null ? void 0 : e._embedded) == null ? void 0 : s["wp:term"]) == null ? void 0 : a[1]) ?? []).map((o) => o.name);
1650
+ }, Fe = (e, t, s) => {
1651
+ const a = String(t).replace(/\/+$/, ""), o = String(e.article_page_path ?? "").replace(/^\/+/, "");
1652
+ return `https://${a}/${o}?${e.query_key_name}=${s}`;
1653
+ }, Ze = (e) => ({
1654
+ ...e,
1655
+ author: (e == null ? void 0 : e.author) ?? (e == null ? void 0 : e.useAuthor) ?? !1,
1656
+ category: (e == null ? void 0 : e.category) ?? (e == null ? void 0 : e.useCategory) ?? !1,
1657
+ tag: (e == null ? void 0 : e.tag) ?? (e == null ? void 0 : e.useTag) ?? !1
1658
+ }), oo = ["href"], no = /* @__PURE__ */ w({
1659
+ __name: "CardContainer",
1660
+ props: {
1661
+ path: {}
1662
+ },
1663
+ setup(e) {
1664
+ return (t, s) => (n(), $("a", {
1665
+ href: e.path,
1666
+ class: l(t.$style.container)
1667
+ }, [
1668
+ N(t.$slots, "default")
1669
+ ], 10, oo));
1670
+ }
1671
+ }), ro = "_container_15pug_1", io = {
1672
+ container: ro
1673
+ }, co = {
1674
+ $style: io
1675
+ }, G = /* @__PURE__ */ S(no, [["__cssModules", co]]), uo = {}, mo = {
1676
+ xmlns: "http://www.w3.org/2000/svg",
1677
+ viewBox: "0 0 24 24"
1678
+ };
1679
+ function yo(e, t) {
1680
+ return n(), $("svg", mo, [...t[0] || (t[0] = [
1681
+ v("circle", {
1682
+ cx: "7.499",
1683
+ cy: "9.5",
1684
+ r: "1.5"
1685
+ }, null, -1),
1686
+ v("path", { d: "m10.499 14-1.5-2-3 4h12l-4.5-6z" }, null, -1),
1687
+ v("path", { d: "M19.999 4h-16c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm-16 14V6h16l.002 12H3.999z" }, null, -1)
1688
+ ])]);
1689
+ }
1690
+ const go = /* @__PURE__ */ S(uo, [["render", yo]]), ho = /* @__PURE__ */ w({
1691
+ __name: "NoImage",
1692
+ setup(e) {
1693
+ return (t, s) => (n(), $("div", {
1694
+ class: l(t.$style.no_image)
1695
+ }, [
1696
+ k(go),
1697
+ s[0] || (s[0] = v("span", null, "No Image", -1))
1698
+ ], 2));
1699
+ }
1700
+ }), bo = "_no_image_3evh4_1", $o = {
1701
+ no_image: bo
1702
+ }, fo = {
1703
+ $style: $o
1704
+ }, vo = /* @__PURE__ */ S(ho, [["__cssModules", fo]]), ko = ["srcset", "alt"], po = /* @__PURE__ */ w({
1705
+ __name: "ThumbnailImage",
1706
+ props: {
1707
+ article: {},
1708
+ aspectRatio: { default: () => ({
1709
+ desktop: "4/3",
1710
+ tablet: "4/3",
1711
+ mobile: "4/3"
1712
+ }) }
1713
+ },
1714
+ setup(e) {
1715
+ const t = e, s = M(
1716
+ () => {
1717
+ var c, u, m;
1718
+ return ((m = (u = (c = t.article) == null ? void 0 : c._embedded) == null ? void 0 : u["wp:featuredmedia"]) == null ? void 0 : m[0]) || {};
1719
+ }
1720
+ ), a = (c) => {
1721
+ var m, d, g;
1722
+ const u = (m = s.value.media_details) == null ? void 0 : m.sizes;
1723
+ return ((d = u == null ? void 0 : u[c]) == null ? void 0 : d.source_url) ?? ((g = u == null ? void 0 : u.full) == null ? void 0 : g.source_url) ?? "";
1724
+ }, o = M(
1725
+ () => `${a("full")} 1024w, ${a("thumbnail")} 640w`
1726
+ );
1727
+ return (c, u) => {
1728
+ var m;
1729
+ return n(), $("div", {
1730
+ style: I({
1731
+ "--desktop-aspect--ratio": e.aspectRatio.desktop,
1732
+ "--tablet-aspect--ratio": e.aspectRatio.tablet,
1733
+ "--mobile-aspect--ratio": e.aspectRatio.mobile
1734
+ }),
1735
+ class: l(c.$style.container)
1736
+ }, [
1737
+ a("full") ? (n(), $("img", {
1738
+ key: 0,
1739
+ srcset: o.value,
1740
+ sizes: "(min-width: 640px) 50vw, 100vw",
1741
+ alt: ((m = s.value) == null ? void 0 : m.alt_text) ?? "記事サムネイル",
1742
+ loading: "lazy",
1743
+ class: l(c.$style.image)
1744
+ }, null, 10, ko)) : (n(), f(vo, { key: 1 }))
1745
+ ], 6);
1746
+ };
1747
+ }
1748
+ }), _o = "_container_2ogwb_1", xo = {
1749
+ container: _o
1750
+ }, wo = {
1751
+ $style: xo
1752
+ }, j = /* @__PURE__ */ S(po, [["__cssModules", wo]]), So = ["src", "srcset", "alt"], Do = ["data-preposition"], Mo = /* @__PURE__ */ w({
1753
+ __name: "AuthorInfo",
1754
+ props: {
1755
+ avatarUrls: { default: null },
1756
+ name: { default: "" },
1757
+ direction: { default: "row" },
1758
+ thumbnail: { default: () => ({
1759
+ size: "medium",
1760
+ shape: "square"
1761
+ }) },
1762
+ text: { default: () => ({
1763
+ color: "var(--gray)",
1764
+ fontSize: "medium",
1765
+ fontWeight: "normal",
1766
+ preposition: ""
1767
+ }) }
1768
+ },
1769
+ setup(e) {
1770
+ const t = e, s = M(() => {
1771
+ const o = t.avatarUrls;
1772
+ if (!o)
1773
+ return;
1774
+ const c = [
1775
+ { url: o[96], width: "1024w" },
1776
+ { url: o[48], width: "640w" }
1777
+ ].filter((u) => !!u.url);
1778
+ if (c.length !== 0)
1779
+ return c.map((u) => `${u.url} ${u.width}`).join(", ");
1780
+ }), a = M(() => {
1781
+ const o = t.avatarUrls;
1782
+ if (o)
1783
+ return o[96] ?? o[48];
1784
+ });
1785
+ return (o, c) => (n(), $("div", {
1786
+ class: l(o.$style.author_info),
1787
+ style: I({
1788
+ "--author-info-direction": e.direction,
1789
+ "--author-name-color": e.text.color,
1790
+ "--author-name-font-size": e.text.fontSize,
1791
+ "--author-name-font-weight": e.text.fontWeight
1792
+ })
1793
+ }, [
1794
+ a.value ? (n(), $("img", {
1795
+ key: 0,
1796
+ src: a.value,
1797
+ srcset: s.value,
1798
+ alt: `${e.name} thumbnail`,
1799
+ loading: "lazy",
1800
+ class: l([o.$style.thumbnail, o.$style[e.thumbnail.shape ?? "square"]]),
1801
+ style: I({
1802
+ "--thumbnail-size": e.thumbnail.size === "small" ? "calc(var(--bv) * 3)" : e.thumbnail.size === "large" ? "calc(var(--bv) * 6)" : "calc(var(--bv) * 4)"
1803
+ })
1804
+ }, null, 14, So)) : p("", !0),
1805
+ e.name ? (n(), $("span", {
1806
+ key: 1,
1807
+ "data-preposition": e.text.preposition
1808
+ }, R(e.name), 9, Do)) : p("", !0)
1809
+ ], 6));
1810
+ }
1811
+ }), Co = "_author_info_c6l8f_1", zo = "_thumbnail_c6l8f_8", Vo = "_circle_c6l8f_13", Io = {
1812
+ author_info: Co,
1813
+ thumbnail: zo,
1814
+ circle: Vo
1815
+ }, No = {
1816
+ $style: Io
1817
+ }, H = /* @__PURE__ */ S(Mo, [["__cssModules", No]]), qo = /* @__PURE__ */ w({
1818
+ __name: "CardHeading",
1819
+ props: {
1820
+ heading: {},
1821
+ color: { default: "var(--primary-color)" },
1822
+ fontSize: { default: "larger" },
1823
+ fontWeight: { default: "bold" }
1824
+ },
1825
+ setup(e) {
1826
+ return (t, s) => (n(), $("div", {
1827
+ class: l(t.$style.heading),
1828
+ style: I({
1829
+ "--heading-color": e.color,
1830
+ "--heading-font-size": e.fontSize,
1831
+ "--heading-font-weight": e.fontWeight
1832
+ })
1833
+ }, [
1834
+ v("h2", null, R(e.heading), 1)
1835
+ ], 6));
1836
+ }
1837
+ }), Bo = "_heading_wp258_1", Uo = {
1838
+ heading: Bo
1839
+ }, To = {
1840
+ $style: Uo
1841
+ }, W = /* @__PURE__ */ S(qo, [["__cssModules", To]]), Ro = {}, Lo = {
1842
+ xmlns: "http://www.w3.org/2000/svg",
1843
+ viewBox: "0 0 24 24"
1844
+ };
1845
+ function Po(e, t) {
1846
+ return n(), $("svg", Lo, [...t[0] || (t[0] = [
1847
+ v("path", { d: "M20 5h-9.586L8.707 3.293A.997.997 0 0 0 8 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2z" }, null, -1)
1848
+ ])]);
1849
+ }
1850
+ const Eo = /* @__PURE__ */ S(Ro, [["render", Po]]), Ao = {}, Go = {
1851
+ xmlns: "http://www.w3.org/2000/svg",
1852
+ viewBox: "0 0 24 24"
1853
+ };
1854
+ function jo(e, t) {
1855
+ return n(), $("svg", Go, [...t[0] || (t[0] = [
1856
+ v("path", { d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8 8a2 2 0 0 0 2.828 0l7.172-7.172a2 2 0 0 0 0-2.828l-8-8zM7 9a2 2 0 1 1 .001-4.001A2 2 0 0 1 7 9z" }, null, -1)
1857
+ ])]);
1858
+ }
1859
+ const Ho = /* @__PURE__ */ S(Ao, [["render", jo]]), Wo = ["data-delimiter"], Oo = /* @__PURE__ */ w({
1860
+ __name: "MetadataList",
1861
+ props: {
1862
+ metadata: {},
1863
+ icon: { default: () => ({
1864
+ name: null,
1865
+ color: "var(--disable-text-color)",
1866
+ size: "medium"
1867
+ }) },
1868
+ label: { default: () => ({
1869
+ backgroundColor: "transparent",
1870
+ color: "var(--text-color)",
1871
+ fontSize: "var(--fs-small)",
1872
+ fontWeight: "normal",
1873
+ shape: "square"
1874
+ }) },
1875
+ delimiter: { default: "" }
1876
+ },
1877
+ setup(e) {
1878
+ const s = e.icon.name === "FolderIcon" ? Eo : Ho;
1879
+ return (a, o) => e.metadata.length ? (n(), $("div", {
1880
+ key: 0,
1881
+ class: l(a.$style.metadata_list),
1882
+ style: I({ "--icon-color": e.icon.color })
1883
+ }, [
1884
+ e.icon.name ? (n(), f(Le(z(s)), {
1885
+ key: 0,
1886
+ class: l(a.$style.icon),
1887
+ style: I({
1888
+ "--icon-color": e.icon.color,
1889
+ "--icon-size": e.icon.size === "small" ? "var(--small-icon-size)" : "var(--medium-icon-size)"
1890
+ })
1891
+ }, null, 8, ["class", "style"])) : p("", !0),
1892
+ v("ul", {
1893
+ class: l(a.$style.list)
1894
+ }, [
1895
+ (n(!0), $(T, null, E(e.metadata, (c) => (n(), $("li", {
1896
+ key: c,
1897
+ class: l([
1898
+ a.$style.list_item,
1899
+ a.$style[e.label.shape ?? "square"],
1900
+ { [a.$style.delimiter]: e.delimiter }
1901
+ ]),
1902
+ style: I({
1903
+ "--label-padding": !e.label.backgroundColor || e.label.backgroundColor === "transparent" ? "0px" : "var(--sp-min) var(--sp-small)",
1904
+ "--label-background-color": e.label.backgroundColor ?? "transparent",
1905
+ "--label-color": e.label.color ?? "var(--text-color)",
1906
+ "--label-font-size": e.label.fontSize ?? "var(--fs-small)",
1907
+ "--label-font-weight": e.label.fontWeight ?? "normal"
1908
+ }),
1909
+ "data-delimiter": e.delimiter
1910
+ }, R(c), 15, Wo))), 128))
1911
+ ], 2)
1912
+ ], 6)) : p("", !0);
1913
+ }
1914
+ }), Fo = "_metadata_list_1aazi_1", Zo = "_icon_1aazi_8", Yo = "_list_1aazi_17", Ko = "_list_item_1aazi_22", Xo = "_rounded_1aazi_30", Jo = "_delimiter_1aazi_33", Qo = {
1915
+ metadata_list: Fo,
1916
+ icon: Zo,
1917
+ list: Yo,
1918
+ list_item: Ko,
1919
+ rounded: Xo,
1920
+ delimiter: Jo
1921
+ }, en = {
1922
+ $style: Qo
1923
+ }, Ye = /* @__PURE__ */ S(Oo, [["__cssModules", en]]), O = /* @__PURE__ */ w({
1924
+ __name: "CategoryList",
1925
+ props: {
1926
+ categoryIds: {},
1927
+ categoryData: {},
1928
+ icon: {},
1929
+ label: {},
1930
+ delimiter: {}
1931
+ },
1932
+ setup(e) {
1933
+ const t = e, s = (o, c) => {
1934
+ var u;
1935
+ return o.length ? ((u = o.find((m) => m.id === c)) == null ? void 0 : u.name) ?? "" : "";
1936
+ }, a = M(
1937
+ () => t.categoryIds.map(
1938
+ (o) => s(t.categoryData, o)
1939
+ )
1940
+ );
1941
+ return (o, c) => {
1942
+ var u, m, d;
1943
+ return n(), f(Ye, {
1944
+ metadata: a.value,
1945
+ icon: {
1946
+ name: (u = e.icon) != null && u.color ? "FolderIcon" : null,
1947
+ color: (m = e.icon) == null ? void 0 : m.color,
1948
+ size: (d = e.icon) == null ? void 0 : d.size
1949
+ },
1950
+ label: e.label,
1951
+ delimiter: e.delimiter
1952
+ }, null, 8, ["metadata", "icon", "label", "delimiter"]);
1953
+ };
1954
+ }
1955
+ }), F = /* @__PURE__ */ w({
1956
+ __name: "TagList",
1957
+ props: {
1958
+ article: {},
1959
+ icon: {},
1960
+ label: {},
1961
+ delimiter: {}
1962
+ },
1963
+ setup(e) {
1964
+ const t = e, s = M(() => so(t.article));
1965
+ return (a, o) => {
1966
+ var c, u, m;
1967
+ return s.value.length ? (n(), f(Ye, {
1968
+ key: 0,
1969
+ metadata: s.value,
1970
+ icon: {
1971
+ name: (c = e.icon) != null && c.color ? "TagIcon" : null,
1972
+ color: (u = e.icon) == null ? void 0 : u.color,
1973
+ size: (m = e.icon) == null ? void 0 : m.size
1974
+ },
1975
+ label: e.label,
1976
+ delimiter: e.delimiter
1977
+ }, null, 8, ["metadata", "icon", "label", "delimiter"])) : p("", !0);
1978
+ };
1979
+ }
1980
+ }), tn = /* @__PURE__ */ w({
1981
+ __name: "PostedDate",
1982
+ props: {
1983
+ date: {},
1984
+ formatString: { default: "yyyy/MM/dd" },
1985
+ color: { default: "var(--text-color)" },
1986
+ fontSize: { default: "small" },
1987
+ fontWeight: { default: "normal" }
1988
+ },
1989
+ setup(e) {
1990
+ const t = e, s = M(() => yt(t.date));
1991
+ return (a, o) => (n(), $("time", {
1992
+ class: l(a.$style.posted_date),
1993
+ style: I({
1994
+ "--date-color": e.color,
1995
+ "--date-font-size": e.fontSize,
1996
+ "--date-font-weight": e.fontWeight
1997
+ })
1998
+ }, R(z(gt)(s.value, e.formatString)), 7));
1999
+ }
2000
+ }), an = "_posted_date_108g0_1", ln = {
2001
+ posted_date: an
2002
+ }, sn = {
2003
+ $style: ln
2004
+ }, A = /* @__PURE__ */ S(tn, [["__cssModules", sn]]), on = ["innerHTML"], nn = /* @__PURE__ */ w({
2005
+ __name: "ExcerptText",
2006
+ props: {
2007
+ excerpt: {},
2008
+ color: { default: "var(--text-color)" },
2009
+ fontSize: { default: "medium" },
2010
+ row: { default: 3 }
2011
+ },
2012
+ setup(e) {
2013
+ return (t, s) => (n(), $("div", {
2014
+ class: l(t.$style.excerpt),
2015
+ style: I({
2016
+ "--excerpt-color": e.color,
2017
+ "--excerpt-font-size": e.fontSize,
2018
+ "--excerpt-row": e.row
2019
+ }),
2020
+ innerHTML: e.excerpt
2021
+ }, null, 14, on));
2022
+ }
2023
+ }), rn = "_excerpt_hmmtv_1", cn = {
2024
+ excerpt: rn
2025
+ }, un = {
2026
+ $style: cn
2027
+ }, Z = /* @__PURE__ */ S(nn, [["__cssModules", un]]), dn = /* @__PURE__ */ w({
2028
+ __name: "Standard",
2029
+ props: {
2030
+ article: {},
2031
+ path: {},
2032
+ isPickUpItem: { type: Boolean },
2033
+ postConfig: {},
2034
+ categories: {}
2035
+ },
2036
+ setup(e) {
2037
+ return (t, s) => e.article ? (n(), f(G, {
2038
+ key: 0,
2039
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2040
+ path: e.path
2041
+ }, {
2042
+ default: L(() => {
2043
+ var a, o;
2044
+ return [
2045
+ k(j, {
2046
+ article: e.article,
2047
+ aspectRatio: {
2048
+ desktop: e.isPickUpItem ? "2.85/1" : "4/3",
2049
+ tablet: e.isPickUpItem ? "2.85/1" : "4/3",
2050
+ mobile: "4/3"
2051
+ },
2052
+ class: l(t.$style.thumbnail),
2053
+ style: { "grid-area": "thumbnail" }
2054
+ }, null, 8, ["article", "aspectRatio", "class"]),
2055
+ k(W, {
2056
+ heading: e.article.title.rendered,
2057
+ class: l(t.$style.heading),
2058
+ style: { "grid-area": "heading" }
2059
+ }, null, 8, ["heading", "class"]),
2060
+ e.postConfig.tag ? (n(), f(F, {
2061
+ key: 0,
2062
+ article: e.article,
2063
+ label: {
2064
+ color: "var(--gray)",
2065
+ fontSize: "smaller"
2066
+ },
2067
+ class: l(t.$style.tag),
2068
+ style: { "grid-area": "tag" }
2069
+ }, null, 8, ["article", "class"])) : p("", !0),
2070
+ k(Z, {
2071
+ excerpt: e.article.excerpt.rendered,
2072
+ class: l(t.$style.excerpt),
2073
+ style: { "grid-area": "excerpt" }
2074
+ }, null, 8, ["excerpt", "class"]),
2075
+ k(A, {
2076
+ date: e.article.date,
2077
+ class: l(t.$style.date),
2078
+ formatString: "yy.M.d",
2079
+ color: "var(--gray)",
2080
+ style: { "grid-area": "date" }
2081
+ }, null, 8, ["date", "class"]),
2082
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2083
+ key: 1,
2084
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2085
+ name: (o = z(q)(e.article)) == null ? void 0 : o.name,
2086
+ class: l(t.$style.author),
2087
+ style: { "grid-area": "author" }
2088
+ }, null, 8, ["avatarUrls", "name", "class"])) : p("", !0),
2089
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2090
+ key: 2,
2091
+ categoryIds: e.article.categories,
2092
+ categoryData: e.categories,
2093
+ label: {
2094
+ backgroundColor: "var(--main-color)",
2095
+ color: "var(--white)",
2096
+ fontSize: "small"
2097
+ },
2098
+ class: l(t.$style.category),
2099
+ style: { "grid-area": "category" }
2100
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0)
2101
+ ];
2102
+ }),
2103
+ _: 1
2104
+ }, 8, ["class", "path"])) : p("", !0);
2105
+ }
2106
+ }), mn = "_container_1g9t2_1", yn = "_thumbnail_1g9t2_6", gn = "_pickup_1g9t2_10", hn = "_category_1g9t2_15", bn = "_date_1g9t2_19", $n = "_author_1g9t2_20", fn = "_heading_1g9t2_41", vn = "_excerpt_1g9t2_62", kn = {
2107
+ container: mn,
2108
+ thumbnail: yn,
2109
+ pickup: gn,
2110
+ category: hn,
2111
+ date: bn,
2112
+ author: $n,
2113
+ heading: fn,
2114
+ excerpt: vn
2115
+ }, pn = {
2116
+ $style: kn
2117
+ }, Ne = /* @__PURE__ */ S(dn, [["__cssModules", pn]]), _n = /* @__PURE__ */ w({
2118
+ __name: "Rounded",
2119
+ props: {
2120
+ article: {},
2121
+ path: {},
2122
+ isPickUpItem: { type: Boolean },
2123
+ postConfig: {},
2124
+ categories: {}
2125
+ },
2126
+ setup(e) {
2127
+ return (t, s) => e.article ? (n(), f(G, {
2128
+ key: 0,
2129
+ path: e.path,
2130
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }])
2131
+ }, {
2132
+ default: L(() => {
2133
+ var a;
2134
+ return [
2135
+ k(j, {
2136
+ article: e.article,
2137
+ class: l(t.$style.thumbnail),
2138
+ style: { "grid-area": "thumbnail" }
2139
+ }, null, 8, ["article", "class"]),
2140
+ k(A, {
2141
+ date: e.article.date,
2142
+ formatString: "yy.M.d",
2143
+ color: "var(--gray)",
2144
+ class: l(t.$style.date),
2145
+ style: { "grid-area": "date" }
2146
+ }, null, 8, ["date", "class"]),
2147
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2148
+ key: 0,
2149
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2150
+ thumbnail: {
2151
+ shape: "circle"
2152
+ },
2153
+ class: l(t.$style.author),
2154
+ direction: "row-reverse",
2155
+ style: { "grid-area": "author" }
2156
+ }, null, 8, ["avatarUrls", "class"])) : p("", !0),
2157
+ k(W, {
2158
+ heading: e.article.title.rendered,
2159
+ class: l(t.$style.heading),
2160
+ style: { "grid-area": "heading" }
2161
+ }, null, 8, ["heading", "class"]),
2162
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2163
+ key: 1,
2164
+ categoryIds: e.article.categories,
2165
+ categoryData: e.categories,
2166
+ icon: { color: "var(--main-color)" },
2167
+ label: {
2168
+ backgroundColor: "var(--main-color)",
2169
+ color: "var(--white)",
2170
+ fontSize: "small",
2171
+ shape: "rounded"
2172
+ },
2173
+ class: l(t.$style.category),
2174
+ style: { "grid-area": "category" }
2175
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2176
+ e.postConfig.tag ? (n(), f(F, {
2177
+ key: 2,
2178
+ article: e.article,
2179
+ icon: { color: "var(--sub-color)" },
2180
+ label: {
2181
+ backgroundColor: "var(--sub-color)",
2182
+ color: "var(--white)",
2183
+ fontSize: "smaller",
2184
+ shape: "rounded"
2185
+ },
2186
+ class: l(t.$style.tag),
2187
+ style: { "grid-area": "tag" }
2188
+ }, null, 8, ["article", "class"])) : p("", !0),
2189
+ k(Z, {
2190
+ excerpt: e.article.excerpt.rendered,
2191
+ class: l(t.$style.excerpt),
2192
+ style: { "grid-area": "excerpt" }
2193
+ }, null, 8, ["excerpt", "class"])
2194
+ ];
2195
+ }),
2196
+ _: 1
2197
+ }, 8, ["path", "class"])) : p("", !0);
2198
+ }
2199
+ }), xn = "_container_ouyg9_1", wn = "_thumbnail_ouyg9_7", Sn = "_pickup_ouyg9_11", Dn = "_heading_ouyg9_21", Mn = "_date_ouyg9_26", Cn = {
2200
+ container: xn,
2201
+ thumbnail: wn,
2202
+ pickup: Sn,
2203
+ heading: Dn,
2204
+ date: Mn
2205
+ }, zn = {
2206
+ $style: Cn
2207
+ }, Vn = /* @__PURE__ */ S(_n, [["__cssModules", zn]]), In = /* @__PURE__ */ w({
2208
+ __name: "Artistic",
2209
+ props: {
2210
+ article: {},
2211
+ path: {},
2212
+ isPickUpItem: { type: Boolean },
2213
+ postConfig: {},
2214
+ categories: {}
2215
+ },
2216
+ setup(e) {
2217
+ return (t, s) => (n(), $("div", {
2218
+ class: l([t.$style.wrapper, { [t.$style.pickup]: e.isPickUpItem }])
2219
+ }, [
2220
+ e.article ? (n(), f(G, {
2221
+ key: 0,
2222
+ class: l(t.$style.container),
2223
+ path: e.path
2224
+ }, {
2225
+ default: L(() => {
2226
+ var a;
2227
+ return [
2228
+ k(j, {
2229
+ article: e.article,
2230
+ aspectRatio: {
2231
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
2232
+ tablet: e.isPickUpItem ? "21/9" : "4/3",
2233
+ mobile: "4/3"
2234
+ },
2235
+ class: l(t.$style.thumbnail),
2236
+ style: { "grid-area": "thumbnail" }
2237
+ }, null, 8, ["article", "aspectRatio", "class"]),
2238
+ v("div", {
2239
+ class: l(t.$style.overlay)
2240
+ }, [
2241
+ k(Z, {
2242
+ excerpt: e.article.excerpt.rendered,
2243
+ class: l(t.$style.excerpt),
2244
+ color: "var(--white)",
2245
+ style: { "grid-area": "excerpt" }
2246
+ }, null, 8, ["excerpt", "class"])
2247
+ ], 2),
2248
+ k(A, {
2249
+ date: e.article.date,
2250
+ formatString: "yy.M.d",
2251
+ class: l(t.$style.date),
2252
+ style: { "grid-area": "date" }
2253
+ }, null, 8, ["date", "class"]),
2254
+ k(W, {
2255
+ heading: e.article.title.rendered,
2256
+ class: l(t.$style.heading),
2257
+ style: { "grid-area": "heading" }
2258
+ }, null, 8, ["heading", "class"]),
2259
+ e.postConfig.tag ? (n(), f(F, {
2260
+ key: 0,
2261
+ article: e.article,
2262
+ label: {
2263
+ color: "var(--text-color)",
2264
+ fontSize: "smaller"
2265
+ },
2266
+ class: l(t.$style.tag),
2267
+ delimiter: "/",
2268
+ style: { "grid-area": "tag" }
2269
+ }, null, 8, ["article", "class"])) : p("", !0),
2270
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2271
+ key: 1,
2272
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2273
+ thumbnail: {
2274
+ size: "large",
2275
+ shape: "circle"
2276
+ },
2277
+ class: l(t.$style.author),
2278
+ style: { "grid-area": "author" }
2279
+ }, null, 8, ["avatarUrls", "class"])) : p("", !0),
2280
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2281
+ key: 2,
2282
+ categoryIds: e.article.categories,
2283
+ categoryData: e.categories,
2284
+ label: {
2285
+ backgroundColor: "var(--main-color)",
2286
+ color: "var(--white)",
2287
+ fontSize: "small"
2288
+ },
2289
+ class: l(t.$style.category),
2290
+ style: { "grid-area": "category" }
2291
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0)
2292
+ ];
2293
+ }),
2294
+ _: 1
2295
+ }, 8, ["class", "path"])) : p("", !0)
2296
+ ], 2));
2297
+ }
2298
+ }), Nn = "_wrapper_1gqog_1", qn = "_container_1gqog_28", Bn = "_overlay_1gqog_31", Un = "_excerpt_1gqog_32", Tn = "_pickup_1gqog_36", Rn = "_thumbnail_1gqog_43", Ln = "_heading_1gqog_49", Pn = "_date_1gqog_50", En = "_tag_1gqog_51", An = "_author_1gqog_52", Gn = "_category_1gqog_53", jn = {
2299
+ wrapper: Nn,
2300
+ container: qn,
2301
+ overlay: Bn,
2302
+ excerpt: Un,
2303
+ pickup: Tn,
2304
+ thumbnail: Rn,
2305
+ heading: Ln,
2306
+ date: Pn,
2307
+ tag: En,
2308
+ author: An,
2309
+ category: Gn
2310
+ }, Hn = {
2311
+ $style: jn
2312
+ }, Wn = /* @__PURE__ */ S(In, [["__cssModules", Hn]]), On = /* @__PURE__ */ w({
2313
+ __name: "Tile",
2314
+ props: {
2315
+ article: {},
2316
+ path: {},
2317
+ isPickUpItem: { type: Boolean },
2318
+ postConfig: {},
2319
+ categories: {}
2320
+ },
2321
+ setup(e) {
2322
+ return (t, s) => e.article ? (n(), f(G, {
2323
+ key: 0,
2324
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2325
+ path: e.path
2326
+ }, {
2327
+ default: L(() => {
2328
+ var a;
2329
+ return [
2330
+ k(j, {
2331
+ article: e.article,
2332
+ aspectRatio: {
2333
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
2334
+ tablet: "4/3",
2335
+ mobile: "4/3"
2336
+ },
2337
+ class: l(t.$style.thumbnail),
2338
+ style: { "grid-area": "thumbnail" }
2339
+ }, null, 8, ["article", "aspectRatio", "class"]),
2340
+ k(A, {
2341
+ date: e.article.date,
2342
+ formatString: "yy.M.d",
2343
+ class: l(t.$style.date),
2344
+ style: { "grid-area": "date" }
2345
+ }, null, 8, ["date", "class"]),
2346
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2347
+ key: 0,
2348
+ categoryIds: e.article.categories,
2349
+ categoryData: e.categories,
2350
+ label: {
2351
+ color: "var(--main-color)",
2352
+ fontSize: "small"
2353
+ },
2354
+ class: l(t.$style.category),
2355
+ style: { "grid-area": "category" }
2356
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2357
+ k(W, {
2358
+ heading: e.article.title.rendered,
2359
+ class: l(t.$style.heading),
2360
+ style: { "grid-area": "heading" }
2361
+ }, null, 8, ["heading", "class"]),
2362
+ k(Z, {
2363
+ excerpt: e.article.excerpt.rendered,
2364
+ class: l(t.$style.excerpt),
2365
+ style: { "grid-area": "excerpt" }
2366
+ }, null, 8, ["excerpt", "class"]),
2367
+ e.postConfig.tag ? (n(), f(F, {
2368
+ key: 1,
2369
+ article: e.article,
2370
+ label: {
2371
+ color: "var(--gray)",
2372
+ fontSize: "small"
2373
+ },
2374
+ class: l(t.$style.tag),
2375
+ delimiter: "/",
2376
+ style: { "grid-area": "tag" }
2377
+ }, null, 8, ["article", "class"])) : p("", !0),
2378
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2379
+ key: 2,
2380
+ name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2381
+ class: l(t.$style.author),
2382
+ text: {
2383
+ color: "var(--gray)",
2384
+ fontWeight: "bold",
2385
+ preposition: "by"
2386
+ },
2387
+ style: { "grid-area": "author" }
2388
+ }, null, 8, ["name", "class"])) : p("", !0)
2389
+ ];
2390
+ }),
2391
+ _: 1
2392
+ }, 8, ["class", "path"])) : p("", !0);
2393
+ }
2394
+ }), Fn = "_container_9fac4_1", Zn = "_thumbnail_9fac4_12", Yn = "_pickup_9fac4_16", Kn = "_heading_9fac4_32", Xn = "_tag_9fac4_33", Jn = "_excerpt_9fac4_34", Qn = "_author_9fac4_35", er = "_date_9fac4_40", tr = "_category_9fac4_41", ar = {
2395
+ container: Fn,
2396
+ thumbnail: Zn,
2397
+ pickup: Yn,
2398
+ heading: Kn,
2399
+ tag: Xn,
2400
+ excerpt: Jn,
2401
+ author: Qn,
2402
+ date: er,
2403
+ category: tr
2404
+ }, lr = {
2405
+ $style: ar
2406
+ }, sr = /* @__PURE__ */ S(On, [["__cssModules", lr]]), or = /* @__PURE__ */ w({
2407
+ __name: "Simple",
2408
+ props: {
2409
+ article: {},
2410
+ path: {},
2411
+ isPickUpItem: { type: Boolean },
2412
+ postConfig: {},
2413
+ categories: {}
2414
+ },
2415
+ setup(e) {
2416
+ return (t, s) => e.article ? (n(), f(G, {
2417
+ key: 0,
2418
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2419
+ path: e.path
2420
+ }, {
2421
+ default: L(() => {
2422
+ var a;
2423
+ return [
2424
+ k(j, {
2425
+ article: e.article,
2426
+ aspectRatio: {
2427
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
2428
+ tablet: e.isPickUpItem ? "21/9" : "4/3",
2429
+ mobile: "4/3"
2430
+ },
2431
+ class: l(t.$style.thumbnail),
2432
+ style: { "grid-area": "thumbnail" }
2433
+ }, null, 8, ["article", "aspectRatio", "class"]),
2434
+ k(W, {
2435
+ heading: e.article.title.rendered,
2436
+ class: l(t.$style.heading),
2437
+ color: "var(--text-color)",
2438
+ style: { "grid-area": "heading" }
2439
+ }, null, 8, ["heading", "class"]),
2440
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2441
+ key: 0,
2442
+ name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2443
+ class: l(t.$style.author),
2444
+ text: {
2445
+ color: "var(--gray)",
2446
+ preposition: "by"
2447
+ },
2448
+ style: { "grid-area": "author" }
2449
+ }, null, 8, ["name", "class"])) : p("", !0),
2450
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2451
+ key: 1,
2452
+ categoryIds: e.article.categories,
2453
+ categoryData: e.categories,
2454
+ label: {
2455
+ color: "var(--gray)",
2456
+ fontSize: "small",
2457
+ fontWeight: "bold"
2458
+ },
2459
+ class: l(t.$style.category),
2460
+ style: { "grid-area": "category" }
2461
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2462
+ e.postConfig.tag ? (n(), f(F, {
2463
+ key: 2,
2464
+ article: e.article,
2465
+ label: {
2466
+ color: "var(--gray)",
2467
+ fontSize: "small",
2468
+ fontWeight: "bold"
2469
+ },
2470
+ class: l(t.$style.tag),
2471
+ style: { "grid-area": "tag" }
2472
+ }, null, 8, ["article", "class"])) : p("", !0),
2473
+ k(A, {
2474
+ date: e.article.date,
2475
+ formatString: "yy.M.d",
2476
+ color: "var(--gray)",
2477
+ class: l(t.$style.date),
2478
+ style: { "grid-area": "date" }
2479
+ }, null, 8, ["date", "class"]),
2480
+ k(Z, {
2481
+ excerpt: e.article.excerpt.rendered,
2482
+ class: l(t.$style.excerpt),
2483
+ style: { "grid-area": "excerpt" }
2484
+ }, null, 8, ["excerpt", "class"])
2485
+ ];
2486
+ }),
2487
+ _: 1
2488
+ }, 8, ["class", "path"])) : p("", !0);
2489
+ }
2490
+ }), nr = "_container_96xud_1", rr = "_thumbnail_96xud_8", ir = "_pickup_96xud_12", cr = "_heading_96xud_42", ur = "_date_96xud_43", dr = "_excerpt_96xud_64", mr = "_category_96xud_65", yr = "_tag_96xud_66", gr = "_author_96xud_67", hr = {
2491
+ container: nr,
2492
+ thumbnail: rr,
2493
+ pickup: ir,
2494
+ heading: cr,
2495
+ date: ur,
2496
+ excerpt: dr,
2497
+ category: mr,
2498
+ tag: yr,
2499
+ author: gr
2500
+ }, br = {
2501
+ $style: hr
2502
+ }, $r = /* @__PURE__ */ S(or, [["__cssModules", br]]), fr = /* @__PURE__ */ w({
2503
+ __name: "Row",
2504
+ props: {
2505
+ article: {},
2506
+ path: {},
2507
+ postConfig: {},
2508
+ categories: {}
2509
+ },
2510
+ setup(e) {
2511
+ return (t, s) => e.article ? (n(), f(G, {
2512
+ key: 0,
2513
+ class: l(t.$style.container),
2514
+ path: e.path
2515
+ }, {
2516
+ default: L(() => {
2517
+ var a, o;
2518
+ return [
2519
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2520
+ key: 0,
2521
+ categoryIds: e.article.categories,
2522
+ categoryData: e.categories,
2523
+ label: {
2524
+ color: "var(--gray)",
2525
+ fontSize: "clamp(24px, 0.55rem + 2.99vw, 40px)"
2526
+ },
2527
+ class: l(t.$style.category),
2528
+ style: { "grid-area": "category" }
2529
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2530
+ k(j, {
2531
+ article: e.article,
2532
+ aspectRatio: {
2533
+ desktop: "21/9",
2534
+ tablet: "21/9",
2535
+ mobile: "21/9"
2536
+ },
2537
+ class: l(t.$style.thumbnail),
2538
+ style: { "grid-area": "thumbnail" }
2539
+ }, null, 8, ["article", "class"]),
2540
+ k(A, {
2541
+ date: e.article.date,
2542
+ formatString: "yy.M.d",
2543
+ class: l(t.$style.date),
2544
+ color: "var(--gray)",
2545
+ style: { "grid-area": "date" }
2546
+ }, null, 8, ["date", "class"]),
2547
+ k(W, {
2548
+ heading: e.article.title.rendered,
2549
+ class: l(t.$style.heading),
2550
+ style: { "grid-area": "heading" }
2551
+ }, null, 8, ["heading", "class"]),
2552
+ k(Z, {
2553
+ excerpt: e.article.excerpt.rendered,
2554
+ class: l(t.$style.excerpt),
2555
+ fontSize: "small",
2556
+ style: { "grid-area": "excerpt" }
2557
+ }, null, 8, ["excerpt", "class"]),
2558
+ e.postConfig.tag ? (n(), f(F, {
2559
+ key: 1,
2560
+ article: e.article,
2561
+ label: {
2562
+ color: "var(--text-color)",
2563
+ fontSize: "small"
2564
+ },
2565
+ class: l(t.$style.tag),
2566
+ delimiter: "/",
2567
+ style: { "grid-area": "tag" }
2568
+ }, null, 8, ["article", "class"])) : p("", !0),
2569
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2570
+ key: 2,
2571
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2572
+ name: (o = z(q)(e.article)) == null ? void 0 : o.name,
2573
+ class: l(t.$style.author),
2574
+ text: {
2575
+ fontSize: "small",
2576
+ color: "var(--gray)"
2577
+ },
2578
+ style: { "grid-area": "author" }
2579
+ }, null, 8, ["avatarUrls", "name", "class"])) : p("", !0)
2580
+ ];
2581
+ }),
2582
+ _: 1
2583
+ }, 8, ["class", "path"])) : p("", !0);
2584
+ }
2585
+ }), vr = "_container_qon22_1", kr = "_thumbnail_qon22_34", pr = "_excerpt_qon22_40", _r = "_category_qon22_45", xr = "_heading_qon22_50", wr = "_tag_qon22_54", Sr = {
2586
+ container: vr,
2587
+ thumbnail: kr,
2588
+ excerpt: pr,
2589
+ category: _r,
2590
+ heading: xr,
2591
+ tag: wr
2592
+ }, Dr = {
2593
+ $style: Sr
2594
+ }, Mr = /* @__PURE__ */ S(fr, [["__cssModules", Dr]]), Cr = /* @__PURE__ */ w({
2595
+ __name: "News",
2596
+ props: {
2597
+ article: {},
2598
+ path: {},
2599
+ postConfig: {},
2600
+ categories: {}
2601
+ },
2602
+ setup(e) {
2603
+ return (t, s) => e.article ? (n(), f(G, {
2604
+ key: 0,
2605
+ class: l(t.$style.container),
2606
+ path: e.path
2607
+ }, {
2608
+ default: L(() => {
2609
+ var a;
2610
+ return [
2611
+ k(j, {
2612
+ article: e.article,
2613
+ aspectRatio: {
2614
+ desktop: "16/9",
2615
+ tablet: "4/3",
2616
+ mobile: "1/1"
2617
+ },
2618
+ class: l(t.$style.thumbnail),
2619
+ style: { "grid-area": "thumbnail" }
2620
+ }, null, 8, ["article", "class"]),
2621
+ k(A, {
2622
+ date: e.article.date,
2623
+ class: l(t.$style.date),
2624
+ formatString: "yyyy.M.d",
2625
+ fontWeight: "bold",
2626
+ style: { "grid-area": "date" }
2627
+ }, null, 8, ["date", "class"]),
2628
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2629
+ key: 0,
2630
+ categoryIds: e.article.categories,
2631
+ categoryData: e.categories,
2632
+ label: {
2633
+ color: "var(--main-color)",
2634
+ fontSize: "small"
2635
+ },
2636
+ class: l(t.$style.category),
2637
+ style: { "grid-area": "category" }
2638
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2639
+ k(W, {
2640
+ heading: e.article.title.rendered,
2641
+ class: l(t.$style.heading),
2642
+ style: { "grid-area": "heading" }
2643
+ }, null, 8, ["heading", "class"]),
2644
+ k(Z, {
2645
+ excerpt: e.article.excerpt.rendered,
2646
+ class: l(t.$style.excerpt),
2647
+ style: { "grid-area": "excerpt" }
2648
+ }, null, 8, ["excerpt", "class"]),
2649
+ e.postConfig.tag ? (n(), f(F, {
2650
+ key: 1,
2651
+ article: e.article,
2652
+ label: {
2653
+ color: "var(--gray)",
2654
+ fontSize: "small"
2655
+ },
2656
+ class: l(t.$style.tag),
2657
+ style: { "grid-area": "tag" }
2658
+ }, null, 8, ["article", "class"])) : p("", !0),
2659
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2660
+ key: 2,
2661
+ name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2662
+ class: l(t.$style.author),
2663
+ text: {
2664
+ color: "var(--gray)",
2665
+ preposition: "by"
2666
+ },
2667
+ fontSize: "small",
2668
+ style: { "grid-area": "author" }
2669
+ }, null, 8, ["name", "class"])) : p("", !0)
2670
+ ];
2671
+ }),
2672
+ _: 1
2673
+ }, 8, ["class", "path"])) : p("", !0);
2674
+ }
2675
+ }), zr = "_container_209hm_1", Vr = "_thumbnail_209hm_14", Ir = "_heading_209hm_22", Nr = "_category_209hm_30", qr = "_tag_209hm_31", Br = "_excerpt_209hm_44", Ur = "_author_209hm_52", Tr = {
2676
+ container: zr,
2677
+ thumbnail: Vr,
2678
+ heading: Ir,
2679
+ category: Nr,
2680
+ tag: qr,
2681
+ excerpt: Br,
2682
+ author: Ur
2683
+ }, Rr = {
2684
+ $style: Tr
2685
+ }, Lr = /* @__PURE__ */ S(Cr, [["__cssModules", Rr]]), Pr = /* @__PURE__ */ w({
2686
+ __name: "Entertainment",
2687
+ props: {
2688
+ article: {},
2689
+ path: {},
2690
+ isPickUpItem: { type: Boolean },
2691
+ postConfig: {},
2692
+ categories: {}
2693
+ },
2694
+ setup(e) {
2695
+ return (t, s) => e.article ? (n(), f(G, {
2696
+ key: 0,
2697
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2698
+ path: e.path
2699
+ }, {
2700
+ default: L(() => {
2701
+ var a;
2702
+ return [
2703
+ v("div", {
2704
+ class: l(t.$style.date)
2705
+ }, [
2706
+ k(A, {
2707
+ date: e.article.date,
2708
+ class: l(t.$style.year),
2709
+ formatString: "yyyy",
2710
+ fontSize: "medium",
2711
+ fontWeight: "bold",
2712
+ color: "var(--text-color)"
2713
+ }, null, 8, ["date", "class"]),
2714
+ k(A, {
2715
+ date: e.article.date,
2716
+ class: l(t.$style.month),
2717
+ formatString: "M",
2718
+ fontSize: "xxx-large",
2719
+ fontWeight: "bold",
2720
+ color: "var(--text-color)"
2721
+ }, null, 8, ["date", "class"]),
2722
+ k(A, {
2723
+ date: e.article.date,
2724
+ class: l(t.$style.day),
2725
+ formatString: "d",
2726
+ fontSize: "xxx-large",
2727
+ fontWeight: "bold",
2728
+ color: "var(--text-color)"
2729
+ }, null, 8, ["date", "class"])
2730
+ ], 2),
2731
+ k(j, {
2732
+ article: e.article,
2733
+ aspectRatio: {
2734
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
2735
+ tablet: e.isPickUpItem ? "16/9" : "4/3",
2736
+ mobile: (e.isPickUpItem, "4/3")
2737
+ },
2738
+ class: l(t.$style.thumbnail)
2739
+ }, null, 8, ["article", "aspectRatio", "class"]),
2740
+ v("div", {
2741
+ class: l(t.$style.contents)
2742
+ }, [
2743
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2744
+ key: 0,
2745
+ categoryIds: e.article.categories,
2746
+ categoryData: e.categories,
2747
+ label: {
2748
+ color: "var(--main-color)",
2749
+ fontSize: "small",
2750
+ fontWeight: "bold"
2751
+ },
2752
+ class: l(t.$style.category)
2753
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2754
+ k(W, {
2755
+ heading: e.article.title.rendered,
2756
+ class: l(t.$style.heading)
2757
+ }, null, 8, ["heading", "class"]),
2758
+ v("div", {
2759
+ class: l(t.$style.row)
2760
+ }, [
2761
+ e.postConfig.tag ? (n(), f(F, {
2762
+ key: 0,
2763
+ article: e.article,
2764
+ label: {
2765
+ color: "var(--text-color)",
2766
+ fontSize: "small"
2767
+ },
2768
+ class: l(t.$style.tag),
2769
+ delimiter: "/"
2770
+ }, null, 8, ["article", "class"])) : p("", !0),
2771
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2772
+ key: 1,
2773
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2774
+ class: l(t.$style.author),
2775
+ thumbnail: {
2776
+ size: "medium",
2777
+ shape: "circle"
2778
+ }
2779
+ }, null, 8, ["avatarUrls", "class"])) : p("", !0)
2780
+ ], 2),
2781
+ k(Z, {
2782
+ excerpt: e.article.excerpt.rendered,
2783
+ class: l(t.$style.excerpt)
2784
+ }, null, 8, ["excerpt", "class"])
2785
+ ], 2)
2786
+ ];
2787
+ }),
2788
+ _: 1
2789
+ }, 8, ["class", "path"])) : p("", !0);
2790
+ }
2791
+ }), Er = "_thumbnail_uuh1j_1", Ar = "_date_uuh1j_9", Gr = "_year_uuh1j_19", jr = "_month_uuh1j_23", Hr = "_day_uuh1j_24", Wr = "_contents_uuh1j_42", Or = "_category_uuh1j_53", Fr = "_heading_uuh1j_57", Zr = "_row_uuh1j_62", Yr = "_author_uuh1j_69", Kr = "_excerpt_uuh1j_73", Xr = "_container_uuh1j_82", Jr = "_pickup_uuh1j_93", Qr = {
2792
+ thumbnail: Er,
2793
+ date: Ar,
2794
+ year: Gr,
2795
+ month: jr,
2796
+ day: Hr,
2797
+ contents: Wr,
2798
+ category: Or,
2799
+ heading: Fr,
2800
+ row: Zr,
2801
+ author: Yr,
2802
+ excerpt: Kr,
2803
+ container: Xr,
2804
+ pickup: Jr
2805
+ }, ei = {
2806
+ $style: Qr
2807
+ }, ti = /* @__PURE__ */ S(Pr, [["__cssModules", ei]]), ai = /* @__PURE__ */ w({
2808
+ __name: "Gallery",
2809
+ props: {
2810
+ article: {},
2811
+ path: {},
2812
+ isPickUpItem: { type: Boolean },
2813
+ postConfig: {},
2814
+ categories: {}
2815
+ },
2816
+ setup(e) {
2817
+ return (t, s) => e.article ? (n(), f(G, {
2818
+ key: 0,
2819
+ class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2820
+ path: e.path
2821
+ }, {
2822
+ default: L(() => {
2823
+ var a;
2824
+ return [
2825
+ k(j, {
2826
+ article: e.article,
2827
+ aspectRatio: {
2828
+ desktop: e.isPickUpItem ? "2.85/1" : "4/3",
2829
+ tablet: e.isPickUpItem ? "16/9" : "4/3",
2830
+ mobile: (e.isPickUpItem, "4/3")
2831
+ },
2832
+ class: l(t.$style.thumbnail),
2833
+ style: { "grid-area": "thumbnail" }
2834
+ }, null, 8, ["article", "aspectRatio", "class"]),
2835
+ k(W, {
2836
+ heading: e.article.title.rendered,
2837
+ class: l(t.$style.heading),
2838
+ color: "var(--white)",
2839
+ style: { "grid-area": "heading" }
2840
+ }, null, 8, ["heading", "class"]),
2841
+ k(A, {
2842
+ date: e.article.date,
2843
+ class: l(t.$style.date),
2844
+ fontSize: e.isPickUpItem ? "medium" : "small",
2845
+ formatString: "yyyy.M.d",
2846
+ color: "var(--white)",
2847
+ fontWeight: "bold",
2848
+ style: { "grid-area": "date" }
2849
+ }, null, 8, ["date", "class", "fontSize"]),
2850
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2851
+ key: 0,
2852
+ name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2853
+ class: l(t.$style.author),
2854
+ text: {
2855
+ color: "var(--white)",
2856
+ fontSize: e.isPickUpItem ? "medium" : "small",
2857
+ fontWeight: "bold"
2858
+ },
2859
+ style: { "grid-area": "author" }
2860
+ }, null, 8, ["name", "class", "text"])) : p("", !0),
2861
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
2862
+ key: 1,
2863
+ categoryIds: e.article.categories,
2864
+ categoryData: e.categories,
2865
+ label: {
2866
+ color: "var(--white)",
2867
+ fontSize: e.isPickUpItem ? "medium" : "small"
2868
+ },
2869
+ class: l(t.$style.category),
2870
+ style: { "grid-area": "category" }
2871
+ }, null, 8, ["categoryIds", "categoryData", "label", "class"])) : p("", !0),
2872
+ e.postConfig.tag ? (n(), f(F, {
2873
+ key: 2,
2874
+ article: e.article,
2875
+ label: {
2876
+ color: "var(--white)",
2877
+ fontSize: e.isPickUpItem ? "medium" : "small"
2878
+ },
2879
+ class: l(t.$style.tag),
2880
+ delimiter: "/",
2881
+ style: { "grid-area": "tag" }
2882
+ }, null, 8, ["article", "label", "class"])) : p("", !0),
2883
+ k(Z, {
2884
+ excerpt: e.article.excerpt.rendered,
2885
+ class: l(t.$style.excerpt),
2886
+ color: "var(--white)",
2887
+ fontSize: "small",
2888
+ row: 2,
2889
+ style: { "grid-area": "excerpt" }
2890
+ }, null, 8, ["excerpt", "class"])
2891
+ ];
2892
+ }),
2893
+ _: 1
2894
+ }, 8, ["class", "path"])) : p("", !0);
2895
+ }
2896
+ }), li = "_container_1hse0_1", si = "_thumbnail_1hse0_16", oi = "_category_1hse0_20", ni = "_tag_1hse0_21", ri = "_excerpt_1hse0_22", ii = "_pickup_1hse0_53", ci = "_heading_1hse0_73", ui = "_date_1hse0_105", di = "_author_1hse0_106", mi = {
2897
+ container: li,
2898
+ thumbnail: si,
2899
+ category: oi,
2900
+ tag: ni,
2901
+ excerpt: ri,
2902
+ pickup: ii,
2903
+ heading: ci,
2904
+ date: ui,
2905
+ author: di
2906
+ }, yi = {
2907
+ $style: mi
2908
+ }, gi = /* @__PURE__ */ S(ai, [["__cssModules", yi]]), hi = /* @__PURE__ */ w({
2909
+ __name: "GenericArticleList",
2910
+ props: {
2911
+ articles: {},
2912
+ theme: {},
2913
+ categories: {},
2914
+ columnNumber: {},
2915
+ settings: {}
2916
+ },
2917
+ setup(e) {
2918
+ const t = e, s = M(() => t.settings.domainToUse), a = M(() => t.settings.isEnabledPickUp), o = M(
2919
+ () => Ze(t.settings.postConfig)
2920
+ ), c = M(() => {
2921
+ switch (t.theme) {
2922
+ case "standard":
2923
+ return Ne;
2924
+ case "rounded":
2925
+ return Vn;
2926
+ case "artistic":
2927
+ return Wn;
2928
+ case "tile":
2929
+ return sr;
2930
+ case "simple":
2931
+ return $r;
2932
+ case "row":
2933
+ return Mr;
2934
+ case "news":
2935
+ return Lr;
2936
+ case "gallery":
2937
+ return gi;
2938
+ case "entertainment":
2939
+ return ti;
2940
+ default:
2941
+ return Ne;
2942
+ }
2943
+ });
2944
+ return (u, m) => (n(), $("ul", {
2945
+ style: I({
2946
+ "--column-number": e.columnNumber,
2947
+ "--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
2948
+ }),
2949
+ class: l([u.$style.list, { [u.$style.pickup]: a.value }])
2950
+ }, [
2951
+ (n(!0), $(T, null, E(e.articles, (d, g) => (n(), $("li", {
2952
+ key: d.id,
2953
+ style: I({ animationDelay: `${Number(g) * 0.1}s` })
2954
+ }, [
2955
+ (n(), f(Le(c.value), {
2956
+ path: z(Fe)(o.value, s.value, d.id),
2957
+ article: d,
2958
+ isPickUpItem: Number(g) === 0 && a.value,
2959
+ postConfig: o.value,
2960
+ categories: e.categories
2961
+ }, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories"]))
2962
+ ], 4))), 128))
2963
+ ], 6));
2964
+ }
2965
+ }), bi = "_list_h2kvz_1", $i = "_fadeIn_h2kvz_1", fi = "_pickup_h2kvz_39", vi = {
2966
+ list: bi,
2967
+ fadeIn: $i,
2968
+ pickup: fi
2969
+ }, ki = {
2970
+ $style: vi
2971
+ }, Y = /* @__PURE__ */ S(hi, [["__cssModules", ki]]), pi = /* @__PURE__ */ w({
2972
+ __name: "Standard",
2973
+ props: {
2974
+ articles: {},
2975
+ categories: {},
2976
+ settings: {}
2977
+ },
2978
+ setup(e) {
2979
+ return (t, s) => (n(), f(Y, {
2980
+ theme: "standard",
2981
+ columnNumber: 3,
2982
+ articles: e.articles,
2983
+ categories: e.categories,
2984
+ settings: e.settings
2985
+ }, null, 8, ["articles", "categories", "settings"]));
2986
+ }
2987
+ }), _i = /* @__PURE__ */ w({
2988
+ __name: "Rounded",
2989
+ props: {
2990
+ articles: {},
2991
+ categories: {},
2992
+ settings: {}
2993
+ },
2994
+ setup(e) {
2995
+ return (t, s) => (n(), f(Y, {
2996
+ theme: "rounded",
2997
+ columnNumber: 3,
2998
+ articles: e.articles,
2999
+ categories: e.categories,
3000
+ settings: e.settings
3001
+ }, null, 8, ["articles", "categories", "settings"]));
3002
+ }
3003
+ }), xi = /* @__PURE__ */ w({
3004
+ __name: "Artistic",
3005
+ props: {
3006
+ articles: {},
3007
+ categories: {},
3008
+ settings: {}
3009
+ },
3010
+ setup(e) {
3011
+ return (t, s) => (n(), f(Y, {
3012
+ theme: "artistic",
3013
+ columnNumber: 3,
3014
+ articles: e.articles,
3015
+ categories: e.categories,
3016
+ settings: e.settings
3017
+ }, null, 8, ["articles", "categories", "settings"]));
3018
+ }
3019
+ }), wi = /* @__PURE__ */ w({
3020
+ __name: "Tile",
3021
+ props: {
3022
+ articles: {},
3023
+ categories: {},
3024
+ settings: {}
3025
+ },
3026
+ setup(e) {
3027
+ return (t, s) => (n(), f(Y, {
3028
+ theme: "tile",
3029
+ columnNumber: 3,
3030
+ articles: e.articles,
3031
+ categories: e.categories,
3032
+ settings: e.settings
3033
+ }, null, 8, ["articles", "categories", "settings"]));
3034
+ }
3035
+ }), Si = /* @__PURE__ */ w({
3036
+ __name: "Simple",
3037
+ props: {
3038
+ articles: {},
3039
+ categories: {},
3040
+ settings: {}
3041
+ },
3042
+ setup(e) {
3043
+ return (t, s) => (n(), f(Y, {
3044
+ theme: "simple",
3045
+ columnNumber: 3,
3046
+ articles: e.articles,
3047
+ categories: e.categories,
3048
+ settings: e.settings
3049
+ }, null, 8, ["articles", "categories", "settings"]));
3050
+ }
3051
+ }), Di = /* @__PURE__ */ w({
3052
+ __name: "Row",
3053
+ props: {
3054
+ articles: {},
3055
+ categories: {},
3056
+ settings: {}
3057
+ },
3058
+ setup(e) {
3059
+ return (t, s) => (n(), f(Y, {
3060
+ theme: "row",
3061
+ columnNumber: 1,
3062
+ articles: e.articles,
3063
+ categories: e.categories,
3064
+ settings: e.settings
3065
+ }, null, 8, ["articles", "categories", "settings"]));
3066
+ }
3067
+ }), Mi = /* @__PURE__ */ w({
3068
+ __name: "News",
3069
+ props: {
3070
+ articles: {},
3071
+ categories: {},
3072
+ settings: {}
3073
+ },
3074
+ setup(e) {
3075
+ return (t, s) => (n(), f(Y, {
3076
+ theme: "news",
3077
+ columnNumber: 1,
3078
+ articles: e.articles,
3079
+ categories: e.categories,
3080
+ settings: e.settings
3081
+ }, null, 8, ["articles", "categories", "settings"]));
3082
+ }
3083
+ }), Ci = /* @__PURE__ */ w({
3084
+ __name: "Entertainment",
3085
+ props: {
3086
+ articles: {},
3087
+ categories: {},
3088
+ settings: {}
3089
+ },
3090
+ setup(e) {
3091
+ return (t, s) => (n(), f(Y, {
3092
+ theme: "entertainment",
3093
+ columnNumber: 3,
3094
+ articles: e.articles,
3095
+ categories: e.categories,
3096
+ settings: e.settings
3097
+ }, null, 8, ["articles", "categories", "settings"]));
3098
+ }
3099
+ }), zi = /* @__PURE__ */ w({
3100
+ __name: "Gallery",
3101
+ props: {
3102
+ articles: {},
3103
+ categories: {},
3104
+ settings: {}
3105
+ },
3106
+ setup(e) {
3107
+ return (t, s) => (n(), f(Y, {
3108
+ theme: "gallery",
3109
+ columnNumber: 3,
3110
+ articles: e.articles,
3111
+ categories: e.categories,
3112
+ settings: e.settings
3113
+ }, null, 8, ["articles", "categories", "settings"]));
3114
+ }
3115
+ }), Vi = /* @__PURE__ */ w({
3116
+ __name: "Grid",
3117
+ props: {
3118
+ article: {},
3119
+ path: {},
3120
+ isPickUpItem: { type: Boolean },
3121
+ postConfig: {},
3122
+ categories: {},
3123
+ direction: {}
3124
+ },
3125
+ setup(e) {
3126
+ return (t, s) => e.article ? (n(), f(G, {
3127
+ key: 0,
3128
+ class: l([
3129
+ t.$style.container,
3130
+ { [t.$style.pickup]: e.isPickUpItem },
3131
+ t.$style[e.direction]
3132
+ ]),
3133
+ path: e.path
3134
+ }, {
3135
+ default: L(() => {
3136
+ var a;
3137
+ return [
3138
+ k(j, {
3139
+ article: e.article,
3140
+ aspectRatio: {
3141
+ desktop: e.isPickUpItem ? "21/9" : "4/3",
3142
+ tablet: e.isPickUpItem ? "21/9" : "4/3",
3143
+ mobile: "4/3"
3144
+ },
3145
+ class: l(t.$style.thumbnail),
3146
+ style: { "grid-area": "thumbnail" }
3147
+ }, null, 8, ["article", "aspectRatio", "class"]),
3148
+ v("div", {
3149
+ class: l(t.$style.date),
3150
+ style: { "grid-area": "date" }
3151
+ }, [
3152
+ k(A, {
3153
+ date: e.article.date,
3154
+ formatString: "M.d",
3155
+ color: "var(--white)",
3156
+ fontWeight: "bold"
3157
+ }, null, 8, ["date"]),
3158
+ k(A, {
3159
+ date: e.article.date,
3160
+ formatString: "yyyy",
3161
+ color: "var(--white)",
3162
+ fontWeight: "bold"
3163
+ }, null, 8, ["date"])
3164
+ ], 2),
3165
+ k(W, {
3166
+ heading: e.article.title.rendered,
3167
+ class: l(t.$style.heading),
3168
+ fontSize: e.isPickUpItem ? "large" : "medium",
3169
+ color: e.isPickUpItem && e.direction === "horizontal" ? "var(--white)" : "var(--text-color)",
3170
+ style: { "grid-area": "heading" }
3171
+ }, null, 8, ["heading", "class", "fontSize", "color"]),
3172
+ k(Z, {
3173
+ excerpt: e.article.excerpt.rendered,
3174
+ class: l(t.$style.excerpt),
3175
+ row: 2,
3176
+ fontSize: "small",
3177
+ style: { "grid-area": "excerpt" }
3178
+ }, null, 8, ["excerpt", "class"]),
3179
+ e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
3180
+ key: 0,
3181
+ avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
3182
+ thumbnail: {
3183
+ size: "large",
3184
+ shape: "square"
3185
+ },
3186
+ class: l(t.$style.author),
3187
+ style: { "grid-area": "author" }
3188
+ }, null, 8, ["avatarUrls", "class"])) : p("", !0),
3189
+ e.postConfig.category && e.article.categories ? (n(), f(O, {
3190
+ key: 1,
3191
+ categoryIds: e.article.categories,
3192
+ categoryData: e.categories,
3193
+ label: {
3194
+ color: "var(--gray)",
3195
+ fontSize: "smaller"
3196
+ },
3197
+ class: l(t.$style.category),
3198
+ style: { "grid-area": "category" }
3199
+ }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
3200
+ e.postConfig.tag ? (n(), f(F, {
3201
+ key: 2,
3202
+ article: e.article,
3203
+ label: {
3204
+ color: "var(--gray)",
3205
+ fontSize: "smaller"
3206
+ },
3207
+ class: l(t.$style.tag),
3208
+ style: { "grid-area": "tag" }
3209
+ }, null, 8, ["article", "class"])) : p("", !0)
3210
+ ];
3211
+ }),
3212
+ _: 1
3213
+ }, 8, ["class", "path"])) : p("", !0);
3214
+ }
3215
+ }), Ii = "_container_28x0r_1", Ni = "_horizontal_28x0r_14", qi = "_pickup_28x0r_19", Bi = "_thumbnail_28x0r_25", Ui = "_heading_28x0r_42", Ti = "_date_28x0r_43", Ri = "_excerpt_28x0r_58", Li = "_category_28x0r_59", Pi = "_tag_28x0r_60", Ei = "_author_28x0r_61", Ai = {
3216
+ container: Ii,
3217
+ horizontal: Ni,
3218
+ pickup: qi,
3219
+ thumbnail: Bi,
3220
+ heading: Ui,
3221
+ date: Ti,
3222
+ excerpt: Ri,
3223
+ category: Li,
3224
+ tag: Pi,
3225
+ author: Ei
3226
+ }, Gi = {
3227
+ $style: Ai
3228
+ }, ji = /* @__PURE__ */ S(Vi, [["__cssModules", Gi]]), Hi = /* @__PURE__ */ w({
3229
+ __name: "Grid",
3230
+ props: {
3231
+ articles: {},
3232
+ categories: {},
3233
+ columnNumber: {},
3234
+ settings: {}
3235
+ },
3236
+ setup(e) {
3237
+ const t = e, s = M(() => t.settings.domainToUse), a = M(() => t.settings.isEnabledPickUp), o = M(
3238
+ () => Ze(t.settings.postConfig)
3239
+ ), c = V(null), u = V(0), m = V(null), d = M(() => u.value > 992 ? t.columnNumber : u.value >= 576 && u.value <= 992 ? t.columnNumber - 1 : 1), g = (r) => {
3240
+ const i = r + 1, y = Number(d.value) - 1;
3241
+ return Math.ceil(i / y);
3242
+ }, h = (r) => {
3243
+ const i = r + 1, y = Number(d.value);
3244
+ if (i < y)
3245
+ return i;
3246
+ if (y === 1)
3247
+ return 1;
3248
+ const _ = i % (y - 1);
3249
+ return _ === 0 ? y - 1 : _;
3250
+ }, b = (r) => {
3251
+ if (d.value === 4) {
3252
+ const i = g(r), y = Array.from({ length: 49 }, (U, J) => J + 1).find(
3253
+ (U) => i <= U * 2
3254
+ ) || 0, _ = i - 1 + y;
3255
+ return D(r) === "vertical" ? `${Number(_)}/${Number(_) + 2}` : i % 2 ? `${Number(_)}/${Number(_) + 1}` : `${Number(_) + 1}/${Number(_) + 2}`;
3256
+ } else if (d.value === 3) {
3257
+ const i = r + 1, y = i % 3, _ = Math.floor(i / 3), U = y ? _ * 2 + 1 : _ * 2;
3258
+ return D(r) === "horizontal" ? `${Number(U)}/${Number(U) + 1}` : `${Number(U)}/${Number(U) + 2}`;
3259
+ }
3260
+ }, x = (r) => {
3261
+ const i = (r + 1) % 6, y = Number(d.value);
3262
+ if (y === 4) {
3263
+ const _ = h(r);
3264
+ switch (!0) {
3265
+ case (!r || i === 1):
3266
+ return "1/3";
3267
+ case !i:
3268
+ return "3/5";
3269
+ default:
3270
+ return g(r) % 2 ? `${_ + 1}/${_ + 2}` : `${_}/${_ + 1}`;
3271
+ }
3272
+ } else if (y === 3) {
3273
+ const _ = D(r) === "horizontal" ? 2 : 1;
3274
+ switch (i) {
3275
+ case 1:
3276
+ case 3:
3277
+ case 4:
3278
+ return `1/${1 + _}`;
3279
+ case 5:
3280
+ case 0:
3281
+ return `2/${2 + _}`;
3282
+ case 2:
3283
+ return `3/${3 + _}`;
3284
+ default:
3285
+ return "";
3286
+ }
3287
+ }
3288
+ return "";
3289
+ }, D = (r) => {
3290
+ if (d.value === 1)
3291
+ return "vertical";
3292
+ if (d.value === 3) {
3293
+ const y = (r + 1) % 6;
3294
+ return y !== 2 && y !== 4 ? "horizontal" : "vertical";
3295
+ } else {
3296
+ const i = x(r);
3297
+ if (!i.includes("/"))
3298
+ return "horizontal";
3299
+ const y = i.split("/").map(Number);
3300
+ return y[1] - y[0] >= 2 ? "horizontal" : "vertical";
3301
+ }
3302
+ };
3303
+ return K(() => {
3304
+ const r = new ResizeObserver((i) => {
3305
+ m.value && clearTimeout(m.value), m.value = setTimeout(() => {
3306
+ u.value = i[0].contentRect.width;
3307
+ }, 100);
3308
+ });
3309
+ c.value && r.observe(c.value), qe(() => {
3310
+ c.value && r.unobserve(c.value), r.disconnect(), m.value && clearTimeout(m.value);
3311
+ });
3312
+ }), (r, i) => (n(), $("ul", {
3313
+ ref_key: "listElement",
3314
+ ref: c,
3315
+ style: I({
3316
+ "--column-number": e.columnNumber,
3317
+ "--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
3318
+ }),
3319
+ class: l(r.$style.list)
3320
+ }, [
3321
+ (n(!0), $(T, null, E(e.articles, (y, _) => (n(), $("li", {
3322
+ key: y.id,
3323
+ class: l(r.$style.item),
3324
+ style: I({
3325
+ animationDelay: `${Number(_) * 0.1}s`,
3326
+ gridRow: b(Number(_)) || "auto",
3327
+ gridColumn: x(Number(_)) || "auto"
3328
+ })
3329
+ }, [
3330
+ k(ji, {
3331
+ path: z(Fe)(o.value, s.value, y.id),
3332
+ article: y,
3333
+ isPickUpItem: Number(_) === 0 && a.value,
3334
+ postConfig: o.value,
3335
+ categories: e.categories,
3336
+ direction: D(Number(_))
3337
+ }, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories", "direction"])
3338
+ ], 6))), 128))
3339
+ ], 6));
3340
+ }
3341
+ }), Wi = "_list_18syb_1", Oi = "_fadeIn_18syb_1", Fi = {
3342
+ list: Wi,
3343
+ fadeIn: Oi
3344
+ }, Zi = {
3345
+ $style: Fi
3346
+ }, Yi = /* @__PURE__ */ S(Hi, [["__cssModules", Zi]]), tc = {
3347
+ standard: {
3348
+ jaName: "スタンダード",
3349
+ enName: "Standard",
3350
+ columnNumber: 3,
3351
+ name: "Standard"
3352
+ },
3353
+ rounded: {
3354
+ jaName: "ポップ",
3355
+ enName: "Rounded",
3356
+ columnNumber: 3,
3357
+ name: "Rounded"
3358
+ },
3359
+ artistic: {
3360
+ jaName: "アート",
3361
+ enName: "Artistic",
3362
+ columnNumber: 3,
3363
+ name: "Artistic"
3364
+ },
3365
+ tile: {
3366
+ jaName: "タイル",
3367
+ enName: "Tile",
3368
+ columnNumber: 3,
3369
+ name: "Tile"
3370
+ },
3371
+ simple: {
3372
+ jaName: "シンプル",
3373
+ enName: "Simple",
3374
+ columnNumber: 3,
3375
+ name: "Simple"
3376
+ },
3377
+ row: {
3378
+ jaName: "ワイド",
3379
+ enName: "Row",
3380
+ columnNumber: 1,
3381
+ name: "Row"
3382
+ },
3383
+ news: {
3384
+ jaName: "ニュース",
3385
+ enName: "News",
3386
+ columnNumber: 1,
3387
+ name: "News"
3388
+ },
3389
+ grid: {
3390
+ jaName: "グリッド",
3391
+ enName: "Grid",
3392
+ columnNumber: 4,
3393
+ name: "Grid"
3394
+ },
3395
+ gallery: {
3396
+ jaName: "ギャラリー",
3397
+ enName: "Gallery",
3398
+ columnNumber: 3,
3399
+ name: "Gallery"
3400
+ },
3401
+ entertainment: {
3402
+ jaName: "エンタテインメント",
3403
+ enName: "Entertainment",
3404
+ columnNumber: 3,
3405
+ name: "Entertainment"
3406
+ }
3407
+ };
3408
+ class ac {
3409
+ constructor() {
3410
+ se(this, "store");
3411
+ /** 登録済みの入力がすべて有効かどうか */
3412
+ se(this, "isAllValid");
3413
+ /** 無効になっている入力の name 一覧 */
3414
+ se(this, "invalidNames");
3415
+ this.store = mt();
3416
+ const t = st(this.store.getSnapshot()), s = this.store.subscribe(() => {
3417
+ t.value = this.store.getSnapshot();
3418
+ });
3419
+ ot(s, !0), this.isAllValid = M(() => t.value.isAllValid), this.invalidNames = M(() => t.value.invalidNames);
3420
+ }
3421
+ /** 入力の状態を登録・更新する */
3422
+ setValid(t, s) {
3423
+ this.store.setValid(t, s);
3424
+ }
3425
+ /** 個別の入力が有効かどうか(未登録なら true) */
3426
+ isValid(t) {
3427
+ return this.store.isValid(t);
3428
+ }
3429
+ /** 管理対象から外す(コンポーネントのアンマウント時など) */
3430
+ remove(t) {
3431
+ this.store.remove(t);
3432
+ }
3433
+ /** すべての状態を破棄する */
3434
+ reset() {
3435
+ this.store.reset();
3436
+ }
3437
+ }
3438
+ const Ki = {
3439
+ TextBox: Ct,
3440
+ TextArea: Bt,
3441
+ BasicButton: Wt,
3442
+ SelectBox: ra,
3443
+ CheckBox: je,
3444
+ CheckBoxes: Ma,
3445
+ CheckButton: Ua,
3446
+ LabeledCheckbox: He,
3447
+ LabeledFieldset: ja,
3448
+ RadioButtons: Xa,
3449
+ ToggleButton: il,
3450
+ InputBox: te,
3451
+ InputGroup: gl,
3452
+ TextButton: We,
3453
+ DatePicker: ie,
3454
+ DateRangePicker: Gl,
3455
+ DateSelector: as,
3456
+ DropdownUi: ms,
3457
+ ModalBox: Ns,
3458
+ PopupBox: Ls,
3459
+ SlideDownUi: Ys,
3460
+ TabUI: lo,
3461
+ LoadingSpinner: Ae,
3462
+ ErrorMessage: X,
3463
+ StandardList: pi,
3464
+ RoundedList: _i,
3465
+ ArtisticList: xi,
3466
+ TileList: wi,
3467
+ SimpleList: Si,
3468
+ RowList: Di,
3469
+ NewsList: Mi,
3470
+ EntertainmentList: Ci,
3471
+ GalleryList: zi,
3472
+ GridList: Yi
3473
+ }, lc = {
3474
+ install(e) {
3475
+ Object.entries(Ki).forEach(([t, s]) => {
3476
+ e.component(t, s);
3477
+ });
3478
+ }
3479
+ };
3480
+ export {
3481
+ xi as ArtisticList,
3482
+ Wt as BasicButton,
3483
+ je as CheckBox,
3484
+ Ma as CheckBoxes,
3485
+ Ua as CheckButton,
3486
+ ie as DatePicker,
3487
+ Gl as DateRangePicker,
3488
+ as as DateSelector,
3489
+ ms as DropdownUi,
3490
+ Ci as EntertainmentList,
3491
+ X as ErrorMessage,
3492
+ ac as FormValidationManager,
3493
+ zi as GalleryList,
3494
+ Yi as GridList,
3495
+ te as InputBox,
3496
+ gl as InputGroup,
3497
+ tc as LIST_THEME,
3498
+ He as LabeledCheckbox,
3499
+ ja as LabeledFieldset,
3500
+ Ae as LoadingSpinner,
3501
+ Ns as ModalBox,
3502
+ Mi as NewsList,
3503
+ Ls as PopupBox,
3504
+ Xa as RadioButtons,
3505
+ _i as RoundedList,
3506
+ Di as RowList,
3507
+ ra as SelectBox,
3508
+ Si as SimpleList,
3509
+ Ys as SlideDownUi,
3510
+ pi as StandardList,
3511
+ lo as TabUI,
3512
+ Bt as TextArea,
3513
+ Ct as TextBox,
3514
+ We as TextButton,
3515
+ wi as TileList,
3516
+ il as ToggleButton,
3517
+ lc as default
3518
+ };