sales-frontend-components 0.0.94 → 0.0.96

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
@@ -2,21 +2,23 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useController } from 'react-hook-form';
3
3
  import { CheckboxButton, Checkbox, isDate, DatePicker, DateRangePicker, Table, Accordion, Radio, FormField, Select, Tab, useModalState, Modal, Button, ModalUtils, SegmentGroup, FormCore, RadioGroup, useDropDown, List, ListItem, Loading } from 'sales-frontend-design-system';
4
4
  import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
5
- import { useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchAddressQuery, useSearchPostalCodeQuery, useSearchAddressStandardizationQuery, useSearchCommonCodeQuery, useSearchOrganizationQuery, useSearchEmployeeProfileQuery, useSearchVehicleQuery, useSearchRiskGradeQuery, getDspCustomerListMethod, useSearchCustomerListQuery, getRemoteIdentityVerificationSystemToken } from 'sales-frontend-api/method';
5
+ import { useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchAddressQuery, useSearchPostalCodeQuery, useSearchAddressStandardizationQuery, useSearchCommonCodeQuery, useSearchCustomerListQuery, useSearchNationalityQuery, useSearchVisaQuery, getDspCustomerListMethod, useSearchEmployeeProfileQuery, useSearchVehicleQuery, useSearchRiskGradeQuery, useSearchOrganizationQuery, getRemoteIdentityVerificationSystemToken } from 'sales-frontend-api/method';
6
6
  import { IconMainUiSearch, IconIllustCamera, IconGraphicsBankSaneop, IconGraphicsBankKiup, IconGraphicsBankKukmin, IconGraphicsBankSuhyeop, IconGraphicsBankJangGiSinYong, IconGraphicsBankNhNonghyeop, IconGraphicsBankJiyeokNonghyeop, IconGraphicsBankWoori, IconGraphicsBankScJeil, IconGraphicsBankSinhan, IconGraphicsBankHankookCity, IconGraphicsBankDaegu, IconGraphicsBankBusan, IconGraphicsBankGwangju, IconGraphicsBankJeju, IconGraphicsBankJeonbuk, IconGraphicsBankGyeongnam, IconGraphicsBankSaemaulGeumgo, IconGraphicsBankSinhyeop, IconGraphicsBankJeochuk, IconGraphicsBankHsbc, IconGraphicsBankABNAMRO, IconGraphicsBankSanlim, IconGraphicsBankPost, IconGraphicsBankKebHana, IconGraphicsBankKBank, IconGraphicsBankKakaoBank, IconGraphicsBankTossBank, IconGraphicsStockYuantaJeungkwon, IconGraphicsStockKbJeungkwon, IconGraphicsStockMiraeAssetJeungkwon, IconGraphicsStockSamsungJeungkwon, IconGraphicsStockHankookTujajeungkwon, IconGraphicsStockNhWooriTujajeungkwon, IconGraphicsStockGyoboJeungkwon, IconGraphicsStockHiTujajeungkwon, IconGraphicsStockHyundaiChaJeungkwon, IconGraphicsStockKiwoomJeungkwon, IconGraphicsStockSkJeungkwon, IconGraphicsStockDaesinJeungkwon, IconGraphicsStockHanwhaTujajeungkwon, IconGraphicsStockHanaGeumyungTujajeungkwon, IconGraphicsStockSinhanTujajeungkwon, IconGraphicsStockDbGeumyungTujajeungkwon, IconGraphicsStockYujinTujajeungkwon, IconGraphicsStockMeritzJeungkwon, IconGraphicsStockKakaoPayJeungkwon, IconGraphicsStockNhTujajeungkwon, IconGraphicsStockBugukJeungkwon, IconGraphicsStockSinyeongJeungkwon, IconGraphicsStockHochulEopsum, IconGraphicsFeedbackEmpty, IconIllustGrade, IconIllustJob, IconSubUiArrowRight, IconIllustVehicle } from 'sales-frontend-assets';
7
7
  import styles from './modal/pre-standard/job-search-modal/job-search-modal.module.scss';
8
8
  import styles$1 from './step-indicator/step-indicator.module.scss';
9
9
  import styles$2 from './camera/camera.module.scss';
10
10
  import styles$3 from './modal/standard/address-search/select-address.module.scss';
11
11
  import styles$4 from './modal/standard/bank-stock-search/bank-stock-search-modal.module.scss';
12
- import styles$5 from './modal/pre-standard/organization-search-modal/organization-search-modal.module.scss';
13
- import styles$6 from './modal/pre-standard/employee-search-modal/employee-search-modal.module.scss';
14
- import styles$7 from './modal/pre-standard/job-vehicle-search-modal/job-vehicle-search-modal.module.scss';
15
- import styles$8 from './modal/pre-standard/vehicle-search-modal/vehicle-search-modal.module.scss';
12
+ import styles$5 from './modal/standard/customer-search/customer-search.module.scss';
13
+ import styles$6 from './modal/standard/nationality-search/select-nationality.module.scss';
14
+ import { isClient, MessageEventManager } from 'sales-frontend-utils';
15
+ import styles$7 from './modal/standard/visa-search/select-visa.module.scss';
16
16
  import { useQuery } from '@tanstack/react-query';
17
- import styles$9 from './modal/pre-standard/dea-customer-search-modal/dea-customer-search-modal.module.scss';
18
- import styles$a from './modal/standard/customer-search/customer-search.module.scss';
19
- import { MessageEventManager } from 'sales-frontend-utils';
17
+ import styles$8 from './modal/pre-standard/dea-customer-search-modal/dea-customer-search-modal.module.scss';
18
+ import styles$9 from './modal/pre-standard/employee-search-modal/employee-search-modal.module.scss';
19
+ import styles$a from './modal/pre-standard/job-vehicle-search-modal/job-vehicle-search-modal.module.scss';
20
+ import styles$b from './modal/pre-standard/vehicle-search-modal/vehicle-search-modal.module.scss';
21
+ import styles$c from './modal/pre-standard/organization-search-modal/organization-search-modal.module.scss';
20
22
 
21
23
  const FormCheckboxButton = ({
22
24
  name,
@@ -304,15 +306,15 @@ function JobSearchDetail({ occupationTypeCode, occupationIndustryCode }) {
304
306
  ] }) }) });
305
307
  }
306
308
 
307
- const cx$g = classNames.bind(styles);
309
+ const cx$j = classNames.bind(styles);
308
310
  function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
