@shortstravelmgmt/component-lib 0.1.0 → 0.1.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.
package/dist/index.esm.js CHANGED
@@ -20,6 +20,7 @@ const ChevronUpIcon = createIcon(jsx("path", { d: "m18 15-6-6-6 6" }), 'ChevronU
20
20
  const ChevronRightIcon$1 = createIcon(jsx("path", { d: "m9 18 6-6-6-6" }), 'ChevronRightIcon');
21
21
  const ChevronLeftIcon = createIcon(jsx("path", { d: "m15 18-6-6 6-6" }), 'ChevronLeftIcon');
22
22
  const ArrowUpRightIcon = createIcon(jsxs(Fragment, { children: [jsx("path", { d: "M7 7h10v10" }), jsx("path", { d: "M7 17 17 7" })] }), 'ArrowUpRightIcon');
23
+ const ArrowDownLeftIcon = createIcon(jsxs(Fragment, { children: [jsx("path", { d: "M17 7 7 17" }), jsx("path", { d: "M17 17H7V7" })] }), 'ArrowDownLeftIcon');
23
24
  const EyeIcon = createIcon(jsxs(Fragment, { children: [jsx("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }), jsx("circle", { cx: "12", cy: "12", r: "3" })] }), 'EyeIcon');
24
25
  const DownloadIcon = createIcon(jsxs(Fragment, { children: [jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), jsx("polyline", { points: "7 10 12 15 17 10" }), jsx("line", { x1: "12", x2: "12", y1: "15", y2: "3" })] }), 'DownloadIcon');
25
26
  const FilterIcon$1 = createIcon(jsx("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }), 'FilterIcon');
@@ -69,6 +70,7 @@ const Icons = {
69
70
  ChevronRight: ChevronRightIcon$1,
70
71
  ChevronLeft: ChevronLeftIcon,
71
72
  ArrowUpRight: ArrowUpRightIcon,
73
+ ArrowDownLeft: ArrowDownLeftIcon,
72
74
  Eye: EyeIcon,
73
75
  Download: DownloadIcon,
74
76
  Filter: FilterIcon$1,
@@ -105,7 +107,7 @@ const Icons = {
105
107
  Trash: TrashIcon$2,
106
108
  };
107
109
 
108
- var styles$$ = {"alert":"Alert-module_alert__xxiES","content":"Alert-module_content__CVX32","icon":"Alert-module_icon__Xyh6J","body":"Alert-module_body__TTkmt","title":"Alert-module_title__7wNPO","message":"Alert-module_message__plreL","dismissButton":"Alert-module_dismissButton__MdRWh","primary":"Alert-module_primary__nME13","success":"Alert-module_success__GDt4S","warning":"Alert-module_warning__y4bLx","error":"Alert-module_error__nKMAG"};
110
+ var styles$17 = {"alert":"Alert-module_alert__xxiES","content":"Alert-module_content__CVX32","icon":"Alert-module_icon__Xyh6J","body":"Alert-module_body__TTkmt","title":"Alert-module_title__7wNPO","message":"Alert-module_message__plreL","dismissButton":"Alert-module_dismissButton__MdRWh","primary":"Alert-module_primary__nME13","success":"Alert-module_success__GDt4S","warning":"Alert-module_warning__y4bLx","error":"Alert-module_error__nKMAG"};
109
111
 
110
112
  const variantIcons = {
111
113
  primary: LightbulbIcon,
@@ -115,10 +117,10 @@ const variantIcons = {
115
117
  };
116
118
  const Alert = ({ variant = 'primary', title, children, dismissible = false, onDismiss, className = '', }) => {
117
119
  const IconComponent = variantIcons[variant];
118
- return (jsx("div", { className: `${styles$$.alert} ${styles$$[variant]} ${className}`, role: "alert", children: jsxs("div", { className: styles$$.content, children: [jsx(IconComponent, { className: styles$$.icon, size: 20 }), jsxs("div", { className: styles$$.body, children: [title && jsx("h4", { className: styles$$.title, children: title }), jsx("div", { className: styles$$.message, children: children })] }), dismissible && onDismiss && (jsx("button", { type: "button", onClick: onDismiss, className: styles$$.dismissButton, "aria-label": "Dismiss alert", children: jsx(CloseIcon, { size: 16 }) }))] }) }));
120
+ return (jsx("div", { className: `${styles$17.alert} ${styles$17[variant]} ${className}`, role: "alert", children: jsxs("div", { className: styles$17.content, children: [jsx(IconComponent, { className: styles$17.icon, size: 20 }), jsxs("div", { className: styles$17.body, children: [title && jsx("h4", { className: styles$17.title, children: title }), jsx("div", { className: styles$17.message, children: children })] }), dismissible && onDismiss && (jsx("button", { type: "button", onClick: onDismiss, className: styles$17.dismissButton, "aria-label": "Dismiss alert", children: jsx(CloseIcon, { size: 16 }) }))] }) }));
119
121
  };
120
122
 
121
- var styles$_ = {"avatar":"Avatar-module_avatar__AcTRg","xs":"Avatar-module_xs__4uGxI","sm":"Avatar-module_sm__NvzTi","md":"Avatar-module_md__PgY8p","lg":"Avatar-module_lg__lhkAZ","xl":"Avatar-module_xl__qTDTF","image":"Avatar-module_image__GX2c9","initials":"Avatar-module_initials__58FHH","group":"Avatar-module_group__XW0b1","overflow":"Avatar-module_overflow__ul4Cc"};
123
+ var styles$16 = {"avatar":"Avatar-module_avatar__AcTRg","xs":"Avatar-module_xs__4uGxI","sm":"Avatar-module_sm__NvzTi","md":"Avatar-module_md__PgY8p","lg":"Avatar-module_lg__lhkAZ","xl":"Avatar-module_xl__qTDTF","image":"Avatar-module_image__GX2c9","initials":"Avatar-module_initials__58FHH","group":"Avatar-module_group__XW0b1","overflow":"Avatar-module_overflow__ul4Cc"};
122
124
 
123
125
  const getInitials = (name) => {
124
126
  const parts = name.trim().split(/\s+/);
@@ -133,43 +135,43 @@ const getInitials = (name) => {
133
135
  const Avatar = ({ src, alt, initials, name, size = 'md', className = '', ...props }) => {
134
136
  const displayInitials = initials || (name ? getInitials(name) : '?');
135
137
  const classNames = [
136
- styles$_.avatar,
137
- styles$_[size],
138
+ styles$16.avatar,
139
+ styles$16[size],
138
140
  className,
139
141
  ]
140
142
  .filter(Boolean)
141
143
  .join(' ');
142
- return (jsx("div", { className: classNames, ...props, children: src ? (jsx("img", { src: src, alt: alt || name || 'Avatar', className: styles$_.image })) : (jsx("span", { className: styles$_.initials, children: displayInitials })) }));
144
+ return (jsx("div", { className: classNames, ...props, children: src ? (jsx("img", { src: src, alt: alt || name || 'Avatar', className: styles$16.image })) : (jsx("span", { className: styles$16.initials, children: displayInitials })) }));
143
145
  };
144
146
  Avatar.displayName = 'Avatar';
145
147
  const AvatarGroup = ({ max = 4, className = '', children, ...props }) => {
146
148
  const childArray = React.Children.toArray(children);
147
149
  const visibleChildren = childArray.slice(0, max);
148
150
  const remainingCount = childArray.length - max;
149
- const classNames = [styles$_.group, className].filter(Boolean).join(' ');
150
- return (jsxs("div", { className: classNames, ...props, children: [visibleChildren, remainingCount > 0 && (jsx("div", { className: `${styles$_.avatar} ${styles$_.md} ${styles$_.overflow}`, children: jsxs("span", { className: styles$_.initials, children: ["+", remainingCount] }) }))] }));
151
+ const classNames = [styles$16.group, className].filter(Boolean).join(' ');
152
+ return (jsxs("div", { className: classNames, ...props, children: [visibleChildren, remainingCount > 0 && (jsx("div", { className: `${styles$16.avatar} ${styles$16.md} ${styles$16.overflow}`, children: jsxs("span", { className: styles$16.initials, children: ["+", remainingCount] }) }))] }));
151
153
  };
152
154
  AvatarGroup.displayName = 'AvatarGroup';
153
155
 
154
- var styles$Z = {"badge":"Badge-module_badge__lvuUg","sm":"Badge-module_sm__OTBAp","md":"Badge-module_md__YG44i","dot":"Badge-module_dot__RgcVD","default":"Badge-module_default__1ga4w","success":"Badge-module_success__jEfI9","warning":"Badge-module_warning__978mf","error":"Badge-module_error__xZJlm","info":"Badge-module_info__Xk7MM"};
156
+ var styles$15 = {"badge":"Badge-module_badge__lvuUg","sm":"Badge-module_sm__OTBAp","md":"Badge-module_md__YG44i","dot":"Badge-module_dot__RgcVD","default":"Badge-module_default__1ga4w","success":"Badge-module_success__jEfI9","warning":"Badge-module_warning__978mf","error":"Badge-module_error__xZJlm","info":"Badge-module_info__Xk7MM"};
155
157
 
156
158
  /**
157
159
  * Badge component for status indicators, labels, and tags.
158
160
  */
159
161
  const Badge = ({ variant = 'default', size = 'md', dot = false, className = '', children, ...props }) => {
160
162
  const classNames = [
161
- styles$Z.badge,
162
- styles$Z[variant],
163
- styles$Z[size],
163
+ styles$15.badge,
164
+ styles$15[variant],
165
+ styles$15[size],
164
166
  className,
165
167
  ]
166
168
  .filter(Boolean)
167
169
  .join(' ');
168
- return (jsxs("span", { className: classNames, ...props, children: [dot && jsx("span", { className: styles$Z.dot }), children] }));
170
+ return (jsxs("span", { className: classNames, ...props, children: [dot && jsx("span", { className: styles$15.dot }), children] }));
169
171
  };
170
172
  Badge.displayName = 'Badge';
171
173
 
172
- var styles$Y = {"button":"Button-module_button__xDdzH","sm":"Button-module_sm__fb2AF","md":"Button-module_md__XOa6t","lg":"Button-module_lg__UN9rL","square":"Button-module_square__-o34b","primary":"Button-module_primary__jWHqR","secondary":"Button-module_secondary__30FUq","outline":"Button-module_outline__v98mS","ghost":"Button-module_ghost__XUGB1","danger":"Button-module_danger__NUxPy","fullWidth":"Button-module_fullWidth__p2otK","loading":"Button-module_loading__TsL5I","spinner":"Button-module_spinner__6bZoj","spin":"Button-module_spin__ZPDMG","icon":"Button-module_icon__21hUM","content":"Button-module_content__iVRPQ"};
174
+ var styles$14 = {"button":"Button-module_button__xDdzH","sm":"Button-module_sm__fb2AF","md":"Button-module_md__XOa6t","lg":"Button-module_lg__UN9rL","square":"Button-module_square__-o34b","primary":"Button-module_primary__jWHqR","secondary":"Button-module_secondary__30FUq","outline":"Button-module_outline__v98mS","ghost":"Button-module_ghost__XUGB1","danger":"Button-module_danger__NUxPy","fullWidth":"Button-module_fullWidth__p2otK","loading":"Button-module_loading__TsL5I","spinner":"Button-module_spinner__6bZoj","spin":"Button-module_spin__ZPDMG","icon":"Button-module_icon__21hUM","content":"Button-module_content__iVRPQ"};
173
175
 
174
176
  /**
175
177
  * Primary button component for user interactions.
@@ -177,21 +179,21 @@ var styles$Y = {"button":"Button-module_button__xDdzH","sm":"Button-module_sm__f
177
179
  */
178
180
  const Button = forwardRef(({ variant = 'primary', size = 'md', fullWidth = false, loading = false, leftIcon, rightIcon, square = false, className = '', disabled, children, ...props }, ref) => {
179
181
  const classNames = [
180
- styles$Y.button,
181
- styles$Y[variant],
182
- styles$Y[size],
183
- fullWidth ? styles$Y.fullWidth : '',
184
- square ? styles$Y.square : '',
185
- loading ? styles$Y.loading : '',
182
+ styles$14.button,
183
+ styles$14[variant],
184
+ styles$14[size],
185
+ fullWidth ? styles$14.fullWidth : '',
186
+ square ? styles$14.square : '',
187
+ loading ? styles$14.loading : '',
186
188
  className,
187
189
  ]
188
190
  .filter(Boolean)
189
191
  .join(' ');
190
- return (jsxs("button", { ref: ref, className: classNames, disabled: disabled || loading, ...props, children: [loading && (jsx("span", { className: styles$Y.spinner, children: jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "12", cy: "12", r: "10", strokeOpacity: "0.25" }), jsx("path", { d: "M12 2a10 10 0 0 1 10 10", strokeLinecap: "round" })] }) })), !loading && leftIcon && jsx("span", { className: styles$Y.icon, children: leftIcon }), children && jsx("span", { className: styles$Y.content, children: children }), !loading && rightIcon && jsx("span", { className: styles$Y.icon, children: rightIcon })] }));
192
+ return (jsxs("button", { ref: ref, className: classNames, disabled: disabled || loading, ...props, children: [loading && (jsx("span", { className: styles$14.spinner, children: jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "12", cy: "12", r: "10", strokeOpacity: "0.25" }), jsx("path", { d: "M12 2a10 10 0 0 1 10 10", strokeLinecap: "round" })] }) })), !loading && leftIcon && jsx("span", { className: styles$14.icon, children: leftIcon }), children && jsx("span", { className: styles$14.content, children: children }), !loading && rightIcon && jsx("span", { className: styles$14.icon, children: rightIcon })] }));
191
193
  });
192
194
  Button.displayName = 'Button';
193
195
 
194
- var styles$X = {"wrapper":"Checkbox-module_wrapper__tYM-f","label":"Checkbox-module_label__x7c9f","disabled":"Checkbox-module_disabled__YtL8b","checkboxWrapper":"Checkbox-module_checkboxWrapper__ez0mi","input":"Checkbox-module_input__xBHoX","checkbox":"Checkbox-module_checkbox__zGuTf","sm":"Checkbox-module_sm__naurE","md":"Checkbox-module_md__LlE6O","lg":"Checkbox-module_lg__dMWT-","hasError":"Checkbox-module_hasError__aCefd","labelText":"Checkbox-module_labelText__7arlw","helperText":"Checkbox-module_helperText__jR4oi","errorText":"Checkbox-module_errorText__u8puP"};
196
+ var styles$13 = {"wrapper":"Checkbox-module_wrapper__tYM-f","label":"Checkbox-module_label__x7c9f","disabled":"Checkbox-module_disabled__YtL8b","checkboxWrapper":"Checkbox-module_checkboxWrapper__ez0mi","input":"Checkbox-module_input__xBHoX","checkbox":"Checkbox-module_checkbox__zGuTf","sm":"Checkbox-module_sm__naurE","md":"Checkbox-module_md__LlE6O","lg":"Checkbox-module_lg__dMWT-","hasError":"Checkbox-module_hasError__aCefd","labelText":"Checkbox-module_labelText__7arlw","helperText":"Checkbox-module_helperText__jR4oi","errorText":"Checkbox-module_errorText__u8puP"};
195
197
 
196
198
  const CheckIcon$1 = () => (jsx("svg", { width: "10", height: "8", viewBox: "0 0 10 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M1 4L3.5 6.5L9 1", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
197
199
  const IndeterminateIcon = () => (jsx("svg", { width: "10", height: "2", viewBox: "0 0 10 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M1 1H9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }));
@@ -204,10 +206,10 @@ const Checkbox = forwardRef(({ label, size = 'md', helperText, error, indetermin
204
206
  const helperId = `${checkboxId}-helper`;
205
207
  const errorId = `${checkboxId}-error`;
206
208
  const wrapperClasses = [
207
- styles$X.wrapper,
208
- styles$X[size],
209
- disabled ? styles$X.disabled : '',
210
- error ? styles$X.hasError : '',
209
+ styles$13.wrapper,
210
+ styles$13[size],
211
+ disabled ? styles$13.disabled : '',
212
+ error ? styles$13.hasError : '',
211
213
  className,
212
214
  ].filter(Boolean).join(' ');
213
215
  // Handle indeterminate state via ref
@@ -223,13 +225,13 @@ const Checkbox = forwardRef(({ label, size = 'md', helperText, error, indetermin
223
225
  ref.current = node;
224
226
  }
225
227
  };
226
- return (jsxs("div", { className: wrapperClasses, children: [jsxs("label", { className: styles$X.label, children: [jsxs("div", { className: styles$X.checkboxWrapper, children: [jsx("input", { ref: inputRef, type: "checkbox", id: checkboxId, className: styles$X.input, disabled: disabled, checked: checked, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
228
+ return (jsxs("div", { className: wrapperClasses, children: [jsxs("label", { className: styles$13.label, children: [jsxs("div", { className: styles$13.checkboxWrapper, children: [jsx("input", { ref: inputRef, type: "checkbox", id: checkboxId, className: styles$13.input, disabled: disabled, checked: checked, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
227
229
  .filter(Boolean)
228
- .join(' ') || undefined, ...props }), jsx("span", { className: styles$X.checkbox, children: indeterminate ? jsx(IndeterminateIcon, {}) : jsx(CheckIcon$1, {}) })] }), label && jsx("span", { className: styles$X.labelText, children: label })] }), error && (jsx("span", { id: errorId, className: styles$X.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$X.helperText, children: helperText }))] }));
230
+ .join(' ') || undefined, ...props }), jsx("span", { className: styles$13.checkbox, children: indeterminate ? jsx(IndeterminateIcon, {}) : jsx(CheckIcon$1, {}) })] }), label && jsx("span", { className: styles$13.labelText, children: label })] }), error && (jsx("span", { id: errorId, className: styles$13.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$13.helperText, children: helperText }))] }));
229
231
  });
230
232
  Checkbox.displayName = 'Checkbox';
231
233
 
232
- var styles$W = {"wrapper":"Datepicker-module_wrapper__SdezU","fullWidth":"Datepicker-module_fullWidth__CAeMt","label":"Datepicker-module_label__qUNBV","inputWrapper":"Datepicker-module_inputWrapper__FK2IJ","sm":"Datepicker-module_sm__DuDMB","md":"Datepicker-module_md__oyus3","lg":"Datepicker-module_lg__2sqBg","icon":"Datepicker-module_icon__WdaRf","input":"Datepicker-module_input__4TCcy","disabled":"Datepicker-module_disabled__W0e-a","error":"Datepicker-module_error__XPpIy","helperText":"Datepicker-module_helperText__UllZP","errorText":"Datepicker-module_errorText__lveyr"};
234
+ var styles$12 = {"wrapper":"Datepicker-module_wrapper__SdezU","fullWidth":"Datepicker-module_fullWidth__CAeMt","label":"Datepicker-module_label__qUNBV","inputWrapper":"Datepicker-module_inputWrapper__FK2IJ","sm":"Datepicker-module_sm__DuDMB","md":"Datepicker-module_md__oyus3","lg":"Datepicker-module_lg__2sqBg","icon":"Datepicker-module_icon__WdaRf","input":"Datepicker-module_input__4TCcy","disabled":"Datepicker-module_disabled__W0e-a","error":"Datepicker-module_error__XPpIy","helperText":"Datepicker-module_helperText__UllZP","errorText":"Datepicker-module_errorText__lveyr"};
233
235
 
234
236
  const CalendarIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })] }));
235
237
  /**
@@ -241,23 +243,23 @@ const Datepicker = forwardRef(({ size = 'md', label, helperText, error, fullWidt
241
243
  const helperId = `${inputId}-helper`;
242
244
  const errorId = `${inputId}-error`;
243
245
  const wrapperClasses = [
244
- styles$W.wrapper,
245
- fullWidth ? styles$W.fullWidth : '',
246
+ styles$12.wrapper,
247
+ fullWidth ? styles$12.fullWidth : '',
246
248
  className,
247
249
  ].filter(Boolean).join(' ');
248
250
  const inputWrapperClasses = [
249
- styles$W.inputWrapper,
250
- styles$W[size],
251
- error ? styles$W.error : '',
252
- disabled ? styles$W.disabled : '',
251
+ styles$12.inputWrapper,
252
+ styles$12[size],
253
+ error ? styles$12.error : '',
254
+ disabled ? styles$12.disabled : '',
253
255
  ].filter(Boolean).join(' ');
254
- return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$W.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [jsx("span", { className: styles$W.icon, children: jsx(CalendarIcon, {}) }), jsx("input", { ref: ref, type: "date", id: inputId, className: styles$W.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
256
+ return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$12.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [jsx("span", { className: styles$12.icon, children: jsx(CalendarIcon, {}) }), jsx("input", { ref: ref, type: "date", id: inputId, className: styles$12.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
255
257
  .filter(Boolean)
256
- .join(' ') || undefined, ...props })] }), error && (jsx("span", { id: errorId, className: styles$W.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$W.helperText, children: helperText }))] }));
258
+ .join(' ') || undefined, ...props })] }), error && (jsx("span", { id: errorId, className: styles$12.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$12.helperText, children: helperText }))] }));
257
259
  });
258
260
  Datepicker.displayName = 'Datepicker';
259
261
 
260
- var styles$V = {"wrapper":"Input-module_wrapper__-8ija","fullWidth":"Input-module_fullWidth__xXOvN","label":"Input-module_label__t4LH-","inputWrapper":"Input-module_inputWrapper__U4EEd","error":"Input-module_error__fT9Sb","disabled":"Input-module_disabled__3tnIE","sm":"Input-module_sm__lGHP-","md":"Input-module_md__pReoW","lg":"Input-module_lg__iqqov","input":"Input-module_input__PeHY6","icon":"Input-module_icon__jkJiF","textarea":"Input-module_textarea__ZgdBz","helperText":"Input-module_helperText__eKsC8","errorText":"Input-module_errorText__xoiKP"};
262
+ var styles$11 = {"wrapper":"Input-module_wrapper__-8ija","fullWidth":"Input-module_fullWidth__xXOvN","label":"Input-module_label__t4LH-","inputWrapper":"Input-module_inputWrapper__U4EEd","error":"Input-module_error__fT9Sb","disabled":"Input-module_disabled__3tnIE","sm":"Input-module_sm__lGHP-","md":"Input-module_md__pReoW","lg":"Input-module_lg__iqqov","input":"Input-module_input__PeHY6","icon":"Input-module_icon__jkJiF","textarea":"Input-module_textarea__ZgdBz","helperText":"Input-module_helperText__eKsC8","errorText":"Input-module_errorText__xoiKP"};
261
263
 
262
264
  /**
263
265
  * Input component for text entry.
@@ -265,45 +267,45 @@ var styles$V = {"wrapper":"Input-module_wrapper__-8ija","fullWidth":"Input-modul
265
267
  const Input = forwardRef(({ size = 'md', label, helperText, error, leftIcon, rightIcon, fullWidth = false, className = '', id, disabled, ...props }, ref) => {
266
268
  const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
267
269
  const wrapperClasses = [
268
- styles$V.wrapper,
269
- fullWidth ? styles$V.fullWidth : '',
270
+ styles$11.wrapper,
271
+ fullWidth ? styles$11.fullWidth : '',
270
272
  className,
271
273
  ]
272
274
  .filter(Boolean)
273
275
  .join(' ');
274
276
  const inputWrapperClasses = [
275
- styles$V.inputWrapper,
276
- styles$V[size],
277
- error ? styles$V.error : '',
278
- disabled ? styles$V.disabled : '',
277
+ styles$11.inputWrapper,
278
+ styles$11[size],
279
+ error ? styles$11.error : '',
280
+ disabled ? styles$11.disabled : '',
279
281
  ]
280
282
  .filter(Boolean)
281
283
  .join(' ');
282
- return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$V.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [leftIcon && jsx("span", { className: styles$V.icon, children: leftIcon }), jsx("input", { ref: ref, id: inputId, className: styles$V.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": error ? `${inputId}-error` : helperText ? `${inputId}-helper` : undefined, ...props }), rightIcon && jsx("span", { className: styles$V.icon, children: rightIcon })] }), error && (jsx("span", { id: `${inputId}-error`, className: styles$V.errorText, children: error })), helperText && !error && (jsx("span", { id: `${inputId}-helper`, className: styles$V.helperText, children: helperText }))] }));
284
+ return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$11.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [leftIcon && jsx("span", { className: styles$11.icon, children: leftIcon }), jsx("input", { ref: ref, id: inputId, className: styles$11.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": error ? `${inputId}-error` : helperText ? `${inputId}-helper` : undefined, ...props }), rightIcon && jsx("span", { className: styles$11.icon, children: rightIcon })] }), error && (jsx("span", { id: `${inputId}-error`, className: styles$11.errorText, children: error })), helperText && !error && (jsx("span", { id: `${inputId}-helper`, className: styles$11.helperText, children: helperText }))] }));
283
285
  });
284
286
  Input.displayName = 'Input';
285
287
  const Textarea = forwardRef(({ size = 'md', label, helperText, error, fullWidth = false, className = '', id, disabled, rows = 4, ...props }, ref) => {
286
288
  const textareaId = id || `textarea-${Math.random().toString(36).substr(2, 9)}`;
287
289
  const wrapperClasses = [
288
- styles$V.wrapper,
289
- fullWidth ? styles$V.fullWidth : '',
290
+ styles$11.wrapper,
291
+ fullWidth ? styles$11.fullWidth : '',
290
292
  className,
291
293
  ]
292
294
  .filter(Boolean)
293
295
  .join(' ');
294
296
  const textareaClasses = [
295
- styles$V.textarea,
296
- styles$V[size],
297
- error ? styles$V.error : '',
298
- disabled ? styles$V.disabled : '',
297
+ styles$11.textarea,
298
+ styles$11[size],
299
+ error ? styles$11.error : '',
300
+ disabled ? styles$11.disabled : '',
299
301
  ]
300
302
  .filter(Boolean)
301
303
  .join(' ');
302
- return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: textareaId, className: styles$V.label, children: label })), jsx("textarea", { ref: ref, id: textareaId, className: textareaClasses, disabled: disabled, rows: rows, "aria-invalid": !!error, "aria-describedby": error ? `${textareaId}-error` : helperText ? `${textareaId}-helper` : undefined, ...props }), error && (jsx("span", { id: `${textareaId}-error`, className: styles$V.errorText, children: error })), helperText && !error && (jsx("span", { id: `${textareaId}-helper`, className: styles$V.helperText, children: helperText }))] }));
304
+ return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: textareaId, className: styles$11.label, children: label })), jsx("textarea", { ref: ref, id: textareaId, className: textareaClasses, disabled: disabled, rows: rows, "aria-invalid": !!error, "aria-describedby": error ? `${textareaId}-error` : helperText ? `${textareaId}-helper` : undefined, ...props }), error && (jsx("span", { id: `${textareaId}-error`, className: styles$11.errorText, children: error })), helperText && !error && (jsx("span", { id: `${textareaId}-helper`, className: styles$11.helperText, children: helperText }))] }));
303
305
  });
304
306
  Textarea.displayName = 'Textarea';
305
307
 
306
- var styles$U = {"metric":"Metric-module_metric__LZ8D-","dark":"Metric-module_dark__FKdvj","clickable":"Metric-module_clickable__c3-pM","content":"Metric-module_content__YYpBG","valueRow":"Metric-module_valueRow__JpgYR","valueContainer":"Metric-module_valueContainer__CzjZ1","prefix":"Metric-module_prefix__Agpzq","value":"Metric-module_value__zspnf","suffix":"Metric-module_suffix__qvCMJ","warningIcon":"Metric-module_warningIcon__F-Ol5","label":"Metric-module_label__ydcti"};
308
+ var styles$10 = {"metric":"Metric-module_metric__LZ8D-","dark":"Metric-module_dark__FKdvj","clickable":"Metric-module_clickable__c3-pM","content":"Metric-module_content__YYpBG","valueRow":"Metric-module_valueRow__JpgYR","valueContainer":"Metric-module_valueContainer__CzjZ1","prefix":"Metric-module_prefix__Agpzq","value":"Metric-module_value__zspnf","suffix":"Metric-module_suffix__qvCMJ","warningIcon":"Metric-module_warningIcon__F-Ol5","label":"Metric-module_label__ydcti"};
307
309
 
308
310
  const WarningIcon = () => (jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor", children: jsx("path", { d: "M12 2L1 21h22L12 2zm0 3.5L19.5 19H4.5L12 5.5zM11 10v4h2v-4h-2zm0 6v2h2v-2h-2z" }) }));
309
311
  /**
@@ -313,15 +315,15 @@ const WarningIcon = () => (jsx("svg", { width: "24", height: "24", viewBox: "0 0
313
315
  const Metric = ({ value, label, prefix, suffix, dark = false, onClick, className = '', warning = false, }) => {
314
316
  const displayValue = value !== undefined && !isNaN(parseFloat(String(value))) ? value : 0;
315
317
  return (jsx("div", { className: `
316
- ${styles$U.metric}
317
- ${dark ? styles$U.dark : ''}
318
- ${onClick ? styles$U.clickable : ''}
318
+ ${styles$10.metric}
319
+ ${dark ? styles$10.dark : ''}
320
+ ${onClick ? styles$10.clickable : ''}
319
321
  ${className}
320
- `, onClick: onClick, children: value !== undefined && (jsxs("div", { className: styles$U.content, children: [jsxs("div", { className: styles$U.valueRow, children: [jsxs("div", { className: styles$U.valueContainer, children: [prefix && jsx("span", { className: styles$U.prefix, children: prefix }), jsx("span", { className: styles$U.value, children: displayValue }), suffix && jsx("span", { className: styles$U.suffix, children: suffix })] }), warning && (jsx("div", { className: styles$U.warningIcon, children: jsx(WarningIcon, {}) }))] }), jsx("div", { className: styles$U.label, children: label })] })) }));
322
+ `, onClick: onClick, children: value !== undefined && (jsxs("div", { className: styles$10.content, children: [jsxs("div", { className: styles$10.valueRow, children: [jsxs("div", { className: styles$10.valueContainer, children: [prefix && jsx("span", { className: styles$10.prefix, children: prefix }), jsx("span", { className: styles$10.value, children: displayValue }), suffix && jsx("span", { className: styles$10.suffix, children: suffix })] }), warning && (jsx("div", { className: styles$10.warningIcon, children: jsx(WarningIcon, {}) }))] }), jsx("div", { className: styles$10.label, children: label })] })) }));
321
323
  };
322
324
  Metric.displayName = 'Metric';
323
325
 
324
- var styles$T = {"wrapper":"Select-module_wrapper__UN2Bo","fullWidth":"Select-module_fullWidth__GgV-D","label":"Select-module_label__aSRVE","selectWrapper":"Select-module_selectWrapper__OCGYf","sm":"Select-module_sm__oTHGX","md":"Select-module_md__VSZQg","lg":"Select-module_lg__nknhY","select":"Select-module_select__DY-Id","hasLeftIcon":"Select-module_hasLeftIcon__ZrReQ","leftIcon":"Select-module_leftIcon__nBU1-","chevron":"Select-module_chevron__1MAEQ","disabled":"Select-module_disabled__0GOXE","error":"Select-module_error__Yijk5","helperText":"Select-module_helperText__rHrqP","errorText":"Select-module_errorText__1kM2R"};
326
+ var styles$$ = {"wrapper":"Select-module_wrapper__UN2Bo","fullWidth":"Select-module_fullWidth__GgV-D","label":"Select-module_label__aSRVE","selectWrapper":"Select-module_selectWrapper__OCGYf","sm":"Select-module_sm__oTHGX","md":"Select-module_md__VSZQg","lg":"Select-module_lg__nknhY","select":"Select-module_select__DY-Id","hasLeftIcon":"Select-module_hasLeftIcon__ZrReQ","leftIcon":"Select-module_leftIcon__nBU1-","chevron":"Select-module_chevron__1MAEQ","disabled":"Select-module_disabled__0GOXE","error":"Select-module_error__Yijk5","helperText":"Select-module_helperText__rHrqP","errorText":"Select-module_errorText__1kM2R"};
325
327
 
326
328
  const ChevronDownIcon = () => (jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "6 9 12 15 18 9" }) }));
327
329
  /**
@@ -333,16 +335,16 @@ const Select = forwardRef(({ options, optionGroups, size = 'md', label, placehol
333
335
  const helperId = `${selectId}-helper`;
334
336
  const errorId = `${selectId}-error`;
335
337
  const wrapperClasses = [
336
- styles$T.wrapper,
337
- fullWidth ? styles$T.fullWidth : '',
338
+ styles$$.wrapper,
339
+ fullWidth ? styles$$.fullWidth : '',
338
340
  className,
339
341
  ].filter(Boolean).join(' ');
340
342
  const selectWrapperClasses = [
341
- styles$T.selectWrapper,
342
- styles$T[size],
343
- error ? styles$T.error : '',
344
- disabled ? styles$T.disabled : '',
345
- leftIcon ? styles$T.hasLeftIcon : '',
343
+ styles$$.selectWrapper,
344
+ styles$$[size],
345
+ error ? styles$$.error : '',
346
+ disabled ? styles$$.disabled : '',
347
+ leftIcon ? styles$$.hasLeftIcon : '',
346
348
  ].filter(Boolean).join(' ');
347
349
  const renderOptions = () => {
348
350
  // Render grouped options
@@ -355,19 +357,19 @@ const Select = forwardRef(({ options, optionGroups, size = 'md', label, placehol
355
357
  }
356
358
  return null;
357
359
  };
358
- return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: selectId, className: styles$T.label, children: label })), jsxs("div", { className: selectWrapperClasses, children: [leftIcon && jsx("span", { className: styles$T.leftIcon, children: leftIcon }), jsxs("select", { ref: ref, id: selectId, className: styles$T.select, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
360
+ return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: selectId, className: styles$$.label, children: label })), jsxs("div", { className: selectWrapperClasses, children: [leftIcon && jsx("span", { className: styles$$.leftIcon, children: leftIcon }), jsxs("select", { ref: ref, id: selectId, className: styles$$.select, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
359
361
  .filter(Boolean)
360
- .join(' ') || undefined, ...props, children: [placeholder && (jsx("option", { value: "", disabled: true, children: placeholder })), renderOptions()] }), jsx("span", { className: styles$T.chevron, children: jsx(ChevronDownIcon, {}) })] }), error && (jsx("span", { id: errorId, className: styles$T.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$T.helperText, children: helperText }))] }));
362
+ .join(' ') || undefined, ...props, children: [placeholder && (jsx("option", { value: "", disabled: true, children: placeholder })), renderOptions()] }), jsx("span", { className: styles$$.chevron, children: jsx(ChevronDownIcon, {}) })] }), error && (jsx("span", { id: errorId, className: styles$$.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$$.helperText, children: helperText }))] }));
361
363
  });
362
364
  Select.displayName = 'Select';
363
365
 
364
- var styles$S = {"spinner":"Spinner-module_spinner__OZwmB","svg":"Spinner-module_svg__Tusqk","spin":"Spinner-module_spin__YAPc9","track":"Spinner-module_track__NxLfV","indicator":"Spinner-module_indicator__gSUxF","xs":"Spinner-module_xs__4-WEg","sm":"Spinner-module_sm__enoDn","md":"Spinner-module_md__6axf9","lg":"Spinner-module_lg__EvJyC","xl":"Spinner-module_xl__yIXoK","srOnly":"Spinner-module_srOnly__WnZYf"};
366
+ var styles$_ = {"spinner":"Spinner-module_spinner__OZwmB","svg":"Spinner-module_svg__Tusqk","spin":"Spinner-module_spin__YAPc9","track":"Spinner-module_track__NxLfV","indicator":"Spinner-module_indicator__gSUxF","xs":"Spinner-module_xs__4-WEg","sm":"Spinner-module_sm__enoDn","md":"Spinner-module_md__6axf9","lg":"Spinner-module_lg__EvJyC","xl":"Spinner-module_xl__yIXoK","srOnly":"Spinner-module_srOnly__WnZYf"};
365
367
 
366
368
  const Spinner = ({ size = 'md', className = '', color, label = 'Loading...', }) => {
367
- return (jsxs("span", { className: `${styles$S.spinner} ${styles$S[size]} ${className}`, role: "status", "aria-label": label, style: color ? { color } : undefined, children: [jsxs("svg", { className: styles$S.svg, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("circle", { className: styles$S.track, cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), jsx("path", { className: styles$S.indicator, fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }), jsx("span", { className: styles$S.srOnly, children: label })] }));
369
+ return (jsxs("span", { className: `${styles$_.spinner} ${styles$_[size]} ${className}`, role: "status", "aria-label": label, style: color ? { color } : undefined, children: [jsxs("svg", { className: styles$_.svg, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("circle", { className: styles$_.track, cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), jsx("path", { className: styles$_.indicator, fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }), jsx("span", { className: styles$_.srOnly, children: label })] }));
368
370
  };
369
371
 
370
- var styles$R = {"badge":"StatusBadge-module_badge__-BwEk","ticketed":"StatusBadge-module_ticketed__AJVZM","itinerary":"StatusBadge-module_itinerary__yRFNy","not-ticketed":"StatusBadge-module_not-ticketed__76GXg","submitted":"StatusBadge-module_submitted__QW0LL","pending":"StatusBadge-module_pending__FpMYC","cancelled":"StatusBadge-module_cancelled__XRz4S"};
372
+ var styles$Z = {"badge":"StatusBadge-module_badge__-BwEk","ticketed":"StatusBadge-module_ticketed__AJVZM","itinerary":"StatusBadge-module_itinerary__yRFNy","not-ticketed":"StatusBadge-module_not-ticketed__76GXg","submitted":"StatusBadge-module_submitted__QW0LL","pending":"StatusBadge-module_pending__FpMYC","cancelled":"StatusBadge-module_cancelled__XRz4S"};
371
373
 
372
374
  const statusLabels = {
373
375
  ticketed: 'Ticketed',
@@ -379,20 +381,20 @@ const statusLabels = {
379
381
  };
380
382
  const StatusBadge = ({ status, label, className, }) => {
381
383
  const displayLabel = label || statusLabels[status] || status;
382
- return (jsx("span", { className: `${styles$R.badge} ${styles$R[status]} ${className || ''}`, "data-status": status, children: displayLabel }));
384
+ return (jsx("span", { className: `${styles$Z.badge} ${styles$Z[status]} ${className || ''}`, "data-status": status, children: displayLabel }));
383
385
  };
384
386
 
385
- var styles$Q = {"tag":"Tag-module_tag__uQVQa","content":"Tag-module_content__Z5bK9","sm":"Tag-module_sm__DvKJV","md":"Tag-module_md__KTo2m","lg":"Tag-module_lg__8xhWB","default":"Tag-module_default__5-uQz","primary":"Tag-module_primary__lwwYl","success":"Tag-module_success__kl3II","warning":"Tag-module_warning__peZRm","error":"Tag-module_error__6xzkl","info":"Tag-module_info__eKYiV","clickable":"Tag-module_clickable__TyiNK","removeButton":"Tag-module_removeButton__peMwo","removeIcon":"Tag-module_removeIcon__dQyJZ"};
387
+ var styles$Y = {"tag":"Tag-module_tag__uQVQa","content":"Tag-module_content__Z5bK9","sm":"Tag-module_sm__DvKJV","md":"Tag-module_md__KTo2m","lg":"Tag-module_lg__8xhWB","default":"Tag-module_default__5-uQz","primary":"Tag-module_primary__lwwYl","success":"Tag-module_success__kl3II","warning":"Tag-module_warning__peZRm","error":"Tag-module_error__6xzkl","info":"Tag-module_info__eKYiV","clickable":"Tag-module_clickable__TyiNK","removeButton":"Tag-module_removeButton__peMwo","removeIcon":"Tag-module_removeIcon__dQyJZ"};
386
388
 
387
389
  const Tag = ({ children, variant = 'default', size = 'md', removable = false, onRemove, onClick, className = '', style, }) => {
388
390
  const isClickable = Boolean(onClick);
389
- return (jsxs("span", { className: `${styles$Q.tag} ${styles$Q[variant]} ${styles$Q[size]} ${isClickable ? styles$Q.clickable : ''} ${className}`, onClick: onClick, style: style, role: isClickable ? 'button' : undefined, tabIndex: isClickable ? 0 : undefined, children: [jsx("span", { className: styles$Q.content, children: children }), removable && (jsx("button", { type: "button", className: styles$Q.removeButton, onClick: (e) => {
391
+ return (jsxs("span", { className: `${styles$Y.tag} ${styles$Y[variant]} ${styles$Y[size]} ${isClickable ? styles$Y.clickable : ''} ${className}`, onClick: onClick, style: style, role: isClickable ? 'button' : undefined, tabIndex: isClickable ? 0 : undefined, children: [jsx("span", { className: styles$Y.content, children: children }), removable && (jsx("button", { type: "button", className: styles$Y.removeButton, onClick: (e) => {
390
392
  e.stopPropagation();
391
393
  onRemove?.();
392
- }, "aria-label": "Remove", children: jsx("svg", { className: styles$Q.removeIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }))] }));
394
+ }, "aria-label": "Remove", children: jsx("svg", { className: styles$Y.removeIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }))] }));
393
395
  };
394
396
 
395
- var styles$P = {"wrapper":"Timepicker-module_wrapper__pPrwn","fullWidth":"Timepicker-module_fullWidth__de3hO","label":"Timepicker-module_label__5RDrm","inputWrapper":"Timepicker-module_inputWrapper__-E5pk","sm":"Timepicker-module_sm__sWJu2","md":"Timepicker-module_md__TfpGX","lg":"Timepicker-module_lg__xSlw-","icon":"Timepicker-module_icon__NuPk4","input":"Timepicker-module_input__NxTmR","disabled":"Timepicker-module_disabled__lyxzF","error":"Timepicker-module_error__TOMK7","helperText":"Timepicker-module_helperText__MmcqS","errorText":"Timepicker-module_errorText__pXdnE"};
397
+ var styles$X = {"wrapper":"Timepicker-module_wrapper__pPrwn","fullWidth":"Timepicker-module_fullWidth__de3hO","label":"Timepicker-module_label__5RDrm","inputWrapper":"Timepicker-module_inputWrapper__-E5pk","sm":"Timepicker-module_sm__sWJu2","md":"Timepicker-module_md__TfpGX","lg":"Timepicker-module_lg__xSlw-","icon":"Timepicker-module_icon__NuPk4","input":"Timepicker-module_input__NxTmR","disabled":"Timepicker-module_disabled__lyxzF","error":"Timepicker-module_error__TOMK7","helperText":"Timepicker-module_helperText__MmcqS","errorText":"Timepicker-module_errorText__pXdnE"};
396
398
 
397
399
  const ClockIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "12", cy: "12", r: "10" }), jsx("polyline", { points: "12 6 12 12 16 14" })] }));
398
400
  /**
@@ -404,34 +406,34 @@ const Timepicker = forwardRef(({ size = 'md', label, helperText, error, fullWidt
404
406
  const helperId = `${inputId}-helper`;
405
407
  const errorId = `${inputId}-error`;
406
408
  const wrapperClasses = [
407
- styles$P.wrapper,
408
- fullWidth ? styles$P.fullWidth : '',
409
+ styles$X.wrapper,
410
+ fullWidth ? styles$X.fullWidth : '',
409
411
  className,
410
412
  ].filter(Boolean).join(' ');
411
413
  const inputWrapperClasses = [
412
- styles$P.inputWrapper,
413
- styles$P[size],
414
- error ? styles$P.error : '',
415
- disabled ? styles$P.disabled : '',
414
+ styles$X.inputWrapper,
415
+ styles$X[size],
416
+ error ? styles$X.error : '',
417
+ disabled ? styles$X.disabled : '',
416
418
  ].filter(Boolean).join(' ');
417
- return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$P.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [jsx("span", { className: styles$P.icon, children: jsx(ClockIcon, {}) }), jsx("input", { ref: ref, type: "time", id: inputId, className: styles$P.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
419
+ return (jsxs("div", { className: wrapperClasses, children: [label && (jsx("label", { htmlFor: inputId, className: styles$X.label, children: label })), jsxs("div", { className: inputWrapperClasses, children: [jsx("span", { className: styles$X.icon, children: jsx(ClockIcon, {}) }), jsx("input", { ref: ref, type: "time", id: inputId, className: styles$X.input, disabled: disabled, "aria-invalid": !!error, "aria-describedby": [error ? errorId : null, helperText ? helperId : null]
418
420
  .filter(Boolean)
419
- .join(' ') || undefined, ...props })] }), error && (jsx("span", { id: errorId, className: styles$P.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$P.helperText, children: helperText }))] }));
421
+ .join(' ') || undefined, ...props })] }), error && (jsx("span", { id: errorId, className: styles$X.errorText, children: error })), helperText && !error && (jsx("span", { id: helperId, className: styles$X.helperText, children: helperText }))] }));
420
422
  });
421
423
  Timepicker.displayName = 'Timepicker';
422
424
 
423
- var styles$O = {"title":"Title-module_title__mSSqn","light":"Title-module_light__7mlh-","normal":"Title-module_normal__ZYrS4","medium":"Title-module_medium__UK-Bj","semibold":"Title-module_semibold__07lTs","bold":"Title-module_bold__-oWUS"};
425
+ var styles$W = {"title":"Title-module_title__mSSqn","light":"Title-module_light__7mlh-","normal":"Title-module_normal__ZYrS4","medium":"Title-module_medium__UK-Bj","semibold":"Title-module_semibold__07lTs","bold":"Title-module_bold__-oWUS"};
424
426
 
425
427
  /**
426
428
  * Title component for page headings.
427
429
  * Large, prominent text for page titles.
428
430
  */
429
431
  const Title = ({ children, weight = 'light', className = '', }) => {
430
- return (jsx("h1", { className: `${styles$O.title} ${styles$O[weight]} ${className}`, children: children }));
432
+ return (jsx("h1", { className: `${styles$W.title} ${styles$W[weight]} ${className}`, children: children }));
431
433
  };
432
434
  Title.displayName = 'Title';
433
435
 
434
- var styles$N = {"toggle":"Toggle-module_toggle__lRFvk","checked":"Toggle-module_checked__duOWU","disabled":"Toggle-module_disabled__DV2FB","thumb":"Toggle-module_thumb__ehIbb","sm":"Toggle-module_sm__Gs9bK","md":"Toggle-module_md__hTNCY","lg":"Toggle-module_lg__DpHtS","wrapper":"Toggle-module_wrapper__-Bvff","wrapperDisabled":"Toggle-module_wrapperDisabled__ZSCvM","label":"Toggle-module_label__GeuIf"};
436
+ var styles$V = {"toggle":"Toggle-module_toggle__lRFvk","checked":"Toggle-module_checked__duOWU","disabled":"Toggle-module_disabled__DV2FB","thumb":"Toggle-module_thumb__ehIbb","sm":"Toggle-module_sm__Gs9bK","md":"Toggle-module_md__hTNCY","lg":"Toggle-module_lg__DpHtS","wrapper":"Toggle-module_wrapper__-Bvff","wrapperDisabled":"Toggle-module_wrapperDisabled__ZSCvM","label":"Toggle-module_label__GeuIf"};
435
437
 
436
438
  const Toggle = ({ checked, onChange, disabled = false, size = 'md', label, labelPosition = 'right', className = '', 'aria-label': ariaLabel, }) => {
437
439
  const handleClick = () => {
@@ -445,14 +447,14 @@ const Toggle = ({ checked, onChange, disabled = false, size = 'md', label, label
445
447
  onChange?.(!checked);
446
448
  }
447
449
  };
448
- const toggleElement = (jsx("div", { className: `${styles$N.toggle} ${styles$N[size]} ${checked ? styles$N.checked : ''} ${disabled ? styles$N.disabled : ''} ${className}`, onClick: handleClick, onKeyDown: handleKeyDown, role: "switch", "aria-checked": checked, "aria-disabled": disabled, "aria-label": ariaLabel || label, tabIndex: disabled ? -1 : 0, children: jsx("span", { className: styles$N.thumb }) }));
450
+ const toggleElement = (jsx("div", { className: `${styles$V.toggle} ${styles$V[size]} ${checked ? styles$V.checked : ''} ${disabled ? styles$V.disabled : ''} ${className}`, onClick: handleClick, onKeyDown: handleKeyDown, role: "switch", "aria-checked": checked, "aria-disabled": disabled, "aria-label": ariaLabel || label, tabIndex: disabled ? -1 : 0, children: jsx("span", { className: styles$V.thumb }) }));
449
451
  if (label) {
450
- return (jsxs("label", { className: `${styles$N.wrapper} ${disabled ? styles$N.wrapperDisabled : ''}`, children: [labelPosition === 'left' && jsx("span", { className: styles$N.label, children: label }), toggleElement, labelPosition === 'right' && jsx("span", { className: styles$N.label, children: label })] }));
452
+ return (jsxs("label", { className: `${styles$V.wrapper} ${disabled ? styles$V.wrapperDisabled : ''}`, children: [labelPosition === 'left' && jsx("span", { className: styles$V.label, children: label }), toggleElement, labelPosition === 'right' && jsx("span", { className: styles$V.label, children: label })] }));
451
453
  }
452
454
  return toggleElement;
453
455
  };
454
456
 
455
- var styles$M = {"wrapper":"Tooltip-module_wrapper__9SUwl","tooltip":"Tooltip-module_tooltip__KQ7km","fadeIn":"Tooltip-module_fadeIn__dL8S5","content":"Tooltip-module_content__kO8yx","dark":"Tooltip-module_dark__Y66ss","light":"Tooltip-module_light__mItfR","top":"Tooltip-module_top__1jrIn","bottom":"Tooltip-module_bottom__99YBc","left":"Tooltip-module_left__ZNd1H","right":"Tooltip-module_right__r0j5Q","arrow":"Tooltip-module_arrow__qcKWx","arrowTop":"Tooltip-module_arrowTop__k13dt","arrowBottom":"Tooltip-module_arrowBottom__FP-w2","arrowLeft":"Tooltip-module_arrowLeft__7T1uO","arrowRight":"Tooltip-module_arrowRight__FbPdB"};
457
+ var styles$U = {"wrapper":"Tooltip-module_wrapper__9SUwl","tooltip":"Tooltip-module_tooltip__KQ7km","fadeIn":"Tooltip-module_fadeIn__dL8S5","content":"Tooltip-module_content__kO8yx","dark":"Tooltip-module_dark__Y66ss","light":"Tooltip-module_light__mItfR","top":"Tooltip-module_top__1jrIn","bottom":"Tooltip-module_bottom__99YBc","left":"Tooltip-module_left__ZNd1H","right":"Tooltip-module_right__r0j5Q","arrow":"Tooltip-module_arrow__qcKWx","arrowTop":"Tooltip-module_arrowTop__k13dt","arrowBottom":"Tooltip-module_arrowBottom__FP-w2","arrowLeft":"Tooltip-module_arrowLeft__7T1uO","arrowRight":"Tooltip-module_arrowRight__FbPdB"};
456
458
 
457
459
  const Tooltip = ({ content, children, position = 'top', variant = 'dark', delay = 200, disabled = false, className = '', }) => {
458
460
  const [isVisible, setIsVisible] = useState(false);
@@ -516,10 +518,10 @@ const Tooltip = ({ content, children, position = 'top', variant = 'dark', delay
516
518
  }
517
519
  };
518
520
  }, []);
519
- return (jsxs("div", { ref: triggerRef, className: `${styles$M.wrapper} ${className}`, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: [children, isVisible && content && (jsxs("div", { ref: tooltipRef, className: `${styles$M.tooltip} ${styles$M[actualPosition]} ${styles$M[variant]}`, role: "tooltip", children: [jsx("div", { className: styles$M.content, children: content }), jsx("div", { className: `${styles$M.arrow} ${styles$M[`arrow${actualPosition.charAt(0).toUpperCase()}${actualPosition.slice(1)}`]}` })] }))] }));
521
+ return (jsxs("div", { ref: triggerRef, className: `${styles$U.wrapper} ${className}`, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: [children, isVisible && content && (jsxs("div", { ref: tooltipRef, className: `${styles$U.tooltip} ${styles$U[actualPosition]} ${styles$U[variant]}`, role: "tooltip", children: [jsx("div", { className: styles$U.content, children: content }), jsx("div", { className: `${styles$U.arrow} ${styles$U[`arrow${actualPosition.charAt(0).toUpperCase()}${actualPosition.slice(1)}`]}` })] }))] }));
520
522
  };
521
523
 
522
- var styles$L = {"service":"TravelServiceIcon-module_service__-4EZb","code":"TravelServiceIcon-module_code__vElzI","multi":"TravelServiceIcon-module_multi__nqZLM","multiIndicator":"TravelServiceIcon-module_multiIndicator__KJF1L"};
524
+ var styles$T = {"service":"TravelServiceIcon-module_service__-4EZb","code":"TravelServiceIcon-module_code__vElzI","multi":"TravelServiceIcon-module_multi__nqZLM","multiIndicator":"TravelServiceIcon-module_multiIndicator__KJF1L"};
523
525
 
524
526
  // Airline brand colors
525
527
  const vendorColors = {
@@ -559,16 +561,16 @@ const TravelServiceIcon = ({ type, vendor, mode = 'icon', size = 28, multi = fal
559
561
  const colors = mode === 'icon' && vendorColors[vendorKey]
560
562
  ? vendorColors[vendorKey]
561
563
  : typeColors$1[type] || typeColors$1.U;
562
- return (jsxs("span", { className: `${styles$L.service} ${multi ? styles$L.multi : ''} ${className || ''}`, style: {
564
+ return (jsxs("span", { className: `${styles$T.service} ${multi ? styles$T.multi : ''} ${className || ''}`, style: {
563
565
  width: size,
564
566
  height: size,
565
567
  backgroundColor: colors.bg,
566
568
  color: colors.fg,
567
569
  fontSize: size * 0.4,
568
- }, title: vendor ? `${vendor} (${type})` : type, children: [mode === 'code' && vendor ? (jsx("span", { className: styles$L.code, children: vendor })) : (jsx("svg", { viewBox: "0 0 24 24", width: size * 0.55, height: size * 0.55, fill: "currentColor", children: typeIcons$1[type] || typeIcons$1.U })), multi && jsx("span", { className: styles$L.multiIndicator, children: "+" })] }));
570
+ }, title: vendor ? `${vendor} (${type})` : type, children: [mode === 'code' && vendor ? (jsx("span", { className: styles$T.code, children: vendor })) : (jsx("svg", { viewBox: "0 0 24 24", width: size * 0.55, height: size * 0.55, fill: "currentColor", children: typeIcons$1[type] || typeIcons$1.U })), multi && jsx("span", { className: styles$T.multiIndicator, children: "+" })] }));
569
571
  };
570
572
 
571
- var styles$K = {"icon":"TypeIcon-module_icon__WUL-x"};
573
+ var styles$S = {"icon":"TypeIcon-module_icon__WUL-x"};
572
574
 
573
575
  const typeLabels = {
574
576
  A: 'Air',
@@ -601,7 +603,7 @@ const typeIcons = {
601
603
  const TypeIcon = ({ type, size = 18, showTooltip = true, className, }) => {
602
604
  const colors = typeColors[type] || typeColors.U;
603
605
  const label = typeLabels[type] || 'Unknown';
604
- return (jsx("span", { className: `${styles$K.icon} ${className || ''}`, style: {
606
+ return (jsx("span", { className: `${styles$S.icon} ${className || ''}`, style: {
605
607
  width: size,
606
608
  height: size,
607
609
  backgroundColor: colors.bg,
@@ -609,7 +611,7 @@ const TypeIcon = ({ type, size = 18, showTooltip = true, className, }) => {
609
611
  }, title: showTooltip ? label : undefined, "aria-label": label, children: jsx("svg", { viewBox: "0 0 24 24", width: size * 0.6, height: size * 0.6, fill: "currentColor", children: typeIcons[type] || typeIcons.U }) }));
610
612
  };
611
613
 
612
- var styles$J = {"accordion":"Accordion-module_accordion__I3hmS","headerContainer":"Accordion-module_headerContainer__QhfHx","toggle":"Accordion-module_toggle__rlK5n","caret":"Accordion-module_caret__iZAh1","open":"Accordion-module_open__5jX-w","header":"Accordion-module_header__gzKrn","body":"Accordion-module_body__xTgL6","hidden":"Accordion-module_hidden__wcCWd","visible":"Accordion-module_visible__116om","timeline":"Accordion-module_timeline__ikrdK","line":"Accordion-module_line__buDP1","endCaret":"Accordion-module_endCaret__OXpPJ","content":"Accordion-module_content__aL8Vn"};
614
+ var styles$R = {"accordion":"Accordion-module_accordion__I3hmS","headerContainer":"Accordion-module_headerContainer__QhfHx","toggle":"Accordion-module_toggle__rlK5n","caret":"Accordion-module_caret__iZAh1","open":"Accordion-module_open__5jX-w","header":"Accordion-module_header__gzKrn","body":"Accordion-module_body__xTgL6","hidden":"Accordion-module_hidden__wcCWd","visible":"Accordion-module_visible__116om","timeline":"Accordion-module_timeline__ikrdK","line":"Accordion-module_line__buDP1","endCaret":"Accordion-module_endCaret__OXpPJ","content":"Accordion-module_content__aL8Vn"};
613
615
 
614
616
  const CaretIcon = ({ className }) => (jsx("svg", { className: className, width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "9 18 15 12 9 6" }) }));
615
617
  /**
@@ -627,11 +629,34 @@ const Accordion = ({ header, children, defaultOpen = true, open: controlledOpen,
627
629
  }
628
630
  onOpenChange?.(newOpen);
629
631
  };
630
- return (jsxs("div", { className: `${styles$J.accordion} ${className || ''}`, children: [jsxs("div", { className: styles$J.headerContainer, children: [jsx("button", { type: "button", className: styles$J.toggle, onClick: handleToggle, "aria-expanded": isOpen, children: jsx(CaretIcon, { className: `${styles$J.caret} ${isOpen ? styles$J.open : ''}` }) }), jsx("div", { className: styles$J.header, children: header })] }), jsxs("div", { className: `${styles$J.body} ${isOpen ? styles$J.visible : styles$J.hidden}`, "aria-hidden": !isOpen, children: [showTimeline && (jsxs("div", { className: styles$J.timeline, children: [jsx("div", { className: styles$J.line }), jsx(CaretIcon, { className: styles$J.endCaret })] })), jsx("div", { className: styles$J.content, children: children })] })] }));
632
+ return (jsxs("div", { className: `${styles$R.accordion} ${className || ''}`, children: [jsxs("div", { className: styles$R.headerContainer, children: [jsx("button", { type: "button", className: styles$R.toggle, onClick: handleToggle, "aria-expanded": isOpen, children: jsx(CaretIcon, { className: `${styles$R.caret} ${isOpen ? styles$R.open : ''}` }) }), jsx("div", { className: styles$R.header, children: header })] }), jsxs("div", { className: `${styles$R.body} ${isOpen ? styles$R.visible : styles$R.hidden}`, "aria-hidden": !isOpen, children: [showTimeline && (jsxs("div", { className: styles$R.timeline, children: [jsx("div", { className: styles$R.line }), jsx(CaretIcon, { className: styles$R.endCaret })] })), jsx("div", { className: styles$R.content, children: children })] })] }));
631
633
  };
632
634
  Accordion.displayName = 'Accordion';
633
635
 
634
- var styles$I = {"dropdown":"Dropdown-module_dropdown__K4-yz","arrow":"Dropdown-module_arrow__2Xuwf","arrowOpen":"Dropdown-module_arrowOpen__5g2iY","menu":"Dropdown-module_menu__dCgm8","menuOpen":"Dropdown-module_menuOpen__-IXFR","left":"Dropdown-module_left__tnNcS","center":"Dropdown-module_center__s9zhj","right":"Dropdown-module_right__s71gz","item":"Dropdown-module_item__R008o","itemDisabled":"Dropdown-module_itemDisabled__XIuNm","itemIcon":"Dropdown-module_itemIcon__DbSnD"};
636
+ var styles$Q = {"selector":"CalendarSelectors-module_selector__1nDos","item":"CalendarSelectors-module_item__CoR5s","active":"CalendarSelectors-module_active__u4w6Z","sm":"CalendarSelectors-module_sm__ju5t-","withLabel":"CalendarSelectors-module_withLabel__Jr9Re","md":"CalendarSelectors-module_md__a-U38","lg":"CalendarSelectors-module_lg__WHvAF","iconOnly":"CalendarSelectors-module_iconOnly__cAjyD"};
637
+
638
+ const ListIcon = () => (jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [jsx("line", { x1: "8", y1: "6", x2: "21", y2: "6" }), jsx("line", { x1: "8", y1: "12", x2: "21", y2: "12" }), jsx("line", { x1: "8", y1: "18", x2: "21", y2: "18" }), jsx("circle", { cx: "3", cy: "6", r: "1", fill: "currentColor", stroke: "none" }), jsx("circle", { cx: "3", cy: "12", r: "1", fill: "currentColor", stroke: "none" }), jsx("circle", { cx: "3", cy: "18", r: "1", fill: "currentColor", stroke: "none" })] }));
639
+ const SegmentedSelector = ({ options, value, onChange, disabled = false, size = 'md', className = '', ariaLabel = 'View options', }) => (jsx("div", { className: [styles$Q.selector, className].filter(Boolean).join(' '), role: "group", "aria-label": ariaLabel, children: options.map((option) => {
640
+ const active = option.id === value;
641
+ const accessibleName = option.alt ?? option.label ?? option.id;
642
+ return (jsxs("button", { type: "button", title: accessibleName, "aria-label": accessibleName, "aria-pressed": active, disabled: disabled, className: [
643
+ styles$Q.item,
644
+ styles$Q[size],
645
+ option.label ? styles$Q.withLabel : styles$Q.iconOnly,
646
+ active ? styles$Q.active : '',
647
+ ].filter(Boolean).join(' '), onClick: () => onChange?.(option.id), children: [option.icon, option.label && jsx("span", { children: option.label })] }, option.id));
648
+ }) }));
649
+ const CalendarViewSelector = ({ value, onChange, ...props }) => (jsx(SegmentedSelector, { ...props, ariaLabel: "Calendar view", value: value, onChange: (nextValue) => onChange?.(nextValue), options: [
650
+ { id: 'calendar', alt: 'Calendar', icon: jsx(CalendarIcon$1, { size: 20 }) },
651
+ { id: 'card', alt: 'Card', icon: jsx(GridIcon, { size: 20 }) },
652
+ { id: 'list', alt: 'List', icon: jsx(ListIcon, {}) },
653
+ ] }));
654
+ const CalendarTypeSelector = ({ value, onChange, ...props }) => (jsx(SegmentedSelector, { ...props, ariaLabel: "Calendar item type", value: value, onChange: (nextValue) => onChange?.(nextValue), options: [
655
+ { id: 'trips', label: 'Trips' },
656
+ { id: 'due_dates', label: 'Due Dates' },
657
+ ] }));
658
+
659
+ var styles$P = {"dropdown":"Dropdown-module_dropdown__K4-yz","arrow":"Dropdown-module_arrow__2Xuwf","arrowOpen":"Dropdown-module_arrowOpen__5g2iY","menu":"Dropdown-module_menu__dCgm8","menuOpen":"Dropdown-module_menuOpen__-IXFR","left":"Dropdown-module_left__tnNcS","center":"Dropdown-module_center__s9zhj","right":"Dropdown-module_right__s71gz","item":"Dropdown-module_item__R008o","itemDisabled":"Dropdown-module_itemDisabled__XIuNm","itemIcon":"Dropdown-module_itemIcon__DbSnD"};
635
660
 
636
661
  const Dropdown = ({ label, children, alignment = 'left', width, className = '', disabled = false, }) => {
637
662
  const [isOpen, setIsOpen] = useState(false);
@@ -654,14 +679,14 @@ const Dropdown = ({ label, children, alignment = 'left', width, className = '',
654
679
  setIsOpen(false);
655
680
  }
656
681
  };
657
- return (jsxs("div", { ref: dropdownRef, className: `${styles$I.dropdown} ${className}`, onKeyDown: handleKeyDown, children: [jsxs(Button, { variant: "secondary", onClick: () => !disabled && setIsOpen(!isOpen), disabled: disabled, "aria-expanded": isOpen, "aria-haspopup": "true", children: [label, jsx("svg", { className: `${styles$I.arrow} ${isOpen ? styles$I.arrowOpen : ''}`, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", width: "16", height: "16", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) })] }), jsx("div", { className: `${styles$I.menu} ${styles$I[alignment]} ${isOpen ? styles$I.menuOpen : ''}`, style: width ? { minWidth: `${width}px` } : undefined, role: "menu", children: children })] }));
682
+ return (jsxs("div", { ref: dropdownRef, className: `${styles$P.dropdown} ${className}`, onKeyDown: handleKeyDown, children: [jsxs(Button, { variant: "secondary", onClick: () => !disabled && setIsOpen(!isOpen), disabled: disabled, "aria-expanded": isOpen, "aria-haspopup": "true", children: [label, jsx("svg", { className: `${styles$P.arrow} ${isOpen ? styles$P.arrowOpen : ''}`, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", width: "16", height: "16", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) })] }), jsx("div", { className: `${styles$P.menu} ${styles$P[alignment]} ${isOpen ? styles$P.menuOpen : ''}`, style: width ? { minWidth: `${width}px` } : undefined, role: "menu", children: children })] }));
658
683
  };
659
684
  const DropdownItem = ({ children, onClick, disabled = false, icon, className = '', }) => {
660
- return (jsxs("button", { type: "button", className: `${styles$I.item} ${disabled ? styles$I.itemDisabled : ''} ${className}`, onClick: onClick, disabled: disabled, role: "menuitem", children: [icon && jsx("span", { className: styles$I.itemIcon, children: icon }), children] }));
685
+ return (jsxs("button", { type: "button", className: `${styles$P.item} ${disabled ? styles$P.itemDisabled : ''} ${className}`, onClick: onClick, disabled: disabled, role: "menuitem", children: [icon && jsx("span", { className: styles$P.itemIcon, children: icon }), children] }));
661
686
  };
662
687
  Dropdown.Item = DropdownItem;
663
688
 
664
- var styles$H = {"wrapper":"FilterChip-module_wrapper__YDRSW","chip":"FilterChip-module_chip__pF7K5","open":"FilterChip-module_open__EYBp7","active":"FilterChip-module_active__JEkku","label":"FilterChip-module_label__tRr-y","value":"FilterChip-module_value__0EcVu","chevron":"FilterChip-module_chevron__kh13z","rotated":"FilterChip-module_rotated__U-FzI","dropdown":"FilterChip-module_dropdown__w3ytW","infoMessage":"FilterChip-module_infoMessage__0TzcA","searchWrapper":"FilterChip-module_searchWrapper__VHOSK","searchIcon":"FilterChip-module_searchIcon__jJ2K-","searchInput":"FilterChip-module_searchInput__FqwvR","optionsList":"FilterChip-module_optionsList__P0dgd","option":"FilterChip-module_option__DMuqM","selected":"FilterChip-module_selected__ltt9Y","noResults":"FilterChip-module_noResults__QGNao"};
689
+ var styles$O = {"wrapper":"FilterChip-module_wrapper__YDRSW","chip":"FilterChip-module_chip__pF7K5","open":"FilterChip-module_open__EYBp7","active":"FilterChip-module_active__JEkku","label":"FilterChip-module_label__tRr-y","value":"FilterChip-module_value__0EcVu","chevron":"FilterChip-module_chevron__kh13z","rotated":"FilterChip-module_rotated__U-FzI","dropdown":"FilterChip-module_dropdown__w3ytW","infoMessage":"FilterChip-module_infoMessage__0TzcA","searchWrapper":"FilterChip-module_searchWrapper__VHOSK","searchIcon":"FilterChip-module_searchIcon__jJ2K-","searchInput":"FilterChip-module_searchInput__FqwvR","optionsList":"FilterChip-module_optionsList__P0dgd","option":"FilterChip-module_option__DMuqM","selected":"FilterChip-module_selected__ltt9Y","noResults":"FilterChip-module_noResults__QGNao"};
665
690
 
666
691
  const FilterChip = ({ label, value, options, onChange, searchable = false, searchPlaceholder = 'Search...', infoMessage, className, }) => {
667
692
  const [open, setOpen] = useState(false);
@@ -698,13 +723,13 @@ const FilterChip = ({ label, value, options, onChange, searchable = false, searc
698
723
  const selectedOption = options.find(opt => opt.value === value);
699
724
  const displayValue = selectedOption?.label || value;
700
725
  const isDefault = value === options[0]?.value;
701
- return (jsxs("div", { ref: ref, className: `${styles$H.wrapper} ${className || ''}`, children: [jsxs("button", { type: "button", className: `${styles$H.chip} ${open ? styles$H.open : ''} ${!isDefault ? styles$H.active : ''}`, onClick: () => setOpen(!open), "aria-haspopup": "listbox", "aria-expanded": open, children: [jsxs("span", { className: styles$H.label, children: [label, ":"] }), jsx("span", { className: styles$H.value, children: displayValue }), jsx("svg", { className: `${styles$H.chevron} ${open ? styles$H.rotated : ''}`, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "6 9 12 15 18 9" }) })] }), open && (jsxs("div", { className: styles$H.dropdown, role: "listbox", children: [infoMessage && (jsxs("div", { className: styles$H.infoMessage, children: [jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "currentColor", children: jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }), jsx("span", { children: infoMessage })] })), searchable && (jsxs("div", { className: styles$H.searchWrapper, children: [jsxs("svg", { className: styles$H.searchIcon, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }), jsx("input", { type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), placeholder: searchPlaceholder, className: styles$H.searchInput, autoFocus: true })] })), jsxs("div", { className: styles$H.optionsList, children: [filteredOptions.map((option) => (jsx("button", { type: "button", role: "option", "aria-selected": option.value === value, className: `${styles$H.option} ${option.value === value ? styles$H.selected : ''}`, onClick: () => {
726
+ return (jsxs("div", { ref: ref, className: `${styles$O.wrapper} ${className || ''}`, children: [jsxs("button", { type: "button", className: `${styles$O.chip} ${open ? styles$O.open : ''} ${!isDefault ? styles$O.active : ''}`, onClick: () => setOpen(!open), "aria-haspopup": "listbox", "aria-expanded": open, children: [jsxs("span", { className: styles$O.label, children: [label, ":"] }), jsx("span", { className: styles$O.value, children: displayValue }), jsx("svg", { className: `${styles$O.chevron} ${open ? styles$O.rotated : ''}`, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "6 9 12 15 18 9" }) })] }), open && (jsxs("div", { className: styles$O.dropdown, role: "listbox", children: [infoMessage && (jsxs("div", { className: styles$O.infoMessage, children: [jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "currentColor", children: jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }), jsx("span", { children: infoMessage })] })), searchable && (jsxs("div", { className: styles$O.searchWrapper, children: [jsxs("svg", { className: styles$O.searchIcon, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }), jsx("input", { type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), placeholder: searchPlaceholder, className: styles$O.searchInput, autoFocus: true })] })), jsxs("div", { className: styles$O.optionsList, children: [filteredOptions.map((option) => (jsx("button", { type: "button", role: "option", "aria-selected": option.value === value, className: `${styles$O.option} ${option.value === value ? styles$O.selected : ''}`, onClick: () => {
702
727
  onChange(option.value);
703
728
  setOpen(false);
704
- }, children: option.label }, option.value))), filteredOptions.length === 0 && (jsx("div", { className: styles$H.noResults, children: "No results found" }))] })] }))] }));
729
+ }, children: option.label }, option.value))), filteredOptions.length === 0 && (jsx("div", { className: styles$O.noResults, children: "No results found" }))] })] }))] }));
705
730
  };
706
731
 
707
- var styles$G = {"formField":"FormField-module_formField__VhLhK","label":"FormField-module_label__CNCs6","required":"FormField-module_required__HkPQf","inputElement":"FormField-module_inputElement__9uvGR","inputError":"FormField-module_inputError__xD7fk","helperText":"FormField-module_helperText__D99kd","errorText":"FormField-module_errorText__8mXAJ","visuallyHidden":"FormField-module_visuallyHidden__YQc7S"};
732
+ var styles$N = {"formField":"FormField-module_formField__VhLhK","label":"FormField-module_label__CNCs6","required":"FormField-module_required__HkPQf","inputElement":"FormField-module_inputElement__9uvGR","inputError":"FormField-module_inputError__xD7fk","helperText":"FormField-module_helperText__D99kd","errorText":"FormField-module_errorText__8mXAJ","visuallyHidden":"FormField-module_visuallyHidden__YQc7S"};
708
733
 
709
734
  const FormField = forwardRef(({ label, helperText, error, required = false, hideLabel = false, className, as = 'input', inputProps, textareaProps, children, }, ref) => {
710
735
  const generatedId = useId();
@@ -723,15 +748,15 @@ const FormField = forwardRef(({ label, helperText, error, required = false, hide
723
748
  return children;
724
749
  }
725
750
  if (as === 'textarea') {
726
- return (jsx(Textarea, { ref: ref, id: inputId, "aria-describedby": describedBy, "aria-invalid": hasError, "aria-required": required, ...textareaProps, className: `${styles$G.inputElement} ${hasError ? styles$G.inputError : ''} ${textareaProps?.className || ''}` }));
751
+ return (jsx(Textarea, { ref: ref, id: inputId, "aria-describedby": describedBy, "aria-invalid": hasError, "aria-required": required, ...textareaProps, className: `${styles$N.inputElement} ${hasError ? styles$N.inputError : ''} ${textareaProps?.className || ''}` }));
727
752
  }
728
- return (jsx(Input, { ref: ref, id: inputId, "aria-describedby": describedBy, "aria-invalid": hasError, "aria-required": required, ...inputProps, className: `${styles$G.inputElement} ${hasError ? styles$G.inputError : ''} ${inputProps?.className || ''}` }));
753
+ return (jsx(Input, { ref: ref, id: inputId, "aria-describedby": describedBy, "aria-invalid": hasError, "aria-required": required, ...inputProps, className: `${styles$N.inputElement} ${hasError ? styles$N.inputError : ''} ${inputProps?.className || ''}` }));
729
754
  };
730
- return (jsxs("div", { className: `${styles$G.formField} ${className || ''}`, children: [jsxs("label", { htmlFor: inputId, className: `${styles$G.label} ${hideLabel ? styles$G.visuallyHidden : ''}`, children: [label, required && jsx("span", { className: styles$G.required, "aria-hidden": "true", children: "*" })] }), renderInput(), helperText && !hasError && (jsx("p", { id: helperId, className: styles$G.helperText, children: helperText })), hasError && (jsx("p", { id: errorId, className: styles$G.errorText, role: "alert", children: error }))] }));
755
+ return (jsxs("div", { className: `${styles$N.formField} ${className || ''}`, children: [jsxs("label", { htmlFor: inputId, className: `${styles$N.label} ${hideLabel ? styles$N.visuallyHidden : ''}`, children: [label, required && jsx("span", { className: styles$N.required, "aria-hidden": "true", children: "*" })] }), renderInput(), helperText && !hasError && (jsx("p", { id: helperId, className: styles$N.helperText, children: helperText })), hasError && (jsx("p", { id: errorId, className: styles$N.errorText, role: "alert", children: error }))] }));
731
756
  });
732
757
  FormField.displayName = 'FormField';
733
758
 
734
- var styles$F = {"row":"FormRow-module_row__2ObP9","cols1":"FormRow-module_cols1__WsxX3","cols2":"FormRow-module_cols2__t548T","cols3":"FormRow-module_cols3__zjoSR","cols4":"FormRow-module_cols4__DbZL-","gapsm":"FormRow-module_gapsm__sl0ji","gapmd":"FormRow-module_gapmd__77Yp3","gaplg":"FormRow-module_gaplg__Yb-fh","stackMobile":"FormRow-module_stackMobile__6UluR"};
759
+ var styles$M = {"row":"FormRow-module_row__2ObP9","cols1":"FormRow-module_cols1__WsxX3","cols2":"FormRow-module_cols2__t548T","cols3":"FormRow-module_cols3__zjoSR","cols4":"FormRow-module_cols4__DbZL-","gapsm":"FormRow-module_gapsm__sl0ji","gapmd":"FormRow-module_gapmd__77Yp3","gaplg":"FormRow-module_gaplg__Yb-fh","stackMobile":"FormRow-module_stackMobile__6UluR"};
735
760
 
736
761
  /**
737
762
  * FormRow component for laying out form fields in a responsive grid.
@@ -741,16 +766,16 @@ const FormRow = ({ children, columns, gap = 'md', className, stackOnMobile = tru
741
766
  const childCount = Children.count(children);
742
767
  const colCount = columns || (childCount > 4 ? 4 : childCount);
743
768
  return (jsx("div", { className: `
744
- ${styles$F.row}
745
- ${styles$F[`cols${colCount}`]}
746
- ${styles$F[`gap${gap}`]}
747
- ${stackOnMobile ? styles$F.stackMobile : ''}
769
+ ${styles$M.row}
770
+ ${styles$M[`cols${colCount}`]}
771
+ ${styles$M[`gap${gap}`]}
772
+ ${stackOnMobile ? styles$M.stackMobile : ''}
748
773
  ${className || ''}
749
774
  `, children: children }));
750
775
  };
751
776
  FormRow.displayName = 'FormRow';
752
777
 
753
- var styles$E = {"section":"FormSection-module_section__T17Vg","header":"FormSection-module_header__2MkY6","icon":"FormSection-module_icon__uywPB","title":"FormSection-module_title__dlvYD","fieldset":"FormSection-module_fieldset__pDDIo","disabled":"FormSection-module_disabled__xC3-e","status":"FormSection-module_status__2XOyW","statusLabel":"FormSection-module_statusLabel__VAuDb","statusValue":"FormSection-module_statusValue__YKSc-","submitted":"FormSection-module_submitted__sS-zT","not-submitted":"FormSection-module_not-submitted__Kuk2i","draft":"FormSection-module_draft__XHq3-"};
778
+ var styles$L = {"section":"FormSection-module_section__T17Vg","header":"FormSection-module_header__2MkY6","icon":"FormSection-module_icon__uywPB","title":"FormSection-module_title__dlvYD","fieldset":"FormSection-module_fieldset__pDDIo","disabled":"FormSection-module_disabled__xC3-e","status":"FormSection-module_status__2XOyW","statusLabel":"FormSection-module_statusLabel__VAuDb","statusValue":"FormSection-module_statusValue__YKSc-","submitted":"FormSection-module_submitted__sS-zT","not-submitted":"FormSection-module_not-submitted__Kuk2i","draft":"FormSection-module_draft__XHq3-"};
754
779
 
755
780
  /**
756
781
  * FormSection component for grouping related form fields with a title and icon.
@@ -759,40 +784,45 @@ var styles$E = {"section":"FormSection-module_section__T17Vg","header":"FormSect
759
784
  const FormSection = ({ title, icon, status, disabled = false, children, className, id, }) => {
760
785
  const isSubmitted = status === 'submitted';
761
786
  const isDisabled = disabled || isSubmitted;
762
- return (jsxs("div", { className: `${styles$E.section} ${className || ''}`, id: id, children: [jsxs("div", { className: styles$E.header, children: [icon && jsx("span", { className: styles$E.icon, children: icon }), jsx("h2", { className: styles$E.title, children: title })] }), jsxs("fieldset", { disabled: isDisabled, className: `${styles$E.fieldset} ${isDisabled ? styles$E.disabled : ''}`, children: [status && (jsxs("div", { className: styles$E.status, children: [jsx("span", { className: styles$E.statusLabel, children: "Status:" }), jsx("span", { className: `${styles$E.statusValue} ${styles$E[status]}`, children: status === 'submitted' ? 'Submitted' : status === 'draft' ? 'Draft' : 'Not Submitted' })] })), children] })] }));
787
+ return (jsxs("div", { className: `${styles$L.section} ${className || ''}`, id: id, children: [jsxs("div", { className: styles$L.header, children: [icon && jsx("span", { className: styles$L.icon, children: icon }), jsx("h2", { className: styles$L.title, children: title })] }), jsxs("fieldset", { disabled: isDisabled, className: `${styles$L.fieldset} ${isDisabled ? styles$L.disabled : ''}`, children: [status && (jsxs("div", { className: styles$L.status, children: [jsx("span", { className: styles$L.statusLabel, children: "Status:" }), jsx("span", { className: `${styles$L.statusValue} ${styles$L[status]}`, children: status === 'submitted' ? 'Submitted' : status === 'draft' ? 'Draft' : 'Not Submitted' })] })), children] })] }));
763
788
  };
764
789
  FormSection.displayName = 'FormSection';
765
790
 
766
- var styles$D = {"toggle":"ManifestViewToggle-module_toggle__sHnAd","lockedToggle":"ManifestViewToggle-module_lockedToggle__m70h9","tab":"ManifestViewToggle-module_tab__qcwg7","active":"ManifestViewToggle-module_active__ln3B8","locked":"ManifestViewToggle-module_locked__Udun8","lockedActive":"ManifestViewToggle-module_lockedActive__kYSaF","count":"ManifestViewToggle-module_count__M-8a8"};
791
+ var styles$K = {"stack":"FormStack-module_stack__SURjY","sm":"FormStack-module_sm__rt3tb","md":"FormStack-module_md__SRDmc","lg":"FormStack-module_lg__jql3j"};
792
+
793
+ /** Standard vertical form-field rhythm used by Hub modal forms. */
794
+ const FormStack = ({ children, gap = 'md', className = '' }) => (jsx("div", { className: [styles$K.stack, styles$K[gap], className].filter(Boolean).join(' '), children: children }));
795
+
796
+ var styles$J = {"toggle":"ManifestViewToggle-module_toggle__sHnAd","lockedToggle":"ManifestViewToggle-module_lockedToggle__m70h9","tab":"ManifestViewToggle-module_tab__qcwg7","active":"ManifestViewToggle-module_active__ln3B8","locked":"ManifestViewToggle-module_locked__Udun8","lockedActive":"ManifestViewToggle-module_lockedActive__kYSaF","count":"ManifestViewToggle-module_count__M-8a8"};
767
797
 
768
798
  const ManifestViewToggle = ({ view, onView, paxCount, eqCount, locked, className = '', }) => {
769
799
  const tabs = [
770
800
  { key: 'passengers', label: 'Passengers', count: paxCount, icon: UsersIcon$1 },
771
801
  { key: 'equipment', label: 'Equipment', count: eqCount, icon: CubeIcon },
772
802
  ];
773
- return (jsx("div", { className: [styles$D.toggle, locked ? styles$D.lockedToggle : '', className].filter(Boolean).join(' '), role: "tablist", "aria-label": "Manifest view", children: tabs.map((tab) => {
803
+ return (jsx("div", { className: [styles$J.toggle, locked ? styles$J.lockedToggle : '', className].filter(Boolean).join(' '), role: "tablist", "aria-label": "Manifest view", children: tabs.map((tab) => {
774
804
  const active = view === tab.key;
775
805
  const Icon = locked ? LockIcon$1 : tab.icon;
776
806
  return (jsxs("button", { type: "button", role: "tab", "aria-selected": active, onClick: () => onView(tab.key), className: [
777
- styles$D.tab,
778
- active ? styles$D.active : '',
779
- locked ? styles$D.locked : '',
780
- locked && active ? styles$D.lockedActive : '',
781
- ].filter(Boolean).join(' '), children: [jsx(Icon, { size: 16 }), tab.label, jsx("span", { className: styles$D.count, children: tab.count })] }, tab.key));
807
+ styles$J.tab,
808
+ active ? styles$J.active : '',
809
+ locked ? styles$J.locked : '',
810
+ locked && active ? styles$J.lockedActive : '',
811
+ ].filter(Boolean).join(' '), children: [jsx(Icon, { size: 16 }), tab.label, jsx("span", { className: styles$J.count, children: tab.count })] }, tab.key));
782
812
  }) }));
783
813
  };
784
814
 
785
- var styles$C = {"navItem":"NavItem-module_navItem__4PpZU","disabled":"NavItem-module_disabled__uYqez","default":"NavItem-module_default__VB92P","active":"NavItem-module_active__3bcnW","pill":"NavItem-module_pill__pn5gl","icon":"NavItem-module_icon__j9VQ5","label":"NavItem-module_label__3S3KY","sm":"NavItem-module_sm__1oeZI","md":"NavItem-module_md__ySO90","lg":"NavItem-module_lg__OmaBw","collapsed":"NavItem-module_collapsed__ciZ6-","iconSm":"NavItem-module_iconSm__UvWnu","iconMd":"NavItem-module_iconMd__uAMlQ","iconLg":"NavItem-module_iconLg__PFPKD","badge":"NavItem-module_badge__oP9u2"};
815
+ var styles$I = {"navItem":"NavItem-module_navItem__4PpZU","disabled":"NavItem-module_disabled__uYqez","default":"NavItem-module_default__VB92P","active":"NavItem-module_active__3bcnW","pill":"NavItem-module_pill__pn5gl","icon":"NavItem-module_icon__j9VQ5","label":"NavItem-module_label__3S3KY","sm":"NavItem-module_sm__1oeZI","md":"NavItem-module_md__ySO90","lg":"NavItem-module_lg__OmaBw","collapsed":"NavItem-module_collapsed__ciZ6-","iconSm":"NavItem-module_iconSm__UvWnu","iconMd":"NavItem-module_iconMd__uAMlQ","iconLg":"NavItem-module_iconLg__PFPKD","badge":"NavItem-module_badge__oP9u2"};
786
816
 
787
817
  const NavItem = ({ icon, label, active = false, collapsed = false, variant = 'default', size = 'md', badge, badgeVariant = 'default', onClick, disabled = false, href, external = false, className, 'aria-label': ariaLabel, }) => {
788
- const content = (jsxs(Fragment, { children: [icon && jsx("span", { className: `${styles$C.icon} ${styles$C[`icon${size.charAt(0).toUpperCase()}${size.slice(1)}`]}`, "aria-hidden": "true", children: icon }), !collapsed && (jsx("span", { className: styles$C.label, children: label })), badge !== undefined && !collapsed && (jsx(Badge, { variant: badgeVariant, className: styles$C.badge, children: badge }))] }));
818
+ const content = (jsxs(Fragment, { children: [icon && jsx("span", { className: `${styles$I.icon} ${styles$I[`icon${size.charAt(0).toUpperCase()}${size.slice(1)}`]}`, "aria-hidden": "true", children: icon }), !collapsed && (jsx("span", { className: styles$I.label, children: label })), badge !== undefined && !collapsed && (jsx(Badge, { variant: badgeVariant, className: styles$I.badge, children: badge }))] }));
789
819
  const classNames = [
790
- styles$C.navItem,
791
- styles$C[variant],
792
- styles$C[size],
793
- active ? styles$C.active : '',
794
- collapsed ? styles$C.collapsed : '',
795
- disabled ? styles$C.disabled : '',
820
+ styles$I.navItem,
821
+ styles$I[variant],
822
+ styles$I[size],
823
+ active ? styles$I.active : '',
824
+ collapsed ? styles$I.collapsed : '',
825
+ disabled ? styles$I.disabled : '',
796
826
  className || '',
797
827
  ].filter(Boolean).join(' ');
798
828
  const commonProps = {
@@ -807,7 +837,7 @@ const NavItem = ({ icon, label, active = false, collapsed = false, variant = 'de
807
837
  return (jsx("button", { type: "button", onClick: disabled ? undefined : onClick, disabled: disabled, ...commonProps, children: content }));
808
838
  };
809
839
 
810
- var styles$B = {"barContainer":"Progress-module_barContainer__e4v8v","barTrack":"Progress-module_barTrack__tJsPO","barFill":"Progress-module_barFill__RbcDy","barxs":"Progress-module_barxs__TLS4q","barsm":"Progress-module_barsm__BFAiw","barmd":"Progress-module_barmd__QDW-h","barlg":"Progress-module_barlg__C-Mzw","barLabel":"Progress-module_barLabel__4PFJ7","circleContainer":"Progress-module_circleContainer__zyOTa","circleSvg":"Progress-module_circleSvg__0Tt1Q","circleTrack":"Progress-module_circleTrack__p4VWf","circleFill":"Progress-module_circleFill__6fU2M","circleLabel":"Progress-module_circleLabel__vHLfU","primary":"Progress-module_primary__H2wpc","success":"Progress-module_success__rmmnE","warning":"Progress-module_warning__68ovy","error":"Progress-module_error__ZXkH0"};
840
+ var styles$H = {"barContainer":"Progress-module_barContainer__e4v8v","barTrack":"Progress-module_barTrack__tJsPO","barFill":"Progress-module_barFill__RbcDy","barxs":"Progress-module_barxs__TLS4q","barsm":"Progress-module_barsm__BFAiw","barmd":"Progress-module_barmd__QDW-h","barlg":"Progress-module_barlg__C-Mzw","barLabel":"Progress-module_barLabel__4PFJ7","circleContainer":"Progress-module_circleContainer__zyOTa","circleSvg":"Progress-module_circleSvg__0Tt1Q","circleTrack":"Progress-module_circleTrack__p4VWf","circleFill":"Progress-module_circleFill__6fU2M","circleLabel":"Progress-module_circleLabel__vHLfU","primary":"Progress-module_primary__H2wpc","success":"Progress-module_success__rmmnE","warning":"Progress-module_warning__68ovy","error":"Progress-module_error__ZXkH0"};
811
841
 
812
842
  const dimensions = {
813
843
  xs: 32,
@@ -823,7 +853,7 @@ const strokeWidths = {
823
853
  };
824
854
  const ProgressBar = ({ value, max = 100, size = 'md', variant = 'primary', showLabel = false, className = '', }) => {
825
855
  const percentage = Math.min(Math.max((value / max) * 100, 0), 100);
826
- return (jsxs("div", { className: `${styles$B.barContainer} ${styles$B[`bar${size}`]} ${className}`, children: [jsx("div", { className: styles$B.barTrack, children: jsx("div", { className: `${styles$B.barFill} ${styles$B[variant]}`, style: { width: `${percentage}%` }, role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max }) }), showLabel && (jsxs("span", { className: styles$B.barLabel, children: [Math.round(percentage), "%"] }))] }));
856
+ return (jsxs("div", { className: `${styles$H.barContainer} ${styles$H[`bar${size}`]} ${className}`, children: [jsx("div", { className: styles$H.barTrack, children: jsx("div", { className: `${styles$H.barFill} ${styles$H[variant]}`, style: { width: `${percentage}%` }, role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max }) }), showLabel && (jsxs("span", { className: styles$H.barLabel, children: [Math.round(percentage), "%"] }))] }));
827
857
  };
828
858
  const ProgressCircle = ({ value, max = 100, size = 'md', variant = 'primary', showLabel = false, className = '', }) => {
829
859
  const percentage = Math.min(Math.max((value / max) * 100, 0), 100);
@@ -832,7 +862,7 @@ const ProgressCircle = ({ value, max = 100, size = 'md', variant = 'primary', sh
832
862
  const radius = (dimension - strokeWidth) / 2;
833
863
  const circumference = radius * 2 * Math.PI;
834
864
  const strokeDashoffset = circumference - (percentage / 100) * circumference;
835
- return (jsxs("div", { className: `${styles$B.circleContainer} ${className}`, style: { width: dimension, height: dimension }, children: [jsxs("svg", { width: dimension, height: dimension, className: styles$B.circleSvg, children: [jsx("circle", { className: styles$B.circleTrack, cx: dimension / 2, cy: dimension / 2, r: radius, strokeWidth: strokeWidth, fill: "transparent" }), jsx("circle", { className: `${styles$B.circleFill} ${styles$B[variant]}`, cx: dimension / 2, cy: dimension / 2, r: radius, strokeWidth: strokeWidth, fill: "transparent", strokeDasharray: circumference, strokeDashoffset: strokeDashoffset, strokeLinecap: "round", role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max })] }), showLabel && (jsxs("span", { className: styles$B.circleLabel, style: { fontSize: size === 'xs' ? '8px' : size === 'sm' ? '10px' : size === 'md' ? '12px' : '14px' }, children: [Math.round(percentage), "%"] }))] }));
865
+ return (jsxs("div", { className: `${styles$H.circleContainer} ${className}`, style: { width: dimension, height: dimension }, children: [jsxs("svg", { width: dimension, height: dimension, className: styles$H.circleSvg, children: [jsx("circle", { className: styles$H.circleTrack, cx: dimension / 2, cy: dimension / 2, r: radius, strokeWidth: strokeWidth, fill: "transparent" }), jsx("circle", { className: `${styles$H.circleFill} ${styles$H[variant]}`, cx: dimension / 2, cy: dimension / 2, r: radius, strokeWidth: strokeWidth, fill: "transparent", strokeDasharray: circumference, strokeDashoffset: strokeDashoffset, strokeLinecap: "round", role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max })] }), showLabel && (jsxs("span", { className: styles$H.circleLabel, style: { fontSize: size === 'xs' ? '8px' : size === 'sm' ? '10px' : size === 'md' ? '12px' : '14px' }, children: [Math.round(percentage), "%"] }))] }));
836
866
  };
837
867
  // Combined export
838
868
  const Progress = {
@@ -840,7 +870,7 @@ const Progress = {
840
870
  Circle: ProgressCircle,
841
871
  };
842
872
 
843
- var styles$A = {"toolbar":"RosterToolbar-module_toolbar__IHjs9","leftSection":"RosterToolbar-module_leftSection__baz7E","rightSection":"RosterToolbar-module_rightSection__R2b-D","dropdown":"RosterToolbar-module_dropdown__NKaWV","dropdownTrigger":"RosterToolbar-module_dropdownTrigger__nCoaZ","dropdownMenu":"RosterToolbar-module_dropdownMenu__7QuED","dropdownItem":"RosterToolbar-module_dropdownItem__mrsat","dropdownItemIcon":"RosterToolbar-module_dropdownItemIcon__gx5tx","lockButton":"RosterToolbar-module_lockButton__zw3s0","locked":"RosterToolbar-module_locked__DVnqB","saveButton":"RosterToolbar-module_saveButton__th1lq","spinner":"RosterToolbar-module_spinner__uWdPg"};
873
+ var styles$G = {"toolbar":"RosterToolbar-module_toolbar__IHjs9","leftSection":"RosterToolbar-module_leftSection__baz7E","rightSection":"RosterToolbar-module_rightSection__R2b-D","dropdown":"RosterToolbar-module_dropdown__NKaWV","dropdownTrigger":"RosterToolbar-module_dropdownTrigger__nCoaZ","dropdownMenu":"RosterToolbar-module_dropdownMenu__7QuED","dropdownItem":"RosterToolbar-module_dropdownItem__mrsat","dropdownItemIcon":"RosterToolbar-module_dropdownItemIcon__gx5tx","lockButton":"RosterToolbar-module_lockButton__zw3s0","locked":"RosterToolbar-module_locked__DVnqB","saveButton":"RosterToolbar-module_saveButton__th1lq","spinner":"RosterToolbar-module_spinner__uWdPg"};
844
874
 
845
875
  const ImportIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), jsx("polyline", { points: "17 8 12 3 7 8" }), jsx("line", { x1: "12", y1: "3", x2: "12", y2: "15" })] }));
846
876
  const ExportIcon$1 = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), jsx("polyline", { points: "7 10 12 15 17 10" }), jsx("line", { x1: "12", y1: "15", x2: "12", y2: "3" })] }));
@@ -848,23 +878,23 @@ const ChevronIcon$2 = () => (jsx("svg", { width: "12", height: "12", viewBox: "0
848
878
  const LockIcon = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), jsx("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })] }));
849
879
  const UnlockIcon = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), jsx("path", { d: "M7 11V7a5 5 0 0 1 9.9-1" })] }));
850
880
  const SaveIcon = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" }), jsx("polyline", { points: "17 21 17 13 7 13 7 21" }), jsx("polyline", { points: "7 3 7 8 15 8" })] }));
851
- const SpinnerIcon = () => (jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: styles$A.spinner, children: jsx("circle", { cx: "12", cy: "12", r: "10", strokeDasharray: "32", strokeDashoffset: "32" }) }));
881
+ const SpinnerIcon = () => (jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: styles$G.spinner, children: jsx("circle", { cx: "12", cy: "12", r: "10", strokeDasharray: "32", strokeDashoffset: "32" }) }));
852
882
  const DropdownButton = ({ label, icon, options, }) => {
853
- return (jsxs("div", { className: styles$A.dropdown, children: [jsxs("button", { type: "button", className: styles$A.dropdownTrigger, children: [icon, jsx("span", { children: label }), jsx(ChevronIcon$2, {})] }), jsx("div", { className: styles$A.dropdownMenu, children: options.map((option, i) => (jsxs("button", { type: "button", className: styles$A.dropdownItem, onClick: option.onClick, disabled: option.disabled, children: [option.icon && jsx("span", { className: styles$A.dropdownItemIcon, children: option.icon }), option.label] }, i))) })] }));
883
+ return (jsxs("div", { className: styles$G.dropdown, children: [jsxs("button", { type: "button", className: styles$G.dropdownTrigger, children: [icon, jsx("span", { children: label }), jsx(ChevronIcon$2, {})] }), jsx("div", { className: styles$G.dropdownMenu, children: options.map((option, i) => (jsxs("button", { type: "button", className: styles$G.dropdownItem, onClick: option.onClick, disabled: option.disabled, children: [option.icon && jsx("span", { className: styles$G.dropdownItemIcon, children: option.icon }), option.label] }, i))) })] }));
854
884
  };
855
885
  /**
856
886
  * RosterToolbar - Toolbar for roster management with import/export/save actions
857
887
  */
858
888
  const RosterToolbar = ({ importOptions, exportOptions, lockToggle, saveButton, additionalActions, searchField, className = '', }) => {
859
- const toolbarClasses = [styles$A.toolbar, className].filter(Boolean).join(' ');
860
- return (jsxs("div", { className: toolbarClasses, children: [jsxs("div", { className: styles$A.leftSection, children: [searchField, additionalActions] }), jsxs("div", { className: styles$A.rightSection, children: [importOptions && importOptions.length > 0 && (jsx(DropdownButton, { label: "Import", icon: jsx(ImportIcon, {}), options: importOptions })), exportOptions && exportOptions.length > 0 && (jsx(DropdownButton, { label: "Export", icon: jsx(ExportIcon$1, {}), options: exportOptions })), lockToggle && (jsxs("button", { type: "button", className: [
861
- styles$A.lockButton,
862
- lockToggle.isLocked ? styles$A.locked : '',
863
- ].filter(Boolean).join(' '), onClick: () => lockToggle.onToggle(!lockToggle.isLocked), disabled: lockToggle.disabled, "aria-label": lockToggle.isLocked ? 'Unlock roster' : 'Lock roster', children: [lockToggle.isLocked ? jsx(LockIcon, {}) : jsx(UnlockIcon, {}), jsx("span", { children: lockToggle.isLocked ? 'Locked' : 'Unlocked' })] })), saveButton && (jsxs("button", { type: "button", className: styles$A.saveButton, onClick: saveButton.onClick, disabled: saveButton.disabled || saveButton.loading, children: [saveButton.loading ? jsx(SpinnerIcon, {}) : jsx(SaveIcon, {}), jsx("span", { children: saveButton.label || 'Save' })] }))] })] }));
889
+ const toolbarClasses = [styles$G.toolbar, className].filter(Boolean).join(' ');
890
+ return (jsxs("div", { className: toolbarClasses, children: [jsxs("div", { className: styles$G.leftSection, children: [searchField, additionalActions] }), jsxs("div", { className: styles$G.rightSection, children: [importOptions && importOptions.length > 0 && (jsx(DropdownButton, { label: "Import", icon: jsx(ImportIcon, {}), options: importOptions })), exportOptions && exportOptions.length > 0 && (jsx(DropdownButton, { label: "Export", icon: jsx(ExportIcon$1, {}), options: exportOptions })), lockToggle && (jsxs("button", { type: "button", className: [
891
+ styles$G.lockButton,
892
+ lockToggle.isLocked ? styles$G.locked : '',
893
+ ].filter(Boolean).join(' '), onClick: () => lockToggle.onToggle(!lockToggle.isLocked), disabled: lockToggle.disabled, "aria-label": lockToggle.isLocked ? 'Unlock roster' : 'Lock roster', children: [lockToggle.isLocked ? jsx(LockIcon, {}) : jsx(UnlockIcon, {}), jsx("span", { children: lockToggle.isLocked ? 'Locked' : 'Unlocked' })] })), saveButton && (jsxs("button", { type: "button", className: styles$G.saveButton, onClick: saveButton.onClick, disabled: saveButton.disabled || saveButton.loading, children: [saveButton.loading ? jsx(SpinnerIcon, {}) : jsx(SaveIcon, {}), jsx("span", { children: saveButton.label || 'Save' })] }))] })] }));
864
894
  };
865
895
  RosterToolbar.displayName = 'RosterToolbar';
866
896
 
867
- var styles$z = {"searchField":"SearchField-module_searchField__c7gUE","inputWrapper":"SearchField-module_inputWrapper__SUzHv","searchIcon":"SearchField-module_searchIcon__MOZ2m","input":"SearchField-module_input__abJcl","clearButton":"SearchField-module_clearButton__RMIg2","sm":"SearchField-module_sm__-sayT","lg":"SearchField-module_lg__QKacI"};
897
+ var styles$F = {"searchField":"SearchField-module_searchField__c7gUE","inputWrapper":"SearchField-module_inputWrapper__SUzHv","searchIcon":"SearchField-module_searchIcon__MOZ2m","input":"SearchField-module_input__abJcl","clearButton":"SearchField-module_clearButton__RMIg2","sm":"SearchField-module_sm__-sayT","lg":"SearchField-module_lg__QKacI"};
868
898
 
869
899
  const SearchField = forwardRef(({ placeholder = 'Search...', value, defaultValue = '', onChange, onSearch, onClear, size = 'md', disabled = false, showClear = true, showButton = true, className, id, 'aria-label': ariaLabel = 'Search', ...props }, ref) => {
870
900
  const [internalValue, setInternalValue] = useState(defaultValue);
@@ -892,17 +922,25 @@ const SearchField = forwardRef(({ placeholder = 'Search...', value, defaultValue
892
922
  onSearch?.(currentValue);
893
923
  }
894
924
  };
895
- return (jsxs("form", { className: `${styles$z.searchField} ${styles$z[size]} ${className || ''}`, onSubmit: handleSubmit, role: "search", children: [jsxs("div", { className: styles$z.inputWrapper, children: [jsx(SearchIcon$1, { className: styles$z.searchIcon, "aria-hidden": "true" }), jsx(Input, { ref: ref, id: id, type: "search", placeholder: placeholder, value: currentValue, onChange: handleChange, onKeyDown: handleKeyDown, disabled: disabled, className: styles$z.input, "aria-label": ariaLabel, ...props }), showClear && currentValue && (jsx("button", { type: "button", className: styles$z.clearButton, onClick: handleClear, disabled: disabled, "aria-label": "Clear search", children: jsx(CloseIcon, { size: 16 }) }))] }), showButton && (jsx(Button, { type: "submit", variant: "primary", size: size, disabled: disabled, children: "Search" }))] }));
925
+ return (jsxs("form", { className: `${styles$F.searchField} ${styles$F[size]} ${className || ''}`, onSubmit: handleSubmit, role: "search", children: [jsxs("div", { className: styles$F.inputWrapper, children: [jsx(SearchIcon$1, { className: styles$F.searchIcon, "aria-hidden": "true" }), jsx(Input, { ref: ref, id: id, type: "search", placeholder: placeholder, value: currentValue, onChange: handleChange, onKeyDown: handleKeyDown, disabled: disabled, className: styles$F.input, "aria-label": ariaLabel, ...props }), showClear && currentValue && (jsx("button", { type: "button", className: styles$F.clearButton, onClick: handleClear, disabled: disabled, "aria-label": "Clear search", children: jsx(CloseIcon, { size: 16 }) }))] }), showButton && (jsx(Button, { type: "submit", variant: "primary", size: size, disabled: disabled, children: "Search" }))] }));
896
926
  });
897
927
  SearchField.displayName = 'SearchField';
898
928
 
899
- var styles$y = {"segment":"Segment-module_segment__UF-SG","fullWidth":"Segment-module_fullWidth__Hi19i","option":"Segment-module_option__UJUhj","disabled":"Segment-module_disabled__CSxuQ","selected":"Segment-module_selected__gRnVj","sm":"Segment-module_sm__h8S7Z","md":"Segment-module_md__4uTae","lg":"Segment-module_lg__zL0Hv","icon":"Segment-module_icon__ZHRr6"};
929
+ var styles$E = {"form":"SchoolContactForm-module_form__-Mx7k","portalLabel":"SchoolContactForm-module_portalLabel__GAeV6","newContactLabel":"SchoolContactForm-module_newContactLabel__7S3Vw","divider":"SchoolContactForm-module_divider__ZSx-R","nameFields":"SchoolContactForm-module_nameFields__Fcjl8","phoneFields":"SchoolContactForm-module_phoneFields__-zRPe"};
930
+
931
+ /**
932
+ * Layout for Hub's school-contact editor. Field controls stay injectable so
933
+ * consuming applications retain their form state, validation, and masking.
934
+ */
935
+ const SchoolContactForm = ({ mode, createFromPortalUser, firstNameField, middleInitialField, lastNameField, businessPhoneField, cellPhoneField, emailField, className = '', }) => (jsxs("div", { className: [styles$E.form, className].filter(Boolean).join(' '), children: [mode === 'Add' && (jsxs(Fragment, { children: [jsxs("div", { children: [jsx("label", { className: styles$E.portalLabel, children: "Create From Portal User" }), createFromPortalUser] }), jsx("div", { className: styles$E.divider, children: jsx("strong", { children: "OR" }) }), jsx("p", { className: styles$E.newContactLabel, children: "Create New Contact Without Portal Access" })] })), jsxs("div", { className: styles$E.nameFields, children: [firstNameField, middleInitialField, lastNameField] }), jsxs("div", { className: styles$E.phoneFields, children: [businessPhoneField, cellPhoneField] }), jsx("div", { children: emailField })] }));
936
+
937
+ var styles$D = {"segment":"Segment-module_segment__UF-SG","fullWidth":"Segment-module_fullWidth__Hi19i","option":"Segment-module_option__UJUhj","disabled":"Segment-module_disabled__CSxuQ","selected":"Segment-module_selected__gRnVj","sm":"Segment-module_sm__h8S7Z","md":"Segment-module_md__4uTae","lg":"Segment-module_lg__zL0Hv","icon":"Segment-module_icon__ZHRr6"};
900
938
 
901
939
  const Segment = ({ options, value, onChange, size = 'md', fullWidth = false, className = '', 'aria-label': ariaLabel, }) => {
902
- return (jsx("div", { className: `${styles$y.segment} ${styles$y[size]} ${fullWidth ? styles$y.fullWidth : ''} ${className}`, role: "radiogroup", "aria-label": ariaLabel, children: options.map((option) => (jsxs("button", { type: "button", className: `${styles$y.option} ${value === option.value ? styles$y.selected : ''} ${option.disabled ? styles$y.disabled : ''}`, onClick: () => !option.disabled && onChange(option.value), disabled: option.disabled, role: "radio", "aria-checked": value === option.value, children: [option.icon && jsx("span", { className: styles$y.icon, children: option.icon }), option.label] }, option.value))) }));
940
+ return (jsx("div", { className: `${styles$D.segment} ${styles$D[size]} ${fullWidth ? styles$D.fullWidth : ''} ${className}`, role: "radiogroup", "aria-label": ariaLabel, children: options.map((option) => (jsxs("button", { type: "button", className: `${styles$D.option} ${value === option.value ? styles$D.selected : ''} ${option.disabled ? styles$D.disabled : ''}`, onClick: () => !option.disabled && onChange(option.value), disabled: option.disabled, role: "radio", "aria-checked": value === option.value, children: [option.icon && jsx("span", { className: styles$D.icon, children: option.icon }), option.label] }, option.value))) }));
903
941
  };
904
942
 
905
- var styles$x = {"container":"SelectFilter-module_container__tCC9y","trigger":"SelectFilter-module_trigger__5WbMf","open":"SelectFilter-module_open__oo-Y6","disabled":"SelectFilter-module_disabled__JUdi3","triggerText":"SelectFilter-module_triggerText__LM07K","placeholder":"SelectFilter-module_placeholder__J0xyo","chevron":"SelectFilter-module_chevron__x-Pnr","dropdown":"SelectFilter-module_dropdown__52FPP","tabs":"SelectFilter-module_tabs__wp6on","tab":"SelectFilter-module_tab__JpnWo","activeTab":"SelectFilter-module_activeTab__ShP7x","actions":"SelectFilter-module_actions__phfFl","actionBtn":"SelectFilter-module_actionBtn__ppB--","options":"SelectFilter-module_options__p1iCX","option":"SelectFilter-module_option__0vwfy","selected":"SelectFilter-module_selected__2vxyT","checkbox":"SelectFilter-module_checkbox__qTUjy","optionLabel":"SelectFilter-module_optionLabel__L4CMA","footer":"SelectFilter-module_footer__aq4JP","applyBtn":"SelectFilter-module_applyBtn__RFKei"};
943
+ var styles$C = {"container":"SelectFilter-module_container__tCC9y","trigger":"SelectFilter-module_trigger__5WbMf","open":"SelectFilter-module_open__oo-Y6","disabled":"SelectFilter-module_disabled__JUdi3","triggerText":"SelectFilter-module_triggerText__LM07K","placeholder":"SelectFilter-module_placeholder__J0xyo","chevron":"SelectFilter-module_chevron__x-Pnr","dropdown":"SelectFilter-module_dropdown__52FPP","tabs":"SelectFilter-module_tabs__wp6on","tab":"SelectFilter-module_tab__JpnWo","activeTab":"SelectFilter-module_activeTab__ShP7x","actions":"SelectFilter-module_actions__phfFl","actionBtn":"SelectFilter-module_actionBtn__ppB--","options":"SelectFilter-module_options__p1iCX","option":"SelectFilter-module_option__0vwfy","selected":"SelectFilter-module_selected__2vxyT","checkbox":"SelectFilter-module_checkbox__qTUjy","optionLabel":"SelectFilter-module_optionLabel__L4CMA","footer":"SelectFilter-module_footer__aq4JP","applyBtn":"SelectFilter-module_applyBtn__RFKei"};
906
944
 
907
945
  const ChevronIcon$1 = () => (jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "6 9 12 15 18 9" }) }));
