@pantheon-systems/pds-toolkit-react 2.0.0-beta.17 → 2.0.0-beta.19
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/dist/components/Timeline/Timeline.d.ts +29 -0
- package/dist/components/Timeline/TimelineItem.d.ts +68 -0
- package/dist/components/Timeline/timeline-context.d.ts +6 -0
- package/dist/components/charts/Sparkline/Sparkline.d.ts +62 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +23 -2
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +21 -6
- package/dist/components/panels/Panel/Panel.d.ts +12 -3
- package/dist/css/component-css/pds-button.css +1 -1
- package/dist/css/component-css/pds-dropdown-menu.css +1 -1
- package/dist/css/component-css/pds-index.css +6 -6
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-section-message.css +2 -2
- package/dist/css/component-css/pds-sparkline.css +1 -0
- package/dist/css/component-css/pds-timeline.css +1 -0
- package/dist/css/pds-components.css +6 -6
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +758 -521
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -0
- package/dist/svg/badgePercent.svg +3 -0
- package/dist/svg/circleDollar.svg +3 -0
- package/dist/svg/gaugeSimpleHigh.svg +3 -0
- package/package.json +10 -20
package/dist/index.js
CHANGED
|
@@ -264,6 +264,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
264
264
|
svgPathData: "M224 0c13.3 0 24 10.7 24 24l0 190.3 164-95.1c11.5-6.7 26.2-2.7 32.8 8.7s2.7 26.2-8.7 32.8L271.8 256 436 351.2c11.5 6.6 15.4 21.3 8.7 32.8s-21.3 15.4-32.8 8.7L248 297.7 248 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-190.3-164 95.1c-11.5 6.7-26.2 2.7-32.8-8.7S.5 357.9 12 351.2L176.2 256 12 160.8C.5 154.1-3.4 139.4 3.2 128s21.3-15.4 32.8-8.7L200 214.3 200 24c0-13.3 10.7-24 24-24z",
|
|
265
265
|
width: 448
|
|
266
266
|
},
|
|
267
|
+
badgePercent: {
|
|
268
|
+
aliases: ["discount", "sale"],
|
|
269
|
+
categories: ["financial"],
|
|
270
|
+
height: 512,
|
|
271
|
+
svgPathData: "M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5c5.4 10.2 17.2 15.1 28.2 11.7 21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2 20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2 6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2-20-10.6-33.5-31.6-33.5-55.7s13.5-45.1 33.5-55.7c10.2-5.4 15.1-17.2 11.7-28.2-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM192 224a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM320 352a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm17-177c-9.4-9.4-24.6-9.4-33.9 0L175 303c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L337 209c9.4-9.4 9.4-24.6 0-33.9z",
|
|
272
|
+
width: 512
|
|
273
|
+
},
|
|
267
274
|
banBug: {
|
|
268
275
|
aliases: ["no bugs", "debug"],
|
|
269
276
|
categories: ["development", "security"],
|
|
@@ -637,6 +644,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
637
644
|
svgPathData: "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z",
|
|
638
645
|
width: 512
|
|
639
646
|
},
|
|
647
|
+
circleDollar: {
|
|
648
|
+
aliases: ["coin", "money"],
|
|
649
|
+
categories: ["financial"],
|
|
650
|
+
height: 512,
|
|
651
|
+
svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm24-368c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 8.3c-31.5 3.3-56 29.9-56 62.2 0 31.1 22.9 57.5 53.7 61.9l45.8 6.5c7.2 1 12.5 7.2 12.5 14.4 0 8-6.5 14.6-14.6 14.6L208 312c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8.3c31.5-3.3 56-29.9 56-62.2 0-31.1-22.9-57.5-53.7-61.9L236.5 229c-7.2-1-12.5-7.2-12.5-14.4 0-8 6.5-14.6 14.6-14.6l57.4 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0-8z",
|
|
652
|
+
width: 512
|
|
653
|
+
},
|
|
640
654
|
circleExclamation: {
|
|
641
655
|
aliases: [
|
|
642
656
|
"warning",
|
|
@@ -1225,6 +1239,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
1225
1239
|
svgPathData: "M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 392c0 30.9 25.1 56 56 56l184 0 0-48-184 0c-4.4 0-8-3.6-8-8l0-232 192 0 0-48-192 0 0-88zM385.5 48l31.9 21.3c10.5 7 22.9 10.7 35.5 10.7l75.2 0 0 96-192 0 0-128 49.5 0zM288 48l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-75.2 0c-3.2 0-6.2-.9-8.9-2.7L412.1 8.1C404.2 2.8 394.9 0 385.5 0L336 0c-26.5 0-48 21.5-48 48zm97.5 288l33.9 22.6c9.2 6.1 20 9.4 31.1 9.4l77.6 0 0 96-192 0 0-128 49.5 0zM288 336l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-77.6 0c-1.6 0-3.1-.5-4.4-1.3l-33.9-22.6c-7.9-5.3-17.1-8.1-26.6-8.1L336 288c-26.5 0-48 21.5-48 48z",
|
|
1226
1240
|
width: 576
|
|
1227
1241
|
},
|
|
1242
|
+
gaugeSimpleHigh: {
|
|
1243
|
+
aliases: ["speedometer", "dashboard"],
|
|
1244
|
+
categories: ["data", "status"],
|
|
1245
|
+
height: 512,
|
|
1246
|
+
svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm56-160c0-14.4-5.4-27.5-14.4-37.5l60.5-145.3c5.1-12.2-.7-26.3-12.9-31.4s-26.3 .7-31.4 12.9L253.3 296.1c-29.7 1.4-53.3 25.9-53.3 55.9 0 30.9 25.1 56 56 56s56-25.1 56-56z",
|
|
1247
|
+
width: 512
|
|
1248
|
+
},
|
|
1228
1249
|
gear: {
|
|
1229
1250
|
aliases: [
|
|
1230
1251
|
"settings",
|
|
@@ -2440,7 +2461,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
2440
2461
|
svgPathData: "M0 291.5748L240.7741 0L212.7775 227.4007H373.76L131.586 512L166.5823 291.5748H0Z",
|
|
2441
2462
|
width: 374
|
|
2442
2463
|
}
|
|
2443
|
-
}, At = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowRightArrowLeft.arrowsRetweet.arrowUpShortWide.asterisk.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.files.fileZip.floppyDisk.folder.folders.folderTree.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.handWave.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.list.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.rectanglesMixed.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.sparklesSolid.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube.zappy".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
|
|
2464
|
+
}, At = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowRightArrowLeft.arrowsRetweet.arrowUpShortWide.asterisk.badgePercent.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleDollar.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.files.fileZip.floppyDisk.folder.folders.folderTree.gaugeSimpleHigh.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.handWave.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.list.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.rectanglesMixed.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.sparklesSolid.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube.zappy".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
|
|
2444
2465
|
let c = "pds-icon", l = `${c} ${c}--${i} ${c}--${r}`, u = kt[r], d = `0 0 ${u.width} ${u.height}`, f = r in Ot ? Ot[r] : null, p;
|
|
2445
2466
|
if (f?.type === "complex") p = f.render();
|
|
2446
2467
|
else {
|
|
@@ -5907,7 +5928,175 @@ var xr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5907
5928
|
xHeader: q,
|
|
5908
5929
|
yHeader: te
|
|
5909
5930
|
}));
|
|
5910
|
-
}, yi =
|
|
5931
|
+
}, yi = 13, bi = ({ activeIndex: t, chartHeight: n = 60, chartWidth: r, className: i, color: a, colorPalette: o = "categorical", data: s = [], isLoading: c = !1, labelStrings: l = {}, onScrub: u, paletteIndex: d, showAccessibleTable: f = !0, showTooltip: p = !0, tooltipContent: m, valueFormatter: h = (e) => e.toLocaleString(), ...v }) => {
|
|
5932
|
+
let { accessibleTableDescription: y = "Sparkline data", loadingLabel: b = "Loading chart data", scrubberLabel: x = "Select a data point", valueLabel: S = "Value" } = l, C = g(null), w = Ur(0, zr(o, Gr(C, o)), a, Br(o, d)), [T, E] = _(null), [D, O] = _(!1), k = "pds-sparkline", A = s.length - 1, j = (e) => Math.min(Math.max(e, 0), A), M = j(t ?? T ?? A);
|
|
5933
|
+
if (c) return /* @__PURE__ */ e.createElement("div", {
|
|
5934
|
+
ref: C,
|
|
5935
|
+
"aria-busy": "true",
|
|
5936
|
+
"aria-label": b,
|
|
5937
|
+
className: Z([
|
|
5938
|
+
k,
|
|
5939
|
+
`${k}--loading`,
|
|
5940
|
+
i ?? ""
|
|
5941
|
+
]),
|
|
5942
|
+
role: "status",
|
|
5943
|
+
style: { maxWidth: r },
|
|
5944
|
+
...v
|
|
5945
|
+
}, /* @__PURE__ */ e.createElement(ti, {
|
|
5946
|
+
height: n,
|
|
5947
|
+
showLegend: !1
|
|
5948
|
+
}));
|
|
5949
|
+
if (s.length === 0) return /* @__PURE__ */ e.createElement("div", {
|
|
5950
|
+
ref: C,
|
|
5951
|
+
className: Z([
|
|
5952
|
+
k,
|
|
5953
|
+
`${k}--empty`,
|
|
5954
|
+
i ?? ""
|
|
5955
|
+
]),
|
|
5956
|
+
style: {
|
|
5957
|
+
height: n,
|
|
5958
|
+
maxWidth: r
|
|
5959
|
+
},
|
|
5960
|
+
...v
|
|
5961
|
+
});
|
|
5962
|
+
let N = s[M], P = (e) => {
|
|
5963
|
+
let n = j(e);
|
|
5964
|
+
n !== M && (t === void 0 && E(n), u?.({
|
|
5965
|
+
index: n,
|
|
5966
|
+
label: s[n].label,
|
|
5967
|
+
value: s[n].value
|
|
5968
|
+
}));
|
|
5969
|
+
}, F = (e) => {
|
|
5970
|
+
let t = e.currentTarget.getBoundingClientRect(), n = t.width - 26;
|
|
5971
|
+
if (A === 0 || n <= 0) return 0;
|
|
5972
|
+
let r = (e.clientX - t.left - yi) / n;
|
|
5973
|
+
return Math.round(r * A);
|
|
5974
|
+
}, I = (e) => {
|
|
5975
|
+
e.button === 0 && (e.currentTarget.setPointerCapture(e.pointerId), O(!0), P(F(e)));
|
|
5976
|
+
}, L = (e) => {
|
|
5977
|
+
D && P(F(e));
|
|
5978
|
+
}, R = (e) => {
|
|
5979
|
+
e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), O(!1);
|
|
5980
|
+
};
|
|
5981
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
5982
|
+
ref: C,
|
|
5983
|
+
"aria-label": x,
|
|
5984
|
+
"aria-orientation": "horizontal",
|
|
5985
|
+
"aria-valuemax": A,
|
|
5986
|
+
"aria-valuemin": 0,
|
|
5987
|
+
"aria-valuenow": M,
|
|
5988
|
+
"aria-valuetext": `${N.label}: ${h(N.value)}`,
|
|
5989
|
+
className: Z([
|
|
5990
|
+
k,
|
|
5991
|
+
D ? `${k}--dragging` : "",
|
|
5992
|
+
i ?? ""
|
|
5993
|
+
]),
|
|
5994
|
+
onKeyDown: (e) => {
|
|
5995
|
+
let t = Math.max(1, Math.round(s.length / 10)), n = {
|
|
5996
|
+
ArrowDown: M - 1,
|
|
5997
|
+
ArrowLeft: M - 1,
|
|
5998
|
+
ArrowRight: M + 1,
|
|
5999
|
+
ArrowUp: M + 1,
|
|
6000
|
+
End: A,
|
|
6001
|
+
Home: 0,
|
|
6002
|
+
PageDown: M - t,
|
|
6003
|
+
PageUp: M + t
|
|
6004
|
+
};
|
|
6005
|
+
e.key in n && (e.preventDefault(), P(n[e.key]));
|
|
6006
|
+
},
|
|
6007
|
+
onPointerCancel: R,
|
|
6008
|
+
onPointerDown: I,
|
|
6009
|
+
onPointerMove: L,
|
|
6010
|
+
onPointerUp: R,
|
|
6011
|
+
role: "slider",
|
|
6012
|
+
style: { maxWidth: r },
|
|
6013
|
+
tabIndex: 0,
|
|
6014
|
+
...v
|
|
6015
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
6016
|
+
"aria-hidden": "true",
|
|
6017
|
+
style: {
|
|
6018
|
+
contain: "layout size",
|
|
6019
|
+
height: n
|
|
6020
|
+
}
|
|
6021
|
+
}, /* @__PURE__ */ e.createElement(ce, {
|
|
6022
|
+
debounce: 150,
|
|
6023
|
+
height: n,
|
|
6024
|
+
minHeight: n,
|
|
6025
|
+
minWidth: 50,
|
|
6026
|
+
width: "100%"
|
|
6027
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
6028
|
+
accessibilityLayer: !1,
|
|
6029
|
+
data: s,
|
|
6030
|
+
margin: {
|
|
6031
|
+
bottom: yi,
|
|
6032
|
+
left: yi,
|
|
6033
|
+
right: yi,
|
|
6034
|
+
top: yi
|
|
6035
|
+
}
|
|
6036
|
+
}, /* @__PURE__ */ e.createElement(fe, {
|
|
6037
|
+
hide: !0,
|
|
6038
|
+
dataKey: "label"
|
|
6039
|
+
}), /* @__PURE__ */ e.createElement(pe, {
|
|
6040
|
+
hide: !0,
|
|
6041
|
+
domain: ["dataMin", "dataMax"]
|
|
6042
|
+
}), p && /* @__PURE__ */ e.createElement(de, {
|
|
6043
|
+
allowEscapeViewBox: {
|
|
6044
|
+
x: !1,
|
|
6045
|
+
y: !0
|
|
6046
|
+
},
|
|
6047
|
+
content: (t) => {
|
|
6048
|
+
if (!t.active || !t.payload?.length) return null;
|
|
6049
|
+
let n = t.payload.map((e) => ({
|
|
6050
|
+
color: w,
|
|
6051
|
+
dataKey: String(e.dataKey ?? ""),
|
|
6052
|
+
name: S,
|
|
6053
|
+
value: Number(e.value ?? 0)
|
|
6054
|
+
})), r = String(t.label ?? "");
|
|
6055
|
+
return m ? m({
|
|
6056
|
+
entries: n,
|
|
6057
|
+
label: r
|
|
6058
|
+
}) : /* @__PURE__ */ e.createElement("div", { className: "recharts-default-tooltip" }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, r), n.map((t) => /* @__PURE__ */ e.createElement("p", {
|
|
6059
|
+
key: t.dataKey,
|
|
6060
|
+
className: "recharts-tooltip-item"
|
|
6061
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
6062
|
+
className: "recharts-tooltip-item__color",
|
|
6063
|
+
style: { backgroundColor: t.color }
|
|
6064
|
+
}), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), h(t.value))));
|
|
6065
|
+
},
|
|
6066
|
+
cursor: !1,
|
|
6067
|
+
defaultIndex: M,
|
|
6068
|
+
isAnimationActive: !1
|
|
6069
|
+
}), /* @__PURE__ */ e.createElement(ie, {
|
|
6070
|
+
activeDot: !1,
|
|
6071
|
+
dataKey: "value",
|
|
6072
|
+
dot: (t) => t.index === M ? /* @__PURE__ */ e.createElement("g", { key: t.index }, /* @__PURE__ */ e.createElement("circle", {
|
|
6073
|
+
className: "pds-sparkline__focus-ring",
|
|
6074
|
+
cx: t.cx,
|
|
6075
|
+
cy: t.cy,
|
|
6076
|
+
fill: "none",
|
|
6077
|
+
r: 11.5
|
|
6078
|
+
}), /* @__PURE__ */ e.createElement(Xr, {
|
|
6079
|
+
color: w,
|
|
6080
|
+
cx: t.cx,
|
|
6081
|
+
cy: t.cy
|
|
6082
|
+
})) : /* @__PURE__ */ e.createElement("g", { key: t.index }),
|
|
6083
|
+
isAnimationActive: !1,
|
|
6084
|
+
stroke: w,
|
|
6085
|
+
strokeWidth: 4,
|
|
6086
|
+
type: "monotone"
|
|
6087
|
+
})))), f && /* @__PURE__ */ e.createElement(Yr, {
|
|
6088
|
+
data: s.map((e) => ({
|
|
6089
|
+
label: e.label,
|
|
6090
|
+
value: e.value
|
|
6091
|
+
})),
|
|
6092
|
+
description: y,
|
|
6093
|
+
series: [{
|
|
6094
|
+
dataKey: "value",
|
|
6095
|
+
label: S
|
|
6096
|
+
}],
|
|
6097
|
+
valueFormatter: h
|
|
6098
|
+
}));
|
|
6099
|
+
}, xi = /* @__PURE__ */ Ct((/* @__PURE__ */ xt(((e, t) => {
|
|
5911
6100
|
var n = function(e) {
|
|
5912
6101
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5913
6102
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -6194,8 +6383,8 @@ var xr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
6194
6383
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
6195
6384
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
6196
6385
|
})))(), 1);
|
|
6197
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
6198
|
-
var
|
|
6386
|
+
typeof globalThis < "u" && (globalThis.Prism = xi.default);
|
|
6387
|
+
var Si = xi.default;
|
|
6199
6388
|
// node_modules/prismjs/components/prism-diff.js
|
|
6200
6389
|
Prism.languages.markup = {
|
|
6201
6390
|
comment: {
|
|
@@ -6863,7 +7052,7 @@ Prism.languages.markup = {
|
|
|
6863
7052
|
}), Object.defineProperty(e.languages.diff, "PREFIXES", { value: t });
|
|
6864
7053
|
})(Prism);
|
|
6865
7054
|
// src/components/CodeBlock/themes/pds.ts
|
|
6866
|
-
var
|
|
7055
|
+
var Ci = {
|
|
6867
7056
|
plain: {
|
|
6868
7057
|
color: "var(--pds-color-code-block-foreground)",
|
|
6869
7058
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6939,7 +7128,7 @@ var xi = {
|
|
|
6939
7128
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6940
7129
|
}
|
|
6941
7130
|
]
|
|
6942
|
-
},
|
|
7131
|
+
}, wi = ({ className: t, code: n, copyButtonLabel: r = "Copy to clipboard", hasCopyButton: i, hasLineNumbers: a, hasPrompt: o, height: s, isLoading: c, language: l, loadingLineCount: u = 1, maxHeight: d, promptSymbol: f = "$", renderAsLegacy: p = !1, shouldWrap: m = !1, ...h }) => {
|
|
6943
7132
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6944
7133
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6945
7134
|
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement($r, {
|
|
@@ -6991,8 +7180,8 @@ var xi = {
|
|
|
6991
7180
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(he, {
|
|
6992
7181
|
code: n,
|
|
6993
7182
|
language: l || "",
|
|
6994
|
-
prism:
|
|
6995
|
-
theme:
|
|
7183
|
+
prism: Si,
|
|
7184
|
+
theme: Ci
|
|
6996
7185
|
}, /* @__PURE__ */ e.createElement(he.Code, {
|
|
6997
7186
|
className: `${g}__code`,
|
|
6998
7187
|
tabIndex: 0
|
|
@@ -7001,11 +7190,11 @@ var xi = {
|
|
|
7001
7190
|
clipboardText: n,
|
|
7002
7191
|
variant: "reverse"
|
|
7003
7192
|
}))));
|
|
7004
|
-
},
|
|
7193
|
+
}, Ti = {
|
|
7005
7194
|
addon: "circlePlus",
|
|
7006
7195
|
included: "circleCheck",
|
|
7007
7196
|
notIncluded: "xmark"
|
|
7008
|
-
},
|
|
7197
|
+
}, Ei = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
7009
7198
|
addon: "Add-on",
|
|
7010
7199
|
included: "Included",
|
|
7011
7200
|
notIncluded: "Not included"
|
|
@@ -7024,10 +7213,10 @@ var xi = {
|
|
|
7024
7213
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
7025
7214
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
7026
7215
|
className: `${u}__item-icon`,
|
|
7027
|
-
iconName:
|
|
7216
|
+
iconName: Ti[t.type],
|
|
7028
7217
|
size: p
|
|
7029
7218
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
7030
|
-
},
|
|
7219
|
+
}, Di = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
7031
7220
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
7032
7221
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
7033
7222
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -7056,7 +7245,7 @@ var xi = {
|
|
|
7056
7245
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
7057
7246
|
...a
|
|
7058
7247
|
}, l);
|
|
7059
|
-
},
|
|
7248
|
+
}, Oi = ({ alignment: t = "center", className: n, ctaRegion: r, hasIndentedContent: i, heading: a, headingLevel: o = "h1", image: s, imageMarginLeft: c = "0", imageWidth: l = "40%", maxWidth: u = "100%", message: d, video: f, ...p }) => {
|
|
7060
7249
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
7061
7250
|
marginInlineStart: c,
|
|
7062
7251
|
width: l
|
|
@@ -7082,11 +7271,11 @@ var xi = {
|
|
|
7082
7271
|
alt: "",
|
|
7083
7272
|
className: `${m}__image`,
|
|
7084
7273
|
src: s
|
|
7085
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
7274
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Di, {
|
|
7086
7275
|
platform: f.platform,
|
|
7087
7276
|
videoId: f.videoId
|
|
7088
7277
|
})));
|
|
7089
|
-
},
|
|
7278
|
+
}, ki = {
|
|
7090
7279
|
createEnvLive: {
|
|
7091
7280
|
height: 233,
|
|
7092
7281
|
render: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", {
|
|
@@ -8087,8 +8276,8 @@ var xi = {
|
|
|
8087
8276
|
})),
|
|
8088
8277
|
width: 400
|
|
8089
8278
|
}
|
|
8090
|
-
},
|
|
8091
|
-
let s = f(), c = t === "", l =
|
|
8279
|
+
}, Ai = ({ alt: t = "", className: n, height: r, name: i, width: a, ...o }) => {
|
|
8280
|
+
let s = f(), c = t === "", l = ki[i], u = `0 0 ${l.width} ${l.height}`;
|
|
8092
8281
|
return /* @__PURE__ */ e.createElement("svg", {
|
|
8093
8282
|
"aria-hidden": c ? "true" : void 0,
|
|
8094
8283
|
"aria-labelledby": c ? void 0 : s,
|
|
@@ -8102,7 +8291,7 @@ var xi = {
|
|
|
8102
8291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8103
8292
|
...o
|
|
8104
8293
|
}, !c && /* @__PURE__ */ e.createElement("title", { id: s }, t), l.render());
|
|
8105
|
-
},
|
|
8294
|
+
}, ji = ({ className: t, ctaRegion: n, fillHeight: r, heading: i, headingLevel: a = "h2", illustration: o, illustrationWidth: s = "400px", image: c, imageHeight: l = "120px", imageWidth: u = "auto", isLoading: d, message: f, ...p }) => {
|
|
8106
8295
|
let m = "pds-vertical-empty-state";
|
|
8107
8296
|
return f = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${m}__message` }, f) : /* @__PURE__ */ e.createElement("div", { className: `${m}__message` }, f), /* @__PURE__ */ e.createElement("div", {
|
|
8108
8297
|
className: Z([
|
|
@@ -8111,7 +8300,7 @@ var xi = {
|
|
|
8111
8300
|
t ?? ""
|
|
8112
8301
|
]),
|
|
8113
8302
|
...p
|
|
8114
|
-
}, d ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Fn, { size: "5xl" })) : o ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(
|
|
8303
|
+
}, d ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Fn, { size: "5xl" })) : o ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
8115
8304
|
name: o,
|
|
8116
8305
|
width: s
|
|
8117
8306
|
})) : c && /* @__PURE__ */ e.createElement("div", {
|
|
@@ -8128,7 +8317,7 @@ var xi = {
|
|
|
8128
8317
|
baseClass: m,
|
|
8129
8318
|
level: a
|
|
8130
8319
|
}, i), f && f), n && /* @__PURE__ */ e.createElement("div", { className: `${m}__cta` }, n));
|
|
8131
|
-
},
|
|
8320
|
+
}, Mi = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
8132
8321
|
linesChanged: "lines changed",
|
|
8133
8322
|
additions: "additions",
|
|
8134
8323
|
deletions: "deletions"
|
|
@@ -8160,7 +8349,7 @@ var xi = {
|
|
|
8160
8349
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
8161
8350
|
preferredPlacement: "top"
|
|
8162
8351
|
}))));
|
|
8163
|
-
},
|
|
8352
|
+
}, Ni = {
|
|
8164
8353
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
8165
8354
|
fill: "none",
|
|
8166
8355
|
height: "42",
|
|
@@ -8378,7 +8567,7 @@ var xi = {
|
|
|
8378
8567
|
height: "42",
|
|
8379
8568
|
width: "70"
|
|
8380
8569
|
}))))
|
|
8381
|
-
},
|
|
8570
|
+
}, Pi = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
8382
8571
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
8383
8572
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8384
8573
|
className: Z([
|
|
@@ -8387,8 +8576,8 @@ var xi = {
|
|
|
8387
8576
|
t ?? ""
|
|
8388
8577
|
]),
|
|
8389
8578
|
...i
|
|
8390
|
-
},
|
|
8391
|
-
},
|
|
8579
|
+
}, Ni[n]);
|
|
8580
|
+
}, Fi = ({ ariaLabel: t, className: n, hasHalo: i = !0, iconName: a = "zappy", label: o, linkContent: c, shape: l = "circle", size: u = "s", ...d }) => {
|
|
8392
8581
|
let f = "pds-agent-avatar", p = `${f}--${u}`, m = l === "circle" ? null : `${f}--${l}`, h = i ? `${f}--halo` : null, g = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
|
|
8393
8582
|
className: `${f}__icon`,
|
|
8394
8583
|
iconName: a
|
|
@@ -8406,7 +8595,7 @@ var xi = {
|
|
|
8406
8595
|
]),
|
|
8407
8596
|
...d
|
|
8408
8597
|
}, c ? _ : /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, g));
|
|
8409
|
-
},
|
|
8598
|
+
}, Ii = [
|
|
8410
8599
|
"01",
|
|
8411
8600
|
"02",
|
|
8412
8601
|
"03",
|
|
@@ -8427,8 +8616,8 @@ var xi = {
|
|
|
8427
8616
|
"18",
|
|
8428
8617
|
"19",
|
|
8429
8618
|
"20"
|
|
8430
|
-
],
|
|
8431
|
-
let p = "pds-avatar", m = `${p}--${u}`, h = l === "circle" ? null : `${p}--${l}`, g = o ? `${p}--image` : null, [v, y] = _(void 0), b = d ? `var(--pds-gradient-avatar-${
|
|
8619
|
+
], Li = (e) => Ii[parseInt(ge(e), 16) % Ii.length], Ri = ({ ariaLabel: t, className: n, fallbackIcon: i = null, hasUserFallback: a = !1, imageSrc: o, linkContent: c, shape: l = "circle", size: u = "s", uniqueId: d, ...f }) => {
|
|
8620
|
+
let p = "pds-avatar", m = `${p}--${u}`, h = l === "circle" ? null : `${p}--${l}`, g = o ? `${p}--image` : null, [v, y] = _(void 0), b = d ? `var(--pds-gradient-avatar-${Li(d)})` : null, x = i === "business-account" ? "building" : i === "user" || !i && a ? "userSolid" : null, S = {
|
|
8432
8621
|
backgroundImage: b,
|
|
8433
8622
|
borderRadius: l === "square" ? "var(--pds-border-radius-default)" : "100%",
|
|
8434
8623
|
height: "100%",
|
|
@@ -8459,17 +8648,17 @@ var xi = {
|
|
|
8459
8648
|
]),
|
|
8460
8649
|
...f
|
|
8461
8650
|
}, c ? T : w);
|
|
8462
|
-
},
|
|
8651
|
+
}, zi = ({ agentLabel: t, ariaLabel: n, attribution: i, avatarProps: a, className: o, hasAvatar: c = !0, isAgent: l, label: u, linkContent: f, size: p = "s", ...m }) => {
|
|
8463
8652
|
let h = "pds-avatar-label", g = `${h}--${p}`, _ = i ? `${h}--has-attribution` : null;
|
|
8464
8653
|
d(() => {
|
|
8465
8654
|
l && !t && process.env.NODE_ENV !== "production" && console.warn("[AvatarLabel] `agentLabel` is missing, so screen readers are not told this is an agent.");
|
|
8466
8655
|
}, [t, l]);
|
|
8467
8656
|
let v = null;
|
|
8468
|
-
c ? v = l ? /* @__PURE__ */ e.createElement(
|
|
8657
|
+
c ? v = l ? /* @__PURE__ */ e.createElement(Fi, {
|
|
8469
8658
|
...a,
|
|
8470
8659
|
label: t ?? "",
|
|
8471
8660
|
size: p
|
|
8472
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
8661
|
+
}) : /* @__PURE__ */ e.createElement(Ri, {
|
|
8473
8662
|
...a,
|
|
8474
8663
|
size: p
|
|
8475
8664
|
}) : l && (v = /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t));
|
|
@@ -8489,7 +8678,7 @@ var xi = {
|
|
|
8489
8678
|
]),
|
|
8490
8679
|
...m
|
|
8491
8680
|
}, f ? b : y);
|
|
8492
|
-
},
|
|
8681
|
+
}, Bi = ({ agentLabel: t, avatarProps: n, className: r, isAgent: i, isSidebarCollapsed: a, isSingleLine: o, primaryText: s, secondaryText: c, ...u }) => {
|
|
8493
8682
|
let f = "pds-identity-block", p = a ? `${f}--collapsed` : null, m = o ? `${f}--single-line` : null, h = o ? "s" : "m", v = n || i ? {
|
|
8494
8683
|
...n,
|
|
8495
8684
|
size: h
|
|
@@ -8510,10 +8699,10 @@ var xi = {
|
|
|
8510
8699
|
s,
|
|
8511
8700
|
c
|
|
8512
8701
|
]);
|
|
8513
|
-
let D = [s, y ? c : null].filter(Boolean).join(" — "), O = v ? /* @__PURE__ */ e.createElement("div", { className: `${f}__avatar` }, i ? /* @__PURE__ */ e.createElement(
|
|
8702
|
+
let D = [s, y ? c : null].filter(Boolean).join(" — "), O = v ? /* @__PURE__ */ e.createElement("div", { className: `${f}__avatar` }, i ? /* @__PURE__ */ e.createElement(Fi, {
|
|
8514
8703
|
...v,
|
|
8515
8704
|
label: t ?? ""
|
|
8516
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
8705
|
+
}) : /* @__PURE__ */ e.createElement(Ri, v)) : null;
|
|
8517
8706
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8518
8707
|
className: Z([
|
|
8519
8708
|
f,
|
|
@@ -8535,7 +8724,7 @@ var xi = {
|
|
|
8535
8724
|
className: `${f}__secondary-text`,
|
|
8536
8725
|
title: w ? c : void 0
|
|
8537
8726
|
}, c)));
|
|
8538
|
-
},
|
|
8727
|
+
}, Vi = o(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: s, inputWidth: c, inputWidthMin: u, label: d, message: f, name: p, nestingLevel: m = 0, onBlur: h, onChange: g, onFocus: v, required: y, showLabel: b = !0, size: x = "s", validationMessage: S, validationStatus: C, value: w, ...T }, E) => {
|
|
8539
8728
|
let D = yn(c, u), O = "pds-checkbox", k = i ? $.disabled : null, A = C === "error" ? $.error : null, j = m > 0 ? `${O}--indent-${m}` : null, M = y && !i ? $.required : null, N = x === "s" ? null : `${O}--${x}`, P = C === "success" ? $.success : null, F = S || f, I = t !== void 0, [L, R] = _(r !== void 0 && r), z = t || L, ee = (e) => {
|
|
8540
8729
|
I || R(e.target.checked), g && g(e);
|
|
8541
8730
|
}, B = `${O}__box`, V = o ? null : z ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = l(() => {
|
|
@@ -8607,7 +8796,7 @@ var xi = {
|
|
|
8607
8796
|
message: F,
|
|
8608
8797
|
validationStatus: C
|
|
8609
8798
|
}));
|
|
8610
|
-
}),
|
|
8799
|
+
}), Hi = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, required: d = !1, showLabel: f = !0, tooltipText: p = null, validationMessage: m, validationStatus: h, ...g }) => {
|
|
8611
8800
|
let _ = yn(o, s), v = "pds-checkbox-group", y = r ? $.disabled : null, b = d && !r ? $.required : null, x = h === "error" ? $.error : null, S = h === "success" ? $.success : null, C = m || u;
|
|
8612
8801
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8613
8802
|
className: Z([
|
|
@@ -8640,7 +8829,7 @@ var xi = {
|
|
|
8640
8829
|
message: C,
|
|
8641
8830
|
validationStatus: h
|
|
8642
8831
|
}));
|
|
8643
|
-
},
|
|
8832
|
+
}, Ui = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, inputWidthMin: o, label: s, labelVariant: c, message: l, onGroupBlur: u, onValueChange: f, options: p, required: m = !1, showLabel: h = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, ...x }) => {
|
|
8644
8833
|
let S = yn(a, o), C = "pds-checkbox-group", w = n ? $.disabled : null, T = m && !n ? $.required : null, E = b === "error" ? $.error : null, D = b === "success" ? $.success : null, O = y || l;
|
|
8645
8834
|
p.map((e) => {
|
|
8646
8835
|
e.id || (e.id = e.value);
|
|
@@ -8689,7 +8878,7 @@ var xi = {
|
|
|
8689
8878
|
required: m,
|
|
8690
8879
|
showLabel: h,
|
|
8691
8880
|
tooltipText: v
|
|
8692
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, p.map((t) => /* @__PURE__ */ e.createElement(
|
|
8881
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, p.map((t) => /* @__PURE__ */ e.createElement(Vi, {
|
|
8693
8882
|
key: t.id,
|
|
8694
8883
|
checked: t.checked,
|
|
8695
8884
|
className: `${C}__checkbox`,
|
|
@@ -8707,7 +8896,7 @@ var xi = {
|
|
|
8707
8896
|
message: O,
|
|
8708
8897
|
validationStatus: b
|
|
8709
8898
|
}));
|
|
8710
|
-
},
|
|
8899
|
+
}, Wi = o(({ className: t, defaultValue: n, disabled: r = !1, footer: i, hasClearButton: a = !0, hasDropdownTrigger: o = !1, hasSearchIcon: s = !0, hasSearchShortcut: c = !1, id: u, inputWidth: f, inputWidthMin: p, isLoading: m = !1, label: v, labelStrings: y = {
|
|
8711
8900
|
clearButton: "Clear input text",
|
|
8712
8901
|
inputInstructions: "Type to search options",
|
|
8713
8902
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8902,13 +9091,13 @@ var xi = {
|
|
|
8902
9091
|
validationMessageHasDecorators: !1,
|
|
8903
9092
|
validationStatus: V
|
|
8904
9093
|
}));
|
|
8905
|
-
}),
|
|
9094
|
+
}), Gi = (e, t, n) => {
|
|
8906
9095
|
let r = n.toLowerCase();
|
|
8907
9096
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
8908
9097
|
...e,
|
|
8909
9098
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
8910
9099
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
8911
|
-
},
|
|
9100
|
+
}, Ki = ({ aiSuggestions: t, className: n, disabled: r = !1, footer: i, id: a, initialSelectedItems: o = [], inputWidth: s, inputWidthMin: c, isLoading: l = !1, label: u = "Lorem ipsum dolor sit:", labelStrings: d = {
|
|
8912
9101
|
aiBadgeLabel: "Suggested",
|
|
8913
9102
|
aiPanelButton: "Show AI suggestions",
|
|
8914
9103
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -8916,7 +9105,7 @@ var xi = {
|
|
|
8916
9105
|
inputInstructions: "Type to search options",
|
|
8917
9106
|
triggerButton: "Toggle dropdown menu"
|
|
8918
9107
|
}, loadingText: f = "Loading results...", noResultsText: p = "No results found", onChange: m, options: v, placeholder: y = "Filter", required: b = !1, showAllTags: x = !1, showLabel: S = !0, size: w = "s", ...T }) => {
|
|
8919
|
-
let k = yn(s, c), A = "pds-combobox-multi", M = w === "s" ? null : `${A}--${w}`, F = r ? $.disabled : null, I = b && !r ? $.required : null, L = x ? `${A}--show-all-tags` : null, [R, z] = _(""), [B, H] = _(o), [U, W] = _(null), [G, K] = _(!1), q = h(() =>
|
|
9108
|
+
let k = yn(s, c), A = "pds-combobox-multi", M = w === "s" ? null : `${A}--${w}`, F = r ? $.disabled : null, I = b && !r ? $.required : null, L = x ? `${A}--show-all-tags` : null, [R, z] = _(""), [B, H] = _(o), [U, W] = _(null), [G, K] = _(!1), q = h(() => Gi(v, B, R), [
|
|
8920
9109
|
v,
|
|
8921
9110
|
B,
|
|
8922
9111
|
R
|
|
@@ -9175,22 +9364,22 @@ var xi = {
|
|
|
9175
9364
|
iconName: "xmark",
|
|
9176
9365
|
size: "m"
|
|
9177
9366
|
}))))));
|
|
9178
|
-
},
|
|
9367
|
+
}, qi = [
|
|
9179
9368
|
768,
|
|
9180
9369
|
Nt,
|
|
9181
9370
|
Pt
|
|
9182
|
-
].map((e) => `(min-width: ${e}px)`),
|
|
9183
|
-
let t =
|
|
9371
|
+
].map((e) => `(min-width: ${e}px)`), Ji = (e) => {
|
|
9372
|
+
let t = qi.map((t) => hn(t, e));
|
|
9184
9373
|
return () => t.forEach((e) => e());
|
|
9185
|
-
},
|
|
9186
|
-
let [e, t, n] =
|
|
9374
|
+
}, Yi = () => {
|
|
9375
|
+
let [e, t, n] = qi.map((e) => window.matchMedia(e).matches);
|
|
9187
9376
|
return n ? "xl" : t ? "lg" : e ? "md" : "sm";
|
|
9188
|
-
},
|
|
9377
|
+
}, Xi = () => "lg", Zi = () => v(Ji, Yi, Xi), Qi = (e) => String(e).padStart(2, "0"), $i = (e) => {
|
|
9189
9378
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
9190
9379
|
if (!t) return null;
|
|
9191
9380
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
9192
9381
|
return n > 23 || r > 59 ? null : new be(n, r);
|
|
9193
|
-
},
|
|
9382
|
+
}, ea = (e) => e ? `${Qi(e.hour)}:${Qi(e.minute)}` : void 0, ta = ({ baseClass: t, segment: n, state: r }) => {
|
|
9194
9383
|
let i = g(null), { segmentProps: a } = ze(n, r, i), { focusProps: o, isFocusVisible: s } = Be(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
9195
9384
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9196
9385
|
...Pe(a, o),
|
|
@@ -9201,15 +9390,15 @@ var xi = {
|
|
|
9201
9390
|
s ? `${t}__segment--focus-visible` : null
|
|
9202
9391
|
])
|
|
9203
9392
|
}, c);
|
|
9204
|
-
},
|
|
9205
|
-
let E = yn(s, c), D = "pds-timepicker", O = b === "s" ? null : `${D}--${b}`, k = i ? $.disabled : null, A = v && !i ? $.required : null, j = w === "error" ? $.error : null, M = w === "success" ? $.success : null, N = C || u, P = T !== void 0, { locale: F } = Ve(), [I, L] = _(r), R = P ? T : I, z = h(() =>
|
|
9393
|
+
}, na = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, inputWidthMin: c, label: l, message: u, onBlur: f, onChange: p, onFocus: m, required: v = !1, showLabel: y = !0, size: b = "s", timeZone: x, tooltipText: S = null, validationMessage: C, validationStatus: w, value: T }) => {
|
|
9394
|
+
let E = yn(s, c), D = "pds-timepicker", O = b === "s" ? null : `${D}--${b}`, k = i ? $.disabled : null, A = v && !i ? $.required : null, j = w === "error" ? $.error : null, M = w === "success" ? $.success : null, N = C || u, P = T !== void 0, { locale: F } = Ve(), [I, L] = _(r), R = P ? T : I, z = h(() => $i(R), [R]), ee = Ke({
|
|
9206
9395
|
granularity: "minute",
|
|
9207
9396
|
hourCycle: a,
|
|
9208
9397
|
isDisabled: i,
|
|
9209
9398
|
locale: F,
|
|
9210
9399
|
onBlur: f,
|
|
9211
9400
|
onChange: (e) => {
|
|
9212
|
-
let t =
|
|
9401
|
+
let t = ea(e);
|
|
9213
9402
|
t && (P || L(t), p && p(t));
|
|
9214
9403
|
},
|
|
9215
9404
|
onFocusChange: (e) => {
|
|
@@ -9227,7 +9416,7 @@ var xi = {
|
|
|
9227
9416
|
if (H.current = x, !x || !e || x === e) return;
|
|
9228
9417
|
let n = ee.value;
|
|
9229
9418
|
if (!n) return;
|
|
9230
|
-
let r = t ?? je(e), i = Ae(Oe(r, n), e), a = ke(i, x), o =
|
|
9419
|
+
let r = t ?? je(e), i = Ae(Oe(r, n), e), a = ke(i, x), o = ea(new be(a.hour, a.minute));
|
|
9231
9420
|
o && (P || L(o), p && p(o));
|
|
9232
9421
|
}, [x]);
|
|
9233
9422
|
let U = h(() => {
|
|
@@ -9277,7 +9466,7 @@ var xi = {
|
|
|
9277
9466
|
}), /* @__PURE__ */ e.createElement("div", { className: `${D}__value` }, ee.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
9278
9467
|
key: n,
|
|
9279
9468
|
className: Z([`${D}__separator`, t.text === ":" ? `${D}__separator--colon` : null])
|
|
9280
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
9469
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ta, {
|
|
9281
9470
|
key: n,
|
|
9282
9471
|
baseClass: D,
|
|
9283
9472
|
segment: t,
|
|
@@ -9289,31 +9478,31 @@ var xi = {
|
|
|
9289
9478
|
validationMessageHasDecorators: !1,
|
|
9290
9479
|
validationStatus: w
|
|
9291
9480
|
}));
|
|
9292
|
-
},
|
|
9481
|
+
}, ra = (e, t = Te()) => {
|
|
9293
9482
|
if (!e) return;
|
|
9294
9483
|
let n = we(e, t);
|
|
9295
9484
|
return new ye(n.year, n.month, n.day);
|
|
9296
|
-
},
|
|
9485
|
+
}, ia = (e, t = Te()) => e ? e.toDate(t) : void 0, aa = (e) => String(e).padStart(2, "0"), oa = (e) => {
|
|
9297
9486
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
9298
9487
|
if (!t) return;
|
|
9299
9488
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
9300
9489
|
if (!(n > 23 || r > 59)) return new be(n, r);
|
|
9301
|
-
},
|
|
9490
|
+
}, sa = (e, t = Te()) => {
|
|
9302
9491
|
if (!e) return;
|
|
9303
9492
|
let n = we(e, t);
|
|
9304
|
-
return `${
|
|
9305
|
-
},
|
|
9493
|
+
return `${aa(n.hour)}:${aa(n.minute)}`;
|
|
9494
|
+
}, ca = (e, t, n = Te()) => {
|
|
9306
9495
|
if (!e) return;
|
|
9307
|
-
let r =
|
|
9308
|
-
return r ? Oe(e, r).toDate(n) :
|
|
9309
|
-
},
|
|
9496
|
+
let r = oa(t);
|
|
9497
|
+
return r ? Oe(e, r).toDate(n) : ia(e, n);
|
|
9498
|
+
}, la = "00:00", ua = "23:59", da = (e, t, n = Te()) => {
|
|
9310
9499
|
if (!e) return "";
|
|
9311
9500
|
let r = we(e, n);
|
|
9312
9501
|
return Me(new Date(r.year, r.month - 1, r.day), "PP", { locale: t });
|
|
9313
|
-
},
|
|
9502
|
+
}, fa = (e, t) => {
|
|
9314
9503
|
let n = je(t).year;
|
|
9315
9504
|
return e.some((e) => !!e && we(e, t).year !== n);
|
|
9316
|
-
},
|
|
9505
|
+
}, pa = (e, { hourCycle: t, includeYear: n, localeString: r, timeZone: i = Te() }) => e ? new Intl.DateTimeFormat(r, {
|
|
9317
9506
|
day: "numeric",
|
|
9318
9507
|
hour: t === 24 ? "2-digit" : "numeric",
|
|
9319
9508
|
hourCycle: t === 24 ? "h23" : "h12",
|
|
@@ -9321,15 +9510,15 @@ var xi = {
|
|
|
9321
9510
|
month: "short",
|
|
9322
9511
|
timeZone: i,
|
|
9323
9512
|
...n ? { year: "numeric" } : {}
|
|
9324
|
-
}).format(e) : "",
|
|
9513
|
+
}).format(e) : "", ma = (e, t) => {
|
|
9325
9514
|
if (e.custom) return e.custom();
|
|
9326
9515
|
let n = t?.timeZone ?? Te(), r = t?.locale ?? "en-US", i = je(n);
|
|
9327
9516
|
if (e.days !== void 0) return e.days < 0 ? {
|
|
9328
|
-
from:
|
|
9329
|
-
to:
|
|
9517
|
+
from: ia(i.add({ days: e.days + 1 }), n),
|
|
9518
|
+
to: ia(i, n)
|
|
9330
9519
|
} : {
|
|
9331
|
-
from:
|
|
9332
|
-
to:
|
|
9520
|
+
from: ia(i, n),
|
|
9521
|
+
to: ia(i.add({ days: e.days - 1 }), n)
|
|
9333
9522
|
};
|
|
9334
9523
|
if (e.hours !== void 0) {
|
|
9335
9524
|
let t = /* @__PURE__ */ new Date(), n = new Date(t.getTime() + e.hours * 60 * 60 * 1e3);
|
|
@@ -9353,37 +9542,37 @@ var xi = {
|
|
|
9353
9542
|
}
|
|
9354
9543
|
switch (e.type) {
|
|
9355
9544
|
case "today": return {
|
|
9356
|
-
from:
|
|
9357
|
-
to:
|
|
9545
|
+
from: ia(i, n),
|
|
9546
|
+
to: ia(i, n)
|
|
9358
9547
|
};
|
|
9359
9548
|
case "current-week": return {
|
|
9360
|
-
from:
|
|
9361
|
-
to:
|
|
9549
|
+
from: ia(De(i, r), n),
|
|
9550
|
+
to: ia(Ce(i, r), n)
|
|
9362
9551
|
};
|
|
9363
9552
|
case "current-month": return {
|
|
9364
|
-
from:
|
|
9365
|
-
to:
|
|
9553
|
+
from: ia(Ee(i), n),
|
|
9554
|
+
to: ia(Se(i), n)
|
|
9366
9555
|
};
|
|
9367
9556
|
case "last-week": {
|
|
9368
9557
|
let e = i.subtract({ weeks: 1 });
|
|
9369
9558
|
return {
|
|
9370
|
-
from:
|
|
9371
|
-
to:
|
|
9559
|
+
from: ia(De(e, r), n),
|
|
9560
|
+
to: ia(Ce(e, r), n)
|
|
9372
9561
|
};
|
|
9373
9562
|
}
|
|
9374
9563
|
case "last-month": {
|
|
9375
9564
|
let e = i.subtract({ months: 1 });
|
|
9376
9565
|
return {
|
|
9377
|
-
from:
|
|
9378
|
-
to:
|
|
9566
|
+
from: ia(Ee(e), n),
|
|
9567
|
+
to: ia(Se(e), n)
|
|
9379
9568
|
};
|
|
9380
9569
|
}
|
|
9381
9570
|
default: return {
|
|
9382
|
-
from:
|
|
9383
|
-
to:
|
|
9571
|
+
from: ia(i, n),
|
|
9572
|
+
to: ia(i, n)
|
|
9384
9573
|
};
|
|
9385
9574
|
}
|
|
9386
|
-
},
|
|
9575
|
+
}, ha = {
|
|
9387
9576
|
clearButton: "Clear",
|
|
9388
9577
|
customPresetLabel: "Custom",
|
|
9389
9578
|
doneButton: "Done",
|
|
@@ -9404,7 +9593,7 @@ var xi = {
|
|
|
9404
9593
|
to: " to ",
|
|
9405
9594
|
todayButton: "Today",
|
|
9406
9595
|
utcTimeZoneLabel: "UTC"
|
|
9407
|
-
},
|
|
9596
|
+
}, ga = ({ baseClass: t, currentMonth: n, date: r, state: i, timeZone: a }) => {
|
|
9408
9597
|
let o = g(null), { buttonProps: s, cellProps: c, formattedDate: l, isDisabled: u, isOutsideVisibleRange: d, isSelected: f, isUnavailable: p } = Le({ date: r }, i, o), m = r.month !== n.month || r.year !== n.year, h = "highlightedRange" in i ? i : null, _ = !!h?.highlightedRange && r.compare(h.highlightedRange.start) === 0, v = !!h?.highlightedRange && r.compare(h.highlightedRange.end) === 0, y = f && h && !_ && !v, b = d || m, x = r.compare(je(a)) === 0;
|
|
9409
9598
|
return /* @__PURE__ */ e.createElement("td", {
|
|
9410
9599
|
...c,
|
|
@@ -9426,7 +9615,7 @@ var xi = {
|
|
|
9426
9615
|
]),
|
|
9427
9616
|
hidden: b
|
|
9428
9617
|
}, l));
|
|
9429
|
-
},
|
|
9618
|
+
}, _a = ({ baseClass: t, monthOffset: n = 0, state: r, timeZone: i }) => {
|
|
9430
9619
|
let a = r.visibleRange.start.add({ months: n }), { gridProps: o, headerProps: s, weekDays: c, weeksInMonth: l } = Re({ startDate: a }, r);
|
|
9431
9620
|
return /* @__PURE__ */ e.createElement("table", {
|
|
9432
9621
|
...o,
|
|
@@ -9434,7 +9623,7 @@ var xi = {
|
|
|
9434
9623
|
}, /* @__PURE__ */ e.createElement("thead", s, /* @__PURE__ */ e.createElement("tr", null, c.map((n, r) => /* @__PURE__ */ e.createElement("th", {
|
|
9435
9624
|
key: r,
|
|
9436
9625
|
className: `${t}__weekday`
|
|
9437
|
-
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(
|
|
9626
|
+
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(ga, {
|
|
9438
9627
|
key: o,
|
|
9439
9628
|
baseClass: t,
|
|
9440
9629
|
currentMonth: a,
|
|
@@ -9442,26 +9631,26 @@ var xi = {
|
|
|
9442
9631
|
state: r,
|
|
9443
9632
|
timeZone: i
|
|
9444
9633
|
}) : /* @__PURE__ */ e.createElement("td", { key: o }))))));
|
|
9445
|
-
},
|
|
9634
|
+
}, va = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i, defaultTimeZoneMode: a = "utc", disabled: o = !1, footerNote: s, hourCycle: c = 12, id: l, inputWidth: u, inputWidthMin: f, label: p, locale: m, maxDate: v, message: y, minDate: b, mode: x = "single", onChange: S, onTimeZoneChange: w, placeholder: T, presets: E, required: D = !1, showLabel: O = !0, showPresetCalendar: k = !0, showTime: A = !1, showTimeZoneSwitcher: j = !1, showTodayButton: M = !0, timeZone: N = Te(), tooltipText: P, translationStrings: F, validationMessage: I, validationStatus: L, value: R, visibleMonths: z = 2, ...ee }) => {
|
|
9446
9635
|
let B = x === "range", V = {
|
|
9447
|
-
...
|
|
9636
|
+
...ha,
|
|
9448
9637
|
...F
|
|
9449
|
-
}, H = B && !!E && E.length > 0, U =
|
|
9638
|
+
}, H = B && !!E && E.length > 0, U = Zi() === "sm", W = k && !U;
|
|
9450
9639
|
j && !A && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), E && E.length > 0 && !B && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !H && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(H && E?.some((e) => e.label === i)) && process.env.NODE_ENV !== "production" && console.warn(`[Datepicker] \`defaultPresetLabel\` "${i}" matches no entry in \`presets\` — nothing is seeded as active.`);
|
|
9451
9640
|
let { locale: G } = Ve(), K = m?.code ?? G, q = h(() => B ? E?.find((e) => e.label === i) : void 0, [
|
|
9452
9641
|
i,
|
|
9453
9642
|
B,
|
|
9454
9643
|
E
|
|
9455
9644
|
]), te = (e) => {
|
|
9456
|
-
let t =
|
|
9645
|
+
let t = ma(e, {
|
|
9457
9646
|
locale: K,
|
|
9458
9647
|
timeZone: N
|
|
9459
9648
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
9460
9649
|
return !A || n ? t : {
|
|
9461
|
-
from:
|
|
9462
|
-
to:
|
|
9650
|
+
from: ca(ra(t.from, N), la, N),
|
|
9651
|
+
to: ca(ra(t.to, N), ua, N)
|
|
9463
9652
|
};
|
|
9464
|
-
}, [J, ne] = _(() => R ?? (q ? te(q) : void 0)), [re, ie] = _(a), Y = j ? re === "utc" ? "UTC" : Te() : N, [X, ae] = _(q?.label), [oe, se] = _(W), ce = !H || oe, le = !H || k || t, ue = z === 1 ? B && A ? 400 : 280 : 550, de = g(null), fe = X === void 0 && (B ? !!J?.from : !!J), pe = (e, t) => B && A ? e ?? t : e, [me, he] = _(() => pe(
|
|
9653
|
+
}, [J, ne] = _(() => R ?? (q ? te(q) : void 0)), [re, ie] = _(a), Y = j ? re === "utc" ? "UTC" : Te() : N, [X, ae] = _(q?.label), [oe, se] = _(W), ce = !H || oe, le = !H || k || t, ue = z === 1 ? B && A ? 400 : 280 : 550, de = g(null), fe = X === void 0 && (B ? !!J?.from : !!J), pe = (e, t) => B && A ? e ?? t : e, [me, he] = _(() => pe(sa(B ? J?.from : J, Y), la)), [ge, _e] = _(() => pe(sa(J?.to, Y), ua)), ve = yn(u, f), ye = "pds-datepicker", be = o ? $.disabled : null, Se = D && !o ? $.required : null, Ce = L === "error" ? $.error : null, we = L === "success" ? $.success : null, Ee = I || y, De = /* @__PURE__ */ e.createElement("div", { className: `${ye}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${ye}__timezone-switcher-label` }, V.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(Cr, {
|
|
9465
9654
|
id: `${l}-timezone-switcher`,
|
|
9466
9655
|
label: V.timeZoneSwitcherLabel || "",
|
|
9467
9656
|
onChange: (e) => {
|
|
@@ -9484,7 +9673,7 @@ var xi = {
|
|
|
9484
9673
|
role: "dialog",
|
|
9485
9674
|
shiftPadding: 16,
|
|
9486
9675
|
variant: "default"
|
|
9487
|
-
}), ze = $n("var(--pds-z-index-overlay)"), Be =
|
|
9676
|
+
}), ze = $n("var(--pds-z-index-overlay)"), Be = ra(b, Y), Ue = ra(v, Y), Ke = (e, t, n = !1) => {
|
|
9488
9677
|
ne(e), ae(t), S?.(e), !B && n && setTimeout(() => {
|
|
9489
9678
|
Re(!1);
|
|
9490
9679
|
}, 300);
|
|
@@ -9494,9 +9683,9 @@ var xi = {
|
|
|
9494
9683
|
maxValue: Ue,
|
|
9495
9684
|
minValue: Be,
|
|
9496
9685
|
onChange: (e) => {
|
|
9497
|
-
B || Ke(
|
|
9686
|
+
B || Ke(ca(e, A ? me : void 0, Y), void 0, !A);
|
|
9498
9687
|
},
|
|
9499
|
-
value: B ? null :
|
|
9688
|
+
value: B ? null : ra(J, Y) ?? null
|
|
9500
9689
|
}), Je = g(null), Ye = Ge({
|
|
9501
9690
|
createCalendar: xe,
|
|
9502
9691
|
locale: K,
|
|
@@ -9505,12 +9694,12 @@ var xi = {
|
|
|
9505
9694
|
visibleDuration: { months: z },
|
|
9506
9695
|
onChange: (e) => {
|
|
9507
9696
|
B && e && Ke({
|
|
9508
|
-
from:
|
|
9509
|
-
to:
|
|
9697
|
+
from: ca(e.start, A ? me : void 0, Y),
|
|
9698
|
+
to: ca(e.end, A ? ge : void 0, Y)
|
|
9510
9699
|
});
|
|
9511
9700
|
},
|
|
9512
9701
|
value: B ? (() => {
|
|
9513
|
-
let e = J, t =
|
|
9702
|
+
let e = J, t = ra(e?.from, Y), n = ra(e?.to, Y);
|
|
9514
9703
|
return t && n ? {
|
|
9515
9704
|
start: t,
|
|
9516
9705
|
end: n
|
|
@@ -9520,32 +9709,32 @@ var xi = {
|
|
|
9520
9709
|
month: "long",
|
|
9521
9710
|
year: "numeric"
|
|
9522
9711
|
}).format(e.toDate(Te())), st = B ? Array.from({ length: z }, (e, t) => t) : [0], ct = st.map((e) => ot(Xe.visibleRange.start.add({ months: e }))), lt = g(null), ut = g(null), { buttonProps: dt } = Fe(at, lt), { buttonProps: ft } = Fe(it, ut), pt = () => {
|
|
9523
|
-
ne(void 0), ae(void 0), S?.(void 0), A && (he(B ?
|
|
9712
|
+
ne(void 0), ae(void 0), S?.(void 0), A && (he(B ? la : void 0), _e(B ? ua : void 0)), B ? Ye.setValue(null) : qe.setValue(null);
|
|
9524
9713
|
}, mt = () => !B || !Ye.anchorDate ? !1 : (Ye.selectDate(Ye.anchorDate), !0), ht = () => {
|
|
9525
9714
|
mt(), Re(!1);
|
|
9526
9715
|
}, gt = () => {
|
|
9527
9716
|
let e = je(Y);
|
|
9528
|
-
Xe.setFocusedDate(e), B ? (Ye.setValue(null), ne(void 0), ae(void 0), S?.(void 0)) : (qe.setValue(e), Ke(
|
|
9717
|
+
Xe.setFocusedDate(e), B ? (Ye.setValue(null), ne(void 0), ae(void 0), S?.(void 0)) : (qe.setValue(e), Ke(ca(e, A ? me : void 0, Y), void 0, !A));
|
|
9529
9718
|
}, _t = (e) => {
|
|
9530
|
-
let t =
|
|
9719
|
+
let t = ma(e, {
|
|
9531
9720
|
locale: K,
|
|
9532
9721
|
timeZone: Y
|
|
9533
9722
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
9534
|
-
se(W), A && n ? (he(
|
|
9535
|
-
from:
|
|
9536
|
-
to:
|
|
9723
|
+
se(W), A && n ? (he(sa(t.from, Y)), _e(sa(t.to, Y)), Ke(t, e.label)) : Ke(A ? {
|
|
9724
|
+
from: ca(ra(t.from, Y), me, Y),
|
|
9725
|
+
to: ca(ra(t.to, Y), ge, Y)
|
|
9537
9726
|
} : t, e.label);
|
|
9538
|
-
let r =
|
|
9727
|
+
let r = ra(t.from, Y);
|
|
9539
9728
|
r && Xe.setFocusedDate(r), W || setTimeout(() => {
|
|
9540
9729
|
Re(!1);
|
|
9541
9730
|
}, 300);
|
|
9542
|
-
}, vt = (e, t) =>
|
|
9731
|
+
}, vt = (e, t) => sa(e, Y) === t, yt = (e) => {
|
|
9543
9732
|
if (he(e), B) {
|
|
9544
9733
|
let t = J;
|
|
9545
9734
|
if (t?.from && t?.to) {
|
|
9546
9735
|
if (vt(t.from, e)) return;
|
|
9547
9736
|
Ke({
|
|
9548
|
-
from:
|
|
9737
|
+
from: ca(ra(t.from, Y), e, Y),
|
|
9549
9738
|
to: t.to
|
|
9550
9739
|
});
|
|
9551
9740
|
}
|
|
@@ -9553,7 +9742,7 @@ var xi = {
|
|
|
9553
9742
|
let t = J;
|
|
9554
9743
|
if (t) {
|
|
9555
9744
|
if (vt(t, e)) return;
|
|
9556
|
-
Ke(
|
|
9745
|
+
Ke(ca(ra(t, Y), e, Y));
|
|
9557
9746
|
}
|
|
9558
9747
|
}
|
|
9559
9748
|
}, bt = (e) => {
|
|
@@ -9563,7 +9752,7 @@ var xi = {
|
|
|
9563
9752
|
if (vt(t.to, e)) return;
|
|
9564
9753
|
Ke({
|
|
9565
9754
|
from: t.from,
|
|
9566
|
-
to:
|
|
9755
|
+
to: ca(ra(t.to, Y), e, Y)
|
|
9567
9756
|
});
|
|
9568
9757
|
}
|
|
9569
9758
|
}, xt = g(R);
|
|
@@ -9573,8 +9762,8 @@ var xi = {
|
|
|
9573
9762
|
if (A) {
|
|
9574
9763
|
if (B) {
|
|
9575
9764
|
let e = J;
|
|
9576
|
-
he(
|
|
9577
|
-
} else he(
|
|
9765
|
+
he(sa(e?.from, Y) ?? la), _e(sa(e?.to, Y) ?? ua);
|
|
9766
|
+
} else he(sa(J, Y));
|
|
9578
9767
|
}
|
|
9579
9768
|
}, [
|
|
9580
9769
|
J,
|
|
@@ -9589,18 +9778,18 @@ var xi = {
|
|
|
9589
9778
|
Ye.anchorDate
|
|
9590
9779
|
]), d(() => {
|
|
9591
9780
|
if (Pe) {
|
|
9592
|
-
let e =
|
|
9781
|
+
let e = ra(B ? J?.from : J, Y);
|
|
9593
9782
|
Xe.setFocusedDate(e ?? je(Y)), se(W);
|
|
9594
9783
|
}
|
|
9595
9784
|
}, [Pe]), d(() => {
|
|
9596
9785
|
de.current && (de.current.inert = !ce);
|
|
9597
9786
|
}, [ce]);
|
|
9598
|
-
let St = E?.find((e) => e.label === X), Ct = St && (St.showLabelInTrigger ?? (St.hours !== void 0 || St.minutes !== void 0)) ? St.label : void 0, wt =
|
|
9787
|
+
let St = E?.find((e) => e.label === X), Ct = St && (St.showLabelInTrigger ?? (St.hours !== void 0 || St.minutes !== void 0)) ? St.label : void 0, wt = fa(B ? [J?.from, J?.to] : [J], Y), Tt = (e) => A ? pa(e, {
|
|
9599
9788
|
hourCycle: c,
|
|
9600
9789
|
includeYear: wt,
|
|
9601
9790
|
localeString: K,
|
|
9602
9791
|
timeZone: Y
|
|
9603
|
-
}) :
|
|
9792
|
+
}) : da(e, m, Y), Et = () => {
|
|
9604
9793
|
if (Ct !== void 0) return Ct;
|
|
9605
9794
|
if (B) {
|
|
9606
9795
|
let t = J;
|
|
@@ -9613,7 +9802,7 @@ var xi = {
|
|
|
9613
9802
|
}, Dt = () => Ct === void 0 ? B ? !J?.from : !J : !1, Ot = () => {
|
|
9614
9803
|
if (B) {
|
|
9615
9804
|
let e = J, t = Ye.anchorDate;
|
|
9616
|
-
return !e?.from && t ? `${V.selectedStartDate}${
|
|
9805
|
+
return !e?.from && t ? `${V.selectedStartDate}${da(ia(t, Y), m, Y)}${V.pleaseSelectEndDate}` : e?.from ? e.to ? `${V.selectedDateRange}${Tt(e.from)}${V.to}${Tt(e.to)}` : `${V.selectedStartDate}${Tt(e.from)}${V.pleaseSelectEndDate}` : V.noDateRangeSelected || "";
|
|
9617
9806
|
}
|
|
9618
9807
|
{
|
|
9619
9808
|
let e = J;
|
|
@@ -9656,13 +9845,13 @@ var xi = {
|
|
|
9656
9845
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9657
9846
|
iconName: "angleRight",
|
|
9658
9847
|
size: "m"
|
|
9659
|
-
}))), /* @__PURE__ */ e.createElement(
|
|
9848
|
+
}))), /* @__PURE__ */ e.createElement(_a, {
|
|
9660
9849
|
baseClass: ye,
|
|
9661
9850
|
monthOffset: t,
|
|
9662
9851
|
state: Xe,
|
|
9663
9852
|
timeZone: Y
|
|
9664
|
-
})))), A && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
9665
|
-
anchorDate:
|
|
9853
|
+
})))), A && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(na, {
|
|
9854
|
+
anchorDate: ra(kt?.from, Y),
|
|
9666
9855
|
hourCycle: c,
|
|
9667
9856
|
id: `${l}-start-time`,
|
|
9668
9857
|
label: V.startTimeLabel || "",
|
|
@@ -9670,8 +9859,8 @@ var xi = {
|
|
|
9670
9859
|
size: "s",
|
|
9671
9860
|
timeZone: Y,
|
|
9672
9861
|
value: me
|
|
9673
|
-
}), /* @__PURE__ */ e.createElement(
|
|
9674
|
-
anchorDate:
|
|
9862
|
+
}), /* @__PURE__ */ e.createElement(na, {
|
|
9863
|
+
anchorDate: ra(kt?.to, Y),
|
|
9675
9864
|
hourCycle: c,
|
|
9676
9865
|
id: `${l}-end-time`,
|
|
9677
9866
|
label: V.endTimeLabel || "",
|
|
@@ -9679,8 +9868,8 @@ var xi = {
|
|
|
9679
9868
|
size: "s",
|
|
9680
9869
|
timeZone: Y,
|
|
9681
9870
|
value: ge
|
|
9682
|
-
})) : J && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
9683
|
-
anchorDate:
|
|
9871
|
+
})) : J && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(na, {
|
|
9872
|
+
anchorDate: ra(J, Y),
|
|
9684
9873
|
hourCycle: c,
|
|
9685
9874
|
id: `${l}-time`,
|
|
9686
9875
|
label: V.timeLabel || "",
|
|
@@ -9790,7 +9979,7 @@ var xi = {
|
|
|
9790
9979
|
className: `${ye}__calendar-wrapper-inner`,
|
|
9791
9980
|
style: U ? void 0 : { width: ue }
|
|
9792
9981
|
}, At)) : At))));
|
|
9793
|
-
},
|
|
9982
|
+
}, ya = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: u = {
|
|
9794
9983
|
chooseFile: "Choose file",
|
|
9795
9984
|
clearButton: "Clear selected file"
|
|
9796
9985
|
}, message: f, multiple: p = !1, onClear: m, onFileChange: h, required: g = !1, showFullPath: v, showLabel: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, ...w }, T) => {
|
|
@@ -9870,7 +10059,7 @@ var xi = {
|
|
|
9870
10059
|
validationMessageHasDecorators: !1,
|
|
9871
10060
|
validationStatus: C
|
|
9872
10061
|
}));
|
|
9873
|
-
}),
|
|
10062
|
+
}), ba = ({ children: t, className: n, ...r }) => {
|
|
9874
10063
|
let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
|
|
9875
10064
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9876
10065
|
className: Z([
|
|
@@ -9887,7 +10076,7 @@ var xi = {
|
|
|
9887
10076
|
validationMessageHasDecorators: !1,
|
|
9888
10077
|
validationStatus: l
|
|
9889
10078
|
}));
|
|
9890
|
-
},
|
|
10079
|
+
}, xa = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, onBlur: d, onChange: f, onValueChange: p, options: m, required: h = !1, showLabel: g = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, value: x, ...S }) => {
|
|
9891
10080
|
let C = "pds-radio-group", w = r ? $.disabled : null, T = h && !r ? $.required : null, E = b === "error" ? $.error : null, D = b === "success" ? $.success : null, O = x !== void 0, [k, A] = _(n === void 0 ? "" : n), j = y || u, M = (e) => {
|
|
9892
10081
|
O || A(e.target.value), f && f(e), p && p(e.target.value);
|
|
9893
10082
|
}, N = (e) => {
|
|
@@ -9937,7 +10126,7 @@ var xi = {
|
|
|
9937
10126
|
message: j,
|
|
9938
10127
|
validationStatus: b
|
|
9939
10128
|
}));
|
|
9940
|
-
},
|
|
10129
|
+
}, Sa = o(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, inputWidthMin: c, label: l, labelVariant: u, message: d, offLabel: f = "Off", onChange: p, onLabel: m = "On", required: h = !1, showLabel: g = !0, showStatusLabel: v = !0, statusLabelPlacement: y = "right", switchPlacement: b = "right", ...x }, S) => {
|
|
9941
10130
|
let C = yn(s, c), w = "pds-switch", T = `${w}--${b}`, E = d ? `${w}--message` : null, D = i ? $.disabled : null, O = h && !i ? $.required : null, k = t !== void 0, [A, j] = _(!k && r ? r : !1), M = t || A ? m : f, N = (e) => {
|
|
9942
10131
|
k || j(e.target.checked), p && p(e);
|
|
9943
10132
|
}, P = v ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -9993,7 +10182,7 @@ var xi = {
|
|
|
9993
10182
|
required: h,
|
|
9994
10183
|
showLabel: g
|
|
9995
10184
|
}), /* @__PURE__ */ e.createElement("div", { className: `${w}__content` }, L, I));
|
|
9996
|
-
}),
|
|
10185
|
+
}), Ca = ({ disabled: t, focusedIndex: n, index: r, isSortable: i, onFocusInput: a, onKeyboardMove: o, onRemove: s, setFocusedIndex: c, tag: l, totalTags: u, translationStrings: f }) => {
|
|
9997
10186
|
let p = g(null), m = "pds-tags-input__tag", { isDragging: h, listeners: _, setNodeRef: v, transform: y, transition: b } = ot({
|
|
9998
10187
|
disabled: !i || t,
|
|
9999
10188
|
id: l.id
|
|
@@ -10055,7 +10244,7 @@ var xi = {
|
|
|
10055
10244
|
iconName: "xmark",
|
|
10056
10245
|
size: "xs"
|
|
10057
10246
|
})));
|
|
10058
|
-
},
|
|
10247
|
+
}, wa = o(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, inputWidthMin: s, isSortable: c = !1, label: l, message: u, onChange: d, placeholder: f, required: p = !1, showLabel: m = !0, size: h = "s", tags: v, tooltipText: y = null, translationStrings: b = {
|
|
10059
10248
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
10060
10249
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
10061
10250
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -10146,7 +10335,7 @@ var xi = {
|
|
|
10146
10335
|
}, v.map((t, n) => /* @__PURE__ */ e.createElement("div", {
|
|
10147
10336
|
key: t.id,
|
|
10148
10337
|
role: "listitem"
|
|
10149
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10338
|
+
}, /* @__PURE__ */ e.createElement(Ca, {
|
|
10150
10339
|
disabled: r,
|
|
10151
10340
|
focusedIndex: L,
|
|
10152
10341
|
index: n,
|
|
@@ -10193,7 +10382,7 @@ var xi = {
|
|
|
10193
10382
|
validationMessageHasDecorators: !1,
|
|
10194
10383
|
validationStatus: S
|
|
10195
10384
|
}));
|
|
10196
|
-
}),
|
|
10385
|
+
}), Ta = o(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, inputWidthMin: s, isResizable: c = !0, label: l, message: u, onBlur: d, onChange: f, onFocus: p, placeholder: m, readonly: h = !1, required: g = !1, rows: v = 5, showLabel: y, size: b = "s", textareaProps: x, tooltipText: S = null, translationStrings: C = {
|
|
10197
10386
|
clearButton: "Clear input text",
|
|
10198
10387
|
counterOverLimit: "Character limit exceeded by",
|
|
10199
10388
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -10260,7 +10449,7 @@ var xi = {
|
|
|
10260
10449
|
message: R,
|
|
10261
10450
|
validationStatus: T
|
|
10262
10451
|
}));
|
|
10263
|
-
}),
|
|
10452
|
+
}), Ea = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), Da = o(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, inputWidthMin: f, label: p, message: m, onBlur: h, onChange: g, onClear: v, onFocus: y, placeholder: b, readonly: x = !1, required: S = !1, searchIcon: C = "search", showLabel: w = !0, showVisibilityToggle: T = !1, size: E = "s", tooltipText: D = null, translationStrings: O = {
|
|
10264
10453
|
clearButton: "Clear input text",
|
|
10265
10454
|
counterOverLimit: "Character limit exceeded by",
|
|
10266
10455
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -10332,7 +10521,7 @@ var xi = {
|
|
|
10332
10521
|
`${I}__input-wrapper`,
|
|
10333
10522
|
c && k === "url" ? `${I}__input-wrapper--has-prefix` : null,
|
|
10334
10523
|
J ? `${I}__input-wrapper--has-search-shortcut` : null
|
|
10335
|
-
]) }, U && /* @__PURE__ */ e.createElement(Tn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(
|
|
10524
|
+
]) }, U && /* @__PURE__ */ e.createElement(Tn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(Ea, null), /* @__PURE__ */ e.createElement("input", {
|
|
10336
10525
|
ref: P,
|
|
10337
10526
|
"aria-describedby": W ? `${l}__message` : null,
|
|
10338
10527
|
"aria-invalid": j === "error" || null,
|
|
@@ -10380,12 +10569,12 @@ var xi = {
|
|
|
10380
10569
|
validationMessageHasDecorators: !1,
|
|
10381
10570
|
validationStatus: j
|
|
10382
10571
|
}));
|
|
10383
|
-
}),
|
|
10572
|
+
}), Oa = ({ avatarSize: t = "m", className: n, showActiveState: r = !0, workspace: i, ...a }) => {
|
|
10384
10573
|
let o = "pds-workspace-list-item";
|
|
10385
10574
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10386
10575
|
className: Z([o, n ?? ""]),
|
|
10387
10576
|
...a
|
|
10388
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement(
|
|
10577
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
10389
10578
|
className: `${o}__avatar`,
|
|
10390
10579
|
imageSrc: i.imageSrc,
|
|
10391
10580
|
size: t,
|
|
@@ -10398,7 +10587,7 @@ var xi = {
|
|
|
10398
10587
|
iconName: "lock",
|
|
10399
10588
|
size: "m"
|
|
10400
10589
|
}), r && i.isActive && /* @__PURE__ */ e.createElement(xr, null)));
|
|
10401
|
-
},
|
|
10590
|
+
}, ka = ({ ariaLabel: t, className: n, filterLabel: r = "Filter workspaces", filterPlaceholder: i = "Find workspace...", id: a, inputWidth: o, inputWidthMin: s, label: c, message: l, minFilterItems: u = 8, noResultsText: d = "No results found", onSelectWorkspace: f, showLabel: p = !0, visibleItemCount: m = 6, workspaceList: g = [], ...v }) => {
|
|
10402
10591
|
let y = "pds-workspace-picker", b = `${y}__item`, [x, S] = _(""), C = g.length >= u, w = h(() => {
|
|
10403
10592
|
if (!x) return g;
|
|
10404
10593
|
let e = x.toLowerCase();
|
|
@@ -10416,10 +10605,10 @@ var xi = {
|
|
|
10416
10605
|
}, n ? /* @__PURE__ */ e.createElement("button", {
|
|
10417
10606
|
onClick: () => t.onRestrictedSelection(),
|
|
10418
10607
|
type: "button"
|
|
10419
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10608
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : r ? /* @__PURE__ */ e.createElement(r, Object.assign({}, t.workspaceLink?.props), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : /* @__PURE__ */ e.createElement("button", {
|
|
10420
10609
|
onClick: () => f?.(t),
|
|
10421
10610
|
type: "button"
|
|
10422
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10611
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })));
|
|
10423
10612
|
});
|
|
10424
10613
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10425
10614
|
className: Z([y, n ?? ""]),
|
|
@@ -10438,7 +10627,7 @@ var xi = {
|
|
|
10438
10627
|
label: c,
|
|
10439
10628
|
required: !1,
|
|
10440
10629
|
showLabel: p
|
|
10441
|
-
}), C && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
10630
|
+
}), C && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
10442
10631
|
hasClearButton: !0,
|
|
10443
10632
|
id: `${a}-filter`,
|
|
10444
10633
|
label: r,
|
|
@@ -10454,7 +10643,7 @@ var xi = {
|
|
|
10454
10643
|
id: a,
|
|
10455
10644
|
message: l
|
|
10456
10645
|
}));
|
|
10457
|
-
},
|
|
10646
|
+
}, Aa = ({ className: t, linkContent: n, size: i = "s", ...a }) => {
|
|
10458
10647
|
let o = "pds-cta-link", c = i === "s" ? null : `${o}--${i}`, l = /* @__PURE__ */ e.createElement(Q, {
|
|
10459
10648
|
className: `${o}__icon`,
|
|
10460
10649
|
iconName: "arrowRight",
|
|
@@ -10468,7 +10657,7 @@ var xi = {
|
|
|
10468
10657
|
]),
|
|
10469
10658
|
...a
|
|
10470
10659
|
}, u);
|
|
10471
|
-
},
|
|
10660
|
+
}, ja = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
10472
10661
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
10473
10662
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
10474
10663
|
"aria-hidden": "true",
|
|
@@ -10495,11 +10684,11 @@ var xi = {
|
|
|
10495
10684
|
className: `${c}__icon`,
|
|
10496
10685
|
iconName: "externalLink"
|
|
10497
10686
|
}));
|
|
10498
|
-
},
|
|
10687
|
+
}, Ma = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
10499
10688
|
className: Z(["pds-skiplink", t]),
|
|
10500
10689
|
href: `#${n}`,
|
|
10501
10690
|
...i
|
|
10502
|
-
}, r),
|
|
10691
|
+
}, r), Na = ({ className: t, iconName: n = "zappy", label: r, showTimer: i = !1, size: a = "s", state: o = "active", time: s, ...c }) => {
|
|
10503
10692
|
let l = "pds-thinking-state";
|
|
10504
10693
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10505
10694
|
className: Z([
|
|
@@ -10519,7 +10708,7 @@ var xi = {
|
|
|
10519
10708
|
"aria-hidden": o === "active" ? "true" : void 0,
|
|
10520
10709
|
className: `${l}__time`
|
|
10521
10710
|
}, s));
|
|
10522
|
-
},
|
|
10711
|
+
}, Pa = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
10523
10712
|
let c = "pds-picture";
|
|
10524
10713
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
10525
10714
|
srcSet: a,
|
|
@@ -10532,27 +10721,27 @@ var xi = {
|
|
|
10532
10721
|
width: o,
|
|
10533
10722
|
...s
|
|
10534
10723
|
}));
|
|
10535
|
-
},
|
|
10724
|
+
}, Fa = (e, t, n) => r(e, { onClick: (t) => {
|
|
10536
10725
|
e.props.onClick?.(t), n();
|
|
10537
|
-
} }, t),
|
|
10726
|
+
} }, t), Ia = (e) => (t) => {
|
|
10538
10727
|
if (t.key === "Enter" && (t.preventDefault(), (t.currentTarget.querySelector("a") ?? t.currentTarget.querySelector("button"))?.click()), t.key === "Tab") {
|
|
10539
10728
|
let n = t.currentTarget.closest(".pds-dropdown__panel"), r = t.shiftKey ? n?.querySelector(".pds-ba-switcher__filter input") : n?.querySelector(".pds-ba-switcher__create-link a, .pds-ba-switcher__create-link button");
|
|
10540
10729
|
r ? (t.preventDefault(), r.focus()) : e();
|
|
10541
10730
|
}
|
|
10542
|
-
},
|
|
10731
|
+
}, La = (t) => /* @__PURE__ */ e.createElement(Ri, {
|
|
10543
10732
|
fallbackIcon: "business-account",
|
|
10544
10733
|
imageSrc: t.imageSrc,
|
|
10545
10734
|
shape: "square",
|
|
10546
10735
|
size: "m",
|
|
10547
10736
|
uniqueId: t.businessAccountId
|
|
10548
|
-
}),
|
|
10737
|
+
}), Ra = ({ businessAccount: t, label: n }) => {
|
|
10549
10738
|
let r = "pds-ba-switcher__item";
|
|
10550
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${r}-content` },
|
|
10739
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${r}-content` }, La(t), /* @__PURE__ */ e.createElement("span", { className: `${r}-name` }, t.displayName), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n)), /* @__PURE__ */ e.createElement(Q, {
|
|
10551
10740
|
className: `${r}-flyout-icon`,
|
|
10552
10741
|
iconName: "arrowRightArrowLeft",
|
|
10553
10742
|
size: "m"
|
|
10554
10743
|
}));
|
|
10555
|
-
},
|
|
10744
|
+
}, za = ({ activeBusinessAccount: t, businessAccounts: n, businessAccountsHeading: r, createLinkMarkup: i, index: a, label: o, menuLabel: s, onClose: c, parentActiveIndex: l, parentGetItemProps: u, parentListRef: f }) => {
|
|
10556
10745
|
let p = "pds-ba-switcher", m = `${p}__item`, [h, v] = _(!1), [y, b] = _(null), S = g([]), w = g(null), T = g(null), I = F(), L = g(!1), z = () => {
|
|
10557
10746
|
T.current?.contains(document.activeElement) && (L.current = !0);
|
|
10558
10747
|
}, V = $n("var(--pds-z-index-dropdown)"), { context: W, floatingStyles: G, refs: K } = P({
|
|
@@ -10629,7 +10818,7 @@ var xi = {
|
|
|
10629
10818
|
tabIndex: l === a ? 0 : -1,
|
|
10630
10819
|
title: o,
|
|
10631
10820
|
...u(se())
|
|
10632
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10821
|
+
}, /* @__PURE__ */ e.createElement(Ra, {
|
|
10633
10822
|
businessAccount: t,
|
|
10634
10823
|
label: o
|
|
10635
10824
|
})), /* @__PURE__ */ e.createElement(x, { id: I }, te && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -10651,7 +10840,7 @@ var xi = {
|
|
|
10651
10840
|
className: "pds-dropdown__heading",
|
|
10652
10841
|
role: "presentation"
|
|
10653
10842
|
}, r), n.map((t, n) => {
|
|
10654
|
-
let r = !!t.isActive, i = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${m}-content` },
|
|
10843
|
+
let r = !!t.isActive, i = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${m}-content` }, La(t), /* @__PURE__ */ e.createElement("span", {
|
|
10655
10844
|
className: `${m}-name`,
|
|
10656
10845
|
onMouseEnter: wt
|
|
10657
10846
|
}, t.displayName)), r && /* @__PURE__ */ e.createElement(xr, null));
|
|
@@ -10669,11 +10858,11 @@ var xi = {
|
|
|
10669
10858
|
role: "menuitem",
|
|
10670
10859
|
tabIndex: y === n ? 0 : -1,
|
|
10671
10860
|
...oe({ onKeyDown: (e) => {
|
|
10672
|
-
e.key === "Tab" && e.shiftKey ? (e.preventDefault(), ce()) :
|
|
10861
|
+
e.key === "Tab" && e.shiftKey ? (e.preventDefault(), ce()) : Ia(le)(e);
|
|
10673
10862
|
} })
|
|
10674
|
-
}, t.linkContent ?
|
|
10863
|
+
}, t.linkContent ? Fa(t.linkContent, i, ce) : i);
|
|
10675
10864
|
})), i))));
|
|
10676
|
-
},
|
|
10865
|
+
}, Ba = (e) => {
|
|
10677
10866
|
let t = e.find((e) => e.isActive), n = t?.workspaces?.find((e) => e.isActive);
|
|
10678
10867
|
if (n) return {
|
|
10679
10868
|
activeBusinessAccount: t,
|
|
@@ -10690,19 +10879,19 @@ var xi = {
|
|
|
10690
10879
|
activeBusinessAccount: t,
|
|
10691
10880
|
activeWorkspace: void 0
|
|
10692
10881
|
};
|
|
10693
|
-
},
|
|
10882
|
+
}, Va = ({ ariaLabel: t = "Business account switcher menu", backLabel: n = "Back to workspaces", businessAccounts: r = [], businessAccountsHeading: i = "Business accounts", className: a, createBusinessAccountLinkContent: o, createWorkspaceLinkContent: s, filterLabel: c = "Filter workspaces", filterPlaceholder: l = "Find workspace...", isMobilePanel: u = !0, minFilterItems: f = 8, noResultsText: p = "No results found", switchBusinessAccountLabel: m = "Switch business account", workspacesHeading: v = "Workspaces", ...y }) => {
|
|
10694
10883
|
let b = "pds-ba-switcher", S = `${b}__item`, w = ln(), T = u && w, [E, D] = _(!1), [O, k] = _("main"), A = g(null), j = g(null), M = g(O);
|
|
10695
10884
|
d(() => {
|
|
10696
10885
|
M.current !== O && (M.current = O, (O === "main" ? A : j).current?.focus());
|
|
10697
10886
|
}, [O]);
|
|
10698
10887
|
let [N, P] = _(""), [F, I] = _(), [L] = _(() => `${b}-filter-${Math.random().toString(36).slice(2, 8)}`), { activeIndex: R, floatingStyles: z, getFloatingProps: ee, getItemProps: B, getReferenceProps: V, isMounted: H, isOpen: U, listRef: W, nodeId: G, refs: K, setIsOpen: q, transitionStyles: te } = Yn({
|
|
10699
|
-
enableTypeahead: !((
|
|
10888
|
+
enableTypeahead: !((Ba(r).activeBusinessAccount?.workspaces?.length ?? 0) >= f),
|
|
10700
10889
|
matchReferenceMinWidth: !0,
|
|
10701
10890
|
role: "menu",
|
|
10702
10891
|
shiftPadding: 0
|
|
10703
10892
|
}), J = g(r);
|
|
10704
10893
|
(!H || U) && (J.current = r);
|
|
10705
|
-
let ne = J.current, { activeBusinessAccount: re, activeWorkspace: ie } = h(() =>
|
|
10894
|
+
let ne = J.current, { activeBusinessAccount: re, activeWorkspace: ie } = h(() => Ba(ne), [ne]), Y = h(() => re?.workspaces ?? [], [re]), X = Y.length >= f, ae = $n("var(--pds-z-index-dropdown)"), oe = g(!1), se = (e) => {
|
|
10706
10895
|
let t = e.target.closest(`.${b}__flyout`);
|
|
10707
10896
|
e.key === "Escape" && !t && (oe.current = !0);
|
|
10708
10897
|
};
|
|
@@ -10730,7 +10919,7 @@ var xi = {
|
|
|
10730
10919
|
}, [H, E]), !re) return null;
|
|
10731
10920
|
let fe = () => {
|
|
10732
10921
|
q(!1), D(!1), k("main");
|
|
10733
|
-
}, pe =
|
|
10922
|
+
}, pe = Ia(fe), me = (e, t = !1) => T ? {} : {
|
|
10734
10923
|
ref: t ? void 0 : (t) => {
|
|
10735
10924
|
W.current[e] = t;
|
|
10736
10925
|
},
|
|
@@ -10749,7 +10938,7 @@ var xi = {
|
|
|
10749
10938
|
i ? "pds-dropdown__item--active" : null
|
|
10750
10939
|
]),
|
|
10751
10940
|
...me(t)
|
|
10752
|
-
}, r ?
|
|
10941
|
+
}, r ? Fa(r, a, o) : a), _e = () => ie ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ri, {
|
|
10753
10942
|
imageSrc: ie.imageSrc,
|
|
10754
10943
|
size: "m",
|
|
10755
10944
|
uniqueId: ie.workspaceId
|
|
@@ -10759,7 +10948,7 @@ var xi = {
|
|
|
10759
10948
|
}, ie.displayName), /* @__PURE__ */ e.createElement("span", {
|
|
10760
10949
|
className: `${b}__name ${b}__name--secondary`,
|
|
10761
10950
|
onMouseEnter: wt
|
|
10762
|
-
}, re.displayName))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10951
|
+
}, re.displayName))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ri, {
|
|
10763
10952
|
fallbackIcon: "business-account",
|
|
10764
10953
|
imageSrc: re.imageSrc,
|
|
10765
10954
|
shape: "square",
|
|
@@ -10782,7 +10971,7 @@ var xi = {
|
|
|
10782
10971
|
size: "s",
|
|
10783
10972
|
variant: "link"
|
|
10784
10973
|
})), ye = (t, n) => {
|
|
10785
|
-
let r = `${b}__workspace-item`, i = !!t.isActive, a = t.isRestricted && t.onRestrictedSelection, o = /* @__PURE__ */ e.createElement(
|
|
10974
|
+
let r = `${b}__workspace-item`, i = !!t.isActive, a = t.isRestricted && t.onRestrictedSelection, o = /* @__PURE__ */ e.createElement(Oa, {
|
|
10786
10975
|
showActiveState: !0,
|
|
10787
10976
|
workspace: t
|
|
10788
10977
|
}), s = null;
|
|
@@ -10791,7 +10980,7 @@ var xi = {
|
|
|
10791
10980
|
t.onRestrictedSelection?.(), fe();
|
|
10792
10981
|
},
|
|
10793
10982
|
type: "button"
|
|
10794
|
-
}, o) : t.workspaceLink && (s =
|
|
10983
|
+
}, o) : t.workspaceLink && (s = Fa(t.workspaceLink, o, fe)), /* @__PURE__ */ e.createElement("li", {
|
|
10795
10984
|
key: t.workspaceId,
|
|
10796
10985
|
"aria-current": i ? "true" : void 0,
|
|
10797
10986
|
"aria-disabled": t.isUnprivileged ? "true" : void 0,
|
|
@@ -10813,7 +11002,7 @@ var xi = {
|
|
|
10813
11002
|
onClick: () => k("businessAccounts"),
|
|
10814
11003
|
title: m,
|
|
10815
11004
|
type: "button"
|
|
10816
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11005
|
+
}, /* @__PURE__ */ e.createElement(Ra, {
|
|
10817
11006
|
businessAccount: re,
|
|
10818
11007
|
label: m
|
|
10819
11008
|
}))), xe = () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("ul", {
|
|
@@ -10836,11 +11025,11 @@ var xi = {
|
|
|
10836
11025
|
}), /* @__PURE__ */ e.createElement("li", {
|
|
10837
11026
|
className: "pds-dropdown__heading",
|
|
10838
11027
|
role: "presentation"
|
|
10839
|
-
}, i), ce.map((e) => ge(0, e.businessAccountId, e.linkContent, !!e.isActive, he(
|
|
11028
|
+
}, i), ce.map((e) => ge(0, e.businessAccountId, e.linkContent, !!e.isActive, he(La(e), e.displayName, !!e.isActive), () => k("main")))), ve(o)), Se = () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("ul", {
|
|
10840
11029
|
"aria-label": t,
|
|
10841
11030
|
className: Z([`${b}__menu`, X ? `${b}__menu--filtered` : null]),
|
|
10842
11031
|
role: T ? void 0 : "menu"
|
|
10843
|
-
}, T ? be() : /* @__PURE__ */ e.createElement(
|
|
11032
|
+
}, T ? be() : /* @__PURE__ */ e.createElement(za, {
|
|
10844
11033
|
activeBusinessAccount: re,
|
|
10845
11034
|
businessAccounts: ce,
|
|
10846
11035
|
businessAccountsHeading: i,
|
|
@@ -10858,7 +11047,7 @@ var xi = {
|
|
|
10858
11047
|
}), X && /* @__PURE__ */ e.createElement("li", {
|
|
10859
11048
|
className: `${b}__filter`,
|
|
10860
11049
|
role: "presentation"
|
|
10861
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11050
|
+
}, /* @__PURE__ */ e.createElement(Da, {
|
|
10862
11051
|
hasClearButton: !0,
|
|
10863
11052
|
id: L,
|
|
10864
11053
|
label: c,
|
|
@@ -10912,7 +11101,7 @@ var xi = {
|
|
|
10912
11101
|
},
|
|
10913
11102
|
...ee({ onKeyDown: se })
|
|
10914
11103
|
}, Se()))));
|
|
10915
|
-
},
|
|
11104
|
+
}, Ha = (t) => I() === null ? /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(Va, t)) : /* @__PURE__ */ e.createElement(Va, t), Ua = ({ children: t, className: n, menuAriaLabel: r, menuItems: i, variant: a = "dropdown", ...o }) => {
|
|
10916
11105
|
let s = "pds-row-actions-menu", c = a === "dropdown" ? null : `${s}--${a}`, l = f(), u = g(null);
|
|
10917
11106
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10918
11107
|
className: Z([
|
|
@@ -10939,7 +11128,7 @@ var xi = {
|
|
|
10939
11128
|
size: "s",
|
|
10940
11129
|
variant: "subtle"
|
|
10941
11130
|
})));
|
|
10942
|
-
},
|
|
11131
|
+
}, Wa = (e, t = {}) => {
|
|
10943
11132
|
let { getRemoveCriticalLabel: n = (e) => `Remove ${e.title}`, removeLabel: r = "Remove", renameLabel: i = "Rename" } = t, a = [];
|
|
10944
11133
|
return e.onRename && a.push({
|
|
10945
11134
|
callback: e.onRename,
|
|
@@ -10952,11 +11141,11 @@ var xi = {
|
|
|
10952
11141
|
isCritical: !0,
|
|
10953
11142
|
label: r
|
|
10954
11143
|
}), a;
|
|
10955
|
-
},
|
|
11144
|
+
}, Ga = ({ text: t }) => /* @__PURE__ */ e.createElement("div", { className: "pds-bookmarks-empty-state" }, /* @__PURE__ */ e.createElement(Q, {
|
|
10956
11145
|
className: "pds-bookmarks-empty-state__icon",
|
|
10957
11146
|
iconName: "bookmark",
|
|
10958
11147
|
size: "2xl"
|
|
10959
|
-
}), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)),
|
|
11148
|
+
}), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)), Ka = "Bookmark pages you visit often for quick access. Use the bookmark icon in the top bar to save your first one.", qa = ({ ariaLabel: t = "Bookmarks", bookmarks: n = [], className: r, createLabel: i = "Create", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isBookmarked: c = !1, isMobileAccordion: l = !1, maxHeightValue: u, noResultsText: d = Ka, onCreateBookmark: f, removeLabel: p, renameLabel: m, ...h }) => {
|
|
10960
11149
|
let g = "pds-bookmarks-menu", _ = ln(), v = l && _, y = f && /* @__PURE__ */ e.createElement(Hn, {
|
|
10961
11150
|
displayType: "icon-start",
|
|
10962
11151
|
iconName: "plus",
|
|
@@ -10971,7 +11160,7 @@ var xi = {
|
|
|
10971
11160
|
}, v ? /* @__PURE__ */ e.createElement(Xn, { label: /* @__PURE__ */ e.createElement("span", { className: `${g}__mobile-label` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10972
11161
|
iconName: c ? "bookmarkSolid" : "bookmark",
|
|
10973
11162
|
size: "m"
|
|
10974
|
-
}), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(
|
|
11163
|
+
}), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(Ga, { text: d }) : /* @__PURE__ */ e.createElement("ul", {
|
|
10975
11164
|
className: `${g}__mobile-list`,
|
|
10976
11165
|
role: "menu"
|
|
10977
11166
|
}, n.map((t) => {
|
|
@@ -10979,9 +11168,9 @@ var xi = {
|
|
|
10979
11168
|
return /* @__PURE__ */ e.createElement("li", {
|
|
10980
11169
|
key: t.id ?? t.title,
|
|
10981
11170
|
className: `${g}__mobile-item`
|
|
10982
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11171
|
+
}, /* @__PURE__ */ e.createElement(Ua, {
|
|
10983
11172
|
menuAriaLabel: a(t),
|
|
10984
|
-
menuItems:
|
|
11173
|
+
menuItems: Wa(t, {
|
|
10985
11174
|
getRemoveCriticalLabel: o,
|
|
10986
11175
|
removeLabel: p,
|
|
10987
11176
|
renameLabel: m
|
|
@@ -11001,13 +11190,13 @@ var xi = {
|
|
|
11001
11190
|
}, /* @__PURE__ */ e.createElement(dr.Trigger, { "aria-label": t }, /* @__PURE__ */ e.createElement(Q, {
|
|
11002
11191
|
iconName: c ? "bookmarkSolid" : "bookmark",
|
|
11003
11192
|
size: "m"
|
|
11004
|
-
})), /* @__PURE__ */ e.createElement(dr.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(
|
|
11193
|
+
})), /* @__PURE__ */ e.createElement(dr.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(Ga, { text: d })) : n.map((t, n) => /* @__PURE__ */ e.createElement(dr.ActionItem, {
|
|
11005
11194
|
key: t.id ?? t.title,
|
|
11006
11195
|
description: t.subtitle && /* @__PURE__ */ e.createElement("span", { title: t.subtitle }, t.subtitle),
|
|
11007
11196
|
index: n,
|
|
11008
11197
|
linkContent: t.linkContent,
|
|
11009
11198
|
menuAriaLabel: a(t),
|
|
11010
|
-
menuItems:
|
|
11199
|
+
menuItems: Wa(t, {
|
|
11011
11200
|
getRemoveCriticalLabel: o,
|
|
11012
11201
|
removeLabel: p,
|
|
11013
11202
|
renameLabel: m
|
|
@@ -11016,7 +11205,7 @@ var xi = {
|
|
|
11016
11205
|
className: `${g}__item-title`,
|
|
11017
11206
|
title: t.title
|
|
11018
11207
|
}, t.title))))));
|
|
11019
|
-
},
|
|
11208
|
+
}, Ja = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
|
|
11020
11209
|
let o = "pds-breadcrumb", c = i.length, l = i.map((t, n) => {
|
|
11021
11210
|
if (n < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
11022
11211
|
key: n,
|
|
@@ -11035,23 +11224,23 @@ var xi = {
|
|
|
11035
11224
|
className: Z([o, n]),
|
|
11036
11225
|
...a
|
|
11037
11226
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
|
|
11038
|
-
},
|
|
11227
|
+
}, Ya = (e) => {
|
|
11039
11228
|
if (!e) return null;
|
|
11040
11229
|
for (let t = 0; t < e.length; t++) {
|
|
11041
|
-
if (
|
|
11230
|
+
if (Za(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
11042
11231
|
if (e[t].links) {
|
|
11043
|
-
let n =
|
|
11232
|
+
let n = Ya(e[t].links);
|
|
11044
11233
|
if (n) return n;
|
|
11045
11234
|
}
|
|
11046
11235
|
}
|
|
11047
11236
|
return null;
|
|
11048
|
-
},
|
|
11049
|
-
if (
|
|
11237
|
+
}, Xa = (e) => typeof e == "string" ? e : e.props.children, Za = (e) => e.isSeparator || e.isHeading ? !1 : typeof e.linkContent != "string" && !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), Qa = (e) => {
|
|
11238
|
+
if (Za(e)) return !0;
|
|
11050
11239
|
if (e.links) {
|
|
11051
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
11240
|
+
for (let t = 0; t < e.links.length; t++) if (Qa(e.links[t])) return !0;
|
|
11052
11241
|
}
|
|
11053
11242
|
return !1;
|
|
11054
|
-
},
|
|
11243
|
+
}, $a = (e) => e.map((e) => `${Za(e)}${e.links ? `[${$a(e.links)}]` : ""}`).join("|"), eo = (e) => {
|
|
11055
11244
|
if (s(e)) {
|
|
11056
11245
|
let t = e.type;
|
|
11057
11246
|
if (t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link") return !0;
|
|
@@ -11059,14 +11248,14 @@ var xi = {
|
|
|
11059
11248
|
return n.to !== void 0 || n.href !== void 0;
|
|
11060
11249
|
}
|
|
11061
11250
|
return !1;
|
|
11062
|
-
},
|
|
11251
|
+
}, to = (e, t) => {
|
|
11063
11252
|
let n = null;
|
|
11064
11253
|
if (typeof e == "string" && t) {
|
|
11065
11254
|
let i = t ? t[0].linkContent : null;
|
|
11066
11255
|
s(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
11067
11256
|
} else n = e;
|
|
11068
11257
|
return n;
|
|
11069
|
-
},
|
|
11258
|
+
}, no = (t, n, i, a) => {
|
|
11070
11259
|
let o = null;
|
|
11071
11260
|
if (typeof n == "string") {
|
|
11072
11261
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -11091,8 +11280,8 @@ var xi = {
|
|
|
11091
11280
|
iconName: a,
|
|
11092
11281
|
size: "m"
|
|
11093
11282
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
|
|
11094
|
-
},
|
|
11095
|
-
let s = "pds-dropdown-menu", c =
|
|
11283
|
+
}, ro = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
11284
|
+
let s = "pds-dropdown-menu", c = Ya(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(xr, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Yn({
|
|
11096
11285
|
enableTypeahead: !0,
|
|
11097
11286
|
matchReferenceWidth: !0,
|
|
11098
11287
|
role: "menu"
|
|
@@ -11101,7 +11290,7 @@ var xi = {
|
|
|
11101
11290
|
}, w = (e) => {
|
|
11102
11291
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
11103
11292
|
}, T = ({ item: e, level: t }) => {
|
|
11104
|
-
let n =
|
|
11293
|
+
let n = to(e.linkContent, e.links);
|
|
11105
11294
|
return {
|
|
11106
11295
|
...e,
|
|
11107
11296
|
level: t,
|
|
@@ -11188,10 +11377,10 @@ var xi = {
|
|
|
11188
11377
|
tabIndex: d === n ? 0 : -1,
|
|
11189
11378
|
...m({ onKeyDown: w })
|
|
11190
11379
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
11191
|
-
},
|
|
11380
|
+
}, io = ({ isActive: t, linkContent: n }) => {
|
|
11192
11381
|
let r = "pds-button-nav__item";
|
|
11193
11382
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
11194
|
-
},
|
|
11383
|
+
}, ao = ({ ariaLabel: t, className: n, hasBorder: r = !1, hasMobileDropdown: i = !1, menuItems: a, ...o }) => {
|
|
11195
11384
|
let s = g(null), c = "pds-button-nav", l = r ? `${c}--bordered` : null, u = i ? `${c}--has-mobile-dropdown` : null;
|
|
11196
11385
|
d(() => {
|
|
11197
11386
|
let e = (e) => {
|
|
@@ -11205,11 +11394,11 @@ var xi = {
|
|
|
11205
11394
|
};
|
|
11206
11395
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
11207
11396
|
}, []);
|
|
11208
|
-
let f = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu` }, a.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
11397
|
+
let f = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu` }, a.map((t, n) => /* @__PURE__ */ e.createElement(io, {
|
|
11209
11398
|
key: n,
|
|
11210
|
-
isActive:
|
|
11399
|
+
isActive: Qa(t),
|
|
11211
11400
|
linkContent: t.linkContent
|
|
11212
|
-
}))) : null, p = /* @__PURE__ */ e.createElement(
|
|
11401
|
+
}))) : null, p = /* @__PURE__ */ e.createElement(ro, {
|
|
11213
11402
|
className: `${c}__mobile`,
|
|
11214
11403
|
menuItems: a,
|
|
11215
11404
|
selectTextFallback: t
|
|
@@ -11225,7 +11414,7 @@ var xi = {
|
|
|
11225
11414
|
]),
|
|
11226
11415
|
...o
|
|
11227
11416
|
}, f, i && p);
|
|
11228
|
-
},
|
|
11417
|
+
}, oo = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
11229
11418
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
11230
11419
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11231
11420
|
className: Z([
|
|
@@ -11235,7 +11424,7 @@ var xi = {
|
|
|
11235
11424
|
]),
|
|
11236
11425
|
...i
|
|
11237
11426
|
}, t);
|
|
11238
|
-
},
|
|
11427
|
+
}, so = (e) => e === "m" ? void 0 : { columnGap: e === "none" ? "0" : `var(--pds-spacing-${e})` }, co = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, itemsCenterGap: s = "m", itemsLeftGap: c = "m", itemsRightGap: l = "m", translationStrings: u = {
|
|
11239
11428
|
closeMobileNav: "Close navigation area",
|
|
11240
11429
|
openMobileNav: "Open navigation area"
|
|
11241
11430
|
}, ...f }) => {
|
|
@@ -11288,7 +11477,7 @@ var xi = {
|
|
|
11288
11477
|
n ?? ""
|
|
11289
11478
|
]),
|
|
11290
11479
|
...f
|
|
11291
|
-
}, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
11480
|
+
}, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(oo, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__inner-mobile` }, E, M && N))), /* @__PURE__ */ e.createElement(Zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(lt, {
|
|
11292
11481
|
active: p,
|
|
11293
11482
|
focusTrapOptions: {
|
|
11294
11483
|
clickOutsideDeactivates: !0,
|
|
@@ -11298,11 +11487,11 @@ var xi = {
|
|
|
11298
11487
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
11299
11488
|
className: Z([`${y}__mobile`, p ? `${y}__mobile--open` : null]),
|
|
11300
11489
|
inert: p ? void 0 : ""
|
|
11301
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11490
|
+
}, /* @__PURE__ */ e.createElement(oo, null, /* @__PURE__ */ e.createElement("button", {
|
|
11302
11491
|
className: "visually-hidden",
|
|
11303
11492
|
onClick: C,
|
|
11304
11493
|
type: "button"
|
|
11305
|
-
}, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(
|
|
11494
|
+
}, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(oo, {
|
|
11306
11495
|
className: `${y}__inner`,
|
|
11307
11496
|
style: o ? { paddingInline: o } : void 0,
|
|
11308
11497
|
width: i
|
|
@@ -11311,19 +11500,19 @@ var xi = {
|
|
|
11311
11500
|
className: `${y}__separator`
|
|
11312
11501
|
}), D && /* @__PURE__ */ e.createElement("div", {
|
|
11313
11502
|
className: `${y}__items-left`,
|
|
11314
|
-
style:
|
|
11503
|
+
style: so(c)
|
|
11315
11504
|
}, D)), O && /* @__PURE__ */ e.createElement("div", {
|
|
11316
11505
|
className: `${y}__items-center`,
|
|
11317
|
-
style:
|
|
11506
|
+
style: so(s)
|
|
11318
11507
|
}, O), k && /* @__PURE__ */ e.createElement("div", {
|
|
11319
11508
|
className: `${y}__items-right`,
|
|
11320
|
-
style:
|
|
11509
|
+
style: so(l)
|
|
11321
11510
|
}, k)));
|
|
11322
|
-
},
|
|
11511
|
+
}, lo = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
11323
11512
|
submenu: "submenu",
|
|
11324
11513
|
toggle: "Toggle"
|
|
11325
11514
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", variant: u = "default", ...f }) => {
|
|
11326
|
-
let p = "pds-side-nav", m = i ? `${p}--has-mobile-dropdown` : null, h = u === "default" ? null : `${p}--${u}`, g = `${p}__item`, v = `${p}__menu`, [y, b] = _({}), x =
|
|
11515
|
+
let p = "pds-side-nav", m = i ? `${p}--has-mobile-dropdown` : null, h = u === "default" ? null : `${p}--${u}`, g = `${p}__item`, v = `${p}__menu`, [y, b] = _({}), x = $a(c);
|
|
11327
11516
|
d(() => {
|
|
11328
11517
|
b((e) => Object.keys(e).length ? {} : e);
|
|
11329
11518
|
}, [x]);
|
|
@@ -11336,7 +11525,7 @@ var xi = {
|
|
|
11336
11525
|
};
|
|
11337
11526
|
});
|
|
11338
11527
|
}, w = (t, n) => {
|
|
11339
|
-
let { linkContent: i, links: a } = t, c =
|
|
11528
|
+
let { linkContent: i, links: a } = t, c = Qa(t), l = eo(i), u = S(c, n);
|
|
11340
11529
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11341
11530
|
key: n,
|
|
11342
11531
|
className: Z([
|
|
@@ -11349,7 +11538,7 @@ var xi = {
|
|
|
11349
11538
|
`${p}__row`,
|
|
11350
11539
|
`${p}__row--expandable`,
|
|
11351
11540
|
`${g}-wrapper`
|
|
11352
|
-
]) },
|
|
11541
|
+
]) }, to(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
11353
11542
|
"aria-expanded": u,
|
|
11354
11543
|
className: Z([`${p}__toggle`, u ? `${p}__toggle--expanded` : null]),
|
|
11355
11544
|
onClick: () => C(c, n),
|
|
@@ -11357,7 +11546,7 @@ var xi = {
|
|
|
11357
11546
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
11358
11547
|
iconName: "angleDown",
|
|
11359
11548
|
size: "m"
|
|
11360
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
11549
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Xa(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11361
11550
|
v,
|
|
11362
11551
|
`${v}--second-level`,
|
|
11363
11552
|
u ? `${v}--expanded` : null
|
|
@@ -11366,9 +11555,9 @@ var xi = {
|
|
|
11366
11555
|
className: Z([
|
|
11367
11556
|
g,
|
|
11368
11557
|
`${g}--second-level`,
|
|
11369
|
-
|
|
11558
|
+
Qa(t) ? `${g}--active` : null
|
|
11370
11559
|
])
|
|
11371
|
-
},
|
|
11560
|
+
}, to(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
11372
11561
|
"aria-expanded": u,
|
|
11373
11562
|
className: Z([
|
|
11374
11563
|
`${p}__row`,
|
|
@@ -11382,7 +11571,7 @@ var xi = {
|
|
|
11382
11571
|
}, s(i) && i.type === "span" ? r(i, { className: Z([i.props.className, `${p}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${p}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
11383
11572
|
iconName: "angleDown",
|
|
11384
11573
|
size: "m"
|
|
11385
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
11574
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Xa(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11386
11575
|
v,
|
|
11387
11576
|
`${v}--second-level`,
|
|
11388
11577
|
u ? `${v}--expanded` : null
|
|
@@ -11391,10 +11580,10 @@ var xi = {
|
|
|
11391
11580
|
className: Z([
|
|
11392
11581
|
g,
|
|
11393
11582
|
`${g}--second-level`,
|
|
11394
|
-
|
|
11583
|
+
Qa(t) ? `${g}--active` : null
|
|
11395
11584
|
])
|
|
11396
|
-
},
|
|
11397
|
-
}, T = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, c.map((e, t) => w(e, t)))), E = /* @__PURE__ */ e.createElement(
|
|
11585
|
+
}, to(t.linkContent, t.links))))) : i);
|
|
11586
|
+
}, T = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, c.map((e, t) => w(e, t)))), E = /* @__PURE__ */ e.createElement(ro, {
|
|
11398
11587
|
className: `${p}__mobile`,
|
|
11399
11588
|
headingText: a,
|
|
11400
11589
|
menuItems: c,
|
|
@@ -11410,8 +11599,8 @@ var xi = {
|
|
|
11410
11599
|
]),
|
|
11411
11600
|
...f
|
|
11412
11601
|
}, T, i && E);
|
|
11413
|
-
},
|
|
11414
|
-
let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
11602
|
+
}, uo = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
11603
|
+
let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, no(u, o, s, t)), h = (t, n, i = !1) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11415
11604
|
p,
|
|
11416
11605
|
`${p}--${n}`,
|
|
11417
11606
|
r ? `${p}--expanded` : null
|
|
@@ -11423,7 +11612,7 @@ var xi = {
|
|
|
11423
11612
|
className: Z([
|
|
11424
11613
|
f,
|
|
11425
11614
|
`${f}--${n}`,
|
|
11426
|
-
|
|
11615
|
+
Qa(t) ? `${f}--active` : null
|
|
11427
11616
|
]),
|
|
11428
11617
|
role: i ? "menuitem" : void 0,
|
|
11429
11618
|
tabIndex: i ? b === r ? 0 : -1 : void 0,
|
|
@@ -11479,14 +11668,14 @@ var xi = {
|
|
|
11479
11668
|
(S.current[e]?.querySelector("a"))?.click(), y(!1);
|
|
11480
11669
|
}, J = (e, t) => {
|
|
11481
11670
|
e.key === "Enter" && (e.preventDefault(), te(t));
|
|
11482
|
-
}, ne =
|
|
11671
|
+
}, ne = Zi() === "sm", re = (e) => {
|
|
11483
11672
|
i && s && e.nativeEvent.pointerType === "touch" && (ne ? (e.preventDefault(), e.stopPropagation(), y(!0)) : c && (e.preventDefault(), e.stopPropagation(), c()));
|
|
11484
11673
|
}, ie = i && v && s && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
11485
11674
|
ref: F.setFloating,
|
|
11486
11675
|
className: `${u}__flyout`,
|
|
11487
11676
|
style: M,
|
|
11488
11677
|
...W({ onKeyDown: I })
|
|
11489
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` },
|
|
11678
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, Xa(o)), h(s, "second-level-flyout", !0)));
|
|
11490
11679
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("li", {
|
|
11491
11680
|
ref: i ? F.setReference : null,
|
|
11492
11681
|
className: Z([
|
|
@@ -11500,7 +11689,7 @@ var xi = {
|
|
|
11500
11689
|
onClick: re,
|
|
11501
11690
|
onKeyDown: q
|
|
11502
11691
|
})
|
|
11503
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
11692
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, no(u, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
11504
11693
|
"aria-expanded": r,
|
|
11505
11694
|
className: Z([`${u}__toggle`, r ? `${u}__toggle--expanded` : null]),
|
|
11506
11695
|
onClick: l,
|
|
@@ -11508,9 +11697,9 @@ var xi = {
|
|
|
11508
11697
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
11509
11698
|
iconName: "angleDown",
|
|
11510
11699
|
size: "m"
|
|
11511
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
11700
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Xa(o)} ${a.submenu}`))), !i && h(s, "second-level")) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(vn, {
|
|
11512
11701
|
disableTapTrigger: !0,
|
|
11513
|
-
content:
|
|
11702
|
+
content: Xa(o),
|
|
11514
11703
|
customTrigger: m,
|
|
11515
11704
|
offsetValue: {
|
|
11516
11705
|
mainAxis: 8,
|
|
@@ -11518,11 +11707,11 @@ var xi = {
|
|
|
11518
11707
|
},
|
|
11519
11708
|
preferredPlacement: "right"
|
|
11520
11709
|
}) : m)), ie);
|
|
11521
|
-
},
|
|
11710
|
+
}, fo = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
11522
11711
|
submenu: "submenu",
|
|
11523
11712
|
toggle: "Toggle"
|
|
11524
11713
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
11525
|
-
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [u, f] = _({}), p =
|
|
11714
|
+
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [u, f] = _({}), p = $a(a);
|
|
11526
11715
|
d(() => {
|
|
11527
11716
|
f((e) => Object.keys(e).length ? {} : e);
|
|
11528
11717
|
}, [p]);
|
|
@@ -11546,8 +11735,8 @@ var xi = {
|
|
|
11546
11735
|
className: `${c}__section-label`,
|
|
11547
11736
|
role: "presentation"
|
|
11548
11737
|
}, t.label);
|
|
11549
|
-
let a =
|
|
11550
|
-
return /* @__PURE__ */ e.createElement(
|
|
11738
|
+
let a = Qa(t);
|
|
11739
|
+
return /* @__PURE__ */ e.createElement(uo, {
|
|
11551
11740
|
key: n,
|
|
11552
11741
|
icon: t.icon,
|
|
11553
11742
|
isActive: a,
|
|
@@ -11569,7 +11758,7 @@ var xi = {
|
|
|
11569
11758
|
]),
|
|
11570
11759
|
...s
|
|
11571
11760
|
}, g);
|
|
11572
|
-
},
|
|
11761
|
+
}, po = ({ items: t, label: n }) => {
|
|
11573
11762
|
let r = g(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = Yn({
|
|
11574
11763
|
offsetValue: 8,
|
|
11575
11764
|
openOnHover: !ln()
|
|
@@ -11606,7 +11795,7 @@ var xi = {
|
|
|
11606
11795
|
key: n,
|
|
11607
11796
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${p(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
11608
11797
|
}, !t.isSeparator && t.linkContent)))));
|
|
11609
|
-
},
|
|
11798
|
+
}, mo = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
11610
11799
|
let [a, o] = _(null), [s, c] = _(-1), [l, u] = _(null), [p, m] = _({
|
|
11611
11800
|
container: null,
|
|
11612
11801
|
containerChildren: []
|
|
@@ -11653,7 +11842,7 @@ var xi = {
|
|
|
11653
11842
|
},
|
|
11654
11843
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
11655
11844
|
id: i
|
|
11656
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11845
|
+
}, /* @__PURE__ */ e.createElement(po, {
|
|
11657
11846
|
items: t.links,
|
|
11658
11847
|
label: t.label
|
|
11659
11848
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -11672,24 +11861,24 @@ var xi = {
|
|
|
11672
11861
|
},
|
|
11673
11862
|
...i
|
|
11674
11863
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
11675
|
-
},
|
|
11864
|
+
}, ho = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
11676
11865
|
let [s, c] = _(""), l = i.length >= a, u = "pds-tab-menu", d = `${u}__dropdown-menu`, f = l ? `${d}--scroll` : null, p = `${u}__dropdown-item`, { activeIndex: m, floatingStyles: g, getFloatingProps: v, getItemProps: y, getReferenceProps: b, isMounted: x, isOpen: S, listRef: w, refs: T, setActiveIndex: E, transitionStyles: D } = Yn({
|
|
11677
11866
|
offsetValue: 8,
|
|
11678
11867
|
placement: "bottom-start",
|
|
11679
11868
|
role: "listbox"
|
|
11680
11869
|
}), O = $n("var(--pds-z-index-dropdown)"), k = (e) => {
|
|
11681
11870
|
e.preventDefault(), e.key === "Enter" && w.current[m].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && l && document.getElementById("links-filter").focus();
|
|
11682
|
-
}, A = (e, t) =>
|
|
11871
|
+
}, A = (e, t) => Xa(e.linkContent).toLowerCase().includes(t.toLowerCase()), j = h(() => i.filter((e) => A(e, s)), [s, i]), M = (e) => {
|
|
11683
11872
|
c(e.target.value);
|
|
11684
11873
|
}, N = () => {
|
|
11685
11874
|
c("");
|
|
11686
11875
|
}, P = {
|
|
11687
11876
|
minWidth: "13rem",
|
|
11688
|
-
width: `${
|
|
11877
|
+
width: `${Xa(i.reduce((e, t) => Xa(e.linkContent).length > Xa(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
11689
11878
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
11690
11879
|
className: `${u}__active-icon`,
|
|
11691
11880
|
iconName: "check"
|
|
11692
|
-
}), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(
|
|
11881
|
+
}), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
11693
11882
|
hasClearButton: !0,
|
|
11694
11883
|
autoComplete: "off",
|
|
11695
11884
|
id: "links-filter",
|
|
@@ -11732,7 +11921,7 @@ var xi = {
|
|
|
11732
11921
|
zIndex: O
|
|
11733
11922
|
} })
|
|
11734
11923
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...D } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([d, f]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${u}__no-results` }, o) : L)))));
|
|
11735
|
-
},
|
|
11924
|
+
}, go = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
11736
11925
|
let o = "pds-tab-menu", c = g(null), l = g(null);
|
|
11737
11926
|
d(() => {
|
|
11738
11927
|
let e = l.current, t = c.current;
|
|
@@ -11745,7 +11934,7 @@ var xi = {
|
|
|
11745
11934
|
return r.observe(e), () => r.disconnect();
|
|
11746
11935
|
}, [i]);
|
|
11747
11936
|
let u = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
11748
|
-
let u = `${o}__item`, d =
|
|
11937
|
+
let u = `${o}__item`, d = Ya(c);
|
|
11749
11938
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
11750
11939
|
let i = null;
|
|
11751
11940
|
return s(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -11756,7 +11945,7 @@ var xi = {
|
|
|
11756
11945
|
iconName: n,
|
|
11757
11946
|
size: "m"
|
|
11758
11947
|
}), t.props.children)] })) : t), i;
|
|
11759
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
11948
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(ho, {
|
|
11760
11949
|
buttonLabel: t?.buttonLabel,
|
|
11761
11950
|
filterLabel: t?.filterLabel,
|
|
11762
11951
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -11771,7 +11960,7 @@ var xi = {
|
|
|
11771
11960
|
key: n,
|
|
11772
11961
|
dropdownSettings: t.dropdownSettings,
|
|
11773
11962
|
icon: t.icon,
|
|
11774
|
-
isActive:
|
|
11963
|
+
isActive: Qa(t),
|
|
11775
11964
|
linkContent: t.linkContent,
|
|
11776
11965
|
links: t.links,
|
|
11777
11966
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -11784,11 +11973,11 @@ var xi = {
|
|
|
11784
11973
|
ref: c,
|
|
11785
11974
|
className: `${o}__mobile-menu-wrapper`
|
|
11786
11975
|
}, f));
|
|
11787
|
-
},
|
|
11976
|
+
}, _o = {
|
|
11788
11977
|
2: "second",
|
|
11789
11978
|
3: "third",
|
|
11790
11979
|
4: "fourth"
|
|
11791
|
-
},
|
|
11980
|
+
}, vo = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
11792
11981
|
submenu: "submenu",
|
|
11793
11982
|
toggle: "Toggle"
|
|
11794
11983
|
}, menuItems: a, ...o }) => {
|
|
@@ -11905,7 +12094,7 @@ var xi = {
|
|
|
11905
12094
|
t !== -1 && (f(!0), y.current = t);
|
|
11906
12095
|
}
|
|
11907
12096
|
}, M = (t, n, r) => {
|
|
11908
|
-
let a =
|
|
12097
|
+
let a = _o[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Qa(n), { isExpanded: p, itemIndex: m } = S(n, f);
|
|
11909
12098
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
11910
12099
|
"aria-expanded": p,
|
|
11911
12100
|
className: Z([`${s}__toggle`, p ? `${s}__toggle--expanded` : null]),
|
|
@@ -11915,7 +12104,7 @@ var xi = {
|
|
|
11915
12104
|
iconName: "angleDown",
|
|
11916
12105
|
size: "xs",
|
|
11917
12106
|
verticalAlign: "-0.0625rem"
|
|
11918
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
12107
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Xa(n.linkContent)} ${i.submenu}`)), to(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
11919
12108
|
className: Z([
|
|
11920
12109
|
l,
|
|
11921
12110
|
o,
|
|
@@ -11923,7 +12112,7 @@ var xi = {
|
|
|
11923
12112
|
]),
|
|
11924
12113
|
role: "group"
|
|
11925
12114
|
}, n.links.map((t, n) => {
|
|
11926
|
-
let r =
|
|
12115
|
+
let r = Qa(t), { isExpanded: i } = S(t, r);
|
|
11927
12116
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11928
12117
|
key: `${n}-${a}`,
|
|
11929
12118
|
"aria-expanded": t.links ? i : void 0,
|
|
@@ -11935,10 +12124,10 @@ var xi = {
|
|
|
11935
12124
|
]),
|
|
11936
12125
|
"data-item-path": t.path || "",
|
|
11937
12126
|
role: "treeitem"
|
|
11938
|
-
}, t.links && d in
|
|
12127
|
+
}, t.links && d in _o ? M(d, t, t.links) : t.linkContent);
|
|
11939
12128
|
})));
|
|
11940
12129
|
}, N = (t, n) => {
|
|
11941
|
-
let { linkContent: r, links: i } = t, a =
|
|
12130
|
+
let { linkContent: r, links: i } = t, a = Qa(t), { isExpanded: o } = S(t, a);
|
|
11942
12131
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11943
12132
|
key: n,
|
|
11944
12133
|
"aria-expanded": i ? o : void 0,
|
|
@@ -11967,11 +12156,11 @@ var xi = {
|
|
|
11967
12156
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
11968
12157
|
role: "tree"
|
|
11969
12158
|
}, a.map((e, t) => N(e, t))));
|
|
11970
|
-
},
|
|
12159
|
+
}, yo = {
|
|
11971
12160
|
light: "sunBright",
|
|
11972
12161
|
dark: "moon",
|
|
11973
12162
|
system: "circleHalfStroke"
|
|
11974
|
-
},
|
|
12163
|
+
}, bo = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
11975
12164
|
light: "Light",
|
|
11976
12165
|
dark: "Dark",
|
|
11977
12166
|
system: "System"
|
|
@@ -11983,7 +12172,7 @@ var xi = {
|
|
|
11983
12172
|
];
|
|
11984
12173
|
if (s === "toggle") {
|
|
11985
12174
|
let s = d.map((e) => ({
|
|
11986
|
-
iconName:
|
|
12175
|
+
iconName: yo[e],
|
|
11987
12176
|
label: r[e],
|
|
11988
12177
|
value: e
|
|
11989
12178
|
}));
|
|
@@ -12002,7 +12191,7 @@ var xi = {
|
|
|
12002
12191
|
}
|
|
12003
12192
|
let f = d.map((e) => ({
|
|
12004
12193
|
callback: () => i?.(e),
|
|
12005
|
-
iconName:
|
|
12194
|
+
iconName: yo[e],
|
|
12006
12195
|
iconSize: "m",
|
|
12007
12196
|
label: r[e]
|
|
12008
12197
|
}));
|
|
@@ -12015,7 +12204,7 @@ var xi = {
|
|
|
12015
12204
|
customTrigger: /* @__PURE__ */ e.createElement(sr, {
|
|
12016
12205
|
iconOnly: !0,
|
|
12017
12206
|
"aria-label": u,
|
|
12018
|
-
iconName:
|
|
12207
|
+
iconName: yo[o],
|
|
12019
12208
|
id: n,
|
|
12020
12209
|
label: "",
|
|
12021
12210
|
menuItems: f,
|
|
@@ -12024,7 +12213,7 @@ var xi = {
|
|
|
12024
12213
|
offsetValue: 0,
|
|
12025
12214
|
preferredPlacement: "top"
|
|
12026
12215
|
}));
|
|
12027
|
-
},
|
|
12216
|
+
}, xo = ({ ariaLabel: t = "User menu", className: n, isMobileAccordion: r = !1, menuItems: i = [], onThemeChange: a, theme: o, themeLabel: s = "Theme", themeLabelStrings: c, userEmail: l, userImageSrc: u, userName: d, ...p }) => {
|
|
12028
12217
|
let [m, h] = _(null), [v, y] = _(!1), b = ln(), x = r && b, S = g([]), w = g([]), T = f(), k = "pds-user-menu", j = `${k}__menu`, { context: F, floatingStyles: I, refs: L } = P({
|
|
12029
12218
|
placement: "bottom-end",
|
|
12030
12219
|
open: v,
|
|
@@ -12057,7 +12246,7 @@ var xi = {
|
|
|
12057
12246
|
initial: { opacity: 0 },
|
|
12058
12247
|
open: { opacity: 1 },
|
|
12059
12248
|
close: { opacity: 0 }
|
|
12060
|
-
}), re = $n("var(--pds-z-index-dropdown)"), ie = /* @__PURE__ */ e.createElement(
|
|
12249
|
+
}), re = $n("var(--pds-z-index-dropdown)"), ie = /* @__PURE__ */ e.createElement(Ri, {
|
|
12061
12250
|
className: `${k}__avatar`,
|
|
12062
12251
|
fallbackIcon: "user",
|
|
12063
12252
|
imageSrc: u,
|
|
@@ -12069,7 +12258,7 @@ var xi = {
|
|
|
12069
12258
|
}, /* @__PURE__ */ e.createElement("div", { className: `${k}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${k}__user-email` }, l)), X = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
12070
12259
|
className: `${k}__theme-row`,
|
|
12071
12260
|
role: "presentation"
|
|
12072
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${k}__theme-label` }, s), /* @__PURE__ */ e.createElement(
|
|
12261
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${k}__theme-label` }, s), /* @__PURE__ */ e.createElement(bo, {
|
|
12073
12262
|
id: `${T}-theme`,
|
|
12074
12263
|
labelStrings: c,
|
|
12075
12264
|
onChange: a,
|
|
@@ -12148,7 +12337,7 @@ var xi = {
|
|
|
12148
12337
|
className: j,
|
|
12149
12338
|
role: "menu"
|
|
12150
12339
|
}, Y, /* @__PURE__ */ e.createElement("li", { role: "separator" }), X, ce))))));
|
|
12151
|
-
},
|
|
12340
|
+
}, So = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", isMobileAccordion: o = !1, menuHeading: s = "Workspaces", minFilterItems: c = 8, noResultsText: l = "No results found", workspaceList: u = [], ...d }) => {
|
|
12152
12341
|
let [f, p] = _(""), [v, y] = _(""), b = g(null), x = u.length >= c, S = ln(), w = o && S, T = "pds-workspace-selector", E = `${T}__menu`, D = x ? `${E}--scroll` : null, { activeIndex: O, floatingStyles: k, getFloatingProps: A, getItemProps: j, getReferenceProps: M, isMounted: N, listRef: P, refs: F, setIsOpen: I, transitionStyles: L } = Yn({
|
|
12153
12342
|
enableTypeahead: !x,
|
|
12154
12343
|
role: "menu"
|
|
@@ -12202,7 +12391,7 @@ var xi = {
|
|
|
12202
12391
|
t.onRestrictedSelection(), I(!1);
|
|
12203
12392
|
},
|
|
12204
12393
|
type: "button"
|
|
12205
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12394
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : null);
|
|
12206
12395
|
}), W = V.map((t) => {
|
|
12207
12396
|
let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
12208
12397
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -12220,7 +12409,7 @@ var xi = {
|
|
|
12220
12409
|
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
12221
12410
|
onClick: () => t.onRestrictedSelection(),
|
|
12222
12411
|
type: "button"
|
|
12223
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12412
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : null);
|
|
12224
12413
|
}), G = r && /* @__PURE__ */ e.createElement("div", {
|
|
12225
12414
|
ref: b,
|
|
12226
12415
|
className: `${T}__create-link`
|
|
@@ -12233,7 +12422,7 @@ var xi = {
|
|
|
12233
12422
|
onClick: () => I(!1),
|
|
12234
12423
|
size: "s",
|
|
12235
12424
|
variant: "link"
|
|
12236
|
-
})), K = (t) => z ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
12425
|
+
})), K = (t) => z ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
12237
12426
|
className: `${T}__avatar`,
|
|
12238
12427
|
imageSrc: z.imageSrc,
|
|
12239
12428
|
size: "m",
|
|
@@ -12245,7 +12434,7 @@ var xi = {
|
|
|
12245
12434
|
return /* @__PURE__ */ e.createElement("span", {
|
|
12246
12435
|
className: Z([T, n]),
|
|
12247
12436
|
...d
|
|
12248
|
-
}, w ? /* @__PURE__ */ e.createElement(Xn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(
|
|
12437
|
+
}, w ? /* @__PURE__ */ e.createElement(Xn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
12249
12438
|
hasClearButton: !0,
|
|
12250
12439
|
id: "workspace-filter-mobile",
|
|
12251
12440
|
label: i,
|
|
@@ -12286,7 +12475,7 @@ var xi = {
|
|
|
12286
12475
|
zIndex: R
|
|
12287
12476
|
},
|
|
12288
12477
|
...A()
|
|
12289
|
-
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(
|
|
12478
|
+
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
12290
12479
|
hasClearButton: !0,
|
|
12291
12480
|
id: "workspace-filter",
|
|
12292
12481
|
label: i,
|
|
@@ -12302,12 +12491,12 @@ var xi = {
|
|
|
12302
12491
|
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
12303
12492
|
role: "presentation"
|
|
12304
12493
|
}, s), U.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : U), G))));
|
|
12305
|
-
},
|
|
12494
|
+
}, Co = {
|
|
12306
12495
|
info: "circleInfo",
|
|
12307
12496
|
warning: "triangleExclamation",
|
|
12308
12497
|
critical: "diamondExclamation",
|
|
12309
12498
|
discovery: "handWave"
|
|
12310
|
-
},
|
|
12499
|
+
}, wo = 200, To = 50, Eo = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
12311
12500
|
...er,
|
|
12312
12501
|
neutral: "Notice"
|
|
12313
12502
|
}, ...c }) => {
|
|
@@ -12332,21 +12521,21 @@ var xi = {
|
|
|
12332
12521
|
}, E = u[0].type, D = E ? `${C}-group--${E}` : null, O = (e) => 500 - e, k = (e) => e === 0 ? 0 : -1, A = () => {
|
|
12333
12522
|
m(u[0].id), setTimeout(() => {
|
|
12334
12523
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
12335
|
-
},
|
|
12524
|
+
}, wo);
|
|
12336
12525
|
}, j = () => {
|
|
12337
12526
|
b({
|
|
12338
12527
|
[u[0].id]: 502,
|
|
12339
12528
|
[u[S - 1].id]: 501
|
|
12340
12529
|
}), setTimeout(() => {
|
|
12341
12530
|
m(u[0].id);
|
|
12342
|
-
},
|
|
12531
|
+
}, To), setTimeout(() => {
|
|
12343
12532
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), b({});
|
|
12344
|
-
},
|
|
12533
|
+
}, wo);
|
|
12345
12534
|
}, M = (t, n) => {
|
|
12346
12535
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", g = `${s[d]}: `, _ = (e) => {
|
|
12347
12536
|
e.preventDefault(), v(a), setTimeout(() => {
|
|
12348
12537
|
u?.(), v(null), x.current.add(a), f((e) => e.filter((e) => e.id !== a));
|
|
12349
|
-
},
|
|
12538
|
+
}, wo);
|
|
12350
12539
|
}, b = y[a] ?? O(n);
|
|
12351
12540
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12352
12541
|
key: a,
|
|
@@ -12361,7 +12550,7 @@ var xi = {
|
|
|
12361
12550
|
style: { zIndex: b }
|
|
12362
12551
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
12363
12552
|
className: `${C}__icon ${C}__icon--${t.type}`,
|
|
12364
|
-
iconName: d === "neutral" ? r :
|
|
12553
|
+
iconName: d === "neutral" ? r : Co[d],
|
|
12365
12554
|
size: l ? "2xl" : "l"
|
|
12366
12555
|
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
12367
12556
|
className: `${C}__dismiss-button`,
|
|
@@ -12392,12 +12581,12 @@ var xi = {
|
|
|
12392
12581
|
onClick: A,
|
|
12393
12582
|
size: "m"
|
|
12394
12583
|
}), u.map((e, t) => M(e, t))) : M(u[0], 0));
|
|
12395
|
-
},
|
|
12584
|
+
}, Do = {
|
|
12396
12585
|
info: "circleInfo",
|
|
12397
12586
|
warning: "triangleExclamation",
|
|
12398
12587
|
success: "circleCheck",
|
|
12399
12588
|
critical: "diamondExclamation"
|
|
12400
|
-
},
|
|
12589
|
+
}, Oo = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
12401
12590
|
...er,
|
|
12402
12591
|
working: "Working"
|
|
12403
12592
|
}, ...o }) => {
|
|
@@ -12418,81 +12607,86 @@ var xi = {
|
|
|
12418
12607
|
role: l,
|
|
12419
12608
|
...o
|
|
12420
12609
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(Fn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
12421
|
-
iconName: `${i}` in
|
|
12610
|
+
iconName: `${i}` in Do ? Do[i] : Do.info,
|
|
12422
12611
|
size: "xl"
|
|
12423
12612
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
12424
|
-
},
|
|
12613
|
+
}, ko = "Agentic", Ao = {
|
|
12425
12614
|
info: "circleInfo",
|
|
12426
12615
|
warning: "triangleExclamation",
|
|
12427
12616
|
success: "circleCheck",
|
|
12428
12617
|
critical: "diamondExclamation",
|
|
12429
12618
|
discovery: "handWave"
|
|
12430
|
-
},
|
|
12431
|
-
let
|
|
12432
|
-
|
|
12433
|
-
success: `${
|
|
12434
|
-
warning: `${
|
|
12435
|
-
info: `${
|
|
12436
|
-
critical: `${
|
|
12437
|
-
discovery: `${
|
|
12438
|
-
dismissing: `${
|
|
12439
|
-
dismissed: `${
|
|
12440
|
-
},
|
|
12619
|
+
}, jo = ({ agenticIconName: t, background: n = "default", badgeIcon: r, badgeLabel: i, className: a, ctaButton: o, ctaIcon: s, dismissLabel: c = "Dismiss", id: l, isDismissible: u, message: f, onDismiss: p, secondaryCta: m, title: h, type: _ = "info", typeLabels: v = er, ...y }) => {
|
|
12620
|
+
let b = g(null), x = g(void 0), S = "pds-section-message", C = {
|
|
12621
|
+
agentic: `${S}--agentic`,
|
|
12622
|
+
success: `${S}--success`,
|
|
12623
|
+
warning: `${S}--warning`,
|
|
12624
|
+
info: `${S}--info`,
|
|
12625
|
+
critical: `${S}--critical`,
|
|
12626
|
+
discovery: `${S}--discovery`,
|
|
12627
|
+
dismissing: `${S}--dismissing`,
|
|
12628
|
+
dismissed: `${S}--dismissed`
|
|
12629
|
+
}, w = u ? `${S}--hasDismiss` : null, T = h ? `${S}--hasTitle` : null, E = _ === "agentic", D = E && n === "secondary" ? `${S}--secondary-fill` : null, O = _ === "critical" ? "alert" : "status", k = E ? v.agentic ?? ko : v[_], A = `${k}: `, j = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", null, f) : f;
|
|
12441
12630
|
d(() => () => {
|
|
12442
|
-
|
|
12631
|
+
x.current && clearTimeout(x.current);
|
|
12443
12632
|
}, []);
|
|
12444
|
-
let
|
|
12445
|
-
|
|
12446
|
-
},
|
|
12447
|
-
|
|
12448
|
-
},
|
|
12449
|
-
|
|
12450
|
-
|
|
12633
|
+
let M = () => {
|
|
12634
|
+
b.current?.addEventListener("animationend", N, { once: !0 });
|
|
12635
|
+
}, N = (e) => {
|
|
12636
|
+
p?.(e, l);
|
|
12637
|
+
}, P = () => {
|
|
12638
|
+
M(), b.current?.classList.toggle(C.dismissing), x.current = setTimeout(() => {
|
|
12639
|
+
b.current && (b.current.classList.toggle(C.dismissing), b.current.classList.toggle(C.dismissed));
|
|
12451
12640
|
}, 400);
|
|
12452
12641
|
};
|
|
12453
12642
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12454
|
-
ref:
|
|
12643
|
+
ref: b,
|
|
12455
12644
|
className: Z([
|
|
12456
|
-
b,
|
|
12457
|
-
x[m],
|
|
12458
12645
|
S,
|
|
12459
|
-
C,
|
|
12460
|
-
|
|
12646
|
+
C[_],
|
|
12647
|
+
w,
|
|
12648
|
+
T,
|
|
12649
|
+
D,
|
|
12650
|
+
a ?? ""
|
|
12461
12651
|
]),
|
|
12462
|
-
id:
|
|
12463
|
-
role:
|
|
12464
|
-
...
|
|
12465
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
12466
|
-
iconName: `${m}` in Do ? Do[m] : Do.info,
|
|
12467
|
-
size: "xl"
|
|
12468
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, T), p && /* @__PURE__ */ e.createElement("div", { className: `${b}__header` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, p), n && /* @__PURE__ */ e.createElement(Mt, {
|
|
12469
|
-
className: `${b}__badge`,
|
|
12470
|
-
color: m,
|
|
12652
|
+
id: l,
|
|
12653
|
+
role: O,
|
|
12654
|
+
...y
|
|
12655
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__icon ${S}__icon-${_}` }, E ? /* @__PURE__ */ e.createElement(Fi, {
|
|
12471
12656
|
iconName: t,
|
|
12472
|
-
label:
|
|
12657
|
+
label: k,
|
|
12658
|
+
size: h ? "m" : "s"
|
|
12659
|
+
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
12660
|
+
iconName: Ao[_] ?? Ao.info,
|
|
12661
|
+
size: "xl"
|
|
12662
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${S}__text` }, !E && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, A), h && /* @__PURE__ */ e.createElement("div", { className: `${S}__header` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__title` }, h), i && /* @__PURE__ */ e.createElement(Mt, {
|
|
12663
|
+
className: `${S}__badge`,
|
|
12664
|
+
color: E ? "silver-muted" : _,
|
|
12665
|
+
iconName: r,
|
|
12666
|
+
label: i,
|
|
12473
12667
|
size: "s"
|
|
12474
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
12668
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${S}__message` }, j))), (o || m || u) && /* @__PURE__ */ e.createElement("div", { className: `${S}__actions` }, m && /* @__PURE__ */ e.createElement(Hn, {
|
|
12475
12669
|
variant: "link",
|
|
12476
|
-
...
|
|
12477
|
-
className: `${
|
|
12670
|
+
...m,
|
|
12671
|
+
className: `${S}__secondary`,
|
|
12478
12672
|
size: "s"
|
|
12479
|
-
}),
|
|
12480
|
-
...
|
|
12481
|
-
className: `${
|
|
12482
|
-
displayType:
|
|
12483
|
-
iconName:
|
|
12673
|
+
}), o && /* @__PURE__ */ e.createElement(Hn, {
|
|
12674
|
+
...o,
|
|
12675
|
+
className: `${S}__cta`,
|
|
12676
|
+
displayType: s ? "icon-start" : o.displayType,
|
|
12677
|
+
iconName: s ?? o.iconName,
|
|
12484
12678
|
size: "s",
|
|
12485
12679
|
variant: "secondary"
|
|
12486
|
-
}),
|
|
12487
|
-
ariaLabel:
|
|
12488
|
-
className: `${
|
|
12489
|
-
onClick:
|
|
12680
|
+
}), u && /* @__PURE__ */ e.createElement(qn, {
|
|
12681
|
+
ariaLabel: c,
|
|
12682
|
+
className: `${S}__dismiss`,
|
|
12683
|
+
onClick: P,
|
|
12490
12684
|
size: "m"
|
|
12491
12685
|
})));
|
|
12492
|
-
},
|
|
12686
|
+
}, Mo = 3e4, No = {
|
|
12493
12687
|
pause: "Pause notification",
|
|
12494
12688
|
resume: "Resume notification"
|
|
12495
|
-
},
|
|
12689
|
+
}, Po = i({ labelStrings: No }), Fo = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(qn, {
|
|
12496
12690
|
ariaLabel: t || "Close",
|
|
12497
12691
|
className: "pds-toast__close-button",
|
|
12498
12692
|
onClick: (e) => {
|
|
@@ -12500,13 +12694,13 @@ var xi = {
|
|
|
12500
12694
|
},
|
|
12501
12695
|
size: "s",
|
|
12502
12696
|
tabIndex: 0
|
|
12503
|
-
}),
|
|
12697
|
+
}), Io = ({ className: t, labelStrings: n = No, limit: r = 5, position: i = "bottom-right" }) => {
|
|
12504
12698
|
let a = Z(["pds-toaster", t]);
|
|
12505
|
-
return /* @__PURE__ */ e.createElement(
|
|
12699
|
+
return /* @__PURE__ */ e.createElement(Po.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(dt, {
|
|
12506
12700
|
newestOnTop: !0,
|
|
12507
12701
|
autoClose: !1,
|
|
12508
12702
|
className: a,
|
|
12509
|
-
closeButton:
|
|
12703
|
+
closeButton: Fo,
|
|
12510
12704
|
draggable: !1,
|
|
12511
12705
|
icon: !1,
|
|
12512
12706
|
limit: r,
|
|
@@ -12516,25 +12710,25 @@ var xi = {
|
|
|
12516
12710
|
role: "status",
|
|
12517
12711
|
transition: ut
|
|
12518
12712
|
}));
|
|
12519
|
-
},
|
|
12713
|
+
}, Lo = {
|
|
12520
12714
|
info: "circleInfo",
|
|
12521
12715
|
success: "circleCheck",
|
|
12522
12716
|
warning: "triangleExclamation",
|
|
12523
12717
|
critical: "diamondExclamation"
|
|
12524
|
-
},
|
|
12718
|
+
}, Ro = {
|
|
12525
12719
|
info: "Information",
|
|
12526
12720
|
success: "Success",
|
|
12527
12721
|
warning: "Warning",
|
|
12528
12722
|
critical: "Critical",
|
|
12529
12723
|
working: "Working..."
|
|
12530
|
-
},
|
|
12724
|
+
}, zo = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ro }) => {
|
|
12531
12725
|
let c = "pds-toast", l = {
|
|
12532
12726
|
critical: `${c}--critical`,
|
|
12533
12727
|
info: `${c}--info`,
|
|
12534
12728
|
success: `${c}--success`,
|
|
12535
12729
|
warning: `${c}--warning`,
|
|
12536
12730
|
working: `${c}--working`
|
|
12537
|
-
}, d = `${s[o]} `, { labelStrings: f } = u(
|
|
12731
|
+
}, d = `${s[o]} `, { labelStrings: f } = u(Po), [p, m] = _(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
12538
12732
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12539
12733
|
className: Z([
|
|
12540
12734
|
c,
|
|
@@ -12544,7 +12738,7 @@ var xi = {
|
|
|
12544
12738
|
id: i
|
|
12545
12739
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Fn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
12546
12740
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
12547
|
-
iconName:
|
|
12741
|
+
iconName: Lo[o],
|
|
12548
12742
|
size: "xl"
|
|
12549
12743
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
12550
12744
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -12559,11 +12753,11 @@ var xi = {
|
|
|
12559
12753
|
iconName: p ? "play" : "pause",
|
|
12560
12754
|
size: "m"
|
|
12561
12755
|
})));
|
|
12562
|
-
},
|
|
12756
|
+
}, Bo = /* @__PURE__ */ function(e) {
|
|
12563
12757
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
12564
|
-
}({}),
|
|
12758
|
+
}({}), Vo = () => {
|
|
12565
12759
|
let t = (t, n, r = {}) => {
|
|
12566
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(
|
|
12760
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(Mo, r.autoClose), o = /* @__PURE__ */ e.createElement(zo, {
|
|
12567
12761
|
autoCloseDuration: a || void 0,
|
|
12568
12762
|
toastId: i,
|
|
12569
12763
|
type: t
|
|
@@ -12591,7 +12785,7 @@ var xi = {
|
|
|
12591
12785
|
pt,
|
|
12592
12786
|
n
|
|
12593
12787
|
];
|
|
12594
|
-
},
|
|
12788
|
+
}, Ho = .35, Uo = .78, Wo = 80, Go = 4, Ko = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close", disableOutsideClick: a, expandedHeight: o, hasCloseButton: s = !0, height: c, isOpen: u = !1, resizeLabel: f = "Close sheet", setIsOpen: p = () => {}, title: m, ...h }) => {
|
|
12595
12789
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-bottom-sheet", S = o !== null, w = {
|
|
12596
12790
|
"--pds-bottom-sheet-height": c,
|
|
12597
12791
|
"--pds-bottom-sheet-expanded-height": o
|
|
@@ -12642,15 +12836,15 @@ var xi = {
|
|
|
12642
12836
|
let t = F.current, n = N.current;
|
|
12643
12837
|
if (!t || !n) return;
|
|
12644
12838
|
let r = e.clientY - t.startY, i = S ? window.innerHeight * .96 : t.startHeight;
|
|
12645
|
-
n.style.height = `${Math.min(i, Math.max(
|
|
12839
|
+
n.style.height = `${Math.min(i, Math.max(Wo, t.startHeight - r))}px`;
|
|
12646
12840
|
}, [S]), W = l((e) => {
|
|
12647
12841
|
let t = F.current, n = N.current;
|
|
12648
12842
|
if (F.current = null, M(!1), !t || !n) return;
|
|
12649
|
-
let r = Math.abs(e.clientY - t.startY) >
|
|
12843
|
+
let r = Math.abs(e.clientY - t.startY) > Go, i = n.getBoundingClientRect().height;
|
|
12650
12844
|
if (n.style.height = "", !r) return;
|
|
12651
12845
|
I.current = !0;
|
|
12652
12846
|
let a = window.innerHeight;
|
|
12653
|
-
i < a *
|
|
12847
|
+
i < a * Ho ? z() : S && i > a * Uo ? A(!0) : A(!1);
|
|
12654
12848
|
}, [S, z]);
|
|
12655
12849
|
return T ? /* @__PURE__ */ e.createElement(Zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement(lt, {
|
|
12656
12850
|
active: D,
|
|
@@ -12694,7 +12888,7 @@ var xi = {
|
|
|
12694
12888
|
onClick: z,
|
|
12695
12889
|
size: "s"
|
|
12696
12890
|
}))), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12697
|
-
},
|
|
12891
|
+
}, qo = ({ children: t, className: n, clearLabel: r = "Clear selection", count: i, getCountLabel: a = (e) => `${e} selected`, onClear: o, ...s }) => {
|
|
12698
12892
|
let c = "pds-bulk-action-bar";
|
|
12699
12893
|
return /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
12700
12894
|
className: Z([c, n ?? ""]),
|
|
@@ -12711,7 +12905,7 @@ var xi = {
|
|
|
12711
12905
|
size: "s",
|
|
12712
12906
|
variant: "reverse"
|
|
12713
12907
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__actions` }, t)));
|
|
12714
|
-
},
|
|
12908
|
+
}, Jo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: c = "right", setIsOpen: u = () => {}, size: f = "m", title: p, width: m, ...h }) => {
|
|
12715
12909
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, w = `${x}--${c}`, T = m ? { width: m } : void 0, [E, D] = _(s), [O, k] = _(!1), A = g(null), { closeOverlay: j, openOverlay: M } = pn();
|
|
12716
12910
|
d(() => {
|
|
12717
12911
|
s ? D(!0) : k(!1);
|
|
@@ -12776,7 +12970,7 @@ var xi = {
|
|
|
12776
12970
|
onClick: N,
|
|
12777
12971
|
size: "m"
|
|
12778
12972
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12779
|
-
},
|
|
12973
|
+
}, Yo = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...u }) => {
|
|
12780
12974
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = pn();
|
|
12781
12975
|
d(() => {
|
|
12782
12976
|
if (h && m && c) return h(), () => m();
|
|
@@ -12842,7 +13036,7 @@ var xi = {
|
|
|
12842
13036
|
}),
|
|
12843
13037
|
zIndex: 9999
|
|
12844
13038
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))))) : null;
|
|
12845
|
-
},
|
|
13039
|
+
}, Xo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: u = "m", title: f, ...p }) => {
|
|
12846
13040
|
let m = Tt(n), h = m.__unslotted, g = m.footer, v = "pds-modal", y = u === "m" ? null : `${v}--${u}`, x = a ? {
|
|
12847
13041
|
maxHeight: a,
|
|
12848
13042
|
paddingInlineEnd: "1rem",
|
|
@@ -12921,27 +13115,27 @@ var xi = {
|
|
|
12921
13115
|
className: `${v}__content`,
|
|
12922
13116
|
style: x
|
|
12923
13117
|
}, h), g && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, g)))))) : null;
|
|
12924
|
-
},
|
|
13118
|
+
}, Zo = (e, t) => {
|
|
12925
13119
|
let n = t - e + 1;
|
|
12926
13120
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
12927
|
-
},
|
|
13121
|
+
}, Qo = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => h(() => {
|
|
12928
13122
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
12929
|
-
if (a >= i) return
|
|
13123
|
+
if (a >= i) return Zo(1, i);
|
|
12930
13124
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
12931
13125
|
if (!l && u) return [
|
|
12932
|
-
...
|
|
13126
|
+
...Zo(1, 3 + 2 * e),
|
|
12933
13127
|
"...",
|
|
12934
13128
|
i
|
|
12935
13129
|
];
|
|
12936
13130
|
if (l && !u) return [
|
|
12937
13131
|
1,
|
|
12938
13132
|
"...",
|
|
12939
|
-
...
|
|
13133
|
+
...Zo(i - (3 + 2 * e) + 1, i)
|
|
12940
13134
|
];
|
|
12941
13135
|
if (l && u) return [
|
|
12942
13136
|
1,
|
|
12943
13137
|
"...",
|
|
12944
|
-
...
|
|
13138
|
+
...Zo(s, c),
|
|
12945
13139
|
"...",
|
|
12946
13140
|
o
|
|
12947
13141
|
];
|
|
@@ -12950,11 +13144,11 @@ var xi = {
|
|
|
12950
13144
|
n,
|
|
12951
13145
|
e,
|
|
12952
13146
|
t
|
|
12953
|
-
]),
|
|
13147
|
+
]), $o = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
12954
13148
|
previous: "Go to previous page",
|
|
12955
13149
|
next: "Go to next page"
|
|
12956
13150
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
12957
|
-
let f =
|
|
13151
|
+
let f = Qo({
|
|
12958
13152
|
currentPage: r,
|
|
12959
13153
|
totalItemCount: u,
|
|
12960
13154
|
bufferCount: t,
|
|
@@ -13010,7 +13204,7 @@ var xi = {
|
|
|
13010
13204
|
size: "m"
|
|
13011
13205
|
}))
|
|
13012
13206
|
}))));
|
|
13013
|
-
},
|
|
13207
|
+
}, es = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13014
13208
|
next: "Next",
|
|
13015
13209
|
previous: "Previous"
|
|
13016
13210
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -13039,7 +13233,7 @@ var xi = {
|
|
|
13039
13233
|
iconName: "angleRight",
|
|
13040
13234
|
size: "m"
|
|
13041
13235
|
}))));
|
|
13042
|
-
},
|
|
13236
|
+
}, ts = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13043
13237
|
next: "Go to next page",
|
|
13044
13238
|
of: "of",
|
|
13045
13239
|
page: "Page",
|
|
@@ -13100,7 +13294,7 @@ var xi = {
|
|
|
13100
13294
|
className: "visually-hidden",
|
|
13101
13295
|
id: "pagination-compact",
|
|
13102
13296
|
level: r
|
|
13103
|
-
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
13297
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Da, {
|
|
13104
13298
|
className: C ? `${b}__page-input--error` : void 0,
|
|
13105
13299
|
id: p,
|
|
13106
13300
|
inputProps: {
|
|
@@ -13130,7 +13324,7 @@ var xi = {
|
|
|
13130
13324
|
size: "s",
|
|
13131
13325
|
value: String(n)
|
|
13132
13326
|
}), /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.of, " ", m), /* @__PURE__ */ e.createElement("div", { className: `${b}__nav` }, k("prev"), k("next")));
|
|
13133
|
-
},
|
|
13327
|
+
}, ns = ({ children: t, className: n, contentMaxHeight: r, heading: i, icon: a, ...o }) => {
|
|
13134
13328
|
let s = "pds-widget-panel", c = Tt(t), l = c.__unslotted, u = c.footer, d = r ? { maxHeight: r } : void 0;
|
|
13135
13329
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13136
13330
|
className: Z([s, n ?? ""]),
|
|
@@ -13143,9 +13337,9 @@ var xi = {
|
|
|
13143
13337
|
className: `${s}__content`,
|
|
13144
13338
|
style: d
|
|
13145
13339
|
}, l), Et(u) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, u));
|
|
13146
|
-
},
|
|
13340
|
+
}, rs = ({ className: t, createLink: n, emptyText: r, filter: i, heading: a, items: o, ...s }) => {
|
|
13147
13341
|
let c = "pds-selector-panel", l = null;
|
|
13148
|
-
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(
|
|
13342
|
+
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(ns, {
|
|
13149
13343
|
className: Z([c, t ?? ""]),
|
|
13150
13344
|
heading: a,
|
|
13151
13345
|
...s
|
|
@@ -13161,7 +13355,7 @@ var xi = {
|
|
|
13161
13355
|
slot: "footer",
|
|
13162
13356
|
variant: "link"
|
|
13163
13357
|
}));
|
|
13164
|
-
},
|
|
13358
|
+
}, is = ({ children: t, className: n, link: r, onSelect: i, ...a }) => {
|
|
13165
13359
|
let o = r?.type;
|
|
13166
13360
|
return /* @__PURE__ */ e.createElement("li", {
|
|
13167
13361
|
className: Z(["pds-selector-panel__item", n ?? ""]),
|
|
@@ -13170,11 +13364,11 @@ var xi = {
|
|
|
13170
13364
|
onClick: () => i(),
|
|
13171
13365
|
type: "button"
|
|
13172
13366
|
}, t) : o && /* @__PURE__ */ e.createElement(o, Object.assign({}, r?.props), t));
|
|
13173
|
-
},
|
|
13174
|
-
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(
|
|
13367
|
+
}, as = ({ businessAccounts: t = [], className: n, contentMaxHeight: r, createBusinessAccountLink: i, heading: a = "Business accounts", ...o }) => {
|
|
13368
|
+
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(is, {
|
|
13175
13369
|
key: t.businessAccountId,
|
|
13176
13370
|
link: t.linkContent
|
|
13177
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${c}-content` }, /* @__PURE__ */ e.createElement(
|
|
13371
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${c}-content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
13178
13372
|
className: `${c}-avatar`,
|
|
13179
13373
|
fallbackIcon: "business-account",
|
|
13180
13374
|
imageSrc: t.imageSrc,
|
|
@@ -13185,7 +13379,7 @@ var xi = {
|
|
|
13185
13379
|
className: `${c}-name`,
|
|
13186
13380
|
onMouseEnter: wt
|
|
13187
13381
|
}, t.displayName))));
|
|
13188
|
-
return /* @__PURE__ */ e.createElement(
|
|
13382
|
+
return /* @__PURE__ */ e.createElement(rs, {
|
|
13189
13383
|
className: Z([s, n ?? ""]),
|
|
13190
13384
|
contentMaxHeight: r,
|
|
13191
13385
|
createLink: i,
|
|
@@ -13194,7 +13388,7 @@ var xi = {
|
|
|
13194
13388
|
items: l,
|
|
13195
13389
|
...o
|
|
13196
13390
|
});
|
|
13197
|
-
},
|
|
13391
|
+
}, os = "Bookmark pages you visit often for quick access.", ss = 5, cs = ({ bookmarks: t = [], className: n, contentMaxHeight: r, createLabel: i = "Create bookmark", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isLoading: c = !1, loadingRowCount: l = ss, noResultsText: u = os, onCreateBookmark: d, removeLabel: f, renameLabel: p, ...m }) => {
|
|
13198
13392
|
let h = "pds-bookmarks-panel", g = `${h}__item`, _ = [...Array(l)].map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
13199
13393
|
key: n,
|
|
13200
13394
|
className: `${g} ${g}--loading`
|
|
@@ -13209,9 +13403,9 @@ var xi = {
|
|
|
13209
13403
|
return /* @__PURE__ */ e.createElement("li", {
|
|
13210
13404
|
key: t.id ?? t.title,
|
|
13211
13405
|
className: g
|
|
13212
|
-
}, /* @__PURE__ */ e.createElement(
|
|
13406
|
+
}, /* @__PURE__ */ e.createElement(Ua, {
|
|
13213
13407
|
menuAriaLabel: a(t),
|
|
13214
|
-
menuItems:
|
|
13408
|
+
menuItems: Wa(t, {
|
|
13215
13409
|
getRemoveCriticalLabel: o,
|
|
13216
13410
|
removeLabel: f,
|
|
13217
13411
|
renameLabel: p
|
|
@@ -13233,14 +13427,14 @@ var xi = {
|
|
|
13233
13427
|
slot: "footer",
|
|
13234
13428
|
variant: "link"
|
|
13235
13429
|
});
|
|
13236
|
-
return /* @__PURE__ */ e.createElement(
|
|
13430
|
+
return /* @__PURE__ */ e.createElement(ns, {
|
|
13237
13431
|
className: Z([h, n ?? ""]),
|
|
13238
13432
|
contentMaxHeight: r,
|
|
13239
13433
|
heading: s,
|
|
13240
13434
|
icon: "bookmark",
|
|
13241
13435
|
...m
|
|
13242
|
-
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(
|
|
13243
|
-
},
|
|
13436
|
+
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(Ga, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
|
|
13437
|
+
}, ls = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
13244
13438
|
let [c, l] = _(i), u = f(), p = r ?? `expansion-panel-${u}`, m = "pds-expansion-panel", h = a ? null : `${m}--no-border`, v = g(null);
|
|
13245
13439
|
return d(() => {
|
|
13246
13440
|
let e = v.current;
|
|
@@ -13264,7 +13458,7 @@ var xi = {
|
|
|
13264
13458
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
13265
13459
|
iconName: "angleDown"
|
|
13266
13460
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
13267
|
-
},
|
|
13461
|
+
}, us = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
13268
13462
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
13269
13463
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13270
13464
|
className: Z([
|
|
@@ -13274,7 +13468,7 @@ var xi = {
|
|
|
13274
13468
|
]),
|
|
13275
13469
|
...i
|
|
13276
13470
|
}, t);
|
|
13277
|
-
},
|
|
13471
|
+
}, ds = ({ className: t, content: n, cta: r, dismissLabel: i = "Close", heading: a, image: o, imageVariant: s = "bleed", isDismissible: c, layout: l = "vertical", onDismiss: u, ...d }) => {
|
|
13278
13472
|
let f = "pds-feature-panel", p = l === "vertical" ? null : `${f}--${l}`, m = s === "bleed" ? null : `${f}--image-${s}`, h = c ? `${f}--hasDismiss` : null, g = o ? `${f}--has-image` : null, _ = r && "linkContent" in r;
|
|
13279
13473
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13280
13474
|
className: Z([
|
|
@@ -13301,17 +13495,19 @@ var xi = {
|
|
|
13301
13495
|
size: "s",
|
|
13302
13496
|
variant: "brand"
|
|
13303
13497
|
}))));
|
|
13304
|
-
},
|
|
13305
|
-
let
|
|
13498
|
+
}, fs = ({ children: t, className: n, isAnimated: r = !1, padding: i = "standard", variant: a = "default", ...o }) => {
|
|
13499
|
+
let s = "pds-panel", c = a.startsWith("agentic-"), l = c ? a.replace("agentic-", "") : a, u = l === "default" ? null : `${s}--${l}`, d = c ? `${s}--agentic` : null, f = c && r ? `${s}--animated` : null, p = `${s}__content`, m = i === "standard" ? null : `${p}--pad-${i}`;
|
|
13306
13500
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13307
13501
|
className: Z([
|
|
13308
|
-
o,
|
|
13309
13502
|
s,
|
|
13503
|
+
u,
|
|
13504
|
+
d,
|
|
13505
|
+
f,
|
|
13310
13506
|
n ?? ""
|
|
13311
13507
|
]),
|
|
13312
|
-
...
|
|
13313
|
-
}, /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
13314
|
-
},
|
|
13508
|
+
...o
|
|
13509
|
+
}, /* @__PURE__ */ e.createElement("div", { className: Z([p, m]) }, t));
|
|
13510
|
+
}, ps = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
13315
13511
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
13316
13512
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
13317
13513
|
className: Z([
|
|
@@ -13323,7 +13519,7 @@ var xi = {
|
|
|
13323
13519
|
]),
|
|
13324
13520
|
...o
|
|
13325
13521
|
}, n);
|
|
13326
|
-
},
|
|
13522
|
+
}, ms = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, stackBelow: a = "m", ...o }) => {
|
|
13327
13523
|
let s = "pds-panel-row", c = `${s}--stack-${a}`, [l, u] = _(!1), d = Tt(t), f = d["items-left"], p = d["items-right"], m = d["items-below"], h = () => {
|
|
13328
13524
|
u((e) => !e);
|
|
13329
13525
|
};
|
|
@@ -13355,17 +13551,17 @@ var xi = {
|
|
|
13355
13551
|
opacity: "0"
|
|
13356
13552
|
}
|
|
13357
13553
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, m)));
|
|
13358
|
-
},
|
|
13554
|
+
}, hs = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
13359
13555
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
13360
13556
|
...r
|
|
13361
|
-
}, t),
|
|
13557
|
+
}, t), gs = ({ className: t, contentMaxHeight: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", heading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
13362
13558
|
let d = "pds-workspace-selector-panel", f = `${d}__item`, [p, m] = _(""), g = l.length >= s, v = h(() => {
|
|
13363
13559
|
if (!p) return l;
|
|
13364
13560
|
let e = p.toLowerCase();
|
|
13365
13561
|
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
13366
13562
|
}, [l, p]).map((t) => {
|
|
13367
13563
|
let n = t.isRestricted && t.onRestrictedSelection ? t.onRestrictedSelection : void 0;
|
|
13368
|
-
return /* @__PURE__ */ e.createElement(
|
|
13564
|
+
return /* @__PURE__ */ e.createElement(is, {
|
|
13369
13565
|
key: t.workspaceId,
|
|
13370
13566
|
className: Z([
|
|
13371
13567
|
f,
|
|
@@ -13374,17 +13570,17 @@ var xi = {
|
|
|
13374
13570
|
]),
|
|
13375
13571
|
link: t.workspaceLink,
|
|
13376
13572
|
onSelect: n
|
|
13377
|
-
}, /* @__PURE__ */ e.createElement(
|
|
13573
|
+
}, /* @__PURE__ */ e.createElement(Oa, {
|
|
13378
13574
|
showActiveState: !1,
|
|
13379
13575
|
workspace: t
|
|
13380
13576
|
}));
|
|
13381
13577
|
});
|
|
13382
|
-
return /* @__PURE__ */ e.createElement(
|
|
13578
|
+
return /* @__PURE__ */ e.createElement(rs, {
|
|
13383
13579
|
className: Z([d, t ?? ""]),
|
|
13384
13580
|
contentMaxHeight: n,
|
|
13385
13581
|
createLink: r,
|
|
13386
13582
|
emptyText: c,
|
|
13387
|
-
filter: g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(
|
|
13583
|
+
filter: g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
13388
13584
|
hasClearButton: !0,
|
|
13389
13585
|
id: "workspace-selector-panel-filter",
|
|
13390
13586
|
label: i,
|
|
@@ -13399,7 +13595,7 @@ var xi = {
|
|
|
13399
13595
|
items: v,
|
|
13400
13596
|
...u
|
|
13401
13597
|
});
|
|
13402
|
-
},
|
|
13598
|
+
}, _s = /* @__PURE__ */ e.createElement("svg", {
|
|
13403
13599
|
"aria-label": "Pantheon",
|
|
13404
13600
|
fill: "none",
|
|
13405
13601
|
focusable: "false",
|
|
@@ -13461,7 +13657,7 @@ var xi = {
|
|
|
13461
13657
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13462
13658
|
d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
|
|
13463
13659
|
fill: "var(--pds-color-foreground-default)"
|
|
13464
|
-
})),
|
|
13660
|
+
})), vs = /* @__PURE__ */ e.createElement("svg", {
|
|
13465
13661
|
"aria-label": "Pantheon",
|
|
13466
13662
|
fill: "none",
|
|
13467
13663
|
focusable: "false",
|
|
@@ -13496,7 +13692,7 @@ var xi = {
|
|
|
13496
13692
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13497
13693
|
d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
|
|
13498
13694
|
fill: "var(--pds-color-foreground-default)"
|
|
13499
|
-
})),
|
|
13695
|
+
})), ys = /* @__PURE__ */ e.createElement("svg", {
|
|
13500
13696
|
"aria-label": "Pantheon",
|
|
13501
13697
|
fill: "none",
|
|
13502
13698
|
focusable: "false",
|
|
@@ -13531,16 +13727,16 @@ var xi = {
|
|
|
13531
13727
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13532
13728
|
d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
|
|
13533
13729
|
fill: "var(--pds-color-foreground-default)"
|
|
13534
|
-
})),
|
|
13730
|
+
})), bs = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
13535
13731
|
let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
|
|
13536
13732
|
switch (r) {
|
|
13537
13733
|
case "full":
|
|
13538
|
-
f =
|
|
13734
|
+
f = _s;
|
|
13539
13735
|
break;
|
|
13540
13736
|
case "icon":
|
|
13541
|
-
f =
|
|
13737
|
+
f = vs;
|
|
13542
13738
|
break;
|
|
13543
|
-
case "wordmark": f =
|
|
13739
|
+
case "wordmark": f = ys;
|
|
13544
13740
|
}
|
|
13545
13741
|
let p = s(i) && typeof i.props.children == "string" ? i.props.children : "", m = s(i) ? i.type : null, h = s(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
13546
13742
|
children: f,
|
|
@@ -13556,7 +13752,7 @@ var xi = {
|
|
|
13556
13752
|
]),
|
|
13557
13753
|
...o
|
|
13558
13754
|
}, i ? h : f);
|
|
13559
|
-
},
|
|
13755
|
+
}, xs = 8, Ss = 14, Cs = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: u = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: h = "circleInfo", triggerIconSize: v = "m", ...x }) => {
|
|
13560
13756
|
let [S, w] = _(u);
|
|
13561
13757
|
d(() => {
|
|
13562
13758
|
w(u);
|
|
@@ -13583,12 +13779,12 @@ var xi = {
|
|
|
13583
13779
|
K,
|
|
13584
13780
|
q,
|
|
13585
13781
|
te
|
|
13586
|
-
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re +
|
|
13782
|
+
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re + Ss / 2, X = ie + xs, { isMounted: ae } = U(R, {
|
|
13587
13783
|
initial: { transform: "scale(0)" },
|
|
13588
13784
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
13589
|
-
top: `${Y}px calc(100% + ${
|
|
13785
|
+
top: `${Y}px calc(100% + ${xs}px)`,
|
|
13590
13786
|
bottom: `${Y}px -8px`,
|
|
13591
|
-
left: `calc(100% + ${
|
|
13787
|
+
left: `calc(100% + ${xs}px) ${X}px`,
|
|
13592
13788
|
right: `-8px ${X}px`
|
|
13593
13789
|
}[e] })
|
|
13594
13790
|
});
|
|
@@ -13623,23 +13819,23 @@ var xi = {
|
|
|
13623
13819
|
className: `${j}__arrow`,
|
|
13624
13820
|
context: R,
|
|
13625
13821
|
fill: "var(--pds-color-surface-default)",
|
|
13626
|
-
height:
|
|
13822
|
+
height: xs,
|
|
13627
13823
|
stroke: "var(--pds-color-border-default)",
|
|
13628
13824
|
strokeWidth: 1,
|
|
13629
13825
|
tipRadius: 0,
|
|
13630
|
-
width:
|
|
13826
|
+
width: Ss
|
|
13631
13827
|
}), /* @__PURE__ */ e.createElement("div", { className: `${j}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${j}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${j}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${j}__close-wrapper` }, /* @__PURE__ */ e.createElement(qn, {
|
|
13632
13828
|
ariaLabel: r,
|
|
13633
13829
|
onClick: G,
|
|
13634
13830
|
size: "s"
|
|
13635
13831
|
})))))));
|
|
13636
|
-
},
|
|
13832
|
+
}, ws = {
|
|
13637
13833
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13638
13834
|
info: "--pds-color-status-info-fill",
|
|
13639
13835
|
success: "--pds-color-status-success-fill",
|
|
13640
13836
|
warning: "--pds-color-status-warning-fill",
|
|
13641
13837
|
critical: "--pds-color-status-critical-fill"
|
|
13642
|
-
},
|
|
13838
|
+
}, Ts = ({ className: t, colorBreakpoints: n = [{
|
|
13643
13839
|
colorType: "info",
|
|
13644
13840
|
percentage: 0
|
|
13645
13841
|
}, {
|
|
@@ -13660,7 +13856,7 @@ var xi = {
|
|
|
13660
13856
|
id: m
|
|
13661
13857
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
13662
13858
|
className: `${h}__percentage`,
|
|
13663
|
-
style: { color: `hsl(from var(${
|
|
13859
|
+
style: { color: `hsl(from var(${ws[y]}) h s calc(l - 7))` }
|
|
13664
13860
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
13665
13861
|
"aria-labelledby": m,
|
|
13666
13862
|
"aria-valuenow": v,
|
|
@@ -13670,16 +13866,16 @@ var xi = {
|
|
|
13670
13866
|
className: `${h}__bar`,
|
|
13671
13867
|
style: {
|
|
13672
13868
|
width: `${v}%`,
|
|
13673
|
-
backgroundColor: `var(${
|
|
13869
|
+
backgroundColor: `var(${ws[y]})`
|
|
13674
13870
|
}
|
|
13675
13871
|
}))), S && b);
|
|
13676
|
-
},
|
|
13872
|
+
}, Es = {
|
|
13677
13873
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13678
13874
|
info: "--pds-color-status-info-fill",
|
|
13679
13875
|
success: "--pds-color-status-success-fill",
|
|
13680
13876
|
warning: "--pds-color-status-warning-fill",
|
|
13681
13877
|
critical: "--pds-color-status-critical-fill"
|
|
13682
|
-
},
|
|
13878
|
+
}, Ds = ({ className: t, colorBreakpoints: n = [{
|
|
13683
13879
|
colorType: "info",
|
|
13684
13880
|
percentage: 0
|
|
13685
13881
|
}, {
|
|
@@ -13728,7 +13924,7 @@ var xi = {
|
|
|
13728
13924
|
strokeDasharray: x,
|
|
13729
13925
|
strokeDashoffset: S,
|
|
13730
13926
|
strokeWidth: y,
|
|
13731
|
-
style: { stroke: `var(${
|
|
13927
|
+
style: { stroke: `var(${Es[C]})` },
|
|
13732
13928
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
13733
13929
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
13734
13930
|
alignmentBaseline: "middle",
|
|
@@ -13738,29 +13934,29 @@ var xi = {
|
|
|
13738
13934
|
x: "50%",
|
|
13739
13935
|
y: "51%"
|
|
13740
13936
|
}, w))));
|
|
13741
|
-
},
|
|
13937
|
+
}, Os = {
|
|
13742
13938
|
of: "of",
|
|
13743
13939
|
showing: "Showing",
|
|
13744
13940
|
unitPlural: "results",
|
|
13745
13941
|
unitSingular: "result"
|
|
13746
|
-
},
|
|
13942
|
+
}, ks = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, As = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
13747
13943
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
13748
|
-
...
|
|
13944
|
+
...Os,
|
|
13749
13945
|
...i
|
|
13750
|
-
}, p = n !== void 0, m =
|
|
13946
|
+
}, p = n !== void 0, m = ks(r, f, d, a);
|
|
13751
13947
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13752
13948
|
"aria-live": "polite",
|
|
13753
13949
|
className: Z([s, t ?? ""]),
|
|
13754
13950
|
...o
|
|
13755
13951
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && /* @__PURE__ */ e.createElement("span", null, `${u} `), /* @__PURE__ */ e.createElement("span", { className: c }, n), /* @__PURE__ */ e.createElement("span", null, ` ${l} `)), /* @__PURE__ */ e.createElement("span", { className: c }, r), /* @__PURE__ */ e.createElement("span", null, ` ${m}`)));
|
|
13756
|
-
},
|
|
13952
|
+
}, js = {
|
|
13757
13953
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
13758
13954
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
13759
13955
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
13760
13956
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
13761
13957
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
13762
13958
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
13763
|
-
},
|
|
13959
|
+
}, Ms = (e) => typeof e == "string", Ns = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
13764
13960
|
"privacy",
|
|
13765
13961
|
"dataSubjectRequest",
|
|
13766
13962
|
"cookiePolicy",
|
|
@@ -13777,8 +13973,8 @@ var xi = {
|
|
|
13777
13973
|
r ?? ""
|
|
13778
13974
|
]),
|
|
13779
13975
|
...c
|
|
13780
|
-
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) =>
|
|
13781
|
-
},
|
|
13976
|
+
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) => Ms(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, js[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
13977
|
+
}, Ps = ({ className: t, option: n, ...r }) => {
|
|
13782
13978
|
let i = "pds-site-option-display", a = n.type ? or[n.type] : "boltSolid", o = g(null), [s] = mt(o), c = s.width / 16 - 7.5, l, u;
|
|
13783
13979
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
13784
13980
|
let d = /* @__PURE__ */ e.createElement(In, {
|
|
@@ -13801,7 +13997,7 @@ var xi = {
|
|
|
13801
13997
|
className: `${i}__status`,
|
|
13802
13998
|
style: { pointerEvents: "none" }
|
|
13803
13999
|
}, d));
|
|
13804
|
-
},
|
|
14000
|
+
}, Fs = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
13805
14001
|
clearButton: "Clear input text",
|
|
13806
14002
|
inputInstructions: "Type to search options"
|
|
13807
14003
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -13813,7 +14009,7 @@ var xi = {
|
|
|
13813
14009
|
id: n,
|
|
13814
14010
|
label: i,
|
|
13815
14011
|
value: r ?? i,
|
|
13816
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
14012
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Ps, { option: t }),
|
|
13817
14013
|
siteData: t
|
|
13818
14014
|
};
|
|
13819
14015
|
});
|
|
@@ -13821,7 +14017,7 @@ var xi = {
|
|
|
13821
14017
|
className: Z([g, t ?? ""]),
|
|
13822
14018
|
id: r,
|
|
13823
14019
|
...p
|
|
13824
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner` }, /* @__PURE__ */ e.createElement(
|
|
14020
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner` }, /* @__PURE__ */ e.createElement(Wi, {
|
|
13825
14021
|
hasClearButton: !0,
|
|
13826
14022
|
hasSearchShortcut: !0,
|
|
13827
14023
|
className: `${g}__combobox`,
|
|
@@ -13841,7 +14037,7 @@ var xi = {
|
|
|
13841
14037
|
})));
|
|
13842
14038
|
};
|
|
13843
14039
|
// src/components/SortableList/sortable-utils.ts
|
|
13844
|
-
function
|
|
14040
|
+
function Is(e, t, n = null, r = 0, i = []) {
|
|
13845
14041
|
return e.reduce((e, a, o) => {
|
|
13846
14042
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
13847
14043
|
return e.push({
|
|
@@ -13853,10 +14049,10 @@ function Ns(e, t, n = null, r = 0, i = []) {
|
|
|
13853
14049
|
index: o,
|
|
13854
14050
|
isExpanded: c,
|
|
13855
14051
|
parentId: n
|
|
13856
|
-
}), s && c && a.children && e.push(...
|
|
14052
|
+
}), s && c && a.children && e.push(...Is(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
13857
14053
|
}, []);
|
|
13858
14054
|
}
|
|
13859
|
-
function
|
|
14055
|
+
function Ls(e) {
|
|
13860
14056
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
13861
14057
|
for (let i of e) {
|
|
13862
14058
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -13869,35 +14065,35 @@ function Ps(e) {
|
|
|
13869
14065
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
13870
14066
|
}
|
|
13871
14067
|
}
|
|
13872
|
-
return
|
|
14068
|
+
return Rs(r);
|
|
13873
14069
|
}
|
|
13874
|
-
function
|
|
14070
|
+
function Rs(e) {
|
|
13875
14071
|
return e.map((e) => {
|
|
13876
14072
|
if (e.children?.length) return {
|
|
13877
14073
|
...e,
|
|
13878
|
-
children:
|
|
14074
|
+
children: Rs(e.children)
|
|
13879
14075
|
};
|
|
13880
14076
|
let { children: t, ...n } = e;
|
|
13881
14077
|
return n;
|
|
13882
14078
|
});
|
|
13883
14079
|
}
|
|
13884
|
-
function
|
|
14080
|
+
function zs(e, t) {
|
|
13885
14081
|
for (let n of e) {
|
|
13886
14082
|
if (n.id === t) return n;
|
|
13887
14083
|
if (n.children) {
|
|
13888
|
-
let e =
|
|
14084
|
+
let e = zs(n.children, t);
|
|
13889
14085
|
if (e) return e;
|
|
13890
14086
|
}
|
|
13891
14087
|
}
|
|
13892
14088
|
}
|
|
13893
|
-
function
|
|
14089
|
+
function Bs(e, t, n, r, i, a, o) {
|
|
13894
14090
|
let s = e.findIndex((e) => e.id === n);
|
|
13895
14091
|
if (s === -1) return 0;
|
|
13896
14092
|
let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
|
|
13897
14093
|
return Math.min(Math.max(d, h), p, a);
|
|
13898
14094
|
}
|
|
13899
14095
|
// src/components/SortableList/SortableListHeader.tsx
|
|
13900
|
-
var
|
|
14096
|
+
var Vs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
13901
14097
|
if (!r && !t) return null;
|
|
13902
14098
|
let a = r ? {
|
|
13903
14099
|
display: "grid",
|
|
@@ -13917,13 +14113,13 @@ var Rs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
13917
14113
|
}, r ? r.map((t) => /* @__PURE__ */ e.createElement("span", { key: t.id }, t.label)) : t));
|
|
13918
14114
|
};
|
|
13919
14115
|
// src/components/SortableList/useSortableTree.ts
|
|
13920
|
-
function
|
|
14116
|
+
function Hs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
13921
14117
|
let i = n !== void 0, [a, o] = _(() => n ?? e ?? []), [s, c] = _(/* @__PURE__ */ new Set()), u = g(null), d = g(t);
|
|
13922
14118
|
t && !d.current && (u.current = {
|
|
13923
14119
|
items: i ? n : a,
|
|
13924
14120
|
expandedIds: s
|
|
13925
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
13926
|
-
let f = i ? n : a, p = h(() =>
|
|
14121
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ws("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
14122
|
+
let f = i ? n : a, p = h(() => Is(f, s), [f, s]), m = h(() => p.map((e) => e.id), [p]), v = l((e) => {
|
|
13927
14123
|
c((t) => {
|
|
13928
14124
|
let n = new Set(t);
|
|
13929
14125
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -13941,7 +14137,7 @@ function zs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13941
14137
|
}, []),
|
|
13942
14138
|
flatNodes: p,
|
|
13943
14139
|
handleReorder: l((e) => {
|
|
13944
|
-
let t =
|
|
14140
|
+
let t = Ls(e);
|
|
13945
14141
|
i || o(t), r?.(t);
|
|
13946
14142
|
}, [i, r]),
|
|
13947
14143
|
resetToSnapshot: l(() => {
|
|
@@ -13953,23 +14149,23 @@ function zs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13953
14149
|
toggleExpand: v
|
|
13954
14150
|
};
|
|
13955
14151
|
}
|
|
13956
|
-
var
|
|
13957
|
-
function
|
|
13958
|
-
|
|
14152
|
+
var Us = /* @__PURE__ */ new Set();
|
|
14153
|
+
function Ws(e) {
|
|
14154
|
+
Us.has(e) || (Us.add(e), console.warn(e));
|
|
13959
14155
|
}
|
|
13960
14156
|
// src/components/SortableList/SortableList.tsx
|
|
13961
|
-
var
|
|
14157
|
+
var Gs = 24, Ks = { droppable: { strategy: Ze.Always } }, qs = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: c, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: f, maxDepth: m = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
13962
14158
|
let w = "pds-sortable-list", [T, E] = _(null), D = g(null), [O, k] = _(!1), A = g(!1), [j, M] = _(null), N = g(0), P = g(0), F = g("pointer"), I = g(0), L = g(null), [R, z] = _(0), ee = g(0), [B, V] = _(0), H = g(0), U = l((e, t) => {
|
|
13963
14159
|
if (m > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
13964
14160
|
e.preventDefault();
|
|
13965
14161
|
let n = e.key === "ArrowRight" ? 1 : -1, r = ee.current, i = Math.max(-m, Math.min(m, r + n)), a = i - r;
|
|
13966
14162
|
return ee.current = i, z(i), {
|
|
13967
|
-
x: t.currentCoordinates.x + a *
|
|
14163
|
+
x: t.currentCoordinates.x + a * Gs,
|
|
13968
14164
|
y: t.currentCoordinates.y
|
|
13969
14165
|
};
|
|
13970
14166
|
}
|
|
13971
14167
|
return at(e, t);
|
|
13972
|
-
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } =
|
|
14168
|
+
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } = Hs({
|
|
13973
14169
|
defaultItems: a,
|
|
13974
14170
|
isDragEnabled: W,
|
|
13975
14171
|
items: f,
|
|
@@ -13996,9 +14192,9 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
13996
14192
|
oe,
|
|
13997
14193
|
X,
|
|
13998
14194
|
j
|
|
13999
|
-
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ?
|
|
14195
|
+
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ? zs(G, String(T)) ?? null : null, [T, G]), de = h(() => {
|
|
14000
14196
|
let e = le?.depth ?? 0;
|
|
14001
|
-
return !T || !j || O || m === 0 ? e :
|
|
14197
|
+
return !T || !j || O || m === 0 ? e : Bs(q, String(T), String(j), B * Gs, Gs, m);
|
|
14002
14198
|
}, [
|
|
14003
14199
|
T,
|
|
14004
14200
|
le,
|
|
@@ -14010,7 +14206,7 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14010
14206
|
]), fe = h(() => {
|
|
14011
14207
|
if (!T || O || de === 0 || j && oe(j)) return null;
|
|
14012
14208
|
let e = q.findIndex((e) => e.id === T);
|
|
14013
|
-
return e === -1 ? null :
|
|
14209
|
+
return e === -1 ? null : Js(q, e, de);
|
|
14014
14210
|
}, [
|
|
14015
14211
|
T,
|
|
14016
14212
|
q,
|
|
@@ -14056,19 +14252,19 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14056
14252
|
}, [q, X]), ge = l((e) => {
|
|
14057
14253
|
let t = e.delta.x;
|
|
14058
14254
|
if (P.current = t, A.current || m === 0) return;
|
|
14059
|
-
let n = Math.floor(t /
|
|
14060
|
-
(n > r || n < r && t < r *
|
|
14255
|
+
let n = Math.floor(t / Gs), r = H.current;
|
|
14256
|
+
(n > r || n < r && t < r * Gs - Gs * .4) && (H.current = n, V(n));
|
|
14061
14257
|
}, [m]), _e = l((e) => {
|
|
14062
14258
|
let { active: t, over: n } = e, r = A.current, i = ee.current, a = H.current;
|
|
14063
14259
|
E(null), D.current = null, k(!1), A.current = !1, M(null), H.current = 0, V(0), L.current && (K(L.current), L.current = null);
|
|
14064
|
-
let o = q.findIndex((e) => e.id === t.id), s = r ? i *
|
|
14260
|
+
let o = q.findIndex((e) => e.id === t.id), s = r ? i * Gs : a * Gs, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
14065
14261
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
14066
14262
|
if (o === -1) return;
|
|
14067
14263
|
let e = q[o];
|
|
14068
14264
|
if (!e) return;
|
|
14069
|
-
let n =
|
|
14265
|
+
let n = Bs(q, String(t.id), String(t.id), s, Gs, m);
|
|
14070
14266
|
if (n === e.depth) return;
|
|
14071
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
14267
|
+
let r = [...q], [i] = r.splice(o, 1), a = Js(r, o, n);
|
|
14072
14268
|
if (a && ae.has(a)) return;
|
|
14073
14269
|
let c = {
|
|
14074
14270
|
...i,
|
|
@@ -14090,9 +14286,9 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14090
14286
|
let e = q[u];
|
|
14091
14287
|
_ = Math.min(e.depth + 1, m), v = String(l);
|
|
14092
14288
|
} else {
|
|
14093
|
-
_ =
|
|
14289
|
+
_ = Bs(d, String(t.id), String(l), s, Gs, m, p.depth);
|
|
14094
14290
|
let e = d[g];
|
|
14095
|
-
v = e && e.depth === _ - 1 ? String(l) :
|
|
14291
|
+
v = e && e.depth === _ - 1 ? String(l) : Js(d, g, _);
|
|
14096
14292
|
}
|
|
14097
14293
|
if (v && ae.has(v)) return;
|
|
14098
14294
|
let y = {
|
|
@@ -14115,24 +14311,24 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14115
14311
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, H.current = 0, V(0), ee.current = 0, z(0), L.current && (K(L.current), L.current = null);
|
|
14116
14312
|
}, [K]), ye = h(() => ({
|
|
14117
14313
|
onDragStart({ active: e }) {
|
|
14118
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14314
|
+
let t = q.find((t) => t.id === e.id), n = zs(G, String(e.id));
|
|
14119
14315
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
|
|
14120
14316
|
},
|
|
14121
14317
|
onDragOver({ active: e, over: t }) {
|
|
14122
14318
|
if (!t) return;
|
|
14123
14319
|
let n = q.findIndex((e) => e.id === t.id);
|
|
14124
14320
|
if (n === -1) return;
|
|
14125
|
-
let r =
|
|
14321
|
+
let r = zs(G, String(e.id)), i = r ? o(r) : String(e.id), a = Bs(q, String(e.id), String(t.id), P.current, Gs, m);
|
|
14126
14322
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
14127
14323
|
},
|
|
14128
14324
|
onDragEnd({ active: e, over: t }) {
|
|
14129
|
-
let n =
|
|
14325
|
+
let n = zs(G, String(e.id)), r = n ? o(n) : String(e.id);
|
|
14130
14326
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
14131
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
14327
|
+
let i = q.findIndex((e) => e.id === t.id), a = Bs(q, String(e.id), String(t.id), P.current, Gs, m);
|
|
14132
14328
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
14133
14329
|
},
|
|
14134
14330
|
onDragCancel({ active: e }) {
|
|
14135
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14331
|
+
let t = q.find((t) => t.id === e.id), n = zs(G, String(e.id));
|
|
14136
14332
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
14137
14333
|
}
|
|
14138
14334
|
}), [
|
|
@@ -14140,14 +14336,14 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14140
14336
|
q,
|
|
14141
14337
|
o,
|
|
14142
14338
|
m
|
|
14143
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
14339
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === Vs ? e.cloneElement(t, be) : t);
|
|
14144
14340
|
return /* @__PURE__ */ e.createElement(Je, {
|
|
14145
14341
|
accessibility: {
|
|
14146
14342
|
announcements: ye,
|
|
14147
14343
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
14148
14344
|
},
|
|
14149
14345
|
collisionDetection: me,
|
|
14150
|
-
measuring:
|
|
14346
|
+
measuring: Ks,
|
|
14151
14347
|
onDragCancel: ve,
|
|
14152
14348
|
onDragEnd: _e,
|
|
14153
14349
|
onDragMove: ge,
|
|
@@ -14222,13 +14418,13 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14222
14418
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
14223
14419
|
})()) : null));
|
|
14224
14420
|
});
|
|
14225
|
-
function
|
|
14421
|
+
function Js(e, t, n) {
|
|
14226
14422
|
if (n === 0) return null;
|
|
14227
14423
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
14228
14424
|
return null;
|
|
14229
14425
|
}
|
|
14230
14426
|
// src/components/SortableList/SortableRow.tsx
|
|
14231
|
-
var
|
|
14427
|
+
var Ys = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
|
|
14232
14428
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = ot({
|
|
14233
14429
|
attributes: {
|
|
14234
14430
|
role: "listitem",
|
|
@@ -14283,7 +14479,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14283
14479
|
key: t.id,
|
|
14284
14480
|
className: `${w}__cell`
|
|
14285
14481
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
14286
|
-
},
|
|
14482
|
+
}, Xs = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, background: i = "default", className: a, description: o, icon: s, iconColor: c = "neutral", isActive: l = !1, isLoading: u = !1, stat: d, title: p, ...m }) => {
|
|
14287
14483
|
let h = "pds-stat-panel", g = i === "default" ? null : `${h}--${i}`, _ = c === "neutral" ? null : `${h}--${c}`, v = l ? `${h}--active` : null, y = f(), b = n && r && t;
|
|
14288
14484
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14289
14485
|
"aria-labelledby": y,
|
|
@@ -14320,11 +14516,11 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14320
14516
|
size: { width: 6 },
|
|
14321
14517
|
textSize: "xl"
|
|
14322
14518
|
}) : d && /* @__PURE__ */ e.createElement("span", { className: `${h}__stat` }, d)), o && /* @__PURE__ */ e.createElement("p", { className: `${h}__description` }, o));
|
|
14323
|
-
},
|
|
14519
|
+
}, Zs = [
|
|
14324
14520
|
"default",
|
|
14325
14521
|
"working",
|
|
14326
14522
|
"checked"
|
|
14327
|
-
],
|
|
14523
|
+
], Qs = ({ alignment: t = "left", className: n, componentWidth: r, displayType: i = "label", labelStrings: a = {}, lastChecked: o, onCheck: s, state: c = "default", ...l }) => {
|
|
14328
14524
|
let u = i === "icon-button", d = {
|
|
14329
14525
|
checkForUpdates: "Check for updates",
|
|
14330
14526
|
checking: "Checking...",
|
|
@@ -14377,7 +14573,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14377
14573
|
triggerIconColor: "default",
|
|
14378
14574
|
triggerIconSize: "xs"
|
|
14379
14575
|
}), t === "left" && y));
|
|
14380
|
-
},
|
|
14576
|
+
}, $s = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
14381
14577
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Fn, {
|
|
14382
14578
|
className: `${o}__spinner`,
|
|
14383
14579
|
size: "m"
|
|
@@ -14394,23 +14590,23 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14394
14590
|
]),
|
|
14395
14591
|
...a
|
|
14396
14592
|
}, r ? d : l);
|
|
14397
|
-
},
|
|
14593
|
+
}, ec = {
|
|
14398
14594
|
frozen: "snowflake",
|
|
14399
14595
|
restricted: "lock"
|
|
14400
|
-
},
|
|
14596
|
+
}, tc = {
|
|
14401
14597
|
frozen: "Frozen",
|
|
14402
14598
|
restricted: "Restricted"
|
|
14403
|
-
},
|
|
14599
|
+
}, nc = ({ className: t, label: n, status: r, ...i }) => {
|
|
14404
14600
|
let a = "pds-status-scrim";
|
|
14405
14601
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14406
14602
|
className: Z([a, t ?? ""]),
|
|
14407
14603
|
...i
|
|
14408
14604
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
14409
14605
|
className: `${a}__icon`,
|
|
14410
|
-
iconName:
|
|
14606
|
+
iconName: ec[r],
|
|
14411
14607
|
size: "3xl"
|
|
14412
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ??
|
|
14413
|
-
},
|
|
14608
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ?? tc[r]));
|
|
14609
|
+
}, rc = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
14414
14610
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
14415
14611
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
14416
14612
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -14428,7 +14624,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14428
14624
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
14429
14625
|
...a
|
|
14430
14626
|
}, l);
|
|
14431
|
-
},
|
|
14627
|
+
}, ic = ({ className: t, steps: n, translatableLabels: r = {
|
|
14432
14628
|
step: "Step",
|
|
14433
14629
|
completed: "completed",
|
|
14434
14630
|
hasError: "has an error",
|
|
@@ -14492,7 +14688,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14492
14688
|
key: t.id,
|
|
14493
14689
|
className: `${o}__step`,
|
|
14494
14690
|
id: `${t.id}--mobile`
|
|
14495
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
14691
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ds, {
|
|
14496
14692
|
innerLabel: n,
|
|
14497
14693
|
label: "Step progress",
|
|
14498
14694
|
percentage: i,
|
|
@@ -14518,7 +14714,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14518
14714
|
"data-steps": u,
|
|
14519
14715
|
...i
|
|
14520
14716
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
14521
|
-
},
|
|
14717
|
+
}, ac = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
14522
14718
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
14523
14719
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
14524
14720
|
className: Z([...p]),
|
|
@@ -14544,14 +14740,14 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14544
14740
|
size: "s",
|
|
14545
14741
|
variant: "highlight"
|
|
14546
14742
|
})))));
|
|
14547
|
-
},
|
|
14743
|
+
}, oc = ({ className: t, labelStrings: n = {
|
|
14548
14744
|
step: "Step",
|
|
14549
14745
|
completed: "completed",
|
|
14550
14746
|
hasError: "has an error"
|
|
14551
14747
|
}, steps: r, ...i }) => {
|
|
14552
14748
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
14553
14749
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
14554
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
14750
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ac, {
|
|
14555
14751
|
key: `s${i}`,
|
|
14556
14752
|
_isFirstStep: c,
|
|
14557
14753
|
"aria-current": a ? "step" : null,
|
|
@@ -14572,12 +14768,12 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14572
14768
|
className: Z([a, t ?? ""]),
|
|
14573
14769
|
...i
|
|
14574
14770
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
14575
|
-
},
|
|
14771
|
+
}, sc = typeof window < "u" ? m : d, cc = (e) => {
|
|
14576
14772
|
let t = g(e);
|
|
14577
|
-
return
|
|
14773
|
+
return sc(() => {
|
|
14578
14774
|
t.current = e;
|
|
14579
14775
|
}), l((...e) => t.current(...e), []);
|
|
14580
|
-
},
|
|
14776
|
+
}, lc = c(function({ baseClass: t, checkboxId: n, columns: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspectable: s, isInspected: c, isSelectable: l, isSelected: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
14581
14777
|
return /* @__PURE__ */ e.createElement("tr", {
|
|
14582
14778
|
"aria-selected": s ? c : void 0,
|
|
14583
14779
|
className: Z([
|
|
@@ -14590,7 +14786,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14590
14786
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), d(p, m));
|
|
14591
14787
|
} : void 0,
|
|
14592
14788
|
tabIndex: s ? 0 : void 0
|
|
14593
|
-
}, o && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
14789
|
+
}, o && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Vi, {
|
|
14594
14790
|
checked: u,
|
|
14595
14791
|
disabled: !l,
|
|
14596
14792
|
id: n,
|
|
@@ -14602,7 +14798,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14602
14798
|
key: `${m}-${t.id}`,
|
|
14603
14799
|
className: t.cellClassName
|
|
14604
14800
|
}, p[t.id])));
|
|
14605
|
-
}),
|
|
14801
|
+
}), uc = c(function({ baseClass: t, cardColumns: n, cardLayout: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspected: s, isSelectable: c, isSelected: l, isTappable: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
14606
14802
|
let [g, ..._] = r === "inline" ? [void 0, ...n] : n, v = /* @__PURE__ */ e.createElement("div", { className: `${t}__card-main` }, o && /* @__PURE__ */ e.createElement("span", {
|
|
14607
14803
|
"aria-hidden": "true",
|
|
14608
14804
|
className: "pds-checkbox"
|
|
@@ -14637,8 +14833,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14637
14833
|
onClick: () => d(p, m),
|
|
14638
14834
|
type: "button"
|
|
14639
14835
|
}, v) : /* @__PURE__ */ e.createElement("div", { className: y }, v));
|
|
14640
|
-
}),
|
|
14641
|
-
let de = "pds-table", fe = f(), pe = f(), me = g(null), he =
|
|
14836
|
+
}), dc = ({ cardLayout: t = "stacked", className: n, closeDetailPanelLabel: r = "Close detail panel", columns: i, currentPage: a, defaultSortKey: o, defaultSortOrder: s = "asc", density: c = "standard", detailPanelNav: l = !0, detailPanelTitle: u, detailPanelWidth: p, emptyState: m, emptyStateAction: v, emptyStateHeading: y = "No results found.", emptyStateMessage: b, footer: x, getDetailPanelPositionLabel: S = (e, t) => `${e} of ${t}`, getPageSizeLabel: C = (e) => `Show ${e} rows per page`, getRowClassName: w, getRowId: T, getRowSelectDisabledReason: E, getSelectRowLabel: D = (e, t) => `Select row ${t}`, getSortLabel: O = (e) => `Sort by ${e}`, hasDesktopDetailPanel: k = !1, hasMobileCards: A = !1, hasMobileDetailSheet: j = !0, hasPanel: M = !1, inspectedRowId: N, isLoading: P = !1, isRowSelectable: F = () => !0, itemsPerPage: I, loadingRowCount: L = 5, maxHeight: R, minHeight: z, nextDetailPanelRowLabel: ee = "Next row", onDetailPanelClose: B, onDetailPanelNext: V, onDetailPanelPrev: H, onPageChange: U, onPageSizeChange: W, onRowInspect: G, onRowSelectionChange: K, onSort: q, pageSizeOptions: te, pageSizeSelectLabel: J = "Rows per page", paginationLabels: ne, prevDetailPanelRowLabel: re = "Previous row", renderDetailPanel: ie, renderDetailPanelFooter: Y, rowData: X, selectAllLabel: ae = "Select all rows", selectedRows: oe, sortKey: se, sortOrder: ce, totalItemCount: le, ...ue }) => {
|
|
14837
|
+
let de = "pds-table", fe = f(), pe = f(), me = g(null), he = Zi() === "sm" && A, ge = M && !he, _e = h(() => i.some((e) => e.cardVisible) ? i.filter((e) => e.cardVisible) : i.slice(0, 1), [i]), ve = ie !== void 0 || G === void 0 && j, ye = ie !== void 0 || G !== void 0 || j, be = q !== void 0, xe = U !== void 0, Se = W !== void 0, Ce = xe || I !== void 0 || te !== void 0, we = X.length > 0 || xe && (le ?? 0) > 0, [Te, Ee] = _({
|
|
14642
14838
|
key: o ?? "",
|
|
14643
14839
|
order: o === void 0 ? "asc" : s
|
|
14644
14840
|
}), De = h(() => {
|
|
@@ -14670,7 +14866,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14670
14866
|
Pe,
|
|
14671
14867
|
T,
|
|
14672
14868
|
qe
|
|
14673
|
-
]), Xe = Ye >= 0 ? De[Ye] : null, Ze =
|
|
14869
|
+
]), Xe = Ye >= 0 ? De[Ye] : null, Ze = cc((e, t) => {
|
|
14674
14870
|
(he ? ve : ie !== void 0 && k) && N === void 0 && Ne(t), G?.(e, t);
|
|
14675
14871
|
}), Qe = () => {
|
|
14676
14872
|
N === void 0 && Ne(null), Pe && B?.();
|
|
@@ -14751,7 +14947,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14751
14947
|
}, pt = lt.reduce((e, t, n) => {
|
|
14752
14948
|
let r = Je(t, n);
|
|
14753
14949
|
return F(t, r) && e.push(r), e;
|
|
14754
|
-
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt =
|
|
14950
|
+
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt = cc((e) => {
|
|
14755
14951
|
let t = new Set(Ke);
|
|
14756
14952
|
t.has(e) ? t.delete(e) : t.add(e), He || We(t), K?.(Array.from(t));
|
|
14757
14953
|
}), _t = () => {
|
|
@@ -14786,7 +14982,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14786
14982
|
};
|
|
14787
14983
|
}, St = (t, n) => {
|
|
14788
14984
|
let r = Je(t, n);
|
|
14789
|
-
return /* @__PURE__ */ e.createElement(
|
|
14985
|
+
return /* @__PURE__ */ e.createElement(lc, {
|
|
14790
14986
|
key: `row-${r}`,
|
|
14791
14987
|
baseClass: de,
|
|
14792
14988
|
checkboxId: `${pe}-row-${r}`,
|
|
@@ -14812,10 +15008,10 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14812
15008
|
linkContent: v,
|
|
14813
15009
|
message: b
|
|
14814
15010
|
});
|
|
14815
|
-
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(
|
|
15011
|
+
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, t) : t);
|
|
14816
15012
|
}, Et = (n, r) => {
|
|
14817
15013
|
let i = Je(n, r);
|
|
14818
|
-
return /* @__PURE__ */ e.createElement(
|
|
15014
|
+
return /* @__PURE__ */ e.createElement(uc, {
|
|
14819
15015
|
key: `card-${i}`,
|
|
14820
15016
|
baseClass: de,
|
|
14821
15017
|
cardColumns: _e,
|
|
@@ -14856,7 +15052,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14856
15052
|
n
|
|
14857
15053
|
]),
|
|
14858
15054
|
...ue
|
|
14859
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Ve && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
15055
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Ve && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Vi, {
|
|
14860
15056
|
checked: mt,
|
|
14861
15057
|
id: pe,
|
|
14862
15058
|
indeterminate: ht,
|
|
@@ -14893,7 +15089,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14893
15089
|
showLabel: !1,
|
|
14894
15090
|
size: "s",
|
|
14895
15091
|
value: String(ze)
|
|
14896
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
15092
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(ts, {
|
|
14897
15093
|
currentPage: xe ? a ?? 1 : Oe,
|
|
14898
15094
|
itemsPerPage: ze,
|
|
14899
15095
|
labelStrings: ne,
|
|
@@ -14920,7 +15116,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14920
15116
|
onClick: et,
|
|
14921
15117
|
size: "s",
|
|
14922
15118
|
variant: "standard"
|
|
14923
|
-
})))), he && /* @__PURE__ */ e.createElement(
|
|
15119
|
+
})))), he && /* @__PURE__ */ e.createElement(Ko, {
|
|
14924
15120
|
closeButtonLabel: r,
|
|
14925
15121
|
isOpen: Ie,
|
|
14926
15122
|
setIsOpen: (e) => {
|
|
@@ -14947,8 +15143,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14947
15143
|
size: "s",
|
|
14948
15144
|
variant: "standard"
|
|
14949
15145
|
}))))));
|
|
14950
|
-
return ge ? /* @__PURE__ */ e.createElement(
|
|
14951
|
-
},
|
|
15146
|
+
return ge ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, kt) : kt;
|
|
15147
|
+
}, fc = i(!1), pc = () => u(fc), mc = [
|
|
14952
15148
|
" ",
|
|
14953
15149
|
"/",
|
|
14954
15150
|
".",
|
|
@@ -14966,7 +15162,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14966
15162
|
"=",
|
|
14967
15163
|
"|",
|
|
14968
15164
|
"~"
|
|
14969
|
-
],
|
|
15165
|
+
], hc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), gc = (e) => {
|
|
14970
15166
|
let t = [];
|
|
14971
15167
|
return e.forEach((e) => {
|
|
14972
15168
|
let { id: n, innerText: r } = e;
|
|
@@ -14979,18 +15175,18 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14979
15175
|
title: r
|
|
14980
15176
|
});
|
|
14981
15177
|
}), t;
|
|
14982
|
-
},
|
|
15178
|
+
}, _c = (e, t, n) => {
|
|
14983
15179
|
let [r, i] = _([]);
|
|
14984
15180
|
return d(() => {
|
|
14985
15181
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
14986
15182
|
let e = Array.from(document.querySelectorAll(r));
|
|
14987
15183
|
e.forEach((e) => {
|
|
14988
|
-
|
|
14989
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
15184
|
+
mc.forEach((t) => {
|
|
15185
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(hc(t), "g"), "-"));
|
|
14990
15186
|
});
|
|
14991
15187
|
}), e.forEach((e, t) => {
|
|
14992
15188
|
e.id || (e.id = `${n}-item-${t}`);
|
|
14993
|
-
}), i(
|
|
15189
|
+
}), i(gc(e));
|
|
14994
15190
|
};
|
|
14995
15191
|
a();
|
|
14996
15192
|
let o = document.getElementById(e);
|
|
@@ -15006,7 +15202,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15006
15202
|
t,
|
|
15007
15203
|
n
|
|
15008
15204
|
]), { nestedHeadings: r };
|
|
15009
|
-
},
|
|
15205
|
+
}, vc = (e, t) => {
|
|
15010
15206
|
let [n, r] = _(void 0), i = g({});
|
|
15011
15207
|
return d(() => {
|
|
15012
15208
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -15029,7 +15225,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15029
15225
|
o.disconnect(), r(void 0);
|
|
15030
15226
|
};
|
|
15031
15227
|
}, [e, t]), n;
|
|
15032
|
-
},
|
|
15228
|
+
}, yc = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
15033
15229
|
key: r.id,
|
|
15034
15230
|
className: `${n}__list-item`
|
|
15035
15231
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -15045,8 +15241,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15045
15241
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
15046
15242
|
href: `#${r.id}`,
|
|
15047
15243
|
onClick: (e) => i(e, r.id)
|
|
15048
|
-
}, r.title))))))),
|
|
15049
|
-
let u = "pds-toc", d = f(), p = ln(), m =
|
|
15244
|
+
}, r.title))))))), bc = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
15245
|
+
let u = "pds-toc", d = f(), p = ln(), m = pc(), h = p || m, { nestedHeadings: g } = _c(c, o, d), _ = vc(c, o), v = (e) => {
|
|
15050
15246
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
15051
15247
|
}, y = (e) => {
|
|
15052
15248
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -15075,7 +15271,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15075
15271
|
r
|
|
15076
15272
|
]),
|
|
15077
15273
|
...l
|
|
15078
|
-
}, /* @__PURE__ */ e.createElement(
|
|
15274
|
+
}, /* @__PURE__ */ e.createElement(ro, {
|
|
15079
15275
|
headingText: s ? a : void 0,
|
|
15080
15276
|
menuItems: i,
|
|
15081
15277
|
selectTextFallback: a || n
|
|
@@ -15089,13 +15285,13 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15089
15285
|
baseClass: u,
|
|
15090
15286
|
className: `${s ? "" : "visually-hidden"}`,
|
|
15091
15287
|
level: i
|
|
15092
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
15288
|
+
}, a), /* @__PURE__ */ e.createElement(yc, {
|
|
15093
15289
|
activeID: _,
|
|
15094
15290
|
baseClass: u,
|
|
15095
15291
|
headings: g,
|
|
15096
15292
|
onLinkClick: b
|
|
15097
15293
|
}));
|
|
15098
|
-
},
|
|
15294
|
+
}, xc = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
15099
15295
|
let c = "pds-tabs", [l, u] = _(a ?? r);
|
|
15100
15296
|
d(() => {
|
|
15101
15297
|
a !== void 0 && u(a);
|
|
@@ -15203,7 +15399,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15203
15399
|
className: `${c}__panel-content`,
|
|
15204
15400
|
hidden: o !== l
|
|
15205
15401
|
}, r)))));
|
|
15206
|
-
},
|
|
15402
|
+
}, Sc = [
|
|
15207
15403
|
"orange",
|
|
15208
15404
|
"stone",
|
|
15209
15405
|
"gold",
|
|
@@ -15217,7 +15413,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15217
15413
|
"magenta",
|
|
15218
15414
|
"rose",
|
|
15219
15415
|
"red"
|
|
15220
|
-
],
|
|
15416
|
+
], Cc = [
|
|
15221
15417
|
"orange-solid",
|
|
15222
15418
|
"teal-solid",
|
|
15223
15419
|
"indigo-solid",
|
|
@@ -15227,14 +15423,14 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15227
15423
|
"lime-solid",
|
|
15228
15424
|
"sky-solid",
|
|
15229
15425
|
"slate-solid"
|
|
15230
|
-
],
|
|
15426
|
+
], wc = [
|
|
15231
15427
|
"success-solid",
|
|
15232
15428
|
"warning-solid",
|
|
15233
15429
|
"critical-solid",
|
|
15234
15430
|
"info-solid",
|
|
15235
15431
|
"discovery-solid"
|
|
15236
|
-
],
|
|
15237
|
-
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
15432
|
+
], Tc = [...Cc, ...wc], Ec = [...Sc, ...Cc], Dc = (e) => Ec[parseInt(ge(e), 16) % Ec.length], Oc = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, kc = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
15433
|
+
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Dc(l)}`, g = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
15238
15434
|
p((e) => !e);
|
|
15239
15435
|
}, b, x, S;
|
|
15240
15436
|
if (r && !n && s(r)) {
|
|
@@ -15256,7 +15452,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15256
15452
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
15257
15453
|
className: `${m}__label`,
|
|
15258
15454
|
title: l
|
|
15259
|
-
}, u > 0 ?
|
|
15455
|
+
}, u > 0 ? Oc(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
15260
15456
|
"aria-label": `${a}: ${l}`,
|
|
15261
15457
|
className: `${m}__remove`,
|
|
15262
15458
|
onClick: () => {
|
|
@@ -15268,7 +15464,48 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15268
15464
|
iconName: "xmark",
|
|
15269
15465
|
size: "m"
|
|
15270
15466
|
})) : null);
|
|
15271
|
-
},
|
|
15467
|
+
}, Ac = i({
|
|
15468
|
+
subtitlePosition: "below",
|
|
15469
|
+
variant: "card"
|
|
15470
|
+
}), jc = ({ children: t, className: n, subtitlePosition: r = "below", variant: i = "card", ...a }) => {
|
|
15471
|
+
let o = "pds-timeline", s = i === "flat" ? `${o}--flat` : null, c = h(() => ({
|
|
15472
|
+
subtitlePosition: r,
|
|
15473
|
+
variant: i
|
|
15474
|
+
}), [r, i]);
|
|
15475
|
+
return /* @__PURE__ */ e.createElement(Ac.Provider, { value: c }, /* @__PURE__ */ e.createElement("ol", {
|
|
15476
|
+
className: Z([
|
|
15477
|
+
o,
|
|
15478
|
+
s,
|
|
15479
|
+
n ?? ""
|
|
15480
|
+
]),
|
|
15481
|
+
...a
|
|
15482
|
+
}, t));
|
|
15483
|
+
}, Mc = ({ badgeColor: t = "info-muted", badgeIcon: n, badgeLabel: r, children: i, className: a, headingLevel: o = "h3", isActive: s = !1, sideLabel: c, subtitle: l, title: d, variant: f, ...p }) => {
|
|
15484
|
+
let m = "pds-timeline-item", { subtitlePosition: h, variant: g } = u(Ac), _ = f ?? g, v = !!(l || r), y = v && h === "above", b = s ? `${m}--active` : null, x = _ === "card" ? `${m}--card` : null, S = c ? `${m}--side-label` : null, C = y ? `${m}--subtitle-above` : null, w = v ? /* @__PURE__ */ e.createElement("div", { className: `${m}__subtitle` }, l && /* @__PURE__ */ e.createElement("span", null, l), r && /* @__PURE__ */ e.createElement(Mt, {
|
|
15485
|
+
color: t,
|
|
15486
|
+
iconName: n,
|
|
15487
|
+
label: r,
|
|
15488
|
+
size: "xs"
|
|
15489
|
+
})) : null, T = /* @__PURE__ */ e.createElement(Bn, {
|
|
15490
|
+
className: `${m}__title`,
|
|
15491
|
+
level: o
|
|
15492
|
+
}, d), E = /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__header` }, c && /* @__PURE__ */ e.createElement("div", { className: `${m}__side-label` }, /* @__PURE__ */ e.createElement("span", null, c)), y ? w : null, T, y ? null : w), i && /* @__PURE__ */ e.createElement("div", { className: `${m}__body` }, typeof i == "string" ? /* @__PURE__ */ e.createElement("p", null, i) : i));
|
|
15493
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
15494
|
+
"aria-current": s ? "step" : void 0,
|
|
15495
|
+
className: Z([
|
|
15496
|
+
m,
|
|
15497
|
+
b,
|
|
15498
|
+
x,
|
|
15499
|
+
S,
|
|
15500
|
+
C,
|
|
15501
|
+
a ?? ""
|
|
15502
|
+
]),
|
|
15503
|
+
...p
|
|
15504
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
15505
|
+
"aria-hidden": "true",
|
|
15506
|
+
className: `${m}__rail`
|
|
15507
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${m}__marker` })), _ === "card" ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, E) : E);
|
|
15508
|
+
}, Nc = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
15272
15509
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Tt(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
15273
15510
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15274
15511
|
className: Z([
|
|
@@ -15279,7 +15516,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15279
15516
|
]),
|
|
15280
15517
|
...a
|
|
15281
15518
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
15282
|
-
},
|
|
15519
|
+
}, Pc = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: u = !0, labels: f, mainBackground: p, mainContentElement: h = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
15283
15520
|
let [j, M] = _(l || !1);
|
|
15284
15521
|
d(() => {
|
|
15285
15522
|
M(l || !1);
|
|
@@ -15296,7 +15533,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15296
15533
|
"--sidebar-min-width": j ? `${w}rem` : `${D}rem`,
|
|
15297
15534
|
"--sidebar-width": z,
|
|
15298
15535
|
backgroundColor: C || void 0
|
|
15299
|
-
}, B = g(!1), V =
|
|
15536
|
+
}, B = g(!1), V = Zi(), H = V === "sm", U = () => {
|
|
15300
15537
|
H || (B.current = !1, x ? x() : M(!j));
|
|
15301
15538
|
};
|
|
15302
15539
|
d(() => {
|
|
@@ -15391,10 +15628,10 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15391
15628
|
n ?? ""
|
|
15392
15629
|
]),
|
|
15393
15630
|
...A
|
|
15394
|
-
}, /* @__PURE__ */ e.createElement(
|
|
15631
|
+
}, /* @__PURE__ */ e.createElement(Ma, {
|
|
15395
15632
|
destination: I,
|
|
15396
15633
|
text: F.skipToContent
|
|
15397
|
-
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(
|
|
15634
|
+
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(Jo, {
|
|
15398
15635
|
...i,
|
|
15399
15636
|
isOpen: c,
|
|
15400
15637
|
placement: "left",
|
|
@@ -15402,13 +15639,13 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15402
15639
|
!e && c && b && b();
|
|
15403
15640
|
}
|
|
15404
15641
|
}, r));
|
|
15405
|
-
},
|
|
15642
|
+
}, Fc = ({ children: t, className: n, sidebarLabel: r = "Sidebar", sidebarWidth: i = "18%", sidebarWidthMax: a = 20, sidebarWidthMin: o = 15, style: s, tocLabel: c = "On this page", ...l }) => {
|
|
15406
15643
|
let u = "pds-docs-layout", d = _n(`(max-width: ${Nt - 1}px)`), f = {
|
|
15407
15644
|
"--docs-sidebar-max-width": `${a}rem`,
|
|
15408
15645
|
"--docs-sidebar-min-width": `${o}rem`,
|
|
15409
15646
|
"--docs-sidebar-width": i
|
|
15410
15647
|
}, p = Tt(t), m = p.__unslotted || p.content, h = p.header, g = p.sidebar, _ = p.toc, v = d ? `${u}--compact` : null, y = g ? `${u}--has-sidebar` : null;
|
|
15411
|
-
return /* @__PURE__ */ e.createElement(
|
|
15648
|
+
return /* @__PURE__ */ e.createElement(fc.Provider, { value: d }, /* @__PURE__ */ e.createElement("div", {
|
|
15412
15649
|
className: Z([
|
|
15413
15650
|
u,
|
|
15414
15651
|
v,
|
|
@@ -15428,7 +15665,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15428
15665
|
"aria-label": c,
|
|
15429
15666
|
className: `${u}__toc`
|
|
15430
15667
|
}, _)));
|
|
15431
|
-
},
|
|
15668
|
+
}, Ic = ({ children: t, className: n, gridGap: r = "xl", mobileGridGap: i, secondSidebarMobileLocation: a = "after", secondSidebarWidth: o, secondSidebarWidthMax: s, secondSidebarWidthMin: c, sidebarLocation: l = "right", sidebarMobileLocation: u = "after", sidebarWidth: d = "33%", sidebarWidthMax: f = 25, sidebarWidthMin: p = 15, stackSidebarsBelow: m, ...h }) => {
|
|
15432
15669
|
let g = "pds-sidebar-layout", _ = (e) => e === "none" ? "0" : `var(--pds-spacing-${e})`, v = _(r), y = _(i ?? r), b = Tt(t), x = !!b["second-sidebar"], S = !!m && x;
|
|
15433
15670
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15434
15671
|
className: Z([
|
|
@@ -15451,7 +15688,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15451
15688
|
},
|
|
15452
15689
|
...h
|
|
15453
15690
|
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__main` }, b.__unslotted || b.content), S ? /* @__PURE__ */ e.createElement("div", { className: Z([`${g}__sides`, `${g}__sides--stack-${m}`]) }, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), x && /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])));
|
|
15454
|
-
},
|
|
15691
|
+
}, Lc = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
15455
15692
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
15456
15693
|
"--max-columns": i,
|
|
15457
15694
|
...a
|
|
@@ -15470,8 +15707,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15470
15707
|
className: `${s}__item`,
|
|
15471
15708
|
role: "listitem"
|
|
15472
15709
|
}, t))));
|
|
15473
|
-
},
|
|
15474
|
-
let o = Tt(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" || r === "wide" ? `${l}--${r === "full" ? "full-width" : "wide"}` : null, d = /* @__PURE__ */ e.createElement(
|
|
15710
|
+
}, Rc = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
15711
|
+
let o = Tt(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" || r === "wide" ? `${l}--${r === "full" ? "full-width" : "wide"}` : null, d = /* @__PURE__ */ e.createElement(oo, {
|
|
15475
15712
|
className: Z([
|
|
15476
15713
|
l,
|
|
15477
15714
|
u,
|
|
@@ -15480,8 +15717,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15480
15717
|
width: "wide",
|
|
15481
15718
|
...a
|
|
15482
15719
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
15483
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
15484
|
-
},
|
|
15720
|
+
return i ? /* @__PURE__ */ e.createElement(fs, null, d) : d;
|
|
15721
|
+
}, zc = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
15485
15722
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Tt(t), u = [
|
|
15486
15723
|
l["first-item"],
|
|
15487
15724
|
l["second-item"],
|
|
@@ -15499,7 +15736,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15499
15736
|
key: n,
|
|
15500
15737
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
15501
15738
|
}, t)));
|
|
15502
|
-
},
|
|
15739
|
+
}, Bc = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
15503
15740
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
15504
15741
|
switch (i) {
|
|
15505
15742
|
case "equal":
|
|
@@ -15520,7 +15757,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15520
15757
|
]),
|
|
15521
15758
|
...o
|
|
15522
15759
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
15523
|
-
},
|
|
15760
|
+
}, Vc = ({ alignContent: t = "flex-start", alignItems: n = "stretch", asContainer: r = !1, children: i, className: a, containerAlignContent: o, containerAlignItems: s, containerFlexDirection: c, containerFlexWrap: l, containerGap: u, containerJustifyContent: d, containerQueryPriority: f = "container", flexDirection: p = "row", flexWrap: m = "nowrap", gap: h = "xl", justifyContent: g = "flex-start", mobileAlignContent: _, mobileAlignItems: v, mobileFlexDirection: y, mobileFlexWrap: b, mobileGap: x, mobileJustifyContent: S, stackBelow: C, style: w, ...T }) => {
|
|
15524
15761
|
let E = "pds-flex", D = `${E}-container`, O = {
|
|
15525
15762
|
"--pds-flex-align-content": t,
|
|
15526
15763
|
"--pds-flex-align-items": n,
|
|
@@ -15568,20 +15805,20 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15568
15805
|
...O
|
|
15569
15806
|
}
|
|
15570
15807
|
}, i));
|
|
15571
|
-
},
|
|
15808
|
+
}, Hc = [
|
|
15572
15809
|
"light",
|
|
15573
15810
|
"dark",
|
|
15574
15811
|
"system"
|
|
15575
|
-
],
|
|
15812
|
+
], Uc = (e) => typeof e == "string" && Hc.includes(e), Wc = i(null), Gc = {
|
|
15576
15813
|
resolvedTheme: "light",
|
|
15577
15814
|
setTheme: () => {},
|
|
15578
15815
|
theme: "light"
|
|
15579
|
-
},
|
|
15816
|
+
}, Kc = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, qc = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: c }) => {
|
|
15580
15817
|
let u = c !== void 0, f = !r && !u && o && !i, [p, m] = _(n), h = u ? c : p, g = _n("(prefers-color-scheme: dark)"), v = h === "system" ? g ? "dark" : "light" : h;
|
|
15581
15818
|
d(() => {
|
|
15582
15819
|
if (!u && o && typeof window < "u") try {
|
|
15583
15820
|
let e = window.localStorage.getItem(s);
|
|
15584
|
-
|
|
15821
|
+
Uc(e) && m(e);
|
|
15585
15822
|
} catch {}
|
|
15586
15823
|
}, []), d(() => {
|
|
15587
15824
|
typeof document < "u" && (i?.current ?? document.documentElement).setAttribute("data-theme", v);
|
|
@@ -15601,20 +15838,20 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15601
15838
|
]),
|
|
15602
15839
|
theme: h
|
|
15603
15840
|
};
|
|
15604
|
-
return /* @__PURE__ */ e.createElement(
|
|
15841
|
+
return /* @__PURE__ */ e.createElement(Wc.Provider, { value: y }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Kc({
|
|
15605
15842
|
defaultTheme: n,
|
|
15606
15843
|
storageKey: s
|
|
15607
15844
|
}) } }), t);
|
|
15608
|
-
},
|
|
15845
|
+
}, Jc = () => u(Wc) ?? Gc, Yc = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
15609
15846
|
d(() => {
|
|
15610
15847
|
let e = document.documentElement, t = () => {
|
|
15611
15848
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
15612
15849
|
};
|
|
15613
15850
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
15614
15851
|
}, [r]);
|
|
15615
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
15852
|
+
let a = n ? /* @__PURE__ */ e.createElement(qc, i, t) : t;
|
|
15616
15853
|
return /* @__PURE__ */ e.createElement(fn, null, a);
|
|
15617
|
-
},
|
|
15854
|
+
}, Xc = ({ children: t, className: n, gap: r = "xl", itemMinWidth: i, maxColumns: a, mobileGap: o, ...s }) => {
|
|
15618
15855
|
let c = "pds-auto-grid", l = r === "xl" ? null : `${c}--gap-${r}`, u = a ? `${c}--capped` : null, d = o ?? r, f = d === r ? null : `${c}-gap-mobile--${d}`;
|
|
15619
15856
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15620
15857
|
className: Z([
|
|
@@ -15630,7 +15867,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15630
15867
|
},
|
|
15631
15868
|
...s
|
|
15632
15869
|
}, t);
|
|
15633
|
-
},
|
|
15870
|
+
}, Zc = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
15634
15871
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
15635
15872
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15636
15873
|
className: Z([
|
|
@@ -15644,7 +15881,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15644
15881
|
]),
|
|
15645
15882
|
...c
|
|
15646
15883
|
}, n);
|
|
15647
|
-
},
|
|
15884
|
+
}, Qc = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
15648
15885
|
let f = "pds-grid-item", p = [
|
|
15649
15886
|
l ? `${f}--sm-${l}` : null,
|
|
15650
15887
|
c ? `${f}--md-${c}` : null,
|
|
@@ -15663,7 +15900,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15663
15900
|
]),
|
|
15664
15901
|
...d
|
|
15665
15902
|
}, t);
|
|
15666
|
-
},
|
|
15903
|
+
}, $c = (e, t, n) => {
|
|
15667
15904
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [c, u] = _(!1), f = l((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
15668
15905
|
r,
|
|
15669
15906
|
i,
|
|
@@ -15687,7 +15924,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15687
15924
|
m,
|
|
15688
15925
|
a
|
|
15689
15926
|
]), c;
|
|
15690
|
-
},
|
|
15691
|
-
export { Mr as ActionCard,
|
|
15927
|
+
}, el = (e) => (window.addEventListener("resize", e), () => window.removeEventListener("resize", e)), tl = () => window.innerWidth, nl = () => 1024, rl = () => v(el, tl, nl);
|
|
15928
|
+
export { Mr as ActionCard, Fi as AgentAvatar, Pc as AppLayout, oi as AreaChart, Xc as AutoGrid, Ri as Avatar, zi as AvatarLabel, as as BASelectorPanel, Ha as BASwitcher, Mt as Badge, Eo as Banner, si as BarChart, Ga as BookmarksEmptyState, qa as BookmarksMenu, cs as BookmarksPanel, Ko as BottomSheet, Rn as BranchDiff, Ja as Breadcrumb, qo as BulkActionBar, Hn as Button, Un as ButtonLink, ao as ButtonNav, Aa as CTALink, jr as Callout, Nr as Card, Pr as CardSelect, Vi as Checkbox, Hi as CheckboxFieldset, Ui as CheckboxGroup, Kn as ClipboardButton, qn as CloseButton, wi as CodeBlock, Wi as Combobox, Ki as ComboboxMultiselect, Fr as CompactEmptyState, Ei as ComparisonList, oo as Container, va as Datepicker, Fc as DocsLayout, Jo as Drawer, dr as Dropdown, ro as DropdownMenu, ls as ExpansionPanel, us as ExpansionPanelGroup, ds as FeaturePanel, Mi as FileDiff, ya as FileUpload, Sr as FilterButton, Vc as FlexContainer, Yo as FullScreenOverlay, Yc as GlobalWrapper, Zc as Grid, Qc as GridItem, Oi as HorizontalEmptyState, Q as Icon, Gn as IconButton, Bi as IdentityBlock, Ai as Illustration, Oo as InlineMessage, ba as InputGroup, li as LineChart, ja as LinkNewWindow, Mo as MIN_AUTO_CLOSE_DURATION, sr as MenuButton, Xo as Modal, co as Navbar, $o as Pagination, es as PaginationChapter, ts as PaginationCompact, fs as Panel, ps as PanelList, ms as PanelRow, hs as PanelStack, bs as PantheonLogo, Pi as PaymentIcon, Pa as Picture, di as PieChart, Er as PlatformIcon, Cs as Popover, Ts as ProgressBar, Ds as ProgressRing, pi as ProportionBar, xa as RadioGroup, As as ResultCount, Ua as RowActionsMenu, Or as SSOButton, vi as ScatterPlot, jo as SectionMessage, Cr as SegmentedButton, Lr as Select, wr as SelectButton, Ir as SelectOptionGroup, lo as SideNav, fo as SideNavGlobal, uo as SideNavGlobalItem, Ic as SidebarLayout, Ns as SiteFooter, mo as SiteMenu, Ps as SiteOptionDisplay, Fs as SiteSearch, or as SiteTypeIcon, ar as SiteTypeLabel, $r as Skeleton, Ma as Skiplink, qs as SortableList, Vs as SortableListHeader, Ys as SortableRow, bi as Sparkline, Fn as Spinner, Tr as SplitButton, Xs as StatPanel, Lc as StatPanelGroup, In as StatusBadge, Qs as StatusChecker, $s as StatusIndicator, nc as StatusScrim, er as StatusTypeLabels, rc as StepList, ic as Stepper, Rc as StepperLayout, Sa as Switch, go as TabMenu, dc as Table, bc as TableOfContents, xc as Tabs, kc as Tag, wa as TagsInput, Ln as Tally, Da as TextInput, Ta as Textarea, Wc as ThemeContext, qc as ThemeContextProvider, bo as ThemeSwitcher, Na as ThinkingState, zc as ThreeItemLayout, jc as Timeline, Mc as TimelineItem, na as Timepicker, zo as Toast, Bo as ToastType, Io as Toaster, Po as ToasterContext, vn as Tooltip, vo as TreeNav, Bc as TwoItemLayout, xo as UserMenu, Nc as UtilityBar, kr as UtilityButton, ji as VerticalEmptyState, oc as VerticalStepper, Di as VideoEmbed, ns as WidgetPanel, ka as WorkspacePicker, So as WorkspaceSelector, gs as WorkspaceSelectorPanel, Wa as buildBookmarkMenuItems, ma as getPresetDateRange, Kc as getThemeInitScript, At as iconList, nr as isHeadingItemType, rr as isLinkItemType, ir as isNodeItemType, tr as isSeparatorItemType, Zs as statusCheckerStates, Sc as tagColors, Tc as tagSolidColors, Cc as tagSolidHueColors, wc as tagSolidStatusColors, Zi as useBreakpoint, Wn as useClipboard, Yn as useDropdown, ln as useIsMobile, $c as useKeyPress, mn as useKeyboardShortcut, _n as useMediaQuery, Jc as useTheme, Vo as useToast, rl as useWindowWidth };
|
|
15692
15929
|
|
|
15693
15930
|
//# sourceMappingURL=index.js.map
|