@wordpress/dataviews 14.2.0 → 14.2.1-next.v.202605131032.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-types/components/dataform-context/index.d.ts +1 -1
- package/build-types/components/dataform-context/index.d.ts.map +1 -1
- package/build-types/components/dataform-controls/array.d.ts +1 -1
- package/build-types/components/dataform-controls/array.d.ts.map +1 -1
- package/build-types/components/dataform-controls/checkbox.d.ts +1 -1
- package/build-types/components/dataform-controls/checkbox.d.ts.map +1 -1
- package/build-types/components/dataform-controls/color.d.ts +1 -1
- package/build-types/components/dataform-controls/color.d.ts.map +1 -1
- package/build-types/components/dataform-controls/combobox.d.ts +1 -1
- package/build-types/components/dataform-controls/combobox.d.ts.map +1 -1
- package/build-types/components/dataform-controls/date.d.ts +1 -1
- package/build-types/components/dataform-controls/date.d.ts.map +1 -1
- package/build-types/components/dataform-controls/datetime.d.ts +1 -1
- package/build-types/components/dataform-controls/datetime.d.ts.map +1 -1
- package/build-types/components/dataform-controls/email.d.ts +1 -1
- package/build-types/components/dataform-controls/email.d.ts.map +1 -1
- package/build-types/components/dataform-controls/password.d.ts +1 -1
- package/build-types/components/dataform-controls/password.d.ts.map +1 -1
- package/build-types/components/dataform-controls/radio.d.ts +1 -1
- package/build-types/components/dataform-controls/radio.d.ts.map +1 -1
- package/build-types/components/dataform-controls/select.d.ts +1 -1
- package/build-types/components/dataform-controls/select.d.ts.map +1 -1
- package/build-types/components/dataform-controls/telephone.d.ts +1 -1
- package/build-types/components/dataform-controls/telephone.d.ts.map +1 -1
- package/build-types/components/dataform-controls/text.d.ts +1 -1
- package/build-types/components/dataform-controls/text.d.ts.map +1 -1
- package/build-types/components/dataform-controls/textarea.d.ts +1 -1
- package/build-types/components/dataform-controls/textarea.d.ts.map +1 -1
- package/build-types/components/dataform-controls/toggle-group.d.ts +1 -1
- package/build-types/components/dataform-controls/toggle-group.d.ts.map +1 -1
- package/build-types/components/dataform-controls/toggle.d.ts +1 -1
- package/build-types/components/dataform-controls/toggle.d.ts.map +1 -1
- package/build-types/components/dataform-controls/url.d.ts +1 -1
- package/build-types/components/dataform-controls/url.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/get-custom-validity.d.ts +1 -1
- package/build-types/components/dataform-controls/utils/relative-date-control.d.ts +1 -1
- package/build-types/components/dataform-controls/utils/relative-date-control.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/validated-input.d.ts +1 -1
- package/build-types/components/dataform-controls/utils/validated-input.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/validated-number.d.ts +1 -1
- package/build-types/components/dataform-controls/utils/validated-number.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/card/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/card/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/data-form-layout.d.ts +1 -1
- package/build-types/components/dataform-layouts/data-form-layout.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/details/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/details/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/get-summary-fields.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/normalize-form.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/dropdown.d.ts +1 -1
- package/build-types/components/dataform-layouts/panel/dropdown.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/panel/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/modal.d.ts +1 -1
- package/build-types/components/dataform-layouts/panel/modal.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts +1 -1
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/get-first-validation-error.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/get-label-classname.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/get-label-content.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/use-field-from-form-field.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/regular/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/regular/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/row/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/row/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/validation-badge.d.ts +1 -1
- package/build-types/components/dataform-layouts/validation-badge.d.ts.map +1 -1
- package/build-types/components/dataviews-bulk-actions/index.d.ts +1 -1
- package/build-types/components/dataviews-bulk-actions/index.d.ts.map +1 -1
- package/build-types/components/dataviews-context/index.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/add-filter.d.ts +1 -1
- package/build-types/components/dataviews-filters/add-filter.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/filters-toggled.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/filters.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/input-widget.d.ts +1 -1
- package/build-types/components/dataviews-filters/input-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/reset-filters.d.ts +1 -1
- package/build-types/components/dataviews-filters/reset-filters.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/search-widget.d.ts +3 -0
- package/build-types/components/dataviews-filters/search-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/toggle.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/use-filters.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/utils.d.ts.map +1 -1
- package/build-types/components/dataviews-item-actions/index.d.ts +4 -4
- package/build-types/components/dataviews-item-actions/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/activity/activity-group.d.ts +1 -1
- package/build-types/components/dataviews-layouts/activity/activity-group.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/activity/activity-item.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/grid/composite-grid.d.ts +1 -1
- package/build-types/components/dataviews-layouts/grid/composite-grid.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/grid/index.d.ts +1 -1
- package/build-types/components/dataviews-layouts/grid/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/picker-grid/index.d.ts +1 -1
- package/build-types/components/dataviews-layouts/picker-grid/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/picker-table/index.d.ts +1 -1
- package/build-types/components/dataviews-layouts/picker-table/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/table/column-header-menu.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/table/column-primary.d.ts +1 -1
- package/build-types/components/dataviews-layouts/table/column-primary.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/table/index.d.ts +1 -1
- package/build-types/components/dataviews-layouts/table/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts +1 -1
- package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts.map +1 -1
- package/build-types/components/dataviews-pagination/index.d.ts.map +1 -1
- package/build-types/components/dataviews-search/index.d.ts.map +1 -1
- package/build-types/components/dataviews-view-config/index.d.ts.map +1 -1
- package/build-types/components/dataviews-view-config/properties-section.d.ts +1 -1
- package/build-types/components/dataviews-view-config/properties-section.d.ts.map +1 -1
- package/build-types/constants.d.ts +3 -3
- package/build-types/constants.d.ts.map +1 -1
- package/build-types/dataform/index.d.ts +1 -1
- package/build-types/dataform/index.d.ts.map +1 -1
- package/build-types/dataform/stories/content.story.d.ts.map +1 -1
- package/build-types/dataform/stories/data-adapter.d.ts.map +1 -1
- package/build-types/dataform/stories/index.story.d.ts +9 -9
- package/build-types/dataform/stories/index.story.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-card.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-details.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-mixed.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-panel.d.ts +4 -4
- package/build-types/dataform/stories/layout-panel.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-regular.d.ts +1 -1
- package/build-types/dataform/stories/layout-regular.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-row.d.ts +1 -1
- package/build-types/dataform/stories/layout-row.d.ts.map +1 -1
- package/build-types/dataform/stories/validation.d.ts +3 -3
- package/build-types/dataform/stories/validation.d.ts.map +1 -1
- package/build-types/dataform/stories/visibility.d.ts.map +1 -1
- package/build-types/dataviews/index.d.ts +1 -1
- package/build-types/dataviews/index.d.ts.map +1 -1
- package/build-types/dataviews/stories/empty.d.ts.map +1 -1
- package/build-types/dataviews/stories/free-composition.d.ts.map +1 -1
- package/build-types/dataviews/stories/index.story.d.ts +1 -1
- package/build-types/dataviews/stories/index.story.d.ts.map +1 -1
- package/build-types/dataviews/stories/infinite-scroll.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-activity.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-custom.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-grid.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-list.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-table.d.ts.map +1 -1
- package/build-types/dataviews/stories/minimal-ui.d.ts +1 -1
- package/build-types/dataviews/stories/minimal-ui.d.ts.map +1 -1
- package/build-types/dataviews/stories/with-card.d.ts.map +1 -1
- package/build-types/dataviews-picker/index.d.ts +1 -1
- package/build-types/dataviews-picker/index.d.ts.map +1 -1
- package/build-types/dataviews-picker/stories/index.story.d.ts +24 -20
- package/build-types/dataviews-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/field-types/array.d.ts +3 -3
- package/build-types/field-types/array.d.ts.map +1 -1
- package/build-types/field-types/boolean.d.ts +2 -2
- package/build-types/field-types/boolean.d.ts.map +1 -1
- package/build-types/field-types/color.d.ts +1 -1
- package/build-types/field-types/color.d.ts.map +1 -1
- package/build-types/field-types/date.d.ts +3 -3
- package/build-types/field-types/date.d.ts.map +1 -1
- package/build-types/field-types/datetime.d.ts +3 -3
- package/build-types/field-types/datetime.d.ts.map +1 -1
- package/build-types/field-types/email.d.ts +1 -1
- package/build-types/field-types/email.d.ts.map +1 -1
- package/build-types/field-types/integer.d.ts +3 -3
- package/build-types/field-types/integer.d.ts.map +1 -1
- package/build-types/field-types/media.d.ts.map +1 -1
- package/build-types/field-types/no-type.d.ts.map +1 -1
- package/build-types/field-types/number.d.ts +3 -3
- package/build-types/field-types/number.d.ts.map +1 -1
- package/build-types/field-types/password.d.ts +1 -1
- package/build-types/field-types/password.d.ts.map +1 -1
- package/build-types/field-types/stories/index.story.d.ts +182 -166
- package/build-types/field-types/stories/index.story.d.ts.map +1 -1
- package/build-types/field-types/telephone.d.ts +1 -1
- package/build-types/field-types/telephone.d.ts.map +1 -1
- package/build-types/field-types/text.d.ts +1 -1
- package/build-types/field-types/text.d.ts.map +1 -1
- package/build-types/field-types/url.d.ts +1 -1
- package/build-types/field-types/url.d.ts.map +1 -1
- package/build-types/field-types/utils/get-filter-by.d.ts.map +1 -1
- package/build-types/field-types/utils/get-format.d.ts +109 -109
- package/build-types/field-types/utils/get-format.d.ts.map +1 -1
- package/build-types/field-types/utils/get-value-formatted-default.d.ts +1 -1
- package/build-types/field-types/utils/get-value-formatted-default.d.ts.map +1 -1
- package/build-types/field-types/utils/get-value-from-id.d.ts.map +1 -1
- package/build-types/field-types/utils/render-default.d.ts +1 -1
- package/build-types/field-types/utils/render-default.d.ts.map +1 -1
- package/build-types/field-types/utils/render-from-elements.d.ts +1 -1
- package/build-types/field-types/utils/render-from-elements.d.ts.map +1 -1
- package/build-types/field-types/utils/set-value-from-id.d.ts.map +1 -1
- package/build-types/field-types/utils/sort-number.d.ts.map +1 -1
- package/build-types/field-types/utils/sort-text.d.ts.map +1 -1
- package/build-types/hooks/use-data.d.ts +1 -1
- package/build-types/hooks/use-data.d.ts.map +1 -1
- package/build-types/hooks/use-elements.d.ts +1 -1
- package/build-types/hooks/use-elements.d.ts.map +1 -1
- package/build-types/hooks/use-form-validity.d.ts.map +1 -1
- package/build-types/hooks/use-infinite-scroll.d.ts +1 -1
- package/build-types/hooks/use-infinite-scroll.d.ts.map +1 -1
- package/build-types/types/dataviews.d.ts +1 -1
- package/build-types/types/dataviews.d.ts.map +1 -1
- package/build-types/types/field-api.d.ts +2 -2
- package/build-types/types/field-api.d.ts.map +1 -1
- package/build-types/utils/operators.d.ts +1 -1
- package/build-types/utils/operators.d.ts.map +1 -1
- package/build-wp/index.js +1022 -173
- package/package.json +16 -16
package/build-wp/index.js
CHANGED
|
@@ -1304,18 +1304,92 @@ import clsx2 from "clsx";
|
|
|
1304
1304
|
// ../ui/build-module/text/text.mjs
|
|
1305
1305
|
import { useRender, mergeProps } from "@base-ui/react";
|
|
1306
1306
|
import clsx from "clsx";
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1307
|
+
var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
|
|
1308
|
+
function getRuntime() {
|
|
1309
|
+
const globalScope = globalThis;
|
|
1310
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1311
|
+
return globalScope.__wpStyleRuntime;
|
|
1312
|
+
}
|
|
1313
|
+
globalScope.__wpStyleRuntime = {
|
|
1314
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1315
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1316
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1317
|
+
};
|
|
1318
|
+
if (typeof document !== "undefined") {
|
|
1319
|
+
registerDocument(document);
|
|
1320
|
+
}
|
|
1321
|
+
return globalScope.__wpStyleRuntime;
|
|
1322
|
+
}
|
|
1323
|
+
function documentContainsStyleHash(targetDocument, hash) {
|
|
1324
|
+
if (!targetDocument.head) {
|
|
1325
|
+
return false;
|
|
1326
|
+
}
|
|
1327
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1328
|
+
`style[${STYLE_HASH_ATTRIBUTE}]`
|
|
1329
|
+
)) {
|
|
1330
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
|
|
1331
|
+
return true;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
return false;
|
|
1335
|
+
}
|
|
1336
|
+
function injectStyle(targetDocument, hash, css27) {
|
|
1337
|
+
if (!targetDocument.head) {
|
|
1338
|
+
return;
|
|
1339
|
+
}
|
|
1340
|
+
const runtime = getRuntime();
|
|
1341
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
1342
|
+
if (!injectedStyles) {
|
|
1343
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
1344
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
1345
|
+
}
|
|
1346
|
+
if (injectedStyles.has(hash)) {
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
if (documentContainsStyleHash(targetDocument, hash)) {
|
|
1350
|
+
injectedStyles.add(hash);
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
const style = targetDocument.createElement("style");
|
|
1354
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
|
|
1355
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
1356
|
+
targetDocument.head.appendChild(style);
|
|
1357
|
+
injectedStyles.add(hash);
|
|
1358
|
+
}
|
|
1359
|
+
function registerDocument(targetDocument) {
|
|
1360
|
+
const runtime = getRuntime();
|
|
1361
|
+
runtime.documents.set(
|
|
1362
|
+
targetDocument,
|
|
1363
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
1364
|
+
);
|
|
1365
|
+
for (const [hash, css27] of runtime.styles) {
|
|
1366
|
+
injectStyle(targetDocument, hash, css27);
|
|
1367
|
+
}
|
|
1368
|
+
return () => {
|
|
1369
|
+
const count = runtime.documents.get(targetDocument);
|
|
1370
|
+
if (count === void 0) {
|
|
1371
|
+
return;
|
|
1372
|
+
}
|
|
1373
|
+
if (count <= 1) {
|
|
1374
|
+
runtime.documents.delete(targetDocument);
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function registerStyle(hash, css27) {
|
|
1381
|
+
const runtime = getRuntime();
|
|
1382
|
+
runtime.styles.set(hash, css27);
|
|
1383
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
1384
|
+
injectStyle(targetDocument, hash, css27);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
if (typeof process === "undefined" || true) {
|
|
1388
|
+
registerStyle("0c8601dd83", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');
|
|
1312
1389
|
}
|
|
1313
1390
|
var style_default = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
|
|
1314
|
-
if (typeof
|
|
1315
|
-
|
|
1316
|
-
style.setAttribute("data-wp-hash", "1fb29d3a3c");
|
|
1317
|
-
style.appendChild(document.createTextNode("._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}"));
|
|
1318
|
-
document.head.appendChild(style);
|
|
1391
|
+
if (typeof process === "undefined" || true) {
|
|
1392
|
+
registerStyle("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
|
|
1319
1393
|
}
|
|
1320
1394
|
var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
|
|
1321
1395
|
var Text = forwardRef(function Text2({ variant = "body-md", render: render5, className: className2, ...props }, ref) {
|
|
@@ -1338,11 +1412,88 @@ var Text = forwardRef(function Text2({ variant = "body-md", render: render5, cla
|
|
|
1338
1412
|
|
|
1339
1413
|
// ../ui/build-module/badge/badge.mjs
|
|
1340
1414
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1415
|
+
var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
|
|
1416
|
+
function getRuntime2() {
|
|
1417
|
+
const globalScope = globalThis;
|
|
1418
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1419
|
+
return globalScope.__wpStyleRuntime;
|
|
1420
|
+
}
|
|
1421
|
+
globalScope.__wpStyleRuntime = {
|
|
1422
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1423
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1424
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1425
|
+
};
|
|
1426
|
+
if (typeof document !== "undefined") {
|
|
1427
|
+
registerDocument2(document);
|
|
1428
|
+
}
|
|
1429
|
+
return globalScope.__wpStyleRuntime;
|
|
1430
|
+
}
|
|
1431
|
+
function documentContainsStyleHash2(targetDocument, hash) {
|
|
1432
|
+
if (!targetDocument.head) {
|
|
1433
|
+
return false;
|
|
1434
|
+
}
|
|
1435
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1436
|
+
`style[${STYLE_HASH_ATTRIBUTE2}]`
|
|
1437
|
+
)) {
|
|
1438
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE2) === hash) {
|
|
1439
|
+
return true;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return false;
|
|
1443
|
+
}
|
|
1444
|
+
function injectStyle2(targetDocument, hash, css27) {
|
|
1445
|
+
if (!targetDocument.head) {
|
|
1446
|
+
return;
|
|
1447
|
+
}
|
|
1448
|
+
const runtime = getRuntime2();
|
|
1449
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
1450
|
+
if (!injectedStyles) {
|
|
1451
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
1452
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
1453
|
+
}
|
|
1454
|
+
if (injectedStyles.has(hash)) {
|
|
1455
|
+
return;
|
|
1456
|
+
}
|
|
1457
|
+
if (documentContainsStyleHash2(targetDocument, hash)) {
|
|
1458
|
+
injectedStyles.add(hash);
|
|
1459
|
+
return;
|
|
1460
|
+
}
|
|
1461
|
+
const style = targetDocument.createElement("style");
|
|
1462
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE2, hash);
|
|
1463
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
1464
|
+
targetDocument.head.appendChild(style);
|
|
1465
|
+
injectedStyles.add(hash);
|
|
1466
|
+
}
|
|
1467
|
+
function registerDocument2(targetDocument) {
|
|
1468
|
+
const runtime = getRuntime2();
|
|
1469
|
+
runtime.documents.set(
|
|
1470
|
+
targetDocument,
|
|
1471
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
1472
|
+
);
|
|
1473
|
+
for (const [hash, css27] of runtime.styles) {
|
|
1474
|
+
injectStyle2(targetDocument, hash, css27);
|
|
1475
|
+
}
|
|
1476
|
+
return () => {
|
|
1477
|
+
const count = runtime.documents.get(targetDocument);
|
|
1478
|
+
if (count === void 0) {
|
|
1479
|
+
return;
|
|
1480
|
+
}
|
|
1481
|
+
if (count <= 1) {
|
|
1482
|
+
runtime.documents.delete(targetDocument);
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
function registerStyle2(hash, css27) {
|
|
1489
|
+
const runtime = getRuntime2();
|
|
1490
|
+
runtime.styles.set(hash, css27);
|
|
1491
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
1492
|
+
injectStyle2(targetDocument, hash, css27);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
if (typeof process === "undefined" || true) {
|
|
1496
|
+
registerStyle2("d6a685e1aa", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6be);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee995);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c6f7cd);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-fg-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}");
|
|
1346
1497
|
}
|
|
1347
1498
|
var style_default2 = { "badge": "_96e6251aad1a6136__badge", "is-high-intent": "_99f7158cb520f750__is-high-intent", "is-medium-intent": "c20ebef2365bc8b7__is-medium-intent", "is-low-intent": "_365e1626c6202e52__is-low-intent", "is-stable-intent": "_33f8198127ddf4ef__is-stable-intent", "is-informational-intent": "_04c1aca8fc449412__is-informational-intent", "is-draft-intent": "_90726e69d495ec19__is-draft-intent", "is-none-intent": "_898f4a544993bd39__is-none-intent" };
|
|
1348
1499
|
var Badge = forwardRef(function Badge2({ intent = "none", className: className2, ...props }, ref) {
|
|
@@ -1526,18 +1677,92 @@ __export(card_exports, {
|
|
|
1526
1677
|
// ../ui/build-module/card/root.mjs
|
|
1527
1678
|
import { mergeProps as mergeProps2, useRender as useRender2 } from "@base-ui/react";
|
|
1528
1679
|
import clsx4 from "clsx";
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1680
|
+
var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
|
|
1681
|
+
function getRuntime3() {
|
|
1682
|
+
const globalScope = globalThis;
|
|
1683
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1684
|
+
return globalScope.__wpStyleRuntime;
|
|
1685
|
+
}
|
|
1686
|
+
globalScope.__wpStyleRuntime = {
|
|
1687
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1688
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1689
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1690
|
+
};
|
|
1691
|
+
if (typeof document !== "undefined") {
|
|
1692
|
+
registerDocument3(document);
|
|
1693
|
+
}
|
|
1694
|
+
return globalScope.__wpStyleRuntime;
|
|
1695
|
+
}
|
|
1696
|
+
function documentContainsStyleHash3(targetDocument, hash) {
|
|
1697
|
+
if (!targetDocument.head) {
|
|
1698
|
+
return false;
|
|
1699
|
+
}
|
|
1700
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1701
|
+
`style[${STYLE_HASH_ATTRIBUTE3}]`
|
|
1702
|
+
)) {
|
|
1703
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE3) === hash) {
|
|
1704
|
+
return true;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
return false;
|
|
1708
|
+
}
|
|
1709
|
+
function injectStyle3(targetDocument, hash, css27) {
|
|
1710
|
+
if (!targetDocument.head) {
|
|
1711
|
+
return;
|
|
1712
|
+
}
|
|
1713
|
+
const runtime = getRuntime3();
|
|
1714
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
1715
|
+
if (!injectedStyles) {
|
|
1716
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
1717
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
1718
|
+
}
|
|
1719
|
+
if (injectedStyles.has(hash)) {
|
|
1720
|
+
return;
|
|
1721
|
+
}
|
|
1722
|
+
if (documentContainsStyleHash3(targetDocument, hash)) {
|
|
1723
|
+
injectedStyles.add(hash);
|
|
1724
|
+
return;
|
|
1725
|
+
}
|
|
1726
|
+
const style = targetDocument.createElement("style");
|
|
1727
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE3, hash);
|
|
1728
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
1729
|
+
targetDocument.head.appendChild(style);
|
|
1730
|
+
injectedStyles.add(hash);
|
|
1731
|
+
}
|
|
1732
|
+
function registerDocument3(targetDocument) {
|
|
1733
|
+
const runtime = getRuntime3();
|
|
1734
|
+
runtime.documents.set(
|
|
1735
|
+
targetDocument,
|
|
1736
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
1737
|
+
);
|
|
1738
|
+
for (const [hash, css27] of runtime.styles) {
|
|
1739
|
+
injectStyle3(targetDocument, hash, css27);
|
|
1740
|
+
}
|
|
1741
|
+
return () => {
|
|
1742
|
+
const count = runtime.documents.get(targetDocument);
|
|
1743
|
+
if (count === void 0) {
|
|
1744
|
+
return;
|
|
1745
|
+
}
|
|
1746
|
+
if (count <= 1) {
|
|
1747
|
+
runtime.documents.delete(targetDocument);
|
|
1748
|
+
return;
|
|
1749
|
+
}
|
|
1750
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
function registerStyle3(hash, css27) {
|
|
1754
|
+
const runtime = getRuntime3();
|
|
1755
|
+
runtime.styles.set(hash, css27);
|
|
1756
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
1757
|
+
injectStyle3(targetDocument, hash, css27);
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
if (typeof process === "undefined" || true) {
|
|
1761
|
+
registerStyle3("e3ae230cea", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");
|
|
1534
1762
|
}
|
|
1535
1763
|
var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
|
|
1536
|
-
if (typeof
|
|
1537
|
-
|
|
1538
|
-
style.setAttribute("data-wp-hash", "14f5e9ddeb");
|
|
1539
|
-
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}}"));
|
|
1540
|
-
document.head.appendChild(style);
|
|
1764
|
+
if (typeof process === "undefined" || true) {
|
|
1765
|
+
registerStyle3("14f5e9ddeb", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}}");
|
|
1541
1766
|
}
|
|
1542
1767
|
var style_default3 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
|
|
1543
1768
|
var Root = forwardRef(function Card({ render: render5, ...restProps }, ref) {
|
|
@@ -1553,11 +1778,88 @@ var Root = forwardRef(function Card({ render: render5, ...restProps }, ref) {
|
|
|
1553
1778
|
|
|
1554
1779
|
// ../ui/build-module/card/header.mjs
|
|
1555
1780
|
import { mergeProps as mergeProps3, useRender as useRender3 } from "@base-ui/react";
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1781
|
+
var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
|
|
1782
|
+
function getRuntime4() {
|
|
1783
|
+
const globalScope = globalThis;
|
|
1784
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1785
|
+
return globalScope.__wpStyleRuntime;
|
|
1786
|
+
}
|
|
1787
|
+
globalScope.__wpStyleRuntime = {
|
|
1788
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1789
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1790
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1791
|
+
};
|
|
1792
|
+
if (typeof document !== "undefined") {
|
|
1793
|
+
registerDocument4(document);
|
|
1794
|
+
}
|
|
1795
|
+
return globalScope.__wpStyleRuntime;
|
|
1796
|
+
}
|
|
1797
|
+
function documentContainsStyleHash4(targetDocument, hash) {
|
|
1798
|
+
if (!targetDocument.head) {
|
|
1799
|
+
return false;
|
|
1800
|
+
}
|
|
1801
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1802
|
+
`style[${STYLE_HASH_ATTRIBUTE4}]`
|
|
1803
|
+
)) {
|
|
1804
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE4) === hash) {
|
|
1805
|
+
return true;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
return false;
|
|
1809
|
+
}
|
|
1810
|
+
function injectStyle4(targetDocument, hash, css27) {
|
|
1811
|
+
if (!targetDocument.head) {
|
|
1812
|
+
return;
|
|
1813
|
+
}
|
|
1814
|
+
const runtime = getRuntime4();
|
|
1815
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
1816
|
+
if (!injectedStyles) {
|
|
1817
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
1818
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
1819
|
+
}
|
|
1820
|
+
if (injectedStyles.has(hash)) {
|
|
1821
|
+
return;
|
|
1822
|
+
}
|
|
1823
|
+
if (documentContainsStyleHash4(targetDocument, hash)) {
|
|
1824
|
+
injectedStyles.add(hash);
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
const style = targetDocument.createElement("style");
|
|
1828
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE4, hash);
|
|
1829
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
1830
|
+
targetDocument.head.appendChild(style);
|
|
1831
|
+
injectedStyles.add(hash);
|
|
1832
|
+
}
|
|
1833
|
+
function registerDocument4(targetDocument) {
|
|
1834
|
+
const runtime = getRuntime4();
|
|
1835
|
+
runtime.documents.set(
|
|
1836
|
+
targetDocument,
|
|
1837
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
1838
|
+
);
|
|
1839
|
+
for (const [hash, css27] of runtime.styles) {
|
|
1840
|
+
injectStyle4(targetDocument, hash, css27);
|
|
1841
|
+
}
|
|
1842
|
+
return () => {
|
|
1843
|
+
const count = runtime.documents.get(targetDocument);
|
|
1844
|
+
if (count === void 0) {
|
|
1845
|
+
return;
|
|
1846
|
+
}
|
|
1847
|
+
if (count <= 1) {
|
|
1848
|
+
runtime.documents.delete(targetDocument);
|
|
1849
|
+
return;
|
|
1850
|
+
}
|
|
1851
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
function registerStyle4(hash, css27) {
|
|
1855
|
+
const runtime = getRuntime4();
|
|
1856
|
+
runtime.styles.set(hash, css27);
|
|
1857
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
1858
|
+
injectStyle4(targetDocument, hash, css27);
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
if (typeof process === "undefined" || true) {
|
|
1862
|
+
registerStyle4("14f5e9ddeb", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}}");
|
|
1561
1863
|
}
|
|
1562
1864
|
var style_default4 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
|
|
1563
1865
|
var Header = forwardRef(
|
|
@@ -1574,11 +1876,88 @@ var Header = forwardRef(
|
|
|
1574
1876
|
|
|
1575
1877
|
// ../ui/build-module/card/content.mjs
|
|
1576
1878
|
import { mergeProps as mergeProps4, useRender as useRender4 } from "@base-ui/react";
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1879
|
+
var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash";
|
|
1880
|
+
function getRuntime5() {
|
|
1881
|
+
const globalScope = globalThis;
|
|
1882
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1883
|
+
return globalScope.__wpStyleRuntime;
|
|
1884
|
+
}
|
|
1885
|
+
globalScope.__wpStyleRuntime = {
|
|
1886
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1887
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1888
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1889
|
+
};
|
|
1890
|
+
if (typeof document !== "undefined") {
|
|
1891
|
+
registerDocument5(document);
|
|
1892
|
+
}
|
|
1893
|
+
return globalScope.__wpStyleRuntime;
|
|
1894
|
+
}
|
|
1895
|
+
function documentContainsStyleHash5(targetDocument, hash) {
|
|
1896
|
+
if (!targetDocument.head) {
|
|
1897
|
+
return false;
|
|
1898
|
+
}
|
|
1899
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1900
|
+
`style[${STYLE_HASH_ATTRIBUTE5}]`
|
|
1901
|
+
)) {
|
|
1902
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE5) === hash) {
|
|
1903
|
+
return true;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
return false;
|
|
1907
|
+
}
|
|
1908
|
+
function injectStyle5(targetDocument, hash, css27) {
|
|
1909
|
+
if (!targetDocument.head) {
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
const runtime = getRuntime5();
|
|
1913
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
1914
|
+
if (!injectedStyles) {
|
|
1915
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
1916
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
1917
|
+
}
|
|
1918
|
+
if (injectedStyles.has(hash)) {
|
|
1919
|
+
return;
|
|
1920
|
+
}
|
|
1921
|
+
if (documentContainsStyleHash5(targetDocument, hash)) {
|
|
1922
|
+
injectedStyles.add(hash);
|
|
1923
|
+
return;
|
|
1924
|
+
}
|
|
1925
|
+
const style = targetDocument.createElement("style");
|
|
1926
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE5, hash);
|
|
1927
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
1928
|
+
targetDocument.head.appendChild(style);
|
|
1929
|
+
injectedStyles.add(hash);
|
|
1930
|
+
}
|
|
1931
|
+
function registerDocument5(targetDocument) {
|
|
1932
|
+
const runtime = getRuntime5();
|
|
1933
|
+
runtime.documents.set(
|
|
1934
|
+
targetDocument,
|
|
1935
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
1936
|
+
);
|
|
1937
|
+
for (const [hash, css27] of runtime.styles) {
|
|
1938
|
+
injectStyle5(targetDocument, hash, css27);
|
|
1939
|
+
}
|
|
1940
|
+
return () => {
|
|
1941
|
+
const count = runtime.documents.get(targetDocument);
|
|
1942
|
+
if (count === void 0) {
|
|
1943
|
+
return;
|
|
1944
|
+
}
|
|
1945
|
+
if (count <= 1) {
|
|
1946
|
+
runtime.documents.delete(targetDocument);
|
|
1947
|
+
return;
|
|
1948
|
+
}
|
|
1949
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
function registerStyle5(hash, css27) {
|
|
1953
|
+
const runtime = getRuntime5();
|
|
1954
|
+
runtime.styles.set(hash, css27);
|
|
1955
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
1956
|
+
injectStyle5(targetDocument, hash, css27);
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
if (typeof process === "undefined" || true) {
|
|
1960
|
+
registerStyle5("14f5e9ddeb", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}}");
|
|
1582
1961
|
}
|
|
1583
1962
|
var style_default5 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
|
|
1584
1963
|
var Content = forwardRef(
|
|
@@ -1595,11 +1974,88 @@ var Content = forwardRef(
|
|
|
1595
1974
|
|
|
1596
1975
|
// ../ui/build-module/card/full-bleed.mjs
|
|
1597
1976
|
import { mergeProps as mergeProps5, useRender as useRender5 } from "@base-ui/react";
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1977
|
+
var STYLE_HASH_ATTRIBUTE6 = "data-wp-hash";
|
|
1978
|
+
function getRuntime6() {
|
|
1979
|
+
const globalScope = globalThis;
|
|
1980
|
+
if (globalScope.__wpStyleRuntime) {
|
|
1981
|
+
return globalScope.__wpStyleRuntime;
|
|
1982
|
+
}
|
|
1983
|
+
globalScope.__wpStyleRuntime = {
|
|
1984
|
+
documents: /* @__PURE__ */ new Map(),
|
|
1985
|
+
styles: /* @__PURE__ */ new Map(),
|
|
1986
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
1987
|
+
};
|
|
1988
|
+
if (typeof document !== "undefined") {
|
|
1989
|
+
registerDocument6(document);
|
|
1990
|
+
}
|
|
1991
|
+
return globalScope.__wpStyleRuntime;
|
|
1992
|
+
}
|
|
1993
|
+
function documentContainsStyleHash6(targetDocument, hash) {
|
|
1994
|
+
if (!targetDocument.head) {
|
|
1995
|
+
return false;
|
|
1996
|
+
}
|
|
1997
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
1998
|
+
`style[${STYLE_HASH_ATTRIBUTE6}]`
|
|
1999
|
+
)) {
|
|
2000
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE6) === hash) {
|
|
2001
|
+
return true;
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
return false;
|
|
2005
|
+
}
|
|
2006
|
+
function injectStyle6(targetDocument, hash, css27) {
|
|
2007
|
+
if (!targetDocument.head) {
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
2010
|
+
const runtime = getRuntime6();
|
|
2011
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
2012
|
+
if (!injectedStyles) {
|
|
2013
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
2014
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
2015
|
+
}
|
|
2016
|
+
if (injectedStyles.has(hash)) {
|
|
2017
|
+
return;
|
|
2018
|
+
}
|
|
2019
|
+
if (documentContainsStyleHash6(targetDocument, hash)) {
|
|
2020
|
+
injectedStyles.add(hash);
|
|
2021
|
+
return;
|
|
2022
|
+
}
|
|
2023
|
+
const style = targetDocument.createElement("style");
|
|
2024
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE6, hash);
|
|
2025
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
2026
|
+
targetDocument.head.appendChild(style);
|
|
2027
|
+
injectedStyles.add(hash);
|
|
2028
|
+
}
|
|
2029
|
+
function registerDocument6(targetDocument) {
|
|
2030
|
+
const runtime = getRuntime6();
|
|
2031
|
+
runtime.documents.set(
|
|
2032
|
+
targetDocument,
|
|
2033
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
2034
|
+
);
|
|
2035
|
+
for (const [hash, css27] of runtime.styles) {
|
|
2036
|
+
injectStyle6(targetDocument, hash, css27);
|
|
2037
|
+
}
|
|
2038
|
+
return () => {
|
|
2039
|
+
const count = runtime.documents.get(targetDocument);
|
|
2040
|
+
if (count === void 0) {
|
|
2041
|
+
return;
|
|
2042
|
+
}
|
|
2043
|
+
if (count <= 1) {
|
|
2044
|
+
runtime.documents.delete(targetDocument);
|
|
2045
|
+
return;
|
|
2046
|
+
}
|
|
2047
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
function registerStyle6(hash, css27) {
|
|
2051
|
+
const runtime = getRuntime6();
|
|
2052
|
+
runtime.styles.set(hash, css27);
|
|
2053
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
2054
|
+
injectStyle6(targetDocument, hash, css27);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
if (typeof process === "undefined" || true) {
|
|
2058
|
+
registerStyle6("14f5e9ddeb", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}}");
|
|
1603
2059
|
}
|
|
1604
2060
|
var style_default6 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
|
|
1605
2061
|
var FullBleed = forwardRef(
|
|
@@ -1687,6 +2143,7 @@ var Root3 = forwardRef(
|
|
|
1687
2143
|
);
|
|
1688
2144
|
|
|
1689
2145
|
// ../ui/build-module/collapsible-card/header.mjs
|
|
2146
|
+
import { mergeProps as mergeProps6, useRender as useRender6 } from "@base-ui/react";
|
|
1690
2147
|
import clsx5 from "clsx";
|
|
1691
2148
|
|
|
1692
2149
|
// ../icons/build-module/icon/index.mjs
|
|
@@ -1845,25 +2302,96 @@ var HeaderDescriptionIdContext = createContext({
|
|
|
1845
2302
|
|
|
1846
2303
|
// ../ui/build-module/collapsible-card/header.mjs
|
|
1847
2304
|
import { jsx as jsx44, jsxs } from "react/jsx-runtime";
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
document
|
|
2305
|
+
var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
|
|
2306
|
+
function getRuntime7() {
|
|
2307
|
+
const globalScope = globalThis;
|
|
2308
|
+
if (globalScope.__wpStyleRuntime) {
|
|
2309
|
+
return globalScope.__wpStyleRuntime;
|
|
2310
|
+
}
|
|
2311
|
+
globalScope.__wpStyleRuntime = {
|
|
2312
|
+
documents: /* @__PURE__ */ new Map(),
|
|
2313
|
+
styles: /* @__PURE__ */ new Map(),
|
|
2314
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
2315
|
+
};
|
|
2316
|
+
if (typeof document !== "undefined") {
|
|
2317
|
+
registerDocument7(document);
|
|
2318
|
+
}
|
|
2319
|
+
return globalScope.__wpStyleRuntime;
|
|
2320
|
+
}
|
|
2321
|
+
function documentContainsStyleHash7(targetDocument, hash) {
|
|
2322
|
+
if (!targetDocument.head) {
|
|
2323
|
+
return false;
|
|
2324
|
+
}
|
|
2325
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
2326
|
+
`style[${STYLE_HASH_ATTRIBUTE7}]`
|
|
2327
|
+
)) {
|
|
2328
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE7) === hash) {
|
|
2329
|
+
return true;
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
return false;
|
|
2333
|
+
}
|
|
2334
|
+
function injectStyle7(targetDocument, hash, css27) {
|
|
2335
|
+
if (!targetDocument.head) {
|
|
2336
|
+
return;
|
|
2337
|
+
}
|
|
2338
|
+
const runtime = getRuntime7();
|
|
2339
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
2340
|
+
if (!injectedStyles) {
|
|
2341
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
2342
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
2343
|
+
}
|
|
2344
|
+
if (injectedStyles.has(hash)) {
|
|
2345
|
+
return;
|
|
2346
|
+
}
|
|
2347
|
+
if (documentContainsStyleHash7(targetDocument, hash)) {
|
|
2348
|
+
injectedStyles.add(hash);
|
|
2349
|
+
return;
|
|
2350
|
+
}
|
|
2351
|
+
const style = targetDocument.createElement("style");
|
|
2352
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE7, hash);
|
|
2353
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
2354
|
+
targetDocument.head.appendChild(style);
|
|
2355
|
+
injectedStyles.add(hash);
|
|
2356
|
+
}
|
|
2357
|
+
function registerDocument7(targetDocument) {
|
|
2358
|
+
const runtime = getRuntime7();
|
|
2359
|
+
runtime.documents.set(
|
|
2360
|
+
targetDocument,
|
|
2361
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
2362
|
+
);
|
|
2363
|
+
for (const [hash, css27] of runtime.styles) {
|
|
2364
|
+
injectStyle7(targetDocument, hash, css27);
|
|
2365
|
+
}
|
|
2366
|
+
return () => {
|
|
2367
|
+
const count = runtime.documents.get(targetDocument);
|
|
2368
|
+
if (count === void 0) {
|
|
2369
|
+
return;
|
|
2370
|
+
}
|
|
2371
|
+
if (count <= 1) {
|
|
2372
|
+
runtime.documents.delete(targetDocument);
|
|
2373
|
+
return;
|
|
2374
|
+
}
|
|
2375
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
function registerStyle7(hash, css27) {
|
|
2379
|
+
const runtime = getRuntime7();
|
|
2380
|
+
runtime.styles.set(hash, css27);
|
|
2381
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
2382
|
+
injectStyle7(targetDocument, hash, css27);
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
if (typeof process === "undefined" || true) {
|
|
2386
|
+
registerStyle7("f1b9bb6252", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");
|
|
2387
|
+
}
|
|
2388
|
+
var style_default7 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflowVisible": "_165c4572592944b2__overflowVisible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
|
|
2389
|
+
if (typeof process === "undefined" || true) {
|
|
2390
|
+
registerStyle7("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
|
|
1860
2391
|
}
|
|
1861
2392
|
var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
|
|
1862
|
-
if (typeof
|
|
1863
|
-
|
|
1864
|
-
style.setAttribute("data-wp-hash", "2a5ab8f3a7");
|
|
1865
|
-
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}"));
|
|
1866
|
-
document.head.appendChild(style);
|
|
2393
|
+
if (typeof process === "undefined" || true) {
|
|
2394
|
+
registerStyle7("2a5ab8f3a7", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");
|
|
1867
2395
|
}
|
|
1868
2396
|
var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
|
|
1869
2397
|
var Header2 = forwardRef(
|
|
@@ -1873,53 +2401,58 @@ var Header2 = forwardRef(
|
|
|
1873
2401
|
() => ({ setDescriptionId }),
|
|
1874
2402
|
[setDescriptionId]
|
|
1875
2403
|
);
|
|
1876
|
-
return
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
...restProps
|
|
1886
|
-
}
|
|
2404
|
+
return useRender6({
|
|
2405
|
+
defaultTagName: "div",
|
|
2406
|
+
render: render5,
|
|
2407
|
+
ref,
|
|
2408
|
+
props: mergeProps6(restProps, {
|
|
2409
|
+
className: clsx5(
|
|
2410
|
+
global_css_defense_default2.heading,
|
|
2411
|
+
style_default7["heading-wrapper"],
|
|
2412
|
+
className2
|
|
1887
2413
|
),
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
children: /* @__PURE__ */ jsx44(
|
|
2414
|
+
children: /* @__PURE__ */ jsx44(HeaderDescriptionIdContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(
|
|
2415
|
+
Trigger,
|
|
2416
|
+
{
|
|
2417
|
+
className: style_default7.header,
|
|
2418
|
+
render: /* @__PURE__ */ jsx44(Header, {}),
|
|
2419
|
+
nativeButton: false,
|
|
2420
|
+
"aria-describedby": descriptionId,
|
|
2421
|
+
children: [
|
|
2422
|
+
/* @__PURE__ */ jsx44("div", { className: style_default7["header-content"], children }),
|
|
2423
|
+
/* @__PURE__ */ jsx44(
|
|
1899
2424
|
"div",
|
|
1900
2425
|
{
|
|
1901
2426
|
className: clsx5(
|
|
1902
|
-
style_default7["header-trigger-
|
|
1903
|
-
global_css_defense_default2.div,
|
|
1904
|
-
// While the interactive trigger element is the whole header,
|
|
1905
|
-
// the focus ring will be displayed only on the icon to visually
|
|
1906
|
-
// emulate it being the button.
|
|
1907
|
-
focus_default["outset-ring--focus-parent-visible"]
|
|
2427
|
+
style_default7["header-trigger-positioner"]
|
|
1908
2428
|
),
|
|
1909
2429
|
children: /* @__PURE__ */ jsx44(
|
|
1910
|
-
|
|
2430
|
+
"div",
|
|
1911
2431
|
{
|
|
1912
|
-
|
|
1913
|
-
|
|
2432
|
+
className: clsx5(
|
|
2433
|
+
style_default7["header-trigger-wrapper"],
|
|
2434
|
+
global_css_defense_default2.div,
|
|
2435
|
+
// While the interactive trigger element is the whole header,
|
|
2436
|
+
// the focus ring will be displayed only on the icon to visually
|
|
2437
|
+
// emulate it being the button.
|
|
2438
|
+
focus_default["outset-ring--focus-parent-visible"]
|
|
2439
|
+
),
|
|
2440
|
+
children: /* @__PURE__ */ jsx44(
|
|
2441
|
+
Icon,
|
|
2442
|
+
{
|
|
2443
|
+
icon: chevron_down_default,
|
|
2444
|
+
className: style_default7["header-trigger"]
|
|
2445
|
+
}
|
|
2446
|
+
)
|
|
1914
2447
|
}
|
|
1915
2448
|
)
|
|
1916
2449
|
}
|
|
1917
2450
|
)
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1922
|
-
|
|
2451
|
+
]
|
|
2452
|
+
}
|
|
2453
|
+
) })
|
|
2454
|
+
})
|
|
2455
|
+
});
|
|
1923
2456
|
}
|
|
1924
2457
|
);
|
|
1925
2458
|
|
|
@@ -1948,13 +2481,90 @@ var HeaderDescription = forwardRef(function CollapsibleCardHeaderDescription({ c
|
|
|
1948
2481
|
// ../ui/build-module/collapsible-card/content.mjs
|
|
1949
2482
|
import clsx6 from "clsx";
|
|
1950
2483
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2484
|
+
var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
|
|
2485
|
+
function getRuntime8() {
|
|
2486
|
+
const globalScope = globalThis;
|
|
2487
|
+
if (globalScope.__wpStyleRuntime) {
|
|
2488
|
+
return globalScope.__wpStyleRuntime;
|
|
2489
|
+
}
|
|
2490
|
+
globalScope.__wpStyleRuntime = {
|
|
2491
|
+
documents: /* @__PURE__ */ new Map(),
|
|
2492
|
+
styles: /* @__PURE__ */ new Map(),
|
|
2493
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
2494
|
+
};
|
|
2495
|
+
if (typeof document !== "undefined") {
|
|
2496
|
+
registerDocument8(document);
|
|
2497
|
+
}
|
|
2498
|
+
return globalScope.__wpStyleRuntime;
|
|
2499
|
+
}
|
|
2500
|
+
function documentContainsStyleHash8(targetDocument, hash) {
|
|
2501
|
+
if (!targetDocument.head) {
|
|
2502
|
+
return false;
|
|
2503
|
+
}
|
|
2504
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
2505
|
+
`style[${STYLE_HASH_ATTRIBUTE8}]`
|
|
2506
|
+
)) {
|
|
2507
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE8) === hash) {
|
|
2508
|
+
return true;
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
return false;
|
|
1956
2512
|
}
|
|
1957
|
-
|
|
2513
|
+
function injectStyle8(targetDocument, hash, css27) {
|
|
2514
|
+
if (!targetDocument.head) {
|
|
2515
|
+
return;
|
|
2516
|
+
}
|
|
2517
|
+
const runtime = getRuntime8();
|
|
2518
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
2519
|
+
if (!injectedStyles) {
|
|
2520
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
2521
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
2522
|
+
}
|
|
2523
|
+
if (injectedStyles.has(hash)) {
|
|
2524
|
+
return;
|
|
2525
|
+
}
|
|
2526
|
+
if (documentContainsStyleHash8(targetDocument, hash)) {
|
|
2527
|
+
injectedStyles.add(hash);
|
|
2528
|
+
return;
|
|
2529
|
+
}
|
|
2530
|
+
const style = targetDocument.createElement("style");
|
|
2531
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE8, hash);
|
|
2532
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
2533
|
+
targetDocument.head.appendChild(style);
|
|
2534
|
+
injectedStyles.add(hash);
|
|
2535
|
+
}
|
|
2536
|
+
function registerDocument8(targetDocument) {
|
|
2537
|
+
const runtime = getRuntime8();
|
|
2538
|
+
runtime.documents.set(
|
|
2539
|
+
targetDocument,
|
|
2540
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
2541
|
+
);
|
|
2542
|
+
for (const [hash, css27] of runtime.styles) {
|
|
2543
|
+
injectStyle8(targetDocument, hash, css27);
|
|
2544
|
+
}
|
|
2545
|
+
return () => {
|
|
2546
|
+
const count = runtime.documents.get(targetDocument);
|
|
2547
|
+
if (count === void 0) {
|
|
2548
|
+
return;
|
|
2549
|
+
}
|
|
2550
|
+
if (count <= 1) {
|
|
2551
|
+
runtime.documents.delete(targetDocument);
|
|
2552
|
+
return;
|
|
2553
|
+
}
|
|
2554
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2557
|
+
function registerStyle8(hash, css27) {
|
|
2558
|
+
const runtime = getRuntime8();
|
|
2559
|
+
runtime.styles.set(hash, css27);
|
|
2560
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
2561
|
+
injectStyle8(targetDocument, hash, css27);
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
if (typeof process === "undefined" || true) {
|
|
2565
|
+
registerStyle8("f1b9bb6252", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._165c4572592944b2__overflowVisible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer wp-ui-compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}");
|
|
2566
|
+
}
|
|
2567
|
+
var style_default8 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflowVisible": "_165c4572592944b2__overflowVisible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
|
|
1958
2568
|
var Content2 = forwardRef(
|
|
1959
2569
|
function CollapsibleCardContent({ className: className2, render: render5, children, hiddenUntilFound = true, ...restProps }, ref) {
|
|
1960
2570
|
return /* @__PURE__ */ jsx46(
|
|
@@ -1993,6 +2603,7 @@ var CORE_MODULES_USING_PRIVATE_APIS = [
|
|
|
1993
2603
|
"@wordpress/connectors",
|
|
1994
2604
|
"@wordpress/workflows",
|
|
1995
2605
|
"@wordpress/components",
|
|
2606
|
+
"@wordpress/content-types",
|
|
1996
2607
|
"@wordpress/core-commands",
|
|
1997
2608
|
"@wordpress/core-data",
|
|
1998
2609
|
"@wordpress/customize-widgets",
|
|
@@ -2065,12 +2676,89 @@ var lockedData = /* @__PURE__ */ new WeakMap();
|
|
|
2065
2676
|
var __private = /* @__PURE__ */ Symbol("Private API ID");
|
|
2066
2677
|
|
|
2067
2678
|
// ../ui/build-module/stack/stack.mjs
|
|
2068
|
-
import { useRender as
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2679
|
+
import { useRender as useRender7, mergeProps as mergeProps7 } from "@base-ui/react";
|
|
2680
|
+
var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
|
|
2681
|
+
function getRuntime9() {
|
|
2682
|
+
const globalScope = globalThis;
|
|
2683
|
+
if (globalScope.__wpStyleRuntime) {
|
|
2684
|
+
return globalScope.__wpStyleRuntime;
|
|
2685
|
+
}
|
|
2686
|
+
globalScope.__wpStyleRuntime = {
|
|
2687
|
+
documents: /* @__PURE__ */ new Map(),
|
|
2688
|
+
styles: /* @__PURE__ */ new Map(),
|
|
2689
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
2690
|
+
};
|
|
2691
|
+
if (typeof document !== "undefined") {
|
|
2692
|
+
registerDocument9(document);
|
|
2693
|
+
}
|
|
2694
|
+
return globalScope.__wpStyleRuntime;
|
|
2695
|
+
}
|
|
2696
|
+
function documentContainsStyleHash9(targetDocument, hash) {
|
|
2697
|
+
if (!targetDocument.head) {
|
|
2698
|
+
return false;
|
|
2699
|
+
}
|
|
2700
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
2701
|
+
`style[${STYLE_HASH_ATTRIBUTE9}]`
|
|
2702
|
+
)) {
|
|
2703
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE9) === hash) {
|
|
2704
|
+
return true;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
return false;
|
|
2708
|
+
}
|
|
2709
|
+
function injectStyle9(targetDocument, hash, css27) {
|
|
2710
|
+
if (!targetDocument.head) {
|
|
2711
|
+
return;
|
|
2712
|
+
}
|
|
2713
|
+
const runtime = getRuntime9();
|
|
2714
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
2715
|
+
if (!injectedStyles) {
|
|
2716
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
2717
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
2718
|
+
}
|
|
2719
|
+
if (injectedStyles.has(hash)) {
|
|
2720
|
+
return;
|
|
2721
|
+
}
|
|
2722
|
+
if (documentContainsStyleHash9(targetDocument, hash)) {
|
|
2723
|
+
injectedStyles.add(hash);
|
|
2724
|
+
return;
|
|
2725
|
+
}
|
|
2726
|
+
const style = targetDocument.createElement("style");
|
|
2727
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE9, hash);
|
|
2728
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
2729
|
+
targetDocument.head.appendChild(style);
|
|
2730
|
+
injectedStyles.add(hash);
|
|
2731
|
+
}
|
|
2732
|
+
function registerDocument9(targetDocument) {
|
|
2733
|
+
const runtime = getRuntime9();
|
|
2734
|
+
runtime.documents.set(
|
|
2735
|
+
targetDocument,
|
|
2736
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
2737
|
+
);
|
|
2738
|
+
for (const [hash, css27] of runtime.styles) {
|
|
2739
|
+
injectStyle9(targetDocument, hash, css27);
|
|
2740
|
+
}
|
|
2741
|
+
return () => {
|
|
2742
|
+
const count = runtime.documents.get(targetDocument);
|
|
2743
|
+
if (count === void 0) {
|
|
2744
|
+
return;
|
|
2745
|
+
}
|
|
2746
|
+
if (count <= 1) {
|
|
2747
|
+
runtime.documents.delete(targetDocument);
|
|
2748
|
+
return;
|
|
2749
|
+
}
|
|
2750
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2753
|
+
function registerStyle9(hash, css27) {
|
|
2754
|
+
const runtime = getRuntime9();
|
|
2755
|
+
runtime.styles.set(hash, css27);
|
|
2756
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
2757
|
+
injectStyle9(targetDocument, hash, css27);
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
if (typeof process === "undefined" || true) {
|
|
2761
|
+
registerStyle9("b51ff41489", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");
|
|
2074
2762
|
}
|
|
2075
2763
|
var style_default9 = { "stack": "_19ce0419607e1896__stack" };
|
|
2076
2764
|
var gapTokens = {
|
|
@@ -2090,29 +2778,106 @@ var Stack = forwardRef(function Stack2({ direction, gap, align, justify, wrap, r
|
|
|
2090
2778
|
flexDirection: direction,
|
|
2091
2779
|
flexWrap: wrap
|
|
2092
2780
|
};
|
|
2093
|
-
const element =
|
|
2781
|
+
const element = useRender7({
|
|
2094
2782
|
render: render5,
|
|
2095
2783
|
ref,
|
|
2096
|
-
props:
|
|
2784
|
+
props: mergeProps7(props, { style, className: style_default9.stack })
|
|
2097
2785
|
});
|
|
2098
2786
|
return element;
|
|
2099
2787
|
});
|
|
2100
2788
|
|
|
2101
2789
|
// ../ui/build-module/visually-hidden/visually-hidden.mjs
|
|
2102
|
-
import { mergeProps as
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2790
|
+
import { mergeProps as mergeProps8, useRender as useRender8 } from "@base-ui/react";
|
|
2791
|
+
var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
|
|
2792
|
+
function getRuntime10() {
|
|
2793
|
+
const globalScope = globalThis;
|
|
2794
|
+
if (globalScope.__wpStyleRuntime) {
|
|
2795
|
+
return globalScope.__wpStyleRuntime;
|
|
2796
|
+
}
|
|
2797
|
+
globalScope.__wpStyleRuntime = {
|
|
2798
|
+
documents: /* @__PURE__ */ new Map(),
|
|
2799
|
+
styles: /* @__PURE__ */ new Map(),
|
|
2800
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
2801
|
+
};
|
|
2802
|
+
if (typeof document !== "undefined") {
|
|
2803
|
+
registerDocument10(document);
|
|
2804
|
+
}
|
|
2805
|
+
return globalScope.__wpStyleRuntime;
|
|
2806
|
+
}
|
|
2807
|
+
function documentContainsStyleHash10(targetDocument, hash) {
|
|
2808
|
+
if (!targetDocument.head) {
|
|
2809
|
+
return false;
|
|
2810
|
+
}
|
|
2811
|
+
for (const style of targetDocument.head.querySelectorAll(
|
|
2812
|
+
`style[${STYLE_HASH_ATTRIBUTE10}]`
|
|
2813
|
+
)) {
|
|
2814
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE10) === hash) {
|
|
2815
|
+
return true;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
return false;
|
|
2819
|
+
}
|
|
2820
|
+
function injectStyle10(targetDocument, hash, css27) {
|
|
2821
|
+
if (!targetDocument.head) {
|
|
2822
|
+
return;
|
|
2823
|
+
}
|
|
2824
|
+
const runtime = getRuntime10();
|
|
2825
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
2826
|
+
if (!injectedStyles) {
|
|
2827
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
2828
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
2829
|
+
}
|
|
2830
|
+
if (injectedStyles.has(hash)) {
|
|
2831
|
+
return;
|
|
2832
|
+
}
|
|
2833
|
+
if (documentContainsStyleHash10(targetDocument, hash)) {
|
|
2834
|
+
injectedStyles.add(hash);
|
|
2835
|
+
return;
|
|
2836
|
+
}
|
|
2837
|
+
const style = targetDocument.createElement("style");
|
|
2838
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE10, hash);
|
|
2839
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
2840
|
+
targetDocument.head.appendChild(style);
|
|
2841
|
+
injectedStyles.add(hash);
|
|
2842
|
+
}
|
|
2843
|
+
function registerDocument10(targetDocument) {
|
|
2844
|
+
const runtime = getRuntime10();
|
|
2845
|
+
runtime.documents.set(
|
|
2846
|
+
targetDocument,
|
|
2847
|
+
(runtime.documents.get(targetDocument) ?? 0) + 1
|
|
2848
|
+
);
|
|
2849
|
+
for (const [hash, css27] of runtime.styles) {
|
|
2850
|
+
injectStyle10(targetDocument, hash, css27);
|
|
2851
|
+
}
|
|
2852
|
+
return () => {
|
|
2853
|
+
const count = runtime.documents.get(targetDocument);
|
|
2854
|
+
if (count === void 0) {
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
if (count <= 1) {
|
|
2858
|
+
runtime.documents.delete(targetDocument);
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2861
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
2862
|
+
};
|
|
2863
|
+
}
|
|
2864
|
+
function registerStyle10(hash, css27) {
|
|
2865
|
+
const runtime = getRuntime10();
|
|
2866
|
+
runtime.styles.set(hash, css27);
|
|
2867
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
2868
|
+
injectStyle10(targetDocument, hash, css27);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
if (typeof process === "undefined" || true) {
|
|
2872
|
+
registerStyle10("c46e8cb841", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}");
|
|
2108
2873
|
}
|
|
2109
2874
|
var style_default10 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
|
|
2110
2875
|
var VisuallyHidden = forwardRef(
|
|
2111
2876
|
function VisuallyHidden2({ render: render5, ...restProps }, ref) {
|
|
2112
|
-
const element =
|
|
2877
|
+
const element = useRender8({
|
|
2113
2878
|
render: render5,
|
|
2114
2879
|
ref,
|
|
2115
|
-
props:
|
|
2880
|
+
props: mergeProps8(
|
|
2116
2881
|
{ className: style_default10["visually-hidden"] },
|
|
2117
2882
|
restProps,
|
|
2118
2883
|
{
|
|
@@ -2919,6 +3684,9 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
|
2919
3684
|
surfaceBorderSubtleColor: "rgba(0, 0, 0, 0.05)",
|
|
2920
3685
|
surfaceBackgroundTertiaryColor: COLORS.white,
|
|
2921
3686
|
surfaceColor: COLORS.white,
|
|
3687
|
+
// Modal exit animation: `use-modal-exit-animation` parses this for the
|
|
3688
|
+
// `animationend` timeout race; keep the numeric duration equal to
|
|
3689
|
+
// `--wpds-motion-duration-md` on `.components-modal__frame` in modal/style.scss.
|
|
2922
3690
|
transitionDuration: "200ms",
|
|
2923
3691
|
transitionDurationFast: "160ms",
|
|
2924
3692
|
transitionDurationFaster: "120ms",
|
|
@@ -2937,9 +3705,9 @@ var DROPDOWN_MOTION = Object.freeze({
|
|
|
2937
3705
|
SLIDE_DURATION: 200,
|
|
2938
3706
|
SLIDE_EASING: {
|
|
2939
3707
|
function: "cubic-bezier",
|
|
2940
|
-
args: [0, 0, 0, 1]
|
|
3708
|
+
args: [0.25, 0, 0, 1]
|
|
2941
3709
|
},
|
|
2942
|
-
FADE_DURATION:
|
|
3710
|
+
FADE_DURATION: 100,
|
|
2943
3711
|
FADE_EASING: {
|
|
2944
3712
|
function: "linear"
|
|
2945
3713
|
}
|
|
@@ -3938,25 +4706,25 @@ import { css as css10 } from "@emotion/react";
|
|
|
3938
4706
|
function _EMOTION_STRINGIFIED_CSS_ERROR__4() {
|
|
3939
4707
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3940
4708
|
}
|
|
3941
|
-
var Text3 = /* @__PURE__ */ css10("color:", COLORS.theme.foreground, ";line-height:", config_values_default.fontLineHeightBase, ";margin:0;text-wrap:pretty;" + (false ? "" : ";label:Text;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4709
|
+
var Text3 = /* @__PURE__ */ css10("color:", COLORS.theme.foreground, ";line-height:", config_values_default.fontLineHeightBase, ";margin:0;text-wrap:pretty;" + (false ? "" : ";label:Text;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVdUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBDT0xPUlMsIENPTkZJRyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGNvbnN0IFRleHQgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMudGhlbWUuZm9yZWdyb3VuZCB9O1xuXHRsaW5lLWhlaWdodDogJHsgQ09ORklHLmZvbnRMaW5lSGVpZ2h0QmFzZSB9O1xuXHRtYXJnaW46IDA7XG5cdHRleHQtd3JhcDogcHJldHR5O1xuYDtcblxuZXhwb3J0IGNvbnN0IGJsb2NrID0gY3NzYFxuXHRkaXNwbGF5OiBibG9jaztcbmA7XG5cbmV4cG9ydCBjb25zdCBwb3NpdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5ncmVlbiB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGRlc3RydWN0aXZlID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLmFsZXJ0LnJlZCB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IG11dGVkID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmdyYXlbIDcwMCBdIH07XG5gO1xuXG5leHBvcnQgY29uc3QgaGlnaGxpZ2h0ZXJUZXh0ID0gY3NzYFxuXHRtYXJrIHtcblx0XHRiYWNrZ3JvdW5kOiAkeyBDT0xPUlMuYWxlcnQueWVsbG93IH07XG5cdFx0Ym9yZGVyLXJhZGl1czogJHsgQ09ORklHLnJhZGl1c1NtYWxsIH07XG5cdFx0Ym94LXNoYWRvdzpcblx0XHRcdDAgMCAwIDFweCByZ2JhKCAwLCAwLCAwLCAwLjA1ICkgaW5zZXQsXG5cdFx0XHQwIC0xcHggMCByZ2JhKCAwLCAwLCAwLCAwLjEgKSBpbnNldDtcblx0fVxuYDtcblxuZXhwb3J0IGNvbnN0IHVwcGVyQ2FzZSA9IGNzc2Bcblx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbmA7XG4iXX0= */");
|
|
3942
4710
|
var block2 = false ? {
|
|
3943
4711
|
name: "4zleql",
|
|
3944
4712
|
styles: "display:block"
|
|
3945
4713
|
} : {
|
|
3946
4714
|
name: "14aceuy-block",
|
|
3947
|
-
styles: "display:block;label:block;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4715
|
+
styles: "display:block;label:block;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQndCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */",
|
|
3948
4716
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__4
|
|
3949
4717
|
};
|
|
3950
|
-
var positive = /* @__PURE__ */ css10("color:", COLORS.alert.green, ";" + (false ? "" : ";label:positive;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3951
|
-
var destructive = /* @__PURE__ */ css10("color:", COLORS.alert.red, ";" + (false ? "" : ";label:destructive;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3952
|
-
var muted = /* @__PURE__ */ css10("color:", COLORS.gray[700], ";" + (false ? "" : ";label:muted;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3953
|
-
var highlighterText = /* @__PURE__ */ css10("mark{background:", COLORS.alert.yellow, ";border-radius:", config_values_default.radiusSmall, ";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}" + (false ? "" : ";label:highlighterText;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4718
|
+
var positive = /* @__PURE__ */ css10("color:", COLORS.alert.green, ";" + (false ? "" : ";label:positive;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQjJCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */");
|
|
4719
|
+
var destructive = /* @__PURE__ */ css10("color:", COLORS.alert.red, ";" + (false ? "" : ";label:destructive;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QjhCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */");
|
|
4720
|
+
var muted = /* @__PURE__ */ css10("color:", COLORS.theme.gray[700], ";" + (false ? "" : ";label:muted;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QndCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */");
|
|
4721
|
+
var highlighterText = /* @__PURE__ */ css10("mark{background:", COLORS.alert.yellow, ";border-radius:", config_values_default.radiusSmall, ";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}" + (false ? "" : ";label:highlighterText;"), false ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQ2tDIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */");
|
|
3954
4722
|
var upperCase = false ? {
|
|
3955
4723
|
name: "50zrmy",
|
|
3956
4724
|
styles: "text-transform:uppercase"
|
|
3957
4725
|
} : {
|
|
3958
4726
|
name: "1mrt3zt-upperCase",
|
|
3959
|
-
styles: "text-transform:uppercase;label:upperCase;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4727
|
+
styles: "text-transform:uppercase;label:upperCase;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQzRCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgQ09MT1JTLCBDT05GSUcgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBUZXh0ID0gY3NzYFxuXHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmZvcmVncm91bmQgfTtcblx0bGluZS1oZWlnaHQ6ICR7IENPTkZJRy5mb250TGluZUhlaWdodEJhc2UgfTtcblx0bWFyZ2luOiAwO1xuXHR0ZXh0LXdyYXA6IHByZXR0eTtcbmA7XG5cbmV4cG9ydCBjb25zdCBibG9jayA9IGNzc2Bcblx0ZGlzcGxheTogYmxvY2s7XG5gO1xuXG5leHBvcnQgY29uc3QgcG9zaXRpdmUgPSBjc3NgXG5cdGNvbG9yOiAkeyBDT0xPUlMuYWxlcnQuZ3JlZW4gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBkZXN0cnVjdGl2ZSA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy5hbGVydC5yZWQgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBtdXRlZCA9IGNzc2Bcblx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5ncmF5WyA3MDAgXSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IGhpZ2hsaWdodGVyVGV4dCA9IGNzc2Bcblx0bWFyayB7XG5cdFx0YmFja2dyb3VuZDogJHsgQ09MT1JTLmFsZXJ0LnllbGxvdyB9O1xuXHRcdGJvcmRlci1yYWRpdXM6ICR7IENPTkZJRy5yYWRpdXNTbWFsbCB9O1xuXHRcdGJveC1zaGFkb3c6XG5cdFx0XHQwIDAgMCAxcHggcmdiYSggMCwgMCwgMCwgMC4wNSApIGluc2V0LFxuXHRcdFx0MCAtMXB4IDAgcmdiYSggMCwgMCwgMCwgMC4xICkgaW5zZXQ7XG5cdH1cbmA7XG5cbmV4cG9ydCBjb25zdCB1cHBlckNhc2UgPSBjc3NgXG5cdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5gO1xuIl19 */",
|
|
3960
4728
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__4
|
|
3961
4729
|
};
|
|
3962
4730
|
|
|
@@ -6112,6 +6880,74 @@ import { CacheProvider } from "@emotion/react";
|
|
|
6112
6880
|
import createCache from "@emotion/cache";
|
|
6113
6881
|
import * as uuid from "uuid";
|
|
6114
6882
|
import { jsx as _jsx34 } from "react/jsx-runtime";
|
|
6883
|
+
var STYLE_HASH_ATTRIBUTE11 = "data-wp-hash";
|
|
6884
|
+
function getRuntime11() {
|
|
6885
|
+
const globalScope = globalThis;
|
|
6886
|
+
if (globalScope.__wpStyleRuntime) {
|
|
6887
|
+
return globalScope.__wpStyleRuntime;
|
|
6888
|
+
}
|
|
6889
|
+
globalScope.__wpStyleRuntime = {
|
|
6890
|
+
documents: /* @__PURE__ */ new Map(),
|
|
6891
|
+
styles: /* @__PURE__ */ new Map(),
|
|
6892
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
6893
|
+
};
|
|
6894
|
+
if (typeof document !== "undefined") {
|
|
6895
|
+
registerDocument11(document);
|
|
6896
|
+
}
|
|
6897
|
+
return globalScope.__wpStyleRuntime;
|
|
6898
|
+
}
|
|
6899
|
+
function documentContainsStyleHash11(targetDocument, hash) {
|
|
6900
|
+
if (!targetDocument.head) {
|
|
6901
|
+
return false;
|
|
6902
|
+
}
|
|
6903
|
+
for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE11}]`)) {
|
|
6904
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE11) === hash) {
|
|
6905
|
+
return true;
|
|
6906
|
+
}
|
|
6907
|
+
}
|
|
6908
|
+
return false;
|
|
6909
|
+
}
|
|
6910
|
+
function injectStyle11(targetDocument, hash, css27) {
|
|
6911
|
+
if (!targetDocument.head) {
|
|
6912
|
+
return;
|
|
6913
|
+
}
|
|
6914
|
+
const runtime = getRuntime11();
|
|
6915
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
6916
|
+
if (!injectedStyles) {
|
|
6917
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
6918
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
6919
|
+
}
|
|
6920
|
+
if (injectedStyles.has(hash)) {
|
|
6921
|
+
return;
|
|
6922
|
+
}
|
|
6923
|
+
if (documentContainsStyleHash11(targetDocument, hash)) {
|
|
6924
|
+
injectedStyles.add(hash);
|
|
6925
|
+
return;
|
|
6926
|
+
}
|
|
6927
|
+
const style = targetDocument.createElement("style");
|
|
6928
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE11, hash);
|
|
6929
|
+
style.appendChild(targetDocument.createTextNode(css27));
|
|
6930
|
+
targetDocument.head.appendChild(style);
|
|
6931
|
+
injectedStyles.add(hash);
|
|
6932
|
+
}
|
|
6933
|
+
function registerDocument11(targetDocument) {
|
|
6934
|
+
const runtime = getRuntime11();
|
|
6935
|
+
runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
|
|
6936
|
+
for (const [hash, css27] of runtime.styles) {
|
|
6937
|
+
injectStyle11(targetDocument, hash, css27);
|
|
6938
|
+
}
|
|
6939
|
+
return () => {
|
|
6940
|
+
const count = runtime.documents.get(targetDocument);
|
|
6941
|
+
if (count === void 0) {
|
|
6942
|
+
return;
|
|
6943
|
+
}
|
|
6944
|
+
if (count <= 1) {
|
|
6945
|
+
runtime.documents.delete(targetDocument);
|
|
6946
|
+
return;
|
|
6947
|
+
}
|
|
6948
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
6949
|
+
};
|
|
6950
|
+
}
|
|
6115
6951
|
var uuidCache = /* @__PURE__ */ new Set();
|
|
6116
6952
|
var containerCacheMap = /* @__PURE__ */ new WeakMap();
|
|
6117
6953
|
var memoizedCreateCacheWithContainer = (container) => {
|
|
@@ -6135,6 +6971,12 @@ function StyleProvider(props) {
|
|
|
6135
6971
|
children,
|
|
6136
6972
|
document: document2
|
|
6137
6973
|
} = props;
|
|
6974
|
+
useLayoutEffect(() => {
|
|
6975
|
+
if (!document2) {
|
|
6976
|
+
return;
|
|
6977
|
+
}
|
|
6978
|
+
return registerDocument11(document2);
|
|
6979
|
+
}, [document2]);
|
|
6138
6980
|
if (!document2) {
|
|
6139
6981
|
return null;
|
|
6140
6982
|
}
|
|
@@ -6169,9 +7011,9 @@ function Fill({
|
|
|
6169
7011
|
useLayoutEffect(() => {
|
|
6170
7012
|
registry.updateFill(name, {
|
|
6171
7013
|
instance: instanceRef.current,
|
|
6172
|
-
children
|
|
7014
|
+
children
|
|
6173
7015
|
});
|
|
6174
|
-
});
|
|
7016
|
+
}, [registry, name, children]);
|
|
6175
7017
|
const slot = useObservableValue(registry.slots, name);
|
|
6176
7018
|
if (!slot) {
|
|
6177
7019
|
return null;
|
|
@@ -8759,7 +9601,7 @@ var HexInput = ({
|
|
|
8759
9601
|
enableAlpha
|
|
8760
9602
|
}) => {
|
|
8761
9603
|
const handleChange = (nextValue) => {
|
|
8762
|
-
if (
|
|
9604
|
+
if (nextValue === void 0) {
|
|
8763
9605
|
return;
|
|
8764
9606
|
}
|
|
8765
9607
|
const hexValue = nextValue.startsWith("#") ? nextValue : "#" + nextValue;
|
|
@@ -9940,57 +10782,68 @@ function unmodalize() {
|
|
|
9940
10782
|
}
|
|
9941
10783
|
|
|
9942
10784
|
// ../components/build-module/modal/use-modal-exit-animation.mjs
|
|
9943
|
-
var
|
|
9944
|
-
|
|
10785
|
+
var FRAME_ANIMATION_DURATION_MS = Number.parseInt(
|
|
10786
|
+
config_values_default.transitionDuration
|
|
10787
|
+
);
|
|
9945
10788
|
var EXIT_ANIMATION_NAME = "components-modal__disappear-animation";
|
|
9946
10789
|
function useModalExitAnimation() {
|
|
9947
10790
|
const frameRef = useRef(null);
|
|
9948
10791
|
const [isAnimatingOut, setIsAnimatingOut] = useState(false);
|
|
9949
10792
|
const isReducedMotion = use_reduced_motion_default();
|
|
9950
|
-
const closeModal = useCallback(
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
10793
|
+
const closeModal = useCallback(
|
|
10794
|
+
() => new Promise((closeModalResolve) => {
|
|
10795
|
+
const frameEl = frameRef.current;
|
|
10796
|
+
if (isReducedMotion) {
|
|
10797
|
+
closeModalResolve();
|
|
10798
|
+
return;
|
|
10799
|
+
}
|
|
10800
|
+
if (!frameEl) {
|
|
10801
|
+
warning(
|
|
10802
|
+
"wp.components.Modal: the Modal component can't be closed with an exit animation because of a missing reference to the modal frame element."
|
|
10803
|
+
);
|
|
10804
|
+
closeModalResolve();
|
|
10805
|
+
return;
|
|
10806
|
+
}
|
|
10807
|
+
let handleAnimationEnd;
|
|
10808
|
+
const startAnimation = () => new Promise((animationResolve) => {
|
|
10809
|
+
handleAnimationEnd = (e) => {
|
|
10810
|
+
if (e.animationName === EXIT_ANIMATION_NAME) {
|
|
10811
|
+
animationResolve();
|
|
10812
|
+
}
|
|
10813
|
+
};
|
|
10814
|
+
frameEl.addEventListener(
|
|
10815
|
+
"animationend",
|
|
10816
|
+
handleAnimationEnd
|
|
10817
|
+
);
|
|
10818
|
+
setIsAnimatingOut(true);
|
|
10819
|
+
});
|
|
10820
|
+
const animationTimeout = () => new Promise((timeoutResolve) => {
|
|
10821
|
+
setTimeout(
|
|
10822
|
+
() => timeoutResolve(),
|
|
10823
|
+
// Allow an extra 20% of the animation duration for the
|
|
10824
|
+
// animationend event to fire, in case the animation frame is
|
|
10825
|
+
// slightly delayes by some other events in the event loop.
|
|
10826
|
+
FRAME_ANIMATION_DURATION_MS * 1.2
|
|
10827
|
+
);
|
|
10828
|
+
});
|
|
10829
|
+
Promise.race([startAnimation(), animationTimeout()]).then(
|
|
10830
|
+
() => {
|
|
10831
|
+
if (handleAnimationEnd) {
|
|
10832
|
+
frameEl.removeEventListener(
|
|
10833
|
+
"animationend",
|
|
10834
|
+
handleAnimationEnd
|
|
10835
|
+
);
|
|
10836
|
+
}
|
|
10837
|
+
setIsAnimatingOut(false);
|
|
10838
|
+
closeModalResolve();
|
|
9966
10839
|
}
|
|
9967
|
-
};
|
|
9968
|
-
frameEl.addEventListener("animationend", handleAnimationEnd);
|
|
9969
|
-
setIsAnimatingOut(true);
|
|
9970
|
-
});
|
|
9971
|
-
const animationTimeout = () => new Promise((timeoutResolve) => {
|
|
9972
|
-
setTimeout(
|
|
9973
|
-
() => timeoutResolve(),
|
|
9974
|
-
// Allow an extra 20% of the animation duration for the
|
|
9975
|
-
// animationend event to fire, in case the animation frame is
|
|
9976
|
-
// slightly delayes by some other events in the event loop.
|
|
9977
|
-
FRAME_ANIMATION_DURATION_NUMBER * 1.2
|
|
9978
10840
|
);
|
|
9979
|
-
})
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
frameEl.removeEventListener("animationend", handleAnimationEnd);
|
|
9983
|
-
}
|
|
9984
|
-
setIsAnimatingOut(false);
|
|
9985
|
-
closeModalResolve();
|
|
9986
|
-
});
|
|
9987
|
-
}), [isReducedMotion]);
|
|
10841
|
+
}),
|
|
10842
|
+
[isReducedMotion]
|
|
10843
|
+
);
|
|
9988
10844
|
return {
|
|
9989
10845
|
overlayClassname: isAnimatingOut ? "is-animating-out" : void 0,
|
|
9990
10846
|
frameRef,
|
|
9991
|
-
frameStyle: {
|
|
9992
|
-
"--modal-frame-animation-duration": `${FRAME_ANIMATION_DURATION}`
|
|
9993
|
-
},
|
|
9994
10847
|
closeModal
|
|
9995
10848
|
};
|
|
9996
10849
|
}
|
|
@@ -10099,7 +10952,6 @@ function UnforwardedModal(props, forwardedRef) {
|
|
|
10099
10952
|
const {
|
|
10100
10953
|
closeModal,
|
|
10101
10954
|
frameRef,
|
|
10102
|
-
frameStyle,
|
|
10103
10955
|
overlayClassname
|
|
10104
10956
|
} = useModalExitAnimation();
|
|
10105
10957
|
useLayoutEffect(() => {
|
|
@@ -10163,10 +11015,7 @@ function UnforwardedModal(props, forwardedRef) {
|
|
|
10163
11015
|
document,
|
|
10164
11016
|
children: /* @__PURE__ */ _jsx76("div", {
|
|
10165
11017
|
className: clsx24("components-modal__frame", sizeClass, className2),
|
|
10166
|
-
style
|
|
10167
|
-
...frameStyle,
|
|
10168
|
-
...style
|
|
10169
|
-
},
|
|
11018
|
+
style,
|
|
10170
11019
|
ref: useMergeRefs([frameRef, constrainedTabbingRef, focusReturnRef, focusOnMount !== "firstContentElement" ? focusOnMountRef : null]),
|
|
10171
11020
|
role,
|
|
10172
11021
|
"aria-label": contentLabel,
|