309
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$g("category-section"), children: [
310
- /* @__PURE__ */ jsxs("p", { className: cx$g("result-title"), children: [
311
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$j("category-section"), children: [
312
+ /* @__PURE__ */ jsxs("p", { className: cx$j("result-title"), children: [
311
313
  "\uCD1D ",
312
314
  /* @__PURE__ */ jsx("span", { className: "text-primary", children: filteredJobs.length }),
313
315
  "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
314
316
  ] }),
315
- /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$g("job-radio-root"), onToggle: () => {
317
+ /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$j("job-radio-root"), onToggle: () => {
316
318
  }, children: filteredJobs.map((job, index) => /* @__PURE__ */ jsxs(
317
319
  Accordion.Item,
318
320
  {
@@ -343,23 +345,23 @@ function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
343
345
  ] }) });
344
346
  }
345
347
 
346
- const cx$f = classNames.bind(styles);
348
+ const cx$i = classNames.bind(styles);
347
349
  function JobSearchFavorite({ filteredJobs, onJobSelect }) {
348
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$f("popular-jobs"), children: [
350
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$i("popular-jobs"), children: [
349
351
  /* @__PURE__ */ jsx("p", { children: "\uB9CE\uC774 \uCC3E\uB294 \uC9C1\uC885" }),
350
- /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$f("job-radio-root"), children: filteredJobs.map((job, index) => /* @__PURE__ */ jsxs(
352
+ /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$i("job-radio-root"), children: filteredJobs.map((job, index) => /* @__PURE__ */ jsxs(
351
353
  Accordion.Item,
352
354
  {
353
355
  id: `item-${job.occupationIndustryCode}-${index}`,
354
- className: cx$f("accordion-item"),
356
+ className: cx$i("accordion-item"),
355
357
  children: [
356
- /* @__PURE__ */ jsx(Accordion.HeaderDiv, { className: cx$f("accordion-header-item"), children: /* @__PURE__ */ jsxs(
358
+ /* @__PURE__ */ jsx(Accordion.HeaderDiv, { className: cx$i("accordion-header-item"), children: /* @__PURE__ */ jsxs(
357
359
  Radio.Item,
358
360
  {
359
361
  size: "small",
360
362
  value: job.occupationIndustryCode,
361
363
  onChange: () => onJobSelect(job),
362
- className: cx$f("radio-item"),
364
+ className: cx$i("radio-item"),
363
365
  children: [
364
366
  job.occupationIndustryName,
365
367
  "(",
@@ -382,15 +384,15 @@ function JobSearchFavorite({ filteredJobs, onJobSelect }) {
382
384
  ] }) });
383
385
  }
384
386
 
385
- const cx$e = classNames.bind(styles);
387
+ const cx$h = classNames.bind(styles);
386
388
  function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
387
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$e("popular-jobs"), children: [
388
- /* @__PURE__ */ jsxs("p", { className: cx$e("result-title"), children: [
389
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$h("popular-jobs"), children: [
390
+ /* @__PURE__ */ jsxs("p", { className: cx$h("result-title"), children: [
389
391
  "\uCD1D ",
390
392
  /* @__PURE__ */ jsx("span", { className: "text-primary", children: filteredJobs.length }),
391
393
  "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
392
394
  ] }),
393
- /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$e("job-radio-root"), children: filteredJobs.map((job) => /* @__PURE__ */ jsxs(
395
+ /* @__PURE__ */ jsx(Accordion.Root, { children: /* @__PURE__ */ jsx(Radio.Root, { name: "job-selection", size: "small", className: cx$h("job-radio-root"), children: filteredJobs.map((job) => /* @__PURE__ */ jsxs(
394
396
  Accordion.Item,
395
397
  {
396
398
  id: `item-${job.occupationIndustryCode}`,
@@ -427,7 +429,7 @@ function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
427
429
  }
428
430
 
429
431
  const { TextField: TextField$3 } = FormField;
430
- const cx$d = classNames.bind(styles);
432
+ const cx$g = classNames.bind(styles);
431
433
  const { Option } = Select;
432
434
  function JobSearch({
433
435
  activeTab,
@@ -465,7 +467,7 @@ function JobSearch({
465
467
  }
466
468
  ),
467
469
  /* @__PURE__ */ jsxs("div", { children: [
468
- activeTab === "jobName" && /* @__PURE__ */ jsxs("div", { className: cx$d("favorite-jobs-section"), children: [
470
+ activeTab === "jobName" && /* @__PURE__ */ jsxs("div", { className: cx$g("favorite-jobs-section"), children: [
469
471
  /* @__PURE__ */ jsx(
470
472
  TextField$3,
471
473
  {
@@ -487,8 +489,8 @@ function JobSearch({
487
489
  !searchTerm && /* @__PURE__ */ jsx(JobSearchFavorite, { filteredJobs, onJobSelect }),
488
490
  searchTerm && !isLoading && /* @__PURE__ */ jsx(JobSearchResult, { filteredJobs, onJobSelect, searchTerm })
489
491
  ] }),
490
- activeTab === "jobCode" && /* @__PURE__ */ jsxs("div", { className: cx$d("select-jobs-section"), children: [
491
- /* @__PURE__ */ jsxs("div", { className: cx$d("category-section"), children: [
492
+ activeTab === "jobCode" && /* @__PURE__ */ jsxs("div", { className: cx$g("select-jobs-section"), children: [
493
+ /* @__PURE__ */ jsxs("div", { className: cx$g("category-section"), children: [
492
494
  /* @__PURE__ */ jsx(
493
495
  Select,
494
496
  {
@@ -920,7 +922,7 @@ const FormTextField = ({
920
922
  );
921
923
  };
922
924
 
923
- const cx$c = classNames.bind(styles$1);
925
+ const cx$f = classNames.bind(styles$1);
924
926
  const StepIndicator = ({
925
927
  items,
926
928
  onClickItem,
@@ -955,26 +957,26 @@ const StepIndicator = ({
955
957
  ModalUtils.alert("\uC774\uC804 \uB2E8\uACC4\uB97C \uBAA8\uB450 \uC644\uB8CC\uD574\uC57C \uC120\uD0DD\uD55C \uB2E8\uACC4\uB85C\n\uC774\uB3D9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.", "\uC774\uC804 \uB2E8\uACC4\uB97C \uBA3C\uC800 \uC9C4\uD589\uD574\uC8FC\uC138\uC694");
956
958
  }
957
959
  };
958
- return /* @__PURE__ */ jsxs("div", { className: cx$c("stepper-layout", { loading: isLoading }), children: [
959
- /* @__PURE__ */ jsx("div", { className: cx$c("stepper"), children: steps.map((item, idx) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
960
+ return /* @__PURE__ */ jsxs("div", { className: cx$f("stepper-layout", { loading: isLoading }), children: [
961
+ /* @__PURE__ */ jsx("div", { className: cx$f("stepper"), children: steps.map((item, idx) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
960
962
  /* @__PURE__ */ jsx(
961
963
  "div",
962
964
  {
963
- className: cx$c(
965
+ className: cx$f(
964
966
  "circle",
965
967
  { completed: item.isCompleted ?? false },
966
968
  { active: defaultValue === item.value || current === idx }
967
969
  ),
968
970
  onClick: () => handleClickStep?.(item),
969
- children: item.isCompleted ? /* @__PURE__ */ jsx("span", { className: cx$c("completed-icon") }) : idx + 1
971
+ children: item.isCompleted ? /* @__PURE__ */ jsx("span", { className: cx$f("completed-icon") }) : idx + 1
970
972
  }
971
973
  ),
972
- idx < steps.length - 1 && Array.from({ length: dotCount }).map((_, dotIdx) => /* @__PURE__ */ jsx("span", { className: cx$c("dot") }, `dot-${idx}-${dotIdx}`))
974
+ idx < steps.length - 1 && Array.from({ length: dotCount }).map((_, dotIdx) => /* @__PURE__ */ jsx("span", { className: cx$f("dot") }, `dot-${idx}-${dotIdx}`))
973
975
  ] }, `num-${idx}`)) }),
974
- /* @__PURE__ */ jsx("ul", { className: cx$c("step-labels"), children: steps.map((item, idx) => /* @__PURE__ */ jsx(
976
+ /* @__PURE__ */ jsx("ul", { className: cx$f("step-labels"), children: steps.map((item, idx) => /* @__PURE__ */ jsx(
975
977
  "li",
976
978
  {
977
- className: cx$c(
979
+ className: cx$f(
978
980
  { completed: steps[idx < 1 ? idx : idx - 1]?.isCompleted ?? false },
979
981
  { active: defaultValue === item.value || current === idx }
980
982
  ),
@@ -986,7 +988,7 @@ const StepIndicator = ({
986
988
  ] });
987
989
  };
988
990
 
989
- const cx$b = classNames.bind(styles$2);
991
+ const cx$e = classNames.bind(styles$2);
990
992
  function Attachment({
991
993
  photos,
992
994
  onAddPhoto,
@@ -1003,14 +1005,14 @@ function Attachment({
1003
1005
  };
1004
1006
  const renderPhotoSingle = () => {
1005
1007
  if (photos.length === 0) {
1006
- return /* @__PURE__ */ jsx("div", { className: cx$b("single-photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxs("button", { className: cx$b("add-photo-button-single"), onClick: handleAddPhoto, children: [
1008
+ return /* @__PURE__ */ jsx("div", { className: cx$e("single-photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxs("button", { className: cx$e("add-photo-button-single"), onClick: handleAddPhoto, children: [
1007
1009
  /* @__PURE__ */ jsx(IconIllustCamera, {}),
1008
1010
  /* @__PURE__ */ jsx("span", { children: buttonText || "\uC0AC\uC9C4 \uCCA8\uBD80\uD558\uAE30" })
1009
1011
  ] }) });
1010
1012
  }
1011
- return photos.map((photo) => /* @__PURE__ */ jsxs("div", { className: cx$b("single-photo-item"), children: [
1012
- /* @__PURE__ */ jsx("div", { className: cx$b("photo-placeholder"), children: /* @__PURE__ */ jsx("img", { src: photo.src, alt: photo.name, className: cx$b("photo-image") }) }),
1013
- /* @__PURE__ */ jsx("button", { className: cx$b("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
1013
+ return photos.map((photo) => /* @__PURE__ */ jsxs("div", { className: cx$e("single-photo-item"), children: [
1014
+ /* @__PURE__ */ jsx("div", { className: cx$e("photo-placeholder"), children: /* @__PURE__ */ jsx("img", { src: photo.src, alt: photo.name, className: cx$e("photo-image") }) }),
1015
+ /* @__PURE__ */ jsx("button", { className: cx$e("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
1014
1016
  ] }, photo.id));
1015
1017
  };
1016
1018
  const renderPhotoGrid = () => {
@@ -1018,12 +1020,12 @@ function Attachment({
1018
1020
  const gridItems = [];
1019
1021
  if (photos.length < maxPhotos) {
1020
1022
  gridItems.push(
1021
- /* @__PURE__ */ jsx("div", { className: cx$b("photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxs("button", { className: cx$b("add-photo-button"), onClick: handleAddPhoto, children: [
1023
+ /* @__PURE__ */ jsx("div", { className: cx$e("photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxs("button", { className: cx$e("add-photo-button"), onClick: handleAddPhoto, children: [
1022
1024
  /* @__PURE__ */ jsx(IconIllustCamera, {}),
1023
1025
  /* @__PURE__ */ jsx("span", { children: buttonText || "\uCCA8\uBD80\uD558\uAE30" }),
1024
- /* @__PURE__ */ jsxs("span", { className: cx$b("photo-count"), children: [
1026
+ /* @__PURE__ */ jsxs("span", { className: cx$e("photo-count"), children: [
1025
1027
  "(",
1026
- /* @__PURE__ */ jsx("span", { className: cx$b("photo-count-number"), children: photos.length }),
1028
+ /* @__PURE__ */ jsx("span", { className: cx$e("photo-count-number"), children: photos.length }),
1027
1029
  "/",
1028
1030
  maxPhotos,
1029
1031
  ")"
@@ -1033,9 +1035,9 @@ function Attachment({
1033
1035
  }
1034
1036
  photos.forEach((photo) => {
1035
1037
  gridItems.push(
1036
- /* @__PURE__ */ jsxs("div", { className: cx$b("photo-item"), children: [
1037
- /* @__PURE__ */ jsx("div", { className: cx$b("photo-placeholder"), children: /* @__PURE__ */ jsx("img", { src: photo.src, alt: photo.name, className: cx$b("photo-image") }) }),
1038
- /* @__PURE__ */ jsx("button", { className: cx$b("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
1038
+ /* @__PURE__ */ jsxs("div", { className: cx$e("photo-item"), children: [
1039
+ /* @__PURE__ */ jsx("div", { className: cx$e("photo-placeholder"), children: /* @__PURE__ */ jsx("img", { src: photo.src, alt: photo.name, className: cx$e("photo-image") }) }),
1040
+ /* @__PURE__ */ jsx("button", { className: cx$e("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
1039
1041
  ] }, photo.id)
1040
1042
  );
1041
1043
  });
@@ -1046,9 +1048,9 @@ function Attachment({
1046
1048
  return null;
1047
1049
  }
1048
1050
  if (type === "single") {
1049
- return /* @__PURE__ */ jsx("div", { className: cx$b("photo-single"), children: renderPhotoSingle() });
1051
+ return /* @__PURE__ */ jsx("div", { className: cx$e("photo-single"), children: renderPhotoSingle() });
1050
1052
  }
1051
- return /* @__PURE__ */ jsx("div", { className: cx$b("photo-grid", { linear: type === "linear" }), children: renderPhotoGrid() });
1053
+ return /* @__PURE__ */ jsx("div", { className: cx$e("photo-grid", { linear: type === "linear" }), children: renderPhotoGrid() });
1052
1054
  }
1053
1055
 
1054
1056
  const maxImageSize = 3 * 1024 * 1024;
@@ -1495,12 +1497,12 @@ function useCanvasPaint(paintProps = {}) {
1495
1497
 
1496
1498
  const testSignatureBase64Data = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAABkCAYAAACoy2Z3AAAQAElEQVR4AeydV6g2ORnHj733smvBiliws9jbhYoFREVQsYIFVBBRUBQRvbCgKIgFCyqoCCqiXiioN/ZesKEXYlkVXV11Xdde/z+/L/u95z0zSeadlmT+h+RkJvMkeZ5/kudJm3kveeQ/I1AvAncX67+S/+8B/glKM6X7uzIbwofI7YxA3QjYgNRdf1vl/p4S/Dz5L8qfLT/UfVkJLpSfymE8LjtVZs7HCNSCgA1ILTVlPkHg4/r3Z/nPy19XPteh4En7ICW4sjwzl48qHOMwQP9RBsw6hhoP0h0dKbGdEagZARuQmmuvfd6fLhF/Kv9veRT1gxVeUT7HMUN5nwjvKn95+YfKf0IeA6RglIOfqyiHS8jnun+IEHr8pXRtZwSqR8AGpPoqbE6Ar0miv8pjMN6q8Mbyue30t6J9vjxKmqWtx+n6q/JTOWYy8JXDz67BgJ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yuT9N5dz3rzYz+UfBDxIIegxA2tnfz7LqmvaI02Ic4a0hBpq0OgdA2GCzst4WSDjFUB+yUDNMhp8zPeW0TAU68MPqnPe139tg99BiEsRvbS6Mek6nGZ7w9jqLGmKO4l8aTMik77GOAYWgbDBaW5sflZSJAJWWSmswIGIFWENiTg895oKgx5ugEFPiSnjIp2/sYexVT+i0VVzqP5s8IGAEjYAQKRMAGpMBKMUtGwAgYgRoQsAE5pJacxggYASNgBI5sQNwIjIARMAJG4CAEbEAOgs2JjIARWAkBF1sQAjYgBVWGWTECRsAI1ISADUhNtWVejYARMAIFIWADUlBlLMGKyzACRsAITIWADchUSDofI2AEjMDGELAB2ViFW1wjYATWQqC9cm1A2qtTS2QEjIARWAQBG5BFYHYhRsAIGIH2ELABaa9OW5XIchkBI1AYAjYghVWI2TECRsAI1IKADUgtNWU+jYARMAJrIdBTrg1IDzCONgJGwAgYgTgCNiBxfPzUCBgBI2AEehCwAekBxtFGYDoEnJMRaBMBG5A269VSGQEjYARmR8AGZHaIXYARMAJGoE0EajAgbSJvqYyAETAClSNgA1J5BZp9I2AEjMBaCNiArIW8yzUCNSBgHo1ABAEbkAg4fmQEjIARMAL9CNiA9GPjJ0bACBgBIxBBwAYkAs74R87BCBgBI9AuAjYg7datJTMCRsAIzIqADcis8DpzI2AE1kLA5c6PwP8AAAD//+3/3TsAAAAGSURBVAMAJI6e9smFlTAAAAAASUVORK5CYII=";
1497
1499
 
1498
- const cx$a = classNames.bind(styles$3);
1499
- const { InputBox: InputBox$1, Input: Input$1 } = FormCore;
1500
+ const cx$d = classNames.bind(styles$3);
1501
+ const { InputBox: InputBox$3, Input: Input$3 } = FormCore;
1500
1502
  const AddressSearchInitialText = () => {
1501
- return /* @__PURE__ */ jsxs("div", { className: cx$a("search-result-list"), children: [
1502
- /* @__PURE__ */ jsx("p", { className: cx$a("guide-title"), children: "\uC774\uB807\uAC8C \uAC80\uC0C9\uD574 \uBCF4\uC138\uC694." }),
1503
- /* @__PURE__ */ jsxs("ul", { className: cx$a("guide"), children: [
1503
+ return /* @__PURE__ */ jsxs("div", { className: cx$d("search-result-list"), children: [
1504
+ /* @__PURE__ */ jsx("p", { className: cx$d("guide-title"), children: "\uC774\uB807\uAC8C \uAC80\uC0C9\uD574 \uBCF4\uC138\uC694." }),
1505
+ /* @__PURE__ */ jsxs("ul", { className: cx$d("guide"), children: [
1504
1506
  /* @__PURE__ */ jsx("li", { children: "\uB3C4\uB85C\uBA85/\uC9C0\uBA85\uACFC \uAC74\uBB3C\uBC88\uD638\uB97C \uD568\uAED8 \uC785\uB825\uD574\uC8FC\uC138\uC694" }),
1505
1507
  /* @__PURE__ */ jsx("li", { children: "\uC608) 63\uB85C 50, \uC5EC\uC758\uB3C4\uB3D9 60" }),
1506
1508
  /* @__PURE__ */ jsx("li", { children: "\uC9C0\uBA85\uC740 \uB3D9/\uC74D/\uBA74/\uB9AC\uB85C \uC785\uB825\uD574\uC8FC\uC138\uC694" }),
@@ -1516,8 +1518,8 @@ const AddressSearchResult = ({
1516
1518
  searchKeyword,
1517
1519
  selectedAddress
1518
1520
  }) => {
1519
- return /* @__PURE__ */ jsxs("div", { className: cx$a("search-result-list"), children: [
1520
- /* @__PURE__ */ jsxs("p", { className: cx$a("guide-title"), children: [
1521
+ return /* @__PURE__ */ jsxs("div", { className: cx$d("search-result-list"), children: [
1522
+ /* @__PURE__ */ jsxs("p", { className: cx$d("guide-title"), children: [
1521
1523
  "\uCD1D ",
1522
1524
  /* @__PURE__ */ jsx("span", { className: "text-primary", children: addressSearchList.length }),
1523
1525
  "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
@@ -1529,15 +1531,15 @@ const AddressSearchResult = ({
1529
1531
  return {
1530
1532
  value: JSON.stringify(item),
1531
1533
  select: item.roadNameBaseAddress === selectedAddress?.roadNameBaseAddress && item.roadNameDetailAddress === selectedAddress?.roadNameDetailAddress && item.mainBuildingName === selectedAddress?.mainBuildingName,
1532
- label: /* @__PURE__ */ jsxs("div", { className: cx$a("search-result"), children: [
1533
- /* @__PURE__ */ jsx("div", { className: cx$a("zipcode"), children: highlightOnSearchKeyword$1(`${item.firstPostalCode}${item.secondPostalCode}`, searchKeyword) }),
1534
- /* @__PURE__ */ jsx("div", { className: cx$a("divider") }),
1535
- /* @__PURE__ */ jsxs("div", { className: cx$a("address-info"), children: [
1536
- /* @__PURE__ */ jsx("span", { className: cx$a("address"), children: highlightOnSearchKeyword$1(
1534
+ label: /* @__PURE__ */ jsxs("div", { className: cx$d("search-result"), children: [
1535
+ /* @__PURE__ */ jsx("div", { className: cx$d("zipcode"), children: highlightOnSearchKeyword$1(`${item.firstPostalCode}${item.secondPostalCode}`, searchKeyword) }),
1536
+ /* @__PURE__ */ jsx("div", { className: cx$d("divider") }),
1537
+ /* @__PURE__ */ jsxs("div", { className: cx$d("address-info"), children: [
1538
+ /* @__PURE__ */ jsx("span", { className: cx$d("address"), children: highlightOnSearchKeyword$1(
1537
1539
  `${item.roadNameBaseAddress} ${item.roadNameDetailAddress} ${item.mainBuildingName}`,
1538
1540
  searchKeyword
1539
1541
  ) }),
1540
- /* @__PURE__ */ jsx("span", { className: cx$a("old-address"), children: highlightOnSearchKeyword$1(
1542
+ /* @__PURE__ */ jsx("span", { className: cx$d("old-address"), children: highlightOnSearchKeyword$1(
1541
1543
  `${item.landNumberBaseAddress} ${item.landNumberDetailAddress}`,
1542
1544
  searchKeyword
1543
1545
  ) })
@@ -1546,7 +1548,7 @@ const AddressSearchResult = ({
1546
1548
  id: JSON.stringify(item)
1547
1549
  };
1548
1550
  }),
1549
- className: cx$a("radio-group"),
1551
+ className: cx$d("radio-group"),
1550
1552
  name: "address-search",
1551
1553
  size: "medium",
1552
1554
  defaultValue: "",
@@ -1568,7 +1570,7 @@ const AddressSearchDetailInput = ({
1568
1570
  detailAddressInput
1569
1571
  }) => {
1570
1572
  const { land, road } = selectedStandardizationAddress;
1571
- return /* @__PURE__ */ jsxs("div", { className: cx$a("search-result-list"), children: [
1573
+ return /* @__PURE__ */ jsxs("div", { className: cx$d("search-result-list"), children: [
1572
1574
  /* @__PURE__ */ jsx(
1573
1575
  Radio.Root,
1574
1576
  {
@@ -1578,21 +1580,21 @@ const AddressSearchDetailInput = ({
1578
1580
  children: /* @__PURE__ */ jsx(
1579
1581
  Radio.Item,
1580
1582
  {
1581
- className: cx$a("radio-group"),
1583
+ className: cx$d("radio-group"),
1582
1584
  value: JSON.stringify(selectedStandardizationAddress),
1583
1585
  onChange: onStandardizationChange,
1584
- children: /* @__PURE__ */ jsxs("div", { className: cx$a("search-result"), children: [
1586
+ children: /* @__PURE__ */ jsxs("div", { className: cx$d("search-result"), children: [
1585
1587
  /* @__PURE__ */ jsx(
1586
1588
  "div",
1587
1589
  {
1588
- className: cx$a("zipcode"),
1590
+ className: cx$d("zipcode"),
1589
1591
  children: `${selectedStandardizationAddress.land?.firstPostalCode}${land?.secondPostalCode}`
1590
1592
  }
1591
1593
  ),
1592
- /* @__PURE__ */ jsx("div", { className: cx$a("divider") }),
1593
- /* @__PURE__ */ jsxs("div", { className: cx$a("address-info"), children: [
1594
- /* @__PURE__ */ jsx("span", { className: cx$a("address"), children: `${road?.baseAddress} ${road?.detailAddress}` }),
1595
- /* @__PURE__ */ jsx("span", { className: cx$a("old-address"), children: `${land?.baseAddress} ${land?.detailAddress}` })
1594
+ /* @__PURE__ */ jsx("div", { className: cx$d("divider") }),
1595
+ /* @__PURE__ */ jsxs("div", { className: cx$d("address-info"), children: [
1596
+ /* @__PURE__ */ jsx("span", { className: cx$d("address"), children: `${road?.baseAddress} ${road?.detailAddress}` }),
1597
+ /* @__PURE__ */ jsx("span", { className: cx$d("old-address"), children: `${land?.baseAddress} ${land?.detailAddress}` })
1596
1598
  ] })
1597
1599
  ] })
1598
1600
  }
@@ -1649,8 +1651,8 @@ function AddressComponent({ isOpen, onClose, setValue }) {
1649
1651
  /* @__PURE__ */ jsxs(Modal.Content, { children: [
1650
1652
  /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC8FC\uC18C \uAC80\uC0C9", showCloseButton: true }),
1651
1653
  /* @__PURE__ */ jsxs(Modal.Body, { children: [
1652
- /* @__PURE__ */ jsx(InputBox$1, { clearable: true, endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear: onAddressSearchClear, children: /* @__PURE__ */ jsx(
1653
- Input$1,
1654
+ /* @__PURE__ */ jsx(InputBox$3, { clearable: true, endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear: onAddressSearchClear, children: /* @__PURE__ */ jsx(
1655
+ Input$3,
1654
1656
  {
1655
1657
  ...addressSearchStep !== "detail-input" && { autoFocus: true },
1656
1658
  onChange: onSearch,
@@ -2252,143 +2254,898 @@ function BankStockSearchModal({ open, onClose, onSelect }) {
2252
2254
  ] });
2253
2255
  }
2254
2256
 
2255
- const cx$9 = classNames.bind(styles$5);
2256
- function OrganizationSearchResult({
2257
- filteredOrganizations,
2258
- onOrganizationSelect
2259
- }) {
2260
- return /* @__PURE__ */ jsxs("div", { className: cx$9("result-section"), children: [
2261
- /* @__PURE__ */ jsxs("p", { className: cx$9("result-title"), children: [
2257
+ const useCustomerSearch = (onSelect) => {
2258
+ const { triggerRef, isOpen, setIsOpen, DropDown } = useDropDown();
2259
+ const [searchKeyword, setSearchKeyword] = useState("");
2260
+ const [searchInput, setSearchInput] = useState("");
2261
+ const [customerList, setCustomerList] = useState([]);
2262
+ const [selectedCustomer, setSelectedCustomer] = useState(null);
2263
+ const { data } = useSearchCustomerListQuery({ customerName: searchKeyword });
2264
+ const search = () => {
2265
+ if (searchInput.length >= 2) {
2266
+ setSearchKeyword(searchInput);
2267
+ const filtered = data?.data?.custList?.filter(
2268
+ (c) => c.customerName?.toLowerCase().includes(searchInput.toLowerCase())
2269
+ );
2270
+ setCustomerList(filtered || []);
2271
+ setIsOpen(true);
2272
+ } else {
2273
+ setCustomerList([]);
2274
+ setSearchKeyword("");
2275
+ setIsOpen(false);
2276
+ }
2277
+ };
2278
+ const onKeyUp = (e) => {
2279
+ if (e.key === "Enter") {
2280
+ search();
2281
+ }
2282
+ };
2283
+ const onSearchInputChange = (e) => {
2284
+ setSearchInput(e.target.value);
2285
+ if (e.target.value.length < 2) {
2286
+ setCustomerList([]);
2287
+ setSearchKeyword("");
2288
+ setIsOpen(false);
2289
+ }
2290
+ };
2291
+ const onClear = () => {
2292
+ setSearchInput("");
2293
+ setSearchKeyword("");
2294
+ setCustomerList([]);
2295
+ setSelectedCustomer(null);
2296
+ setIsOpen(false);
2297
+ };
2298
+ const handleSelectItem = (customer) => {
2299
+ setSelectedCustomer(customer);
2300
+ setSearchInput(customer.customerName || "");
2301
+ setCustomerList([]);
2302
+ setIsOpen(false);
2303
+ if (onSelect) {
2304
+ onSelect(customer);
2305
+ }
2306
+ };
2307
+ return {
2308
+ triggerRef,
2309
+ isOpen,
2310
+ DropDown,
2311
+ searchInput,
2312
+ customerList,
2313
+ searchKeyword,
2314
+ onSearchInputChange,
2315
+ onKeyUp,
2316
+ search,
2317
+ onClear,
2318
+ handleSelectItem,
2319
+ selectedCustomer,
2320
+ setSearchInput,
2321
+ setCustomerList,
2322
+ setSearchKeyword,
2323
+ setIsOpen
2324
+ };
2325
+ };
2326
+
2327
+ const cx$c = classNames.bind(styles$5);
2328
+ const highlightOnSearchKeyword = (originalText, targetString) => {
2329
+ if (!targetString || !originalText?.includes(targetString)) {
2330
+ return originalText;
2331
+ }
2332
+ const replacedText = [];
2333
+ const splitText = originalText.split(targetString);
2334
+ for (let i = 0; i < splitText.length; i++) {
2335
+ replacedText.push(splitText[i] || "");
2336
+ if (i < splitText.length - 1) {
2337
+ replacedText.push(
2338
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: targetString }, i)
2339
+ );
2340
+ }
2341
+ }
2342
+ return replacedText;
2343
+ };
2344
+ const { InputBox: InputBox$2, Input: Input$2 } = FormCore;
2345
+ const CustomerSearch = ({ onSelect }) => {
2346
+ const {
2347
+ triggerRef,
2348
+ isOpen,
2349
+ DropDown,
2350
+ searchInput,
2351
+ customerList,
2352
+ searchKeyword,
2353
+ onSearchInputChange,
2354
+ onKeyUp,
2355
+ search,
2356
+ onClear,
2357
+ handleSelectItem
2358
+ } = useCustomerSearch(onSelect);
2359
+ return /* @__PURE__ */ jsxs("div", { className: cx$c("container"), children: [
2360
+ /* @__PURE__ */ jsx("div", { className: cx$c("search-bar"), children: /* @__PURE__ */ jsx(InputBox$2, { endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsx(
2361
+ Input$2,
2362
+ {
2363
+ onChange: onSearchInputChange,
2364
+ onKeyUp,
2365
+ value: searchInput,
2366
+ placeholder: "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
2367
+ size: "large",
2368
+ ref: triggerRef
2369
+ }
2370
+ ) }) }),
2371
+ isOpen && customerList.length > 0 && /* @__PURE__ */ jsx(DropDown, { children: /* @__PURE__ */ jsx("div", { className: cx$c("result-container"), children: /* @__PURE__ */ jsx(List, { children: customerList.map((customer) => /* @__PURE__ */ jsx(ListItem, { onClick: () => handleSelectItem(customer), selectable: true, children: /* @__PURE__ */ jsxs("div", { className: cx$c("customer-item"), children: [
2372
+ /* @__PURE__ */ jsx("div", { className: cx$c("name"), children: highlightOnSearchKeyword(customer.customerName || "", searchKeyword) }),
2373
+ /* @__PURE__ */ jsxs("div", { className: cx$c("details"), children: [
2374
+ /* @__PURE__ */ jsx("span", { children: customer.birthDate }),
2375
+ /* @__PURE__ */ jsx("span", { className: cx$c("separator"), children: "|" }),
2376
+ /* @__PURE__ */ jsx("span", { children: customer.genderCode }),
2377
+ customer.baseAddress && /* @__PURE__ */ jsxs(Fragment, { children: [
2378
+ /* @__PURE__ */ jsx("span", { className: cx$c("separator"), children: "|" }),
2379
+ /* @__PURE__ */ jsx("span", { children: customer.baseAddress })
2380
+ ] })
2381
+ ] })
2382
+ ] }) }, customer.customerId)) }) }) })
2383
+ ] });
2384
+ };
2385
+
2386
+ const cx$b = classNames.bind(styles$6);
2387
+ const { InputBox: InputBox$1, Input: Input$1 } = FormCore;
2388
+ const favoriteList = [
2389
+ {
2390
+ nationalityCode: "KR",
2391
+ nationalityCodeName: "\uB300\uD55C\uBBFC\uAD6D",
2392
+ isoNumberNationalityCode: "410",
2393
+ nationalityEnglishAbbreviationName: "KOR"
2394
+ },
2395
+ {
2396
+ nationalityCode: "CN",
2397
+ nationalityCodeName: "\uC911\uAD6D",
2398
+ isoNumberNationalityCode: "156",
2399
+ nationalityEnglishAbbreviationName: "CHN"
2400
+ },
2401
+ {
2402
+ nationalityCode: "VN",
2403
+ nationalityCodeName: "\uBCA0\uD2B8\uB0A8",
2404
+ isoNumberNationalityCode: "704",
2405
+ nationalityEnglishAbbreviationName: "VNM"
2406
+ },
2407
+ {
2408
+ nationalityCode: "US",
2409
+ nationalityCodeName: "\uBBF8\uAD6D",
2410
+ isoNumberNationalityCode: "840",
2411
+ nationalityEnglishAbbreviationName: "USA"
2412
+ },
2413
+ {
2414
+ nationalityCode: "RU",
2415
+ nationalityCodeName: "\uB7EC\uC2DC\uC544",
2416
+ isoNumberNationalityCode: "643",
2417
+ nationalityEnglishAbbreviationName: "RUS"
2418
+ }
2419
+ ];
2420
+ const NationalitySearchInitialText = ({
2421
+ setSearchInput,
2422
+ setSearchKeyword
2423
+ }) => {
2424
+ const set = (keyword) => {
2425
+ setSearchInput(keyword);
2426
+ setSearchKeyword(keyword);
2427
+ };
2428
+ return /* @__PURE__ */ jsxs("div", { className: cx$b("favorite-container"), children: [
2429
+ /* @__PURE__ */ jsx("p", { className: cx$b("favorite-title"), children: "\uB9CE\uC774 \uCC3E\uB294 \uAD6D\uC801" }),
2430
+ /* @__PURE__ */ jsx("ul", { className: cx$b("favorite"), children: favoriteList.map((item) => /* @__PURE__ */ jsx("li", { onClick: () => set(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: item.nationalityCodeName }) }, item.nationalityCode)) })
2431
+ ] });
2432
+ };
2433
+ const NationalitySearchResult = ({ nationalityList, searchKeyWord, onSelect }) => {
2434
+ const [filterList, setFilterList] = useState([]);
2435
+ useEffect(() => {
2436
+ const filterList2 = nationalityList.filter((item) => item.nationalityCodeName.includes(searchKeyWord)) || [];
2437
+ setFilterList(filterList2);
2438
+ }, [nationalityList, searchKeyWord]);
2439
+ return /* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
2440
+ /* @__PURE__ */ jsxs("p", { className: cx$b("favorite-title"), children: [
2262
2441
  "\uCD1D ",
2263
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: filteredOrganizations.length }),
2442
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: filterList.length }),
2264
2443
  "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
2265
2444
  ] }),
2266
- filteredOrganizations.length > 0 ? /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
2267
- /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2268
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC120\uD0DD" }),
2269
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
2270
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uBA85" })
2271
- ] }) }),
2272
- /* @__PURE__ */ jsx("tbody", { children: filteredOrganizations.map((organization) => {
2273
- return /* @__PURE__ */ jsxs("tr", { children: [
2274
- /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2275
- "input",
2276
- {
2277
- type: "radio",
2278
- name: "organization",
2279
- value: organization.organizationCode || "",
2280
- onChange: () => onOrganizationSelect(organization)
2281
- }
2282
- ) }),
2283
- /* @__PURE__ */ jsx("td", { children: organization.organizationCode }),
2284
- /* @__PURE__ */ jsx("td", { children: organization.organizationName })
2285
- ] }, organization.organizationCode);
2286
- }) })
2287
- ] }) : /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
2288
- /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2289
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC120\uD0DD" }),
2290
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
2291
- /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uBA85" })
2292
- ] }) }),
2293
- /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxs("div", { className: cx$9("no-result"), children: [
2294
- /* @__PURE__ */ jsx(IconGraphicsFeedbackEmpty, {}),
2295
- /* @__PURE__ */ jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
2296
- /* @__PURE__ */ jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
2297
- ] }) }) }) })
2445
+ /* @__PURE__ */ jsx("ul", { className: cx$b("favorite"), children: filterList.length > 0 && filterList.map((item, index) => {
2446
+ return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword$1(item.nationalityCodeName, searchKeyWord) }) }, `${index}-${item.nationalityCode}`);
2447
+ }) }),
2448
+ filterList.length === 0 && /* @__PURE__ */ jsxs("div", { className: cx$b("search-result"), children: [
2449
+ "`",
2450
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: searchKeyWord }),
2451
+ "`\uC5D0 \uB300\uD55C \uAC80\uC0C9\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."
2298
2452
  ] })
2299
2453
  ] });
2300
- }
2301
-
2302
- const { TextField: TextField$2 } = FormField;
2303
- const cx$8 = classNames.bind(styles$5);
2304
- function OrganizationSearch({
2305
- searchTerm,
2306
- setSearchTerm,
2307
- searchInput,
2308
- setSearchInput,
2309
- organizationList,
2310
- onOrganizationSelect
2311
- }) {
2312
- const handleSearch = () => {
2313
- setSearchTerm(searchInput);
2314
- };
2315
- const handleReset = () => {
2316
- setSearchTerm("");
2317
- setSearchInput("");
2318
- };
2319
- return /* @__PURE__ */ jsxs(Fragment, { children: [
2320
- /* @__PURE__ */ jsx("div", { className: cx$8("search-section"), children: /* @__PURE__ */ jsxs("div", { className: cx$8("search-filters"), children: [
2321
- /* @__PURE__ */ jsxs("div", { className: cx$8("search-filter-section"), children: [
2322
- /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uAE30\uAD00\uBA85/\uCF54\uB4DC" }),
2454
+ };
2455
+ function NationalityComponent({ isOpen, onClose, setValue }) {
2456
+ const {
2457
+ search,
2458
+ onClear,
2459
+ searchKeyWord,
2460
+ onKeyUp,
2461
+ onSearch,
2462
+ searchList,
2463
+ searchInput,
2464
+ onSelect,
2465
+ setSearchInput,
2466
+ setSearchKeyword
2467
+ } = useSearchNationality({
2468
+ setValue,
2469
+ onClose,
2470
+ isOpen
2471
+ });
2472
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose, modalSize: "full-screen", children: [
2473
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
2474
+ /* @__PURE__ */ jsxs(Modal.Content, { children: [
2475
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uAD6D\uC801 \uAC80\uC0C9", showCloseButton: true }),
2476
+ /* @__PURE__ */ jsxs(Modal.Body, { children: [
2323
2477
  /* @__PURE__ */ jsx(
2324
- TextField$2,
2478
+ InputBox$1,
2325
2479
  {
2326
- value: searchInput,
2327
- onChange: (e) => setSearchInput(e.target.value),
2328
- size: "medium",
2329
- onKeyUp: (e) => e.key === "Enter" && handleSearch(),
2330
- rootProps: {
2331
- className: cx$8("search-input"),
2332
- clearable: true,
2333
- onClear: handleReset
2334
- }
2480
+ clearable: true,
2481
+ endElement: /* @__PURE__ */ jsx("button", { children: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }) }),
2482
+ onClear,
2483
+ className: cx$b("search-input"),
2484
+ children: /* @__PURE__ */ jsx(
2485
+ Input$1,
2486
+ {
2487
+ onChange: onSearch,
2488
+ onKeyUp,
2489
+ placeholder: "\uC9C0\uBC88, \uB3C4\uB85C\uBA85, \uAC74\uBB3C\uBA85, \uC6B0\uD3B8\uBC88\uD638 \uC785\uB825",
2490
+ size: "large",
2491
+ value: searchInput
2492
+ }
2493
+ )
2335
2494
  }
2336
- )
2337
- ] }),
2338
- /* @__PURE__ */ jsxs("div", { className: cx$8("search-buttons"), children: [
2339
- /* @__PURE__ */ jsx(Button, { appearance: "outline", size: "medium", variant: "secondary", onClick: handleReset, children: "\uCD08\uAE30\uD654" }),
2340
- /* @__PURE__ */ jsx(Button, { appearance: "filled", size: "medium", variant: "primary", onClick: handleSearch, children: "\uC870\uD68C" })
2495
+ ),
2496
+ !searchKeyWord && /* @__PURE__ */ jsx(NationalitySearchInitialText, { setSearchInput, setSearchKeyword }),
2497
+ searchKeyWord && /* @__PURE__ */ jsx(NationalitySearchResult, { nationalityList: searchList, searchKeyWord, onSelect })
2341
2498
  ] })
2342
- ] }) }),
2343
- /* @__PURE__ */ jsx("div", { className: cx$8("divider") }),
2344
- searchTerm && /* @__PURE__ */ jsx(
2345
- OrganizationSearchResult,
2346
- {
2347
- filteredOrganizations: organizationList,
2348
- onOrganizationSelect,
2349
- searchTerm
2350
- }
2351
- )
2352
- ] });
2499
+ ] })
2500
+ ] }) });
2353
2501
  }
2354
2502
 
2355
- const OrganizationSearchModal = ({ isOpen, onClose, onSelect }) => {
2356
- const [selectedOrganization, setSelectedOrganization] = useState(null);
2357
- const [searchTerm, setSearchTerm] = useState("");
2503
+ function useSearchNationality({ setValue, onClose, isOpen }) {
2504
+ const [searchKeyWord, setSearchKeyword] = useState("");
2505
+ const [selectedNationality, setSelectedNationality] = useState();
2358
2506
  const [searchInput, setSearchInput] = useState("");
2359
- const { data } = useSearchOrganizationQuery({
2360
- searchWord: searchTerm
2361
- });
2362
- const [organizationList, setOrganizationList] = useState([]);
2363
- useEffect(() => {
2364
- if (data?.data) {
2365
- setOrganizationList(data.data);
2366
- } else {
2367
- setOrganizationList([]);
2507
+ const { data } = useSearchNationalityQuery({ searchKeyWord });
2508
+ const searchList = data?.data.nationalityList || [];
2509
+ const onSearch = (e) => {
2510
+ const typeStr = e.target.value;
2511
+ setSearchInput(typeStr);
2512
+ };
2513
+ const search = () => {
2514
+ if (searchInput === "") {
2515
+ onClear();
2516
+ return;
2517
+ }
2518
+ if (searchInput && searchInput.length > 0) {
2519
+ setSearchKeyword(searchInput);
2520
+ setSelectedNationality("");
2521
+ }
2522
+ };
2523
+ const onKeyUp = (e) => {
2524
+ const currentValue = e.target.value;
2525
+ if (currentValue.length === 0 || currentValue.slice(-1).normalize("NFD").length > 1) {
2526
+ search();
2527
+ }
2528
+ };
2529
+ const onClear = useCallback(() => {
2530
+ setSearchKeyword("");
2531
+ setSearchInput("");
2532
+ setSelectedNationality("");
2533
+ }, []);
2534
+ const onSelect = (nationality) => {
2535
+ setSelectedNationality(nationality);
2536
+ const value = searchList.find((item) => item.nationalityCodeName === nationality);
2537
+ value && setValue(value);
2538
+ onClose();
2539
+ };
2540
+ useEffect(() => {
2541
+ if (isOpen) {
2542
+ setSelectedNationality("");
2543
+ setSearchKeyword("");
2544
+ }
2545
+ }, [isOpen]);
2546
+ return {
2547
+ onClear,
2548
+ searchKeyWord,
2549
+ searchList,
2550
+ selectedNationality,
2551
+ onSearch,
2552
+ onKeyUp,
2553
+ search,
2554
+ searchInput,
2555
+ onSelect,
2556
+ setSearchKeyword,
2557
+ setSearchInput
2558
+ };
2559
+ }
2560
+ const useNationalityComponent = () => {
2561
+ const [nationality, setNationality] = useState();
2562
+ const { isOpen, closeModal, openModal } = useModalState();
2563
+ const NationalitySearchComponent = () => /* @__PURE__ */ jsx(NationalityComponent, { isOpen, onClose: closeModal, setValue: setNationality });
2564
+ return {
2565
+ nationality,
2566
+ openModal,
2567
+ NationalitySearchComponent
2568
+ };
2569
+ };
2570
+
2571
+ const url = (() => {
2572
+ const type = isClient() ? window.location.hostname : "";
2573
+ if (type.includes("localhost")) {
2574
+ return "https://nxl-nlc-stg.hanwhalife.com";
2575
+ }
2576
+ if (type.includes("dev")) {
2577
+ return "https://nxl-nlc-dev.hanwhalife.com";
2578
+ } else if (type.includes("stg")) {
2579
+ return "https://nxl-nlc-stg.hanwhalife.com";
2580
+ } else {
2581
+ return "https://nxl-nlc.hanwhalife.com";
2582
+ }
2583
+ })();
2584
+ function useNxlOne({ bizCode, tmplCode, ncsrInfoUuid, nlcCtfnId, t }) {
2585
+ const buildUrl = useCallback(() => {
2586
+ const targetUrl = new URL("/auth/v1", url);
2587
+ targetUrl.searchParams.set("bizCode", bizCode);
2588
+ targetUrl.searchParams.set("tmplCode", tmplCode);
2589
+ if (nlcCtfnId) {
2590
+ targetUrl.searchParams.set("nlcCtfnId", nlcCtfnId);
2591
+ }
2592
+ if (t) {
2593
+ targetUrl.searchParams.set("t", t);
2594
+ }
2595
+ if (ncsrInfoUuid) {
2596
+ targetUrl.searchParams.set("ncsrInfoUuid", ncsrInfoUuid);
2597
+ }
2598
+ return targetUrl.toString();
2599
+ }, [bizCode, tmplCode, ncsrInfoUuid, nlcCtfnId, t]);
2600
+ const redirect = () => {
2601
+ const targetUrl = buildUrl();
2602
+ location.href = targetUrl;
2603
+ };
2604
+ const open = async (options) => {
2605
+ return new Promise((resolve, reject) => {
2606
+ const targetUrl = buildUrl();
2607
+ console.log("targetUrl", targetUrl);
2608
+ const width = options && options.popupWidth || 720;
2609
+ const height = options && options.popupHeight || 720;
2610
+ const left = options && options.popupLeft || (window.screen.width - width) / 2;
2611
+ const top = options && options.popupTop || (window.screen.height - height) / 2;
2612
+ const popupFeatures = `width=${width},height=${height},left=${left},top=${top}`;
2613
+ const popup = window.open(targetUrl, options && options.windowName || "_self_cert", popupFeatures);
2614
+ if (!popup) {
2615
+ reject(new Error("\uCC28\uB2E8\uB418\uAC70\uB098 \uC5F4\uB9AC\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."));
2616
+ return;
2617
+ }
2618
+ const handleMessage = (event) => {
2619
+ if (event.origin !== new URL(targetUrl).origin) {
2620
+ return;
2621
+ }
2622
+ if (event.data) {
2623
+ resolve(event.data);
2624
+ } else {
2625
+ reject(new Error("\uC778\uC99D\uC774 \uCDE8\uC18C\uB418\uAC70\uB098 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4."));
2626
+ }
2627
+ popup.close();
2628
+ window.removeEventListener("message", handleMessage);
2629
+ };
2630
+ window.addEventListener("message", handleMessage);
2631
+ });
2632
+ };
2633
+ const Iframe = function({
2634
+ height = 720,
2635
+ className,
2636
+ style,
2637
+ allow,
2638
+ sandbox = "allow-scripts allow-forms allow-same-origin",
2639
+ onSuccess,
2640
+ onError,
2641
+ onClose,
2642
+ strictOrigin = true
2643
+ }) {
2644
+ const targetUrl = buildUrl();
2645
+ useEffect(() => {
2646
+ if (!onSuccess && !onError) {
2647
+ return;
2648
+ }
2649
+ const handler = (e) => {
2650
+ console.log("message event", e);
2651
+ const d = e.data;
2652
+ if (d) {
2653
+ if (d.action === "close") {
2654
+ onClose?.(d);
2655
+ } else if (d.action === "error") {
2656
+ onError?.(d);
2657
+ } else if (d.action === "complete") {
2658
+ onSuccess?.(d);
2659
+ }
2660
+ } else {
2661
+ onError?.({
2662
+ action: "error",
2663
+ nlcCtfnId: "",
2664
+ redirectUrl: ""
2665
+ });
2666
+ }
2667
+ };
2668
+ window.addEventListener("message", handler);
2669
+ return () => window.removeEventListener("message", handler);
2670
+ }, [onClose, onError, onSuccess, strictOrigin]);
2671
+ return /* @__PURE__ */ jsx(
2672
+ "iframe",
2673
+ {
2674
+ src: targetUrl,
2675
+ width: "100%",
2676
+ height: typeof height === "number" ? `${height}px` : height,
2677
+ style: { border: 0, ...style },
2678
+ className,
2679
+ sandbox,
2680
+ ...allow ? { allow } : {}
2681
+ }
2682
+ );
2683
+ };
2684
+ return { open, redirect, Iframe };
2685
+ }
2686
+
2687
+ const CODES = {
2688
+ appInit: {
2689
+ dev: {
2690
+ tmplCode: "HST",
2691
+ bizCode: "DPS"
2692
+ },
2693
+ stg: {
2694
+ tmplCode: "R7Y",
2695
+ bizCode: "DPS"
2696
+ }
2697
+ },
2698
+ tabletEformInit: {
2699
+ dev: {
2700
+ tmplCode: "4X2",
2701
+ bizCode: "DET"
2702
+ },
2703
+ stg: {
2704
+ tmplCode: "NO7",
2705
+ bizCode: "DET"
2706
+ }
2707
+ },
2708
+ tabletEformRe: {
2709
+ dev: {
2710
+ tmplCode: "WJ1",
2711
+ bizCode: "DET"
2712
+ },
2713
+ stg: {
2714
+ tmplCode: "WQF",
2715
+ bizCode: "DET"
2716
+ }
2717
+ },
2718
+ tabletEformSubInfo: {
2719
+ dev: {
2720
+ tmplCode: "GJB",
2721
+ bizCode: "DET"
2722
+ },
2723
+ stg: {
2724
+ tmplCode: "C1D",
2725
+ bizCode: "DET"
2726
+ }
2727
+ },
2728
+ smartphoneEformSubInfo: {
2729
+ dev: {
2730
+ tmplCode: "YOQ",
2731
+ bizCode: "DES"
2732
+ },
2733
+ stg: {
2734
+ tmplCode: "FLL",
2735
+ bizCode: "DES"
2736
+ }
2737
+ },
2738
+ smartphoneEformAlimtalkInit: {
2739
+ dev: {
2740
+ tmplCode: "8YA",
2741
+ bizCode: "DES"
2742
+ },
2743
+ stg: {
2744
+ tmplCode: "T9L",
2745
+ bizCode: "DES"
2746
+ }
2747
+ },
2748
+ smartphoneEformAlimtalkRe: {
2749
+ dev: {
2750
+ tmplCode: "NPK",
2751
+ bizCode: "DES"
2752
+ },
2753
+ stg: {
2754
+ tmplCode: "YMV",
2755
+ bizCode: "DES"
2756
+ }
2757
+ },
2758
+ tabletNewCustomer: {
2759
+ dev: {
2760
+ tmplCode: "948",
2761
+ bizCode: "DIS"
2762
+ },
2763
+ stg: {
2764
+ tmplCode: "YQM",
2765
+ bizCode: "DIS"
2766
+ }
2767
+ },
2768
+ tabletNewCustomerLegalRep: {
2769
+ dev: {
2770
+ tmplCode: "SBI",
2771
+ bizCode: "DIS"
2772
+ },
2773
+ stg: {
2774
+ tmplCode: "FB3",
2775
+ bizCode: "DIS"
2776
+ }
2777
+ },
2778
+ tabletCustomerInfoPlanAgreement: {
2779
+ dev: {
2780
+ tmplCode: "QCA",
2781
+ bizCode: "DIS"
2782
+ },
2783
+ stg: {
2784
+ tmplCode: "AST",
2785
+ bizCode: "DIS"
2786
+ }
2787
+ },
2788
+ tabletCustomerInfoProductAgreement: {
2789
+ dev: {
2790
+ tmplCode: "I7K",
2791
+ bizCode: "DIS"
2792
+ },
2793
+ stg: {
2794
+ tmplCode: "XG6",
2795
+ bizCode: "DIS"
2796
+ }
2797
+ }
2798
+ };
2799
+ function useNxlOneModal({
2800
+ onSuccess = (result) => {
2801
+ console.log("on success", JSON.stringify(result));
2802
+ },
2803
+ onError = (result) => {
2804
+ console.log("on error", JSON.stringify(result));
2805
+ },
2806
+ onClose = (result) => {
2807
+ console.log("on close", JSON.stringify(result));
2808
+ },
2809
+ modalSize = "medium",
2810
+ step = "appInit",
2811
+ env = "stg"
2812
+ }) {
2813
+ const { isOpen, openModal, closeModal } = useModalState();
2814
+ const { bizCode, tmplCode } = CODES[step][env];
2815
+ const { Iframe } = useNxlOne({
2816
+ bizCode,
2817
+ tmplCode
2818
+ });
2819
+ return {
2820
+ openNxlOneModal: openModal,
2821
+ closeNxlOneModal: closeModal,
2822
+ isNxlOneModalOpen: isOpen,
2823
+ NxlModalComponent: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose: closeModal, modalSize, children: [
2824
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
2825
+ /* @__PURE__ */ jsx(Modal.Content, { children: /* @__PURE__ */ jsx(Modal.Body, { raw: true, children: /* @__PURE__ */ jsx(
2826
+ Iframe,
2827
+ {
2828
+ onSuccess,
2829
+ onError,
2830
+ onClose: (result) => {
2831
+ onClose(result);
2832
+ closeModal();
2833
+ }
2834
+ }
2835
+ ) }) })
2836
+ ] })
2837
+ };
2838
+ }
2839
+
2840
+ const cx$a = classNames.bind(styles$7);
2841
+ const { InputBox, Input } = FormCore;
2842
+ const VisaSearchInitialText = ({ visaList, onSelect }) => {
2843
+ return /* @__PURE__ */ jsx("div", { className: cx$a("favorite-container"), children: /* @__PURE__ */ jsx("ul", { className: cx$a("favorite"), children: visaList.map((item, index) => {
2844
+ return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item), children: /* @__PURE__ */ jsx("button", { children: item.integrationCodeValueName }) }, `${index}-${item.integrationCodeValueName}`);
2845
+ }) }) });
2846
+ };
2847
+ const VisaSearchResult = ({ visaList, searchKeyword, onSelect }) => {
2848
+ const [filterList, setFilterList] = useState([]);
2849
+ useEffect(() => {
2850
+ const filterList2 = visaList.filter((item) => item.integrationCodeValueName?.includes(searchKeyword)) || [];
2851
+ setFilterList(filterList2);
2852
+ }, [visaList, searchKeyword]);
2853
+ return /* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
2854
+ /* @__PURE__ */ jsxs("p", { className: cx$a("favorite-title"), children: [
2855
+ "\uCD1D ",
2856
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: filterList.length }),
2857
+ "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
2858
+ ] }),
2859
+ /* @__PURE__ */ jsx("ul", { className: cx$a("favorite"), children: filterList.length > 0 && filterList.map((item, index) => {
2860
+ return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword$1(`${item.integrationCodeValueName}`, searchKeyword) }) }, `${index}-${item.integrationCodeValueName}`);
2861
+ }) }),
2862
+ filterList.length === 0 && /* @__PURE__ */ jsxs("div", { className: cx$a("search-result"), children: [
2863
+ "`",
2864
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: searchKeyword }),
2865
+ "`\uC5D0 \uB300\uD55C \uAC80\uC0C9\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."
2866
+ ] })
2867
+ ] });
2868
+ };
2869
+ function VisaComponent({ isOpen, onClose, setValue }) {
2870
+ const { search, onClear, searchKeyword, onKeyUp, onSearch, searchList, searchInput, onSelect } = useSearchVisa({
2871
+ setValue,
2872
+ onClose,
2873
+ isOpen
2874
+ });
2875
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose, modalSize: "full-screen", children: [
2876
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
2877
+ /* @__PURE__ */ jsxs(Modal.Content, { children: [
2878
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uCCB4\uB958\uC790\uACA9 \uAC80\uC0C9", showCloseButton: true }),
2879
+ /* @__PURE__ */ jsxs(Modal.Body, { children: [
2880
+ /* @__PURE__ */ jsx(
2881
+ InputBox,
2882
+ {
2883
+ clearable: true,
2884
+ endElement: /* @__PURE__ */ jsx("button", { children: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }) }),
2885
+ onClear,
2886
+ className: cx$a("search-input"),
2887
+ children: /* @__PURE__ */ jsx(
2888
+ Input,
2889
+ {
2890
+ onChange: onSearch,
2891
+ onKeyUp,
2892
+ placeholder: "\uCF54\uB4DC, \uC790\uACA9\uBA85 \uC785\uB825",
2893
+ size: "large",
2894
+ value: searchInput
2895
+ }
2896
+ )
2897
+ }
2898
+ ),
2899
+ !searchKeyword && /* @__PURE__ */ jsx(VisaSearchInitialText, { visaList: searchList, onSelect }),
2900
+ searchKeyword && /* @__PURE__ */ jsx(VisaSearchResult, { visaList: searchList, searchKeyword, onSelect })
2901
+ ] })
2902
+ ] })
2903
+ ] }) });
2904
+ }
2905
+
2906
+ function useSearchVisa({ setValue, onClose, isOpen }) {
2907
+ const [searchKeyword, setSearchKeyword] = useState("");
2908
+ const [selectedVisa, setSelectedVisa] = useState();
2909
+ const [searchInput, setSearchInput] = useState("");
2910
+ const { data: visaList } = useSearchVisaQuery();
2911
+ const searchList = visaList?.data?.visaStatusList || [];
2912
+ const onSearch = (e) => {
2913
+ const typeStr = e.target.value;
2914
+ setSearchInput(typeStr);
2915
+ };
2916
+ const search = () => {
2917
+ if (searchInput === "") {
2918
+ onClear();
2919
+ return;
2920
+ }
2921
+ if (searchInput && searchInput.length > 0) {
2922
+ setSearchKeyword(searchInput);
2923
+ setSelectedVisa(void 0);
2924
+ }
2925
+ };
2926
+ const onKeyUp = (e) => {
2927
+ if (e.key === "Enter") {
2928
+ search();
2929
+ }
2930
+ };
2931
+ const onClear = useCallback(() => {
2932
+ setSearchKeyword("");
2933
+ setSearchInput("");
2934
+ setSelectedVisa(void 0);
2935
+ }, []);
2936
+ const onSelect = (visa) => {
2937
+ setSelectedVisa(visa);
2938
+ setValue(visa);
2939
+ onClose();
2940
+ };
2941
+ useEffect(() => {
2942
+ if (isOpen) {
2943
+ setSelectedVisa(void 0);
2944
+ setSearchKeyword("");
2945
+ }
2946
+ }, [isOpen]);
2947
+ return {
2948
+ onClear,
2949
+ searchKeyword,
2950
+ searchList,
2951
+ selectedVisa,
2952
+ onSearch,
2953
+ onKeyUp,
2954
+ search,
2955
+ searchInput,
2956
+ onSelect,
2957
+ setSearchKeyword,
2958
+ setSearchInput
2959
+ };
2960
+ }
2961
+ const useVisaComponent = () => {
2962
+ const [visa, setVisa] = useState();
2963
+ const { isOpen, closeModal, openModal } = useModalState();
2964
+ const VisaSearchComponent = () => /* @__PURE__ */ jsx(VisaComponent, { isOpen, onClose: closeModal, setValue: setVisa });
2965
+ return {
2966
+ visa,
2967
+ openModal,
2968
+ VisaSearchComponent
2969
+ };
2970
+ };
2971
+
2972
+ const cx$9 = classNames.bind(styles$8);
2973
+ function DeaCustomerSearchResult({
2974
+ customerList,
2975
+ onCustomerSelect,
2976
+ selectedCustomer
2977
+ }) {
2978
+ return /* @__PURE__ */ jsxs("div", { className: cx$9("result-section"), children: [
2979
+ /* @__PURE__ */ jsxs("p", { className: cx$9("result-title"), children: [
2980
+ "\uCD1D ",
2981
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: customerList.length }),
2982
+ "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
2983
+ ] }),
2984
+ /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
2985
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2986
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC120\uD0DD" }),
2987
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uACE0\uAC1DID" }),
2988
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uACE0\uAC1D\uBA85" }),
2989
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
2990
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC9C1\uC885\uC5C5\uC885\uBA85" }),
2991
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC804\uD654\uBC88\uD638" }),
2992
+ /* @__PURE__ */ jsx("th", { className: cx$9("th-padding"), children: "\uC8FC\uC18C" })
2993
+ ] }) }),
2994
+ /* @__PURE__ */ jsx("tbody", { children: customerList.length > 0 ? customerList.map((customer) => /* @__PURE__ */ jsxs("tr", { children: [
2995
+ /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2996
+ "input",
2997
+ {
2998
+ type: "radio",
2999
+ name: "customer",
3000
+ value: customer.customerId || "",
3001
+ checked: selectedCustomer?.customerId === customer.customerId,
3002
+ onChange: () => onCustomerSelect(customer)
3003
+ }
3004
+ ) }),
3005
+ /* @__PURE__ */ jsx("td", { children: customer.customerId }),
3006
+ /* @__PURE__ */ jsx("td", { children: customer.customerName }),
3007
+ /* @__PURE__ */ jsx("td", { children: customer.residentNumber }),
3008
+ /* @__PURE__ */ jsx("td", { children: customer.occupationKindName }),
3009
+ /* @__PURE__ */ jsx("td", { children: customer.mobilePhoneNumber }),
3010
+ /* @__PURE__ */ jsx("td", { children: customer.address })
3011
+ ] }, customer.customerId)) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 7, children: /* @__PURE__ */ jsxs("div", { className: cx$9("no-result"), children: [
3012
+ /* @__PURE__ */ jsx(IconGraphicsFeedbackEmpty, {}),
3013
+ /* @__PURE__ */ jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
3014
+ /* @__PURE__ */ jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
3015
+ ] }) }) }) })
3016
+ ] })
3017
+ ] });
3018
+ }
3019
+
3020
+ const { TextField: TextField$2 } = FormField;
3021
+ const cx$8 = classNames.bind(styles$8);
3022
+ function DeaCustomerSearch({
3023
+ setSearchParams,
3024
+ customerList,
3025
+ onCustomerSelect,
3026
+ selectedCustomer
3027
+ }) {
3028
+ const [residentNumber1, setResidentNumber1] = useState("");
3029
+ const [residentNumber2, setResidentNumber2] = useState("");
3030
+ const handleSearch = () => {
3031
+ setSearchParams({ residentNumber: `${residentNumber1}${residentNumber2}` });
3032
+ };
3033
+ const handleReset = () => {
3034
+ setResidentNumber1("");
3035
+ setResidentNumber2("");
3036
+ setSearchParams({});
3037
+ };
3038
+ const onKeyUp = (e) => {
3039
+ e.key === "Enter" && handleSearch();
3040
+ };
3041
+ const onKeyDown = (e) => {
3042
+ if (!(e.key === "Backspace" || !isNaN(parseInt(e.key)))) {
3043
+ e.preventDefault();
3044
+ }
3045
+ };
3046
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3047
+ /* @__PURE__ */ jsx("div", { className: cx$8("search-section"), children: /* @__PURE__ */ jsxs("div", { className: cx$8("search-filters"), children: [
3048
+ /* @__PURE__ */ jsxs("div", { className: cx$8("search-filter-section"), children: [
3049
+ /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uACE0\uAC1D \uAD6C\uBD84" }),
3050
+ /* @__PURE__ */ jsx(Select, { value: "personal", placeholder: "\uAC1C\uC778", disabled: true, style: { width: "100px" }, children: /* @__PURE__ */ jsx(Select.Option, { value: "personal", children: "\uAC1C\uC778" }) }),
3051
+ /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
3052
+ /* @__PURE__ */ jsx(
3053
+ TextField$2,
3054
+ {
3055
+ value: residentNumber1,
3056
+ maxLength: 6,
3057
+ placeholder: "\uC55E 6\uC790\uB9AC \uC785\uB825",
3058
+ onChange: (e) => setResidentNumber1(e.target.value),
3059
+ size: "medium",
3060
+ onKeyUp,
3061
+ onKeyDown,
3062
+ rootProps: {
3063
+ className: cx$8("search-input"),
3064
+ onClear: () => {
3065
+ setResidentNumber1("");
3066
+ }
3067
+ }
3068
+ }
3069
+ ),
3070
+ "-",
3071
+ /* @__PURE__ */ jsx(
3072
+ TextField$2,
3073
+ {
3074
+ value: residentNumber2,
3075
+ maxLength: 7,
3076
+ placeholder: "\uB4A4 7\uC790\uB9AC \uC785\uB825",
3077
+ onChange: (e) => setResidentNumber2(e.target.value),
3078
+ size: "medium",
3079
+ onKeyDown,
3080
+ onKeyUp,
3081
+ rootProps: {
3082
+ className: cx$8("search-input"),
3083
+ onClear: () => {
3084
+ setResidentNumber2("");
3085
+ }
3086
+ }
3087
+ }
3088
+ )
3089
+ ] }),
3090
+ /* @__PURE__ */ jsxs("div", { className: cx$8("search-buttons"), children: [
3091
+ /* @__PURE__ */ jsx(Button, { appearance: "outline", size: "medium", variant: "secondary", onClick: handleReset, children: "\uCD08\uAE30\uD654" }),
3092
+ /* @__PURE__ */ jsx(Button, { appearance: "filled", size: "medium", variant: "primary", onClick: handleSearch, children: "\uC870\uD68C" })
3093
+ ] })
3094
+ ] }) }),
3095
+ /* @__PURE__ */ jsx("div", { className: cx$8("divider") }),
3096
+ /* @__PURE__ */ jsx(
3097
+ DeaCustomerSearchResult,
3098
+ {
3099
+ customerList,
3100
+ onCustomerSelect,
3101
+ selectedCustomer
3102
+ }
3103
+ )
3104
+ ] });
3105
+ }
3106
+
3107
+ const DeaCustomerSearchModal = ({ isOpen, onClose, onSave }) => {
3108
+ const [selectedCustomer, setSelectedCustomer] = useState(null);
3109
+ const [searchParams, setSearchParams] = useState({});
3110
+ const canSearch = useMemo(() => !!(searchParams.customerName || searchParams.residentNumber), [searchParams]);
3111
+ const { data, isFetching } = useQuery({
3112
+ queryKey: ["deaCustomerSearch", searchParams],
3113
+ queryFn: () => getDspCustomerListMethod(searchParams),
3114
+ enabled: canSearch,
3115
+ retry: false
3116
+ });
3117
+ const [customerList, setCustomerList] = useState([]);
3118
+ useEffect(() => {
3119
+ if (data?.data) {
3120
+ setCustomerList(data.data);
3121
+ } else {
3122
+ setCustomerList([]);
2368
3123
  }
2369
3124
  }, [data]);
2370
- const handleOrganizationSelect = (organization) => {
2371
- setSelectedOrganization(organization);
3125
+ useEffect(() => {
3126
+ setSelectedCustomer(null);
3127
+ }, [customerList]);
3128
+ const handleCustomerSelect = (customer) => {
3129
+ setSelectedCustomer(customer);
2372
3130
  };
2373
- const handleSelect = () => {
2374
- if (selectedOrganization) {
2375
- onSelect(selectedOrganization);
3131
+ const handleSave = () => {
3132
+ if (selectedCustomer) {
3133
+ onSave(selectedCustomer);
2376
3134
  onClose();
2377
3135
  }
2378
3136
  };
2379
3137
  return /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose, modalSize: "xlarge", children: [
2380
3138
  /* @__PURE__ */ jsx(Modal.Overlay, {}),
2381
3139
  /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
2382
- /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uAE30\uAD00 \uAC80\uC0C9", showCloseButton: true }),
3140
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uACE0\uAC1D \uAC80\uC0C9", showCloseButton: true }),
2383
3141
  /* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(
2384
- OrganizationSearch,
3142
+ DeaCustomerSearch,
2385
3143
  {
2386
- searchTerm,
2387
- setSearchTerm,
2388
- searchInput,
2389
- setSearchInput,
2390
- organizationList,
2391
- onOrganizationSelect: handleOrganizationSelect
3144
+ setSearchParams,
3145
+ customerList,
3146
+ onCustomerSelect: handleCustomerSelect,
3147
+ selectedCustomer,
3148
+ isLoading: isFetching
2392
3149
  }
2393
3150
  ) }),
2394
3151
  /* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(
@@ -2398,8 +3155,8 @@ const OrganizationSearchModal = ({ isOpen, onClose, onSelect }) => {
2398
3155
  size: "medium",
2399
3156
  appearance: "filled",
2400
3157
  width: "full",
2401
- onClick: handleSelect,
2402
- disabled: !selectedOrganization,
3158
+ onClick: handleSave,
3159
+ disabled: !selectedCustomer,
2403
3160
  children: "\uC800\uC7A5\uD558\uAE30"
2404
3161
  }
2405
3162
  ) })
@@ -2413,7 +3170,7 @@ const EMPLOYEE_SEARCH_TABS = [
2413
3170
  { value: "WKIS", label: "\uB0B4\uADFC" }
2414
3171
  ];
2415
3172
 
2416
- const cx$7 = classNames.bind(styles$6);
3173
+ const cx$7 = classNames.bind(styles$9);
2417
3174
  function EmployeeSearchResult({ filteredEmployees, onEmployeeSelect }) {
2418
3175
  return /* @__PURE__ */ jsxs("div", { className: cx$7("result-section"), children: [
2419
3176
  /* @__PURE__ */ jsxs("p", { className: cx$7("result-title"), children: [
@@ -2466,7 +3223,7 @@ function EmployeeSearchResult({ filteredEmployees, onEmployeeSelect }) {
2466
3223
  }
2467
3224
 
2468
3225
  const { TextField: TextField$1 } = FormField;
2469
- const cx$6 = classNames.bind(styles$6);
3226
+ const cx$6 = classNames.bind(styles$9);
2470
3227
  function EmployeeSearch({
2471
3228
  activeTab,
2472
3229
  onTabChange,
@@ -2493,7 +3250,7 @@ function EmployeeSearch({
2493
3250
  {
2494
3251
  value: searchInput,
2495
3252
  onChange: (e) => setSearchInput(e.target.value),
2496
- className: styles$6.searchInput,
3253
+ className: styles$9.searchInput,
2497
3254
  size: "medium",
2498
3255
  onKeyUp: (e) => e.key === "Enter" && handleSearch(),
2499
3256
  rootProps: {
@@ -2510,7 +3267,7 @@ function EmployeeSearch({
2510
3267
  {
2511
3268
  value: activeTab,
2512
3269
  onChange: (value) => onTabChange(value),
2513
- className: styles$6.select,
3270
+ className: styles$9.select,
2514
3271
  size: "medium",
2515
3272
  children: EMPLOYEE_SEARCH_TABS.map((option) => /* @__PURE__ */ jsx(Select.Option, { value: option.value, children: option.label }, option.value))
2516
3273
  }
@@ -2597,7 +3354,7 @@ const EmployeeSearchModal = ({ isOpen, onClose, onSelect }) => {
2597
3354
  ] });
2598
3355
  };
2599
3356
 
2600
- const cx$5 = classNames.bind(styles$7);
3357
+ const cx$5 = classNames.bind(styles$a);
2601
3358
  const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
2602
3359
  return /* @__PURE__ */ jsxs("div", { className: cx$5("grade-section"), children: [
2603
3360
  /* @__PURE__ */ jsxs("div", { className: cx$5("icon-title"), children: [
@@ -2618,7 +3375,7 @@ const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
2618
3375
  ] });
2619
3376
  };
2620
3377
 
2621
- const cx$4 = classNames.bind(styles$8);
3378
+ const cx$4 = classNames.bind(styles$b);
2622
3379
  function VehicleSearch({ vehicles, onVehicleSelect, selectedVehicle }) {
2623
3380
  return /* @__PURE__ */ jsxs("div", { className: cx$4("vehicle-search-section"), children: [
2624
3381
  /* @__PURE__ */ jsx("p", { children: "\uC6B4\uC804 \uCC28\uC885" }),
@@ -2719,7 +3476,7 @@ const useJobVehicleSearch = () => {
2719
3476
  };
2720
3477
  };
2721
3478
 
2722
- const cx$3 = classNames.bind(styles$7);
3479
+ const cx$3 = classNames.bind(styles$a);
2723
3480
  function useJobVehicleSearchModal() {
2724
3481
  const {
2725
3482
  selectedVehicle,
@@ -2817,46 +3574,45 @@ function useJobVehicleSearchModal() {
2817
3574
  };
2818
3575
  }
2819
3576
 
2820
- const cx$2 = classNames.bind(styles$9);
2821
- function DeaCustomerSearchResult({
2822
- customerList,
2823
- onCustomerSelect,
2824
- selectedCustomer
3577
+ const cx$2 = classNames.bind(styles$c);
3578
+ function OrganizationSearchResult({
3579
+ filteredOrganizations,
3580
+ onOrganizationSelect
2825
3581
  }) {
2826
3582
  return /* @__PURE__ */ jsxs("div", { className: cx$2("result-section"), children: [
2827
3583
  /* @__PURE__ */ jsxs("p", { className: cx$2("result-title"), children: [
2828
3584
  "\uCD1D ",
2829
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: customerList.length }),
3585
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: filteredOrganizations.length }),
2830
3586
  "\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
2831
3587
  ] }),
2832
- /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
3588
+ filteredOrganizations.length > 0 ? /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
2833
3589
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2834
3590
  /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC120\uD0DD" }),
2835
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uACE0\uAC1DID" }),
2836
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uACE0\uAC1D\uBA85" }),
2837
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
2838
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC9C1\uC885\uC5C5\uC885\uBA85" }),
2839
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC804\uD654\uBC88\uD638" }),
2840
- /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC8FC\uC18C" })
3591
+ /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
3592
+ /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uAE30\uAD00\uBA85" })
2841
3593
  ] }) }),
2842
- /* @__PURE__ */ jsx("tbody", { children: customerList.length > 0 ? customerList.map((customer) => /* @__PURE__ */ jsxs("tr", { children: [
2843
- /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2844
- "input",
2845
- {
2846
- type: "radio",
2847
- name: "customer",
2848
- value: customer.customerId || "",
2849
- checked: selectedCustomer?.customerId === customer.customerId,
2850
- onChange: () => onCustomerSelect(customer)
2851
- }
2852
- ) }),
2853
- /* @__PURE__ */ jsx("td", { children: customer.customerId }),
2854
- /* @__PURE__ */ jsx("td", { children: customer.customerName }),
2855
- /* @__PURE__ */ jsx("td", { children: customer.residentNumber }),
2856
- /* @__PURE__ */ jsx("td", { children: customer.occupationKindName }),
2857
- /* @__PURE__ */ jsx("td", { children: customer.mobilePhoneNumber }),
2858
- /* @__PURE__ */ jsx("td", { children: customer.address })
2859
- ] }, customer.customerId)) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 7, children: /* @__PURE__ */ jsxs("div", { className: cx$2("no-result"), children: [
3594
+ /* @__PURE__ */ jsx("tbody", { children: filteredOrganizations.map((organization) => {
3595
+ return /* @__PURE__ */ jsxs("tr", { children: [
3596
+ /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
3597
+ "input",
3598
+ {
3599
+ type: "radio",
3600
+ name: "organization",
3601
+ value: organization.organizationCode || "",
3602
+ onChange: () => onOrganizationSelect(organization)
3603
+ }
3604
+ ) }),
3605
+ /* @__PURE__ */ jsx("td", { children: organization.organizationCode }),
3606
+ /* @__PURE__ */ jsx("td", { children: organization.organizationName })
3607
+ ] }, organization.organizationCode);
3608
+ }) })
3609
+ ] }) : /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
3610
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
3611
+ /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uC120\uD0DD" }),
3612
+ /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
3613
+ /* @__PURE__ */ jsx("th", { className: cx$2("th-padding"), children: "\uAE30\uAD00\uBA85" })
3614
+ ] }) }),
3615
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxs("div", { className: cx$2("no-result"), children: [
2860
3616
  /* @__PURE__ */ jsx(IconGraphicsFeedbackEmpty, {}),
2861
3617
  /* @__PURE__ */ jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
2862
3618
  /* @__PURE__ */ jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
@@ -2866,71 +3622,37 @@ function DeaCustomerSearchResult({
2866
3622
  }
2867
3623
 
2868
3624
  const { TextField } = FormField;
2869
- const cx$1 = classNames.bind(styles$9);
2870
- function DeaCustomerSearch({
2871
- setSearchParams,
2872
- customerList,
2873
- onCustomerSelect,
2874
- selectedCustomer
3625
+ const cx$1 = classNames.bind(styles$c);
3626
+ function OrganizationSearch({
3627
+ searchTerm,
3628
+ setSearchTerm,
3629
+ searchInput,
3630
+ setSearchInput,
3631
+ organizationList,
3632
+ onOrganizationSelect
2875
3633
  }) {
2876
- const [residentNumber1, setResidentNumber1] = useState("");
2877
- const [residentNumber2, setResidentNumber2] = useState("");
2878
3634
  const handleSearch = () => {
2879
- setSearchParams({ residentNumber: `${residentNumber1}${residentNumber2}` });
3635
+ setSearchTerm(searchInput);
2880
3636
  };
2881
3637
  const handleReset = () => {
2882
- setResidentNumber1("");
2883
- setResidentNumber2("");
2884
- setSearchParams({});
2885
- };
2886
- const onKeyUp = (e) => {
2887
- e.key === "Enter" && handleSearch();
2888
- };
2889
- const onKeyDown = (e) => {
2890
- if (!(e.key === "Backspace" || !isNaN(parseInt(e.key)))) {
2891
- e.preventDefault();
2892
- }
3638
+ setSearchTerm("");
3639
+ setSearchInput("");
2893
3640
  };
2894
3641
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2895
3642
  /* @__PURE__ */ jsx("div", { className: cx$1("search-section"), children: /* @__PURE__ */ jsxs("div", { className: cx$1("search-filters"), children: [
2896
3643
  /* @__PURE__ */ jsxs("div", { className: cx$1("search-filter-section"), children: [
2897
- /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uACE0\uAC1D \uAD6C\uBD84" }),
2898
- /* @__PURE__ */ jsx(Select, { value: "personal", placeholder: "\uAC1C\uC778", disabled: true, style: { width: "100px" }, children: /* @__PURE__ */ jsx(Select.Option, { value: "personal", children: "\uAC1C\uC778" }) }),
2899
- /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
2900
- /* @__PURE__ */ jsx(
2901
- TextField,
2902
- {
2903
- value: residentNumber1,
2904
- maxLength: 6,
2905
- placeholder: "\uC55E 6\uC790\uB9AC \uC785\uB825",
2906
- onChange: (e) => setResidentNumber1(e.target.value),
2907
- size: "medium",
2908
- onKeyUp,
2909
- onKeyDown,
2910
- rootProps: {
2911
- className: cx$1("search-input"),
2912
- onClear: () => {
2913
- setResidentNumber1("");
2914
- }
2915
- }
2916
- }
2917
- ),
2918
- "-",
3644
+ /* @__PURE__ */ jsx(FormField.Label, { className: "subtitle3 text-body-1", children: "\uAE30\uAD00\uBA85/\uCF54\uB4DC" }),
2919
3645
  /* @__PURE__ */ jsx(
2920
3646
  TextField,
2921
3647
  {
2922
- value: residentNumber2,
2923
- maxLength: 7,
2924
- placeholder: "\uB4A4 7\uC790\uB9AC \uC785\uB825",
2925
- onChange: (e) => setResidentNumber2(e.target.value),
3648
+ value: searchInput,
3649
+ onChange: (e) => setSearchInput(e.target.value),
2926
3650
  size: "medium",
2927
- onKeyDown,
2928
- onKeyUp,
3651
+ onKeyUp: (e) => e.key === "Enter" && handleSearch(),
2929
3652
  rootProps: {
2930
3653
  className: cx$1("search-input"),
2931
- onClear: () => {
2932
- setResidentNumber2("");
2933
- }
3654
+ clearable: true,
3655
+ onClear: handleReset
2934
3656
  }
2935
3657
  }
2936
3658
  )
@@ -2941,59 +3663,54 @@ function DeaCustomerSearch({
2941
3663
  ] })
2942
3664
  ] }) }),
2943
3665
  /* @__PURE__ */ jsx("div", { className: cx$1("divider") }),
2944
- /* @__PURE__ */ jsx(
2945
- DeaCustomerSearchResult,
3666
+ searchTerm && /* @__PURE__ */ jsx(
3667
+ OrganizationSearchResult,
2946
3668
  {
2947
- customerList,
2948
- onCustomerSelect,
2949
- selectedCustomer
3669
+ filteredOrganizations: organizationList,
3670
+ onOrganizationSelect,
3671
+ searchTerm
2950
3672
  }
2951
3673
  )
2952
3674
  ] });
2953
3675
  }
2954
3676
 
2955
- const DeaCustomerSearchModal = ({ isOpen, onClose, onSave }) => {
2956
- const [selectedCustomer, setSelectedCustomer] = useState(null);
2957
- const [searchParams, setSearchParams] = useState({});
2958
- const canSearch = useMemo(() => !!(searchParams.customerName || searchParams.residentNumber), [searchParams]);
2959
- const { data, isFetching } = useQuery({
2960
- queryKey: ["deaCustomerSearch", searchParams],
2961
- queryFn: () => getDspCustomerListMethod(searchParams),
2962
- enabled: canSearch,
2963
- retry: false
3677
+ const OrganizationSearchModal = ({ isOpen, onClose, onSelect }) => {
3678
+ const [selectedOrganization, setSelectedOrganization] = useState(null);
3679
+ const [searchTerm, setSearchTerm] = useState("");
3680
+ const [searchInput, setSearchInput] = useState("");
3681
+ const { data } = useSearchOrganizationQuery({
3682
+ searchWord: searchTerm
2964
3683
  });
2965
- const [customerList, setCustomerList] = useState([]);
3684
+ const [organizationList, setOrganizationList] = useState([]);
2966
3685
  useEffect(() => {
2967
3686
  if (data?.data) {
2968
- setCustomerList(data.data);
3687
+ setOrganizationList(data.data);
2969
3688
  } else {
2970
- setCustomerList([]);
3689
+ setOrganizationList([]);
2971
3690
  }
2972
3691
  }, [data]);
2973
- useEffect(() => {
2974
- setSelectedCustomer(null);
2975
- }, [customerList]);
2976
- const handleCustomerSelect = (customer) => {
2977
- setSelectedCustomer(customer);
3692
+ const handleOrganizationSelect = (organization) => {
3693
+ setSelectedOrganization(organization);
2978
3694
  };
2979
- const handleSave = () => {
2980
- if (selectedCustomer) {
2981
- onSave(selectedCustomer);
3695
+ const handleSelect = () => {
3696
+ if (selectedOrganization) {
3697
+ onSelect(selectedOrganization);
2982
3698
  onClose();
2983
3699
  }
2984
3700
  };
2985
3701
  return /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose, modalSize: "xlarge", children: [
2986
3702
  /* @__PURE__ */ jsx(Modal.Overlay, {}),
2987
3703
  /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
2988
- /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uACE0\uAC1D \uAC80\uC0C9", showCloseButton: true }),
3704
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uAE30\uAD00 \uAC80\uC0C9", showCloseButton: true }),
2989
3705
  /* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(
2990
- DeaCustomerSearch,
3706
+ OrganizationSearch,
2991
3707
  {
2992
- setSearchParams,
2993
- customerList,
2994
- onCustomerSelect: handleCustomerSelect,
2995
- selectedCustomer,
2996
- isLoading: isFetching
3708
+ searchTerm,
3709
+ setSearchTerm,
3710
+ searchInput,
3711
+ setSearchInput,
3712
+ organizationList,
3713
+ onOrganizationSelect: handleOrganizationSelect
2997
3714
  }
2998
3715
  ) }),
2999
3716
  /* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(
@@ -3003,8 +3720,8 @@ const DeaCustomerSearchModal = ({ isOpen, onClose, onSave }) => {
3003
3720
  size: "medium",
3004
3721
  appearance: "filled",
3005
3722
  width: "full",
3006
- onClick: handleSave,
3007
- disabled: !selectedCustomer,
3723
+ onClick: handleSelect,
3724
+ disabled: !selectedOrganization,
3008
3725
  children: "\uC800\uC7A5\uD558\uAE30"
3009
3726
  }
3010
3727
  ) })
@@ -3012,134 +3729,23 @@ const DeaCustomerSearchModal = ({ isOpen, onClose, onSave }) => {
3012
3729
  ] });
3013
3730
  };
3014
3731
 
3015
- const useCustomerSearch = (onSelect) => {
3016
- const { triggerRef, isOpen, setIsOpen, DropDown } = useDropDown();
3017
- const [searchKeyword, setSearchKeyword] = useState("");
3018
- const [searchInput, setSearchInput] = useState("");
3019
- const [customerList, setCustomerList] = useState([]);
3020
- const [selectedCustomer, setSelectedCustomer] = useState(null);
3021
- const { data } = useSearchCustomerListQuery({ customerName: searchKeyword });
3022
- const search = () => {
3023
- if (searchInput.length >= 2) {
3024
- setSearchKeyword(searchInput);
3025
- const filtered = data?.data?.custList?.filter(
3026
- (c) => c.customerName?.toLowerCase().includes(searchInput.toLowerCase())
3027
- );
3028
- setCustomerList(filtered || []);
3029
- setIsOpen(true);
3030
- } else {
3031
- setCustomerList([]);
3032
- setSearchKeyword("");
3033
- setIsOpen(false);
3034
- }
3035
- };
3036
- const onKeyUp = (e) => {
3037
- if (e.key === "Enter") {
3038
- search();
3039
- }
3040
- };
3041
- const onSearchInputChange = (e) => {
3042
- setSearchInput(e.target.value);
3043
- if (e.target.value.length < 2) {
3044
- setCustomerList([]);
3045
- setSearchKeyword("");
3046
- setIsOpen(false);
3047
- }
3048
- };
3049
- const onClear = () => {
3050
- setSearchInput("");
3051
- setSearchKeyword("");
3052
- setCustomerList([]);
3053
- setSelectedCustomer(null);
3054
- setIsOpen(false);
3055
- };
3056
- const handleSelectItem = (customer) => {
3057
- setSelectedCustomer(customer);
3058
- setSearchInput(customer.customerName || "");
3059
- setCustomerList([]);
3060
- setIsOpen(false);
3061
- if (onSelect) {
3062
- onSelect(customer);
3063
- }
3064
- };
3065
- return {
3066
- triggerRef,
3067
- isOpen,
3068
- DropDown,
3069
- searchInput,
3070
- customerList,
3071
- searchKeyword,
3072
- onSearchInputChange,
3073
- onKeyUp,
3074
- search,
3075
- onClear,
3076
- handleSelectItem,
3077
- selectedCustomer,
3078
- setSearchInput,
3079
- setCustomerList,
3080
- setSearchKeyword,
3081
- setIsOpen
3082
- };
3083
- };
3084
-
3085
- const cx = classNames.bind(styles$a);
3086
- const highlightOnSearchKeyword = (originalText, targetString) => {
3087
- if (!targetString || !originalText?.includes(targetString)) {
3088
- return originalText;
3089
- }
3090
- const replacedText = [];
3091
- const splitText = originalText.split(targetString);
3092
- for (let i = 0; i < splitText.length; i++) {
3093
- replacedText.push(splitText[i] || "");
3094
- if (i < splitText.length - 1) {
3095
- replacedText.push(
3096
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: targetString }, i)
3097
- );
3098
- }
3099
- }
3100
- return replacedText;
3101
- };
3102
- const { InputBox, Input } = FormCore;
3103
- const CustomerSearch = ({ onSelect }) => {
3104
- const {
3105
- triggerRef,
3106
- isOpen,
3107
- DropDown,
3108
- searchInput,
3109
- customerList,
3110
- searchKeyword,
3111
- onSearchInputChange,
3112
- onKeyUp,
3113
- search,
3114
- onClear,
3115
- handleSelectItem
3116
- } = useCustomerSearch(onSelect);
3117
- return /* @__PURE__ */ jsxs("div", { className: cx("container"), children: [
3118
- /* @__PURE__ */ jsx("div", { className: cx("search-bar"), children: /* @__PURE__ */ jsx(InputBox, { endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsx(
3119
- Input,
3120
- {
3121
- onChange: onSearchInputChange,
3122
- onKeyUp,
3123
- value: searchInput,
3124
- placeholder: "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
3125
- size: "large",
3126
- ref: triggerRef
3127
- }
3128
- ) }) }),
3129
- isOpen && customerList.length > 0 && /* @__PURE__ */ jsx(DropDown, { children: /* @__PURE__ */ jsx("div", { className: cx("result-container"), children: /* @__PURE__ */ jsx(List, { children: customerList.map((customer) => /* @__PURE__ */ jsx(ListItem, { onClick: () => handleSelectItem(customer), selectable: true, children: /* @__PURE__ */ jsxs("div", { className: cx("customer-item"), children: [
3130
- /* @__PURE__ */ jsx("div", { className: cx("name"), children: highlightOnSearchKeyword(customer.customerName || "", searchKeyword) }),
3131
- /* @__PURE__ */ jsxs("div", { className: cx("details"), children: [
3132
- /* @__PURE__ */ jsx("span", { children: customer.birthDate }),
3133
- /* @__PURE__ */ jsx("span", { className: cx("separator"), children: "|" }),
3134
- /* @__PURE__ */ jsx("span", { children: customer.genderCode }),
3135
- customer.baseAddress && /* @__PURE__ */ jsxs(Fragment, { children: [
3136
- /* @__PURE__ */ jsx("span", { className: cx("separator"), children: "|" }),
3137
- /* @__PURE__ */ jsx("span", { children: customer.baseAddress })
3138
- ] })
3139
- ] })
3140
- ] }) }, customer.customerId)) }) }) })
3732
+ const cx = classNames.bind(styles$b);
3733
+ function JobVehicleSearchModal({ onClose }) {
3734
+ const { selectedVehicle, VehicleSearchComponent } = useVehicleSearch();
3735
+ return /* @__PURE__ */ jsxs(Modal.Root, { isOpen: true, onClose, modalSize: "xlarge", children: [
3736
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
3737
+ /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
3738
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
3739
+ /* @__PURE__ */ jsx(Modal.Body, { className: cx("job-vehicle-search-modal"), raw: true, children: VehicleSearchComponent }),
3740
+ /* @__PURE__ */ jsx(Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxs(Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick: onClose, children: [
3741
+ "\uD655\uC778(",
3742
+ selectedVehicle?.integrationCodeValueName || "\uBBF8\uC120\uD0DD",
3743
+ ")-",
3744
+ selectedVehicle?.integrationCodeValue
3745
+ ] }) })
3746
+ ] })
3141
3747
  ] });
3142
- };
3748
+ }
3143
3749
 
3144
3750
  const VERIFICATION_CODES = {
3145
3751
  SUCCESS: "0000",
@@ -3358,5 +3964,5 @@ const useRemoteIdentityVerificationPopup = (config) => {
3358
3964
  };
3359
3965
  };
3360
3966
 
3361
- export { Attachment, BankStockSearchModal, CustomerSearch, DeaCustomerSearchModal, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, OrganizationSearchModal, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useJobSearchModal, useJobVehicleSearchModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress };
3967
+ export { Attachment, BankStockSearchModal, CODES, CustomerSearch, DeaCustomerSearchModal, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobVehicleSearchModal, OrganizationSearchModal, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useJobSearchModal, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress, useSearchNationality, useSearchVisa, useVisaComponent };
3362
3968
  //# sourceMappingURL=index.esm.js.map