@wordpress/fields 0.24.0 → 0.24.1-next.ff1cebbba.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 (250) hide show
  1. package/README.md +1 -1
  2. package/build/actions/delete-post.js +168 -117
  3. package/build/actions/delete-post.js.map +7 -1
  4. package/build/actions/duplicate-pattern.js +42 -43
  5. package/build/actions/duplicate-pattern.js.map +7 -1
  6. package/build/actions/duplicate-post.js +104 -93
  7. package/build/actions/duplicate-post.js.map +7 -1
  8. package/build/actions/duplicate-template-part.js +71 -63
  9. package/build/actions/duplicate-template-part.js.map +7 -1
  10. package/build/actions/export-pattern.js +60 -45
  11. package/build/actions/export-pattern.js.map +7 -1
  12. package/build/actions/index.js +71 -94
  13. package/build/actions/index.js.map +7 -1
  14. package/build/actions/permanently-delete-post.js +161 -132
  15. package/build/actions/permanently-delete-post.js.map +7 -1
  16. package/build/actions/rename-post.js +77 -83
  17. package/build/actions/rename-post.js.map +7 -1
  18. package/build/actions/reorder-page.js +76 -73
  19. package/build/actions/reorder-page.js.map +7 -1
  20. package/build/actions/reset-post.js +214 -165
  21. package/build/actions/reset-post.js.map +7 -1
  22. package/build/actions/restore-post.js +91 -75
  23. package/build/actions/restore-post.js.map +7 -1
  24. package/build/actions/trash-post.js +167 -127
  25. package/build/actions/trash-post.js.map +7 -1
  26. package/build/actions/utils.js +48 -41
  27. package/build/actions/utils.js.map +7 -1
  28. package/build/actions/view-post-revisions.js +39 -35
  29. package/build/actions/view-post-revisions.js.map +7 -1
  30. package/build/actions/view-post.js +31 -28
  31. package/build/actions/view-post.js.map +7 -1
  32. package/build/components/create-template-part-modal/index.js +213 -169
  33. package/build/components/create-template-part-modal/index.js.map +7 -1
  34. package/build/components/create-template-part-modal/utils.js +48 -48
  35. package/build/components/create-template-part-modal/utils.js.map +7 -1
  36. package/build/fields/author/author-view.js +63 -69
  37. package/build/fields/author/author-view.js.map +7 -1
  38. package/build/fields/author/index.js +43 -29
  39. package/build/fields/author/index.js.map +7 -1
  40. package/build/fields/comment-status/index.js +42 -32
  41. package/build/fields/comment-status/index.js.map +7 -1
  42. package/build/fields/date/date-view.js +84 -58
  43. package/build/fields/date/date-view.js.map +7 -1
  44. package/build/fields/date/index.js +39 -25
  45. package/build/fields/date/index.js.map +7 -1
  46. package/build/fields/discussion/index.js +36 -32
  47. package/build/fields/discussion/index.js.map +7 -1
  48. package/build/fields/featured-image/featured-image-edit.js +115 -97
  49. package/build/fields/featured-image/featured-image-edit.js.map +7 -1
  50. package/build/fields/featured-image/featured-image-view.js +41 -34
  51. package/build/fields/featured-image/featured-image-view.js.map +7 -1
  52. package/build/fields/featured-image/index.js +31 -26
  53. package/build/fields/featured-image/index.js.map +7 -1
  54. package/build/fields/index.js +83 -118
  55. package/build/fields/index.js.map +7 -1
  56. package/build/fields/order/index.js +28 -23
  57. package/build/fields/order/index.js.map +7 -1
  58. package/build/fields/page-title/index.js +42 -30
  59. package/build/fields/page-title/index.js.map +7 -1
  60. package/build/fields/page-title/view.js +38 -41
  61. package/build/fields/page-title/view.js.map +7 -1
  62. package/build/fields/parent/index.js +31 -26
  63. package/build/fields/parent/index.js.map +7 -1
  64. package/build/fields/parent/parent-edit.js +200 -168
  65. package/build/fields/parent/parent-edit.js.map +7 -1
  66. package/build/fields/parent/parent-view.js +40 -31
  67. package/build/fields/parent/parent-view.js.map +7 -1
  68. package/build/fields/parent/utils.js +29 -16
  69. package/build/fields/parent/utils.js.map +7 -1
  70. package/build/fields/password/edit.js +67 -53
  71. package/build/fields/password/edit.js.map +7 -1
  72. package/build/fields/password/index.js +40 -26
  73. package/build/fields/password/index.js.map +7 -1
  74. package/build/fields/pattern-title/index.js +42 -30
  75. package/build/fields/pattern-title/index.js.map +7 -1
  76. package/build/fields/pattern-title/view.js +43 -41
  77. package/build/fields/pattern-title/view.js.map +7 -1
  78. package/build/fields/ping-status/index.js +66 -47
  79. package/build/fields/ping-status/index.js.map +7 -1
  80. package/build/fields/slug/index.js +41 -27
  81. package/build/fields/slug/index.js.map +7 -1
  82. package/build/fields/slug/slug-edit.js +116 -107
  83. package/build/fields/slug/slug-edit.js.map +7 -1
  84. package/build/fields/slug/slug-view.js +30 -23
  85. package/build/fields/slug/slug-view.js.map +7 -1
  86. package/build/fields/slug/utils.js +32 -20
  87. package/build/fields/slug/utils.js.map +7 -1
  88. package/build/fields/status/index.js +43 -29
  89. package/build/fields/status/index.js.map +7 -1
  90. package/build/fields/status/status-elements.js +58 -44
  91. package/build/fields/status/status-elements.js.map +7 -1
  92. package/build/fields/status/status-view.js +42 -36
  93. package/build/fields/status/status-view.js.map +7 -1
  94. package/build/fields/template/index.js +29 -24
  95. package/build/fields/template/index.js.map +7 -1
  96. package/build/fields/template/template-edit.js +167 -142
  97. package/build/fields/template/template-edit.js.map +7 -1
  98. package/build/fields/template-title/index.js +42 -30
  99. package/build/fields/template-title/index.js.map +7 -1
  100. package/build/fields/title/index.js +42 -32
  101. package/build/fields/title/index.js.map +7 -1
  102. package/build/fields/title/view.js +57 -39
  103. package/build/fields/title/view.js.map +7 -1
  104. package/build/index.js +39 -36
  105. package/build/index.js.map +7 -1
  106. package/build/lock-unlock.js +31 -14
  107. package/build/lock-unlock.js.map +7 -1
  108. package/build/mutation/index.js +91 -76
  109. package/build/mutation/index.js.map +7 -1
  110. package/build/types.js +16 -5
  111. package/build/types.js.map +7 -1
  112. package/build-module/actions/delete-post.js +155 -107
  113. package/build-module/actions/delete-post.js.map +7 -1
  114. package/build-module/actions/duplicate-pattern.js +24 -36
  115. package/build-module/actions/duplicate-pattern.js.map +7 -1
  116. package/build-module/actions/duplicate-post.js +87 -84
  117. package/build-module/actions/duplicate-post.js.map +7 -1
  118. package/build-module/actions/duplicate-template-part.js +51 -58
  119. package/build-module/actions/duplicate-template-part.js.map +7 -1
  120. package/build-module/actions/export-pattern.js +40 -39
  121. package/build-module/actions/export-pattern.js.map +7 -1
  122. package/build-module/actions/index.js +29 -14
  123. package/build-module/actions/index.js.map +7 -1
  124. package/build-module/actions/permanently-delete-post.js +146 -125
  125. package/build-module/actions/permanently-delete-post.js.map +7 -1
  126. package/build-module/actions/rename-post.js +63 -77
  127. package/build-module/actions/rename-post.js.map +7 -1
  128. package/build-module/actions/reorder-page.js +58 -65
  129. package/build-module/actions/reorder-page.js.map +7 -1
  130. package/build-module/actions/reset-post.js +185 -152
  131. package/build-module/actions/reset-post.js.map +7 -1
  132. package/build-module/actions/restore-post.js +72 -68
  133. package/build-module/actions/restore-post.js.map +7 -1
  134. package/build-module/actions/trash-post.js +152 -119
  135. package/build-module/actions/trash-post.js.map +7 -1
  136. package/build-module/actions/utils.js +23 -34
  137. package/build-module/actions/utils.js.map +7 -1
  138. package/build-module/actions/view-post-revisions.js +21 -31
  139. package/build-module/actions/view-post-revisions.js.map +7 -1
  140. package/build-module/actions/view-post.js +12 -23
  141. package/build-module/actions/view-post.js.map +7 -1
  142. package/build-module/components/create-template-part-modal/index.js +201 -154
  143. package/build-module/components/create-template-part-modal/index.js.map +7 -1
  144. package/build-module/components/create-template-part-modal/utils.js +26 -43
  145. package/build-module/components/create-template-part-modal/utils.js.map +7 -1
  146. package/build-module/fields/author/author-view.js +34 -62
  147. package/build-module/fields/author/author-view.js.map +7 -1
  148. package/build-module/fields/author/index.js +14 -24
  149. package/build-module/fields/author/index.js.map +7 -1
  150. package/build-module/fields/comment-status/index.js +24 -29
  151. package/build-module/fields/comment-status/index.js.map +7 -1
  152. package/build-module/fields/date/date-view.js +66 -53
  153. package/build-module/fields/date/date-view.js.map +7 -1
  154. package/build-module/fields/date/index.js +10 -20
  155. package/build-module/fields/date/index.js.map +7 -1
  156. package/build-module/fields/discussion/index.js +18 -29
  157. package/build-module/fields/discussion/index.js.map +7 -1
  158. package/build-module/fields/featured-image/featured-image-edit.js +93 -90
  159. package/build-module/fields/featured-image/featured-image-edit.js.map +7 -1
  160. package/build-module/fields/featured-image/featured-image-view.js +20 -29
  161. package/build-module/fields/featured-image/featured-image-view.js.map +7 -1
  162. package/build-module/fields/featured-image/index.js +11 -21
  163. package/build-module/fields/featured-image/index.js.map +7 -1
  164. package/build-module/fields/index.js +35 -17
  165. package/build-module/fields/index.js.map +7 -1
  166. package/build-module/fields/order/index.js +10 -20
  167. package/build-module/fields/order/index.js.map +7 -1
  168. package/build-module/fields/page-title/index.js +13 -25
  169. package/build-module/fields/page-title/index.js.map +7 -1
  170. package/build-module/fields/page-title/view.js +20 -37
  171. package/build-module/fields/page-title/view.js.map +7 -1
  172. package/build-module/fields/parent/index.js +11 -21
  173. package/build-module/fields/parent/index.js.map +7 -1
  174. package/build-module/fields/parent/parent-edit.js +172 -160
  175. package/build-module/fields/parent/parent-edit.js.map +7 -1
  176. package/build-module/fields/parent/parent-view.js +19 -27
  177. package/build-module/fields/parent/parent-view.js.map +7 -1
  178. package/build-module/fields/parent/utils.js +8 -13
  179. package/build-module/fields/parent/utils.js.map +7 -1
  180. package/build-module/fields/password/edit.js +53 -48
  181. package/build-module/fields/password/edit.js.map +7 -1
  182. package/build-module/fields/password/index.js +11 -21
  183. package/build-module/fields/password/index.js.map +7 -1
  184. package/build-module/fields/pattern-title/index.js +13 -25
  185. package/build-module/fields/pattern-title/index.js.map +7 -1
  186. package/build-module/fields/pattern-title/view.js +21 -34
  187. package/build-module/fields/pattern-title/view.js.map +7 -1
  188. package/build-module/fields/ping-status/index.js +48 -43
  189. package/build-module/fields/ping-status/index.js.map +7 -1
  190. package/build-module/fields/slug/index.js +11 -21
  191. package/build-module/fields/slug/index.js.map +7 -1
  192. package/build-module/fields/slug/slug-edit.js +101 -100
  193. package/build-module/fields/slug/slug-edit.js.map +7 -1
  194. package/build-module/fields/slug/slug-view.js +9 -16
  195. package/build-module/fields/slug/slug-view.js.map +7 -1
  196. package/build-module/fields/slug/utils.js +9 -13
  197. package/build-module/fields/slug/utils.js.map +7 -1
  198. package/build-module/fields/status/index.js +13 -23
  199. package/build-module/fields/status/index.js.map +7 -1
  200. package/build-module/fields/status/status-elements.js +47 -40
  201. package/build-module/fields/status/status-elements.js.map +7 -1
  202. package/build-module/fields/status/status-view.js +14 -31
  203. package/build-module/fields/status/status-view.js.map +7 -1
  204. package/build-module/fields/template/index.js +10 -18
  205. package/build-module/fields/template/index.js.map +7 -1
  206. package/build-module/fields/template/template-edit.js +147 -130
  207. package/build-module/fields/template/template-edit.js.map +7 -1
  208. package/build-module/fields/template-title/index.js +13 -25
  209. package/build-module/fields/template-title/index.js.map +7 -1
  210. package/build-module/fields/title/index.js +13 -27
  211. package/build-module/fields/title/index.js.map +7 -1
  212. package/build-module/fields/title/view.js +25 -32
  213. package/build-module/fields/title/view.js.map +7 -1
  214. package/build-module/index.js +7 -4
  215. package/build-module/index.js.map +7 -1
  216. package/build-module/lock-unlock.js +8 -7
  217. package/build-module/lock-unlock.js.map +7 -1
  218. package/build-module/mutation/index.js +70 -72
  219. package/build-module/mutation/index.js.map +7 -1
  220. package/build-module/types.js +1 -2
  221. package/build-module/types.js.map +7 -1
  222. package/build-style/style-rtl.css +4 -139
  223. package/build-style/style.css +4 -139
  224. package/build-types/fields/author/author-view.d.ts.map +1 -1
  225. package/build-types/fields/discussion/index.d.ts.map +1 -1
  226. package/build-types/fields/featured-image/featured-image-edit.d.ts +2 -2
  227. package/build-types/fields/featured-image/featured-image-edit.d.ts.map +1 -1
  228. package/build-types/fields/featured-image/featured-image-view.d.ts +5 -2
  229. package/build-types/fields/featured-image/featured-image-view.d.ts.map +1 -1
  230. package/build-types/fields/featured-image/index.d.ts +3 -3
  231. package/build-types/fields/featured-image/index.d.ts.map +1 -1
  232. package/build-types/types.d.ts +18 -0
  233. package/build-types/types.d.ts.map +1 -1
  234. package/package.json +34 -27
  235. package/src/components/create-template-part-modal/style.scss +4 -0
  236. package/src/fields/author/author-view.tsx +3 -17
  237. package/src/fields/discussion/index.tsx +1 -0
  238. package/src/fields/featured-image/featured-image-edit.tsx +2 -2
  239. package/src/fields/featured-image/featured-image-view.tsx +3 -15
  240. package/src/fields/featured-image/index.ts +3 -3
  241. package/src/fields/featured-image/style.scss +3 -0
  242. package/src/fields/template/style.scss +4 -0
  243. package/src/fields/title/style.scss +1 -1
  244. package/src/style.scss +9 -8
  245. package/src/types.ts +18 -0
  246. package/tsconfig.tsbuildinfo +1 -1
  247. package/build/index.native.js +0 -2
  248. package/build/index.native.js.map +0 -1
  249. package/build-module/index.native.js +0 -2
  250. package/build-module/index.native.js.map +0 -1
