@wordpress/dataviews 16.0.0 → 16.0.1

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 (47) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/build/components/dataviews-layouts/index.cjs +9 -0
  3. package/build/components/dataviews-layouts/index.cjs.map +3 -3
  4. package/build/components/dataviews-layouts/picker-activity/index.cjs +304 -0
  5. package/build/components/dataviews-layouts/picker-activity/index.cjs.map +7 -0
  6. package/build/components/dataviews-view-config/index.cjs +1 -0
  7. package/build/components/dataviews-view-config/index.cjs.map +2 -2
  8. package/build/constants.cjs +3 -0
  9. package/build/constants.cjs.map +2 -2
  10. package/build/types/dataviews.cjs.map +1 -1
  11. package/build-module/components/dataviews-layouts/index.mjs +11 -1
  12. package/build-module/components/dataviews-layouts/index.mjs.map +2 -2
  13. package/build-module/components/dataviews-layouts/picker-activity/index.mjs +273 -0
  14. package/build-module/components/dataviews-layouts/picker-activity/index.mjs.map +7 -0
  15. package/build-module/components/dataviews-view-config/index.mjs +1 -0
  16. package/build-module/components/dataviews-view-config/index.mjs.map +2 -2
  17. package/build-module/constants.mjs +2 -0
  18. package/build-module/constants.mjs.map +2 -2
  19. package/build-style/style-rtl.css +199 -13
  20. package/build-style/style.css +199 -13
  21. package/build-types/components/dataviews-layouts/index.d.ts +8 -0
  22. package/build-types/components/dataviews-layouts/index.d.ts.map +1 -1
  23. package/build-types/components/dataviews-layouts/picker-activity/index.d.ts +3 -0
  24. package/build-types/components/dataviews-layouts/picker-activity/index.d.ts.map +1 -0
  25. package/build-types/components/dataviews-view-config/index.d.ts.map +1 -1
  26. package/build-types/constants.d.ts +1 -0
  27. package/build-types/constants.d.ts.map +1 -1
  28. package/build-types/dataform/stories/index.story.d.ts +1 -0
  29. package/build-types/dataform/stories/index.story.d.ts.map +1 -1
  30. package/build-types/dataviews/stories/index.story.d.ts.map +1 -1
  31. package/build-types/dataviews-picker/stories/index.story.d.ts.map +1 -1
  32. package/build-types/types/dataviews.d.ts +16 -2
  33. package/build-types/types/dataviews.d.ts.map +1 -1
  34. package/build-wp/index.js +928 -648
  35. package/package.json +22 -19
  36. package/src/components/dataviews-layouts/index.ts +10 -0
  37. package/src/components/dataviews-layouts/picker-activity/index.tsx +359 -0
  38. package/src/components/dataviews-layouts/picker-activity/style.scss +227 -0
  39. package/src/components/dataviews-view-config/index.tsx +1 -0
  40. package/src/constants.ts +1 -0
  41. package/src/dataform/stories/content.story.tsx +1 -1
  42. package/src/dataform/stories/index.story.tsx +1 -0
  43. package/src/dataviews/stories/index.story.tsx +1 -0
  44. package/src/dataviews-picker/stories/index.story.tsx +6 -0
  45. package/src/dataviews-picker/test/dataviews-picker.tsx +5 -0
  46. package/src/style.scss +1 -0
  47. package/src/types/dataviews.ts +21 -1
package/build-wp/index.js CHANGED
@@ -5,7 +5,7 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/dataviews/index.tsx
8
- import clsx52 from "clsx";
8
+ import clsx53 from "clsx";
9
9
 
10
10
  // ../element/build-module/react.mjs