908
946
  const CheckIcon = () => (jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("polyline", { points: "20 6 9 17 4 12" }) }));
@@ -975,11 +1013,11 @@ const SelectFilter = ({ label, options = [], groupedOptions = {}, value = [], on
975
1013
  }
976
1014
  return `${selected.length} selected`;
977
1015
  };
978
- return (jsxs("div", { ref: dropdownRef, className: `${styles$x.container} ${className}`, children: [jsxs("button", { type: "button", className: `${styles$x.trigger} ${disabled ? styles$x.disabled : ''} ${isOpen ? styles$x.open : ''}`, onClick: () => !disabled && setIsOpen(!isOpen), children: [jsx("span", { className: `${styles$x.triggerText} ${selectedValues.length === 0 ? styles$x.placeholder : ''}`, children: getDisplayText() }), jsx("span", { className: styles$x.chevron, children: jsx(ChevronIcon$1, {}) })] }), isOpen && (jsxs("div", { className: styles$x.dropdown, style: { width }, children: [grouped && tabs.length > 0 && (jsx("div", { className: styles$x.tabs, children: tabs.map(tab => (jsx("button", { type: "button", className: `${styles$x.tab} ${activeTab === tab ? styles$x.activeTab : ''}`, onClick: () => setActiveTab(tab), children: tab.charAt(0).toUpperCase() + tab.slice(1) }, tab))) })), multiselect && (jsxs("div", { className: styles$x.actions, children: [jsx("button", { type: "button", className: styles$x.actionBtn, onClick: handleSelectAll, children: "Select All" }), jsx("button", { type: "button", className: styles$x.actionBtn, onClick: handleClear, children: "Clear" })] })), jsx("div", { className: styles$x.options, children: currentOptions.map(option => (jsxs("div", { className: `${styles$x.option} ${selectedValues.includes(option.value) ? styles$x.selected : ''}`, onClick: () => handleSelect(option.value), children: [multiselect && (jsx("span", { className: styles$x.checkbox, children: selectedValues.includes(option.value) && jsx(CheckIcon, {}) })), jsx("span", { className: styles$x.optionLabel, children: option.label })] }, option.value))) }), multiselect && (jsx("div", { className: styles$x.footer, children: jsx("button", { type: "button", className: styles$x.applyBtn, onClick: () => setIsOpen(false), children: "Apply" }) }))] }))] }));
1016
+ return (jsxs("div", { ref: dropdownRef, className: `${styles$C.container} ${className}`, children: [jsxs("button", { type: "button", className: `${styles$C.trigger} ${disabled ? styles$C.disabled : ''} ${isOpen ? styles$C.open : ''}`, onClick: () => !disabled && setIsOpen(!isOpen), children: [jsx("span", { className: `${styles$C.triggerText} ${selectedValues.length === 0 ? styles$C.placeholder : ''}`, children: getDisplayText() }), jsx("span", { className: styles$C.chevron, children: jsx(ChevronIcon$1, {}) })] }), isOpen && (jsxs("div", { className: styles$C.dropdown, style: { width }, children: [grouped && tabs.length > 0 && (jsx("div", { className: styles$C.tabs, children: tabs.map(tab => (jsx("button", { type: "button", className: `${styles$C.tab} ${activeTab === tab ? styles$C.activeTab : ''}`, onClick: () => setActiveTab(tab), children: tab.charAt(0).toUpperCase() + tab.slice(1) }, tab))) })), multiselect && (jsxs("div", { className: styles$C.actions, children: [jsx("button", { type: "button", className: styles$C.actionBtn, onClick: handleSelectAll, children: "Select All" }), jsx("button", { type: "button", className: styles$C.actionBtn, onClick: handleClear, children: "Clear" })] })), jsx("div", { className: styles$C.options, children: currentOptions.map(option => (jsxs("div", { className: `${styles$C.option} ${selectedValues.includes(option.value) ? styles$C.selected : ''}`, onClick: () => handleSelect(option.value), children: [multiselect && (jsx("span", { className: styles$C.checkbox, children: selectedValues.includes(option.value) && jsx(CheckIcon, {}) })), jsx("span", { className: styles$C.optionLabel, children: option.label })] }, option.value))) }), multiselect && (jsx("div", { className: styles$C.footer, children: jsx("button", { type: "button", className: styles$C.applyBtn, onClick: () => setIsOpen(false), children: "Apply" }) }))] }))] }));
979
1017
  };
