@geckou/ui-vue 0.4.0 → 0.6.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 (175) hide show
  1. package/README.md +52 -2
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/ArticleList/Card/Artistic.vue.js +9 -0
  4. package/dist/components/ArticleList/Card/Artistic.vue2.js +105 -0
  5. package/dist/components/ArticleList/Card/Artistic.vue3.js +27 -0
  6. package/dist/components/ArticleList/Card/Entertainment.vue.js +9 -0
  7. package/dist/components/ArticleList/Card/Entertainment.vue2.js +120 -0
  8. package/dist/components/ArticleList/Card/Entertainment.vue3.js +31 -0
  9. package/dist/components/ArticleList/Card/Gallery.vue.js +9 -0
  10. package/dist/components/ArticleList/Card/Gallery.vue2.js +103 -0
  11. package/dist/components/ArticleList/Card/Gallery.vue3.js +23 -0
  12. package/dist/components/ArticleList/Card/Grid.vue.js +9 -0
  13. package/dist/components/ArticleList/Card/Grid.vue2.js +114 -0
  14. package/dist/components/ArticleList/Card/Grid.vue3.js +25 -0
  15. package/dist/components/ArticleList/Card/News.vue.js +9 -0
  16. package/dist/components/ArticleList/Card/News.vue2.js +95 -0
  17. package/dist/components/ArticleList/Card/News.vue3.js +19 -0
  18. package/dist/components/ArticleList/Card/Rounded.vue.js +9 -0
  19. package/dist/components/ArticleList/Card/Rounded.vue2.js +96 -0
  20. package/dist/components/ArticleList/Card/Rounded.vue3.js +15 -0
  21. package/dist/components/ArticleList/Card/Row.vue.js +9 -0
  22. package/dist/components/ArticleList/Card/Row.vue2.js +97 -0
  23. package/dist/components/ArticleList/Card/Row.vue3.js +17 -0
  24. package/dist/components/ArticleList/Card/Simple.vue.js +9 -0
  25. package/dist/components/ArticleList/Card/Simple.vue2.js +98 -0
  26. package/dist/components/ArticleList/Card/Simple.vue3.js +23 -0
  27. package/dist/components/ArticleList/Card/Standard.vue.js +9 -0
  28. package/dist/components/ArticleList/Card/Standard.vue2.js +93 -0
  29. package/dist/components/ArticleList/Card/Standard.vue3.js +21 -0
  30. package/dist/components/ArticleList/Card/Tile.vue.js +9 -0
  31. package/dist/components/ArticleList/Card/Tile.vue2.js +96 -0
  32. package/dist/components/ArticleList/Card/Tile.vue3.js +23 -0
  33. package/dist/components/ArticleList/GenericArticleList.vue.js +9 -0
  34. package/dist/components/ArticleList/GenericArticleList.vue2.js +72 -0
  35. package/dist/components/ArticleList/GenericArticleList.vue3.js +11 -0
  36. package/dist/components/ArticleList/List/Artistic.vue.js +22 -0
  37. package/dist/components/ArticleList/List/Artistic.vue2.js +4 -0
  38. package/dist/components/ArticleList/List/Entertainment.vue.js +22 -0
  39. package/dist/components/ArticleList/List/Entertainment.vue2.js +4 -0
  40. package/dist/components/ArticleList/List/Gallery.vue.js +22 -0
  41. package/dist/components/ArticleList/List/Gallery.vue2.js +4 -0
  42. package/dist/components/ArticleList/List/Grid.vue.js +9 -0
  43. package/dist/components/ArticleList/List/Grid.vue2.js +120 -0
  44. package/dist/components/ArticleList/List/Grid.vue3.js +9 -0
  45. package/dist/components/ArticleList/List/News.vue.js +22 -0
  46. package/dist/components/ArticleList/List/News.vue2.js +4 -0
  47. package/dist/components/ArticleList/List/Rounded.vue.js +22 -0
  48. package/dist/components/ArticleList/List/Rounded.vue2.js +4 -0
  49. package/dist/components/ArticleList/List/Row.vue.js +22 -0
  50. package/dist/components/ArticleList/List/Row.vue2.js +4 -0
  51. package/dist/components/ArticleList/List/Simple.vue.js +22 -0
  52. package/dist/components/ArticleList/List/Simple.vue2.js +4 -0
  53. package/dist/components/ArticleList/List/Standard.vue.js +22 -0
  54. package/dist/components/ArticleList/List/Standard.vue2.js +4 -0
  55. package/dist/components/ArticleList/List/Tile.vue.js +22 -0
  56. package/dist/components/ArticleList/List/Tile.vue2.js +4 -0
  57. package/dist/components/ArticleList/Parts/AuthorInfo.vue.js +9 -0
  58. package/dist/components/ArticleList/Parts/AuthorInfo.vue2.js +64 -0
  59. package/dist/components/ArticleList/Parts/AuthorInfo.vue3.js +11 -0
  60. package/dist/components/ArticleList/Parts/CardContainer.vue.js +9 -0
  61. package/dist/components/ArticleList/Parts/CardContainer.vue2.js +18 -0
  62. package/dist/components/ArticleList/Parts/CardContainer.vue3.js +7 -0
  63. package/dist/components/ArticleList/Parts/CardHeading.vue.js +9 -0
  64. package/dist/components/ArticleList/Parts/CardHeading.vue2.js +25 -0
  65. package/dist/components/ArticleList/Parts/CardHeading.vue3.js +7 -0
  66. package/dist/components/ArticleList/Parts/CategoryList.vue.js +38 -0
  67. package/dist/components/ArticleList/Parts/CategoryList.vue2.js +4 -0
  68. package/dist/components/ArticleList/Parts/ExcerptText.vue.js +9 -0
  69. package/dist/components/ArticleList/Parts/ExcerptText.vue2.js +24 -0
  70. package/dist/components/ArticleList/Parts/ExcerptText.vue3.js +7 -0
  71. package/dist/components/ArticleList/Parts/MetadataList.vue.js +9 -0
  72. package/dist/components/ArticleList/Parts/MetadataList.vue2.js +62 -0
  73. package/dist/components/ArticleList/Parts/MetadataList.vue3.js +17 -0
  74. package/dist/components/ArticleList/Parts/NoImage.vue.js +9 -0
  75. package/dist/components/ArticleList/Parts/NoImage.vue2.js +16 -0
  76. package/dist/components/ArticleList/Parts/NoImage.vue3.js +7 -0
  77. package/dist/components/ArticleList/Parts/PostedDate.vue.js +9 -0
  78. package/dist/components/ArticleList/Parts/PostedDate.vue2.js +28 -0
  79. package/dist/components/ArticleList/Parts/PostedDate.vue3.js +7 -0
  80. package/dist/components/ArticleList/Parts/TagList.vue.js +32 -0
  81. package/dist/components/ArticleList/Parts/TagList.vue2.js +4 -0
  82. package/dist/components/ArticleList/Parts/ThumbnailImage.vue.js +9 -0
  83. package/dist/components/ArticleList/Parts/ThumbnailImage.vue2.js +50 -0
  84. package/dist/components/ArticleList/Parts/ThumbnailImage.vue3.js +7 -0
  85. package/dist/components/BasicButton.vue.js +9 -0
  86. package/dist/components/BasicButton.vue2.js +71 -0
  87. package/dist/components/BasicButton.vue3.js +11 -0
  88. package/dist/components/CheckBox.vue.d.ts +8 -0
  89. package/dist/components/CheckBox.vue.js +9 -0
  90. package/dist/components/CheckBox.vue2.js +76 -0
  91. package/dist/components/CheckBox.vue3.js +11 -0
  92. package/dist/components/CheckBoxes.vue.js +9 -0
  93. package/dist/components/CheckBoxes.vue2.js +104 -0
  94. package/dist/components/CheckBoxes.vue3.js +7 -0
  95. package/dist/components/CheckButton.vue.js +9 -0
  96. package/dist/components/CheckButton.vue2.js +54 -0
  97. package/dist/components/CheckButton.vue3.js +11 -0
  98. package/dist/components/DatePicker.vue.js +9 -0
  99. package/dist/components/DatePicker.vue2.js +137 -0
  100. package/dist/components/DatePicker.vue3.js +15 -0
  101. package/dist/components/DateRangePicker.vue.js +9 -0
  102. package/dist/components/DateRangePicker.vue2.js +74 -0
  103. package/dist/components/DateRangePicker.vue3.js +9 -0
  104. package/dist/components/DateSelector.vue.d.ts +5 -0
  105. package/dist/components/DateSelector.vue.js +9 -0
  106. package/dist/components/DateSelector.vue2.js +174 -0
  107. package/dist/components/DateSelector.vue3.js +13 -0
  108. package/dist/components/DropdownUi.vue.d.ts +1 -0
  109. package/dist/components/DropdownUi.vue.js +9 -0
  110. package/dist/components/DropdownUi.vue2.js +65 -0
  111. package/dist/components/DropdownUi.vue3.js +15 -0
  112. package/dist/components/ErrorMessage.vue.js +9 -0
  113. package/dist/components/ErrorMessage.vue2.js +30 -0
  114. package/dist/components/ErrorMessage.vue3.js +7 -0
  115. package/dist/components/Icon/CalendarIcon.vue.js +15 -0
  116. package/dist/components/Icon/CheckIcon.vue.js +15 -0
  117. package/dist/components/Icon/CloseIcon.vue.js +15 -0
  118. package/dist/components/Icon/Folder.vue.js +15 -0
  119. package/dist/components/Icon/Image.vue.js +21 -0
  120. package/dist/components/Icon/KeyboardArrowDownIcon.vue.js +15 -0
  121. package/dist/components/Icon/Tag.vue.js +15 -0
  122. package/dist/components/InputBox.vue.js +9 -0
  123. package/dist/components/InputBox.vue2.js +62 -0
  124. package/dist/components/InputBox.vue3.js +7 -0
  125. package/dist/components/InputGroup.vue.js +17 -0
  126. package/dist/components/InputGroup.vue2.js +7 -0
  127. package/dist/components/LabeledCheckbox.vue.js +9 -0
  128. package/dist/components/LabeledCheckbox.vue2.js +60 -0
  129. package/dist/components/LabeledCheckbox.vue3.js +9 -0
  130. package/dist/components/LabeledFieldset.vue.js +9 -0
  131. package/dist/components/LabeledFieldset.vue2.js +29 -0
  132. package/dist/components/LabeledFieldset.vue3.js +11 -0
  133. package/dist/components/LoadingSpinner.vue.js +15 -0
  134. package/dist/components/ModalBox.vue.d.ts +22 -16
  135. package/dist/components/ModalBox.vue.js +9 -0
  136. package/dist/components/ModalBox.vue2.js +85 -0
  137. package/dist/components/ModalBox.vue3.js +23 -0
  138. package/dist/components/PopupBox.vue.js +9 -0
  139. package/dist/components/PopupBox.vue2.js +35 -0
  140. package/dist/components/PopupBox.vue3.js +15 -0
  141. package/dist/components/RadioButtons.vue.js +9 -0
  142. package/dist/components/RadioButtons.vue2.js +75 -0
  143. package/dist/components/RadioButtons.vue3.js +11 -0
  144. package/dist/components/SelectBox.vue.js +9 -0
  145. package/dist/components/SelectBox.vue2.js +109 -0
  146. package/dist/components/SelectBox.vue3.js +9 -0
  147. package/dist/components/SlideDownUi.vue.js +9 -0
  148. package/dist/components/SlideDownUi.vue2.js +66 -0
  149. package/dist/components/SlideDownUi.vue3.js +17 -0
  150. package/dist/components/TabUI.vue.d.ts +0 -20
  151. package/dist/components/TabUI.vue.js +9 -0
  152. package/dist/components/TabUI.vue2.js +77 -0
  153. package/dist/components/TabUI.vue3.js +9 -0
  154. package/dist/components/TextArea.vue.js +9 -0
  155. package/dist/components/TextArea.vue2.js +82 -0
  156. package/dist/components/TextArea.vue3.js +7 -0
  157. package/dist/components/TextBox.vue.js +9 -0
  158. package/dist/components/TextBox.vue2.js +76 -0
  159. package/dist/components/TextBox.vue3.js +7 -0
  160. package/dist/components/TextButton.vue.js +9 -0
  161. package/dist/components/TextButton.vue2.js +24 -0
  162. package/dist/components/TextButton.vue3.js +7 -0
  163. package/dist/components/ToggleButton.vue.d.ts +12 -9
  164. package/dist/components/ToggleButton.vue.js +9 -0
  165. package/dist/components/ToggleButton.vue2.js +94 -0
  166. package/dist/components/ToggleButton.vue3.js +13 -0
  167. package/dist/const/list-theme.js +65 -0
  168. package/dist/index.js +112 -3514
  169. package/dist/scripts/form-validation-manager.js +38 -0
  170. package/dist/scripts/unique-id.d.ts +4 -0
  171. package/dist/scripts/unique-id.js +9 -0
  172. package/dist/scripts/use-click-outside.js +13 -0
  173. package/dist/scripts/utils.js +21 -0
  174. package/dist/style.css +1 -1
  175. package/package.json +8 -5
