sales-frontend-components 0.0.88 → 0.0.89
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.cjs.js +364 -149
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +22 -5
- package/dist/index.esm.js +365 -151
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs.js
CHANGED
|
@@ -15,7 +15,9 @@ var styles$5 = require('./modal/pre-standard/organization-search-modal/organizat
|
|
|
15
15
|
var styles$6 = require('./modal/pre-standard/employee-search-modal/employee-search-modal.module.scss');
|
|
16
16
|
var styles$7 = require('./modal/pre-standard/job-vehicle-search-modal/job-vehicle-search-modal.module.scss');
|
|
17
17
|
var styles$8 = require('./modal/pre-standard/vehicle-search-modal/vehicle-search-modal.module.scss');
|
|
18
|
-
var
|
|
18
|
+
var reactQuery = require('@tanstack/react-query');
|
|
19
|
+
var styles$9 = require('./modal/pre-standard/dea-customer-search-modal/dea-customer-search-modal.module.scss');
|
|
20
|
+
var styles$a = require('./modal/standard/customer-search/customer-search.module.scss');
|
|
19
21
|
var salesFrontendUtils = require('sales-frontend-utils');
|
|
20
22
|
|
|
21
23
|
const FormCheckboxButton = ({
|
|
@@ -305,15 +307,15 @@ function JobSearchDetail({ occupationTypeCode, occupationIndustryCode }) {
|
|
|
305
307
|
] }) }) });
|
|
306
308
|
}
|
|
307
309
|
|
|
308
|
-
const cx$
|
|
310
|
+
const cx$g = classNames.bind(styles);
|
|
309
311
|
function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
310
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
311
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$
|
|
312
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$g("category-section"), children: [
|
|
313
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$g("result-title"), children: [
|
|
312
314
|
"\uCD1D ",
|
|
313
315
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: filteredJobs.length }),
|
|
314
316
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
315
317
|
] }),
|
|
316
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$
|
|
318
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$g("job-radio-root"), onToggle: () => {
|
|
317
319
|
}, children: filteredJobs.map((job, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
318
320
|
salesFrontendDesignSystem.Accordion.Item,
|
|
319
321
|
{
|
|
@@ -344,23 +346,23 @@ function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
344
346
|
] }) });
|
|
345
347
|
}
|
|
346
348
|
|
|
347
|
-
const cx$
|
|
349
|
+
const cx$f = classNames.bind(styles);
|
|
348
350
|
function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
349
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
351
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$f("popular-jobs"), children: [
|
|
350
352
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uB9CE\uC774 \uCC3E\uB294 \uC9C1\uC885" }),
|
|
351
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$
|
|
353
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$f("job-radio-root"), children: filteredJobs.map((job, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
352
354
|
salesFrontendDesignSystem.Accordion.Item,
|
|
353
355
|
{
|
|
354
356
|
id: `item-${job.occupationIndustryCode}-${index}`,
|
|
355
|
-
className: cx$
|
|
357
|
+
className: cx$f("accordion-item"),
|
|
356
358
|
children: [
|
|
357
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.HeaderDiv, { className: cx$
|
|
359
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.HeaderDiv, { className: cx$f("accordion-header-item"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
358
360
|
salesFrontendDesignSystem.Radio.Item,
|
|
359
361
|
{
|
|
360
362
|
size: "small",
|
|
361
363
|
value: job.occupationIndustryCode,
|
|
362
364
|
onChange: () => onJobSelect(job),
|
|
363
|
-
className: cx$
|
|
365
|
+
className: cx$f("radio-item"),
|
|
364
366
|
children: [
|
|
365
367
|
job.occupationIndustryName,
|
|
366
368
|
"(",
|
|
@@ -383,15 +385,15 @@ function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
|
383
385
|
] }) });
|
|
384
386
|
}
|
|
385
387
|
|
|
386
|
-
const cx$
|
|
388
|
+
const cx$e = classNames.bind(styles);
|
|
387
389
|
function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
388
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
389
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$
|
|
390
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$e("popular-jobs"), children: [
|
|
391
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$e("result-title"), children: [
|
|
390
392
|
"\uCD1D ",
|
|
391
393
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: filteredJobs.length }),
|
|
392
394
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
393
395
|
] }),
|
|
394
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$
|
|
396
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Accordion.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Radio.Root, { name: "job-selection", size: "small", className: cx$e("job-radio-root"), children: filteredJobs.map((job) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
395
397
|
salesFrontendDesignSystem.Accordion.Item,
|
|
396
398
|
{
|
|
397
399
|
id: `item-${job.occupationIndustryCode}`,
|
|
@@ -427,8 +429,8 @@ function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
427
429
|
] }) });
|
|
428
430
|
}
|
|
429
431
|
|
|
430
|
-
const { TextField: TextField$
|
|
431
|
-
const cx$
|
|
432
|
+
const { TextField: TextField$3 } = salesFrontendDesignSystem.FormField;
|
|
433
|
+
const cx$d = classNames.bind(styles);
|
|
432
434
|
const { Option } = salesFrontendDesignSystem.Select;
|
|
433
435
|
function JobSearch({
|
|
434
436
|
activeTab,
|
|
@@ -466,9 +468,9 @@ function JobSearch({
|
|
|
466
468
|
}
|
|
467
469
|
),
|
|
468
470
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
469
|
-
activeTab === "jobName" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
471
|
+
activeTab === "jobName" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$d("favorite-jobs-section"), children: [
|
|
470
472
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
471
|
-
TextField$
|
|
473
|
+
TextField$3,
|
|
472
474
|
{
|
|
473
475
|
placeholder: "\uC9C1\uC885\uBA85 \uAC80\uC0C9",
|
|
474
476
|
value: searchInput,
|
|
@@ -488,8 +490,8 @@ function JobSearch({
|
|
|
488
490
|
!searchTerm && /* @__PURE__ */ jsxRuntime.jsx(JobSearchFavorite, { filteredJobs, onJobSelect }),
|
|
489
491
|
searchTerm && !isLoading && /* @__PURE__ */ jsxRuntime.jsx(JobSearchResult, { filteredJobs, onJobSelect, searchTerm })
|
|
490
492
|
] }),
|
|
491
|
-
activeTab === "jobCode" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
492
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
493
|
+
activeTab === "jobCode" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$d("select-jobs-section"), children: [
|
|
494
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$d("category-section"), children: [
|
|
493
495
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
494
496
|
salesFrontendDesignSystem.Select,
|
|
495
497
|
{
|
|
@@ -911,7 +913,7 @@ const FormTextField = ({
|
|
|
911
913
|
);
|
|
912
914
|
};
|
|
913
915
|
|
|
914
|
-
const cx$
|
|
916
|
+
const cx$c = classNames.bind(styles$1);
|
|
915
917
|
const StepIndicator = ({
|
|
916
918
|
items,
|
|
917
919
|
onClickItem,
|
|
@@ -946,26 +948,26 @@ const StepIndicator = ({
|
|
|
946
948
|
salesFrontendDesignSystem.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");
|
|
947
949
|
}
|
|
948
950
|
};
|
|
949
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
950
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
951
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$c("stepper-layout", { loading: isLoading }), children: [
|
|
952
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$c("stepper"), children: steps.map((item, idx) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
951
953
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
952
954
|
"div",
|
|
953
955
|
{
|
|
954
|
-
className: cx$
|
|
956
|
+
className: cx$c(
|
|
955
957
|
"circle",
|
|
956
958
|
{ completed: item.isCompleted ?? false },
|
|
957
959
|
{ active: defaultValue === item.value || current === idx }
|
|
958
960
|
),
|
|
959
961
|
onClick: () => handleClickStep?.(item),
|
|
960
|
-
children: item.isCompleted ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
962
|
+
children: item.isCompleted ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$c("completed-icon") }) : idx + 1
|
|
961
963
|
}
|
|
962
964
|
),
|
|
963
|
-
idx < steps.length - 1 && Array.from({ length: dotCount }).map((_, dotIdx) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
965
|
+
idx < steps.length - 1 && Array.from({ length: dotCount }).map((_, dotIdx) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$c("dot") }, `dot-${idx}-${dotIdx}`))
|
|
964
966
|
] }, `num-${idx}`)) }),
|
|
965
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: cx$
|
|
967
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: cx$c("step-labels"), children: steps.map((item, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
966
968
|
"li",
|
|
967
969
|
{
|
|
968
|
-
className: cx$
|
|
970
|
+
className: cx$c(
|
|
969
971
|
{ completed: steps[idx < 1 ? idx : idx - 1]?.isCompleted ?? false },
|
|
970
972
|
{ active: defaultValue === item.value || current === idx }
|
|
971
973
|
),
|
|
@@ -977,7 +979,7 @@ const StepIndicator = ({
|
|
|
977
979
|
] });
|
|
978
980
|
};
|
|
979
981
|
|
|
980
|
-
const cx$
|
|
982
|
+
const cx$b = classNames.bind(styles$2);
|
|
981
983
|
function Attachment({
|
|
982
984
|
photos,
|
|
983
985
|
onAddPhoto,
|
|
@@ -994,14 +996,14 @@ function Attachment({
|
|
|
994
996
|
};
|
|
995
997
|
const renderPhotoSingle = () => {
|
|
996
998
|
if (photos.length === 0) {
|
|
997
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
999
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("single-photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxRuntime.jsxs("button", { className: cx$b("add-photo-button-single"), onClick: handleAddPhoto, children: [
|
|
998
1000
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustCamera, {}),
|
|
999
1001
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: buttonText || "\uC0AC\uC9C4 \uCCA8\uBD80\uD558\uAE30" })
|
|
1000
1002
|
] }) });
|
|
1001
1003
|
}
|
|
1002
|
-
return photos.map((photo) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1003
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1004
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { className: cx$
|
|
1004
|
+
return photos.map((photo) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$b("single-photo-item"), children: [
|
|
1005
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("photo-placeholder"), children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: photo.src, alt: photo.name, className: cx$b("photo-image") }) }),
|
|
1006
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { className: cx$b("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
|
|
1005
1007
|
] }, photo.id));
|
|
1006
1008
|
};
|
|
1007
1009
|
const renderPhotoGrid = () => {
|
|
@@ -1009,12 +1011,12 @@ function Attachment({
|
|
|
1009
1011
|
const gridItems = [];
|
|
1010
1012
|
if (photos.length < maxPhotos) {
|
|
1011
1013
|
gridItems.push(
|
|
1012
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1014
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxRuntime.jsxs("button", { className: cx$b("add-photo-button"), onClick: handleAddPhoto, children: [
|
|
1013
1015
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustCamera, {}),
|
|
1014
1016
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: buttonText || "\uCCA8\uBD80\uD558\uAE30" }),
|
|
1015
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: cx$
|
|
1017
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: cx$b("photo-count"), children: [
|
|
1016
1018
|
"(",
|
|
1017
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
1019
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$b("photo-count-number"), children: photos.length }),
|
|
1018
1020
|
"/",
|
|
1019
1021
|
maxPhotos,
|
|
1020
1022
|
")"
|
|
@@ -1024,9 +1026,9 @@ function Attachment({
|
|
|
1024
1026
|
}
|
|
1025
1027
|
photos.forEach((photo) => {
|
|
1026
1028
|
gridItems.push(
|
|
1027
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1028
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1029
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { className: cx$
|
|
1029
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$b("photo-item"), children: [
|
|
1030
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("photo-placeholder"), children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: photo.src, alt: photo.name, className: cx$b("photo-image") }) }),
|
|
1031
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { className: cx$b("remove-button"), onClick: () => handleRemovePhoto(photo.id), "aria-label": "\uC0AC\uC9C4 \uC0AD\uC81C", children: "\xD7" })
|
|
1030
1032
|
] }, photo.id)
|
|
1031
1033
|
);
|
|
1032
1034
|
});
|
|
@@ -1037,9 +1039,9 @@ function Attachment({
|
|
|
1037
1039
|
return null;
|
|
1038
1040
|
}
|
|
1039
1041
|
if (type === "single") {
|
|
1040
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1042
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("photo-single"), children: renderPhotoSingle() });
|
|
1041
1043
|
}
|
|
1042
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1044
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$b("photo-grid", { linear: type === "linear" }), children: renderPhotoGrid() });
|
|
1043
1045
|
}
|
|
1044
1046
|
|
|
1045
1047
|
const maxImageSize = 3 * 1024 * 1024;
|
|
@@ -1486,12 +1488,12 @@ function useCanvasPaint(paintProps = {}) {
|
|
|
1486
1488
|
|
|
1487
1489
|
const testSignatureBase64Data = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAABkCAYAAACoy2Z3AAAQAElEQVR4Ae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CNiA9GPjJ0bACBgBIxBBwAYkAs74R87BCBgBI9AuAjYg7datJTMCRsAIzIqADcis8DpzI2AE1kLA5c6PwP8AAAD//+3/3TsAAAAGSURBVAMAJI6e9smFlTAAAAAASUVORK5CYII=";
|
|
1488
1490
|
|
|
1489
|
-
const cx$
|
|
1491
|
+
const cx$a = classNames.bind(styles$3);
|
|
1490
1492
|
const { InputBox: InputBox$1, Input: Input$1 } = salesFrontendDesignSystem.FormCore;
|
|
1491
1493
|
const AddressSearchInitialText = () => {
|
|
1492
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1493
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cx$
|
|
1494
|
-
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: cx$
|
|
1494
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("search-result-list"), children: [
|
|
1495
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cx$a("guide-title"), children: "\uC774\uB807\uAC8C \uAC80\uC0C9\uD574 \uBCF4\uC138\uC694." }),
|
|
1496
|
+
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: cx$a("guide"), children: [
|
|
1495
1497
|
/* @__PURE__ */ jsxRuntime.jsx("li", { children: "\uB3C4\uB85C\uBA85/\uC9C0\uBA85\uACFC \uAC74\uBB3C\uBC88\uD638\uB97C \uD568\uAED8 \uC785\uB825\uD574\uC8FC\uC138\uC694" }),
|
|
1496
1498
|
/* @__PURE__ */ jsxRuntime.jsx("li", { children: "\uC608) 63\uB85C 50, \uC5EC\uC758\uB3C4\uB3D9 60" }),
|
|
1497
1499
|
/* @__PURE__ */ jsxRuntime.jsx("li", { children: "\uC9C0\uBA85\uC740 \uB3D9/\uC74D/\uBA74/\uB9AC\uB85C \uC785\uB825\uD574\uC8FC\uC138\uC694" }),
|
|
@@ -1507,8 +1509,8 @@ const AddressSearchResult = ({
|
|
|
1507
1509
|
searchKeyword,
|
|
1508
1510
|
selectedAddress
|
|
1509
1511
|
}) => {
|
|
1510
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1511
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$
|
|
1512
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("search-result-list"), children: [
|
|
1513
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$a("guide-title"), children: [
|
|
1512
1514
|
"\uCD1D ",
|
|
1513
1515
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: addressSearchList.length }),
|
|
1514
1516
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
@@ -1520,15 +1522,15 @@ const AddressSearchResult = ({
|
|
|
1520
1522
|
return {
|
|
1521
1523
|
value: JSON.stringify(item),
|
|
1522
1524
|
select: item.roadNameBaseAddress === selectedAddress?.roadNameBaseAddress && item.roadNameDetailAddress === selectedAddress?.roadNameDetailAddress && item.mainBuildingName === selectedAddress?.mainBuildingName,
|
|
1523
|
-
label: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1524
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1525
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
1526
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1527
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
1525
|
+
label: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("search-result"), children: [
|
|
1526
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$a("zipcode"), children: highlightOnSearchKeyword$1(`${item.firstPostalCode}${item.secondPostalCode}`, searchKeyword) }),
|
|
1527
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$a("divider") }),
|
|
1528
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("address-info"), children: [
|
|
1529
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$a("address"), children: highlightOnSearchKeyword$1(
|
|
1528
1530
|
`${item.roadNameBaseAddress} ${item.roadNameDetailAddress} ${item.mainBuildingName}`,
|
|
1529
1531
|
searchKeyword
|
|
1530
1532
|
) }),
|
|
1531
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
1533
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$a("old-address"), children: highlightOnSearchKeyword$1(
|
|
1532
1534
|
`${item.landNumberBaseAddress} ${item.landNumberDetailAddress}`,
|
|
1533
1535
|
searchKeyword
|
|
1534
1536
|
) })
|
|
@@ -1537,7 +1539,7 @@ const AddressSearchResult = ({
|
|
|
1537
1539
|
id: JSON.stringify(item)
|
|
1538
1540
|
};
|
|
1539
1541
|
}),
|
|
1540
|
-
className: cx$
|
|
1542
|
+
className: cx$a("radio-group"),
|
|
1541
1543
|
name: "address-search",
|
|
1542
1544
|
size: "medium",
|
|
1543
1545
|
defaultValue: "",
|
|
@@ -1552,36 +1554,42 @@ const AddressSearchResult = ({
|
|
|
1552
1554
|
] });
|
|
1553
1555
|
};
|
|
1554
1556
|
const AddressSearchDetailInput = ({
|
|
1555
|
-
|
|
1557
|
+
selectedStandardizationAddress,
|
|
1556
1558
|
onDetailChange,
|
|
1557
|
-
onStandardizationChange,
|
|
1558
1559
|
step,
|
|
1560
|
+
onStandardizationChange,
|
|
1559
1561
|
detailAddressInput
|
|
1560
1562
|
}) => {
|
|
1561
|
-
|
|
1563
|
+
const { land, road } = selectedStandardizationAddress;
|
|
1564
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("search-result-list"), children: [
|
|
1562
1565
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1563
|
-
salesFrontendDesignSystem.
|
|
1566
|
+
salesFrontendDesignSystem.Radio.Root,
|
|
1564
1567
|
{
|
|
1565
|
-
items: addressStandardizationList.map((item) => {
|
|
1566
|
-
return {
|
|
1567
|
-
value: JSON.stringify(item),
|
|
1568
|
-
select: true,
|
|
1569
|
-
label: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$8("search-result"), children: [
|
|
1570
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$8("zipcode"), children: `${item.firstPostalCode}${item.secondPostalCode}` }),
|
|
1571
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$8("divider") }),
|
|
1572
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$8("address-info"), children: [
|
|
1573
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$8("address"), children: `${item.baseAddress} ${item.detailAddress}` }),
|
|
1574
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$8("old-address"), children: `${item.baseAddress} ${item.detailAddress}` })
|
|
1575
|
-
] })
|
|
1576
|
-
] }),
|
|
1577
|
-
id: JSON.stringify(item)
|
|
1578
|
-
};
|
|
1579
|
-
}),
|
|
1580
|
-
className: cx$8("radio-group"),
|
|
1581
1568
|
name: "address-search-standardization",
|
|
1582
1569
|
size: "medium",
|
|
1583
|
-
defaultValue:
|
|
1584
|
-
|
|
1570
|
+
defaultValue: JSON.stringify(selectedStandardizationAddress),
|
|
1571
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1572
|
+
salesFrontendDesignSystem.Radio.Item,
|
|
1573
|
+
{
|
|
1574
|
+
className: cx$a("radio-group"),
|
|
1575
|
+
value: JSON.stringify(selectedStandardizationAddress),
|
|
1576
|
+
onChange: onStandardizationChange,
|
|
1577
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("search-result"), children: [
|
|
1578
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1579
|
+
"div",
|
|
1580
|
+
{
|
|
1581
|
+
className: cx$a("zipcode"),
|
|
1582
|
+
children: `${selectedStandardizationAddress.land?.firstPostalCode}${land?.secondPostalCode}`
|
|
1583
|
+
}
|
|
1584
|
+
),
|
|
1585
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$a("divider") }),
|
|
1586
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$a("address-info"), children: [
|
|
1587
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$a("address"), children: `${road?.baseAddress} ${road?.detailAddress}` }),
|
|
1588
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$a("old-address"), children: `${land?.baseAddress} ${land?.detailAddress}` })
|
|
1589
|
+
] })
|
|
1590
|
+
] })
|
|
1591
|
+
}
|
|
1592
|
+
)
|
|
1585
1593
|
}
|
|
1586
1594
|
),
|
|
1587
1595
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "d-flex gap-medium items-center", children: [
|
|
@@ -1622,7 +1630,8 @@ function AddressComponent({ isOpen, onClose, setValue }) {
|
|
|
1622
1630
|
searchInput,
|
|
1623
1631
|
selectedAddress,
|
|
1624
1632
|
onStandardizationChange,
|
|
1625
|
-
|
|
1633
|
+
selectedStandardizationAddress,
|
|
1634
|
+
isLoading
|
|
1626
1635
|
} = useSearchAddress({
|
|
1627
1636
|
setValue,
|
|
1628
1637
|
onClose,
|
|
@@ -1645,7 +1654,7 @@ function AddressComponent({ isOpen, onClose, setValue }) {
|
|
|
1645
1654
|
}
|
|
1646
1655
|
) }),
|
|
1647
1656
|
addressSearchStep === "initial" && /* @__PURE__ */ jsxRuntime.jsx(AddressSearchInitialText, {}),
|
|
1648
|
-
addressSearchStep === "search-result" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1657
|
+
!isLoading && addressSearchStep === "search-result" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1649
1658
|
AddressSearchResult,
|
|
1650
1659
|
{
|
|
1651
1660
|
onChange: onSelectChange,
|
|
@@ -1654,10 +1663,10 @@ function AddressComponent({ isOpen, onClose, setValue }) {
|
|
|
1654
1663
|
selectedAddress
|
|
1655
1664
|
}
|
|
1656
1665
|
),
|
|
1657
|
-
addressSearchStep === "detail-input" && selectedAddress && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
|
+
!isLoading && addressSearchStep === "detail-input" && selectedAddress && selectedStandardizationAddress && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1658
1667
|
AddressSearchDetailInput,
|
|
1659
1668
|
{
|
|
1660
|
-
|
|
1669
|
+
selectedStandardizationAddress,
|
|
1661
1670
|
onStandardizationChange,
|
|
1662
1671
|
onDetailChange: setDetail,
|
|
1663
1672
|
step: addressSearchStep,
|
|
@@ -1700,11 +1709,11 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
1700
1709
|
detailAddress: "",
|
|
1701
1710
|
roadNameYn: "Y"
|
|
1702
1711
|
});
|
|
1703
|
-
const { data: addressData } = method.useSearchAddressQuery(
|
|
1712
|
+
const { data: addressData, isLoading: isLoadingAddress } = method.useSearchAddressQuery(
|
|
1704
1713
|
{ searchKeyWord: searchKeyword },
|
|
1705
1714
|
{ enabled: !!searchKeyword && searchType === "address" }
|
|
1706
1715
|
);
|
|
1707
|
-
const { data: postalData } = method.useSearchPostalCodeQuery(
|
|
1716
|
+
const { data: postalData, isLoading: isLoadingPostalCode } = method.useSearchPostalCodeQuery(
|
|
1708
1717
|
{ searchWordName: searchKeyword },
|
|
1709
1718
|
{ enabled: !!searchKeyword && searchType === "postalcode" }
|
|
1710
1719
|
);
|
|
@@ -1812,8 +1821,17 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
1812
1821
|
setSearchKeyword("");
|
|
1813
1822
|
}
|
|
1814
1823
|
}, [isOpen]);
|
|
1824
|
+
React.useEffect(() => {
|
|
1825
|
+
const road = standardizedData?.data?.addressStandardizationList[1];
|
|
1826
|
+
const land = standardizedData?.data?.addressStandardizationList[2];
|
|
1827
|
+
if (road && land) {
|
|
1828
|
+
setSelectedStandardizationAddress({
|
|
1829
|
+
land,
|
|
1830
|
+
road
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
}, [standardizedData]);
|
|
1815
1834
|
return {
|
|
1816
|
-
addressStandardizationList: standardizedData?.data?.addressStandardizationList || [],
|
|
1817
1835
|
selectedStandardizationAddress,
|
|
1818
1836
|
onStandardizationChange,
|
|
1819
1837
|
onAddressSearchClear: onClear,
|
|
@@ -1830,7 +1848,8 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
1830
1848
|
onSelectChange,
|
|
1831
1849
|
setDetail,
|
|
1832
1850
|
search,
|
|
1833
|
-
searchInput
|
|
1851
|
+
searchInput,
|
|
1852
|
+
isLoading: isLoadingAddress || isLoadingPostalCode
|
|
1834
1853
|
};
|
|
1835
1854
|
}
|
|
1836
1855
|
const useAddressComponent = () => {
|
|
@@ -1948,22 +1967,22 @@ function BankStockSearchModal({ open, onClose, onSelect }) {
|
|
|
1948
1967
|
] });
|
|
1949
1968
|
}
|
|
1950
1969
|
|
|
1951
|
-
const cx$
|
|
1970
|
+
const cx$9 = classNames.bind(styles$5);
|
|
1952
1971
|
function OrganizationSearchResult({
|
|
1953
1972
|
filteredOrganizations,
|
|
1954
1973
|
onOrganizationSelect
|
|
1955
1974
|
}) {
|
|
1956
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
1957
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$
|
|
1975
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$9("result-section"), children: [
|
|
1976
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$9("result-title"), children: [
|
|
1958
1977
|
"\uCD1D ",
|
|
1959
1978
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: filteredOrganizations.length }),
|
|
1960
1979
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
1961
1980
|
] }),
|
|
1962
1981
|
filteredOrganizations.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Table, { variant: "horizontal", children: [
|
|
1963
1982
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
1964
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
1965
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
1966
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
1983
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uC120\uD0DD" }),
|
|
1984
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
|
|
1985
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uBA85" })
|
|
1967
1986
|
] }) }),
|
|
1968
1987
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: filteredOrganizations.map((organization) => {
|
|
1969
1988
|
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
@@ -1982,11 +2001,11 @@ function OrganizationSearchResult({
|
|
|
1982
2001
|
}) })
|
|
1983
2002
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Table, { variant: "horizontal", children: [
|
|
1984
2003
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
1985
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
1986
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
1987
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2004
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uC120\uD0DD" }),
|
|
2005
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
|
|
2006
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$9("th-padding"), children: "\uAE30\uAD00\uBA85" })
|
|
1988
2007
|
] }) }),
|
|
1989
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2008
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$9("no-result"), children: [
|
|
1990
2009
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconGraphicsFeedbackEmpty, {}),
|
|
1991
2010
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
1992
2011
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
|
|
@@ -1995,8 +2014,8 @@ function OrganizationSearchResult({
|
|
|
1995
2014
|
] });
|
|
1996
2015
|
}
|
|
1997
2016
|
|
|
1998
|
-
const { TextField: TextField$
|
|
1999
|
-
const cx$
|
|
2017
|
+
const { TextField: TextField$2 } = salesFrontendDesignSystem.FormField;
|
|
2018
|
+
const cx$8 = classNames.bind(styles$5);
|
|
2000
2019
|
function OrganizationSearch({
|
|
2001
2020
|
searchTerm,
|
|
2002
2021
|
setSearchTerm,
|
|
@@ -2013,30 +2032,30 @@ function OrganizationSearch({
|
|
|
2013
2032
|
setSearchInput("");
|
|
2014
2033
|
};
|
|
2015
2034
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2016
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
2017
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2035
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$8("search-section"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$8("search-filters"), children: [
|
|
2036
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$8("search-filter-section"), children: [
|
|
2018
2037
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.FormField.Label, { className: "subtitle3 text-body-1", children: "\uAE30\uAD00\uBA85/\uCF54\uB4DC" }),
|
|
2019
2038
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2020
|
-
TextField$
|
|
2039
|
+
TextField$2,
|
|
2021
2040
|
{
|
|
2022
2041
|
value: searchInput,
|
|
2023
2042
|
onChange: (e) => setSearchInput(e.target.value),
|
|
2024
2043
|
size: "medium",
|
|
2025
2044
|
onKeyUp: (e) => e.key === "Enter" && handleSearch(),
|
|
2026
2045
|
rootProps: {
|
|
2027
|
-
className: cx$
|
|
2046
|
+
className: cx$8("search-input"),
|
|
2028
2047
|
clearable: true,
|
|
2029
2048
|
onClear: handleReset
|
|
2030
2049
|
}
|
|
2031
2050
|
}
|
|
2032
2051
|
)
|
|
2033
2052
|
] }),
|
|
2034
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2053
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$8("search-buttons"), children: [
|
|
2035
2054
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "outline", size: "medium", variant: "secondary", onClick: handleReset, children: "\uCD08\uAE30\uD654" }),
|
|
2036
2055
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "filled", size: "medium", variant: "primary", onClick: handleSearch, children: "\uC870\uD68C" })
|
|
2037
2056
|
] })
|
|
2038
2057
|
] }) }),
|
|
2039
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
2058
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$8("divider") }),
|
|
2040
2059
|
searchTerm && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2041
2060
|
OrganizationSearchResult,
|
|
2042
2061
|
{
|
|
@@ -2109,21 +2128,21 @@ const EMPLOYEE_SEARCH_TABS = [
|
|
|
2109
2128
|
{ value: "WKIS", label: "\uB0B4\uADFC" }
|
|
2110
2129
|
];
|
|
2111
2130
|
|
|
2112
|
-
const cx$
|
|
2131
|
+
const cx$7 = classNames.bind(styles$6);
|
|
2113
2132
|
function EmployeeSearchResult({ filteredEmployees, onEmployeeSelect }) {
|
|
2114
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2115
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$
|
|
2133
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$7("result-section"), children: [
|
|
2134
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$7("result-title"), children: [
|
|
2116
2135
|
"\uCD1D ",
|
|
2117
2136
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: filteredEmployees.length }),
|
|
2118
2137
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
2119
2138
|
] }),
|
|
2120
2139
|
filteredEmployees.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Table, { variant: "horizontal", children: [
|
|
2121
2140
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
2122
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2123
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2124
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2125
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2126
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2141
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC120\uD0DD" }),
|
|
2142
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uBC88\uD638" }),
|
|
2143
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uBA85" }),
|
|
2144
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC18C\uC18D\uAE30\uAD00\uBA85" }),
|
|
2145
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uAD6C\uBD84" })
|
|
2127
2146
|
] }) }),
|
|
2128
2147
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: filteredEmployees.map((employee) => {
|
|
2129
2148
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
@@ -2146,13 +2165,13 @@ function EmployeeSearchResult({ filteredEmployees, onEmployeeSelect }) {
|
|
|
2146
2165
|
}) })
|
|
2147
2166
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Table, { variant: "horizontal", children: [
|
|
2148
2167
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
2149
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2150
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2151
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2152
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2153
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$
|
|
2168
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC120\uD0DD" }),
|
|
2169
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uBC88\uD638" }),
|
|
2170
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uBA85" }),
|
|
2171
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC18C\uC18D\uAE30\uAD00\uBA85" }),
|
|
2172
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$7("th-padding"), children: "\uC0AC\uC6D0\uAD6C\uBD84" })
|
|
2154
2173
|
] }) }),
|
|
2155
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 5, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2174
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 5, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$7("no-result"), children: [
|
|
2156
2175
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconGraphicsFeedbackEmpty, {}),
|
|
2157
2176
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2158
2177
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
|
|
@@ -2161,8 +2180,8 @@ function EmployeeSearchResult({ filteredEmployees, onEmployeeSelect }) {
|
|
|
2161
2180
|
] });
|
|
2162
2181
|
}
|
|
2163
2182
|
|
|
2164
|
-
const { TextField } = salesFrontendDesignSystem.FormField;
|
|
2165
|
-
const cx$
|
|
2183
|
+
const { TextField: TextField$1 } = salesFrontendDesignSystem.FormField;
|
|
2184
|
+
const cx$6 = classNames.bind(styles$6);
|
|
2166
2185
|
function EmployeeSearch({
|
|
2167
2186
|
activeTab,
|
|
2168
2187
|
onTabChange,
|
|
@@ -2181,11 +2200,11 @@ function EmployeeSearch({
|
|
|
2181
2200
|
setSearchInput("");
|
|
2182
2201
|
};
|
|
2183
2202
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2184
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
2185
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2203
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$6("search-section"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("search-filters"), children: [
|
|
2204
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("search-filter-section"), children: [
|
|
2186
2205
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.FormField.Label, { className: "subtitle3 text-body-1", children: "\uC131\uBA85/\uC0AC\uBC88" }),
|
|
2187
2206
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2188
|
-
TextField,
|
|
2207
|
+
TextField$1,
|
|
2189
2208
|
{
|
|
2190
2209
|
value: searchInput,
|
|
2191
2210
|
onChange: (e) => setSearchInput(e.target.value),
|
|
@@ -2199,7 +2218,7 @@ function EmployeeSearch({
|
|
|
2199
2218
|
}
|
|
2200
2219
|
)
|
|
2201
2220
|
] }),
|
|
2202
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2221
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("search-filter-section"), children: [
|
|
2203
2222
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.FormField.Label, { className: "subtitle3 text-body-1", children: "\uC0AC\uC6D0 \uAD6C\uBD84" }),
|
|
2204
2223
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2205
2224
|
salesFrontendDesignSystem.Select,
|
|
@@ -2212,12 +2231,12 @@ function EmployeeSearch({
|
|
|
2212
2231
|
}
|
|
2213
2232
|
)
|
|
2214
2233
|
] }),
|
|
2215
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2234
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("search-buttons"), children: [
|
|
2216
2235
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "outline", size: "medium", variant: "secondary", onClick: handleReset, children: "\uCD08\uAE30\uD654" }),
|
|
2217
2236
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "filled", size: "medium", variant: "primary", onClick: handleSearch, children: "\uC870\uD68C" })
|
|
2218
2237
|
] })
|
|
2219
2238
|
] }) }),
|
|
2220
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
2239
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$6("divider") }),
|
|
2221
2240
|
searchTerm && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2222
2241
|
EmployeeSearchResult,
|
|
2223
2242
|
{
|
|
@@ -2293,20 +2312,20 @@ const EmployeeSearchModal = ({ isOpen, onClose, onSelect }) => {
|
|
|
2293
2312
|
] });
|
|
2294
2313
|
};
|
|
2295
2314
|
|
|
2296
|
-
const cx$
|
|
2315
|
+
const cx$5 = classNames.bind(styles$7);
|
|
2297
2316
|
const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
2298
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2299
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2317
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("grade-section"), children: [
|
|
2318
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("icon-title"), children: [
|
|
2300
2319
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustGrade, {}),
|
|
2301
2320
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "typo-title5 text-body", children: "\uB4F1\uAE09" })
|
|
2302
2321
|
] }),
|
|
2303
2322
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "typo-body2 text-body_3", children: "\uC9C1\uC885, \uC6B4\uC804 \uC5EC\uBD80 \uC120\uD0DD\uC2DC \uC790\uB3D9\uC73C\uB85C \uC0B0\uC815\uB429\uB2C8\uB2E4." }),
|
|
2304
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2305
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2323
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("grade-list"), children: [
|
|
2324
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("grade"), children: [
|
|
2306
2325
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "\uC704\uD5D8\uB4F1\uAE09" }),
|
|
2307
2326
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary typo-subtitle3", children: riskGrade || "-" })
|
|
2308
2327
|
] }),
|
|
2309
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2328
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("grade"), children: [
|
|
2310
2329
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "\uC785\uC6D0\uB4F1\uAE09" }),
|
|
2311
2330
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary typo-subtitle3", children: hospitalizationGrade || "-" })
|
|
2312
2331
|
] })
|
|
@@ -2314,16 +2333,16 @@ const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
|
2314
2333
|
] });
|
|
2315
2334
|
};
|
|
2316
2335
|
|
|
2317
|
-
const cx$
|
|
2336
|
+
const cx$4 = classNames.bind(styles$8);
|
|
2318
2337
|
function VehicleSearch({ vehicles, onVehicleSelect, selectedVehicle }) {
|
|
2319
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2338
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$4("vehicle-search-section"), children: [
|
|
2320
2339
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC6B4\uC804 \uCC28\uC885" }),
|
|
2321
2340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2322
2341
|
salesFrontendDesignSystem.Radio.Root,
|
|
2323
2342
|
{
|
|
2324
2343
|
name: "vehicle-selection",
|
|
2325
2344
|
size: "small",
|
|
2326
|
-
className: cx$
|
|
2345
|
+
className: cx$4("vehicle-radio-root"),
|
|
2327
2346
|
defaultValue: selectedVehicle?.integrationCodeValue || "",
|
|
2328
2347
|
children: vehicles.map((vehicle, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2329
2348
|
salesFrontendDesignSystem.Radio.Item,
|
|
@@ -2338,7 +2357,7 @@ function VehicleSearch({ vehicles, onVehicleSelect, selectedVehicle }) {
|
|
|
2338
2357
|
onVehicleSelect(selected);
|
|
2339
2358
|
}
|
|
2340
2359
|
},
|
|
2341
|
-
className: cx$
|
|
2360
|
+
className: cx$4("item"),
|
|
2342
2361
|
children: [
|
|
2343
2362
|
vehicle.integrationCodeValueName,
|
|
2344
2363
|
"(",
|
|
@@ -2415,7 +2434,7 @@ const useJobVehicleSearch = () => {
|
|
|
2415
2434
|
};
|
|
2416
2435
|
};
|
|
2417
2436
|
|
|
2418
|
-
const cx$
|
|
2437
|
+
const cx$3 = classNames.bind(styles$7);
|
|
2419
2438
|
function useJobVehicleSearchModal() {
|
|
2420
2439
|
const {
|
|
2421
2440
|
selectedVehicle,
|
|
@@ -2465,18 +2484,18 @@ function useJobVehicleSearchModal() {
|
|
|
2465
2484
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
|
|
2466
2485
|
/* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
|
|
2467
2486
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uC9C1\uC885\xB7\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
|
|
2468
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { className: cx$
|
|
2469
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2470
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2487
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { className: cx$3("job-vehicle-search-modal"), raw: true, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2488
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("left-panel"), children: [
|
|
2489
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("card-section"), children: [
|
|
2471
2490
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2472
2491
|
"div",
|
|
2473
2492
|
{
|
|
2474
|
-
className: cx$
|
|
2493
|
+
className: cx$3("card-menu", { "card-selected": rightPanelView === "jobSearch" }),
|
|
2475
2494
|
onClick: () => setRightPanelView("jobSearch"),
|
|
2476
2495
|
children: [
|
|
2477
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2478
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustJob, { className: cx$
|
|
2479
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
2496
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("card-title"), children: [
|
|
2497
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustJob, { className: cx$3("card-icon") }),
|
|
2498
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$3("card-text", "typo-title5", "text-body"), children: "\uC9C1\uC885" }),
|
|
2480
2499
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
|
|
2481
2500
|
] }),
|
|
2482
2501
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "typo-body2 text-body_2", children: selectedJob ? selectedJob.occupationIndustryName : "\uBBF8\uC120\uD0DD" })
|
|
@@ -2486,12 +2505,12 @@ function useJobVehicleSearchModal() {
|
|
|
2486
2505
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2487
2506
|
"div",
|
|
2488
2507
|
{
|
|
2489
|
-
className: cx$
|
|
2508
|
+
className: cx$3("card-menu", { "card-selected": rightPanelView === "vehicleSelection" }),
|
|
2490
2509
|
onClick: () => setRightPanelView("vehicleSelection"),
|
|
2491
2510
|
children: [
|
|
2492
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$
|
|
2493
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustVehicle, { className: cx$
|
|
2494
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$
|
|
2511
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("card-title"), children: [
|
|
2512
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustVehicle, { className: cx$3("card-icon") }),
|
|
2513
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$3("card-text", "typo-title5", "text-body"), children: "\uC6B4\uC804 \uC5EC\uBD80\xB7\uCC28\uC885" }),
|
|
2495
2514
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
|
|
2496
2515
|
] }),
|
|
2497
2516
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "typo-body2 text-body_2", children: [
|
|
@@ -2504,7 +2523,7 @@ function useJobVehicleSearchModal() {
|
|
|
2504
2523
|
] }),
|
|
2505
2524
|
/* @__PURE__ */ jsxRuntime.jsx(JobVehicleSearchGrade, { riskGrade, hospitalizationGrade })
|
|
2506
2525
|
] }),
|
|
2507
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$
|
|
2526
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$3("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
|
|
2508
2527
|
] }) }),
|
|
2509
2528
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick: validate, children: "\uD655\uC778" }) })
|
|
2510
2529
|
] })
|
|
@@ -2512,6 +2531,201 @@ function useJobVehicleSearchModal() {
|
|
|
2512
2531
|
};
|
|
2513
2532
|
}
|
|
2514
2533
|
|
|
2534
|
+
const cx$2 = classNames.bind(styles$9);
|
|
2535
|
+
function DeaCustomerSearchResult({
|
|
2536
|
+
customerList,
|
|
2537
|
+
onCustomerSelect,
|
|
2538
|
+
selectedCustomer
|
|
2539
|
+
}) {
|
|
2540
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$2("result-section"), children: [
|
|
2541
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$2("result-title"), children: [
|
|
2542
|
+
"\uCD1D ",
|
|
2543
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: customerList.length }),
|
|
2544
|
+
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
2545
|
+
] }),
|
|
2546
|
+
/* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Table, { variant: "horizontal", children: [
|
|
2547
|
+
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
2548
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uC120\uD0DD" }),
|
|
2549
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uACE0\uAC1DID" }),
|
|
2550
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uACE0\uAC1D\uBA85" }),
|
|
2551
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
|
|
2552
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uC9C1\uC885\uC5C5\uC885\uBA85" }),
|
|
2553
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uC804\uD654\uBC88\uD638" }),
|
|
2554
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { className: cx$2("th-padding"), children: "\uC8FC\uC18C" })
|
|
2555
|
+
] }) }),
|
|
2556
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: customerList.length > 0 ? customerList.map((customer) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
2557
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2558
|
+
"input",
|
|
2559
|
+
{
|
|
2560
|
+
type: "radio",
|
|
2561
|
+
name: "customer",
|
|
2562
|
+
value: customer.customerId || "",
|
|
2563
|
+
checked: selectedCustomer?.customerId === customer.customerId,
|
|
2564
|
+
onChange: () => onCustomerSelect(customer)
|
|
2565
|
+
}
|
|
2566
|
+
) }),
|
|
2567
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.customerId }),
|
|
2568
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.customerName }),
|
|
2569
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.residentNumber }),
|
|
2570
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.occupationKindName }),
|
|
2571
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.mobilePhoneNumber }),
|
|
2572
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: customer.address })
|
|
2573
|
+
] }, customer.customerId)) : /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 7, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$2("no-result"), children: [
|
|
2574
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconGraphicsFeedbackEmpty, {}),
|
|
2575
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2576
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
|
|
2577
|
+
] }) }) }) })
|
|
2578
|
+
] })
|
|
2579
|
+
] });
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
const { TextField } = salesFrontendDesignSystem.FormField;
|
|
2583
|
+
const cx$1 = classNames.bind(styles$9);
|
|
2584
|
+
function DeaCustomerSearch({
|
|
2585
|
+
setSearchParams,
|
|
2586
|
+
customerList,
|
|
2587
|
+
onCustomerSelect,
|
|
2588
|
+
selectedCustomer
|
|
2589
|
+
}) {
|
|
2590
|
+
const [residentNumber1, setResidentNumber1] = React.useState("");
|
|
2591
|
+
const [residentNumber2, setResidentNumber2] = React.useState("");
|
|
2592
|
+
const handleSearch = () => {
|
|
2593
|
+
setSearchParams({ residentNumber: `${residentNumber1}${residentNumber2}` });
|
|
2594
|
+
};
|
|
2595
|
+
const handleReset = () => {
|
|
2596
|
+
setResidentNumber1("");
|
|
2597
|
+
setResidentNumber2("");
|
|
2598
|
+
setSearchParams({});
|
|
2599
|
+
};
|
|
2600
|
+
const onKeyUp = (e) => {
|
|
2601
|
+
e.key === "Enter" && handleSearch();
|
|
2602
|
+
};
|
|
2603
|
+
const onKeyDown = (e) => {
|
|
2604
|
+
if (!(e.key === "Backspace" || !isNaN(parseInt(e.key)))) {
|
|
2605
|
+
e.preventDefault();
|
|
2606
|
+
}
|
|
2607
|
+
};
|
|
2608
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2609
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$1("search-section"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$1("search-filters"), children: [
|
|
2610
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$1("search-filter-section"), children: [
|
|
2611
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.FormField.Label, { className: "subtitle3 text-body-1", children: "\uACE0\uAC1D \uAD6C\uBD84" }),
|
|
2612
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Select, { value: "personal", placeholder: "\uAC1C\uC778", disabled: true, style: { width: "100px" }, children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Select.Option, { value: "personal", children: "\uAC1C\uC778" }) }),
|
|
2613
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.FormField.Label, { className: "subtitle3 text-body-1", children: "\uC8FC\uBBFC\uB4F1\uB85D\uBC88\uD638" }),
|
|
2614
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2615
|
+
TextField,
|
|
2616
|
+
{
|
|
2617
|
+
value: residentNumber1,
|
|
2618
|
+
maxLength: 6,
|
|
2619
|
+
placeholder: "\uC55E 6\uC790\uB9AC \uC785\uB825",
|
|
2620
|
+
onChange: (e) => setResidentNumber1(e.target.value),
|
|
2621
|
+
size: "medium",
|
|
2622
|
+
onKeyUp,
|
|
2623
|
+
onKeyDown,
|
|
2624
|
+
rootProps: {
|
|
2625
|
+
className: cx$1("search-input"),
|
|
2626
|
+
onClear: () => {
|
|
2627
|
+
setResidentNumber1("");
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
),
|
|
2632
|
+
"-",
|
|
2633
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2634
|
+
TextField,
|
|
2635
|
+
{
|
|
2636
|
+
value: residentNumber2,
|
|
2637
|
+
maxLength: 7,
|
|
2638
|
+
placeholder: "\uB4A4 7\uC790\uB9AC \uC785\uB825",
|
|
2639
|
+
onChange: (e) => setResidentNumber2(e.target.value),
|
|
2640
|
+
size: "medium",
|
|
2641
|
+
onKeyDown,
|
|
2642
|
+
onKeyUp,
|
|
2643
|
+
rootProps: {
|
|
2644
|
+
className: cx$1("search-input"),
|
|
2645
|
+
onClear: () => {
|
|
2646
|
+
setResidentNumber2("");
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
)
|
|
2651
|
+
] }),
|
|
2652
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$1("search-buttons"), children: [
|
|
2653
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "outline", size: "medium", variant: "secondary", onClick: handleReset, children: "\uCD08\uAE30\uD654" }),
|
|
2654
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { appearance: "filled", size: "medium", variant: "primary", onClick: handleSearch, children: "\uC870\uD68C" })
|
|
2655
|
+
] })
|
|
2656
|
+
] }) }),
|
|
2657
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$1("divider") }),
|
|
2658
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2659
|
+
DeaCustomerSearchResult,
|
|
2660
|
+
{
|
|
2661
|
+
customerList,
|
|
2662
|
+
onCustomerSelect,
|
|
2663
|
+
selectedCustomer
|
|
2664
|
+
}
|
|
2665
|
+
)
|
|
2666
|
+
] });
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
const DeaCustomerSearchModal = ({ isOpen, onClose, onSave }) => {
|
|
2670
|
+
const [selectedCustomer, setSelectedCustomer] = React.useState(null);
|
|
2671
|
+
const [searchParams, setSearchParams] = React.useState({});
|
|
2672
|
+
const canSearch = React.useMemo(() => !!(searchParams.customerName || searchParams.residentNumber), [searchParams]);
|
|
2673
|
+
const { data, isFetching } = reactQuery.useQuery({
|
|
2674
|
+
queryKey: ["deaCustomerSearch", searchParams],
|
|
2675
|
+
queryFn: () => method.getDspCustomerListMethod(searchParams),
|
|
2676
|
+
enabled: canSearch,
|
|
2677
|
+
retry: false
|
|
2678
|
+
});
|
|
2679
|
+
const [customerList, setCustomerList] = React.useState([]);
|
|
2680
|
+
React.useEffect(() => {
|
|
2681
|
+
if (data?.data) {
|
|
2682
|
+
setCustomerList(data.data);
|
|
2683
|
+
} else {
|
|
2684
|
+
setCustomerList([]);
|
|
2685
|
+
}
|
|
2686
|
+
}, [data]);
|
|
2687
|
+
React.useEffect(() => {
|
|
2688
|
+
setSelectedCustomer(null);
|
|
2689
|
+
}, [customerList]);
|
|
2690
|
+
const handleCustomerSelect = (customer) => {
|
|
2691
|
+
setSelectedCustomer(customer);
|
|
2692
|
+
};
|
|
2693
|
+
const handleSave = () => {
|
|
2694
|
+
if (selectedCustomer) {
|
|
2695
|
+
onSave(selectedCustomer);
|
|
2696
|
+
onClose();
|
|
2697
|
+
}
|
|
2698
|
+
};
|
|
2699
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose, modalSize: "xlarge", children: [
|
|
2700
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
|
|
2701
|
+
/* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
|
|
2702
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uACE0\uAC1D \uAC80\uC0C9", showCloseButton: true }),
|
|
2703
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2704
|
+
DeaCustomerSearch,
|
|
2705
|
+
{
|
|
2706
|
+
setSearchParams,
|
|
2707
|
+
customerList,
|
|
2708
|
+
onCustomerSelect: handleCustomerSelect,
|
|
2709
|
+
selectedCustomer,
|
|
2710
|
+
isLoading: isFetching
|
|
2711
|
+
}
|
|
2712
|
+
) }),
|
|
2713
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2714
|
+
salesFrontendDesignSystem.Button,
|
|
2715
|
+
{
|
|
2716
|
+
variant: "primary",
|
|
2717
|
+
size: "medium",
|
|
2718
|
+
appearance: "filled",
|
|
2719
|
+
width: "full",
|
|
2720
|
+
onClick: handleSave,
|
|
2721
|
+
disabled: !selectedCustomer,
|
|
2722
|
+
children: "\uC800\uC7A5\uD558\uAE30"
|
|
2723
|
+
}
|
|
2724
|
+
) })
|
|
2725
|
+
] })
|
|
2726
|
+
] });
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2515
2729
|
const useCustomerSearch = (onSelect) => {
|
|
2516
2730
|
const { triggerRef, isOpen, setIsOpen, DropDown } = salesFrontendDesignSystem.useDropDown();
|
|
2517
2731
|
const [searchKeyword, setSearchKeyword] = React.useState("");
|
|
@@ -2582,7 +2796,7 @@ const useCustomerSearch = (onSelect) => {
|
|
|
2582
2796
|
};
|
|
2583
2797
|
};
|
|
2584
2798
|
|
|
2585
|
-
const cx = classNames.bind(styles$
|
|
2799
|
+
const cx = classNames.bind(styles$a);
|
|
2586
2800
|
const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
2587
2801
|
if (!targetString || !originalText?.includes(targetString)) {
|
|
2588
2802
|
return originalText;
|
|
@@ -2854,6 +3068,7 @@ const useRemoteIdentityVerificationPopup = (config) => {
|
|
|
2854
3068
|
exports.Attachment = Attachment;
|
|
2855
3069
|
exports.BankStockSearchModal = BankStockSearchModal;
|
|
2856
3070
|
exports.CustomerSearch = CustomerSearch;
|
|
3071
|
+
exports.DeaCustomerSearchModal = DeaCustomerSearchModal;
|
|
2857
3072
|
exports.EmployeeSearchModal = EmployeeSearchModal;
|
|
2858
3073
|
exports.FormCheckbox = FormCheckbox;
|
|
2859
3074
|
exports.FormCheckboxButton = FormCheckboxButton;
|