980
1018
  SelectFilter.displayName = 'SelectFilter';
981
1019
 
982
- var styles$w = {"list":"ServiceToggle-module_list__bBts8","item":"ServiceToggle-module_item__4wEbQ","labelContainer":"ServiceToggle-module_labelContainer__oz-I1","clickable":"ServiceToggle-module_clickable__yzQxe","icon":"ServiceToggle-module_icon__8IdST","label":"ServiceToggle-module_label__J98Ve"};
1020
+ var styles$B = {"list":"ServiceToggle-module_list__bBts8","item":"ServiceToggle-module_item__4wEbQ","labelContainer":"ServiceToggle-module_labelContainer__oz-I1","clickable":"ServiceToggle-module_clickable__yzQxe","icon":"ServiceToggle-module_icon__8IdST","label":"ServiceToggle-module_label__J98Ve"};
983
1021
 
984
1022
  /**
985
1023
  * ServiceToggle component for a single service item.
@@ -992,32 +1030,56 @@ const ServiceToggle = ({ label, icon, hasToggle = true, enabled = false, onToggl
992
1030
  onClick();
993
1031
  }
994
1032
  };
995
- return (jsxs("div", { className: styles$w.item, children: [jsxs("div", { className: `${styles$w.labelContainer} ${isClickable ? styles$w.clickable : ''}`, onClick: handleClick, children: [icon && jsx("span", { className: styles$w.icon, children: icon }), jsx("span", { className: styles$w.label, children: label })] }), hasToggle && (jsx(Toggle, { checked: enabled, onChange: (checked) => onToggle?.(checked), disabled: disabled, size: "sm" }))] }));
1033
+ return (jsxs("div", { className: styles$B.item, children: [jsxs("div", { className: `${styles$B.labelContainer} ${isClickable ? styles$B.clickable : ''}`, onClick: handleClick, children: [icon && jsx("span", { className: styles$B.icon, children: icon }), jsx("span", { className: styles$B.label, children: label })] }), hasToggle && (jsx(Toggle, { checked: enabled, onChange: (checked) => onToggle?.(checked), disabled: disabled, size: "sm" }))] }));
996
1034
  };
997
1035
  /**
998
1036
  * ServiceToggleList component for displaying a list of services with toggles.
999
1037
  * Used in travel request forms for service selection (Air, Hotel, Ground, etc.)
1000
1038
  */
