@wallarm-org/design-system 4.7.0 → 4.8.0-rc-feat-parser.1

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.
Files changed (120) hide show
  1. package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  2. package/dist/components/DropdownMenu/DropdownMenu.js +84 -71
  3. package/dist/components/DropdownMenu/DropdownMenuItemDescription.js +1 -1
  4. package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.js +1 -1
  5. package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.d.ts +14 -0
  6. package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.js +209 -0
  7. package/dist/components/Rules/PointSelector/MatchStep.d.ts +15 -0
  8. package/dist/components/Rules/PointSelector/MatchStep.js +186 -0
  9. package/dist/components/Rules/PointSelector/MenuFooterHints.d.ts +16 -0
  10. package/dist/components/Rules/PointSelector/MenuFooterHints.js +177 -0
  11. package/dist/components/Rules/PointSelector/PointPreview.d.ts +10 -0
  12. package/dist/components/Rules/PointSelector/PointPreview.js +88 -0
  13. package/dist/components/Rules/PointSelector/PointSelector.d.ts +17 -0
  14. package/dist/components/Rules/PointSelector/PointSelector.js +937 -0
  15. package/dist/components/Rules/PointSelector/PointSelectorEmptyState.d.ts +12 -0
  16. package/dist/components/Rules/PointSelector/PointSelectorEmptyState.js +173 -0
  17. package/dist/components/Rules/PointSelector/PointSelectorError.d.ts +31 -0
  18. package/dist/components/Rules/PointSelector/PointSelectorError.js +275 -0
  19. package/dist/components/Rules/PointSelector/PointSelectorInput.d.ts +20 -0
  20. package/dist/components/Rules/PointSelector/PointSelectorInput.js +130 -0
  21. package/dist/components/Rules/PointSelector/PointSelectorMenu.d.ts +31 -0
  22. package/dist/components/Rules/PointSelector/PointSelectorMenu.js +317 -0
  23. package/dist/components/Rules/PointSelector/PointSelectorSkeleton.d.ts +8 -0
  24. package/dist/components/Rules/PointSelector/PointSelectorSkeleton.js +73 -0
  25. package/dist/components/Rules/PointSelector/SampleRequest.d.ts +14 -0
  26. package/dist/components/Rules/PointSelector/SampleRequest.js +116 -0
  27. package/dist/components/Rules/PointSelector/StepMenu.d.ts +40 -0
  28. package/dist/components/Rules/PointSelector/StepMenu.js +210 -0
  29. package/dist/components/Rules/PointSelector/VersionWarning.d.ts +26 -0
  30. package/dist/components/Rules/PointSelector/VersionWarning.js +231 -0
  31. package/dist/components/Rules/PointSelector/WhereBar.d.ts +48 -0
  32. package/dist/components/Rules/PointSelector/WhereBar.js +263 -0
  33. package/dist/components/Rules/PointSelector/classes.d.ts +28 -0
  34. package/dist/components/Rules/PointSelector/classes.js +22 -0
  35. package/dist/components/Rules/PointSelector/index.d.ts +20 -0
  36. package/dist/components/Rules/PointSelector/index.js +18 -0
  37. package/dist/components/Rules/PointSelector/liftLayer.d.ts +8 -0
  38. package/dist/components/Rules/PointSelector/liftLayer.js +4 -0
  39. package/dist/components/Rules/PointSelector/sampleValue.d.ts +6 -0
  40. package/dist/components/Rules/PointSelector/sampleValue.js +51 -0
  41. package/dist/components/Rules/PointSelector/sdkBridge.d.ts +508 -0
  42. package/dist/components/Rules/PointSelector/sdkBridge.js +339 -0
  43. package/dist/components/Rules/PointSelector/types.d.ts +304 -0
  44. package/dist/components/Rules/PointSelector/types.js +0 -0
  45. package/dist/components/Rules/PointSelector/usePointSelector.d.ts +161 -0
  46. package/dist/components/Rules/PointSelector/usePointSelector.js +1088 -0
  47. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.d.ts +28 -0
  48. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.js +208 -0
  49. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.d.ts +23 -0
  50. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.js +950 -0
  51. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.d.ts +21 -0
  52. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.js +110 -0
  53. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.d.ts +20 -0
  54. package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.js +31 -0
  55. package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.d.ts +23 -0
  56. package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.js +131 -0
  57. package/dist/components/Rules/RuleBuilder/ActionEditor/classes.d.ts +17 -0
  58. package/dist/components/Rules/RuleBuilder/ActionEditor/classes.js +14 -0
  59. package/dist/components/Rules/RuleBuilder/ActionEditor/index.d.ts +6 -0
  60. package/dist/components/Rules/RuleBuilder/ActionEditor/index.js +6 -0
  61. package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.d.ts +24 -0
  62. package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.js +245 -0
  63. package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.d.ts +15 -0
  64. package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.js +691 -0
  65. package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.d.ts +19 -0
  66. package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.js +72 -0
  67. package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.d.ts +27 -0
  68. package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.js +407 -0
  69. package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.d.ts +14 -0
  70. package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.js +269 -0
  71. package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.d.ts +25 -0
  72. package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.js +99 -0
  73. package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.d.ts +14 -0
  74. package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.js +118 -0
  75. package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.d.ts +14 -0
  76. package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.js +446 -0
  77. package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.d.ts +14 -0
  78. package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.js +266 -0
  79. package/dist/components/Rules/RuleBuilder/ConditionTree/classes.d.ts +35 -0
  80. package/dist/components/Rules/RuleBuilder/ConditionTree/classes.js +57 -0
  81. package/dist/components/Rules/RuleBuilder/ConditionTree/index.d.ts +15 -0
  82. package/dist/components/Rules/RuleBuilder/ConditionTree/index.js +10 -0
  83. package/dist/components/Rules/RuleBuilder/RuleBuilder.d.ts +67 -0
  84. package/dist/components/Rules/RuleBuilder/RuleBuilder.js +366 -0
  85. package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.d.ts +32 -0
  86. package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.js +420 -0
  87. package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.d.ts +27 -0
  88. package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.js +446 -0
  89. package/dist/components/Rules/RuleBuilder/Summary/index.d.ts +7 -0
  90. package/dist/components/Rules/RuleBuilder/Summary/index.js +2 -0
  91. package/dist/components/Rules/RuleBuilder/classes.d.ts +19 -0
  92. package/dist/components/Rules/RuleBuilder/classes.js +18 -0
  93. package/dist/components/Rules/RuleBuilder/index.d.ts +55 -0
  94. package/dist/components/Rules/RuleBuilder/index.js +11 -0
  95. package/dist/components/Rules/RuleBuilder/models/actionModel.d.ts +31 -0
  96. package/dist/components/Rules/RuleBuilder/models/actionModel.js +276 -0
  97. package/dist/components/Rules/RuleBuilder/models/conditionModel.d.ts +95 -0
  98. package/dist/components/Rules/RuleBuilder/models/conditionModel.js +418 -0
  99. package/dist/components/Rules/RuleBuilder/models/index.d.ts +3 -0
  100. package/dist/components/Rules/RuleBuilder/models/index.js +3 -0
  101. package/dist/components/Rules/RuleBuilder/models/validation.d.ts +176 -0
  102. package/dist/components/Rules/RuleBuilder/models/validation.js +242 -0
  103. package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.d.ts +27 -0
  104. package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.js +92 -0
  105. package/dist/components/Rules/RuleBuilder/shared/index.d.ts +1 -0
  106. package/dist/components/Rules/RuleBuilder/shared/index.js +1 -0
  107. package/dist/components/Rules/RuleBuilder/types.d.ts +384 -0
  108. package/dist/components/Rules/RuleBuilder/types.js +0 -0
  109. package/dist/components/Rules/RuleBuilder/utils/constants.d.ts +65 -0
  110. package/dist/components/Rules/RuleBuilder/utils/constants.js +356 -0
  111. package/dist/components/Rules/RuleBuilder/utils/extractBindings.d.ts +48 -0
  112. package/dist/components/Rules/RuleBuilder/utils/extractBindings.js +42 -0
  113. package/dist/components/Rules/RuleBuilder/utils/helpers.d.ts +92 -0
  114. package/dist/components/Rules/RuleBuilder/utils/helpers.js +54 -0
  115. package/dist/components/Rules/RuleBuilder/utils/index.d.ts +2 -0
  116. package/dist/components/Rules/RuleBuilder/utils/index.js +2 -0
  117. package/dist/index.d.ts +2 -0
  118. package/dist/index.js +2 -0
  119. package/dist/metadata/components.json +100 -2
  120. package/package.json +4 -1
