@epam/ai-dial-builder-form 1.2.0-dev.164 → 1.2.0-dev.173

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarPickerModal.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarPickerModal/AvatarPickerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,oHAAoH;AACpH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqFxD,CAAC"}
1
+ {"version":3,"file":"AvatarPickerModal.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarPickerModal/AvatarPickerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,oHAAoH;AACpH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAmFxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DeploymentCreationForm.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentCreationForm/DeploymentCreationForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAIzF,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA2GlE,CAAC"}
1
+ {"version":3,"file":"DeploymentCreationForm.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentCreationForm/DeploymentCreationForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAIzF,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA6GlE,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
1
  ._body_m2y60_2._body_m2y60_2{flex-direction:column}._sideColumn_m2y60_6._sideColumn_m2y60_6{width:100%}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:none}@media (width>=1280px){._body_m2y60_2._body_m2y60_2{flex-direction:row}._sideColumn_m2y60_6._sideColumn_m2y60_6{flex-shrink:0;width:400px}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:block}}._header_oo757_4._header_oo757_4{border-block-width:1px 0;padding-inline:16px}@media (width>=1280px){._header_oo757_4._header_oo757_4{border-block-width:0 1px;padding-inline:32px}}._header_oo757_4._header_oo757_4{border-color:var(--bfh-border,var(--stroke-tertiary,#e0e6f0))}._actions_oo757_20._actions_oo757_20{display:none}@media (width>=1280px){._actions_oo757_20._actions_oo757_20{display:flex}}._title_oo757_29{font-family:var(--bfh-font-family,inherit)}._container_k1awi_1{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa))}._footer_k1awi_10._footer_k1awi_10{display:flex}@media (width>=1280px){._footer_k1awi_10._footer_k1awi_10{display:none}}._footer_k1awi_10._footer_k1awi_10{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa));box-shadow:0 2px 12px 0 var(--shadow-xs-2,#161b2d08), 0 2px 6px 0 var(--shadow-xs-1,#2764d933)}._section_l1mnx_1{border-color:var(--es-border-color,var(--stroke-tertiary,#e0e6f0))}._title_l1mnx_5{color:var(--es-title-color,var(--text-primary,#161b2d))}._headerBorder_1kidu_1{border-bottom-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._footerBorder_1kidu_5{border-top-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._sidebarBorder_1kidu_9{border-inline-end-color:var(--el-sidebar-border-color,var(--stroke-tertiary,#e0e6f0))}._box_c9as8_1{background:var(--aa-box-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--aa-box-border,var(--stroke-tertiary,#e0e6f0))}._icon_c9as8_6{color:var(--aa-icon,var(--text-secondary,#57647a))}._caption_c9as8_10{color:var(--aa-caption,var(--text-tertiary,#848e9c))}
2
- /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.absolute{position:absolute}.sticky{position:sticky}.bottom-0{bottom:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-full{height:100%}.min-h-0{min-height:0}.w-16{width:4rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow-\[1\]{flex-grow:1}.grow-\[2\]{flex-grow:2}.basis-0{flex-basis:0px}.resize{resize:both}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:1280px){.desktop\:flex{display:flex}.desktop\:hidden{display:none}.desktop\:w-\[360px\]{width:360px}.desktop\:flex-1{flex:1 1 0%}.desktop\:shrink-0{flex-shrink:0}.desktop\:basis-40{flex-basis:10rem}.desktop\:flex-row{flex-direction:row}.desktop\:items-start{align-items:flex-start}.desktop\:overflow-hidden{overflow:hidden}.desktop\:overflow-y-auto{overflow-y:auto}.desktop\:border-e{border-inline-end-width:1px}.desktop\:px-8{padding-left:2rem;padding-right:2rem}.desktop\:pb-3{padding-bottom:.75rem}.desktop\:pt-3{padding-top:.75rem}}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>\*\]\:flex-1>*{flex:1 1 0%}
2
+ /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.absolute{position:absolute}.sticky{position:sticky}.bottom-0{bottom:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-full{height:100%}.min-h-0{min-height:0}.w-16{width:4rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow-\[1\]{flex-grow:1}.grow-\[2\]{flex-grow:2}.basis-0{flex-basis:0px}.resize{resize:both}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:1280px){.desktop\:flex{display:flex}.desktop\:hidden{display:none}.desktop\:w-\[400px\]{width:400px}.desktop\:flex-1{flex:1 1 0%}.desktop\:shrink-0{flex-shrink:0}.desktop\:basis-40{flex-basis:10rem}.desktop\:flex-row{flex-direction:row}.desktop\:items-start{align-items:flex-start}.desktop\:overflow-hidden{overflow:hidden}.desktop\:overflow-y-auto{overflow-y:auto}.desktop\:border-e{border-inline-end-width:1px}.desktop\:px-8{padding-left:2rem;padding-right:2rem}.desktop\:pb-3{padding-bottom:.75rem}.desktop\:pt-3{padding-top:.75rem}}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>\*\]\:flex-1>*{flex:1 1 0%}
package/index.js CHANGED
@@ -1,294 +1,294 @@
1
- import { RESIZABLE_TEXTAREA_CLASS_NAME as e, TAG_INPUT_TAG_CLASS_NAME as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
2
- import { ButtonAppearance as i, ButtonVariant as a, DIAL_ICON_SIZE as o, DIAL_KIT_ICON_STROKE as s, DangerIconButton as c, ElementSize as l, GhostIconButton as u, Input as d, Label as f, LinkButton as p, NeutralButton as m, Popup as h, PrimaryButton as g, Select as _, Spinner as v, TagInput as y, Textarea as b, TextareaResize as x } from "@epam/ai-dial-ui-kit";
3
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
4
- import { IconArrowLeft as ee, IconArrowNarrowLeft as T, IconPhoto as E, IconPlus as D, IconTrashX as te } from "@tabler/icons-react";
5
- import { Suspense as O, useCallback as k, useEffect as A, useId as j, useRef as M, useState as N } from "react";
1
+ import { ENTITY_DESCRIPTION_MAX_LENGTH as e, ENTITY_NAME_MAX_LENGTH as t, RESIZABLE_TEXTAREA_CLASS_NAME as n, TAG_INPUT_TAG_CLASS_NAME as r, buildCssVars as i, exceedsMaxLength as a, hasControlCharacters as o, mergeClasses as s } from "@epam/ai-dial-chat-shared";
2
+ import { ButtonAppearance as c, ButtonVariant as l, DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, DangerIconButton as f, ElementSize as p, GhostIconButton as m, Input as h, Label as g, LinkButton as _, NeutralButton as v, Popup as ee, PrimaryButton as y, Select as te, Spinner as b, TagInput as x, Textarea as ne, TextareaResize as S } from "@epam/ai-dial-ui-kit";
3
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
4
+ import { IconArrowLeft as E, IconArrowNarrowLeft as D, IconPhoto as O, IconPlus as k, IconTrashX as re } from "@tabler/icons-react";
5
+ import { Suspense as A, useCallback as j, useEffect as M, useId as N, useRef as P, useState as F } from "react";
6
6
  //#region src/components/BuilderFormActions/BuilderFormActions.tsx
7
- var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: s }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
7
+ var I = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(v, {
8
8
  label: e.cancelButtonLabel,
9
9
  onClick: t,
10
10
  disabled: r,
11
- className: s
12
- }), /* @__PURE__ */ C(g, {
11
+ className: o
12
+ }), /* @__PURE__ */ w(y, {
13
13
  label: e.submitButtonLabel,
14
14
  onClick: n,
15
15
  disabled: i,
16
16
  "aria-busy": a,
17
- className: s,
18
- iconBefore: a ? /* @__PURE__ */ C("span", {
17
+ className: o,
18
+ iconBefore: a ? /* @__PURE__ */ w("span", {
19
19
  "aria-hidden": !0,
20
- children: /* @__PURE__ */ C(v, { size: o.SM })
20
+ children: /* @__PURE__ */ w(b, { size: u.SM })
21
21
  }) : void 0
22
- })] }), F = {
22
+ })] }), L = {
23
23
  body: "_body_m2y60_2",
24
24
  sideColumn: "_sideColumn_m2y60_6",
25
25
  reservedColumn: "_reservedColumn_m2y60_10"
26
- }, I = r("flex flex-col", F.sideColumn), L = ({ left: e, children: t, metadata: n, layout: i }) => {
27
- let a = e != null && n == null && i?.reserveEndColumn !== !1, o = i ? {
28
- flex: `0 1 ${i.sideColumnWidth ?? "400px"}`,
26
+ }, R = s("flex flex-col", L.sideColumn), z = ({ left: e, children: t, metadata: n, layout: r }) => {
27
+ let i = e != null && n == null && r?.reserveEndColumn !== !1, a = r ? {
28
+ flex: `0 1 ${r.sideColumnWidth ?? "400px"}`,
29
29
  width: "100%",
30
- minWidth: `min(100%, ${i.sideColumnWidth ?? "400px"})`,
30
+ minWidth: `min(100%, ${r.sideColumnWidth ?? "400px"})`,
31
31
  maxWidth: "100%"
32
- } : void 0, s = i ? {
32
+ } : void 0, o = r ? {
33
33
  flexDirection: "row",
34
34
  flexWrap: "wrap",
35
- columnGap: i.columnGap ?? "0px",
35
+ columnGap: r.columnGap ?? "0px",
36
36
  alignItems: "stretch"
37
37
  } : void 0;
38
- return /* @__PURE__ */ w("div", {
39
- className: r("flex min-w-0 flex-1", F.body),
40
- style: s,
38
+ return /* @__PURE__ */ T("div", {
39
+ className: s("flex min-w-0 flex-1", L.body),
40
+ style: o,
41
41
  children: [
42
- e != null && /* @__PURE__ */ C("div", {
43
- className: I,
44
- style: o,
42
+ e != null && /* @__PURE__ */ w("div", {
43
+ className: R,
44
+ style: a,
45
45
  children: e
46
46
  }),
47
- /* @__PURE__ */ C("div", {
47
+ /* @__PURE__ */ w("div", {
48
48
  className: "flex w-full min-w-0 flex-1 flex-col",
49
- style: i ? {
49
+ style: r ? {
50
50
  flex: "1 1 320px",
51
51
  minWidth: "min(100%, 320px)"
52
52
  } : void 0,
53
53
  children: t
54
54
  }),
55
- n != null && /* @__PURE__ */ C("div", {
56
- className: I,
57
- style: o,
55
+ n != null && /* @__PURE__ */ w("div", {
56
+ className: R,
57
+ style: a,
58
58
  children: n
59
59
  }),
60
- a && /* @__PURE__ */ C("div", {
60
+ i && /* @__PURE__ */ w("div", {
61
61
  "aria-hidden": !0,
62
- style: o,
63
- className: r(F.reservedColumn, F.sideColumn)
62
+ style: a,
63
+ className: s(L.reservedColumn, L.sideColumn)
64
64
  })
65
65
  ]
66
66
  });
67
- }, R = {
67
+ }, B = {
68
68
  header: "_header_oo757_4",
69
69
  actions: "_actions_oo757_20",
70
70
  title: "_title_oo757_29"
71
- }, z = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: c = !1, isSubmitDisabled: l = !1, isSubmitting: d = !1, backIcon: f, styles: p }) => {
72
- let { colors: m, typography: h } = p ?? {}, g = h?.fontClassName ?? "dial-h1-text", _ = !!h?.fontClassName;
73
- return /* @__PURE__ */ w("div", {
74
- style: n({
75
- "--bfh-border": m?.borderColor,
71
+ }, V = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
72
+ let { colors: p, typography: h } = f ?? {}, g = h?.fontClassName ?? "dial-h1-text", _ = !!h?.fontClassName;
73
+ return /* @__PURE__ */ T("div", {
74
+ style: i({
75
+ "--bfh-border": p?.borderColor,
76
76
  "--bfh-font-family": _ ? void 0 : h?.fontFamily
77
77
  }),
78
- className: r("flex h-16 items-center justify-between gap-6", R.header),
78
+ className: s("flex h-16 items-center justify-between gap-6", B.header),
79
79
  children: [
80
- /* @__PURE__ */ w("div", {
80
+ /* @__PURE__ */ T("div", {
81
81
  className: "flex min-w-0 flex-1 items-center gap-2",
82
- children: [/* @__PURE__ */ C(u, {
83
- icon: f === void 0 ? /* @__PURE__ */ C(ee, {
84
- size: o.LG,
82
+ children: [/* @__PURE__ */ w(m, {
83
+ icon: l === void 0 ? /* @__PURE__ */ w(E, {
84
+ size: u.LG,
85
85
  className: "rtl:scale-x-[-1]",
86
86
  "aria-hidden": !0,
87
- stroke: s
88
- }) : f,
87
+ stroke: d
88
+ }) : l,
89
89
  "aria-label": e.backButtonLabel,
90
90
  onClick: t
91
- }), /* @__PURE__ */ C("h1", {
92
- className: r("truncate", R.title, g),
91
+ }), /* @__PURE__ */ w("h1", {
92
+ className: s("truncate", B.title, g),
93
93
  children: e.title
94
94
  })]
95
95
  }),
96
- /* @__PURE__ */ C("div", {
97
- className: r("items-center gap-2", R.actions),
98
- children: /* @__PURE__ */ C(P, {
96
+ /* @__PURE__ */ w("div", {
97
+ className: s("items-center gap-2", B.actions),
98
+ children: /* @__PURE__ */ w(I, {
99
99
  labels: e,
100
- onCancel: i,
101
- onSubmit: a,
102
- isCancelDisabled: c,
103
- isSubmitDisabled: l,
104
- isSubmitting: d
100
+ onCancel: n,
101
+ onSubmit: r,
102
+ isCancelDisabled: a,
103
+ isSubmitDisabled: o,
104
+ isSubmitting: c
105
105
  })
106
106
  }),
107
- /* @__PURE__ */ C("span", {
107
+ /* @__PURE__ */ w("span", {
108
108
  role: "status",
109
109
  "aria-live": "polite",
110
110
  className: "sr-only",
111
- children: d ? e.submittingLabel ?? "Submitting" : ""
111
+ children: c ? e.submittingLabel ?? "Submitting" : ""
112
112
  })
113
113
  ]
114
114
  });
115
- }, B = {
115
+ }, H = {
116
116
  container: "_container_k1awi_1",
117
117
  footer: "_footer_k1awi_10"
118
- }, V = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: o = !1, isSubmitDisabled: s = !1, isSubmitting: c = !1, backIcon: l, className: u, left: d, children: f, metadata: p, layout: m, styles: h }) => {
118
+ }, U = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, className: u, left: d, children: f, metadata: p, layout: m, styles: h }) => {
119
119
  let { colors: g, header: _, cssVars: v } = h ?? {};
120
- return /* @__PURE__ */ w("div", {
120
+ return /* @__PURE__ */ T("div", {
121
121
  style: {
122
- ...n({ "--bfc-bg": g?.background }),
122
+ ...i({ "--bfc-bg": g?.background }),
123
123
  ...v
124
124
  },
125
- className: r("flex h-full w-full flex-col overflow-y-auto", u, B.container),
125
+ className: s("flex h-full w-full flex-col overflow-y-auto", u, H.container),
126
126
  children: [
127
- /* @__PURE__ */ C(z, {
127
+ /* @__PURE__ */ w(V, {
128
128
  labels: e,
129
129
  onBack: t,
130
- onCancel: i,
131
- onSubmit: a,
132
- isCancelDisabled: o,
133
- isSubmitDisabled: s,
130
+ onCancel: n,
131
+ onSubmit: r,
132
+ isCancelDisabled: a,
133
+ isSubmitDisabled: o,
134
134
  isSubmitting: c,
135
135
  backIcon: l,
136
136
  styles: _
137
137
  }),
138
- /* @__PURE__ */ C(L, {
138
+ /* @__PURE__ */ w(z, {
139
139
  left: d,
140
140
  metadata: p,
141
141
  layout: m,
142
142
  children: f
143
143
  }),
144
- /* @__PURE__ */ C("div", {
145
- className: r("sticky bottom-0 z-10 items-center gap-2 p-3", B.footer),
146
- children: /* @__PURE__ */ C(P, {
144
+ /* @__PURE__ */ w("div", {
145
+ className: s("sticky bottom-0 z-10 items-center gap-2 p-3", H.footer),
146
+ children: /* @__PURE__ */ w(I, {
147
147
  labels: e,
148
- onCancel: i,
149
- onSubmit: a,
150
- isCancelDisabled: o,
151
- isSubmitDisabled: s,
148
+ onCancel: n,
149
+ onSubmit: r,
150
+ isCancelDisabled: a,
151
+ isSubmitDisabled: o,
152
152
  isSubmitting: c,
153
153
  buttonClassName: "flex-1"
154
154
  })
155
155
  })
156
156
  ]
157
157
  });
158
- }, H = {
158
+ }, W = {
159
159
  layout: "dial-builder-form-layout",
160
160
  section: "dial-builder-form-section"
161
- }, U = {
161
+ }, G = {
162
162
  section: "_section_l1mnx_1",
163
163
  title: "_title_l1mnx_5"
164
- }, W = ({ title: e, children: t, styles: i, className: a }) => {
165
- let o = n({
166
- "--es-border-color": i?.colors?.borderColor,
167
- "--es-title-color": i?.colors?.titleColor
164
+ }, K = ({ title: e, children: t, styles: n, className: r }) => {
165
+ let a = i({
166
+ "--es-border-color": n?.colors?.borderColor,
167
+ "--es-title-color": n?.colors?.titleColor
168
168
  });
169
- return /* @__PURE__ */ w("section", {
170
- className: r("flex flex-col gap-4 rounded border p-6", U.section, a, H.section),
171
- style: o,
172
- children: [e != null && /* @__PURE__ */ C("h2", {
173
- className: r("dial-h3-text", U.title),
169
+ return /* @__PURE__ */ T("section", {
170
+ className: s("flex flex-col gap-4 rounded border p-6", G.section, r, W.section),
171
+ style: a,
172
+ children: [e != null && /* @__PURE__ */ w("h2", {
173
+ className: s("dial-h3-text", G.title),
174
174
  children: e
175
175
  }), t]
176
176
  });
177
- }, G = {
177
+ }, q = {
178
178
  headerBorder: "_headerBorder_1kidu_1",
179
179
  footerBorder: "_footerBorder_1kidu_5",
180
180
  sidebarBorder: "_sidebarBorder_1kidu_9"
181
- }, K = ({ title: e, onBack: t, backAriaLabel: i = "Back", actions: a, leftContent: c, rightContent: l, isSaving: d = !1, labels: f, styles: p, dir: m }) => {
182
- let h = j(), g = d ? f?.savingStatusLabel ?? "Saving" : "", _ = n({
183
- "--el-header-border-color": p?.colors?.headerBorderColor,
184
- "--el-sidebar-border-color": p?.colors?.sidebarBorderColor
181
+ }, J = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: a, rightContent: o, isSaving: c = !1, labels: l, styles: f, dir: p }) => {
182
+ let h = N(), g = c ? l?.savingStatusLabel ?? "Saving" : "", _ = i({
183
+ "--el-header-border-color": f?.colors?.headerBorderColor,
184
+ "--el-sidebar-border-color": f?.colors?.sidebarBorderColor
185
185
  });
186
- return /* @__PURE__ */ w("div", {
187
- dir: m,
188
- className: r("flex min-h-0 flex-1 flex-col", H.layout),
186
+ return /* @__PURE__ */ T("div", {
187
+ dir: p,
188
+ className: s("flex min-h-0 flex-1 flex-col", W.layout),
189
189
  style: _,
190
190
  children: [
191
- /* @__PURE__ */ C("span", {
191
+ /* @__PURE__ */ w("span", {
192
192
  role: "status",
193
193
  "aria-live": "polite",
194
194
  className: "sr-only",
195
195
  id: h,
196
196
  children: g
197
197
  }),
198
- /* @__PURE__ */ w("div", {
199
- className: r("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", G.headerBorder),
200
- children: [/* @__PURE__ */ w("div", {
198
+ /* @__PURE__ */ T("div", {
199
+ className: s("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", q.headerBorder),
200
+ children: [/* @__PURE__ */ T("div", {
201
201
  className: "flex min-w-0 flex-1 items-center gap-2",
202
- children: [/* @__PURE__ */ C(u, {
203
- icon: /* @__PURE__ */ C(T, {
204
- size: o.LG,
205
- stroke: s,
202
+ children: [/* @__PURE__ */ w(m, {
203
+ icon: /* @__PURE__ */ w(D, {
204
+ size: u.LG,
205
+ stroke: d,
206
206
  "aria-hidden": !0,
207
207
  className: "rtl:scale-x-[-1]"
208
208
  }),
209
- "aria-label": i,
209
+ "aria-label": n,
210
210
  onClick: t
211
- }), /* @__PURE__ */ C("h1", {
211
+ }), /* @__PURE__ */ w("h1", {
212
212
  className: "dial-h2-text min-w-0 truncate",
213
213
  children: e
214
214
  })]
215
- }), a != null && /* @__PURE__ */ C("div", {
215
+ }), r != null && /* @__PURE__ */ w("div", {
216
216
  className: "hidden shrink-0 items-center gap-2 desktop:flex",
217
- children: a
217
+ children: r
218
218
  })]
219
219
  }),
220
- /* @__PURE__ */ w("div", {
220
+ /* @__PURE__ */ T("div", {
221
221
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
222
- children: [/* @__PURE__ */ C("div", {
223
- className: r(l == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", l == null ? void 0 : G.sidebarBorder),
224
- children: c
225
- }), l != null && /* @__PURE__ */ C("div", {
222
+ children: [/* @__PURE__ */ w("div", {
223
+ className: s(o == null ? "desktop:flex-1" : "desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", o == null ? void 0 : q.sidebarBorder),
224
+ children: a
225
+ }), o != null && /* @__PURE__ */ w("div", {
226
226
  className: "desktop:flex-1 desktop:overflow-y-auto",
227
- children: l
227
+ children: o
228
228
  })]
229
229
  }),
230
- a != null && /* @__PURE__ */ C("div", {
231
- className: r("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", G.footerBorder),
232
- children: a
230
+ r != null && /* @__PURE__ */ w("div", {
231
+ className: s("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", q.footerBorder),
232
+ children: r
233
233
  })
234
234
  ]
235
235
  });
236
- }, q = {
236
+ }, Y = {
237
237
  box: "_box_c9as8_1",
238
238
  icon: "_icon_c9as8_6",
239
239
  caption: "_caption_c9as8_10"
240
- }, J = ({ label: e, avatarUrl: t, avatarAlt: i = "", addAvatarLabel: a = "Add avatar", captionText: c = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: u, styles: d, className: m }) => {
241
- let h = n({
242
- "--aa-box-bg": d?.colors?.boxBackgroundColor,
243
- "--aa-box-border": d?.colors?.boxBorderColor,
244
- "--aa-icon": d?.colors?.placeholderIconColor,
245
- "--aa-caption": d?.colors?.captionColor
240
+ }, X = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, styles: c, className: l }) => {
241
+ let f = i({
242
+ "--aa-box-bg": c?.colors?.boxBackgroundColor,
243
+ "--aa-box-border": c?.colors?.boxBorderColor,
244
+ "--aa-icon": c?.colors?.placeholderIconColor,
245
+ "--aa-caption": c?.colors?.captionColor
246
246
  });
247
- return /* @__PURE__ */ w("div", {
248
- className: r("flex flex-col gap-2", m),
249
- style: h,
250
- children: [/* @__PURE__ */ C(f, { label: e }), /* @__PURE__ */ w("div", {
247
+ return /* @__PURE__ */ T("div", {
248
+ className: s("flex flex-col gap-2", l),
249
+ style: f,
250
+ children: [/* @__PURE__ */ w(g, { label: e }), /* @__PURE__ */ T("div", {
251
251
  className: "flex items-start gap-3",
252
- children: [/* @__PURE__ */ C("div", {
253
- className: r("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", q.box),
254
- children: t ? /* @__PURE__ */ C("img", {
252
+ children: [/* @__PURE__ */ w("div", {
253
+ className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Y.box),
254
+ children: t ? /* @__PURE__ */ w("img", {
255
255
  src: t,
256
- alt: i,
256
+ alt: n,
257
257
  className: "h-16 w-16 object-cover"
258
- }) : /* @__PURE__ */ C(E, {
259
- size: o.LG,
260
- stroke: s,
258
+ }) : /* @__PURE__ */ w(O, {
259
+ size: u.LG,
260
+ stroke: d,
261
261
  "aria-hidden": !0,
262
- className: q.icon
262
+ className: Y.icon
263
263
  })
264
- }), /* @__PURE__ */ w("div", {
264
+ }), /* @__PURE__ */ T("div", {
265
265
  className: "flex flex-col gap-3",
266
- children: [/* @__PURE__ */ C(p, {
267
- size: l.Small,
268
- iconBefore: /* @__PURE__ */ C(D, {
269
- size: o.SM,
270
- stroke: s,
266
+ children: [/* @__PURE__ */ w(_, {
267
+ size: p.Small,
268
+ iconBefore: /* @__PURE__ */ w(k, {
269
+ size: u.SM,
270
+ stroke: d,
271
271
  "aria-hidden": !0
272
272
  }),
273
273
  className: "w-fit",
274
- label: a,
275
- onClick: u
276
- }), /* @__PURE__ */ C("span", {
277
- className: r("dial-tiny-text", q.caption),
278
- children: c
274
+ label: r,
275
+ onClick: o
276
+ }), /* @__PURE__ */ w("span", {
277
+ className: s("dial-tiny-text", Y.caption),
278
+ children: a
279
279
  })]
280
280
  })]
281
281
  })]
282
282
  });
283
- }, Y = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
284
- let c = k((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = k((e) => /* @__PURE__ */ C("div", {
283
+ }, ie = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
284
+ let c = j((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = j((e) => /* @__PURE__ */ w("div", {
285
285
  className: "dial-small-text px-6 py-3",
286
- children: /* @__PURE__ */ C("p", {
286
+ children: /* @__PURE__ */ w("p", {
287
287
  className: "mb-3 text-secondary",
288
- children: e.length === 1 ? /* @__PURE__ */ w(S, { children: [
288
+ children: e.length === 1 ? /* @__PURE__ */ T(C, { children: [
289
289
  s.deleteConfirmSingleText,
290
290
  " ",
291
- /* @__PURE__ */ w("span", {
291
+ /* @__PURE__ */ T("span", {
292
292
  className: "break-words text-primary",
293
293
  children: [
294
294
  "\"",
@@ -296,10 +296,10 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
296
296
  "\"?"
297
297
  ]
298
298
  })
299
- ] }) : /* @__PURE__ */ w(S, { children: [
299
+ ] }) : /* @__PURE__ */ T(C, { children: [
300
300
  s.deleteConfirmMultipleText,
301
301
  " ",
302
- /* @__PURE__ */ w("span", {
302
+ /* @__PURE__ */ T("span", {
303
303
  className: "text-primary",
304
304
  children: [
305
305
  e.length,
@@ -314,9 +314,9 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
314
314
  s.deleteConfirmMultipleText,
315
315
  s.deleteConfirmItemsLabel
316
316
  ]);
317
- return /* @__PURE__ */ C(O, {
317
+ return /* @__PURE__ */ w(A, {
318
318
  fallback: null,
319
- children: e && /* @__PURE__ */ C(i, {
319
+ children: e && /* @__PURE__ */ w(i, {
320
320
  isOpen: e,
321
321
  onClose: t,
322
322
  onAttach: n,
@@ -344,239 +344,239 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
344
344
  deleteConfirmTitle: c,
345
345
  deleteConfirmBody: l,
346
346
  deleteConfirmLabel: s.deleteConfirmLabel,
347
- deleteCancelLabel: s.deleteCancelLabel,
348
- uploadProgressTitle: s.uploadProgressTitle,
349
- cancelLabel: s.cancelLabel
347
+ deleteCancelLabel: s.deleteCancelLabel
350
348
  })
351
349
  });
352
- }, X = (e, t, n) => ({
350
+ }, Z = (e, t, n) => ({
353
351
  id: e,
354
352
  language: n.find((e) => !t.has(e.code))?.code ?? "",
355
353
  name: "",
356
354
  description: ""
357
- }), Z = ({ value: t, onChange: n, availableLocaleOptions: u = [], labels: f, className: m, summaryClassName: g = "dial-body-text text-secondary", rowLabelClassName: v = "dial-tiny-lead-text text-secondary" }) => {
358
- let { summaryLabel: y, addLabel: S, editLabel: ee, popupTitle: T, addLocaleLabel: E, localeRowLabel: O = "Locale", languageLabel: k, nameLabel: j, namePlaceholder: P, descriptionLabel: F, descriptionPlaceholder: I, deleteAriaLabel: L, cancelLabel: R = "Cancel", saveLabel: z = "Save" } = f, [B, V] = N(!1), [H, U] = N([]), W = M(0);
359
- A(() => {
360
- B && U(t.length > 0 ? t : [X(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), u)]);
355
+ }), Q = ({ value: e, onChange: t, availableLocaleOptions: r = [], labels: i, className: a, summaryClassName: o = "dial-body-text text-secondary", rowLabelClassName: m = "dial-tiny-lead-text text-secondary" }) => {
356
+ let { summaryLabel: g, addLabel: v, editLabel: y, popupTitle: b, addLocaleLabel: x, localeRowLabel: C = "Locale", languageLabel: E, nameLabel: D, namePlaceholder: O, descriptionLabel: A, descriptionPlaceholder: j, deleteAriaLabel: N, cancelLabel: I = "Cancel", saveLabel: L = "Save" } = i, [R, z] = F(!1), [B, V] = F([]), H = P(0);
357
+ M(() => {
358
+ R && V(e.length > 0 ? e : [Z(`locale-row-${++H.current}`, /* @__PURE__ */ new Set(), r)]);
361
359
  }, [
362
- B,
363
- t,
364
- u
360
+ R,
361
+ e,
362
+ r
365
363
  ]);
366
- let G = () => V(!0), K = () => V(!1), q = () => {
367
- n(H.filter((e) => e.language && e.name)), V(!1);
368
- }, J = () => {
369
- let e = new Set(H.map((e) => e.language).filter(Boolean));
370
- U((t) => [...t, X(`locale-row-${++W.current}`, e, u)]);
371
- }, Y = (e, t) => {
372
- U((n) => n.map((n) => n.id === e ? {
364
+ let U = () => z(!0), W = () => z(!1), G = () => {
365
+ t(B.filter((e) => e.language && e.name)), z(!1);
366
+ }, K = () => {
367
+ let e = new Set(B.map((e) => e.language).filter(Boolean));
368
+ V((t) => [...t, Z(`locale-row-${++H.current}`, e, r)]);
369
+ }, q = (e, t) => {
370
+ V((n) => n.map((n) => n.id === e ? {
373
371
  ...n,
374
372
  ...t
375
373
  } : n));
376
- }, Z = (e) => {
377
- U((t) => t.filter((t) => t.id !== e));
378
- }, Q = (e) => u.find((t) => t.code === e)?.label ?? e.toUpperCase(), $ = H.some((e) => !e.language || !e.name);
379
- return u.length === 0 ? null : /* @__PURE__ */ w("div", {
380
- className: r("flex items-center gap-2", m),
374
+ }, J = (e) => {
375
+ V((t) => t.filter((t) => t.id !== e));
376
+ }, Y = (e) => r.find((t) => t.code === e)?.label ?? e.toUpperCase(), X = B.some((e) => !e.language || !e.name);
377
+ return r.length === 0 ? null : /* @__PURE__ */ T("div", {
378
+ className: s("flex items-center gap-2", a),
381
379
  children: [
382
- t.length > 0 && /* @__PURE__ */ C("span", {
383
- className: g,
384
- children: `${y}: ${t.map((e) => `[${Q(e.language)}]`).join(", ")}`
380
+ e.length > 0 && /* @__PURE__ */ w("span", {
381
+ className: o,
382
+ children: `${g}: ${e.map((e) => `[${Y(e.language)}]`).join(", ")}`
385
383
  }),
386
- /* @__PURE__ */ C(p, {
387
- label: t.length > 0 ? ee : S,
388
- iconBefore: /* @__PURE__ */ C(D, {
389
- size: o.SM,
384
+ /* @__PURE__ */ w(_, {
385
+ label: e.length > 0 ? y : v,
386
+ iconBefore: /* @__PURE__ */ w(k, {
387
+ size: u.SM,
390
388
  "aria-hidden": !0,
391
- stroke: s
389
+ stroke: d
392
390
  }),
393
391
  className: "!px-0",
394
- onClick: G
392
+ onClick: U
395
393
  }),
396
- /* @__PURE__ */ C(h, {
397
- open: B,
398
- header: T,
399
- onClose: K,
394
+ /* @__PURE__ */ w(ee, {
395
+ open: R,
396
+ header: b,
397
+ onClose: W,
400
398
  mainButtons: [{
401
- label: R,
402
- onClick: K
399
+ label: I,
400
+ onClick: W
403
401
  }, {
404
- label: z,
405
- variant: a.Primary,
406
- disabled: $,
407
- onClick: q
402
+ label: L,
403
+ variant: l.Primary,
404
+ disabled: X,
405
+ onClick: G
408
406
  }],
409
- children: /* @__PURE__ */ w("div", {
407
+ children: /* @__PURE__ */ T("div", {
410
408
  className: "flex flex-col gap-8 px-6 py-3",
411
- children: [H.map((t, n) => {
412
- let r = new Set(H.filter((e) => e.id !== t.id).map((e) => e.language).filter(Boolean));
413
- return /* @__PURE__ */ w("div", {
409
+ children: [B.map((e, t) => {
410
+ let i = new Set(B.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
411
+ return /* @__PURE__ */ T("div", {
414
412
  className: "flex flex-col gap-2",
415
- children: [/* @__PURE__ */ w("div", {
413
+ children: [/* @__PURE__ */ T("div", {
416
414
  className: "flex items-center justify-between",
417
- children: [/* @__PURE__ */ w("span", {
418
- className: v,
415
+ children: [/* @__PURE__ */ T("span", {
416
+ className: m,
419
417
  children: [
420
- O,
418
+ C,
421
419
  " ",
422
- n + 1
420
+ t + 1
423
421
  ]
424
- }), /* @__PURE__ */ C(c, {
425
- appearance: i.Ghost,
426
- size: l.Small,
427
- icon: /* @__PURE__ */ C(te, {
428
- size: o.SM,
422
+ }), /* @__PURE__ */ w(f, {
423
+ appearance: c.Ghost,
424
+ size: p.Small,
425
+ icon: /* @__PURE__ */ w(re, {
426
+ size: u.SM,
429
427
  "aria-hidden": !0,
430
- stroke: s
428
+ stroke: d
431
429
  }),
432
- "aria-label": `${L} ${n + 1}`,
433
- onClick: () => Z(t.id)
430
+ "aria-label": `${N} ${t + 1}`,
431
+ onClick: () => J(e.id)
434
432
  })]
435
- }), /* @__PURE__ */ w("div", {
433
+ }), /* @__PURE__ */ T("div", {
436
434
  role: "group",
437
- "aria-label": `${O} ${n + 1}`,
435
+ "aria-label": `${C} ${t + 1}`,
438
436
  className: "flex flex-col gap-5",
439
- children: [/* @__PURE__ */ w("div", {
437
+ children: [/* @__PURE__ */ T("div", {
440
438
  className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
441
- children: [/* @__PURE__ */ C(_, {
442
- id: `${t.id}-language`,
439
+ children: [/* @__PURE__ */ w(te, {
440
+ id: `${e.id}-language`,
443
441
  labelProps: {
444
- label: k,
442
+ label: E,
445
443
  required: !0
446
444
  },
447
445
  className: "desktop:shrink-0 desktop:basis-40",
448
- options: u.map((e) => ({
446
+ options: r.map((e) => ({
449
447
  value: e.code,
450
448
  label: e.label,
451
- disabled: r.has(e.code)
449
+ disabled: i.has(e.code)
452
450
  })),
453
- value: t.language,
454
- onChange: (e) => Y(t.id, { language: e })
455
- }), /* @__PURE__ */ C(d, {
456
- id: `${t.id}-name`,
451
+ value: e.language,
452
+ onChange: (t) => q(e.id, { language: t })
453
+ }), /* @__PURE__ */ w(h, {
454
+ id: `${e.id}-name`,
457
455
  containerClassName: "min-w-0 flex-1",
458
456
  required: !0,
459
- value: t.name,
460
- onChange: (e) => Y(t.id, { name: e ?? "" }),
457
+ value: e.name,
458
+ onChange: (t) => q(e.id, { name: t ?? "" }),
461
459
  labelProps: {
462
- label: j,
460
+ label: D,
463
461
  required: !0
464
462
  },
465
- placeholder: P
463
+ placeholder: O
466
464
  })]
467
- }), /* @__PURE__ */ C(b, {
468
- id: `${t.id}-description`,
469
- className: e,
470
- resize: x.Vertical,
471
- value: t.description,
472
- onChange: (e) => Y(t.id, { description: e }),
473
- labelProps: { label: F },
474
- placeholder: I
465
+ }), /* @__PURE__ */ w(ne, {
466
+ id: `${e.id}-description`,
467
+ className: n,
468
+ resize: S.Vertical,
469
+ value: e.description,
470
+ onChange: (t) => q(e.id, { description: t }),
471
+ labelProps: { label: A },
472
+ placeholder: j
475
473
  })]
476
474
  })]
477
- }, t.id);
478
- }), /* @__PURE__ */ C(p, {
479
- label: E,
480
- iconBefore: /* @__PURE__ */ C(D, {
481
- size: o.SM,
475
+ }, e.id);
476
+ }), /* @__PURE__ */ w(_, {
477
+ label: x,
478
+ iconBefore: /* @__PURE__ */ w(k, {
479
+ size: u.SM,
482
480
  "aria-hidden": !0,
483
- stroke: s
481
+ stroke: d
484
482
  }),
485
483
  className: "self-start",
486
- onClick: J,
487
- disabled: H.length >= u.length
484
+ onClick: K,
485
+ disabled: B.length >= r.length
488
486
  })]
489
487
  })
490
488
  })
491
489
  ]
492
490
  });
493
- }, Q = ({ values: n, errors: i, onChange: a, onNameBlur: o, onVersionBlur: s, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: f, availableLocaleOptions: p = [] }) => {
494
- let m = M(null), h = M(null), g = M(!1), _ = !!(i.name || i.version);
495
- return A(() => {
496
- _ && !g.current && (i.name ? m : h).current?.focus(), g.current = _;
491
+ }, ae = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [] }) => {
492
+ let p = P(null), m = P(null), g = P(!1), _ = !!(t.name || t.version);
493
+ return M(() => {
494
+ _ && !g.current && (t.name ? p : m).current?.focus(), g.current = _;
497
495
  }, [
498
496
  _,
499
- i.name,
500
- i.version
501
- ]), /* @__PURE__ */ w("div", {
497
+ t.name,
498
+ t.version
499
+ ]), /* @__PURE__ */ T("div", {
502
500
  role: u.ariaLabel ? "group" : void 0,
503
501
  "aria-label": u.ariaLabel,
504
- className: r("flex flex-col gap-4", f?.root),
502
+ className: s("flex flex-col gap-4", d?.root),
505
503
  children: [
506
- /* @__PURE__ */ C(J, {
504
+ /* @__PURE__ */ w(X, {
507
505
  label: u.iconUrl.label,
508
506
  avatarUrl: c,
509
507
  addAvatarLabel: u.iconUrl.addAvatarLabel,
510
508
  captionText: u.iconUrl.captionText,
511
509
  onAddAvatarClick: l,
512
- className: f?.field
510
+ className: d?.field
513
511
  }),
514
- /* @__PURE__ */ w("div", {
515
- className: r("flex items-start gap-4", f?.field),
516
- children: [/* @__PURE__ */ C(d, {
512
+ /* @__PURE__ */ T("div", {
513
+ className: s("flex items-start gap-4", d?.field),
514
+ children: [/* @__PURE__ */ w(h, {
517
515
  id: "deployment-creation-form-name",
518
- inputRef: m,
519
- value: n.name,
520
- onChange: (e) => a({ name: e ?? "" }),
521
- onBlur: o,
516
+ inputRef: p,
517
+ value: e.name,
518
+ onChange: (e) => i({ name: e ?? "" }),
519
+ onBlur: a,
522
520
  labelProps: {
523
521
  label: u.name.label,
524
522
  required: !0
525
523
  },
526
524
  placeholder: u.name.placeholder,
527
- error: i.name || void 0,
528
- invalid: !!i.name,
525
+ error: t.name || void 0,
526
+ invalid: !!t.name,
529
527
  containerClassName: "min-w-0 basis-0 grow-[2]"
530
- }), /* @__PURE__ */ C(d, {
528
+ }), /* @__PURE__ */ w(h, {
531
529
  id: "deployment-creation-form-version",
532
- inputRef: h,
533
- value: n.version,
534
- onChange: (e) => a({ version: e ?? "" }),
535
- onBlur: s,
530
+ inputRef: m,
531
+ value: e.version,
532
+ onChange: (e) => i({ version: e ?? "" }),
533
+ onBlur: o,
536
534
  labelProps: { label: u.version.label },
537
535
  placeholder: u.version.placeholder,
538
- error: i.version || void 0,
539
- invalid: !!i.version,
536
+ error: t.version || void 0,
537
+ invalid: !!t.version,
540
538
  containerClassName: "min-w-0 basis-0 grow-[1]"
541
539
  })]
542
540
  }),
543
- /* @__PURE__ */ C(b, {
541
+ /* @__PURE__ */ w(ne, {
544
542
  id: "deployment-creation-form-description",
545
- value: n.description,
546
- onChange: (e) => a({ description: e }),
543
+ value: e.description,
544
+ onChange: (e) => i({ description: e }),
547
545
  labelProps: { label: u.description.label },
548
546
  placeholder: u.description.placeholder,
549
- containerClassName: f?.field,
550
- className: e,
551
- resize: x.Vertical
547
+ error: t.description || void 0,
548
+ invalid: !!t.description,
549
+ containerClassName: d?.field,
550
+ className: n,
551
+ resize: S.Vertical
552
552
  }),
553
- /* @__PURE__ */ C(Z, {
554
- value: n.otherLocales,
555
- onChange: (e) => a({ otherLocales: e }),
556
- availableLocaleOptions: p,
553
+ /* @__PURE__ */ w(Q, {
554
+ value: e.otherLocales,
555
+ onChange: (e) => i({ otherLocales: e }),
556
+ availableLocaleOptions: f,
557
557
  labels: u.otherLocales,
558
- className: f?.field
558
+ className: d?.field
559
559
  }),
560
- /* @__PURE__ */ C("div", {
561
- className: f?.field,
562
- children: /* @__PURE__ */ C(y, {
560
+ /* @__PURE__ */ w("div", {
561
+ className: d?.field,
562
+ children: /* @__PURE__ */ w(x, {
563
563
  id: "deployment-creation-form-topics",
564
564
  labelProps: { label: u.topics.label },
565
565
  placeholder: u.topics.placeholder,
566
- value: n.topics,
567
- onChange: (e) => a({ topics: e }),
568
- tagClassName: t
566
+ value: e.topics,
567
+ onChange: (e) => i({ topics: e }),
568
+ tagClassName: r
569
569
  })
570
570
  })
571
571
  ]
572
572
  });
573
573
  }, $ = /* @__PURE__ */ function(e) {
574
- return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e;
575
- }({}), ne = /^[a-zA-Z0-9 _.-]+$/, re = /^[a-zA-Z0-9._-]+$/, ie = /^\d+(\.\d+)*$/, ae = (e, t = {}) => {
576
- let n = {}, r = e.name.trim();
577
- r ? t.validateNamePattern && !ne.test(r) && (n.name = $.InvalidFormat) : n.name = $.Required;
578
- let i = e.version.trim();
579
- return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern : re).test(i) || (n.version = $.InvalidFormat)), n;
574
+ return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
575
+ }({}), oe = /^[a-zA-Z0-9 _.-]+$/, se = /^[a-zA-Z0-9._-]+$/, ce = /^\d+(\.\d+)*$/, le = (n, r = {}) => {
576
+ let i = {}, s = n.name.trim();
577
+ s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !oe.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
578
+ let c = n.version.trim();
579
+ return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : se).test(c) || (i.version = $.InvalidFormat)), i;
580
580
  };
581
581
  //#endregion
582
- export { J as AddAvatar, Y as AvatarPickerModal, H as BUILDER_FORM_CLASS, V as BuilderFormContainer, $ as DeploymentCreationFieldErrorCode, Q as DeploymentCreationForm, Z as DeploymentLocalesField, K as EditorLayout, W as EditorSection, ne as NAME_PATTERN, ie as SEMVER_VERSION_PATTERN, re as VERSION_PATTERN, ae as validateDeploymentCreationFields };
582
+ export { X as AddAvatar, ie as AvatarPickerModal, W as BUILDER_FORM_CLASS, U as BuilderFormContainer, $ as DeploymentCreationFieldErrorCode, ae as DeploymentCreationForm, Q as DeploymentLocalesField, J as EditorLayout, K as EditorSection, oe as NAME_PATTERN, ce as SEMVER_VERSION_PATTERN, se as VERSION_PATTERN, le as validateDeploymentCreationFields };
@@ -20,7 +20,7 @@ export interface AvatarPickerModalLabels {
20
20
  showHiddenFilesLabel: string;
21
21
  /** Label for the action that hides hidden files again. */
22
22
  hideHiddenFilesLabel: string;
23
- /** Returns the selection-count summary text for the given count. */
23
+ /** Returns the text shown after the selection-count badge; the file manager renders the count itself, so omit it (e.g. "items selected"). */
24
24
  getSelectionLabel: (count: number) => string;
25
25
  /** Label for the upload-files action. */
26
26
  uploadFilesLabel: string;
@@ -48,10 +48,6 @@ export interface AvatarPickerModalLabels {
48
48
  deleteConfirmLabel: string;
49
49
  /** Label for the delete-confirmation cancel button. */
50
50
  deleteCancelLabel: string;
51
- /** Title shown while an upload is in progress. */
52
- uploadProgressTitle: string;
53
- /** Label for the cancel button. */
54
- cancelLabel: string;
55
51
  }
56
52
  /**
57
53
  * Props of the host-provided DIAL file manager modal that `AvatarPickerModal`
@@ -85,7 +81,7 @@ export interface AvatarPickerFileManagerModalProps {
85
81
  showHiddenFilesLabel: string;
86
82
  /** Label for the action that hides hidden files again. */
87
83
  hideHiddenFilesLabel: string;
88
- /** Returns the selection-count summary text for the given count. */
84
+ /** Returns the text shown after the selection-count badge; the file manager renders the count itself, so omit it (e.g. "items selected"). */
89
85
  getSelectionLabel: (count: number) => string;
90
86
  /** Label for the upload-files action. */
91
87
  uploadFilesLabel: string;
@@ -107,10 +103,6 @@ export interface AvatarPickerFileManagerModalProps {
107
103
  deleteConfirmLabel: string;
108
104
  /** Label for the delete-confirmation cancel button. */
109
105
  deleteCancelLabel: string;
110
- /** Title shown while an upload is in progress. */
111
- uploadProgressTitle: string;
112
- /** Label for the cancel button. */
113
- cancelLabel: string;
114
106
  /** MIME types selectable in the modal. Unset means no type restriction. */
115
107
  allowedTypes?: string[];
116
108
  /** Maximum size, in bytes, of a selectable file. */
@@ -1 +1 @@
1
- {"version":3,"file":"avatar-picker-modal.d.ts","sourceRoot":"","sources":["../../src/models/avatar-picker-modal.ts"],"names":[],"mappings":"AAAA,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;IACxB,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4DAA4D;IAC5D,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,2DAA2D;AAC3D,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,4FAA4F;IAC5F,gBAAgB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;IACnE,6DAA6D;IAC7D,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,2DAA2D;IAC3D,gBAAgB,EAAE,MAAM,CAAC;IACzB,2CAA2C;IAC3C,MAAM,EAAE,uBAAuB,CAAC;CACjC"}
@@ -37,6 +37,8 @@ export interface DeploymentCreationFormFieldErrors {
37
37
  name?: string;
38
38
  /** Error message for the version field. */
39
39
  version?: string;
40
+ /** Error message for the description field. */
41
+ description?: string;
40
42
  }
41
43
  /** Label and placeholder text for a single field, supplied by the host app. */
42
44
  export interface DeploymentCreationFormFieldLabels {
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,MAAM,WAAW,iCAAiC;IAChD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,kCAAkC;IACjD,iCAAiC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AC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qJAAqJ;IACrJ,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0DAA0D;IAC1D,MAAM,EAAE,4BAA4B,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,8GAA8G;IAC9G,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAC/D"}
1
+ {"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,MAAM,WAAW,iCAAiC;IAChD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,kCAAkC;IACjD,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4EAA4E;AAC5E,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,qGAAqG;IACrG,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uGAAuG;IACvG,YAAY,EAAE,iCAAiC,EAAE,CAAC;CACnD;AAED,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,WAAW,C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AgC,CAAC;IAC1C,oCAAoC;IACpC,OAAO,EAAE,iCAAiC,CAAC;IAC3C,mCAAmC;IACnC,MAAM,EAAE,iCAAiC,CAAC;IAC1C,+DAA+D;IAC/D,YAAY,EAAE,kCAAkC,CAAC;IACjD,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qFAAqF;AACrF,MAAM,WAAW,4BAA4B;IAC3C,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,WAAW,2BAA2B;IAC1C,qEAAqE;IACrE,MAAM,EAAE,4BAA4B,CAAC;IACrC,yEAAyE;IACzE,MAAM,EAAE,iCAAiC,CAAC;IAC1C,kEAAkE;IAClE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAC;IACjE,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qJAAqJ;IACrJ,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0DAA0D;IAC1D,MAAM,EAAE,4BAA4B,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,8GAA8G;IAC9G,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAC/D"}
@@ -5,7 +5,9 @@ export declare enum DeploymentCreationFieldErrorCode {
5
5
  /** The field's value does not match the required character pattern. */
6
6
  InvalidFormat = "invalid-format",
7
7
  /** The field's value exceeds its maximum length. */
8
- TooLong = "too-long"
8
+ TooLong = "too-long",
9
+ /** The name contains a control character (line break, tab, …). */
10
+ ControlCharacters = "control-characters"
9
11
  }
10
12
  /** Untranslated error codes returned by `validateDeploymentCreationFields`. */
11
13
  export interface DeploymentCreationFormErrorCodes {
@@ -13,6 +15,8 @@ export interface DeploymentCreationFormErrorCodes {
13
15
  name?: DeploymentCreationFieldErrorCode;
14
16
  /** Error code for the version field, if invalid. */
15
17
  version?: DeploymentCreationFieldErrorCode;
18
+ /** Error code for the description field, if invalid. */
19
+ description?: DeploymentCreationFieldErrorCode;
16
20
  }
17
21
  /** Optional pattern-check toggles for field validation. */
18
22
  export interface DeploymentCreationFormValidationOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/models/validation.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,oBAAY,gCAAgC;IAC1C,gDAAgD;IAChD,QAAQ,aAAa;IACrB,uEAAuE;IACvE,aAAa,mBAAmB;IAChC,oDAAoD;IACpD,OAAO,aAAa;CACrB;AAED,+EAA+E;AAC/E,MAAM,WAAW,gCAAgC;IAC/C,iDAAiD;IACjD,IAAI,CAAC,EAAE,gCAAgC,CAAC;IACxC,oDAAoD;IACpD,OAAO,CAAC,EAAE,gCAAgC,CAAC;CAC5C;AAED,2DAA2D;AAC3D,MAAM,WAAW,uCAAuC;IACtD,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3C"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/models/validation.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,oBAAY,gCAAgC;IAC1C,gDAAgD;IAChD,QAAQ,aAAa;IACrB,uEAAuE;IACvE,aAAa,mBAAmB;IAChC,oDAAoD;IACpD,OAAO,aAAa;IACpB,kEAAkE;IAClE,iBAAiB,uBAAuB;CACzC;AAED,+EAA+E;AAC/E,MAAM,WAAW,gCAAgC;IAC/C,iDAAiD;IACjD,IAAI,CAAC,EAAE,gCAAgC,CAAC;IACxC,oDAAoD;IACpD,OAAO,CAAC,EAAE,gCAAgC,CAAC;IAC3C,wDAAwD;IACxD,WAAW,CAAC,EAAE,gCAAgC,CAAC;CAChD;AAED,2DAA2D;AAC3D,MAAM,WAAW,uCAAuC;IACtD,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-builder-form",
3
3
  "description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
4
- "version": "1.2.0-dev.164",
4
+ "version": "1.2.0-dev.173",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,8 +20,8 @@
20
20
  "@tabler/icons-react": "^3.44.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.2.0-dev.164",
24
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
23
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.173",
24
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.21",
25
25
  "react": "^19.2.8"
26
26
  },
27
27
  "repository": {
@@ -1 +1 @@
1
- {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAEtD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCAsBF,CAAC"}
1
+ {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAEtD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}