@@ -1,64 +1,36 @@
1
- /**
2
- * External dependencies
3
- */
4
- import clsx from 'clsx';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
- import { __ } from '@wordpress/i18n';
10
- import { useState } from '@wordpress/element';
11
- import { commentAuthorAvatar as authorIcon } from '@wordpress/icons';
12
- import { __experimentalHStack as HStack, Icon } from '@wordpress/components';
13
- import { useSelect } from '@wordpress/data';
14
- import { store as coreStore } from '@wordpress/core-data';
15
-
16
- /**
17
- * Internal dependencies
18
- */
19
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
- function AuthorView({
21
- item
22
- }) {
23
- const {
24
- text,
25
- imageUrl
26
- } = useSelect(select => {
27
- const {
28
- getEntityRecord
29
- } = select(coreStore);
30
- let user;
31
- if (!!item.author) {
32
- user = getEntityRecord('root', 'user', item.author);
33
- }
34
- return {
35
- imageUrl: user?.avatar_urls?.[48],
36
- text: user?.name
37
- };
38
- }, [item]);
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import { __ } from "@wordpress/i18n";
4
+ import { useState } from "@wordpress/element";
5
+ import { commentAuthorAvatar as authorIcon } from "@wordpress/icons";
6
+ import { __experimentalHStack as HStack, Icon } from "@wordpress/components";
7
+ function AuthorView({ item }) {
8
+ const text = item?._embedded?.author?.[0]?.name;
9
+ const imageUrl = item?._embedded?.author?.[0]?.avatar_urls?.[48];
39
10
  const [isImageLoaded, setIsImageLoaded] = useState(false);
40
- return /*#__PURE__*/_jsxs(HStack, {
41
- alignment: "left",
42
- spacing: 0,
43
- children: [!!imageUrl && /*#__PURE__*/_jsx("div", {
44
- className: clsx('page-templates-author-field__avatar', {
45
- 'is-loaded': isImageLoaded
46
- }),
47
- children: /*#__PURE__*/_jsx("img", {
48
- onLoad: () => setIsImageLoaded(true),
49
- alt: __('Author avatar'),
50
- src: imageUrl
51
- })
52
- }), !imageUrl && /*#__PURE__*/_jsx("div", {
53
- className: "page-templates-author-field__icon",
54
- children: /*#__PURE__*/_jsx(Icon, {
55
- icon: authorIcon
56
- })
57
- }), /*#__PURE__*/_jsx("span", {
58
- className: "page-templates-author-field__name",
59
- children: text
60
- })]
61
- });
11
+ return /* @__PURE__ */ jsxs(HStack, { alignment: "left", spacing: 0, children: [
12
+ !!imageUrl && /* @__PURE__ */ jsx(
13
+ "div",
14
+ {
15
+ className: clsx("page-templates-author-field__avatar", {
16
+ "is-loaded": isImageLoaded
17
+ }),
18
+ children: /* @__PURE__ */ jsx(
19
+ "img",
20
+ {
21
+ onLoad: () => setIsImageLoaded(true),
22
+ alt: __("Author avatar"),
23
+ src: imageUrl
24
+ }
25
+ )
26
+ }
27
+ ),
28
+ !imageUrl && /* @__PURE__ */ jsx("div", { className: "page-templates-author-field__icon", children: /* @__PURE__ */ jsx(Icon, { icon: authorIcon }) }),
29
+ /* @__PURE__ */ jsx("span", { className: "page-templates-author-field__name", children: text })
30
+ ] });
62
31
  }
63
- export default AuthorView;
64
- //# sourceMappingURL=author-view.js.map
32
+ var author_view_default = AuthorView;
33
+ export {
34
+ author_view_default as default
35
+ };
36
+ //# sourceMappingURL=author-view.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["clsx","__","useState","commentAuthorAvatar","authorIcon","__experimentalHStack","HStack","Icon","useSelect","store","coreStore","jsx","_jsx","jsxs","_jsxs","AuthorView","item","text","imageUrl","select","getEntityRecord","user","author","avatar_urls","name","isImageLoaded","setIsImageLoaded","alignment","spacing","children","className","onLoad","alt","src","icon"],"sources":["@wordpress/fields/src/fields/author/author-view.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { commentAuthorAvatar as authorIcon } from '@wordpress/icons';\nimport { __experimentalHStack as HStack, Icon } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { User } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport type { BasePostWithEmbeddedAuthor } from '../../types';\n\nfunction AuthorView( { item }: { item: BasePostWithEmbeddedAuthor } ) {\n\tconst { text, imageUrl } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord } = select( coreStore );\n\t\t\tlet user: User | undefined;\n\t\t\tif ( !! item.author ) {\n\t\t\t\tuser = getEntityRecord( 'root', 'user', item.author );\n\t\t\t}\n\t\t\treturn {\n\t\t\t\timageUrl: user?.avatar_urls?.[ 48 ],\n\t\t\t\ttext: user?.name,\n\t\t\t};\n\t\t},\n\t\t[ item ]\n\t);\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\treturn (\n\t\t<HStack alignment=\"left\" spacing={ 0 }>\n\t\t\t{ !! imageUrl && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx( 'page-templates-author-field__avatar', {\n\t\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t\t} ) }\n\t\t\t\t>\n\t\t\t\t\t<img\n\t\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\t\talt={ __( 'Author avatar' ) }\n\t\t\t\t\t\tsrc={ imageUrl }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t{ ! imageUrl && (\n\t\t\t\t<div className=\"page-templates-author-field__icon\">\n\t\t\t\t\t<Icon icon={ authorIcon } />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<span className=\"page-templates-author-field__name\">{ text }</span>\n\t\t</HStack>\n\t);\n}\n\nexport default AuthorView;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,mBAAmB,IAAIC,UAAU,QAAQ,kBAAkB;AACpE,SAASC,oBAAoB,IAAIC,MAAM,EAAEC,IAAI,QAAQ,uBAAuB;AAC5E,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;;AAGzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,SAASC,UAAUA,CAAE;EAAEC;AAA2C,CAAC,EAAG;EACrE,MAAM;IAAEC,IAAI;IAAEC;EAAS,CAAC,GAAGV,SAAS,CACjCW,MAAM,IAAM;IACb,MAAM;MAAEC;IAAgB,CAAC,GAAGD,MAAM,CAAET,SAAU,CAAC;IAC/C,IAAIW,IAAsB;IAC1B,IAAK,CAAC,CAAEL,IAAI,CAACM,MAAM,EAAG;MACrBD,IAAI,GAAGD,eAAe,CAAE,MAAM,EAAE,MAAM,EAAEJ,IAAI,CAACM,MAAO,CAAC;IACtD;IACA,OAAO;MACNJ,QAAQ,EAAEG,IAAI,EAAEE,WAAW,GAAI,EAAE,CAAE;MACnCN,IAAI,EAAEI,IAAI,EAAEG;IACb,CAAC;EACF,CAAC,EACD,CAAER,IAAI,CACP,CAAC;EACD,MAAM,CAAES,aAAa,EAAEC,gBAAgB,CAAE,GAAGxB,QAAQ,CAAE,KAAM,CAAC;EAC7D,oBACCY,KAAA,CAACR,MAAM;IAACqB,SAAS,EAAC,MAAM;IAACC,OAAO,EAAG,CAAG;IAAAC,QAAA,GACnC,CAAC,CAAEX,QAAQ,iBACZN,IAAA;MACCkB,SAAS,EAAG9B,IAAI,CAAE,qCAAqC,EAAE;QACxD,WAAW,EAAEyB;MACd,CAAE,CAAG;MAAAI,QAAA,eAELjB,IAAA;QACCmB,MAAM,EAAGA,CAAA,KAAML,gBAAgB,CAAE,IAAK,CAAG;QACzCM,GAAG,EAAG/B,EAAE,CAAE,eAAgB,CAAG;QAC7BgC,GAAG,EAAGf;MAAU,CAChB;IAAC,CACE,CACL,EACC,CAAEA,QAAQ,iBACXN,IAAA;MAAKkB,SAAS,EAAC,mCAAmC;MAAAD,QAAA,eACjDjB,IAAA,CAACL,IAAI;QAAC2B,IAAI,EAAG9B;MAAY,CAAE;IAAC,CACxB,CACL,eACDQ,IAAA;MAAMkB,SAAS,EAAC,mCAAmC;MAAAD,QAAA,EAAGZ;IAAI,CAAQ,CAAC;EAAA,CAC5D,CAAC;AAEX;AAEA,eAAeF,UAAU","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/author/author-view.tsx"],
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\nimport { commentAuthorAvatar as authorIcon } from '@wordpress/icons';\nimport { __experimentalHStack as HStack, Icon } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport type { BasePostWithEmbeddedAuthor } from '../../types';\n\nfunction AuthorView( { item }: { item: BasePostWithEmbeddedAuthor } ) {\n\tconst text = item?._embedded?.author?.[ 0 ]?.name;\n\tconst imageUrl = item?._embedded?.author?.[ 0 ]?.avatar_urls?.[ 48 ];\n\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\treturn (\n\t\t<HStack alignment=\"left\" spacing={ 0 }>\n\t\t\t{ !! imageUrl && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx( 'page-templates-author-field__avatar', {\n\t\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t\t} ) }\n\t\t\t\t>\n\t\t\t\t\t<img\n\t\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\t\talt={ __( 'Author avatar' ) }\n\t\t\t\t\t\tsrc={ imageUrl }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t{ ! imageUrl && (\n\t\t\t\t<div className=\"page-templates-author-field__icon\">\n\t\t\t\t\t<Icon icon={ authorIcon } />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<span className=\"page-templates-author-field__name\">{ text }</span>\n\t\t</HStack>\n\t);\n}\n\nexport default AuthorView;\n"],
5
+ "mappings": "AAwBE,SAOG,KAPH;AArBF,OAAO,UAAU;AAKjB,SAAS,UAAU;AACnB,SAAS,gBAAgB;AACzB,SAAS,uBAAuB,kBAAkB;AAClD,SAAS,wBAAwB,QAAQ,YAAY;AAOrD,SAAS,WAAY,EAAE,KAAK,GAA0C;AACrE,QAAM,OAAO,MAAM,WAAW,SAAU,CAAE,GAAG;AAC7C,QAAM,WAAW,MAAM,WAAW,SAAU,CAAE,GAAG,cAAe,EAAG;AAEnE,QAAM,CAAE,eAAe,gBAAiB,IAAI,SAAU,KAAM;AAC5D,SACC,qBAAC,UAAO,WAAU,QAAO,SAAU,GAChC;AAAA,KAAC,CAAE,YACJ;AAAA,MAAC;AAAA;AAAA,QACA,WAAY,KAAM,uCAAuC;AAAA,UACxD,aAAa;AAAA,QACd,CAAE;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACA,QAAS,MAAM,iBAAkB,IAAK;AAAA,YACtC,KAAM,GAAI,eAAgB;AAAA,YAC1B,KAAM;AAAA;AAAA,QACP;AAAA;AAAA,IACD;AAAA,IAEC,CAAE,YACH,oBAAC,SAAI,WAAU,qCACd,8BAAC,QAAK,MAAO,YAAa,GAC3B;AAAA,IAED,oBAAC,UAAK,WAAU,qCAAsC,gBAAM;AAAA,KAC7D;AAEF;AAEA,IAAO,sBAAQ;",
6
+ "names": []
7
+ }
@@ -1,32 +1,22 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
-
5
- import { __ } from '@wordpress/i18n';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
-
11
- import AuthorView from './author-view';
1
+ import { __ } from "@wordpress/i18n";
2
+ import AuthorView from "./author-view";
12
3
  const authorField = {
13
- label: __('Author'),
14
- id: 'author',
15
- type: 'integer',
4
+ label: __("Author"),
5
+ id: "author",
6
+ type: "integer",
16
7
  elements: [],
17
8
  render: AuthorView,
18
9
  sort: (a, b, direction) => {
19
- const nameA = a._embedded?.author?.[0]?.name || '';
20
- const nameB = b._embedded?.author?.[0]?.name || '';
21
- return direction === 'asc' ? nameA.localeCompare(nameB) : nameB.localeCompare(nameA);
10
+ const nameA = a._embedded?.author?.[0]?.name || "";
11
+ const nameB = b._embedded?.author?.[0]?.name || "";
12
+ return direction === "asc" ? nameA.localeCompare(nameB) : nameB.localeCompare(nameA);
22
13
  },
23
14
  filterBy: {
24
- operators: ['isAny', 'isNone']
15
+ operators: ["isAny", "isNone"]
25
16
  }
26
17
  };
27
-
28
- /**
29
- * Author field for BasePost.
30
- */
31
- export default authorField;
32
- //# sourceMappingURL=index.js.map
18
+ var author_default = authorField;
19
+ export {
20
+ author_default as default
21
+ };
22
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["__","AuthorView","authorField","label","id","type","elements","render","sort","a","b","direction","nameA","_embedded","author","name","nameB","localeCompare","filterBy","operators"],"sources":["@wordpress/fields/src/fields/author/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePostWithEmbeddedAuthor } from '../../types';\nimport AuthorView from './author-view';\n\nconst authorField: Field< BasePostWithEmbeddedAuthor > = {\n\tlabel: __( 'Author' ),\n\tid: 'author',\n\ttype: 'integer',\n\telements: [],\n\trender: AuthorView,\n\tsort: ( a, b, direction ) => {\n\t\tconst nameA = a._embedded?.author?.[ 0 ]?.name || '';\n\t\tconst nameB = b._embedded?.author?.[ 0 ]?.name || '';\n\n\t\treturn direction === 'asc'\n\t\t\t? nameA.localeCompare( nameB )\n\t\t\t: nameB.localeCompare( nameA );\n\t},\n\n\tfilterBy: {\n\t\toperators: [ 'isAny', 'isNone' ],\n\t},\n};\n\n/**\n * Author field for BasePost.\n */\nexport default authorField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,UAAU,MAAM,eAAe;AAEtC,MAAMC,WAAgD,GAAG;EACxDC,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;EACrBI,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,EAAE;EACZC,MAAM,EAAEN,UAAU;EAClBO,IAAI,EAAEA,CAAEC,CAAC,EAAEC,CAAC,EAAEC,SAAS,KAAM;IAC5B,MAAMC,KAAK,GAAGH,CAAC,CAACI,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IACpD,MAAMC,KAAK,GAAGN,CAAC,CAACG,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IAEpD,OAAOJ,SAAS,KAAK,KAAK,GACvBC,KAAK,CAACK,aAAa,CAAED,KAAM,CAAC,GAC5BA,KAAK,CAACC,aAAa,CAAEL,KAAM,CAAC;EAChC,CAAC;EAEDM,QAAQ,EAAE;IACTC,SAAS,EAAE,CAAE,OAAO,EAAE,QAAQ;EAC/B;AACD,CAAC;;AAED;AACA;AACA;AACA,eAAejB,WAAW","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/author/index.tsx"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePostWithEmbeddedAuthor } from '../../types';\nimport AuthorView from './author-view';\n\nconst authorField: Field< BasePostWithEmbeddedAuthor > = {\n\tlabel: __( 'Author' ),\n\tid: 'author',\n\ttype: 'integer',\n\telements: [],\n\trender: AuthorView,\n\tsort: ( a, b, direction ) => {\n\t\tconst nameA = a._embedded?.author?.[ 0 ]?.name || '';\n\t\tconst nameB = b._embedded?.author?.[ 0 ]?.name || '';\n\n\t\treturn direction === 'asc'\n\t\t\t? nameA.localeCompare( nameB )\n\t\t\t: nameB.localeCompare( nameA );\n\t},\n\n\tfilterBy: {\n\t\toperators: [ 'isAny', 'isNone' ],\n\t},\n};\n\n/**\n * Author field for BasePost.\n */\nexport default authorField;\n"],
5
+ "mappings": "AAIA,SAAS,UAAU;AAMnB,OAAO,gBAAgB;AAEvB,MAAM,cAAmD;AAAA,EACxD,OAAO,GAAI,QAAS;AAAA,EACpB,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU,CAAC;AAAA,EACX,QAAQ;AAAA,EACR,MAAM,CAAE,GAAG,GAAG,cAAe;AAC5B,UAAM,QAAQ,EAAE,WAAW,SAAU,CAAE,GAAG,QAAQ;AAClD,UAAM,QAAQ,EAAE,WAAW,SAAU,CAAE,GAAG,QAAQ;AAElD,WAAO,cAAc,QAClB,MAAM,cAAe,KAAM,IAC3B,MAAM,cAAe,KAAM;AAAA,EAC/B;AAAA,EAEA,UAAU;AAAA,IACT,WAAW,CAAE,SAAS,QAAS;AAAA,EAChC;AACD;AAKA,IAAO,iBAAQ;",
6
+ "names": []
7
+ }
@@ -1,34 +1,29 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
-
5
- import { __ } from '@wordpress/i18n';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
-
1
+ import { __ } from "@wordpress/i18n";
11
2
  const commentStatusField = {
12
- id: 'comment_status',
13
- label: __('Comments'),
14
- type: 'text',
15
- Edit: 'radio',
3
+ id: "comment_status",
4
+ label: __("Comments"),
5
+ type: "text",
6
+ Edit: "radio",
16
7
  enableSorting: false,
17
8
  enableHiding: false,
18
9
  filterBy: false,
19
- elements: [{
20
- value: 'open',
21
- label: __('Open'),
22
- description: __('Visitors can add new comments and replies.')
23
- }, {
24
- value: 'closed',
25
- label: __('Closed'),
26
- description: __('Visitors cannot add new comments or replies. Existing comments remain visible.')
27
- }]
10
+ elements: [
11
+ {
12
+ value: "open",
13
+ label: __("Open"),
14
+ description: __("Visitors can add new comments and replies.")
15
+ },
16
+ {
17
+ value: "closed",
18
+ label: __("Closed"),
19
+ description: __(
20
+ "Visitors cannot add new comments or replies. Existing comments remain visible."
21
+ )
22
+ }
23
+ ]
28
24
  };