@@ -0,0 +1,937 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
3
+ import { useEffect, useId, useRef, useState } from "react";
4
+ import { useProton } from "@wallarm-org/rules-lib";
5
+ import { TestIdProvider } from "../../../utils/testId.js";
6
+ import { Alert, AlertClose, AlertContent, AlertDescription, AlertIcon, AlertTitle } from "../../Alert/index.js";
7
+ import { Button } from "../../Button/index.js";
8
+ import { Checkbox, CheckboxIndicator, CheckboxLabel } from "../../Checkbox/index.js";
9
+ import { DropdownMenuInput } from "../../DropdownMenu/index.js";
10
+ import { SegmentedTabs, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsTrigger } from "../../SegmentedTabs/index.js";
11
+ import { Text } from "../../Text/index.js";
12
+ import { KeyboardShortcutsDialog } from "./KeyboardShortcutsDialog.js";
13
+ import { MatchStep } from "./MatchStep.js";
14
+ import { PointSelectorError } from "./PointSelectorError.js";
15
+ import { PointSelectorSkeleton } from "./PointSelectorSkeleton.js";
16
+ import { SampleRequest } from "./SampleRequest.js";
17
+ import { StepMenu } from "./StepMenu.js";
18
+ import { sampleValueOf } from "./sampleValue.js";
19
+ import { checkPoint, getVersion, needsRecanonalization } from "./sdkBridge.js";
20
+ import { usePointSelector } from "./usePointSelector.js";
21
+ import { VersionWarning } from "./VersionWarning.js";
22
+ import { WhereBar } from "./WhereBar.js";
23
+ const getProfileDescription = (profile)=>{
24
+ switch(profile){
25
+ case "tree":
26
+ return "What can exist in traffic (wildcards, containers OK)";
27
+ case "value":
28
+ return "Single readable value (no wildcards, no containers)";
29
+ case "grammar":
30
+ return "Pure syntax check (allows impossible points)";
31
+ default:
32
+ return "What can exist in traffic";
33
+ }
34
+ };
35
+ const PointSelector = (props)=>{
36
+ const $ = c(200);
37
+ const { "data-testid": testId } = props;
38
+ const protonResult = useProton();
39
+ const proton = protonResult ? protonResult[0] : null;
40
+ const sdkLoadError = protonResult ? protonResult[1] : null;
41
+ let t0;
42
+ if ($[0] !== protonResult) {
43
+ t0 = protonResult ? protonResult[2] : _temp;
44
+ $[0] = protonResult;
45
+ $[1] = t0;
46
+ } else t0 = $[1];
47
+ const retryLoadingSdk = t0;
48
+ const [showKeyboardHelp, setShowKeyboardHelp] = useState(false);
49
+ const currentProfile = props.profile ?? "tree";
50
+ let t1;
51
+ if ($[2] !== props || $[3] !== proton) {
52
+ t1 = (newProfile)=>{
53
+ const profile = newProfile;
54
+ props.onProfileChange?.(profile);
55
+ if (!proton || !props.value.canonical) return;
56
+ const result = checkPoint(proton, props.value.canonical, {
57
+ context: props.context,
58
+ profile
59
+ });
60
+ if (result.canonical) props.onChange({
61
+ ...props.value,
62
+ canonical: result.canonical,
63
+ canonicalVersion: proton.version().canonical
64
+ });
65
+ };
66
+ $[2] = props;
67
+ $[3] = proton;
68
+ $[4] = t1;
69
+ } else t1 = $[4];
70
+ const handleProfileChange = t1;
71
+ let t2;
72
+ if ($[5] !== proton) {
73
+ t2 = getVersion(proton);
74
+ $[5] = proton;
75
+ $[6] = t2;
76
+ } else t2 = $[6];
77
+ const sdkVersion = t2;
78
+ let t3;
79
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
80
+ t3 = ()=>setShowKeyboardHelp(true);
81
+ $[7] = t3;
82
+ } else t3 = $[7];
83
+ let t4;
84
+ if ($[8] !== props.context || $[9] !== props.initialStage || $[10] !== props.keys || $[11] !== props.keysDebounceMs || $[12] !== props.onChange || $[13] !== props.pointOnly || $[14] !== props.profile || $[15] !== props.value || $[16] !== proton) {
85
+ t4 = {
86
+ context: props.context,
87
+ value: props.value,
88
+ onChange: props.onChange,
89
+ initialStage: props.initialStage,
90
+ pointOnly: props.pointOnly,
91
+ profile: props.profile,
92
+ keys: props.keys,
93
+ keysDebounceMs: props.keysDebounceMs,
94
+ proton,
95
+ onShowKeyboardHelp: t3
96
+ };
97
+ $[8] = props.context;
98
+ $[9] = props.initialStage;
99
+ $[10] = props.keys;
100
+ $[11] = props.keysDebounceMs;
101
+ $[12] = props.onChange;
102
+ $[13] = props.pointOnly;
103
+ $[14] = props.profile;
104
+ $[15] = props.value;
105
+ $[16] = proton;
106
+ $[17] = t4;
107
+ } else t4 = $[17];
108
+ const model = usePointSelector(t4);
109
+ const { ui, actions, keys } = model;
110
+ const barRef = useRef(null);
111
+ const barInputRef = useRef(null);
112
+ const nameInputRef = useRef(null);
113
+ const nextRef = useRef(null);
114
+ const conditionInputRef = useRef(null);
115
+ const valueInputRef = useRef(null);
116
+ const conditionChipRef = useRef(null);
117
+ const menuId = useId();
118
+ let t5;
119
+ if ($[18] !== actions?.setQuery) {
120
+ t5 = actions?.setQuery ?? _temp2;
121
+ $[18] = actions?.setQuery;
122
+ $[19] = t5;
123
+ } else t5 = $[19];
124
+ let t6;
125
+ if ($[20] !== actions?.toggleNameCase) {
126
+ t6 = actions?.toggleNameCase ?? _temp3;
127
+ $[20] = actions?.toggleNameCase;
128
+ $[21] = t6;
129
+ } else t6 = $[21];
130
+ let t7;
131
+ if ($[22] !== actions?.closeMenu) {
132
+ t7 = actions?.closeMenu ?? _temp4;
133
+ $[22] = actions?.closeMenu;
134
+ $[23] = t7;
135
+ } else t7 = $[23];
136
+ let t8;
137
+ if ($[24] !== actions?.applyFix) {
138
+ t8 = actions?.applyFix ?? _temp5;
139
+ $[24] = actions?.applyFix;
140
+ $[25] = t8;
141
+ } else t8 = $[25];
142
+ let t9;
143
+ if ($[26] !== actions?.clearSdkError) {
144
+ t9 = actions?.clearSdkError ?? _temp6;
145
+ $[26] = actions?.clearSdkError;
146
+ $[27] = t9;
147
+ } else t9 = $[27];
148
+ let t10;
149
+ if ($[28] !== actions?.clearCanonicalInfo) {
150
+ t10 = actions?.clearCanonicalInfo ?? _temp7;
151
+ $[28] = actions?.clearCanonicalInfo;
152
+ $[29] = t10;
153
+ } else t10 = $[29];
154
+ let t11;
155
+ if ($[30] !== actions?.goMatch) {
156
+ t11 = actions?.goMatch ?? _temp8;
157
+ $[30] = actions?.goMatch;
158
+ $[31] = t11;
159
+ } else t11 = $[31];
160
+ let t12;
161
+ if ($[32] !== actions?.editPoint) {
162
+ t12 = actions?.editPoint ?? _temp9;
163
+ $[32] = actions?.editPoint;
164
+ $[33] = t12;
165
+ } else t12 = $[33];
166
+ let t13;
167
+ if ($[34] !== actions?.openMenu) {
168
+ t13 = actions?.openMenu ?? _temp10;
169
+ $[34] = actions?.openMenu;
170
+ $[35] = t13;
171
+ } else t13 = $[35];
172
+ let t14;
173
+ if ($[36] !== actions?.truncateTo) {
174
+ t14 = actions?.truncateTo ?? _temp11;
175
+ $[36] = actions?.truncateTo;
176
+ $[37] = t14;
177
+ } else t14 = $[37];
178
+ let t15;
179
+ if ($[38] !== actions?.applyPick) {
180
+ t15 = actions?.applyPick ?? _temp12;
181
+ $[38] = actions?.applyPick;
182
+ $[39] = t15;
183
+ } else t15 = $[39];
184
+ let t16;
185
+ if ($[40] !== actions?.highlight) {
186
+ t16 = actions?.highlight ?? _temp13;
187
+ $[40] = actions?.highlight;
188
+ $[41] = t16;
189
+ } else t16 = $[41];
190
+ let t17;
191
+ if ($[42] !== actions?.chooseRow) {
192
+ t17 = actions?.chooseRow ?? _temp14;
193
+ $[42] = actions?.chooseRow;
194
+ $[43] = t17;
195
+ } else t17 = $[43];
196
+ let t18;
197
+ if ($[44] !== t10 || $[45] !== t11 || $[46] !== t12 || $[47] !== t13 || $[48] !== t14 || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 || $[52] !== t5 || $[53] !== t6 || $[54] !== t7 || $[55] !== t8 || $[56] !== t9) {
198
+ t18 = {
199
+ setQuery: t5,
200
+ toggleNameCase: t6,
201
+ closeMenu: t7,
202
+ applyFix: t8,
203
+ clearSdkError: t9,
204
+ clearCanonicalInfo: t10,
205
+ goMatch: t11,
206
+ editPoint: t12,
207
+ openMenu: t13,
208
+ truncateTo: t14,
209
+ applyPick: t15,
210
+ highlight: t16,
211
+ chooseRow: t17
212
+ };
213
+ $[44] = t10;
214
+ $[45] = t11;
215
+ $[46] = t12;
216
+ $[47] = t13;
217
+ $[48] = t14;
218
+ $[49] = t15;
219
+ $[50] = t16;
220
+ $[51] = t17;
221
+ $[52] = t5;
222
+ $[53] = t6;
223
+ $[54] = t7;
224
+ $[55] = t8;
225
+ $[56] = t9;
226
+ $[57] = t18;
227
+ } else t18 = $[57];
228
+ const safeActions = t18;
229
+ let t19;
230
+ if ($[58] !== keys?.handleNameKey) {
231
+ t19 = keys?.handleNameKey ?? _temp15;
232
+ $[58] = keys?.handleNameKey;
233
+ $[59] = t19;
234
+ } else t19 = $[59];
235
+ let t20;
236
+ if ($[60] !== keys?.handleBarKey) {
237
+ t20 = keys?.handleBarKey ?? _temp16;
238
+ $[60] = keys?.handleBarKey;
239
+ $[61] = t20;
240
+ } else t20 = $[61];
241
+ let t21;
242
+ if ($[62] !== t19 || $[63] !== t20) {
243
+ t21 = {
244
+ handleNameKey: t19,
245
+ handleBarKey: t20
246
+ };
247
+ $[62] = t19;
248
+ $[63] = t20;
249
+ $[64] = t21;
250
+ } else t21 = $[64];
251
+ const safeKeys = t21;
252
+ let t22;
253
+ if ($[65] !== props || $[66] !== proton) {
254
+ t22 = ()=>{
255
+ if (!proton || !props.value.canonical) return;
256
+ const currentVersion = proton.version().canonical;
257
+ if (!needsRecanonalization(currentVersion, props.value.canonicalVersion ?? void 0)) return;
258
+ const result_0 = checkPoint(proton, props.value.canonical, {
259
+ context: props.context,
260
+ profile: props.profile
261
+ });
262
+ if (result_0.canonical && result_0.canonical !== props.value.canonical) {
263
+ console.info("Point re-canonicalized due to SDK version change", {
264
+ old: props.value.canonical,
265
+ new: result_0.canonical,
266
+ oldVersion: props.value.canonicalVersion,
267
+ newVersion: currentVersion
268
+ });
269
+ props.onChange({
270
+ ...props.value,
271
+ canonical: result_0.canonical,
272
+ canonicalVersion: currentVersion
273
+ });
274
+ }
275
+ };
276
+ $[65] = props;
277
+ $[66] = proton;
278
+ $[67] = t22;
279
+ } else t22 = $[67];
280
+ let t23;
281
+ if ($[68] !== props.value.canonical || $[69] !== props.value.canonicalVersion || $[70] !== proton) {
282
+ t23 = [
283
+ proton,
284
+ props.value.canonical,
285
+ props.value.canonicalVersion
286
+ ];
287
+ $[68] = props.value.canonical;
288
+ $[69] = props.value.canonicalVersion;
289
+ $[70] = proton;
290
+ $[71] = t23;
291
+ } else t23 = $[71];
292
+ useEffect(t22, t23);
293
+ let t24;
294
+ if ($[72] !== props.value.segments || $[73] !== ui.focusTarget || $[74] !== ui.focusTick) {
295
+ t24 = ()=>{
296
+ if (0 === ui.focusTick && "bar" === ui.focusTarget && props.value.segments.length > 0) return;
297
+ const targets = {
298
+ bar: barInputRef,
299
+ name: nameInputRef,
300
+ next: nextRef,
301
+ condition: conditionInputRef,
302
+ value: valueInputRef,
303
+ conditionChip: conditionChipRef
304
+ };
305
+ const id = requestAnimationFrame(()=>targets[ui.focusTarget].current?.focus());
306
+ return ()=>cancelAnimationFrame(id);
307
+ };
308
+ $[72] = props.value.segments;
309
+ $[73] = ui.focusTarget;
310
+ $[74] = ui.focusTick;
311
+ $[75] = t24;
312
+ } else t24 = $[75];
313
+ let t25;
314
+ if ($[76] !== ui.focusTick) {
315
+ t25 = [
316
+ ui.focusTick
317
+ ];
318
+ $[76] = ui.focusTick;
319
+ $[77] = t25;
320
+ } else t25 = $[77];
321
+ useEffect(t24, t25);
322
+ const isTest = "u" > typeof process && "test" === process.env.NODE_ENV;
323
+ if (sdkLoadError && !isTest) {
324
+ let t26;
325
+ if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
326
+ t26 = /*#__PURE__*/ jsx(AlertIcon, {});
327
+ $[78] = t26;
328
+ } else t26 = $[78];
329
+ let t27;
330
+ if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
331
+ t27 = /*#__PURE__*/ jsx(AlertTitle, {
332
+ children: "Failed to load validation SDK"
333
+ });
334
+ $[79] = t27;
335
+ } else t27 = $[79];
336
+ let t28;
337
+ if ($[80] !== retryLoadingSdk) {
338
+ t28 = /*#__PURE__*/ jsx("div", {
339
+ className: "mt-8",
340
+ children: /*#__PURE__*/ jsx(Button, {
341
+ variant: "outline",
342
+ color: "neutral",
343
+ size: "small",
344
+ onClick: retryLoadingSdk,
345
+ children: "Retry"
346
+ })
347
+ });
348
+ $[80] = retryLoadingSdk;
349
+ $[81] = t28;
350
+ } else t28 = $[81];
351
+ let t29;
352
+ if ($[82] !== sdkLoadError.message || $[83] !== t28) {
353
+ t29 = /*#__PURE__*/ jsxs(Alert, {
354
+ color: "destructive",
355
+ children: [
356
+ t26,
357
+ /*#__PURE__*/ jsxs(AlertContent, {
358
+ children: [
359
+ t27,
360
+ /*#__PURE__*/ jsxs(AlertDescription, {
361
+ children: [
362
+ sdkLoadError.message,
363
+ t28
364
+ ]
365
+ })
366
+ ]
367
+ })
368
+ ]
369
+ });
370
+ $[82] = sdkLoadError.message;
371
+ $[83] = t28;
372
+ $[84] = t29;
373
+ } else t29 = $[84];
374
+ let t30;
375
+ if ($[85] !== t29 || $[86] !== testId) {
376
+ t30 = /*#__PURE__*/ jsx("div", {
377
+ "data-slot": "point-selector",
378
+ "data-testid": testId,
379
+ children: t29
380
+ });
381
+ $[85] = t29;
382
+ $[86] = testId;
383
+ $[87] = t30;
384
+ } else t30 = $[87];
385
+ return t30;
386
+ }
387
+ if (!proton && !isTest) {
388
+ let t26;
389
+ if ($[88] !== testId) {
390
+ t26 = /*#__PURE__*/ jsx(PointSelectorSkeleton, {
391
+ "data-testid": testId
392
+ });
393
+ $[88] = testId;
394
+ $[89] = t26;
395
+ } else t26 = $[89];
396
+ return t26;
397
+ }
398
+ let t26;
399
+ if ($[90] !== safeActions) {
400
+ t26 = ()=>requestAnimationFrame(()=>{
401
+ const typing = [
402
+ barInputRef,
403
+ nameInputRef
404
+ ].some(_temp17);
405
+ if (!typing) safeActions.closeMenu();
406
+ });
407
+ $[90] = safeActions;
408
+ $[91] = t26;
409
+ } else t26 = $[91];
410
+ const handleMenuClose = t26;
411
+ let t27;
412
+ if ($[92] !== model.nameAllowsCase || $[93] !== model.nameInputPlaceholder || $[94] !== model.nameShowsStarHint || $[95] !== model.nameStep || $[96] !== safeActions || $[97] !== safeKeys.handleNameKey || $[98] !== ui.nameIgnoreCase || $[99] !== ui.query) {
413
+ t27 = model.nameStep ? /*#__PURE__*/ jsxs(Fragment, {
414
+ children: [
415
+ /*#__PURE__*/ jsx(DropdownMenuInput, {
416
+ ref: nameInputRef,
417
+ "aria-label": model.nameInputPlaceholder,
418
+ placeholder: model.nameInputPlaceholder,
419
+ value: ui.query,
420
+ spellCheck: false,
421
+ autoComplete: "off",
422
+ onChange: (e)=>safeActions.setQuery(e.target.value),
423
+ onKeyDown: safeKeys.handleNameKey
424
+ }),
425
+ (model.nameAllowsCase || model.nameShowsStarHint) && /*#__PURE__*/ jsxs("div", {
426
+ className: "flex items-center gap-12 px-8 pb-6",
427
+ children: [
428
+ model.nameAllowsCase && /*#__PURE__*/ jsx("span", {
429
+ className: "shrink-0 whitespace-nowrap",
430
+ children: /*#__PURE__*/ jsxs(Checkbox, {
431
+ checked: ui.nameIgnoreCase,
432
+ onCheckedChange: safeActions.toggleNameCase,
433
+ children: [
434
+ /*#__PURE__*/ jsx(CheckboxIndicator, {}),
435
+ /*#__PURE__*/ jsx(CheckboxLabel, {
436
+ children: "Ignore letter case (⌥C)"
437
+ })
438
+ ]
439
+ })
440
+ }),
441
+ model.nameShowsStarHint && /*#__PURE__*/ jsx(Text, {
442
+ size: "xs",
443
+ color: "secondary",
444
+ children: "* stands for any text: *user* is any name containing user"
445
+ })
446
+ ]
447
+ })
448
+ ]
449
+ }) : void 0;
450
+ $[92] = model.nameAllowsCase;
451
+ $[93] = model.nameInputPlaceholder;
452
+ $[94] = model.nameShowsStarHint;
453
+ $[95] = model.nameStep;
454
+ $[96] = safeActions;
455
+ $[97] = safeKeys.handleNameKey;
456
+ $[98] = ui.nameIgnoreCase;
457
+ $[99] = ui.query;
458
+ $[100] = t27;
459
+ } else t27 = $[100];
460
+ const nameHeader = t27;
461
+ let t28;
462
+ if ($[101] !== showKeyboardHelp) {
463
+ t28 = /*#__PURE__*/ jsx(KeyboardShortcutsDialog, {
464
+ open: showKeyboardHelp,
465
+ onOpenChange: setShowKeyboardHelp
466
+ });
467
+ $[101] = showKeyboardHelp;
468
+ $[102] = t28;
469
+ } else t28 = $[102];
470
+ let t29;
471
+ if ($[103] !== sdkVersion) {
472
+ t29 = /*#__PURE__*/ jsx(VersionWarning, {
473
+ version: sdkVersion
474
+ });
475
+ $[103] = sdkVersion;
476
+ $[104] = t29;
477
+ } else t29 = $[104];
478
+ let t30;
479
+ if ($[105] !== currentProfile || $[106] !== handleProfileChange || $[107] !== props.onProfileChange || $[108] !== testId) {
480
+ t30 = props.onProfileChange && /*#__PURE__*/ jsxs("div", {
481
+ className: "flex flex-col gap-8",
482
+ children: [
483
+ /*#__PURE__*/ jsx("div", {
484
+ className: "flex items-center justify-between",
485
+ children: /*#__PURE__*/ jsx(Text, {
486
+ size: "sm",
487
+ weight: "medium",
488
+ children: "Validation Profile"
489
+ })
490
+ }),
491
+ /*#__PURE__*/ jsxs(SegmentedTabs, {
492
+ value: currentProfile,
493
+ onChange: handleProfileChange,
494
+ "data-testid": testId ? `${testId}--profile-selector` : void 0,
495
+ children: [
496
+ /*#__PURE__*/ jsxs(SegmentedTabsList, {
497
+ children: [
498
+ /*#__PURE__*/ jsx(SegmentedTabsTrigger, {
499
+ value: "tree",
500
+ children: "Tree"
501
+ }),
502
+ /*#__PURE__*/ jsx(SegmentedTabsTrigger, {
503
+ value: "value",
504
+ children: "Value"
505
+ }),
506
+ /*#__PURE__*/ jsx(SegmentedTabsTrigger, {
507
+ value: "grammar",
508
+ children: "Grammar"
509
+ })
510
+ ]
511
+ }),
512
+ /*#__PURE__*/ jsx(SegmentedTabsContent, {
513
+ value: "tree",
514
+ children: /*#__PURE__*/ jsx("div", {
515
+ className: "py-8",
516
+ children: /*#__PURE__*/ jsx(Text, {
517
+ size: "sm",
518
+ color: "secondary",
519
+ children: getProfileDescription("tree")
520
+ })
521
+ })
522
+ }),
523
+ /*#__PURE__*/ jsx(SegmentedTabsContent, {
524
+ value: "value",
525
+ children: /*#__PURE__*/ jsx("div", {
526
+ className: "py-8",
527
+ children: /*#__PURE__*/ jsx(Text, {
528
+ size: "sm",
529
+ color: "secondary",
530
+ children: getProfileDescription("value")
531
+ })
532
+ })
533
+ }),
534
+ /*#__PURE__*/ jsx(SegmentedTabsContent, {
535
+ value: "grammar",
536
+ children: /*#__PURE__*/ jsx("div", {
537
+ className: "py-8",
538
+ children: /*#__PURE__*/ jsx(Text, {
539
+ size: "sm",
540
+ color: "secondary",
541
+ children: getProfileDescription("grammar")
542
+ })
543
+ })
544
+ })
545
+ ]
546
+ })
547
+ ]
548
+ });
549
+ $[105] = currentProfile;
550
+ $[106] = handleProfileChange;
551
+ $[107] = props.onProfileChange;
552
+ $[108] = testId;
553
+ $[109] = t30;
554
+ } else t30 = $[109];
555
+ let t31;
556
+ if ($[110] !== model.incomplete || $[111] !== model.sdkError || $[112] !== safeActions.applyFix || $[113] !== safeActions.clearSdkError) {
557
+ t31 = model.sdkError && /*#__PURE__*/ jsx(PointSelectorError, {
558
+ error: model.sdkError,
559
+ incomplete: model.incomplete,
560
+ onApplyFix: safeActions.applyFix,
561
+ onDismiss: safeActions.clearSdkError
562
+ });
563
+ $[110] = model.incomplete;
564
+ $[111] = model.sdkError;
565
+ $[112] = safeActions.applyFix;
566
+ $[113] = safeActions.clearSdkError;
567
+ $[114] = t31;
568
+ } else t31 = $[114];
569
+ let t32;
570
+ if ($[115] !== model.canonicalInfo || $[116] !== safeActions || $[117] !== testId) {
571
+ t32 = model.canonicalInfo && /*#__PURE__*/ jsxs(Alert, {
572
+ color: "info",
573
+ "data-testid": testId ? `${testId}--canonical-info` : void 0,
574
+ onKeyDown: (e_0)=>{
575
+ if ("Escape" === e_0.key) {
576
+ e_0.preventDefault();
577
+ safeActions.clearCanonicalInfo();
578
+ }
579
+ },
580
+ tabIndex: -1,
581
+ children: [
582
+ /*#__PURE__*/ jsx(AlertIcon, {}),
583
+ /*#__PURE__*/ jsxs(AlertContent, {
584
+ children: [
585
+ /*#__PURE__*/ jsx(AlertTitle, {
586
+ children: "Point Canonicalized"
587
+ }),
588
+ /*#__PURE__*/ jsx(AlertDescription, {
589
+ children: /*#__PURE__*/ jsxs("div", {
590
+ className: "space-y-8",
591
+ children: [
592
+ /*#__PURE__*/ jsx(Text, {
593
+ size: "sm",
594
+ children: "Your point was automatically normalized to its canonical form. This ensures consistency and helps detect duplicate rules."
595
+ }),
596
+ /*#__PURE__*/ jsxs("div", {
597
+ className: "rounded-8 bg-bg-surface-1 p-12 font-mono text-xs",
598
+ children: [
599
+ /*#__PURE__*/ jsx("div", {
600
+ className: "mb-4",
601
+ children: /*#__PURE__*/ jsx(Text, {
602
+ size: "xs",
603
+ weight: "medium",
604
+ color: "secondary",
605
+ children: "Your form:"
606
+ })
607
+ }),
608
+ /*#__PURE__*/ jsx("div", {
609
+ className: "mb-8 text-text-primary",
610
+ children: model.canonicalInfo.built
611
+ }),
612
+ /*#__PURE__*/ jsx("div", {
613
+ className: "mb-4",
614
+ children: /*#__PURE__*/ jsx(Text, {
615
+ size: "xs",
616
+ weight: "medium",
617
+ color: "secondary",
618
+ children: "Canonical form:"
619
+ })
620
+ }),
621
+ /*#__PURE__*/ jsx("div", {
622
+ className: "text-text-primary",
623
+ children: model.canonicalInfo.canonical
624
+ })
625
+ ]
626
+ })
627
+ ]
628
+ })
629
+ })
630
+ ]
631
+ }),
632
+ /*#__PURE__*/ jsx(AlertClose, {
633
+ onClick: safeActions.clearCanonicalInfo,
634
+ "aria-label": "Close (Esc)"
635
+ })
636
+ ]
637
+ });
638
+ $[115] = model.canonicalInfo;
639
+ $[116] = safeActions;
640
+ $[117] = testId;
641
+ $[118] = t32;
642
+ } else t32 = $[118];
643
+ const t33 = props.title ?? (props.pointOnly ? "Where?" : "1. Where is the value?");
644
+ let t34;
645
+ if ($[119] !== t33) {
646
+ t34 = /*#__PURE__*/ jsx(Text, {
647
+ size: "sm",
648
+ weight: "medium",
649
+ children: t33
650
+ });
651
+ $[119] = t33;
652
+ $[120] = t34;
653
+ } else t34 = $[120];
654
+ let t35;
655
+ if ($[121] !== model.canContinue || $[122] !== model.pointStage || $[123] !== props.pointOnly || $[124] !== safeActions.editPoint || $[125] !== safeActions.goMatch) {
656
+ t35 = props.pointOnly ? null : model.pointStage ? /*#__PURE__*/ jsx(Button, {
657
+ ref: nextRef,
658
+ variant: "primary",
659
+ color: "brand",
660
+ size: "medium",
661
+ disabled: !model.canContinue,
662
+ onClick: safeActions.goMatch,
663
+ children: "Next: set the condition"
664
+ }) : /*#__PURE__*/ jsx(Button, {
665
+ variant: "outline",
666
+ color: "neutral",
667
+ size: "medium",
668
+ onClick: safeActions.editPoint,
669
+ children: "Change where"
670
+ });
671
+ $[121] = model.canContinue;
672
+ $[122] = model.pointStage;
673
+ $[123] = props.pointOnly;
674
+ $[124] = safeActions.editPoint;
675
+ $[125] = safeActions.goMatch;
676
+ $[126] = t35;
677
+ } else t35 = $[126];
678
+ let t36;
679
+ if ($[127] !== t34 || $[128] !== t35) {
680
+ t36 = /*#__PURE__*/ jsxs("div", {
681
+ className: "flex items-center justify-between gap-12",
682
+ children: [
683
+ t34,
684
+ t35
685
+ ]
686
+ });
687
+ $[127] = t34;
688
+ $[128] = t35;
689
+ $[129] = t36;
690
+ } else t36 = $[129];
691
+ let t37;
692
+ if ($[130] !== props.context || $[131] !== props.pointOnly || $[132] !== props.value) {
693
+ t37 = props.value.segments.length > 0 && /*#__PURE__*/ jsx(SampleRequest, {
694
+ segments: props.value.segments,
695
+ context: props.context,
696
+ value: props.pointOnly ? void 0 : sampleValueOf(props.value)
697
+ });
698
+ $[130] = props.context;
699
+ $[131] = props.pointOnly;
700
+ $[132] = props.value;
701
+ $[133] = t37;
702
+ } else t37 = $[133];
703
+ const t38 = props.value.canonical ?? void 0;
704
+ const t39 = model.pointStage ? model.pendingLabel : "";
705
+ const t40 = model.pointStage && !model.nameStep;
706
+ const t41 = model.nameStep ? "" : ui.query;
707
+ const t42 = model.sdkError?.span;
708
+ const t43 = model.sdkError?.message;
709
+ let t44;
710
+ if ($[134] !== menuId || $[135] !== model.barPlaceholder || $[136] !== model.menuOpen || $[137] !== model.pointStage || $[138] !== props.value.segments || $[139] !== proton || $[140] !== safeActions.openMenu || $[141] !== safeActions.setQuery || $[142] !== safeActions.truncateTo || $[143] !== safeKeys.handleBarKey || $[144] !== t38 || $[145] !== t39 || $[146] !== t40 || $[147] !== t41 || $[148] !== t42 || $[149] !== t43) {
711
+ t44 = /*#__PURE__*/ jsx(WhereBar, {
712
+ barRef: barRef,
713
+ inputRef: barInputRef,
714
+ segments: props.value.segments,
715
+ proton: proton,
716
+ pointString: t38,
717
+ pendingLabel: t39,
718
+ showInput: t40,
719
+ editable: model.pointStage,
720
+ query: t41,
721
+ placeholder: model.barPlaceholder,
722
+ open: model.menuOpen,
723
+ menuId: menuId,
724
+ errorSpan: t42,
725
+ errorMessage: t43,
726
+ onQueryChange: safeActions.setQuery,
727
+ onKeyDown: safeKeys.handleBarKey,
728
+ onFocus: safeActions.openMenu,
729
+ onChipClick: safeActions.truncateTo
730
+ });
731
+ $[134] = menuId;
732
+ $[135] = model.barPlaceholder;
733
+ $[136] = model.menuOpen;
734
+ $[137] = model.pointStage;
735
+ $[138] = props.value.segments;
736
+ $[139] = proton;
737
+ $[140] = safeActions.openMenu;
738
+ $[141] = safeActions.setQuery;
739
+ $[142] = safeActions.truncateTo;
740
+ $[143] = safeKeys.handleBarKey;
741
+ $[144] = t38;
742
+ $[145] = t39;
743
+ $[146] = t40;
744
+ $[147] = t41;
745
+ $[148] = t42;
746
+ $[149] = t43;
747
+ $[150] = t44;
748
+ } else t44 = $[150];
749
+ const t45 = model.sentence ? `Reads as: ${model.sentence}` : "Nothing chosen yet.";
750
+ let t46;
751
+ if ($[151] !== t45) {
752
+ t46 = /*#__PURE__*/ jsx("div", {
753
+ role: "status",
754
+ "aria-live": "polite",
755
+ "aria-atomic": "true",
756
+ children: /*#__PURE__*/ jsx(Text, {
757
+ size: "sm",
758
+ color: "secondary",
759
+ children: t45
760
+ })
761
+ });
762
+ $[151] = t45;
763
+ $[152] = t46;
764
+ } else t46 = $[152];
765
+ const t47 = model.nameStep ? nameInputRef : barInputRef;
766
+ const t48 = model.highlightedId ?? null;
767
+ const t49 = model.menuFooter ?? "list";
768
+ const t50 = "list" === model.menuFooter ? "to close" : "to go back";
769
+ const t51 = model.applyLabel ?? void 0;
770
+ const t52 = 0 === ui.picked.length;
771
+ const t53 = "pick" === model.menuFooter ? safeActions.applyPick : void 0;
772
+ const t54 = 0 === props.value.segments.length && model.pointStage;
773
+ let t55;
774
+ if ($[153] !== props || $[154] !== proton || $[155] !== safeActions) {
775
+ t55 = (point)=>{
776
+ if (!proton) return void safeActions.openMenu();
777
+ try {
778
+ const segments = proton.point.parse(point);
779
+ props.onChange({
780
+ ...props.value,
781
+ segments,
782
+ canonical: point
783
+ });
784
+ safeActions.openMenu();
785
+ } catch {
786
+ safeActions.openMenu();
787
+ }
788
+ };
789
+ $[153] = props;
790
+ $[154] = proton;
791
+ $[155] = safeActions;
792
+ $[156] = t55;
793
+ } else t55 = $[156];
794
+ let t56;
795
+ if ($[157] !== handleMenuClose || $[158] !== menuId || $[159] !== model.menuOpen || $[160] !== model.menuTitle || $[161] !== model.rows || $[162] !== model.status || $[163] !== nameHeader || $[164] !== safeActions.chooseRow || $[165] !== safeActions.highlight || $[166] !== t47 || $[167] !== t48 || $[168] !== t49 || $[169] !== t50 || $[170] !== t51 || $[171] !== t52 || $[172] !== t53 || $[173] !== t54 || $[174] !== t55) {
796
+ t56 = /*#__PURE__*/ jsx(StepMenu, {
797
+ open: model.menuOpen,
798
+ contentId: menuId,
799
+ anchorRef: barRef,
800
+ focusRef: t47,
801
+ title: model.menuTitle,
802
+ rows: model.rows,
803
+ highlightedId: t48,
804
+ status: model.status,
805
+ footer: t49,
806
+ escLabel: t50,
807
+ header: nameHeader,
808
+ applyLabel: t51,
809
+ applyDisabled: t52,
810
+ onApply: t53,
811
+ onHighlight: safeActions.highlight,
812
+ onChoose: safeActions.chooseRow,
813
+ onClose: handleMenuClose,
814
+ showExamples: t54,
815
+ onSelectExample: t55
816
+ });
817
+ $[157] = handleMenuClose;
818
+ $[158] = menuId;
819
+ $[159] = model.menuOpen;
820
+ $[160] = model.menuTitle;
821
+ $[161] = model.rows;
822
+ $[162] = model.status;
823
+ $[163] = nameHeader;
824
+ $[164] = safeActions.chooseRow;
825
+ $[165] = safeActions.highlight;
826
+ $[166] = t47;
827
+ $[167] = t48;
828
+ $[168] = t49;
829
+ $[169] = t50;
830
+ $[170] = t51;
831
+ $[171] = t52;
832
+ $[172] = t53;
833
+ $[173] = t54;
834
+ $[174] = t55;
835
+ $[175] = t56;
836
+ } else t56 = $[175];
837
+ let t57;
838
+ if ($[176] !== t36 || $[177] !== t37 || $[178] !== t44 || $[179] !== t46 || $[180] !== t56) {
839
+ t57 = /*#__PURE__*/ jsxs("div", {
840
+ className: "flex flex-col gap-8 rounded-12 border border-border-primary-light bg-bg-surface-1 p-12",
841
+ children: [
842
+ t36,
843
+ t37,
844
+ t44,
845
+ t46,
846
+ t56
847
+ ]
848
+ });
849
+ $[176] = t36;
850
+ $[177] = t37;
851
+ $[178] = t44;
852
+ $[179] = t46;
853
+ $[180] = t56;
854
+ $[181] = t57;
855
+ } else t57 = $[181];
856
+ let t58;
857
+ if ($[182] !== model || $[183] !== props.pointOnly || $[184] !== props.value.condition || $[185] !== props.value.ignoreCase || $[186] !== props.value.value) {
858
+ t58 = !model.pointStage && !props.pointOnly && /*#__PURE__*/ jsx("div", {
859
+ className: "rounded-12 border border-border-primary-light bg-bg-surface-1 p-12",
860
+ children: /*#__PURE__*/ jsx(MatchStep, {
861
+ model: model,
862
+ conditionInputRef: conditionInputRef,
863
+ valueInputRef: valueInputRef,
864
+ conditionChipRef: conditionChipRef,
865
+ condition: props.value.condition,
866
+ value: props.value.value,
867
+ ignoreCase: props.value.ignoreCase
868
+ })
869
+ });
870
+ $[182] = model;
871
+ $[183] = props.pointOnly;
872
+ $[184] = props.value.condition;
873
+ $[185] = props.value.ignoreCase;
874
+ $[186] = props.value.value;
875
+ $[187] = t58;
876
+ } else t58 = $[187];
877
+ let t59;
878
+ if ($[188] !== t28 || $[189] !== t29 || $[190] !== t30 || $[191] !== t31 || $[192] !== t32 || $[193] !== t57 || $[194] !== t58 || $[195] !== testId) {
879
+ t59 = /*#__PURE__*/ jsxs(TestIdProvider, {
880
+ value: testId,
881
+ children: [
882
+ t28,
883
+ t29,
884
+ t30,
885
+ t31,
886
+ t32,
887
+ t57,
888
+ t58
889
+ ]
890
+ });
891
+ $[188] = t28;
892
+ $[189] = t29;
893
+ $[190] = t30;
894
+ $[191] = t31;
895
+ $[192] = t32;
896
+ $[193] = t57;
897
+ $[194] = t58;
898
+ $[195] = testId;
899
+ $[196] = t59;
900
+ } else t59 = $[196];
901
+ let t60;
902
+ if ($[197] !== t59 || $[198] !== testId) {
903
+ t60 = /*#__PURE__*/ jsx("div", {
904
+ "data-slot": "point-selector",
905
+ "data-testid": testId,
906
+ className: "flex flex-col gap-12",
907
+ children: t59
908
+ });
909
+ $[197] = t59;
910
+ $[198] = testId;
911
+ $[199] = t60;
912
+ } else t60 = $[199];
913
+ return t60;
914
+ };
915
+ PointSelector.displayName = "PointSelector";
916
+ function _temp() {}
917
+ function _temp2() {}
918
+ function _temp3() {}
919
+ function _temp4() {}
920
+ function _temp5() {}
921
+ function _temp6() {}
922
+ function _temp7() {}
923
+ function _temp8() {}
924
+ function _temp9() {}
925
+ function _temp10() {
926
+ return false;
927
+ }
928
+ function _temp11() {}
929
+ function _temp12() {}
930
+ function _temp13() {}
931
+ function _temp14() {}
932
+ function _temp15() {}
933
+ function _temp16() {}
934
+ function _temp17(r) {
935
+ return r.current && r.current === document.activeElement;
936
+ }
937
+ export { PointSelector };