@automattic/charts 4.10.0 → 4.11.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.
- package/CHANGELOG.md +19 -0
- package/TOKENS.md +7 -3
- package/dist/index.cjs +337 -708
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +52 -3
- package/dist/index.d.cts +39 -39
- package/dist/index.d.ts +39 -39
- package/dist/index.js +308 -660
- package/dist/index.js.map +1 -1
- package/dist/visx/group/index.js +1 -2
- package/dist/visx/legend/index.js +1 -2
- package/dist/visx/text/index.js +1 -2
- package/package.json +13 -12
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss +5 -0
- package/src/charts/geo-chart/geo-chart.module.scss +27 -0
- package/src/charts/geo-chart/geo-chart.tsx +68 -43
- package/src/charts/geo-chart/private/use-tooltip-position.ts +106 -0
- package/src/charts/geo-chart/test/geo-chart.test.tsx +68 -42
- package/src/charts/geo-chart/test/use-tooltip-position.test.ts +43 -0
- package/src/charts/heatmap-chart/heatmap-chart.module.scss +3 -3
- package/src/charts/heatmap-chart/private/heatmap-scale.ts +48 -43
- package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +5 -5
- package/src/charts/heatmap-chart/test/heatmap-scale.test.ts +55 -27
- package/src/charts/heatmap-chart/types.ts +1 -1
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +8 -5
- package/src/components/legend/private/base-legend.module.scss +5 -0
- package/src/components/legend/private/base-legend.tsx +8 -2
- package/src/components/tooltip/_surface.scss +19 -0
- package/src/components/tooltip/private/bounded-tooltip.tsx +2 -2
- package/src/components/tooltip/tooltip-box.module.scss +3 -17
- package/src/styles/chart-scope.scss +6 -4
- package/src/styles/test/chart-scope.test.ts +6 -2
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -53,7 +53,6 @@ let react_google_charts = require("react-google-charts");
|
|
|
53
53
|
let dompurify = require("dompurify");
|
|
54
54
|
dompurify = __toESM(dompurify, 1);
|
|
55
55
|
require("@babel/runtime/helpers/esm/extends");
|
|
56
|
-
require("@babel/runtime/helpers/extends");
|
|
57
56
|
let _wordpress_icons = require("@wordpress/icons");
|
|
58
57
|
let _visx_shape = require("@visx/shape");
|
|
59
58
|
//#region src/charts/private/chart-instance-context/chart-instance-context.ts
|
|
@@ -2095,6 +2094,7 @@ function valueOrIdentityString(_) {
|
|
|
2095
2094
|
//#region src/components/legend/private/base-legend.module.scss
|
|
2096
2095
|
var base_legend_module_default = {
|
|
2097
2096
|
"legend": "a8ccharts-04TogW-legend",
|
|
2097
|
+
"legend--horizontal": "a8ccharts-04TogW-legend--horizontal",
|
|
2098
2098
|
"legend-item": "a8ccharts-04TogW-legend-item",
|
|
2099
2099
|
"legend-item--inactive": "a8ccharts-04TogW-legend-item--inactive",
|
|
2100
2100
|
"legend-item--interactive": "a8ccharts-04TogW-legend-item--interactive",
|
|
@@ -2196,12 +2196,12 @@ const BaseLegend = (0, react.forwardRef)(({ items: allItems, className, orientat
|
|
|
2196
2196
|
children: (labels) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_ui.Stack, {
|
|
2197
2197
|
ref,
|
|
2198
2198
|
direction: orientation === "vertical" ? "column" : "row",
|
|
2199
|
-
gap: orientation === "vertical" ? "sm" :
|
|
2199
|
+
gap: orientation === "vertical" ? "sm" : void 0,
|
|
2200
2200
|
align: orientation === "vertical" ? flexAlignment : void 0,
|
|
2201
2201
|
justify: orientation === "horizontal" ? flexAlignment : void 0,
|
|
2202
2202
|
wrap: orientation === "horizontal" ? "wrap" : void 0,
|
|
2203
2203
|
role: interactive ? void 0 : "list",
|
|
2204
|
-
className: (0, clsx.default)(standaloneScopeClass, base_legend_module_default.legend, className),
|
|
2204
|
+
className: (0, clsx.default)(standaloneScopeClass, base_legend_module_default.legend, orientation === "horizontal" && base_legend_module_default["legend--horizontal"], className),
|
|
2205
2205
|
style: theme.legend?.containerStyles,
|
|
2206
2206
|
children: labels.map((label, i) => {
|
|
2207
2207
|
const matchedItem = items[i];
|
|
@@ -2626,9 +2626,6 @@ const BaseTooltip = ({ data, top, left, component: Component = LabelValueContent
|
|
|
2626
2626
|
children: content
|
|
2627
2627
|
});
|
|
2628
2628
|
};
|
|
2629
|
-
//#endregion
|
|
2630
|
-
//#region src/components/tooltip/private/bounded-tooltip.tsx
|
|
2631
|
-
const DEFAULT_OFFSET = 10;
|
|
2632
2629
|
const POINTER_HEIGHT = 6;
|
|
2633
2630
|
const clamp = (position, min, max, size) => Math.min(Math.max(position, min), Math.max(min, max - size));
|
|
2634
2631
|
const isClipping = (element) => {
|
|
@@ -2725,7 +2722,7 @@ const getBoundedPosition = ({ left, top, offsetLeft, offsetTop, box, wrapper, bo
|
|
|
2725
2722
|
* @param props.placement - Below-axis, beside without vertical flipping, or automatic flipping.
|
|
2726
2723
|
* @return The tooltip box.
|
|
2727
2724
|
*/
|
|
2728
|
-
const BoundedTooltip = ({ left = 0, top = 0, offsetLeft =
|
|
2725
|
+
const BoundedTooltip = ({ left = 0, top = 0, offsetLeft = 10, offsetTop = 10, style, unstyled = false, className, children, placement = "auto", ...rest }) => {
|
|
2729
2726
|
const nodeRef = (0, react.useRef)(null);
|
|
2730
2727
|
const clipRef = (0, react.useRef)(null);
|
|
2731
2728
|
const [position, setPosition] = (0, react.useState)(null);
|
|
@@ -7457,6 +7454,91 @@ function sanitizeHtml(html) {
|
|
|
7457
7454
|
//#region src/charts/geo-chart/geo-chart.module.scss
|
|
7458
7455
|
var geo_chart_module_default = { "container": "a8ccharts-8hS2IW-container" };
|
|
7459
7456
|
//#endregion
|
|
7457
|
+
//#region src/charts/geo-chart/private/use-tooltip-position.ts
|
|
7458
|
+
const TOOLTIP_CLASS = "google-visualization-tooltip";
|
|
7459
|
+
const isTooltip = (node) => node instanceof HTMLElement && node.classList.contains(TOOLTIP_CLASS);
|
|
7460
|
+
/**
|
|
7461
|
+
* Moves Google's HTML tooltip to where the other chart tooltips sit, just off the cursor. Google places it about 30px away and has no option for it.
|
|
7462
|
+
*
|
|
7463
|
+
* @param containerRef - The element Google draws the chart into.
|
|
7464
|
+
*/
|
|
7465
|
+
function useTooltipPosition(containerRef) {
|
|
7466
|
+
(0, react.useEffect)(() => {
|
|
7467
|
+
const container = containerRef.current;
|
|
7468
|
+
if (!container || typeof MutationObserver === "undefined") return;
|
|
7469
|
+
let pointer = null;
|
|
7470
|
+
let clip = null;
|
|
7471
|
+
const ownStyles = /* @__PURE__ */ new WeakMap();
|
|
7472
|
+
const place = (tooltip) => {
|
|
7473
|
+
const parent = tooltip.offsetParent;
|
|
7474
|
+
if (!pointer || !parent) return;
|
|
7475
|
+
if (clip?.parent !== parent) clip = {
|
|
7476
|
+
parent,
|
|
7477
|
+
element: findClippingAncestor(parent)
|
|
7478
|
+
};
|
|
7479
|
+
const parentRect = parent.getBoundingClientRect();
|
|
7480
|
+
const clipRect = clip.element?.getBoundingClientRect() ?? {
|
|
7481
|
+
left: 0,
|
|
7482
|
+
top: 0,
|
|
7483
|
+
right: window.innerWidth,
|
|
7484
|
+
bottom: window.innerHeight
|
|
7485
|
+
};
|
|
7486
|
+
const { x, y } = getBoundedPosition({
|
|
7487
|
+
left: pointer.x - parentRect.left,
|
|
7488
|
+
top: pointer.y - parentRect.top,
|
|
7489
|
+
offsetLeft: 10,
|
|
7490
|
+
offsetTop: 10,
|
|
7491
|
+
box: {
|
|
7492
|
+
width: tooltip.offsetWidth,
|
|
7493
|
+
height: tooltip.offsetHeight
|
|
7494
|
+
},
|
|
7495
|
+
wrapper: {
|
|
7496
|
+
left: 0,
|
|
7497
|
+
top: 0,
|
|
7498
|
+
right: parentRect.width,
|
|
7499
|
+
bottom: parentRect.height
|
|
7500
|
+
},
|
|
7501
|
+
bounds: {
|
|
7502
|
+
left: clipRect.left - parentRect.left,
|
|
7503
|
+
top: clipRect.top - parentRect.top,
|
|
7504
|
+
right: clipRect.right - parentRect.left,
|
|
7505
|
+
bottom: clipRect.bottom - parentRect.top
|
|
7506
|
+
}
|
|
7507
|
+
});
|
|
7508
|
+
tooltip.style.left = `${x}px`;
|
|
7509
|
+
tooltip.style.top = `${y}px`;
|
|
7510
|
+
ownStyles.set(tooltip, tooltip.style.cssText);
|
|
7511
|
+
};
|
|
7512
|
+
const trackPointer = (event) => {
|
|
7513
|
+
pointer = {
|
|
7514
|
+
x: event.clientX,
|
|
7515
|
+
y: event.clientY
|
|
7516
|
+
};
|
|
7517
|
+
};
|
|
7518
|
+
const observer = new MutationObserver((records) => {
|
|
7519
|
+
const tooltips = /* @__PURE__ */ new Set();
|
|
7520
|
+
for (const record of records) {
|
|
7521
|
+
if (isTooltip(record.target)) tooltips.add(record.target);
|
|
7522
|
+
record.addedNodes.forEach((node) => isTooltip(node) && tooltips.add(node));
|
|
7523
|
+
}
|
|
7524
|
+
for (const tooltip of tooltips) if (ownStyles.get(tooltip) !== tooltip.style.cssText) place(tooltip);
|
|
7525
|
+
});
|
|
7526
|
+
container.addEventListener("mouseover", trackPointer, true);
|
|
7527
|
+
container.addEventListener("mousemove", trackPointer, true);
|
|
7528
|
+
observer.observe(container, {
|
|
7529
|
+
childList: true,
|
|
7530
|
+
subtree: true,
|
|
7531
|
+
attributes: true,
|
|
7532
|
+
attributeFilter: ["style"]
|
|
7533
|
+
});
|
|
7534
|
+
return () => {
|
|
7535
|
+
container.removeEventListener("mouseover", trackPointer, true);
|
|
7536
|
+
container.removeEventListener("mousemove", trackPointer, true);
|
|
7537
|
+
observer.disconnect();
|
|
7538
|
+
};
|
|
7539
|
+
}, [containerRef]);
|
|
7540
|
+
}
|
|
7541
|
+
//#endregion
|
|
7460
7542
|
//#region src/charts/geo-chart/geo-chart.tsx
|
|
7461
7543
|
/**
|
|
7462
7544
|
* External dependencies
|
|
@@ -7499,6 +7581,23 @@ function involvesGeoChartErrorElement(node) {
|
|
|
7499
7581
|
if (!(node instanceof HTMLElement)) return false;
|
|
7500
7582
|
return node.id.startsWith(GOOGLE_CHARTS_ERROR_ID_PREFIX) || node.querySelector(`[id^="${GOOGLE_CHARTS_ERROR_ID_PREFIX}"]`) !== null;
|
|
7501
7583
|
}
|
|
7584
|
+
const isTooltipColumn = (column) => typeof column === "object" && column !== null && "role" in column && column.role === "tooltip";
|
|
7585
|
+
const hasHtmlFlag = (columnOrCell) => typeof columnOrCell === "object" && columnOrCell !== null && "p" in columnOrCell && typeof columnOrCell.p === "object" && columnOrCell.p !== null && "html" in columnOrCell.p && !!columnOrCell.p.html;
|
|
7586
|
+
const sanitizeIfString = (value) => typeof value === "string" ? sanitizeHtml(value) : value;
|
|
7587
|
+
/**
|
|
7588
|
+
* Sanitizes a tooltip cell Google will render as markup, whether a string or a `{ v, f, p }` object.
|
|
7589
|
+
*
|
|
7590
|
+
* @param cell - The tooltip cell.
|
|
7591
|
+
* @return The cell with its markup sanitized.
|
|
7592
|
+
*/
|
|
7593
|
+
function sanitizeTooltipCell(cell) {
|
|
7594
|
+
if (typeof cell !== "object" || cell === null) return sanitizeIfString(cell);
|
|
7595
|
+
return {
|
|
7596
|
+
...cell,
|
|
7597
|
+
..."v" in cell && { v: sanitizeIfString(cell.v) },
|
|
7598
|
+
..."f" in cell && { f: sanitizeIfString(cell.f) }
|
|
7599
|
+
};
|
|
7600
|
+
}
|
|
7502
7601
|
/**
|
|
7503
7602
|
* Normalizes the raw Google Charts error event into the GeoChart error shape.
|
|
7504
7603
|
*
|
|
@@ -7544,6 +7643,7 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7544
7643
|
const scopeElement = useChartScopeElement();
|
|
7545
7644
|
const containerRef = (0, react.useRef)(null);
|
|
7546
7645
|
const reportedErrorIdsRef = (0, react.useRef)(/* @__PURE__ */ new Set());
|
|
7646
|
+
const [isLoaded, setIsLoaded] = (0, react.useState)(false);
|
|
7547
7647
|
(0, react.useEffect)(() => {
|
|
7548
7648
|
const container = containerRef.current;
|
|
7549
7649
|
if (!onError || !container || typeof MutationObserver === "undefined") return;
|
|
@@ -7564,6 +7664,8 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7564
7664
|
reportRenderedErrors();
|
|
7565
7665
|
return () => observer.disconnect();
|
|
7566
7666
|
}, [onError]);
|
|
7667
|
+
useTooltipPosition(containerRef);
|
|
7668
|
+
const handleLoad = (0, react.useCallback)(() => setIsLoaded(true), []);
|
|
7567
7669
|
const loadingPlaceholder = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Center, {
|
|
7568
7670
|
className: (0, clsx.default)("geo-chart", geo_chart_module_default.container, className),
|
|
7569
7671
|
style: {
|
|
@@ -7577,28 +7679,18 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7577
7679
|
const backgroundColorHex = normalizeColorToHex(CATALOG_POINTERS.background, scopeElement, resolveCssVariable) || DEFAULT_BACKGROUND_COLOR;
|
|
7578
7680
|
const defaultFillColorHex = normalizeColorToHex(CATALOG_POINTERS.surfaceSecondary, scopeElement, resolveCssVariable) || DEFAULT_FEATURE_FILL_COLOR;
|
|
7579
7681
|
const sanitizedData = (0, react.useMemo)(() => {
|
|
7580
|
-
if (data.length === 0) return
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
const col = data[0][i];
|
|
7587
|
-
if (typeof col === "object" && col !== null && "role" in col && col.role === "tooltip" && "p" in col && typeof col.p === "object" && col.p !== null && "html" in col.p && col.p.html === true) htmlTooltipIndices.push(i);
|
|
7588
|
-
}
|
|
7589
|
-
if (htmlTooltipIndices.length === 0) return {
|
|
7590
|
-
data,
|
|
7591
|
-
hasHtmlTooltips: false
|
|
7592
|
-
};
|
|
7682
|
+
if (data.length === 0) return data;
|
|
7683
|
+
const tooltipColumns = data[0].flatMap((column, index) => isTooltipColumn(column) ? [{
|
|
7684
|
+
index,
|
|
7685
|
+
isHtml: hasHtmlFlag(column)
|
|
7686
|
+
}] : []);
|
|
7687
|
+
if (tooltipColumns.length === 0) return data;
|
|
7593
7688
|
const sanitizedRows = data.slice(1).map((row) => {
|
|
7594
7689
|
const newRow = [...row];
|
|
7595
|
-
for (const
|
|
7690
|
+
for (const { index, isHtml } of tooltipColumns) if (isHtml || hasHtmlFlag(newRow[index])) newRow[index] = sanitizeTooltipCell(newRow[index]);
|
|
7596
7691
|
return newRow;
|
|
7597
7692
|
});
|
|
7598
|
-
return
|
|
7599
|
-
data: [data[0], ...sanitizedRows],
|
|
7600
|
-
hasHtmlTooltips: true
|
|
7601
|
-
};
|
|
7693
|
+
return [data[0], ...sanitizedRows];
|
|
7602
7694
|
}, [data]);
|
|
7603
7695
|
const options = (0, react.useMemo)(() => ({
|
|
7604
7696
|
...region !== "world" && { region },
|
|
@@ -7611,7 +7703,7 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7611
7703
|
defaultColor: defaultFillColorHex,
|
|
7612
7704
|
tooltip: {
|
|
7613
7705
|
trigger: "focus",
|
|
7614
|
-
isHtml:
|
|
7706
|
+
isHtml: true
|
|
7615
7707
|
},
|
|
7616
7708
|
legend: "none",
|
|
7617
7709
|
keepAspectRatio: true
|
|
@@ -7623,8 +7715,7 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7623
7715
|
lightColorHex,
|
|
7624
7716
|
fullColorHex,
|
|
7625
7717
|
backgroundColorHex,
|
|
7626
|
-
defaultFillColorHex
|
|
7627
|
-
sanitizedData.hasHtmlTooltips
|
|
7718
|
+
defaultFillColorHex
|
|
7628
7719
|
]);
|
|
7629
7720
|
const chartEvents = (0, react.useMemo)(() => {
|
|
7630
7721
|
const readyEvent = {
|
|
@@ -7641,7 +7732,7 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7641
7732
|
}
|
|
7642
7733
|
}];
|
|
7643
7734
|
}, [onError]);
|
|
7644
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
7735
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Center, {
|
|
7645
7736
|
ref: containerRef,
|
|
7646
7737
|
role: "group",
|
|
7647
7738
|
"aria-label": ariaLabel ?? (0, _wordpress_i18n.__)("Geo chart", "jetpack-charts"),
|
|
@@ -7650,16 +7741,16 @@ const GeoChartInternal = ({ className, data, ariaLabel, width, height, region =
|
|
|
7650
7741
|
width,
|
|
7651
7742
|
height
|
|
7652
7743
|
},
|
|
7653
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_google_charts.Chart, {
|
|
7744
|
+
children: [!isLoaded && loadingPlaceholder, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipTheme, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_google_charts.Chart, {
|
|
7654
7745
|
chartType: "GeoChart",
|
|
7655
7746
|
chartPackages: GEO_CHART_PACKAGES,
|
|
7656
7747
|
width,
|
|
7657
7748
|
height,
|
|
7658
|
-
data: sanitizedData
|
|
7749
|
+
data: sanitizedData,
|
|
7659
7750
|
options,
|
|
7660
7751
|
chartEvents,
|
|
7661
|
-
|
|
7662
|
-
})
|
|
7752
|
+
onLoad: handleLoad
|
|
7753
|
+
}) })]
|
|
7663
7754
|
});
|
|
7664
7755
|
};
|
|
7665
7756
|
const GeoChartWithProvider = (props) => {
|
|
@@ -7834,16 +7925,10 @@ const getNormalizedValue = (value, extent) => {
|
|
|
7834
7925
|
return Math.min(1, Math.max(0, (value - min) / (max - min)));
|
|
7835
7926
|
};
|
|
7836
7927
|
const STEPS = 200;
|
|
7837
|
-
const
|
|
7838
|
-
for (let step = 0; step <= STEPS; step++) {
|
|
7839
|
-
const color = mixHexColors(from, to, step / STEPS);
|
|
7840
|
-
if (meets(color)) return color;
|
|
7841
|
-
}
|
|
7842
|
-
return null;
|
|
7843
|
-
};
|
|
7928
|
+
const ramp = (from, to) => Array.from({ length: 201 }, (_, step) => mixHexColors(from, to, step / STEPS));
|
|
7844
7929
|
/**
|
|
7845
|
-
* The two ends of the heatmap fill scale:
|
|
7846
|
-
* low end,
|
|
7930
|
+
* The two ends of the heatmap fill scale: toward 2.5:1 against the background and the empty cell at
|
|
7931
|
+
* the low end, never under 2:1 against the background or the high end, and toward 6:1 at the high end.
|
|
7847
7932
|
*
|
|
7848
7933
|
* @param primary - The resolved primary color, as six-digit hex.
|
|
7849
7934
|
* @param background - The resolved chart background, as six-digit hex.
|
|
@@ -7851,16 +7936,19 @@ const firstMeeting = (from, to, meets) => {
|
|
|
7851
7936
|
* @return The scale ends, as six-digit hex.
|
|
7852
7937
|
*/
|
|
7853
7938
|
const getHeatmapScale = (primary, background, emptyCell) => {
|
|
7854
|
-
const
|
|
7855
|
-
const
|
|
7856
|
-
const
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
const high =
|
|
7861
|
-
const
|
|
7939
|
+
const backgroundLuminance = relativeLuminance(background);
|
|
7940
|
+
const ownSide = relativeLuminance(primary) > backgroundLuminance ? "#ffffff" : "#000000";
|
|
7941
|
+
const otherSide = ownSide === "#ffffff" ? "#000000" : "#ffffff";
|
|
7942
|
+
const extreme = contrastRatio(ownSide, background) >= 6 || contrastRatio(ownSide, background) >= contrastRatio(otherSide, background) ? ownSide : otherSide;
|
|
7943
|
+
const onExtremeSide = (color) => extreme === "#ffffff" ? relativeLuminance(color) > backgroundLuminance : relativeLuminance(color) < backgroundLuminance;
|
|
7944
|
+
const deepening = ramp(primary, extreme);
|
|
7945
|
+
const high = deepening.find((color) => contrastRatio(color, background) >= 6) ?? extreme;
|
|
7946
|
+
const path = [...ramp(background, primary), ...deepening];
|
|
7947
|
+
const spread = path.slice(0, path.indexOf(high) + 1).filter((color) => onExtremeSide(color) && contrastRatio(color, background) >= 2 && contrastRatio(color, high) >= 2);
|
|
7948
|
+
const surroundings = emptyCell ? [background, emptyCell] : [background];
|
|
7949
|
+
const weakest = (color) => Math.min(...surroundings.map((other) => contrastRatio(color, other)));
|
|
7862
7950
|
return {
|
|
7863
|
-
low: (
|
|
7951
|
+
low: spread.find((color) => weakest(color) >= 2.5) ?? spread.find((color) => weakest(color) >= 2) ?? spread.reduce((best, color) => weakest(color) > weakest(best) ? color : best),
|
|
7864
7952
|
high
|
|
7865
7953
|
};
|
|
7866
7954
|
};
|
|
@@ -9162,7 +9250,7 @@ var require_dist$13 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9162
9250
|
var require_dist$12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9163
9251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9164
9252
|
exports.pascalCase = exports.pascalCaseTransformMerge = exports.pascalCaseTransform = void 0;
|
|
9165
|
-
var tslib_1
|
|
9253
|
+
var tslib_1 = require("tslib");
|
|
9166
9254
|
var no_case_1 = require_dist$13();
|
|
9167
9255
|
function pascalCaseTransform(input, index) {
|
|
9168
9256
|
var firstChar = input.charAt(0);
|
|
@@ -9177,7 +9265,7 @@ var require_dist$12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9177
9265
|
exports.pascalCaseTransformMerge = pascalCaseTransformMerge;
|
|
9178
9266
|
function pascalCase(input, options) {
|
|
9179
9267
|
if (options === void 0) options = {};
|
|
9180
|
-
return no_case_1.noCase(input, tslib_1
|
|
9268
|
+
return no_case_1.noCase(input, tslib_1.__assign({
|
|
9181
9269
|
delimiter: "",
|
|
9182
9270
|
transform: pascalCaseTransform
|
|
9183
9271
|
}, options));
|
|
@@ -9189,7 +9277,7 @@ var require_dist$12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9189
9277
|
var require_dist$11 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9190
9278
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9191
9279
|
exports.camelCase = exports.camelCaseTransformMerge = exports.camelCaseTransform = void 0;
|
|
9192
|
-
var tslib_1
|
|
9280
|
+
var tslib_1 = require("tslib");
|
|
9193
9281
|
var pascal_case_1 = require_dist$12();
|
|
9194
9282
|
function camelCaseTransform(input, index) {
|
|
9195
9283
|
if (index === 0) return input.toLowerCase();
|
|
@@ -9203,7 +9291,7 @@ var require_dist$11 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9203
9291
|
exports.camelCaseTransformMerge = camelCaseTransformMerge;
|
|
9204
9292
|
function camelCase(input, options) {
|
|
9205
9293
|
if (options === void 0) options = {};
|
|
9206
|
-
return pascal_case_1.pascalCase(input, tslib_1
|
|
9294
|
+
return pascal_case_1.pascalCase(input, tslib_1.__assign({ transform: camelCaseTransform }, options));
|
|
9207
9295
|
}
|
|
9208
9296
|
exports.camelCase = camelCase;
|
|
9209
9297
|
}));
|
|
@@ -9225,7 +9313,7 @@ var require_dist$10 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9225
9313
|
var require_dist$9 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9226
9314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9227
9315
|
exports.capitalCase = exports.capitalCaseTransform = void 0;
|
|
9228
|
-
var tslib_1
|
|
9316
|
+
var tslib_1 = require("tslib");
|
|
9229
9317
|
var no_case_1 = require_dist$13();
|
|
9230
9318
|
var upper_case_first_1 = require_dist$10();
|
|
9231
9319
|
function capitalCaseTransform(input) {
|
|
@@ -9234,7 +9322,7 @@ var require_dist$9 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9234
9322
|
exports.capitalCaseTransform = capitalCaseTransform;
|
|
9235
9323
|
function capitalCase(input, options) {
|
|
9236
9324
|
if (options === void 0) options = {};
|
|
9237
|
-
return no_case_1.noCase(input, tslib_1
|
|
9325
|
+
return no_case_1.noCase(input, tslib_1.__assign({
|
|
9238
9326
|
delimiter: " ",
|
|
9239
9327
|
transform: capitalCaseTransform
|
|
9240
9328
|
}, options));
|
|
@@ -9294,12 +9382,12 @@ var require_dist$8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9294
9382
|
var require_dist$7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9295
9383
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9296
9384
|
exports.constantCase = void 0;
|
|
9297
|
-
var tslib_1
|
|
9385
|
+
var tslib_1 = require("tslib");
|
|
9298
9386
|
var no_case_1 = require_dist$13();
|
|
9299
9387
|
var upper_case_1 = require_dist$8();
|
|
9300
9388
|
function constantCase(input, options) {
|
|
9301
9389
|
if (options === void 0) options = {};
|
|
9302
|
-
return no_case_1.noCase(input, tslib_1
|
|
9390
|
+
return no_case_1.noCase(input, tslib_1.__assign({
|
|
9303
9391
|
delimiter: "_",
|
|
9304
9392
|
transform: upper_case_1.upperCase
|
|
9305
9393
|
}, options));
|
|
@@ -9311,11 +9399,11 @@ var require_dist$7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9311
9399
|
var require_dist$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9312
9400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9313
9401
|
exports.dotCase = void 0;
|
|
9314
|
-
var tslib_1
|
|
9402
|
+
var tslib_1 = require("tslib");
|
|
9315
9403
|
var no_case_1 = require_dist$13();
|
|
9316
9404
|
function dotCase(input, options) {
|
|
9317
9405
|
if (options === void 0) options = {};
|
|
9318
|
-
return no_case_1.noCase(input, tslib_1
|
|
9406
|
+
return no_case_1.noCase(input, tslib_1.__assign({ delimiter: "." }, options));
|
|
9319
9407
|
}
|
|
9320
9408
|
exports.dotCase = dotCase;
|
|
9321
9409
|
}));
|
|
@@ -9324,11 +9412,11 @@ var require_dist$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9324
9412
|
var require_dist$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9325
9413
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9326
9414
|
exports.headerCase = void 0;
|
|
9327
|
-
var tslib_1
|
|
9415
|
+
var tslib_1 = require("tslib");
|
|
9328
9416
|
var capital_case_1 = require_dist$9();
|
|
9329
9417
|
function headerCase(input, options) {
|
|
9330
9418
|
if (options === void 0) options = {};
|
|
9331
|
-
return capital_case_1.capitalCase(input, tslib_1
|
|
9419
|
+
return capital_case_1.capitalCase(input, tslib_1.__assign({ delimiter: "-" }, options));
|
|
9332
9420
|
}
|
|
9333
9421
|
exports.headerCase = headerCase;
|
|
9334
9422
|
}));
|
|
@@ -9337,11 +9425,11 @@ var require_dist$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9337
9425
|
var require_dist$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9338
9426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9339
9427
|
exports.paramCase = void 0;
|
|
9340
|
-
var tslib_1
|
|
9428
|
+
var tslib_1 = require("tslib");
|
|
9341
9429
|
var dot_case_1 = require_dist$6();
|
|
9342
9430
|
function paramCase(input, options) {
|
|
9343
9431
|
if (options === void 0) options = {};
|
|
9344
|
-
return dot_case_1.dotCase(input, tslib_1
|
|
9432
|
+
return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "-" }, options));
|
|
9345
9433
|
}
|
|
9346
9434
|
exports.paramCase = paramCase;
|
|
9347
9435
|
}));
|
|
@@ -9350,11 +9438,11 @@ var require_dist$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9350
9438
|
var require_dist$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9351
9439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9352
9440
|
exports.pathCase = void 0;
|
|
9353
|
-
var tslib_1
|
|
9441
|
+
var tslib_1 = require("tslib");
|
|
9354
9442
|
var dot_case_1 = require_dist$6();
|
|
9355
9443
|
function pathCase(input, options) {
|
|
9356
9444
|
if (options === void 0) options = {};
|
|
9357
|
-
return dot_case_1.dotCase(input, tslib_1
|
|
9445
|
+
return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "/" }, options));
|
|
9358
9446
|
}
|
|
9359
9447
|
exports.pathCase = pathCase;
|
|
9360
9448
|
}));
|
|
@@ -9363,7 +9451,7 @@ var require_dist$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9363
9451
|
var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9364
9452
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9365
9453
|
exports.sentenceCase = exports.sentenceCaseTransform = void 0;
|
|
9366
|
-
var tslib_1
|
|
9454
|
+
var tslib_1 = require("tslib");
|
|
9367
9455
|
var no_case_1 = require_dist$13();
|
|
9368
9456
|
var upper_case_first_1 = require_dist$10();
|
|
9369
9457
|
function sentenceCaseTransform(input, index) {
|
|
@@ -9374,7 +9462,7 @@ var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9374
9462
|
exports.sentenceCaseTransform = sentenceCaseTransform;
|
|
9375
9463
|
function sentenceCase(input, options) {
|
|
9376
9464
|
if (options === void 0) options = {};
|
|
9377
|
-
return no_case_1.noCase(input, tslib_1
|
|
9465
|
+
return no_case_1.noCase(input, tslib_1.__assign({
|
|
9378
9466
|
delimiter: " ",
|
|
9379
9467
|
transform: sentenceCaseTransform
|
|
9380
9468
|
}, options));
|
|
@@ -9386,11 +9474,11 @@ var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9386
9474
|
var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9387
9475
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9388
9476
|
exports.snakeCase = void 0;
|
|
9389
|
-
var tslib_1
|
|
9477
|
+
var tslib_1 = require("tslib");
|
|
9390
9478
|
var dot_case_1 = require_dist$6();
|
|
9391
9479
|
function snakeCase(input, options) {
|
|
9392
9480
|
if (options === void 0) options = {};
|
|
9393
|
-
return dot_case_1.dotCase(input, tslib_1
|
|
9481
|
+
return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "_" }, options));
|
|
9394
9482
|
}
|
|
9395
9483
|
exports.snakeCase = snakeCase;
|
|
9396
9484
|
}));
|
|
@@ -9412,10 +9500,10 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9412
9500
|
tslib_1.__exportStar(require_dist$1(), exports);
|
|
9413
9501
|
}));
|
|
9414
9502
|
//#endregion
|
|
9415
|
-
//#region ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
9503
|
+
//#region ../../../node_modules/.pnpm/@wordpress+warning@3.57.0/node_modules/@wordpress/warning/build-module/utils.mjs
|
|
9416
9504
|
var logged = /* @__PURE__ */ new Set();
|
|
9417
9505
|
//#endregion
|
|
9418
|
-
//#region ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
9506
|
+
//#region ../../../node_modules/.pnpm/@wordpress+warning@3.57.0/node_modules/@wordpress/warning/build-module/index.mjs
|
|
9419
9507
|
function isDev() {
|
|
9420
9508
|
return globalThis.SCRIPT_DEBUG === true;
|
|
9421
9509
|
}
|
|
@@ -9429,7 +9517,7 @@ function warning(message) {
|
|
|
9429
9517
|
logged.add(message);
|
|
9430
9518
|
}
|
|
9431
9519
|
//#endregion
|
|
9432
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
9520
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.mjs
|
|
9433
9521
|
function useUpdateEffect(effect, deps) {
|
|
9434
9522
|
const mountedRef = (0, react.useRef)(false);
|
|
9435
9523
|
(0, react.useEffect)(() => {
|
|
@@ -10038,7 +10126,7 @@ function memoize(fn) {
|
|
|
10038
10126
|
}
|
|
10039
10127
|
//#endregion
|
|
10040
10128
|
//#region ../../../node_modules/.pnpm/@emotion+cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
|
10041
|
-
var isBrowser$
|
|
10129
|
+
var isBrowser$2 = typeof document !== "undefined";
|
|
10042
10130
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
10043
10131
|
var previous = 0;
|
|
10044
10132
|
var character = 0;
|
|
@@ -10211,7 +10299,7 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
10211
10299
|
}
|
|
10212
10300
|
}
|
|
10213
10301
|
};
|
|
10214
|
-
var getServerStylisCache = isBrowser$
|
|
10302
|
+
var getServerStylisCache = isBrowser$2 ? void 0 : weakMemoize(function() {
|
|
10215
10303
|
return memoize(function() {
|
|
10216
10304
|
return {};
|
|
10217
10305
|
});
|
|
@@ -10219,7 +10307,7 @@ var getServerStylisCache = isBrowser$3 ? void 0 : weakMemoize(function() {
|
|
|
10219
10307
|
var defaultStylisPlugins = [prefixer];
|
|
10220
10308
|
var createCache = function createCache(options) {
|
|
10221
10309
|
var key = options.key;
|
|
10222
|
-
if (isBrowser$
|
|
10310
|
+
if (isBrowser$2 && key === "css") {
|
|
10223
10311
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
10224
10312
|
Array.prototype.forEach.call(ssrStyles, function(node) {
|
|
10225
10313
|
if (node.getAttribute("data-emotion").indexOf(" ") === -1) return;
|
|
@@ -10231,7 +10319,7 @@ var createCache = function createCache(options) {
|
|
|
10231
10319
|
var inserted = {};
|
|
10232
10320
|
var container;
|
|
10233
10321
|
var nodesToHydrate = [];
|
|
10234
|
-
if (isBrowser$
|
|
10322
|
+
if (isBrowser$2) {
|
|
10235
10323
|
container = options.container || document.head;
|
|
10236
10324
|
Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function(node) {
|
|
10237
10325
|
var attrib = node.getAttribute("data-emotion").split(" ");
|
|
@@ -10296,358 +10384,8 @@ var createCache = function createCache(options) {
|
|
|
10296
10384
|
return cache;
|
|
10297
10385
|
};
|
|
10298
10386
|
//#endregion
|
|
10299
|
-
//#region ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
|
|
10300
|
-
/** @license React v16.13.1
|
|
10301
|
-
* react-is.production.min.js
|
|
10302
|
-
*
|
|
10303
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10304
|
-
*
|
|
10305
|
-
* This source code is licensed under the MIT license found in the
|
|
10306
|
-
* LICENSE file in the root directory of this source tree.
|
|
10307
|
-
*/
|
|
10308
|
-
var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10309
|
-
var b = "function" === typeof Symbol && Symbol.for;
|
|
10310
|
-
var c = b ? Symbol.for("react.element") : 60103;
|
|
10311
|
-
var d = b ? Symbol.for("react.portal") : 60106;
|
|
10312
|
-
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
10313
|
-
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
10314
|
-
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
10315
|
-
var h = b ? Symbol.for("react.provider") : 60109;
|
|
10316
|
-
var k = b ? Symbol.for("react.context") : 60110;
|
|
10317
|
-
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
10318
|
-
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
10319
|
-
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
10320
|
-
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
10321
|
-
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
10322
|
-
var r = b ? Symbol.for("react.memo") : 60115;
|
|
10323
|
-
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
10324
|
-
var v = b ? Symbol.for("react.block") : 60121;
|
|
10325
|
-
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
10326
|
-
var x = b ? Symbol.for("react.responder") : 60118;
|
|
10327
|
-
var y = b ? Symbol.for("react.scope") : 60119;
|
|
10328
|
-
function z(a) {
|
|
10329
|
-
if ("object" === typeof a && null !== a) {
|
|
10330
|
-
var u = a.$$typeof;
|
|
10331
|
-
switch (u) {
|
|
10332
|
-
case c: switch (a = a.type, a) {
|
|
10333
|
-
case l:
|
|
10334
|
-
case m:
|
|
10335
|
-
case e:
|
|
10336
|
-
case g:
|
|
10337
|
-
case f:
|
|
10338
|
-
case p: return a;
|
|
10339
|
-
default: switch (a = a && a.$$typeof, a) {
|
|
10340
|
-
case k:
|
|
10341
|
-
case n:
|
|
10342
|
-
case t:
|
|
10343
|
-
case r:
|
|
10344
|
-
case h: return a;
|
|
10345
|
-
default: return u;
|
|
10346
|
-
}
|
|
10347
|
-
}
|
|
10348
|
-
case d: return u;
|
|
10349
|
-
}
|
|
10350
|
-
}
|
|
10351
|
-
}
|
|
10352
|
-
function A(a) {
|
|
10353
|
-
return z(a) === m;
|
|
10354
|
-
}
|
|
10355
|
-
exports.AsyncMode = l;
|
|
10356
|
-
exports.ConcurrentMode = m;
|
|
10357
|
-
exports.ContextConsumer = k;
|
|
10358
|
-
exports.ContextProvider = h;
|
|
10359
|
-
exports.Element = c;
|
|
10360
|
-
exports.ForwardRef = n;
|
|
10361
|
-
exports.Fragment = e;
|
|
10362
|
-
exports.Lazy = t;
|
|
10363
|
-
exports.Memo = r;
|
|
10364
|
-
exports.Portal = d;
|
|
10365
|
-
exports.Profiler = g;
|
|
10366
|
-
exports.StrictMode = f;
|
|
10367
|
-
exports.Suspense = p;
|
|
10368
|
-
exports.isAsyncMode = function(a) {
|
|
10369
|
-
return A(a) || z(a) === l;
|
|
10370
|
-
};
|
|
10371
|
-
exports.isConcurrentMode = A;
|
|
10372
|
-
exports.isContextConsumer = function(a) {
|
|
10373
|
-
return z(a) === k;
|
|
10374
|
-
};
|
|
10375
|
-
exports.isContextProvider = function(a) {
|
|
10376
|
-
return z(a) === h;
|
|
10377
|
-
};
|
|
10378
|
-
exports.isElement = function(a) {
|
|
10379
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
10380
|
-
};
|
|
10381
|
-
exports.isForwardRef = function(a) {
|
|
10382
|
-
return z(a) === n;
|
|
10383
|
-
};
|
|
10384
|
-
exports.isFragment = function(a) {
|
|
10385
|
-
return z(a) === e;
|
|
10386
|
-
};
|
|
10387
|
-
exports.isLazy = function(a) {
|
|
10388
|
-
return z(a) === t;
|
|
10389
|
-
};
|
|
10390
|
-
exports.isMemo = function(a) {
|
|
10391
|
-
return z(a) === r;
|
|
10392
|
-
};
|
|
10393
|
-
exports.isPortal = function(a) {
|
|
10394
|
-
return z(a) === d;
|
|
10395
|
-
};
|
|
10396
|
-
exports.isProfiler = function(a) {
|
|
10397
|
-
return z(a) === g;
|
|
10398
|
-
};
|
|
10399
|
-
exports.isStrictMode = function(a) {
|
|
10400
|
-
return z(a) === f;
|
|
10401
|
-
};
|
|
10402
|
-
exports.isSuspense = function(a) {
|
|
10403
|
-
return z(a) === p;
|
|
10404
|
-
};
|
|
10405
|
-
exports.isValidElementType = function(a) {
|
|
10406
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
10407
|
-
};
|
|
10408
|
-
exports.typeOf = z;
|
|
10409
|
-
}));
|
|
10410
|
-
//#endregion
|
|
10411
|
-
//#region ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
10412
|
-
/** @license React v16.13.1
|
|
10413
|
-
* react-is.development.js
|
|
10414
|
-
*
|
|
10415
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10416
|
-
*
|
|
10417
|
-
* This source code is licensed under the MIT license found in the
|
|
10418
|
-
* LICENSE file in the root directory of this source tree.
|
|
10419
|
-
*/
|
|
10420
|
-
var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10421
|
-
if (process.env.NODE_ENV !== "production") (function() {
|
|
10422
|
-
"use strict";
|
|
10423
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
10424
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
10425
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
10426
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
10427
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
10428
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
10429
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
10430
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
10431
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
10432
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
10433
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
10434
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
10435
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
10436
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
10437
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
10438
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
10439
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
10440
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
10441
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
10442
|
-
function isValidElementType(type) {
|
|
10443
|
-
return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
10444
|
-
}
|
|
10445
|
-
function typeOf(object) {
|
|
10446
|
-
if (typeof object === "object" && object !== null) {
|
|
10447
|
-
var $$typeof = object.$$typeof;
|
|
10448
|
-
switch ($$typeof) {
|
|
10449
|
-
case REACT_ELEMENT_TYPE:
|
|
10450
|
-
var type = object.type;
|
|
10451
|
-
switch (type) {
|
|
10452
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
10453
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
10454
|
-
case REACT_FRAGMENT_TYPE:
|
|
10455
|
-
case REACT_PROFILER_TYPE:
|
|
10456
|
-
case REACT_STRICT_MODE_TYPE:
|
|
10457
|
-
case REACT_SUSPENSE_TYPE: return type;
|
|
10458
|
-
default:
|
|
10459
|
-
var $$typeofType = type && type.$$typeof;
|
|
10460
|
-
switch ($$typeofType) {
|
|
10461
|
-
case REACT_CONTEXT_TYPE:
|
|
10462
|
-
case REACT_FORWARD_REF_TYPE:
|
|
10463
|
-
case REACT_LAZY_TYPE:
|
|
10464
|
-
case REACT_MEMO_TYPE:
|
|
10465
|
-
case REACT_PROVIDER_TYPE: return $$typeofType;
|
|
10466
|
-
default: return $$typeof;
|
|
10467
|
-
}
|
|
10468
|
-
}
|
|
10469
|
-
case REACT_PORTAL_TYPE: return $$typeof;
|
|
10470
|
-
}
|
|
10471
|
-
}
|
|
10472
|
-
}
|
|
10473
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
10474
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
10475
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
10476
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
10477
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
10478
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
10479
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
10480
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
10481
|
-
var Memo = REACT_MEMO_TYPE;
|
|
10482
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
10483
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
10484
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
10485
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
10486
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
10487
|
-
function isAsyncMode(object) {
|
|
10488
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
10489
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
10490
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
10491
|
-
}
|
|
10492
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
10493
|
-
}
|
|
10494
|
-
function isConcurrentMode(object) {
|
|
10495
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
10496
|
-
}
|
|
10497
|
-
function isContextConsumer(object) {
|
|
10498
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
10499
|
-
}
|
|
10500
|
-
function isContextProvider(object) {
|
|
10501
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
10502
|
-
}
|
|
10503
|
-
function isElement(object) {
|
|
10504
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
10505
|
-
}
|
|
10506
|
-
function isForwardRef(object) {
|
|
10507
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
10508
|
-
}
|
|
10509
|
-
function isFragment(object) {
|
|
10510
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
10511
|
-
}
|
|
10512
|
-
function isLazy(object) {
|
|
10513
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
10514
|
-
}
|
|
10515
|
-
function isMemo(object) {
|
|
10516
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
10517
|
-
}
|
|
10518
|
-
function isPortal(object) {
|
|
10519
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
10520
|
-
}
|
|
10521
|
-
function isProfiler(object) {
|
|
10522
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
10523
|
-
}
|
|
10524
|
-
function isStrictMode(object) {
|
|
10525
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
10526
|
-
}
|
|
10527
|
-
function isSuspense(object) {
|
|
10528
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
10529
|
-
}
|
|
10530
|
-
exports.AsyncMode = AsyncMode;
|
|
10531
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
10532
|
-
exports.ContextConsumer = ContextConsumer;
|
|
10533
|
-
exports.ContextProvider = ContextProvider;
|
|
10534
|
-
exports.Element = Element;
|
|
10535
|
-
exports.ForwardRef = ForwardRef;
|
|
10536
|
-
exports.Fragment = Fragment;
|
|
10537
|
-
exports.Lazy = Lazy;
|
|
10538
|
-
exports.Memo = Memo;
|
|
10539
|
-
exports.Portal = Portal;
|
|
10540
|
-
exports.Profiler = Profiler;
|
|
10541
|
-
exports.StrictMode = StrictMode;
|
|
10542
|
-
exports.Suspense = Suspense;
|
|
10543
|
-
exports.isAsyncMode = isAsyncMode;
|
|
10544
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
10545
|
-
exports.isContextConsumer = isContextConsumer;
|
|
10546
|
-
exports.isContextProvider = isContextProvider;
|
|
10547
|
-
exports.isElement = isElement;
|
|
10548
|
-
exports.isForwardRef = isForwardRef;
|
|
10549
|
-
exports.isFragment = isFragment;
|
|
10550
|
-
exports.isLazy = isLazy;
|
|
10551
|
-
exports.isMemo = isMemo;
|
|
10552
|
-
exports.isPortal = isPortal;
|
|
10553
|
-
exports.isProfiler = isProfiler;
|
|
10554
|
-
exports.isStrictMode = isStrictMode;
|
|
10555
|
-
exports.isSuspense = isSuspense;
|
|
10556
|
-
exports.isValidElementType = isValidElementType;
|
|
10557
|
-
exports.typeOf = typeOf;
|
|
10558
|
-
})();
|
|
10559
|
-
}));
|
|
10560
|
-
//#endregion
|
|
10561
|
-
//#region ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
|
10562
|
-
var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10563
|
-
if (process.env.NODE_ENV === "production") module.exports = require_react_is_production_min();
|
|
10564
|
-
else module.exports = require_react_is_development();
|
|
10565
|
-
}));
|
|
10566
|
-
//#endregion
|
|
10567
|
-
//#region ../../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
10568
|
-
var require_hoist_non_react_statics_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10569
|
-
var reactIs = require_react_is();
|
|
10570
|
-
/**
|
|
10571
|
-
* Copyright 2015, Yahoo! Inc.
|
|
10572
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
10573
|
-
*/
|
|
10574
|
-
var REACT_STATICS = {
|
|
10575
|
-
childContextTypes: true,
|
|
10576
|
-
contextType: true,
|
|
10577
|
-
contextTypes: true,
|
|
10578
|
-
defaultProps: true,
|
|
10579
|
-
displayName: true,
|
|
10580
|
-
getDefaultProps: true,
|
|
10581
|
-
getDerivedStateFromError: true,
|
|
10582
|
-
getDerivedStateFromProps: true,
|
|
10583
|
-
mixins: true,
|
|
10584
|
-
propTypes: true,
|
|
10585
|
-
type: true
|
|
10586
|
-
};
|
|
10587
|
-
var KNOWN_STATICS = {
|
|
10588
|
-
name: true,
|
|
10589
|
-
length: true,
|
|
10590
|
-
prototype: true,
|
|
10591
|
-
caller: true,
|
|
10592
|
-
callee: true,
|
|
10593
|
-
arguments: true,
|
|
10594
|
-
arity: true
|
|
10595
|
-
};
|
|
10596
|
-
var FORWARD_REF_STATICS = {
|
|
10597
|
-
"$$typeof": true,
|
|
10598
|
-
render: true,
|
|
10599
|
-
defaultProps: true,
|
|
10600
|
-
displayName: true,
|
|
10601
|
-
propTypes: true
|
|
10602
|
-
};
|
|
10603
|
-
var MEMO_STATICS = {
|
|
10604
|
-
"$$typeof": true,
|
|
10605
|
-
compare: true,
|
|
10606
|
-
defaultProps: true,
|
|
10607
|
-
displayName: true,
|
|
10608
|
-
propTypes: true,
|
|
10609
|
-
type: true
|
|
10610
|
-
};
|
|
10611
|
-
var TYPE_STATICS = {};
|
|
10612
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
10613
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
10614
|
-
function getStatics(component) {
|
|
10615
|
-
if (reactIs.isMemo(component)) return MEMO_STATICS;
|
|
10616
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
10617
|
-
}
|
|
10618
|
-
var defineProperty = Object.defineProperty;
|
|
10619
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
10620
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
10621
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
10622
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
10623
|
-
var objectPrototype = Object.prototype;
|
|
10624
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
10625
|
-
if (typeof sourceComponent !== "string") {
|
|
10626
|
-
if (objectPrototype) {
|
|
10627
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
10628
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
10629
|
-
}
|
|
10630
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
10631
|
-
if (getOwnPropertySymbols) keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
10632
|
-
var targetStatics = getStatics(targetComponent);
|
|
10633
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
10634
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
10635
|
-
var key = keys[i];
|
|
10636
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
10637
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
10638
|
-
try {
|
|
10639
|
-
defineProperty(targetComponent, key, descriptor);
|
|
10640
|
-
} catch (e) {}
|
|
10641
|
-
}
|
|
10642
|
-
}
|
|
10643
|
-
}
|
|
10644
|
-
return targetComponent;
|
|
10645
|
-
}
|
|
10646
|
-
module.exports = hoistNonReactStatics;
|
|
10647
|
-
}));
|
|
10648
|
-
//#endregion
|
|
10649
10387
|
//#region ../../../node_modules/.pnpm/@emotion+utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js
|
|
10650
|
-
var isBrowser$
|
|
10388
|
+
var isBrowser$1 = typeof document !== "undefined";
|
|
10651
10389
|
function getRegisteredStyles$1(registered, registeredStyles, classNames) {
|
|
10652
10390
|
var rawClassName = "";
|
|
10653
10391
|
classNames.split(" ").forEach(function(className) {
|
|
@@ -10658,7 +10396,7 @@ function getRegisteredStyles$1(registered, registeredStyles, classNames) {
|
|
|
10658
10396
|
}
|
|
10659
10397
|
var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
10660
10398
|
var className = cache.key + "-" + serialized.name;
|
|
10661
|
-
if ((isStringTag === false || isBrowser$
|
|
10399
|
+
if ((isStringTag === false || isBrowser$1 === false && cache.compat !== void 0) && cache.registered[className] === void 0) cache.registered[className] = serialized.styles;
|
|
10662
10400
|
};
|
|
10663
10401
|
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
10664
10402
|
registerStyles(cache, serialized, isStringTag);
|
|
@@ -10668,10 +10406,10 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
10668
10406
|
var current = serialized;
|
|
10669
10407
|
do {
|
|
10670
10408
|
var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
|
|
10671
|
-
if (!isBrowser$
|
|
10409
|
+
if (!isBrowser$1 && maybeStyles !== void 0) stylesForSSR += maybeStyles;
|
|
10672
10410
|
current = current.next;
|
|
10673
10411
|
} while (current !== void 0);
|
|
10674
|
-
if (!isBrowser$
|
|
10412
|
+
if (!isBrowser$1 && stylesForSSR.length !== 0) return stylesForSSR;
|
|
10675
10413
|
}
|
|
10676
10414
|
};
|
|
10677
10415
|
//#endregion
|
|
@@ -10749,7 +10487,7 @@ var unitlessKeys = {
|
|
|
10749
10487
|
};
|
|
10750
10488
|
//#endregion
|
|
10751
10489
|
//#region ../../../node_modules/.pnpm/@emotion+serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
10752
|
-
var isDevelopment
|
|
10490
|
+
var isDevelopment = false;
|
|
10753
10491
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
10754
10492
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
10755
10493
|
var isCustomProperty = function isCustomProperty(property) {
|
|
@@ -10829,7 +10567,7 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
10829
10567
|
if (registered != null && registered[asString] !== void 0) string += key + "{" + registered[asString] + "}";
|
|
10830
10568
|
else if (isProcessableValue(asString)) string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
10831
10569
|
} else {
|
|
10832
|
-
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment
|
|
10570
|
+
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment) throw new Error(noComponentSelectorMessage);
|
|
10833
10571
|
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
10834
10572
|
for (var _i = 0; _i < value.length; _i++) if (isProcessableValue(value[_i])) string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
10835
10573
|
} else {
|
|
@@ -10872,101 +10610,17 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
10872
10610
|
next: cursor
|
|
10873
10611
|
};
|
|
10874
10612
|
}
|
|
10613
|
+
react["useInsertionEffect"] && react["useInsertionEffect"] || react.useLayoutEffect;
|
|
10875
10614
|
//#endregion
|
|
10876
|
-
//#region ../../../node_modules/.pnpm/@emotion+
|
|
10877
|
-
var isBrowser$1 = typeof document !== "undefined";
|
|
10878
|
-
var syncFallback = function syncFallback(create) {
|
|
10879
|
-
return create();
|
|
10880
|
-
};
|
|
10881
|
-
var useInsertionEffect = react["useInsertionEffect"] ? react["useInsertionEffect"] : false;
|
|
10882
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
10883
|
-
useInsertionEffect || react.useLayoutEffect;
|
|
10615
|
+
//#region ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.31_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
10884
10616
|
var isBrowser = typeof document !== "undefined";
|
|
10885
10617
|
var EmotionCacheContext = /* #__PURE__ */ react.createContext(typeof HTMLElement !== "undefined" ? /* #__PURE__ */ createCache({ key: "css" }) : null);
|
|
10886
10618
|
EmotionCacheContext.Provider;
|
|
10887
10619
|
var __unsafe_useEmotionCache = function useEmotionCache() {
|
|
10888
10620
|
return (0, react.useContext)(EmotionCacheContext);
|
|
10889
10621
|
};
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
return func(props, (0, react.useContext)(EmotionCacheContext), ref);
|
|
10893
|
-
});
|
|
10894
|
-
};
|
|
10895
|
-
if (!isBrowser) withEmotionCache = function withEmotionCache(func) {
|
|
10896
|
-
return function(props) {
|
|
10897
|
-
var cache = (0, react.useContext)(EmotionCacheContext);
|
|
10898
|
-
if (cache === null) {
|
|
10899
|
-
cache = createCache({ key: "css" });
|
|
10900
|
-
return /*#__PURE__*/ react.createElement(EmotionCacheContext.Provider, { value: cache }, func(props, cache));
|
|
10901
|
-
} else return func(props, cache);
|
|
10902
|
-
};
|
|
10903
|
-
};
|
|
10904
|
-
var ThemeContext = /* #__PURE__ */ react.createContext({});
|
|
10905
|
-
var hasOwn = {}.hasOwnProperty;
|
|
10906
|
-
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
|
|
10907
|
-
var createEmotionProps = function createEmotionProps(type, props) {
|
|
10908
|
-
var newProps = {};
|
|
10909
|
-
for (var _key in props) if (hasOwn.call(props, _key)) newProps[_key] = props[_key];
|
|
10910
|
-
newProps[typePropName] = type;
|
|
10911
|
-
return newProps;
|
|
10912
|
-
};
|
|
10913
|
-
var Insertion = function Insertion(_ref) {
|
|
10914
|
-
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
10915
|
-
registerStyles(cache, serialized, isStringTag);
|
|
10916
|
-
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
10917
|
-
return insertStyles(cache, serialized, isStringTag);
|
|
10918
|
-
});
|
|
10919
|
-
if (!isBrowser && rules !== void 0) {
|
|
10920
|
-
var _ref2;
|
|
10921
|
-
var serializedNames = serialized.name;
|
|
10922
|
-
var next = serialized.next;
|
|
10923
|
-
while (next !== void 0) {
|
|
10924
|
-
serializedNames += " " + next.name;
|
|
10925
|
-
next = next.next;
|
|
10926
|
-
}
|
|
10927
|
-
return /*#__PURE__*/ react.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = { __html: rules }, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
10928
|
-
}
|
|
10929
|
-
return null;
|
|
10930
|
-
};
|
|
10931
|
-
var Emotion$1 = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
10932
|
-
var cssProp = props.css;
|
|
10933
|
-
if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) cssProp = cache.registered[cssProp];
|
|
10934
|
-
var WrappedComponent = props[typePropName];
|
|
10935
|
-
var registeredStyles = [cssProp];
|
|
10936
|
-
var className = "";
|
|
10937
|
-
if (typeof props.className === "string") className = getRegisteredStyles$1(cache.registered, registeredStyles, props.className);
|
|
10938
|
-
else if (props.className != null) className = props.className + " ";
|
|
10939
|
-
var serialized = serializeStyles(registeredStyles, void 0, react.useContext(ThemeContext));
|
|
10940
|
-
className += cache.key + "-" + serialized.name;
|
|
10941
|
-
var newProps = {};
|
|
10942
|
-
for (var _key2 in props) if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true) newProps[_key2] = props[_key2];
|
|
10943
|
-
newProps.className = className;
|
|
10944
|
-
if (ref) newProps.ref = ref;
|
|
10945
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Insertion, {
|
|
10946
|
-
cache,
|
|
10947
|
-
serialized,
|
|
10948
|
-
isStringTag: typeof WrappedComponent === "string"
|
|
10949
|
-
}), /*#__PURE__*/ react.createElement(WrappedComponent, newProps));
|
|
10950
|
-
});
|
|
10951
|
-
require_hoist_non_react_statics_cjs();
|
|
10952
|
-
var jsx = function jsx(type, props) {
|
|
10953
|
-
var args = arguments;
|
|
10954
|
-
if (props == null || !hasOwn.call(props, "css")) return react.createElement.apply(void 0, args);
|
|
10955
|
-
var argsLength = args.length;
|
|
10956
|
-
var createElementArgArray = new Array(argsLength);
|
|
10957
|
-
createElementArgArray[0] = Emotion$1;
|
|
10958
|
-
createElementArgArray[1] = createEmotionProps(type, props);
|
|
10959
|
-
for (var i = 2; i < argsLength; i++) createElementArgArray[i] = args[i];
|
|
10960
|
-
return react.createElement.apply(null, createElementArgArray);
|
|
10961
|
-
};
|
|
10962
|
-
(function(_jsx) {
|
|
10963
|
-
var JSX;
|
|
10964
|
-
JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
|
|
10965
|
-
})(jsx || (jsx = {}));
|
|
10966
|
-
function css$1() {
|
|
10967
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
10968
|
-
return serializeStyles(args);
|
|
10969
|
-
}
|
|
10622
|
+
if (!isBrowser);
|
|
10623
|
+
({}).hasOwnProperty;
|
|
10970
10624
|
//#endregion
|
|
10971
10625
|
//#region ../../../node_modules/.pnpm/@emotion+css@11.13.5/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
10972
10626
|
function insertWithoutScoping(cache, serialized) {
|
|
@@ -11067,7 +10721,7 @@ _createEmotion.css;
|
|
|
11067
10721
|
_createEmotion.sheet;
|
|
11068
10722
|
_createEmotion.cache;
|
|
11069
10723
|
//#endregion
|
|
11070
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10724
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.mjs
|
|
11071
10725
|
var isSerializedStyles = (o) => typeof o !== "undefined" && o !== null && ["name", "styles"].every((p) => typeof o[p] !== "undefined");
|
|
11072
10726
|
var useCx = () => {
|
|
11073
10727
|
const cache = __unsafe_useEmotionCache();
|
|
@@ -11174,140 +10828,7 @@ function memize(fn, options) {
|
|
|
11174
10828
|
return memoized;
|
|
11175
10829
|
}
|
|
11176
10830
|
//#endregion
|
|
11177
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11178
|
-
var white = "#fff";
|
|
11179
|
-
var GRAY = {
|
|
11180
|
-
900: "#1e1e1e",
|
|
11181
|
-
800: "#2f2f2f",
|
|
11182
|
-
/** Meets 4.6:1 text contrast against white. */
|
|
11183
|
-
700: "#757575",
|
|
11184
|
-
/** Meets 3:1 UI or large text contrast against white. */
|
|
11185
|
-
600: "#949494",
|
|
11186
|
-
400: "#ccc",
|
|
11187
|
-
/** Used for most borders. */
|
|
11188
|
-
300: "#ddd",
|
|
11189
|
-
/** Used sparingly for light borders. */
|
|
11190
|
-
200: "#e0e0e0",
|
|
11191
|
-
/** Used for light gray backgrounds. */
|
|
11192
|
-
100: "#f0f0f0"
|
|
11193
|
-
};
|
|
11194
|
-
var ALERT = {
|
|
11195
|
-
yellow: "#f0b849",
|
|
11196
|
-
red: "#d94f4f",
|
|
11197
|
-
green: "#4ab866"
|
|
11198
|
-
};
|
|
11199
|
-
var THEME = {
|
|
11200
|
-
accent: `var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))`,
|
|
11201
|
-
accentDarker10: `var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))`,
|
|
11202
|
-
accentDarker20: `var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))`,
|
|
11203
|
-
/** Used when placing text on the accent color. */
|
|
11204
|
-
accentInverted: `var(--wp-components-color-accent-inverted, var(--wpds-color-foreground-interactive-brand-strong, #fff))`,
|
|
11205
|
-
background: `var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff))`,
|
|
11206
|
-
foreground: `var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e))`,
|
|
11207
|
-
/** Used when placing text on the foreground color. */
|
|
11208
|
-
foregroundInverted: `var(--wp-components-color-foreground-inverted, var(--wpds-color-background-surface-neutral, #fcfcfc))`,
|
|
11209
|
-
gray: {
|
|
11210
|
-
/** @deprecated Use `COLORS.theme.foreground` instead. */
|
|
11211
|
-
900: `var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e))`,
|
|
11212
|
-
800: `var(--wp-components-color-gray-800, var(--wpds-color-foreground-content-neutral, #1e1e1e))`,
|
|
11213
|
-
700: `var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070))`,
|
|
11214
|
-
600: `var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d))`,
|
|
11215
|
-
400: `var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d))`,
|
|
11216
|
-
300: `var(--wp-components-color-gray-300, var(--wpds-color-stroke-surface-neutral, #dbdbdb))`,
|
|
11217
|
-
200: `var(--wp-components-color-gray-200, var(--wpds-color-stroke-surface-neutral, #dbdbdb))`,
|
|
11218
|
-
100: `var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc))`
|
|
11219
|
-
}
|
|
11220
|
-
};
|
|
11221
|
-
var UI = {
|
|
11222
|
-
background: THEME.background,
|
|
11223
|
-
backgroundDisabled: THEME.gray[100],
|
|
11224
|
-
border: THEME.gray[600],
|
|
11225
|
-
borderHover: THEME.gray[700],
|
|
11226
|
-
borderFocus: THEME.accent,
|
|
11227
|
-
borderDisabled: `var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb)`,
|
|
11228
|
-
textDisabled: `var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d)`,
|
|
11229
|
-
darkGrayPlaceholder: `color-mix(in srgb, ${THEME.foreground}, transparent 38%)`,
|
|
11230
|
-
lightGrayPlaceholder: `color-mix(in srgb, ${THEME.background}, transparent 35%)`
|
|
11231
|
-
};
|
|
11232
|
-
var COLORS = Object.freeze({
|
|
11233
|
-
/**
|
|
11234
|
-
* The main gray color object.
|
|
11235
|
-
*
|
|
11236
|
-
* @deprecated Use semantic aliases in `COLORS.ui` or theme-ready variables in `COLORS.theme.gray`.
|
|
11237
|
-
*/
|
|
11238
|
-
gray: GRAY,
|
|
11239
|
-
/**
|
|
11240
|
-
* @deprecated Prefer theme-ready variables in `COLORS.theme`.
|
|
11241
|
-
*/
|
|
11242
|
-
white,
|
|
11243
|
-
alert: ALERT,
|
|
11244
|
-
/**
|
|
11245
|
-
* Theme-ready variables with fallbacks.
|
|
11246
|
-
*
|
|
11247
|
-
* Prefer semantic aliases in `COLORS.ui` when applicable.
|
|
11248
|
-
*/
|
|
11249
|
-
theme: THEME,
|
|
11250
|
-
/**
|
|
11251
|
-
* Semantic aliases (prefer these over raw variables when applicable).
|
|
11252
|
-
*/
|
|
11253
|
-
ui: UI
|
|
11254
|
-
});
|
|
11255
|
-
//#endregion
|
|
11256
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@40.1.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_c300d25e93ed6b8d3659e83df7c1508a/node_modules/@wordpress/components/build-module/utils/config-values.mjs
|
|
11257
|
-
var CONTROL_HEIGHT = "36px";
|
|
11258
|
-
var CONTROL_PROPS = {
|
|
11259
|
-
controlPaddingX: 12,
|
|
11260
|
-
controlPaddingXSmall: 8,
|
|
11261
|
-
controlPaddingXLarge: 12 * 1.3334,
|
|
11262
|
-
controlBoxShadowFocus: `0 0 0 0.5px ${COLORS.theme.accent}`,
|
|
11263
|
-
controlHeight: CONTROL_HEIGHT,
|
|
11264
|
-
controlHeightXSmall: `calc( ${CONTROL_HEIGHT} * 0.6 )`,
|
|
11265
|
-
controlHeightSmall: `calc( ${CONTROL_HEIGHT} * 0.8 )`,
|
|
11266
|
-
controlHeightLarge: `calc( ${CONTROL_HEIGHT} * 1.2 )`,
|
|
11267
|
-
controlHeightXLarge: `calc( ${CONTROL_HEIGHT} * 1.4 )`
|
|
11268
|
-
};
|
|
11269
|
-
var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
11270
|
-
colorDivider: "rgba(0, 0, 0, 0.1)",
|
|
11271
|
-
elevationIntensity: 1,
|
|
11272
|
-
radiusXSmall: "1px",
|
|
11273
|
-
radiusSmall: "2px",
|
|
11274
|
-
radiusMedium: "4px",
|
|
11275
|
-
radiusLarge: "8px",
|
|
11276
|
-
radiusFull: "9999px",
|
|
11277
|
-
radiusRound: "50%",
|
|
11278
|
-
borderWidth: "1px",
|
|
11279
|
-
borderWidthFocus: "1.5px",
|
|
11280
|
-
borderWidthTab: "4px",
|
|
11281
|
-
fontSize: "13px",
|
|
11282
|
-
fontSizeH1: "calc(2.44 * 13px)",
|
|
11283
|
-
fontSizeH2: "calc(1.95 * 13px)",
|
|
11284
|
-
fontSizeH3: "calc(1.56 * 13px)",
|
|
11285
|
-
fontSizeH4: "calc(1.25 * 13px)",
|
|
11286
|
-
fontSizeH5: "13px",
|
|
11287
|
-
fontSizeH6: "calc(0.8 * 13px)",
|
|
11288
|
-
fontSizeInputMobile: "16px",
|
|
11289
|
-
fontSizeMobile: "15px",
|
|
11290
|
-
fontSizeSmall: "calc(0.92 * 13px)",
|
|
11291
|
-
fontSizeXSmall: "calc(0.75 * 13px)",
|
|
11292
|
-
fontLineHeightBase: "1.4",
|
|
11293
|
-
fontWeight: "normal",
|
|
11294
|
-
fontWeightEmphasis: "600",
|
|
11295
|
-
gridBase: "4px",
|
|
11296
|
-
elevationXSmall: `0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)`,
|
|
11297
|
-
elevationSmall: `0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)`,
|
|
11298
|
-
elevationMedium: `0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)`,
|
|
11299
|
-
elevationLarge: `0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)`,
|
|
11300
|
-
surfaceBorderColor: "rgba(0, 0, 0, 0.1)",
|
|
11301
|
-
surfaceColor: COLORS.white,
|
|
11302
|
-
transitionDuration: "200ms",
|
|
11303
|
-
transitionDurationFast: "160ms",
|
|
11304
|
-
transitionDurationFaster: "120ms",
|
|
11305
|
-
transitionDurationFastest: "100ms",
|
|
11306
|
-
transitionTimingFunction: "cubic-bezier(0.08, 0.52, 0.52, 1)",
|
|
11307
|
-
transitionTimingFunctionControl: "cubic-bezier(0.12, 0.8, 0.32, 1)"
|
|
11308
|
-
});
|
|
11309
|
-
//#endregion
|
|
11310
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@40.1.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_c300d25e93ed6b8d3659e83df7c1508a/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
10831
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
11311
10832
|
var import_es6 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11312
10833
|
module.exports = function equal(a, b) {
|
|
11313
10834
|
if (a === b) return true;
|
|
@@ -11375,19 +10896,19 @@ var BaseContextSystemProvider = ({ children, value }) => {
|
|
|
11375
10896
|
};
|
|
11376
10897
|
(0, react.memo)(BaseContextSystemProvider);
|
|
11377
10898
|
//#endregion
|
|
11378
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10899
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/constants.mjs
|
|
11379
10900
|
var COMPONENT_NAMESPACE = "data-wp-component";
|
|
11380
10901
|
var CONNECTED_NAMESPACE = "data-wp-c16t";
|
|
11381
10902
|
var CONNECT_STATIC_NAMESPACE = "__contextSystemKey__";
|
|
11382
10903
|
//#endregion
|
|
11383
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10904
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.mjs
|
|
11384
10905
|
var import_dist = require_dist();
|
|
11385
10906
|
function getStyledClassName(namespace) {
|
|
11386
10907
|
return `components-${(0, import_dist.paramCase)(namespace)}`;
|
|
11387
10908
|
}
|
|
11388
10909
|
var getStyledClassNameFromKey = memize(getStyledClassName);
|
|
11389
10910
|
//#endregion
|
|
11390
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10911
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/context-connect.mjs
|
|
11391
10912
|
function contextConnect(Component, namespace) {
|
|
11392
10913
|
return _contextConnect(Component, namespace, { forwardsRef: true });
|
|
11393
10914
|
}
|
|
@@ -11404,7 +10925,7 @@ function _contextConnect(Component, namespace, options) {
|
|
|
11404
10925
|
});
|
|
11405
10926
|
}
|
|
11406
10927
|
//#endregion
|
|
11407
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10928
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/utils.mjs
|
|
11408
10929
|
function getNamespace(componentName) {
|
|
11409
10930
|
return { [COMPONENT_NAMESPACE]: componentName };
|
|
11410
10931
|
}
|
|
@@ -11412,7 +10933,7 @@ function getConnectedNamespace() {
|
|
|
11412
10933
|
return { [CONNECTED_NAMESPACE]: true };
|
|
11413
10934
|
}
|
|
11414
10935
|
//#endregion
|
|
11415
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10936
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/context/use-context-system.mjs
|
|
11416
10937
|
function useContextSystem(props, namespace) {
|
|
11417
10938
|
const contextSystemProps = useComponentsContext();
|
|
11418
10939
|
if (typeof namespace === "undefined") globalThis.SCRIPT_DEBUG === true && warning("useContextSystem: Please provide a namespace");
|
|
@@ -11434,7 +10955,7 @@ function useContextSystem(props, namespace) {
|
|
|
11434
10955
|
return finalComponentProps;
|
|
11435
10956
|
}
|
|
11436
10957
|
//#endregion
|
|
11437
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10958
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/visually-hidden/styles.mjs
|
|
11438
10959
|
var visuallyHidden = {
|
|
11439
10960
|
border: 0,
|
|
11440
10961
|
clip: "rect(1px, 1px, 1px, 1px)",
|
|
@@ -11450,7 +10971,7 @@ var visuallyHidden = {
|
|
|
11450
10971
|
wordBreak: "normal"
|
|
11451
10972
|
};
|
|
11452
10973
|
//#endregion
|
|
11453
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
10974
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/utils/polymorphic-element.mjs
|
|
11454
10975
|
var customAttributeRegExp = /^(data|aria|x)-/i;
|
|
11455
10976
|
var eventHandlerRegExp = /^on[A-Z]/;
|
|
11456
10977
|
var svgElementNames = new Set(`animate animateMotion animateTransform circle clipPath defs desc ellipse
|
|
@@ -11540,7 +11061,7 @@ function UnforwardedPolymorphicElement({ as, ...props }, ref) {
|
|
|
11540
11061
|
}
|
|
11541
11062
|
var PolymorphicElement = (0, react.forwardRef)(UnforwardedPolymorphicElement);
|
|
11542
11063
|
//#endregion
|
|
11543
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11064
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/view/component.mjs
|
|
11544
11065
|
function UnforwardedView({ css, ...restProps }, ref) {
|
|
11545
11066
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PolymorphicElement, {
|
|
11546
11067
|
ref,
|
|
@@ -11549,7 +11070,7 @@ function UnforwardedView({ css, ...restProps }, ref) {
|
|
|
11549
11070
|
}
|
|
11550
11071
|
var component_default$2 = Object.assign((0, react.forwardRef)(UnforwardedView), { selector: ".components-view" });
|
|
11551
11072
|
//#endregion
|
|
11552
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11073
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/visually-hidden/component.mjs
|
|
11553
11074
|
function UnconnectedVisuallyHidden(props, forwardedRef) {
|
|
11554
11075
|
const { style: styleProp, ...contextProps } = useContextSystem(props, "VisuallyHidden");
|
|
11555
11076
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(component_default$2, {
|
|
@@ -11564,18 +11085,19 @@ function UnconnectedVisuallyHidden(props, forwardedRef) {
|
|
|
11564
11085
|
}
|
|
11565
11086
|
var component_default$1 = contextConnect(UnconnectedVisuallyHidden, "VisuallyHidden");
|
|
11566
11087
|
//#endregion
|
|
11567
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11088
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/utils/use-responsive-value.mjs
|
|
11568
11089
|
var breakpoints = [
|
|
11569
11090
|
"40em",
|
|
11570
11091
|
"52em",
|
|
11571
11092
|
"64em"
|
|
11572
11093
|
];
|
|
11573
11094
|
var useBreakpointIndex = (options = {}) => {
|
|
11574
|
-
const { defaultIndex = 0 } = options;
|
|
11095
|
+
const { defaultIndex = 0, enabled = true } = options;
|
|
11575
11096
|
if (typeof defaultIndex !== "number") throw new TypeError(`Default breakpoint index should be a number. Got: ${defaultIndex}, ${typeof defaultIndex}`);
|
|
11576
11097
|
else if (defaultIndex < 0 || defaultIndex > breakpoints.length - 1) throw new RangeError(`Default breakpoint index out of range. Theme has ${breakpoints.length} breakpoints, got index ${defaultIndex}`);
|
|
11577
11098
|
const [value, setValue] = (0, react.useState)(defaultIndex);
|
|
11578
11099
|
(0, react.useEffect)(() => {
|
|
11100
|
+
if (!enabled) return;
|
|
11579
11101
|
const getIndex = () => breakpoints.filter((bp) => {
|
|
11580
11102
|
return typeof window !== "undefined" ? window.matchMedia(`screen and (min-width: ${bp})`).matches : false;
|
|
11581
11103
|
}).length;
|
|
@@ -11588,17 +11110,21 @@ var useBreakpointIndex = (options = {}) => {
|
|
|
11588
11110
|
return () => {
|
|
11589
11111
|
if (typeof window !== "undefined") window.removeEventListener("resize", onResize);
|
|
11590
11112
|
};
|
|
11591
|
-
}, [value]);
|
|
11113
|
+
}, [value, enabled]);
|
|
11592
11114
|
return value;
|
|
11593
11115
|
};
|
|
11594
11116
|
function useResponsiveValue(values, options = {}) {
|
|
11595
|
-
const
|
|
11117
|
+
const isResponsive = Array.isArray(values) && values.length > 1;
|
|
11118
|
+
const index = useBreakpointIndex({
|
|
11119
|
+
...options,
|
|
11120
|
+
enabled: isResponsive
|
|
11121
|
+
});
|
|
11596
11122
|
if (!Array.isArray(values) && typeof values !== "function") return values;
|
|
11597
11123
|
const array = values || [];
|
|
11598
11124
|
return array[index >= array.length ? array.length - 1 : index];
|
|
11599
11125
|
}
|
|
11600
11126
|
//#endregion
|
|
11601
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11127
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/grid/utils.mjs
|
|
11602
11128
|
var ALIGNMENTS = {
|
|
11603
11129
|
bottom: {
|
|
11604
11130
|
alignItems: "flex-end",
|
|
@@ -11643,52 +11169,155 @@ var ALIGNMENTS = {
|
|
|
11643
11169
|
}
|
|
11644
11170
|
};
|
|
11645
11171
|
function getAlignmentProps(alignment) {
|
|
11646
|
-
return alignment ? ALIGNMENTS[alignment] : {};
|
|
11172
|
+
return alignment ? ALIGNMENTS[alignment] ?? {} : {};
|
|
11647
11173
|
}
|
|
11648
11174
|
//#endregion
|
|
11649
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11175
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/grid/hook.mjs
|
|
11176
|
+
var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
|
|
11177
|
+
function getRuntime() {
|
|
11178
|
+
const globalScope = globalThis;
|
|
11179
|
+
if (globalScope.__wpStyleRuntime) return globalScope.__wpStyleRuntime;
|
|
11180
|
+
globalScope.__wpStyleRuntime = {
|
|
11181
|
+
documents: /* @__PURE__ */ new Map(),
|
|
11182
|
+
styles: /* @__PURE__ */ new Map(),
|
|
11183
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
11184
|
+
};
|
|
11185
|
+
if (typeof document !== "undefined") registerDocument(document);
|
|
11186
|
+
return globalScope.__wpStyleRuntime;
|
|
11187
|
+
}
|
|
11188
|
+
function documentContainsStyleHash(targetDocument, hash) {
|
|
11189
|
+
if (!targetDocument.head) return false;
|
|
11190
|
+
for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) return true;
|
|
11191
|
+
return false;
|
|
11192
|
+
}
|
|
11193
|
+
function injectStyle(targetDocument, hash, css) {
|
|
11194
|
+
if (!targetDocument.head) return;
|
|
11195
|
+
const runtime = getRuntime();
|
|
11196
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
11197
|
+
if (!injectedStyles) {
|
|
11198
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
11199
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
11200
|
+
}
|
|
11201
|
+
if (injectedStyles.has(hash)) return;
|
|
11202
|
+
if (documentContainsStyleHash(targetDocument, hash)) {
|
|
11203
|
+
injectedStyles.add(hash);
|
|
11204
|
+
return;
|
|
11205
|
+
}
|
|
11206
|
+
const style = targetDocument.createElement("style");
|
|
11207
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
|
|
11208
|
+
style.appendChild(targetDocument.createTextNode(css));
|
|
11209
|
+
targetDocument.head.appendChild(style);
|
|
11210
|
+
injectedStyles.add(hash);
|
|
11211
|
+
}
|
|
11212
|
+
function registerDocument(targetDocument) {
|
|
11213
|
+
const runtime = getRuntime();
|
|
11214
|
+
runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
|
|
11215
|
+
for (const [hash, css] of runtime.styles) injectStyle(targetDocument, hash, css);
|
|
11216
|
+
return () => {
|
|
11217
|
+
const count = runtime.documents.get(targetDocument);
|
|
11218
|
+
if (count === void 0) return;
|
|
11219
|
+
if (count <= 1) {
|
|
11220
|
+
runtime.documents.delete(targetDocument);
|
|
11221
|
+
return;
|
|
11222
|
+
}
|
|
11223
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
11224
|
+
};
|
|
11225
|
+
}
|
|
11226
|
+
function registerStyle(hash, css) {
|
|
11227
|
+
const runtime = getRuntime();
|
|
11228
|
+
runtime.styles.set(hash, css);
|
|
11229
|
+
for (const targetDocument of runtime.documents.keys()) injectStyle(targetDocument, hash, css);
|
|
11230
|
+
}
|
|
11231
|
+
if (typeof process === "undefined" || process.env.NODE_ENV !== "test") registerStyle("79bac25858", "._631b7063b4047c89__grid{--wp-components-grid-align:initial;--wp-components-grid-justify:initial;--wp-components-grid-gap:initial;--wp-components-grid-template-columns:initial;--wp-components-grid-template-rows:initial;--wp-components-grid-row-gap:initial;--wp-components-grid-column-gap:initial;display:grid}._631b7063b4047c89__grid:not(:where(._51fa5e5688d538e7__row-gap-inherit,._3940112538797bb2__row-gap-initial,._9dc0e80dad95eb11__row-gap-unset,._964ec4132d3d0776__row-gap-revert,._9219888d7c4749d5__row-gap-revert-layer)){row-gap:var(--wp-components-grid-row-gap,calc(4px*var(--wp-components-grid-gap)))}._631b7063b4047c89__grid:not(:where(._149fd947497e8690__column-gap-inherit,.a018e74b0f04c517__column-gap-initial,.b1e45f9587eb70e5__column-gap-unset,._4da312511f64af94__column-gap-revert,.b51ead67217c210a__column-gap-revert-layer)){column-gap:var(--wp-components-grid-column-gap,calc(4px*var(--wp-components-grid-gap)))}._4cae76607d36422b__has-align:not(:where(._2c693b642b24e0d9__align-inherit,.fd4c5676ad7e83d4__align-initial,.c4c0cde44ab0ed21__align-unset,._8c23efb61db2f04e__align-revert,.c3adc4c41efa56d1__align-revert-layer)){align-items:var(--wp-components-grid-align)}._9bcd99517d001b4b__has-justify:not(:where(.a72d35ee0eda5e6b__justify-inherit,.d386403fd02ebc45__justify-initial,._7d60510a69e8ddf9__justify-unset,._857dfb6521d0cae3__justify-revert,._1537fff8402f1ca1__justify-revert-layer)){justify-content:var(--wp-components-grid-justify)}._983f7df07cd35a72__has-template-columns:not(:where(.df2216db1a717825__template-columns-inherit,._9016934ed273a0b8__template-columns-initial,._74966333f352d829__template-columns-unset,.b3ce45d005011688__template-columns-revert,._9ff0250b9bed5764__template-columns-revert-layer)){grid-template-columns:var(--wp-components-grid-template-columns)}._7e0fa0c081c20f6e__has-template-rows:not(:where(._10cfd24f62672d27__template-rows-inherit,.da1333be6b2af8c3__template-rows-initial,._919938d55c0cf234__template-rows-unset,.db40efe5796b7ffb__template-rows-revert,._1080cc5b99823c58__template-rows-revert-layer)){grid-template-rows:var(--wp-components-grid-template-rows)}.f4729d54fca65af1__is-inline{display:inline-grid;vertical-align:middle}._2c693b642b24e0d9__align-inherit{align-items:inherit}.fd4c5676ad7e83d4__align-initial{align-items:normal}.c4c0cde44ab0ed21__align-unset{align-items:unset}._8c23efb61db2f04e__align-revert{align-items:revert}.c3adc4c41efa56d1__align-revert-layer{align-items:revert-layer}.a72d35ee0eda5e6b__justify-inherit{justify-content:inherit}.d386403fd02ebc45__justify-initial{justify-content:normal}._7d60510a69e8ddf9__justify-unset{justify-content:unset}._857dfb6521d0cae3__justify-revert{justify-content:revert}._1537fff8402f1ca1__justify-revert-layer{justify-content:revert-layer}.df2216db1a717825__template-columns-inherit{grid-template-columns:inherit}._9016934ed273a0b8__template-columns-initial{grid-template-columns:none}._74966333f352d829__template-columns-unset{grid-template-columns:unset}.b3ce45d005011688__template-columns-revert{grid-template-columns:revert}._9ff0250b9bed5764__template-columns-revert-layer{grid-template-columns:revert-layer}._10cfd24f62672d27__template-rows-inherit{grid-template-rows:inherit}.da1333be6b2af8c3__template-rows-initial{grid-template-rows:none}._919938d55c0cf234__template-rows-unset{grid-template-rows:unset}.db40efe5796b7ffb__template-rows-revert{grid-template-rows:revert}._1080cc5b99823c58__template-rows-revert-layer{grid-template-rows:revert-layer}._51fa5e5688d538e7__row-gap-inherit{row-gap:inherit}._3940112538797bb2__row-gap-initial{row-gap:normal}._9dc0e80dad95eb11__row-gap-unset{row-gap:unset}._964ec4132d3d0776__row-gap-revert{row-gap:revert}._9219888d7c4749d5__row-gap-revert-layer{row-gap:revert-layer}._149fd947497e8690__column-gap-inherit{column-gap:inherit}.a018e74b0f04c517__column-gap-initial{column-gap:normal}.b1e45f9587eb70e5__column-gap-unset{column-gap:unset}._4da312511f64af94__column-gap-revert{column-gap:revert}.b51ead67217c210a__column-gap-revert-layer{column-gap:revert-layer}");
|
|
11232
|
+
var style_module_default = {
|
|
11233
|
+
"grid": "_631b7063b4047c89__grid",
|
|
11234
|
+
"row-gap-inherit": "_51fa5e5688d538e7__row-gap-inherit",
|
|
11235
|
+
"row-gap-initial": "_3940112538797bb2__row-gap-initial",
|
|
11236
|
+
"row-gap-unset": "_9dc0e80dad95eb11__row-gap-unset",
|
|
11237
|
+
"row-gap-revert": "_964ec4132d3d0776__row-gap-revert",
|
|
11238
|
+
"row-gap-revert-layer": "_9219888d7c4749d5__row-gap-revert-layer",
|
|
11239
|
+
"column-gap-inherit": "_149fd947497e8690__column-gap-inherit",
|
|
11240
|
+
"column-gap-initial": "a018e74b0f04c517__column-gap-initial",
|
|
11241
|
+
"column-gap-unset": "b1e45f9587eb70e5__column-gap-unset",
|
|
11242
|
+
"column-gap-revert": "_4da312511f64af94__column-gap-revert",
|
|
11243
|
+
"column-gap-revert-layer": "b51ead67217c210a__column-gap-revert-layer",
|
|
11244
|
+
"has-align": "_4cae76607d36422b__has-align",
|
|
11245
|
+
"align-inherit": "_2c693b642b24e0d9__align-inherit",
|
|
11246
|
+
"align-initial": "fd4c5676ad7e83d4__align-initial",
|
|
11247
|
+
"align-unset": "c4c0cde44ab0ed21__align-unset",
|
|
11248
|
+
"align-revert": "_8c23efb61db2f04e__align-revert",
|
|
11249
|
+
"align-revert-layer": "c3adc4c41efa56d1__align-revert-layer",
|
|
11250
|
+
"has-justify": "_9bcd99517d001b4b__has-justify",
|
|
11251
|
+
"justify-inherit": "a72d35ee0eda5e6b__justify-inherit",
|
|
11252
|
+
"justify-initial": "d386403fd02ebc45__justify-initial",
|
|
11253
|
+
"justify-unset": "_7d60510a69e8ddf9__justify-unset",
|
|
11254
|
+
"justify-revert": "_857dfb6521d0cae3__justify-revert",
|
|
11255
|
+
"justify-revert-layer": "_1537fff8402f1ca1__justify-revert-layer",
|
|
11256
|
+
"has-template-columns": "_983f7df07cd35a72__has-template-columns",
|
|
11257
|
+
"template-columns-inherit": "df2216db1a717825__template-columns-inherit",
|
|
11258
|
+
"template-columns-initial": "_9016934ed273a0b8__template-columns-initial",
|
|
11259
|
+
"template-columns-unset": "_74966333f352d829__template-columns-unset",
|
|
11260
|
+
"template-columns-revert": "b3ce45d005011688__template-columns-revert",
|
|
11261
|
+
"template-columns-revert-layer": "_9ff0250b9bed5764__template-columns-revert-layer",
|
|
11262
|
+
"has-template-rows": "_7e0fa0c081c20f6e__has-template-rows",
|
|
11263
|
+
"template-rows-inherit": "_10cfd24f62672d27__template-rows-inherit",
|
|
11264
|
+
"template-rows-initial": "da1333be6b2af8c3__template-rows-initial",
|
|
11265
|
+
"template-rows-unset": "_919938d55c0cf234__template-rows-unset",
|
|
11266
|
+
"template-rows-revert": "db40efe5796b7ffb__template-rows-revert",
|
|
11267
|
+
"template-rows-revert-layer": "_1080cc5b99823c58__template-rows-revert-layer",
|
|
11268
|
+
"is-inline": "f4729d54fca65af1__is-inline"
|
|
11269
|
+
};
|
|
11270
|
+
var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
11271
|
+
"inherit",
|
|
11272
|
+
"initial",
|
|
11273
|
+
"unset",
|
|
11274
|
+
"revert",
|
|
11275
|
+
"revert-layer"
|
|
11276
|
+
]);
|
|
11277
|
+
function toCSSValue(value) {
|
|
11278
|
+
return typeof value === "number" ? `${value}px` : value?.trim() || void 0;
|
|
11279
|
+
}
|
|
11650
11280
|
function useGrid(props) {
|
|
11651
|
-
const { align, alignment, className, columnGap, columns = 2, gap = 3, isInline = false, justify, rowGap, rows, templateColumns, templateRows, ...otherProps } = useContextSystem(props, "Grid");
|
|
11281
|
+
const { align, alignment, className, columnGap, columns = 2, gap = 3, isInline = false, justify, rowGap, rows, style, templateColumns, templateRows, ...otherProps } = useContextSystem(props, "Grid");
|
|
11652
11282
|
const column = useResponsiveValue(Array.isArray(columns) ? columns : [columns]);
|
|
11653
11283
|
const row = useResponsiveValue(Array.isArray(rows) ? rows : [rows]);
|
|
11654
|
-
const gridTemplateColumns = templateColumns || !!
|
|
11655
|
-
const gridTemplateRows = templateRows || !!
|
|
11656
|
-
const
|
|
11657
|
-
const
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
gridRowGap: rowGap,
|
|
11666
|
-
gridColumnGap: columnGap,
|
|
11667
|
-
justifyContent: justify,
|
|
11668
|
-
verticalAlign: isInline ? "middle" : void 0,
|
|
11669
|
-
...alignmentProps
|
|
11670
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:gridClasses;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhvb2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNENzQiIsImZpbGUiOiJob29rLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgdXNlTWVtbyB9IGZyb20gJ0B3b3JkcHJlc3MvZWxlbWVudCc7XG5pbXBvcnQgdHlwZSB7IFdvcmRQcmVzc0NvbXBvbmVudFByb3BzIH0gZnJvbSAnLi4vY29udGV4dCc7XG5pbXBvcnQgeyB1c2VDb250ZXh0U3lzdGVtIH0gZnJvbSAnLi4vY29udGV4dCc7XG5pbXBvcnQgeyBnZXRBbGlnbm1lbnRQcm9wcyB9IGZyb20gJy4vdXRpbHMnO1xuaW1wb3J0IHsgdXNlUmVzcG9uc2l2ZVZhbHVlIH0gZnJvbSAnLi4vdXRpbHMvdXNlLXJlc3BvbnNpdmUtdmFsdWUnO1xuaW1wb3J0IENPTkZJRyBmcm9tICcuLi91dGlscy9jb25maWctdmFsdWVzJztcbmltcG9ydCB7IHVzZUN4IH0gZnJvbSAnLi4vdXRpbHMvaG9va3MvdXNlLWN4JztcbmltcG9ydCB0eXBlIHsgR3JpZFByb3BzIH0gZnJvbSAnLi90eXBlcyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHVzZUdyaWQoXG5cdHByb3BzOiBXb3JkUHJlc3NDb21wb25lbnRQcm9wczwgR3JpZFByb3BzLCAnZGl2JyA+XG4pIHtcblx0Y29uc3Qge1xuXHRcdGFsaWduLFxuXHRcdGFsaWdubWVudCxcblx0XHRjbGFzc05hbWUsXG5cdFx0Y29sdW1uR2FwLFxuXHRcdGNvbHVtbnMgPSAyLFxuXHRcdGdhcCA9IDMsXG5cdFx0aXNJbmxpbmUgPSBmYWxzZSxcblx0XHRqdXN0aWZ5LFxuXHRcdHJvd0dhcCxcblx0XHRyb3dzLFxuXHRcdHRlbXBsYXRlQ29sdW1ucyxcblx0XHR0ZW1wbGF0ZVJvd3MsXG5cdFx0Li4ub3RoZXJQcm9wc1xuXHR9ID0gdXNlQ29udGV4dFN5c3RlbSggcHJvcHMsICdHcmlkJyApO1xuXG5cdGNvbnN0IGNvbHVtbnNBc0FycmF5ID0gQXJyYXkuaXNBcnJheSggY29sdW1ucyApID8gY29sdW1ucyA6IFsgY29sdW1ucyBdO1xuXHRjb25zdCBjb2x1bW4gPSB1c2VSZXNwb25zaXZlVmFsdWUoIGNvbHVtbnNBc0FycmF5ICk7XG5cdGNvbnN0IHJvd3NBc0FycmF5ID0gQXJyYXkuaXNBcnJheSggcm93cyApID8gcm93cyA6IFsgcm93cyBdO1xuXHRjb25zdCByb3cgPSB1c2VSZXNwb25zaXZlVmFsdWUoIHJvd3NBc0FycmF5ICk7XG5cblx0Y29uc3QgZ3JpZFRlbXBsYXRlQ29sdW1ucyA9XG5cdFx0dGVtcGxhdGVDb2x1bW5zIHx8ICggISEgY29sdW1ucyAmJiBgcmVwZWF0KCAkeyBjb2x1bW4gfSwgMWZyIClgICk7XG5cdGNvbnN0IGdyaWRUZW1wbGF0ZVJvd3MgPVxuXHRcdHRlbXBsYXRlUm93cyB8fCAoICEhIHJvd3MgJiYgYHJlcGVhdCggJHsgcm93IH0sIDFmciApYCApO1xuXG5cdGNvbnN0IGN4ID0gdXNlQ3goKTtcblxuXHRjb25zdCBjbGFzc2VzID0gdXNlTWVtbyggKCkgPT4ge1xuXHRcdGNvbnN0IGFsaWdubWVudFByb3BzID0gZ2V0QWxpZ25tZW50UHJvcHMoIGFsaWdubWVudCApO1xuXG5cdFx0Y29uc3QgZ3JpZENsYXNzZXMgPSBjc3MoIHtcblx0XHRcdGFsaWduSXRlbXM6IGFsaWduLFxuXHRcdFx0ZGlzcGxheTogaXNJbmxpbmUgPyAnaW5saW5lLWdyaWQnIDogJ2dyaWQnLFxuXHRcdFx0Z2FwOiBgY2FsYyggJHsgQ09ORklHLmdyaWRCYXNlIH0gKiAkeyBnYXAgfSApYCxcblx0XHRcdGdyaWRUZW1wbGF0ZUNvbHVtbnM6IGdyaWRUZW1wbGF0ZUNvbHVtbnMgfHwgdW5kZWZpbmVkLFxuXHRcdFx0Z3JpZFRlbXBsYXRlUm93czogZ3JpZFRlbXBsYXRlUm93cyB8fCB1bmRlZmluZWQsXG5cdFx0XHRncmlkUm93R2FwOiByb3dHYXAsXG5cdFx0XHRncmlkQ29sdW1uR2FwOiBjb2x1bW5HYXAsXG5cdFx0XHRqdXN0aWZ5Q29udGVudDoganVzdGlmeSxcblx0XHRcdHZlcnRpY2FsQWxpZ246IGlzSW5saW5lID8gJ21pZGRsZScgOiB1bmRlZmluZWQsXG5cdFx0XHQuLi5hbGlnbm1lbnRQcm9wcyxcblx0XHR9ICk7XG5cblx0XHRyZXR1cm4gY3goIGdyaWRDbGFzc2VzLCBjbGFzc05hbWUgKTtcblx0fSwgW1xuXHRcdGFsaWduLFxuXHRcdGFsaWdubWVudCxcblx0XHRjbGFzc05hbWUsXG5cdFx0Y29sdW1uR2FwLFxuXHRcdGN4LFxuXHRcdGdhcCxcblx0XHRncmlkVGVtcGxhdGVDb2x1bW5zLFxuXHRcdGdyaWRUZW1wbGF0ZVJvd3MsXG5cdFx0aXNJbmxpbmUsXG5cdFx0anVzdGlmeSxcblx0XHRyb3dHYXAsXG5cdF0gKTtcblxuXHRyZXR1cm4geyAuLi5vdGhlclByb3BzLCBjbGFzc05hbWU6IGNsYXNzZXMgfTtcbn1cbiJdfQ== */");
|
|
11671
|
-
return cx(gridClasses, className);
|
|
11672
|
-
}, [
|
|
11673
|
-
align,
|
|
11674
|
-
alignment,
|
|
11675
|
-
className,
|
|
11676
|
-
columnGap,
|
|
11677
|
-
cx,
|
|
11678
|
-
gap,
|
|
11679
|
-
gridTemplateColumns,
|
|
11680
|
-
gridTemplateRows,
|
|
11681
|
-
isInline,
|
|
11682
|
-
justify,
|
|
11683
|
-
rowGap
|
|
11684
|
-
]);
|
|
11284
|
+
const gridTemplateColumns = templateColumns || !!column && `repeat( ${column}, 1fr )`;
|
|
11285
|
+
const gridTemplateRows = templateRows || !!row && `repeat( ${row}, 1fr )`;
|
|
11286
|
+
const alignmentProps = getAlignmentProps(alignment);
|
|
11287
|
+
const values = {
|
|
11288
|
+
align: alignmentProps.alignItems ?? align,
|
|
11289
|
+
justify: alignmentProps.justifyContent ?? justify,
|
|
11290
|
+
"template-columns": gridTemplateColumns || void 0,
|
|
11291
|
+
"template-rows": gridTemplateRows || void 0,
|
|
11292
|
+
"row-gap": rowGap,
|
|
11293
|
+
"column-gap": columnGap
|
|
11294
|
+
};
|
|
11685
11295
|
return {
|
|
11686
11296
|
...otherProps,
|
|
11687
|
-
className:
|
|
11297
|
+
className: (0, clsx.default)(style_module_default.grid, {
|
|
11298
|
+
[style_module_default["is-inline"]]: isInline,
|
|
11299
|
+
[style_module_default["has-align"]]: !!values.align?.trim(),
|
|
11300
|
+
[style_module_default["has-justify"]]: !!values.justify?.trim(),
|
|
11301
|
+
[style_module_default["has-template-columns"]]: !!toCSSValue(values["template-columns"]),
|
|
11302
|
+
[style_module_default["has-template-rows"]]: !!toCSSValue(values["template-rows"])
|
|
11303
|
+
}, Object.entries(values).map(([property, value]) => {
|
|
11304
|
+
const keyword = typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
11305
|
+
return CSS_WIDE_KEYWORDS.has(keyword) && style_module_default[`${property}-${keyword}`];
|
|
11306
|
+
}), className),
|
|
11307
|
+
style: {
|
|
11308
|
+
"--wp-components-grid-align": values.align,
|
|
11309
|
+
"--wp-components-grid-justify": values.justify,
|
|
11310
|
+
"--wp-components-grid-gap": gap,
|
|
11311
|
+
"--wp-components-grid-template-columns": toCSSValue(values["template-columns"]),
|
|
11312
|
+
"--wp-components-grid-template-rows": toCSSValue(values["template-rows"]),
|
|
11313
|
+
"--wp-components-grid-row-gap": toCSSValue(rowGap),
|
|
11314
|
+
"--wp-components-grid-column-gap": toCSSValue(columnGap),
|
|
11315
|
+
...style
|
|
11316
|
+
}
|
|
11688
11317
|
};
|
|
11689
11318
|
}
|
|
11690
11319
|
//#endregion
|
|
11691
|
-
//#region ../../../node_modules/.pnpm/@wordpress+components@
|
|
11320
|
+
//#region ../../../node_modules/.pnpm/@wordpress+components@42.0.0_@date-fns+tz@1.5.0_@types+react-dom@18.3.7_@types+react@18_5beefdda355715e908adfea668830e1f/node_modules/@wordpress/components/build-module/grid/component.mjs
|
|
11692
11321
|
function UnconnectedGrid(props, forwardedRef) {
|
|
11693
11322
|
const gridProps = useGrid(props);
|
|
11694
11323
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(component_default$2, {
|