+
+
+ {req.label ? : null}
+ {typeof once === 'boolean' ? (
+
+ ) : null}
+ {regId ? (
+
+
+ id
+
+
+ {shortenId(regId)}
+
+
+ ) : null}
+
+
+
+
+ {req.trigger_type}
+
+ →
+ {req.function_id ? (
+
+ {req.function_id}
+
+ ) : (
+
+ notify session
+
+ )}
+
+
+ {hasStateChips ? (
+
+ {stateCfg?.scope ? (
+
+ ) : null}
+ {stateCfg?.key ? (
+
+ ) : null}
+ {stateCfg?.condition_function_id ? (
+
+ ) : null}
+
+ ) : req.config !== undefined && !isEmpty(req.config) ? (
+
+ ) : null}
+
+ {react ? (
+ <>
+
+
+ {allow?.length
+ ? Array.from(new Set(allow)).map((fn) => (
+
+ {fn}
+
+ ))
+ : null}
+
+ {react.join ? (
+
+
+ join
+
+ {react.join.id}
+ ·
+
+ key {react.join.key}
+
+ ·
+
+ expect{' '}
+
+ [{react.join.expect.join(', ')}]
+
+
+ {react.join.rearm ? (
+ <>
+ ·
+ rearm
+ >
+ ) : null}
+
+ ) : null}
+
+ >
+ ) : req.metadata !== undefined ? (
+
+ ) : null}
+
+ )
+}
+
+function isEmpty(v: unknown): boolean {
+ if (v === null || v === undefined) return true
+ if (typeof v === 'object') {
+ return Object.keys(v as Record