11
11
  import {
@@ -443,6 +443,7 @@ var CORE_MODULES_USING_PRIVATE_APIS = [
443
443
  "@wordpress/route",
444
444
  "@wordpress/router",
445
445
  "@wordpress/routes",
446
+ "@wordpress/storybook",
446
447
  "@wordpress/sync",
447
448
  "@wordpress/theme",
448
449
  "@wordpress/dataviews",
@@ -1046,25 +1047,40 @@ function useFocusOutside(onFocusOutside) {
1046
1047
  // ../compose/build-module/hooks/use-merge-refs/index.mjs
1047
1048
  function assignRef(ref, value) {
1048
1049
  if (typeof ref === "function") {
1049
- ref(value);
1050
+ const returned = ref(value);
1051
+ return typeof returned === "function" ? returned : void 0;
1050
1052
  } else if (ref && ref.hasOwnProperty("current")) {
1051
1053
  ref.current = value;
1052
1054
  }
1055
+ return void 0;
1056
+ }
1057
+ function detachRef(ref, index, cleanups) {
1058
+ const cleanup = cleanups[index];
1059
+ if (cleanup) {
1060
+ cleanups[index] = void 0;
1061
+ cleanup();
1062
+ } else {
1063
+ assignRef(ref, null);
1064
+ }
1053
1065
  }
1054
1066
  function useMergeRefs(refs) {
1055
- const element = useRef(null);
1067
+ const elementRef = useRef(null);
1056
1068
  const isAttachedRef = useRef(false);
1057
1069
  const didElementChangeRef = useRef(false);
1058
1070
  const previousRefsRef = useRef([]);
1059
1071
  const currentRefsRef = useRef(refs);
1072
+ const cleanupsRef = useRef([]);
1060
1073
  currentRefsRef.current = refs;
1061
1074
  useLayoutEffect(() => {
1062
1075
  if (didElementChangeRef.current === false && isAttachedRef.current === true) {
1063
1076
  refs.forEach((ref, index) => {
1064
1077
  const previousRef = previousRefsRef.current[index];
1065
1078
  if (ref !== previousRef) {
1066
- assignRef(previousRef, null);
1067
- assignRef(ref, element.current);
1079
+ detachRef(previousRef, index, cleanupsRef.current);
1080
+ cleanupsRef.current[index] = assignRef(
1081
+ ref,
1082
+ elementRef.current
1083
+ );
1068
1084
  }
1069
1085
  });
1070
1086
  }
@@ -1074,12 +1090,17 @@ function useMergeRefs(refs) {
1074
1090
  didElementChangeRef.current = false;
1075
1091
  });
1076
1092
  return useCallback((value) => {
1077
- assignRef(element, value);
1093
+ elementRef.current = value;
1078
1094
  didElementChangeRef.current = true;
1079
1095
  isAttachedRef.current = value !== null;
1080
- const refsToAssign = value ? currentRefsRef.current : previousRefsRef.current;
1081
- for (const ref of refsToAssign) {
1082
- assignRef(ref, value);
1096
+ if (value === null) {
1097
+ previousRefsRef.current.forEach((ref, index) => {
1098
+ detachRef(ref, index, cleanupsRef.current);
1099
+ });
1100
+ } else {
1101
+ currentRefsRef.current.forEach((ref, index) => {
1102
+ cleanupsRef.current[index] = assignRef(ref, value);
1103
+ });
1083
1104
  }
1084
1105
  }, []);
1085
1106
  }
@@ -1163,7 +1184,7 @@ var EMPTY_SUBSCRIBER = {
1163
1184
  getValue: () => false
1164
1185
  };
1165
1186
  function getMQLSubscriber(view, query) {
1166
- if (!query || typeof view?.matchMedia !== "function") {
1187
+ if (!view || !query || typeof view.matchMedia !== "function") {
1167
1188
  return EMPTY_SUBSCRIBER;
1168
1189
  }
1169
1190
  let queryCache = perWindowCache.get(view);
@@ -1202,7 +1223,7 @@ function getMQLSubscriber(view, query) {
1202
1223
  queryCache.set(query, subscriber);
1203
1224
  return subscriber;
1204
1225
  }
1205
- function useMediaQuery(query, view = window) {
1226
+ function useMediaQuery(query, view = typeof window !== "undefined" ? window : void 0) {
1206
1227
  const source = getMQLSubscriber(view, query);
1207
1228
  return useSyncExternalStore(
1208
1229
  source.subscribe,
@@ -1248,7 +1269,7 @@ var ViewportMatchWidthContext = createContext(
1248
1269
  null
1249
1270
  );
1250
1271
  ViewportMatchWidthContext.displayName = "ViewportMatchWidthContext";
1251
- var useViewportMatch = (breakpoint2, operator = ">=", view = window) => {
1272
+ var useViewportMatch = (breakpoint2, operator = ">=", view = typeof window !== "undefined" ? window : void 0) => {
1252
1273
  const simulatedWidth = useContext(ViewportMatchWidthContext);
1253
1274
  const mediaQuery = !simulatedWidth && `(${CONDITIONS[operator]}: ${BREAKPOINTS[breakpoint2]}px)`;
1254
1275
  const mediaQueryResult = useMediaQuery(mediaQuery || void 0, view);
@@ -1468,11 +1489,11 @@ function registerStyle(hash, css27) {
1468
1489
  }
1469
1490
  }
1470
1491
  if (typeof process === "undefined" || true) {
1471
- registerStyle("0c8601dd83", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');
1492
+ registerStyle("0c5702ddca", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
1472
1493
  }
1473
1494
  var style_default = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
1474
1495
  if (typeof process === "undefined" || true) {
1475
- registerStyle("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
1496
+ registerStyle("d5c1b736fd", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
1476
1497
  }
1477
1498
  var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
1478
1499
  var Text = forwardRef(function Text2({ variant = "body-md", render: render5, className: className2, ...props }, ref) {
@@ -1576,7 +1597,7 @@ function registerStyle2(hash, css27) {
1576
1597
  }
1577
1598
  }
1578
1599
  if (typeof process === "undefined" || true) {
1579
- registerStyle2("d6a685e1aa", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6be);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee995);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c6f7cd);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-fg-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}");
1600
+ registerStyle2("9d817a6077", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6be);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee995);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c6f7cd);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-fg-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");
1580
1601
  }
1581
1602
  var style_default2 = { "badge": "_96e6251aad1a6136__badge", "is-high-intent": "_99f7158cb520f750__is-high-intent", "is-medium-intent": "c20ebef2365bc8b7__is-medium-intent", "is-low-intent": "_365e1626c6202e52__is-low-intent", "is-stable-intent": "_33f8198127ddf4ef__is-stable-intent", "is-informational-intent": "_04c1aca8fc449412__is-informational-intent", "is-draft-intent": "_90726e69d495ec19__is-draft-intent", "is-none-intent": "_898f4a544993bd39__is-none-intent" };
1582
1603
  var Badge = forwardRef(function Badge2({ intent = "none", className: className2, ...props }, ref) {
@@ -1841,11 +1862,11 @@ function registerStyle3(hash, css27) {
1841
1862
  }
1842
1863
  }
1843
1864
  if (typeof process === "undefined" || true) {
1844
- registerStyle3("e3ae230cea", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");
1865
+ registerStyle3("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
1845
1866
  }
1846
1867
  var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
1847
1868
  if (typeof process === "undefined" || true) {
1848
- registerStyle3("7bb6e0116a", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");
1869
+ registerStyle3("66ab1fd35b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
1849
1870
  }
1850
1871
  var style_default3 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
1851
1872
  var Root = forwardRef(function Card({ render: render5, ...restProps }, ref) {
@@ -1942,7 +1963,7 @@ function registerStyle4(hash, css27) {
1942
1963
  }
1943
1964
  }
1944
1965
  if (typeof process === "undefined" || true) {
1945
- registerStyle4("7bb6e0116a", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");
1966
+ registerStyle4("66ab1fd35b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
1946
1967
  }
1947
1968
  var style_default4 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
1948
1969
  var Header = forwardRef(
@@ -2040,7 +2061,7 @@ function registerStyle5(hash, css27) {
2040
2061
  }
2041
2062
  }
2042
2063
  if (typeof process === "undefined" || true) {
2043
- registerStyle5("7bb6e0116a", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");
2064
+ registerStyle5("66ab1fd35b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
2044
2065
  }
2045
2066
  var style_default5 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
2046
2067
  var Content = forwardRef(
@@ -2138,7 +2159,7 @@ function registerStyle6(hash, css27) {
2138
2159
  }
2139
2160
  }
2140
2161
  if (typeof process === "undefined" || true) {
2141
- registerStyle6("7bb6e0116a", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");
2162
+ registerStyle6("66ab1fd35b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
2142
2163
  }
2143
2164
  var style_default6 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
2144
2165
  var FullBleed = forwardRef(
@@ -2466,15 +2487,15 @@ function registerStyle7(hash, css27) {
2466
2487
  }
2467
2488
  }
2468
2489
  if (typeof process === "undefined" || true) {
2469
- registerStyle7("f1b9bb6252", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");
2490
+ registerStyle7("2072cdf420", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
2470
2491
  }
2471
2492
  var style_default7 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflowVisible": "_165c4572592944b2__overflowVisible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
2472
2493
  if (typeof process === "undefined" || true) {
2473
- registerStyle7("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
2494
+ registerStyle7("d5c1b736fd", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
2474
2495
  }
2475
2496
  var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
2476
2497
  if (typeof process === "undefined" || true) {
2477
- registerStyle7("2a5ab8f3a7", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");
2498
+ registerStyle7("693cd16544", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid transparent;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}}");
2478
2499
  }
2479
2500
  var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
2480
2501
  var Header2 = forwardRef(
@@ -2645,7 +2666,7 @@ function registerStyle8(hash, css27) {
2645
2666
  }
2646
2667
  }
2647
2668
  if (typeof process === "undefined" || true) {
2648
- registerStyle8("f1b9bb6252", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");
2669
+ registerStyle8("2072cdf420", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
2649
2670
  }
2650
2671
  var style_default8 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflowVisible": "_165c4572592944b2__overflowVisible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
2651
2672
  var Content2 = forwardRef(
@@ -2870,7 +2891,7 @@ var ACCENT_SCALE_BASE_LIGHTNESS_THRESHOLDS = {
2870
2891
  var CONTRAST_EPSILON = 4e-3;
2871
2892
  var MAX_BISECTION_ITERATIONS = 10;
2872
2893
  var DEFAULT_SEED_COLORS = {
2873
- bg: "#fcfcfc",
2894
+ background: "#fcfcfc",
2874
2895
  primary: "#3858e9",
2875
2896
  info: "#0090ff",
2876
2897
  success: "#4ab866",
@@ -3523,7 +3544,7 @@ var BG_RAMP_CONFIG = {
3523
3544
  contrast: {
3524
3545
  reference: "stroke3",
3525
3546
  followDirection: "opposite",
3526
- target: 2.6
3547
+ target: 2.9
3527
3548
  },
3528
3549
  taperChromaOptions: STROKE_TAPER_CHROMA
3529
3550
  },
@@ -3840,29 +3861,29 @@ function useThemeProviderStyles({
3840
3861
  } = {}) {
3841
3862
  const { resolvedSettings: inheritedSettings } = useContext(ThemeContext);
3842
3863
  const primary = color.primary ?? inheritedSettings.color?.primary ?? DEFAULT_SEED_COLORS.primary;
3843
- const bg = color.bg ?? inheritedSettings.color?.bg ?? DEFAULT_SEED_COLORS.bg;
3864
+ const background = color.background ?? inheritedSettings.color?.background ?? DEFAULT_SEED_COLORS.background;
3844
3865
  const cursorControl = cursor?.control ?? inheritedSettings.cursor?.control;
3845
3866
  const resolvedSettings = useMemo(
3846
3867
  () => ({
3847
3868
  color: {
3848
3869
  primary,
3849
- bg
3870
+ background
3850
3871
  },
3851
3872
  cursor: cursorControl ? { control: cursorControl } : void 0
3852
3873
  }),
3853
- [primary, bg, cursorControl]
3874
+ [primary, background, cursorControl]
3854
3875
  );
3855
3876
  const colorStyles = useMemo(() => {
3856
3877
  const seeds = {
3857
3878
  ...DEFAULT_SEED_COLORS,
3858
- bg,
3879
+ background,
3859
3880
  primary
3860
3881
  };
3861
3882
  const computedColorRamps = /* @__PURE__ */ new Map();
3862
- const bgRamp = getCachedBgRamp(seeds.bg);
3883
+ const bgRamp = getCachedBgRamp(seeds.background);
3863
3884
  Object.entries(seeds).forEach(([rampName, seed]) => {
3864
- if (rampName === "bg") {
3865
- computedColorRamps.set(rampName, bgRamp);
3885
+ if (rampName === "background") {
3886
+ computedColorRamps.set("bg", bgRamp);
3866
3887
  } else {
3867
3888
  computedColorRamps.set(
3868
3889
  rampName,
@@ -3874,7 +3895,7 @@ function useThemeProviderStyles({
3874
3895
  primary: seeds.primary,
3875
3896
  computedColorRamps
3876
3897
  });
3877
- }, [primary, bg]);
3898
+ }, [primary, background]);
3878
3899
  const themeProviderStyles = useMemo(
3879
3900
  () => ({
3880
3901
  ...colorStyles,
@@ -3998,8 +4019,7 @@ var ThemeProvider = ({
3998
4019
  children,
3999
4020
  color = {},
4000
4021
  cursor,
4001
- isRoot = false,
4002
- density
4022
+ isRoot = false
4003
4023
  }) => {
4004
4024
  const instanceId = useId();
4005
4025
  const { themeProviderStyles, resolvedSettings } = useThemeProviderStyles({
@@ -4022,7 +4042,6 @@ var ThemeProvider = ({
4022
4042
  {
4023
4043
  "data-wpds-theme-provider-id": instanceId,
4024
4044
  "data-wpds-root-provider": isRoot,
4025
- "data-wpds-density": density,
4026
4045
  className: style_default9.root,
4027
4046
  children: /* @__PURE__ */ jsx47(ThemeContext.Provider, { value: contextValue, children })
4028
4047
  }
@@ -4131,7 +4150,7 @@ function registerStyle10(hash, css27) {
4131
4150
  }
4132
4151
  }
4133
4152
  if (typeof process === "undefined" || true) {
4134
- registerStyle10("b51ff41489", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");
4153
+ registerStyle10("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");
4135
4154
  }
4136
4155
  var style_default10 = { "stack": "_19ce0419607e1896__stack" };
4137
4156
  var gapTokens = {
@@ -4259,7 +4278,7 @@ function registerStyle11(hash, css27) {
4259
4278
  }
4260
4279
  }
4261
4280
  if (typeof process === "undefined" || true) {
4262
- registerStyle11("45eb1fe20f", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui-utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}");
4281
+ registerStyle11("be37f31c1e", "._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");
4263
4282
  }
4264
4283
  var wp_compat_overlay_slot_default = { "slot": "_11fc52b637ff8a7e__slot" };
4265
4284
  var WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE = "data-wp-compat-overlay-slot";
@@ -4413,11 +4432,11 @@ function registerStyle12(hash, css27) {
4413
4432
  }
4414
4433
  }
4415
4434
  if (typeof process === "undefined" || true) {
4416
- registerStyle12("e3ae230cea", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");
4435
+ registerStyle12("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
4417
4436
  }
4418
4437
  var resets_default2 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
4419
4438
  if (typeof process === "undefined" || true) {
4420
- registerStyle12("8293efbb49", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-sm,2px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}');
4439
+ registerStyle12("4811d023d1", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
4421
4440
  }
4422
4441
  var style_default11 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
4423
4442
  var Positioner = forwardRef(
@@ -4523,32 +4542,21 @@ function registerStyle13(hash, css27) {
4523
4542
  }
4524
4543
  }
4525
4544
  if (typeof process === "undefined" || true) {
4526
- registerStyle13("8293efbb49", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-sm,2px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}');
4545
+ registerStyle13("4811d023d1", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
4527
4546
  }
4528
4547
  var style_default12 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
4529
4548
  var ThemeProvider2 = unlock3(privateApis).ThemeProvider;
4549
+ var POPUP_COLOR = { background: "#1e1e1e" };
4530
4550
  var Popup = forwardRef(function TooltipPopup({ portal, positioner, children, className: className2, ...props }, ref) {
4531
- const popupContent = (
4532
- /* This should ideally use whatever dark color makes sense,
4533
- * and not be hardcoded to #1e1e1e. The solutions would be to:
4534
- * - review the design of the tooltip, in case we want to stop
4535
- * hardcoding it to a dark background
4536
- * - create new semantic tokens as needed (aliasing either the
4537
- * "inverted bg" or "perma-dark bg" private tokens) and have
4538
- * Tooltip.Popup use them;
4539
- * - remove the hardcoded `bg` setting from the `ThemeProvider`
4540
- * below
4541
- */
4542
- /* @__PURE__ */ jsx50(ThemeProvider2, { color: { bg: "#1e1e1e" }, children: /* @__PURE__ */ jsx50(
4543
- _Tooltip3.Popup,
4544
- {
4545
- ref,
4546
- className: clsx8(style_default12.popup, className2),
4547
- ...props,
4548
- children
4549
- }
4550
- ) })
4551
- );
4551
+ const popupContent = /* @__PURE__ */ jsx50(ThemeProvider2, { color: POPUP_COLOR, children: /* @__PURE__ */ jsx50(
4552
+ _Tooltip3.Popup,
4553
+ {
4554
+ ref,
4555
+ className: clsx8(style_default12.popup, className2),
4556
+ ...props,
4557
+ children
4558
+ }
4559
+ ) });
4552
4560
  const positionedPopup = renderSlotWithChildren(
4553
4561
  positioner,
4554
4562
  /* @__PURE__ */ jsx50(Positioner, {}),
@@ -4663,7 +4671,7 @@ function registerStyle14(hash, css27) {
4663
4671
  }
4664
4672
  }
4665
4673
  if (typeof process === "undefined" || true) {
4666
- registerStyle14("c46e8cb841", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}");
4674
+ registerStyle14("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");
4667
4675
  }
4668
4676
  var style_default13 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
4669
4677
  var VisuallyHidden = forwardRef(
@@ -4725,6 +4733,7 @@ var LAYOUT_LIST = "list";
4725
4733
  var LAYOUT_ACTIVITY = "activity";
4726
4734
  var LAYOUT_PICKER_GRID = "pickerGrid";
4727
4735
  var LAYOUT_PICKER_TABLE = "pickerTable";
4736
+ var LAYOUT_PICKER_ACTIVITY = "pickerActivity";
4728
4737
 
4729
4738
  // src/components/dataviews-context/index.ts
4730
4739
  var DataViewsContext = createContext({
@@ -4765,7 +4774,7 @@ DataViewsContext.displayName = "DataViewsContext";
4765
4774
  var dataviews_context_default = DataViewsContext;
4766
4775
 
4767
4776
  // src/components/dataviews-layouts/index.ts
4768
- import { __ as __35, isRTL as isRTL12 } from "@wordpress/i18n";
4777
+ import { __ as __36, isRTL as isRTL12 } from "@wordpress/i18n";
4769
4778
 
4770
4779
  // src/components/dataviews-layouts/table/index.tsx
4771
4780
  import clsx38 from "clsx";
@@ -20383,17 +20392,279 @@ function ViewPickerTable({
20383
20392
  }
20384
20393
  var picker_table_default = ViewPickerTable;
20385
20394
 
20395
+ // src/components/dataviews-layouts/picker-activity/index.tsx
20396
+ import clsx47 from "clsx";
20397
+ import { __ as __33, sprintf as sprintf14 } from "@wordpress/i18n";
20398
+ import { Fragment as Fragment12, jsx as jsx74, jsxs as jsxs19 } from "react/jsx-runtime";
20399
+ function isDefined5(item2) {
20400
+ return !!item2;
20401
+ }
20402
+ function PickerActivityItem({
20403
+ view,
20404
+ multiselect,
20405
+ selection,
20406
+ onChangeSelection,
20407
+ getItemId,
20408
+ item: item2,
20409
+ titleField,
20410
+ mediaField,
20411
+ descriptionField,
20412
+ otherFields,
20413
+ posinset,
20414
+ setsize
20415
+ }) {
20416
+ const elementRef = useRef(null);
20417
+ useIntersectionObserver(elementRef, posinset);
20418
+ const { showTitle = true, showMedia = true, showDescription = true } = view;
20419
+ const id = getItemId(item2);
20420
+ const isSelected = selection.includes(id);
20421
+ const density = view.layout?.density ?? "balanced";
20422
+ const mediaContent = showMedia && density !== "compact" && mediaField?.render ? /* @__PURE__ */ jsx74(
20423
+ mediaField.render,
20424
+ {
20425
+ item: item2,
20426
+ field: mediaField,
20427
+ config: {
20428
+ sizes: density === "comfortable" ? "32px" : "24px"
20429
+ }
20430
+ }
20431
+ ) : null;
20432
+ const renderedMediaField = /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-type-icon", children: mediaContent || /* @__PURE__ */ jsx74(
20433
+ "span",
20434
+ {
20435
+ className: "dataviews-view-picker-activity__item-bullet",
20436
+ "aria-hidden": "true"
20437
+ }
20438
+ ) });
20439
+ const renderedTitleField = showTitle && titleField?.render ? /* @__PURE__ */ jsx74(titleField.render, { item: item2, field: titleField }) : null;
20440
+ const renderedDescriptionField = showDescription && descriptionField?.render ? /* @__PURE__ */ jsx74(descriptionField.render, { item: item2, field: descriptionField }) : null;
20441
+ const verticalGap = useMemo(() => {
20442
+ switch (density) {
20443
+ case "comfortable":
20444
+ return "md";
20445
+ default:
20446
+ return "sm";
20447
+ }
20448
+ }, [density]);
20449
+ return /* @__PURE__ */ jsx74(
20450
+ Composite2.Item,
20451
+ {
20452
+ ref: elementRef,
20453
+ role: "option",
20454
+ "aria-label": titleField ? titleField.getValue({ item: item2 }) || void 0 : void 0,
20455
+ "aria-posinset": posinset,
20456
+ "aria-setsize": setsize,
20457
+ "aria-selected": isSelected,
20458
+ className: clsx47(
20459
+ "dataviews-view-picker-activity__item",
20460
+ density === "compact" && "is-compact",
20461
+ density === "balanced" && "is-balanced",
20462
+ density === "comfortable" && "is-comfortable",
20463
+ isSelected && "is-selected"
20464
+ ),
20465
+ onClick: () => {
20466
+ if (isSelected) {
20467
+ onChangeSelection(
20468
+ selection.filter((itemId) => id !== itemId)
20469
+ );
20470
+ } else {
20471
+ const newSelection = multiselect ? [...selection, id] : [id];
20472
+ onChangeSelection(newSelection);
20473
+ }
20474
+ },
20475
+ render: /* @__PURE__ */ jsx74("div", {}),
20476
+ children: /* @__PURE__ */ jsxs19(Stack, { direction: "row", gap: "lg", justify: "start", align: "flex-start", children: [
20477
+ /* @__PURE__ */ jsx74(
20478
+ Stack,
20479
+ {
20480
+ direction: "column",
20481
+ gap: "xs",
20482
+ align: "center",
20483
+ className: "dataviews-view-picker-activity__item-type",
20484
+ children: renderedMediaField
20485
+ }
20486
+ ),
20487
+ /* @__PURE__ */ jsxs19(
20488
+ Stack,
20489
+ {
20490
+ direction: "column",
20491
+ gap: verticalGap,
20492
+ align: "flex-start",
20493
+ className: "dataviews-view-picker-activity__item-content",
20494
+ children: [
20495
+ renderedTitleField && /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-title", children: renderedTitleField }),
20496
+ renderedDescriptionField && /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-description", children: renderedDescriptionField }),
20497
+ /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-fields", children: otherFields.map((field) => /* @__PURE__ */ jsxs19(
20498
+ "div",
20499
+ {
20500
+ className: "dataviews-view-picker-activity__item-field",
20501
+ children: [
20502
+ /* @__PURE__ */ jsx74(
20503
+ VisuallyHidden,
20504
+ {
20505
+ render: /* @__PURE__ */ jsx74("span", {}),
20506
+ className: "dataviews-view-picker-activity__item-field-label",
20507
+ children: field.label
20508
+ }
20509
+ ),
20510
+ /* @__PURE__ */ jsx74("span", { className: "dataviews-view-picker-activity__item-field-value", children: /* @__PURE__ */ jsx74(
20511
+ field.render,
20512
+ {
20513
+ item: item2,
20514
+ field
20515
+ }
20516
+ ) })
20517
+ ]
20518
+ },
20519
+ field.id
20520
+ )) })
20521
+ ]
20522
+ }
20523
+ )
20524
+ ] })
20525
+ }
20526
+ );
20527
+ }
20528
+ function PickerActivityGroup({
20529
+ groupName,
20530
+ groupField,
20531
+ showLabel = true,
20532
+ children
20533
+ }) {
20534
+ const headerId = use_instance_id_default(
20535
+ PickerActivityGroup,
20536
+ "dataviews-view-picker-activity-group__header"
20537
+ );
20538
+ return /* @__PURE__ */ jsxs19(
20539
+ Stack,
20540
+ {
20541
+ direction: "column",
20542
+ role: "group",
20543
+ "aria-labelledby": headerId,
20544
+ className: "dataviews-view-picker-activity-group",
20545
+ children: [
20546
+ /* @__PURE__ */ jsx74(
20547
+ "h3",
20548
+ {
20549
+ className: "dataviews-view-picker-activity-group__header",
20550
+ id: headerId,
20551
+ children: showLabel ? sprintf14(
20552
+ // translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
20553
+ __33("%1$s: %2$s"),
20554
+ groupField.label,
20555
+ groupName
20556
+ ) : groupName
20557
+ }
20558
+ ),
20559
+ children
20560
+ ]
20561
+ }
20562
+ );
20563
+ }
20564
+ function ViewPickerActivity({
20565
+ data,
20566
+ fields,
20567
+ getItemId,
20568
+ isLoading,
20569
+ onChangeSelection,
20570
+ selection,
20571
+ view,
20572
+ actions,
20573
+ className: className2,
20574
+ empty
20575
+ }) {
20576
+ const { itemListLabel, paginationInfo } = useContext(dataviews_context_default);
20577
+ const isMultiselect = useIsMultiselectPicker(actions);
20578
+ const titleField = fields.find(
20579
+ (field) => field.id === view?.titleField
20580
+ );
20581
+ const mediaField = fields.find(
20582
+ (field) => field.id === view?.mediaField
20583
+ );
20584
+ const descriptionField = fields.find(
20585
+ (field) => field.id === view?.descriptionField
20586
+ );
20587
+ const otherFields = (view?.fields ?? []).map((fieldId) => fields.find((f) => fieldId === f.id)).filter(isDefined5);
20588
+ const groupField = view.groupBy?.field ? fields.find((f) => f.id === view.groupBy?.field) : null;
20589
+ const dataByGroup = groupField ? getDataByGroup(data, groupField) : null;
20590
+ const isInfiniteScroll = (view.infiniteScrollEnabled && !dataByGroup) ?? false;
20591
+ const setsize = isInfiniteScroll ? paginationInfo?.totalItems : void 0;
20592
+ const hasData = !!data?.length;
20593
+ const isGrouped = !!(groupField && dataByGroup);
20594
+ const renderItem = (item2) => /* @__PURE__ */ jsx74(
20595
+ PickerActivityItem,
20596
+ {
20597
+ view,
20598
+ multiselect: isMultiselect,
20599
+ selection,
20600
+ onChangeSelection,
20601
+ getItemId,
20602
+ item: item2,
20603
+ titleField,
20604
+ mediaField,
20605
+ descriptionField,
20606
+ otherFields,
20607
+ posinset: item2.position,
20608
+ setsize
20609
+ },
20610
+ getItemId(item2)
20611
+ );
20612
+ if (!hasData) {
20613
+ return /* @__PURE__ */ jsx74(
20614
+ "div",
20615
+ {
20616
+ className: clsx47({
20617
+ "dataviews-loading": isLoading,
20618
+ "dataviews-no-results": !isLoading
20619
+ }),
20620
+ children: isLoading ? /* @__PURE__ */ jsx74("p", { children: /* @__PURE__ */ jsx74(spinner_default, {}) }) : empty
20621
+ }
20622
+ );
20623
+ }
20624
+ return /* @__PURE__ */ jsxs19(Fragment12, { children: [
20625
+ /* @__PURE__ */ jsx74(
20626
+ Composite2,
20627
+ {
20628
+ virtualFocus: true,
20629
+ orientation: "vertical",
20630
+ role: "listbox",
20631
+ "aria-multiselectable": isMultiselect,
20632
+ "aria-label": itemListLabel,
20633
+ "aria-busy": isLoading,
20634
+ render: isGrouped ? /* @__PURE__ */ jsx74(Stack, { direction: "column", gap: "sm" }) : void 0,
20635
+ className: clsx47(
20636
+ "dataviews-view-picker-activity",
20637
+ className2
20638
+ ),
20639
+ children: isGrouped && dataByGroup ? Array.from(dataByGroup.entries()).map(
20640
+ ([groupName, groupItems]) => /* @__PURE__ */ jsx74(
20641
+ PickerActivityGroup,
20642
+ {
20643
+ groupName,
20644
+ groupField,
20645
+ showLabel: view.groupBy?.showLabel !== false,
20646
+ children: groupItems.map(renderItem)
20647
+ },
20648
+ groupName
20649
+ )
20650
+ ) : data.map(renderItem)
20651
+ }
20652
+ ),
20653
+ isLoading && /* @__PURE__ */ jsx74("p", { className: "dataviews-loading-more", children: /* @__PURE__ */ jsx74(spinner_default, {}) })
20654
+ ] });
20655
+ }
20656
+
20386
20657
  // src/components/dataviews-layouts/utils/density-picker.tsx
20387
- import { __ as __33, _x as _x2 } from "@wordpress/i18n";
20388
- import { jsx as jsx74, jsxs as jsxs19 } from "react/jsx-runtime";
20658
+ import { __ as __34, _x as _x2 } from "@wordpress/i18n";
20659
+ import { jsx as jsx75, jsxs as jsxs20 } from "react/jsx-runtime";
20389
20660
  function DensityPicker() {
20390
20661
  const context = useContext(dataviews_context_default);
20391
20662
  const view = context.view;
20392
- return /* @__PURE__ */ jsxs19(
20663
+ return /* @__PURE__ */ jsxs20(
20393
20664
  component_default10,
20394
20665
  {
20395
20666
  size: "__unstable-large",
20396
- label: __33("Density"),
20667
+ label: __34("Density"),
20397
20668
  value: view.layout?.density || "balanced",
20398
20669
  onChange: (value) => {
20399
20670
  context.onChangeView({
@@ -20406,7 +20677,7 @@ function DensityPicker() {
20406
20677
  },
20407
20678
  isBlock: true,
20408
20679
  children: [
20409
- /* @__PURE__ */ jsx74(
20680
+ /* @__PURE__ */ jsx75(
20410
20681
  component_default12,
20411
20682
  {
20412
20683
  value: "comfortable",
@@ -20417,7 +20688,7 @@ function DensityPicker() {
20417
20688
  },
20418
20689
  "comfortable"
20419
20690
  ),
20420
- /* @__PURE__ */ jsx74(
20691
+ /* @__PURE__ */ jsx75(
20421
20692
  component_default12,
20422
20693
  {
20423
20694
  value: "balanced",
@@ -20425,7 +20696,7 @@ function DensityPicker() {
20425
20696
  },
20426
20697
  "balanced"
20427
20698
  ),
20428
- /* @__PURE__ */ jsx74(
20699
+ /* @__PURE__ */ jsx75(
20429
20700
  component_default12,
20430
20701
  {
20431
20702
  value: "compact",
@@ -20439,8 +20710,8 @@ function DensityPicker() {
20439
20710
  }
20440
20711
 
20441
20712
  // src/components/dataviews-layouts/utils/preview-size-picker.tsx
20442
- import { __ as __34 } from "@wordpress/i18n";
20443
- import { jsx as jsx75 } from "react/jsx-runtime";
20713
+ import { __ as __35 } from "@wordpress/i18n";
20714
+ import { jsx as jsx76 } from "react/jsx-runtime";
20444
20715
  var imageSizes2 = [
20445
20716
  {
20446
20717
  value: 120,
@@ -20483,12 +20754,12 @@ function PreviewSizePicker() {
20483
20754
  value: index
20484
20755
  };
20485
20756
  });
20486
- return /* @__PURE__ */ jsx75(
20757
+ return /* @__PURE__ */ jsx76(
20487
20758
  range_control_default,
20488
20759
  {
20489
20760
  __next40pxDefaultSize: true,
20490
20761
  showTooltip: false,
20491
- label: __34("Preview size"),
20762
+ label: __35("Preview size"),
20492
20763
  value: previewSizeToUse,
20493
20764
  min: 0,
20494
20765
  max: breakValues.length - 1,
@@ -20509,11 +20780,11 @@ function PreviewSizePicker() {
20509
20780
  }
20510
20781
 
20511
20782
  // src/components/dataviews-layouts/utils/grid-config-options.tsx
20512
- import { Fragment as Fragment12, jsx as jsx76, jsxs as jsxs20 } from "react/jsx-runtime";
20783
+ import { Fragment as Fragment13, jsx as jsx77, jsxs as jsxs21 } from "react/jsx-runtime";
20513
20784
  function GridConfigOptions() {
20514
- return /* @__PURE__ */ jsxs20(Fragment12, { children: [
20515
- /* @__PURE__ */ jsx76(DensityPicker, {}),
20516
- /* @__PURE__ */ jsx76(PreviewSizePicker, {})
20785
+ return /* @__PURE__ */ jsxs21(Fragment13, { children: [
20786
+ /* @__PURE__ */ jsx77(DensityPicker, {}),
20787
+ /* @__PURE__ */ jsx77(PreviewSizePicker, {})
20517
20788
  ] });
20518
20789
  }
20519
20790
 
@@ -20521,35 +20792,35 @@ function GridConfigOptions() {
20521
20792
  var VIEW_LAYOUTS = [
20522
20793
  {
20523
20794
  type: LAYOUT_TABLE,
20524
- label: __35("Table"),
20795
+ label: __36("Table"),
20525
20796
  component: table_default,
20526
20797
  icon: block_table_default,
20527
20798
  viewConfigOptions: DensityPicker
20528
20799
  },
20529
20800
  {
20530
20801
  type: LAYOUT_GRID,
20531
- label: __35("Grid"),
20802
+ label: __36("Grid"),
20532
20803
  component: grid_default,
20533
20804
  icon: category_default,
20534
20805
  viewConfigOptions: GridConfigOptions
20535
20806
  },
20536
20807
  {
20537
20808
  type: LAYOUT_LIST,
20538
- label: __35("List"),
20809
+ label: __36("List"),
20539
20810
  component: ViewList,
20540
20811
  icon: isRTL12() ? format_list_bullets_rtl_default : format_list_bullets_default,
20541
20812
  viewConfigOptions: DensityPicker
20542
20813
  },
20543
20814
  {
20544
20815
  type: LAYOUT_ACTIVITY,
20545
- label: __35("Activity"),
20816
+ label: __36("Activity"),
20546
20817
  component: ViewActivity,
20547
20818
  icon: scheduled_default,
20548
20819
  viewConfigOptions: DensityPicker
20549
20820
  },
20550
20821
  {
20551
20822
  type: LAYOUT_PICKER_GRID,
20552
- label: __35("Grid"),
20823
+ label: __36("Grid"),
20553
20824
  component: picker_grid_default,
20554
20825
  icon: category_default,
20555
20826
  viewConfigOptions: GridConfigOptions,
@@ -20557,23 +20828,31 @@ var VIEW_LAYOUTS = [
20557
20828
  },
20558
20829
  {
20559
20830
  type: LAYOUT_PICKER_TABLE,
20560
- label: __35("Table"),
20831
+ label: __36("Table"),
20561
20832
  component: picker_table_default,
20562
20833
  icon: block_table_default,
20563
20834
  viewConfigOptions: DensityPicker,
20564
20835
  isPicker: true
20836
+ },
20837
+ {
20838
+ type: LAYOUT_PICKER_ACTIVITY,
20839
+ label: __36("Activity"),
20840
+ component: ViewPickerActivity,
20841
+ icon: scheduled_default,
20842
+ viewConfigOptions: DensityPicker,
20843
+ isPicker: true
20565
20844
  }
20566
20845
  ];
20567
20846
 
20568
20847
  // src/components/dataviews-filters/filter.tsx
20569
- import clsx48 from "clsx";
20570
- import { __ as __38, sprintf as sprintf16 } from "@wordpress/i18n";
20848
+ import clsx49 from "clsx";
20849
+ import { __ as __39, sprintf as sprintf17 } from "@wordpress/i18n";
20571
20850
 
20572
20851
  // src/components/dataviews-filters/search-widget.tsx
20573
20852
  import * as Ariakit21 from "@ariakit/react";
20574
20853
  import removeAccents2 from "remove-accents";
20575
- import clsx47 from "clsx";
20576
- import { __ as __36, sprintf as sprintf14 } from "@wordpress/i18n";
20854
+ import clsx48 from "clsx";
20855
+ import { __ as __37, sprintf as sprintf15 } from "@wordpress/i18n";
20577
20856
 
20578
20857
  // src/components/dataviews-filters/utils.ts
20579
20858
  var EMPTY_ARRAY3 = [];
@@ -20631,7 +20910,7 @@ function useElements({
20631
20910
  }
20632
20911
 
20633
20912
  // src/components/dataviews-filters/search-widget.tsx
20634
- import { jsx as jsx77, jsxs as jsxs21 } from "react/jsx-runtime";
20913
+ import { jsx as jsx78, jsxs as jsxs22 } from "react/jsx-runtime";
20635
20914
  function normalizeSearchInput(input = "") {
20636
20915
  return removeAccents2(input.trim().toLowerCase());
20637
20916
  }
@@ -20648,22 +20927,22 @@ function generateFilterElementCompositeItemId(prefix, filterElementValue) {
20648
20927
  return `${prefix}-${filterElementValue}`;
20649
20928
  }
20650
20929
  var MultiSelectionOption = ({ selected }) => {
20651
- return /* @__PURE__ */ jsx77(
20930
+ return /* @__PURE__ */ jsx78(
20652
20931
  "span",
20653
20932
  {
20654
- className: clsx47(
20933
+ className: clsx48(
20655
20934
  "dataviews-filters__search-widget-listitem-multi-selection",
20656
20935
  { "is-selected": selected }
20657
20936
  ),
20658
- children: selected && /* @__PURE__ */ jsx77(icon_default2, { icon: check_default })
20937
+ children: selected && /* @__PURE__ */ jsx78(icon_default2, { icon: check_default })
20659
20938
  }
20660
20939
  );
20661
20940
  };
20662
20941
  var SingleSelectionOption = ({ selected }) => {
20663
- return /* @__PURE__ */ jsx77(
20942
+ return /* @__PURE__ */ jsx78(
20664
20943
  "span",
20665
20944
  {
20666
- className: clsx47(
20945
+ className: clsx48(
20667
20946
  "dataviews-filters__search-widget-listitem-single-selection",
20668
20947
  { "is-selected": selected }
20669
20948
  )
@@ -20685,7 +20964,7 @@ function ListBox({ view, filter, onChangeView }) {
20685
20964
  (f) => f.field === filter.field
20686
20965
  );
20687
20966
  const currentValue = getCurrentValue(filter, currentFilter);
20688
- return /* @__PURE__ */ jsx77(
20967
+ return /* @__PURE__ */ jsx78(
20689
20968
  Composite2,
20690
20969
  {
20691
20970
  virtualFocus: true,
@@ -20694,9 +20973,9 @@ function ListBox({ view, filter, onChangeView }) {
20694
20973
  setActiveId: setActiveCompositeId,
20695
20974
  role: "listbox",
20696
20975
  className: "dataviews-filters__search-widget-listbox",
20697
- "aria-label": sprintf14(
20976
+ "aria-label": sprintf15(
20698
20977
  /* translators: List of items for a filter. 1: Filter name. e.g.: "List of: Author". */
20699
- __36("List of: %1$s"),
20978
+ __37("List of: %1$s"),
20700
20979
  filter.name
20701
20980
  ),
20702
20981
  onFocusVisible: () => {
@@ -20709,18 +20988,18 @@ function ListBox({ view, filter, onChangeView }) {
20709
20988
  );
20710
20989
  }
20711
20990
  },
20712
- render: /* @__PURE__ */ jsx77(Composite2.Typeahead, {}),
20713
- children: filter.elements.map((element) => /* @__PURE__ */ jsxs21(
20991
+ render: /* @__PURE__ */ jsx78(Composite2.Typeahead, {}),
20992
+ children: filter.elements.map((element) => /* @__PURE__ */ jsxs22(
20714
20993
  Composite2.Hover,
20715
20994
  {
20716
- render: /* @__PURE__ */ jsx77(
20995
+ render: /* @__PURE__ */ jsx78(
20717
20996
  Composite2.Item,
20718
20997
  {
20719
20998
  id: generateFilterElementCompositeItemId(
20720
20999
  baseId,
20721
21000
  element.value
20722
21001
  ),
20723
- render: /* @__PURE__ */ jsx77(
21002
+ render: /* @__PURE__ */ jsx78(
20724
21003
  "div",
20725
21004
  {
20726
21005
  "aria-label": element.label,
@@ -20767,19 +21046,19 @@ function ListBox({ view, filter, onChangeView }) {
20767
21046
  }
20768
21047
  ),
20769
21048
  children: [
20770
- filter.singleSelection && /* @__PURE__ */ jsx77(
21049
+ filter.singleSelection && /* @__PURE__ */ jsx78(
20771
21050
  SingleSelectionOption,
20772
21051
  {
20773
21052
  selected: currentValue === element.value
20774
21053
  }
20775
21054
  ),
20776
- !filter.singleSelection && /* @__PURE__ */ jsx77(
21055
+ !filter.singleSelection && /* @__PURE__ */ jsx78(
20777
21056
  MultiSelectionOption,
20778
21057
  {
20779
21058
  selected: currentValue.includes(element.value)
20780
21059
  }
20781
21060
  ),
20782
- /* @__PURE__ */ jsx77(
21061
+ /* @__PURE__ */ jsx78(
20783
21062
  "span",
20784
21063
  {
20785
21064
  className: "dataviews-filters__search-widget-listitem-value",
@@ -20807,7 +21086,7 @@ function ComboboxList2({ view, filter, onChangeView }) {
20807
21086
  (item2) => normalizeSearchInput(item2.label).includes(normalizedSearch)
20808
21087
  );
20809
21088
  }, [filter.elements, deferredSearchValue]);
20810
- return /* @__PURE__ */ jsxs21(
21089
+ return /* @__PURE__ */ jsxs22(
20811
21090
  Ariakit21.ComboboxProvider,
20812
21091
  {
20813
21092
  selectedValue: currentValue,
@@ -20839,26 +21118,26 @@ function ComboboxList2({ view, filter, onChangeView }) {
20839
21118
  },
20840
21119
  setValue: setSearchValue,
20841
21120
  children: [
20842
- /* @__PURE__ */ jsxs21("div", { className: "dataviews-filters__search-widget-filter-combobox__wrapper", children: [
20843
- /* @__PURE__ */ jsx77(VisuallyHidden, { render: /* @__PURE__ */ jsx77(Ariakit21.ComboboxLabel, {}), children: __36("Search items") }),
20844
- /* @__PURE__ */ jsx77(
21121
+ /* @__PURE__ */ jsxs22("div", { className: "dataviews-filters__search-widget-filter-combobox__wrapper", children: [
21122
+ /* @__PURE__ */ jsx78(VisuallyHidden, { render: /* @__PURE__ */ jsx78(Ariakit21.ComboboxLabel, {}), children: __37("Search items") }),
21123
+ /* @__PURE__ */ jsx78(
20845
21124
  Ariakit21.Combobox,
20846
21125
  {
20847
21126
  autoSelect: "always",
20848
- placeholder: __36("Search"),
21127
+ placeholder: __37("Search"),
20849
21128
  className: "dataviews-filters__search-widget-filter-combobox__input"
20850
21129
  }
20851
21130
  ),
20852
- /* @__PURE__ */ jsx77("div", { className: "dataviews-filters__search-widget-filter-combobox__icon", children: /* @__PURE__ */ jsx77(icon_default2, { icon: search_default }) })
21131
+ /* @__PURE__ */ jsx78("div", { className: "dataviews-filters__search-widget-filter-combobox__icon", children: /* @__PURE__ */ jsx78(icon_default2, { icon: search_default }) })
20853
21132
  ] }),
20854
- /* @__PURE__ */ jsxs21(
21133
+ /* @__PURE__ */ jsxs22(
20855
21134
  Ariakit21.ComboboxList,
20856
21135
  {
20857
21136
  className: "dataviews-filters__search-widget-filter-combobox-list",
20858
21137
  alwaysVisible: true,
20859
21138
  children: [
20860
21139
  matches.map((element) => {
20861
- return /* @__PURE__ */ jsxs21(
21140
+ return /* @__PURE__ */ jsxs22(
20862
21141
  Ariakit21.ComboboxItem,
20863
21142
  {
20864
21143
  resetValueOnSelect: false,
@@ -20868,13 +21147,13 @@ function ComboboxList2({ view, filter, onChangeView }) {
20868
21147
  setValueOnClick: false,
20869
21148
  focusOnHover: true,
20870
21149
  children: [
20871
- filter.singleSelection && /* @__PURE__ */ jsx77(
21150
+ filter.singleSelection && /* @__PURE__ */ jsx78(
20872
21151
  SingleSelectionOption,
20873
21152
  {
20874
21153
  selected: currentValue === element.value
20875
21154
  }
20876
21155
  ),
20877
- !filter.singleSelection && /* @__PURE__ */ jsx77(
21156
+ !filter.singleSelection && /* @__PURE__ */ jsx78(
20878
21157
  MultiSelectionOption,
20879
21158
  {
20880
21159
  selected: currentValue.includes(
@@ -20882,20 +21161,20 @@ function ComboboxList2({ view, filter, onChangeView }) {
20882
21161
  )
20883
21162
  }
20884
21163
  ),
20885
- /* @__PURE__ */ jsxs21(
21164
+ /* @__PURE__ */ jsxs22(
20886
21165
  "span",
20887
21166
  {
20888
21167
  className: "dataviews-filters__search-widget-listitem-value",
20889
21168
  title: element.label,
20890
21169
  children: [
20891
- /* @__PURE__ */ jsx77(
21170
+ /* @__PURE__ */ jsx78(
20892
21171
  Ariakit21.ComboboxItemValue,
20893
21172
  {
20894
21173
  className: "dataviews-filters__search-widget-filter-combobox-item-value",
20895
21174
  value: element.label
20896
21175
  }
20897
21176
  ),
20898
- !!element.description && /* @__PURE__ */ jsx77("span", { className: "dataviews-filters__search-widget-listitem-description", children: element.description })
21177
+ !!element.description && /* @__PURE__ */ jsx78("span", { className: "dataviews-filters__search-widget-listitem-description", children: element.description })
20899
21178
  ]
20900
21179
  }
20901
21180
  )
@@ -20904,7 +21183,7 @@ function ComboboxList2({ view, filter, onChangeView }) {
20904
21183
  element.value
20905
21184
  );
20906
21185
  }),
20907
- !matches.length && /* @__PURE__ */ jsx77("p", { children: __36("No results found") })
21186
+ !matches.length && /* @__PURE__ */ jsx78("p", { children: __37("No results found") })
20908
21187
  ]
20909
21188
  }
20910
21189
  )
@@ -20918,18 +21197,18 @@ function SearchWidget(props) {
20918
21197
  getElements: props.filter.getElements
20919
21198
  });
20920
21199
  if (isLoading) {
20921
- return /* @__PURE__ */ jsx77("div", { className: "dataviews-filters__search-widget-no-elements", children: /* @__PURE__ */ jsx77(spinner_default, {}) });
21200
+ return /* @__PURE__ */ jsx78("div", { className: "dataviews-filters__search-widget-no-elements", children: /* @__PURE__ */ jsx78(spinner_default, {}) });
20922
21201
  }
20923
21202
  if (elements.length === 0) {
20924
- return /* @__PURE__ */ jsx77("div", { className: "dataviews-filters__search-widget-no-elements", children: __36("No elements found") });
21203
+ return /* @__PURE__ */ jsx78("div", { className: "dataviews-filters__search-widget-no-elements", children: __37("No elements found") });
20925
21204
  }
20926
21205
  const Widget = elements.length > 10 ? ComboboxList2 : ListBox;
20927
- return /* @__PURE__ */ jsx77(Widget, { ...props, filter: { ...props.filter, elements } });
21206
+ return /* @__PURE__ */ jsx78(Widget, { ...props, filter: { ...props.filter, elements } });
20928
21207
  }
20929
21208
 
20930
21209
  // src/components/dataviews-filters/input-widget.tsx
20931
21210
  import fastDeepEqual2 from "fast-deep-equal/es6/index.js";
20932
- import { jsx as jsx78 } from "react/jsx-runtime";
21211
+ import { jsx as jsx79 } from "react/jsx-runtime";
20933
21212
  function InputWidget({
20934
21213
  filter,
20935
21214
  view,
@@ -20997,13 +21276,13 @@ function InputWidget({
20997
21276
  if (!field || !field.Edit || !currentFilter) {
20998
21277
  return null;
20999
21278
  }
21000
- return /* @__PURE__ */ jsx78(
21279
+ return /* @__PURE__ */ jsx79(
21001
21280
  component_default3,
21002
21281
  {
21003
21282
  className: "dataviews-filters__user-input-widget",
21004
21283
  gap: 2.5,
21005
21284
  direction: "column",
21006
- children: /* @__PURE__ */ jsx78(
21285
+ children: /* @__PURE__ */ jsx79(
21007
21286
  field.Edit,
21008
21287
  {
21009
21288
  hideLabelFromVision: true,
@@ -21019,12 +21298,12 @@ function InputWidget({
21019
21298
 
21020
21299
  // src/utils/operators.tsx
21021
21300
  import { subDays, subWeeks, subMonths, subYears } from "date-fns";
21022
- import { __ as __37, sprintf as sprintf15 } from "@wordpress/i18n";
21301
+ import { __ as __38, sprintf as sprintf16 } from "@wordpress/i18n";
21023
21302
  import { getDate } from "@wordpress/date";
21024
- import { jsx as jsx79 } from "react/jsx-runtime";
21303
+ import { jsx as jsx80 } from "react/jsx-runtime";
21025
21304
  var filterTextWrappers = {
21026
- Name: /* @__PURE__ */ jsx79("span", { className: "dataviews-filters__summary-filter-text-name" }),
21027
- Value: /* @__PURE__ */ jsx79("span", { className: "dataviews-filters__summary-filter-text-value" })
21305
+ Name: /* @__PURE__ */ jsx80("span", { className: "dataviews-filters__summary-filter-text-name" }),
21306
+ Value: /* @__PURE__ */ jsx80("span", { className: "dataviews-filters__summary-filter-text-value" })
21028
21307
  };
21029
21308
  function getRelativeDate(value, unit) {
21030
21309
  switch (unit) {
@@ -21042,11 +21321,11 @@ function getRelativeDate(value, unit) {
21042
21321
  }
21043
21322
  var isNoneOperatorDefinition = {
21044
21323
  /* translators: DataViews operator name */
21045
- label: __37("Is none of"),
21324
+ label: __38("Is none of"),
21046
21325
  filterText: (filter, activeElements) => create_interpolate_element_default(
21047
- sprintf15(
21326
+ sprintf16(
21048
21327
  /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is none of: Admin, Editor". */
21049
- __37("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),
21328
+ __38("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),
21050
21329
  filter.name,
21051
21330
  activeElements.map((element) => element.label).join(", ")
21052
21331
  ),
@@ -21072,11 +21351,11 @@ var OPERATORS = [
21072
21351
  {
21073
21352
  name: OPERATOR_IS_ANY,
21074
21353
  /* translators: DataViews operator name */
21075
- label: __37("Includes"),
21354
+ label: __38("Includes"),
21076
21355
  filterText: (filter, activeElements) => create_interpolate_element_default(
21077
- sprintf15(
21356
+ sprintf16(
21078
21357
  /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is any: Admin, Editor". */
21079
- __37("<Name>%1$s includes: </Name><Value>%2$s</Value>"),
21358
+ __38("<Name>%1$s includes: </Name><Value>%2$s</Value>"),
21080
21359
  filter.name,
21081
21360
  activeElements.map((element) => element.label).join(", ")
21082
21361
  ),
@@ -21105,11 +21384,11 @@ var OPERATORS = [
21105
21384
  {
21106
21385
  name: OPERATOR_IS_ALL,
21107
21386
  /* translators: DataViews operator name */
21108
- label: __37("Includes all"),
21387
+ label: __38("Includes all"),
21109
21388
  filterText: (filter, activeElements) => create_interpolate_element_default(
21110
- sprintf15(
21389
+ sprintf16(
21111
21390
  /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author includes all: Admin, Editor". */
21112
- __37("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),
21391
+ __38("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),
21113
21392
  filter.name,
21114
21393
  activeElements.map((element) => element.label).join(", ")
21115
21394
  ),
@@ -21132,11 +21411,11 @@ var OPERATORS = [
21132
21411
  {
21133
21412
  name: OPERATOR_BETWEEN,
21134
21413
  /* translators: DataViews operator name */
21135
- label: __37("Between (inc)"),
21414
+ label: __38("Between (inc)"),
21136
21415
  filterText: (filter, activeElements) => create_interpolate_element_default(
21137
- sprintf15(
21416
+ sprintf16(
21138
21417
  /* translators: 1: Filter name (e.g. "Item count"). 2: Filter value min. 3: Filter value max. e.g.: "Item count between (inc): 10 and 180". */
21139
- __37(
21418
+ __38(
21140
21419
  "<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"
21141
21420
  ),
21142
21421
  filter.name,
@@ -21160,11 +21439,11 @@ var OPERATORS = [
21160
21439
  {
21161
21440
  name: OPERATOR_IN_THE_PAST,
21162
21441
  /* translators: DataViews operator name */
21163
- label: __37("In the past"),
21442
+ label: __38("In the past"),
21164
21443
  filterText: (filter, activeElements) => create_interpolate_element_default(
21165
- sprintf15(
21444
+ sprintf16(
21166
21445
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is in the past: 7 days". */
21167
- __37(
21446
+ __38(
21168
21447
  "<Name>%1$s is in the past: </Name><Value>%2$s</Value>"
21169
21448
  ),
21170
21449
  filter.name,
@@ -21188,11 +21467,11 @@ var OPERATORS = [
21188
21467
  {
21189
21468
  name: OPERATOR_OVER,
21190
21469
  /* translators: DataViews operator name */
21191
- label: __37("Over"),
21470
+ label: __38("Over"),
21192
21471
  filterText: (filter, activeElements) => create_interpolate_element_default(
21193
- sprintf15(
21472
+ sprintf16(
21194
21473
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is over: 7 days". */
21195
- __37("<Name>%1$s is over: </Name><Value>%2$s</Value>"),
21474
+ __38("<Name>%1$s is over: </Name><Value>%2$s</Value>"),
21196
21475
  filter.name,
21197
21476
  `${activeElements[0].value.value} ${activeElements[0].value.unit}`
21198
21477
  ),
@@ -21214,11 +21493,11 @@ var OPERATORS = [
21214
21493
  {
21215
21494
  name: OPERATOR_IS,
21216
21495
  /* translators: DataViews operator name */
21217
- label: __37("Is"),
21496
+ label: __38("Is"),
21218
21497
  filterText: (filter, activeElements) => create_interpolate_element_default(
21219
- sprintf15(
21498
+ sprintf16(
21220
21499
  /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is: Admin". */
21221
- __37("<Name>%1$s is: </Name><Value>%2$s</Value>"),
21500
+ __38("<Name>%1$s is: </Name><Value>%2$s</Value>"),
21222
21501
  filter.name,
21223
21502
  activeElements[0].label
21224
21503
  ),
@@ -21232,11 +21511,11 @@ var OPERATORS = [
21232
21511
  {
21233
21512
  name: OPERATOR_IS_NOT,
21234
21513
  /* translators: DataViews operator name */
21235
- label: __37("Is not"),
21514
+ label: __38("Is not"),
21236
21515
  filterText: (filter, activeElements) => create_interpolate_element_default(
21237
- sprintf15(
21516
+ sprintf16(
21238
21517
  /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is not: Admin". */
21239
- __37("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
21518
+ __38("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
21240
21519
  filter.name,
21241
21520
  activeElements[0].label
21242
21521
  ),
@@ -21250,11 +21529,11 @@ var OPERATORS = [
21250
21529
  {
21251
21530
  name: OPERATOR_LESS_THAN,
21252
21531
  /* translators: DataViews operator name */
21253
- label: __37("Less than"),
21532
+ label: __38("Less than"),
21254
21533
  filterText: (filter, activeElements) => create_interpolate_element_default(
21255
- sprintf15(
21534
+ sprintf16(
21256
21535
  /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than: 10". */
21257
- __37("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),
21536
+ __38("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),
21258
21537
  filter.name,
21259
21538
  activeElements[0].label
21260
21539
  ),
@@ -21272,11 +21551,11 @@ var OPERATORS = [
21272
21551
  {
21273
21552
  name: OPERATOR_GREATER_THAN,
21274
21553
  /* translators: DataViews operator name */
21275
- label: __37("Greater than"),
21554
+ label: __38("Greater than"),
21276
21555
  filterText: (filter, activeElements) => create_interpolate_element_default(
21277
- sprintf15(
21556
+ sprintf16(
21278
21557
  /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than: 10". */
21279
- __37(
21558
+ __38(
21280
21559
  "<Name>%1$s is greater than: </Name><Value>%2$s</Value>"
21281
21560
  ),
21282
21561
  filter.name,
@@ -21296,11 +21575,11 @@ var OPERATORS = [
21296
21575
  {
21297
21576
  name: OPERATOR_LESS_THAN_OR_EQUAL,
21298
21577
  /* translators: DataViews operator name */
21299
- label: __37("Less than or equal"),
21578
+ label: __38("Less than or equal"),
21300
21579
  filterText: (filter, activeElements) => create_interpolate_element_default(
21301
- sprintf15(
21580
+ sprintf16(
21302
21581
  /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than or equal to: 10". */
21303
- __37(
21582
+ __38(
21304
21583
  "<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"
21305
21584
  ),
21306
21585
  filter.name,
@@ -21320,11 +21599,11 @@ var OPERATORS = [
21320
21599
  {
21321
21600
  name: OPERATOR_GREATER_THAN_OR_EQUAL,
21322
21601
  /* translators: DataViews operator name */
21323
- label: __37("Greater than or equal"),
21602
+ label: __38("Greater than or equal"),
21324
21603
  filterText: (filter, activeElements) => create_interpolate_element_default(
21325
- sprintf15(
21604
+ sprintf16(
21326
21605
  /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than or equal to: 10". */
21327
- __37(
21606
+ __38(
21328
21607
  "<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"
21329
21608
  ),
21330
21609
  filter.name,
@@ -21344,11 +21623,11 @@ var OPERATORS = [
21344
21623
  {
21345
21624
  name: OPERATOR_BEFORE,
21346
21625
  /* translators: DataViews operator name */
21347
- label: __37("Before"),
21626
+ label: __38("Before"),
21348
21627
  filterText: (filter, activeElements) => create_interpolate_element_default(
21349
- sprintf15(
21628
+ sprintf16(
21350
21629
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is before: 2024-01-01". */
21351
- __37("<Name>%1$s is before: </Name><Value>%2$s</Value>"),
21630
+ __38("<Name>%1$s is before: </Name><Value>%2$s</Value>"),
21352
21631
  filter.name,
21353
21632
  activeElements[0].label
21354
21633
  ),
@@ -21367,11 +21646,11 @@ var OPERATORS = [
21367
21646
  {
21368
21647
  name: OPERATOR_AFTER,
21369
21648
  /* translators: DataViews operator name */
21370
- label: __37("After"),
21649
+ label: __38("After"),
21371
21650
  filterText: (filter, activeElements) => create_interpolate_element_default(
21372
- sprintf15(
21651
+ sprintf16(
21373
21652
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is after: 2024-01-01". */
21374
- __37("<Name>%1$s is after: </Name><Value>%2$s</Value>"),
21653
+ __38("<Name>%1$s is after: </Name><Value>%2$s</Value>"),
21375
21654
  filter.name,
21376
21655
  activeElements[0].label
21377
21656
  ),
@@ -21390,11 +21669,11 @@ var OPERATORS = [
21390
21669
  {
21391
21670
  name: OPERATOR_BEFORE_INC,
21392
21671
  /* translators: DataViews operator name */
21393
- label: __37("Before (inc)"),
21672
+ label: __38("Before (inc)"),
21394
21673
  filterText: (filter, activeElements) => create_interpolate_element_default(
21395
- sprintf15(
21674
+ sprintf16(
21396
21675
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or before: 2024-01-01". */
21397
- __37(
21676
+ __38(
21398
21677
  "<Name>%1$s is on or before: </Name><Value>%2$s</Value>"
21399
21678
  ),
21400
21679
  filter.name,
@@ -21415,11 +21694,11 @@ var OPERATORS = [
21415
21694
  {
21416
21695
  name: OPERATOR_AFTER_INC,
21417
21696
  /* translators: DataViews operator name */
21418
- label: __37("After (inc)"),
21697
+ label: __38("After (inc)"),
21419
21698
  filterText: (filter, activeElements) => create_interpolate_element_default(
21420
- sprintf15(
21699
+ sprintf16(
21421
21700
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or after: 2024-01-01". */
21422
- __37(
21701
+ __38(
21423
21702
  "<Name>%1$s is on or after: </Name><Value>%2$s</Value>"
21424
21703
  ),
21425
21704
  filter.name,
@@ -21440,11 +21719,11 @@ var OPERATORS = [
21440
21719
  {
21441
21720
  name: OPERATOR_CONTAINS,
21442
21721
  /* translators: DataViews operator name */
21443
- label: __37("Contains"),
21722
+ label: __38("Contains"),
21444
21723
  filterText: (filter, activeElements) => create_interpolate_element_default(
21445
- sprintf15(
21724
+ sprintf16(
21446
21725
  /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title contains: Hello". */
21447
- __37("<Name>%1$s contains: </Name><Value>%2$s</Value>"),
21726
+ __38("<Name>%1$s contains: </Name><Value>%2$s</Value>"),
21448
21727
  filter.name,
21449
21728
  activeElements[0].label
21450
21729
  ),
@@ -21462,11 +21741,11 @@ var OPERATORS = [
21462
21741
  {
21463
21742
  name: OPERATOR_NOT_CONTAINS,
21464
21743
  /* translators: DataViews operator name */
21465
- label: __37("Doesn't contain"),
21744
+ label: __38("Doesn't contain"),
21466
21745
  filterText: (filter, activeElements) => create_interpolate_element_default(
21467
- sprintf15(
21746
+ sprintf16(
21468
21747
  /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title doesn't contain: Hello". */
21469
- __37(
21748
+ __38(
21470
21749
  "<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"
21471
21750
  ),
21472
21751
  filter.name,
@@ -21486,11 +21765,11 @@ var OPERATORS = [
21486
21765
  {
21487
21766
  name: OPERATOR_STARTS_WITH,
21488
21767
  /* translators: DataViews operator name */
21489
- label: __37("Starts with"),
21768
+ label: __38("Starts with"),
21490
21769
  filterText: (filter, activeElements) => create_interpolate_element_default(
21491
- sprintf15(
21770
+ sprintf16(
21492
21771
  /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title starts with: Hello". */
21493
- __37("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),
21772
+ __38("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),
21494
21773
  filter.name,
21495
21774
  activeElements[0].label
21496
21775
  ),
@@ -21508,11 +21787,11 @@ var OPERATORS = [
21508
21787
  {
21509
21788
  name: OPERATOR_ON,
21510
21789
  /* translators: DataViews operator name */
21511
- label: __37("On"),
21790
+ label: __38("On"),
21512
21791
  filterText: (filter, activeElements) => create_interpolate_element_default(
21513
- sprintf15(
21792
+ sprintf16(
21514
21793
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is: 2024-01-01". */
21515
- __37("<Name>%1$s is: </Name><Value>%2$s</Value>"),
21794
+ __38("<Name>%1$s is: </Name><Value>%2$s</Value>"),
21516
21795
  filter.name,
21517
21796
  activeElements[0].label
21518
21797
  ),
@@ -21531,11 +21810,11 @@ var OPERATORS = [
21531
21810
  {
21532
21811
  name: OPERATOR_NOT_ON,
21533
21812
  /* translators: DataViews operator name */
21534
- label: __37("Not on"),
21813
+ label: __38("Not on"),
21535
21814
  filterText: (filter, activeElements) => create_interpolate_element_default(
21536
- sprintf15(
21815
+ sprintf16(
21537
21816
  /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is not: 2024-01-01". */
21538
- __37("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
21817
+ __38("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
21539
21818
  filter.name,
21540
21819
  activeElements[0].label
21541
21820
  ),
@@ -21560,7 +21839,7 @@ var isSingleSelectionOperator = (name) => OPERATORS.filter((op) => op.selection
21560
21839
  var isRegisteredOperator = (name) => OPERATORS.some((op) => op.name === name);
21561
21840
 
21562
21841
  // src/components/dataviews-filters/filter.tsx
21563
- import { jsx as jsx80, jsxs as jsxs22 } from "react/jsx-runtime";
21842
+ import { jsx as jsx81, jsxs as jsxs23 } from "react/jsx-runtime";
21564
21843
  var ENTER = "Enter";
21565
21844
  var SPACE = " ";
21566
21845
  var FilterText = ({
@@ -21575,9 +21854,9 @@ var FilterText = ({
21575
21854
  if (operator !== void 0) {
21576
21855
  return operator.filterText(filter, activeElements);
21577
21856
  }
21578
- return sprintf16(
21857
+ return sprintf17(
21579
21858
  /* translators: 1: Filter name e.g.: "Unknown status for Author". */
21580
- __38("Unknown status for %1$s"),
21859
+ __39("Unknown status for %1$s"),
21581
21860
  filter.name
21582
21861
  );
21583
21862
  };
@@ -21594,7 +21873,7 @@ function OperatorSelector({
21594
21873
  (_filter) => _filter.field === filter.field
21595
21874
  );
21596
21875
  const value = currentFilter?.operator || filter.operators[0];
21597
- return operatorOptions.length > 1 && /* @__PURE__ */ jsxs22(
21876
+ return operatorOptions.length > 1 && /* @__PURE__ */ jsxs23(
21598
21877
  Stack,
21599
21878
  {
21600
21879
  direction: "row",
@@ -21603,12 +21882,12 @@ function OperatorSelector({
21603
21882
  className: "dataviews-filters__summary-operators-container",
21604
21883
  align: "center",
21605
21884
  children: [
21606
- /* @__PURE__ */ jsx80(component_default4, { className: "dataviews-filters__summary-operators-filter-name", children: filter.name }),
21607
- /* @__PURE__ */ jsx80(
21885
+ /* @__PURE__ */ jsx81(component_default4, { className: "dataviews-filters__summary-operators-filter-name", children: filter.name }),
21886
+ /* @__PURE__ */ jsx81(
21608
21887
  select_control_default,
21609
21888
  {
21610
21889
  className: "dataviews-filters__summary-operators-filter-select",
21611
- label: __38("Conditions"),
21890
+ label: __39("Conditions"),
21612
21891
  value,
21613
21892
  options: operatorOptions,
21614
21893
  onChange: (newValue) => {
@@ -21730,8 +22009,8 @@ function Filter({
21730
22009
  const isLocked = filterInView?.isLocked;
21731
22010
  const hasValues = !isLocked && filterInView?.value !== void 0;
21732
22011
  const canResetOrRemove = !isLocked && (!isPrimary || hasValues);
21733
- const resetOrRemoveLabel = isPrimary ? __38("Reset") : __38("Remove");
21734
- return /* @__PURE__ */ jsx80(
22012
+ const resetOrRemoveLabel = isPrimary ? __39("Reset") : __39("Remove");
22013
+ return /* @__PURE__ */ jsx81(
21735
22014
  dropdown_default,
21736
22015
  {
21737
22016
  defaultOpen: openedFilter === filter.field,
@@ -21740,15 +22019,15 @@ function Filter({
21740
22019
  onClose: () => {
21741
22020
  toggleRef.current?.focus();
21742
22021
  },
21743
- renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ jsxs22("div", { className: "dataviews-filters__summary-chip-container", children: [
21744
- /* @__PURE__ */ jsxs22(tooltip_exports.Root, { children: [
21745
- /* @__PURE__ */ jsx80(
22022
+ renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ jsxs23("div", { className: "dataviews-filters__summary-chip-container", children: [
22023
+ /* @__PURE__ */ jsxs23(tooltip_exports.Root, { children: [
22024
+ /* @__PURE__ */ jsx81(
21746
22025
  tooltip_exports.Trigger,
21747
22026
  {
21748
- render: /* @__PURE__ */ jsx80(
22027
+ render: /* @__PURE__ */ jsx81(
21749
22028
  "div",
21750
22029
  {
21751
- className: clsx48(
22030
+ className: clsx49(
21752
22031
  "dataviews-filters__summary-chip",
21753
22032
  {
21754
22033
  "has-reset": canResetOrRemove,
@@ -21775,7 +22054,7 @@ function Filter({
21775
22054
  "aria-pressed": isOpen,
21776
22055
  "aria-expanded": isOpen,
21777
22056
  ref: toggleRef,
21778
- children: /* @__PURE__ */ jsx80(
22057
+ children: /* @__PURE__ */ jsx81(
21779
22058
  FilterText,
21780
22059
  {
21781
22060
  activeElements,
@@ -21787,20 +22066,20 @@ function Filter({
21787
22066
  )
21788
22067
  }
21789
22068
  ),
21790
- /* @__PURE__ */ jsx80(tooltip_exports.Popup, { children: sprintf16(
22069
+ /* @__PURE__ */ jsx81(tooltip_exports.Popup, { children: sprintf17(
21791
22070
  /* translators: 1: Filter name. */
21792
- __38("Filter by: %1$s"),
22071
+ __39("Filter by: %1$s"),
21793
22072
  filter.name.toLowerCase()
21794
22073
  ) })
21795
22074
  ] }),
21796
- canResetOrRemove && /* @__PURE__ */ jsxs22(tooltip_exports.Root, { children: [
21797
- /* @__PURE__ */ jsx80(
22075
+ canResetOrRemove && /* @__PURE__ */ jsxs23(tooltip_exports.Root, { children: [
22076
+ /* @__PURE__ */ jsx81(
21798
22077
  tooltip_exports.Trigger,
21799
22078
  {
21800
- render: /* @__PURE__ */ jsx80(
22079
+ render: /* @__PURE__ */ jsx81(
21801
22080
  "button",
21802
22081
  {
21803
- className: clsx48(
22082
+ className: clsx49(
21804
22083
  "dataviews-filters__summary-chip-remove",
21805
22084
  { "has-values": hasValues }
21806
22085
  ),
@@ -21819,18 +22098,18 @@ function Filter({
21819
22098
  toggleRef.current?.focus();
21820
22099
  }
21821
22100
  },
21822
- children: /* @__PURE__ */ jsx80(icon_default2, { icon: close_small_default })
22101
+ children: /* @__PURE__ */ jsx81(icon_default2, { icon: close_small_default })
21823
22102
  }
21824
22103
  )
21825
22104
  }
21826
22105
  ),
21827
- /* @__PURE__ */ jsx80(tooltip_exports.Popup, { children: resetOrRemoveLabel })
22106
+ /* @__PURE__ */ jsx81(tooltip_exports.Popup, { children: resetOrRemoveLabel })
21828
22107
  ] })
21829
22108
  ] }),
21830
22109
  renderContent: () => {
21831
- return /* @__PURE__ */ jsxs22(Stack, { direction: "column", justify: "flex-start", children: [
21832
- /* @__PURE__ */ jsx80(OperatorSelector, { ...commonProps }),
21833
- commonProps.filter.hasElements ? /* @__PURE__ */ jsx80(
22110
+ return /* @__PURE__ */ jsxs23(Stack, { direction: "column", justify: "flex-start", children: [
22111
+ /* @__PURE__ */ jsx81(OperatorSelector, { ...commonProps }),
22112
+ commonProps.filter.hasElements ? /* @__PURE__ */ jsx81(
21834
22113
  SearchWidget,
21835
22114
  {
21836
22115
  ...commonProps,
@@ -21839,7 +22118,7 @@ function Filter({
21839
22118
  elements
21840
22119
  }
21841
22120
  }
21842
- ) : /* @__PURE__ */ jsx80(InputWidget, { ...commonProps, fields })
22121
+ ) : /* @__PURE__ */ jsx81(InputWidget, { ...commonProps, fields })
21843
22122
  ] });
21844
22123
  }
21845
22124
  }
@@ -21847,8 +22126,8 @@ function Filter({
21847
22126
  }
21848
22127
 
21849
22128
  // src/components/dataviews-filters/add-filter.tsx
21850
- import { __ as __39 } from "@wordpress/i18n";
21851
- import { jsx as jsx81, jsxs as jsxs23 } from "react/jsx-runtime";
22129
+ import { __ as __40 } from "@wordpress/i18n";
22130
+ import { jsx as jsx82, jsxs as jsxs24 } from "react/jsx-runtime";
21852
22131
  var { Menu: Menu7 } = unlock5(privateApis2);
21853
22132
  function AddFilterMenu({
21854
22133
  filters,
@@ -21858,10 +22137,10 @@ function AddFilterMenu({
21858
22137
  triggerProps
21859
22138
  }) {
21860
22139
  const inactiveFilters = filters.filter((filter) => !filter.isVisible);
21861
- return /* @__PURE__ */ jsxs23(Menu7, { children: [
21862
- /* @__PURE__ */ jsx81(Menu7.TriggerButton, { ...triggerProps }),
21863
- /* @__PURE__ */ jsx81(Menu7.Popover, { children: inactiveFilters.map((filter) => {
21864
- return /* @__PURE__ */ jsx81(
22140
+ return /* @__PURE__ */ jsxs24(Menu7, { children: [
22141
+ /* @__PURE__ */ jsx82(Menu7.TriggerButton, { ...triggerProps }),
22142
+ /* @__PURE__ */ jsx82(Menu7.Popover, { children: inactiveFilters.map((filter) => {
22143
+ return /* @__PURE__ */ jsx82(
21865
22144
  Menu7.Item,
21866
22145
  {
21867
22146
  onClick: () => {
@@ -21879,7 +22158,7 @@ function AddFilterMenu({
21879
22158
  ]
21880
22159
  });
21881
22160
  },
21882
- children: /* @__PURE__ */ jsx81(Menu7.ItemLabel, { children: filter.name })
22161
+ children: /* @__PURE__ */ jsx82(Menu7.ItemLabel, { children: filter.name })
21883
22162
  },
21884
22163
  filter.field
21885
22164
  );
@@ -21891,11 +22170,11 @@ function AddFilter({ filters, view, onChangeView, setOpenedFilter }, ref) {
21891
22170
  return null;
21892
22171
  }
21893
22172
  const inactiveFilters = filters.filter((filter) => !filter.isVisible);
21894
- return /* @__PURE__ */ jsx81(
22173
+ return /* @__PURE__ */ jsx82(
21895
22174
  AddFilterMenu,
21896
22175
  {
21897
22176
  triggerProps: {
21898
- render: /* @__PURE__ */ jsx81(
22177
+ render: /* @__PURE__ */ jsx82(
21899
22178
  button_default,
21900
22179
  {
21901
22180
  accessibleWhenDisabled: true,
@@ -21906,7 +22185,7 @@ function AddFilter({ filters, view, onChangeView, setOpenedFilter }, ref) {
21906
22185
  ref
21907
22186
  }
21908
22187
  ),
21909
- children: __39("Add filter")
22188
+ children: __40("Add filter")
21910
22189
  },
21911
22190
  ...{ filters, view, onChangeView, setOpenedFilter }
21912
22191
  }
@@ -21915,8 +22194,8 @@ function AddFilter({ filters, view, onChangeView, setOpenedFilter }, ref) {
21915
22194
  var add_filter_default = forwardRef(AddFilter);
21916
22195
 
21917
22196
  // src/components/dataviews-filters/reset-filters.tsx
21918
- import { __ as __40 } from "@wordpress/i18n";
21919
- import { jsx as jsx82 } from "react/jsx-runtime";
22197
+ import { __ as __41 } from "@wordpress/i18n";
22198
+ import { jsx as jsx83 } from "react/jsx-runtime";
21920
22199
  function ResetFilter({
21921
22200
  filters,
21922
22201
  view,
@@ -21928,7 +22207,7 @@ function ResetFilter({
21928
22207
  const isDisabled = !view.search && !view.filters?.some(
21929
22208
  (_filter) => !_filter.isLocked && (_filter.value !== void 0 || !isPrimary(_filter.field))
21930
22209
  );
21931
- return /* @__PURE__ */ jsx82(
22210
+ return /* @__PURE__ */ jsx83(
21932
22211
  button_default,
21933
22212
  {
21934
22213
  disabled: isDisabled,
@@ -21944,7 +22223,7 @@ function ResetFilter({
21944
22223
  filters: view.filters?.filter((f) => !!f.isLocked) || []
21945
22224
  });
21946
22225
  },
21947
- children: __40("Reset")
22226
+ children: __41("Reset")
21948
22227
  }
21949
22228
  );
21950
22229
  }
@@ -22000,12 +22279,12 @@ function useFilters(fields, view) {
22000
22279
  var use_filters_default = useFilters;
22001
22280
 
22002
22281
  // src/components/dataviews-filters/filters.tsx
22003
- import { jsx as jsx83 } from "react/jsx-runtime";
22282
+ import { jsx as jsx84 } from "react/jsx-runtime";
22004
22283
  function Filters({ className: className2 }) {
22005
22284
  const { fields, view, onChangeView, openedFilter, setOpenedFilter } = useContext(dataviews_context_default);
22006
22285
  const addFilterRef = useRef(null);
22007
22286
  const filters = use_filters_default(fields, view);
22008
- const addFilter = /* @__PURE__ */ jsx83(
22287
+ const addFilter = /* @__PURE__ */ jsx84(
22009
22288
  add_filter_default,
22010
22289
  {
22011
22290
  filters,
@@ -22022,7 +22301,7 @@ function Filters({ className: className2 }) {
22022
22301
  }
22023
22302
  const filterComponents = [
22024
22303
  ...visibleFilters.map((filter) => {
22025
- return /* @__PURE__ */ jsx83(
22304
+ return /* @__PURE__ */ jsx84(
22026
22305
  Filter,
22027
22306
  {
22028
22307
  filter,
@@ -22038,7 +22317,7 @@ function Filters({ className: className2 }) {
22038
22317
  addFilter
22039
22318
  ];
22040
22319
  filterComponents.push(
22041
- /* @__PURE__ */ jsx83(
22320
+ /* @__PURE__ */ jsx84(
22042
22321
  ResetFilter,
22043
22322
  {
22044
22323
  filters,
@@ -22048,7 +22327,7 @@ function Filters({ className: className2 }) {
22048
22327
  "reset-filters"
22049
22328
  )
22050
22329
  );
22051
- return /* @__PURE__ */ jsx83(
22330
+ return /* @__PURE__ */ jsx84(
22052
22331
  Stack,
22053
22332
  {
22054
22333
  direction: "row",
@@ -22064,8 +22343,8 @@ function Filters({ className: className2 }) {
22064
22343
  var filters_default = memo(Filters);
22065
22344
 
22066
22345
  // src/components/dataviews-filters/toggle.tsx
22067
- import { __ as __41, _x as _x3 } from "@wordpress/i18n";
22068
- import { Fragment as Fragment13, jsx as jsx84, jsxs as jsxs24 } from "react/jsx-runtime";
22346
+ import { __ as __42, _x as _x3 } from "@wordpress/i18n";
22347
+ import { Fragment as Fragment14, jsx as jsx85, jsxs as jsxs25 } from "react/jsx-runtime";
22069
22348
  function FiltersToggle() {
22070
22349
  const {
22071
22350
  filters,
@@ -22088,7 +22367,7 @@ function FiltersToggle() {
22088
22367
  }
22089
22368
  const hasVisibleFilters = filters.some((filter) => filter.isVisible);
22090
22369
  const addFilterButtonProps = {
22091
- label: __41("Add filter"),
22370
+ label: __42("Add filter"),
22092
22371
  "aria-expanded": false,
22093
22372
  isPressed: false
22094
22373
  };
@@ -22106,7 +22385,7 @@ function FiltersToggle() {
22106
22385
  const hasPrimaryOrLockedFilters = filters.some(
22107
22386
  (filter) => filter.isPrimary || filter.isLocked
22108
22387
  );
22109
- const buttonComponent = /* @__PURE__ */ jsx84(
22388
+ const buttonComponent = /* @__PURE__ */ jsx85(
22110
22389
  button_default,
22111
22390
  {
22112
22391
  ref: buttonRef,
@@ -22118,7 +22397,7 @@ function FiltersToggle() {
22118
22397
  ...hasVisibleFilters ? toggleFiltersButtonProps : addFilterButtonProps
22119
22398
  }
22120
22399
  );
22121
- return /* @__PURE__ */ jsx84("div", { className: "dataviews-filters__container-visibility-toggle", children: !hasVisibleFilters ? /* @__PURE__ */ jsx84(
22400
+ return /* @__PURE__ */ jsx85("div", { className: "dataviews-filters__container-visibility-toggle", children: !hasVisibleFilters ? /* @__PURE__ */ jsx85(
22122
22401
  AddFilterMenu,
22123
22402
  {
22124
22403
  filters,
@@ -22127,7 +22406,7 @@ function FiltersToggle() {
22127
22406
  setOpenedFilter,
22128
22407
  triggerProps: { render: buttonComponent }
22129
22408
  }
22130
- ) : /* @__PURE__ */ jsx84(
22409
+ ) : /* @__PURE__ */ jsx85(
22131
22410
  FilterVisibilityToggle,
22132
22411
  {
22133
22412
  buttonRef,
@@ -22147,27 +22426,27 @@ function FilterVisibilityToggle({
22147
22426
  },
22148
22427
  [buttonRef]
22149
22428
  );
22150
- return /* @__PURE__ */ jsxs24(Fragment13, { children: [
22429
+ return /* @__PURE__ */ jsxs25(Fragment14, { children: [
22151
22430
  children,
22152
- !!filtersCount && /* @__PURE__ */ jsx84("span", { className: "dataviews-filters-toggle__count", children: filtersCount })
22431
+ !!filtersCount && /* @__PURE__ */ jsx85("span", { className: "dataviews-filters-toggle__count", children: filtersCount })
22153
22432
  ] });
22154
22433
  }
22155
22434
  var toggle_default = FiltersToggle;
22156
22435
 
22157
22436
  // src/components/dataviews-filters/filters-toggled.tsx
22158
- import { jsx as jsx85 } from "react/jsx-runtime";
22437
+ import { jsx as jsx86 } from "react/jsx-runtime";
22159
22438
  function FiltersToggled(props) {
22160
22439
  const { isShowingFilter } = useContext(dataviews_context_default);
22161
22440
  if (!isShowingFilter) {
22162
22441
  return null;
22163
22442
  }
22164
- return /* @__PURE__ */ jsx85(filters_default, { ...props });
22443
+ return /* @__PURE__ */ jsx86(filters_default, { ...props });
22165
22444
  }
22166
22445
  var filters_toggled_default = FiltersToggled;
22167
22446
 
22168
22447
  // src/components/dataviews-layout/index.tsx
22169
- import { __ as __42 } from "@wordpress/i18n";
22170
- import { jsx as jsx86 } from "react/jsx-runtime";
22448
+ import { __ as __43 } from "@wordpress/i18n";
22449
+ import { jsx as jsx87 } from "react/jsx-runtime";
22171
22450
  function DataViewsLayout({ className: className2 }) {
22172
22451
  const {
22173
22452
  actions = [],
@@ -22187,7 +22466,7 @@ function DataViewsLayout({ className: className2 }) {
22187
22466
  renderItemLink,
22188
22467
  defaultLayouts,
22189
22468
  containerRef,
22190
- empty = /* @__PURE__ */ jsx86("p", { children: __42("No results") })
22469
+ empty = /* @__PURE__ */ jsx87("p", { children: __43("No results") })
22191
22470
  } = useContext(dataviews_context_default);
22192
22471
  const isDelayedInitialLoading = useDelayedLoading(!hasInitiallyLoaded, {
22193
22472
  delay: 200
@@ -22196,12 +22475,12 @@ function DataViewsLayout({ className: className2 }) {
22196
22475
  if (!isDelayedInitialLoading) {
22197
22476
  return null;
22198
22477
  }
22199
- return /* @__PURE__ */ jsx86("div", { className: "dataviews-loading", children: /* @__PURE__ */ jsx86("p", { children: /* @__PURE__ */ jsx86(spinner_default, {}) }) });
22478
+ return /* @__PURE__ */ jsx87("div", { className: "dataviews-loading", children: /* @__PURE__ */ jsx87("p", { children: /* @__PURE__ */ jsx87(spinner_default, {}) }) });
22200
22479
  }
22201
22480
  const ViewComponent = VIEW_LAYOUTS.find(
22202
22481
  (v) => v.type === view.type && defaultLayouts[v.type]
22203
22482
  )?.component;
22204
- return /* @__PURE__ */ jsx86("div", { className: "dataviews-layout__container", ref: containerRef, children: /* @__PURE__ */ jsx86(
22483
+ return /* @__PURE__ */ jsx87("div", { className: "dataviews-layout__container", ref: containerRef, children: /* @__PURE__ */ jsx87(
22205
22484
  ViewComponent,
22206
22485
  {
22207
22486
  className: className2,
@@ -22225,8 +22504,8 @@ function DataViewsLayout({ className: className2 }) {
22225
22504
  }
22226
22505
 
22227
22506
  // src/components/dataviews-footer/index.tsx
22228
- import clsx49 from "clsx";
22229
- import { jsx as jsx87, jsxs as jsxs25 } from "react/jsx-runtime";
22507
+ import clsx50 from "clsx";
22508
+ import { jsx as jsx88, jsxs as jsxs26 } from "react/jsx-runtime";
22230
22509
  var EMPTY_ARRAY5 = [];
22231
22510
  function DataViewsFooter() {
22232
22511
  const {
@@ -22243,24 +22522,24 @@ function DataViewsFooter() {
22243
22522
  if (!isRefreshing && (!totalItems || !totalPages || totalPages <= 1 && !hasBulkActions)) {
22244
22523
  return null;
22245
22524
  }
22246
- return (!!totalItems || isRefreshing) && /* @__PURE__ */ jsx87(
22525
+ return (!!totalItems || isRefreshing) && /* @__PURE__ */ jsx88(
22247
22526
  "div",
22248
22527
  {
22249
22528
  className: "dataviews-footer",
22250
22529
  inert: isRefreshing ? "true" : void 0,
22251
- children: /* @__PURE__ */ jsxs25(
22530
+ children: /* @__PURE__ */ jsxs26(
22252
22531
  Stack,
22253
22532
  {
22254
22533
  direction: "row",
22255
22534
  justify: "end",
22256
22535
  align: "center",
22257
- className: clsx49("dataviews-footer__content", {
22536
+ className: clsx50("dataviews-footer__content", {
22258
22537
  "is-refreshing": isDelayedRefreshing
22259
22538
  }),
22260
22539
  gap: "sm",
22261
22540
  children: [
22262
- hasBulkActions && /* @__PURE__ */ jsx87(BulkActionsFooter, {}),
22263
- /* @__PURE__ */ jsx87(dataviews_pagination_default, {})
22541
+ hasBulkActions && /* @__PURE__ */ jsx88(BulkActionsFooter, {}),
22542
+ /* @__PURE__ */ jsx88(dataviews_pagination_default, {})
22264
22543
  ]
22265
22544
  }
22266
22545
  )
@@ -22269,8 +22548,8 @@ function DataViewsFooter() {
22269
22548
  }
22270
22549
 
22271
22550
  // src/components/dataviews-search/index.tsx
22272
- import { __ as __43 } from "@wordpress/i18n";
22273
- import { jsx as jsx88 } from "react/jsx-runtime";
22551
+ import { __ as __44 } from "@wordpress/i18n";
22552
+ import { jsx as jsx89 } from "react/jsx-runtime";
22274
22553
  var DataViewsSearch = memo(function Search({ label }) {
22275
22554
  const { view, onChangeView } = useContext(dataviews_context_default);
22276
22555
  const [search, setSearch, debouncedSearch] = useDebouncedInput(
@@ -22297,8 +22576,8 @@ var DataViewsSearch = memo(function Search({ label }) {
22297
22576
  });
22298
22577
  }
22299
22578
  }, [debouncedSearch]);
22300
- const searchLabel = label || __43("Search");
22301
- return /* @__PURE__ */ jsx88(
22579
+ const searchLabel = label || __44("Search");
22580
+ return /* @__PURE__ */ jsx89(
22302
22581
  search_control_default,
22303
22582
  {
22304
22583
  className: "dataviews-search",
@@ -22313,8 +22592,8 @@ var DataViewsSearch = memo(function Search({ label }) {
22313
22592
  var dataviews_search_default = DataViewsSearch;
22314
22593
 
22315
22594
  // src/components/dataviews-view-config/index.tsx
22316
- import { __ as __44, _x as _x4 } from "@wordpress/i18n";
22317
- import { Fragment as Fragment14, jsx as jsx89, jsxs as jsxs26 } from "react/jsx-runtime";
22595
+ import { __ as __45, _x as _x4 } from "@wordpress/i18n";
22596
+ import { Fragment as Fragment15, jsx as jsx90, jsxs as jsxs27 } from "react/jsx-runtime";
22318
22597
  var { Menu: Menu8 } = unlock5(privateApis2);
22319
22598
  var DATAVIEWS_CONFIG_POPOVER_PROPS = {
22320
22599
  className: "dataviews-config__popover",
@@ -22328,28 +22607,28 @@ function ViewTypeMenu() {
22328
22607
  return null;
22329
22608
  }
22330
22609
  const activeView = VIEW_LAYOUTS.find((v) => view.type === v.type);
22331
- return /* @__PURE__ */ jsxs26(Menu8, { children: [
22332
- /* @__PURE__ */ jsx89(
22610
+ return /* @__PURE__ */ jsxs27(Menu8, { children: [
22611
+ /* @__PURE__ */ jsx90(
22333
22612
  Menu8.TriggerButton,
22334
22613
  {
22335
- render: /* @__PURE__ */ jsx89(
22614
+ render: /* @__PURE__ */ jsx90(
22336
22615
  button_default,
22337
22616
  {
22338
22617
  size: "compact",
22339
22618
  icon: activeView?.icon,
22340
- label: __44("Layout")
22619
+ label: __45("Layout")
22341
22620
  }
22342
22621
  )
22343
22622
  }
22344
22623
  ),
22345
- /* @__PURE__ */ jsx89(Menu8.Popover, { children: availableLayouts.map((layout) => {
22624
+ /* @__PURE__ */ jsx90(Menu8.Popover, { children: availableLayouts.map((layout) => {
22346
22625
  const config = VIEW_LAYOUTS.find(
22347
22626
  (v) => v.type === layout
22348
22627
  );
22349
22628
  if (!config) {
22350
22629
  return null;
22351
22630
  }
22352
- return /* @__PURE__ */ jsx89(
22631
+ return /* @__PURE__ */ jsx90(
22353
22632
  Menu8.RadioItem,
22354
22633
  {
22355
22634
  value: layout,
@@ -22363,6 +22642,7 @@ function ViewTypeMenu() {
22363
22642
  case "table":
22364
22643
  case "pickerGrid":
22365
22644
  case "pickerTable":
22645
+ case "pickerActivity":
22366
22646
  case "activity":
22367
22647
  const viewWithoutLayout = { ...view };
22368
22648
  if ("layout" in viewWithoutLayout) {
@@ -22376,7 +22656,7 @@ function ViewTypeMenu() {
22376
22656
  }
22377
22657
  warning("Invalid dataview");
22378
22658
  },
22379
- children: /* @__PURE__ */ jsx89(Menu8.ItemLabel, { children: config.label })
22659
+ children: /* @__PURE__ */ jsx90(Menu8.ItemLabel, { children: config.label })
22380
22660
  },
22381
22661
  layout
22382
22662
  );
@@ -22396,11 +22676,11 @@ function SortFieldControl() {
22396
22676
  };
22397
22677
  });
22398
22678
  }, [fields]);
22399
- return /* @__PURE__ */ jsx89(
22679
+ return /* @__PURE__ */ jsx90(
22400
22680
  select_control_default,
22401
22681
  {
22402
22682
  __next40pxDefaultSize: true,
22403
- label: __44("Sort by"),
22683
+ label: __45("Sort by"),
22404
22684
  value: view.sort?.field,
22405
22685
  options: orderOptions,
22406
22686
  onChange: (value) => {
@@ -22428,13 +22708,13 @@ function SortDirectionControl() {
22428
22708
  if (!value && view.sort?.field) {
22429
22709
  value = "desc";
22430
22710
  }
22431
- return /* @__PURE__ */ jsx89(
22711
+ return /* @__PURE__ */ jsx90(
22432
22712
  component_default10,
22433
22713
  {
22434
22714
  className: "dataviews-view-config__sort-direction",
22435
22715
  __next40pxDefaultSize: true,
22436
22716
  isBlock: true,
22437
- label: __44("Order"),
22717
+ label: __45("Order"),
22438
22718
  value,
22439
22719
  onChange: (newDirection) => {
22440
22720
  if (newDirection === "asc" || newDirection === "desc") {
@@ -22454,7 +22734,7 @@ function SortDirectionControl() {
22454
22734
  warning("Invalid direction");
22455
22735
  },
22456
22736
  children: SORTING_DIRECTIONS.map((direction) => {
22457
- return /* @__PURE__ */ jsx89(
22737
+ return /* @__PURE__ */ jsx90(
22458
22738
  component_default13,
22459
22739
  {
22460
22740
  value: direction,
@@ -22473,12 +22753,12 @@ function ItemsPerPageControl() {
22473
22753
  if (!config || !config.perPageSizes || config.perPageSizes.length < 2 || config.perPageSizes.length > 6 || infiniteScrollEnabled) {
22474
22754
  return null;
22475
22755
  }
22476
- return /* @__PURE__ */ jsx89(
22756
+ return /* @__PURE__ */ jsx90(
22477
22757
  component_default10,
22478
22758
  {
22479
22759
  __next40pxDefaultSize: true,
22480
22760
  isBlock: true,
22481
- label: __44("Items per page"),
22761
+ label: __45("Items per page"),
22482
22762
  value: view.perPage || 10,
22483
22763
  disabled: !view?.sort?.field,
22484
22764
  onChange: (newItemsPerPage) => {
@@ -22490,7 +22770,7 @@ function ItemsPerPageControl() {
22490
22770
  });
22491
22771
  },
22492
22772
  children: config.perPageSizes.map((value) => {
22493
- return /* @__PURE__ */ jsx89(
22773
+ return /* @__PURE__ */ jsx90(
22494
22774
  component_default12,
22495
22775
  {
22496
22776
  value,
@@ -22508,7 +22788,7 @@ function ResetViewButton() {
22508
22788
  return null;
22509
22789
  }
22510
22790
  const isDisabled = onReset === false;
22511
- return /* @__PURE__ */ jsx89(
22791
+ return /* @__PURE__ */ jsx90(
22512
22792
  button_default,
22513
22793
  {
22514
22794
  variant: "tertiary",
@@ -22521,7 +22801,7 @@ function ResetViewButton() {
22521
22801
  onReset();
22522
22802
  }
22523
22803
  },
22524
- children: __44("Reset view")
22804
+ children: __45("Reset view")
22525
22805
  }
22526
22806
  );
22527
22807
  }
@@ -22535,7 +22815,7 @@ function DataviewsViewConfigDropdown() {
22535
22815
  (layout) => layout.type === view.type
22536
22816
  );
22537
22817
  const isModified = typeof onReset === "function";
22538
- return /* @__PURE__ */ jsx89(
22818
+ return /* @__PURE__ */ jsx90(
22539
22819
  dropdown_default,
22540
22820
  {
22541
22821
  expandOnMobile: true,
@@ -22544,8 +22824,8 @@ function DataviewsViewConfigDropdown() {
22544
22824
  id: popoverId
22545
22825
  },
22546
22826
  renderToggle: ({ onToggle, isOpen }) => {
22547
- return /* @__PURE__ */ jsxs26("div", { className: "dataviews-view-config__toggle-wrapper", children: [
22548
- /* @__PURE__ */ jsx89(
22827
+ return /* @__PURE__ */ jsxs27("div", { className: "dataviews-view-config__toggle-wrapper", children: [
22828
+ /* @__PURE__ */ jsx90(
22549
22829
  button_default,
22550
22830
  {
22551
22831
  size: "compact",
@@ -22559,22 +22839,22 @@ function DataviewsViewConfigDropdown() {
22559
22839
  "aria-controls": popoverId
22560
22840
  }
22561
22841
  ),
22562
- isModified && /* @__PURE__ */ jsx89("span", { className: "dataviews-view-config__modified-indicator" })
22842
+ isModified && /* @__PURE__ */ jsx90("span", { className: "dataviews-view-config__modified-indicator" })
22563
22843
  ] });
22564
22844
  },
22565
- renderContent: () => /* @__PURE__ */ jsx89(
22845
+ renderContent: () => /* @__PURE__ */ jsx90(
22566
22846
  dropdown_content_wrapper_default,
22567
22847
  {
22568
22848
  paddingSize: "medium",
22569
22849
  className: "dataviews-config__popover-content-wrapper",
22570
- children: /* @__PURE__ */ jsxs26(
22850
+ children: /* @__PURE__ */ jsxs27(
22571
22851
  Stack,
22572
22852
  {
22573
22853
  direction: "column",
22574
22854
  className: "dataviews-view-config",
22575
22855
  gap: "xl",
22576
22856
  children: [
22577
- /* @__PURE__ */ jsxs26(
22857
+ /* @__PURE__ */ jsxs27(
22578
22858
  Stack,
22579
22859
  {
22580
22860
  direction: "row",
@@ -22582,34 +22862,34 @@ function DataviewsViewConfigDropdown() {
22582
22862
  align: "center",
22583
22863
  className: "dataviews-view-config__header",
22584
22864
  children: [
22585
- /* @__PURE__ */ jsx89(
22865
+ /* @__PURE__ */ jsx90(
22586
22866
  component_default16,
22587
22867
  {
22588
22868
  level: 2,
22589
22869
  className: "dataviews-settings-section__title",
22590
- children: __44("Appearance")
22870
+ children: __45("Appearance")
22591
22871
  }
22592
22872
  ),
22593
- /* @__PURE__ */ jsx89(ResetViewButton, {})
22873
+ /* @__PURE__ */ jsx90(ResetViewButton, {})
22594
22874
  ]
22595
22875
  }
22596
22876
  ),
22597
- /* @__PURE__ */ jsxs26(Stack, { direction: "column", gap: "lg", children: [
22598
- /* @__PURE__ */ jsxs26(
22877
+ /* @__PURE__ */ jsxs27(Stack, { direction: "column", gap: "lg", children: [
22878
+ /* @__PURE__ */ jsxs27(
22599
22879
  Stack,
22600
22880
  {
22601
22881
  direction: "row",
22602
22882
  gap: "sm",
22603
22883
  className: "dataviews-view-config__sort-controls",
22604
22884
  children: [
22605
- /* @__PURE__ */ jsx89(SortFieldControl, {}),
22606
- /* @__PURE__ */ jsx89(SortDirectionControl, {})
22885
+ /* @__PURE__ */ jsx90(SortFieldControl, {}),
22886
+ /* @__PURE__ */ jsx90(SortDirectionControl, {})
22607
22887
  ]
22608
22888
  }
22609
22889
  ),
22610
- !!activeLayout?.viewConfigOptions && /* @__PURE__ */ jsx89(activeLayout.viewConfigOptions, {}),
22611
- /* @__PURE__ */ jsx89(ItemsPerPageControl, {}),
22612
- /* @__PURE__ */ jsx89(PropertiesSection, {})
22890
+ !!activeLayout?.viewConfigOptions && /* @__PURE__ */ jsx90(activeLayout.viewConfigOptions, {}),
22891
+ /* @__PURE__ */ jsx90(ItemsPerPageControl, {}),
22892
+ /* @__PURE__ */ jsx90(PropertiesSection, {})
22613
22893
  ] })
22614
22894
  ]
22615
22895
  }
@@ -22620,9 +22900,9 @@ function DataviewsViewConfigDropdown() {
22620
22900
  );
22621
22901
  }
22622
22902
  function _DataViewsViewConfig() {
22623
- return /* @__PURE__ */ jsxs26(Fragment14, { children: [
22624
- /* @__PURE__ */ jsx89(ViewTypeMenu, {}),
22625
- /* @__PURE__ */ jsx89(DataviewsViewConfigDropdown, {})
22903
+ return /* @__PURE__ */ jsxs27(Fragment15, { children: [
22904
+ /* @__PURE__ */ jsx90(ViewTypeMenu, {}),
22905
+ /* @__PURE__ */ jsx90(DataviewsViewConfigDropdown, {})
22626
22906
  ] });
22627
22907
  }
22628
22908
  var DataViewsViewConfig = memo(_DataViewsViewConfig);
@@ -22652,7 +22932,7 @@ function getCustomValidity(isValid, validity) {
22652
22932
  }
22653
22933
 
22654
22934
  // src/components/dataform-controls/checkbox.tsx
22655
- import { jsx as jsx90 } from "react/jsx-runtime";
22935
+ import { jsx as jsx91 } from "react/jsx-runtime";
22656
22936
  var { ValidatedCheckboxControl: ValidatedCheckboxControl2 } = unlock5(privateApis2);
22657
22937
  function Checkbox({
22658
22938
  field,
@@ -22669,7 +22949,7 @@ function Checkbox({
22669
22949
  setValue({ item: data, value: !getValue({ item: data }) })
22670
22950
  );
22671
22951
  }, [data, getValue, onChange, setValue]);
22672
- return /* @__PURE__ */ jsx90(
22952
+ return /* @__PURE__ */ jsx91(
22673
22953
  ValidatedCheckboxControl2,
22674
22954
  {
22675
22955
  required: !!field.isValid?.required,
@@ -22686,7 +22966,7 @@ function Checkbox({
22686
22966
  }
22687
22967
 
22688
22968
  // src/components/dataform-controls/combobox.tsx
22689
- import { jsx as jsx91 } from "react/jsx-runtime";
22969
+ import { jsx as jsx92 } from "react/jsx-runtime";
22690
22970
  var { ValidatedComboboxControl: ValidatedComboboxControl2 } = unlock5(privateApis2);
22691
22971
  function Combobox2({
22692
22972
  data,
@@ -22706,9 +22986,9 @@ function Combobox2({
22706
22986
  getElements: field.getElements
22707
22987
  });
22708
22988
  if (isLoading) {
22709
- return /* @__PURE__ */ jsx91(spinner_default, {});
22989
+ return /* @__PURE__ */ jsx92(spinner_default, {});
22710
22990
  }
22711
- return /* @__PURE__ */ jsx91(
22991
+ return /* @__PURE__ */ jsx92(
22712
22992
  ValidatedComboboxControl2,
22713
22993
  {
22714
22994
  required: !!field.isValid?.required,
@@ -22727,25 +23007,25 @@ function Combobox2({
22727
23007
  }
22728
23008
 
22729
23009
  // src/components/dataform-controls/datetime.tsx
22730
- import { __ as __46 } from "@wordpress/i18n";
23010
+ import { __ as __47 } from "@wordpress/i18n";
22731
23011
  import { dateI18n, getDate as getDate3, getSettings } from "@wordpress/date";
22732
23012
 
22733
23013
  // src/components/dataform-controls/utils/relative-date-control.tsx
22734
- import clsx50 from "clsx";
22735
- import { __ as __45 } from "@wordpress/i18n";
22736
- import { jsx as jsx92, jsxs as jsxs27 } from "react/jsx-runtime";
23014
+ import clsx51 from "clsx";
23015
+ import { __ as __46 } from "@wordpress/i18n";
23016
+ import { jsx as jsx93, jsxs as jsxs28 } from "react/jsx-runtime";
22737
23017
  var TIME_UNITS_OPTIONS = {
22738
23018
  [OPERATOR_IN_THE_PAST]: [
22739
- { value: "days", label: __45("Days") },
22740
- { value: "weeks", label: __45("Weeks") },
22741
- { value: "months", label: __45("Months") },
22742
- { value: "years", label: __45("Years") }
23019
+ { value: "days", label: __46("Days") },
23020
+ { value: "weeks", label: __46("Weeks") },
23021
+ { value: "months", label: __46("Months") },
23022
+ { value: "years", label: __46("Years") }
22743
23023
  ],
22744
23024
  [OPERATOR_OVER]: [
22745
- { value: "days", label: __45("Days ago") },
22746
- { value: "weeks", label: __45("Weeks ago") },
22747
- { value: "months", label: __45("Months ago") },
22748
- { value: "years", label: __45("Years ago") }
23025
+ { value: "days", label: __46("Days ago") },
23026
+ { value: "weeks", label: __46("Weeks ago") },
23027
+ { value: "months", label: __46("Months ago") },
23028
+ { value: "years", label: __46("Years ago") }
22749
23029
  ]
22750
23030
  };
22751
23031
  function RelativeDateControl({
@@ -22779,16 +23059,16 @@ function RelativeDateControl({
22779
23059
  ),
22780
23060
  [onChange, setValue, data, relValue]
22781
23061
  );
22782
- return /* @__PURE__ */ jsx92(
23062
+ return /* @__PURE__ */ jsx93(
22783
23063
  base_control_default,
22784
23064
  {
22785
23065
  id,
22786
- className: clsx50(className2, "dataviews-controls__relative-date"),
23066
+ className: clsx51(className2, "dataviews-controls__relative-date"),
22787
23067
  label,
22788
23068
  hideLabelFromVision,
22789
23069
  help: description,
22790
- children: /* @__PURE__ */ jsxs27(Stack, { direction: "row", gap: "sm", children: [
22791
- /* @__PURE__ */ jsx92(
23070
+ children: /* @__PURE__ */ jsxs28(Stack, { direction: "row", gap: "sm", children: [
23071
+ /* @__PURE__ */ jsx93(
22792
23072
  number_control_default,
22793
23073
  {
22794
23074
  __next40pxDefaultSize: true,
@@ -22801,12 +23081,12 @@ function RelativeDateControl({
22801
23081
  disabled
22802
23082
  }
22803
23083
  ),
22804
- /* @__PURE__ */ jsx92(
23084
+ /* @__PURE__ */ jsx93(
22805
23085
  select_control_default,
22806
23086
  {
22807
23087
  className: "dataviews-controls__relative-date-unit",
22808
23088
  __next40pxDefaultSize: true,
22809
- label: __45("Unit"),
23089
+ label: __46("Unit"),
22810
23090
  value: unit,
22811
23091
  options: options2,
22812
23092
  onChange: onChangeUnit,
@@ -22854,7 +23134,7 @@ function parseDateTime(dateTimeString) {
22854
23134
  }
22855
23135
 
22856
23136
  // src/components/dataform-controls/datetime.tsx
22857
- import { jsx as jsx93, jsxs as jsxs28 } from "react/jsx-runtime";
23137
+ import { jsx as jsx94, jsxs as jsxs29 } from "react/jsx-runtime";
22858
23138
  var { DateCalendar: DateCalendar2, ValidatedInputControl: ValidatedInputControl2 } = unlock5(privateApis2);
22859
23139
  var formatDateTime = (value) => {
22860
23140
  if (!value) {
@@ -22951,19 +23231,19 @@ function CalendarDateTimeControl({
22951
23231
  } = getSettings();
22952
23232
  let displayLabel = label;
22953
23233
  if (isValid?.required && !markWhenOptional && !hideLabelFromVision) {
22954
- displayLabel = `${label} (${__46("Required")})`;
23234
+ displayLabel = `${label} (${__47("Required")})`;
22955
23235
  } else if (!isValid?.required && markWhenOptional && !hideLabelFromVision) {
22956
- displayLabel = `${label} (${__46("Optional")})`;
23236
+ displayLabel = `${label} (${__47("Optional")})`;
22957
23237
  }
22958
- return /* @__PURE__ */ jsx93(
23238
+ return /* @__PURE__ */ jsx94(
22959
23239
  base_control_default,
22960
23240
  {
22961
23241
  id,
22962
23242
  label: displayLabel,
22963
23243
  help: description,
22964
23244
  hideLabelFromVision,
22965
- children: /* @__PURE__ */ jsxs28(Stack, { direction: "column", gap: "lg", children: [
22966
- /* @__PURE__ */ jsx93(
23245
+ children: /* @__PURE__ */ jsxs29(Stack, { direction: "column", gap: "lg", children: [
23246
+ /* @__PURE__ */ jsx94(
22967
23247
  ValidatedInputControl2,
22968
23248
  {
22969
23249
  ref: inputControlRef,
@@ -22971,7 +23251,7 @@ function CalendarDateTimeControl({
22971
23251
  required: !!isValid?.required,
22972
23252
  customValidity: getCustomValidity(isValid, validity),
22973
23253
  type: "datetime-local",
22974
- label: __46("Date time"),
23254
+ label: __47("Date time"),
22975
23255
  hideLabelFromVision: true,
22976
23256
  value: formatDateTime(value),
22977
23257
  onChange: handleManualDateTimeChange,
@@ -22980,7 +23260,7 @@ function CalendarDateTimeControl({
22980
23260
  max: maxConstraint ? formatDateTime(maxConstraint) : void 0
22981
23261
  }
22982
23262
  ),
22983
- !compact && /* @__PURE__ */ jsx93(
23263
+ !compact && /* @__PURE__ */ jsx94(
22984
23264
  DateCalendar2,
22985
23265
  {
22986
23266
  style: { width: "100%" },
@@ -23008,7 +23288,7 @@ function DateTime({
23008
23288
  config
23009
23289
  }) {
23010
23290
  if (operator === OPERATOR_IN_THE_PAST || operator === OPERATOR_OVER) {
23011
- return /* @__PURE__ */ jsx93(
23291
+ return /* @__PURE__ */ jsx94(
23012
23292
  RelativeDateControl,
23013
23293
  {
23014
23294
  className: "dataviews-controls__datetime",
@@ -23020,7 +23300,7 @@ function DateTime({
23020
23300
  }
23021
23301
  );
23022
23302
  }
23023
- return /* @__PURE__ */ jsx93(
23303
+ return /* @__PURE__ */ jsx94(
23024
23304
  CalendarDateTimeControl,
23025
23305
  {
23026
23306
  data,
@@ -23035,7 +23315,7 @@ function DateTime({
23035
23315
  }
23036
23316
 
23037
23317
  // src/components/dataform-controls/date.tsx
23038
- import clsx51 from "clsx";
23318
+ import clsx52 from "clsx";
23039
23319
  import {
23040
23320
  format,
23041
23321
  isValid as isValidDate2,
@@ -23045,19 +23325,19 @@ import {
23045
23325
  startOfMonth,
23046
23326
  startOfYear
23047
23327
  } from "date-fns";
23048
- import { __ as __47 } from "@wordpress/i18n";
23328
+ import { __ as __48 } from "@wordpress/i18n";
23049
23329
  import { getDate as getDate4, getSettings as getSettings2 } from "@wordpress/date";
23050
- import { jsx as jsx94, jsxs as jsxs29 } from "react/jsx-runtime";
23330
+ import { jsx as jsx95, jsxs as jsxs30 } from "react/jsx-runtime";
23051
23331
  var { DateCalendar: DateCalendar3, DateRangeCalendar: DateRangeCalendar2 } = unlock5(privateApis2);
23052
23332
  var DATE_PRESETS = [
23053
23333
  {
23054
23334
  id: "today",
23055
- label: __47("Today"),
23335
+ label: __48("Today"),
23056
23336
  getValue: () => getDate4(null)
23057
23337
  },
23058
23338
  {
23059
23339
  id: "yesterday",
23060
- label: __47("Yesterday"),
23340
+ label: __48("Yesterday"),
23061
23341
  getValue: () => {
23062
23342
  const today = getDate4(null);
23063
23343
  return subDays2(today, 1);
@@ -23065,7 +23345,7 @@ var DATE_PRESETS = [
23065
23345
  },
23066
23346
  {
23067
23347
  id: "past-week",
23068
- label: __47("Past week"),
23348
+ label: __48("Past week"),
23069
23349
  getValue: () => {
23070
23350
  const today = getDate4(null);
23071
23351
  return subDays2(today, 7);
@@ -23073,7 +23353,7 @@ var DATE_PRESETS = [
23073
23353
  },
23074
23354
  {
23075
23355
  id: "past-month",
23076
- label: __47("Past month"),
23356
+ label: __48("Past month"),
23077
23357
  getValue: () => {
23078
23358
  const today = getDate4(null);
23079
23359
  return subMonths2(today, 1);
@@ -23083,7 +23363,7 @@ var DATE_PRESETS = [
23083
23363
  var DATE_RANGE_PRESETS = [
23084
23364
  {
23085
23365
  id: "last-7-days",
23086
- label: __47("Last 7 days"),
23366
+ label: __48("Last 7 days"),
23087
23367
  getValue: () => {
23088
23368
  const today = getDate4(null);
23089
23369
  return [subDays2(today, 7), today];
@@ -23091,7 +23371,7 @@ var DATE_RANGE_PRESETS = [
23091
23371
  },
23092
23372
  {
23093
23373
  id: "last-30-days",
23094
- label: __47("Last 30 days"),
23374
+ label: __48("Last 30 days"),
23095
23375
  getValue: () => {
23096
23376
  const today = getDate4(null);
23097
23377
  return [subDays2(today, 30), today];
@@ -23099,7 +23379,7 @@ var DATE_RANGE_PRESETS = [
23099
23379
  },
23100
23380
  {
23101
23381
  id: "month-to-date",
23102
- label: __47("Month to date"),
23382
+ label: __48("Month to date"),
23103
23383
  getValue: () => {
23104
23384
  const today = getDate4(null);
23105
23385
  return [startOfMonth(today), today];
@@ -23107,7 +23387,7 @@ var DATE_RANGE_PRESETS = [
23107
23387
  },
23108
23388
  {
23109
23389
  id: "last-year",
23110
- label: __47("Last year"),
23390
+ label: __48("Last year"),
23111
23391
  getValue: () => {
23112
23392
  const today = getDate4(null);
23113
23393
  return [subYears2(today, 1), today];
@@ -23115,7 +23395,7 @@ var DATE_RANGE_PRESETS = [
23115
23395
  },
23116
23396
  {
23117
23397
  id: "year-to-date",
23118
- label: __47("Year to date"),
23398
+ label: __48("Year to date"),
23119
23399
  getValue: () => {
23120
23400
  const today = getDate4(null);
23121
23401
  return [startOfYear(today), today];
@@ -23205,17 +23485,17 @@ function ValidatedDateControl({
23205
23485
  setIsTouched(true);
23206
23486
  }
23207
23487
  };
23208
- return /* @__PURE__ */ jsxs29("div", { onBlur, children: [
23488
+ return /* @__PURE__ */ jsxs30("div", { onBlur, children: [
23209
23489
  children,
23210
- /* @__PURE__ */ jsx94("div", { "aria-live": "polite", children: customValidity && /* @__PURE__ */ jsxs29(
23490
+ /* @__PURE__ */ jsx95("div", { "aria-live": "polite", children: customValidity && /* @__PURE__ */ jsxs30(
23211
23491
  "p",
23212
23492
  {
23213
- className: clsx51(
23493
+ className: clsx52(
23214
23494
  "components-validated-control__indicator",
23215
23495
  customValidity.type === "invalid" ? "is-invalid" : void 0
23216
23496
  ),
23217
23497
  children: [
23218
- /* @__PURE__ */ jsx94(
23498
+ /* @__PURE__ */ jsx95(
23219
23499
  icon_default2,
23220
23500
  {
23221
23501
  className: "components-validated-control__indicator-icon",
@@ -23304,11 +23584,11 @@ function CalendarDateControl({
23304
23584
  } = getSettings2();
23305
23585
  let displayLabel = label;
23306
23586
  if (isValid?.required && !markWhenOptional) {
23307
- displayLabel = `${label} (${__47("Required")})`;
23587
+ displayLabel = `${label} (${__48("Required")})`;
23308
23588
  } else if (!isValid?.required && markWhenOptional) {
23309
- displayLabel = `${label} (${__47("Optional")})`;
23589
+ displayLabel = `${label} (${__48("Optional")})`;
23310
23590
  }
23311
- return /* @__PURE__ */ jsx94(
23591
+ return /* @__PURE__ */ jsx95(
23312
23592
  ValidatedDateControl,
23313
23593
  {
23314
23594
  field,
@@ -23316,7 +23596,7 @@ function CalendarDateControl({
23316
23596
  inputRefs: validityTargetRef,
23317
23597
  isTouched,
23318
23598
  setIsTouched,
23319
- children: /* @__PURE__ */ jsx94(
23599
+ children: /* @__PURE__ */ jsx95(
23320
23600
  base_control_default,
23321
23601
  {
23322
23602
  id,
@@ -23324,8 +23604,8 @@ function CalendarDateControl({
23324
23604
  label: displayLabel,
23325
23605
  help: description,
23326
23606
  hideLabelFromVision,
23327
- children: /* @__PURE__ */ jsxs29(Stack, { direction: "column", gap: "lg", children: [
23328
- /* @__PURE__ */ jsxs29(
23607
+ children: /* @__PURE__ */ jsxs30(Stack, { direction: "column", gap: "lg", children: [
23608
+ /* @__PURE__ */ jsxs30(
23329
23609
  Stack,
23330
23610
  {
23331
23611
  direction: "row",
@@ -23335,7 +23615,7 @@ function CalendarDateControl({
23335
23615
  children: [
23336
23616
  DATE_PRESETS.map((preset) => {
23337
23617
  const isSelected = selectedPresetId === preset.id;
23338
- return /* @__PURE__ */ jsx94(
23618
+ return /* @__PURE__ */ jsx95(
23339
23619
  button_default,
23340
23620
  {
23341
23621
  className: "dataviews-controls__date-preset",
@@ -23350,7 +23630,7 @@ function CalendarDateControl({
23350
23630
  preset.id
23351
23631
  );
23352
23632
  }),
23353
- /* @__PURE__ */ jsx94(
23633
+ /* @__PURE__ */ jsx95(
23354
23634
  button_default,
23355
23635
  {
23356
23636
  className: "dataviews-controls__date-preset",
@@ -23359,19 +23639,19 @@ function CalendarDateControl({
23359
23639
  size: "small",
23360
23640
  disabled: !!selectedPresetId || disabled,
23361
23641
  accessibleWhenDisabled: true,
23362
- children: __47("Custom")
23642
+ children: __48("Custom")
23363
23643
  }
23364
23644
  )
23365
23645
  ]
23366
23646
  }
23367
23647
  ),
23368
- /* @__PURE__ */ jsx94(
23648
+ /* @__PURE__ */ jsx95(
23369
23649
  input_control_default,
23370
23650
  {
23371
23651
  __next40pxDefaultSize: true,
23372
23652
  ref: validityTargetRef,
23373
23653
  type: "date",
23374
- label: __47("Date"),
23654
+ label: __48("Date"),
23375
23655
  hideLabelFromVision: true,
23376
23656
  value,
23377
23657
  onChange: handleManualDateChange,
@@ -23381,7 +23661,7 @@ function CalendarDateControl({
23381
23661
  max: maxConstraint
23382
23662
  }
23383
23663
  ),
23384
- /* @__PURE__ */ jsx94(
23664
+ /* @__PURE__ */ jsx95(
23385
23665
  DateCalendar3,
23386
23666
  {
23387
23667
  style: { width: "100%" },
@@ -23510,11 +23790,11 @@ function CalendarDateRangeControl({
23510
23790
  const { timezone } = getSettings2();
23511
23791
  let displayLabel = label;
23512
23792
  if (field.isValid?.required && !markWhenOptional) {
23513
- displayLabel = `${label} (${__47("Required")})`;
23793
+ displayLabel = `${label} (${__48("Required")})`;
23514
23794
  } else if (!field.isValid?.required && markWhenOptional) {
23515
- displayLabel = `${label} (${__47("Optional")})`;
23795
+ displayLabel = `${label} (${__48("Optional")})`;
23516
23796
  }
23517
- return /* @__PURE__ */ jsx94(
23797
+ return /* @__PURE__ */ jsx95(
23518
23798
  ValidatedDateControl,
23519
23799
  {
23520
23800
  field,
@@ -23522,7 +23802,7 @@ function CalendarDateRangeControl({
23522
23802
  inputRefs: [fromInputRef, toInputRef],
23523
23803
  isTouched,
23524
23804
  setIsTouched,
23525
- children: /* @__PURE__ */ jsx94(
23805
+ children: /* @__PURE__ */ jsx95(
23526
23806
  base_control_default,
23527
23807
  {
23528
23808
  id,
@@ -23530,8 +23810,8 @@ function CalendarDateRangeControl({
23530
23810
  label: displayLabel,
23531
23811
  help: description,
23532
23812
  hideLabelFromVision,
23533
- children: /* @__PURE__ */ jsxs29(Stack, { direction: "column", gap: "lg", children: [
23534
- /* @__PURE__ */ jsxs29(
23813
+ children: /* @__PURE__ */ jsxs30(Stack, { direction: "column", gap: "lg", children: [
23814
+ /* @__PURE__ */ jsxs30(
23535
23815
  Stack,
23536
23816
  {
23537
23817
  direction: "row",
@@ -23541,7 +23821,7 @@ function CalendarDateRangeControl({
23541
23821
  children: [
23542
23822
  DATE_RANGE_PRESETS.map((preset) => {
23543
23823
  const isSelected = selectedPresetId === preset.id;
23544
- return /* @__PURE__ */ jsx94(
23824
+ return /* @__PURE__ */ jsx95(
23545
23825
  button_default,
23546
23826
  {
23547
23827
  className: "dataviews-controls__date-preset",
@@ -23556,7 +23836,7 @@ function CalendarDateRangeControl({
23556
23836
  preset.id
23557
23837
  );
23558
23838
  }),
23559
- /* @__PURE__ */ jsx94(
23839
+ /* @__PURE__ */ jsx95(
23560
23840
  button_default,
23561
23841
  {
23562
23842
  className: "dataviews-controls__date-preset",
@@ -23565,13 +23845,13 @@ function CalendarDateRangeControl({
23565
23845
  size: "small",
23566
23846
  accessibleWhenDisabled: true,
23567
23847
  disabled: !!selectedPresetId || disabled,
23568
- children: __47("Custom")
23848
+ children: __48("Custom")
23569
23849
  }
23570
23850
  )
23571
23851
  ]
23572
23852
  }
23573
23853
  ),
23574
- /* @__PURE__ */ jsxs29(
23854
+ /* @__PURE__ */ jsxs30(
23575
23855
  Stack,
23576
23856
  {
23577
23857
  direction: "row",
@@ -23579,13 +23859,13 @@ function CalendarDateRangeControl({
23579
23859
  justify: "space-between",
23580
23860
  className: "dataviews-controls__date-range-inputs",
23581
23861
  children: [
23582
- /* @__PURE__ */ jsx94(
23862
+ /* @__PURE__ */ jsx95(
23583
23863
  input_control_default,
23584
23864
  {
23585
23865
  __next40pxDefaultSize: true,
23586
23866
  ref: fromInputRef,
23587
23867
  type: "date",
23588
- label: __47("From"),
23868
+ label: __48("From"),
23589
23869
  hideLabelFromVision: true,
23590
23870
  value: value?.[0],
23591
23871
  onChange: (newValue) => handleManualDateChange("from", newValue),
@@ -23595,13 +23875,13 @@ function CalendarDateRangeControl({
23595
23875
  max: maxConstraint
23596
23876
  }
23597
23877
  ),
23598
- /* @__PURE__ */ jsx94(
23878
+ /* @__PURE__ */ jsx95(
23599
23879
  input_control_default,
23600
23880
  {
23601
23881
  __next40pxDefaultSize: true,
23602
23882
  ref: toInputRef,
23603
23883
  type: "date",
23604
- label: __47("To"),
23884
+ label: __48("To"),
23605
23885
  hideLabelFromVision: true,
23606
23886
  value: value?.[1],
23607
23887
  onChange: (newValue) => handleManualDateChange("to", newValue),
@@ -23614,7 +23894,7 @@ function CalendarDateRangeControl({
23614
23894
  ]
23615
23895
  }
23616
23896
  ),
23617
- /* @__PURE__ */ jsx94(
23897
+ /* @__PURE__ */ jsx95(
23618
23898
  DateRangeCalendar2,
23619
23899
  {
23620
23900
  style: { width: "100%" },
@@ -23643,7 +23923,7 @@ function DateControl({
23643
23923
  validity
23644
23924
  }) {
23645
23925
  if (operator === OPERATOR_IN_THE_PAST || operator === OPERATOR_OVER) {
23646
- return /* @__PURE__ */ jsx94(
23926
+ return /* @__PURE__ */ jsx95(
23647
23927
  RelativeDateControl,
23648
23928
  {
23649
23929
  className: "dataviews-controls__date",
@@ -23656,7 +23936,7 @@ function DateControl({
23656
23936
  );
23657
23937
  }
23658
23938
  if (operator === OPERATOR_BETWEEN) {
23659
- return /* @__PURE__ */ jsx94(
23939
+ return /* @__PURE__ */ jsx95(
23660
23940
  CalendarDateRangeControl,
23661
23941
  {
23662
23942
  data,
@@ -23668,7 +23948,7 @@ function DateControl({
23668
23948
  }
23669
23949
  );
23670
23950
  }
23671
- return /* @__PURE__ */ jsx94(
23951
+ return /* @__PURE__ */ jsx95(
23672
23952
  CalendarDateControl,
23673
23953
  {
23674
23954
  data,
@@ -23682,7 +23962,7 @@ function DateControl({
23682
23962
  }
23683
23963
 
23684
23964
  // src/components/dataform-controls/select.tsx
23685
- import { jsx as jsx95 } from "react/jsx-runtime";
23965
+ import { jsx as jsx96 } from "react/jsx-runtime";
23686
23966
  var { ValidatedSelectControl: ValidatedSelectControl2 } = unlock5(privateApis2);
23687
23967
  function Select2({
23688
23968
  data,
@@ -23705,9 +23985,9 @@ function Select2({
23705
23985
  getElements: field.getElements
23706
23986
  });
23707
23987
  if (isLoading) {
23708
- return /* @__PURE__ */ jsx95(spinner_default, {});
23988
+ return /* @__PURE__ */ jsx96(spinner_default, {});
23709
23989
  }
23710
- return /* @__PURE__ */ jsx95(
23990
+ return /* @__PURE__ */ jsx96(
23711
23991
  ValidatedSelectControl2,
23712
23992
  {
23713
23993
  required: !!field.isValid?.required,
@@ -23727,7 +24007,7 @@ function Select2({
23727
24007
  }
23728
24008
 
23729
24009
  // src/components/dataform-controls/adaptive-select.tsx
23730
- import { jsx as jsx96 } from "react/jsx-runtime";
24010
+ import { jsx as jsx97 } from "react/jsx-runtime";
23731
24011
  var ELEMENTS_THRESHOLD = 10;
23732
24012
  function AdaptiveSelect(props) {
23733
24013
  const { field } = props;
@@ -23736,13 +24016,13 @@ function AdaptiveSelect(props) {
23736
24016
  getElements: field.getElements
23737
24017
  });
23738
24018
  if (elements.length >= ELEMENTS_THRESHOLD) {
23739
- return /* @__PURE__ */ jsx96(Combobox2, { ...props });
24019
+ return /* @__PURE__ */ jsx97(Combobox2, { ...props });
23740
24020
  }
23741
- return /* @__PURE__ */ jsx96(Select2, { ...props });
24021
+ return /* @__PURE__ */ jsx97(Select2, { ...props });
23742
24022
  }
23743
24023
 
23744
24024
  // src/components/dataform-controls/utils/validated-input.tsx
23745
- import { jsx as jsx97 } from "react/jsx-runtime";
24025
+ import { jsx as jsx98 } from "react/jsx-runtime";
23746
24026
  var { ValidatedInputControl: ValidatedInputControl3 } = unlock5(privateApis2);
23747
24027
  function ValidatedText({
23748
24028
  data,
@@ -23767,7 +24047,7 @@ function ValidatedText({
23767
24047
  ),
23768
24048
  [data, setValue, onChange]
23769
24049
  );
23770
- return /* @__PURE__ */ jsx97(
24050
+ return /* @__PURE__ */ jsx98(
23771
24051
  ValidatedInputControl3,
23772
24052
  {
23773
24053
  required: !!isValid.required,
@@ -23792,7 +24072,7 @@ function ValidatedText({
23792
24072
  }
23793
24073
 
23794
24074
  // src/components/dataform-controls/email.tsx
23795
- import { jsx as jsx98 } from "react/jsx-runtime";
24075
+ import { jsx as jsx99 } from "react/jsx-runtime";
23796
24076
  function Email({
23797
24077
  data,
23798
24078
  field,
@@ -23801,7 +24081,7 @@ function Email({
23801
24081
  markWhenOptional,
23802
24082
  validity
23803
24083
  }) {
23804
- return /* @__PURE__ */ jsx98(
24084
+ return /* @__PURE__ */ jsx99(
23805
24085
  ValidatedText,
23806
24086
  {
23807
24087
  ...{
@@ -23812,14 +24092,14 @@ function Email({
23812
24092
  markWhenOptional,
23813
24093
  validity,
23814
24094
  type: "email",
23815
- prefix: /* @__PURE__ */ jsx98(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx98(icon_default2, { icon: envelope_default }) })
24095
+ prefix: /* @__PURE__ */ jsx99(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx99(icon_default2, { icon: envelope_default }) })
23816
24096
  }
23817
24097
  }
23818
24098
  );
23819
24099
  }
23820
24100
 
23821
24101
  // src/components/dataform-controls/telephone.tsx
23822
- import { jsx as jsx99 } from "react/jsx-runtime";
24102
+ import { jsx as jsx100 } from "react/jsx-runtime";
23823
24103
  function Telephone({
23824
24104
  data,
23825
24105
  field,
@@ -23828,7 +24108,7 @@ function Telephone({
23828
24108
  markWhenOptional,
23829
24109
  validity
23830
24110
  }) {
23831
- return /* @__PURE__ */ jsx99(
24111
+ return /* @__PURE__ */ jsx100(
23832
24112
  ValidatedText,
23833
24113
  {
23834
24114
  ...{
@@ -23839,14 +24119,14 @@ function Telephone({
23839
24119
  markWhenOptional,
23840
24120
  validity,
23841
24121
  type: "tel",
23842
- prefix: /* @__PURE__ */ jsx99(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx99(icon_default2, { icon: mobile_default }) })
24122
+ prefix: /* @__PURE__ */ jsx100(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx100(icon_default2, { icon: mobile_default }) })
23843
24123
  }
23844
24124
  }
23845
24125
  );
23846
24126
  }
23847
24127
 
23848
24128
  // src/components/dataform-controls/url.tsx
23849
- import { jsx as jsx100 } from "react/jsx-runtime";
24129
+ import { jsx as jsx101 } from "react/jsx-runtime";
23850
24130
  function Url({
23851
24131
  data,
23852
24132
  field,
@@ -23855,7 +24135,7 @@ function Url({
23855
24135
  markWhenOptional,
23856
24136
  validity
23857
24137
  }) {
23858
- return /* @__PURE__ */ jsx100(
24138
+ return /* @__PURE__ */ jsx101(
23859
24139
  ValidatedText,
23860
24140
  {
23861
24141
  ...{
@@ -23866,15 +24146,15 @@ function Url({
23866
24146
  markWhenOptional,
23867
24147
  validity,
23868
24148
  type: "url",
23869
- prefix: /* @__PURE__ */ jsx100(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx100(icon_default2, { icon: link_default }) })
24149
+ prefix: /* @__PURE__ */ jsx101(input_prefix_wrapper_default, { variant: "icon", children: /* @__PURE__ */ jsx101(icon_default2, { icon: link_default }) })
23870
24150
  }
23871
24151
  }
23872
24152
  );
23873
24153
  }
23874
24154
 
23875
24155
  // src/components/dataform-controls/utils/validated-number.tsx
23876
- import { __ as __48 } from "@wordpress/i18n";
23877
- import { jsx as jsx101, jsxs as jsxs30 } from "react/jsx-runtime";
24156
+ import { __ as __49 } from "@wordpress/i18n";
24157
+ import { jsx as jsx102, jsxs as jsxs31 } from "react/jsx-runtime";
23878
24158
  var { ValidatedNumberControl: ValidatedNumberControl2 } = unlock5(privateApis2);
23879
24159
  function toNumberOrEmpty(value) {
23880
24160
  if (value === "" || value === void 0) {
@@ -23898,15 +24178,15 @@ function BetweenControls({
23898
24178
  (newValue) => onChange([min, toNumberOrEmpty(newValue)]),
23899
24179
  [onChange, min]
23900
24180
  );
23901
- return /* @__PURE__ */ jsx101(
24181
+ return /* @__PURE__ */ jsx102(
23902
24182
  base_control_default,
23903
24183
  {
23904
- help: __48("The max. value must be greater than the min. value."),
23905
- children: /* @__PURE__ */ jsxs30(component_default3, { direction: "row", gap: 4, children: [
23906
- /* @__PURE__ */ jsx101(
24184
+ help: __49("The max. value must be greater than the min. value."),
24185
+ children: /* @__PURE__ */ jsxs31(component_default3, { direction: "row", gap: 4, children: [
24186
+ /* @__PURE__ */ jsx102(
23907
24187
  number_control_default,
23908
24188
  {
23909
- label: __48("Min."),
24189
+ label: __49("Min."),
23910
24190
  value: min,
23911
24191
  max: max ? Number(max) - step : void 0,
23912
24192
  onChange: onChangeMin,
@@ -23915,10 +24195,10 @@ function BetweenControls({
23915
24195
  step
23916
24196
  }
23917
24197
  ),
23918
- /* @__PURE__ */ jsx101(
24198
+ /* @__PURE__ */ jsx102(
23919
24199
  number_control_default,
23920
24200
  {
23921
- label: __48("Max."),
24201
+ label: __49("Max."),
23922
24202
  value: max,
23923
24203
  min: min ? Number(min) + step : void 0,
23924
24204
  onChange: onChangeMax,
@@ -23977,7 +24257,7 @@ function ValidatedNumber({
23977
24257
  )) {
23978
24258
  valueBetween = value;
23979
24259
  }
23980
- return /* @__PURE__ */ jsx101(
24260
+ return /* @__PURE__ */ jsx102(
23981
24261
  BetweenControls,
23982
24262
  {
23983
24263
  value: valueBetween,
@@ -23987,7 +24267,7 @@ function ValidatedNumber({
23987
24267
  }
23988
24268
  );
23989
24269
  }
23990
- return /* @__PURE__ */ jsx101(
24270
+ return /* @__PURE__ */ jsx102(
23991
24271
  ValidatedNumberControl2,
23992
24272
  {
23993
24273
  required: !!isValid.required,
@@ -24008,19 +24288,19 @@ function ValidatedNumber({
24008
24288
  }
24009
24289
 
24010
24290
  // src/components/dataform-controls/integer.tsx
24011
- import { jsx as jsx102 } from "react/jsx-runtime";
24291
+ import { jsx as jsx103 } from "react/jsx-runtime";
24012
24292
  function Integer(props) {
24013
- return /* @__PURE__ */ jsx102(ValidatedNumber, { ...props });
24293
+ return /* @__PURE__ */ jsx103(ValidatedNumber, { ...props });
24014
24294
  }
24015
24295
 
24016
24296
  // src/components/dataform-controls/number.tsx
24017
- import { jsx as jsx103 } from "react/jsx-runtime";
24297
+ import { jsx as jsx104 } from "react/jsx-runtime";
24018
24298
  function Number2(props) {
24019
- return /* @__PURE__ */ jsx103(ValidatedNumber, { ...props });
24299
+ return /* @__PURE__ */ jsx104(ValidatedNumber, { ...props });
24020
24300
  }
24021
24301
 
24022
24302
  // src/components/dataform-controls/radio.tsx
24023
- import { jsx as jsx104 } from "react/jsx-runtime";
24303
+ import { jsx as jsx105 } from "react/jsx-runtime";
24024
24304
  var { ValidatedRadioControl: ValidatedRadioControl2 } = unlock5(privateApis2);
24025
24305
  function Radio2({
24026
24306
  data,
@@ -24042,9 +24322,9 @@ function Radio2({
24042
24322
  [data, onChange, setValue]
24043
24323
  );
24044
24324
  if (isLoading) {
24045
- return /* @__PURE__ */ jsx104(spinner_default, {});
24325
+ return /* @__PURE__ */ jsx105(spinner_default, {});
24046
24326
  }
24047
- return /* @__PURE__ */ jsx104(
24327
+ return /* @__PURE__ */ jsx105(
24048
24328
  ValidatedRadioControl2,
24049
24329
  {
24050
24330
  required: !!field.isValid?.required,
@@ -24062,7 +24342,7 @@ function Radio2({
24062
24342
  }
24063
24343
 
24064
24344
  // src/components/dataform-controls/text.tsx
24065
- import { jsx as jsx105 } from "react/jsx-runtime";
24345
+ import { jsx as jsx106 } from "react/jsx-runtime";
24066
24346
  function Text5({
24067
24347
  data,
24068
24348
  field,
@@ -24073,7 +24353,7 @@ function Text5({
24073
24353
  validity
24074
24354
  }) {
24075
24355
  const { prefix, suffix } = config || {};
24076
- return /* @__PURE__ */ jsx105(
24356
+ return /* @__PURE__ */ jsx106(
24077
24357
  ValidatedText,
24078
24358
  {
24079
24359
  ...{
@@ -24091,7 +24371,7 @@ function Text5({
24091
24371
  }
24092
24372
 
24093
24373
  // src/components/dataform-controls/toggle.tsx
24094
- import { jsx as jsx106 } from "react/jsx-runtime";
24374
+ import { jsx as jsx107 } from "react/jsx-runtime";
24095
24375
  var { ValidatedToggleControl: ValidatedToggleControl2 } = unlock5(privateApis2);
24096
24376
  function Toggle({
24097
24377
  field,
@@ -24108,7 +24388,7 @@ function Toggle({
24108
24388
  setValue({ item: data, value: !getValue({ item: data }) })
24109
24389
  );
24110
24390
  }, [onChange, setValue, data, getValue]);
24111
- return /* @__PURE__ */ jsx106(
24391
+ return /* @__PURE__ */ jsx107(
24112
24392
  ValidatedToggleControl2,
24113
24393
  {
24114
24394
  required: !!isValid.required,
@@ -24125,7 +24405,7 @@ function Toggle({
24125
24405
  }
24126
24406
 
24127
24407
  // src/components/dataform-controls/textarea.tsx
24128
- import { jsx as jsx107 } from "react/jsx-runtime";
24408
+ import { jsx as jsx108 } from "react/jsx-runtime";
24129
24409
  var { ValidatedTextareaControl: ValidatedTextareaControl2 } = unlock5(privateApis2);
24130
24410
  function Textarea({
24131
24411
  data,
@@ -24144,7 +24424,7 @@ function Textarea({
24144
24424
  (newValue) => onChange(setValue({ item: data, value: newValue })),
24145
24425
  [data, onChange, setValue]
24146
24426
  );
24147
- return /* @__PURE__ */ jsx107(
24427
+ return /* @__PURE__ */ jsx108(
24148
24428
  ValidatedTextareaControl2,
24149
24429
  {
24150
24430
  required: !!isValid.required,
@@ -24166,7 +24446,7 @@ function Textarea({
24166
24446
  }
24167
24447
 
24168
24448
  // src/components/dataform-controls/toggle-group.tsx
24169
- import { jsx as jsx108 } from "react/jsx-runtime";
24449
+ import { jsx as jsx109 } from "react/jsx-runtime";
24170
24450
  var { ValidatedToggleGroupControl: ValidatedToggleGroupControl2 } = unlock5(privateApis2);
24171
24451
  function ToggleGroup({
24172
24452
  data,
@@ -24188,13 +24468,13 @@ function ToggleGroup({
24188
24468
  getElements: field.getElements
24189
24469
  });
24190
24470
  if (isLoading) {
24191
- return /* @__PURE__ */ jsx108(spinner_default, {});
24471
+ return /* @__PURE__ */ jsx109(spinner_default, {});
24192
24472
  }
24193
24473
  if (elements.length === 0) {
24194
24474
  return null;
24195
24475
  }
24196
24476
  const selectedOption = elements.find((el) => el.value === value);
24197
- return /* @__PURE__ */ jsx108(
24477
+ return /* @__PURE__ */ jsx109(
24198
24478
  ValidatedToggleGroupControl2,
24199
24479
  {
24200
24480
  required: !!field.isValid?.required,
@@ -24207,7 +24487,7 @@ function ToggleGroup({
24207
24487
  onChange: onChangeControl,
24208
24488
  value,
24209
24489
  hideLabelFromVision,
24210
- children: elements.map((el) => /* @__PURE__ */ jsx108(
24490
+ children: elements.map((el) => /* @__PURE__ */ jsx109(
24211
24491
  component_default12,
24212
24492
  {
24213
24493
  label: el.label,
@@ -24221,7 +24501,7 @@ function ToggleGroup({
24221
24501
  }
24222
24502
 
24223
24503
  // src/components/dataform-controls/array.tsx
24224
- import { jsx as jsx109 } from "react/jsx-runtime";
24504
+ import { jsx as jsx110 } from "react/jsx-runtime";
24225
24505
  var { ValidatedFormTokenField: ValidatedFormTokenField2 } = unlock5(privateApis2);
24226
24506
  function ArrayControl({
24227
24507
  data,
@@ -24260,9 +24540,9 @@ function ArrayControl({
24260
24540
  [onChange, setValue, data]
24261
24541
  );
24262
24542
  if (isLoading) {
24263
- return /* @__PURE__ */ jsx109(spinner_default, {});
24543
+ return /* @__PURE__ */ jsx110(spinner_default, {});
24264
24544
  }
24265
- return /* @__PURE__ */ jsx109(
24545
+ return /* @__PURE__ */ jsx110(
24266
24546
  ValidatedFormTokenField2,
24267
24547
  {
24268
24548
  required: !!isValid?.required,
@@ -24301,9 +24581,9 @@ function ArrayControl({
24301
24581
  const element = elements.find(
24302
24582
  (el) => el.value === item2
24303
24583
  );
24304
- return /* @__PURE__ */ jsx109("span", { children: element?.label || item2 });
24584
+ return /* @__PURE__ */ jsx110("span", { children: element?.label || item2 });
24305
24585
  }
24306
- return /* @__PURE__ */ jsx109("span", { children: item2 });
24586
+ return /* @__PURE__ */ jsx110("span", { children: item2 });
24307
24587
  }
24308
24588
  }
24309
24589
  );
@@ -24311,8 +24591,8 @@ function ArrayControl({
24311
24591
 
24312
24592
  // src/components/dataform-controls/color.tsx
24313
24593
  import { colord as colord7 } from "colord";
24314
- import { __ as __49 } from "@wordpress/i18n";
24315
- import { jsx as jsx110 } from "react/jsx-runtime";
24594
+ import { __ as __50 } from "@wordpress/i18n";
24595
+ import { jsx as jsx111 } from "react/jsx-runtime";
24316
24596
  var { ValidatedInputControl: ValidatedInputControl4 } = unlock5(privateApis2);
24317
24597
  var ColorPickerDropdown = ({
24318
24598
  color,
@@ -24320,23 +24600,23 @@ var ColorPickerDropdown = ({
24320
24600
  disabled
24321
24601
  }) => {
24322
24602
  const validColor = color && colord7(color).isValid() ? color : "#ffffff";
24323
- return /* @__PURE__ */ jsx110(
24603
+ return /* @__PURE__ */ jsx111(
24324
24604
  dropdown_default,
24325
24605
  {
24326
24606
  className: "dataviews-controls__color-picker-dropdown",
24327
24607
  popoverProps: { resize: false },
24328
- renderToggle: ({ onToggle }) => /* @__PURE__ */ jsx110(
24608
+ renderToggle: ({ onToggle }) => /* @__PURE__ */ jsx111(
24329
24609
  button_default,
24330
24610
  {
24331
24611
  onClick: onToggle,
24332
- "aria-label": __49("Open color picker"),
24612
+ "aria-label": __50("Open color picker"),
24333
24613
  size: "small",
24334
24614
  disabled,
24335
24615
  accessibleWhenDisabled: true,
24336
- icon: () => /* @__PURE__ */ jsx110(color_indicator_default, { colorValue: validColor })
24616
+ icon: () => /* @__PURE__ */ jsx111(color_indicator_default, { colorValue: validColor })
24337
24617
  }
24338
24618
  ),
24339
- renderContent: () => /* @__PURE__ */ jsx110(dropdown_content_wrapper_default, { paddingSize: "none", children: /* @__PURE__ */ jsx110(
24619
+ renderContent: () => /* @__PURE__ */ jsx111(dropdown_content_wrapper_default, { paddingSize: "none", children: /* @__PURE__ */ jsx111(
24340
24620
  LegacyAdapter,
24341
24621
  {
24342
24622
  color: validColor,
@@ -24370,7 +24650,7 @@ function Color({
24370
24650
  },
24371
24651
  [data, onChange, setValue]
24372
24652
  );
24373
- return /* @__PURE__ */ jsx110(
24653
+ return /* @__PURE__ */ jsx111(
24374
24654
  ValidatedInputControl4,
24375
24655
  {
24376
24656
  required: !!field.isValid?.required,
@@ -24384,7 +24664,7 @@ function Color({
24384
24664
  hideLabelFromVision,
24385
24665
  type: "text",
24386
24666
  disabled,
24387
- prefix: /* @__PURE__ */ jsx110(input_prefix_wrapper_default, { variant: "control", children: /* @__PURE__ */ jsx110(
24667
+ prefix: /* @__PURE__ */ jsx111(input_prefix_wrapper_default, { variant: "control", children: /* @__PURE__ */ jsx111(
24388
24668
  ColorPickerDropdown,
24389
24669
  {
24390
24670
  color: value,
@@ -24397,8 +24677,8 @@ function Color({
24397
24677
  }
24398
24678
 
24399
24679
  // src/components/dataform-controls/password.tsx
24400
- import { __ as __50 } from "@wordpress/i18n";
24401
- import { jsx as jsx111 } from "react/jsx-runtime";
24680
+ import { __ as __51 } from "@wordpress/i18n";
24681
+ import { jsx as jsx112 } from "react/jsx-runtime";
24402
24682
  function Password({
24403
24683
  data,
24404
24684
  field,
@@ -24412,7 +24692,7 @@ function Password({
24412
24692
  const toggleVisibility = useCallback(() => {
24413
24693
  setIsVisible((prev) => !prev);
24414
24694
  }, []);
24415
- return /* @__PURE__ */ jsx111(
24695
+ return /* @__PURE__ */ jsx112(
24416
24696
  ValidatedText,
24417
24697
  {
24418
24698
  ...{
@@ -24423,13 +24703,13 @@ function Password({
24423
24703
  markWhenOptional,
24424
24704
  validity,
24425
24705
  type: isVisible2 ? "text" : "password",
24426
- suffix: /* @__PURE__ */ jsx111(input_suffix_wrapper_default, { variant: "control", children: /* @__PURE__ */ jsx111(
24706
+ suffix: /* @__PURE__ */ jsx112(input_suffix_wrapper_default, { variant: "control", children: /* @__PURE__ */ jsx112(
24427
24707
  button_default,
24428
24708
  {
24429
24709
  icon: isVisible2 ? unseen_default : seen_default,
24430
24710
  onClick: toggleVisibility,
24431
24711
  size: "small",
24432
- label: isVisible2 ? __50("Hide password") : __50("Show password"),
24712
+ label: isVisible2 ? __51("Hide password") : __51("Show password"),
24433
24713
  disabled,
24434
24714
  accessibleWhenDisabled: true
24435
24715
  }
@@ -24445,7 +24725,7 @@ function hasElements(field) {
24445
24725
  }
24446
24726
 
24447
24727
  // src/components/dataform-controls/index.tsx
24448
- import { jsx as jsx112 } from "react/jsx-runtime";
24728
+ import { jsx as jsx113 } from "react/jsx-runtime";
24449
24729
  var FORM_CONTROLS = {
24450
24730
  adaptiveSelect: AdaptiveSelect,
24451
24731
  array: ArrayControl,
@@ -24477,7 +24757,7 @@ function createConfiguredControl(config) {
24477
24757
  return null;
24478
24758
  }
24479
24759
  return function ConfiguredControl(props) {
24480
- return /* @__PURE__ */ jsx112(BaseControlType, { ...props, config: controlConfig });
24760
+ return /* @__PURE__ */ jsx113(BaseControlType, { ...props, config: controlConfig });
24481
24761
  };
24482
24762
  }
24483
24763
  function getControl(field, fallback) {
@@ -24553,7 +24833,7 @@ var setValueFromId = (id) => ({ value }) => {
24553
24833
  var set_value_from_id_default = setValueFromId;
24554
24834
 
24555
24835
  // src/field-types/email.tsx
24556
- import { __ as __51 } from "@wordpress/i18n";
24836
+ import { __ as __52 } from "@wordpress/i18n";
24557
24837
 
24558
24838
  // src/field-types/utils/render-from-elements.tsx
24559
24839
  function RenderFromElements({
@@ -24575,13 +24855,13 @@ function RenderFromElements({
24575
24855
  }
24576
24856
 
24577
24857
  // src/field-types/utils/render-default.tsx
24578
- import { jsx as jsx113 } from "react/jsx-runtime";
24858
+ import { jsx as jsx114 } from "react/jsx-runtime";
24579
24859
  function render2({
24580
24860
  item: item2,
24581
24861
  field
24582
24862
  }) {
24583
24863
  if (field.hasElements) {
24584
- return /* @__PURE__ */ jsx113(RenderFromElements, { item: item2, field });
24864
+ return /* @__PURE__ */ jsx114(RenderFromElements, { item: item2, field });
24585
24865
  }
24586
24866
  return field.getValueFormatted({ item: item2, field });
24587
24867
  }
@@ -24663,7 +24943,7 @@ var emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{
24663
24943
  function isValidCustom(item2, field) {
24664
24944
  const value = field.getValue({ item: item2 });
24665
24945
  if (![void 0, "", null].includes(value) && !emailRegex.test(value)) {
24666
- return __51("Value must be a valid email address.");
24946
+ return __52("Value must be a valid email address.");
24667
24947
  }
24668
24948
  return null;
24669
24949
  }
@@ -24700,7 +24980,7 @@ var email_default = {
24700
24980
  };
24701
24981
 
24702
24982
  // src/field-types/integer.tsx
24703
- import { __ as __52 } from "@wordpress/i18n";
24983
+ import { __ as __53 } from "@wordpress/i18n";
24704
24984
 
24705
24985
  // src/field-types/utils/sort-number.ts
24706
24986
  var sort_number_default = (a, b, direction) => {
@@ -24766,7 +25046,7 @@ function getValueFormatted2({
24766
25046
  function isValidCustom2(item2, field) {
24767
25047
  const value = field.getValue({ item: item2 });
24768
25048
  if (![void 0, "", null].includes(value) && !Number.isInteger(value)) {
24769
- return __52("Value must be an integer.");
25049
+ return __53("Value must be an integer.");
24770
25050
  }
24771
25051
  return null;
24772
25052
  }
@@ -24813,7 +25093,7 @@ var integer_default = {
24813
25093
  };
24814
25094
 
24815
25095
  // src/field-types/number.tsx
24816
- import { __ as __53 } from "@wordpress/i18n";
25096
+ import { __ as __54 } from "@wordpress/i18n";
24817
25097
  var format3 = {
24818
25098
  separatorThousand: ",",
24819
25099
  separatorDecimal: ".",
@@ -24849,7 +25129,7 @@ function isEmpty(value) {
24849
25129
  function isValidCustom3(item2, field) {
24850
25130
  const value = field.getValue({ item: item2 });
24851
25131
  if (!isEmpty(value) && !Number.isFinite(value)) {
24852
- return __53("Value must be a number.");
25132
+ return __54("Value must be a number.");
24853
25133
  }
24854
25134
  return null;
24855
25135
  }
@@ -25095,7 +25375,7 @@ var date_default = {
25095
25375
  };
25096
25376
 
25097
25377
  // src/field-types/boolean.tsx
25098
- import { __ as __54 } from "@wordpress/i18n";
25378
+ import { __ as __55 } from "@wordpress/i18n";
25099
25379
 
25100
25380
  // src/field-types/utils/is-valid-required-for-bool.ts
25101
25381
  function isValidRequiredForBool(item2, field) {
@@ -25110,17 +25390,17 @@ function getValueFormatted6({
25110
25390
  }) {
25111
25391
  const value = field.getValue({ item: item2 });
25112
25392
  if (value === true) {
25113
- return __54("True");
25393
+ return __55("True");
25114
25394
  }
25115
25395
  if (value === false) {
25116
- return __54("False");
25396
+ return __55("False");
25117
25397
  }
25118
25398
  return "";
25119
25399
  }
25120
25400
  function isValidCustom4(item2, field) {
25121
25401
  const value = field.getValue({ item: item2 });
25122
25402
  if (![void 0, "", null].includes(value) && ![true, false].includes(value)) {
25123
- return __54("Value must be true, false, or undefined");
25403
+ return __55("Value must be true, false, or undefined");
25124
25404
  }
25125
25405
  return null;
25126
25406
  }
@@ -25172,7 +25452,7 @@ var media_default = {
25172
25452
  };
25173
25453
 
25174
25454
  // src/field-types/array.tsx
25175
- import { __ as __55 } from "@wordpress/i18n";
25455
+ import { __ as __56 } from "@wordpress/i18n";
25176
25456
 
25177
25457
  // src/field-types/utils/is-valid-required-for-array.ts
25178
25458
  function isValidRequiredForArray(item2, field) {
@@ -25197,10 +25477,10 @@ function render3({ item: item2, field }) {
25197
25477
  function isValidCustom5(item2, field) {
25198
25478
  const value = field.getValue({ item: item2 });
25199
25479
  if (![void 0, "", null].includes(value) && !Array.isArray(value)) {
25200
- return __55("Value must be an array.");
25480
+ return __56("Value must be an array.");
25201
25481
  }
25202
25482
  if (!value.every((v) => typeof v === "string")) {
25203
- return __55("Every value must be a string.");
25483
+ return __56("Every value must be a string.");
25204
25484
  }
25205
25485
  return null;
25206
25486
  }
@@ -25299,18 +25579,18 @@ var telephone_default = {
25299
25579
 
25300
25580
  // src/field-types/color.tsx
25301
25581
  import { colord as colord8 } from "colord";
25302
- import { __ as __56 } from "@wordpress/i18n";
25303
- import { jsx as jsx114, jsxs as jsxs31 } from "react/jsx-runtime";
25582
+ import { __ as __57 } from "@wordpress/i18n";
25583
+ import { jsx as jsx115, jsxs as jsxs32 } from "react/jsx-runtime";
25304
25584
  function render4({ item: item2, field }) {
25305
25585
  if (field.hasElements) {
25306
- return /* @__PURE__ */ jsx114(RenderFromElements, { item: item2, field });
25586
+ return /* @__PURE__ */ jsx115(RenderFromElements, { item: item2, field });
25307
25587
  }
25308
25588
  const value = get_value_formatted_default_default({ item: item2, field });
25309
25589
  if (!value || !colord8(value).isValid()) {
25310
25590
  return value;
25311
25591
  }
25312
- return /* @__PURE__ */ jsxs31("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
25313
- /* @__PURE__ */ jsx114(
25592
+ return /* @__PURE__ */ jsxs32("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
25593
+ /* @__PURE__ */ jsx115(
25314
25594
  "div",
25315
25595
  {
25316
25596
  style: {
@@ -25323,13 +25603,13 @@ function render4({ item: item2, field }) {
25323
25603
  }
25324
25604
  }
25325
25605
  ),
25326
- /* @__PURE__ */ jsx114("span", { children: value })
25606
+ /* @__PURE__ */ jsx115("span", { children: value })
25327
25607
  ] });
25328
25608
  }
25329
25609
  function isValidCustom6(item2, field) {
25330
25610
  const value = field.getValue({ item: item2 });
25331
25611
  if (![void 0, "", null].includes(value) && !colord8(value).isValid()) {
25332
- return __56("Value must be a valid color.");
25612
+ return __57("Value must be a valid color.");
25333
25613
  }
25334
25614
  return null;
25335
25615
  }
@@ -25927,7 +26207,7 @@ function useInfiniteScroll({
25927
26207
  }
25928
26208
 
25929
26209
  // src/dataviews/index.tsx
25930
- import { Fragment as Fragment15, jsx as jsx115, jsxs as jsxs32 } from "react/jsx-runtime";
26210
+ import { Fragment as Fragment16, jsx as jsx116, jsxs as jsxs33 } from "react/jsx-runtime";
25931
26211
  var defaultGetItemId = (item2) => item2.id;
25932
26212
  var defaultIsItemClickable = () => true;
25933
26213
  var EMPTY_ARRAY6 = [];
@@ -25942,19 +26222,19 @@ function DefaultUI({
25942
26222
  }) {
25943
26223
  const { view } = useContext(dataviews_context_default);
25944
26224
  const isInfiniteScroll = view.infiniteScrollEnabled;
25945
- return /* @__PURE__ */ jsxs32(Fragment15, { children: [
25946
- /* @__PURE__ */ jsxs32(
26225
+ return /* @__PURE__ */ jsxs33(Fragment16, { children: [
26226
+ /* @__PURE__ */ jsxs33(
25947
26227
  Stack,
25948
26228
  {
25949
26229
  direction: "row",
25950
26230
  align: "top",
25951
26231
  justify: "space-between",
25952
- className: clsx52("dataviews__view-actions", {
26232
+ className: clsx53("dataviews__view-actions", {
25953
26233
  "dataviews__view-actions--infinite-scroll": isInfiniteScroll
25954
26234
  }),
25955
26235
  gap: "xs",
25956
26236
  children: [
25957
- /* @__PURE__ */ jsxs32(
26237
+ /* @__PURE__ */ jsxs33(
25958
26238
  Stack,
25959
26239
  {
25960
26240
  direction: "row",
@@ -25962,21 +26242,21 @@ function DefaultUI({
25962
26242
  gap: "sm",
25963
26243
  className: "dataviews__search",
25964
26244
  children: [
25965
- search && /* @__PURE__ */ jsx115(dataviews_search_default, { label: searchLabel }),
25966
- /* @__PURE__ */ jsx115(toggle_default, {})
26245
+ search && /* @__PURE__ */ jsx116(dataviews_search_default, { label: searchLabel }),
26246
+ /* @__PURE__ */ jsx116(toggle_default, {})
25967
26247
  ]
25968
26248
  }
25969
26249
  ),
25970
- /* @__PURE__ */ jsxs32(Stack, { direction: "row", gap: "xs", style: { flexShrink: 0 }, children: [
25971
- /* @__PURE__ */ jsx115(dataviews_view_config_default, {}),
26250
+ /* @__PURE__ */ jsxs33(Stack, { direction: "row", gap: "xs", style: { flexShrink: 0 }, children: [
26251
+ /* @__PURE__ */ jsx116(dataviews_view_config_default, {}),
25972
26252
  header
25973
26253
  ] })
25974
26254
  ]
25975
26255
  }
25976
26256
  ),
25977
- /* @__PURE__ */ jsx115(filters_toggled_default, { className: "dataviews-filters__container" }),
25978
- /* @__PURE__ */ jsx115(DataViewsLayout, {}),
25979
- /* @__PURE__ */ jsx115(DataViewsFooter, {})
26257
+ /* @__PURE__ */ jsx116(filters_toggled_default, { className: "dataviews-filters__container" }),
26258
+ /* @__PURE__ */ jsx116(DataViewsLayout, {}),
26259
+ /* @__PURE__ */ jsx116(DataViewsFooter, {})
25980
26260
  ] });
25981
26261
  }
25982
26262
  function DataViews({
@@ -26087,7 +26367,7 @@ function DataViews({
26087
26367
  if (!defaultLayouts[view.type]) {
26088
26368
  return null;
26089
26369
  }
26090
- return /* @__PURE__ */ jsx115(
26370
+ return /* @__PURE__ */ jsx116(
26091
26371
  dataviews_context_default.Provider,
26092
26372
  {
26093
26373
  value: {
@@ -26120,7 +26400,7 @@ function DataViews({
26120
26400
  onReset,
26121
26401
  intersectionObserver
26122
26402
  },
26123
- children: /* @__PURE__ */ jsx115("div", { className: "dataviews-wrapper", children: children ?? /* @__PURE__ */ jsx115(
26403
+ children: /* @__PURE__ */ jsx116("div", { className: "dataviews-wrapper", children: children ?? /* @__PURE__ */ jsx116(
26124
26404
  DefaultUI,
26125
26405
  {
26126
26406
  header,
@@ -26145,8 +26425,8 @@ DataViewsSubComponents.Footer = DataViewsFooter;
26145
26425
  var dataviews_default = DataViewsSubComponents;
26146
26426
 
26147
26427
  // src/dataviews-picker/index.tsx
26148
- import clsx53 from "clsx";
26149
- import { Fragment as Fragment16, jsx as jsx116, jsxs as jsxs33 } from "react/jsx-runtime";
26428
+ import clsx54 from "clsx";
26429
+ import { Fragment as Fragment17, jsx as jsx117, jsxs as jsxs34 } from "react/jsx-runtime";
26150
26430
  var isItemClickable = () => false;
26151
26431
  var dataViewsPickerLayouts = VIEW_LAYOUTS.filter(
26152
26432
  (viewLayout) => viewLayout.isPicker
@@ -26163,19 +26443,19 @@ function DefaultUI2({
26163
26443
  }) {
26164
26444
  const { view } = useContext(dataviews_context_default);
26165
26445
  const isInfiniteScroll = view.infiniteScrollEnabled;
26166
- return /* @__PURE__ */ jsxs33(Fragment16, { children: [
26167
- /* @__PURE__ */ jsxs33(
26446
+ return /* @__PURE__ */ jsxs34(Fragment17, { children: [
26447
+ /* @__PURE__ */ jsxs34(
26168
26448
  Stack,
26169
26449
  {
26170
26450
  direction: "row",
26171
26451
  align: "top",
26172
26452
  justify: "space-between",
26173
- className: clsx53("dataviews__view-actions", {
26453
+ className: clsx54("dataviews__view-actions", {
26174
26454
  "dataviews__view-actions--infinite-scroll": isInfiniteScroll
26175
26455
  }),
26176
26456
  gap: "xs",
26177
26457
  children: [
26178
- /* @__PURE__ */ jsxs33(
26458
+ /* @__PURE__ */ jsxs34(
26179
26459
  Stack,
26180
26460
  {
26181
26461
  direction: "row",
@@ -26183,18 +26463,18 @@ function DefaultUI2({
26183
26463
  justify: "start",
26184
26464
  className: "dataviews__search",
26185
26465
  children: [
26186
- search && /* @__PURE__ */ jsx116(dataviews_search_default, { label: searchLabel }),
26187
- /* @__PURE__ */ jsx116(toggle_default, {})
26466
+ search && /* @__PURE__ */ jsx117(dataviews_search_default, { label: searchLabel }),
26467
+ /* @__PURE__ */ jsx117(toggle_default, {})
26188
26468
  ]
26189
26469
  }
26190
26470
  ),
26191
- /* @__PURE__ */ jsx116(Stack, { direction: "row", gap: "xs", style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx116(dataviews_view_config_default, {}) })
26471
+ /* @__PURE__ */ jsx117(Stack, { direction: "row", gap: "xs", style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx117(dataviews_view_config_default, {}) })
26192
26472
  ]
26193
26473
  }
26194
26474
  ),
26195
- /* @__PURE__ */ jsx116(filters_toggled_default, { className: "dataviews-filters__container" }),
26196
- /* @__PURE__ */ jsx116(DataViewsLayout, {}),
26197
- /* @__PURE__ */ jsx116(DataViewsPickerFooter, {})
26475
+ /* @__PURE__ */ jsx117(filters_toggled_default, { className: "dataviews-filters__container" }),
26476
+ /* @__PURE__ */ jsx117(DataViewsLayout, {}),
26477
+ /* @__PURE__ */ jsx117(DataViewsPickerFooter, {})
26198
26478
  ] });
26199
26479
  }
26200
26480
  function DataViewsPicker({
@@ -26281,7 +26561,7 @@ function DataViewsPicker({
26281
26561
  if (!defaultLayouts[view.type]) {
26282
26562
  return null;
26283
26563
  }
26284
- return /* @__PURE__ */ jsx116(
26564
+ return /* @__PURE__ */ jsx117(
26285
26565
  dataviews_context_default.Provider,
26286
26566
  {
26287
26567
  value: {
@@ -26312,7 +26592,7 @@ function DataViewsPicker({
26312
26592
  hasInitiallyLoaded: true,
26313
26593
  intersectionObserver
26314
26594
  },
26315
- children: /* @__PURE__ */ jsx116("div", { className: "dataviews-picker-wrapper", children: children ?? /* @__PURE__ */ jsx116(DefaultUI2, { search, searchLabel }) })
26595
+ children: /* @__PURE__ */ jsx117("div", { className: "dataviews-picker-wrapper", children: children ?? /* @__PURE__ */ jsx117(DefaultUI2, { search, searchLabel }) })
26316
26596
  }
26317
26597
  );
26318
26598
  }
@@ -26329,7 +26609,7 @@ DataViewsPickerSubComponents.ViewConfig = DataviewsViewConfigDropdown;
26329
26609
  var dataviews_picker_default = DataViewsPickerSubComponents;
26330
26610
 
26331
26611
  // src/components/dataform-context/index.tsx
26332
- import { jsx as jsx117 } from "react/jsx-runtime";
26612
+ import { jsx as jsx118 } from "react/jsx-runtime";
26333
26613
  var DataFormContext = createContext({
26334
26614
  fields: []
26335
26615
  });
@@ -26338,15 +26618,15 @@ function DataFormProvider({
26338
26618
  fields,
26339
26619
  children
26340
26620
  }) {
26341
- return /* @__PURE__ */ jsx117(DataFormContext.Provider, { value: { fields }, children });
26621
+ return /* @__PURE__ */ jsx118(DataFormContext.Provider, { value: { fields }, children });
26342
26622
  }
26343
26623
  var dataform_context_default = DataFormContext;
26344
26624
 
26345
26625
  // src/components/dataform-layouts/regular/index.tsx
26346
- import clsx54 from "clsx";
26626
+ import clsx55 from "clsx";
26347
26627
 
26348
26628
  // src/components/dataform-layouts/normalize-form.ts
26349
- import { __ as __57 } from "@wordpress/i18n";
26629
+ import { __ as __58 } from "@wordpress/i18n";
26350
26630
  var DEFAULT_LAYOUT = {
26351
26631
  type: "regular",
26352
26632
  labelPosition: "top"
@@ -26377,14 +26657,14 @@ function normalizeLayout(layout) {
26377
26657
  if (typeof openAs === "object" && openAs.type === "modal") {
26378
26658
  normalizedOpenAs = {
26379
26659
  type: "modal",
26380
- applyLabel: openAs.applyLabel?.trim() || __57("Apply"),
26381
- cancelLabel: openAs.cancelLabel?.trim() || __57("Cancel")
26660
+ applyLabel: openAs.applyLabel?.trim() || __58("Apply"),
26661
+ cancelLabel: openAs.cancelLabel?.trim() || __58("Cancel")
26382
26662
  };
26383
26663
  } else if (openAs === "modal") {
26384
26664
  normalizedOpenAs = {
26385
26665
  type: "modal",
26386
- applyLabel: __57("Apply"),
26387
- cancelLabel: __57("Cancel")
26666
+ applyLabel: __58("Apply"),
26667
+ cancelLabel: __58("Cancel")
26388
26668
  };
26389
26669
  } else {
26390
26670
  normalizedOpenAs = { type: "dropdown" };
@@ -26464,15 +26744,15 @@ function normalizeForm(form) {
26464
26744
  var normalize_form_default = normalizeForm;
26465
26745
 
26466
26746
  // src/components/dataform-layouts/regular/index.tsx
26467
- import { Fragment as Fragment17, jsx as jsx118, jsxs as jsxs34 } from "react/jsx-runtime";
26747
+ import { Fragment as Fragment18, jsx as jsx119, jsxs as jsxs35 } from "react/jsx-runtime";
26468
26748
  function Header3({ title }) {
26469
- return /* @__PURE__ */ jsx118(
26749
+ return /* @__PURE__ */ jsx119(
26470
26750
  Stack,
26471
26751
  {
26472
26752
  direction: "column",
26473
26753
  className: "dataforms-layouts-regular__header",
26474
26754
  gap: "lg",
26475
- children: /* @__PURE__ */ jsx118(Stack, { direction: "row", align: "center", children: /* @__PURE__ */ jsx118(component_default16, { level: 2, size: 13, children: title }) })
26755
+ children: /* @__PURE__ */ jsx119(Stack, { direction: "row", align: "center", children: /* @__PURE__ */ jsx119(component_default16, { level: 2, size: 13, children: title }) })
26476
26756
  }
26477
26757
  );
26478
26758
  }
@@ -26494,9 +26774,9 @@ function FormRegularField({
26494
26774
  [field]
26495
26775
  );
26496
26776
  if (!!field.children) {
26497
- return /* @__PURE__ */ jsxs34(Fragment17, { children: [
26498
- !hideLabelFromVision && field.label && /* @__PURE__ */ jsx118(Header3, { title: field.label }),
26499
- /* @__PURE__ */ jsx118(
26777
+ return /* @__PURE__ */ jsxs35(Fragment18, { children: [
26778
+ !hideLabelFromVision && field.label && /* @__PURE__ */ jsx119(Header3, { title: field.label }),
26779
+ /* @__PURE__ */ jsx119(
26500
26780
  DataFormLayout,
26501
26781
  {
26502
26782
  data,
@@ -26515,30 +26795,30 @@ function FormRegularField({
26515
26795
  return null;
26516
26796
  }
26517
26797
  if (labelPosition === "side") {
26518
- return /* @__PURE__ */ jsxs34(
26798
+ return /* @__PURE__ */ jsxs35(
26519
26799
  Stack,
26520
26800
  {
26521
26801
  direction: "row",
26522
26802
  className: "dataforms-layouts-regular__field",
26523
26803
  gap: "sm",
26524
26804
  children: [
26525
- /* @__PURE__ */ jsx118(
26805
+ /* @__PURE__ */ jsx119(
26526
26806
  "div",
26527
26807
  {
26528
- className: clsx54(
26808
+ className: clsx55(
26529
26809
  "dataforms-layouts-regular__field-label",
26530
26810
  `dataforms-layouts-regular__field-label--label-position-${labelPosition}`
26531
26811
  ),
26532
- children: /* @__PURE__ */ jsx118(base_control_default.VisualLabel, { children: fieldDefinition.label })
26812
+ children: /* @__PURE__ */ jsx119(base_control_default.VisualLabel, { children: fieldDefinition.label })
26533
26813
  }
26534
26814
  ),
26535
- /* @__PURE__ */ jsx118("div", { className: "dataforms-layouts-regular__field-control", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx118(
26815
+ /* @__PURE__ */ jsx119("div", { className: "dataforms-layouts-regular__field-control", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx119(
26536
26816
  fieldDefinition.render,
26537
26817
  {
26538
26818
  item: data,
26539
26819
  field: fieldDefinition
26540
26820
  }
26541
- ) : /* @__PURE__ */ jsx118(
26821
+ ) : /* @__PURE__ */ jsx119(
26542
26822
  fieldDefinition.Edit,
26543
26823
  {
26544
26824
  data,
@@ -26554,16 +26834,16 @@ function FormRegularField({
26554
26834
  }
26555
26835
  );
26556
26836
  }
26557
- return /* @__PURE__ */ jsx118("div", { className: "dataforms-layouts-regular__field", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx118(Fragment17, { children: /* @__PURE__ */ jsxs34(Fragment17, { children: [
26558
- !hideLabelFromVision && labelPosition !== "none" && /* @__PURE__ */ jsx118(base_control_default.VisualLabel, { children: fieldDefinition.label }),
26559
- /* @__PURE__ */ jsx118(
26837
+ return /* @__PURE__ */ jsx119("div", { className: "dataforms-layouts-regular__field", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx119(Fragment18, { children: /* @__PURE__ */ jsxs35(Fragment18, { children: [
26838
+ !hideLabelFromVision && labelPosition !== "none" && /* @__PURE__ */ jsx119(base_control_default.VisualLabel, { children: fieldDefinition.label }),
26839
+ /* @__PURE__ */ jsx119(
26560
26840
  fieldDefinition.render,
26561
26841
  {
26562
26842
  item: data,
26563
26843
  field: fieldDefinition
26564
26844
  }
26565
26845
  )
26566
- ] }) }) : /* @__PURE__ */ jsx118(
26846
+ ] }) }) : /* @__PURE__ */ jsx119(
26567
26847
  fieldDefinition.Edit,
26568
26848
  {
26569
26849
  data,
@@ -26580,13 +26860,13 @@ function FormRegularField({
26580
26860
  import deepMerge2 from "deepmerge";
26581
26861
 
26582
26862
  // src/components/dataform-layouts/panel/summary-button.tsx
26583
- import clsx56 from "clsx";
26584
- import { sprintf as sprintf17, _x as _x5 } from "@wordpress/i18n";
26863
+ import clsx57 from "clsx";
26864
+ import { sprintf as sprintf18, _x as _x5 } from "@wordpress/i18n";
26585
26865
 
26586
26866
  // src/components/dataform-layouts/panel/utils/get-label-classname.ts
26587
- import clsx55 from "clsx";
26867
+ import clsx56 from "clsx";
26588
26868
  function getLabelClassName(labelPosition, showError) {
26589
- return clsx55(
26869
+ return clsx56(
26590
26870
  "dataforms-layouts-panel__field-label",
26591
26871
  `dataforms-layouts-panel__field-label--label-position-${labelPosition}`,
26592
26872
  { "has-error": showError }
@@ -26595,15 +26875,15 @@ function getLabelClassName(labelPosition, showError) {
26595
26875
  var get_label_classname_default = getLabelClassName;
26596
26876
 
26597
26877
  // src/components/dataform-layouts/panel/utils/get-label-content.tsx
26598
- import { jsx as jsx119, jsxs as jsxs35 } from "react/jsx-runtime";
26878
+ import { jsx as jsx120, jsxs as jsxs36 } from "react/jsx-runtime";
26599
26879
  function getLabelContent(showError, errorMessage, fieldLabel) {
26600
- return showError ? /* @__PURE__ */ jsxs35(tooltip_exports.Root, { children: [
26601
- /* @__PURE__ */ jsx119(
26880
+ return showError ? /* @__PURE__ */ jsxs36(tooltip_exports.Root, { children: [
26881
+ /* @__PURE__ */ jsx120(
26602
26882
  tooltip_exports.Trigger,
26603
26883
  {
26604
- render: /* @__PURE__ */ jsxs35("span", { className: "dataforms-layouts-panel__field-label-error-content", children: [
26605
- /* @__PURE__ */ jsx119(icon_default2, { icon: error_default, size: 16 }),
26606
- /* @__PURE__ */ jsxs35(VisuallyHidden, { children: [
26884
+ render: /* @__PURE__ */ jsxs36("span", { className: "dataforms-layouts-panel__field-label-error-content", children: [
26885
+ /* @__PURE__ */ jsx120(icon_default2, { icon: error_default, size: 16 }),
26886
+ /* @__PURE__ */ jsxs36(VisuallyHidden, { children: [
26607
26887
  errorMessage,
26608
26888
  ": "
26609
26889
  ] }),
@@ -26611,7 +26891,7 @@ function getLabelContent(showError, errorMessage, fieldLabel) {
26611
26891
  ] })
26612
26892
  }
26613
26893
  ),
26614
- /* @__PURE__ */ jsx119(tooltip_exports.Popup, { children: errorMessage })
26894
+ /* @__PURE__ */ jsx120(tooltip_exports.Popup, { children: errorMessage })
26615
26895
  ] }) : fieldLabel;
26616
26896
  }
26617
26897
  var get_label_content_default = getLabelContent;
@@ -26652,7 +26932,7 @@ function getFirstValidationError(validity) {
26652
26932
  var get_first_validation_error_default = getFirstValidationError;
26653
26933
 
26654
26934
  // src/components/dataform-layouts/panel/summary-button.tsx
26655
- import { jsx as jsx120, jsxs as jsxs36 } from "react/jsx-runtime";
26935
+ import { jsx as jsx121, jsxs as jsxs37 } from "react/jsx-runtime";
26656
26936
  function SummaryButton({
26657
26937
  data,
26658
26938
  field,
@@ -26669,7 +26949,7 @@ function SummaryButton({
26669
26949
  const showError = touched && !!errorMessage;
26670
26950
  const labelClassName = get_label_classname_default(labelPosition, showError);
26671
26951
  const labelContent = get_label_content_default(showError, errorMessage, fieldLabel);
26672
- const className2 = clsx56(
26952
+ const className2 = clsx57(
26673
26953
  "dataforms-layouts-panel__field-trigger",
26674
26954
  `dataforms-layouts-panel__field-trigger--label-${labelPosition}`,
26675
26955
  {
@@ -26681,11 +26961,11 @@ function SummaryButton({
26681
26961
  SummaryButton,
26682
26962
  "dataforms-layouts-panel__field-control"
26683
26963
  );
26684
- const ariaLabel = showError ? sprintf17(
26964
+ const ariaLabel = showError ? sprintf18(
26685
26965
  // translators: %s: Field name.
26686
26966
  _x5("Edit %s (has errors)", "field"),
26687
26967
  fieldLabel || ""
26688
- ) : sprintf17(
26968
+ ) : sprintf18(
26689
26969
  // translators: %s: Field name.
26690
26970
  _x5("Edit %s", "field"),
26691
26971
  fieldLabel || ""
@@ -26704,7 +26984,7 @@ function SummaryButton({
26704
26984
  onClick();
26705
26985
  }
26706
26986
  };
26707
- return /* @__PURE__ */ jsxs36(
26987
+ return /* @__PURE__ */ jsxs37(
26708
26988
  "div",
26709
26989
  {
26710
26990
  ref: rowRef,
@@ -26712,30 +26992,30 @@ function SummaryButton({
26712
26992
  onClick: !disabled ? handleRowClick : void 0,
26713
26993
  onKeyDown: !disabled ? handleKeyDown : void 0,
26714
26994
  children: [
26715
- labelPosition !== "none" && /* @__PURE__ */ jsx120("span", { className: labelClassName, children: labelContent }),
26716
- labelPosition === "none" && showError && /* @__PURE__ */ jsxs36(tooltip_exports.Root, { children: [
26717
- /* @__PURE__ */ jsx120(
26995
+ labelPosition !== "none" && /* @__PURE__ */ jsx121("span", { className: labelClassName, children: labelContent }),
26996
+ labelPosition === "none" && showError && /* @__PURE__ */ jsxs37(tooltip_exports.Root, { children: [
26997
+ /* @__PURE__ */ jsx121(
26718
26998
  tooltip_exports.Trigger,
26719
26999
  {
26720
- render: /* @__PURE__ */ jsx120(
27000
+ render: /* @__PURE__ */ jsx121(
26721
27001
  "span",
26722
27002
  {
26723
27003
  className: "dataforms-layouts-panel__field-label-error-content",
26724
27004
  role: "img",
26725
27005
  "aria-label": errorMessage,
26726
- children: /* @__PURE__ */ jsx120(icon_default2, { icon: error_default, size: 16 })
27006
+ children: /* @__PURE__ */ jsx121(icon_default2, { icon: error_default, size: 16 })
26727
27007
  }
26728
27008
  )
26729
27009
  }
26730
27010
  ),
26731
- /* @__PURE__ */ jsx120(tooltip_exports.Popup, { children: errorMessage })
27011
+ /* @__PURE__ */ jsx121(tooltip_exports.Popup, { children: errorMessage })
26732
27012
  ] }),
26733
- /* @__PURE__ */ jsx120(
27013
+ /* @__PURE__ */ jsx121(
26734
27014
  "span",
26735
27015
  {
26736
27016
  id: `${controlId}`,
26737
27017
  className: "dataforms-layouts-panel__field-control",
26738
- children: summaryFields.length > 1 ? /* @__PURE__ */ jsx120(
27018
+ children: summaryFields.length > 1 ? /* @__PURE__ */ jsx121(
26739
27019
  "span",
26740
27020
  {
26741
27021
  style: {
@@ -26745,11 +27025,11 @@ function SummaryButton({
26745
27025
  width: "100%",
26746
27026
  gap: "2px"
26747
27027
  },
26748
- children: summaryFields.map((summaryField) => /* @__PURE__ */ jsx120(
27028
+ children: summaryFields.map((summaryField) => /* @__PURE__ */ jsx121(
26749
27029
  "span",
26750
27030
  {
26751
27031
  style: { width: "100%" },
26752
- children: /* @__PURE__ */ jsx120(
27032
+ children: /* @__PURE__ */ jsx121(
26753
27033
  summaryField.render,
26754
27034
  {
26755
27035
  item: data,
@@ -26760,7 +27040,7 @@ function SummaryButton({
26760
27040
  summaryField.id
26761
27041
  ))
26762
27042
  }
26763
- ) : summaryFields.map((summaryField) => /* @__PURE__ */ jsx120(
27043
+ ) : summaryFields.map((summaryField) => /* @__PURE__ */ jsx121(
26764
27044
  summaryField.render,
26765
27045
  {
26766
27046
  item: data,
@@ -26770,7 +27050,7 @@ function SummaryButton({
26770
27050
  ))
26771
27051
  }
26772
27052
  ),
26773
- !disabled && /* @__PURE__ */ jsx120(
27053
+ !disabled && /* @__PURE__ */ jsx121(
26774
27054
  button_default,
26775
27055
  {
26776
27056
  className: "dataforms-layouts-panel__field-trigger-icon",
@@ -26790,7 +27070,7 @@ function SummaryButton({
26790
27070
  // src/hooks/use-form-validity.ts
26791
27071
  import deepMerge from "deepmerge";
26792
27072
  import fastDeepEqual3 from "fast-deep-equal/es6/index.js";
26793
- import { __ as __58 } from "@wordpress/i18n";
27073
+ import { __ as __59 } from "@wordpress/i18n";
26794
27074
  function isFormValid(formValidity) {
26795
27075
  if (!formValidity) {
26796
27076
  return true;
@@ -26920,7 +27200,7 @@ function handleElementsValidationAsync(promise, formField, promiseHandler) {
26920
27200
  {
26921
27201
  elements: {
26922
27202
  type: "invalid",
26923
- message: __58("Could not validate elements.")
27203
+ message: __59("Could not validate elements.")
26924
27204
  }
26925
27205
  },
26926
27206
  [...path, formField.id]
@@ -26939,7 +27219,7 @@ function handleElementsValidationAsync(promise, formField, promiseHandler) {
26939
27219
  {
26940
27220
  elements: {
26941
27221
  type: "invalid",
26942
- message: __58(
27222
+ message: __59(
26943
27223
  "Value must be one of the elements."
26944
27224
  )
26945
27225
  }
@@ -26965,7 +27245,7 @@ function handleElementsValidationAsync(promise, formField, promiseHandler) {
26965
27245
  if (error instanceof Error) {
26966
27246
  errorMessage = error.message;
26967
27247
  } else {
26968
- errorMessage = String(error) || __58(
27248
+ errorMessage = String(error) || __59(
26969
27249
  "Unknown error when running elements validation asynchronously."
26970
27250
  );
26971
27251
  }
@@ -27024,7 +27304,7 @@ function handleCustomValidationAsync(promise, formField, promiseHandler) {
27024
27304
  {
27025
27305
  custom: {
27026
27306
  type: "invalid",
27027
- message: __58("Validation could not be processed.")
27307
+ message: __59("Validation could not be processed.")
27028
27308
  }
27029
27309
  },
27030
27310
  [...path, formField.id]
@@ -27039,7 +27319,7 @@ function handleCustomValidationAsync(promise, formField, promiseHandler) {
27039
27319
  if (error instanceof Error) {
27040
27320
  errorMessage = error.message;
27041
27321
  } else {
27042
- errorMessage = String(error) || __58(
27322
+ errorMessage = String(error) || __59(
27043
27323
  "Unknown error when running custom validation asynchronously."
27044
27324
  );
27045
27325
  }
@@ -27068,7 +27348,7 @@ function validateFormField(item2, formField, promiseHandler) {
27068
27348
  return {
27069
27349
  pattern: {
27070
27350
  type: "invalid",
27071
- message: __58("Value does not match the required pattern.")
27351
+ message: __59("Value does not match the required pattern.")
27072
27352
  }
27073
27353
  };
27074
27354
  }
@@ -27076,7 +27356,7 @@ function validateFormField(item2, formField, promiseHandler) {
27076
27356
  return {
27077
27357
  min: {
27078
27358
  type: "invalid",
27079
- message: __58("Value is below the minimum.")
27359
+ message: __59("Value is below the minimum.")
27080
27360
  }
27081
27361
  };
27082
27362
  }
@@ -27084,7 +27364,7 @@ function validateFormField(item2, formField, promiseHandler) {
27084
27364
  return {
27085
27365
  max: {
27086
27366
  type: "invalid",
27087
- message: __58("Value is above the maximum.")
27367
+ message: __59("Value is above the maximum.")
27088
27368
  }
27089
27369
  };
27090
27370
  }
@@ -27092,7 +27372,7 @@ function validateFormField(item2, formField, promiseHandler) {
27092
27372
  return {
27093
27373
  minLength: {
27094
27374
  type: "invalid",
27095
- message: __58("Value is too short.")
27375
+ message: __59("Value is too short.")
27096
27376
  }
27097
27377
  };
27098
27378
  }
@@ -27100,7 +27380,7 @@ function validateFormField(item2, formField, promiseHandler) {
27100
27380
  return {
27101
27381
  maxLength: {
27102
27382
  type: "invalid",
27103
- message: __58("Value is too long.")
27383
+ message: __59("Value is too long.")
27104
27384
  }
27105
27385
  };
27106
27386
  }
@@ -27108,7 +27388,7 @@ function validateFormField(item2, formField, promiseHandler) {
27108
27388
  return {
27109
27389
  elements: {
27110
27390
  type: "invalid",
27111
- message: __58("Value must be one of the elements.")
27391
+ message: __59("Value must be one of the elements.")
27112
27392
  }
27113
27393
  };
27114
27394
  }
@@ -27131,7 +27411,7 @@ function validateFormField(item2, formField, promiseHandler) {
27131
27411
  if (error instanceof Error) {
27132
27412
  errorMessage = error.message;
27133
27413
  } else {
27134
- errorMessage = String(error) || __58("Unknown error when running custom validation.");
27414
+ errorMessage = String(error) || __59("Unknown error when running custom validation.");
27135
27415
  }
27136
27416
  return {
27137
27417
  custom: {
@@ -27158,14 +27438,14 @@ function validateFormField(item2, formField, promiseHandler) {
27158
27438
  );
27159
27439
  fieldValidity.elements = {
27160
27440
  type: "validating",
27161
- message: __58("Validating\u2026")
27441
+ message: __59("Validating\u2026")
27162
27442
  };
27163
27443
  }
27164
27444
  if (customError instanceof Promise) {
27165
27445
  handleCustomValidationAsync(customError, formField, promiseHandler);
27166
27446
  fieldValidity.custom = {
27167
27447
  type: "validating",
27168
- message: __58("Validating\u2026")
27448
+ message: __59("Validating\u2026")
27169
27449
  };
27170
27450
  }
27171
27451
  if (Object.keys(fieldValidity).length > 0) {
@@ -27357,7 +27637,7 @@ function useFieldFromFormField(field) {
27357
27637
  var use_field_from_form_field_default = useFieldFromFormField;
27358
27638
 
27359
27639
  // src/components/dataform-layouts/panel/modal.tsx
27360
- import { Fragment as Fragment18, jsx as jsx121, jsxs as jsxs37 } from "react/jsx-runtime";
27640
+ import { Fragment as Fragment19, jsx as jsx122, jsxs as jsxs38 } from "react/jsx-runtime";
27361
27641
  function ModalContent({
27362
27642
  data,
27363
27643
  field,
@@ -27414,7 +27694,7 @@ function ModalContent({
27414
27694
  const contentRef = useRef(null);
27415
27695
  const mergedRef = useMergeRefs([focusOnMountRef, contentRef]);
27416
27696
  useReportValidity(contentRef, touched);
27417
- return /* @__PURE__ */ jsxs37(
27697
+ return /* @__PURE__ */ jsxs38(
27418
27698
  modal_default,
27419
27699
  {
27420
27700
  className: "dataforms-layouts-panel__modal",
@@ -27423,14 +27703,14 @@ function ModalContent({
27423
27703
  title: fieldLabel,
27424
27704
  size: "medium",
27425
27705
  children: [
27426
- /* @__PURE__ */ jsx121("div", { ref: mergedRef, children: /* @__PURE__ */ jsx121(
27706
+ /* @__PURE__ */ jsx122("div", { ref: mergedRef, children: /* @__PURE__ */ jsx122(
27427
27707
  DataFormLayout,
27428
27708
  {
27429
27709
  data: modalData,
27430
27710
  form,
27431
27711
  onChange: handleOnChange,
27432
27712
  validity,
27433
- children: (FieldLayout, childField, childFieldValidity, markWhenOptional) => /* @__PURE__ */ jsx121(
27713
+ children: (FieldLayout, childField, childFieldValidity, markWhenOptional) => /* @__PURE__ */ jsx122(
27434
27714
  FieldLayout,
27435
27715
  {
27436
27716
  data: modalData,
@@ -27444,15 +27724,15 @@ function ModalContent({
27444
27724
  )
27445
27725
  }
27446
27726
  ) }),
27447
- /* @__PURE__ */ jsxs37(
27727
+ /* @__PURE__ */ jsxs38(
27448
27728
  Stack,
27449
27729
  {
27450
27730
  direction: "row",
27451
27731
  className: "dataforms-layouts-panel__modal-footer",
27452
27732
  gap: "md",
27453
27733
  children: [
27454
- /* @__PURE__ */ jsx121(component_default6, { style: { flex: 1 } }),
27455
- /* @__PURE__ */ jsx121(
27734
+ /* @__PURE__ */ jsx122(component_default6, { style: { flex: 1 } }),
27735
+ /* @__PURE__ */ jsx122(
27456
27736
  button_default,
27457
27737
  {
27458
27738
  variant: "tertiary",
@@ -27461,7 +27741,7 @@ function ModalContent({
27461
27741
  children: cancelLabel
27462
27742
  }
27463
27743
  ),
27464
- /* @__PURE__ */ jsx121(
27744
+ /* @__PURE__ */ jsx122(
27465
27745
  button_default,
27466
27746
  {
27467
27747
  variant: "primary",
@@ -27493,8 +27773,8 @@ function PanelModal({
27493
27773
  setIsOpen(false);
27494
27774
  setTouched(true);
27495
27775
  };
27496
- return /* @__PURE__ */ jsxs37(Fragment18, { children: [
27497
- /* @__PURE__ */ jsx121(
27776
+ return /* @__PURE__ */ jsxs38(Fragment19, { children: [
27777
+ /* @__PURE__ */ jsx122(
27498
27778
  SummaryButton,
27499
27779
  {
27500
27780
  data,
@@ -27508,7 +27788,7 @@ function PanelModal({
27508
27788
  "aria-expanded": isOpen
27509
27789
  }
27510
27790
  ),
27511
- isOpen && /* @__PURE__ */ jsx121(
27791
+ isOpen && /* @__PURE__ */ jsx122(
27512
27792
  ModalContent,
27513
27793
  {
27514
27794
  data,
@@ -27524,25 +27804,25 @@ function PanelModal({
27524
27804
  var modal_default2 = PanelModal;
27525
27805
 
27526
27806
  // src/components/dataform-layouts/panel/dropdown.tsx
27527
- import { __ as __59 } from "@wordpress/i18n";
27528
- import { jsx as jsx122, jsxs as jsxs38 } from "react/jsx-runtime";
27807
+ import { __ as __60 } from "@wordpress/i18n";
27808
+ import { jsx as jsx123, jsxs as jsxs39 } from "react/jsx-runtime";
27529
27809
  function DropdownHeader({
27530
27810
  title,
27531
27811
  onClose
27532
27812
  }) {
27533
- return /* @__PURE__ */ jsx122(
27813
+ return /* @__PURE__ */ jsx123(
27534
27814
  Stack,
27535
27815
  {
27536
27816
  direction: "column",
27537
27817
  className: "dataforms-layouts-panel__dropdown-header",
27538
27818
  gap: "lg",
27539
- children: /* @__PURE__ */ jsxs38(Stack, { direction: "row", gap: "sm", align: "center", children: [
27540
- title && /* @__PURE__ */ jsx122(component_default16, { level: 2, size: 13, children: title }),
27541
- /* @__PURE__ */ jsx122(component_default6, { style: { flex: 1 } }),
27542
- onClose && /* @__PURE__ */ jsx122(
27819
+ children: /* @__PURE__ */ jsxs39(Stack, { direction: "row", gap: "sm", align: "center", children: [
27820
+ title && /* @__PURE__ */ jsx123(component_default16, { level: 2, size: 13, children: title }),
27821
+ /* @__PURE__ */ jsx123(component_default6, { style: { flex: 1 } }),
27822
+ onClose && /* @__PURE__ */ jsx123(
27543
27823
  button_default,
27544
27824
  {
27545
- label: __59("Close"),
27825
+ label: __60("Close"),
27546
27826
  icon: close_small_default,
27547
27827
  onClick: onClose,
27548
27828
  size: "small"
@@ -27558,7 +27838,7 @@ function DropdownContentWithValidation({
27558
27838
  }) {
27559
27839
  const ref = useRef(null);
27560
27840
  useReportValidity(ref, touched);
27561
- return /* @__PURE__ */ jsx122("div", { ref, children });
27841
+ return /* @__PURE__ */ jsx123("div", { ref, children });
27562
27842
  }
27563
27843
  function PanelDropdown({
27564
27844
  data,
@@ -27607,12 +27887,12 @@ function PanelDropdown({
27607
27887
  if (!fieldDefinition) {
27608
27888
  return null;
27609
27889
  }
27610
- return /* @__PURE__ */ jsx122(
27890
+ return /* @__PURE__ */ jsx123(
27611
27891
  "div",
27612
27892
  {
27613
27893
  ref: setPopoverAnchor,
27614
27894
  className: "dataforms-layouts-panel__field-dropdown-anchor",
27615
- children: /* @__PURE__ */ jsx122(
27895
+ children: /* @__PURE__ */ jsx123(
27616
27896
  dropdown_default,
27617
27897
  {
27618
27898
  contentClassName: "dataforms-layouts-panel__field-dropdown",
@@ -27623,7 +27903,7 @@ function PanelDropdown({
27623
27903
  setTouched(true);
27624
27904
  }
27625
27905
  },
27626
- renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ jsx122(
27906
+ renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ jsx123(
27627
27907
  SummaryButton,
27628
27908
  {
27629
27909
  data,
@@ -27637,22 +27917,22 @@ function PanelDropdown({
27637
27917
  "aria-expanded": isOpen
27638
27918
  }
27639
27919
  ),
27640
- renderContent: ({ onClose }) => /* @__PURE__ */ jsx122(DropdownContentWithValidation, { touched, children: /* @__PURE__ */ jsxs38("div", { ref: dialogRef, ...dialogProps, children: [
27641
- /* @__PURE__ */ jsx122(
27920
+ renderContent: ({ onClose }) => /* @__PURE__ */ jsx123(DropdownContentWithValidation, { touched, children: /* @__PURE__ */ jsxs39("div", { ref: dialogRef, ...dialogProps, children: [
27921
+ /* @__PURE__ */ jsx123(
27642
27922
  DropdownHeader,
27643
27923
  {
27644
27924
  title: fieldLabel,
27645
27925
  onClose
27646
27926
  }
27647
27927
  ),
27648
- /* @__PURE__ */ jsx122(
27928
+ /* @__PURE__ */ jsx123(
27649
27929
  DataFormLayout,
27650
27930
  {
27651
27931
  data,
27652
27932
  form,
27653
27933
  onChange,
27654
27934
  validity: formValidity,
27655
- children: (FieldLayout, childField, childFieldValidity, markWhenOptional) => /* @__PURE__ */ jsx122(
27935
+ children: (FieldLayout, childField, childFieldValidity, markWhenOptional) => /* @__PURE__ */ jsx123(
27656
27936
  FieldLayout,
27657
27937
  {
27658
27938
  data,
@@ -27675,7 +27955,7 @@ function PanelDropdown({
27675
27955
  var dropdown_default2 = PanelDropdown;
27676
27956
 
27677
27957
  // src/components/dataform-layouts/panel/index.tsx
27678
- import { jsx as jsx123 } from "react/jsx-runtime";
27958
+ import { jsx as jsx124 } from "react/jsx-runtime";
27679
27959
  function FormPanelField({
27680
27960
  data,
27681
27961
  field,
@@ -27684,7 +27964,7 @@ function FormPanelField({
27684
27964
  }) {
27685
27965
  const layout = field.layout;
27686
27966
  if (layout.openAs.type === "modal") {
27687
- return /* @__PURE__ */ jsx123(
27967
+ return /* @__PURE__ */ jsx124(
27688
27968
  modal_default2,
27689
27969
  {
27690
27970
  data,
@@ -27694,7 +27974,7 @@ function FormPanelField({
27694
27974
  }
27695
27975
  );
27696
27976
  }
27697
- return /* @__PURE__ */ jsx123(
27977
+ return /* @__PURE__ */ jsx124(
27698
27978
  dropdown_default2,
27699
27979
  {
27700
27980
  data,
@@ -27706,8 +27986,8 @@ function FormPanelField({
27706
27986
  }
27707
27987
 
27708
27988
  // src/components/dataform-layouts/validation-badge.tsx
27709
- import { sprintf as sprintf18, _n as _n4 } from "@wordpress/i18n";
27710
- import { jsx as jsx124 } from "react/jsx-runtime";
27989
+ import { sprintf as sprintf19, _n as _n4 } from "@wordpress/i18n";
27990
+ import { jsx as jsx125 } from "react/jsx-runtime";
27711
27991
  function countInvalidFields(validity) {
27712
27992
  if (!validity) {
27713
27993
  return 0;
@@ -27736,7 +28016,7 @@ function ValidationBadge({
27736
28016
  if (invalidCount === 0) {
27737
28017
  return null;
27738
28018
  }
27739
- return /* @__PURE__ */ jsx124(Badge, { intent: "high", children: sprintf18(
28019
+ return /* @__PURE__ */ jsx125(Badge, { intent: "high", children: sprintf19(
27740
28020
  /* translators: %d: Number of fields that need attention */
27741
28021
  _n4(
27742
28022
  "%d field needs attention",
@@ -27748,7 +28028,7 @@ function ValidationBadge({
27748
28028
  }
27749
28029
 
27750
28030
  // src/components/dataform-layouts/card/index.tsx
27751
- import { Fragment as Fragment19, jsx as jsx125, jsxs as jsxs39 } from "react/jsx-runtime";
28031
+ import { Fragment as Fragment20, jsx as jsx126, jsxs as jsxs40 } from "react/jsx-runtime";
27752
28032
  function isSummaryFieldVisible(summaryField, summaryConfig, isOpen) {
27753
28033
  if (!summaryConfig || Array.isArray(summaryConfig) && summaryConfig.length === 0) {
27754
28034
  return false;
@@ -27789,17 +28069,17 @@ function HeaderContent({
27789
28069
  );
27790
28070
  const hasBadge = touched && layout.isCollapsible;
27791
28071
  const hasSummary = visibleSummaryFields.length > 0 && layout.withHeader;
27792
- return /* @__PURE__ */ jsxs39(
28072
+ return /* @__PURE__ */ jsxs40(
27793
28073
  Stack,
27794
28074
  {
27795
28075
  align: "center",
27796
28076
  justify: "space-between",
27797
28077
  className: "dataforms-layouts-card__field-header-content",
27798
28078
  children: [
27799
- /* @__PURE__ */ jsx125(card_exports.Title, { children: label }),
27800
- (hasBadge || hasSummary) && /* @__PURE__ */ jsxs39(collapsible_card_exports.HeaderDescription, { className: "dataforms-layouts-card__field-header-content-description", children: [
27801
- hasBadge && /* @__PURE__ */ jsx125(ValidationBadge, { validity }),
27802
- hasSummary && /* @__PURE__ */ jsx125("div", { className: "dataforms-layouts-card__field-summary", children: visibleSummaryFields.map((summaryField) => /* @__PURE__ */ jsx125(
28079
+ /* @__PURE__ */ jsx126(card_exports.Title, { children: label }),
28080
+ (hasBadge || hasSummary) && /* @__PURE__ */ jsxs40(collapsible_card_exports.HeaderDescription, { className: "dataforms-layouts-card__field-header-content-description", children: [
28081
+ hasBadge && /* @__PURE__ */ jsx126(ValidationBadge, { validity }),
28082
+ hasSummary && /* @__PURE__ */ jsx126("div", { className: "dataforms-layouts-card__field-summary", children: visibleSummaryFields.map((summaryField) => /* @__PURE__ */ jsx126(
27803
28083
  summaryField.render,
27804
28084
  {
27805
28085
  item: data,
@@ -27823,9 +28103,9 @@ function BodyContent({
27823
28103
  withHeader
27824
28104
  }) {
27825
28105
  if (field.children) {
27826
- return /* @__PURE__ */ jsxs39(Fragment19, { children: [
27827
- field.description && /* @__PURE__ */ jsx125("div", { className: "dataforms-layouts-card__field-description", children: field.description }),
27828
- /* @__PURE__ */ jsx125(
28106
+ return /* @__PURE__ */ jsxs40(Fragment20, { children: [
28107
+ field.description && /* @__PURE__ */ jsx126("div", { className: "dataforms-layouts-card__field-description", children: field.description }),
28108
+ /* @__PURE__ */ jsx126(
27829
28109
  DataFormLayout,
27830
28110
  {
27831
28111
  data,
@@ -27840,7 +28120,7 @@ function BodyContent({
27840
28120
  if (!SingleFieldLayout) {
27841
28121
  return null;
27842
28122
  }
27843
- return /* @__PURE__ */ jsx125(
28123
+ return /* @__PURE__ */ jsx126(
27844
28124
  SingleFieldLayout,
27845
28125
  {
27846
28126
  data,
@@ -27903,7 +28183,7 @@ function FormCardField({
27903
28183
  label = fieldDefinition.label;
27904
28184
  withHeader = !!label && layout.withHeader;
27905
28185
  }
27906
- const bodyContent = /* @__PURE__ */ jsx125(
28186
+ const bodyContent = /* @__PURE__ */ jsx126(
27907
28187
  BodyContent,
27908
28188
  {
27909
28189
  data,
@@ -27916,7 +28196,7 @@ function FormCardField({
27916
28196
  withHeader
27917
28197
  }
27918
28198
  );
27919
- const headerContent = /* @__PURE__ */ jsx125(
28199
+ const headerContent = /* @__PURE__ */ jsx126(
27920
28200
  HeaderContent,
27921
28201
  {
27922
28202
  data,
@@ -27929,15 +28209,15 @@ function FormCardField({
27929
28209
  }
27930
28210
  );
27931
28211
  if (withHeader && isCollapsible) {
27932
- return /* @__PURE__ */ jsxs39(
28212
+ return /* @__PURE__ */ jsxs40(
27933
28213
  collapsible_card_exports.Root,
27934
28214
  {
27935
28215
  className: "dataforms-layouts-card__field",
27936
28216
  open: isOpen,
27937
28217
  onOpenChange: handleOpenChange,
27938
28218
  children: [
27939
- /* @__PURE__ */ jsx125(collapsible_card_exports.Header, { children: headerContent }),
27940
- /* @__PURE__ */ jsx125(
28219
+ /* @__PURE__ */ jsx126(collapsible_card_exports.Header, { children: headerContent }),
28220
+ /* @__PURE__ */ jsx126(
27941
28221
  collapsible_card_exports.Content,
27942
28222
  {
27943
28223
  ref: contentRef,
@@ -27949,26 +28229,26 @@ function FormCardField({
27949
28229
  }
27950
28230
  );
27951
28231
  }
27952
- return /* @__PURE__ */ jsxs39(card_exports.Root, { className: "dataforms-layouts-card__field", children: [
27953
- withHeader && /* @__PURE__ */ jsx125(card_exports.Header, { children: headerContent }),
27954
- /* @__PURE__ */ jsx125(card_exports.Content, { ref: contentRef, onBlur: handleBlur, children: bodyContent })
28232
+ return /* @__PURE__ */ jsxs40(card_exports.Root, { className: "dataforms-layouts-card__field", children: [
28233
+ withHeader && /* @__PURE__ */ jsx126(card_exports.Header, { children: headerContent }),
28234
+ /* @__PURE__ */ jsx126(card_exports.Content, { ref: contentRef, onBlur: handleBlur, children: bodyContent })
27955
28235
  ] });
27956
28236
  }
27957
28237
 
27958
28238
  // src/components/dataform-layouts/row/index.tsx
27959
- import { Fragment as Fragment20, jsx as jsx126, jsxs as jsxs40 } from "react/jsx-runtime";
28239
+ import { Fragment as Fragment21, jsx as jsx127, jsxs as jsxs41 } from "react/jsx-runtime";
27960
28240
  function Header4({ title }) {
27961
- return /* @__PURE__ */ jsx126(
28241
+ return /* @__PURE__ */ jsx127(
27962
28242
  Stack,
27963
28243
  {
27964
28244
  direction: "column",
27965
28245
  className: "dataforms-layouts-row__header",
27966
28246
  gap: "lg",
27967
- children: /* @__PURE__ */ jsx126(Stack, { direction: "row", align: "center", children: /* @__PURE__ */ jsx126(component_default16, { level: 2, size: 13, children: title }) })
28247
+ children: /* @__PURE__ */ jsx127(Stack, { direction: "row", align: "center", children: /* @__PURE__ */ jsx127(component_default16, { level: 2, size: 13, children: title }) })
27968
28248
  }
27969
28249
  );
27970
28250
  }
27971
- var EMPTY_WRAPPER = ({ children }) => /* @__PURE__ */ jsx126(Fragment20, { children });
28251
+ var EMPTY_WRAPPER = ({ children }) => /* @__PURE__ */ jsx127(Fragment21, { children });
27972
28252
  function FormRowField({
27973
28253
  data,
27974
28254
  field,
@@ -27983,9 +28263,9 @@ function FormRowField({
27983
28263
  layout: DEFAULT_LAYOUT,
27984
28264
  fields: field.children
27985
28265
  };
27986
- return /* @__PURE__ */ jsxs40("div", { className: "dataforms-layouts-row__field", children: [
27987
- !hideLabelFromVision && field.label && /* @__PURE__ */ jsx126(Header4, { title: field.label }),
27988
- /* @__PURE__ */ jsx126(Stack, { direction: "row", align: layout.alignment, gap: "lg", children: /* @__PURE__ */ jsx126(
28266
+ return /* @__PURE__ */ jsxs41("div", { className: "dataforms-layouts-row__field", children: [
28267
+ !hideLabelFromVision && field.label && /* @__PURE__ */ jsx127(Header4, { title: field.label }),
28268
+ /* @__PURE__ */ jsx127(Stack, { direction: "row", align: layout.alignment, gap: "lg", children: /* @__PURE__ */ jsx127(
27989
28269
  DataFormLayout,
27990
28270
  {
27991
28271
  data,
@@ -27993,12 +28273,12 @@ function FormRowField({
27993
28273
  onChange,
27994
28274
  validity: validity?.children,
27995
28275
  as: EMPTY_WRAPPER,
27996
- children: (FieldLayout, childField, childFieldValidity) => /* @__PURE__ */ jsx126(
28276
+ children: (FieldLayout, childField, childFieldValidity) => /* @__PURE__ */ jsx127(
27997
28277
  "div",
27998
28278
  {
27999
28279
  className: "dataforms-layouts-row__field-control",
28000
28280
  style: layout.styles[childField.id],
28001
- children: /* @__PURE__ */ jsx126(
28281
+ children: /* @__PURE__ */ jsx127(
28002
28282
  FieldLayout,
28003
28283
  {
28004
28284
  data,
@@ -28020,7 +28300,7 @@ function FormRowField({
28020
28300
  if (!RegularLayout) {
28021
28301
  return null;
28022
28302
  }
28023
- return /* @__PURE__ */ jsx126(Fragment20, { children: /* @__PURE__ */ jsx126("div", { className: "dataforms-layouts-row__field-control", children: /* @__PURE__ */ jsx126(
28303
+ return /* @__PURE__ */ jsx127(Fragment21, { children: /* @__PURE__ */ jsx127("div", { className: "dataforms-layouts-row__field-control", children: /* @__PURE__ */ jsx127(
28024
28304
  RegularLayout,
28025
28305
  {
28026
28306
  data,
@@ -28033,8 +28313,8 @@ function FormRowField({
28033
28313
  }
28034
28314
 
28035
28315
  // src/components/dataform-layouts/details/index.tsx
28036
- import { __ as __60 } from "@wordpress/i18n";
28037
- import { jsx as jsx127, jsxs as jsxs41 } from "react/jsx-runtime";
28316
+ import { __ as __61 } from "@wordpress/i18n";
28317
+ import { jsx as jsx128, jsxs as jsxs42 } from "react/jsx-runtime";
28038
28318
  function FormDetailsField({
28039
28319
  data,
28040
28320
  field,
@@ -28081,17 +28361,17 @@ function FormDetailsField({
28081
28361
  const summaryField = summaryFieldId ? fields.find((fieldDef) => fieldDef.id === summaryFieldId) : void 0;
28082
28362
  let summaryContent;
28083
28363
  if (summaryField && summaryField.render) {
28084
- summaryContent = /* @__PURE__ */ jsx127(summaryField.render, { item: data, field: summaryField });
28364
+ summaryContent = /* @__PURE__ */ jsx128(summaryField.render, { item: data, field: summaryField });
28085
28365
  } else {
28086
- summaryContent = field.label || __60("More details");
28366
+ summaryContent = field.label || __61("More details");
28087
28367
  }
28088
- return /* @__PURE__ */ jsxs41(
28368
+ return /* @__PURE__ */ jsxs42(
28089
28369
  "details",
28090
28370
  {
28091
28371
  ref: detailsRef,
28092
28372
  className: "dataforms-layouts-details__details",
28093
28373
  children: [
28094
- /* @__PURE__ */ jsx127("summary", { className: "dataforms-layouts-details__summary", children: /* @__PURE__ */ jsxs41(
28374
+ /* @__PURE__ */ jsx128("summary", { className: "dataforms-layouts-details__summary", children: /* @__PURE__ */ jsxs42(
28095
28375
  Stack,
28096
28376
  {
28097
28377
  direction: "row",
@@ -28100,17 +28380,17 @@ function FormDetailsField({
28100
28380
  className: "dataforms-layouts-details__summary-content",
28101
28381
  children: [
28102
28382
  summaryContent,
28103
- touched && /* @__PURE__ */ jsx127(ValidationBadge, { validity })
28383
+ touched && /* @__PURE__ */ jsx128(ValidationBadge, { validity })
28104
28384
  ]
28105
28385
  }
28106
28386
  ) }),
28107
- /* @__PURE__ */ jsx127(
28387
+ /* @__PURE__ */ jsx128(
28108
28388
  "div",
28109
28389
  {
28110
28390
  ref: contentRef,
28111
28391
  className: "dataforms-layouts-details__content",
28112
28392
  onBlur: handleBlur,
28113
- children: /* @__PURE__ */ jsx127(
28393
+ children: /* @__PURE__ */ jsx128(
28114
28394
  DataFormLayout,
28115
28395
  {
28116
28396
  data,
@@ -28127,12 +28407,12 @@ function FormDetailsField({
28127
28407
  }
28128
28408
 
28129
28409
  // src/components/dataform-layouts/index.tsx
28130
- import { jsx as jsx128 } from "react/jsx-runtime";
28410
+ import { jsx as jsx129 } from "react/jsx-runtime";
28131
28411
  var FORM_FIELD_LAYOUTS = [
28132
28412
  {
28133
28413
  type: "regular",
28134
28414
  component: FormRegularField,
28135
- wrapper: ({ children }) => /* @__PURE__ */ jsx128(
28415
+ wrapper: ({ children }) => /* @__PURE__ */ jsx129(
28136
28416
  Stack,
28137
28417
  {
28138
28418
  direction: "column",
@@ -28145,7 +28425,7 @@ var FORM_FIELD_LAYOUTS = [
28145
28425
  {
28146
28426
  type: "panel",
28147
28427
  component: FormPanelField,
28148
- wrapper: ({ children }) => /* @__PURE__ */ jsx128(
28428
+ wrapper: ({ children }) => /* @__PURE__ */ jsx129(
28149
28429
  Stack,
28150
28430
  {
28151
28431
  direction: "column",
@@ -28158,7 +28438,7 @@ var FORM_FIELD_LAYOUTS = [
28158
28438
  {
28159
28439
  type: "card",
28160
28440
  component: FormCardField,
28161
- wrapper: ({ children }) => /* @__PURE__ */ jsx128(
28441
+ wrapper: ({ children }) => /* @__PURE__ */ jsx129(
28162
28442
  Stack,
28163
28443
  {
28164
28444
  direction: "column",
@@ -28174,13 +28454,13 @@ var FORM_FIELD_LAYOUTS = [
28174
28454
  wrapper: ({
28175
28455
  children,
28176
28456
  layout
28177
- }) => /* @__PURE__ */ jsx128(
28457
+ }) => /* @__PURE__ */ jsx129(
28178
28458
  Stack,
28179
28459
  {
28180
28460
  direction: "column",
28181
28461
  className: "dataforms-layouts__wrapper",
28182
28462
  gap: "lg",
28183
- children: /* @__PURE__ */ jsx128("div", { className: "dataforms-layouts-row__field", children: /* @__PURE__ */ jsx128(
28463
+ children: /* @__PURE__ */ jsx129("div", { className: "dataforms-layouts-row__field", children: /* @__PURE__ */ jsx129(
28184
28464
  Stack,
28185
28465
  {
28186
28466
  direction: "row",
@@ -28202,8 +28482,8 @@ function getFormFieldLayout(type) {
28202
28482
  }
28203
28483
 
28204
28484
  // src/components/dataform-layouts/data-form-layout.tsx
28205
- import { jsx as jsx129 } from "react/jsx-runtime";
28206
- var DEFAULT_WRAPPER = ({ children }) => /* @__PURE__ */ jsx129(Stack, { direction: "column", className: "dataforms-layouts__wrapper", gap: "lg", children });
28485
+ import { jsx as jsx130 } from "react/jsx-runtime";
28486
+ var DEFAULT_WRAPPER = ({ children }) => /* @__PURE__ */ jsx130(Stack, { direction: "column", className: "dataforms-layouts__wrapper", gap: "lg", children });
28207
28487
  function DataFormLayout({
28208
28488
  data,
28209
28489
  form,
@@ -28226,7 +28506,7 @@ function DataFormLayout({
28226
28506
  );
28227
28507
  }
28228
28508
  const Wrapper4 = as ?? getFormFieldLayout(form.layout.type)?.wrapper ?? DEFAULT_WRAPPER;
28229
- return /* @__PURE__ */ jsx129(Wrapper4, { layout: form.layout, children: form.fields.map((formField) => {
28509
+ return /* @__PURE__ */ jsx130(Wrapper4, { layout: form.layout, children: form.fields.map((formField) => {
28230
28510
  const FieldLayout = getFormFieldLayout(formField.layout.type)?.component;
28231
28511
  if (!FieldLayout) {
28232
28512
  return null;
@@ -28243,7 +28523,7 @@ function DataFormLayout({
28243
28523
  markWhenOptional
28244
28524
  );
28245
28525
  }
28246
- return /* @__PURE__ */ jsx129(
28526
+ return /* @__PURE__ */ jsx130(
28247
28527
  FieldLayout,
28248
28528
  {
28249
28529
  data,
@@ -28258,7 +28538,7 @@ function DataFormLayout({
28258
28538
  }
28259
28539
 
28260
28540
  // src/dataform/index.tsx
28261
- import { jsx as jsx130 } from "react/jsx-runtime";
28541
+ import { jsx as jsx131 } from "react/jsx-runtime";
28262
28542
  function DataForm({
28263
28543
  data,
28264
28544
  form,
@@ -28274,7 +28554,7 @@ function DataForm({
28274
28554
  if (!form.fields) {
28275
28555
  return null;
28276
28556
  }
28277
- return /* @__PURE__ */ jsx130(DataFormProvider, { fields: normalizedFields, children: /* @__PURE__ */ jsx130(
28557
+ return /* @__PURE__ */ jsx131(DataFormProvider, { fields: normalizedFields, children: /* @__PURE__ */ jsx131(
28278
28558
  DataFormLayout,
28279
28559
  {
28280
28560
  data,