29
-
30
- /**
31
- * Comment status field for BasePost.
32
- */
33
- export default commentStatusField;
34
- //# sourceMappingURL=index.js.map
25
+ var comment_status_default = commentStatusField;
26
+ export {
27
+ comment_status_default as default
28
+ };
29
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["__","commentStatusField","id","label","type","Edit","enableSorting","enableHiding","filterBy","elements","value","description"],"sources":["@wordpress/fields/src/fields/comment-status/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst commentStatusField: Field< BasePost > = {\n\tid: 'comment_status',\n\tlabel: __( 'Comments' ),\n\ttype: 'text',\n\tEdit: 'radio',\n\tenableSorting: false,\n\tenableHiding: false,\n\tfilterBy: false,\n\telements: [\n\t\t{\n\t\t\tvalue: 'open',\n\t\t\tlabel: __( 'Open' ),\n\t\t\tdescription: __( 'Visitors can add new comments and replies.' ),\n\t\t},\n\t\t{\n\t\t\tvalue: 'closed',\n\t\t\tlabel: __( 'Closed' ),\n\t\t\tdescription: __(\n\t\t\t\t'Visitors cannot add new comments or replies. Existing comments remain visible.'\n\t\t\t),\n\t\t},\n\t],\n};\n\n/**\n * Comment status field for BasePost.\n */\nexport default commentStatusField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,kBAAqC,GAAG;EAC7CC,EAAE,EAAE,gBAAgB;EACpBC,KAAK,EAAEH,EAAE,CAAE,UAAW,CAAC;EACvBI,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,OAAO;EACbC,aAAa,EAAE,KAAK;EACpBC,YAAY,EAAE,KAAK;EACnBC,QAAQ,EAAE,KAAK;EACfC,QAAQ,EAAE,CACT;IACCC,KAAK,EAAE,MAAM;IACbP,KAAK,EAAEH,EAAE,CAAE,MAAO,CAAC;IACnBW,WAAW,EAAEX,EAAE,CAAE,4CAA6C;EAC/D,CAAC,EACD;IACCU,KAAK,EAAE,QAAQ;IACfP,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;IACrBW,WAAW,EAAEX,EAAE,CACd,gFACD;EACD,CAAC;AAEH,CAAC;;AAED;AACA;AACA;AACA,eAAeC,kBAAkB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/comment-status/index.tsx"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst commentStatusField: Field< BasePost > = {\n\tid: 'comment_status',\n\tlabel: __( 'Comments' ),\n\ttype: 'text',\n\tEdit: 'radio',\n\tenableSorting: false,\n\tenableHiding: false,\n\tfilterBy: false,\n\telements: [\n\t\t{\n\t\t\tvalue: 'open',\n\t\t\tlabel: __( 'Open' ),\n\t\t\tdescription: __( 'Visitors can add new comments and replies.' ),\n\t\t},\n\t\t{\n\t\t\tvalue: 'closed',\n\t\t\tlabel: __( 'Closed' ),\n\t\t\tdescription: __(\n\t\t\t\t'Visitors cannot add new comments or replies. Existing comments remain visible.'\n\t\t\t),\n\t\t},\n\t],\n};\n\n/**\n * Comment status field for BasePost.\n */\nexport default commentStatusField;\n"],
5
+ "mappings": "AAIA,SAAS,UAAU;AAOnB,MAAM,qBAAwC;AAAA,EAC7C,IAAI;AAAA,EACJ,OAAO,GAAI,UAAW;AAAA,EACtB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,eAAe;AAAA,EACf,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AAAA,IACT;AAAA,MACC,OAAO;AAAA,MACP,OAAO,GAAI,MAAO;AAAA,MAClB,aAAa,GAAI,4CAA6C;AAAA,IAC/D;AAAA,IACA;AAAA,MACC,OAAO;AAAA,MACP,OAAO,GAAI,QAAS;AAAA,MACpB,aAAa;AAAA,QACZ;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAKA,IAAO,yBAAQ;",
6
+ "names": []
7
+ }
@@ -1,62 +1,75 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { __, sprintf } from '@wordpress/i18n';
5
- import { createInterpolateElement } from '@wordpress/element';
6
- import { dateI18n, getDate, getSettings } from '@wordpress/date';
7
-
8
- /**
9
- * Internal dependencies
10
- */
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- const getFormattedDate = dateToDisplay => dateI18n(getSettings().formats.datetimeAbbreviated, getDate(dateToDisplay));
13
- const DateView = ({
14
- item
15
- }) => {
16
- var _item$status, _item$modified, _item$date4, _item$date5;
17
- const isDraftOrPrivate = ['draft', 'private'].includes((_item$status = item.status) !== null && _item$status !== void 0 ? _item$status : '');
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { __, sprintf } from "@wordpress/i18n";
3
+ import { createInterpolateElement } from "@wordpress/element";
4
+ import { dateI18n, getDate, getSettings } from "@wordpress/date";
5
+ const getFormattedDate = (dateToDisplay) => dateI18n(
6
+ getSettings().formats.datetimeAbbreviated,
7
+ getDate(dateToDisplay)
8
+ );
9
+ const DateView = ({ item }) => {
10
+ const isDraftOrPrivate = ["draft", "private"].includes(
11
+ item.status ?? ""
12
+ );
18
13
  if (isDraftOrPrivate) {
19
- var _item$date;
20
- return createInterpolateElement(sprintf(/* translators: %s: page creation or modification date. */
21
- __('<span>Modified: <time>%s</time></span>'), getFormattedDate((_item$date = item.date) !== null && _item$date !== void 0 ? _item$date : null)), {
22
- span: /*#__PURE__*/_jsx("span", {}),
23
- time: /*#__PURE__*/_jsx("time", {})
24
- });
14
+ return createInterpolateElement(
15
+ sprintf(
16
+ /* translators: %s: page creation or modification date. */
17
+ __("<span>Modified: <time>%s</time></span>"),
18
+ getFormattedDate(item.date ?? null)
19
+ ),
20
+ {
21
+ span: /* @__PURE__ */ jsx("span", {}),
22
+ time: /* @__PURE__ */ jsx("time", {})
23
+ }
24
+ );
25
25
  }
26
- const isScheduled = item.status === 'future';
26
+ const isScheduled = item.status === "future";
27
27
  if (isScheduled) {
28
- var _item$date2;
29
- return createInterpolateElement(sprintf(/* translators: %s: page creation date */
30
- __('<span>Scheduled: <time>%s</time></span>'), getFormattedDate((_item$date2 = item.date) !== null && _item$date2 !== void 0 ? _item$date2 : null)), {
31
- span: /*#__PURE__*/_jsx("span", {}),
32
- time: /*#__PURE__*/_jsx("time", {})
33
- });
28
+ return createInterpolateElement(
29
+ sprintf(
30
+ /* translators: %s: page creation date */
31
+ __("<span>Scheduled: <time>%s</time></span>"),
32
+ getFormattedDate(item.date ?? null)
33
+ ),
34
+ {
35
+ span: /* @__PURE__ */ jsx("span", {}),
36
+ time: /* @__PURE__ */ jsx("time", {})
37
+ }
38
+ );
34
39
  }
35
- const isPublished = item.status === 'publish';
40
+ const isPublished = item.status === "publish";
36
41
  if (isPublished) {
37
- var _item$date3;
38
- return createInterpolateElement(sprintf(/* translators: %s: page creation time */
39
- __('<span>Published: <time>%s</time></span>'), getFormattedDate((_item$date3 = item.date) !== null && _item$date3 !== void 0 ? _item$date3 : null)), {
40
- span: /*#__PURE__*/_jsx("span", {}),
41
- time: /*#__PURE__*/_jsx("time", {})
42
- });
42
+ return createInterpolateElement(
43
+ sprintf(
44
+ /* translators: %s: page creation time */
45
+ __("<span>Published: <time>%s</time></span>"),
46
+ getFormattedDate(item.date ?? null)
47
+ ),
48
+ {
49
+ span: /* @__PURE__ */ jsx("span", {}),
50
+ time: /* @__PURE__ */ jsx("time", {})
51
+ }
52
+ );
43
53
  }
44
-
45
- // Pending posts show the modified date if it's newer.
46
- const dateToDisplay = getDate((_item$modified = item.modified) !== null && _item$modified !== void 0 ? _item$modified : null) > getDate((_item$date4 = item.date) !== null && _item$date4 !== void 0 ? _item$date4 : null) ? item.modified : item.date;
47
- const isPending = item.status === 'pending';
54
+ const dateToDisplay = getDate(item.modified ?? null) > getDate(item.date ?? null) ? item.modified : item.date;
55
+ const isPending = item.status === "pending";
48
56
  if (isPending) {
49
- return createInterpolateElement(sprintf(/* translators: %s: page creation or modification date. */
50
- __('<span>Modified: <time>%s</time></span>'), getFormattedDate(dateToDisplay !== null && dateToDisplay !== void 0 ? dateToDisplay : null)), {
51
- span: /*#__PURE__*/_jsx("span", {}),
52
- time: /*#__PURE__*/_jsx("time", {})
53
- });
57
+ return createInterpolateElement(
58
+ sprintf(
59
+ /* translators: %s: page creation or modification date. */
60
+ __("<span>Modified: <time>%s</time></span>"),
61
+ getFormattedDate(dateToDisplay ?? null)
62
+ ),
63
+ {
64
+ span: /* @__PURE__ */ jsx("span", {}),
65
+ time: /* @__PURE__ */ jsx("time", {})
66
+ }
67
+ );
54
68
  }
55
-
56
- // Unknow status.
57
- return /*#__PURE__*/_jsx("time", {
58
- children: getFormattedDate((_item$date5 = item.date) !== null && _item$date5 !== void 0 ? _item$date5 : null)
59
- });
69
+ return /* @__PURE__ */ jsx("time", { children: getFormattedDate(item.date ?? null) });
60
70
  };
61
- export default DateView;
62
- //# sourceMappingURL=date-view.js.map
71
+ var date_view_default = DateView;
72
+ export {
73
+ date_view_default as default
74
+ };
75
+ //# sourceMappingURL=date-view.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["__","sprintf","createInterpolateElement","dateI18n","getDate","getSettings","jsx","_jsx","getFormattedDate","dateToDisplay","formats","datetimeAbbreviated","DateView","item","_item$status","_item$modified","_item$date4","_item$date5","isDraftOrPrivate","includes","status","_item$date","date","span","time","isScheduled","_item$date2","isPublished","_item$date3","modified","isPending","children"],"sources":["@wordpress/fields/src/fields/date/date-view.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { dateI18n, getDate, getSettings } from '@wordpress/date';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst getFormattedDate = ( dateToDisplay: string | null ) =>\n\tdateI18n(\n\t\tgetSettings().formats.datetimeAbbreviated,\n\t\tgetDate( dateToDisplay )\n\t);\n\nconst DateView = ( { item }: { item: BasePost } ) => {\n\tconst isDraftOrPrivate = [ 'draft', 'private' ].includes(\n\t\titem.status ?? ''\n\t);\n\tif ( isDraftOrPrivate ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation or modification date. */\n\t\t\t\t__( '<span>Modified: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\tconst isScheduled = item.status === 'future';\n\tif ( isScheduled ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation date */\n\t\t\t\t__( '<span>Scheduled: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\tconst isPublished = item.status === 'publish';\n\tif ( isPublished ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation time */\n\t\t\t\t__( '<span>Published: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\t// Pending posts show the modified date if it's newer.\n\tconst dateToDisplay =\n\t\tgetDate( item.modified ?? null ) > getDate( item.date ?? null )\n\t\t\t? item.modified\n\t\t\t: item.date;\n\n\tconst isPending = item.status === 'pending';\n\tif ( isPending ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation or modification date. */\n\t\t\t\t__( '<span>Modified: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( dateToDisplay ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\t// Unknow status.\n\treturn <time>{ getFormattedDate( item.date ?? null ) }</time>;\n};\n\nexport default DateView;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,iBAAiB;;AAEhE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA,MAAMC,gBAAgB,GAAKC,aAA4B,IACtDN,QAAQ,CACPE,WAAW,CAAC,CAAC,CAACK,OAAO,CAACC,mBAAmB,EACzCP,OAAO,CAAEK,aAAc,CACxB,CAAC;AAEF,MAAMG,QAAQ,GAAGA,CAAE;EAAEC;AAAyB,CAAC,KAAM;EAAA,IAAAC,YAAA,EAAAC,cAAA,EAAAC,WAAA,EAAAC,WAAA;EACpD,MAAMC,gBAAgB,GAAG,CAAE,OAAO,EAAE,SAAS,CAAE,CAACC,QAAQ,EAAAL,YAAA,GACvDD,IAAI,CAACO,MAAM,cAAAN,YAAA,cAAAA,YAAA,GAAI,EAChB,CAAC;EACD,IAAKI,gBAAgB,EAAG;IAAA,IAAAG,UAAA;IACvB,OAAOnB,wBAAwB,CAC9BD,OAAO,CACN;IACAD,EAAE,CAAE,wCAAyC,CAAC,EAC9CQ,gBAAgB,EAAAa,UAAA,GAAER,IAAI,CAACS,IAAI,cAAAD,UAAA,cAAAA,UAAA,GAAI,IAAK,CACrC,CAAC,EACD;MACCE,IAAI,eAAEhB,IAAA,WAAO,CAAC;MACdiB,IAAI,eAAEjB,IAAA,WAAO;IACd,CACD,CAAC;EACF;EAEA,MAAMkB,WAAW,GAAGZ,IAAI,CAACO,MAAM,KAAK,QAAQ;EAC5C,IAAKK,WAAW,EAAG;IAAA,IAAAC,WAAA;IAClB,OAAOxB,wBAAwB,CAC9BD,OAAO,CACN;IACAD,EAAE,CAAE,yCAA0C,CAAC,EAC/CQ,gBAAgB,EAAAkB,WAAA,GAAEb,IAAI,CAACS,IAAI,cAAAI,WAAA,cAAAA,WAAA,GAAI,IAAK,CACrC,CAAC,EACD;MACCH,IAAI,eAAEhB,IAAA,WAAO,CAAC;MACdiB,IAAI,eAAEjB,IAAA,WAAO;IACd,CACD,CAAC;EACF;EAEA,MAAMoB,WAAW,GAAGd,IAAI,CAACO,MAAM,KAAK,SAAS;EAC7C,IAAKO,WAAW,EAAG;IAAA,IAAAC,WAAA;IAClB,OAAO1B,wBAAwB,CAC9BD,OAAO,CACN;IACAD,EAAE,CAAE,yCAA0C,CAAC,EAC/CQ,gBAAgB,EAAAoB,WAAA,GAAEf,IAAI,CAACS,IAAI,cAAAM,WAAA,cAAAA,WAAA,GAAI,IAAK,CACrC,CAAC,EACD;MACCL,IAAI,eAAEhB,IAAA,WAAO,CAAC;MACdiB,IAAI,eAAEjB,IAAA,WAAO;IACd,CACD,CAAC;EACF;;EAEA;EACA,MAAME,aAAa,GAClBL,OAAO,EAAAW,cAAA,GAAEF,IAAI,CAACgB,QAAQ,cAAAd,cAAA,cAAAA,cAAA,GAAI,IAAK,CAAC,GAAGX,OAAO,EAAAY,WAAA,GAAEH,IAAI,CAACS,IAAI,cAAAN,WAAA,cAAAA,WAAA,GAAI,IAAK,CAAC,GAC5DH,IAAI,CAACgB,QAAQ,GACbhB,IAAI,CAACS,IAAI;EAEb,MAAMQ,SAAS,GAAGjB,IAAI,CAACO,MAAM,KAAK,SAAS;EAC3C,IAAKU,SAAS,EAAG;IAChB,OAAO5B,wBAAwB,CAC9BD,OAAO,CACN;IACAD,EAAE,CAAE,wCAAyC,CAAC,EAC9CQ,gBAAgB,CAAEC,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,IAAK,CACzC,CAAC,EACD;MACCc,IAAI,eAAEhB,IAAA,WAAO,CAAC;MACdiB,IAAI,eAAEjB,IAAA,WAAO;IACd,CACD,CAAC;EACF;;EAEA;EACA,oBAAOA,IAAA;IAAAwB,QAAA,EAAQvB,gBAAgB,EAAAS,WAAA,GAAEJ,IAAI,CAACS,IAAI,cAAAL,WAAA,cAAAA,WAAA,GAAI,IAAK;EAAC,CAAQ,CAAC;AAC9D,CAAC;AAED,eAAeL,QAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/date/date-view.tsx"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { dateI18n, getDate, getSettings } from '@wordpress/date';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst getFormattedDate = ( dateToDisplay: string | null ) =>\n\tdateI18n(\n\t\tgetSettings().formats.datetimeAbbreviated,\n\t\tgetDate( dateToDisplay )\n\t);\n\nconst DateView = ( { item }: { item: BasePost } ) => {\n\tconst isDraftOrPrivate = [ 'draft', 'private' ].includes(\n\t\titem.status ?? ''\n\t);\n\tif ( isDraftOrPrivate ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation or modification date. */\n\t\t\t\t__( '<span>Modified: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\tconst isScheduled = item.status === 'future';\n\tif ( isScheduled ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation date */\n\t\t\t\t__( '<span>Scheduled: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\tconst isPublished = item.status === 'publish';\n\tif ( isPublished ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation time */\n\t\t\t\t__( '<span>Published: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( item.date ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\t// Pending posts show the modified date if it's newer.\n\tconst dateToDisplay =\n\t\tgetDate( item.modified ?? null ) > getDate( item.date ?? null )\n\t\t\t? item.modified\n\t\t\t: item.date;\n\n\tconst isPending = item.status === 'pending';\n\tif ( isPending ) {\n\t\treturn createInterpolateElement(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: page creation or modification date. */\n\t\t\t\t__( '<span>Modified: <time>%s</time></span>' ),\n\t\t\t\tgetFormattedDate( dateToDisplay ?? null )\n\t\t\t),\n\t\t\t{\n\t\t\t\tspan: <span />,\n\t\t\t\ttime: <time />,\n\t\t\t}\n\t\t);\n\t}\n\n\t// Unknow status.\n\treturn <time>{ getFormattedDate( item.date ?? null ) }</time>;\n};\n\nexport default DateView;\n"],
5
+ "mappings": "AA8BU;AA3BV,SAAS,IAAI,eAAe;AAC5B,SAAS,gCAAgC;AACzC,SAAS,UAAU,SAAS,mBAAmB;AAO/C,MAAM,mBAAmB,CAAE,kBAC1B;AAAA,EACC,YAAY,EAAE,QAAQ;AAAA,EACtB,QAAS,aAAc;AACxB;AAED,MAAM,WAAW,CAAE,EAAE,KAAK,MAA2B;AACpD,QAAM,mBAAmB,CAAE,SAAS,SAAU,EAAE;AAAA,IAC/C,KAAK,UAAU;AAAA,EAChB;AACA,MAAK,kBAAmB;AACvB,WAAO;AAAA,MACN;AAAA;AAAA,QAEC,GAAI,wCAAyC;AAAA,QAC7C,iBAAkB,KAAK,QAAQ,IAAK;AAAA,MACrC;AAAA,MACA;AAAA,QACC,MAAM,oBAAC,UAAK;AAAA,QACZ,MAAM,oBAAC,UAAK;AAAA,MACb;AAAA,IACD;AAAA,EACD;AAEA,QAAM,cAAc,KAAK,WAAW;AACpC,MAAK,aAAc;AAClB,WAAO;AAAA,MACN;AAAA;AAAA,QAEC,GAAI,yCAA0C;AAAA,QAC9C,iBAAkB,KAAK,QAAQ,IAAK;AAAA,MACrC;AAAA,MACA;AAAA,QACC,MAAM,oBAAC,UAAK;AAAA,QACZ,MAAM,oBAAC,UAAK;AAAA,MACb;AAAA,IACD;AAAA,EACD;AAEA,QAAM,cAAc,KAAK,WAAW;AACpC,MAAK,aAAc;AAClB,WAAO;AAAA,MACN;AAAA;AAAA,QAEC,GAAI,yCAA0C;AAAA,QAC9C,iBAAkB,KAAK,QAAQ,IAAK;AAAA,MACrC;AAAA,MACA;AAAA,QACC,MAAM,oBAAC,UAAK;AAAA,QACZ,MAAM,oBAAC,UAAK;AAAA,MACb;AAAA,IACD;AAAA,EACD;AAGA,QAAM,gBACL,QAAS,KAAK,YAAY,IAAK,IAAI,QAAS,KAAK,QAAQ,IAAK,IAC3D,KAAK,WACL,KAAK;AAET,QAAM,YAAY,KAAK,WAAW;AAClC,MAAK,WAAY;AAChB,WAAO;AAAA,MACN;AAAA;AAAA,QAEC,GAAI,wCAAyC;AAAA,QAC7C,iBAAkB,iBAAiB,IAAK;AAAA,MACzC;AAAA,MACA;AAAA,QACC,MAAM,oBAAC,UAAK;AAAA,QACZ,MAAM,oBAAC,UAAK;AAAA,MACb;AAAA,IACD;AAAA,EACD;AAGA,SAAO,oBAAC,UAAO,2BAAkB,KAAK,QAAQ,IAAK,GAAG;AACvD;AAEA,IAAO,oBAAQ;",
6
+ "names": []
7
+ }
@@ -1,24 +1,14 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
-
5
- import { __ } from '@wordpress/i18n';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
-
11
- import DateView from './date-view';
1
+ import { __ } from "@wordpress/i18n";
2
+ import DateView from "./date-view";
12
3
  const dateField = {
13
- id: 'date',
14
- type: 'datetime',
15
- label: __('Date'),
4
+ id: "date",
5
+ type: "datetime",
6
+ label: __("Date"),
16
7
  render: DateView,
17
8
  filterBy: false
18
9
  };
