PageSourceSearch

https://navpro.truckerpath.com/assets/trucks-view-JyvPRnIa.js

js truckerpath.com collected 2026-09-24 09:45:24 UTC 37,992 bytes, 1,321 lines download raw bytes

1import { a as __toESM } from "./rolldown-runtime-Cql5ZV07.js";
2import { p as require_react } from "./vendor-charts-D81iZKCV.js";
3import { g as require_compiler_runtime, p as useParams, r as Link, t as require_jsx_runtime } from "./vendor-react-HZz3WA9p.js";
4import "./vendor-dnd-D_JGdZnv.js";
5import "./vendor-mixpanel-Dh8wsiZW.js";
6import "./device-CBwMusKw.js";
7import { m as skipToken } from "./vendor-redux-CLEI5hTp.js";
8import "./vendor-pdf-DksyQ9Qr.js";
9import "./vendor-utils-DiM3BD4o.js";
10import "./vendor-ui-G6aSO5L-.js";
11import "./dist-Bh07-69G.js";
12import { Y as Pencil, jn as Check, kn as ChevronLeft } from "./vendor-lucide-EY3Z5fcy.js";
13import { a as cn, t as Button } from "./button-BWyXpawe.js";
14import "./vendor-twilio-BWAG7uEQ.js";
15import "./biz-icon-BHlHk8WD.js";
16import "./ping-one-CpLVEVLd.js";
17import "./vendor-tiptap-_i5A4X7p.js";
18import "./app-storage-slice-mFVFfzPf.js";
19import "./vendor-date-d6_4rWHy.js";
20import { f as safeFormatDate } from "./dates-B2P7D4-n.js";
21import "./vendor-tanstack-N3AJtZOe.js";
22import { t as Spin } from "./spin-Bjb5hq6_.js";
23import "./vendor-form-DCqShb_y.js";
24import "./label-BU8XDazs.js";
25import { Pn as useUserInfoQueryState, bn as CardHeader, d as Alert, f as AlertDescription, gn as Card, ir as TooltipOverflowTrigger, nr as Tooltip, p as AlertTitle, pr as Separator, rr as TooltipContent, vn as CardContent, xn as CardTitle } from "./main-DDHJZG-i.js";
26import { A as useToolbarItems, B as useGetDocumentsQuery, F as new_document_button_default, I as DocumentsDialogProvider, O as DocumentNavigationProvider, R as rename_dialog_default, _ as document_empty_default, a as useDocumentPermissions, c as send_email_dialog_default, f as merge_files_dialog_default, g as DocumentTableView, j as DocumentHeaderToolbar, k as useDocumentNavigation, l as create_billing_packet_success_dialog_default, n as useDocumentDialogs, o as useDocumentOperations, p as UploadDocumentDialog, r as useFolderQuery, s as useDocumentSelection, t as useDocumentActions, u as create_billing_packet_dialog_default, v as DocumentContextMenuProvider, z as new_folder_dialog_default } from "./hooks-D28ke8RY.js";
27import "./button-group-BAAxXGl0.js";
28import "./use-fleet-permission-otVvJqAQ.js";
29import "./breadcrumb-DaQ4spt4.js";
30import "./checkbox-group-BcQiMlUj.js";
31import "./document-upload-CFFEvI8B.js";
32import "./progress-BMT-Tsbj.js";
33import "./document-upload-H5V5QdR-.js";
34import "./upload-field.utils-D6MOo_v7.js";
35import "./upload-field-_uA03Ut7.js";
36import "./profile-service-Dr5sIh12.js";
37import "./scroll-area-DFVujIwJ.js";
38import "./pdf-BGKmZv-x.js";
39import { t as AppBreadcrumb } from "./app-breadcrumb-C_0-hj4G.js";
40import { a as useGetFleetTruckDetailQuery } from "./trucks-service-DYtLsyHk.js";
41import { a as formatInsuranceTerm, c as TrucksMetaRow, i as formatFeetInchesValue, n as formatCurrencyValue, o as TrucksMetaDivider, r as formatDisplayValue, s as TrucksMetaItem, t as FALLBACK } from "./trucks-helper-BXQ4OZnq.js";
42var import_react = /* @__PURE__ */ __toESM(require_react());
43var import_compiler_runtime$1 = /* @__PURE__ */ __toESM(require_compiler_runtime());
44var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
45var TrucksDocumentsInner = (t0) => {
46	const $ = (0, import_compiler_runtime$1.c)(96);
47	const { truckerId } = t0;
48	const navigation = useDocumentNavigation();
49	if (!navigation) throw new Error("TrucksDocuments must be used within DocumentNavigationProvider");
50	let t1;
51	if ($[0] !== truckerId) {
52		t1 = {
53			relationId: truckerId,
54			source: "truck_folder",
55			autoCreate: true
56		};
57		$[0] = truckerId;
58		$[1] = t1;
59	} else t1 = $[1];
60	const folder = useFolderQuery(t1);
61	const activeFolderId = navigation.currentFolderId ?? folder.folderId;
62	let t2;
63	if ($[2] !== activeFolderId) {
64		t2 = {
65			folderId: activeFolderId,
66			size: 1e3,
67			current: 1
68		};
69		$[2] = activeFolderId;
70		$[3] = t2;
71	} else t2 = $[3];
72	const t3 = !folder.folderId;
73	let t4;
74	if ($[4] !== t3) {
75		t4 = { skip: t3 };
76		$[4] = t3;
77		$[5] = t4;
78	} else t4 = $[5];
79	const { data: documentsData, isLoading: isDocumentsLoading } = useGetDocumentsQuery(t2, t4);
80	let t5;
81	if ($[6] !== documentsData?.data?.records) {
82		t5 = documentsData?.data?.records ?? [];
83		$[6] = documentsData?.data?.records;
84		$[7] = t5;
85	} else t5 = $[7];
86	const currentData = t5;
87	let t6;
88	if ($[8] !== currentData) {
89		t6 = { data: currentData };
90		$[8] = currentData;
91		$[9] = t6;
92	} else t6 = $[9];
93	const selection = useDocumentSelection(t6);
94	const operations = useDocumentOperations();
95	let t7;
96	if ($[10] !== selection.selectedItems) {
97		t7 = { selectedItems: selection.selectedItems };
98		$[10] = selection.selectedItems;
99		$[11] = t7;
100	} else t7 = $[11];
101	const permissions = useDocumentPermissions(t7);
102	const dialogs = useDocumentDialogs(selection.clearSelection);
103	let t8;
104	if ($[12] !== dialogs || $[13] !== navigation || $[14] !== operations || $[15] !== selection) {
105		t8 = {
106			selection,
107			operations,
108			dialogs,
109			navigation
110		};
111		$[12] = dialogs;
112		$[13] = navigation;
113		$[14] = operations;
114		$[15] = selection;
115		$[16] = t8;
116	} else t8 = $[16];
117	const actions = useDocumentActions(t8);
118	let t9;
119	if ($[17] !== permissions.allAreFiles || $[18] !== permissions.canDelete) {
120		t9 = {
121			canDelete: permissions.canDelete,
122			allAreFiles: permissions.allAreFiles
123		};
124		$[17] = permissions.allAreFiles;
125		$[18] = permissions.canDelete;
126		$[19] = t9;
127	} else t9 = $[19];
128	const toolbarItems = useToolbarItems(t9);
129	const isLoading = folder.isLoading || isDocumentsLoading;
130	let t10;
131	if ($[20] !== navigation) {
132		t10 = navigation.currentFolderId !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
133			variant: "ghost",
134			size: "icon-sm",
135			className: "text-muted-foreground",
136			onClick: () => navigation.navigateToBreadcrumb(navigation.breadcrumbs.length - 2),
137			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { className: "size-4" })
138		});
139		$[20] = navigation;
140		$[21] = t10;
141	} else t10 = $[21];
142	let t11;
143	if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
144		t11 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
145			className: "text-base",
146			children: "Documents"
147		});
148		$[22] = t11;
149	} else t11 = $[22];
150	let t12;
151	if ($[23] !== t10) {
152		t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
153			className: "flex items-center gap-2",
154			children: [t10, t11]
155		});
156		$[23] = t10;
157		$[24] = t12;
158	} else t12 = $[24];
159	let t13;
160	if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
161		t13 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(new_document_button_default, {});
162		$[25] = t13;
163	} else t13 = $[25];
164	let t14;
165	if ($[26] !== t12) {
166		t14 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
167			className: "flex items-center justify-between",
168			children: [t12, t13]
169		}) });
170		$[26] = t12;
171		$[27] = t14;
172	} else t14 = $[27];
173	let t15;
174	if ($[28] !== actions.handleContextMenuAction || $[29] !== actions.handleToolbarAction || $[30] !== currentData || $[31] !== folder.folderId || $[32] !== isLoading || $[33] !== selection.rowSelection || $[34] !== selection.selectedCount || $[35] !== selection.setRowSelection || $[36] !== toolbarItems) {
175		t15 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, { children: isLoading ? /* @__P
175URE__ */ (0, import_jsx_runtime.jsx)("div", {
176			className: "text-sm text-muted-foreground",
177			children: "Loading documents..."
178		}) : !folder.folderId ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(document_empty_default, { size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
179			className: "flex flex-col gap-4",
180			children: [selection.selectedCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DocumentHeaderToolbar, {
181				selectedCount: selection.selectedCount,
182				items: toolbarItems,
183				onAction: actions.handleToolbarAction
184			}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DocumentContextMenuProvider, {
185				currentData,
186				onAction: actions.handleContextMenuAction,
187				children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DocumentTableView, {
188					data: currentData,
189					rowSelection: selection.rowSelection,
190					onRowSelectionChange: selection.setRowSelection,
191					virtualizationThreshold: 50
192				})
193			})]
194		}) });
195		$[28] = actions.handleContextMenuAction;
196		$[29] = actions.handleToolbarAction;
197		$[30] = currentData;
198		$[31] = folder.folderId;
199		$[32] = isLoading;
200		$[33] = selection.rowSelection;
201		$[34] = selection.selectedCount;
202		$[35] = selection.setRowSelection;
203		$[36] = toolbarItems;
204		$[37] = t15;
205	} else t15 = $[37];
206	let t16;
207	if ($[38] !== t14 || $[39] !== t15) {
208		t16 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
209			className: "gap-5 shadow-none",
210			children: [t14, t15]
211		});
212		$[38] = t14;
213		$[39] = t15;
214		$[40] = t16;
215	} else t16 = $[40];
216	let t17;
217	if ($[41] !== dialogs.setUploadDialogOpen || $[42] !== dialogs.uploadDialogOpen || $[43] !== folder.getFolderId) {
218		t17 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UploadDocumentDialog, {
219			open: dialogs.uploadDialogOpen,
220			onOpenChange: dialogs.setUploadDialogOpen,
221			getFolderId: folder.getFolderId,
222			entityType: "vehicle"
223		});
224		$[41] = dialogs.setUploadDialogOpen;
225		$[42] = dialogs.uploadDialogOpen;
226		$[43] = folder.getFolderId;
227		$[44] = t17;
228	} else t17 = $[44];
229	const t18 = navigation.currentFolderId === null ? folder.getFolderId : void 0;
230	let t19;
231	if ($[45] !== activeFolderId || $[46] !== dialogs.newFolderDialogOpen || $[47] !== dialogs.setNewFolderDialogOpen || $[48] !== t18) {
232		t19 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(new_folder_dialog_default, {
233			open: dialogs.newFolderDialogOpen,
234			onOpenChange: dialogs.setNewFolderDialogOpen,
235			parentFolderId: activeFolderId,
236			getParentFolderId: t18
237		});
238		$[45] = activeFolderId;
239		$[46] = dialogs.newFolderDialogOpen;
240		$[47] = dialogs.setNewFolderDialogOpen;
241		$[48] = t18;
242		$[49] = t19;
243	} else t19 = $[49];
244	const t20 = dialogs.activeActionId === "RENAME";
245	let t21;
246	if ($[50] !== dialogs) {
247		t21 = (open) => {
248			if (!open) {
249				dialogs.setActiveActionId(null);
250				dialogs.setActionDocument(null);
251			}
252		};
253		$[50] = dialogs;
254		$[51] = t21;
255	} else t21 = $[51];
256	const t22 = dialogs.actionDocument?.name;
257	let t23;
258	if ($[52] !== actions.handleRename || $[53] !== t20 || $[54] !== t21 || $[55] !== t22) {
259		t23 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(rename_dialog_default, {
260			open: t20,
261			onOpenChange: t21,
262			initialName: t22,
263			onRename: actions.handleRename
264		});
265		$[52] = actions.handleRename;
266		$[53] = t20;
267		$[54] = t21;
268		$[55] = t22;
269		$[56] = t23;
270	} else t23 = $[56];
271	let t24;
272	if ($[57] !== dialogs.emailAttachments || $[58] !== dialogs.mergedBillingPacket || $[59] !== dialogs.onSendEmailDialogOpenChange || $[60] !== dialogs.sendEmailDialogOpen) {
273		t24 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(send_email_dialog_default, {
274			open: dialogs.sendEmailDialogOpen,
275			onOpenChange: dialogs.onSendEmailDialogOpenChange,
276			preAttachedFile: dialogs.mergedBillingPacket,
277			externalAttachments: dialogs.emailAttachments
278		});
279		$[57] = dialogs.emailAttachments;
280		$[58] = dialogs.mergedBillingPacket;
281		$[59] = dialogs.onSendEmailDialogOpenChange;
282		$[60] = dialogs.sendEmailDialogOpen;
283		$[61] = t24;
284	} else t24 = $[61];
285	const t25 = dialogs.activeActionId === "MERGE_FILE";
286	const t26 = dialogs.folderFiles.length > 0 ? dialogs.folderFiles : selection.selectedItems;
287	let t27;
288	if ($[62] !== dialogs.onMergeFilesDialogOpenChange || $[63] !== t25 || $[64] !== t26) {
289		t27 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(merge_files_dialog_default, {
290			open: t25,
291			onOpenChange: dialogs.onMergeFilesDialogOpenChange,
292			selectedItems: t26
293		});
294		$[62] = dialogs.onMergeFilesDialogOpenChange;
295		$[63] = t25;
296		$[64] = t26;
297		$[65] = t27;
298	} else t27 = $[65];
299	const t28 = dialogs.folderFiles.length > 0 ? dialogs.folderFiles : selection.selectedItems;
300	let t29;
301	if ($[66] !== dialogs) {
302		t29 = (_data, mergedFile) => {
303			dialogs.setMergedBillingPacket(mergedFile);
304			dialogs.setCreateBillingPacketSuccessDialogOpen(true);
305		};
306		$[66] = dialogs;
307		$[67] = t29;
308	} else t29 = $[67];
309	let t30;
310	if ($[68] !== dialogs.createBillingPacketDialogOpen || $[69] !== dialogs.onCreateBillingPacketDialogOpenChange || $[70] !== t28 || $[71] !== t29) {
311		t30 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(create_billing_packet_dialog_default, {
312			open: dialogs.createBillingPacketDialogOpen,
313			onOpenChange: dialogs.onCreateBillingPacketDialogOpenChange,
314			selectedItems: t28,
315			onCreatePacketSuccess: t29
316		});
317		$[68] = dialogs.createBillingPacketDialogOpen;
318		$[69] = dialogs.onCreateBillingPacketDialogOpenChange;
319		$[70] = t28;
320		$[71] = t29;
321		$[72] = t30;
322	} else t30 = $[72];
323	let t31;
324	let t32;
325	if ($[73] !== dialogs) {
326		t31 = () => {
327			dialogs.setCreateBillingPacketSuccessDialogOpen(false);
328		};
329		t32 = (attachedFile) => {
330			dialogs.setCreateBillingPacketSuccessDialogOpen(false);
331			dialogs.setMergedBillingPacket(attachedFile);
332			dialogs.setSendEmailDialogOpen(true);
333		};
334		$[73] = dialogs;
335		$[74] = t31;
336		$[75] = t32;
337	} else {
338		t31 = $[74];
339		t32 = $[75];
340	}
341	let t33;
342	if ($[76] !== dialogs.createBillingPacketSuccessDialogOpen || $[77] !== dialogs.mergedBillingPacket || $[78] !== dialogs.setCreateBillingPacketSuccessDialogOpen || $[79] !== folder.folderId || $[80] !== t31 || $[81] !== t32) {
343		t33 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(create_billing_packet_success_dialog_default, {
344			open: dialogs.createBillingPacketSuccessDialogOpen,
345			onOpenChange: dialogs.setCreateBillingPacketSuccessDialogOpen,
346			mergedFile: dialogs.mergedBillingPacket,
347			currentFolderId: folder.folderId,
348			onSaveToFolder: t31,
349			onEmailFactoring: t32
350		});
351		$[76] = dialogs.createBillingPacketSuccessDialogOpen;
352		$[77] = dialogs.mergedBillingPacket;
353		$[78] = dialogs.setCreateBillingPacketSuccessDialogOpen;
354		$[79] = folder.folderId;
355		$[80] = t31;
356		$[81] = t32;
357		$[82] = t33;
358	} else t33 = $[82];
359	let t34;
360	if ($[83] !== dialogs.onCreateBillingPacketDialogOpenChange || $[84] !== dialogs.onMergeFilesDialogOpenChange || $[85] !== dialogs.setNewFolderDialogOpen || $[86] !== dialogs.setUploadDialogOpen || $[87] !== t16 || $[88] !== t17 || $[89] !== t19 || $[90] !== t23 || $[91] !== t24 || $[92] !== t27 || $[93] !== t30 || $[94] !== t33) {
361		t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DocumentsDialogProvider, {
362			onUploadDocumentDialogOpenChange: dialogs.setUploadDialogOpen,
363			onNewFolderDialogOpenChange: dialogs.setNewFolderDialogOpen,
364			onMergeFilesDialogOpenChange: dialogs.onMergeFilesDialogOpenChange,
365			onCreateBillingPacketDialogOpenChange: dialogs.onCreateBillingPacketDialogOpenChange,
366			children: [
367				t16,
368				t17,
369				t19,
370				t23,
371				t24,
372				t27,
373				t30,
374				t33
375			]
376		});
377		$[83] = dialogs.onCreateBillingPacketDialogOpenChange;
378		$[84] = dialogs.onMergeFilesDialogOpenChange;
379		$[85] = dialogs.setNewFolderDialogOpen;
380		$[86] = dialogs.setUploadDialogOpen;
381		$[87] = t16;
382		$[88] = t17;
383		$[89] = t19;
384		$[90] = t23;
385		$[91] = t24;
386		$[92] = t27;
387		$[93] = t30;
388		$[94] = t33;
389		$[95] = t34;
390	} else t34 = $[95];
391	return t34;
392};
393const TrucksDocuments = (t0) => {
394	const $ = (0, import_compiler_runtime$1.c)(2);
395	const { truckerId } = t0;
396	let t1;
397	if ($[0] !== truckerId) {
398		t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DocumentNavigationProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrucksDocumentsInner, { truckerId }) });
399		$[0] = truckerId;
400		$[1] = t1;
401	} else t1 = $[1];
402	return t1;
403};
404var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime());
405var InfoItem = (t0) => {
406	const $ = (0, import_compiler_runtime.c)(12);
407	const { label, value } = t0;
408	let t1;
409	if ($[0] !== label) {
410		t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
411			className: "text-sm text-muted-foreground",
412			children: label
413		});
414		$[0] = label;
415		$[1] = t1;
416	} else t1 = $[1];
417	let t2;
418	if ($[2] !== value) {
419		t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipOverflowTrigger, {
420			asChild: true,
421			children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
422				className: "truncate text-sm font-medium text-foreground",
423				children: value
424			})
425		});
426		$[2] = value;
427		$[3] = t2;
428	} else t2 = $[3];
429	let t3;
430	if ($[4] !== value) {
431		t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: value }) });
432		$[4] = value;
433		$[5] = t3;
434	} else t3 = $[5];
435	let t4;
436	if ($[6] !== t2 || $[7] !== t3) {
437		t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Tooltip, { children: [t2, t3] });
438		$[6] = t2;
439		$[7] = t3;
440		$[8] = t4;
441	} else t4 = $[8];
442	let t5;
443	if ($[9] !== t1 || $[10] !== t4) {
444		t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
445			className: "min-w-[211px] space-y-1",
446			children: [t1, t4]
447		});
448		$[9] = t1;
449		$[10] = t4;
450		$[11] = t5;
451	} else t5 = $[11];
452	return t5;
453};
454var InfoGrid = (t0) => {
455	const $ = (0, import_compiler_runtime.c)(5);
456	const { children, className } = t0;
457	let t1;
458	if ($[0] !== className) {
459		t1 = cn("grid grid-cols-2 gap-x-6 gap-y-4 md:grid-cols-3 lg:grid-cols-5", className);
460		$[0] = className;
461		$[1] = t1;
462	} else t1 = $[1];
463	let t2;
464	if ($[2] !== children || $[3] !== t1) {
465		t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
466			className: t1,
467			children
468		});
469		$[2] = children;
470		$[3] = t1;
471		$[4] = t2;
472	} else t2 = $[4];
473	return t2;
474};
475var TrucksView = () => {
476	const $ = (0, import_compiler_runtime.c)(232);
477	const { id } = useParams();
478	const userInfo = useUserInfoQueryState();
479	const { data, isFetching, isError } = useGetFleetTruckDetailQuery(id ?? skipToken);
480	const record = data?.data;
481	const t0 = record?.vehicleYear;
482	const t1 = record?.vehicleMake;
483	const t2 = record?.vehicleModel;
484	let t3;
485	if ($[0] !== t0 || $[1] !== t1 || $[2] !== t2) {
486		t3 = [
487			t0,
488			t1,
489			t2
490		].map(_temp);
491		$[0] = t0;
492		$[1] = t1;
493		$[2] = t2;
494		$[3] = t3;
495	} else t3 = $[3];
496	const t4 = t3.join(" ");
497	let t5;
498	if ($[4] !== t4) {
499		t5 = t4.trim();
500		$[4] = t4;
501		$[5] = t5;
502	} else t5 = $[5];
503	const yearMakeModel = t5;
504	let T0;
505	let T1;
506	let T2;
507	let T3;
508	let T4;
509	let t10;
510	let t11;
511	let t12;
512	let t13;
513	let t14;
514	let t15;
515	let t16;
516	let t17;
517	let t18;
518	let t19;
519	let t20;
520	let t21;
521	let t22;
522	let t23;
523	let t24;
524	let t6;
525	let t7;
526	let t8;
527	let t9;
528	if ($[6] !== id || $[7] !== isError || $[8] !== isFetching || $[9] !== record || $[10] !== userInfo?.companyName || $[11] !== yearMakeModel) {
529		const assignedDrivers = record?.assignmentsDrivers?.drivers?.map(_temp2).filter(
529Boolean) ?? [];
530		t22 = "flex h-full flex-col px-5";
531		const t25$1 = record?.vehicleNo ? `Truck ${record.vehicleNo}` : `Truck ${id ?? ""}`;
532		let t26$1;
533		if ($[36] !== t25$1) {
534			t26$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppBreadcrumb, { lastTitle: t25$1 });
535			$[36] = t25$1;
536			$[37] = t26$1;
537		} else t26$1 = $[37];
538		const t27$1 = record?.vehicleNo;
539		const t28$1 = record?.vehicleNo ?? id;
540		let t29$1;
541		if ($[38] !== t27$1 || $[39] !== t28$1) {
542			t29$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", {
543				title: t27$1,
544				className: "truncate text-2xl font-semibold",
545				children: ["Truck - ", t28$1]
546			});
547			$[38] = t27$1;
548			$[39] = t28$1;
549			$[40] = t29$1;
550		} else t29$1 = $[40];
551		const t30$1 = userInfo?.companyName || "--";
552		let t31$1;
553		if ($[41] !== t30$1) {
554			t31$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrucksMetaItem, {
555				label: "Carrier",
556				children: t30$1
557			});
558			$[41] = t30$1;
559			$[42] = t31$1;
560		} else t31$1 = $[42];
561		let t32$1;
562		if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
563			t32$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrucksMetaDivider, {});
564			$[43] = t32$1;
565		} else t32$1 = $[43];
566		const t33$1 = record?.ownerName || "--";
567		let t34$1;
568		if ($[44] !== t33$1) {
569			t34$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrucksMetaItem, {
570				label: "Owner",
571				children: t33$1
572			});
573			$[44] = t33$1;
574			$[45] = t34$1;
575		} else t34$1 = $[45];
576		let t35$1;
577		if ($[46] !== t31$1 || $[47] !== t34$1) {
578			t35$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TrucksMetaRow, { children: [
579				t31$1,
580				t32$1,
581				t34$1
582			] });
583			$[46] = t31$1;
584			$[47] = t34$1;
585			$[48] = t35$1;
586		} else t35$1 = $[48];
587		let t36$1;
588		if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
589			t36$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
590				asChild: true,
591				className: "ml-auto",
592				children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
593					to: "../edit",
594					relative: "path",
595					children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pencil, {}), " Edit"]
596				})
597			});
598			$[49] = t36$1;
599		} else t36$1 = $[49];
600		let t37$1;
601		if ($[50] !== t29$1 || $[51] !== t35$1) {
602			t37$1 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
603				className: "mt-4 flex items-baseline",
604				children: [
605					t29$1,
606					t35$1,
607					t36$1
608				]
609			});
610			$[50] = t29$1;
611			$[51] = t35$1;
612			$[52] = t37$1;
613		} else t37$1 = $[52];
614		if ($[53] !== t26$1 || $[54] !== t37$1) {
615			t23 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
616				className: "pt-8 pb-6",
617				children: [t26$1, t37$1]
618			});
619			$[53] = t26$1;
620			$[54] = t37$1;
621			$[55] = t23;
622		} else t23 = $[55];
623		if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
624			t24 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {});
625			$[56] = t24;
626		} else t24 = $[56];
627		T4 = Spin;
628		t20 = isFetching;
629		t21 = "min-h-0 flex-1";
630		t19 = "flex h-full flex-col items-center overflow-auto py-5";
631		t17 = "flex max-w-[1200px] flex-col space-y-8";
632		if ($[57] !== isError) {
633			t18 = isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
634				variant: "destructive",
635				children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Failed to load truck details" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Please refresh the page or try again later." }) })]
636			}) : null;
637			$[57] = isError;
638			$[58] = t18;
639		} else t18 = $[58];
640		T3 = Card;
641		t15 = "gap-5 shadow-none";
642		if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
643			t16 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
644				className: "text-base",
645				children: "Basic Info"
646			}) });
647			$[59] = t16;
648		} else t16 = $[59];
649		T2 = CardContent;
650		T1 = InfoGrid;
651		const t38$1 = record?.vehicleNo;
652		let t39$1;
653		if ($[60] !== t38$1) {
654			t39$1 = formatDisplayValue(t38$1);
655			$[60] = t38$1;
656			$[61] = t39$1;
657		} else t39$1 = $[61];
658		if ($[62] !== t39$1) {
659			t8 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
660				label: "Truck Number",
661				value: t39$1
662			});
663			$[62] = t39$1;
664			$[63] = t8;
665		} else t8 = $[63];
666		const t40$1 = record?.vehicleVin;
667		let t41$1;
668		if ($[64] !== t40$1) {
669			t41$1 = formatDisplayValue(t40$1);
670			$[64] = t40$1;
671			$[65] = t41$1;
672		} else t41$1 = $[65];
673		if ($[66] !== t41$1) {
674			t9 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
675				label: "VIN",
676				value: t41$1
677			});
678			$[66] = t41$1;
679			$[67] = t9;
680		} else t9 = $[67];
681		const t42$1 = record?.status;
682		let t43$1;
683		if ($[68] !== t42$1) {
684			t43$1 = formatDisplayValue(t42$1);
685			$[68] = t42$1;
686			$[69] = t43$1;
687		} else t43$1 = $[69];
688		if ($[70] !== t43$1) {
689			t10 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
690				label: "Status",
691				value: t43$1
692			});
693			$[70] = t43$1;
694			$[71] = t10;
695		} else t10 = $[71];
696		const t44$1 = record?.fuelType;
697		let t45$1;
698		if ($[72] !== t44$1) {
699			t45$1 = formatDisplayValue(t44$1);
700			$[72] = t44$1;
701			$[73] = t45$1;
702		} else t45$1 = $[73];
703		if ($[74] !== t45$1) {
704			t11 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
705				label: "Fuel Type",
706				value: t45$1
707			});
708			$[74] = t45$1;
709			$[75] = t11;
710		} else t11 = $[75];
711		const t46$1 = record?.axles;
712		let t47$1;
713		if ($[76] !== t46$1) {
714			t47$1 = formatDisplayValue(t46$1);
715			$[76] = t46$1;
716			$[77] = t47$1;
717		} else t47$1 = $[77];
718		if ($[78] !== t47$1) {
719			t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
720				label: "Axles",
721				value: t47$1
722			});
723			$[78] = t47$1;
724			$[79] = t12;
725		} else t12 = $[79];
726		if ($[80] !== yearMakeModel) {
727			t13 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
728				label: "Year Make Model",
729				value: yearMakeModel
730			});
731			$[80] = yearMakeModel;
732			$[81] = t13;
733		} else t13 = $[81];
734		const t48$1 = record?.grossVehicleWeight;
735		let t49$1;
736		if ($[82] !== t48$1) {
737			t49$1 = formatDisplayValue(t48$1);
738			$[82] = t48$1;
739			$[83] = t49$1;
740		} else t49$1 = $[83];
741		if ($[84] !== t49$1) {
742			t14 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
743				label: "GVW",
744				value: t49$1
745			});
746			$[84] = t49$1;
747			$[85] = t14;
748		} else t14 = $[85];
749		T0 = InfoItem;
750		t6 = "Assign to";
751		t7 = assignedDrivers.length > 0 ? assignedDrivers.join(", ") : "--";
752		$[6] = id;
753		$[7] = isError;
754		$[8] = isFetching;
755		$[9] = record;
756		$[10] = userInfo?.companyName;
757		$[11] = yearMakeModel;
758		$[12] = T0;
759		$[13] = T1;
760		$[14] = T2;
761		$[15] = T3;
762		$[16] = T4;
763		$[17] = t10;
764		$[18] = t11;
765		$[19] = t12;
766		$[20] = t13;
767		$[21] = t14;
768		$[22] = t15;
769		$[23] = t16;
770		$[24] = t17;
771		$[25] = t18;
772		$[26] = t19;
773		$[27] = t20;
774		$[28] = t21;
775		$[29] = t22;
776		$[30] = t23;
777		$[31] = t24;
778		$[32] = t6;
779		$[33] = t7;
780		$[34] = t8;
781		$[35] = t9;
782	} else {
783		T0 = $[12];
784		T1 = $[13];
785		T2 = $[14];
786		T3 = $[15];
787		T4 = $[16];
788		t10 = $[17];
789		t11 = $[18];
790		t12 = $[19];
791		t13 = $[20];
792		t14 = $[21];
793		t15 = $[22];
794		t16 = $[23];
795		t17 = $[24];
796		t18 = $[25];
797		t19 = $[26];
798		t20 = $[27];
799		t21 = $[28];
800		t22 = $[29];
801		t23 = $[30];
802		t24 = $[31];
803		t6 = $[32];
804		t7 = $[33];
805		t8 = $[34];
806		t9 = $[35];
807	}
808	let t25;
809	if ($[86] !== T0 || $[87] !== t6 || $[88] !== t7) {
810		t25 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T0, {
811			label: t6,
812			value: t7
813		});
814		$[86] = T0;
815		$[87] = t6;
816		$[88] = t7;
817		$[89] = t25;
818	} else t25 = $[89];
819	const t26 = record?.linkedWithEld;
820	let t27;
821	if ($[90] !== t26) {
822		t27 = formatDisplayValue(t26);
823		$[90] = t26;
824		$[91] = t27;
825	} else t27 = $[91];
826	let t28;
827	if ($[92] !== t27) {
828		t28 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
829			label: "ELD Linked",
830			value: t27
831		});
832		$[92] = t27;
833		$[93] = t28;
834	} else t28 = $[93];
835	const t29 = record?.incluededInIfta ? "visible" : "hidden";
836	let t30;
837	if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
838		t30 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
839			label: "Included for IFTA report",
840			value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "size-5 text-primary" })
841		});
842		$[94] = t30;
843	} else t30 = $[94];
844	let t31;
845	if ($[95] !== t29) {
846		t31 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Activity, {
847			mode: t29,
848			children: t30
849		});
850		$[95] = t29;
851		$[96] = t31;
852	} else t31 = $[96];
853	let t32;
854	if ($[97] !== T1 || $[98] !== t10 || $[99] !== t11 || $[100] !== t12 || $[101] !== t13 || $[102] !== t14 || $[103] !== t25 || $[104] !== t28 || $[105] !== t31 || $[106] !== t8 || $[107] !== t9) {
855		t32 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(T1, { children: [
856			t8,
857			t9,
858			t10,
859			t11,
860			t12,
861			t13,
862			t14,
863			t25,
864			t28,
865			t31
866		] });
867		$[97] = T1;
868		$[98] = t10;
869		$[99] = t11;
870		$[100] = t12;
871		$[101] = t13;
872		$[102] = t14;
873		$[103] = t25;
874		$[104] = t28;
875		$[105] = t31;
876		$[106] = t8;
877		$[107] = t9;
878		$[108] = t32;
879	} else t32 = $[108];
880	let t33;
881	if ($[109] !== T2 || $[110] !== t32) {
882		t33 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T2, { children: t32 });
883		$[109] = T2;
884		$[110] = t32;
885		$[111] = t33;
886	} else t33 = $[111];
887	let t34;
888	if ($[112] !== T3 || $[113] !== t15 || $[114] !== t16 || $[115] !== t33) {
889		t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(T3, {
890			className: t15,
891			children: [t16, t33]
892		});
893		$[112] = T3;
894		$[113] = t15;
895		$[114] = t16;
896		$[115] = t33;
897		$[116] = t34;
898	} else t34 = $[116];
899	let t35;
900	if ($[117] === Symbol.for("react.memo_cache_sentinel")) {
901		t35 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
902			className: "text-base",
903			children: "Truck Details"
904		}) });
905		$[117] = t35;
906	} else t35 = $[117];
907	const t36 = record?.height;
908	const t37 = record?.heightInches;
909	let t38;
910	if ($[118] !== t36 || $[119] !== t37) {
911		t38 = formatFeetInchesValue(t36, t37);
912		$[118] = t36;
913		$[119] = t37;
914		$[120] = t38;
915	} else t38 = $[120];
916	let t39;
917	if ($[121] !== t38) {
918		t39 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
919			label: "Height",
920			value: t38
921		});
922		$[121] = t38;
923		$[122] = t39;
924	} else t39 = $[122];
925	const t40 = record?.width;
926	const t41 = record?.widthInches;
927	let t42;
928	if ($[123] !== t40 || $[124] !== t41) {
929		t42 = formatFeetInchesValue(t40, t41);
930		$[123] = t40;
931		$[124] = t41;
932		$[125] = t42;
933	} else t42 = $[125];
934	let t43;
935	if ($[126] !== t42) {
936		t43 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
937			label: "Width",
938			value: t42
939		});
940		$[126] = t42;
941		$[127] = t43;
942	} else t43 = $[127];
943	const t44 = record?.length;
944	const t45 = record?.lengthInches;
945	let t46;
946	if ($[128] !== t44 || $[129] !== t45) {
947		t46 = formatFeetInchesValue(t44, t45);
948		$[128] = t44;
949		$[129] = t45;
950		$[130] = t46;
951	} else t46 = $[130];
952	let t47;
953	if ($[131] !== t46) {
954		t47 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
955			label: "Length",
956			value: t46
957		});
958		$[131] = t46;
959		$[132] = t47;
960	} else t47 = $[132];
961	const t48 = record?.odometer;
962	let t49;
963	if ($[133] !== t48) {
964		t49 = formatDisplayValue(t48, " Mi.");
965		$[133] = t48;
966		$[134] = t49;
967	} else t49 = $[134];
968	let t50;
969	if ($[135] !== t49) {
970		t50 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
971			label: "Current Odometer",
972			value: t49
973		});
974		$[135] = t49;
975		$[136] = t50;
976	} else t50 = $[136];
977	const t51 = record?.yearPurchased;
978	let t52;
979	if ($[137] !== t51) {
980		t52 = formatDisplayValue(t51);
981		$[137] = t51;
982		$[138] = t52;
983	} else t52 = $[138];
984	let t53;
985	if ($[139] !== t52) {
986		t53 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
987			label: "Year Purchased",
988			value: t52
989		});
990		$[139] = t52;
991		$[140] = t53;
992	} else t53 = $[140];
993	const t54 = record?.owner;
994	let t55;
995	if ($[141] !== t54) {
996		t55 = formatDisplayValue(t54);
997		$[141] = t54;
998		$[142] = t55;
999	} else t55 = $[142];
1000	let t56;
1001	if ($[143] !== t55) {
1002		t56 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1003			label: "Owner",
1004			value: t55
1005		});
1006		$[143] = t55;
1007		$[144] = t56;
1008	} else t56 = $[144];
1009	const t57 = record?.transmittion;
1010	let t58;
1011	if ($[145] !== t57) {
1012		t58 = formatDisplayValue(t57);
1013		$[145] = t57;
1014		$[146] = t58;
1015	} else t58 = $[146];
1016	let t59;
1017	if ($[147] !== t58) {
1018		t59 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1019			label: "Transmission",
1020			value: t58
1021		});
1022		$[147] = t58;
1023		$[148] = t59;
1024	} else t59 = $[148];
1025	const t60 = record?.fuelCapacity;
1026	let t61;
1027	if ($[149] !== t60) {
1028		t61 = formatDisplayValue(t60, " Gal.");
1029		$[149] = t60;
1030		$[150] = t61;
1031	} else t61 = $[150];
1032	let t62;
1033	if ($[151] !== t61) {
1034		t62 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1035			label: "Fuel Capacity",
1036			value: t61
1037		});
1038		$[151] = t61;
1039		$[152] = t62;
1040	} else t62 = $[152];
1041	const t63 = record?.braking;
1042	let t64;
1043	if ($[153] !== t63) {
1044		t64 = formatDisplayValue(t63);
1045		$[153] = t63;
1046		$[154] = t64;
1047	} else t64 = $[154];
1048	let t65;
1049	if ($[155] !== t64) {
1050		t65 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1051			label: "Braking",
1052			value: t64
1053		});
1054		$[155] = t64;
1055		$[156] = t65;
1056	} else t65 = $[156];
1057	const t66 = record?.sleepBerth;
1058	let t67;
1059	if ($[157] !== t66) {
1060		t67 = formatDisplayValue(t66);
1061		$[157] = t66;
1062		$[158] = t67;
1063	} else t67 = $[158];
1064	let t68;
1065	if ($[159] !== t67) {
1066		t68 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1067			label: "Sleeper Berth",
1068			value: t67
1069		});
1070		$[159] = t67;
1071		$[160] = t68;
1072	} else t68 = $[160];
1073	const t69 = record?.tire_info;
1074	let t70;
1075	if ($[161] !== t69) {
1076		t70 = formatDisplayValue(t69);
1077		$[161] = t69;
1078		$[162] = t70;
1079	} else t70 = $[162];
1080	let t71;
1081	if ($[163] !== t70) {
1082		t71 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1083			label: "Tire Info",
1084			value: t70
1085		});
1086		$[163] = t70;
1087		$[164] = t71;
1088	} else t71 = $[164];
1089	let t72;
1090	if ($[165] !== t39 || $[166] !== t43 || $[167] !== t47 || $[168] !== t50 || $[169] !== t53 || $[170] !== t56 || $[171] !== t59 || $[172] !== t62 || $[173] !== t65 || $[174] !== t68 || $[175] !== t71) {
1091		t72 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
1092			className: "gap-5 shadow-none",
1093			children: [t35, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InfoGrid, { children: [
1094				t39,
1095				t43,
1096				t47,
1097				t50,
1098				t53,
1099				t56,
1100				t59,
1101				t62,
1102				t65,
1103				t68,
1104				t71
1105			] }) })]
1106		});
1107		$[165] = t39;
1108		$[166] = t43;
1109		$[167] = t47;
1110		$[168] = t50;
1111		$[169] = t53;
1112		$[170] = t56;
1113		$[171] = t59;
1114		$[172] = t62;
1115		$[173] = t65;
1116		$[174] = t68;
1117		$[175] = t71;
1118		$[176] = t72;
1119	} else t72 = $[176];
1120	let t73;
1121	if ($[177] === Symbol.for("react.memo_cache_sentinel")) {
1122		t73 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
1123			className: "text-base",
1124			children: "Registration & Insurance"
1125		}) });
1126		$[177] = t73;
1127	} else t73 = $[177];
1128	const t74 = record?.plate;
1129	let t75;
1130	if ($[178] !== t74) {
1131		t75 = formatDisplayValue(t74);
1132		$[178] = t74;
1133		$[179] = t75;
1134	} else t75 = $[179];
1135	let t76;
1136	if ($[180] !== t75) {
1137		t76 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1138			label: "Registration Plate",
1139			value: t75
1140		});
1141		$[180] = t75;
1142		$[181] = t76;
1143	} else t76 = $[181];
1144	const t77 = record?.regisProvince;
1145	let t78;
1146	if ($[182] !== t77) {
1147		t78 = formatDisplayValue(t77);
1148		$[182] = t77;
1149		$[183] = t78;
1150	} else t78 = $[183];
1151	let t79;
1152	if ($[184] !== t78) {
1153		t79 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1154			label: "Registration State",
1155			value: t78
1156		});
1157		$[184] = t78;
1158		$[185] = t79;
1159	} else t79 = $[185];
1160	const t80 = record?.regisValidTill;
1161	let t81;
1162	if ($[186] !== t80) {
1163		t81 = safeFormatDate(t80);
1164		$[186] = t80;
1165		$[187] = t81;
1166	} else t81 = $[187];
1167	let t82;
1168	if ($[188] !== t81) {
1169		t82 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1170			label: "Reg. Exp. Date",
1171			value: t81
1172		});
1173		$[188] = t81;
1174		$[189] = t82;
1175	} else t82 = $[189];
1176	const t83 = record?.insuranceProvider;
1177	let t84;
1178	if ($[190] !== t83) {
1179		t84 = formatDisplayValue(t83);
1180		$[190] = t83;
1181		$[191] = t84;
1182	} else t84 = $[191];
1183	let t85;
1184	if ($[192] !== t84) {
1185		t85 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1186			label: "Insurance Provider",
1187			value: t84
1188		});
1189		$[192] = t84;
1190		$[193] = t85;
1191	} else t85 = $[193];
1192	const t86 = record?.insuranceValidPeriordFrom;
1193	const t87 = record?.insuranceValidPeriordTo;
1194	let t88;
1195	if ($[194] !== t86 || $[195] !== t87) {
1196		t88 = formatInsuranceTerm(t86, t87);
1197		$[194] = t86;
1198		$[195] = t87;
1199		$[196] = t88;
1200	} else t88 = $[196];
1201	let t89;
1202	if ($[197] !== t88) {
1203		t89 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1204			label: "Insurance term",
1205			value: t88
1206		});
1207		$[197] = t88;
1208		$[198] = t89;
1209	} else t89 = $[198];
1210	const t90 = record?.fmv;
1211	let t91;
1212	if ($[199] !== t90) {
1213		t91 = formatCurrencyValue(t90);
1214		$[199] = t90;
1215		$[200] = t91;
1216	} else t91 = $[200];
1217	let t92;
1218	if ($[201] !== t91) {
1219		t92 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InfoItem, {
1220			label: "FMV",
1221			value: t91
1222		});
1223		$[201] = t91;
1224		$[202] = t92;
1225	} else t92 = $[202];
1226	let t93;
1227	if ($[203] !== t76 || $[204] !== t79 || $[205] !== t82 || $[206] !== t85 || $[207] !== t89 || $[208] !== t92) {
1228		t93 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
1229			className: "gap-5 shadow-none",
1230			children: [t73, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InfoGrid, { children: [
1231				t76,
1232				t79,
1233				t82,
1234				t85,
1235				t89,
1236				t92
1237			] }) })]
1238		});
1239		$[203] = t76;
1240		$[204] = t79;
1241		$[205] = t82;
1242		$[206] = t85;
1243		$[207] = t89;
1244		$[208] = t92;
1245		$[209] = t93;
1246	} else t93 = $[209];
1247	let t94;
1248	if ($[210] !== record) {
1249		t94 = record?.id && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrucksDocuments, { truckerId: record.id });
1250		$[210] = record;
1251		$[211] = t94;
1252	} else t94 = $[211];
1253	let t95;
1254	if ($[212] !== t17 || $[213] !== t18 || $[214] !== t34 || $[215] !== t72 || $[216] !== t93 || $[217] !== t94) {
1255		t95 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1256			className: t17,
1257			children: [
1258				t18,
1259				t34,
1260				t72,
1261				t93,
1262				t94
1263			]
1264		});
1265		$[212] = t17;
1266		$[213] = t18;
1267		$[214] = t34;
1268		$[215] = t72;
1269		$[216] = t93;
1270		$[217] = t94;
1271		$[218] = t95;
1272	} else t95 = $[218];
1273	let t96;
1274	if ($[219] !== t19 || $[220] !== t95) {
1275		t96 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1276			className: t19,
1277			children: t95
1278		});
1279		$[219] = t19;
1280		$[220] = t95;
1281		$[221] = t96;
1282	} else t96 = $[221];
1283	let t97;
1284	if ($[222] !== T4 || $[223] !== t20 || $[224] !== t21 || $[225] !== t96) {
1285		t97 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T4, {
1286			spinning: t20,
1287			wrapperClassName: t21,
1288			children: t96
1289		});
1290		$[222] = T4;
1291		$[223] = t20;
1292		$[224] = t21;
1293		$[225] = t96;
1294		$[226] = t97;
1295	} else t97 = $[226];
1296	let t98;
1297	if ($[227] !== t22 || $[228] !== t23 || $[229] !== t24 || $[230] !== t97) {
1298		t98 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1299			className: t22,
1300			children: [
1301				t23,
1302				t24,
1303				t97
1304			]
1305		});
1306		$[227] = t22;
1307		$[228] = t23;
1308		$[229] = t24;
1309		$[230] = t97;
1310		$[231] = t98;
1311	} else t98 = $[231];
1312	return t98;
1313};
1314var trucks_view_default = TrucksView;
1315function _temp(v) {
1316	return formatDisplayValue(v);
1317}
1318function _temp2(d) {
1319	return d.name;
1320}
1321export { trucks_view_default 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.