@ovh-ux/manager-pci-common 0.18.0 → 0.18.3

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/index.esm.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import Sr, { v6 as F, fetchIcebergV6 as Ue, aapi as co, FilterCategories as Nr } from "@ovh-ux/manager-core-api";
2
- import { useQuery as H, useQueries as lo, useQueryClient as Rt, useMutation as pa } from "@tanstack/react-query";
3
- import { useMe as ha, ActionBanner as fa, useTranslatedMicroRegions as Ar, getMacroRegion as Tr, useFeatureAvailability as Cr, Links as uo, LinkType as mo, TabsComponent as _o, useNotifications as po, DataGridTextCell as nt, useDataGrid as Er, useColumnFilters as Vr, FilterAdd as Lr, FilterList as Hr, Datagrid as Fr, useCatalogPrice as Ir, useProjectUrl as Rr, Subtitle as Or } from "@ovh-ux/manager-react-components";
2
+ import { useQuery as H, useQueries as lo, useQueryClient as Rt, useMutation as ha } from "@tanstack/react-query";
3
+ import { useMe as fa, ActionBanner as ga, useTranslatedMicroRegions as Ar, getMacroRegion as Tr, useFeatureAvailability as Cr, Links as uo, LinkType as mo, TabsComponent as _o, useNotifications as po, DataGridTextCell as nt, useDataGrid as Er, useColumnFilters as Vr, FilterAdd as Lr, FilterList as Hr, Datagrid as Fr, useCatalogPrice as Ir, useProjectUrl as Rr, Subtitle as Or } from "@ovh-ux/manager-react-components";
4
4
  import qr, { useMemo as Z, useRef as Ke, useState as re, useEffect as pe, createContext as ho, useContext as J, useCallback as rt, useId as Ht } from "react";
5
- import { useParams as ga } from "react-router-dom";
5
+ import { useParams as Ot } from "react-router-dom";
6
6
  import { useTranslation as L, Translation as it, Trans as Xr } from "react-i18next";
7
7
  import "react-dom";
8
8
  import { ShellContext as Me, useNavigation as fo } from "@ovh-ux/manager-react-shell-client";
9
9
  import { jsx as s, jsxs as k, Fragment as oe } from "react/jsx-runtime";
10
10
  import { ODS_THEME_COLOR_INTENT as w, ODS_THEME_TYPOGRAPHY_LEVEL as O, ODS_THEME_TYPOGRAPHY_SIZE as Q } from "@ovhcloud/ods-common-theming";
11
- import { OsdsText as T, OsdsIcon as ge, OsdsMessage as Br, OsdsChip as Ot, OsdsPopover as qt, OsdsPopoverContent as Xt, OsdsTile as yt, OsdsSpinner as Ae, OsdsSelect as Gr, OsdsSelectOption as Yr, OsdsButton as _e, OsdsLink as wt, OsdsDivider as go, OsdsSkeleton as ba, OsdsSearchBar as Zr, OsdsModal as Kr, OsdsFormField as bo, OsdsInput as vo, OsdsQuantity as Qr } from "@ovhcloud/ods-components/react";
11
+ import { OsdsText as T, OsdsIcon as ge, OsdsMessage as Br, OsdsChip as qt, OsdsPopover as Xt, OsdsPopoverContent as Bt, OsdsTile as yt, OsdsSpinner as Ae, OsdsSelect as Gr, OsdsSelectOption as Yr, OsdsButton as _e, OsdsLink as wt, OsdsDivider as go, OsdsSkeleton as ba, OsdsSearchBar as Zr, OsdsModal as Kr, OsdsFormField as bo, OsdsInput as vo, OsdsQuantity as Qr } from "@ovhcloud/ods-components/react";
12
12
  import { ODS_TEXT_SIZE as q, ODS_TEXT_LEVEL as ve, ODS_ICON_NAME as be, ODS_ICON_SIZE as $e, ODS_MESSAGE_TYPE as yo, ODS_CHIP_SIZE as va, ODS_SPINNER_SIZE as Te, ODS_BUTTON_SIZE as we, ODS_BUTTON_VARIANT as fe, ODS_INPUT_TYPE as wo, ODS_TEXT_COLOR_INTENT as $t, ODS_TEXT_COLOR_HUE as Jr } from "@ovhcloud/ods-components";
13
13
  import f from "i18next";
14
14
  import { OdsHTMLAnchorElementTarget as et } from "@ovhcloud/ods-common-core";
@@ -160,7 +160,7 @@ const ls = async (e, a) => {
160
160
  ...t
161
161
  })
