@alfadocs/ui-kit-debug 1.120.0 → 1.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/map-pin@2x.png +0 -0
- package/assets/map-pin@2x.source.json +5 -0
- package/dist/_chunks/{registration-form-CMXefBnC.js → registration-form-CwbhtKcy.js} +180 -165
- package/dist/_chunks/registration-form-CwbhtKcy.js.map +1 -0
- package/dist/_chunks/{workflow-webhook-action-dgUjv9T7.js → workflow-webhook-action-Cae02r_4.js} +264 -289
- package/dist/_chunks/workflow-webhook-action-Cae02r_4.js.map +1 -0
- package/dist/agent-catalog.json +1 -9
- package/dist/agent-i18n/en.json +0 -1
- package/dist/browser-support.js +1 -1
- package/dist/i18n/locales/ar.d.ts +2 -5
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +2 -5
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +2 -5
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +2 -5
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +2 -5
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +2 -5
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +2 -5
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +2 -5
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +2 -5
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +2 -5
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +2 -5
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +2 -5
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +2 -5
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +2 -5
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +2 -5
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +2 -5
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +2 -5
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +2 -5
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +2 -5
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +2 -5
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +2 -5
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +2 -5
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +2 -5
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +2 -5
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +2 -5
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +2 -5
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +2 -5
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +2 -5
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +2 -5
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +2 -5
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +2 -5
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +2 -5
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +2 -5
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +2 -5
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +2 -5
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +2 -5
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/locales/ar.json +2 -5
- package/dist/locales/de.json +2 -5
- package/dist/locales/el.json +2 -5
- package/dist/locales/en.json +2 -5
- package/dist/locales/es.json +2 -5
- package/dist/locales/fr.json +2 -5
- package/dist/locales/hi.json +2 -5
- package/dist/locales/it.json +2 -5
- package/dist/locales/ja.json +2 -5
- package/dist/locales/nl.json +2 -5
- package/dist/locales/pl.json +2 -5
- package/dist/locales/pt.json +2 -5
- package/dist/locales/ro.json +2 -5
- package/dist/locales/ru.json +2 -5
- package/dist/locales/sq.json +2 -5
- package/dist/locales/sv.json +2 -5
- package/dist/locales/tr.json +2 -5
- package/dist/locales/zh.json +2 -5
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/key-round-DIgsnJSg.js +0 -21
- package/dist/_chunks/key-round-DIgsnJSg.js.map +0 -1
- package/dist/_chunks/registration-form-CMXefBnC.js.map +0 -1
- package/dist/_chunks/workflow-webhook-action-dgUjv9T7.js.map +0 -1
package/dist/_chunks/{workflow-webhook-action-dgUjv9T7.js → workflow-webhook-action-Cae02r_4.js}
RENAMED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as Pt, useId as C, useRef as i, useState as m, useEffect as A, useCallback as Mt } from "react";
|
|
3
|
+
import { useTranslation as ze } from "react-i18next";
|
|
4
4
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { C as
|
|
5
|
+
import { C as _e } from "./code-block-BTsCXVGI.js";
|
|
6
6
|
import { A as k } from "./accordion-Ch3xp0mX.js";
|
|
7
7
|
import { A as U } from "./alert-C4WKViaS.js";
|
|
8
|
-
import { B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { I as
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import { F as
|
|
14
|
-
import { F as
|
|
15
|
-
import { P as
|
|
16
|
-
import { T as
|
|
17
|
-
import { T as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
import {
|
|
21
|
-
import { C as
|
|
22
|
-
import { C as
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
const Mo = [
|
|
8
|
+
import { B as jt } from "./badge-BUk4RjTS.js";
|
|
9
|
+
import { B as $e } from "./button-DohK_Ak_.js";
|
|
10
|
+
import { I as qt } from "./icon-button-S8_weU3g.js";
|
|
11
|
+
import { C as Xe } from "./card-n6W6LW-N.js";
|
|
12
|
+
import { C as Ht } from "./checkbox-DV4sNDeB.js";
|
|
13
|
+
import { F as _t } from "./field-array-CA-gn526.js";
|
|
14
|
+
import { F as J } from "./form-field-CyHfOVKF.js";
|
|
15
|
+
import { P as $t } from "./password-input-SJGHFdOO.js";
|
|
16
|
+
import { T as ue } from "./text-input-B6iAgCr3.js";
|
|
17
|
+
import { T as Xt } from "./token-insert-menu-BrK5NQIq.js";
|
|
18
|
+
import { u as Ue } from "./use-copy-to-clipboard-Cyfc_dlv.js";
|
|
19
|
+
import { u as Kt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
20
|
+
import { C as Je } from "./check-DrFSN__t.js";
|
|
21
|
+
import { C as ke } from "./circle-alert-rGDZ73Wh.js";
|
|
22
|
+
import { C as Ge } from "./copy-vRpqqHtY.js";
|
|
23
|
+
import { S as zt } from "./send-C5kDJ-Mz.js";
|
|
24
|
+
const To = [
|
|
26
25
|
"url",
|
|
27
26
|
"secret",
|
|
28
27
|
"legalBasisConfirmed",
|
|
29
28
|
"parameters"
|
|
30
|
-
],
|
|
29
|
+
], Ut = h(
|
|
31
30
|
"ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)]"
|
|
32
|
-
),
|
|
31
|
+
), Jt = h(
|
|
33
32
|
"ds:m-0 ds:grid ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]",
|
|
34
33
|
{
|
|
35
34
|
variants: {
|
|
@@ -41,59 +40,54 @@ const Mo = [
|
|
|
41
40
|
},
|
|
42
41
|
defaultVariants: { columns: 1 }
|
|
43
42
|
}
|
|
44
|
-
),
|
|
43
|
+
), me = h(
|
|
45
44
|
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
46
|
-
),
|
|
45
|
+
), fe = h("type-title-item ds:text-foreground"), Gt = h(
|
|
47
46
|
"ds:min-w-0 ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-mono type-body-sm ds:text-foreground ds:[overflow-wrap:anywhere]"
|
|
48
|
-
),
|
|
47
|
+
), W = h("type-body-sm ds:text-muted-foreground"), Yt = h(
|
|
49
48
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive"
|
|
50
|
-
),
|
|
49
|
+
), Qt = h(
|
|
51
50
|
"ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2"
|
|
52
|
-
),
|
|
51
|
+
), Zt = "https://", Vt = 2048, eo = 720, pe = {
|
|
53
52
|
salutation: "[[TITOLO]]",
|
|
54
53
|
firstName: "[[NOME]]",
|
|
55
54
|
lastName: "[[COGNOME]]"
|
|
56
|
-
},
|
|
55
|
+
}, Ye = "wf12-e345-a67", to = {
|
|
57
56
|
sentAt: "2026-10-12T09:00:00+02:00",
|
|
58
|
-
idempotencyKey:
|
|
57
|
+
idempotencyKey: Ye,
|
|
59
58
|
practiceId: 1234,
|
|
60
59
|
workflowId: 12,
|
|
61
60
|
workflowActionId: 67,
|
|
62
61
|
workflowEnrollmentId: 345,
|
|
63
62
|
patientId: 5678
|
|
64
|
-
},
|
|
63
|
+
}, oo = [
|
|
65
64
|
"Content-Type: application/json",
|
|
66
|
-
`X-AlfaDocs-Idempotency-Key: ${
|
|
65
|
+
`X-AlfaDocs-Idempotency-Key: ${Ye}`,
|
|
67
66
|
"X-AlfaDocs-Request-Timestamp: 1791788400000",
|
|
68
67
|
"X-AlfaDocs-Signature: sha256=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
|
|
69
68
|
].join(`
|
|
70
|
-
`),
|
|
69
|
+
`), Qe = (s) => s === null ? "" : String(s), he = (s) => s.original !== void 0 && s.name === s.original.name && s.value === Qe(s.original.value), no = (s) => s.flatMap((a) => a.original !== void 0 && he(a) ? [[a.original.name, a.original.value]] : a.name.trim() === "" ? [] : [[a.name, a.value]]), ro = (s) => s.length === 0 ? "" : `{${s.map(
|
|
71
70
|
([a, w]) => `${JSON.stringify(a)}:${JSON.stringify(w)}`
|
|
72
|
-
).join(",")}}`,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
""
|
|
76
|
-
);
|
|
77
|
-
}, Je = (s) => s != null && s.url ? { kind: "url" } : s != null && s.secret ? { kind: "secret" } : s != null && s.legalBasisConfirmed ? { kind: "legal" } : s != null && s.parameters ? { kind: "parametersError" } : null;
|
|
78
|
-
function mo({ name: s, description: a, onCopied: w }) {
|
|
79
|
-
const { t: l } = Ye("ui"), p = N(), { status: L, copy: I } = Qe(), v = L === "copied", D = L === "error";
|
|
71
|
+
).join(",")}}`, Ke = (s) => s != null && s.url ? { kind: "url" } : s != null && s.secret ? { kind: "secret" } : s != null && s.legalBasisConfirmed ? { kind: "legal" } : s != null && s.parameters ? { kind: "parametersError" } : null;
|
|
72
|
+
function so({ name: s, description: a, onCopied: w }) {
|
|
73
|
+
const { t: l } = ze("ui"), p = C(), { status: L, copy: x } = Ue(), v = L === "copied", S = L === "error";
|
|
80
74
|
return /* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
81
75
|
/* @__PURE__ */ d("dt", { className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
82
|
-
/* @__PURE__ */ n("code", { dir: "ltr", className:
|
|
76
|
+
/* @__PURE__ */ n("code", { dir: "ltr", className: Gt(), children: s }),
|
|
83
77
|
/* @__PURE__ */ n(
|
|
84
|
-
|
|
78
|
+
qt,
|
|
85
79
|
{
|
|
86
|
-
icon: v ? /* @__PURE__ */ n(
|
|
80
|
+
icon: v ? /* @__PURE__ */ n(Je, {}) : S ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Ge, {}),
|
|
87
81
|
size: "sm",
|
|
88
82
|
intent: "ghost",
|
|
89
83
|
"aria-label": l("keyValuePair.copy", { label: s }),
|
|
90
84
|
"aria-describedby": p,
|
|
91
85
|
"data-action": "copy-field",
|
|
92
86
|
"data-copied": v ? "true" : void 0,
|
|
93
|
-
onClick: () => void
|
|
87
|
+
onClick: () => void x(s).then(w)
|
|
94
88
|
}
|
|
95
89
|
),
|
|
96
|
-
v ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-success", children: l("copyField.copied") }) :
|
|
90
|
+
v ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-success", children: l("copyField.copied") }) : S ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "type-body-sm ds:text-destructive", children: l("copyField.copyFailed") }) : null
|
|
97
91
|
] }),
|
|
98
92
|
/* @__PURE__ */ n(
|
|
99
93
|
"dd",
|
|
@@ -105,7 +99,7 @@ function mo({ name: s, description: a, onCopied: w }) {
|
|
|
105
99
|
)
|
|
106
100
|
] });
|
|
107
101
|
}
|
|
108
|
-
const
|
|
102
|
+
const ao = Pt(
|
|
109
103
|
({
|
|
110
104
|
children: s,
|
|
111
105
|
initialValues: a,
|
|
@@ -113,13 +107,13 @@ const fo = Ht(
|
|
|
113
107
|
errors: l,
|
|
114
108
|
fieldNames: p,
|
|
115
109
|
placeholders: L,
|
|
116
|
-
onSendTest:
|
|
110
|
+
onSendTest: x,
|
|
117
111
|
onValueChange: v,
|
|
118
|
-
layout:
|
|
119
|
-
className:
|
|
120
|
-
...
|
|
121
|
-
},
|
|
122
|
-
const { t: o } =
|
|
112
|
+
layout: S = "two-column",
|
|
113
|
+
className: Ze,
|
|
114
|
+
...Ve
|
|
115
|
+
}, N) => {
|
|
116
|
+
const { t: o } = ze("ui"), et = [
|
|
123
117
|
["patientId", o("workflowWebhookAction.sent.patientId")],
|
|
124
118
|
["practiceId", o("workflowWebhookAction.sent.practiceId")],
|
|
125
119
|
["workflowId", o("workflowWebhookAction.sent.workflowId")],
|
|
@@ -131,7 +125,7 @@ const fo = Ht(
|
|
|
131
125
|
["sentAt", o("workflowWebhookAction.sent.sentAt")],
|
|
132
126
|
["idempotencyKey", o("workflowWebhookAction.sent.idempotencyKey")],
|
|
133
127
|
["parameters", o("workflowWebhookAction.sent.parameters")]
|
|
134
|
-
],
|
|
128
|
+
], tt = [
|
|
135
129
|
["X-AlfaDocs-Signature", o("workflowWebhookAction.headers.signature")],
|
|
136
130
|
[
|
|
137
131
|
"X-AlfaDocs-Request-Timestamp",
|
|
@@ -141,72 +135,72 @@ const fo = Ht(
|
|
|
141
135
|
"X-AlfaDocs-Idempotency-Key",
|
|
142
136
|
o("workflowWebhookAction.headers.idempotency")
|
|
143
137
|
]
|
|
144
|
-
],
|
|
138
|
+
], we = C(), be = C(), ge = C(), ve = C(), ye = C(), I = L ?? [
|
|
145
139
|
{
|
|
146
|
-
value:
|
|
140
|
+
value: pe.salutation,
|
|
147
141
|
label: o("workflowWebhookAction.variableSalutation")
|
|
148
142
|
},
|
|
149
143
|
{
|
|
150
|
-
value:
|
|
144
|
+
value: pe.firstName,
|
|
151
145
|
label: o("workflowWebhookAction.variableFirstName")
|
|
152
146
|
},
|
|
153
147
|
{
|
|
154
|
-
value:
|
|
148
|
+
value: pe.lastName,
|
|
155
149
|
label: o("workflowWebhookAction.variableLastName")
|
|
156
150
|
}
|
|
157
|
-
],
|
|
158
|
-
() => Object.entries((a == null ? void 0 : a.parameters) ?? {}).map(([e, t]) => (
|
|
159
|
-
key: `parameter-${
|
|
151
|
+
], D = i(0), ot = () => (D.current += 1, `parameter-${D.current}`), [y, nt] = m(() => (a == null ? void 0 : a.url) ?? ""), [f, rt] = m(""), [b, G] = m(
|
|
152
|
+
() => Object.entries((a == null ? void 0 : a.parameters) ?? {}).map(([e, t]) => (D.current += 1, {
|
|
153
|
+
key: `parameter-${D.current}`,
|
|
160
154
|
name: e,
|
|
161
|
-
value:
|
|
155
|
+
value: Qe(t),
|
|
162
156
|
original: { name: e, value: t }
|
|
163
157
|
}))
|
|
164
|
-
), [
|
|
158
|
+
), [E, st] = m(
|
|
165
159
|
() => (a == null ? void 0 : a.legalBasisConfirmed) ?? !1
|
|
166
|
-
), [
|
|
160
|
+
), [at, Y] = m(
|
|
167
161
|
() => Object.keys((a == null ? void 0 : a.parameters) ?? {}).length > 0 || !!(l != null && l.parameters)
|
|
168
|
-
), [
|
|
162
|
+
), [ct, lt] = m({}), [Q, it] = m(!1), [O, Ae] = m(() => l ?? {}), [dt, We] = m(""), [ut, mt] = m(!1), [ft, pt] = m(
|
|
169
163
|
() => Object.values(l ?? {}).some(Boolean)
|
|
170
|
-
),
|
|
171
|
-
|
|
172
|
-
l !==
|
|
164
|
+
), Ce = i(l);
|
|
165
|
+
A(() => {
|
|
166
|
+
l !== Ce.current && (Ce.current = l, Ae(l ?? {}), l != null && l.parameters && Y(!0), pt(Object.values(l ?? {}).some(Boolean)), F(Ke(l)));
|
|
173
167
|
}, [l]);
|
|
174
|
-
const
|
|
168
|
+
const R = (e) => lt(
|
|
175
169
|
(t) => t[e] ? t : { ...t, [e]: !0 }
|
|
176
|
-
),
|
|
170
|
+
), T = (e) => Ae(
|
|
177
171
|
(t) => t[e] ? { ...t, [e]: void 0 } : t
|
|
178
|
-
),
|
|
179
|
-
|
|
172
|
+
), P = i(null), xe = i(null), M = i(null), Ne = i(null), Ie = i(null), Ee = i(null), Z = i(/* @__PURE__ */ new Map()), j = i(/* @__PURE__ */ new Map()), V = i(/* @__PURE__ */ new Set()), ee = i(null);
|
|
173
|
+
A(() => {
|
|
180
174
|
var t;
|
|
181
175
|
const e = ee.current;
|
|
182
|
-
e && (ee.current = null, (t =
|
|
176
|
+
e && (ee.current = null, (t = j.current.get(e.key)) == null || t.setSelectionRange(e.position, e.position));
|
|
183
177
|
});
|
|
184
|
-
const [
|
|
185
|
-
|
|
186
|
-
const e =
|
|
178
|
+
const [kt, ht] = m(!1);
|
|
179
|
+
Kt(() => {
|
|
180
|
+
const e = P.current;
|
|
187
181
|
if (!e) return;
|
|
188
|
-
const t = () =>
|
|
189
|
-
e.getBoundingClientRect().width >=
|
|
182
|
+
const t = () => ht(
|
|
183
|
+
e.getBoundingClientRect().width >= eo
|
|
190
184
|
);
|
|
191
185
|
if (t(), typeof ResizeObserver > "u") return;
|
|
192
186
|
const r = new ResizeObserver(t);
|
|
193
187
|
return r.observe(e), () => r.disconnect();
|
|
194
188
|
}, []);
|
|
195
|
-
const te =
|
|
189
|
+
const te = S === "two-column" && kt, wt = Mt(
|
|
196
190
|
(e) => {
|
|
197
|
-
|
|
191
|
+
P.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
|
|
198
192
|
},
|
|
199
|
-
[
|
|
200
|
-
),
|
|
201
|
-
|
|
193
|
+
[N]
|
|
194
|
+
), q = (e) => {
|
|
195
|
+
We("");
|
|
202
196
|
let t = 0;
|
|
203
197
|
const r = () => {
|
|
204
|
-
var
|
|
205
|
-
if (((
|
|
198
|
+
var u;
|
|
199
|
+
if (((u = Ee.current) == null ? void 0 : u.closest('[aria-hidden="true"]')) && t < 60) {
|
|
206
200
|
t += 1, window.requestAnimationFrame(r);
|
|
207
201
|
return;
|
|
208
202
|
}
|
|
209
|
-
|
|
203
|
+
We(e);
|
|
210
204
|
};
|
|
211
205
|
window.requestAnimationFrame(r);
|
|
212
206
|
}, oe = () => {
|
|
@@ -218,18 +212,18 @@ const fo = Ht(
|
|
|
218
212
|
} catch {
|
|
219
213
|
return o("workflowWebhookAction.urlInvalid");
|
|
220
214
|
}
|
|
221
|
-
if (!e.startsWith(
|
|
215
|
+
if (!e.startsWith(Zt)) return o("workflowWebhookAction.urlHttps");
|
|
222
216
|
if (t.hostname === "") return o("workflowWebhookAction.urlInvalid");
|
|
223
217
|
if (t.username !== "" || t.password !== "")
|
|
224
218
|
return o("workflowWebhookAction.urlCredentials");
|
|
225
|
-
}, ne = () => f.trim() === "" && !w ? o("workflowWebhookAction.secretRequired") : void 0,
|
|
219
|
+
}, ne = () => f.trim() === "" && !w ? o("workflowWebhookAction.secretRequired") : void 0, bt = () => {
|
|
226
220
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
227
221
|
for (const r of b) {
|
|
228
|
-
const c =
|
|
222
|
+
const c = he(r) ? r.name : r.name.trim() === "" ? null : r.name;
|
|
229
223
|
c !== null && t.set(c, (t.get(c) ?? 0) + 1);
|
|
230
224
|
}
|
|
231
225
|
for (const r of b)
|
|
232
|
-
if (!
|
|
226
|
+
if (!he(r)) {
|
|
233
227
|
if (r.name.trim() === "") {
|
|
234
228
|
r.value !== "" && e.set(
|
|
235
229
|
r.key,
|
|
@@ -243,111 +237,107 @@ const fo = Ht(
|
|
|
243
237
|
);
|
|
244
238
|
}
|
|
245
239
|
return e;
|
|
246
|
-
},
|
|
240
|
+
}, Oe = () => E ? void 0 : o("workflowWebhookAction.legalBasisRequired"), re = (e) => Q || ct[e] === !0, Re = bt(), gt = O.url ?? (re("url") ? oe() : void 0), vt = O.secret ?? (re("secret") ? ne() : void 0), H = O.legalBasisConfirmed ?? (Q ? Oe() : void 0), yt = (e) => re(`parameter:${e}`) ? Re.get(e) : void 0, _ = !Q && !ft && !ut, Te = () => {
|
|
247
241
|
if (oe()) return { kind: "url" };
|
|
248
242
|
if (ne()) return { kind: "secret" };
|
|
249
|
-
if (
|
|
250
|
-
const e = b.find((t) =>
|
|
243
|
+
if (Oe()) return { kind: "legal" };
|
|
244
|
+
const e = b.find((t) => Re.has(t.key));
|
|
251
245
|
return e ? { kind: "parameter", key: e.key } : void 0;
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
const [
|
|
255
|
-
() =>
|
|
246
|
+
}, Fe = i(Te);
|
|
247
|
+
Fe.current = Te;
|
|
248
|
+
const [$, F] = m(
|
|
249
|
+
() => Ke(l)
|
|
256
250
|
);
|
|
257
|
-
|
|
258
|
-
if (
|
|
251
|
+
A(() => {
|
|
252
|
+
if (!$) return;
|
|
259
253
|
const e = (() => {
|
|
260
254
|
var t;
|
|
261
|
-
switch (
|
|
255
|
+
switch ($.kind) {
|
|
262
256
|
case "url":
|
|
263
|
-
return
|
|
257
|
+
return xe.current;
|
|
264
258
|
case "secret":
|
|
265
|
-
return
|
|
259
|
+
return M.current;
|
|
266
260
|
case "legal":
|
|
267
|
-
return
|
|
268
|
-
case "copy":
|
|
269
|
-
return Re.current;
|
|
261
|
+
return Ie.current;
|
|
270
262
|
case "parametersError":
|
|
271
|
-
return
|
|
263
|
+
return Ne.current;
|
|
272
264
|
case "add":
|
|
273
|
-
return (t =
|
|
265
|
+
return (t = P.current) == null ? void 0 : t.querySelector(
|
|
274
266
|
'[data-slot="parameters"] [data-component="field-array"] > button'
|
|
275
267
|
);
|
|
276
268
|
case "parameter":
|
|
277
|
-
return Z.current.get(
|
|
269
|
+
return Z.current.get($.key);
|
|
278
270
|
}
|
|
279
271
|
})();
|
|
280
272
|
e == null || e.focus();
|
|
281
|
-
}, [
|
|
273
|
+
}, [$]), A(() => {
|
|
282
274
|
var r;
|
|
283
|
-
const e = (r =
|
|
275
|
+
const e = (r = P.current) == null ? void 0 : r.closest("form");
|
|
284
276
|
if (!e) return;
|
|
285
277
|
const t = (c) => {
|
|
286
|
-
const
|
|
287
|
-
|
|
278
|
+
const u = Fe.current();
|
|
279
|
+
u && (c.preventDefault(), it(!0), u.kind === "parameter" && Y(!0), F({ ...u }));
|
|
288
280
|
};
|
|
289
281
|
return e.addEventListener("submit", t), () => e.removeEventListener("submit", t);
|
|
290
282
|
}, []);
|
|
291
|
-
const g =
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
283
|
+
const g = no(b), se = ro(g), X = i(v);
|
|
284
|
+
X.current = v;
|
|
285
|
+
const Be = i(g);
|
|
286
|
+
Be.current = g;
|
|
287
|
+
const Le = i(!1);
|
|
288
|
+
A(() => {
|
|
297
289
|
var e;
|
|
298
|
-
if (!
|
|
299
|
-
|
|
290
|
+
if (!Le.current) {
|
|
291
|
+
Le.current = !0;
|
|
300
292
|
return;
|
|
301
293
|
}
|
|
302
|
-
(e =
|
|
294
|
+
(e = X.current) == null || e.call(X, {
|
|
303
295
|
url: y,
|
|
304
296
|
secret: f,
|
|
305
|
-
parameters: Object.fromEntries(
|
|
306
|
-
legalBasisConfirmed:
|
|
297
|
+
parameters: Object.fromEntries(Be.current),
|
|
298
|
+
legalBasisConfirmed: E
|
|
307
299
|
});
|
|
308
|
-
}, [y, f, se,
|
|
300
|
+
}, [y, f, se, E]);
|
|
309
301
|
const {
|
|
310
|
-
status:
|
|
311
|
-
copiedValue:
|
|
312
|
-
copy:
|
|
313
|
-
reset:
|
|
314
|
-
} =
|
|
315
|
-
qe(), We(uo()), Ce(!0), A("secret"), F(o("workflowWebhookAction.secretGenerated")), W({ kind: "copy" });
|
|
316
|
-
}, [_e, ce] = u({ kind: "idle" }), S = i(0), Rt = async () => {
|
|
302
|
+
status: Se,
|
|
303
|
+
copiedValue: At,
|
|
304
|
+
copy: Wt,
|
|
305
|
+
reset: Ct
|
|
306
|
+
} = Ue(), ae = Se === "copied" && At === f, De = Se === "error", [Pe, ce] = m({ kind: "idle" }), B = i(0), xt = async () => {
|
|
317
307
|
var r;
|
|
318
|
-
if (!
|
|
308
|
+
if (!x) return;
|
|
319
309
|
const e = oe() ? "url" : ne() ? "secret" : null;
|
|
320
310
|
if (e) {
|
|
321
|
-
|
|
311
|
+
R("url"), R("secret"), mt(!0), F({ kind: e });
|
|
322
312
|
return;
|
|
323
313
|
}
|
|
324
|
-
|
|
325
|
-
const t =
|
|
314
|
+
B.current += 1;
|
|
315
|
+
const t = B.current;
|
|
326
316
|
ce({ kind: "sending" });
|
|
327
317
|
try {
|
|
328
|
-
const c = await
|
|
318
|
+
const c = await x({
|
|
329
319
|
url: y.trim(),
|
|
330
|
-
secret: ((r =
|
|
320
|
+
secret: ((r = M.current) == null ? void 0 : r.value) ?? f,
|
|
331
321
|
parameters: Object.fromEntries(g),
|
|
332
|
-
legalBasisConfirmed:
|
|
322
|
+
legalBasisConfirmed: E
|
|
333
323
|
});
|
|
334
|
-
t ===
|
|
324
|
+
t === B.current && Me({ kind: "done", result: c });
|
|
335
325
|
} catch {
|
|
336
|
-
t ===
|
|
326
|
+
t === B.current && Me({ kind: "failed" });
|
|
337
327
|
}
|
|
338
|
-
},
|
|
328
|
+
}, Me = (e) => {
|
|
339
329
|
ce(e);
|
|
340
|
-
const t =
|
|
341
|
-
t &&
|
|
342
|
-
},
|
|
330
|
+
const t = qe(e);
|
|
331
|
+
t && q(t.text);
|
|
332
|
+
}, K = `${y}
|
|
343
333
|
${f}
|
|
344
|
-
${se}`,
|
|
345
|
-
|
|
346
|
-
|
|
334
|
+
${se}`, je = i(K);
|
|
335
|
+
A(() => {
|
|
336
|
+
K !== je.current && (je.current = K, B.current += 1, ce(
|
|
347
337
|
(e) => e.kind === "idle" ? e : { kind: "idle" }
|
|
348
338
|
));
|
|
349
|
-
}, [
|
|
350
|
-
const
|
|
339
|
+
}, [K]);
|
|
340
|
+
const qe = (e) => {
|
|
351
341
|
if (e.kind === "failed")
|
|
352
342
|
return { ok: !1, text: o("workflowWebhookAction.testFailed") };
|
|
353
343
|
if (e.kind !== "done") return null;
|
|
@@ -363,98 +353,98 @@ ${se}`, $e = i(X);
|
|
|
363
353
|
status: t.status
|
|
364
354
|
})
|
|
365
355
|
};
|
|
366
|
-
},
|
|
356
|
+
}, Nt = async () => {
|
|
367
357
|
var t;
|
|
368
|
-
const e = await
|
|
369
|
-
|
|
358
|
+
const e = await Wt(((t = M.current) == null ? void 0 : t.value) ?? f);
|
|
359
|
+
q(o(e ? "copyField.copySuccess" : "copyField.copyFailed"));
|
|
370
360
|
}, le = (e, t) => {
|
|
371
|
-
|
|
361
|
+
G(
|
|
372
362
|
(r) => r.map((c) => c.key === e ? { ...c, ...t } : c)
|
|
373
|
-
),
|
|
374
|
-
},
|
|
375
|
-
const e =
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
const t = b.filter((
|
|
379
|
-
r && (Z.current.delete(r.key),
|
|
363
|
+
), T("parameters");
|
|
364
|
+
}, It = () => {
|
|
365
|
+
const e = ot();
|
|
366
|
+
G((t) => [...t, { key: e, name: "", value: "" }]), F({ kind: "parameter", key: e });
|
|
367
|
+
}, Et = (e) => {
|
|
368
|
+
const t = b.filter((u, de) => de !== e), r = b[e];
|
|
369
|
+
r && (Z.current.delete(r.key), j.current.delete(r.key), V.current.delete(r.key)), G(t), T("parameters");
|
|
380
370
|
const c = t[e] ?? t[e - 1];
|
|
381
|
-
|
|
371
|
+
F(
|
|
382
372
|
c ? { kind: "parameter", key: c.key } : { kind: "add" }
|
|
383
373
|
);
|
|
384
|
-
},
|
|
385
|
-
var
|
|
386
|
-
const r =
|
|
387
|
-
ee.current = { key: e.key, position:
|
|
388
|
-
const
|
|
389
|
-
|
|
374
|
+
}, Ot = (e, t) => {
|
|
375
|
+
var He;
|
|
376
|
+
const r = j.current.get(e.key), c = r !== void 0 && V.current.has(e.key), u = c ? r.selectionStart ?? e.value.length : e.value.length, de = c ? r.selectionEnd ?? u : u, Lt = e.value.slice(0, u) + t + e.value.slice(de);
|
|
377
|
+
ee.current = { key: e.key, position: u + t.length }, le(e.key, { value: Lt });
|
|
378
|
+
const St = (He = I.find((Dt) => Dt.value === t)) == null ? void 0 : He.label;
|
|
379
|
+
q(
|
|
390
380
|
o("workflowWebhookAction.placeholderInserted", {
|
|
391
|
-
detail:
|
|
381
|
+
detail: St ?? t
|
|
392
382
|
})
|
|
393
383
|
);
|
|
394
|
-
},
|
|
384
|
+
}, Rt = (e) => q(o(e ? "copyField.copySuccess" : "copyField.copyFailed")), ie = (e, t, r = 2) => /* @__PURE__ */ n(
|
|
395
385
|
"dl",
|
|
396
386
|
{
|
|
397
387
|
"aria-labelledby": e,
|
|
398
|
-
className:
|
|
388
|
+
className: Jt({
|
|
399
389
|
columns: te ? r : 1
|
|
400
390
|
}),
|
|
401
|
-
children: t.map(([c,
|
|
402
|
-
|
|
391
|
+
children: t.map(([c, u]) => /* @__PURE__ */ n(
|
|
392
|
+
so,
|
|
403
393
|
{
|
|
404
394
|
name: c,
|
|
405
|
-
description:
|
|
406
|
-
onCopied:
|
|
395
|
+
description: u,
|
|
396
|
+
onCopied: Rt
|
|
407
397
|
},
|
|
408
398
|
c
|
|
409
399
|
))
|
|
410
400
|
}
|
|
411
|
-
),
|
|
412
|
-
{ ...
|
|
401
|
+
), Tt = JSON.stringify(
|
|
402
|
+
{ ...to, parameters: Object.fromEntries(g) },
|
|
413
403
|
null,
|
|
414
404
|
2
|
|
415
|
-
),
|
|
405
|
+
), Ft = /* @__PURE__ */ d(
|
|
416
406
|
"div",
|
|
417
407
|
{
|
|
418
408
|
"data-columns": te ? 2 : 1,
|
|
419
409
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]",
|
|
420
410
|
children: [
|
|
421
|
-
/* @__PURE__ */ d("div", { className:
|
|
422
|
-
/* @__PURE__ */ n("h4", { id:
|
|
423
|
-
/* @__PURE__ */ n("p", { className:
|
|
411
|
+
/* @__PURE__ */ d("div", { className: me(), children: [
|
|
412
|
+
/* @__PURE__ */ n("h4", { id: be, className: fe(), children: o("workflowWebhookAction.bodyHeading") }),
|
|
413
|
+
/* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.sentDescription") }),
|
|
424
414
|
/* @__PURE__ */ n(
|
|
425
|
-
|
|
415
|
+
_e,
|
|
426
416
|
{
|
|
427
417
|
language: "json",
|
|
428
|
-
code:
|
|
418
|
+
code: Tt,
|
|
429
419
|
copyLabel: o("workflowWebhookAction.copyBody")
|
|
430
420
|
}
|
|
431
421
|
),
|
|
432
|
-
ie(
|
|
422
|
+
ie(be, et)
|
|
433
423
|
] }),
|
|
434
|
-
/* @__PURE__ */ d("div", { className:
|
|
435
|
-
/* @__PURE__ */ n("h4", { id:
|
|
436
|
-
/* @__PURE__ */ n("p", { className:
|
|
424
|
+
/* @__PURE__ */ d("div", { className: me(), children: [
|
|
425
|
+
/* @__PURE__ */ n("h4", { id: ge, className: fe(), children: o("workflowWebhookAction.headersHeading") }),
|
|
426
|
+
/* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.headersDescription") }),
|
|
437
427
|
/* @__PURE__ */ n(
|
|
438
|
-
|
|
428
|
+
_e,
|
|
439
429
|
{
|
|
440
430
|
language: "http",
|
|
441
|
-
code:
|
|
431
|
+
code: oo,
|
|
442
432
|
copyLabel: o("workflowWebhookAction.copyHeaders")
|
|
443
433
|
}
|
|
444
434
|
),
|
|
445
|
-
ie(
|
|
435
|
+
ie(ge, tt)
|
|
446
436
|
] })
|
|
447
437
|
]
|
|
448
438
|
}
|
|
449
|
-
), z = p !== void 0,
|
|
439
|
+
), z = p !== void 0, Bt = o(w ? "workflowWebhookAction.secretSavedDescription" : "workflowWebhookAction.secretDescription");
|
|
450
440
|
return /* @__PURE__ */ d(
|
|
451
441
|
"div",
|
|
452
442
|
{
|
|
453
|
-
ref:
|
|
454
|
-
...
|
|
443
|
+
ref: wt,
|
|
444
|
+
...Ve,
|
|
455
445
|
"data-component": "workflow-webhook-action",
|
|
456
446
|
"data-layout": te ? "two-column" : "one-column",
|
|
457
|
-
className:
|
|
447
|
+
className: Ut({ className: Ze }),
|
|
458
448
|
children: [
|
|
459
449
|
s ? /* @__PURE__ */ n(
|
|
460
450
|
"div",
|
|
@@ -464,33 +454,33 @@ ${se}`, $e = i(X);
|
|
|
464
454
|
children: s
|
|
465
455
|
}
|
|
466
456
|
) : null,
|
|
467
|
-
/* @__PURE__ */ n("p", { className:
|
|
457
|
+
/* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.intro") }),
|
|
468
458
|
/* @__PURE__ */ n(
|
|
469
|
-
|
|
459
|
+
J,
|
|
470
460
|
{
|
|
471
461
|
label: o("workflowWebhookAction.url"),
|
|
472
462
|
description: o("workflowWebhookAction.urlDescription"),
|
|
473
463
|
required: !0,
|
|
474
|
-
error:
|
|
464
|
+
error: gt,
|
|
475
465
|
announceError: _,
|
|
476
466
|
"data-field": "url",
|
|
477
467
|
children: /* @__PURE__ */ n(
|
|
478
|
-
|
|
468
|
+
ue,
|
|
479
469
|
{
|
|
480
|
-
ref:
|
|
470
|
+
ref: xe,
|
|
481
471
|
name: z ? p.url : void 0,
|
|
482
472
|
dir: "ltr",
|
|
483
473
|
inputMode: "url",
|
|
484
474
|
autoComplete: "off",
|
|
485
475
|
spellCheck: !1,
|
|
486
|
-
maxLength:
|
|
476
|
+
maxLength: Vt,
|
|
487
477
|
placeholder: "https://",
|
|
488
478
|
value: y,
|
|
489
479
|
onChange: (e) => {
|
|
490
|
-
|
|
480
|
+
nt(e.target.value), T("url");
|
|
491
481
|
},
|
|
492
482
|
onBlur: (e) => {
|
|
493
|
-
e.target.value !== "" &&
|
|
483
|
+
e.target.value !== "" && R("url");
|
|
494
484
|
}
|
|
495
485
|
}
|
|
496
486
|
)
|
|
@@ -503,88 +493,73 @@ ${se}`, $e = i(X);
|
|
|
503
493
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
504
494
|
children: [
|
|
505
495
|
/* @__PURE__ */ n(
|
|
506
|
-
|
|
496
|
+
J,
|
|
507
497
|
{
|
|
508
498
|
label: o("workflowWebhookAction.secret"),
|
|
509
|
-
description:
|
|
499
|
+
description: Bt,
|
|
510
500
|
...w ? { optional: !0 } : { required: !0 },
|
|
511
|
-
error:
|
|
501
|
+
error: vt,
|
|
512
502
|
announceError: _,
|
|
513
503
|
children: /* @__PURE__ */ n(
|
|
514
|
-
|
|
504
|
+
$t,
|
|
515
505
|
{
|
|
516
|
-
ref:
|
|
506
|
+
ref: M,
|
|
517
507
|
name: z ? p.secret : "",
|
|
518
508
|
dir: "ltr",
|
|
519
509
|
autoComplete: "new-password",
|
|
520
510
|
spellCheck: !1,
|
|
521
511
|
value: f,
|
|
522
512
|
onChange: (e) => {
|
|
523
|
-
|
|
513
|
+
rt(e.target.value), Ct(), T("secret");
|
|
524
514
|
},
|
|
525
515
|
onBlur: (e) => {
|
|
526
|
-
e.target.value !== "" &&
|
|
516
|
+
e.target.value !== "" && R("secret");
|
|
527
517
|
}
|
|
528
518
|
}
|
|
529
519
|
)
|
|
530
520
|
}
|
|
531
521
|
),
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
ue,
|
|
547
|
-
{
|
|
548
|
-
ref: Re,
|
|
549
|
-
type: "button",
|
|
550
|
-
intent: "outline",
|
|
551
|
-
size: "sm",
|
|
552
|
-
disabled: f === "",
|
|
553
|
-
startIcon: ae ? /* @__PURE__ */ n(Ze, {}) : He ? /* @__PURE__ */ n(he, {}) : /* @__PURE__ */ n(Ve, {}),
|
|
554
|
-
"data-action": "copy-secret",
|
|
555
|
-
"data-copied": ae ? "true" : void 0,
|
|
556
|
-
onClick: () => void Ot(),
|
|
557
|
-
children: o(ae ? "copyField.copied" : He ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
|
|
558
|
-
}
|
|
559
|
-
)
|
|
560
|
-
] })
|
|
522
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ n(
|
|
523
|
+
$e,
|
|
524
|
+
{
|
|
525
|
+
type: "button",
|
|
526
|
+
intent: "outline",
|
|
527
|
+
size: "sm",
|
|
528
|
+
disabled: f === "",
|
|
529
|
+
startIcon: ae ? /* @__PURE__ */ n(Je, {}) : De ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Ge, {}),
|
|
530
|
+
"data-action": "copy-secret",
|
|
531
|
+
"data-copied": ae ? "true" : void 0,
|
|
532
|
+
onClick: () => void Nt(),
|
|
533
|
+
children: o(ae ? "copyField.copied" : De ? "copyField.copyFailed" : "workflowWebhookAction.copySecret")
|
|
534
|
+
}
|
|
535
|
+
) })
|
|
561
536
|
]
|
|
562
537
|
}
|
|
563
538
|
),
|
|
564
|
-
|
|
539
|
+
x ? /* @__PURE__ */ d(
|
|
565
540
|
"div",
|
|
566
541
|
{
|
|
567
542
|
"data-slot": "send-test",
|
|
568
543
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
569
544
|
children: [
|
|
570
|
-
/* @__PURE__ */ n("p", { id:
|
|
545
|
+
/* @__PURE__ */ n("p", { id: ye, className: W(), children: o("workflowWebhookAction.testDescription") }),
|
|
571
546
|
/* @__PURE__ */ n(
|
|
572
|
-
|
|
547
|
+
$e,
|
|
573
548
|
{
|
|
574
549
|
type: "button",
|
|
575
550
|
intent: "outline",
|
|
576
551
|
size: "sm",
|
|
577
|
-
startIcon: /* @__PURE__ */ n(
|
|
578
|
-
loading:
|
|
579
|
-
"aria-describedby":
|
|
552
|
+
startIcon: /* @__PURE__ */ n(zt, {}),
|
|
553
|
+
loading: Pe.kind === "sending",
|
|
554
|
+
"aria-describedby": ye,
|
|
580
555
|
className: "ds:self-start",
|
|
581
556
|
"data-action": "send-test",
|
|
582
|
-
onClick: () => void
|
|
557
|
+
onClick: () => void xt(),
|
|
583
558
|
children: o("workflowWebhookAction.sendTest")
|
|
584
559
|
}
|
|
585
560
|
),
|
|
586
561
|
(() => {
|
|
587
|
-
const e =
|
|
562
|
+
const e = qe(Pe);
|
|
588
563
|
return e ? /* @__PURE__ */ n(
|
|
589
564
|
U,
|
|
590
565
|
{
|
|
@@ -606,31 +581,31 @@ ${se}`, $e = i(X);
|
|
|
606
581
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
607
582
|
children: [
|
|
608
583
|
/* @__PURE__ */ n(
|
|
609
|
-
|
|
584
|
+
Ht,
|
|
610
585
|
{
|
|
611
|
-
ref:
|
|
586
|
+
ref: Ie,
|
|
612
587
|
name: z ? p.legalBasisConfirmed : void 0,
|
|
613
588
|
value: "1",
|
|
614
|
-
checked:
|
|
589
|
+
checked: E,
|
|
615
590
|
onCheckedChange: (e) => {
|
|
616
|
-
|
|
591
|
+
st(e === !0), T("legalBasisConfirmed");
|
|
617
592
|
},
|
|
618
593
|
"aria-required": "true",
|
|
619
594
|
"aria-invalid": H ? !0 : void 0,
|
|
620
|
-
"aria-describedby": H ?
|
|
595
|
+
"aria-describedby": H ? we : void 0,
|
|
621
596
|
label: o("workflowWebhookAction.legalBasis")
|
|
622
597
|
}
|
|
623
598
|
),
|
|
624
599
|
H ? /* @__PURE__ */ d(
|
|
625
600
|
"p",
|
|
626
601
|
{
|
|
627
|
-
id:
|
|
602
|
+
id: we,
|
|
628
603
|
role: _ ? "alert" : void 0,
|
|
629
604
|
"data-slot": "error",
|
|
630
|
-
className:
|
|
605
|
+
className: Yt(),
|
|
631
606
|
children: [
|
|
632
607
|
/* @__PURE__ */ n(
|
|
633
|
-
|
|
608
|
+
ke,
|
|
634
609
|
{
|
|
635
610
|
"aria-hidden": "true",
|
|
636
611
|
className: "ds:size-4 ds:shrink-0"
|
|
@@ -651,34 +626,34 @@ ${se}`, $e = i(X);
|
|
|
651
626
|
value: se
|
|
652
627
|
}
|
|
653
628
|
) : null,
|
|
654
|
-
/* @__PURE__ */ n("div", { "data-field": "parameters", "data-slot": "parameters", children: /* @__PURE__ */ n(
|
|
629
|
+
/* @__PURE__ */ n("div", { "data-field": "parameters", "data-slot": "parameters", children: /* @__PURE__ */ n(Xe, { variant: "elevated", children: /* @__PURE__ */ n(
|
|
655
630
|
k,
|
|
656
631
|
{
|
|
657
632
|
type: "single",
|
|
658
633
|
collapsible: !0,
|
|
659
|
-
value:
|
|
634
|
+
value: at ? "advanced" : "",
|
|
660
635
|
onValueChange: (e) => Y(e === "advanced"),
|
|
661
636
|
children: /* @__PURE__ */ d(k.Item, { value: "advanced", children: [
|
|
662
637
|
/* @__PURE__ */ n(k.Trigger, { "data-action": "toggle-advanced", children: /* @__PURE__ */ d("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
663
638
|
/* @__PURE__ */ n("span", { children: o("workflowWebhookAction.advanced") }),
|
|
664
|
-
g.length > 0 ? /* @__PURE__ */ n(
|
|
639
|
+
g.length > 0 ? /* @__PURE__ */ n(jt, { variant: "neutral", size: "md", children: o("workflowWebhookAction.parameterCount", {
|
|
665
640
|
total: g.length
|
|
666
641
|
}) }) : null
|
|
667
642
|
] }) }),
|
|
668
643
|
/* @__PURE__ */ n(k.Content, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
|
|
669
|
-
/* @__PURE__ */ n("p", { className:
|
|
670
|
-
|
|
644
|
+
/* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.advancedDescription") }),
|
|
645
|
+
O.parameters ? /* @__PURE__ */ n(
|
|
671
646
|
"div",
|
|
672
647
|
{
|
|
673
|
-
ref:
|
|
648
|
+
ref: Ne,
|
|
674
649
|
tabIndex: -1,
|
|
675
650
|
"data-slot": "error",
|
|
676
651
|
className: "ds:outline-none",
|
|
677
|
-
children: /* @__PURE__ */ n(U, { variant: "error", announce: "off", children: /* @__PURE__ */ n(U.Description, { children:
|
|
652
|
+
children: /* @__PURE__ */ n(U, { variant: "error", announce: "off", children: /* @__PURE__ */ n(U.Description, { children: O.parameters }) })
|
|
678
653
|
}
|
|
679
654
|
) : null,
|
|
680
655
|
/* @__PURE__ */ n(
|
|
681
|
-
|
|
656
|
+
_t,
|
|
682
657
|
{
|
|
683
658
|
legend: o("workflowWebhookAction.parametersLegend"),
|
|
684
659
|
items: b,
|
|
@@ -686,22 +661,22 @@ ${se}`, $e = i(X);
|
|
|
686
661
|
removeItemLabel: (e) => o("workflowWebhookAction.removeParameter", {
|
|
687
662
|
number: e + 1
|
|
688
663
|
}),
|
|
689
|
-
onAdd:
|
|
690
|
-
onRemove:
|
|
664
|
+
onAdd: It,
|
|
665
|
+
onRemove: Et,
|
|
691
666
|
renderItem: (e, t) => /* @__PURE__ */ d(
|
|
692
667
|
"div",
|
|
693
668
|
{
|
|
694
669
|
"data-parameter-id": e.key,
|
|
695
|
-
className:
|
|
670
|
+
className: Qt(),
|
|
696
671
|
children: [
|
|
697
672
|
/* @__PURE__ */ n(
|
|
698
|
-
|
|
673
|
+
J,
|
|
699
674
|
{
|
|
700
675
|
label: o("workflowWebhookAction.parameterName"),
|
|
701
|
-
error:
|
|
676
|
+
error: yt(e.key),
|
|
702
677
|
announceError: _,
|
|
703
678
|
children: /* @__PURE__ */ n(
|
|
704
|
-
|
|
679
|
+
ue,
|
|
705
680
|
{
|
|
706
681
|
ref: (r) => {
|
|
707
682
|
r && Z.current.set(e.key, r);
|
|
@@ -715,20 +690,20 @@ ${se}`, $e = i(X);
|
|
|
715
690
|
spellCheck: !1,
|
|
716
691
|
value: e.name,
|
|
717
692
|
onChange: (r) => le(e.key, { name: r.target.value }),
|
|
718
|
-
onBlur: () =>
|
|
693
|
+
onBlur: () => R(`parameter:${e.key}`)
|
|
719
694
|
}
|
|
720
695
|
)
|
|
721
696
|
}
|
|
722
697
|
),
|
|
723
698
|
/* @__PURE__ */ n(
|
|
724
|
-
|
|
699
|
+
J,
|
|
725
700
|
{
|
|
726
701
|
label: o("workflowWebhookAction.parameterValue"),
|
|
727
702
|
children: /* @__PURE__ */ n(
|
|
728
|
-
|
|
703
|
+
ue,
|
|
729
704
|
{
|
|
730
705
|
ref: (r) => {
|
|
731
|
-
r &&
|
|
706
|
+
r && j.current.set(e.key, r);
|
|
732
707
|
},
|
|
733
708
|
"aria-label": o(
|
|
734
709
|
"workflowWebhookAction.parameterValueOf",
|
|
@@ -745,17 +720,17 @@ ${se}`, $e = i(X);
|
|
|
745
720
|
)
|
|
746
721
|
}
|
|
747
722
|
),
|
|
748
|
-
|
|
749
|
-
|
|
723
|
+
I.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:sm:col-span-2", children: /* @__PURE__ */ n(
|
|
724
|
+
Xt,
|
|
750
725
|
{
|
|
751
|
-
tokens:
|
|
726
|
+
tokens: I.map((r) => ({
|
|
752
727
|
value: r.value,
|
|
753
728
|
label: r.label
|
|
754
729
|
})),
|
|
755
730
|
triggerLabel: o(
|
|
756
731
|
"workflowWebhookAction.insertDetail"
|
|
757
732
|
),
|
|
758
|
-
onInsert: (r) =>
|
|
733
|
+
onInsert: (r) => Ot(e, r)
|
|
759
734
|
}
|
|
760
735
|
) }) : null
|
|
761
736
|
]
|
|
@@ -763,19 +738,19 @@ ${se}`, $e = i(X);
|
|
|
763
738
|
)
|
|
764
739
|
}
|
|
765
740
|
),
|
|
766
|
-
|
|
741
|
+
I.length > 0 ? /* @__PURE__ */ d("div", { className: me(), children: [
|
|
767
742
|
/* @__PURE__ */ n(
|
|
768
743
|
"h4",
|
|
769
744
|
{
|
|
770
|
-
id:
|
|
771
|
-
className:
|
|
745
|
+
id: ve,
|
|
746
|
+
className: fe(),
|
|
772
747
|
children: o("workflowWebhookAction.variablesHeading")
|
|
773
748
|
}
|
|
774
749
|
),
|
|
775
|
-
/* @__PURE__ */ n("p", { className:
|
|
750
|
+
/* @__PURE__ */ n("p", { className: W(), children: o("workflowWebhookAction.variablesDescription") }),
|
|
776
751
|
ie(
|
|
777
|
-
|
|
778
|
-
|
|
752
|
+
ve,
|
|
753
|
+
I.map(
|
|
779
754
|
(e) => [e.value, e.label]
|
|
780
755
|
),
|
|
781
756
|
3
|
|
@@ -785,18 +760,18 @@ ${se}`, $e = i(X);
|
|
|
785
760
|
] })
|
|
786
761
|
}
|
|
787
762
|
) }) }),
|
|
788
|
-
/* @__PURE__ */ n("div", { "data-slot": "reference", children: /* @__PURE__ */ n(
|
|
763
|
+
/* @__PURE__ */ n("div", { "data-slot": "reference", children: /* @__PURE__ */ n(Xe, { variant: "elevated", children: /* @__PURE__ */ n(k, { type: "single", collapsible: !0, children: /* @__PURE__ */ d(k.Item, { value: "reference", children: [
|
|
789
764
|
/* @__PURE__ */ n(k.Trigger, { "data-action": "toggle-reference", children: /* @__PURE__ */ n("span", { children: o("workflowWebhookAction.sentHeading") }) }),
|
|
790
|
-
/* @__PURE__ */ n(k.Content, { children:
|
|
765
|
+
/* @__PURE__ */ n(k.Content, { children: Ft })
|
|
791
766
|
] }) }) }) }),
|
|
792
767
|
/* @__PURE__ */ n(
|
|
793
768
|
"span",
|
|
794
769
|
{
|
|
795
|
-
ref:
|
|
770
|
+
ref: Ee,
|
|
796
771
|
role: "status",
|
|
797
772
|
"aria-live": "polite",
|
|
798
773
|
className: "ds:sr-only",
|
|
799
|
-
children:
|
|
774
|
+
children: dt
|
|
800
775
|
}
|
|
801
776
|
)
|
|
802
777
|
]
|
|
@@ -804,9 +779,9 @@ ${se}`, $e = i(X);
|
|
|
804
779
|
);
|
|
805
780
|
}
|
|
806
781
|
);
|
|
807
|
-
|
|
782
|
+
ao.displayName = "WorkflowWebhookAction";
|
|
808
783
|
export {
|
|
809
|
-
|
|
810
|
-
|
|
784
|
+
To as W,
|
|
785
|
+
ao as a
|
|
811
786
|
};
|
|
812
|
-
//# sourceMappingURL=workflow-webhook-action-
|
|
787
|
+
//# sourceMappingURL=workflow-webhook-action-Cae02r_4.js.map
|