1001
1039
  const ServiceToggleList = ({ services, enabledServices = {}, onToggle, onClick, className, }) => {
1002
- return (jsx("div", { className: `${styles$w.list} ${className || ''}`, children: services.map((service) => (jsx(ServiceToggle, { serviceKey: service.key, label: service.label, icon: service.icon, hasToggle: service.hasToggle, enabled: enabledServices[service.key] ?? false, onToggle: (enabled) => onToggle?.(service.key, enabled), onClick: () => onClick?.(service.key) }, service.key))) }));
1040
+ return (jsx("div", { className: `${styles$B.list} ${className || ''}`, children: services.map((service) => (jsx(ServiceToggle, { serviceKey: service.key, label: service.label, icon: service.icon, hasToggle: service.hasToggle, enabled: enabledServices[service.key] ?? false, onToggle: (enabled) => onToggle?.(service.key, enabled), onClick: () => onClick?.(service.key) }, service.key))) }));
1003
1041
  };
1004
1042
  ServiceToggle.displayName = 'ServiceToggle';
1005
1043
  ServiceToggleList.displayName = 'ServiceToggleList';
1006
1044
 
1007
- var styles$v = {"header":"TeamHeader-module_header__3Zx1c","left":"TeamHeader-module_left__yqug2","backButton":"TeamHeader-module_backButton__MqElX","titles":"TeamHeader-module_titles__m3Ne9","pretitle":"TeamHeader-module_pretitle__rZUD6","title":"TeamHeader-module_title__i3dmZ","actions":"TeamHeader-module_actions__ft1DN"};
1045
+ var styles$A = {"toggle":"SupplierTypeToggle-module_toggle__x4pTJ","active":"SupplierTypeToggle-module_active__8BGSe"};
1046
+
1047
+ const SUPPLIER_TYPE_OPTIONS = [
1048
+ { value: 'A', label: 'Air' },
1049
+ { value: 'C', label: 'Car' },
1050
+ { value: 'H', label: 'Hotel' },
1051
+ ];
1052
+ const OPTIONS = [
1053
+ { value: '', label: 'All' },
1054
+ ...SUPPLIER_TYPE_OPTIONS,
1055
+ ];
1056
+ const SupplierTypeToggle = ({ value, defaultValue = '', onChange, disabled = false, className = '', }) => {
1057
+ const [internalValue, setInternalValue] = useState(defaultValue);
1058
+ const activeValue = value ?? internalValue;
1059
+ const handleSelect = (nextValue) => {
1060
+ if (disabled)
1061
+ return;
1062
+ if (value === undefined)
1063
+ setInternalValue(nextValue);
1064
+ onChange?.(nextValue);
1065
+ };
1066
+ return (jsx("div", { className: [styles$A.toggle, className].filter(Boolean).join(' '), role: "group", "aria-label": "Supplier type", children: OPTIONS.map((option) => (jsx("button", { type: "button", disabled: disabled, "aria-pressed": activeValue === option.value, className: activeValue === option.value ? styles$A.active : '', onClick: () => handleSelect(option.value), children: option.label }, option.value || 'all'))) }));
1067
+ };
1068
+
1069
+ var styles$z = {"header":"TeamHeader-module_header__3Zx1c","left":"TeamHeader-module_left__yqug2","backButton":"TeamHeader-module_backButton__MqElX","titles":"TeamHeader-module_titles__m3Ne9","pretitle":"TeamHeader-module_pretitle__rZUD6","title":"TeamHeader-module_title__i3dmZ","actions":"TeamHeader-module_actions__ft1DN","subMenu":"TeamHeader-module_subMenu__oL-3Q","activeTab":"TeamHeader-module_activeTab__AUzdq"};
1008
1070
 
1009
1071
  const BackIcon = () => (jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("line", { x1: "19", y1: "12", x2: "5", y2: "12" }), jsx("polyline", { points: "12 19 5 12 12 5" })] }));
1010
1072
  /**
1011
1073
  * TeamHeader - Header component for team management pages
1012
1074
  */
1013
- const TeamHeader = ({ teamCode, teamName, pretitle = 'Team Management', backHref, onBack, actions, className = '', }) => {
1075
+ const TeamHeader = ({ title: suppliedTitle, teamCode, teamName, pretitle = 'Team Management', backHref, onBack, actions, className = '', }) => {
1014
1076
  const headerClasses = [
1015
- styles$v.header,
1077
+ styles$z.header,
1016
1078
  className,
1017
1079
  ].filter(Boolean).join(' ');
1018
- const title = teamCode && teamName
1080
+ const title = suppliedTitle ?? (teamCode && teamName
1019
1081
  ? `${teamCode} - ${teamName}`
1020
- : teamName || teamCode || '';
1082
+ : teamName || teamCode || '');
1021
1083
  const handleBack = () => {
1022
1084
  if (onBack) {
1023
1085
  onBack();
@@ -1027,11 +1089,20 @@ const TeamHeader = ({ teamCode, teamName, pretitle = 'Team Management', backHref
1027
1089
  window.location.href = backHref;
1028
1090
  }
1029
1091
  };
1030
- return (jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$v.left, children: [(backHref || onBack) && (jsx("button", { type: "button", className: styles$v.backButton, onClick: handleBack, "aria-label": "Go back", children: jsx(BackIcon, {}) })), jsxs("div", { className: styles$v.titles, children: [pretitle && jsx("span", { className: styles$v.pretitle, children: pretitle }), title && jsx("h1", { className: styles$v.title, children: title })] })] }), actions && (jsx("div", { className: styles$v.actions, children: actions }))] }));
1092
+ return (jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$z.left, children: [(backHref || onBack) && (jsx("button", { type: "button", className: styles$z.backButton, onClick: handleBack, "aria-label": "Go back", children: jsx(BackIcon, {}) })), jsxs("div", { className: styles$z.titles, children: [pretitle && jsx("span", { className: styles$z.pretitle, children: pretitle }), jsxs("h1", { className: styles$z.title, children: [title, "\u00A0"] })] })] }), actions && (jsx("div", { className: styles$z.actions, children: actions }))] }));
1031
1093
  };
1094
+ const DEFAULT_TABS$1 = [
1095
+ { id: 'profile', label: 'Profile' },
1096
+ { id: 'roster', label: 'Roster' },
1097
+ { id: 'equipment', label: 'Equipment' },
1098
+ { id: 'user-access', label: 'User Access' },
1099
+ ];
1100
+ /** Router-agnostic counterpart of Hub's team-management submenu. */
1101
+ const TeamSubMenu = ({ tabs = DEFAULT_TABS$1, activeTab, onTabChange, className = '' }) => (jsx("nav", { className: [styles$z.subMenu, className].filter(Boolean).join(' '), "aria-label": "Team management sections", children: tabs.map((tab) => (jsx("button", { type: "button", className: activeTab === tab.id ? styles$z.activeTab : '', "aria-current": activeTab === tab.id ? 'page' : undefined, onClick: () => onTabChange?.(tab.id), children: tab.label }, tab.id))) }));
1032
1102
  TeamHeader.displayName = 'TeamHeader';
1103
+ TeamSubMenu.displayName = 'TeamSubMenu';
1033
1104
 
1034
- var styles$u = {"segment":"TripSegment-module_segment__jX-Nq","light":"TripSegment-module_light__hHSb3","dark":"TripSegment-module_dark__3Fuo7","empty":"TripSegment-module_empty__vmzg0","item":"TripSegment-module_item__S-RC1","itemHeader":"TripSegment-module_itemHeader__wFWMo","itemType":"TripSegment-module_itemType__NsDLe","itemName":"TripSegment-module_itemName__ysYsC","route":"TripSegment-module_route__Shyz0","location":"TripSegment-module_location__8VCMH","details":"TripSegment-module_details__4U4Km","dates":"TripSegment-module_dates__Wn4-k"};
1105
+ var styles$y = {"segment":"TripSegment-module_segment__jX-Nq","light":"TripSegment-module_light__hHSb3","dark":"TripSegment-module_dark__3Fuo7","empty":"TripSegment-module_empty__vmzg0","item":"TripSegment-module_item__S-RC1","itemHeader":"TripSegment-module_itemHeader__wFWMo","itemType":"TripSegment-module_itemType__NsDLe","itemName":"TripSegment-module_itemName__ysYsC","route":"TripSegment-module_route__Shyz0","location":"TripSegment-module_location__8VCMH","details":"TripSegment-module_details__4U4Km","dates":"TripSegment-module_dates__Wn4-k"};
1035
1106
 
1036
1107
  const PlaneIcon$3 = () => (jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("path", { d: "M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z" }) }));
1037
1108
  const BusIcon$2 = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("rect", { x: "4", y: "4", width: "16", height: "14", rx: "2" }), jsx("path", { d: "M8 6v6" }), jsx("path", { d: "M16 6v6" }), jsx("circle", { cx: "8", cy: "16", r: "1" }), jsx("circle", { cx: "16", cy: "16", r: "1" })] }));
@@ -1041,51 +1112,157 @@ const ArrowIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0
1041
1112
  * Base TripSegment component wrapper
1042
1113
  */
1043
1114
  const TripSegment = ({ type: _type, variant = 'light', className = '', children, }) => {
1044
- return (jsx("div", { className: `${styles$u.segment} ${styles$u[variant]} ${className}`, children: children }));
1115
+ return (jsx("div", { className: `${styles$y.segment} ${styles$y[variant]} ${className}`, children: children }));
1045
1116
  };
1046
1117
  /**
1047
1118
  * AirSegment component for displaying flight information
1048
1119
  */
1049
1120
  const AirSegment = ({ flights, variant = 'light', className = '', }) => {
1050
1121
  if (!flights || flights.length === 0) {
1051
- return (jsx(TripSegment, { type: "air", variant: variant, className: className, children: jsx("span", { className: styles$u.empty, children: "No flights" }) }));
1122
+ return (jsx(TripSegment, { type: "air", variant: variant, className: className, children: jsx("span", { className: styles$y.empty, children: "No flights" }) }));
1052
1123
  }
1053
- return (jsx(TripSegment, { type: "air", variant: variant, className: className, children: flights.map((flight, i) => (jsxs("div", { className: styles$u.item, children: [jsxs("div", { className: styles$u.itemHeader, children: [jsx(PlaneIcon$3, {}), jsx("span", { className: styles$u.itemType, children: flight.type === 'charter' ? 'Charter' : 'Commercial' })] }), jsxs("div", { className: styles$u.route, children: [jsx("span", { className: styles$u.location, children: flight.departure }), jsx(ArrowIcon, {}), jsx("span", { className: styles$u.location, children: flight.arrival })] }), jsxs("div", { className: styles$u.details, children: [jsx("span", { children: flight.departureDate }), flight.departureTime && jsx("span", { children: flight.departureTime })] }), flight.airline && (jsxs("div", { className: styles$u.details, children: [jsx("span", { children: flight.airline }), flight.flightNumber && jsxs("span", { children: ["#", flight.flightNumber] })] }))] }, i))) }));
1124
+ return (jsx(TripSegment, { type: "air", variant: variant, className: className, children: flights.map((flight, i) => (jsxs("div", { className: styles$y.item, children: [jsxs("div", { className: styles$y.itemHeader, children: [jsx(PlaneIcon$3, {}), jsx("span", { className: styles$y.itemType, children: flight.type === 'charter' ? 'Charter' : 'Commercial' })] }), jsxs("div", { className: styles$y.route, children: [jsx("span", { className: styles$y.location, children: flight.departure }), jsx(ArrowIcon, {}), jsx("span", { className: styles$y.location, children: flight.arrival })] }), jsxs("div", { className: styles$y.details, children: [jsx("span", { children: flight.departureDate }), flight.departureTime && jsx("span", { children: flight.departureTime })] }), flight.airline && (jsxs("div", { className: styles$y.details, children: [jsx("span", { children: flight.airline }), flight.flightNumber && jsxs("span", { children: ["#", flight.flightNumber] })] }))] }, i))) }));
1054
1125
  };
1055
1126
  /**
1056
1127
  * GroundSegment component for displaying ground transportation
1057
1128
  */
1058
1129
  const GroundSegment = ({ segments, variant = 'light', className = '', }) => {
1059
1130
  if (!segments || segments.length === 0) {
1060
- return (jsx(TripSegment, { type: "ground", variant: variant, className: className, children: jsx("span", { className: styles$u.empty, children: "No ground transportation" }) }));
1131
+ return (jsx(TripSegment, { type: "ground", variant: variant, className: className, children: jsx("span", { className: styles$y.empty, children: "No ground transportation" }) }));
1061
1132
  }
1062
- return (jsx(TripSegment, { type: "ground", variant: variant, className: className, children: segments.map((segment, i) => (jsxs("div", { className: styles$u.item, children: [jsxs("div", { className: styles$u.itemHeader, children: [jsx(BusIcon$2, {}), jsx("span", { className: styles$u.itemType, children: segment.type.charAt(0).toUpperCase() + segment.type.slice(1) })] }), jsxs("div", { className: styles$u.route, children: [jsx("span", { className: styles$u.location, children: segment.pickupLocation }), jsx(ArrowIcon, {}), jsx("span", { className: styles$u.location, children: segment.dropoffLocation })] }), jsxs("div", { className: styles$u.details, children: [jsx("span", { children: segment.pickupDate }), segment.pickupTime && jsx("span", { children: segment.pickupTime })] }), segment.company && (jsxs("div", { className: styles$u.details, children: [jsx("span", { children: segment.company }), segment.vehicleCount && jsxs("span", { children: [segment.vehicleCount, " vehicles"] })] }))] }, i))) }));
1133
+ return (jsx(TripSegment, { type: "ground", variant: variant, className: className, children: segments.map((segment, i) => (jsxs("div", { className: styles$y.item, children: [jsxs("div", { className: styles$y.itemHeader, children: [jsx(BusIcon$2, {}), jsx("span", { className: styles$y.itemType, children: segment.type.charAt(0).toUpperCase() + segment.type.slice(1) })] }), jsxs("div", { className: styles$y.route, children: [jsx("span", { className: styles$y.location, children: segment.pickupLocation }), jsx(ArrowIcon, {}), jsx("span", { className: styles$y.location, children: segment.dropoffLocation })] }), jsxs("div", { className: styles$y.details, children: [jsx("span", { children: segment.pickupDate }), segment.pickupTime && jsx("span", { children: segment.pickupTime })] }), segment.company && (jsxs("div", { className: styles$y.details, children: [jsx("span", { children: segment.company }), segment.vehicleCount && jsxs("span", { children: [segment.vehicleCount, " vehicles"] })] }))] }, i))) }));
1063
1134
  };
1064
1135
  /**
1065
1136
  * HotelSegment component for displaying hotel information
1066
1137
  */
1067
1138
  const HotelSegment = ({ hotels, variant = 'light', className = '', }) => {
1068
1139
  if (!hotels || hotels.length === 0) {
1069
- return (jsx(TripSegment, { type: "hotel", variant: variant, className: className, children: jsx("span", { className: styles$u.empty, children: "No hotels" }) }));
1140
+ return (jsx(TripSegment, { type: "hotel", variant: variant, className: className, children: jsx("span", { className: styles$y.empty, children: "No hotels" }) }));
1070
1141
  }
1071
- return (jsx(TripSegment, { type: "hotel", variant: variant, className: className, children: hotels.map((hotel, i) => (jsxs("div", { className: styles$u.item, children: [jsxs("div", { className: styles$u.itemHeader, children: [jsx(HotelIcon$3, {}), jsx("span", { className: styles$u.itemName, children: hotel.name })] }), hotel.city && (jsx("div", { className: styles$u.details, children: jsx("span", { children: hotel.city }) })), jsxs("div", { className: styles$u.dates, children: [jsx("span", { children: hotel.checkIn }), jsx("span", { children: "\u2013" }), jsx("span", { children: hotel.checkOut })] }), hotel.roomCount && (jsx("div", { className: styles$u.details, children: jsxs("span", { children: [hotel.roomCount, " rooms"] }) }))] }, i))) }));
1142
+ return (jsx(TripSegment, { type: "hotel", variant: variant, className: className, children: hotels.map((hotel, i) => (jsxs("div", { className: styles$y.item, children: [jsxs("div", { className: styles$y.itemHeader, children: [jsx(HotelIcon$3, {}), jsx("span", { className: styles$y.itemName, children: hotel.name })] }), hotel.city && (jsx("div", { className: styles$y.details, children: jsx("span", { children: hotel.city }) })), jsxs("div", { className: styles$y.dates, children: [jsx("span", { children: hotel.checkIn }), jsx("span", { children: "\u2013" }), jsx("span", { children: hotel.checkOut })] }), hotel.roomCount && (jsx("div", { className: styles$y.details, children: jsxs("span", { children: [hotel.roomCount, " rooms"] }) }))] }, i))) }));
1072
1143
  };
1073
1144
  TripSegment.displayName = 'TripSegment';
1074
1145
  AirSegment.displayName = 'AirSegment';
1075
1146
  GroundSegment.displayName = 'GroundSegment';
1076
1147
  HotelSegment.displayName = 'HotelSegment';
1077
1148
 
1078
- var styles$t = {"card":"Card-module_card__Ak6-W","default":"Card-module_default__e-M3H","bordered":"Card-module_bordered__pUL4k","elevated":"Card-module_elevated__8f-WS","interactive":"Card-module_interactive__6B4fH","padding-none":"Card-module_padding-none__c1qKN","padding-sm":"Card-module_padding-sm__Uejon","padding-md":"Card-module_padding-md__kR4F9","padding-lg":"Card-module_padding-lg__MleX9","header":"Card-module_header__NiVTV","headerContent":"Card-module_headerContent__LyJRB","title":"Card-module_title__3DN1v","subtitle":"Card-module_subtitle__gE5L-","actions":"Card-module_actions__gHmpq","body":"Card-module_body__BU4oo","footer":"Card-module_footer__zjjTd"};
1149
+ var styles$x = {"sidenav":"Sidenav-module_sidenav__9DKVg","expanded":"Sidenav-module_expanded__TfkMs","collapsed":"Sidenav-module_collapsed__xyLkg","toggle":"Sidenav-module_toggle__JCoZu","logoContainer":"Sidenav-module_logoContainer__lLl0-","nav":"Sidenav-module_nav__ZwGrU","navItem":"Sidenav-module_navItem__HhFpj","active":"Sidenav-module_active__-oHUp","icon":"Sidenav-module_icon__7XJWf","label":"Sidenav-module_label__DJDBw","footer":"Sidenav-module_footer__EgrDk"};
1150
+
1151
+ /**
1152
+ * Sidenav component for main navigation.
1153
+ * Supports expanded and collapsed states with icons and labels.
1154
+ */
1155
+ const Sidenav = ({ logo, logoCollapsed, items, activeKey, onItemClick, defaultExpanded = true, footer, className = '', ...props }) => {
1156
+ const [expanded, setExpanded] = useState(defaultExpanded);
1157
+ const classNames = [
1158
+ styles$x.sidenav,
1159
+ expanded ? styles$x.expanded : styles$x.collapsed,
1160
+ className,
1161
+ ]
1162
+ .filter(Boolean)
1163
+ .join(' ');
1164
+ const handleItemClick = (item) => {
1165
+ if (item.onClick) {
1166
+ item.onClick();
1167
+ }
1168
+ if (onItemClick) {
1169
+ onItemClick(item.key);
1170
+ }
1171
+ };
1172
+ return (jsxs("aside", { className: classNames, ...props, children: [jsx("button", { className: styles$x.toggle, onClick: () => setExpanded(!expanded), "aria-label": expanded ? 'Collapse sidebar' : 'Expand sidebar', children: expanded ? (jsx(ChevronLeftIcon, { size: 16 })) : (jsx(ChevronRightIcon$1, { size: 16 })) }), jsx("div", { className: styles$x.logoContainer, children: expanded ? logo : logoCollapsed || logo }), jsx("nav", { className: styles$x.nav, children: items.map((item) => {
1173
+ const isActive = item.key === activeKey;
1174
+ const itemClasses = [
1175
+ styles$x.navItem,
1176
+ isActive ? styles$x.active : '',
1177
+ ]
1178
+ .filter(Boolean)
1179
+ .join(' ');
1180
+ return (jsxs("button", { className: itemClasses, onClick: () => handleItemClick(item), "aria-current": isActive ? 'page' : undefined, title: !expanded ? item.label : undefined, children: [jsx("span", { className: styles$x.icon, children: item.icon }), expanded && jsx("span", { className: styles$x.label, children: item.label })] }, item.key));
1181
+ }) }), footer && jsx("div", { className: styles$x.footer, children: footer })] }));
1182
+ };
1183
+ Sidenav.displayName = 'Sidenav';
1184
+
1185
+ var styles$w = {"topbar":"Topbar-module_topbar__U9CDj","left":"Topbar-module_left__m4aap","accountWrapper":"Topbar-module_accountWrapper__5mjDZ","accountSelector":"Topbar-module_accountSelector__iqI--","open":"Topbar-module_open__2Xsp1","accountCode":"Topbar-module_accountCode__KMKWm","accountName":"Topbar-module_accountName__XZYjB","chevron":"Topbar-module_chevron__OSXcD","chevronOpen":"Topbar-module_chevronOpen__jVvEl","dropdown":"Topbar-module_dropdown__fA5Gw","dropdownSearch":"Topbar-module_dropdownSearch__9zqy3","searchIcon":"Topbar-module_searchIcon__sHGnK","searchInput":"Topbar-module_searchInput__1TSc3","dropdownList":"Topbar-module_dropdownList__P4q9b","dropdownItem":"Topbar-module_dropdownItem__w-eHf","selected":"Topbar-module_selected__MylKY","dropdownItemCode":"Topbar-module_dropdownItemCode__cUAn6","dropdownItemName":"Topbar-module_dropdownItemName__MYw3k","noResults":"Topbar-module_noResults__PkNfT","actions":"Topbar-module_actions__KtaiZ"};
1186
+
1187
+ /**
1188
+ * Topbar component for the main header.
1189
+ * Includes account selector with dropdown and action buttons.
1190
+ */
1191
+ const Topbar = ({ account, accounts, onAccountSelect, onAccountClick, actions, leftContent, className = '', ...props }) => {
1192
+ const [isOpen, setIsOpen] = useState(false);
1193
+ const [searchQuery, setSearchQuery] = useState('');
1194
+ const dropdownRef = useRef(null);
1195
+ const searchInputRef = useRef(null);
1196
+ const classNames = [styles$w.topbar, className].filter(Boolean).join(' ');
1197
+ // Close dropdown on outside click
1198
+ useEffect(() => {
1199
+ if (!isOpen)
1200
+ return;
1201
+ const handleClickOutside = (event) => {
1202
+ if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1203
+ setIsOpen(false);
1204
+ setSearchQuery('');
1205
+ }
1206
+ };
1207
+ const handleEscape = (event) => {
1208
+ if (event.key === 'Escape') {
1209
+ setIsOpen(false);
1210
+ setSearchQuery('');
1211
+ }
1212
+ };
1213
+ document.addEventListener('mousedown', handleClickOutside);
1214
+ document.addEventListener('keydown', handleEscape);
1215
+ return () => {
1216
+ document.removeEventListener('mousedown', handleClickOutside);
1217
+ document.removeEventListener('keydown', handleEscape);
1218
+ };
1219
+ }, [isOpen]);
1220
+ // Focus search input when dropdown opens
1221
+ useEffect(() => {
1222
+ if (isOpen && searchInputRef.current) {
1223
+ searchInputRef.current.focus();
1224
+ }
1225
+ }, [isOpen]);
1226
+ const handleToggle = () => {
1227
+ if (accounts && accounts.length > 0) {
1228
+ setIsOpen(!isOpen);
1229
+ if (!isOpen) {
1230
+ setSearchQuery('');
1231
+ }
1232
+ }
1233
+ else if (onAccountClick) {
1234
+ onAccountClick();
1235
+ }
1236
+ };
1237
+ const handleSelectAccount = (selectedAccount) => {
1238
+ onAccountSelect?.(selectedAccount);
1239
+ setIsOpen(false);
1240
+ setSearchQuery('');
1241
+ };
1242
+ const filteredAccounts = accounts?.filter(acc => acc.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
1243
+ acc.code.toLowerCase().includes(searchQuery.toLowerCase())) || [];
1244
+ const hasDropdown = accounts && accounts.length > 0;
1245
+ return (jsxs("header", { className: classNames, ...props, children: [jsxs("div", { className: styles$w.left, children: [leftContent, account && (jsxs("div", { className: styles$w.accountWrapper, ref: dropdownRef, children: [jsxs("button", { className: `${styles$w.accountSelector} ${isOpen ? styles$w.open : ''}`, onClick: handleToggle, "aria-expanded": isOpen, "aria-haspopup": hasDropdown ? 'listbox' : undefined, children: [jsx("span", { className: styles$w.accountCode, children: account.code }), jsx("span", { className: styles$w.accountName, children: account.name }), hasDropdown && (jsx(ChevronDownIcon$1, { size: 16, className: `${styles$w.chevron} ${isOpen ? styles$w.chevronOpen : ''}` }))] }), isOpen && hasDropdown && (jsxs("div", { className: styles$w.dropdown, role: "listbox", children: [jsxs("div", { className: styles$w.dropdownSearch, children: [jsxs("svg", { className: styles$w.searchIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }), jsx("input", { ref: searchInputRef, type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), placeholder: "Search accounts...", className: styles$w.searchInput })] }), jsx("div", { className: styles$w.dropdownList, children: filteredAccounts.length > 0 ? (filteredAccounts.map((acc) => (jsxs("button", { className: `${styles$w.dropdownItem} ${acc.code === account.code ? styles$w.selected : ''}`, onClick: () => handleSelectAccount(acc), role: "option", "aria-selected": acc.code === account.code, children: [jsx("span", { className: styles$w.dropdownItemCode, children: acc.code }), jsx("span", { className: styles$w.dropdownItemName, children: acc.name })] }, acc.code)))) : (jsx("div", { className: styles$w.noResults, children: "No accounts found" })) })] }))] }))] }), actions && jsx("div", { className: styles$w.actions, children: actions })] }));
1246
+ };
1247
+ Topbar.displayName = 'Topbar';
1248
+
1249
+ var styles$v = {"appLayout":"AppLayout-module_appLayout__NFbZk","mainArea":"AppLayout-module_mainArea__t-6oq","content":"AppLayout-module_content__5kV7S"};
1250
+
1251
+ const AppLayout = ({ navItems = [], activeNavKey, logo, collapsedLogo, account, defaultExpanded = true, onNavItemClick, onAccountClick, children, navFooter, topbarActions, className, }) => {
1252
+ return (jsxs("div", { className: `${styles$v.appLayout} ${className || ''}`, children: [jsx(Sidenav, { items: navItems, activeKey: activeNavKey, defaultExpanded: defaultExpanded, onItemClick: onNavItemClick, logo: logo, logoCollapsed: collapsedLogo, footer: navFooter }), jsxs("div", { className: styles$v.mainArea, children: [jsx(Topbar, { account: account, onAccountClick: onAccountClick, actions: topbarActions }), jsx("main", { className: styles$v.content, children: children })] })] }));
1253
+ };
1254
+
1255
+ var styles$u = {"card":"Card-module_card__Ak6-W","default":"Card-module_default__e-M3H","bordered":"Card-module_bordered__pUL4k","elevated":"Card-module_elevated__8f-WS","interactive":"Card-module_interactive__6B4fH","padding-none":"Card-module_padding-none__c1qKN","padding-sm":"Card-module_padding-sm__Uejon","padding-md":"Card-module_padding-md__kR4F9","padding-lg":"Card-module_padding-lg__MleX9","header":"Card-module_header__NiVTV","headerContent":"Card-module_headerContent__LyJRB","title":"Card-module_title__3DN1v","subtitle":"Card-module_subtitle__gE5L-","actions":"Card-module_actions__gHmpq","body":"Card-module_body__BU4oo","footer":"Card-module_footer__zjjTd"};
1079
1256
 