162
162
  }), fs = (e, a) => {
163
- const { me: t } = ha();
163
+ const { me: t } = fa();
164
164
  return H({
165
165
  ...hs(e, t == null ? void 0 : t.ovhSubsidiary, a),
166
166
  enabled: !!t
@@ -169,7 +169,7 @@ const ls = async (e, a) => {
169
169
  queryKey: ["catalog"],
170
170
  queryFn: () => as(e)
171
171
  }), bs = () => {
172
- const { me: e } = ha();
172
+ const { me: e } = fa();
173
173
  return H({
174
174
  ...gs(e == null ? void 0 : e.ovhSubsidiary),
175
175
  enabled: !!e
@@ -178,7 +178,7 @@ const ls = async (e, a) => {
178
178
  queryKey: ["project", e],
179
179
  queryFn: () => us(e)
180
180
  }), Fxe = (e, a) => {
181
- const { projectId: t } = ga();
181
+ const { projectId: t } = Ot();
182
182
  return H({
183
183
  ...vs(e || t),
184
184
  ...a
@@ -187,7 +187,7 @@ const ls = async (e, a) => {
187
187
  queryKey: ["project", e, "quota"],
188
188
  queryFn: () => ms(e)
189
189
  }), ws = (e, a, t) => {
190
- const { projectId: n } = ga();
190
+ const { projectId: n } = Ot();
191
191
  return H({
192
192
  ...ys(e || n),
193
193
  select: (o) => a ? o.filter((c) => c.region === a.region) : o,
@@ -8367,7 +8367,7 @@ const mp = {
8367
8367
  narrow: ["1", "2", "3", "4"],
8368
8368
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
8369
8369
  wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
8370
- }, da = {
8370
+ }, la = {
8371
8371
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
8372
8372
  abbreviated: [
8373
8373
  "Jan",
@@ -8398,7 +8398,7 @@ const mp = {
8398
8398
  "Dezember"
8399
8399
  ]
8400
8400
  }, lb = {
8401
- narrow: da.narrow,
8401
+ narrow: la.narrow,
8402
8402
  abbreviated: [
8403
8403
  "Jan.",
8404
8404
  "Feb.",
@@ -8413,7 +8413,7 @@ const mp = {
8413
8413
  "Nov.",
8414
8414
  "Dez."
8415
8415
  ],
8416
- wide: da.wide
8416
+ wide: la.wide
8417
8417
  }, ub = {
8418
8418
  narrow: ["S", "M", "D", "M", "D", "F", "S"],
8419
8419
  short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
@@ -8501,7 +8501,7 @@ const mp = {
8501
8501
  argumentCallback: (e) => e - 1
8502
8502
  }),
8503
8503
  month: i({
8504
- values: da,
8504
+ values: la,
8505
8505
  formattingValues: lb,
8506
8506
  defaultWidth: "wide"
8507
8507
  }),
@@ -8640,7 +8640,7 @@ const mp = {
8640
8640
  narrow: ["1", "2", "3", "4"],
8641
8641
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
8642
8642
  wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
8643
- }, la = {
8643
+ }, ua = {
8644
8644
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
8645
8645
  abbreviated: [
8646
8646
  "Jän",
@@ -8671,7 +8671,7 @@ const mp = {
8671
8671
  "Dezember"
8672
8672
  ]
8673
8673
  }, Sb = {
8674
- narrow: la.narrow,
8674
+ narrow: ua.narrow,
8675
8675
  abbreviated: [
8676
8676
  "Jän.",
8677
8677
  "Feb.",
@@ -8686,7 +8686,7 @@ const mp = {
8686
8686
  "Nov.",
8687
8687
  "Dez."
8688
8688
  ],
8689
- wide: la.wide
8689
+ wide: ua.wide
8690
8690
  }, Nb = {
8691
8691
  narrow: ["S", "M", "D", "M", "D", "F", "S"],
8692
8692
  short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
@@ -8774,7 +8774,7 @@ const mp = {
8774
8774
  argumentCallback: (e) => e - 1
8775
8775
  }),
8776
8776
  month: i({
8777
- values: la,
8777
+ values: ua,
8778
8778
  formattingValues: Sb,
8779
8779
  defaultWidth: "wide"
8780
8780
  }),
@@ -11901,7 +11901,7 @@ const oP = {
11901
11901
  narrow: ["1", "2", "3", "4"],
11902
11902
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
11903
11903
  wide: ["1. kvartaali", "2. kvartaali", "3. kvartaali", "4. kvartaali"]
11904
- }, ua = {
11904
+ }, ma = {
11905
11905
  narrow: ["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"],
11906
11906
  abbreviated: [
11907
11907
  "tammi",
@@ -11932,8 +11932,8 @@ const oP = {
11932
11932
  "joulukuu"
11933
11933
  ]
11934
11934
  }, pP = {
11935
- narrow: ua.narrow,
11936
- abbreviated: ua.abbreviated,
11935
+ narrow: ma.narrow,
11936
+ abbreviated: ma.abbreviated,
11937
11937
  wide: [
11938
11938
  "tammikuuta",
11939
11939
  "helmikuuta",
@@ -12017,7 +12017,7 @@ const oP = {
12017
12017
  argumentCallback: (e) => e - 1
12018
12018
  }),
12019
12019
  month: i({
12020
- values: ua,
12020
+ values: ma,
12021
12021
  defaultWidth: "wide",
12022
12022
  formattingValues: pP,
12023
12023
  defaultFormattingWidth: "wide"
@@ -18969,7 +18969,7 @@ const jN = {
18969
18969
  evening: "кеште",
18970
18970
  night: "түнде"
18971
18971
  }
18972
- }, ta = {
18972
+ }, aa = {
18973
18973
  0: "-ші",
18974
18974
  1: "-ші",
18975
18975
  2: "-ші",
@@ -18991,7 +18991,7 @@ const jN = {
18991
18991
  90: "-шы",
18992
18992
  100: "-ші"
18993
18993
  }, EN = (e, a) => {
18994
- const t = Number(e), n = t % 10, o = t >= 100 ? 100 : null, c = ta[t] || ta[n] || o && ta[o] || "";
18994
+ const t = Number(e), n = t % 10, o = t >= 100 ? 100 : null, c = aa[t] || aa[n] || o && aa[o] || "";
18995
18995
  return t + c;
18996
18996
  }, VN = {
18997
18997
  ordinalNumber: EN,
@@ -24998,13 +24998,13 @@ function zV(e, a) {
24998
24998
  const n = t % 10;
24999
24999
  return n >= 2 && n <= 4 ? e.twoFour : e.other;
25000
25000
  }
25001
- function aa(e, a, t) {
25001
+ function na(e, a, t) {
25002
25002
  const n = zV(e, a);
25003
25003
  return (typeof n == "string" ? n : n[t]).replace("{{count}}", String(a));
25004
25004
  }
25005
25005
  const jV = (e, a, t) => {
25006
25006
  const n = MV[e];
25007
- return t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "za " + aa(n, a, "future") : aa(n, a, "past") + " temu" : aa(n, a, "regular");
25007
+ return t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "za " + na(n, a, "future") : na(n, a, "past") + " temu" : na(n, a, "regular");
25008
25008
  }, WV = {
25009
25009
  full: "EEEE, do MMMM y",
25010
25010
  long: "do MMMM y",
@@ -27357,7 +27357,7 @@ const JH = {
27357
27357
  function JF(e, a) {
27358
27358
  return a === 1 && e.one ? e.one : a >= 2 && a <= 4 && e.twoFour ? e.twoFour : e.other;
27359
27359
  }
27360
- function na(e, a, t) {
27360
+ function oa(e, a, t) {
27361
27361
  return JF(e, a)[t].replace("{{count}}", String(a));
27362
27362
  }
27363
27363
  function UF(e) {
@@ -27367,11 +27367,11 @@ function UF(e) {
27367
27367
  }
27368
27368
  )[0];
27369
27369
  }
27370
- function oa(e) {
27370
+ function ia(e) {
27371
27371
  let a = "";
27372
27372
  return e === "almost" && (a = "takmer"), e === "about" && (a = "približne"), a.length > 0 ? a + " " : "";
27373
27373
  }
27374
- function ia(e) {
27374
+ function ra(e) {
27375
27375
  let a = "";
27376
27376
  return e === "lessThan" && (a = "menej než"), e === "over" && (a = "viac než"), a.length > 0 ? a + " " : "";
27377
27377
  }
@@ -27507,7 +27507,7 @@ const tI = {
27507
27507
  }
27508
27508
  }, aI = (e, a, t) => {
27509
27509
  const n = UF(e) || "", o = eI(e.substring(n.length)), c = tI[o];
27510
- return t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? oa(n) + "o " + ia(n) + na(c, a, "future") : oa(n) + "pred " + ia(n) + na(c, a, "past") : oa(n) + ia(n) + na(c, a, "present");
27510
+ return t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? ia(n) + "o " + ra(n) + oa(c, a, "future") : ia(n) + "pred " + ra(n) + oa(c, a, "past") : ia(n) + ra(n) + oa(c, a, "present");
27511
27511
  }, nI = {
27512
27512
  full: "EEEE d. MMMM y",
27513
27513
  long: "d. MMMM y",
@@ -36025,7 +36025,7 @@ function B5(e, a) {
36025
36025
  return v !== void 0 && (c || e[h]) ? p.concat(n.formatDistance(b, v)) : p;
36026
36026
  }, []).join(u) : "";
36027
36027
  }
36028
- function ra(e, a) {
36028
+ function sa(e, a) {
36029
36029
  const n = K5(e);
36030
36030
  let o;
36031
36031
  if (n.date) {
@@ -36104,10 +36104,10 @@ function vt(e) {
36104
36104
  function U5(e) {
36105
36105
  const a = e.match(Y5);
36106
36106
  if (!a) return NaN;
36107
- const t = sa(a[1]), n = sa(a[2]), o = sa(a[3]);
36107
+ const t = ca(a[1]), n = ca(a[2]), o = ca(a[3]);
36108
36108
  return rK(t, n, o) ? t * qo + n * Ta + o * 1e3 : NaN;
36109
36109
  }
36110
- function sa(e) {
36110
+ function ca(e) {
36111
36111
  return e && parseFloat(e.replace(",", ".")) || 0;
36112
36112
  }
36113
36113
  function eK(e) {
@@ -36177,7 +36177,7 @@ async function uK(e, a) {
36177
36177
  );
36178
36178
  return t;
36179
36179
  }
36180
- const Bt = () => H({
36180
+ const Gt = () => H({
36181
36181
  queryKey: ["dbaas-logs"],
36182
36182
  queryFn: cK
36183
36183
  }), Oxe = (e, a) => H({
@@ -36191,7 +36191,7 @@ const Bt = () => H({
36191
36191
  ],
36192
36192
  queryFn: () => lK(e, a, t)
36193
36193
  }), mK = () => {
36194
- const { data: e } = Bt();
36194
+ const { data: e } = Gt();
36195
36195
  return lo({
36196
36196
  queries: (e == null ? void 0 : e.map((a) => ({
36197
36197
  queryKey: ["dbaas-logs-stream-id", a.serviceName],
@@ -36218,7 +36218,7 @@ const Bt = () => H({
36218
36218
  onError: t,
36219
36219
  onSuccess: n
36220
36220
  }) => {
36221
- const o = Rt(), c = pa({
36221
+ const o = Rt(), c = ha({
36222
36222
  mutationFn: async () => {
36223
36223
  const { data: u } = await F.delete(
36224
36224
  `${e}/subscription/${a}`
@@ -36248,7 +36248,7 @@ const Bt = () => H({
36248
36248
  return t;
36249
36249
  }
36250
36250
  }), hK = (e, a) => {
36251
- const { data: t, isPending: n } = Bt(), {
36251
+ const { data: t, isPending: n } = Gt(), {
36252
36252
  data: o,
36253
36253
  isPending: c
36254
36254
  } = pK(e, a);
@@ -36308,7 +36308,7 @@ function gK(e, a, t) {
36308
36308
  },
36309
36309
  select: (W) => ({
36310
36310
  ...W,
36311
- expirationDate: ra(W.expirationDate)
36311
+ expirationDate: sa(W.expirationDate)
36312
36312
  }),
36313
36313
  enabled: m
36314
36314
  });
@@ -36329,10 +36329,10 @@ function gK(e, a, t) {
36329
36329
  return pe(() => {
36330
36330
  const W = (z == null ? void 0 : z.filter(({ _id: x }) => !v.current.has(x))) || [], A = W.map(({ _id: x, ...P }) => ({
36331
36331
  _id: x,
36332
- date: In(ra(P.timestamp), "P", {
36332
+ date: In(sa(P.timestamp), "P", {
36333
36333
  locale: o[c]
36334
36334
  }),
36335
- time: In(ra(P.timestamp), "pp", {
36335
+ time: In(sa(P.timestamp), "pp", {
36336
36336
  locale: o[c]
36337
36337
  }),
36338
36338
  level: fK[P.level],
@@ -36594,7 +36594,7 @@ function eDe({
36594
36594
  );
36595
36595
  };
36596
36596
  return /* @__PURE__ */ s(oe, { children: QK(e) && /* @__PURE__ */ s(
36597
- fa,
36597
+ ga,
36598
36598
  {
36599
36599
  message: t("pci_projects_project_activate_project_banner_message"),
36600
36600
  cta: t("pci_projects_project_activate_project_banner_cta"),
@@ -36604,11 +36604,11 @@ function eDe({
36604
36604
  }
36605
36605
  ) });
36606
36606
  }
36607
- const ma = "public-cloud:pci-announcement-banner", JK = async () => (await co.get(
36608
- `/feature/${ma}/availability`
36609
- )).data[ma], UK = () => {
36607
+ const _a = "public-cloud:pci-announcement-banner", JK = async () => (await co.get(
36608
+ `/feature/${_a}/availability`
36609
+ )).data[_a], UK = () => {
36610
36610
  const { data: e, isLoading: a } = H({
36611
- queryKey: [ma],
36611
+ queryKey: [_a],
36612
36612
  queryFn: JK
36613
36613
  });
36614
36614
  return {
@@ -36651,7 +36651,7 @@ function tDe({
36651
36651
  await t("public-cloud", `#/pci/projects/${e}/regions`, {});
36652
36652
  };
36653
36653
  return /* @__PURE__ */ s(oe, { children: n && /* @__PURE__ */ s(
36654
- fa,
36654
+ ga,
36655
36655
  {
36656
36656
  message: a("pci_projects_beta_public_cloud_banner_info"),
36657
36657
  cta: a("pci_projects_beta_public_cloud_banner_info_link"),
@@ -36726,7 +36726,7 @@ function aDe({
36726
36726
  }) {
36727
36727
  const { t } = L("pci-free-local-zones-banner");
36728
36728
  return /* @__PURE__ */ s(
36729
- fa,
36729
+ ga,
36730
36730
  {
36731
36731
  message: t(
36732
36732
  `pci_free_local_zones_banner_text${a ? "_confirm" : ""}`
@@ -36736,11 +36736,11 @@ function aDe({
36736
36736
  }
36737
36737
  );
36738
36738
  }
36739
- const _a = "public-cloud:trusted-zone", aQ = async () => (await co.get(
36740
- `/feature/${_a}/availability`
36741
- )).data[_a], nQ = () => {
36739
+ const pa = "public-cloud:trusted-zone", aQ = async () => (await co.get(
36740
+ `/feature/${pa}/availability`
36741
+ )).data[pa], nQ = () => {
36742
36742
  const { data: e, isLoading: a } = H({
36743
- queryKey: [_a],
36743
+ queryKey: [pa],
36744
36744
  queryFn: aQ
36745
36745
  });
36746
36746
  return {
@@ -36963,7 +36963,7 @@ function Va({
36963
36963
  className: t,
36964
36964
  ...n
36965
36965
  }) {
36966
- return /* @__PURE__ */ k(Ot, { class: t, size: va.sm, inline: !0, ...n, children: [
36966
+ return /* @__PURE__ */ k(qt, { class: t, size: va.sm, inline: !0, ...n, children: [
36967
36967
  /* @__PURE__ */ s(T, { level: ve.body, size: q._500, children: a }),
36968
36968
  e && /* @__PURE__ */ s(
36969
36969
  ge,
@@ -36982,9 +36982,9 @@ function La({
36982
36982
  tooltipUrl: t
36983
36983
  }) {
36984
36984
  const { t: n } = L("pci-region-selector");
36985
- return /* @__PURE__ */ k(qt, { children: [
36985
+ return /* @__PURE__ */ k(Xt, { children: [
36986
36986
  /* @__PURE__ */ s("span", { slot: "popover-trigger", children: e }),
36987
- /* @__PURE__ */ k(Xt, { children: [
36987
+ /* @__PURE__ */ k(Bt, { children: [
36988
36988
  /* @__PURE__ */ s(
36989
36989
  T,
36990
36990
  {
@@ -37400,7 +37400,7 @@ function sDe({
37400
37400
  account: e,
37401
37401
  onAccountChange: a
37402
37402
  }) {
37403
- const { data: t, isPending: n } = Bt();
37403
+ const { data: t, isPending: n } = Gt();
37404
37404
  return pe(() => {
37405
37405
  a(t == null ? void 0 : t[0]);
37406
37406
  }, [t]), n ? /* @__PURE__ */ s("div", { className: "text-center", children: /* @__PURE__ */ s(Ae, { inline: !0, size: Te.md }) }) : /* @__PURE__ */ s(oe, { children: (t == null ? void 0 : t.length) && /* @__PURE__ */ s("div", { className: "mt-8", children: /* @__PURE__ */ s(
@@ -37799,7 +37799,7 @@ function goe({
37799
37799
  ] });
37800
37800
  }
37801
37801
  function boe({ onGotoStreams: e }) {
37802
- const { t: a } = L("pci-logs"), { navigation: t, tracking: n } = J(Me).shell, { logsGuideURL: o, logsTracking: c } = J(ct), { data: u } = Bt(), { data: m } = mK(), p = (u == null ? void 0 : u.length) > 0, h = (m == null ? void 0 : m.length) > 0, b = () => {
37802
+ const { t: a } = L("pci-logs"), { navigation: t, tracking: n } = J(Me).shell, { logsGuideURL: o, logsTracking: c } = J(ct), { data: u } = Gt(), { data: m } = mK(), p = (u == null ? void 0 : u.length) > 0, h = (m == null ? void 0 : m.length) > 0, b = () => {
37803
37803
  p ? h ? (c != null && c.transfer && n.trackClick({
37804
37804
  name: c == null ? void 0 : c.transfer
37805
37805
  }), e()) : (c != null && c.createDataStream && n.trackClick({
@@ -38075,7 +38075,7 @@ const yoe = (e, a, t) => H({
38075
38075
  onError: n,
38076
38076
  onSuccess: o
38077
38077
  }) => {
38078
- const c = Rt(), u = pa({
38078
+ const c = Rt(), u = ha({
38079
38079
  mutationFn: async () => {
38080
38080
  const { data: m } = await F.post(
38081
38081
  `${e}/subscription`,
@@ -38104,7 +38104,7 @@ const yoe = (e, a, t) => H({
38104
38104
  onError: a,
38105
38105
  onSuccess: t
38106
38106
  }) => {
38107
- const n = Rt(), o = pa({
38107
+ const n = Rt(), o = ha({
38108
38108
  mutationFn: async (c) => {
38109
38109
  const { data: u } = await F.delete(
38110
38110
  `${e}/subscription/${c}`
@@ -38309,7 +38309,7 @@ const Woe = ({
38309
38309
  {
38310
38310
  id: "indexation",
38311
38311
  cell: (u) => /* @__PURE__ */ s(nt, { children: /* @__PURE__ */ s(
38312
- Ot,
38312
+ qt,
38313
38313
  {
38314
38314
  color: w[u.indexingEnabled ? "success" : "warning"],
38315
38315
  inline: !0,
@@ -38358,7 +38358,7 @@ function lDe({
38358
38358
  serviceName: a
38359
38359
  }), y = Ke(void 0);
38360
38360
  return b ? /* @__PURE__ */ s("div", { className: "text-center", children: /* @__PURE__ */ s(Ae, { inline: !0, size: Te.md }) }) : /* @__PURE__ */ k(oe, { children: [
38361
- /* @__PURE__ */ s("div", { className: "flex justify-end", children: /* @__PURE__ */ k(qt, { ref: y, children: [
38361
+ /* @__PURE__ */ s("div", { className: "flex justify-end", children: /* @__PURE__ */ k(Xt, { ref: y, children: [
38362
38362
  /* @__PURE__ */ k(
38363
38363
  _e,
38364
38364
  {
@@ -38380,7 +38380,7 @@ function lDe({
38380
38380
  ]
38381
38381
  }
38382
38382
  ),
38383
- /* @__PURE__ */ s(Xt, { children: /* @__PURE__ */ s(
38383
+ /* @__PURE__ */ s(Bt, { children: /* @__PURE__ */ s(
38384
38384
  Lr,
38385
38385
  {
38386
38386
  columns: [
@@ -39629,7 +39629,7 @@ function _we() {
39629
39629
  } };
39630
39630
  }
39631
39631
  const mDe = () => {
39632
- const { projectId: e } = ga(), a = J(Me).shell.navigation, [t, n] = re("");
39632
+ const { projectId: e } = Ot(), a = J(Me).shell.navigation, [t, n] = re("");
39633
39633
  return pe(() => {
39634
39634
  a.getURL("public-cloud", `#/pci/projects/${e}`, {}).then((o) => {
39635
39635
  n(o);
@@ -39759,7 +39759,7 @@ const lPe = 2, uPe = 1 / 1e8, mPe = ["SG", "ASIA", "AU", "IN"], _Pe = [
39759
39759
  "TN"
39760
39760
  ], pPe = ["DE", "FI", "SN"];
39761
39761
  function hPe() {
39762
- const { i18n: e, t: a } = L("pci-catalog-price"), { me: t } = ha(), n = (u, m) => {
39762
+ const { i18n: e, t: a } = L("pci-catalog-price"), { me: t } = fa(), n = (u, m) => {
39763
39763
  var b, v;
39764
39764
  if (!t) return "";
39765
39765
  const p = {
@@ -39818,7 +39818,16 @@ function hPe() {
39818
39818
  }
39819
39819
  };
39820
39820
  }
39821
- function _De(e) {
39821
+ const _De = (...e) => {
39822
+ const a = Ot();
39823
+ return e.reduce((t, n) => {
39824
+ const o = a[n];
39825
+ if (o === void 0)
39826
+ throw new Error(`Missing "${n}" in URL.`);
39827
+ return t[n] = o, t;
39828
+ }, {});
39829
+ };
39830
+ function pDe(e) {
39822
39831
  const a = J(Ea);
39823
39832
  return Z(() => ({ ...a || {}, ...e || {} }), [a, e]);
39824
39833
  }
@@ -39876,9 +39885,9 @@ function ao({
39876
39885
  isLocalZone: e
39877
39886
  }) {
39878
39887
  const { t: a } = L("pci-flavors"), { ovhSubsidiary: t } = J(Me).environment.getUser(), n = (o) => to[o][t] || to[o].DEFAULT;
39879
- return /* @__PURE__ */ k(qt, { children: [
39888
+ return /* @__PURE__ */ k(Xt, { children: [
39880
39889
  /* @__PURE__ */ s("span", { slot: "popover-trigger", children: /* @__PURE__ */ k(
39881
- Ot,
39890
+ qt,
39882
39891
  {
39883
39892
  color: e ? w.error : w.primary,
39884
39893
  size: va.sm,
@@ -39905,7 +39914,7 @@ function ao({
39905
39914
  ]
39906
39915
  }
39907
39916
  ) }),
39908
- /* @__PURE__ */ k(Xt, { children: [
39917
+ /* @__PURE__ */ k(Bt, { children: [
39909
39918
  /* @__PURE__ */ s(
39910
39919
  T,
39911
39920
  {
@@ -39964,7 +39973,7 @@ function yPe({
39964
39973
  }
39965
39974
  ),
39966
39975
  o && /* @__PURE__ */ s(
39967
- Ot,
39976
+ qt,
39968
39977
  {
39969
39978
  color: w.info,
39970
39979
  size: va.sm,
@@ -40373,7 +40382,7 @@ function oo() {
40373
40382
  f.addResources("de_DE", "pci-flavors", KPe), f.addResources("en_GB", "pci-flavors", z1e), f.addResources("es_ES", "pci-flavors", ake), f.addResources("fr_CA", "pci-flavors", Nke), f.addResources("fr_FR", "pci-flavors", cMe), f.addResources("it_IT", "pci-flavors", LMe), f.addResources("pl_PL", "pci-flavors", pze), f.addResources("pt_PT", "pci-flavors", qze);
40374
40383
  }
40375
40384
  f.isInitialized ? oo() : f.on("initialized", oo);
40376
- function pDe({
40385
+ function hDe({
40377
40386
  projectId: e,
40378
40387
  region: a,
40379
40388
  onSelect: t
@@ -40472,7 +40481,7 @@ function io() {
40472
40481
  f.addResources("de_DE", "pci-quantity-selector", Yze), f.addResources("en_GB", "pci-quantity-selector", Jze), f.addResources("es_ES", "pci-quantity-selector", aje), f.addResources("fr_CA", "pci-quantity-selector", rje), f.addResources("fr_FR", "pci-quantity-selector", lje), f.addResources("it_IT", "pci-quantity-selector", pje), f.addResources("pl_PL", "pci-quantity-selector", bje), f.addResources("pt_PT", "pci-quantity-selector", $je);
40473
40482
  }
40474
40483
  f.isInitialized ? io() : f.on("initialized", io);
40475
- function hDe({
40484
+ function fDe({
40476
40485
  label: e,
40477
40486
  labelHelpText: a,
40478
40487
  description: t,
@@ -40500,7 +40509,7 @@ function hDe({
40500
40509
  children: e
40501
40510
  }
40502
40511
  ),
40503
- a && /* @__PURE__ */ k(qt, { className: "w-4 h-4", children: [
40512
+ a && /* @__PURE__ */ k(Xt, { className: "w-4 h-4", children: [
40504
40513
  /* @__PURE__ */ s(
40505
40514
  ge,
40506
40515
  {
@@ -40511,7 +40520,7 @@ function hDe({
40511
40520
  color: w.text
40512
40521
  }
40513
40522
  ),
40514
- /* @__PURE__ */ s(Xt, { children: a })
40523
+ /* @__PURE__ */ s(Bt, { children: a })
40515
40524
  ] })
40516
40525
  ] }),
40517
40526
  t && /* @__PURE__ */ s(
@@ -40584,16 +40593,17 @@ function hDe({
40584
40593
  y.nan && /* @__PURE__ */ s(T, { color: w.error, slot: "helper", children: b("common_field_error_number") })
40585
40594
  ] });
40586
40595
  }
40587
- function fDe({ pricing: e, options: a }) {
40596
+ function gDe({ pricing: e, options: a }) {
40588
40597
  const { getPriceDetails: t } = hPe(), n = Z(() => e && t(e, a), [
40589
40598
  e,
40590
- a
40599
+ a,
40600
+ t
40591
40601
  ]);
40592
40602
  return n ? /* @__PURE__ */ k("span", { children: [
40593
40603
  /* @__PURE__ */ s("span", { className: B((n == null ? void 0 : n.secondary) && "font-bold"), children: n == null ? void 0 : n.primary }),
40594
40604
  (n == null ? void 0 : n.secondary) && ` (${n == null ? void 0 : n.secondary})`,
40595
40605
  (n == null ? void 0 : n.interval) && ` / ${n == null ? void 0 : n.interval}`
40596
- ] }) : /* @__PURE__ */ s(ba, {});
40606
+ ] }) : /* @__PURE__ */ s(ba, { "data-testid": "loading" });
40597
40607
  }
40598
40608
  var Vt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
40599
40609
  function Pje(e) {
@@ -40604,9 +40614,9 @@ It.exports;
40604
40614
  (function(e, a) {
40605
40615
  var t = 200, n = "__lodash_hash_undefined__", o = 1, c = 2, u = 9007199254740991, m = "[object Arguments]", p = "[object Array]", h = "[object AsyncFunction]", b = "[object Boolean]", v = "[object Date]", y = "[object Error]", S = "[object Function]", N = "[object GeneratorFunction]", z = "[object Map]", W = "[object Number]", A = "[object Null]", x = "[object Object]", P = "[object Promise]", E = "[object Proxy]", M = "[object RegExp]", D = "[object Set]", U = "[object String]", ee = "[object Symbol]", je = "[object Undefined]", ae = "[object WeakMap]", Ha = "[object ArrayBuffer]", kt = "[object DataView]", ci = "[object Float32Array]", di = "[object Float64Array]", li = "[object Int8Array]", ui = "[object Int16Array]", mi = "[object Int32Array]", _i = "[object Uint8Array]", pi = "[object Uint8ClampedArray]", hi = "[object Uint16Array]", fi = "[object Uint32Array]", gi = /[\\^$.*+?()[\]{}|]/g, bi = /^\[object .+?Constructor\]$/, vi = /^(?:0|[1-9]\d*)$/, I = {};
40606
40616
  I[ci] = I[di] = I[li] = I[ui] = I[mi] = I[_i] = I[pi] = I[hi] = I[fi] = !0, I[m] = I[p] = I[Ha] = I[b] = I[kt] = I[v] = I[y] = I[S] = I[z] = I[W] = I[x] = I[M] = I[D] = I[U] = I[ae] = !1;
40607
- var Fa = typeof Vt == "object" && Vt && Vt.Object === Object && Vt, yi = typeof self == "object" && self && self.Object === Object && self, xe = Fa || yi || Function("return this")(), Ia = a && !a.nodeType && a, Ra = Ia && !0 && e && !e.nodeType && e, Oa = Ra && Ra.exports === Ia, Gt = Oa && Fa.process, qa = function() {
40617
+ var Fa = typeof Vt == "object" && Vt && Vt.Object === Object && Vt, yi = typeof self == "object" && self && self.Object === Object && self, xe = Fa || yi || Function("return this")(), Ia = a && !a.nodeType && a, Ra = Ia && !0 && e && !e.nodeType && e, Oa = Ra && Ra.exports === Ia, Yt = Oa && Fa.process, qa = function() {
40608
40618
  try {
40609
- return Gt && Gt.binding && Gt.binding("util");
40619
+ return Yt && Yt.binding && Yt.binding("util");
40610
40620
  } catch {
40611
40621
  }
40612
40622
  }(), Xa = qa && qa.isTypedArray;
@@ -40661,12 +40671,12 @@ It.exports;
40661
40671
  g[++_] = j;
40662
40672
  }), g;
40663
40673
  }
40664
- var Si = Array.prototype, Ni = Function.prototype, Mt = Object.prototype, Yt = xe["__core-js_shared__"], Ba = Ni.toString, We = Mt.hasOwnProperty, Ga = function() {
40665
- var l = /[^.]+$/.exec(Yt && Yt.keys && Yt.keys.IE_PROTO || "");
40674
+ var Si = Array.prototype, Ni = Function.prototype, Mt = Object.prototype, Zt = xe["__core-js_shared__"], Ba = Ni.toString, We = Mt.hasOwnProperty, Ga = function() {
40675
+ var l = /[^.]+$/.exec(Zt && Zt.keys && Zt.keys.IE_PROTO || "");
40666
40676
  return l ? "Symbol(src)_1." + l : "";
40667
40677
  }(), Ya = Mt.toString, Ai = RegExp(
40668
40678
  "^" + Ba.call(We).replace(gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
40669
- ), Za = Oa ? xe.Buffer : void 0, zt = xe.Symbol, Ka = xe.Uint8Array, Qa = Mt.propertyIsEnumerable, Ti = Si.splice, Oe = zt ? zt.toStringTag : void 0, Ja = Object.getOwnPropertySymbols, Ci = Za ? Za.isBuffer : void 0, Ei = xi(Object.keys, Object), Zt = at(xe, "DataView"), dt = at(xe, "Map"), Kt = at(xe, "Promise"), Qt = at(xe, "Set"), Jt = at(xe, "WeakMap"), lt = at(Object, "create"), Vi = Be(Zt), Li = Be(dt), Hi = Be(Kt), Fi = Be(Qt), Ii = Be(Jt), Ua = zt ? zt.prototype : void 0, Ut = Ua ? Ua.valueOf : void 0;
40679
+ ), Za = Oa ? xe.Buffer : void 0, zt = xe.Symbol, Ka = xe.Uint8Array, Qa = Mt.propertyIsEnumerable, Ti = Si.splice, Oe = zt ? zt.toStringTag : void 0, Ja = Object.getOwnPropertySymbols, Ci = Za ? Za.isBuffer : void 0, Ei = xi(Object.keys, Object), Kt = at(xe, "DataView"), dt = at(xe, "Map"), Qt = at(xe, "Promise"), Jt = at(xe, "Set"), Ut = at(xe, "WeakMap"), lt = at(Object, "create"), Vi = Be(Kt), Li = Be(dt), Hi = Be(Qt), Fi = Be(Jt), Ii = Be(Ut), Ua = zt ? zt.prototype : void 0, ea = Ua ? Ua.valueOf : void 0;
40670
40680
  function qe(l) {
40671
40681
  var _ = -1, g = l == null ? 0 : l.length;
40672
40682
  for (this.clear(); ++_ < g; ) {
@@ -40797,7 +40807,7 @@ It.exports;
40797
40807
  }
40798
40808
  Ce.prototype.clear = ir, Ce.prototype.delete = rr, Ce.prototype.get = sr, Ce.prototype.has = cr, Ce.prototype.set = dr;
40799
40809
  function lr(l, _) {
40800
- var g = Dt(l), j = !g && Mr(l), R = !g && !j && ea(l), C = !g && !j && !R && dn(l), G = g || j || R || C, te = G ? ki(l.length, String) : [], ne = te.length;
40810
+ var g = Dt(l), j = !g && Mr(l), R = !g && !j && ta(l), C = !g && !j && !R && dn(l), G = g || j || R || C, te = G ? ki(l.length, String) : [], ne = te.length;
40801
40811
  for (var X in l)
40802
40812
  We.call(l, X) && !(G && // Safari 9 has enumerable `arguments.length` in strict mode.
40803
40813
  (X == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -40829,8 +40839,8 @@ It.exports;
40829
40839
  var G = Dt(l), te = Dt(_), ne = G ? p : Ee(l), X = te ? p : Ee(_);
40830
40840
  ne = ne == m ? x : ne, X = X == m ? x : X;
40831
40841
  var ye = ne == x, ze = X == x, ie = ne == X;
40832
- if (ie && ea(l)) {
40833
- if (!ea(_))
40842
+ if (ie && ta(l)) {
40843
+ if (!ta(_))
40834
40844
  return !1;
40835
40845
  G = !0, ye = !1;
40836
40846
  }
@@ -40925,8 +40935,8 @@ It.exports;
40925
40935
  var ye = an(te(l), te(_), j, R, C, G);
40926
40936
  return G.delete(l), ye;
40927
40937
  case ee:
40928
- if (Ut)
40929
- return Ut.call(l) == Ut.call(_);
40938
+ if (ea)
40939
+ return ea.call(l) == ea.call(_);
40930
40940
  }
40931
40941
  return !1;
40932
40942
  }
@@ -40987,7 +40997,7 @@ It.exports;
40987
40997
  return Qa.call(l, _);
40988
40998
  }));
40989
40999
  } : xr, Ee = ut;
40990
- (Zt && Ee(new Zt(new ArrayBuffer(1))) != kt || dt && Ee(new dt()) != z || Kt && Ee(Kt.resolve()) != P || Qt && Ee(new Qt()) != D || Jt && Ee(new Jt()) != ae) && (Ee = function(l) {
41000
+ (Kt && Ee(new Kt(new ArrayBuffer(1))) != kt || dt && Ee(new dt()) != z || Qt && Ee(Qt.resolve()) != P || Jt && Ee(new Jt()) != D || Ut && Ee(new Ut()) != ae) && (Ee = function(l) {
40991
41001
  var _ = ut(l), g = _ == x ? l.constructor : void 0, j = g ? Be(g) : "";
40992
41002
  if (j)
40993
41003
  switch (j) {
@@ -41045,7 +41055,7 @@ It.exports;
41045
41055
  function zr(l) {
41046
41056
  return l != null && sn(l.length) && !rn(l);
41047
41057
  }
41048
- var ea = Ci || Dr;
41058
+ var ta = Ci || Dr;
41049
41059
  function jr(l, _) {
41050
41060
  return tn(l, _);
41051
41061
  }
@@ -41078,7 +41088,7 @@ It.exports;
41078
41088
  e.exports = jr;
41079
41089
  })(It, It.exports);
41080
41090
  var kje = It.exports;
41081
- const ca = /* @__PURE__ */ Pje(kje), Mje = ({
41091
+ const da = /* @__PURE__ */ Pje(kje), Mje = ({
41082
41092
  item: e,
41083
41093
  isItemSelected: a,
41084
41094
  isMobile: t
@@ -41155,7 +41165,7 @@ const ca = /* @__PURE__ */ Pje(kje), Mje = ({
41155
41165
  },
41156
41166
  children: n
41157
41167
  }
41158
- ), gDe = function e({
41168
+ ), bDe = function e({
41159
41169
  items: a = [],
41160
41170
  value: t,
41161
41171
  onInput: n,
@@ -41226,14 +41236,14 @@ const ca = /* @__PURE__ */ Pje(kje), Mje = ({
41226
41236
  stackSelected: rt(
41227
41237
  (M) => {
41228
41238
  var D;
41229
- return (D = P.itemsMap.get(M)) == null ? void 0 : D.some((U) => ca(U, v.value));
41239
+ return (D = P.itemsMap.get(M)) == null ? void 0 : D.some((U) => da(U, v.value));
41230
41240
  },
41231
41241
  [a, v.value]
41232
41242
  )
41233
41243
  }
41234
41244
  };
41235
41245
  return pe(() => {
41236
- t && !ca(t, v.value) && y((M) => ({ ...M, value: t }));
41246
+ t && !da(t, v.value) && y((M) => ({ ...M, value: t }));
41237
41247
  }, [t]), pe(() => {
41238
41248
  n && n(v.value);
41239
41249
  }, [v.value]), /* @__PURE__ */ s("section", { className: p, ...b, style: { maxWidth: "100%" }, children: !h || !m ? /* @__PURE__ */ k(oe, { children: [
@@ -41306,7 +41316,7 @@ const ca = /* @__PURE__ */ Pje(kje), Mje = ({
41306
41316
  S,
41307
41317
  {
41308
41318
  item: P.itemsMap.get(M)[0],
41309
- isItemSelected: ca(
41319
+ isItemSelected: da(
41310
41320
  v.value,
41311
41321
  P.itemsMap.get(M)[0]
41312
41322
  ),
@@ -41837,7 +41847,7 @@ const hxe = ({ children: e }) => {
41837
41847
  )
41838
41848
  }
41839
41849
  );
41840
- }, bDe = ({
41850
+ }, vDe = ({
41841
41851
  value: e,
41842
41852
  onChange: a,
41843
41853
  name: t,
@@ -41854,7 +41864,7 @@ const hxe = ({ children: e }) => {
41854
41864
  name: t
41855
41865
  }
41856
41866
  ) });
41857
- }, vDe = ({
41867
+ }, yDe = ({
41858
41868
  name: e,
41859
41869
  checked: a,
41860
41870
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -41914,9 +41924,9 @@ export {
41914
41924
  uDe as DeletionModal,
41915
41925
  gxe as DeploymentTilesInput,
41916
41926
  $o as FLAVOR_CATEGORIES,
41917
- bDe as FeaturedDeploymentTilesInput,
41927
+ vDe as FeaturedDeploymentTilesInput,
41918
41928
  ao as FlavorLocalzoneChip,
41919
- pDe as FlavorSelector,
41929
+ hDe as FlavorSelector,
41920
41930
  yPe as FlavorTile,
41921
41931
  gPe as GLOBAL_REGIONS_INFO_URL,
41922
41932
  $s as KUBE_FLAVOR_CATEGORIES,
@@ -41933,9 +41943,9 @@ export {
41933
41943
  aDe as PciFreeLocalZonesBanner,
41934
41944
  Aoe as PciModal,
41935
41945
  nDe as PciTrustedZoneBanner,
41936
- fDe as Pricing,
41937
- hDe as QuantitySelector,
41938
- vDe as RadioAdapter,
41946
+ gDe as Pricing,
41947
+ fDe as QuantitySelector,
41948
+ yDe as RadioAdapter,
41939
41949
  Dje as RadioField,
41940
41950
  WQ as Region3AZChip,
41941
41951
  xQ as RegionChipByType,
@@ -41944,7 +41954,7 @@ export {
41944
41954
  iDe as RegionSelector,
41945
41955
  rDe as RegionSummary,
41946
41956
  DQ as RegionTile,
41947
- gDe as ShapesInputComponent,
41957
+ bDe as ShapesInputComponent,
41948
41958
  lDe as StreamsList,
41949
41959
  Noe as TailLogs,
41950
41960
  Rje as TilesInput,
@@ -41988,7 +41998,7 @@ export {
41988
41998
  vK as useApplicationName,
41989
41999
  _we as useBytes,
41990
42000
  bs as useCatalog,
41991
- Bt as useDbaasLogs,
42001
+ Gt as useDbaasLogs,
41992
42002
  PK as useFeaturedDeploymentModes,
41993
42003
  ks as useFlavors,
41994
42004
  Hxe as useGetApiSchema,
@@ -42001,8 +42011,9 @@ export {
42001
42011
  hK as useLogsDetails,
42002
42012
  Ws as useMergedKubeFlavors,
42003
42013
  Xxe as useOperationProgress,
42004
- _De as usePCICommonContextFactory,
42014
+ pDe as usePCICommonContextFactory,
42005
42015
  wK as usePCIFeatureAvailability,
42016
+ _De as useParam,
42006
42017
  mDe as usePciUrl,
42007
42018
  hPe as usePricing,
42008
42019
  fs as useProductAvailability,