19
-
20
- /**
21
- * Date field for BasePost.
22
- */
23
- export default dateField;
24
- //# sourceMappingURL=index.js.map
10
+ var date_default = dateField;
11
+ export {
12
+ date_default as default
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["__","DateView","dateField","id","type","label","render","filterBy"],"sources":["@wordpress/fields/src/fields/date/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport DateView from './date-view';\n\nconst dateField: Field< BasePost > = {\n\tid: 'date',\n\ttype: 'datetime',\n\tlabel: __( 'Date' ),\n\trender: DateView,\n\tfilterBy: false,\n};\n\n/**\n * Date field for BasePost.\n */\nexport default dateField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,SAA4B,GAAG;EACpCC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAEL,EAAE,CAAE,MAAO,CAAC;EACnBM,MAAM,EAAEL,QAAQ;EAChBM,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeL,SAAS","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/date/index.tsx"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport DateView from './date-view';\n\nconst dateField: Field< BasePost > = {\n\tid: 'date',\n\ttype: 'datetime',\n\tlabel: __( 'Date' ),\n\trender: DateView,\n\tfilterBy: false,\n};\n\n/**\n * Date field for BasePost.\n */\nexport default dateField;\n"],
5
+ "mappings": "AAIA,SAAS,UAAU;AAMnB,OAAO,cAAc;AAErB,MAAM,YAA+B;AAAA,EACpC,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,MAAO;AAAA,EAClB,QAAQ;AAAA,EACR,UAAU;AACX;AAKA,IAAO,eAAQ;",
6
+ "names": []
7
+ }
@@ -1,37 +1,26 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
-
5
- import { __ } from '@wordpress/i18n';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
-
1
+ import { __ } from "@wordpress/i18n";
11
2
  const discussionField = {
12
- id: 'discussion',
13
- label: __('Discussion'),
14
- type: 'text',
15
- render: ({
16
- item
17
- }) => {
18
- const commentsOpen = item.comment_status === 'open';
19
- const pingsOpen = item.ping_status === 'open';
3
+ id: "discussion",
4
+ label: __("Discussion"),
5
+ type: "text",
6
+ render: ({ item }) => {
7
+ const commentsOpen = item.comment_status === "open";
8
+ const pingsOpen = item.ping_status === "open";
20
9
  if (commentsOpen && pingsOpen) {
21
- return __('Open');
10
+ return __("Open");
22
11
  }
23
12
  if (commentsOpen && !pingsOpen) {
24
- return __('Comments only');
13
+ return __("Comments only");
25
14
  }
26
15
  if (!commentsOpen && pingsOpen) {
27
- return __('Pings only');
16
+ return __("Pings only");
28
17
  }
29
- return __('Closed');
30
- }
18
+ return __("Closed");
19
+ },
20
+ filterBy: false
31
21
  };
32
-
33
- /**
34
- * Discussion field for BasePost with custom render logic.
35
- */
36
- export default discussionField;
37
- //# sourceMappingURL=index.js.map
22
+ var discussion_default = discussionField;
23
+ export {
24
+ discussion_default as default
25
+ };
26
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["__","discussionField","id","label","type","render","item","commentsOpen","comment_status","pingsOpen","ping_status"],"sources":["@wordpress/fields/src/fields/discussion/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst discussionField: Field< BasePost > = {\n\tid: 'discussion',\n\tlabel: __( 'Discussion' ),\n\ttype: 'text',\n\trender: ( { item } ) => {\n\t\tconst commentsOpen = item.comment_status === 'open';\n\t\tconst pingsOpen = item.ping_status === 'open';\n\n\t\tif ( commentsOpen && pingsOpen ) {\n\t\t\treturn __( 'Open' );\n\t\t}\n\t\tif ( commentsOpen && ! pingsOpen ) {\n\t\t\treturn __( 'Comments only' );\n\t\t}\n\t\tif ( ! commentsOpen && pingsOpen ) {\n\t\t\treturn __( 'Pings only' );\n\t\t}\n\t\treturn __( 'Closed' );\n\t},\n};\n\n/**\n * Discussion field for BasePost with custom render logic.\n */\nexport default discussionField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,eAAkC,GAAG;EAC1CC,EAAE,EAAE,YAAY;EAChBC,KAAK,EAAEH,EAAE,CAAE,YAAa,CAAC;EACzBI,IAAI,EAAE,MAAM;EACZC,MAAM,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAM;IACvB,MAAMC,YAAY,GAAGD,IAAI,CAACE,cAAc,KAAK,MAAM;IACnD,MAAMC,SAAS,GAAGH,IAAI,CAACI,WAAW,KAAK,MAAM;IAE7C,IAAKH,YAAY,IAAIE,SAAS,EAAG;MAChC,OAAOT,EAAE,CAAE,MAAO,CAAC;IACpB;IACA,IAAKO,YAAY,IAAI,CAAEE,SAAS,EAAG;MAClC,OAAOT,EAAE,CAAE,eAAgB,CAAC;IAC7B;IACA,IAAK,CAAEO,YAAY,IAAIE,SAAS,EAAG;MAClC,OAAOT,EAAE,CAAE,YAAa,CAAC;IAC1B;IACA,OAAOA,EAAE,CAAE,QAAS,CAAC;EACtB;AACD,CAAC;;AAED;AACA;AACA;AACA,eAAeC,eAAe","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/fields/discussion/index.tsx"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst discussionField: Field< BasePost > = {\n\tid: 'discussion',\n\tlabel: __( 'Discussion' ),\n\ttype: 'text',\n\trender: ( { item } ) => {\n\t\tconst commentsOpen = item.comment_status === 'open';\n\t\tconst pingsOpen = item.ping_status === 'open';\n\n\t\tif ( commentsOpen && pingsOpen ) {\n\t\t\treturn __( 'Open' );\n\t\t}\n\t\tif ( commentsOpen && ! pingsOpen ) {\n\t\t\treturn __( 'Comments only' );\n\t\t}\n\t\tif ( ! commentsOpen && pingsOpen ) {\n\t\t\treturn __( 'Pings only' );\n\t\t}\n\t\treturn __( 'Closed' );\n\t},\n\tfilterBy: false,\n};\n\n/**\n * Discussion field for BasePost with custom render logic.\n */\nexport default discussionField;\n"],
5
+ "mappings": "AAIA,SAAS,UAAU;AAOnB,MAAM,kBAAqC;AAAA,EAC1C,IAAI;AAAA,EACJ,OAAO,GAAI,YAAa;AAAA,EACxB,MAAM;AAAA,EACN,QAAQ,CAAE,EAAE,KAAK,MAAO;AACvB,UAAM,eAAe,KAAK,mBAAmB;AAC7C,UAAM,YAAY,KAAK,gBAAgB;AAEvC,QAAK,gBAAgB,WAAY;AAChC,aAAO,GAAI,MAAO;AAAA,IACnB;AACA,QAAK,gBAAgB,CAAE,WAAY;AAClC,aAAO,GAAI,eAAgB;AAAA,IAC5B;AACA,QAAK,CAAE,gBAAgB,WAAY;AAClC,aAAO,GAAI,YAAa;AAAA,IACzB;AACA,WAAO,GAAI,QAAS;AAAA,EACrB;AAAA,EACA,UAAU;AACX;AAKA,IAAO,qBAAQ;",
6
+ "names": []
7
+ }