1080
1257
  /**
1081
1258
  * Card component for grouping related content.
1082
1259
  */
1083
1260
  const Card = forwardRef(({ variant = 'default', padding = 'md', interactive = false, className = '', children, ...props }, ref) => {
1084
1261
  const classNames = [
1085
- styles$t.card,
1086
- styles$t[variant],
1087
- styles$t[`padding-${padding}`],
1088
- interactive ? styles$t.interactive : '',
1262
+ styles$u.card,
1263
+ styles$u[variant],
1264
+ styles$u[`padding-${padding}`],
1265
+ interactive ? styles$u.interactive : '',
1089
1266
  className,
1090
1267
  ]
1091
1268
  .filter(Boolean)
@@ -1094,22 +1271,22 @@ const Card = forwardRef(({ variant = 'default', padding = 'md', interactive = fa
1094
1271
  });
1095
1272
  Card.displayName = 'Card';
1096
1273
  const CardHeader = ({ title, subtitle, actions, className = '', children, ...props }) => {
1097
- const classNames = [styles$t.header, className].filter(Boolean).join(' ');
1098
- return (jsxs("div", { className: classNames, ...props, children: [jsxs("div", { className: styles$t.headerContent, children: [title && jsx("h3", { className: styles$t.title, children: title }), subtitle && jsx("p", { className: styles$t.subtitle, children: subtitle }), children] }), actions && jsx("div", { className: styles$t.actions, children: actions })] }));
1274
+ const classNames = [styles$u.header, className].filter(Boolean).join(' ');
1275
+ return (jsxs("div", { className: classNames, ...props, children: [jsxs("div", { className: styles$u.headerContent, children: [title && jsx("h3", { className: styles$u.title, children: title }), subtitle && jsx("p", { className: styles$u.subtitle, children: subtitle }), children] }), actions && jsx("div", { className: styles$u.actions, children: actions })] }));
1099
1276
  };
1100
1277
  CardHeader.displayName = 'CardHeader';
1101
1278
  const CardBody = ({ className = '', children, ...props }) => {
1102
- const classNames = [styles$t.body, className].filter(Boolean).join(' ');
1279
+ const classNames = [styles$u.body, className].filter(Boolean).join(' ');
1103
1280
  return (jsx("div", { className: classNames, ...props, children: children }));
1104
1281
  };
1105
1282
  CardBody.displayName = 'CardBody';
1106
1283
  const CardFooter = ({ className = '', children, ...props }) => {
1107
- const classNames = [styles$t.footer, className].filter(Boolean).join(' ');
1284
+ const classNames = [styles$u.footer, className].filter(Boolean).join(' ');
1108
1285
  return (jsx("div", { className: classNames, ...props, children: children }));
1109
1286
  };
1110
1287
  CardFooter.displayName = 'CardFooter';
1111
1288
 
1112
- var styles$s = {"container":"ContactList-module_container__1kjze","alert":"ContactList-module_alert__KC0tz","card":"ContactList-module_card__TOyp2","header":"ContactList-module_header__QysLx","titleRow":"ContactList-module_titleRow__tUDMS","title":"ContactList-module_title__R-IOd","tooltip":"ContactList-module_tooltip__DDMka","list":"ContactList-module_list__6tjo-","contactItem":"ContactList-module_contactItem__4SoW-","contactInfo":"ContactList-module_contactInfo__6cQpi","contactName":"ContactList-module_contactName__z748K","badge":"ContactList-module_badge__USFpb","badgeSecondary":"ContactList-module_badgeSecondary__OSwqF","contactRole":"ContactList-module_contactRole__6kfuQ","contactDetails":"ContactList-module_contactDetails__ihY0M","contactLink":"ContactList-module_contactLink__sWGp9","contactPhone":"ContactList-module_contactPhone__dUn6z","contactActions":"ContactList-module_contactActions__6WT-z","actionButton":"ContactList-module_actionButton__aPnGZ","actionButtonDanger":"ContactList-module_actionButtonDanger__yRBz0","empty":"ContactList-module_empty__bRTDB","footer":"ContactList-module_footer__18gB-","addButton":"ContactList-module_addButton__STUhp"};
1289
+ var styles$t = {"container":"ContactList-module_container__1kjze","alert":"ContactList-module_alert__KC0tz","card":"ContactList-module_card__TOyp2","header":"ContactList-module_header__QysLx","titleRow":"ContactList-module_titleRow__tUDMS","title":"ContactList-module_title__R-IOd","tooltip":"ContactList-module_tooltip__DDMka","list":"ContactList-module_list__6tjo-","contactItem":"ContactList-module_contactItem__4SoW-","contactInfo":"ContactList-module_contactInfo__6cQpi","contactName":"ContactList-module_contactName__z748K","badge":"ContactList-module_badge__USFpb","badgeSecondary":"ContactList-module_badgeSecondary__OSwqF","contactRole":"ContactList-module_contactRole__6kfuQ","contactDetails":"ContactList-module_contactDetails__ihY0M","contactLink":"ContactList-module_contactLink__sWGp9","contactPhone":"ContactList-module_contactPhone__dUn6z","contactActions":"ContactList-module_contactActions__6WT-z","actionButton":"ContactList-module_actionButton__aPnGZ","actionButtonDanger":"ContactList-module_actionButtonDanger__yRBz0","empty":"ContactList-module_empty__bRTDB","footer":"ContactList-module_footer__18gB-","addButton":"ContactList-module_addButton__STUhp"};
1113
1290
 
1114
1291
  const InfoIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "12", cy: "12", r: "10" }), jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }), jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })] }));
