PageSourceSearch

https://hunter.io/assets/Settings-DxP73s2e.js

js hunter.io collected 2026-10-01 08:27:16 UTC 26,815 bytes, 865 lines download raw bytes

1(function() {
2	try {
3		var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
4		e.SENTRY_RELEASE = { id: "9bd7631" };
5		var n = new e.Error().stack;
6		n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5c869ee8-c672-4797-9798-dc0092556f25", e._sentryDebugIdIdentifier = "sentry-dbid-5c869ee8-c672-4797-9798-dc0092556f25");
7	} catch (e) {}
8})();
9import { n as __esmMin } from "./rolldown-runtime-C0oiEAqH.js";
10import { At as DropdownMenu, Bs as Checkbox, Gt as DropdownSearchInput, Hs as Input, It as DropdownMenuInlineItem, Mt as DropdownMenuContent, Qi as init_routes, Rt as DropdownMenuItem, Us as init_input, Vs as init_checkbox, Wt as DropdownMenuTrigger, gn as init_label, hn as Label, kr as company_list_folders_path, qt as init_dropdown_menu } from "./controllers-CPhb1bs8.js";
11import { a as cn, i as require_compiler_runtime, t as require_jsx_runtime, u as init_utils } from "./jsx-runtime-BypSXy5Z.js";
12import { t as require_react } from "./react-CRpDT2aV.js";
13import { n as init_icon, t as Icon } from "./icon-DZ9gyktL.js";
14import { i as init_tag, n as Tag } from "./tag-Bg10OEly.js";
15import { i as init_radio_group, n as RadioGroup, r as RadioGroupItem } from "./turbo-mount-GISyszOC.js";
16import { n as init_radio, t as Radio } from "./radio-DTOrFjGv.js";
17import { n as init_FolderSelect, t as FolderSelect } from "./FolderSelect-Bv6I0OR2.js";
18import { a as init_dist, l as router, s as usePage, t as Head_default } from "./dist-mxJwmrVG.js";
19import { r as init_AppLayout, t as AppLayout } from "./AppLayout-CacWwji_.js";
20import { n as init_CompaniesListSidebar, t as CompaniesListSidebar } from "./CompaniesListSidebar-CScF3CuB.js";
21import { n as useFlashMessages, t as init_useFlashMessages } from "./useFlashMessages-CW07juS4.js";
22import { n as init_WizardPageHeader, t as WizardPageHeader } from "./WizardPageHeader-BOKRiz5o.js";
23import { n as init_WizardTabs, t as WizardTabs } from "./WizardTabs-KR8jJai7.js";
24import { i as reloadCompaniesSidebar, n as visitCompanyList, r as init_reloadCompaniesSidebar, t as init_visitCompanyList } from "./visitCompanyList-C6V7plDD.js";
25//#region app/frontend/pages/CompaniesImports/Settings.tsx
26function Settings() {
27	const $ = (0, import_compiler_runtime.c)(120);
28	const { props } = usePage();
29	const { companiesImport, companyLists, createPath, indexPath, sidebar } = props;
30	useFlashMessages(props.flash);
31	const hasCompanyList = companiesImport.companyListId != null;
32	const [importToSpecificList, setImportToSpecificList] = (0, import_react.useState)(hasCompanyList);
33	const [creatingNewList, setCreatingNewList] = (0, import_react.useState)(!hasCompanyList);
34	const [listName, setListName] = (0, import_react.useState)(props.companyListName ?? "");
35	const [folderId, setFolderId] = (0, import_react.useState)("");
36	const [selectedListId, setSelectedListId] = (0, import_react.useState)(companiesImport.companyListId == null ? "" : String(companiesImport.companyListId));
37	const [handling, setHandling] = (0, import_react.useState)(props.existingCompaniesHandling);
38	const [processing, setProcessing] = (0, import_react.useState)(false);
39	let t0;
40	if ($[0] !== props.folders) {
41		t0 = () => props.folders.map(_temp);
42		$[0] = props.folders;
43		$[1] = t0;
44	} else t0 = $[1];
45	const [folders, setFolders] = (0, import_react.useState)(t0);
46	let t1;
47	if ($[2] !== handling) {
48		t1 = HANDLING_OPTIONS.find((option) => option.value === handling);
49		$[2] = handling;
50		$[3] = t1;
51	} else t1 = $[3];
52	const selectedHandling = t1;
53	let t2;
54	if ($[4] !== createPath || $[5] !== creatingNewList || $[6] !== folderId || $[7] !== handling || $[8] !== importToSpecificList || $[9] !== listName || $[10] !== processing || $[11] !== selectedListId) {
55		t2 = function submit(event) {
56			event?.preventDefault();
57			if (processing) return;
58			const listFields = importToSpecificList ? {
59				bic_import_specific_list: "on",
60				create_company_list: creatingNewList ? "1" : "0",
61				...folderId && { company_list_folder_id: folderId }
62			} : {};
63			const companiesImportFields = importToSpecificList ? {
64				existing_companies_handling: handling,
65				company_list_name: listName,
66				company_list_id: selectedListId
67			} : { existing_companies_handling: handling };
68			setProcessing(true);
69			router.post(createPath, {
70				companies_import: companiesImportFields,
71				...listFields
72			}, { onFinish: () => setProcessing(false) });
73		};
74		$[4] = createPath;
75		$[5] = creatingNewList;
76		$[6] = folderId;
77		$[7] = handling;
78		$[8] = importToSpecificList;
79		$[9] = listName;
80		$[10] = processing;
81		$[11] = selectedListId;
82		$[12] = t2;
83	} else t2 = $[12];
84	const submit = t2;
85	let t3;
86	if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
87		t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Head_default, { title: t("meta_title") });
88		$[13] = t3;
89	} else t3 = $[13];
90	let t4;
91	if ($[14] !== companiesImport.companyListId || $[15] !== sidebar) {
92		t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
93			className: "dashboard-main__submenu",
94			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompaniesListSidebar, {
95				isCompaniesSurface: false,
96				sidebar,
97				currentListId: companiesImport.companyListId,
98				onListSelect: visitCompanyList,
99				onListCreated: reloadCompaniesSidebar
100			})
101		});
102		$[14] = companiesImport.companyListId;
103		$[15] = sidebar;
104		$[16] = t4;
105	} else t4 = $[16];
106	let t5;
107	let t6;
108	if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
109		t5 = t("import_companies");
110		t6 = t("title");
111		$[17] = t5;
112		$[18] = t6;
113	} else {
114		t5 = $[17];
115		t6 = $[18];
116	}
117	let t7;
118	if ($[19] !== indexPath) {
119		t7 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WizardPageHeader, {
120			className: "m-0",
121			indexPath,
122			breadcrumbLabel: t5,
123			title: t6
124		});
125		$[19] = indexPath;
126		$[20] = t7;
127	} else t7 = $[20];
128	let t8;
129	if ($[21] !== companiesImport.id || $[22] !== processing || $[23] !== submit) {
130		t8 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WizardTabs, {
131			step: "settings",
132			companiesImportId: companiesImport.id,
133			requiredColumnsMatched: true,
134			configured: true,
135			canProceed: true,
136			pending: processing,
137			onNext: submit
138		});
139		$[21] = companiesImport.id;
140		$[22] = processing;
141		$[23] = submit;
142		$[24] = t8;
143	} else t8 = $[24];
144	let t9;
145	if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
146		t9 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
147			className: "board-box__title mt-4",
148			children: t("enrichment")
149		});
150		$[25] = t9;
151	} else t9 = $[25];
152	let t10;
153	let t11;
154	if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
155		t10 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
156			className: "board-box__title-hint mb-4",
157			children: t("enrichment_description")
158		});
159		t11 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnrichmentOptions, {});
160		$[26] = t10;
161		$[27] = t11;
162	} else {
163		t10 = $[26];
164		t11 = $[27];
165	}
166	let t12;
167	if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
168		t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
169			className: "board-box__title mt-10 mb-4",
170			children: t("options")
171		});
172		$[28] = t12;
173	} else t12 = $[28];
174	let t13;
175	if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
176		t13 = (event_0) => setImportToSpecificList(event_0.target.checked);
177		$[29] = t13;
178	} else t13 = $[29];
179	let t14;
180	if ($[30] !== importToSpecificList) {
181		t14 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
182			className: "h-form-group__input d-flex",
183			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Checkbox, {
184				id: "bic-import-specific-list",
185				name: "bic_import_specific_list",
186				checked: importToSpecificList,
187				onChange: t13
188			})
189		});
190		$[30] = importToSpecificList;
191		$[31] = t14;
192	} else t14 = $[31];
193	let t15;
194	if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
195		t15 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
196			className: "h-form-group__infos",
197			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
198				htmlFor: "bic-import-specific-list",
199				children: t("specific_list")
200			})
201		});
202		$[32] = t15;
203	} else t15 = $[32];
204	let t16;
205	if ($[33] !== t14) {
206		t16 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
207			className: "h-form-group",
208			children: [t14, t15]
209		});
210		$[33] = t14;
211		$[34] = t16;
212	} else t16 = $[34];
213	const t17 = !importToSpecificList && "d-none";
214	let t18;
215	if ($[35] !== t17) {
216		t18 = cn("show-hide-content mt-5", t17);
217		$[35] = t17;
218		$[36] = t18;
219	} else t18 = $[36];
220	let t19;
221	if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
222		t19 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: t("list_hint") });
223		$[37] = t19;
224	} else t19 = $[37];
225	let t20;
226	if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
227		t20 = () => setCreatingNewList(true);
228		$[38] = t20;
229	} else t20 = $[38];
230	let t21;
231	if ($[39] !== creatingNewList) {
232		t21 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Radio, {
233			id: "bic-import-list-type-new",
234			name: "create_company_list",
235			value: "1",
236			checked: creatingNewList,
237			onChange: t20
238		});
239		$[39] = creatingNewList;
240		$[40] = t21;
241	} else t21 = $[40];
242	let t22;
243	if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
244		t22 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
245			className: "mb-0",
246			htmlFor: "bic-import-list-type-new",
247			children: t("new_list")
248		});
249		$[41] = t22;
250	} else t22 = $[41];
251	let t23;
252	if ($[42] !== t21) {
253		t23 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RadioGroupItem, { children: [t21, t22] });
254		$[42] = t21;
255		$[43] = t23;
256	} else t23 = $[43];
257	const t24 = !creatingNewList;
258	let t25;
259	if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
260		t25 = () => setCreatingNewList(false);
261		$[44] = t25;
262	} else t25 = $[44];
263	let t26;
264	if ($[45] !== t24) {
265		t26 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Radio, {
266			id: "bic-import-list-type-existing",
267			name: "create_company_list",
268			value: "0",
269			checked: t24,
270			onChange: t25
271		});
272		$[45] = t24;
273		$[46] = t26;
274	} else t26 = $[46];
275	let t27;
276	if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
277		t27 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
278			className: "mb-0",
279			htmlFor: "bic-import-list-type-existing",
280			children: t("existing_list")
281		});
282		$[47] = t27;
283	} else t27 = $[47];
284	let t28;
285	if ($[48] !== t26) {
286		t28 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RadioGroupItem, { children: [t26, t27] });
287		$[48] = t26;
288		$[49] = t28;
289	} else t28 = $[49];
290	let t29;
291	if ($[50] !== t23 || $[51] !== t28) {
292		t29 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RadioGroup, {
293			className: "mb-4",
294			children: [t23, t28]
295		});
296		$[50] = t23;
297		$[51] = t28;
298		$[52] = t29;
299	} else t29 = $[52];
300	const t30 = !creatingNewList && "d-none";
301	let t31;
302	if ($[53] !== t30) {
303		t31 = cn(t30);
304		$[53] = t30;
305		$[54] = t31;
306	} else t31 = $[54];
307	let t32;
308	if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
309		t32 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
310			htmlFor: "import-new-list-name",
311			children: t("name_of_list")
312		});
313		$[55] = t32;
314	}
314 else t32 = $[55];
315	let t33;
316	if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
317		t33 = (event_1) => setListName(event_1.target.value);
318		$[56] = t33;
319	} else t33 = $[56];
320	let t34;
321	if ($[57] !== listName) {
322		t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
323			type: "text",
324			id: "import-new-list-name",
325			fullWidth: true,
326			value: listName,
327			onChange: t33
328		});
329		$[57] = listName;
330		$[58] = t34;
331	} else t34 = $[58];
332	let t35;
333	if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
334		t35 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
335			className: "mt-6",
336			children: t("folder_selection.add_to_folder")
337		});
338		$[59] = t35;
339	} else t35 = $[59];
340	let t36;
341	let t37;
342	if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
343		t36 = (folder_0) => setFolders((previous) => [...previous, folder_0]);
344		t37 = company_list_folders_path({ format: "json" });
345		$[60] = t36;
346		$[61] = t37;
347	} else {
348		t36 = $[60];
349		t37 = $[61];
350	}
351	let t38;
352	if ($[62] !== folderId || $[63] !== folders) {
353		t38 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FolderSelect, {
354			folders,
355			selectedFolderId: folderId,
356			onSelect: setFolderId,
357			onFolderCreated: t36,
358			createFolderUrl: t37
359		});
360		$[62] = folderId;
361		$[63] = folders;
362		$[64] = t38;
363	} else t38 = $[64];
364	let t39;
365	if ($[65] !== t31 || $[66] !== t34 || $[67] !== t38) {
366		t39 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
367			id: "import-to-new-list",
368			className: t31,
369			children: [
370				t32,
371				t34,
372				t35,
373				t38
374			]
375		});
376		$[65] = t31;
377		$[66] = t34;
378		$[67] = t38;
379		$[68] = t39;
380	} else t39 = $[68];
381	const t40 = creatingNewList && "d-none";
382	let t41;
383	if ($[69] !== t40) {
384		t41 = cn(t40);
385		$[69] = t40;
386		$[70] = t41;
387	} else t41 = $[70];
388	let t42;
389	if ($[71] === Symbol.for("react.memo_cache_sentinel")) {
390		t42 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: t("folder_selection.select_list") });
391		$[71] = t42;
392	} else t42 = $[71];
393	let t43;
394	if ($[72] !== companyLists || $[73] !== selectedListId) {
395		t43 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompanyListSelect, {
396			lists: companyLists,
397			selectedListId,
398			onSelect: setSelectedListId
399		});
400		$[72] = companyLists;
401		$[73] = selectedListId;
402		$[74] = t43;
403	} else t43 = $[74];
404	let t44;
405	if ($[75] !== t41 || $[76] !== t43) {
406		t44 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
407			id: "import-to-existing-list",
408			className: t41,
409			children: [t42, t43]
410		});
411		$[75] = t41;
412		$[76] = t43;
413		$[77] = t44;
414	} else t44 = $[77];
415	let t45;
416	if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
417		t45 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, {
418			className: "mt-6",
419			children: t("existing_companies.title")
420		});
421		$[78] = t45;
422	} else t45 = $[78];
423	let t46;
424	if ($[79] !== selectedHandling) {
425		t46 = selectedHandling ? t(`existing_companies.${selectedHandling.key}.title`) : t("existing_companies.placeholder");
426		$[79] = selectedHandling;
427		$[80] = t46;
428	} else t46 = $[80];
429	let t47;
430	if ($[81] !== t46) {
431		t47 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
432			asChild: true,
433			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
434				className: "h-select h-select--block",
435				type: "button",
436				children: t46
437			})
438		});
439		$[81] = t46;
440		$[82] = t47;
441	} else t47 = $[82];
442	let t48;
443	if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
444		t48 = { width: "var(--radix-dropdown-menu-trigger-width)" };
445		$[83] = t48;
446	} else t48 = $[83];
447	let t49;
448	if ($[84] !== handling) {
449		t49 = HANDLING_OPTIONS.map((option_0) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
450			className: "dropdown-item",
451			id: `handling-${option_0.value}`,
452			children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuInlineItem, {
453				preserveRole: true,
454				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Radio, {
455					id: `handling-${option_0.value}-input`,
456					name: "companies_import[existing_companies_handling]",
457					value: option_0.value,
458					checked: handling === option_0.value,
459					onChange: () => setHandling(option_0.value),
460					"aria-label": t(`existing_companies.${option_0.key}.title`),
461					"aria-describedby": `handling-${option_0.value}-description`
462				})
463			}
463), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", {
464				className: "custom-option",
465				htmlFor: `handling-${option_0.value}-input`,
466				children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
467					className: "custom-option__title",
468					children: t(`existing_companies.${option_0.key}.title`)
469				}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
470					className: "custom-option__subtitle",
471					id: `handling-${option_0.value}-description`,
472					children: t(`existing_companies.${option_0.key}.description`)
473				})]
474			})]
475		}, option_0.value));
476		$[84] = handling;
477		$[85] = t49;
478	} else t49 = $[85];
479	let t50;
480	if ($[86] !== t49) {
481		t50 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
482			className: "dropdown-menu--full",
483			style: t48,
484			children: t49
485		});
486		$[86] = t49;
487		$[87] = t50;
488	} else t50 = $[87];
489	let t51;
490	if ($[88] !== t47 || $[89] !== t50) {
491		t51 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [t47, t50] });
492		$[88] = t47;
493		$[89] = t50;
494		$[90] = t51;
495	} else t51 = $[90];
496	let t52;
497	if ($[91] === Symbol.for("react.memo_cache_sentinel")) {
498		t52 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: "info-circle" });
499		$[91] = t52;
500	} else t52 = $[91];
501	let t53;
502	if ($[92] !== selectedHandling) {
503		t53 = selectedHandling ? t(`existing_companies.${selectedHandling.key}.description`) : t("existing_companies.info_text");
504		$[92] = selectedHandling;
505		$[93] = t53;
506	} else t53 = $[93];
507	let t54;
508	if ($[94] !== t53) {
509		t54 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
510			className: "handle-existing-contacts__info",
511			children: [t52, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: t53 })]
512		});
513		$[94] = t53;
514		$[95] = t54;
515	} else t54 = $[95];
516	let t55;
517	if ($[96] !== t51 || $[97] !== t54) {
518		t55 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
519			className: "handle-existing-contacts",
520			children: [
521				t45,
522				t51,
523				t54
524			]
525		});
526		$[96] = t51;
527		$[97] = t54;
528		$[98] = t55;
529	} else t55 = $[98];
530	let t56;
531	if ($[99] !== t29 || $[100] !== t39 || $[101] !== t44 || $[102] !== t55) {
532		t56 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("fieldset", {
533			className: "h-fieldset",
534			children: [
535				t19,
536				t29,
537				t39,
538				t44,
539				t55
540			]
541		});
542		$[99] = t29;
543		$[100] = t39;
544		$[101] = t44;
545		$[102] = t55;
546		$[103] = t56;
547	} else t56 = $[103];
548	let t57;
549	if ($[104] !== t18 || $[105] !== t56) {
550		t57 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
551			className: t18,
552			"data-testid": "specific-list-options",
553			children: t56
554		});
555		$[104] = t18;
556		$[105] = t56;
557		$[106] = t57;
558	} else t57 = $[106];
559	let t58;
560	if ($[107] !== t16 || $[108] !== t57) {
561		t58 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
562			className: "board-box container container--sm",
563			children: [
564				t9,
565				t10,
566				t11,
567				t12,
568				/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [t16, t57] })
569			]
570		});
571		$[107] = t16;
572		$[108] = t57;
573		$[109] = t58;
574	} else t58 = $[109];
575	let t59;
576	if ($[110] !== t58 || $[111] !== t7 || $[112] !== t8) {
577		t59 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
578			className: "dashboard-main__content",
579			children: [
580				t7,
581				t8,
582				t58
583			]
584		});
585		$[110] = t58;
586		$[111] = t7;
587		$[112] = t8;
588		$[113] = t59;
589	} else t59 = $[113];
590	let t60;
591	if ($[114] !== submit || $[115] !== t59) {
592		t60 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", {
593			id: "companies-import-form",
594			className: "d-flex flex-column flex-grow-1",
595			onSubmit: submit,
596			children: t59
597		});
598		$[114] = submit;
599		$[115] = t59;
600		$[116] = t60;
601	} else t60 = $[116];
602	let t61;
603	if ($[117] !== t4 || $[118] !== t60) {
604		t61 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t3, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("main", {
605			className: "dashboard-main",
606			children: [t4, t60]
607		})] });
608		$[117] = t4;
609		$[118] = t60;
610		$[119] = t61;
611	} else t61 = $[119];
612	return t61;
613}
614/** Static info card — `_enrichment_options.erb` has no form control at all. */
615function _temp(folder) {
616	return {
617		id: folder.id,
618		name: folder.name,
619		color: folder.color ?? void 0
620	};
621}
622function EnrichmentOptions() {
623	const $ = (0, import_compiler_runtime.c)(4);
624	let t0;
625	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
626		t0 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
627			className: "option-item__icon",
628			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: "magnifying-glass-chart" })
629		});
630		$[0] = t0;
631	} else t0 = $[0];
632	let t1;
633	if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
634		t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
635			className: "option-item__title",
636			children: t("enrichment_options.enrich_description")
637		});
638		$[1] = t1;
639	} else t1 = $[1];
640	let t2;
641	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
642		t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
643			className: "option-item__body",
644			children: [t1, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
645				className: "option-item__description",
646				children: t("enrichment_options.enrich_description_subtitle")
647			})]
648		});
649		$[2] = t2;
650	} else t2 = $[2];
651	let t3;
652	if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
653		t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
654			className: "enrichment-options",
655			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
656				className: "option-item option-item--vertical",
657				children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
658					className: "option-item option-item--plain",
659					children: [
660						t0,
661						t2,
662						/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tag, {
663							label: t("enrichment_options.free_of_charge"),
664							size: "sm",
665							variant: "info"
666						})
667					]
668				})
669			})
670		});
671		$[3] = t3;
672	} else t3 = $[3];
673	return t3;
674}
675/**
676* Minimal replacement for `LeadsLists::ListSelectComponent`. No per-list count
677* is rendered: the legacy call site asked for `display_format: :with_count`,
678* but `Lead::CompanyList` has no `leads_count`, so the count branch never fired.
679*/
680function CompanyListSelect(t0) {
681	const $ = (0, import_compiler_runtime.c)(30);
682	const { lists, selectedListId, onSelect } = t0;
683	const [search, setSearch] = (0, import_react.useState)("");
684	let t1;
685	if ($[0] !== lists || $[1] !== selectedListId) {
686		let t2;
687		if ($[3] !== selectedListId) {
688			t2 = (list) => list.id === selectedListId;
689			$[3] = selectedListId;
690			$[4] = t2;
691		} else t2 = $[4];
692		t1 = lists.find(t2);
693		$[0] = lists;
694		$[1] = selectedListId;
695		$[2] = t1;
696	} else t1 = $[2];
697	const selectedList = t1;
698	let t2;
699	if ($[5] !== lists || $[6] !== search) {
700		t2 = search ? lists.filter((list_0) => list_0.name.toLowerCase().includes(search.toLowerCase())) : lists;
701		$[5] = lists;
702		$[6] = search;
703		$[7] = t2;
704	} else t2 = $[7];
705	const filteredLists = t2;
706	const searchRef = (0, import_react.useRef)(null);
707	let t3;
708	if ($[8] !== selectedList) {
709		t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
710			asChild: true,
711			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
712				className: "h-select h-select--block",
713				type: "button",
714				children: selectedList ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: selectedList.name }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
715					className: "text-hint",
716					children: t("folder_selection.select_list")
717				})
718			})
719		});
720		$[8] = selectedList;
721		$[9] = t3;
722	} else t3 = $[9];
723	let t4;
724	if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
725		t4 = { width: "var(--radix-dropdown-menu-trigger-width)" };
726		$[10] = t4;
727	} else t4 = $[10];
728	let t5;
729	let t6;
730	if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
731		t5 = (event) => {
732			event.preventDefault();
733			searchRef.current?.focus();
734		};
735		t6 = () => setSearch("");
736		$[11] = t5;
737		$[12] = t6;
738	} else {
739		t5 = $[11];
740		t6 = $[12];
741	}
742	let t7;
743	if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
744		t7 = t("folder_selection.select_list");
745		$[13] = t7;
746	} else t7 = $[13];
747	let t8;
748	if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
749		t8 = (event_0) => setSearch(event_0.target.value);
750		$[14] = t8;
751	} else t8 = $[14];
752	let t9;
753	if ($[15] !== search) {
754		t9 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
755			className: "dropdown-search dropdown-search--alternative",
756			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownSearchInput, {
757				ref: searchRef,
758				"aria-label": t7,
759				value: search,
760				onChange: t8
761			})
762		});
763		$[15] = search;
764		$[16] = t9;
765	} else t9 = $[16];
766	let t10;
767	if ($[17] !== filteredLists || $[18] !== onSelect || $[19] !== selectedListId) {
768		let t11;
769		if ($[21] !== onSelect || $[22] !== selectedListId) {
770			t11 = (list_1, index) => {
771				const isSelected = list_1.id === selectedListId;
772				return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
773					clickable: false,
774					closeOnClick: true,
775					className: cn(index === 0 && "mt-2"),
776					children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
777						type: "button",
778						className: cn("dropdown-menu__action d-flex align-items-center gap-2", isSelected && "is-selected"),
779						onClick: () => onSelect(list_1.id),
780						children: [isSelected && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
781							icon: "check",
782							className: "blue dropdown-item__selected-icon"
783						}), list_1.name]
784					})
785				}, list_1.id);
786			};
787			$[21] = onSelect;
788			$[22] = selectedListId;
789			$[23] = t11;
790		} else t11 = $[23];
791		t10 = filteredLists.map(t11);
792		$[17] = filteredLists;
793		$[18] = onSelect;
794		$[19] = selectedListId;
795		$[20] = t10;
796	} else t10 = $[20];
797	let t11;
798	if ($[24] !== t10 || $[25] !== t9) {
799		t11 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
800			className: "dropdown-menu--full",
801			style: t4,
802			headerNavigable: true,
803			onOpenAutoFocus: t5,
804			onHide: t6,
805			children: [t9, t10]
806		});
807		$[24] = t10;
808		$[25] = t9;
809		$[26] = t11;
810	} else t11 = $[26];
811	let t12;
812	if ($[27] !== t11 || $[28] !== t3) {
813		t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [t3, t11] });
814		$[27] = t11;
815		$[28] = t3;
816		$[29] = t12;
817	} else t12 = $[29];
818	return t12;
819}
820var import_compiler_runtime, import_react, import_jsx_runtime, t, HANDLING_OPTIONS;
821function init_Settings() {
822	return (init_Settings = __esmMin((() => {
823		import_compiler_runtime = require_compiler_runtime();
824		init_dist();
825		import_react = require_react();
826		init_AppLayout();
827		init_checkbox();
828		init_dropdown_menu();
829		init_icon();
830		init_input();
831		init_label();
832		init_radio();
833		init_radio_group();
834		init_tag();
835		init_utils();
836		init_routes();
837		init_useFlashMessages();
838		init_CompaniesListSidebar();
839		init_WizardPageHeader();
840		init_WizardTabs();
841		init_reloadCompaniesSidebar();
842		init_visitCompanyList();
843		init_FolderSelect();
844		import_jsx_runtime = require_jsx_runtime();
845		t = (key, options) => i18n.t(`js.companies_imports.settings.${key}`, options);
846		HANDLING_OPTIONS = [
847			{
848				value: "dont_import",
849				key: "skip"
850			},
851			{
852				value: "copy_to_this_list",
853				key: "copy"
854			},
855			{
856				value: "move_to_this_list",
857				key: "replace"
858			}
859		];
860		Settings.layout = (page) => (0, import_react.createElement)(AppLayout, { navCollapsed: true }, page);
861	})))();
862}
863//#endregion
864init_Settings();
865export { Settings as default };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.