package/dist/index.js CHANGED
@@ -1,3519 +1,117 @@
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
- type: { default: "tab" },
1577
- initialIndex: { default: 0 }
1578
- },
1579
- setup(e) {
1580
- 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) => {
1581
- var x;
1582
- u.value = t.tabs[b].key, (x = m.value[b]) == null || x.focus();
1583
- }, h = (b) => {
1584
- if (b.key !== "ArrowLeft" && b.key !== "ArrowRight")
1585
- return;
1586
- const x = t.tabs.findIndex(
1587
- (r) => r.key === u.value
1588
- );
1589
- if (x === -1)
1590
- return;
1591
- b.preventDefault();
1592
- const D = t.tabs.length - 1;
1593
- b.key === "ArrowLeft" ? g(x > 0 ? x - 1 : D) : g(x < D ? x + 1 : 0);
1594
- };
1595
- return (b, x) => {
1596
- var D, r;
1597
- return n(), $("div", null, [
1598
- v("div", {
1599
- class: l(b.$style.tabs),
1600
- style: I({
1601
- "--active-color": ((D = e.color) == null ? void 0 : D.active) || z(C).blue,
1602
- "--background-color": ((r = e.color) == null ? void 0 : r.background) || "transparent"
1603
- }),
1604
- role: "tablist",
1605
- onKeydown: h
1606
- }, [
1607
- (n(!0), $(T, null, E(e.tabs, (i, y) => (n(), $("button", {
1608
- id: a(i.key),
1609
- key: i.key,
1610
- ref_for: !0,
1611
- ref: (_) => {
1612
- _ && (m.value[y] = _);
1613
- },
1614
- role: "tab",
1615
- "aria-controls": o(i.key),
1616
- "aria-selected": u.value === i.key,
1617
- tabindex: u.value === i.key ? 0 : -1,
1618
- class: l({ [b.$style.active]: u.value === i.key }),
1619
- onClick: (_) => d(i.key)
1620
- }, [
1621
- N(b.$slots, i.key),
1622
- b.$slots[i.key] ? p("", !0) : (n(), $(T, { key: 0 }, [
1623
- Te(R(i.label), 1)
1624
- ], 64))
1625
- ], 10, Ks))), 128))
1626
- ], 38),
1627
- (n(!0), $(T, null, E(e.tabs, (i) => P((n(), $("div", {
1628
- id: o(i.key),
1629
- key: `${i.key}_panel`,
1630
- role: "tabpanel",
1631
- "aria-labelledby": a(i.key)
1632
- }, [
1633
- N(b.$slots, `${i.key}Contents`)
1634
- ], 8, Xs)), [
1635
- [ce, u.value === i.key]
1636
- ])), 128))
1637
- ]);
1638
- };
1639
- }
1640
- }), Qs = "_tabs_1d9po_1", eo = "_active_1d9po_12", to = {
1641
- tabs: Qs,
1642
- active: eo
1643
- }, ao = {
1644
- $style: to
1645
- }, lo = /* @__PURE__ */ S(Js, [["__cssModules", ao]]), q = (e) => {
1646
- var t, s;
1647
- return (s = (t = e == null ? void 0 : e._embedded) == null ? void 0 : t.author) == null ? void 0 : s[0];
1648
- }, so = (e) => {
1649
- var s, a;
1650
- return (((a = (s = e == null ? void 0 : e._embedded) == null ? void 0 : s["wp:term"]) == null ? void 0 : a[1]) ?? []).map((o) => o.name);
1651
- }, Fe = (e, t, s) => {
1652
- const a = String(t).replace(/\/+$/, ""), o = String(e.article_page_path ?? "").replace(/^\/+/, "");
1653
- return `https://${a}/${o}?${e.query_key_name}=${s}`;
1654
- }, Ze = (e) => ({
1655
- ...e,
1656
- author: (e == null ? void 0 : e.author) ?? (e == null ? void 0 : e.useAuthor) ?? !1,
1657
- category: (e == null ? void 0 : e.category) ?? (e == null ? void 0 : e.useCategory) ?? !1,
1658
- tag: (e == null ? void 0 : e.tag) ?? (e == null ? void 0 : e.useTag) ?? !1
1659
- }), oo = ["href"], no = /* @__PURE__ */ w({
1660
- __name: "CardContainer",
1661
- props: {
1662
- path: {}
1663
- },
1664
- setup(e) {
1665
- return (t, s) => (n(), $("a", {
1666
- href: e.path,
1667
- class: l(t.$style.container)
1668
- }, [
1669
- N(t.$slots, "default")
1670
- ], 10, oo));
1671
- }
1672
- }), ro = "_container_15pug_1", io = {
1673
- container: ro
1674
- }, co = {
1675
- $style: io
1676
- }, G = /* @__PURE__ */ S(no, [["__cssModules", co]]), uo = {}, mo = {
1677
- xmlns: "http://www.w3.org/2000/svg",
1678
- viewBox: "0 0 24 24"
1679
- };
1680
- function yo(e, t) {
1681
- return n(), $("svg", mo, [...t[0] || (t[0] = [
1682
- v("circle", {
1683
- cx: "7.499",
1684
- cy: "9.5",
1685
- r: "1.5"
1686
- }, null, -1),
1687
- v("path", { d: "m10.499 14-1.5-2-3 4h12l-4.5-6z" }, null, -1),
1688
- 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)
1689
- ])]);
1690
- }
1691
- const go = /* @__PURE__ */ S(uo, [["render", yo]]), ho = /* @__PURE__ */ w({
1692
- __name: "NoImage",
1693
- setup(e) {
1694
- return (t, s) => (n(), $("div", {
1695
- class: l(t.$style.no_image)
1696
- }, [
1697
- k(go),
1698
- s[0] || (s[0] = v("span", null, "No Image", -1))
1699
- ], 2));
1700
- }
1701
- }), bo = "_no_image_3evh4_1", $o = {
1702
- no_image: bo
1703
- }, fo = {
1704
- $style: $o
1705
- }, vo = /* @__PURE__ */ S(ho, [["__cssModules", fo]]), ko = ["srcset", "alt"], po = /* @__PURE__ */ w({
1706
- __name: "ThumbnailImage",
1707
- props: {
1708
- article: {},
1709
- aspectRatio: { default: () => ({
1710
- desktop: "4/3",
1711
- tablet: "4/3",
1712
- mobile: "4/3"
1713
- }) }
1714
- },
1715
- setup(e) {
1716
- const t = e, s = M(
1717
- () => {
1718
- var c, u, m;
1719
- return ((m = (u = (c = t.article) == null ? void 0 : c._embedded) == null ? void 0 : u["wp:featuredmedia"]) == null ? void 0 : m[0]) || {};
1720
- }
1721
- ), a = (c) => {
1722
- var m, d, g;
1723
- const u = (m = s.value.media_details) == null ? void 0 : m.sizes;
1724
- 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) ?? "";
1725
- }, o = M(
1726
- () => `${a("full")} 1024w, ${a("thumbnail")} 640w`
1727
- );
1728
- return (c, u) => {
1729
- var m;
1730
- return n(), $("div", {
1731
- style: I({
1732
- "--desktop-aspect--ratio": e.aspectRatio.desktop,
1733
- "--tablet-aspect--ratio": e.aspectRatio.tablet,
1734
- "--mobile-aspect--ratio": e.aspectRatio.mobile
1735
- }),
1736
- class: l(c.$style.container)
1737
- }, [
1738
- a("full") ? (n(), $("img", {
1739
- key: 0,
1740
- srcset: o.value,
1741
- sizes: "(min-width: 640px) 50vw, 100vw",
1742
- alt: ((m = s.value) == null ? void 0 : m.alt_text) ?? "記事サムネイル",
1743
- loading: "lazy",
1744
- class: l(c.$style.image)
1745
- }, null, 10, ko)) : (n(), f(vo, { key: 1 }))
1746
- ], 6);
1747
- };
1748
- }
1749
- }), _o = "_container_2ogwb_1", xo = {
1750
- container: _o
1751
- }, wo = {
1752
- $style: xo
1753
- }, j = /* @__PURE__ */ S(po, [["__cssModules", wo]]), So = ["src", "srcset", "alt"], Do = ["data-preposition"], Mo = /* @__PURE__ */ w({
1754
- __name: "AuthorInfo",
1755
- props: {
1756
- avatarUrls: { default: null },
1757
- name: { default: "" },
1758
- direction: { default: "row" },
1759
- thumbnail: { default: () => ({
1760
- size: "medium",
1761
- shape: "square"
1762
- }) },
1763
- text: { default: () => ({
1764
- color: "var(--gray)",
1765
- fontSize: "medium",
1766
- fontWeight: "normal",
1767
- preposition: ""
1768
- }) }
1769
- },
1770
- setup(e) {
1771
- const t = e, s = M(() => {
1772
- const o = t.avatarUrls;
1773
- if (!o)
1774
- return;
1775
- const c = [
1776
- { url: o[96], width: "1024w" },
1777
- { url: o[48], width: "640w" }
1778
- ].filter((u) => !!u.url);
1779
- if (c.length !== 0)
1780
- return c.map((u) => `${u.url} ${u.width}`).join(", ");
1781
- }), a = M(() => {
1782
- const o = t.avatarUrls;
1783
- if (o)
1784
- return o[96] ?? o[48];
1785
- });
1786
- return (o, c) => (n(), $("div", {
1787
- class: l(o.$style.author_info),
1788
- style: I({
1789
- "--author-info-direction": e.direction,
1790
- "--author-name-color": e.text.color,
1791
- "--author-name-font-size": e.text.fontSize,
1792
- "--author-name-font-weight": e.text.fontWeight
1793
- })
1794
- }, [
1795
- a.value ? (n(), $("img", {
1796
- key: 0,
1797
- src: a.value,
1798
- srcset: s.value,
1799
- alt: `${e.name} thumbnail`,
1800
- loading: "lazy",
1801
- class: l([o.$style.thumbnail, o.$style[e.thumbnail.shape ?? "square"]]),
1802
- style: I({
1803
- "--thumbnail-size": e.thumbnail.size === "small" ? "calc(var(--bv) * 3)" : e.thumbnail.size === "large" ? "calc(var(--bv) * 6)" : "calc(var(--bv) * 4)"
1804
- })
1805
- }, null, 14, So)) : p("", !0),
1806
- e.name ? (n(), $("span", {
1807
- key: 1,
1808
- "data-preposition": e.text.preposition
1809
- }, R(e.name), 9, Do)) : p("", !0)
1810
- ], 6));
1811
- }
1812
- }), Co = "_author_info_c6l8f_1", zo = "_thumbnail_c6l8f_8", Vo = "_circle_c6l8f_13", Io = {
1813
- author_info: Co,
1814
- thumbnail: zo,
1815
- circle: Vo
1816
- }, No = {
1817
- $style: Io
1818
- }, H = /* @__PURE__ */ S(Mo, [["__cssModules", No]]), qo = /* @__PURE__ */ w({
1819
- __name: "CardHeading",
1820
- props: {
1821
- heading: {},
1822
- color: { default: "var(--primary-color)" },
1823
- fontSize: { default: "larger" },
1824
- fontWeight: { default: "bold" }
1825
- },
1826
- setup(e) {
1827
- return (t, s) => (n(), $("div", {
1828
- class: l(t.$style.heading),
1829
- style: I({
1830
- "--heading-color": e.color,
1831
- "--heading-font-size": e.fontSize,
1832
- "--heading-font-weight": e.fontWeight
1833
- })
1834
- }, [
1835
- v("h2", null, R(e.heading), 1)
1836
- ], 6));
1837
- }
1838
- }), Bo = "_heading_wp258_1", Uo = {
1839
- heading: Bo
1840
- }, To = {
1841
- $style: Uo
1842
- }, W = /* @__PURE__ */ S(qo, [["__cssModules", To]]), Ro = {}, Lo = {
1843
- xmlns: "http://www.w3.org/2000/svg",
1844
- viewBox: "0 0 24 24"
1845
- };
1846
- function Po(e, t) {
1847
- return n(), $("svg", Lo, [...t[0] || (t[0] = [
1848
- 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)
1849
- ])]);
1850
- }
1851
- const Eo = /* @__PURE__ */ S(Ro, [["render", Po]]), Ao = {}, Go = {
1852
- xmlns: "http://www.w3.org/2000/svg",
1853
- viewBox: "0 0 24 24"
1854
- };
1855
- function jo(e, t) {
1856
- return n(), $("svg", Go, [...t[0] || (t[0] = [
1857
- 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)
1858
- ])]);
1859
- }
1860
- const Ho = /* @__PURE__ */ S(Ao, [["render", jo]]), Wo = ["data-delimiter"], Oo = /* @__PURE__ */ w({
1861
- __name: "MetadataList",
1862
- props: {
1863
- metadata: {},
1864
- icon: { default: () => ({
1865
- name: null,
1866
- color: "var(--disable-text-color)",
1867
- size: "medium"
1868
- }) },
1869
- label: { default: () => ({
1870
- backgroundColor: "transparent",
1871
- color: "var(--text-color)",
1872
- fontSize: "var(--fs-small)",
1873
- fontWeight: "normal",
1874
- shape: "square"
1875
- }) },
1876
- delimiter: { default: "" }
1877
- },
1878
- setup(e) {
1879
- const s = e.icon.name === "FolderIcon" ? Eo : Ho;
1880
- return (a, o) => e.metadata.length ? (n(), $("div", {
1881
- key: 0,
1882
- class: l(a.$style.metadata_list),
1883
- style: I({ "--icon-color": e.icon.color })
1884
- }, [
1885
- e.icon.name ? (n(), f(Le(z(s)), {
1886
- key: 0,
1887
- class: l(a.$style.icon),
1888
- style: I({
1889
- "--icon-color": e.icon.color,
1890
- "--icon-size": e.icon.size === "small" ? "var(--small-icon-size)" : "var(--medium-icon-size)"
1891
- })
1892
- }, null, 8, ["class", "style"])) : p("", !0),
1893
- v("ul", {
1894
- class: l(a.$style.list)
1895
- }, [
1896
- (n(!0), $(T, null, E(e.metadata, (c) => (n(), $("li", {
1897
- key: c,
1898
- class: l([
1899
- a.$style.list_item,
1900
- a.$style[e.label.shape ?? "square"],
1901
- { [a.$style.delimiter]: e.delimiter }
1902
- ]),
1903
- style: I({
1904
- "--label-padding": !e.label.backgroundColor || e.label.backgroundColor === "transparent" ? "0px" : "var(--sp-min) var(--sp-small)",
1905
- "--label-background-color": e.label.backgroundColor ?? "transparent",
1906
- "--label-color": e.label.color ?? "var(--text-color)",
1907
- "--label-font-size": e.label.fontSize ?? "var(--fs-small)",
1908
- "--label-font-weight": e.label.fontWeight ?? "normal"
1909
- }),
1910
- "data-delimiter": e.delimiter
1911
- }, R(c), 15, Wo))), 128))
1912
- ], 2)
1913
- ], 6)) : p("", !0);
1914
- }
1915
- }), 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 = {
1916
- metadata_list: Fo,
1917
- icon: Zo,
1918
- list: Yo,
1919
- list_item: Ko,
1920
- rounded: Xo,
1921
- delimiter: Jo
1922
- }, en = {
1923
- $style: Qo
1924
- }, Ye = /* @__PURE__ */ S(Oo, [["__cssModules", en]]), O = /* @__PURE__ */ w({
1925
- __name: "CategoryList",
1926
- props: {
1927
- categoryIds: {},
1928
- categoryData: {},
1929
- icon: {},
1930
- label: {},
1931
- delimiter: {}
1932
- },
1933
- setup(e) {
1934
- const t = e, s = (o, c) => {
1935
- var u;
1936
- return o.length ? ((u = o.find((m) => m.id === c)) == null ? void 0 : u.name) ?? "" : "";
1937
- }, a = M(
1938
- () => t.categoryIds.map(
1939
- (o) => s(t.categoryData, o)
1940
- )
1941
- );
1942
- return (o, c) => {
1943
- var u, m, d;
1944
- return n(), f(Ye, {
1945
- metadata: a.value,
1946
- icon: {
1947
- name: (u = e.icon) != null && u.color ? "FolderIcon" : null,
1948
- color: (m = e.icon) == null ? void 0 : m.color,
1949
- size: (d = e.icon) == null ? void 0 : d.size
1950
- },
1951
- label: e.label,
1952
- delimiter: e.delimiter
1953
- }, null, 8, ["metadata", "icon", "label", "delimiter"]);
1954
- };
1955
- }
1956
- }), F = /* @__PURE__ */ w({
1957
- __name: "TagList",
1958
- props: {
1959
- article: {},
1960
- icon: {},
1961
- label: {},
1962
- delimiter: {}
1963
- },
1964
- setup(e) {
1965
- const t = e, s = M(() => so(t.article));
1966
- return (a, o) => {
1967
- var c, u, m;
1968
- return s.value.length ? (n(), f(Ye, {
1969
- key: 0,
1970
- metadata: s.value,
1971
- icon: {
1972
- name: (c = e.icon) != null && c.color ? "TagIcon" : null,
1973
- color: (u = e.icon) == null ? void 0 : u.color,
1974
- size: (m = e.icon) == null ? void 0 : m.size
1975
- },
1976
- label: e.label,
1977
- delimiter: e.delimiter
1978
- }, null, 8, ["metadata", "icon", "label", "delimiter"])) : p("", !0);
1979
- };
1980
- }
1981
- }), tn = /* @__PURE__ */ w({
1982
- __name: "PostedDate",
1983
- props: {
1984
- date: {},
1985
- formatString: { default: "yyyy/MM/dd" },
1986
- color: { default: "var(--text-color)" },
1987
- fontSize: { default: "small" },
1988
- fontWeight: { default: "normal" }
1989
- },
1990
- setup(e) {
1991
- const t = e, s = M(() => yt(t.date));
1992
- return (a, o) => (n(), $("time", {
1993
- class: l(a.$style.posted_date),
1994
- style: I({
1995
- "--date-color": e.color,
1996
- "--date-font-size": e.fontSize,
1997
- "--date-font-weight": e.fontWeight
1998
- })
1999
- }, R(z(gt)(s.value, e.formatString)), 7));
2000
- }
2001
- }), an = "_posted_date_108g0_1", ln = {
2002
- posted_date: an
2003
- }, sn = {
2004
- $style: ln
2005
- }, A = /* @__PURE__ */ S(tn, [["__cssModules", sn]]), on = ["innerHTML"], nn = /* @__PURE__ */ w({
2006
- __name: "ExcerptText",
2007
- props: {
2008
- excerpt: {},
2009
- color: { default: "var(--text-color)" },
2010
- fontSize: { default: "medium" },
2011
- row: { default: 3 }
2012
- },
2013
- setup(e) {
2014
- return (t, s) => (n(), $("div", {
2015
- class: l(t.$style.excerpt),
2016
- style: I({
2017
- "--excerpt-color": e.color,
2018
- "--excerpt-font-size": e.fontSize,
2019
- "--excerpt-row": e.row
2020
- }),
2021
- innerHTML: e.excerpt
2022
- }, null, 14, on));
2023
- }
2024
- }), rn = "_excerpt_hmmtv_1", cn = {
2025
- excerpt: rn
2026
- }, un = {
2027
- $style: cn
2028
- }, Z = /* @__PURE__ */ S(nn, [["__cssModules", un]]), dn = /* @__PURE__ */ w({
2029
- __name: "Standard",
2030
- props: {
2031
- article: {},
2032
- path: {},
2033
- isPickUpItem: { type: Boolean },
2034
- postConfig: {},
2035
- categories: {}
2036
- },
2037
- setup(e) {
2038
- return (t, s) => e.article ? (n(), f(G, {
2039
- key: 0,
2040
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2041
- path: e.path
2042
- }, {
2043
- default: L(() => {
2044
- var a, o;
2045
- return [
2046
- k(j, {
2047
- article: e.article,
2048
- aspectRatio: {
2049
- desktop: e.isPickUpItem ? "2.85/1" : "4/3",
2050
- tablet: e.isPickUpItem ? "2.85/1" : "4/3",
2051
- mobile: "4/3"
2052
- },
2053
- class: l(t.$style.thumbnail),
2054
- style: { "grid-area": "thumbnail" }
2055
- }, null, 8, ["article", "aspectRatio", "class"]),
2056
- k(W, {
2057
- heading: e.article.title.rendered,
2058
- class: l(t.$style.heading),
2059
- style: { "grid-area": "heading" }
2060
- }, null, 8, ["heading", "class"]),
2061
- e.postConfig.tag ? (n(), f(F, {
2062
- key: 0,
2063
- article: e.article,
2064
- label: {
2065
- color: "var(--gray)",
2066
- fontSize: "smaller"
2067
- },
2068
- class: l(t.$style.tag),
2069
- style: { "grid-area": "tag" }
2070
- }, null, 8, ["article", "class"])) : p("", !0),
2071
- k(Z, {
2072
- excerpt: e.article.excerpt.rendered,
2073
- class: l(t.$style.excerpt),
2074
- style: { "grid-area": "excerpt" }
2075
- }, null, 8, ["excerpt", "class"]),
2076
- k(A, {
2077
- date: e.article.date,
2078
- class: l(t.$style.date),
2079
- formatString: "yy.M.d",
2080
- color: "var(--gray)",
2081
- style: { "grid-area": "date" }
2082
- }, null, 8, ["date", "class"]),
2083
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2084
- key: 1,
2085
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2086
- name: (o = z(q)(e.article)) == null ? void 0 : o.name,
2087
- class: l(t.$style.author),
2088
- style: { "grid-area": "author" }
2089
- }, null, 8, ["avatarUrls", "name", "class"])) : p("", !0),
2090
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2091
- key: 2,
2092
- categoryIds: e.article.categories,
2093
- categoryData: e.categories,
2094
- label: {
2095
- backgroundColor: "var(--main-color)",
2096
- color: "var(--white)",
2097
- fontSize: "small"
2098
- },
2099
- class: l(t.$style.category),
2100
- style: { "grid-area": "category" }
2101
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0)
2102
- ];
2103
- }),
2104
- _: 1
2105
- }, 8, ["class", "path"])) : p("", !0);
2106
- }
2107
- }), 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 = {
2108
- container: mn,
2109
- thumbnail: yn,
2110
- pickup: gn,
2111
- category: hn,
2112
- date: bn,
2113
- author: $n,
2114
- heading: fn,
2115
- excerpt: vn
2116
- }, pn = {
2117
- $style: kn
2118
- }, Ne = /* @__PURE__ */ S(dn, [["__cssModules", pn]]), _n = /* @__PURE__ */ w({
2119
- __name: "Rounded",
2120
- props: {
2121
- article: {},
2122
- path: {},
2123
- isPickUpItem: { type: Boolean },
2124
- postConfig: {},
2125
- categories: {}
2126
- },
2127
- setup(e) {
2128
- return (t, s) => e.article ? (n(), f(G, {
2129
- key: 0,
2130
- path: e.path,
2131
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }])
2132
- }, {
2133
- default: L(() => {
2134
- var a;
2135
- return [
2136
- k(j, {
2137
- article: e.article,
2138
- class: l(t.$style.thumbnail),
2139
- style: { "grid-area": "thumbnail" }
2140
- }, null, 8, ["article", "class"]),
2141
- k(A, {
2142
- date: e.article.date,
2143
- formatString: "yy.M.d",
2144
- color: "var(--gray)",
2145
- class: l(t.$style.date),
2146
- style: { "grid-area": "date" }
2147
- }, null, 8, ["date", "class"]),
2148
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2149
- key: 0,
2150
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2151
- thumbnail: {
2152
- shape: "circle"
2153
- },
2154
- class: l(t.$style.author),
2155
- direction: "row-reverse",
2156
- style: { "grid-area": "author" }
2157
- }, null, 8, ["avatarUrls", "class"])) : p("", !0),
2158
- k(W, {
2159
- heading: e.article.title.rendered,
2160
- class: l(t.$style.heading),
2161
- style: { "grid-area": "heading" }
2162
- }, null, 8, ["heading", "class"]),
2163
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2164
- key: 1,
2165
- categoryIds: e.article.categories,
2166
- categoryData: e.categories,
2167
- icon: { color: "var(--main-color)" },
2168
- label: {
2169
- backgroundColor: "var(--main-color)",
2170
- color: "var(--white)",
2171
- fontSize: "small",
2172
- shape: "rounded"
2173
- },
2174
- class: l(t.$style.category),
2175
- style: { "grid-area": "category" }
2176
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2177
- e.postConfig.tag ? (n(), f(F, {
2178
- key: 2,
2179
- article: e.article,
2180
- icon: { color: "var(--sub-color)" },
2181
- label: {
2182
- backgroundColor: "var(--sub-color)",
2183
- color: "var(--white)",
2184
- fontSize: "smaller",
2185
- shape: "rounded"
2186
- },
2187
- class: l(t.$style.tag),
2188
- style: { "grid-area": "tag" }
2189
- }, null, 8, ["article", "class"])) : p("", !0),
2190
- k(Z, {
2191
- excerpt: e.article.excerpt.rendered,
2192
- class: l(t.$style.excerpt),
2193
- style: { "grid-area": "excerpt" }
2194
- }, null, 8, ["excerpt", "class"])
2195
- ];
2196
- }),
2197
- _: 1
2198
- }, 8, ["path", "class"])) : p("", !0);
2199
- }
2200
- }), xn = "_container_ouyg9_1", wn = "_thumbnail_ouyg9_7", Sn = "_pickup_ouyg9_11", Dn = "_heading_ouyg9_21", Mn = "_date_ouyg9_26", Cn = {
2201
- container: xn,
2202
- thumbnail: wn,
2203
- pickup: Sn,
2204
- heading: Dn,
2205
- date: Mn
2206
- }, zn = {
2207
- $style: Cn
2208
- }, Vn = /* @__PURE__ */ S(_n, [["__cssModules", zn]]), In = /* @__PURE__ */ w({
2209
- __name: "Artistic",
2210
- props: {
2211
- article: {},
2212
- path: {},
2213
- isPickUpItem: { type: Boolean },
2214
- postConfig: {},
2215
- categories: {}
2216
- },
2217
- setup(e) {
2218
- return (t, s) => (n(), $("div", {
2219
- class: l([t.$style.wrapper, { [t.$style.pickup]: e.isPickUpItem }])
2220
- }, [
2221
- e.article ? (n(), f(G, {
2222
- key: 0,
2223
- class: l(t.$style.container),
2224
- path: e.path
2225
- }, {
2226
- default: L(() => {
2227
- var a;
2228
- return [
2229
- k(j, {
2230
- article: e.article,
2231
- aspectRatio: {
2232
- desktop: e.isPickUpItem ? "21/9" : "4/3",
2233
- tablet: e.isPickUpItem ? "21/9" : "4/3",
2234
- mobile: "4/3"
2235
- },
2236
- class: l(t.$style.thumbnail),
2237
- style: { "grid-area": "thumbnail" }
2238
- }, null, 8, ["article", "aspectRatio", "class"]),
2239
- v("div", {
2240
- class: l(t.$style.overlay)
2241
- }, [
2242
- k(Z, {
2243
- excerpt: e.article.excerpt.rendered,
2244
- class: l(t.$style.excerpt),
2245
- color: "var(--white)",
2246
- style: { "grid-area": "excerpt" }
2247
- }, null, 8, ["excerpt", "class"])
2248
- ], 2),
2249
- k(A, {
2250
- date: e.article.date,
2251
- formatString: "yy.M.d",
2252
- class: l(t.$style.date),
2253
- style: { "grid-area": "date" }
2254
- }, null, 8, ["date", "class"]),
2255
- k(W, {
2256
- heading: e.article.title.rendered,
2257
- class: l(t.$style.heading),
2258
- style: { "grid-area": "heading" }
2259
- }, null, 8, ["heading", "class"]),
2260
- e.postConfig.tag ? (n(), f(F, {
2261
- key: 0,
2262
- article: e.article,
2263
- label: {
2264
- color: "var(--text-color)",
2265
- fontSize: "smaller"
2266
- },
2267
- class: l(t.$style.tag),
2268
- delimiter: "/",
2269
- style: { "grid-area": "tag" }
2270
- }, null, 8, ["article", "class"])) : p("", !0),
2271
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2272
- key: 1,
2273
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2274
- thumbnail: {
2275
- size: "large",
2276
- shape: "circle"
2277
- },
2278
- class: l(t.$style.author),
2279
- style: { "grid-area": "author" }
2280
- }, null, 8, ["avatarUrls", "class"])) : p("", !0),
2281
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2282
- key: 2,
2283
- categoryIds: e.article.categories,
2284
- categoryData: e.categories,
2285
- label: {
2286
- backgroundColor: "var(--main-color)",
2287
- color: "var(--white)",
2288
- fontSize: "small"
2289
- },
2290
- class: l(t.$style.category),
2291
- style: { "grid-area": "category" }
2292
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0)
2293
- ];
2294
- }),
2295
- _: 1
2296
- }, 8, ["class", "path"])) : p("", !0)
2297
- ], 2));
2298
- }
2299
- }), 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 = {
2300
- wrapper: Nn,
2301
- container: qn,
2302
- overlay: Bn,
2303
- excerpt: Un,
2304
- pickup: Tn,
2305
- thumbnail: Rn,
2306
- heading: Ln,
2307
- date: Pn,
2308
- tag: En,
2309
- author: An,
2310
- category: Gn
2311
- }, Hn = {
2312
- $style: jn
2313
- }, Wn = /* @__PURE__ */ S(In, [["__cssModules", Hn]]), On = /* @__PURE__ */ w({
2314
- __name: "Tile",
2315
- props: {
2316
- article: {},
2317
- path: {},
2318
- isPickUpItem: { type: Boolean },
2319
- postConfig: {},
2320
- categories: {}
2321
- },
2322
- setup(e) {
2323
- return (t, s) => e.article ? (n(), f(G, {
2324
- key: 0,
2325
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2326
- path: e.path
2327
- }, {
2328
- default: L(() => {
2329
- var a;
2330
- return [
2331
- k(j, {
2332
- article: e.article,
2333
- aspectRatio: {
2334
- desktop: e.isPickUpItem ? "21/9" : "4/3",
2335
- tablet: "4/3",
2336
- mobile: "4/3"
2337
- },
2338
- class: l(t.$style.thumbnail),
2339
- style: { "grid-area": "thumbnail" }
2340
- }, null, 8, ["article", "aspectRatio", "class"]),
2341
- k(A, {
2342
- date: e.article.date,
2343
- formatString: "yy.M.d",
2344
- class: l(t.$style.date),
2345
- style: { "grid-area": "date" }
2346
- }, null, 8, ["date", "class"]),
2347
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2348
- key: 0,
2349
- categoryIds: e.article.categories,
2350
- categoryData: e.categories,
2351
- label: {
2352
- color: "var(--main-color)",
2353
- fontSize: "small"
2354
- },
2355
- class: l(t.$style.category),
2356
- style: { "grid-area": "category" }
2357
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2358
- k(W, {
2359
- heading: e.article.title.rendered,
2360
- class: l(t.$style.heading),
2361
- style: { "grid-area": "heading" }
2362
- }, null, 8, ["heading", "class"]),
2363
- k(Z, {
2364
- excerpt: e.article.excerpt.rendered,
2365
- class: l(t.$style.excerpt),
2366
- style: { "grid-area": "excerpt" }
2367
- }, null, 8, ["excerpt", "class"]),
2368
- e.postConfig.tag ? (n(), f(F, {
2369
- key: 1,
2370
- article: e.article,
2371
- label: {
2372
- color: "var(--gray)",
2373
- fontSize: "small"
2374
- },
2375
- class: l(t.$style.tag),
2376
- delimiter: "/",
2377
- style: { "grid-area": "tag" }
2378
- }, null, 8, ["article", "class"])) : p("", !0),
2379
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2380
- key: 2,
2381
- name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2382
- class: l(t.$style.author),
2383
- text: {
2384
- color: "var(--gray)",
2385
- fontWeight: "bold",
2386
- preposition: "by"
2387
- },
2388
- style: { "grid-area": "author" }
2389
- }, null, 8, ["name", "class"])) : p("", !0)
2390
- ];
2391
- }),
2392
- _: 1
2393
- }, 8, ["class", "path"])) : p("", !0);
2394
- }
2395
- }), 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 = {
2396
- container: Fn,
2397
- thumbnail: Zn,
2398
- pickup: Yn,
2399
- heading: Kn,
2400
- tag: Xn,
2401
- excerpt: Jn,
2402
- author: Qn,
2403
- date: er,
2404
- category: tr
2405
- }, lr = {
2406
- $style: ar
2407
- }, sr = /* @__PURE__ */ S(On, [["__cssModules", lr]]), or = /* @__PURE__ */ w({
2408
- __name: "Simple",
2409
- props: {
2410
- article: {},
2411
- path: {},
2412
- isPickUpItem: { type: Boolean },
2413
- postConfig: {},
2414
- categories: {}
2415
- },
2416
- setup(e) {
2417
- return (t, s) => e.article ? (n(), f(G, {
2418
- key: 0,
2419
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2420
- path: e.path
2421
- }, {
2422
- default: L(() => {
2423
- var a;
2424
- return [
2425
- k(j, {
2426
- article: e.article,
2427
- aspectRatio: {
2428
- desktop: e.isPickUpItem ? "21/9" : "4/3",
2429
- tablet: e.isPickUpItem ? "21/9" : "4/3",
2430
- mobile: "4/3"
2431
- },
2432
- class: l(t.$style.thumbnail),
2433
- style: { "grid-area": "thumbnail" }
2434
- }, null, 8, ["article", "aspectRatio", "class"]),
2435
- k(W, {
2436
- heading: e.article.title.rendered,
2437
- class: l(t.$style.heading),
2438
- color: "var(--text-color)",
2439
- style: { "grid-area": "heading" }
2440
- }, null, 8, ["heading", "class"]),
2441
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2442
- key: 0,
2443
- name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2444
- class: l(t.$style.author),
2445
- text: {
2446
- color: "var(--gray)",
2447
- preposition: "by"
2448
- },
2449
- style: { "grid-area": "author" }
2450
- }, null, 8, ["name", "class"])) : p("", !0),
2451
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2452
- key: 1,
2453
- categoryIds: e.article.categories,
2454
- categoryData: e.categories,
2455
- label: {
2456
- color: "var(--gray)",
2457
- fontSize: "small",
2458
- fontWeight: "bold"
2459
- },
2460
- class: l(t.$style.category),
2461
- style: { "grid-area": "category" }
2462
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2463
- e.postConfig.tag ? (n(), f(F, {
2464
- key: 2,
2465
- article: e.article,
2466
- label: {
2467
- color: "var(--gray)",
2468
- fontSize: "small",
2469
- fontWeight: "bold"
2470
- },
2471
- class: l(t.$style.tag),
2472
- style: { "grid-area": "tag" }
2473
- }, null, 8, ["article", "class"])) : p("", !0),
2474
- k(A, {
2475
- date: e.article.date,
2476
- formatString: "yy.M.d",
2477
- color: "var(--gray)",
2478
- class: l(t.$style.date),
2479
- style: { "grid-area": "date" }
2480
- }, null, 8, ["date", "class"]),
2481
- k(Z, {
2482
- excerpt: e.article.excerpt.rendered,
2483
- class: l(t.$style.excerpt),
2484
- style: { "grid-area": "excerpt" }
2485
- }, null, 8, ["excerpt", "class"])
2486
- ];
2487
- }),
2488
- _: 1
2489
- }, 8, ["class", "path"])) : p("", !0);
2490
- }
2491
- }), 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 = {
2492
- container: nr,
2493
- thumbnail: rr,
2494
- pickup: ir,
2495
- heading: cr,
2496
- date: ur,
2497
- excerpt: dr,
2498
- category: mr,
2499
- tag: yr,
2500
- author: gr
2501
- }, br = {
2502
- $style: hr
2503
- }, $r = /* @__PURE__ */ S(or, [["__cssModules", br]]), fr = /* @__PURE__ */ w({
2504
- __name: "Row",
2505
- props: {
2506
- article: {},
2507
- path: {},
2508
- postConfig: {},
2509
- categories: {}
2510
- },
2511
- setup(e) {
2512
- return (t, s) => e.article ? (n(), f(G, {
2513
- key: 0,
2514
- class: l(t.$style.container),
2515
- path: e.path
2516
- }, {
2517
- default: L(() => {
2518
- var a, o;
2519
- return [
2520
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2521
- key: 0,
2522
- categoryIds: e.article.categories,
2523
- categoryData: e.categories,
2524
- label: {
2525
- color: "var(--gray)",
2526
- fontSize: "clamp(24px, 0.55rem + 2.99vw, 40px)"
2527
- },
2528
- class: l(t.$style.category),
2529
- style: { "grid-area": "category" }
2530
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2531
- k(j, {
2532
- article: e.article,
2533
- aspectRatio: {
2534
- desktop: "21/9",
2535
- tablet: "21/9",
2536
- mobile: "21/9"
2537
- },
2538
- class: l(t.$style.thumbnail),
2539
- style: { "grid-area": "thumbnail" }
2540
- }, null, 8, ["article", "class"]),
2541
- k(A, {
2542
- date: e.article.date,
2543
- formatString: "yy.M.d",
2544
- class: l(t.$style.date),
2545
- color: "var(--gray)",
2546
- style: { "grid-area": "date" }
2547
- }, null, 8, ["date", "class"]),
2548
- k(W, {
2549
- heading: e.article.title.rendered,
2550
- class: l(t.$style.heading),
2551
- style: { "grid-area": "heading" }
2552
- }, null, 8, ["heading", "class"]),
2553
- k(Z, {
2554
- excerpt: e.article.excerpt.rendered,
2555
- class: l(t.$style.excerpt),
2556
- fontSize: "small",
2557
- style: { "grid-area": "excerpt" }
2558
- }, null, 8, ["excerpt", "class"]),
2559
- e.postConfig.tag ? (n(), f(F, {
2560
- key: 1,
2561
- article: e.article,
2562
- label: {
2563
- color: "var(--text-color)",
2564
- fontSize: "small"
2565
- },
2566
- class: l(t.$style.tag),
2567
- delimiter: "/",
2568
- style: { "grid-area": "tag" }
2569
- }, null, 8, ["article", "class"])) : p("", !0),
2570
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2571
- key: 2,
2572
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2573
- name: (o = z(q)(e.article)) == null ? void 0 : o.name,
2574
- class: l(t.$style.author),
2575
- text: {
2576
- fontSize: "small",
2577
- color: "var(--gray)"
2578
- },
2579
- style: { "grid-area": "author" }
2580
- }, null, 8, ["avatarUrls", "name", "class"])) : p("", !0)
2581
- ];
2582
- }),
2583
- _: 1
2584
- }, 8, ["class", "path"])) : p("", !0);
2585
- }
2586
- }), 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 = {
2587
- container: vr,
2588
- thumbnail: kr,
2589
- excerpt: pr,
2590
- category: _r,
2591
- heading: xr,
2592
- tag: wr
2593
- }, Dr = {
2594
- $style: Sr
2595
- }, Mr = /* @__PURE__ */ S(fr, [["__cssModules", Dr]]), Cr = /* @__PURE__ */ w({
2596
- __name: "News",
2597
- props: {
2598
- article: {},
2599
- path: {},
2600
- postConfig: {},
2601
- categories: {}
2602
- },
2603
- setup(e) {
2604
- return (t, s) => e.article ? (n(), f(G, {
2605
- key: 0,
2606
- class: l(t.$style.container),
2607
- path: e.path
2608
- }, {
2609
- default: L(() => {
2610
- var a;
2611
- return [
2612
- k(j, {
2613
- article: e.article,
2614
- aspectRatio: {
2615
- desktop: "16/9",
2616
- tablet: "4/3",
2617
- mobile: "1/1"
2618
- },
2619
- class: l(t.$style.thumbnail),
2620
- style: { "grid-area": "thumbnail" }
2621
- }, null, 8, ["article", "class"]),
2622
- k(A, {
2623
- date: e.article.date,
2624
- class: l(t.$style.date),
2625
- formatString: "yyyy.M.d",
2626
- fontWeight: "bold",
2627
- style: { "grid-area": "date" }
2628
- }, null, 8, ["date", "class"]),
2629
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2630
- key: 0,
2631
- categoryIds: e.article.categories,
2632
- categoryData: e.categories,
2633
- label: {
2634
- color: "var(--main-color)",
2635
- fontSize: "small"
2636
- },
2637
- class: l(t.$style.category),
2638
- style: { "grid-area": "category" }
2639
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2640
- k(W, {
2641
- heading: e.article.title.rendered,
2642
- class: l(t.$style.heading),
2643
- style: { "grid-area": "heading" }
2644
- }, null, 8, ["heading", "class"]),
2645
- k(Z, {
2646
- excerpt: e.article.excerpt.rendered,
2647
- class: l(t.$style.excerpt),
2648
- style: { "grid-area": "excerpt" }
2649
- }, null, 8, ["excerpt", "class"]),
2650
- e.postConfig.tag ? (n(), f(F, {
2651
- key: 1,
2652
- article: e.article,
2653
- label: {
2654
- color: "var(--gray)",
2655
- fontSize: "small"
2656
- },
2657
- class: l(t.$style.tag),
2658
- style: { "grid-area": "tag" }
2659
- }, null, 8, ["article", "class"])) : p("", !0),
2660
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2661
- key: 2,
2662
- name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2663
- class: l(t.$style.author),
2664
- text: {
2665
- color: "var(--gray)",
2666
- preposition: "by"
2667
- },
2668
- fontSize: "small",
2669
- style: { "grid-area": "author" }
2670
- }, null, 8, ["name", "class"])) : p("", !0)
2671
- ];
2672
- }),
2673
- _: 1
2674
- }, 8, ["class", "path"])) : p("", !0);
2675
- }
2676
- }), 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 = {
2677
- container: zr,
2678
- thumbnail: Vr,
2679
- heading: Ir,
2680
- category: Nr,
2681
- tag: qr,
2682
- excerpt: Br,
2683
- author: Ur
2684
- }, Rr = {
2685
- $style: Tr
2686
- }, Lr = /* @__PURE__ */ S(Cr, [["__cssModules", Rr]]), Pr = /* @__PURE__ */ w({
2687
- __name: "Entertainment",
2688
- props: {
2689
- article: {},
2690
- path: {},
2691
- isPickUpItem: { type: Boolean },
2692
- postConfig: {},
2693
- categories: {}
2694
- },
2695
- setup(e) {
2696
- return (t, s) => e.article ? (n(), f(G, {
2697
- key: 0,
2698
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2699
- path: e.path
2700
- }, {
2701
- default: L(() => {
2702
- var a;
2703
- return [
2704
- v("div", {
2705
- class: l(t.$style.date)
2706
- }, [
2707
- k(A, {
2708
- date: e.article.date,
2709
- class: l(t.$style.year),
2710
- formatString: "yyyy",
2711
- fontSize: "medium",
2712
- fontWeight: "bold",
2713
- color: "var(--text-color)"
2714
- }, null, 8, ["date", "class"]),
2715
- k(A, {
2716
- date: e.article.date,
2717
- class: l(t.$style.month),
2718
- formatString: "M",
2719
- fontSize: "xxx-large",
2720
- fontWeight: "bold",
2721
- color: "var(--text-color)"
2722
- }, null, 8, ["date", "class"]),
2723
- k(A, {
2724
- date: e.article.date,
2725
- class: l(t.$style.day),
2726
- formatString: "d",
2727
- fontSize: "xxx-large",
2728
- fontWeight: "bold",
2729
- color: "var(--text-color)"
2730
- }, null, 8, ["date", "class"])
2731
- ], 2),
2732
- k(j, {
2733
- article: e.article,
2734
- aspectRatio: {
2735
- desktop: e.isPickUpItem ? "21/9" : "4/3",
2736
- tablet: e.isPickUpItem ? "16/9" : "4/3",
2737
- mobile: (e.isPickUpItem, "4/3")
2738
- },
2739
- class: l(t.$style.thumbnail)
2740
- }, null, 8, ["article", "aspectRatio", "class"]),
2741
- v("div", {
2742
- class: l(t.$style.contents)
2743
- }, [
2744
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2745
- key: 0,
2746
- categoryIds: e.article.categories,
2747
- categoryData: e.categories,
2748
- label: {
2749
- color: "var(--main-color)",
2750
- fontSize: "small",
2751
- fontWeight: "bold"
2752
- },
2753
- class: l(t.$style.category)
2754
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
2755
- k(W, {
2756
- heading: e.article.title.rendered,
2757
- class: l(t.$style.heading)
2758
- }, null, 8, ["heading", "class"]),
2759
- v("div", {
2760
- class: l(t.$style.row)
2761
- }, [
2762
- e.postConfig.tag ? (n(), f(F, {
2763
- key: 0,
2764
- article: e.article,
2765
- label: {
2766
- color: "var(--text-color)",
2767
- fontSize: "small"
2768
- },
2769
- class: l(t.$style.tag),
2770
- delimiter: "/"
2771
- }, null, 8, ["article", "class"])) : p("", !0),
2772
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2773
- key: 1,
2774
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
2775
- class: l(t.$style.author),
2776
- thumbnail: {
2777
- size: "medium",
2778
- shape: "circle"
2779
- }
2780
- }, null, 8, ["avatarUrls", "class"])) : p("", !0)
2781
- ], 2),
2782
- k(Z, {
2783
- excerpt: e.article.excerpt.rendered,
2784
- class: l(t.$style.excerpt)
2785
- }, null, 8, ["excerpt", "class"])
2786
- ], 2)
2787
- ];
2788
- }),
2789
- _: 1
2790
- }, 8, ["class", "path"])) : p("", !0);
2791
- }
2792
- }), 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 = {
2793
- thumbnail: Er,
2794
- date: Ar,
2795
- year: Gr,
2796
- month: jr,
2797
- day: Hr,
2798
- contents: Wr,
2799
- category: Or,
2800
- heading: Fr,
2801
- row: Zr,
2802
- author: Yr,
2803
- excerpt: Kr,
2804
- container: Xr,
2805
- pickup: Jr
2806
- }, ei = {
2807
- $style: Qr
2808
- }, ti = /* @__PURE__ */ S(Pr, [["__cssModules", ei]]), ai = /* @__PURE__ */ w({
2809
- __name: "Gallery",
2810
- props: {
2811
- article: {},
2812
- path: {},
2813
- isPickUpItem: { type: Boolean },
2814
- postConfig: {},
2815
- categories: {}
2816
- },
2817
- setup(e) {
2818
- return (t, s) => e.article ? (n(), f(G, {
2819
- key: 0,
2820
- class: l([t.$style.container, { [t.$style.pickup]: e.isPickUpItem }]),
2821
- path: e.path
2822
- }, {
2823
- default: L(() => {
2824
- var a;
2825
- return [
2826
- k(j, {
2827
- article: e.article,
2828
- aspectRatio: {
2829
- desktop: e.isPickUpItem ? "2.85/1" : "4/3",
2830
- tablet: e.isPickUpItem ? "16/9" : "4/3",
2831
- mobile: (e.isPickUpItem, "4/3")
2832
- },
2833
- class: l(t.$style.thumbnail),
2834
- style: { "grid-area": "thumbnail" }
2835
- }, null, 8, ["article", "aspectRatio", "class"]),
2836
- k(W, {
2837
- heading: e.article.title.rendered,
2838
- class: l(t.$style.heading),
2839
- color: "var(--white)",
2840
- style: { "grid-area": "heading" }
2841
- }, null, 8, ["heading", "class"]),
2842
- k(A, {
2843
- date: e.article.date,
2844
- class: l(t.$style.date),
2845
- fontSize: e.isPickUpItem ? "medium" : "small",
2846
- formatString: "yyyy.M.d",
2847
- color: "var(--white)",
2848
- fontWeight: "bold",
2849
- style: { "grid-area": "date" }
2850
- }, null, 8, ["date", "class", "fontSize"]),
2851
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
2852
- key: 0,
2853
- name: (a = z(q)(e.article)) == null ? void 0 : a.name,
2854
- class: l(t.$style.author),
2855
- text: {
2856
- color: "var(--white)",
2857
- fontSize: e.isPickUpItem ? "medium" : "small",
2858
- fontWeight: "bold"
2859
- },
2860
- style: { "grid-area": "author" }
2861
- }, null, 8, ["name", "class", "text"])) : p("", !0),
2862
- e.postConfig.category && e.article.categories ? (n(), f(O, {
2863
- key: 1,
2864
- categoryIds: e.article.categories,
2865
- categoryData: e.categories,
2866
- label: {
2867
- color: "var(--white)",
2868
- fontSize: e.isPickUpItem ? "medium" : "small"
2869
- },
2870
- class: l(t.$style.category),
2871
- style: { "grid-area": "category" }
2872
- }, null, 8, ["categoryIds", "categoryData", "label", "class"])) : p("", !0),
2873
- e.postConfig.tag ? (n(), f(F, {
2874
- key: 2,
2875
- article: e.article,
2876
- label: {
2877
- color: "var(--white)",
2878
- fontSize: e.isPickUpItem ? "medium" : "small"
2879
- },
2880
- class: l(t.$style.tag),
2881
- delimiter: "/",
2882
- style: { "grid-area": "tag" }
2883
- }, null, 8, ["article", "label", "class"])) : p("", !0),
2884
- k(Z, {
2885
- excerpt: e.article.excerpt.rendered,
2886
- class: l(t.$style.excerpt),
2887
- color: "var(--white)",
2888
- fontSize: "small",
2889
- row: 2,
2890
- style: { "grid-area": "excerpt" }
2891
- }, null, 8, ["excerpt", "class"])
2892
- ];
2893
- }),
2894
- _: 1
2895
- }, 8, ["class", "path"])) : p("", !0);
2896
- }
2897
- }), 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 = {
2898
- container: li,
2899
- thumbnail: si,
2900
- category: oi,
2901
- tag: ni,
2902
- excerpt: ri,
2903
- pickup: ii,
2904
- heading: ci,
2905
- date: ui,
2906
- author: di
2907
- }, yi = {
2908
- $style: mi
2909
- }, gi = /* @__PURE__ */ S(ai, [["__cssModules", yi]]), hi = /* @__PURE__ */ w({
2910
- __name: "GenericArticleList",
2911
- props: {
2912
- articles: {},
2913
- theme: {},
2914
- categories: {},
2915
- columnNumber: {},
2916
- settings: {}
2917
- },
2918
- setup(e) {
2919
- const t = e, s = M(() => t.settings.domainToUse), a = M(() => t.settings.isEnabledPickUp), o = M(
2920
- () => Ze(t.settings.postConfig)
2921
- ), c = M(() => {
2922
- switch (t.theme) {
2923
- case "standard":
2924
- return Ne;
2925
- case "rounded":
2926
- return Vn;
2927
- case "artistic":
2928
- return Wn;
2929
- case "tile":
2930
- return sr;
2931
- case "simple":
2932
- return $r;
2933
- case "row":
2934
- return Mr;
2935
- case "news":
2936
- return Lr;
2937
- case "gallery":
2938
- return gi;
2939
- case "entertainment":
2940
- return ti;
2941
- default:
2942
- return Ne;
2943
- }
2944
- });
2945
- return (u, m) => (n(), $("ul", {
2946
- style: I({
2947
- "--column-number": e.columnNumber,
2948
- "--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
2949
- }),
2950
- class: l([u.$style.list, { [u.$style.pickup]: a.value }])
2951
- }, [
2952
- (n(!0), $(T, null, E(e.articles, (d, g) => (n(), $("li", {
2953
- key: d.id,
2954
- style: I({ animationDelay: `${Number(g) * 0.1}s` })
2955
- }, [
2956
- (n(), f(Le(c.value), {
2957
- path: z(Fe)(o.value, s.value, d.id),
2958
- article: d,
2959
- isPickUpItem: Number(g) === 0 && a.value,
2960
- postConfig: o.value,
2961
- categories: e.categories
2962
- }, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories"]))
2963
- ], 4))), 128))
2964
- ], 6));
2965
- }
2966
- }), bi = "_list_h2kvz_1", $i = "_fadeIn_h2kvz_1", fi = "_pickup_h2kvz_39", vi = {
2967
- list: bi,
2968
- fadeIn: $i,
2969
- pickup: fi
2970
- }, ki = {
2971
- $style: vi
2972
- }, Y = /* @__PURE__ */ S(hi, [["__cssModules", ki]]), pi = /* @__PURE__ */ w({
2973
- __name: "Standard",
2974
- props: {
2975
- articles: {},
2976
- categories: {},
2977
- settings: {}
2978
- },
2979
- setup(e) {
2980
- return (t, s) => (n(), f(Y, {
2981
- theme: "standard",
2982
- columnNumber: 3,
2983
- articles: e.articles,
2984
- categories: e.categories,
2985
- settings: e.settings
2986
- }, null, 8, ["articles", "categories", "settings"]));
2987
- }
2988
- }), _i = /* @__PURE__ */ w({
2989
- __name: "Rounded",
2990
- props: {
2991
- articles: {},
2992
- categories: {},
2993
- settings: {}
2994
- },
2995
- setup(e) {
2996
- return (t, s) => (n(), f(Y, {
2997
- theme: "rounded",
2998
- columnNumber: 3,
2999
- articles: e.articles,
3000
- categories: e.categories,
3001
- settings: e.settings
3002
- }, null, 8, ["articles", "categories", "settings"]));
3003
- }
3004
- }), xi = /* @__PURE__ */ w({
3005
- __name: "Artistic",
3006
- props: {
3007
- articles: {},
3008
- categories: {},
3009
- settings: {}
3010
- },
3011
- setup(e) {
3012
- return (t, s) => (n(), f(Y, {
3013
- theme: "artistic",
3014
- columnNumber: 3,
3015
- articles: e.articles,
3016
- categories: e.categories,
3017
- settings: e.settings
3018
- }, null, 8, ["articles", "categories", "settings"]));
3019
- }
3020
- }), wi = /* @__PURE__ */ w({
3021
- __name: "Tile",
3022
- props: {
3023
- articles: {},
3024
- categories: {},
3025
- settings: {}
3026
- },
3027
- setup(e) {
3028
- return (t, s) => (n(), f(Y, {
3029
- theme: "tile",
3030
- columnNumber: 3,
3031
- articles: e.articles,
3032
- categories: e.categories,
3033
- settings: e.settings
3034
- }, null, 8, ["articles", "categories", "settings"]));
3035
- }
3036
- }), Si = /* @__PURE__ */ w({
3037
- __name: "Simple",
3038
- props: {
3039
- articles: {},
3040
- categories: {},
3041
- settings: {}
3042
- },
3043
- setup(e) {
3044
- return (t, s) => (n(), f(Y, {
3045
- theme: "simple",
3046
- columnNumber: 3,
3047
- articles: e.articles,
3048
- categories: e.categories,
3049
- settings: e.settings
3050
- }, null, 8, ["articles", "categories", "settings"]));
3051
- }
3052
- }), Di = /* @__PURE__ */ w({
3053
- __name: "Row",
3054
- props: {
3055
- articles: {},
3056
- categories: {},
3057
- settings: {}
3058
- },
3059
- setup(e) {
3060
- return (t, s) => (n(), f(Y, {
3061
- theme: "row",
3062
- columnNumber: 1,
3063
- articles: e.articles,
3064
- categories: e.categories,
3065
- settings: e.settings
3066
- }, null, 8, ["articles", "categories", "settings"]));
3067
- }
3068
- }), Mi = /* @__PURE__ */ w({
3069
- __name: "News",
3070
- props: {
3071
- articles: {},
3072
- categories: {},
3073
- settings: {}
3074
- },
3075
- setup(e) {
3076
- return (t, s) => (n(), f(Y, {
3077
- theme: "news",
3078
- columnNumber: 1,
3079
- articles: e.articles,
3080
- categories: e.categories,
3081
- settings: e.settings
3082
- }, null, 8, ["articles", "categories", "settings"]));
3083
- }
3084
- }), Ci = /* @__PURE__ */ w({
3085
- __name: "Entertainment",
3086
- props: {
3087
- articles: {},
3088
- categories: {},
3089
- settings: {}
3090
- },
3091
- setup(e) {
3092
- return (t, s) => (n(), f(Y, {
3093
- theme: "entertainment",
3094
- columnNumber: 3,
3095
- articles: e.articles,
3096
- categories: e.categories,
3097
- settings: e.settings
3098
- }, null, 8, ["articles", "categories", "settings"]));
3099
- }
3100
- }), zi = /* @__PURE__ */ w({
3101
- __name: "Gallery",
3102
- props: {
3103
- articles: {},
3104
- categories: {},
3105
- settings: {}
3106
- },
3107
- setup(e) {
3108
- return (t, s) => (n(), f(Y, {
3109
- theme: "gallery",
3110
- columnNumber: 3,
3111
- articles: e.articles,
3112
- categories: e.categories,
3113
- settings: e.settings
3114
- }, null, 8, ["articles", "categories", "settings"]));
3115
- }
3116
- }), Vi = /* @__PURE__ */ w({
3117
- __name: "Grid",
3118
- props: {
3119
- article: {},
3120
- path: {},
3121
- isPickUpItem: { type: Boolean },
3122
- postConfig: {},
3123
- categories: {},
3124
- direction: {}
3125
- },
3126
- setup(e) {
3127
- return (t, s) => e.article ? (n(), f(G, {
3128
- key: 0,
3129
- class: l([
3130
- t.$style.container,
3131
- { [t.$style.pickup]: e.isPickUpItem },
3132
- t.$style[e.direction]
3133
- ]),
3134
- path: e.path
3135
- }, {
3136
- default: L(() => {
3137
- var a;
3138
- return [
3139
- k(j, {
3140
- article: e.article,
3141
- aspectRatio: {
3142
- desktop: e.isPickUpItem ? "21/9" : "4/3",
3143
- tablet: e.isPickUpItem ? "21/9" : "4/3",
3144
- mobile: "4/3"
3145
- },
3146
- class: l(t.$style.thumbnail),
3147
- style: { "grid-area": "thumbnail" }
3148
- }, null, 8, ["article", "aspectRatio", "class"]),
3149
- v("div", {
3150
- class: l(t.$style.date),
3151
- style: { "grid-area": "date" }
3152
- }, [
3153
- k(A, {
3154
- date: e.article.date,
3155
- formatString: "M.d",
3156
- color: "var(--white)",
3157
- fontWeight: "bold"
3158
- }, null, 8, ["date"]),
3159
- k(A, {
3160
- date: e.article.date,
3161
- formatString: "yyyy",
3162
- color: "var(--white)",
3163
- fontWeight: "bold"
3164
- }, null, 8, ["date"])
3165
- ], 2),
3166
- k(W, {
3167
- heading: e.article.title.rendered,
3168
- class: l(t.$style.heading),
3169
- fontSize: e.isPickUpItem ? "large" : "medium",
3170
- color: e.isPickUpItem && e.direction === "horizontal" ? "var(--white)" : "var(--text-color)",
3171
- style: { "grid-area": "heading" }
3172
- }, null, 8, ["heading", "class", "fontSize", "color"]),
3173
- k(Z, {
3174
- excerpt: e.article.excerpt.rendered,
3175
- class: l(t.$style.excerpt),
3176
- row: 2,
3177
- fontSize: "small",
3178
- style: { "grid-area": "excerpt" }
3179
- }, null, 8, ["excerpt", "class"]),
3180
- e.postConfig.author && z(q)(e.article) ? (n(), f(H, {
3181
- key: 0,
3182
- avatarUrls: (a = z(q)(e.article)) == null ? void 0 : a.avatar_urls,
3183
- thumbnail: {
3184
- size: "large",
3185
- shape: "square"
3186
- },
3187
- class: l(t.$style.author),
3188
- style: { "grid-area": "author" }
3189
- }, null, 8, ["avatarUrls", "class"])) : p("", !0),
3190
- e.postConfig.category && e.article.categories ? (n(), f(O, {
3191
- key: 1,
3192
- categoryIds: e.article.categories,
3193
- categoryData: e.categories,
3194
- label: {
3195
- color: "var(--gray)",
3196
- fontSize: "smaller"
3197
- },
3198
- class: l(t.$style.category),
3199
- style: { "grid-area": "category" }
3200
- }, null, 8, ["categoryIds", "categoryData", "class"])) : p("", !0),
3201
- e.postConfig.tag ? (n(), f(F, {
3202
- key: 2,
3203
- article: e.article,
3204
- label: {
3205
- color: "var(--gray)",
3206
- fontSize: "smaller"
3207
- },
3208
- class: l(t.$style.tag),
3209
- style: { "grid-area": "tag" }
3210
- }, null, 8, ["article", "class"])) : p("", !0)
3211
- ];
3212
- }),
3213
- _: 1
3214
- }, 8, ["class", "path"])) : p("", !0);
3215
- }
3216
- }), 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 = {
3217
- container: Ii,
3218
- horizontal: Ni,
3219
- pickup: qi,
3220
- thumbnail: Bi,
3221
- heading: Ui,
3222
- date: Ti,
3223
- excerpt: Ri,
3224
- category: Li,
3225
- tag: Pi,
3226
- author: Ei
3227
- }, Gi = {
3228
- $style: Ai
3229
- }, ji = /* @__PURE__ */ S(Vi, [["__cssModules", Gi]]), Hi = /* @__PURE__ */ w({
3230
- __name: "Grid",
3231
- props: {
3232
- articles: {},
3233
- categories: {},
3234
- columnNumber: {},
3235
- settings: {}
3236
- },
3237
- setup(e) {
3238
- const t = e, s = M(() => t.settings.domainToUse), a = M(() => t.settings.isEnabledPickUp), o = M(
3239
- () => Ze(t.settings.postConfig)
3240
- ), 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) => {
3241
- const i = r + 1, y = Number(d.value) - 1;
3242
- return Math.ceil(i / y);
3243
- }, h = (r) => {
3244
- const i = r + 1, y = Number(d.value);
3245
- if (i < y)
3246
- return i;
3247
- if (y === 1)
3248
- return 1;
3249
- const _ = i % (y - 1);
3250
- return _ === 0 ? y - 1 : _;
3251
- }, b = (r) => {
3252
- if (d.value === 4) {
3253
- const i = g(r), y = Array.from({ length: 49 }, (U, J) => J + 1).find(
3254
- (U) => i <= U * 2
3255
- ) || 0, _ = i - 1 + y;
3256
- return D(r) === "vertical" ? `${Number(_)}/${Number(_) + 2}` : i % 2 ? `${Number(_)}/${Number(_) + 1}` : `${Number(_) + 1}/${Number(_) + 2}`;
3257
- } else if (d.value === 3) {
3258
- const i = r + 1, y = i % 3, _ = Math.floor(i / 3), U = y ? _ * 2 + 1 : _ * 2;
3259
- return D(r) === "horizontal" ? `${Number(U)}/${Number(U) + 1}` : `${Number(U)}/${Number(U) + 2}`;
3260
- }
3261
- }, x = (r) => {
3262
- const i = (r + 1) % 6, y = Number(d.value);
3263
- if (y === 4) {
3264
- const _ = h(r);
3265
- switch (!0) {
3266
- case (!r || i === 1):
3267
- return "1/3";
3268
- case !i:
3269
- return "3/5";
3270
- default:
3271
- return g(r) % 2 ? `${_ + 1}/${_ + 2}` : `${_}/${_ + 1}`;
3272
- }
3273
- } else if (y === 3) {
3274
- const _ = D(r) === "horizontal" ? 2 : 1;
3275
- switch (i) {
3276
- case 1:
3277
- case 3:
3278
- case 4:
3279
- return `1/${1 + _}`;
3280
- case 5:
3281
- case 0:
3282
- return `2/${2 + _}`;
3283
- case 2:
3284
- return `3/${3 + _}`;
3285
- default:
3286
- return "";
3287
- }
3288
- }
3289
- return "";
3290
- }, D = (r) => {
3291
- if (d.value === 1)
3292
- return "vertical";
3293
- if (d.value === 3) {
3294
- const y = (r + 1) % 6;
3295
- return y !== 2 && y !== 4 ? "horizontal" : "vertical";
3296
- } else {
3297
- const i = x(r);
3298
- if (!i.includes("/"))
3299
- return "horizontal";
3300
- const y = i.split("/").map(Number);
3301
- return y[1] - y[0] >= 2 ? "horizontal" : "vertical";
3302
- }
3303
- };
3304
- return K(() => {
3305
- const r = new ResizeObserver((i) => {
3306
- m.value && clearTimeout(m.value), m.value = setTimeout(() => {
3307
- u.value = i[0].contentRect.width;
3308
- }, 100);
3309
- });
3310
- c.value && r.observe(c.value), qe(() => {
3311
- c.value && r.unobserve(c.value), r.disconnect(), m.value && clearTimeout(m.value);
3312
- });
3313
- }), (r, i) => (n(), $("ul", {
3314
- ref_key: "listElement",
3315
- ref: c,
3316
- style: I({
3317
- "--column-number": e.columnNumber,
3318
- "--tablet-column-number": e.columnNumber - 1 ? e.columnNumber - 1 : 1
3319
- }),
3320
- class: l(r.$style.list)
3321
- }, [
3322
- (n(!0), $(T, null, E(e.articles, (y, _) => (n(), $("li", {
3323
- key: y.id,
3324
- class: l(r.$style.item),
3325
- style: I({
3326
- animationDelay: `${Number(_) * 0.1}s`,
3327
- gridRow: b(Number(_)) || "auto",
3328
- gridColumn: x(Number(_)) || "auto"
3329
- })
3330
- }, [
3331
- k(ji, {
3332
- path: z(Fe)(o.value, s.value, y.id),
3333
- article: y,
3334
- isPickUpItem: Number(_) === 0 && a.value,
3335
- postConfig: o.value,
3336
- categories: e.categories,
3337
- direction: D(Number(_))
3338
- }, null, 8, ["path", "article", "isPickUpItem", "postConfig", "categories", "direction"])
3339
- ], 6))), 128))
3340
- ], 6));
3341
- }
3342
- }), Wi = "_list_18syb_1", Oi = "_fadeIn_18syb_1", Fi = {
3343
- list: Wi,
3344
- fadeIn: Oi
3345
- }, Zi = {
3346
- $style: Fi
3347
- }, Yi = /* @__PURE__ */ S(Hi, [["__cssModules", Zi]]), tc = {
3348
- standard: {
3349
- jaName: "スタンダード",
3350
- enName: "Standard",
3351
- columnNumber: 3,
3352
- name: "Standard"
3353
- },
3354
- rounded: {
3355
- jaName: "ポップ",
3356
- enName: "Rounded",
3357
- columnNumber: 3,
3358
- name: "Rounded"
3359
- },
3360
- artistic: {
3361
- jaName: "アート",
3362
- enName: "Artistic",
3363
- columnNumber: 3,
3364
- name: "Artistic"
3365
- },
3366
- tile: {
3367
- jaName: "タイル",
3368
- enName: "Tile",
3369
- columnNumber: 3,
3370
- name: "Tile"
3371
- },
3372
- simple: {
3373
- jaName: "シンプル",
3374
- enName: "Simple",
3375
- columnNumber: 3,
3376
- name: "Simple"
3377
- },
3378
- row: {
3379
- jaName: "ワイド",
3380
- enName: "Row",
3381
- columnNumber: 1,
3382
- name: "Row"
3383
- },
3384
- news: {
3385
- jaName: "ニュース",
3386
- enName: "News",
3387
- columnNumber: 1,
3388
- name: "News"
3389
- },
3390
- grid: {
3391
- jaName: "グリッド",
3392
- enName: "Grid",
3393
- columnNumber: 4,
3394
- name: "Grid"
3395
- },
3396
- gallery: {
3397
- jaName: "ギャラリー",
3398
- enName: "Gallery",
3399
- columnNumber: 3,
3400
- name: "Gallery"
3401
- },
3402
- entertainment: {
3403
- jaName: "エンタテインメント",
3404
- enName: "Entertainment",
3405
- columnNumber: 3,
3406
- name: "Entertainment"
3407
- }
3408
- };
3409
- class ac {
3410
- constructor() {
3411
- se(this, "store");
3412
- /** 登録済みの入力がすべて有効かどうか */
3413
- se(this, "isAllValid");
3414
- /** 無効になっている入力の name 一覧 */
3415
- se(this, "invalidNames");
3416
- this.store = mt();
3417
- const t = st(this.store.getSnapshot()), s = this.store.subscribe(() => {
3418
- t.value = this.store.getSnapshot();
3419
- });
3420
- ot(s, !0), this.isAllValid = M(() => t.value.isAllValid), this.invalidNames = M(() => t.value.invalidNames);
3421
- }
3422
- /** 入力の状態を登録・更新する */
3423
- setValid(t, s) {
3424
- this.store.setValid(t, s);
3425
- }
3426
- /** 個別の入力が有効かどうか(未登録なら true) */
3427
- isValid(t) {
3428
- return this.store.isValid(t);
3429
- }
3430
- /** 管理対象から外す(コンポーネントのアンマウント時など) */
3431
- remove(t) {
3432
- this.store.remove(t);
3433
- }
3434
- /** すべての状態を破棄する */
3435
- reset() {
3436
- this.store.reset();
3437
- }
3438
- }
3439
- const Ki = {
3440
- TextBox: Ct,
3441
- TextArea: Bt,
3442
- BasicButton: Wt,
3443
- SelectBox: ra,
3444
- CheckBox: je,
3445
- CheckBoxes: Ma,
3446
- CheckButton: Ua,
3447
- LabeledCheckbox: He,
3448
- LabeledFieldset: ja,
3449
- RadioButtons: Xa,
3450
- ToggleButton: il,
3451
- InputBox: te,
3452
- InputGroup: gl,
3453
- TextButton: We,
3454
- DatePicker: ie,
3455
- DateRangePicker: Gl,
3456
- DateSelector: as,
3457
- DropdownUi: ms,
3458
- ModalBox: Ns,
3459
- PopupBox: Ls,
3460
- SlideDownUi: Ys,
3461
- TabUI: lo,
3462
- LoadingSpinner: Ae,
3463
- ErrorMessage: X,
3464
- StandardList: pi,
3465
- RoundedList: _i,
3466
- ArtisticList: xi,
3467
- TileList: wi,
3468
- SimpleList: Si,
3469
- RowList: Di,
3470
- NewsList: Mi,
3471
- EntertainmentList: Ci,
3472
- GalleryList: zi,
3473
- GridList: Yi
3474
- }, lc = {
3475
- install(e) {
3476
- Object.entries(Ki).forEach(([t, s]) => {
3477
- e.component(t, s);
1
+ import i from "./components/TextBox.vue.js";
2
+ import m from "./components/TextArea.vue.js";
3
+ import e from "./components/BasicButton.vue.js";
4
+ import s from "./components/SelectBox.vue.js";
5
+ import p from "./components/CheckBox.vue.js";
6
+ import a from "./components/CheckBoxes.vue.js";
7
+ import f from "./components/CheckButton.vue.js";
8
+ import n from "./components/LabeledCheckbox.vue.js";
9
+ import c from "./components/LabeledFieldset.vue.js";
10
+ import L from "./components/RadioButtons.vue.js";
11
+ import d from "./components/ToggleButton.vue.js";
12
+ import l from "./components/InputBox.vue.js";
13
+ import _ from "./components/InputGroup.vue.js";
14
+ import x from "./components/TextButton.vue.js";
15
+ import B from "./components/DatePicker.vue.js";
16
+ import u from "./components/DateRangePicker.vue.js";
17
+ import S from "./components/DateSelector.vue.js";
18
+ import T from "./components/DropdownUi.vue.js";
19
+ import $ from "./components/ModalBox.vue.js";
20
+ import g from "./components/PopupBox.vue.js";
21
+ import k from "./components/SlideDownUi.vue.js";
22
+ import w from "./components/TabUI.vue.js";
23
+ import E from "./components/LoadingSpinner.vue.js";
24
+ import R from "./components/ErrorMessage.vue.js";
25
+ import b from "./components/ArticleList/List/Standard.vue.js";
26
+ import h from "./components/ArticleList/List/Rounded.vue.js";
27
+ import D from "./components/ArticleList/List/Artistic.vue.js";
28
+ import C from "./components/ArticleList/List/Tile.vue.js";
29
+ import G from "./components/ArticleList/List/Simple.vue.js";
30
+ import I from "./components/ArticleList/List/Row.vue.js";
31
+ import M from "./components/ArticleList/List/News.vue.js";
32
+ import A from "./components/ArticleList/List/Entertainment.vue.js";
33
+ import P from "./components/ArticleList/List/Gallery.vue.js";
34
+ import U from "./components/ArticleList/List/Grid.vue.js";
35
+ import { LIST_THEME as go } from "./const/list-theme.js";
36
+ import { FormValidationManager as wo } from "./scripts/form-validation-manager.js";
37
+ const y = {
38
+ TextBox: i,
39
+ TextArea: m,
40
+ BasicButton: e,
41
+ SelectBox: s,
42
+ CheckBox: p,
43
+ CheckBoxes: a,
44
+ CheckButton: f,
45
+ LabeledCheckbox: n,
46
+ LabeledFieldset: c,
47
+ RadioButtons: L,
48
+ ToggleButton: d,
49
+ InputBox: l,
50
+ InputGroup: _,
51
+ TextButton: x,
52
+ DatePicker: B,
53
+ DateRangePicker: u,
54
+ DateSelector: S,
55
+ DropdownUi: T,
56
+ ModalBox: $,
57
+ PopupBox: g,
58
+ SlideDownUi: k,
59
+ TabUI: w,
60
+ LoadingSpinner: E,
61
+ ErrorMessage: R,
62
+ StandardList: b,
63
+ RoundedList: h,
64
+ ArtisticList: D,
65
+ TileList: C,
66
+ SimpleList: G,
67
+ RowList: I,
68
+ NewsList: M,
69
+ EntertainmentList: A,
70
+ GalleryList: P,
71
+ GridList: U
72
+ }, So = {
73
+ install(o) {
74
+ Object.entries(y).forEach(([t, r]) => {
75
+ o.component(t, r);
3478
76
  });
3479
77
  }
3480
78
  };
3481
79
  export {
3482
- xi as ArtisticList,
3483
- Wt as BasicButton,
3484
- je as CheckBox,
3485
- Ma as CheckBoxes,
3486
- Ua as CheckButton,
3487
- ie as DatePicker,
3488
- Gl as DateRangePicker,
3489
- as as DateSelector,
3490
- ms as DropdownUi,
3491
- Ci as EntertainmentList,
3492
- X as ErrorMessage,
3493
- ac as FormValidationManager,
3494
- zi as GalleryList,
3495
- Yi as GridList,
3496
- te as InputBox,
3497
- gl as InputGroup,
3498
- tc as LIST_THEME,
3499
- He as LabeledCheckbox,
3500
- ja as LabeledFieldset,
3501
- Ae as LoadingSpinner,
3502
- Ns as ModalBox,
3503
- Mi as NewsList,
3504
- Ls as PopupBox,
3505
- Xa as RadioButtons,
3506
- _i as RoundedList,
3507
- Di as RowList,
3508
- ra as SelectBox,
3509
- Si as SimpleList,
3510
- Ys as SlideDownUi,
3511
- pi as StandardList,
3512
- lo as TabUI,
3513
- Bt as TextArea,
3514
- Ct as TextBox,
3515
- We as TextButton,
3516
- wi as TileList,
3517
- il as ToggleButton,
3518
- lc as default
80
+ D as ArtisticList,
81
+ e as BasicButton,
82
+ p as CheckBox,
83
+ a as CheckBoxes,
84
+ f as CheckButton,
85
+ B as DatePicker,
86
+ u as DateRangePicker,
87
+ S as DateSelector,
88
+ T as DropdownUi,
89
+ A as EntertainmentList,
90
+ R as ErrorMessage,
91
+ wo as FormValidationManager,
92
+ P as GalleryList,
93
+ U as GridList,
94
+ l as InputBox,
95
+ _ as InputGroup,
96
+ go as LIST_THEME,
97
+ n as LabeledCheckbox,
98
+ c as LabeledFieldset,
99
+ E as LoadingSpinner,
100
+ $ as ModalBox,
101
+ M as NewsList,
102
+ g as PopupBox,
103
+ L as RadioButtons,
104
+ h as RoundedList,
105
+ I as RowList,
106
+ s as SelectBox,
107
+ G as SimpleList,
108
+ k as SlideDownUi,
109
+ b as StandardList,
110
+ w as TabUI,
111
+ m as TextArea,
112
+ i as TextBox,
113
+ x as TextButton,
114
+ C as TileList,
115
+ d as ToggleButton,
116
+ So as default
3519
117
  };