1115
1292
  const EditIcon$1 = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }), jsx("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })] }));
@@ -1120,18 +1297,18 @@ const PlusIcon$1 = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0
1120
1297
  */
1121
1298
  const ContactList = ({ title = 'Contacts', tooltip, contacts, onEdit, onRemove, onAdd, showAdd = true, addLabel = 'Add Contact', alert, className = '', }) => {
1122
1299
  const listClasses = [
1123
- styles$s.container,
1300
+ styles$t.container,
1124
1301
  className,
1125
1302
  ].filter(Boolean).join(' ');
1126
- return (jsxs("div", { className: listClasses, children: [alert && (jsx("div", { className: styles$s.alert, children: alert })), jsxs("div", { className: styles$s.card, children: [jsx("div", { className: styles$s.header, children: jsxs("div", { className: styles$s.titleRow, children: [jsx("h3", { className: styles$s.title, children: title }), tooltip && (jsx("span", { className: styles$s.tooltip, children: jsx(InfoIcon, {}) }))] }) }), jsxs("div", { className: styles$s.list, children: [contacts.map((contact) => (jsxs("div", { className: styles$s.contactItem, children: [jsxs("div", { className: styles$s.contactInfo, children: [jsxs("div", { className: styles$s.contactName, children: [contact.name, contact.isPrimary && (jsx("span", { className: styles$s.badge, children: "Primary" })), contact.isSecondary && (jsx("span", { className: `${styles$s.badge} ${styles$s.badgeSecondary}`, children: "Secondary" }))] }), contact.role && (jsx("div", { className: styles$s.contactRole, children: contact.role })), jsxs("div", { className: styles$s.contactDetails, children: [contact.email && (jsx("a", { href: `mailto:${contact.email}`, className: styles$s.contactLink, children: contact.email })), contact.phone && (jsx("span", { className: styles$s.contactPhone, children: contact.phone }))] })] }), jsxs("div", { className: styles$s.contactActions, children: [onEdit && (jsx("button", { type: "button", className: styles$s.actionButton, onClick: () => onEdit(contact), "aria-label": "Edit contact", children: jsx(EditIcon$1, {}) })), onRemove && (jsx("button", { type: "button", className: `${styles$s.actionButton} ${styles$s.actionButtonDanger}`, onClick: () => onRemove(contact), "aria-label": "Remove contact", children: jsx(TrashIcon$1, {}) }))] })] }, contact.id))), contacts.length === 0 && (jsx("div", { className: styles$s.empty, children: "No contacts added" }))] }), showAdd && onAdd && (jsx("div", { className: styles$s.footer, children: jsxs("button", { type: "button", className: styles$s.addButton, onClick: onAdd, children: [jsx(PlusIcon$1, {}), addLabel] }) }))] })] }));
1303
+ return (jsxs("div", { className: listClasses, children: [alert && (jsx("div", { className: styles$t.alert, children: alert })), jsxs("div", { className: styles$t.card, children: [jsx("div", { className: styles$t.header, children: jsxs("div", { className: styles$t.titleRow, children: [jsx("h3", { className: styles$t.title, children: title }), tooltip && (jsx("span", { className: styles$t.tooltip, children: jsx(InfoIcon, {}) }))] }) }), jsxs("div", { className: styles$t.list, children: [contacts.map((contact) => (jsxs("div", { className: styles$t.contactItem, children: [jsxs("div", { className: styles$t.contactInfo, children: [jsxs("div", { className: styles$t.contactName, children: [contact.name, contact.isPrimary && (jsx("span", { className: styles$t.badge, children: "Primary" })), contact.isSecondary && (jsx("span", { className: `${styles$t.badge} ${styles$t.badgeSecondary}`, children: "Secondary" }))] }), contact.role && (jsx("div", { className: styles$t.contactRole, children: contact.role })), jsxs("div", { className: styles$t.contactDetails, children: [contact.email && (jsx("a", { href: `mailto:${contact.email}`, className: styles$t.contactLink, children: contact.email })), contact.phone && (jsx("span", { className: styles$t.contactPhone, children: contact.phone }))] })] }), jsxs("div", { className: styles$t.contactActions, children: [onEdit && (jsx("button", { type: "button", className: styles$t.actionButton, onClick: () => onEdit(contact), "aria-label": "Edit contact", children: jsx(EditIcon$1, {}) })), onRemove && (jsx("button", { type: "button", className: `${styles$t.actionButton} ${styles$t.actionButtonDanger}`, onClick: () => onRemove(contact), "aria-label": "Remove contact", children: jsx(TrashIcon$1, {}) }))] })] }, contact.id))), contacts.length === 0 && (jsx("div", { className: styles$t.empty, children: "No contacts added" }))] }), showAdd && onAdd && (jsx("div", { className: styles$t.footer, children: jsxs("button", { type: "button", className: styles$t.addButton, onClick: onAdd, children: [jsx(PlusIcon$1, {}), addLabel] }) }))] })] }));
1127
1304
  };
1128
1305
  ContactList.displayName = 'ContactList';
1129
1306
 
1130
- var styles$r = {"container":"Drawer-module_container__hXuOY","backdrop":"Drawer-module_backdrop__MIipQ","fadeIn":"Drawer-module_fadeIn__QsuvQ","backdropOpen":"Drawer-module_backdropOpen__YpH--","drawer":"Drawer-module_drawer__EHbbs","right":"Drawer-module_right__x6P6Q","drawerOpen":"Drawer-module_drawerOpen__KTgFg","left":"Drawer-module_left__aVF9t","top":"Drawer-module_top__wuvhi","bottom":"Drawer-module_bottom__rt-VZ","sizeSm":"Drawer-module_sizeSm__LFrm3","sizeMd":"Drawer-module_sizeMd__A1QTQ","sizeLg":"Drawer-module_sizeLg__6laD8","sizeXl":"Drawer-module_sizeXl__FY9mZ","sizeFull":"Drawer-module_sizeFull__BGQ1q","header":"Drawer-module_header__MpR14","headerContent":"Drawer-module_headerContent__dFcLH","title":"Drawer-module_title__0AmOX","closeButton":"Drawer-module_closeButton__VuXsE","body":"Drawer-module_body__GLUGo","footer":"Drawer-module_footer__K5ekS"};
1307
+ var styles$s = {"container":"Drawer-module_container__hXuOY","backdrop":"Drawer-module_backdrop__MIipQ","fadeIn":"Drawer-module_fadeIn__QsuvQ","backdropOpen":"Drawer-module_backdropOpen__YpH--","drawer":"Drawer-module_drawer__EHbbs","right":"Drawer-module_right__x6P6Q","drawerOpen":"Drawer-module_drawerOpen__KTgFg","left":"Drawer-module_left__aVF9t","top":"Drawer-module_top__wuvhi","bottom":"Drawer-module_bottom__rt-VZ","sizeSm":"Drawer-module_sizeSm__LFrm3","sizeMd":"Drawer-module_sizeMd__A1QTQ","sizeLg":"Drawer-module_sizeLg__6laD8","sizeXl":"Drawer-module_sizeXl__FY9mZ","sizeFull":"Drawer-module_sizeFull__BGQ1q","header":"Drawer-module_header__MpR14","headerContent":"Drawer-module_headerContent__dFcLH","title":"Drawer-module_title__0AmOX","closeButton":"Drawer-module_closeButton__VuXsE","body":"Drawer-module_body__GLUGo","footer":"Drawer-module_footer__K5ekS"};
1131
1308
 
1132
- const DrawerHeader = ({ title, children, showClose = true, onClose, className = '', }) => (jsxs("div", { className: `${styles$r.header} ${className}`, children: [jsxs("div", { className: styles$r.headerContent, children: [title && jsx("h2", { className: styles$r.title, children: title }), children] }), showClose && (jsx("button", { type: "button", className: styles$r.closeButton, onClick: onClose, "aria-label": "Close drawer", children: jsx("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }))] }));
1133
- const DrawerBody = ({ children, className = '' }) => (jsx("div", { className: `${styles$r.body} ${className}`, children: children }));
1134
- const DrawerFooter = ({ children, className = '' }) => (jsx("div", { className: `${styles$r.footer} ${className}`, children: children }));
1309
+ const DrawerHeader = ({ title, children, showClose = true, onClose, className = '', }) => (jsxs("div", { className: `${styles$s.header} ${className}`, children: [jsxs("div", { className: styles$s.headerContent, children: [title && jsx("h2", { className: styles$s.title, children: title }), children] }), showClose && (jsx("button", { type: "button", className: styles$s.closeButton, onClick: onClose, "aria-label": "Close drawer", children: jsx("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }))] }));
1310
+ const DrawerBody = ({ children, className = '' }) => (jsx("div", { className: `${styles$s.body} ${className}`, children: children }));
1311
+ const DrawerFooter = ({ children, className = '' }) => (jsx("div", { className: `${styles$s.footer} ${className}`, children: children }));
1135
1312
  const Drawer = ({ isOpen, onClose, position = 'right', size = 'md', children, closeOnBackdropClick = true, closeOnEscape = true, showBackdrop = true, className = '', }) => {
1136
1313
  const handleEscape = useCallback((e) => {
1137
1314
  if (closeOnEscape && e.key === 'Escape') {
@@ -1155,7 +1332,7 @@ const Drawer = ({ isOpen, onClose, position = 'right', size = 'md', children, cl
1155
1332
  };
1156
1333
  if (!isOpen)
1157
1334
  return null;
1158
- return (jsxs("div", { className: styles$r.container, children: [showBackdrop && (jsx("div", { className: `${styles$r.backdrop} ${isOpen ? styles$r.backdropOpen : ''}`, onClick: handleBackdropClick })), jsx("div", { className: `${styles$r.drawer} ${styles$r[position]} ${styles$r[`size${size.charAt(0).toUpperCase()}${size.slice(1)}`]} ${isOpen ? styles$r.drawerOpen : ''} ${className}`, role: "dialog", "aria-modal": "true", children: React.Children.map(children, (child) => {
1335
+ return (jsxs("div", { className: styles$s.container, children: [showBackdrop && (jsx("div", { className: `${styles$s.backdrop} ${isOpen ? styles$s.backdropOpen : ''}`, onClick: handleBackdropClick })), jsx("div", { className: `${styles$s.drawer} ${styles$s[position]} ${styles$s[`size${size.charAt(0).toUpperCase()}${size.slice(1)}`]} ${isOpen ? styles$s.drawerOpen : ''} ${className}`, role: "dialog", "aria-modal": "true", children: React.Children.map(children, (child) => {
1159
1336
  if (React.isValidElement(child) && child.type === DrawerHeader) {
1160
1337
  return React.cloneElement(child, {
1161
1338
  onClose,
@@ -1168,6 +1345,37 @@ Drawer.Header = DrawerHeader;
1168
1345
  Drawer.Body = DrawerBody;
1169
1346
  Drawer.Footer = DrawerFooter;
1170
1347
 
1348
+ var styles$r = {"drawer":"DueDatesDrawer-module_drawer__TqC4Q","open":"DueDatesDrawer-module_open__Yblf3","body":"DueDatesDrawer-module_body__OwwF-","search":"DueDatesDrawer-module_search__g7-Rl","cards":"DueDatesDrawer-module_cards__bFG90","empty":"DueDatesDrawer-module_empty__K2ULN","card":"DueDatesDrawer-module_card__4Os-5","cardTitle":"DueDatesDrawer-module_cardTitle__fU-cP","status":"DueDatesDrawer-module_status__dXifz","completed":"DueDatesDrawer-module_completed__jWoYi","pastDue":"DueDatesDrawer-module_pastDue__TSikC","tags":"DueDatesDrawer-module_tags__8P87y","completion":"DueDatesDrawer-module_completion__mIrWm"};
1349
+
1350
+ const isTravelDueDateCompleted = (item) => item.status.trim().toLowerCase() === 'completed' || !!item.completeddatetime;
1351
+ const parseLocalDate$1 = (value) => {
1352
+ const iso = value.match(/^(\d{4})-(\d{2})-(\d{2})/);
1353
+ if (iso)
1354
+ return new Date(Number(iso[1]), Number(iso[2]) - 1, Number(iso[3]));
1355
+ const date = new Date(value.replace('+0000', ' GMT'));
1356
+ return Number.isNaN(date.getTime()) ? null : date;
1357
+ };
1358
+ const formatDate$2 = (value, options) => parseLocalDate$1(value)?.toLocaleDateString('en-US', options) ?? 'Invalid Date';
1359
+ const sportColor = (code) => code.toUpperCase().startsWith('W') ? '#FFA99A' : code.toUpperCase().startsWith('X') ? '#D1C1C3' : '#8AC6D9';
1360
+ const DueDateCard = ({ item, onToggle, onTaskClick }) => {
1361
+ const completed = isTravelDueDateCompleted(item);
1362
+ const dueDate = parseLocalDate$1(item.duedate);
1363
+ const pastDue = !!dueDate && dueDate < new Date() && !completed;
1364
+ return (jsxs("article", { className: styles$r.card, children: [jsxs("div", { className: styles$r.cardTitle, children: [jsx("button", { type: "button", "aria-label": `${completed ? 'Reopen' : 'Complete'} ${item.tasktitle}`, className: [styles$r.status, completed ? styles$r.completed : pastDue ? styles$r.pastDue : ''].filter(Boolean).join(' '), onClick: () => onToggle?.(item), children: completed ? jsx(CheckIcon$2, { size: 12 }) : null }), jsx("h5", { children: item.tasktitle })] }), item.description && jsx("p", { children: item.description }), jsxs("div", { className: styles$r.tags, children: [jsx("span", { style: { backgroundColor: sportColor(item.sportCode) }, children: item.sportCode }), jsx("button", { type: "button", disabled: !item.masterTripGUID || !onTaskClick, onClick: () => item.masterTripGUID && onTaskClick?.(item.masterTripGUID), children: item.tripName })] }), completed && item.completeddatetime && jsxs("div", { className: styles$r.completion, children: [jsx(CheckIcon$2, { size: 14 }), jsxs("span", { children: [jsx("em", { children: "on" }), " ", formatDate$2(item.completeddatetime, { month: 'numeric', day: 'numeric', year: '2-digit' }), " ", jsx("em", { children: "by" }), " ", item.completedby] })] })] }));
1365
+ };
1366
+ /** Hub's searchable, status-aware due-dates drawer. */
1367
+ const DueDatesDrawer = ({ isOpen, dueDates, selectedDate, selectedTrip, onClose, onToggle, onTaskClick, className = '' }) => {
1368
+ const [search, setSearch] = useState('');
1369
+ const filtered = useMemo(() => Object.fromEntries(Object.entries(dueDates).flatMap(([date, items]) => {
1370
+ if (selectedDate && date !== selectedDate)
1371
+ return [];
1372
+ const normalized = search.trim().toLowerCase();
1373
+ const matches = items.filter((item) => (!selectedTrip || item.masterTripGUID === String(selectedTrip)) && (!normalized || item.tasktitle.toLowerCase().includes(normalized) || item.sportCode.toLowerCase().includes(normalized) || item.description.toLowerCase().includes(normalized)));
1374
+ return matches.length ? [[date, matches]] : [];
1375
+ })), [dueDates, search, selectedDate, selectedTrip]);
1376
+ return (jsxs("aside", { className: [styles$r.drawer, isOpen ? styles$r.open : '', className].filter(Boolean).join(' '), "aria-hidden": !isOpen, "aria-label": "Due Dates", children: [jsxs("header", { children: [jsx("h3", { children: "Due Dates" }), jsx("button", { type: "button", "aria-label": "Close due dates", onClick: onClose, children: jsx(CloseIcon, { size: 24 }) })] }), jsxs("div", { className: styles$r.body, children: [jsxs("label", { className: styles$r.search, children: [jsx(SearchIcon$1, { size: 16 }), jsx("input", { type: "search", placeholder: "Search", value: search, onChange: (event) => setSearch(event.target.value) })] }), !Object.keys(filtered).length ? jsx("div", { className: styles$r.empty, children: "No due dates found." }) : Object.entries(filtered).map(([date, items]) => (jsxs("section", { children: [jsx("h4", { children: formatDate$2(date, { month: 'long', day: 'numeric', year: 'numeric' }) }), jsx("div", { className: styles$r.cards, children: items.map((item) => jsx(DueDateCard, { item: item, onToggle: onToggle, onTaskClick: onTaskClick }, `${date}-${item.taskid}`)) })] }, date)))] })] }));
1377
+ };
1378
+
1171
1379
  var styles$q = {"container":"MembershipPrograms-module_container__qsGZu","loading":"MembershipPrograms-module_loading__tjDtr","alert":"MembershipPrograms-module_alert__GZc0f","header":"MembershipPrograms-module_header__ywXOE","title":"MembershipPrograms-module_title__WZGyt","addButton":"MembershipPrograms-module_addButton__rNlNb","empty":"MembershipPrograms-module_empty__pYrHW","list":"MembershipPrograms-module_list__8A9MG","group":"MembershipPrograms-module_group__v1Vc6","groupHeader":"MembershipPrograms-module_groupHeader__I5KJO","groupIcon":"MembershipPrograms-module_groupIcon__e1LIq","groupLabel":"MembershipPrograms-module_groupLabel__Wqift","programs":"MembershipPrograms-module_programs__hxHXQ","program":"MembershipPrograms-module_program__S3HTM","programInfo":"MembershipPrograms-module_programInfo__RJruG","programProvider":"MembershipPrograms-module_programProvider__c7enz","programName":"MembershipPrograms-module_programName__TN42s","programNumber":"MembershipPrograms-module_programNumber__GKav4","programStatus":"MembershipPrograms-module_programStatus__2imvX","programActions":"MembershipPrograms-module_programActions__36LkY","actionButton":"MembershipPrograms-module_actionButton__y-GI4","removeButton":"MembershipPrograms-module_removeButton__cTTuZ"};
1172
1380
 
1173
1381
  const PlaneIcon$2 = () => (jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: jsx("path", { d: "M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z" }) }));
@@ -1381,41 +1589,33 @@ const RequestSummary = ({ sections, values, enabledSections = {}, submissionInfo
1381
1589
  };
1382
1590
  RequestSummary.displayName = 'RequestSummary';
1383
1591
 
1384
- var styles$j = {"sidenav":"Sidenav-module_sidenav__9DKVg","expanded":"Sidenav-module_expanded__TfkMs","collapsed":"Sidenav-module_collapsed__xyLkg","toggle":"Sidenav-module_toggle__JCoZu","logoContainer":"Sidenav-module_logoContainer__lLl0-","nav":"Sidenav-module_nav__ZwGrU","navItem":"Sidenav-module_navItem__HhFpj","active":"Sidenav-module_active__-oHUp","icon":"Sidenav-module_icon__7XJWf","label":"Sidenav-module_label__DJDBw","footer":"Sidenav-module_footer__EgrDk"};
1592
+ var styles$j = {"layout":"RequestFormLayout-module_layout__R-vaM","header":"RequestFormLayout-module_header__705In","headerContent":"RequestFormLayout-module_headerContent__Uu0br","headerTitle":"RequestFormLayout-module_headerTitle__W-fub","pagination":"RequestFormLayout-module_pagination__hTpNr","separator":"RequestFormLayout-module_separator__BgEsp","eventName":"RequestFormLayout-module_eventName__1zpgS","headerRight":"RequestFormLayout-module_headerRight__VjjY3","body":"RequestFormLayout-module_body__RBH8O","sidebar":"RequestFormLayout-module_sidebar__Ozr7m","showOnMobile":"RequestFormLayout-module_showOnMobile__kyyER","sidebarContent":"RequestFormLayout-module_sidebarContent__IdoMX","main":"RequestFormLayout-module_main__132ss","mainContent":"RequestFormLayout-module_mainContent__vnp1R","summarySidebar":"RequestFormLayout-module_summarySidebar__Vfg-z","summaryContent":"RequestFormLayout-module_summaryContent__Oppnd","footer":"RequestFormLayout-module_footer__yxDM5","footerContent":"RequestFormLayout-module_footerContent__GmTkE","button":"RequestFormLayout-module_button__-iWUv","primary":"RequestFormLayout-module_primary__cs2Fb","secondary":"RequestFormLayout-module_secondary__9WNRX"};
1385
1593
 
1386
1594
  /**
1387
- * Sidenav component for main navigation.
1388
- * Supports expanded and collapsed states with icons and labels.
1595
+ * RequestFormHeader component for the fixed header in travel request forms.
1389
1596
  */
1390
- const Sidenav = ({ logo, logoCollapsed, items, activeKey, onItemClick, defaultExpanded = true, footer, className = '', ...props }) => {
1391
- const [expanded, setExpanded] = useState(defaultExpanded);
1392
- const classNames = [
1393
- styles$j.sidenav,
1394
- expanded ? styles$j.expanded : styles$j.collapsed,
1395
- className,
1396
- ]
1397
- .filter(Boolean)
1398
- .join(' ');
1399
- const handleItemClick = (item) => {
1400
- if (item.onClick) {
1401
- item.onClick();
1402
- }
1403
- if (onItemClick) {
1404
- onItemClick(item.key);
1405
- }
1406
- };
1407
- return (jsxs("aside", { className: classNames, ...props, children: [jsx("button", { className: styles$j.toggle, onClick: () => setExpanded(!expanded), "aria-label": expanded ? 'Collapse sidebar' : 'Expand sidebar', children: expanded ? (jsx(ChevronLeftIcon, { size: 16 })) : (jsx(ChevronRightIcon$1, { size: 16 })) }), jsx("div", { className: styles$j.logoContainer, children: expanded ? logo : logoCollapsed || logo }), jsx("nav", { className: styles$j.nav, children: items.map((item) => {
1408
- const isActive = item.key === activeKey;
1409
- const itemClasses = [
1410
- styles$j.navItem,
1411
- isActive ? styles$j.active : '',
1412
- ]
1413
- .filter(Boolean)
1414
- .join(' ');
1415
- return (jsxs("button", { className: itemClasses, onClick: () => handleItemClick(item), "aria-current": isActive ? 'page' : undefined, title: !expanded ? item.label : undefined, children: [jsx("span", { className: styles$j.icon, children: item.icon }), expanded && jsx("span", { className: styles$j.label, children: item.label })] }, item.key));
1416
- }) }), footer && jsx("div", { className: styles$j.footer, children: footer })] }));
1597
+ const RequestFormHeader = ({ title, currentPage, totalPages, eventName, rightContent, className, }) => {
1598
+ const showPagination = currentPage !== undefined && totalPages !== undefined && totalPages > 1;
1599
+ return (jsx("header", { className: `${styles$j.header} ${className || ''}`, children: jsxs("div", { className: styles$j.headerContent, children: [jsxs("h1", { className: styles$j.headerTitle, children: [title, showPagination && (jsxs("span", { className: styles$j.pagination, children: ["(", currentPage, "/", totalPages, ")"] })), eventName && (jsxs(Fragment, { children: [jsx("span", { className: styles$j.separator, children: "\u2013" }), jsx("span", { className: styles$j.eventName, children: eventName })] }))] }), rightContent && jsx("div", { className: styles$j.headerRight, children: rightContent })] }) }));
1417
1600
  };
1418
- Sidenav.displayName = 'Sidenav';
1601
+ /**
1602
+ * RequestFormFooter component for the fixed footer with navigation buttons.
1603
+ */
1604
+ const RequestFormFooter = ({ onPrevious, onNext, isFirstPage = false, isLastPage = false, isSubmitting = false, previousText, nextText, className, }) => {
1605
+ const prevLabel = previousText || (isFirstPage ? 'Cancel' : 'Previous');
1606
+ const nextLabel = nextText || (isLastPage ? 'Submit' : 'Next');
1607
+ return (jsx("footer", { className: `${styles$j.footer} ${className || ''}`, children: jsxs("div", { className: styles$j.footerContent, children: [jsx("button", { type: "button", className: `${styles$j.button} ${styles$j.secondary}`, onClick: onPrevious, disabled: isSubmitting, children: prevLabel }), jsx("button", { type: "button", className: `${styles$j.button} ${styles$j.primary}`, onClick: onNext, disabled: isSubmitting, children: isSubmitting ? 'Submitting...' : nextLabel })] }) }));
1608
+ };
1609
+ /**
1610
+ * RequestFormLayout organism for travel request forms.
1611
+ * Provides a three-column layout with fixed header and footer.
1612
+ */
1613
+ const RequestFormLayout = ({ header, sidebar, children, summary, footer, className, showSidebarOnMobile = false, }) => {
1614
+ return (jsxs("div", { className: `${styles$j.layout} ${className || ''}`, children: [header, jsxs("div", { className: styles$j.body, children: [sidebar && (jsx("aside", { className: `${styles$j.sidebar} ${showSidebarOnMobile ? styles$j.showOnMobile : ''}`, children: jsx("div", { className: styles$j.sidebarContent, children: sidebar }) })), jsx("main", { className: styles$j.main, children: jsx("div", { className: styles$j.mainContent, children: children }) }), summary && (jsx("aside", { className: styles$j.summarySidebar, children: jsx("div", { className: styles$j.summaryContent, children: summary }) }))] }), footer] }));
1615
+ };
1616
+ RequestFormLayout.displayName = 'RequestFormLayout';
1617
+ RequestFormHeader.displayName = 'RequestFormHeader';
1618
+ RequestFormFooter.displayName = 'RequestFormFooter';
1419
1619
 
1420
1620
  var styles$i = {"wrapper":"Table-module_wrapper__1klo5","table":"Table-module_table__fkuUB","header":"Table-module_header__vRy6j","headerCell":"Table-module_headerCell__2KzYn","headerContent":"Table-module_headerContent__HPl8-","sortable":"Table-module_sortable__NiS6E","sortIcon":"Table-module_sortIcon__Fy6z7","body":"Table-module_body__Wt52U","row":"Table-module_row__4GEgX","cell":"Table-module_cell__Xr-7H","alignLeft":"Table-module_alignLeft__FtI9E","alignCenter":"Table-module_alignCenter__p8Tr8","alignRight":"Table-module_alignRight__Ca7Yr","bordered":"Table-module_bordered__9bM3L","striped":"Table-module_striped__6TMF-","hoverable":"Table-module_hoverable__KN5Fp","compact":"Table-module_compact__opzS-","clickable":"Table-module_clickable__2ummV","loading":"Table-module_loading__tFELE","empty":"Table-module_empty__urRiw","pulse":"Table-module_pulse__t32v9"};
1421
1621
 
@@ -1460,7 +1660,7 @@ const Table = ({ columns, data, rowKey = 'id', bordered = false, striped = false
1460
1660
  : row[column.key] }, column.key))) }, getRowKey(row, rowIndex))))) })] }) }));
1461
1661
  };
1462
1662
 
1463
- var styles$h = {"card":"TeamCard-module_card__R2u4q","header":"TeamCard-module_header__XXRUp","icon":"TeamCard-module_icon__l2Go2","title":"TeamCard-module_title__llL8V","tabs":"TeamCard-module_tabs__SJ7t-","tab":"TeamCard-module_tab__Q5j3C","tabActive":"TeamCard-module_tabActive__dUPwX","list":"TeamCard-module_list__a734u","teamItem":"TeamCard-module_teamItem__OYVIK","teamName":"TeamCard-module_teamName__-Bds2","chevron":"TeamCard-module_chevron__zBxM6","teamCode":"TeamCard-module_teamCode__BHB63","empty":"TeamCard-module_empty__8b5hb"};
1663
+ var styles$h = {"card":"TeamCard-module_card__R2u4q","header":"TeamCard-module_header__XXRUp","icon":"TeamCard-module_icon__l2Go2","title":"TeamCard-module_title__llL8V","body":"TeamCard-module_body__OoVMW","tabs":"TeamCard-module_tabs__SJ7t-","tab":"TeamCard-module_tab__Q5j3C","tabActive":"TeamCard-module_tabActive__dUPwX","list":"TeamCard-module_list__a734u","teamItem":"TeamCard-module_teamItem__OYVIK","teamCode":"TeamCard-module_teamCode__BHB63","teamName":"TeamCard-module_teamName__-Bds2","chevron":"TeamCard-module_chevron__zBxM6","empty":"TeamCard-module_empty__8b5hb"};
1464
1664
 
1465
1665
  const TEAM_GROUPS = [
1466
1666
  { label: 'All', key: undefined },
@@ -1472,13 +1672,13 @@ const getTeamColor = (code) => {
1472
1672
  const firstChar = code.charAt(0).toUpperCase();
1473
1673
  switch (firstChar) {
1474
1674
  case 'M':
1475
- return 'var(--color-blue-100)';
1675
+ return '#8AC6D9';
1476
1676
  case 'W':
1477
- return 'var(--color-pink-100)';
1677
+ return '#FFA99A';
1478
1678
  case 'X':
1479
- return 'var(--color-purple-100)';
1679
+ return '#D1C1C3';
1480
1680
  default:
1481
- return 'var(--color-gray-100)';
1681
+ return '#8AC6D9';
1482
1682
  }
1483
1683
  };
1484
1684
  const UsersIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }), jsx("circle", { cx: "9", cy: "7", r: "4" }), jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }), jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })] }));
@@ -1497,90 +1697,119 @@ const TeamCard = ({ title = 'Administer Teams', icon, teams, onTeamSelect, class
1497
1697
  styles$h.card,
1498
1698
  className,
1499
1699
  ].filter(Boolean).join(' ');
1500
- return (jsxs("div", { className: cardClasses, children: [jsxs("div", { className: styles$h.header, children: [jsx("span", { className: styles$h.icon, children: icon || jsx(UsersIcon, {}) }), jsx("h3", { className: styles$h.title, children: title })] }), jsx("div", { className: styles$h.tabs, children: TEAM_GROUPS.map(({ label, key }) => (jsx("button", { type: "button", onClick: () => setActiveTab(key), className: `${styles$h.tab} ${activeTab === key ? styles$h.tabActive : ''}`, children: label }, label))) }), jsxs("div", { className: styles$h.list, children: [filteredTeams.map((team) => (jsxs("button", { type: "button", className: styles$h.teamItem, onClick: () => onTeamSelect?.(team), children: [jsx("span", { className: styles$h.teamCode, style: { backgroundColor: getTeamColor(team.code) }, children: team.code }), jsx("span", { className: styles$h.teamName, children: team.description }), jsx("span", { className: styles$h.chevron, children: jsx(ChevronRightIcon, {}) })] }, team.id))), filteredTeams.length === 0 && (jsx("div", { className: styles$h.empty, children: "No teams found" }))] })] }));
1700
+ return (jsxs("div", { className: cardClasses, children: [jsxs("div", { className: styles$h.header, children: [jsx("span", { className: styles$h.icon, children: icon || jsx(UsersIcon, {}) }), jsx("h3", { className: styles$h.title, children: title })] }), jsxs("div", { className: styles$h.body, children: [jsx("div", { className: styles$h.tabs, children: TEAM_GROUPS.map(({ label, key }) => (jsx("button", { type: "button", onClick: () => setActiveTab(key), className: `${styles$h.tab} ${activeTab === key ? styles$h.tabActive : ''}`, children: label }, label))) }), jsxs("div", { className: styles$h.list, children: [filteredTeams.map((team) => (jsxs("button", { type: "button", className: styles$h.teamItem, onClick: () => onTeamSelect?.(team), children: [jsx("span", { className: styles$h.teamCode, style: { backgroundColor: getTeamColor(team.code) }, children: team.code }), jsx("span", { className: styles$h.teamName, children: team.description }), jsx("span", { className: styles$h.chevron, children: jsx(ChevronRightIcon, {}) })] }, team.id))), filteredTeams.length === 0 && (jsx("div", { className: styles$h.empty, children: "No teams found" }))] })] })] }));
1501
1701
  };
1502
1702
  TeamCard.displayName = 'TeamCard';
1503
1703
 
1504
- var styles$g = {"topbar":"Topbar-module_topbar__U9CDj","left":"Topbar-module_left__m4aap","accountWrapper":"Topbar-module_accountWrapper__5mjDZ","accountSelector":"Topbar-module_accountSelector__iqI--","open":"Topbar-module_open__2Xsp1","accountCode":"Topbar-module_accountCode__KMKWm","accountName":"Topbar-module_accountName__XZYjB","chevron":"Topbar-module_chevron__OSXcD","chevronOpen":"Topbar-module_chevronOpen__jVvEl","dropdown":"Topbar-module_dropdown__fA5Gw","dropdownSearch":"Topbar-module_dropdownSearch__9zqy3","searchIcon":"Topbar-module_searchIcon__sHGnK","searchInput":"Topbar-module_searchInput__1TSc3","dropdownList":"Topbar-module_dropdownList__P4q9b","dropdownItem":"Topbar-module_dropdownItem__w-eHf","selected":"Topbar-module_selected__MylKY","dropdownItemCode":"Topbar-module_dropdownItemCode__cUAn6","dropdownItemName":"Topbar-module_dropdownItemName__MYw3k","noResults":"Topbar-module_noResults__PkNfT","actions":"Topbar-module_actions__KtaiZ"};
1704
+ var styles$g = {"actions":"TeamScheduleActions-module_actions__OvuON","primaryRow":"TeamScheduleActions-module_primaryRow__8rwhE","tripCount":"TeamScheduleActions-module_tripCount__4axn4","seasonNavigator":"TeamScheduleActions-module_seasonNavigator__jmqeE","seasonLabel":"TeamScheduleActions-module_seasonLabel__8MtKK","secondaryRow":"TeamScheduleActions-module_secondaryRow__We2n9"};
1505
1705
 
1506
- /**
1507
- * Topbar component for the main header.
1508
- * Includes account selector with dropdown and action buttons.
1509
- */
1510
- const Topbar = ({ account, accounts, onAccountSelect, onAccountClick, actions, leftContent, className = '', ...props }) => {
1511
- const [isOpen, setIsOpen] = useState(false);
1512
- const [searchQuery, setSearchQuery] = useState('');
1513
- const dropdownRef = useRef(null);
1514
- const searchInputRef = useRef(null);
1515
- const classNames = [styles$g.topbar, className].filter(Boolean).join(' ');
1516
- // Close dropdown on outside click
1517
- useEffect(() => {
1518
- if (!isOpen)
1519
- return;
1520
- const handleClickOutside = (event) => {
1521
- if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1522
- setIsOpen(false);
1523
- setSearchQuery('');
1524
- }
1525
- };
1526
- const handleEscape = (event) => {
1527
- if (event.key === 'Escape') {
1528
- setIsOpen(false);
1529
- setSearchQuery('');
1530
- }
1531
- };
1532
- document.addEventListener('mousedown', handleClickOutside);
1533
- document.addEventListener('keydown', handleEscape);
1534
- return () => {
1535
- document.removeEventListener('mousedown', handleClickOutside);
1536
- document.removeEventListener('keydown', handleEscape);
1537
- };
1538
- }, [isOpen]);
1539
- // Focus search input when dropdown opens
1540
- useEffect(() => {
1541
- if (isOpen && searchInputRef.current) {
1542
- searchInputRef.current.focus();
1543
- }
1544
- }, [isOpen]);
1545
- const handleToggle = () => {
1546
- if (accounts && accounts.length > 0) {
1547
- setIsOpen(!isOpen);
1548
- if (!isOpen) {
1549
- setSearchQuery('');
1550
- }
1551
- }
1552
- else if (onAccountClick) {
1553
- onAccountClick();
1706
+ /** Exact presentational counterpart of Hub's Team Schedule action controls. */
1707
+ const TeamScheduleActions = ({ isCompactView, tripCount, seasonLabel, seasonValue, seasonOptions = [], previousSeasonDisabled = false, exportDisabled = false, exporting = false, groupTravelDisabled = false, mergeDisabled = false, merging = false, onViewSchedule, onBack, onPreviousSeason, onNextSeason, onSeasonChange, onExport, onGroupTravelRequest, onMergeEvents, className = '', }) => (jsxs("div", { className: [styles$g.actions, className].filter(Boolean).join(' '), children: [jsxs("div", { className: styles$g.primaryRow, children: [!isCompactView ? (jsx(Button, { size: "sm", onClick: onViewSchedule, children: "View/Edit Schedule" })) : (jsx(Button, { size: "sm", onClick: onBack, leftIcon: jsx(ChevronLeftIcon, { size: 14 }), children: "Back" })), jsxs("div", { className: styles$g.seasonNavigator, children: [jsx(Button, { variant: "secondary", size: "sm", square: true, "aria-label": "Previous Season", disabled: previousSeasonDisabled, onClick: onPreviousSeason, children: jsx(ChevronLeftIcon, { size: 18 }) }), jsxs("div", { className: styles$g.seasonLabel, children: [jsx(Button, { variant: "secondary", size: "sm", children: seasonLabel }), !!seasonOptions.length && (jsx("select", { "aria-label": "Season", value: seasonValue, onChange: (event) => onSeasonChange?.(event.target.value), children: seasonOptions.map((option) => jsx("option", { value: option.value, children: option.label }, option.value)) }))] }), jsx(Button, { variant: "secondary", size: "sm", square: true, "aria-label": "Next Season", onClick: onNextSeason, children: jsx(ChevronRightIcon$1, { size: 18 }) })] }), isCompactView && jsx(Button, { variant: "outline", size: "sm", loading: exporting, disabled: exportDisabled, rightIcon: jsx(ArrowUpRightIcon, { size: 14 }), onClick: onExport, children: "Export XLS" }), jsxs("span", { className: styles$g.tripCount, children: [tripCount, " trips displayed"] })] }), isCompactView && (jsxs("div", { className: styles$g.secondaryRow, children: [jsx(Button, { variant: "outline", size: "sm", disabled: groupTravelDisabled, onClick: onGroupTravelRequest, children: "Group Travel Request" }), jsx(Button, { variant: "outline", size: "sm", disabled: mergeDisabled, loading: merging, onClick: onMergeEvents, children: "Merge Events" })] }))] }));
1708
+
1709
+ var styles$f = {"table":"TeamScheduleExpandedTable-module_table__hmnHI","header":"TeamScheduleExpandedTable-module_header__7IWV-","row":"TeamScheduleExpandedTable-module_row__9MyHH","body":"TeamScheduleExpandedTable-module_body__NsvB3","cell":"TeamScheduleExpandedTable-module_cell__kgawH","tripLink":"TeamScheduleExpandedTable-module_tripLink__lYoi8","mobileLabel":"TeamScheduleExpandedTable-module_mobileLabel__J6apm","empty":"TeamScheduleExpandedTable-module_empty__d9Afo"};
1710
+
1711
+ const parseLocalDate = (value) => {
1712
+ if (!value)
1713
+ return null;
1714
+ const match = value.match(/^(\d{4})-(\d{2})-(\d{2})/);
1715
+ if (match)
1716
+ return new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
1717
+ const parsed = new Date(value);
1718
+ return Number.isNaN(parsed.getTime()) ? null : parsed;
1719
+ };
1720
+ const formatDate$1 = (date, includeYear = true) => date.toLocaleDateString('en-US', {
1721
+ month: 'short',
1722
+ day: 'numeric',
1723
+ ...(includeYear ? { year: 'numeric' } : {}),
1724
+ });
1725
+ const formatTeamScheduleTravelDates = (startValue, endValue) => {
1726
+ const start = parseLocalDate(startValue);
1727
+ const end = parseLocalDate(endValue);
1728
+ if (!start || !end)
1729
+ return 'No dates';
1730
+ if (start.getTime() === end.getTime())
1731
+ return formatDate$1(start);
1732
+ if (start.getFullYear() !== end.getFullYear())
1733
+ return `${formatDate$1(start)} - ${formatDate$1(end)}`;
1734
+ return `${formatDate$1(start, false)} - ${end.getDate()}, ${end.getFullYear()}`;
1735
+ };
1736
+ const RunningIcon = () => (jsxs("svg", { viewBox: "0 0 32 32", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [jsx("circle", { cx: "21", cy: "5", r: "3" }), jsx("path", { d: "m18.5 9.3-4.2 4.2-4.1-2.1-1.4 2.8 5.9 3 3.3-3.2 2.3 5.2-5.2 3.2 1.7 2.6 7.4-4.6-3.3-7.2 2.4-2.4 2.1 3.1 2.6-1.8-4.2-6.4zM10 18.8 5.6 26H9l4-6.2z" })] }));
1737
+ const GroundIcon = () => (jsxs("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": "true", children: [jsx("rect", { x: "4", y: "3", width: "16", height: "16", rx: "2" }), jsx("path", { d: "M4 13h16M8 7h3m2 0h3M7 19v2m10-2v2" })] }));
1738
+ const headers = [
1739
+ { key: 'sportCode', label: 'Sport', icon: jsx(RunningIcon, {}) },
1740
+ { key: 'travelStartDate', label: 'Date(s)', icon: jsx(CalendarIcon$1, { size: 16 }) },
1741
+ { key: 'tripName', label: 'Trip Name', icon: jsx(DocumentIcon, { size: 16 }) },
1742
+ { label: 'Air', icon: jsx(PlaneIcon$4, { size: 16 }) },
1743
+ { label: 'Ground', icon: jsx(GroundIcon, {}) },
1744
+ { label: 'Hotel', icon: jsx(HotelIcon$4, { size: 16 }) },
1745
+ ];
1746
+ /** Hub's read-only expanded Team Schedule table. */
1747
+ const TeamScheduleExpandedTable = ({ rows, teamCode, onTripClick, emptyMessage = 'No data available.', className = '' }) => {
1748
+ const [sortKey, setSortKey] = useState();
1749
+ const [ascending, setAscending] = useState(true);
1750
+ const sortedRows = useMemo(() => !sortKey ? rows : [...rows].sort((left, right) => {
1751
+ const leftValue = sortKey === 'sportCode' ? teamCode ?? left.sportCode ?? '' : left[sortKey] ?? '';
1752
+ const rightValue = sortKey === 'sportCode' ? teamCode ?? right.sportCode ?? '' : right[sortKey] ?? '';
1753
+ return String(leftValue).localeCompare(String(rightValue)) * (ascending ? 1 : -1);
1754
+ }), [ascending, rows, sortKey, teamCode]);
1755
+ const sort = (key) => {
1756
+ if (sortKey === key)
1757
+ setAscending((value) => !value);
1758
+ else {
1759
+ setSortKey(key);
1760
+ setAscending(true);
1554
1761
  }
1555
1762
  };
1556
- const handleSelectAccount = (selectedAccount) => {
1557
- onAccountSelect?.(selectedAccount);
1558
- setIsOpen(false);
1559
- setSearchQuery('');
1560
- };
1561
- const filteredAccounts = accounts?.filter(acc => acc.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
1562
- acc.code.toLowerCase().includes(searchQuery.toLowerCase())) || [];
1563
- const hasDropdown = accounts && accounts.length > 0;
1564
- return (jsxs("header", { className: classNames, ...props, children: [jsxs("div", { className: styles$g.left, children: [leftContent, account && (jsxs("div", { className: styles$g.accountWrapper, ref: dropdownRef, children: [jsxs("button", { className: `${styles$g.accountSelector} ${isOpen ? styles$g.open : ''}`, onClick: handleToggle, "aria-expanded": isOpen, "aria-haspopup": hasDropdown ? 'listbox' : undefined, children: [jsx("span", { className: styles$g.accountCode, children: account.code }), jsx("span", { className: styles$g.accountName, children: account.name }), hasDropdown && (jsx(ChevronDownIcon$1, { size: 16, className: `${styles$g.chevron} ${isOpen ? styles$g.chevronOpen : ''}` }))] }), isOpen && hasDropdown && (jsxs("div", { className: styles$g.dropdown, role: "listbox", children: [jsxs("div", { className: styles$g.dropdownSearch, children: [jsxs("svg", { className: styles$g.searchIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }), jsx("input", { ref: searchInputRef, type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), placeholder: "Search accounts...", className: styles$g.searchInput })] }), jsx("div", { className: styles$g.dropdownList, children: filteredAccounts.length > 0 ? (filteredAccounts.map((acc) => (jsxs("button", { className: `${styles$g.dropdownItem} ${acc.code === account.code ? styles$g.selected : ''}`, onClick: () => handleSelectAccount(acc), role: "option", "aria-selected": acc.code === account.code, children: [jsx("span", { className: styles$g.dropdownItemCode, children: acc.code }), jsx("span", { className: styles$g.dropdownItemName, children: acc.name })] }, acc.code)))) : (jsx("div", { className: styles$g.noResults, children: "No accounts found" })) })] }))] }))] }), actions && jsx("div", { className: styles$g.actions, children: actions })] }));
1763
+ return (jsxs("div", { className: [styles$f.table, className].filter(Boolean).join(' '), children: [jsx("div", { className: styles$f.header, children: headers.map((header) => (jsxs("button", { type: "button", disabled: !header.key, onClick: () => header.key && sort(header.key), children: [header.icon, jsx("span", { children: header.label }), header.key === sortKey && jsx("span", { "aria-label": ascending ? 'ascending' : 'descending', children: ascending ? '↑' : '↓' })] }, header.label))) }), !sortedRows.length ? jsx("div", { className: styles$f.empty, children: emptyMessage }) : jsx("div", { className: styles$f.body, children: sortedRows.map((row) => {
1764
+ const values = [
1765
+ teamCode ?? row.sportCode ?? '–',
1766
+ formatTeamScheduleTravelDates(row.travelStartDate, row.travelEndDate),
1767
+ jsx("button", { type: "button", className: styles$f.tripLink, onClick: () => onTripClick?.(row), children: row.tripName }),
1768
+ row.airSegment,
1769
+ row.groundSegment,
1770
+ row.hotelSegment,
1771
+ ];
1772
+ return jsx("div", { className: styles$f.row, children: values.map((value, index) => jsxs("div", { className: styles$f.cell, children: [jsxs("span", { className: styles$f.mobileLabel, children: [headers[index].icon, headers[index].label] }), jsx("div", { children: value || '–' })] }, headers[index].label)) }, row.masterTripGUID || row.tripName);
1773
+ }) })] }));
1774
+ };
1775
+
1776
+ var styles$e = {"grid":"TravelSummaryMetrics-module_grid__RqAU9"};
1777
+
1778
+ const numericValue = (value) => {
1779
+ if (value === undefined || value === null || value === '')
1780
+ return undefined;
1781
+ const parsed = Number(String(value).replace(/[^0-9.-]/g, ''));
1782
+ return Number.isFinite(parsed) ? parsed : undefined;
1783
+ };
1784
+ const formatCompactTripCost = (value) => {
1785
+ const cost = numericValue(value);
1786
+ if (cost === undefined)
1787
+ return undefined;
1788
+ if (cost > 1000000)
1789
+ return `${(cost / 1000000).toFixed(2)}M`;
1790
+ return `${Math.floor(cost / 1000)}K`;
1791
+ };
1792
+ const TravelSummaryMetrics = ({ tripsTraveled, remainingTrips, seasonTripCosts, seasonLabel, overdueActions, onOverdueActionsClick, className = '', }) => {
1793
+ const overdueCount = numericValue(overdueActions) ?? 0;
1794
+ return (jsxs("div", { className: [styles$e.grid, className].filter(Boolean).join(' '), children: [jsx(Metric, { value: tripsTraveled, label: "Trips Travelled" }), jsx(Metric, { value: remainingTrips, label: "Remaining Trips" }), jsx(Metric, { value: formatCompactTripCost(seasonTripCosts), label: `${seasonLabel} Trip Costs`, prefix: "$" }), jsx(Metric, { value: overdueActions, label: "Overdue Actions", warning: overdueCount > 0, dark: true, onClick: onOverdueActionsClick })] }));
1565
1795
  };
1566
- Topbar.displayName = 'Topbar';
1567
1796
 
1568
- var styles$f = {"form":"TravelerForm-module_form__wgss7","loading":"TravelerForm-module_loading__u38gT","header":"TravelerForm-module_header__X6v0S","title":"TravelerForm-module_title__pDabg","subtitle":"TravelerForm-module_subtitle__wArO7","content":"TravelerForm-module_content__NDu--","sections":"TravelerForm-module_sections__rnhZw","section":"TravelerForm-module_section__ukKVw","sectionTitle":"TravelerForm-module_sectionTitle__rtWV2","sectionContent":"TravelerForm-module_sectionContent__HPqkN","footer":"TravelerForm-module_footer__qQM1J"};
1797
+ var styles$d = {"form":"TravelerForm-module_form__wgss7","loading":"TravelerForm-module_loading__u38gT","header":"TravelerForm-module_header__X6v0S","title":"TravelerForm-module_title__pDabg","subtitle":"TravelerForm-module_subtitle__wArO7","content":"TravelerForm-module_content__NDu--","sections":"TravelerForm-module_sections__rnhZw","section":"TravelerForm-module_section__ukKVw","sectionTitle":"TravelerForm-module_sectionTitle__rtWV2","sectionContent":"TravelerForm-module_sectionContent__HPqkN","footer":"TravelerForm-module_footer__qQM1J"};
1569
1798
 
1570
1799
  /**
1571
1800
  * TravelerForm - Form layout for editing traveler/roster member details
1572
1801
  */
1573
1802
  const TravelerForm = ({ values = {}, title, subtitle, children, renderNameSection, renderDetailsSection, renderPreferencesSection, footer, isLoading = false, className = '', }) => {
1574
1803
  const formClasses = [
1575
- styles$f.form,
1576
- isLoading ? styles$f.loading : '',
1804
+ styles$d.form,
1805
+ isLoading ? styles$d.loading : '',
1577
1806
  className,
1578
1807
  ].filter(Boolean).join(' ');
1579
- return (jsxs("div", { className: formClasses, children: [(title || subtitle) && (jsxs("div", { className: styles$f.header, children: [title && jsx("h2", { className: styles$f.title, children: title }), subtitle && jsx("p", { className: styles$f.subtitle, children: subtitle })] })), children ? (jsx("div", { className: styles$f.content, children: children })) : (jsxs("div", { className: styles$f.sections, children: [renderNameSection && (jsxs("div", { className: styles$f.section, children: [jsx("h3", { className: styles$f.sectionTitle, children: "Name" }), jsx("div", { className: styles$f.sectionContent, children: renderNameSection(values) })] })), renderDetailsSection && (jsxs("div", { className: styles$f.section, children: [jsx("h3", { className: styles$f.sectionTitle, children: "Details" }), jsx("div", { className: styles$f.sectionContent, children: renderDetailsSection(values) })] })), renderPreferencesSection && (jsxs("div", { className: styles$f.section, children: [jsx("h3", { className: styles$f.sectionTitle, children: "Travel Preferences" }), jsx("div", { className: styles$f.sectionContent, children: renderPreferencesSection(values) })] }))] })), footer && (jsx("div", { className: styles$f.footer, children: footer }))] }));
1808
+ return (jsxs("div", { className: formClasses, children: [(title || subtitle) && (jsxs("div", { className: styles$d.header, children: [title && jsx("h2", { className: styles$d.title, children: title }), subtitle && jsx("p", { className: styles$d.subtitle, children: subtitle })] })), children ? (jsx("div", { className: styles$d.content, children: children })) : (jsxs("div", { className: styles$d.sections, children: [renderNameSection && (jsxs("div", { className: styles$d.section, children: [jsx("h3", { className: styles$d.sectionTitle, children: "Name" }), jsx("div", { className: styles$d.sectionContent, children: renderNameSection(values) })] })), renderDetailsSection && (jsxs("div", { className: styles$d.section, children: [jsx("h3", { className: styles$d.sectionTitle, children: "Details" }), jsx("div", { className: styles$d.sectionContent, children: renderDetailsSection(values) })] })), renderPreferencesSection && (jsxs("div", { className: styles$d.section, children: [jsx("h3", { className: styles$d.sectionTitle, children: "Travel Preferences" }), jsx("div", { className: styles$d.sectionContent, children: renderPreferencesSection(values) })] }))] })), footer && (jsx("div", { className: styles$d.footer, children: footer }))] }));
1580
1809
  };
1581
1810
  TravelerForm.displayName = 'TravelerForm';
1582
1811
 
1583
- var styles$e = {"table":"TripTable-module_table__28HM1","header":"TripTable-module_header__VNQyG","serviceHeader":"TripTable-module_serviceHeader__AXqua","requestedHeader":"TripTable-module_requestedHeader__7RhgA","row":"TripTable-module_row__EIDoN","serviceRow":"TripTable-module_serviceRow__jhL2v","requestedRow":"TripTable-module_requestedRow__Sofhd","compact":"TripTable-module_compact__QiKWg","textMuted":"TripTable-module_textMuted__Wl7pk","pnrLink":"TripTable-module_pnrLink__XmIdV","vendorCode":"TripTable-module_vendorCode__mfnDQ","typesCell":"TripTable-module_typesCell__u7wYw","serviceCell":"TripTable-module_serviceCell__8PcQl","servicePlaceholder":"TripTable-module_servicePlaceholder__BEBJ7","viewCol":"TripTable-module_viewCol__LLt-7","viewLink":"TripTable-module_viewLink__lr6Rf","travelerCell":"TripTable-module_travelerCell__8X804","moreCount":"TripTable-module_moreCount__ZoYs5","requestedByCell":"TripTable-module_requestedByCell__6ARM-","submittedDate":"TripTable-module_submittedDate__FBqEI","empty":"TripTable-module_empty__Nzic2","emptyTitle":"TripTable-module_emptyTitle__QkWAx","emptyText":"TripTable-module_emptyText__KPP9Q"};
1812
+ var styles$c = {"table":"TripTable-module_table__28HM1","header":"TripTable-module_header__VNQyG","serviceHeader":"TripTable-module_serviceHeader__AXqua","requestedHeader":"TripTable-module_requestedHeader__7RhgA","row":"TripTable-module_row__EIDoN","serviceRow":"TripTable-module_serviceRow__jhL2v","requestedRow":"TripTable-module_requestedRow__Sofhd","compact":"TripTable-module_compact__QiKWg","textMuted":"TripTable-module_textMuted__Wl7pk","pnrLink":"TripTable-module_pnrLink__XmIdV","vendorCode":"TripTable-module_vendorCode__mfnDQ","typesCell":"TripTable-module_typesCell__u7wYw","serviceCell":"TripTable-module_serviceCell__8PcQl","servicePlaceholder":"TripTable-module_servicePlaceholder__BEBJ7","viewCol":"TripTable-module_viewCol__LLt-7","viewLink":"TripTable-module_viewLink__lr6Rf","travelerCell":"TripTable-module_travelerCell__8X804","moreCount":"TripTable-module_moreCount__ZoYs5","requestedByCell":"TripTable-module_requestedByCell__6ARM-","submittedDate":"TripTable-module_submittedDate__FBqEI","empty":"TripTable-module_empty__Nzic2","emptyTitle":"TripTable-module_emptyTitle__QkWAx","emptyText":"TripTable-module_emptyText__KPP9Q"};
1584
1813
 
1585
1814
  // TravelerCell component
1586
1815
  const TravelerCell = ({ names }) => {
@@ -1588,7 +1817,7 @@ const TravelerCell = ({ names }) => {
1588
1817
  return jsx("span", { children: "\u2014" });
1589
1818
  if (names.length === 1)
1590
1819
  return jsx("span", { children: names[0] });
1591
- return (jsxs("span", { className: styles$e.travelerCell, children: [jsx("span", { children: names[0] }), jsxs("span", { className: styles$e.moreCount, children: ["+", names.length - 1] })] }));
1820
+ return (jsxs("span", { className: styles$c.travelerCell, children: [jsx("span", { children: names[0] }), jsxs("span", { className: styles$c.moreCount, children: ["+", names.length - 1] })] }));
1592
1821
  };
1593
1822
  // Chevron icon
1594
1823
  const ChevronRight$1 = ({ size = 20 }) => (jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: jsx("polyline", { points: "9 18 15 12 9 6" }) }));
@@ -1608,66 +1837,32 @@ const TripTable = ({ trips, variant = 'current', density = 'comfortable', vendor
1608
1837
  };
1609
1838
  return statusMap[status] || status.toLowerCase();
1610
1839
  };
1611
- return (jsxs("div", { className: `${styles$e.table} ${className || ''}`, children: [jsx("div", { className: `${styles$e.header} ${isRequested ? styles$e.requestedHeader : ''} ${useServiceColumn ? styles$e.serviceHeader : ''}`, children: isRequested ? (jsxs(Fragment, { children: [jsx("div", { children: "Request ID" }), jsx("div", { children: "Traveler(s)" }), jsx("div", { children: "Trip Type" }), jsx("div", { children: "Requested By" }), jsx("div", { className: styles$e.viewCol, children: "View" })] })) : (jsxs(Fragment, { children: [jsx("div", { children: "Traveler" }), jsx("div", { children: "Sport" }), jsx("div", { children: "PNR" }), useServiceColumn ? (jsxs(Fragment, { children: [jsx("div", { children: "Service" }), jsx("div", { children: "Itinerary" })] })) : (jsxs(Fragment, { children: [jsx("div", { children: "Vendor" }), jsx("div", { children: "Itinerary" }), jsx("div", { children: "Types" })] })), jsx("div", { children: "Travel Dates" }), jsx("div", { children: "Status" }), jsx("div", {})] })) }), trips.length === 0 ? (jsxs("div", { className: styles$e.empty, children: [jsx("div", { className: styles$e.emptyTitle, children: isRequested ? 'No Requested Trips' : 'No Trips Found' }), jsx("div", { className: styles$e.emptyText, children: emptyMessage || (isRequested
1840
+ return (jsxs("div", { className: `${styles$c.table} ${className || ''}`, children: [jsx("div", { className: `${styles$c.header} ${isRequested ? styles$c.requestedHeader : ''} ${useServiceColumn ? styles$c.serviceHeader : ''}`, children: isRequested ? (jsxs(Fragment, { children: [jsx("div", { children: "Request ID" }), jsx("div", { children: "Traveler(s)" }), jsx("div", { children: "Trip Type" }), jsx("div", { children: "Requested By" }), jsx("div", { className: styles$c.viewCol, children: "View" })] })) : (jsxs(Fragment, { children: [jsx("div", { children: "Traveler" }), jsx("div", { children: "Sport" }), jsx("div", { children: "PNR" }), useServiceColumn ? (jsxs(Fragment, { children: [jsx("div", { children: "Service" }), jsx("div", { children: "Itinerary" })] })) : (jsxs(Fragment, { children: [jsx("div", { children: "Vendor" }), jsx("div", { children: "Itinerary" }), jsx("div", { children: "Types" })] })), jsx("div", { children: "Travel Dates" }), jsx("div", { children: "Status" }), jsx("div", {})] })) }), trips.length === 0 ? (jsxs("div", { className: styles$c.empty, children: [jsx("div", { className: styles$c.emptyTitle, children: isRequested ? 'No Requested Trips' : 'No Trips Found' }), jsx("div", { className: styles$c.emptyText, children: emptyMessage || (isRequested
1612
1841
  ? 'Travel requests submitted to STM will appear here until an agent books them.'
1613
1842
  : 'Try clearing your filters or widening the date range.') })] })) : (trips.map((trip, index) => (jsx("div", { className: `
1614
- ${styles$e.row}
1615
- ${isRequested ? styles$e.requestedRow : ''}
1616
- ${useServiceColumn ? styles$e.serviceRow : ''}
1617
- ${isCompact ? styles$e.compact : ''}
1618
- `, onClick: () => onViewTrip?.(trip.pnr || trip.reqId || trip.id), children: isRequested ? (jsxs(Fragment, { children: [jsx("div", { children: jsx("a", { href: "#", className: styles$e.pnrLink, onClick: (e) => {
1843
+ ${styles$c.row}
1844
+ ${isRequested ? styles$c.requestedRow : ''}
1845
+ ${useServiceColumn ? styles$c.serviceRow : ''}
1846
+ ${isCompact ? styles$c.compact : ''}
1847
+ `, onClick: () => onViewTrip?.(trip.pnr || trip.reqId || trip.id), children: isRequested ? (jsxs(Fragment, { children: [jsx("div", { children: jsx("a", { href: "#", className: styles$c.pnrLink, onClick: (e) => {
1619
1848
  e.preventDefault();
1620
1849
  e.stopPropagation();
1621
1850
  onViewTrip?.(trip.reqId || trip.id);
1622
- }, children: trip.reqId }) }), jsx("div", { className: styles$e.textMuted, children: jsx(TravelerCell, { names: trip.travelers }) }), jsx("div", { className: styles$e.typesCell, children: trip.types.map((t, ti) => (jsx(TypeIcon, { type: t, size: isCompact ? 14 : 16 }, ti))) }), jsxs("div", { className: styles$e.requestedByCell, children: [jsx("div", { className: styles$e.textMuted, children: trip.requestedBy }), trip.submitted && (jsxs("div", { className: styles$e.submittedDate, children: ["Submitted ", trip.submitted] }))] }), jsx("div", { className: styles$e.viewCol, children: jsx("a", { href: "#", className: styles$e.viewLink, onClick: (e) => {
1851
+ }, children: trip.reqId }) }), jsx("div", { className: styles$c.textMuted, children: jsx(TravelerCell, { names: trip.travelers }) }), jsx("div", { className: styles$c.typesCell, children: trip.types.map((t, ti) => (jsx(TypeIcon, { type: t, size: isCompact ? 14 : 16 }, ti))) }), jsxs("div", { className: styles$c.requestedByCell, children: [jsx("div", { className: styles$c.textMuted, children: trip.requestedBy }), trip.submitted && (jsxs("div", { className: styles$c.submittedDate, children: ["Submitted ", trip.submitted] }))] }), jsx("div", { className: styles$c.viewCol, children: jsx("a", { href: "#", className: styles$c.viewLink, onClick: (e) => {
1623
1852
  e.preventDefault();
1624
1853
  e.stopPropagation();
1625
1854
  onViewTrip?.(trip.reqId || trip.id);
1626
- }, title: "View request detail", children: jsx(ChevronRight$1, {}) }) })] })) : (jsxs(Fragment, { children: [jsx("div", { className: styles$e.textMuted, children: jsx(TravelerCell, { names: trip.travelers }) }), jsx("div", { className: styles$e.textMuted, children: trip.sport || '—' }), jsx("div", { children: jsx("a", { href: "#", className: styles$e.pnrLink, onClick: (e) => {
1855
+ }, title: "View request detail", children: jsx(ChevronRight$1, {}) }) })] })) : (jsxs(Fragment, { children: [jsx("div", { className: styles$c.textMuted, children: jsx(TravelerCell, { names: trip.travelers }) }), jsx("div", { className: styles$c.textMuted, children: trip.sport || '—' }), jsx("div", { children: jsx("a", { href: "#", className: styles$c.pnrLink, onClick: (e) => {
1627
1856
  e.preventDefault();
1628
1857
  e.stopPropagation();
1629
1858
  onViewTrip?.(trip.pnr || trip.id);
1630
- }, children: trip.pnr }) }), useServiceColumn ? (jsxs(Fragment, { children: [jsx("div", { className: styles$e.serviceCell, children: ['A', 'H', 'C'].map(slot => (trip.types.includes(slot) ? (jsx(TravelServiceIcon, { type: slot, vendor: slot === 'A' ? trip.vendor : undefined, mode: vendorMode, size: serviceIconSize, multi: trip.multiSegments?.includes(slot) }, slot)) : (jsx("span", { className: styles$e.servicePlaceholder, style: { width: serviceIconSize, height: serviceIconSize } }, slot)))) }), jsx("div", { className: styles$e.textMuted, children: trip.itinerary || '—' })] })) : (jsxs(Fragment, { children: [jsx("div", { children: trip.vendor && vendorMode === 'icon' ? (jsx(TravelServiceIcon, { type: "A", vendor: trip.vendor, mode: "icon", size: 24 })) : (jsx("span", { className: styles$e.vendorCode, children: trip.vendor || '—' })) }), jsx("div", { className: styles$e.textMuted, children: trip.itinerary || '—' }), jsx("div", { className: styles$e.typesCell, children: trip.types.map((t, ti) => (jsx(TypeIcon, { type: t, size: isCompact ? 14 : 16 }, ti))) })] })), jsx("div", { className: styles$e.textMuted, children: trip.dates }), jsx("div", { children: jsx(StatusBadge, { status: mapStatus(trip.status) }) }), jsx("div", { className: styles$e.viewCol, children: jsx("a", { href: "#", className: styles$e.viewLink, onClick: (e) => {
1859
+ }, children: trip.pnr }) }), useServiceColumn ? (jsxs(Fragment, { children: [jsx("div", { className: styles$c.serviceCell, children: ['A', 'H', 'C'].map(slot => (trip.types.includes(slot) ? (jsx(TravelServiceIcon, { type: slot, vendor: slot === 'A' ? trip.vendor : undefined, mode: vendorMode, size: serviceIconSize, multi: trip.multiSegments?.includes(slot) }, slot)) : (jsx("span", { className: styles$c.servicePlaceholder, style: { width: serviceIconSize, height: serviceIconSize } }, slot)))) }), jsx("div", { className: styles$c.textMuted, children: trip.itinerary || '—' })] })) : (jsxs(Fragment, { children: [jsx("div", { children: trip.vendor && vendorMode === 'icon' ? (jsx(TravelServiceIcon, { type: "A", vendor: trip.vendor, mode: "icon", size: 24 })) : (jsx("span", { className: styles$c.vendorCode, children: trip.vendor || '—' })) }), jsx("div", { className: styles$c.textMuted, children: trip.itinerary || '—' }), jsx("div", { className: styles$c.typesCell, children: trip.types.map((t, ti) => (jsx(TypeIcon, { type: t, size: isCompact ? 14 : 16 }, ti))) })] })), jsx("div", { className: styles$c.textMuted, children: trip.dates }), jsx("div", { children: jsx(StatusBadge, { status: mapStatus(trip.status) }) }), jsx("div", { className: styles$c.viewCol, children: jsx("a", { href: "#", className: styles$c.viewLink, onClick: (e) => {
1631
1860
  e.preventDefault();
1632
1861
  e.stopPropagation();
1633
1862
  onViewTrip?.(trip.pnr || trip.id);
1634
1863
  }, title: "View itinerary", children: jsx(ChevronRight$1, {}) }) })] })) }, trip.id || trip.pnr || trip.reqId || index))))] }));
1635
1864
  };
1636
1865
 
1637
- var styles$d = {"appLayout":"AppLayout-module_appLayout__hc9Tm","mainArea":"AppLayout-module_mainArea__yrO-w","content":"AppLayout-module_content__swPpZ"};
1638
-
1639
- const AppLayout = ({ navItems = [], activeNavKey, logo, collapsedLogo, account, defaultExpanded = true, onNavItemClick, onAccountClick, children, navFooter, topbarActions, className, }) => {
1640
- return (jsxs("div", { className: `${styles$d.appLayout} ${className || ''}`, children: [jsx(Sidenav, { items: navItems, activeKey: activeNavKey, defaultExpanded: defaultExpanded, onItemClick: onNavItemClick, logo: logo, logoCollapsed: collapsedLogo, footer: navFooter }), jsxs("div", { className: styles$d.mainArea, children: [jsx(Topbar, { account: account, onAccountClick: onAccountClick, actions: topbarActions }), jsx("main", { className: styles$d.content, children: children })] })] }));
1641
- };
1642
-
1643
- var styles$c = {"layout":"RequestFormLayout-module_layout__DGr3F","header":"RequestFormLayout-module_header__1Fjzd","headerContent":"RequestFormLayout-module_headerContent__xmuP9","headerTitle":"RequestFormLayout-module_headerTitle__PPhML","pagination":"RequestFormLayout-module_pagination__9jgEV","separator":"RequestFormLayout-module_separator__RhyUN","eventName":"RequestFormLayout-module_eventName__uE2BF","headerRight":"RequestFormLayout-module_headerRight__wNqWM","body":"RequestFormLayout-module_body__UkKrz","sidebar":"RequestFormLayout-module_sidebar__4vSWS","showOnMobile":"RequestFormLayout-module_showOnMobile__aQbIq","sidebarContent":"RequestFormLayout-module_sidebarContent__yxQaB","main":"RequestFormLayout-module_main__h8sP3","mainContent":"RequestFormLayout-module_mainContent__H0hQb","summarySidebar":"RequestFormLayout-module_summarySidebar__cA6UQ","summaryContent":"RequestFormLayout-module_summaryContent__kUsbQ","footer":"RequestFormLayout-module_footer__-tAMs","footerContent":"RequestFormLayout-module_footerContent__i8-QZ","button":"RequestFormLayout-module_button__Ql3Z-","primary":"RequestFormLayout-module_primary__U3rme","secondary":"RequestFormLayout-module_secondary__CZtSr"};
1644
-
1645
- /**
1646
- * RequestFormHeader component for the fixed header in travel request forms.
1647
- */
1648
- const RequestFormHeader = ({ title, currentPage, totalPages, eventName, rightContent, className, }) => {
1649
- const showPagination = currentPage !== undefined && totalPages !== undefined && totalPages > 1;
1650
- return (jsx("header", { className: `${styles$c.header} ${className || ''}`, children: jsxs("div", { className: styles$c.headerContent, children: [jsxs("h1", { className: styles$c.headerTitle, children: [title, showPagination && (jsxs("span", { className: styles$c.pagination, children: ["(", currentPage, "/", totalPages, ")"] })), eventName && (jsxs(Fragment, { children: [jsx("span", { className: styles$c.separator, children: "\u2013" }), jsx("span", { className: styles$c.eventName, children: eventName })] }))] }), rightContent && jsx("div", { className: styles$c.headerRight, children: rightContent })] }) }));
1651
- };
1652
- /**
1653
- * RequestFormFooter component for the fixed footer with navigation buttons.
1654
- */
1655
- const RequestFormFooter = ({ onPrevious, onNext, isFirstPage = false, isLastPage = false, isSubmitting = false, previousText, nextText, className, }) => {
1656
- const prevLabel = previousText || (isFirstPage ? 'Cancel' : 'Previous');
1657
- const nextLabel = nextText || (isLastPage ? 'Submit' : 'Next');
1658
- return (jsx("footer", { className: `${styles$c.footer} ${className || ''}`, children: jsxs("div", { className: styles$c.footerContent, children: [jsx("button", { type: "button", className: `${styles$c.button} ${styles$c.secondary}`, onClick: onPrevious, disabled: isSubmitting, children: prevLabel }), jsx("button", { type: "button", className: `${styles$c.button} ${styles$c.primary}`, onClick: onNext, disabled: isSubmitting, children: isSubmitting ? 'Submitting...' : nextLabel })] }) }));
1659
- };
1660
- /**
1661
- * RequestFormLayout template for travel request forms.
1662
- * Provides a three-column layout with fixed header and footer.
1663
- */
1664
- const RequestFormLayout = ({ header, sidebar, children, summary, footer, className, showSidebarOnMobile = false, }) => {
1665
- return (jsxs("div", { className: `${styles$c.layout} ${className || ''}`, children: [header, jsxs("div", { className: styles$c.body, children: [sidebar && (jsx("aside", { className: `${styles$c.sidebar} ${showSidebarOnMobile ? styles$c.showOnMobile : ''}`, children: jsx("div", { className: styles$c.sidebarContent, children: sidebar }) })), jsx("main", { className: styles$c.main, children: jsx("div", { className: styles$c.mainContent, children: children }) }), summary && (jsx("aside", { className: styles$c.summarySidebar, children: jsx("div", { className: styles$c.summaryContent, children: summary }) }))] }), footer] }));
1666
- };
1667
- RequestFormLayout.displayName = 'RequestFormLayout';
1668
- RequestFormHeader.displayName = 'RequestFormHeader';
1669
- RequestFormFooter.displayName = 'RequestFormFooter';
1670
-
1671
1866
  var styles$b = {"page":"AdministrationPage-module_page__48Run","header":"AdministrationPage-module_header__HNQnE","tabs":"AdministrationPage-module_tabs__QPvcD","tab":"AdministrationPage-module_tab__bNaU8","activeTab":"AdministrationPage-module_activeTab__B-e3a","cards":"AdministrationPage-module_cards__nISnI","card":"AdministrationPage-module_card__6r45y","cardIcon":"AdministrationPage-module_cardIcon__GTb3t","cardCopy":"AdministrationPage-module_cardCopy__o9pWk","cardTitle":"AdministrationPage-module_cardTitle__56qEV","cardDescription":"AdministrationPage-module_cardDescription__66e9F","comingSoon":"AdministrationPage-module_comingSoon__LSm-x","chevron":"AdministrationPage-module_chevron__d9RPb"};
1672
1867
 
1673
1868
  const DEFAULT_CARDS = [
@@ -1721,44 +1916,83 @@ const CharterManifestPage = ({ tripName, travelStartDate, travelEndDate, seats,
1721
1916
  return (jsxs("div", { className: [styles$a.page, className].filter(Boolean).join(' '), "data-screen-label": "Charter Trip Manifest", children: [jsxs("header", { className: styles$a.header, children: [jsxs("div", { className: styles$a.headerRow, children: [jsx("button", { type: "button", "aria-label": "Back", className: styles$a.back, onClick: onBack, children: jsx(ChevronLeftIcon, { size: 28 }) }), jsxs("h1", { children: [jsx("strong", { children: "Manifest" }), jsx(ChevronRightIcon$1, { size: 24 }), jsx("span", { children: tripName })] }), jsxs("div", { className: styles$a.headerActions, children: [jsx(StatusPill, { sendState: sendState, locked: locked }), jsx(Button, { variant: "outline", leftIcon: jsx(DocumentIcon, { size: 16 }), disabled: carrierName === 'No carrier selected', onClick: onGenerateFile, children: "Generate File" })] })] }), (travelStartDate || travelEndDate) && (jsxs("div", { className: styles$a.dateRow, children: [jsx("span", { children: formatDate(travelStartDate) }), jsx("span", { className: styles$a.dateLine, children: "\u25B6" }), jsx("span", { children: formatDate(travelEndDate) })] })), jsxs("div", { className: styles$a.metaRow, children: [jsxs("span", { children: [jsx(PlaneIcon$4, { size: 16 }), seats, " seats"] }), jsxs("span", { children: [jsx(CubeIcon, { size: 16 }), "Payload limit ", payloadLimit.toLocaleString(), " lb"] })] })] }), jsxs("div", { className: styles$a.layout, children: [jsxs("aside", { className: styles$a.rail, children: [jsxs("div", { children: [jsx("div", { className: styles$a.eyebrow, children: "Flight Manifest" }), jsx("div", { className: styles$a.scopeList, children: [{ id: 'all', label: 'Full Trip', detail: 'All flight segments' }, ...segments].map((item) => (jsxs("button", { type: "button", className: [styles$a.scope, scope === item.id ? styles$a.activeScope : ''].filter(Boolean).join(' '), onClick: () => setScope(item.id), children: [jsx("strong", { children: item.label }), jsx("span", { children: item.detail })] }, item.id))) })] }), segments.length > 0 && (jsx(Button, { variant: "outline", size: "sm", disabled: locked, onClick: onSplitSegments, children: "Split by Segment" })), jsxs("div", { className: styles$a.carrierCard, children: [jsx("div", { className: styles$a.eyebrow, children: "Carrier" }), jsx("strong", { children: carrierName }), jsx("p", { children: carrierNote }), jsx(Button, { variant: "outline", size: "sm", fullWidth: true, disabled: locked, leftIcon: jsx(SettingsIcon, { size: 15 }), onClick: onChangeCarrier, children: "Change Carrier" })] })] }), jsxs("main", { className: styles$a.main, children: [jsx("section", { className: styles$a.capacityCard, children: jsx(ManifestCapacityStats, { paxCount: passengers.length, seats: seats, paxWeight: passengerWeight, cargoWeight: cargoWeight, payloadLimit: payloadLimit }) }), jsxs("div", { className: styles$a.viewRow, children: [jsx(ManifestViewToggle, { view: view, onView: setView, paxCount: passengers.length, eqCount: equipment.length, locked: locked }), locked && jsx("span", { className: styles$a.lockedMessage, children: "Locked \u2014 coordinate any changes directly with the carrier." })] }), view === 'passengers' ? (jsxs("section", { children: [!locked && (jsxs("div", { className: styles$a.tableActions, children: [jsxs("strong", { children: [passengers.length, " Passengers"] }), jsxs("div", { children: [jsx("span", { children: "Order by" }), jsx("span", { className: styles$a.sortToggle, children: ['name', 'type'].map((option) => (jsx("button", { type: "button", className: sort === option ? styles$a.activeSort : '', onClick: () => setSort(option), children: option }, option))) }), jsx(Button, { size: "sm", leftIcon: jsx(PlusIcon$2, { size: 15 }), onClick: onAddPassengers, children: "Add Passengers" })] })] })), jsx("div", { className: styles$a.tableWrap, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { children: "#" }), jsx("th", { children: "Passenger" }), jsx("th", { children: "Type" }), jsx("th", { children: "TSA Screening" }), jsx("th", { children: "Personal" }), jsx("th", { children: "Carry-On" }), jsx("th", { children: "Checked" }), jsx("th", { children: "Seat" }), jsx("th", {})] }) }), jsxs("tbody", { children: [!sortedPassengers.length && jsx("tr", { children: jsx("td", { colSpan: 9, className: styles$a.empty, children: "No passengers on this manifest yet. Add passengers from the master list." }) }), sortedPassengers.map((passenger, index) => (jsxs("tr", { children: [jsx("td", { children: index + 1 }), jsxs("td", { children: [jsx("strong", { children: passenger.lastName }), jsxs("span", { children: [", ", passenger.firstName] })] }), jsx("td", { children: jsx(TypeTag, { type: passenger.travelerType }) }), jsx("td", { children: passenger.screeningType || '—' }), jsxs("td", { children: [passenger.personalWeight ?? 0, " lb"] }), jsxs("td", { children: [passenger.carryOnWeight ?? 0, " lb"] }), jsxs("td", { children: [passenger.checkedWeight ?? 0, " lb"] }), jsx("td", { children: passenger.seatAssignment || '—' }), jsx("td", { children: !locked && jsx("button", { type: "button", "aria-label": `Remove ${passenger.firstName} ${passenger.lastName}`, className: styles$a.remove, onClick: () => onRemovePassenger?.(passenger), children: jsx(TrashIcon$2, { size: 16 }) }) })] }, passenger.id)))] })] }) })] })) : (jsxs("section", { children: [!locked && jsxs("div", { className: styles$a.tableActions, children: [jsxs("strong", { children: [equipment.length, " Equipment Items"] }), jsx(Button, { size: "sm", leftIcon: jsx(PlusIcon$2, { size: 15 }), onClick: onAddEquipment, children: "Add Equipment" })] }), jsx("div", { className: styles$a.tableWrap, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { children: "Equipment" }), jsx("th", { children: "Quantity" }), jsx("th", { children: "Weight" }), jsx("th", { children: "Total" }), jsx("th", {})] }) }), jsx("tbody", { children: equipment.map((item) => jsxs("tr", { children: [jsx("td", { children: jsx("strong", { children: item.name }) }), jsx("td", { children: item.quantity }), jsxs("td", { children: [item.weight.toLocaleString(), " lb"] }), jsxs("td", { children: [(item.quantity * item.weight).toLocaleString(), " lb"] }), jsx("td", { children: !locked && jsx("button", { type: "button", "aria-label": `Remove ${item.name}`, className: styles$a.remove, onClick: () => onRemoveEquipment?.(item), children: jsx(TrashIcon$2, { size: 16 }) }) })] }, item.id)) })] }) })] })), !locked && (jsxs("section", { className: styles$a.finalize, children: [jsx(StatusPill, { sendState: sendState, locked: false }), jsx("p", { children: sendState === 'initial-sent' ? 'Initial manifest sent. The final manifest may be sent within 3 days of departure.' : 'No manifest has been transmitted to the carrier yet.' }), jsxs("div", { className: styles$a.finalizeActions, children: [sendState === 'none' && jsx(Button, { onClick: onSendInitial, children: "Send Initial Manifest" }), sendState === 'initial-sent' && jsxs(Fragment, { children: [jsx(Button, { onClick: onSendFinal, children: "Send Final Manifest" }), jsx(Button, { variant: "ghost", size: "sm", onClick: onUndoInitial, children: "Undo initial" })] })] })] }))] })] })] }));
1722
1917
  };
1723
1918
 
1724
- var styles$9 = {"page":"ContactUsPage-module_page__j9LWO","title":"ContactUsPage-module_title__0m1Pk","alert":"ContactUsPage-module_alert__3cwsB","grid":"ContactUsPage-module_grid__-OzjC","card":"ContactUsPage-module_card__WPn4v","cardTitle":"ContactUsPage-module_cardTitle__vcMbd","contacts":"ContactUsPage-module_contacts__oBDr8","contact":"ContactUsPage-module_contact__wX00R","field":"ContactUsPage-module_field__yiMo-","label":"ContactUsPage-module_label__C2fa2","value":"ContactUsPage-module_value__7qJ-W","link":"ContactUsPage-module_link__Pyps-","badge247":"ContactUsPage-module_badge247__720LI"};
1919
+ var styles$9 = {"page":"ContactUsPage-module_page__j9LWO","container":"ContactUsPage-module_container__uRC-r","header":"ContactUsPage-module_header__I6ypu","printRow":"ContactUsPage-module_printRow__d7O34","primaryGrid":"ContactUsPage-module_primaryGrid__DwUt4","genericGrid":"ContactUsPage-module_genericGrid__Zn-A1","stack":"ContactUsPage-module_stack__uKL2n","card":"ContactUsPage-module_card__WPn4v","cardBody":"ContactUsPage-module_cardBody__FU1io","simpleContact":"ContactUsPage-module_simpleContact__E-jyI","field":"ContactUsPage-module_field__yiMo-","label":"ContactUsPage-module_label__C2fa2","emergencyLabel":"ContactUsPage-module_emergencyLabel__Twetf","emergencyDot":"ContactUsPage-module_emergencyDot__Yg4eF","fieldValue":"ContactUsPage-module_fieldValue__5VT5g","contactColumn":"ContactUsPage-module_contactColumn__U9DGB","support":"ContactUsPage-module_support__Pptkm","emergency":"ContactUsPage-module_emergency__ozZbU","contactPair":"ContactUsPage-module_contactPair__Fxg8p","motorcoachEmergency":"ContactUsPage-module_motorcoachEmergency__-Uo84","centeredState":"ContactUsPage-module_centeredState__eLf0U","error":"ContactUsPage-module_error__XXiUk","warning":"ContactUsPage-module_warning__1--Zg"};
1725
1920
 
1726
- /**
1727
- * ContactUsPage - Contact information page layout
1728
- *
1729
- * Shows a page with:
1730
- * - Title
1731
- * - Optional alert banner
1732
- * - Contact cards grid
1733
- */
1734
- const ContactUsPage = ({ title = 'Contact Us', alert, cards = [], children, className = '', }) => {
1735
- const pageClasses = [
1736
- styles$9.page,
1737
- className,
1738
- ].filter(Boolean).join(' ');
1739
- return (jsxs("div", { className: pageClasses, children: [jsx("h1", { className: styles$9.title, children: title }), alert && (jsx("div", { className: styles$9.alert, children: alert })), children ? (children) : (jsx("div", { className: styles$9.grid, children: cards.map((card, i) => (jsxs("div", { className: styles$9.card, children: [jsx("h2", { className: styles$9.cardTitle, children: card.title }), jsx("div", { className: styles$9.contacts, children: card.contacts.map((contact, j) => (jsxs("div", { className: styles$9.contact, children: [contact.name && (jsxs("div", { className: styles$9.field, children: [jsx("span", { className: styles$9.label, children: "Name:" }), jsx("span", { className: styles$9.value, children: contact.name })] })), contact.email && (jsxs("div", { className: styles$9.field, children: [jsx("span", { className: styles$9.label, children: "Email:" }), jsx("a", { href: `mailto:${contact.email}`, className: styles$9.link, children: contact.email })] })), contact.phone && (jsxs("div", { className: styles$9.field, children: [jsx("span", { className: styles$9.label, children: "Phone:" }), jsxs("span", { className: styles$9.value, children: [contact.phone, contact.show247 && jsx("span", { className: styles$9.badge247, children: " (24/7)" })] })] }))] }, j))) })] }, i))) }))] }));
1921
+ const cleanEmail = (email) => email?.replace('.invalid', '');
1922
+ const ContactField = ({ label, children, emergency = false }) => (jsxs("div", { className: styles$9.field, children: [jsxs("span", { className: emergency ? styles$9.emergencyLabel : styles$9.label, children: [label, emergency && jsx("span", { className: styles$9.emergencyDot })] }), jsx("div", { className: styles$9.fieldValue, children: children })] }));
1923
+ const ContactCard = ({ title, children }) => (jsxs("section", { className: styles$9.card, children: [jsx("h2", { children: title }), jsx("div", { className: styles$9.cardBody, children: children })] }));
1924
+ const SimpleContactCard = ({ title, contacts = [] }) => {
1925
+ const validContacts = contacts.filter((contact) => contact.name || contact.email || contact.phone);
1926
+ if (!validContacts.length)
1927
+ return null;
1928
+ return (jsx(ContactCard, { title: title, children: validContacts.map((contact, index) => (jsxs("div", { className: styles$9.simpleContact, children: [contact.name && jsx(ContactField, { label: "Name:", children: jsx("span", { children: contact.name }) }), contact.email && jsx(ContactField, { label: "Email:", children: jsx("a", { href: `mailto:${cleanEmail(contact.email)}`, children: cleanEmail(contact.email) }) }), contact.phone && jsx(ContactField, { label: "Phone:", children: jsx("span", { children: contact.phone }) })] }, `${contact.email ?? contact.name ?? contact.phone}-${index}`))) }));
1929
+ };
1930
+ const ContactColumn = ({ title, contact }) => (jsxs("div", { className: styles$9.contactColumn, children: [jsx("strong", { children: title }), contact?.name && jsx("span", { children: contact.name }), contact?.email && jsx("a", { href: `mailto:${cleanEmail(contact.email)}`, children: cleanEmail(contact.email) }), contact?.phone && jsxs("span", { children: [contact.phone, contact.show247 && jsx("em", { children: " (24/7)" })] })] }));
1931
+ const PairedContacts = ({ contacts = [] }) => (jsx(Fragment, { children: contacts.map((contact, index) => (jsxs("div", { className: styles$9.contactPair, children: [jsx(ContactColumn, { title: "Sales Contact", contact: contact.sales }), jsx(ContactColumn, { title: "Operations Contact", contact: contact.operations })] }, `${contact.sales?.email ?? contact.operations?.email}-${index}`))) }));
1932
+ const GenericCards = ({ cards }) => (jsx("div", { className: styles$9.genericGrid, children: cards.map((card) => jsx(SimpleContactCard, { title: card.title, contacts: card.contacts }, card.title)) }));
1933
+ /** Exact presentational counterpart of the Hub Contact Us screen. */
1934
+ const ContactUsPage = ({ title = 'Your Team of Experts', state, errorMessage = 'Unable to fetch contact information.', data, onPrint, cards = [], children, className = '', }) => {
1935
+ const resolvedState = state ?? (data || cards.length || children ? 'data' : 'empty');
1936
+ if (resolvedState === 'loading')
1937
+ return null;
1938
+ if (resolvedState === 'error' || resolvedState === 'empty') {
1939
+ return (jsx("div", { className: styles$9.centeredState, children: jsx("div", { role: resolvedState === 'error' ? 'alert' : 'status', className: resolvedState === 'error' ? styles$9.error : styles$9.warning, children: resolvedState === 'error' ? errorMessage : 'No contact information available.' }) }));
1940
+ }
1941
+ return (jsx("div", { className: [styles$9.page, className].filter(Boolean).join(' '), children: jsxs("div", { className: styles$9.container, children: [jsx("header", { className: styles$9.header, children: jsx("h1", { children: title }) }), jsx("div", { className: styles$9.printRow, children: jsxs("button", { type: "button", onClick: onPrint ?? (() => window.print()), children: [jsx(PrinterIcon, { size: 16 }), "Print"] }) }), children ?? (data ? (jsxs(Fragment, { children: [!!(data.accountManagers?.length || data.travelAgents?.length) && (jsxs("div", { className: styles$9.primaryGrid, children: [jsx(SimpleContactCard, { title: "Account Manager", contacts: data.accountManagers }), jsx(SimpleContactCard, { title: "Travel Agent", contacts: data.travelAgents })] })), jsxs("div", { className: styles$9.stack, children: [jsxs(ContactCard, { title: "Group/Team Commercial Reservation Specialists", children: [jsx(ContactField, { label: "Business Hours:", children: jsx("span", { children: "Monday \u2013 Friday 8am-8pm ET" }) }), jsx(ContactField, { label: "Toll-Free Number:", children: jsx("span", { children: "866-902-9654" }) }), jsx(ContactField, { label: "After Hours/Emergency (24/7):", emergency: true, children: jsx("span", { className: styles$9.emergency, children: "866-902-9654" }) }), jsx(ContactField, { label: "Email:", children: jsx("a", { href: "mailto:teamtravel@shortstravel.com", children: "teamtravel@shortstravel.com" }) })] }), jsxs(ContactCard, { title: "Recruiting Travel Specialists", children: [jsx(ContactField, { label: "Business Hours:", children: jsx("span", { children: "Monday \u2013 Friday 8am-8pm ET" }) }), jsx(ContactField, { label: "Toll-Free Number:", children: jsx("span", { children: "866-902-9654" }) }), jsx(ContactField, { label: "After Hours/Emergency (24/7):", emergency: true, children: jsx("span", { className: styles$9.emergency, children: "866-902-9654" }) }), jsx(ContactField, { label: "Email:", children: jsx("a", { href: "mailto:recruiting@shortstravel.com", children: "recruiting@shortstravel.com" }) })] }), !!data.charterAirContacts?.length && jsx(ContactCard, { title: "Charter Air", children: jsx(PairedContacts, { contacts: data.charterAirContacts }) }), !!data.motorcoachContacts?.length && (jsxs(ContactCard, { title: "Charter Bus / Motorcoach", children: [jsx(PairedContacts, { contacts: data.motorcoachContacts }), jsx("p", { className: styles$9.motorcoachEmergency, children: "After Hours/Emergency (24/7): 319-423-3007" })] })), !!data.groupHotelContacts?.length && (jsx(ContactCard, { title: "Group Hotel", children: data.groupHotelContacts.map((contact, index) => (jsxs("div", { className: styles$9.contactPair, children: [jsx(ContactColumn, { title: "Sales Contact", contact: contact }), jsx("div", { className: styles$9.contactColumn })] }, `${contact.email ?? contact.name}-${index}`))) }))] })] })) : jsx(GenericCards, { cards: cards })), jsxs("footer", { className: styles$9.support, children: [jsx("h2", { children: "Short's Travel Website and Online Booking Tool Support" }), jsx("p", { children: "Monday \u2013 Friday 9am-9pm ET, except major holidays" }), jsxs("div", { children: [jsx("span", { children: "319-257-5309" }), jsx("a", { href: "mailto:onlinesupport@shortstravel.com", children: "onlinesupport@shortstravel.com" })] })] })] }) }));
1740
1942
  };
1741
- ContactUsPage.displayName = 'ContactUsPage';
1742
1943
 
1743
- var styles$8 = {"page":"DashboardPage-module_page__PPkbS","pageHeader":"DashboardPage-module_pageHeader__gb8MO","pageActions":"DashboardPage-module_pageActions__1Zgv1","outlineButton":"DashboardPage-module_outlineButton__iLuAv","textButton":"DashboardPage-module_textButton__rEtbe","primaryButton":"DashboardPage-module_primaryButton__uaCW9","customizeButton":"DashboardPage-module_customizeButton__D6kV3","editBanner":"DashboardPage-module_editBanner__7IN5D","syncStatus":"DashboardPage-module_syncStatus__BxFQW","syncError":"DashboardPage-module_syncError__U-uis","grid":"DashboardPage-module_grid__OVgfA","sizeS":"DashboardPage-module_sizeS__leLYa","sizeM":"DashboardPage-module_sizeM__TkfbJ","sizeL":"DashboardPage-module_sizeL__Gbs5b","widget":"DashboardPage-module_widget__p6N-1","widgetHeader":"DashboardPage-module_widgetHeader__m7YWn","widgetIcon":"DashboardPage-module_widgetIcon__1npXI","dragHandle":"DashboardPage-module_dragHandle__rWGWh","widgetActions":"DashboardPage-module_widgetActions__E2pfv","iconButton":"DashboardPage-module_iconButton__v7jtL","sizeToggle":"DashboardPage-module_sizeToggle__wmv6Y","activeSize":"DashboardPage-module_activeSize__vFi0w","widgetBody":"DashboardPage-module_widgetBody__8IPCC","rows":"DashboardPage-module_rows__rPy8n","row":"DashboardPage-module_row__uIAgO","state":"DashboardPage-module_state__h3q31","skeleton":"DashboardPage-module_skeleton__V--PR","pulse":"DashboardPage-module_pulse__VLsO0","widgetFooter":"DashboardPage-module_widgetFooter__OWOyX","editFooter":"DashboardPage-module_editFooter__OHwct","emptyPage":"DashboardPage-module_emptyPage__2QBJk","scrim":"DashboardPage-module_scrim__9ftDX","catalog":"DashboardPage-module_catalog__PoSpA","catalogBody":"DashboardPage-module_catalogBody__AmzLB","catalogItem":"DashboardPage-module_catalogItem__tgxzn","catalogIcon":"DashboardPage-module_catalogIcon__rXPbn","added":"DashboardPage-module_added__c9XNj"};
1944
+ var styles$8 = {"page":"DashboardPage-module_page__PPkbS","pageHeader":"DashboardPage-module_pageHeader__gb8MO","pageActions":"DashboardPage-module_pageActions__1Zgv1","outlineButton":"DashboardPage-module_outlineButton__iLuAv","textButton":"DashboardPage-module_textButton__rEtbe","primaryButton":"DashboardPage-module_primaryButton__uaCW9","customizeButton":"DashboardPage-module_customizeButton__D6kV3","editBanner":"DashboardPage-module_editBanner__7IN5D","syncStatus":"DashboardPage-module_syncStatus__BxFQW","syncError":"DashboardPage-module_syncError__U-uis","grid":"DashboardPage-module_grid__OVgfA","sizeS":"DashboardPage-module_sizeS__leLYa","sizeM":"DashboardPage-module_sizeM__TkfbJ","sizeL":"DashboardPage-module_sizeL__Gbs5b","widget":"DashboardPage-module_widget__p6N-1","editing":"DashboardPage-module_editing__rtEwa","widgetHeader":"DashboardPage-module_widgetHeader__m7YWn","widgetIcon":"DashboardPage-module_widgetIcon__1npXI","dragHandle":"DashboardPage-module_dragHandle__rWGWh","rangeTitle":"DashboardPage-module_rangeTitle__IxHJR","widgetActions":"DashboardPage-module_widgetActions__E2pfv","iconButton":"DashboardPage-module_iconButton__v7jtL","sizeToggle":"DashboardPage-module_sizeToggle__wmv6Y","activeSize":"DashboardPage-module_activeSize__vFi0w","widgetBody":"DashboardPage-module_widgetBody__8IPCC","skeleton":"DashboardPage-module_skeleton__V--PR","pulse":"DashboardPage-module_pulse__VLsO0","state":"DashboardPage-module_state__h3q31","tableBody":"DashboardPage-module_tableBody__iJCJd","tableRow":"DashboardPage-module_tableRow__N5FgV","travelersGrid":"DashboardPage-module_travelersGrid__bYR9i","unusedGrid":"DashboardPage-module_unusedGrid__WyJzI","tableHead":"DashboardPage-module_tableHead__n3RLy","typeChips":"DashboardPage-module_typeChips__zCQA2","carrier":"DashboardPage-module_carrier__EAgok","nearExpiry":"DashboardPage-module_nearExpiry__u13P9","summary":"DashboardPage-module_summary__5kp8D","infoList":"DashboardPage-module_infoList__seS0s","rows":"DashboardPage-module_rows__rPy8n","row":"DashboardPage-module_row__uIAgO","widgetFooter":"DashboardPage-module_widgetFooter__OWOyX","editFooter":"DashboardPage-module_editFooter__OHwct","emptyPage":"DashboardPage-module_emptyPage__2QBJk","scrim":"DashboardPage-module_scrim__9ftDX","catalog":"DashboardPage-module_catalog__PoSpA","catalogBody":"DashboardPage-module_catalogBody__AmzLB","catalogItem":"DashboardPage-module_catalogItem__tgxzn","catalogIcon":"DashboardPage-module_catalogIcon__rXPbn","added":"DashboardPage-module_added__c9XNj","dragGhost":"DashboardPage-module_dragGhost__OemVj"};
1744
1945
 
1745
1946
  const CATALOG = [
1746
- { type: 'travelers', title: "Today's Travelers", description: 'Current travelers with dates and travel types.' },
1747
- { type: 'unused', title: 'Unused Tickets', description: 'Unused, unexpired airline tickets and available credit.' },
1947
+ { type: 'travelers', title: "Today's Travelers", description: 'Current travelers with dates and travel types, plus the Where Are My Travelers report.' },
1948
+ { type: 'unused', title: 'Unused Tickets', description: 'Unused, unexpired airline tickets with traveler, carrier, expiration, and amount.' },
1748
1949
  { type: 'info', title: 'Info Center', description: 'Informational links, newsletters, and training resources.' },
1749
1950
  ];
1750
- const WidgetIcon = ({ type }) => type === 'travelers' ? jsx(UsersIcon$1, { size: 20 }) : jsx(InfoIcon$1, { size: 20 });
1751
- const WidgetCard = ({ widget, editMode, onRefresh, onRemove, onResize }) => (jsxs("article", { className: styles$8.widget, children: [jsxs("header", { className: styles$8.widgetHeader, children: [editMode && jsx("span", { className: styles$8.dragHandle, "aria-hidden": "true", children: "\u22EE\u22EE" }), jsx("span", { className: styles$8.widgetIcon, children: jsx(WidgetIcon, { type: widget.type }) }), jsx("h3", { children: widget.title }), jsx("div", { className: styles$8.widgetActions, children: editMode ? (jsxs(Fragment, { children: [jsx("span", { className: styles$8.sizeToggle, role: "group", "aria-label": `${widget.title} size`, children: ['S', 'M', 'L'].map((size) => jsx("button", { type: "button", "aria-label": { S: 'Small', M: 'Medium', L: 'Large' }[size], "aria-pressed": widget.size === size, className: widget.size === size ? styles$8.activeSize : '', onClick: () => onResize?.(widget, size), children: size }, size)) }), !widget.pinned && jsx("button", { type: "button", className: styles$8.iconButton, "aria-label": `Remove ${widget.title} card`, onClick: () => onRemove?.(widget), children: jsx(CloseIcon, { size: 16 }) })] })) : (jsx("button", { type: "button", className: styles$8.iconButton, "aria-label": `Refresh ${widget.title}`, onClick: () => onRefresh?.(widget), disabled: widget.state === 'loading', children: jsx(RefreshIcon, { size: 20 }) })) })] }), jsx("div", { className: styles$8.widgetBody, children: widget.state === 'loading' ? jsxs("div", { className: styles$8.skeleton, children: [jsx("i", {}), jsx("i", {}), jsx("i", {}), jsx("span", { children: "Refreshing\u2026" })] })
1752
- : widget.state === 'error' ? jsx("div", { className: styles$8.state, children: "Couldn't load this card." })
1753
- : widget.state === 'empty' || !widget.rows?.length ? jsx("div", { className: styles$8.state, children: widget.emptyMessage ?? 'No records available.' })
1754
- : jsx("div", { className: styles$8.rows, children: widget.rows.map((row, index) => jsxs("div", { className: styles$8.row, children: [jsxs("div", { children: [jsx("strong", { children: row.primary }), row.secondary && jsx("span", { children: row.secondary })] }), row.badge && jsx("small", { children: row.badge }), row.value && jsx("b", { children: row.value })] }, `${row.primary}-${index}`)) }) }), !editMode && widget.footerLabel && jsx("footer", { className: styles$8.widgetFooter, children: jsxs("a", { href: `#${widget.type}`, children: [widget.footerLabel, jsx("span", { children: "\u2192" })] }) }), editMode && jsxs("footer", { className: styles$8.editFooter, children: [jsx("span", { children: "Reorder" }), jsx("button", { type: "button", "aria-label": `Move ${widget.title} earlier`, children: "\u2190" }), jsx("button", { type: "button", "aria-label": `Move ${widget.title} later`, children: "\u2192" })] })] }));
1755
- /** Hub's personalized post-login landing page. */
1756
- const DashboardPage = ({ greeting = 'Good morning', firstName, accountName, widgets = [], systemBanners = [], alertBanners = [], syncStatus = 'idle', onRefresh, onRemove, onResize, onReset, onAddWidget, className = '', }) => {
1951
+ const TRAVELER_RANGES = [
1952
+ { key: 'last7', label: "Last 7 Days' Travelers" },
1953
+ { key: 'yesterday', label: "Yesterday's Travelers" },
1954
+ { key: 'today', label: "Today's Travelers" },
1955
+ { key: 'tomorrow', label: "Tomorrow's Travelers" },
1956
+ { key: 'next7', label: "Next 7 Days' Travelers" },
1957
+ ];
1958
+ const rowsForSize = (size) => size === 'S' ? 3 : size === 'M' ? 6 : 10;
1959
+ const WidgetIcon = ({ type }) => type === 'travelers' ? jsx(UserIcon, { size: 20 }) : jsx(InfoIcon$1, { size: 20 });
1960
+ const LoadingState = () => jsxs("div", { className: styles$8.skeleton, children: [jsx("i", {}), jsx("i", {}), jsx("i", {}), jsx("span", { children: "Refreshing\u2026" })] });
1961
+ const EmptyState = ({ message }) => jsxs("div", { className: styles$8.state, children: [jsx(CheckIcon$2, { size: 28 }), jsx("span", { children: message })] });
1962
+ const ErrorState = ({ onRetry }) => jsxs("div", { className: styles$8.state, children: [jsx(WarningIcon$1, { size: 28 }), jsx("span", { children: "Couldn't load this card." }), jsxs("button", { type: "button", onClick: onRetry, children: [jsx(RefreshIcon, { size: 16 }), "Retry"] })] });
1963
+ const TravelersBody = ({ records, size }) => (jsxs("div", { className: styles$8.tableBody, children: [jsxs("div", { className: [styles$8.tableRow, styles$8.travelersGrid, styles$8.tableHead].join(' '), children: [jsx("span", { children: "Traveler(s)" }), jsx("span", { children: "Dates" }), jsx("span", { children: "Types" })] }), records.slice(0, rowsForSize(size)).map((record, index, visible) => (jsxs("div", { className: [styles$8.tableRow, styles$8.travelersGrid].join(' '), "data-last": index === visible.length - 1, children: [jsx("strong", { children: record.traveler }), jsx("span", { children: record.dates }), jsx("span", { className: styles$8.typeChips, children: record.types.map((type) => jsx("b", { title: type, children: type }, type)) })] }, `${record.traveler}-${index}`)))] }));
1964
+ const UnusedBody = ({ records, size, totalAmount = '$0.00' }) => (jsxs("div", { className: styles$8.tableBody, children: [jsxs("div", { className: [styles$8.tableRow, styles$8.unusedGrid, styles$8.tableHead].join(' '), children: [jsx("span", { children: "Traveler" }), jsx("span", { children: "Air" }), jsx("span", { children: "Exp" }), jsx("span", { children: "Amount" })] }), records.slice(0, rowsForSize(size)).map((record, index, visible) => (jsxs("div", { className: [styles$8.tableRow, styles$8.unusedGrid].join(' '), "data-last": index === visible.length - 1, children: [jsx("span", { children: record.traveler }), jsxs("strong", { className: styles$8.carrier, children: [record.airlineLogo && jsx("img", { src: record.airlineLogo, alt: "" }), record.airline] }), jsx("span", { className: record.expDays <= 28 ? styles$8.nearExpiry : '', children: record.exp }), jsx("strong", { children: record.amount })] }, `${record.traveler}-${index}`))), jsxs("div", { className: styles$8.summary, children: [jsxs("span", { children: [records.length, " unused ticket", records.length === 1 ? '' : 's'] }), jsxs("span", { children: ["Total ", jsx("strong", { children: totalAmount })] })] })] }));
1965
+ const InfoBody = ({ records, size, onNavigate }) => (jsx("div", { className: styles$8.infoList, children: records.slice(0, size === 'S' ? 3 : size === 'M' ? 5 : 9).map((item) => item.href ? (jsxs("a", { href: item.href, target: "_blank", rel: "noopener noreferrer", children: [jsxs("span", { children: [jsx("strong", { children: item.title }), item.body && jsx("small", { children: item.body })] }), jsx("b", { children: "\u2197" })] }, item.id)) : (jsxs("button", { type: "button", onClick: () => onNavigate?.('/info-center', { openArticleId: item.id }), children: [jsxs("span", { children: [jsx("strong", { children: item.title }), item.body && jsx("small", { children: item.body })] }), jsx("b", { children: "\u203A" })] }, item.id))) }));
1966
+ const WidgetBody = ({ widget, onNavigate }) => {
1967
+ if (widget.travelerRecords)
1968
+ return jsx(TravelersBody, { records: widget.travelerRecords, size: widget.size });
1969
+ if (widget.unusedRecords)
1970
+ return jsx(UnusedBody, { records: widget.unusedRecords, totalAmount: widget.unusedTotalAmount, size: widget.size });
1971
+ if (widget.infoCenterRecords)
1972
+ return jsx(InfoBody, { records: widget.infoCenterRecords, size: widget.size, onNavigate: onNavigate });
1973
+ return jsx("div", { className: styles$8.rows, children: widget.rows?.map((row, index) => jsxs("div", { className: styles$8.row, children: [jsxs("div", { children: [jsx("strong", { children: row.primary }), row.secondary && jsx("span", { children: row.secondary })] }), row.badge && jsx("small", { children: row.badge }), row.value && jsx("b", { children: row.value })] }, `${row.primary}-${index}`)) });
1974
+ };
1975
+ const WidgetCard = ({ widget, editMode, index, count, onRefresh, onRemove, onResize, onReorder, onTravelerRangeChange, onNavigate }) => {
1976
+ const [rangeIndex, setRangeIndex] = useState(2);
1977
+ const isTravelers = widget.type === 'travelers';
1978
+ const changeRange = (delta) => {
1979
+ const next = Math.max(0, Math.min(TRAVELER_RANGES.length - 1, rangeIndex + delta));
1980
+ setRangeIndex(next);
1981
+ onTravelerRangeChange?.(widget, TRAVELER_RANGES[next].key);
1982
+ };
1983
+ const state = widget.state ?? 'data';
1984
+ return (jsxs("article", { className: [styles$8.widget, editMode ? styles$8.editing : ''].filter(Boolean).join(' '), children: [jsxs("header", { className: styles$8.widgetHeader, children: [editMode && jsx("span", { className: styles$8.dragHandle, "aria-hidden": "true", children: "\u283F" }), jsx("span", { className: styles$8.widgetIcon, children: jsx(WidgetIcon, { type: widget.type }) }), isTravelers ? jsxs("div", { className: styles$8.rangeTitle, children: [jsx("button", { type: "button", "aria-label": "Show previous traveler range", disabled: rangeIndex === 0, onClick: () => changeRange(-1), children: jsx(ChevronLeftIcon, { size: 14 }) }), jsx("h3", { children: TRAVELER_RANGES[rangeIndex].label }), jsx("button", { type: "button", "aria-label": "Show next traveler range", disabled: rangeIndex === TRAVELER_RANGES.length - 1, onClick: () => changeRange(1), children: jsx(ChevronRightIcon$1, { size: 14 }) })] }) : jsx("h3", { children: widget.title }), jsx("div", { className: styles$8.widgetActions, children: editMode ? jsxs(Fragment, { children: [jsx("span", { className: styles$8.sizeToggle, role: "group", "aria-label": `${widget.title} size`, children: ['S', 'M', 'L'].map((size) => jsx("button", { type: "button", "aria-label": { S: 'Small', M: 'Medium', L: 'Large' }[size], "aria-pressed": widget.size === size, className: widget.size === size ? styles$8.activeSize : '', onClick: () => onResize?.(widget, size), children: size }, size)) }), !widget.pinned && jsx("button", { type: "button", className: styles$8.iconButton, "aria-label": `Remove ${widget.title} card`, onClick: () => onRemove?.(widget), children: jsx(CloseIcon, { size: 16 }) })] }) : jsx("button", { type: "button", className: styles$8.iconButton, "aria-label": `Refresh ${widget.title}`, onClick: () => onRefresh?.(widget), disabled: state === 'loading', children: jsx(RefreshIcon, { size: 20 }) }) })] }), jsx("div", { className: styles$8.widgetBody, children: state === 'loading' ? jsx(LoadingState, {}) : state === 'error' ? jsx(ErrorState, { onRetry: () => onRefresh?.(widget) }) : state === 'empty' ? jsx(EmptyState, { message: widget.emptyMessage ?? 'No records available.' }) : jsx(WidgetBody, { widget: widget, onNavigate: onNavigate }) }), !editMode && (state === 'data' || state === 'empty') && (widget.footerLabel || widget.footerSecondary) && jsxs("footer", { className: styles$8.widgetFooter, children: [widget.footerSecondary && state === 'data' && jsxs("button", { type: "button", onClick: () => onNavigate?.(widget.footerSecondary.path), children: [jsx(FilterIcon$1, { size: 16 }), widget.footerSecondary.label] }), widget.footerLabel && jsxs("button", { type: "button", onClick: () => onNavigate?.(widget.footerPath ?? '#'), children: [widget.footerLabel, jsx("span", { children: "\u2192" })] })] }), editMode && jsxs("footer", { className: styles$8.editFooter, children: [jsx("span", { children: "Reorder" }), jsx("button", { type: "button", "aria-label": `Move ${widget.title} earlier`, disabled: index === 0, onClick: () => onReorder?.(index, index - 1), children: "\u2190" }), jsx("button", { type: "button", "aria-label": `Move ${widget.title} later`, disabled: index === count - 1, onClick: () => onReorder?.(index, index + 1), children: "\u2192" })] })] }));
1985
+ };
1986
+ /** Exact, service-free rendering of Hub's personalized home page. */
1987
+ const DashboardPage = ({ greeting = 'Good morning', firstName, accountName, widgets = [], systemBanners = [], alertBanners = [], syncStatus = 'idle', onRefresh, onRemove, onResize, onReorder, onReset, onAddWidget, onTravelerRangeChange, onNavigate, className = '' }) => {
1757
1988
  const [editMode, setEditMode] = useState(false);
1758
1989
  const [catalogOpen, setCatalogOpen] = useState(false);
1990
+ const [dragFrom, setDragFrom] = useState(null);
1991
+ const dragGhost = useRef(null);
1759
1992
  const presentTypes = new Set(widgets.map((widget) => widget.type));
1760
- return (jsxs("div", { className: [styles$8.page, className].filter(Boolean).join(' '), children: [jsx(PageBanners, { systemBanners: systemBanners, alertBanners: alertBanners }), jsxs("header", { className: styles$8.pageHeader, children: [jsxs("div", { children: [jsxs("h1", { children: [greeting, firstName ? `, ${firstName}` : ''] }), accountName && jsxs("p", { children: ["Here's your personalized travel overview for ", accountName, "."] })] }), jsx("div", { className: styles$8.pageActions, children: editMode ? jsxs(Fragment, { children: [jsxs("button", { type: "button", className: styles$8.outlineButton, onClick: () => setCatalogOpen(true), children: [jsx(PlusIcon$2, { size: 20 }), "Add card"] }), jsx("button", { type: "button", className: styles$8.textButton, onClick: onReset, children: "Reset to default" }), jsxs("button", { type: "button", className: styles$8.primaryButton, onClick: () => { setEditMode(false); setCatalogOpen(false); }, children: [jsx(CheckIcon$2, { size: 20 }), "Done"] })] }) : jsxs("button", { type: "button", className: styles$8.customizeButton, onClick: () => setEditMode(true), children: [jsx(SettingsIcon, { size: 20 }), "Customize Your Home Page"] }) })] }), editMode && jsxs("div", { className: styles$8.editBanner, children: [jsx(EditIcon$2, { size: 20 }), jsxs("span", { children: [jsx("strong", { children: "Customizing your home page." }), " Drag cards to reorder, resize with S / M / L, or remove cards. Your layout saves automatically."] })] }), syncStatus === 'saving' && jsx("p", { className: styles$8.syncStatus, "aria-live": "polite", children: "Saving layout\u2026" }), syncStatus === 'error' && jsx("p", { className: [styles$8.syncStatus, styles$8.syncError].join(' '), role: "alert", children: "Layout couldn't be saved. Changes are preserved locally." }), widgets.length ? jsx("div", { className: styles$8.grid, children: widgets.map((widget) => jsx("div", { className: styles$8[`size${widget.size}`], children: jsx(WidgetCard, { widget: widget, editMode: editMode, onRefresh: onRefresh, onRemove: onRemove, onResize: onResize }) }, widget.id)) })
1761
- : jsxs("div", { className: styles$8.emptyPage, children: [jsx(PlusIcon$2, { size: 28 }), jsx("strong", { children: "Your home page is empty" }), jsx("span", { children: "Use \"Customize\" to add cards from the catalog." })] }), catalogOpen && jsxs(Fragment, { children: [jsx("button", { type: "button", className: styles$8.scrim, "aria-label": "Close card catalog", onClick: () => setCatalogOpen(false) }), jsxs("aside", { className: styles$8.catalog, "aria-label": "Add cards", children: [jsxs("header", { children: [jsxs("div", { children: [jsx("h2", { children: "Add cards" }), jsx("p", { children: "Choose what appears on your home page." })] }), jsx("button", { type: "button", "aria-label": "Close card catalog", onClick: () => setCatalogOpen(false), children: jsx(CloseIcon, { size: 20 }) })] }), jsx("div", { className: styles$8.catalogBody, children: CATALOG.map((item) => jsxs("div", { className: styles$8.catalogItem, children: [jsx("span", { className: styles$8.catalogIcon, children: jsx(WidgetIcon, { type: item.type }) }), jsxs("div", { children: [jsx("strong", { children: item.title }), jsx("p", { children: item.description })] }), presentTypes.has(item.type) ? jsxs("span", { className: styles$8.added, children: [jsx(CheckIcon$2, { size: 16 }), "Added"] }) : jsxs("button", { type: "button", onClick: () => onAddWidget?.(item.type), children: [jsx(PlusIcon$2, { size: 16 }), "Add"] })] }, item.type)) }), jsx("footer", { children: "Each card can appear once on your home page." })] })] })] }));
1993
+ return (jsxs("div", { className: [styles$8.page, className].filter(Boolean).join(' '), children: [jsx(PageBanners, { systemBanners: systemBanners, alertBanners: alertBanners }), jsxs("header", { className: styles$8.pageHeader, children: [jsxs("div", { children: [jsxs("h1", { children: [greeting, firstName ? `, ${firstName}` : ''] }), accountName && jsxs("p", { children: ["Here's your personalized travel overview for ", accountName, "."] })] }), jsx("div", { className: styles$8.pageActions, children: editMode ? jsxs(Fragment, { children: [jsxs("button", { type: "button", className: styles$8.outlineButton, onClick: () => setCatalogOpen(true), children: [jsx(PlusIcon$2, { size: 20 }), "Add card"] }), jsx("button", { type: "button", className: styles$8.textButton, onClick: onReset, children: "Reset to default" }), jsxs("button", { type: "button", className: styles$8.primaryButton, onClick: () => { setEditMode(false); setCatalogOpen(false); }, children: [jsx(CheckIcon$2, { size: 20 }), "Done"] })] }) : jsxs("button", { type: "button", className: styles$8.customizeButton, onClick: () => setEditMode(true), children: [jsx(SettingsIcon, { size: 20 }), "Customize Your Home Page"] }) })] }), editMode && jsxs("div", { className: styles$8.editBanner, children: [jsx(EditIcon$2, { size: 20 }), jsxs("span", { children: [jsx("strong", { children: "Customizing your home page." }), " Drag cards to reorder, resize with S / M / L, or remove cards. Your layout saves automatically."] })] }), syncStatus === 'saving' && jsx("p", { className: styles$8.syncStatus, "aria-live": "polite", children: "Saving layout\u2026" }), syncStatus === 'error' && jsx("p", { className: [styles$8.syncStatus, styles$8.syncError].join(' '), role: "alert", children: "Layout couldn't be saved. Changes are preserved locally." }), widgets.length ? jsx("div", { className: styles$8.grid, children: widgets.map((widget, index) => jsx("div", { className: styles$8[`size${widget.size}`], draggable: editMode, onDragStart: (event) => { if (!editMode)
1994
+ return; setDragFrom(index); const ghost = document.createElement('div'); ghost.className = styles$8.dragGhost; document.body.appendChild(ghost); dragGhost.current = ghost; event.dataTransfer.setDragImage(ghost, 0, 0); }, onDragOver: (event) => event.preventDefault(), onDrop: () => { if (dragFrom !== null && dragFrom !== index)
1995
+ onReorder?.(dragFrom, index); setDragFrom(null); }, onDragEnd: () => { setDragFrom(null); dragGhost.current?.remove(); dragGhost.current = null; }, children: jsx(WidgetCard, { widget: widget, editMode: editMode, index: index, count: widgets.length, onRefresh: onRefresh, onRemove: onRemove, onResize: onResize, onReorder: onReorder, onTravelerRangeChange: onTravelerRangeChange, onNavigate: onNavigate }) }, widget.id)) }) : jsxs("div", { className: styles$8.emptyPage, children: [jsx(PlusIcon$2, { size: 28 }), jsx("strong", { children: "Your home page is empty" }), jsx("span", { children: "Use \"Customize\" to add cards from the catalog." })] }), catalogOpen && jsxs(Fragment, { children: [jsx("button", { type: "button", className: styles$8.scrim, "aria-label": "Close card catalog", onClick: () => setCatalogOpen(false) }), jsxs("aside", { className: styles$8.catalog, role: "dialog", "aria-modal": "true", "aria-label": "Add cards", children: [jsxs("header", { children: [jsxs("div", { children: [jsx("h2", { children: "Add a card" }), jsx("p", { children: "Cards available to your role for this account" })] }), jsx("button", { type: "button", "aria-label": "Close card catalog", onClick: () => setCatalogOpen(false), children: jsx(CloseIcon, { size: 20 }) })] }), jsx("div", { className: styles$8.catalogBody, children: CATALOG.map((item) => jsxs("div", { className: styles$8.catalogItem, children: [jsx("span", { className: styles$8.catalogIcon, children: jsx(WidgetIcon, { type: item.type }) }), jsxs("div", { children: [jsx("strong", { children: item.title }), jsx("span", { children: "Account" }), jsx("p", { children: item.description })] }), presentTypes.has(item.type) ? jsxs("span", { className: styles$8.added, children: [jsx(CheckIcon$2, { size: 16 }), "Added"] }) : jsxs("button", { type: "button", onClick: () => onAddWidget?.(item.type), children: [jsx(PlusIcon$2, { size: 16 }), "Add"] })] }, item.type)) }), jsx("footer", { children: "Each card can appear once on your home page." })] })] })] }));
1762
1996
  };
1763
1997
 
1764
1998
  var styles$7 = {"sidebarSection":"GroupTravelRequestPage-module_sidebarSection__reGmm","sidebarTitle":"GroupTravelRequestPage-module_sidebarTitle__G-Oc7","formContent":"GroupTravelRequestPage-module_formContent__1nzfw","field":"GroupTravelRequestPage-module_field__-HfoK","label":"GroupTravelRequestPage-module_label__sEOeK","input":"GroupTravelRequestPage-module_input__lXQDl","select":"GroupTravelRequestPage-module_select__D7ICw","textarea":"GroupTravelRequestPage-module_textarea__AYtX1","radioGroup":"GroupTravelRequestPage-module_radioGroup__xP97-","radioLabel":"GroupTravelRequestPage-module_radioLabel__9wYXU","segmentHeader":"GroupTravelRequestPage-module_segmentHeader__8a1Re"};
@@ -2054,7 +2288,7 @@ const NotFoundPage = ({ errorCode = '404', title = 'Page Not Found', message = '
2054
2288
  };
2055
2289
  NotFoundPage.displayName = 'NotFoundPage';
2056
2290
 
2057
- var styles$3 = {"page":"TeamManagementPage-module_page__iRm2r","header":"TeamManagementPage-module_header__ychcg","tabNav":"TeamManagementPage-module_tabNav__uJdI0","tabButton":"TeamManagementPage-module_tabButton__lvZVy","active":"TeamManagementPage-module_active__weGUn","tabIcon":"TeamManagementPage-module_tabIcon__OuuMJ","tabBadge":"TeamManagementPage-module_tabBadge__dapL0","body":"TeamManagementPage-module_body__10aka","main":"TeamManagementPage-module_main__-lFtT","sidebar":"TeamManagementPage-module_sidebar__u8syG","footer":"TeamManagementPage-module_footer__he9G0"};
2291
+ var styles$3 = {"page":"TeamManagementPage-module_page__iRm2r","overview":"TeamManagementPage-module_overview__HDnLX","overviewHeader":"TeamManagementPage-module_overviewHeader__OYpB8","overviewGrid":"TeamManagementPage-module_overviewGrid__u8VZy","contactsColumn":"TeamManagementPage-module_contactsColumn__g-gm8","header":"TeamManagementPage-module_header__ychcg","tabNav":"TeamManagementPage-module_tabNav__uJdI0","tabButton":"TeamManagementPage-module_tabButton__lvZVy","active":"TeamManagementPage-module_active__weGUn","tabIcon":"TeamManagementPage-module_tabIcon__OuuMJ","tabBadge":"TeamManagementPage-module_tabBadge__dapL0","body":"TeamManagementPage-module_body__10aka","main":"TeamManagementPage-module_main__-lFtT","sidebar":"TeamManagementPage-module_sidebar__u8syG","footer":"TeamManagementPage-module_footer__he9G0"};
2058
2292
 
2059
2293
  const RosterIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }), jsx("circle", { cx: "9", cy: "7", r: "4" }), jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }), jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })] }));
2060
2294
  const ContactsIcon = () => (jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [jsx("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }), jsx("polyline", { points: "22,6 12,13 2,6" })] }));
@@ -2069,8 +2303,11 @@ const DEFAULT_TABS = [
2069
2303
  /**
2070
2304
  * TeamManagementPage - Layout for team management with tabbed navigation
2071
2305
  */
2072
- const TeamManagementPage = ({ header, tabs = DEFAULT_TABS, activeTab = 'roster', onTabChange, children, sidebar, footer, className = '', }) => {
2306
+ const TeamManagementPage = ({ variant = 'team', title = 'Team Management', teamPanel, contactsTitle = 'School Contacts', contactAlert, contacts, header, tabs = DEFAULT_TABS, activeTab = 'roster', onTabChange, children, sidebar, footer, className = '', }) => {
2073
2307
  const pageClasses = [styles$3.page, className].filter(Boolean).join(' ');
2308
+ if (variant === 'overview') {
2309
+ return (jsxs("div", { className: [styles$3.overview, className].filter(Boolean).join(' '), children: [jsx("header", { className: styles$3.overviewHeader, children: jsx("h1", { children: title }) }), jsxs("div", { className: styles$3.overviewGrid, children: [jsx("aside", { children: teamPanel }), jsxs("section", { className: styles$3.contactsColumn, children: [jsx("h2", { children: contactsTitle }), contactAlert, contacts] })] })] }));
2310
+ }
2074
2311
  return (jsxs("div", { className: pageClasses, children: [header && jsx("div", { className: styles$3.header, children: header }), jsx("div", { className: styles$3.tabNav, children: tabs.map((tab) => (jsxs("button", { type: "button", className: [
2075
2312
  styles$3.tabButton,
2076
2313
  activeTab === tab.id ? styles$3.active : '',
@@ -2078,7 +2315,7 @@ const TeamManagementPage = ({ header, tabs = DEFAULT_TABS, activeTab = 'roster',
2078
2315
  };
2079
2316
  TeamManagementPage.displayName = 'TeamManagementPage';
2080
2317
 
2081
- var styles$2 = {"page":"TeamSchedulePage-module_page__ubf0D","header":"TeamSchedulePage-module_header__kS9hw","headerMobile":"TeamSchedulePage-module_headerMobile__3oBL2","titleSection":"TeamSchedulePage-module_titleSection__IAfn0","title":"TeamSchedulePage-module_title__XA2Pn","filters":"TeamSchedulePage-module_filters__yJBro","metrics":"TeamSchedulePage-module_metrics__lzVBG","metric":"TeamSchedulePage-module_metric__xhoOH","metricValue":"TeamSchedulePage-module_metricValue__-pZxP","metricLabel":"TeamSchedulePage-module_metricLabel__am8yI","actions":"TeamSchedulePage-module_actions__XNEbT","content":"TeamSchedulePage-module_content__-5J1x"};
2318
+ var styles$2 = {"page":"TeamSchedulePage-module_page__ubf0D","header":"TeamSchedulePage-module_header__kS9hw","headerMobile":"TeamSchedulePage-module_headerMobile__3oBL2","titleSection":"TeamSchedulePage-module_titleSection__IAfn0","title":"TeamSchedulePage-module_title__XA2Pn","filters":"TeamSchedulePage-module_filters__yJBro","metrics":"TeamSchedulePage-module_metrics__lzVBG","metric":"TeamSchedulePage-module_metric__xhoOH","metricValue":"TeamSchedulePage-module_metricValue__-pZxP","metricLabel":"TeamSchedulePage-module_metricLabel__am8yI","content":"TeamSchedulePage-module_content__-5J1x"};
2082
2319
 
2083
2320
  /**
2084
2321
  * TeamSchedulePage - Team travel schedule page layout
@@ -2089,7 +2326,7 @@ var styles$2 = {"page":"TeamSchedulePage-module_page__ubf0D","header":"TeamSched
2089
2326
  * - Action buttons
2090
2327
  * - Schedule table (compact or expanded view)
2091
2328
  */
2092
- const TeamSchedulePage = ({ title = 'Team Travel Schedule', mobileTitle = 'Travel Schedule', metrics = [], teamFilter, serviceFilter, actions, compactView, expandedView, viewMode = 'compact', isMobile = false, className = '', }) => {
2329
+ const TeamSchedulePage = ({ title = 'Team Travel Schedule', mobileTitle = 'Travel Schedule', metrics = [], summary, teamFilter, serviceFilter, actions, compactView, expandedView, viewMode = 'compact', isMobile = false, className = '', }) => {
2093
2330
  const pageClasses = [
2094
2331
  styles$2.page,
2095
2332
  className,
@@ -2098,11 +2335,11 @@ const TeamSchedulePage = ({ title = 'Team Travel Schedule', mobileTitle = 'Trave
2098
2335
  styles$2.header,
2099
2336
  isMobile ? styles$2.headerMobile : '',
2100
2337
  ].filter(Boolean).join(' ');
2101
- return (jsxs("div", { className: pageClasses, children: [jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$2.titleSection, children: [jsx("h1", { className: styles$2.title, children: isMobile ? mobileTitle : title }), jsxs("div", { className: styles$2.filters, children: [teamFilter, serviceFilter] })] }), metrics.length > 0 && (jsx("div", { className: styles$2.metrics, children: metrics.map((metric, i) => (jsxs("div", { className: styles$2.metric, children: [jsxs("span", { className: styles$2.metricValue, children: [metric.prefix, metric.value, metric.suffix] }), jsx("span", { className: styles$2.metricLabel, children: metric.label })] }, i))) }))] }), actions && (jsx("div", { className: styles$2.actions, children: actions })), jsx("div", { className: styles$2.content, children: viewMode === 'compact' ? compactView : expandedView })] }));
2338
+ return (jsxs("div", { className: pageClasses, children: [jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$2.titleSection, children: [jsx("h1", { className: styles$2.title, children: isMobile ? mobileTitle : title }), jsxs("div", { className: styles$2.filters, children: [teamFilter, serviceFilter] })] }), (summary || metrics.length > 0) && (jsx("div", { className: styles$2.metrics, children: summary ?? metrics.map((metric, i) => (jsxs("div", { className: styles$2.metric, children: [jsxs("span", { className: styles$2.metricValue, children: [metric.prefix, metric.value, metric.suffix] }), jsx("span", { className: styles$2.metricLabel, children: metric.label })] }, i))) }))] }), actions, jsx("div", { className: styles$2.content, children: viewMode === 'compact' ? compactView : expandedView })] }));
2102
2339
  };
2103
2340
  TeamSchedulePage.displayName = 'TeamSchedulePage';
2104
2341
 
2105
- var styles$1 = {"page":"TeamTravelCalendarPage-module_page__uRR69","header":"TeamTravelCalendarPage-module_header__WWbAV","headerMobile":"TeamTravelCalendarPage-module_headerMobile__qSE3G","titleSection":"TeamTravelCalendarPage-module_titleSection__CjVKu","title":"TeamTravelCalendarPage-module_title__a03rT","filters":"TeamTravelCalendarPage-module_filters__BMjwJ","metrics":"TeamTravelCalendarPage-module_metrics__qy4Vv","metric":"TeamTravelCalendarPage-module_metric__72yC9","metricValue":"TeamTravelCalendarPage-module_metricValue__z83Jz","metricLabel":"TeamTravelCalendarPage-module_metricLabel__jkWNF","contentWrapper":"TeamTravelCalendarPage-module_contentWrapper__9LKRp","content":"TeamTravelCalendarPage-module_content__w4LsI","sidebar":"TeamTravelCalendarPage-module_sidebar__8IV7J"};
2342
+ var styles$1 = {"page":"TeamTravelCalendarPage-module_page__uRR69","header":"TeamTravelCalendarPage-module_header__WWbAV","headerMobile":"TeamTravelCalendarPage-module_headerMobile__qSE3G","titleSection":"TeamTravelCalendarPage-module_titleSection__CjVKu","title":"TeamTravelCalendarPage-module_title__a03rT","filters":"TeamTravelCalendarPage-module_filters__BMjwJ","metrics":"TeamTravelCalendarPage-module_metrics__qy4Vv","metric":"TeamTravelCalendarPage-module_metric__72yC9","metricValue":"TeamTravelCalendarPage-module_metricValue__z83Jz","metricLabel":"TeamTravelCalendarPage-module_metricLabel__jkWNF","content":"TeamTravelCalendarPage-module_content__w4LsI"};
2106
2343
 
2107
2344
  /**
2108
2345
  * TeamTravelCalendarPage - Team travel calendar page layout
@@ -2114,7 +2351,7 @@ var styles$1 = {"page":"TeamTravelCalendarPage-module_page__uRR69","header":"Tea
2114
2351
  * - Main calendar/card/list view
2115
2352
  * - Sidebar for due dates
2116
2353
  */
2117
- const TeamTravelCalendarPage = ({ title = 'Team Travel Calendar', mobileTitle = 'Travel Calendar', metrics = [], teamFilter, serviceFilter, viewSelector, typeSelector, calendarView, cardView, listView, sidebar, view = 'calendar', sidebarOpen = false, isMobile = false, className = '', }) => {
2354
+ const TeamTravelCalendarPage = ({ title = 'Team Travel Calendar', mobileTitle = 'Travel Calendar', metrics = [], summary, teamFilter, serviceFilter, viewSelector, typeSelector, calendarView, cardView, listView, sidebar, view = 'calendar', sidebarOpen: _sidebarOpen = false, isMobile = false, className = '', }) => {
2118
2355
  const pageClasses = [
2119
2356
  styles$1.page,
2120
2357
  className,
@@ -2135,7 +2372,7 @@ const TeamTravelCalendarPage = ({ title = 'Team Travel Calendar', mobileTitle =
2135
2372
  return null;
2136
2373
  }
2137
2374
  };
2138
- return (jsxs("div", { className: pageClasses, children: [jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$1.titleSection, children: [jsx("h1", { className: styles$1.title, children: isMobile ? mobileTitle : title }), jsxs("div", { className: styles$1.filters, children: [teamFilter, serviceFilter, viewSelector, typeSelector] })] }), metrics.length > 0 && (jsx("div", { className: styles$1.metrics, children: metrics.map((metric, i) => (jsxs("button", { className: styles$1.metric, onClick: metric.onClick, type: "button", disabled: !metric.onClick, children: [jsx("span", { className: styles$1.metricValue, children: metric.value }), jsx("span", { className: styles$1.metricLabel, children: metric.label })] }, i))) }))] }), jsxs("div", { className: styles$1.contentWrapper, children: [jsx("div", { className: styles$1.content, children: renderView() }), sidebar && sidebarOpen && (jsx("div", { className: styles$1.sidebar, children: sidebar }))] })] }));
2375
+ return (jsxs("div", { className: pageClasses, children: [jsxs("div", { className: headerClasses, children: [jsxs("div", { className: styles$1.titleSection, children: [jsx("h1", { className: styles$1.title, children: isMobile ? mobileTitle : title }), jsxs("div", { className: styles$1.filters, children: [teamFilter, serviceFilter, viewSelector, typeSelector] })] }), (summary || metrics.length > 0) && (jsx("div", { className: styles$1.metrics, children: summary ?? metrics.map((metric, i) => (jsxs("button", { className: styles$1.metric, onClick: metric.onClick, type: "button", disabled: !metric.onClick, children: [jsx("span", { className: styles$1.metricValue, children: metric.value }), jsx("span", { className: styles$1.metricLabel, children: metric.label })] }, i))) }))] }), jsx("div", { className: styles$1.content, children: renderView() }), sidebar] }));
2139
2376
  };
2140
2377
  TeamTravelCalendarPage.displayName = 'TeamTravelCalendarPage';
2141
2378
 
@@ -2159,5 +2396,5 @@ const TripDetailPage = ({ header, airSegment, groundSegment, hotelSegment, files
2159
2396
  };
2160
2397
  TripDetailPage.displayName = 'TripDetailPage';
2161
2398
 
2162
- export { Accordion, AdministrationPage, AirSegment, Alert, AppLayout, ArrowUpRightIcon, Avatar, AvatarGroup, Badge, BuildingIcon, BusIcon$3 as BusIcon, Button, CalendarIcon$1 as CalendarIcon, CarIcon$2 as CarIcon, Card, CardBody, CardFooter, CardHeader, CharterManifestPage, CheckIcon$2 as CheckIcon, Checkbox, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon$1 as ChevronRightIcon, ChevronUpIcon, CloseIcon, ConfirmModal, ContactList, ContactUsPage, CubeIcon, DashboardIcon, DashboardPage, Datepicker, DocumentIcon, DownloadIcon, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, EditIcon$2 as EditIcon, EyeIcon, FilterChip, FilterIcon$1 as FilterIcon, FormField, FormRow, FormSection, GridIcon, GroundSegment, GroupTravelRequestPage, HomeIcon, HotelIcon$4 as HotelIcon, HotelSegment, Icons, IndividualTravelPage, InfoCenterPage, InfoIcon$1 as InfoIcon, Input, LightbulbIcon, LimoIcon, LockIcon$1 as LockIcon, LogoIcon, MailIcon, ManifestCapacityStats, ManifestViewToggle, MegaphoneIcon, MembershipPrograms, MenuIcon, Metric, MinusIcon, Modal, ModalFooter, Module, ModuleDivider, ModuleVerticalDivider, NavItem, NotFoundPage, PageBanners, PhoneIcon, PlaneIcon$4 as PlaneIcon, PlusIcon$2 as PlusIcon, PreferencesPanel, PrinterIcon, Progress, ProgressBar, ProgressCircle, RailIcon, RefreshIcon, ReportIcon, RequestFormFooter, RequestFormHeader, RequestFormLayout, RequestSummary, RosterToolbar, SearchField, SearchIcon$1 as SearchIcon, Segment, Select, SelectFilter, ServiceToggle, ServiceToggleList, SettingsIcon, Sidenav, Spinner, StatusBadge, SummarySection, Table, Tag, TeamCard, TeamHeader, TeamManagementPage, TeamSchedulePage, TeamTravelCalendarPage, Textarea, Timepicker, Title, Toggle, Tooltip, Topbar, TrashIcon$2 as TrashIcon, TravelServiceIcon, TravelerForm, TrendDownIcon, TrendUpIcon, TripDetailPage, TripSegment, TripTable, TypeIcon, UserIcon, UsersIcon$1 as UsersIcon, WarningIcon$1 as WarningIcon, XIcon };
2399
+ export { Accordion, AdministrationPage, AirSegment, Alert, AppLayout, ArrowDownLeftIcon, ArrowUpRightIcon, Avatar, AvatarGroup, Badge, BuildingIcon, BusIcon$3 as BusIcon, Button, CalendarIcon$1 as CalendarIcon, CalendarTypeSelector, CalendarViewSelector, CarIcon$2 as CarIcon, Card, CardBody, CardFooter, CardHeader, CharterManifestPage, CheckIcon$2 as CheckIcon, Checkbox, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon$1 as ChevronRightIcon, ChevronUpIcon, CloseIcon, ConfirmModal, ContactList, ContactUsPage, CubeIcon, DashboardIcon, DashboardPage, Datepicker, DocumentIcon, DownloadIcon, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, DueDatesDrawer, EditIcon$2 as EditIcon, EyeIcon, FilterChip, FilterIcon$1 as FilterIcon, FormField, FormRow, FormSection, FormStack, GridIcon, GroundSegment, GroupTravelRequestPage, HomeIcon, HotelIcon$4 as HotelIcon, HotelSegment, Icons, IndividualTravelPage, InfoCenterPage, InfoIcon$1 as InfoIcon, Input, LightbulbIcon, LimoIcon, LockIcon$1 as LockIcon, LogoIcon, MailIcon, ManifestCapacityStats, ManifestViewToggle, MegaphoneIcon, MembershipPrograms, MenuIcon, Metric, MinusIcon, Modal, ModalFooter, Module, ModuleDivider, ModuleVerticalDivider, NavItem, NotFoundPage, PageBanners, PhoneIcon, PlaneIcon$4 as PlaneIcon, PlusIcon$2 as PlusIcon, PreferencesPanel, PrinterIcon, Progress, ProgressBar, ProgressCircle, RailIcon, RefreshIcon, ReportIcon, RequestFormFooter, RequestFormHeader, RequestFormLayout, RequestSummary, RosterToolbar, SUPPLIER_TYPE_OPTIONS, SchoolContactForm, SearchField, SearchIcon$1 as SearchIcon, Segment, SegmentedSelector, Select, SelectFilter, ServiceToggle, ServiceToggleList, SettingsIcon, Sidenav, Spinner, StatusBadge, SummarySection, SupplierTypeToggle, Table, Tag, TeamCard, TeamHeader, TeamManagementPage, TeamScheduleActions, TeamScheduleExpandedTable, TeamSchedulePage, TeamSubMenu, TeamTravelCalendarPage, Textarea, Timepicker, Title, Toggle, Tooltip, Topbar, TrashIcon$2 as TrashIcon, TravelServiceIcon, TravelSummaryMetrics, TravelerForm, TrendDownIcon, TrendUpIcon, TripDetailPage, TripSegment, TripTable, TypeIcon, UserIcon, UsersIcon$1 as UsersIcon, WarningIcon$1 as WarningIcon, XIcon, formatCompactTripCost, formatTeamScheduleTravelDates, isTravelDueDateCompleted };
2163
2400
  //# sourceMappingURL=index.esm.js.map