sales-frontend-components 3.0.7 → 3.0.8
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 +185 -38
- package/dist/index.d.ts +121 -4
- package/dist/index.esm.js +184 -38
- package/package.json +5 -3
package/dist/index.cjs.js
CHANGED
|
@@ -24,6 +24,7 @@ var styles$b = require('./modal/pre-standard/organization-search-modal/organizat
|
|
|
24
24
|
var styles$c = require('./step-indicator/step-indicator.module.scss');
|
|
25
25
|
var salesFrontendBridge = require('sales-frontend-bridge');
|
|
26
26
|
var styles$d = require('./camera/camera.module.scss');
|
|
27
|
+
var remoteIdentityVerification = require('sales-frontend-headless/remote-identity-verification');
|
|
27
28
|
var styles$e = require('./terms/components/unit/terms-radio.module.scss');
|
|
28
29
|
var styles$f = require('./terms/components/unit/terms-rating-bar.module.scss');
|
|
29
30
|
var styles$g = require('./terms/components/unit/terms-mobile-card.module.scss');
|
|
@@ -643,7 +644,7 @@ function requireBind () {
|
|
|
643
644
|
}
|
|
644
645
|
|
|
645
646
|
var bindExports = requireBind();
|
|
646
|
-
var classNames = /*@__PURE__*/getDefaultExportFromCjs(bindExports);
|
|
647
|
+
var classNames$1 = /*@__PURE__*/getDefaultExportFromCjs(bindExports);
|
|
647
648
|
|
|
648
649
|
const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
649
650
|
if (!targetString || !originalText?.includes(targetString)) {
|
|
@@ -662,7 +663,7 @@ const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
|
662
663
|
return replacedText;
|
|
663
664
|
};
|
|
664
665
|
|
|
665
|
-
const cx$x = classNames.bind(styles);
|
|
666
|
+
const cx$x = classNames$1.bind(styles);
|
|
666
667
|
const { InputBox: InputBox$4, Input: Input$4 } = salesFrontendDesignSystem.FormCore;
|
|
667
668
|
const AddressSearchInitialText = () => {
|
|
668
669
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -1496,7 +1497,7 @@ function useBankStockSearch({ onSelect, commonCodeId }) {
|
|
|
1496
1497
|
};
|
|
1497
1498
|
}
|
|
1498
1499
|
|
|
1499
|
-
const cx$w = classNames.bind(styles$1);
|
|
1500
|
+
const cx$w = classNames$1.bind(styles$1);
|
|
1500
1501
|
function BankStockSearchModal({ open, onClose, onSelect, commonCodeId }) {
|
|
1501
1502
|
const { bankList, stockList, handleSelect } = useBankStockSearch({
|
|
1502
1503
|
onSelect,
|
|
@@ -1614,7 +1615,7 @@ const useCustomerSearch = (onSelect, options) => {
|
|
|
1614
1615
|
};
|
|
1615
1616
|
};
|
|
1616
1617
|
|
|
1617
|
-
const cx$v = classNames.bind(styles$2);
|
|
1618
|
+
const cx$v = classNames$1.bind(styles$2);
|
|
1618
1619
|
const { InputBox: InputBox$3, Input: Input$3 } = salesFrontendDesignSystem.FormCore;
|
|
1619
1620
|
const CustomerSearch = ({
|
|
1620
1621
|
onSelectCustomer,
|
|
@@ -1690,7 +1691,7 @@ const CustomerSearch = ({
|
|
|
1690
1691
|
] });
|
|
1691
1692
|
};
|
|
1692
1693
|
|
|
1693
|
-
const cx$u = classNames.bind(styles$2);
|
|
1694
|
+
const cx$u = classNames$1.bind(styles$2);
|
|
1694
1695
|
const { InputBox: InputBox$2, Input: Input$2 } = salesFrontendDesignSystem.FormCore;
|
|
1695
1696
|
function CustomerSearchModal({ isOpen, closeModal, onSelect, onSearchClear, inputProps, inputBoxProps }) {
|
|
1696
1697
|
const {
|
|
@@ -1782,7 +1783,7 @@ function CustomerSearchModal({ isOpen, closeModal, onSelect, onSearchClear, inpu
|
|
|
1782
1783
|
] });
|
|
1783
1784
|
}
|
|
1784
1785
|
|
|
1785
|
-
const cx$t = classNames.bind(styles$3);
|
|
1786
|
+
const cx$t = classNames$1.bind(styles$3);
|
|
1786
1787
|
const { InputBox: InputBox$1, Input: Input$1 } = salesFrontendDesignSystem.FormCore;
|
|
1787
1788
|
const favoriteList = [
|
|
1788
1789
|
{
|
|
@@ -2005,7 +2006,7 @@ const useNationalityComponent = () => {
|
|
|
2005
2006
|
};
|
|
2006
2007
|
};
|
|
2007
2008
|
|
|
2008
|
-
const cx$s = classNames.bind(styles$4);
|
|
2009
|
+
const cx$s = classNames$1.bind(styles$4);
|
|
2009
2010
|
const AUTH_TEMPLATE_CODES = {
|
|
2010
2011
|
appInit: {
|
|
2011
2012
|
dev: {
|
|
@@ -2264,7 +2265,7 @@ function useNxlOneModal({
|
|
|
2264
2265
|
};
|
|
2265
2266
|
}
|
|
2266
2267
|
|
|
2267
|
-
const cx$r = classNames.bind(styles$5);
|
|
2268
|
+
const cx$r = classNames$1.bind(styles$5);
|
|
2268
2269
|
const { InputBox, Input } = salesFrontendDesignSystem.FormCore;
|
|
2269
2270
|
const VisaSearchInitialText = ({ visaList, onSelect, onConfirm }) => {
|
|
2270
2271
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$r("favorite-container"), children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: cx$r("favorite"), children: visaList.map((item, index) => {
|
|
@@ -2442,7 +2443,7 @@ const useVisaComponent = () => {
|
|
|
2442
2443
|
};
|
|
2443
2444
|
};
|
|
2444
2445
|
|
|
2445
|
-
const cx$q = classNames.bind(styles$6);
|
|
2446
|
+
const cx$q = classNames$1.bind(styles$6);
|
|
2446
2447
|
function DeaCustomerSearchResult({
|
|
2447
2448
|
customerList,
|
|
2448
2449
|
onCustomerSelect,
|
|
@@ -2494,7 +2495,7 @@ function DeaCustomerSearchResult({
|
|
|
2494
2495
|
}
|
|
2495
2496
|
|
|
2496
2497
|
const { TextField: TextField$3 } = salesFrontendDesignSystem.FormField;
|
|
2497
|
-
const cx$p = classNames.bind(styles$6);
|
|
2498
|
+
const cx$p = classNames$1.bind(styles$6);
|
|
2498
2499
|
function DeaCustomerSearch({
|
|
2499
2500
|
setSearchParams,
|
|
2500
2501
|
customerList,
|
|
@@ -2733,7 +2734,7 @@ const EMPLOYEE_SEARCH_TABS = [
|
|
|
2733
2734
|
{ value: "WKIS", label: "\uB0B4\uADFC" }
|
|
2734
2735
|
];
|
|
2735
2736
|
|
|
2736
|
-
const cx$o = classNames.bind(styles$7);
|
|
2737
|
+
const cx$o = classNames$1.bind(styles$7);
|
|
2737
2738
|
function EmployeeSearchResult({
|
|
2738
2739
|
filteredEmployees,
|
|
2739
2740
|
onEmployeeSelect,
|
|
@@ -2781,7 +2782,7 @@ function EmployeeSearchResult({
|
|
|
2781
2782
|
}
|
|
2782
2783
|
|
|
2783
2784
|
const { TextField: TextField$2 } = salesFrontendDesignSystem.FormField;
|
|
2784
|
-
const cx$n = classNames.bind(styles$7);
|
|
2785
|
+
const cx$n = classNames$1.bind(styles$7);
|
|
2785
2786
|
function EmployeeSearch({
|
|
2786
2787
|
activeTab,
|
|
2787
2788
|
onTabChange,
|
|
@@ -3011,7 +3012,7 @@ function JobSearchDetail({ occupationTypeCode, occupationIndustryCode }) {
|
|
|
3011
3012
|
] }) }) });
|
|
3012
3013
|
}
|
|
3013
3014
|
|
|
3014
|
-
const cx$m = classNames.bind(styles$8);
|
|
3015
|
+
const cx$m = classNames$1.bind(styles$8);
|
|
3015
3016
|
function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
3016
3017
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$m("category-section"), children: [
|
|
3017
3018
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$m("result-title"), children: [
|
|
@@ -3049,7 +3050,7 @@ function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
3049
3050
|
] }) });
|
|
3050
3051
|
}
|
|
3051
3052
|
|
|
3052
|
-
const cx$l = classNames.bind(styles$8);
|
|
3053
|
+
const cx$l = classNames$1.bind(styles$8);
|
|
3053
3054
|
function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
3054
3055
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$l("popular-jobs"), children: [
|
|
3055
3056
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uB9CE\uC774 \uCC3E\uB294 \uC9C1\uC885" }),
|
|
@@ -3089,7 +3090,7 @@ function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
|
3089
3090
|
] }) });
|
|
3090
3091
|
}
|
|
3091
3092
|
|
|
3092
|
-
const cx$k = classNames.bind(styles$8);
|
|
3093
|
+
const cx$k = classNames$1.bind(styles$8);
|
|
3093
3094
|
function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
3094
3095
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$k("popular-jobs"), children: [
|
|
3095
3096
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: cx$k("result-title"), children: [
|
|
@@ -3134,7 +3135,7 @@ function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
3134
3135
|
}
|
|
3135
3136
|
|
|
3136
3137
|
const { TextField: TextField$1 } = salesFrontendDesignSystem.FormField;
|
|
3137
|
-
const cx$j = classNames.bind(styles$8);
|
|
3138
|
+
const cx$j = classNames$1.bind(styles$8);
|
|
3138
3139
|
const { Option } = salesFrontendDesignSystem.Select;
|
|
3139
3140
|
function JobSearch({
|
|
3140
3141
|
activeTab,
|
|
@@ -3487,7 +3488,7 @@ function useJobSearchModal() {
|
|
|
3487
3488
|
};
|
|
3488
3489
|
}
|
|
3489
3490
|
|
|
3490
|
-
const cx$i = classNames.bind(styles$9);
|
|
3491
|
+
const cx$i = classNames$1.bind(styles$9);
|
|
3491
3492
|
const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
3492
3493
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$i("grade-section"), children: [
|
|
3493
3494
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$i("icon-title"), children: [
|
|
@@ -3508,7 +3509,7 @@ const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
|
3508
3509
|
] });
|
|
3509
3510
|
};
|
|
3510
3511
|
|
|
3511
|
-
const cx$h = classNames.bind(styles$a);
|
|
3512
|
+
const cx$h = classNames$1.bind(styles$a);
|
|
3512
3513
|
function VehicleSearch({ vehicles, onVehicleSelect, selectedVehicle }) {
|
|
3513
3514
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$h("vehicle-search-section"), children: [
|
|
3514
3515
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "\uC6B4\uC804 \uCC28\uC885" }),
|
|
@@ -3612,7 +3613,7 @@ const useJobVehicleSearch = () => {
|
|
|
3612
3613
|
};
|
|
3613
3614
|
};
|
|
3614
3615
|
|
|
3615
|
-
const cx$g = classNames.bind(styles$9);
|
|
3616
|
+
const cx$g = classNames$1.bind(styles$9);
|
|
3616
3617
|
function useJobVehicleSearchModal() {
|
|
3617
3618
|
const {
|
|
3618
3619
|
selectedVehicle,
|
|
@@ -3743,7 +3744,7 @@ function useJobVehicleSearchModal() {
|
|
|
3743
3744
|
};
|
|
3744
3745
|
}
|
|
3745
3746
|
|
|
3746
|
-
const cx$f = classNames.bind(styles$b);
|
|
3747
|
+
const cx$f = classNames$1.bind(styles$b);
|
|
3747
3748
|
function OrganizationSearchResult({
|
|
3748
3749
|
filteredOrganizations,
|
|
3749
3750
|
selectedOrganization,
|
|
@@ -3789,7 +3790,7 @@ function OrganizationSearchResult({
|
|
|
3789
3790
|
}
|
|
3790
3791
|
|
|
3791
3792
|
const { TextField } = salesFrontendDesignSystem.FormField;
|
|
3792
|
-
const cx$e = classNames.bind(styles$b);
|
|
3793
|
+
const cx$e = classNames$1.bind(styles$b);
|
|
3793
3794
|
function OrganizationSearch({
|
|
3794
3795
|
searchTerm,
|
|
3795
3796
|
setSearchTerm,
|
|
@@ -3918,7 +3919,7 @@ const OrganizationSearchModal = ({
|
|
|
3918
3919
|
] });
|
|
3919
3920
|
};
|
|
3920
3921
|
|
|
3921
|
-
const cx$d = classNames.bind(styles$a);
|
|
3922
|
+
const cx$d = classNames$1.bind(styles$a);
|
|
3922
3923
|
function JobVehicleSearchModal({ onClose }) {
|
|
3923
3924
|
const { selectedVehicle, VehicleSearchComponent } = useVehicleSearch();
|
|
3924
3925
|
return /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen: true, onClose, modalSize: "xlarge", children: [
|
|
@@ -4243,7 +4244,7 @@ const HookFormDateRangePickerRenew = ({
|
|
|
4243
4244
|
return /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.DatePickerRangeRenew, { startDateProps: startDateMergedProps, endDateProps: endDateMergedProps });
|
|
4244
4245
|
};
|
|
4245
4246
|
|
|
4246
|
-
const cx$c = classNames.bind(styles$c);
|
|
4247
|
+
const cx$c = classNames$1.bind(styles$c);
|
|
4247
4248
|
const StepIndicator = ({
|
|
4248
4249
|
items,
|
|
4249
4250
|
onClickItem,
|
|
@@ -4309,7 +4310,7 @@ const StepIndicator = ({
|
|
|
4309
4310
|
] });
|
|
4310
4311
|
};
|
|
4311
4312
|
|
|
4312
|
-
const cx$b = classNames.bind(styles$d);
|
|
4313
|
+
const cx$b = classNames$1.bind(styles$d);
|
|
4313
4314
|
function Attachment({
|
|
4314
4315
|
photos,
|
|
4315
4316
|
onAddPhoto,
|
|
@@ -5195,7 +5196,7 @@ const RIV_SEARCH_PARAM_MAP = {
|
|
|
5195
5196
|
}
|
|
5196
5197
|
};
|
|
5197
5198
|
|
|
5198
|
-
const useRemoteIdentityVerification = ({
|
|
5199
|
+
const useRemoteIdentityVerification$1 = ({
|
|
5199
5200
|
rivEnv,
|
|
5200
5201
|
rivOrigin,
|
|
5201
5202
|
tokenRequestParams,
|
|
@@ -5257,7 +5258,7 @@ const useRemoteIdentityVerification = ({
|
|
|
5257
5258
|
};
|
|
5258
5259
|
};
|
|
5259
5260
|
const useRemoteIdentityVerificationIframe = (config) => {
|
|
5260
|
-
const { createMessageHandler, createRemoteIdentityVerificationUrl } = useRemoteIdentityVerification(config);
|
|
5261
|
+
const { createMessageHandler, createRemoteIdentityVerificationUrl } = useRemoteIdentityVerification$1(config);
|
|
5261
5262
|
const { isOpen, openModal, closeModal } = salesFrontendDesignSystem.useModalState();
|
|
5262
5263
|
const [remoteIdentityVerificationUrl, setRemoteIdentityVerificationUrl] = React9.useState("");
|
|
5263
5264
|
const [rivsRequestId, setRivsRequestId] = React9.useState("");
|
|
@@ -5347,6 +5348,151 @@ const useRemoteIdentityVerificationIframe = (config) => {
|
|
|
5347
5348
|
};
|
|
5348
5349
|
};
|
|
5349
5350
|
|
|
5351
|
+
var classnames = {exports: {}};
|
|
5352
|
+
|
|
5353
|
+
/*!
|
|
5354
|
+
Copyright (c) 2018 Jed Watson.
|
|
5355
|
+
Licensed under the MIT License (MIT), see
|
|
5356
|
+
http://jedwatson.github.io/classnames
|
|
5357
|
+
*/
|
|
5358
|
+
|
|
5359
|
+
var hasRequiredClassnames;
|
|
5360
|
+
|
|
5361
|
+
function requireClassnames () {
|
|
5362
|
+
if (hasRequiredClassnames) return classnames.exports;
|
|
5363
|
+
hasRequiredClassnames = 1;
|
|
5364
|
+
(function (module) {
|
|
5365
|
+
/* global define */
|
|
5366
|
+
|
|
5367
|
+
(function () {
|
|
5368
|
+
|
|
5369
|
+
var hasOwn = {}.hasOwnProperty;
|
|
5370
|
+
|
|
5371
|
+
function classNames () {
|
|
5372
|
+
var classes = '';
|
|
5373
|
+
|
|
5374
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
5375
|
+
var arg = arguments[i];
|
|
5376
|
+
if (arg) {
|
|
5377
|
+
classes = appendClass(classes, parseValue(arg));
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
return classes;
|
|
5382
|
+
}
|
|
5383
|
+
|
|
5384
|
+
function parseValue (arg) {
|
|
5385
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
5386
|
+
return arg;
|
|
5387
|
+
}
|
|
5388
|
+
|
|
5389
|
+
if (typeof arg !== 'object') {
|
|
5390
|
+
return '';
|
|
5391
|
+
}
|
|
5392
|
+
|
|
5393
|
+
if (Array.isArray(arg)) {
|
|
5394
|
+
return classNames.apply(null, arg);
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
5398
|
+
return arg.toString();
|
|
5399
|
+
}
|
|
5400
|
+
|
|
5401
|
+
var classes = '';
|
|
5402
|
+
|
|
5403
|
+
for (var key in arg) {
|
|
5404
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
5405
|
+
classes = appendClass(classes, key);
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
|
|
5409
|
+
return classes;
|
|
5410
|
+
}
|
|
5411
|
+
|
|
5412
|
+
function appendClass (value, newClass) {
|
|
5413
|
+
if (!newClass) {
|
|
5414
|
+
return value;
|
|
5415
|
+
}
|
|
5416
|
+
|
|
5417
|
+
if (value) {
|
|
5418
|
+
return value + ' ' + newClass;
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
return value + newClass;
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
if (module.exports) {
|
|
5425
|
+
classNames.default = classNames;
|
|
5426
|
+
module.exports = classNames;
|
|
5427
|
+
} else {
|
|
5428
|
+
window.classNames = classNames;
|
|
5429
|
+
}
|
|
5430
|
+
}());
|
|
5431
|
+
} (classnames));
|
|
5432
|
+
return classnames.exports;
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
var classnamesExports = requireClassnames();
|
|
5436
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
5437
|
+
|
|
5438
|
+
const RemoteIdentityVerificationView = ({
|
|
5439
|
+
width = "100%",
|
|
5440
|
+
height = "100%",
|
|
5441
|
+
loadingComponent,
|
|
5442
|
+
isLoading = false,
|
|
5443
|
+
isOpen = false,
|
|
5444
|
+
src,
|
|
5445
|
+
className,
|
|
5446
|
+
...iframeProps
|
|
5447
|
+
}) => {
|
|
5448
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, children: [
|
|
5449
|
+
isLoading && (loadingComponent || /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Loading.Wait, { bodyText: "\uBD88\uB7EC\uC624\uB294 \uC911" })),
|
|
5450
|
+
src && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5451
|
+
"iframe",
|
|
5452
|
+
{
|
|
5453
|
+
width,
|
|
5454
|
+
height,
|
|
5455
|
+
allow: "camera *;",
|
|
5456
|
+
className: classNames("bg-100", className),
|
|
5457
|
+
...iframeProps,
|
|
5458
|
+
src
|
|
5459
|
+
}
|
|
5460
|
+
)
|
|
5461
|
+
] });
|
|
5462
|
+
};
|
|
5463
|
+
|
|
5464
|
+
const RemoteIdentityVerificationContainer = ({
|
|
5465
|
+
viewProps,
|
|
5466
|
+
...coreParams
|
|
5467
|
+
}) => {
|
|
5468
|
+
const { rivLandingUrl, isLoading, handleIframeLoad } = remoteIdentityVerification.useRemoteIdentityVerificationCore(coreParams);
|
|
5469
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5470
|
+
RemoteIdentityVerificationView,
|
|
5471
|
+
{
|
|
5472
|
+
...viewProps,
|
|
5473
|
+
src: rivLandingUrl,
|
|
5474
|
+
isOpen: coreParams.isOpen,
|
|
5475
|
+
isLoading,
|
|
5476
|
+
onLoad: handleIframeLoad
|
|
5477
|
+
}
|
|
5478
|
+
);
|
|
5479
|
+
};
|
|
5480
|
+
|
|
5481
|
+
const useRemoteIdentityVerification = () => {
|
|
5482
|
+
const { isOpen, openModal, closeModal } = salesFrontendDesignSystem.useModalState();
|
|
5483
|
+
return {
|
|
5484
|
+
isRivModalOpen: isOpen,
|
|
5485
|
+
openRivModal: openModal,
|
|
5486
|
+
closeRivModal: closeModal
|
|
5487
|
+
};
|
|
5488
|
+
};
|
|
5489
|
+
|
|
5490
|
+
const RemoteIdentityVerification = {
|
|
5491
|
+
Container: RemoteIdentityVerificationContainer,
|
|
5492
|
+
View: RemoteIdentityVerificationView,
|
|
5493
|
+
useRemoteIdentityVerification
|
|
5494
|
+
};
|
|
5495
|
+
|
|
5350
5496
|
function DudUpload() {
|
|
5351
5497
|
const [test, setTest] = React9.useState();
|
|
5352
5498
|
const { mutateAsync, data } = method.useDudExternalFileUploadMutation();
|
|
@@ -5525,7 +5671,7 @@ const TermsCheckboxButton = ({
|
|
|
5525
5671
|
);
|
|
5526
5672
|
};
|
|
5527
5673
|
|
|
5528
|
-
const cx$a = classNames.bind(styles$e);
|
|
5674
|
+
const cx$a = classNames$1.bind(styles$e);
|
|
5529
5675
|
const TermsRadio = ({ field, value, options, onChange }) => {
|
|
5530
5676
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$a("radio", "mt-textarea-medium"), children: options.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5531
5677
|
salesFrontendDesignSystem.Radio.Item,
|
|
@@ -5541,7 +5687,7 @@ const TermsRadio = ({ field, value, options, onChange }) => {
|
|
|
5541
5687
|
)) });
|
|
5542
5688
|
};
|
|
5543
5689
|
|
|
5544
|
-
const cx$9 = classNames.bind(styles$f);
|
|
5690
|
+
const cx$9 = classNames$1.bind(styles$f);
|
|
5545
5691
|
const RATING_DATA = [
|
|
5546
5692
|
{ type: "safe", name: "\uC548\uC2EC" },
|
|
5547
5693
|
// jade-green400
|
|
@@ -5563,7 +5709,7 @@ const TermsRatingBar = ({ active }) => {
|
|
|
5563
5709
|
] });
|
|
5564
5710
|
};
|
|
5565
5711
|
|
|
5566
|
-
const cx$8 = classNames.bind(styles$g);
|
|
5712
|
+
const cx$8 = classNames$1.bind(styles$g);
|
|
5567
5713
|
const TermsMobileCard = ({ className, children }) => {
|
|
5568
5714
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$8("mobile-card", className), children });
|
|
5569
5715
|
};
|
|
@@ -5680,7 +5826,7 @@ const TermsCancerProvideQR = () => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
5680
5826
|
}
|
|
5681
5827
|
);
|
|
5682
5828
|
|
|
5683
|
-
const cx$7 = classNames.bind(styles$h);
|
|
5829
|
+
const cx$7 = classNames$1.bind(styles$h);
|
|
5684
5830
|
const CHANNEL_OPTIONS$1 = [
|
|
5685
5831
|
{ label: "\uC804\uCCB4", value: "0" },
|
|
5686
5832
|
{ label: "\uC804\uD654", value: "1" },
|
|
@@ -5898,7 +6044,7 @@ const TermsMarketing = ({
|
|
|
5898
6044
|
] });
|
|
5899
6045
|
};
|
|
5900
6046
|
|
|
5901
|
-
const cx$6 = classNames.bind(styles$h);
|
|
6047
|
+
const cx$6 = classNames$1.bind(styles$h);
|
|
5902
6048
|
const PERIOD_OPTIONS = [
|
|
5903
6049
|
{ label: "5\uB144", value: "5" },
|
|
5904
6050
|
{ label: "4\uB144", value: "4" },
|
|
@@ -6107,7 +6253,7 @@ const TermsCancerMarketing = ({
|
|
|
6107
6253
|
] });
|
|
6108
6254
|
};
|
|
6109
6255
|
|
|
6110
|
-
const cx$5 = classNames.bind(styles$h);
|
|
6256
|
+
const cx$5 = classNames$1.bind(styles$h);
|
|
6111
6257
|
const TermsCancerSystem = ({
|
|
6112
6258
|
formFactor = "tablet",
|
|
6113
6259
|
value,
|
|
@@ -6335,7 +6481,7 @@ const TermsCancerSystem = ({
|
|
|
6335
6481
|
] });
|
|
6336
6482
|
};
|
|
6337
6483
|
|
|
6338
|
-
const cx$4 = classNames.bind(styles$h);
|
|
6484
|
+
const cx$4 = classNames$1.bind(styles$h);
|
|
6339
6485
|
const TermsExecution = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6340
6486
|
const handleChange = (field, newValue) => {
|
|
6341
6487
|
onChange({
|
|
@@ -6716,7 +6862,7 @@ const TermsExecution = ({ formFactor = "tablet", value, onChange, className }) =
|
|
|
6716
6862
|
] });
|
|
6717
6863
|
};
|
|
6718
6864
|
|
|
6719
|
-
const cx$3 = classNames.bind(styles$h);
|
|
6865
|
+
const cx$3 = classNames$1.bind(styles$h);
|
|
6720
6866
|
const TermsLoan = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6721
6867
|
const handleChange = (field, newValue) => {
|
|
6722
6868
|
onChange({
|
|
@@ -6867,7 +7013,7 @@ const TermsLoan = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
|
6867
7013
|
] });
|
|
6868
7014
|
};
|
|
6869
7015
|
|
|
6870
|
-
const cx$2 = classNames.bind(styles$h);
|
|
7016
|
+
const cx$2 = classNames$1.bind(styles$h);
|
|
6871
7017
|
const TermsSignature = ({ formFactor = "tablet", productInfo, className }) => {
|
|
6872
7018
|
const { productName, contractorName, insuredName } = productInfo;
|
|
6873
7019
|
const TERMS_TITLE = {
|
|
@@ -6922,7 +7068,7 @@ const TermsSignature = ({ formFactor = "tablet", productInfo, className }) => {
|
|
|
6922
7068
|
] });
|
|
6923
7069
|
};
|
|
6924
7070
|
|
|
6925
|
-
const cx$1 = classNames.bind(styles$h);
|
|
7071
|
+
const cx$1 = classNames$1.bind(styles$h);
|
|
6926
7072
|
const TermsTransfer = ({ formFactor = "tablet", className }) => {
|
|
6927
7073
|
const TERMS_TITLE = {
|
|
6928
7074
|
phone: "\uBCF4\uD5D8\uB8CC \uC774\uCCB4 \uBC0F \uCD9C\uAE08\uACC4\uC88C \uB4F1\uB85D\uC744 \uC704\uD574 \uC544\uB798 \uB0B4\uC6A9\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694",
|
|
@@ -6942,7 +7088,7 @@ const TermsTransfer = ({ formFactor = "tablet", className }) => {
|
|
|
6942
7088
|
] });
|
|
6943
7089
|
};
|
|
6944
7090
|
|
|
6945
|
-
const cx = classNames.bind(styles$h);
|
|
7091
|
+
const cx = classNames$1.bind(styles$h);
|
|
6946
7092
|
const TermsDesign = ({ value, onChange, className }) => {
|
|
6947
7093
|
const handleChange = (field, newValue) => {
|
|
6948
7094
|
onChange({
|
|
@@ -7274,6 +7420,7 @@ exports.JobVehicleSearchModal = JobVehicleSearchModal;
|
|
|
7274
7420
|
exports.OrganizationSearchModal = OrganizationSearchModal;
|
|
7275
7421
|
exports.RATING_DATA = RATING_DATA;
|
|
7276
7422
|
exports.RIV_SEARCH_PARAM_MAP = RIV_SEARCH_PARAM_MAP;
|
|
7423
|
+
exports.RemoteIdentityVerification = RemoteIdentityVerification;
|
|
7277
7424
|
exports.RivModalIframe = RivModalIframe;
|
|
7278
7425
|
exports.StepIndicator = StepIndicator;
|
|
7279
7426
|
exports.TermsCancerCollectQR = TermsCancerCollectQR;
|
|
@@ -7308,7 +7455,7 @@ exports.useJobVehicleSearch = useJobVehicleSearch;
|
|
|
7308
7455
|
exports.useJobVehicleSearchModal = useJobVehicleSearchModal;
|
|
7309
7456
|
exports.useNationalityComponent = useNationalityComponent;
|
|
7310
7457
|
exports.useNxlOneModal = useNxlOneModal;
|
|
7311
|
-
exports.useRemoteIdentityVerification = useRemoteIdentityVerification;
|
|
7458
|
+
exports.useRemoteIdentityVerification = useRemoteIdentityVerification$1;
|
|
7312
7459
|
exports.useRemoteIdentityVerificationIframe = useRemoteIdentityVerificationIframe;
|
|
7313
7460
|
exports.useSearchAddress = useSearchAddress;
|
|
7314
7461
|
exports.useSearchNationality = useSearchNationality;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { AddressStandardizationResponseDto, AddressResponseDto, CodeDto, CommonC
|
|
|
8
8
|
import * as sales_frontend_solution from 'sales-frontend-solution';
|
|
9
9
|
import { NxlOneResponse, NxlOneIframeProps } from 'sales-frontend-solution';
|
|
10
10
|
import { LoadScriptParams, Astx2Init } from 'sales-frontend-utils';
|
|
11
|
+
import { UseRemoteIdentityVerificationCoreParams } from 'sales-frontend-headless/remote-identity-verification';
|
|
11
12
|
|
|
12
13
|
interface HookFormProps<TFieldValues extends FieldValues = FieldValues> extends PropsWithChildren {
|
|
13
14
|
useControllerProps: UseControllerProps<TFieldValues>;
|
|
@@ -638,6 +639,9 @@ interface JobVehicleSearchModalProps {
|
|
|
638
639
|
}
|
|
639
640
|
declare function JobVehicleSearchModal({ onClose }: JobVehicleSearchModalProps): react_jsx_runtime.JSX.Element;
|
|
640
641
|
|
|
642
|
+
/**
|
|
643
|
+
* @deprecated `RivMessageResponse`(sales-frontend-headless/remote-identity-verification) 사용을 권장합니다.
|
|
644
|
+
*/
|
|
641
645
|
interface VerificationResponse {
|
|
642
646
|
command: 'webClose';
|
|
643
647
|
args: {
|
|
@@ -645,6 +649,11 @@ interface VerificationResponse {
|
|
|
645
649
|
code: string;
|
|
646
650
|
};
|
|
647
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* URL 파라미터 설정
|
|
654
|
+
*
|
|
655
|
+
* @deprecated `RivOptions`(sales-frontend-headless/remote-identity-verification) 사용을 권장합니다.
|
|
656
|
+
*/
|
|
648
657
|
interface RivUrlParams {
|
|
649
658
|
/** 유입환경구분코드(0: 모바일웹, 1: PC, 2: App) */
|
|
650
659
|
envDvsnCode?: string;
|
|
@@ -655,9 +664,16 @@ interface RivUrlParams {
|
|
|
655
664
|
/** 국적타입(D: 내국인, F: 외국인) */
|
|
656
665
|
nationalityType?: 'D' | 'F';
|
|
657
666
|
}
|
|
667
|
+
/**
|
|
668
|
+
* @deprecated `RemoteIdentityVerificationInfo`(sales-frontend-headless/remote-identity-verification) 사용을 권장합니다. (필드명 `preIssuedRivRequestId`)
|
|
669
|
+
*/
|
|
658
670
|
interface RemoteIdentityVerificationSuccess {
|
|
659
671
|
rivsRequestId: string;
|
|
660
672
|
}
|
|
673
|
+
/**
|
|
674
|
+
* @deprecated 토큰 발급 API가 hook 내부에 하드코딩된 기존 구조의 Props 타입입니다. 업무별로 분리된 토큰 발급 API를 범용적으로 사용하기 위한 콜백 주입식 신규 API를 사용하세요.
|
|
675
|
+
* → `UseRemoteIdentityVerificationCoreParams`(sales-frontend-headless/remote-identity-verification) 또는 `RemoteIdentityVerificationProps`(sales-frontend-components) 사용을 권장합니다.
|
|
676
|
+
*/
|
|
661
677
|
interface UseRemoteIdentityVerificationProps {
|
|
662
678
|
rivEnv?: 'prd' | 'stg' | 'dev';
|
|
663
679
|
rivOrigin?: string;
|
|
@@ -668,6 +684,9 @@ interface UseRemoteIdentityVerificationProps {
|
|
|
668
684
|
onError?: (result: VerificationResponse['args'], remoteIdentityVerificationSuccess: RemoteIdentityVerificationSuccess) => void;
|
|
669
685
|
onCancel?: (result: VerificationResponse['args']) => void;
|
|
670
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* @deprecated `RemoteIdentityVerificationViewProps`(sales-frontend-components) 사용을 권장합니다.
|
|
689
|
+
*/
|
|
671
690
|
interface RivModalIframeProps extends IframeHTMLAttributes<HTMLIFrameElement> {
|
|
672
691
|
/** 로딩 컴포넌트 */
|
|
673
692
|
loadingComponent?: ReactNode;
|
|
@@ -676,6 +695,9 @@ interface RivModalIframeProps extends IframeHTMLAttributes<HTMLIFrameElement> {
|
|
|
676
695
|
/** 오픈 여부 */
|
|
677
696
|
isOpen?: boolean;
|
|
678
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* @deprecated `RemoteIdentityVerification` namespace 사용을 권장합니다. (`RemoteIdentityVerification.View` props를 그대로 활용)
|
|
700
|
+
*/
|
|
679
701
|
interface RivModalIframeReturnProps {
|
|
680
702
|
/** Iframe 주소 */
|
|
681
703
|
src: string;
|
|
@@ -689,13 +711,28 @@ interface RivModalIframeReturnProps {
|
|
|
689
711
|
|
|
690
712
|
/**
|
|
691
713
|
* 비대면인증 컴포넌트(Modal + Iframe 조합버전)
|
|
692
|
-
*
|
|
693
|
-
* @
|
|
714
|
+
*
|
|
715
|
+
* @deprecated 기존 hook(`useRemoteIdentityVerificationIframe`)의 토큰 발급 API 하드코딩 문제로 인해 함께 deprecated 처리되었습니다.
|
|
716
|
+
* 업무별로 분리된 토큰 발급 API를 범용적으로 사용할 수 있도록 `RemoteIdentityVerification` namespace로 재설계되었습니다.
|
|
717
|
+
* → `RemoteIdentityVerification.Container`(또는 `RemoteIdentityVerification.View` + `useRemoteIdentityVerificationCore`)로 마이그레이션하세요.
|
|
718
|
+
*
|
|
719
|
+
* @example
|
|
720
|
+
* import { RemoteIdentityVerification } from 'sales-frontend-components';
|
|
721
|
+
*
|
|
722
|
+
* const { Container, useRemoteIdentityVerification } = RemoteIdentityVerification;
|
|
723
|
+
* const { isRivModalOpen, openRivModal, closeRivModal } = useRemoteIdentityVerification();
|
|
724
|
+
*
|
|
725
|
+
* <Container isOpen={isRivModalOpen} onClose={closeRivModal} getRivAccessToken={...} rivEnv="stg" />
|
|
694
726
|
*/
|
|
695
727
|
declare const RivModalIframe: ({ width, height, loadingComponent, isLoading, isOpen, ...iframeProps }: RivModalIframeProps) => react_jsx_runtime.JSX.Element;
|
|
696
728
|
|
|
697
729
|
/**
|
|
698
730
|
* 비대면인증시스템 기본 로직
|
|
731
|
+
*
|
|
732
|
+
* @deprecated 이 hook은 토큰 발급 API(`getRemoteIdentityVerificationSystemToken`)가 내부에 하드코딩되어 있어 사용처(업무)마다 다른 토큰 발급 API를 사용할 수 없습니다.
|
|
733
|
+
* 업무별로 API가 분리된 환경의 범용 사용성을 위해 `getRivAccessToken` 콜백 주입 방식으로 재설계되었습니다.
|
|
734
|
+
* → `useRemoteIdentityVerificationCore`(sales-frontend-headless/remote-identity-verification) 또는 `RemoteIdentityVerification.Container`(sales-frontend-components) 사용을 권장합니다.
|
|
735
|
+
*
|
|
699
736
|
* @param config
|
|
700
737
|
*/
|
|
701
738
|
declare const useRemoteIdentityVerification: ({ rivEnv, rivOrigin, tokenRequestParams, apiConfig, onCancel, onError, onSuccess, rivSearchParams }: UseRemoteIdentityVerificationProps) => {
|
|
@@ -707,6 +744,28 @@ declare const useRemoteIdentityVerification: ({ rivEnv, rivOrigin, tokenRequestP
|
|
|
707
744
|
};
|
|
708
745
|
/**
|
|
709
746
|
* Iframe용 비대면인증시스템 훅
|
|
747
|
+
*
|
|
748
|
+
* @deprecated 이 hook은 토큰 발급 API(`getRemoteIdentityVerificationSystemToken`)가 내부에 하드코딩되어 있어 사용처(업무)마다 다른 토큰 발급 API를 사용할 수 없습니다.
|
|
749
|
+
* 업무별로 API가 분리된 환경의 범용 사용성을 위해 `getRivAccessToken` 콜백 주입 방식의 신규 API로 재설계되었습니다.
|
|
750
|
+
* → `RemoteIdentityVerification` namespace(`Container` + `useRemoteIdentityVerification`) 사용을 권장합니다.
|
|
751
|
+
*
|
|
752
|
+
* @example
|
|
753
|
+
* import { RemoteIdentityVerification } from 'sales-frontend-components';
|
|
754
|
+
*
|
|
755
|
+
* const { Container, useRemoteIdentityVerification } = RemoteIdentityVerification;
|
|
756
|
+
* const { isRivModalOpen, openRivModal, closeRivModal } = useRemoteIdentityVerification();
|
|
757
|
+
*
|
|
758
|
+
* <Container
|
|
759
|
+
* isOpen={isRivModalOpen}
|
|
760
|
+
* onClose={closeRivModal}
|
|
761
|
+
* getRivAccessToken={async () => {
|
|
762
|
+
* const res = await getRemoteIdentityVerificationSystemToken(...);
|
|
763
|
+
* return { accessToken: res.data.accessToken, rivsRqstId: res.data.remoteIdentityVerificationSystemRequestId };
|
|
764
|
+
* }}
|
|
765
|
+
* rivEnv="stg"
|
|
766
|
+
* onSuccess={(rivResult, verifiedInfo) => ...}
|
|
767
|
+
* />
|
|
768
|
+
*
|
|
710
769
|
* @param config
|
|
711
770
|
* @returns
|
|
712
771
|
*/
|
|
@@ -756,6 +815,64 @@ declare const RIV_SEARCH_PARAM_MAP: {
|
|
|
756
815
|
};
|
|
757
816
|
};
|
|
758
817
|
|
|
818
|
+
/**
|
|
819
|
+
* `RemoteIdentityVerificationView` (dumb view) Props.
|
|
820
|
+
*/
|
|
821
|
+
interface RemoteIdentityVerificationViewProps extends IframeHTMLAttributes<HTMLIFrameElement> {
|
|
822
|
+
/** 로딩 컴포넌트 (미지정 시 기본 로딩 UI) */
|
|
823
|
+
loadingComponent?: ReactNode;
|
|
824
|
+
/** 로딩 여부 */
|
|
825
|
+
isLoading?: boolean;
|
|
826
|
+
/** 오픈 여부 */
|
|
827
|
+
isOpen?: boolean;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* container가 view로 forward할 때 사용하는 props.
|
|
831
|
+
* container가 관리하는 `src`, `isOpen`, `isLoading`, `onLoad`는 제외한다.
|
|
832
|
+
*/
|
|
833
|
+
type RemoteIdentityVerificationViewForwardProps = Omit<RemoteIdentityVerificationViewProps, 'src' | 'isOpen' | 'isLoading' | 'onLoad'>;
|
|
834
|
+
/**
|
|
835
|
+
* `RemoteIdentityVerificationContainer` Props.
|
|
836
|
+
*
|
|
837
|
+
* headless의 `UseRemoteIdentityVerificationCoreParams`(도메인 로직 입력) + `viewProps`(view 커스터마이즈).
|
|
838
|
+
*/
|
|
839
|
+
interface RemoteIdentityVerificationProps extends UseRemoteIdentityVerificationCoreParams {
|
|
840
|
+
/** view 컴포넌트로 forward되는 props (`width`, `height`, `loadingComponent`, iframe HTML 속성 등) */
|
|
841
|
+
viewProps?: RemoteIdentityVerificationViewForwardProps;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* `useRemoteIdentityVerification` 반환 타입.
|
|
845
|
+
*/
|
|
846
|
+
interface UseRemoteIdentityVerificationReturn {
|
|
847
|
+
/** RIV 모달 오픈 여부 */
|
|
848
|
+
isRivModalOpen: boolean;
|
|
849
|
+
/** RIV 모달 열기 */
|
|
850
|
+
openRivModal: () => void;
|
|
851
|
+
/** RIV 모달 닫기 */
|
|
852
|
+
closeRivModal: () => void;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* @description 비대면인증(RIV) 도메인 namespace. container, view, hook을 묶어 단일 진입점으로 제공한다.
|
|
857
|
+
*
|
|
858
|
+
* - `Container` — RIV 컨테이너 (토큰 발급/메시지 구독을 hook에 위임 + view 연결)
|
|
859
|
+
* - `View` — dumb view 컴포넌트 (Modal + iframe + 로딩 UI)
|
|
860
|
+
* - `useRemoteIdentityVerification` — 모달 컨트롤 state hook (`isRivModalOpen`, `openRivModal`, `closeRivModal`)
|
|
861
|
+
*
|
|
862
|
+
* @example
|
|
863
|
+
* import { RemoteIdentityVerification } from 'sales-frontend-components';
|
|
864
|
+
*
|
|
865
|
+
* const { Container, useRemoteIdentityVerification } = RemoteIdentityVerification;
|
|
866
|
+
* const { isRivModalOpen, openRivModal, closeRivModal } = useRemoteIdentityVerification();
|
|
867
|
+
*
|
|
868
|
+
* <Container isOpen={isRivModalOpen} onClose={closeRivModal} getRivAccessToken={...} rivEnv="stg" />
|
|
869
|
+
*/
|
|
870
|
+
declare const RemoteIdentityVerification: {
|
|
871
|
+
Container: ({ viewProps, ...coreParams }: RemoteIdentityVerificationProps) => react_jsx_runtime.JSX.Element;
|
|
872
|
+
View: ({ width, height, loadingComponent, isLoading, isOpen, src, className, ...iframeProps }: RemoteIdentityVerificationViewProps) => react_jsx_runtime.JSX.Element;
|
|
873
|
+
useRemoteIdentityVerification: () => UseRemoteIdentityVerificationReturn;
|
|
874
|
+
};
|
|
875
|
+
|
|
759
876
|
declare function DudUpload(): react_jsx_runtime.JSX.Element;
|
|
760
877
|
|
|
761
878
|
declare function DudDownload(): react_jsx_runtime.JSX.Element;
|
|
@@ -1017,5 +1134,5 @@ interface UseTermsReturn<T> {
|
|
|
1017
1134
|
*/
|
|
1018
1135
|
declare function useTerms<T extends object>(initialValue: T): UseTermsReturn<T>;
|
|
1019
1136
|
|
|
1020
|
-
export { AUTH_TEMPLATE_CODES, Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, GtmIframe, HookFormCheckbox, HookFormCheckboxButton, HookFormDatePickerRenew, HookFormDateRangePickerRenew, HookFormSearchJobField, HookFormSegmentGroup, HookFormSelect, HookFormTextField, JobVehicleSearchModal, OrganizationSearchModal, RATING_DATA, RIV_SEARCH_PARAM_MAP, RivModalIframe, StepIndicator, TermsCancerCollectQR, TermsCancerMarketing, TermsCancerProvideQR, TermsCancerSystem, TermsCheckboxButton, TermsDesign, TermsExecution, TermsLoan, TermsMarketing, TermsMarketingCollectQR, TermsMarketingProviderQR, TermsMobileCard, TermsRadio, TermsRatingBar, TermsSignature, TermsTransfer, VERIFICATION_CODES, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCameraV2, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearch, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useSearchAddress, useSearchNationality, useSearchVisa, useTerms, useVisaComponent };
|
|
1021
|
-
export type { AddImageInfo, AttachedPhoto, AttachmentProps, AuthCodeSet, AuthStep, BankStockSearchModalProps, BaseTermsProps, CustomerSearchProps, DownloadProps, DownloadTargetInfo, DownloaderProps, FormFactor, HookFormCheckboxButtonProps, HookFormCheckboxProps, HookFormDatePickerRenewProps, HookFormDateRangePickerRenewProps, HookFormSearchJobFieldProps, HookFormSegmentGroupProps, HookFormSelectProps, HookFormTextFieldProps, InitSearchParams, PaintProps, Pen, RemoteIdentityVerificationSuccess, RivModalIframeProps, RivModalIframeReturnProps, RivUrlParams, SearchInputProps, StepIndicatorProps, StepItem, TermsCancerMarketingData, TermsCancerMarketingProps, TermsCancerSystemData, TermsCancerSystemDataProps, TermsDesignData, TermsDesignProps, TermsExecutionData, TermsExecutionProps, TermsLoanData, TermsLoanDataProps, TermsMarketingData, TermsMarketingProps, TermsRadioOption, TermsRatingType, TermsSignatureData, UseRemoteIdentityVerificationProps, UseTermsReturn, Vehicle, VerificationResponse, cameraItemType, cameraOptions };
|
|
1137
|
+
export { AUTH_TEMPLATE_CODES, Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, GtmIframe, HookFormCheckbox, HookFormCheckboxButton, HookFormDatePickerRenew, HookFormDateRangePickerRenew, HookFormSearchJobField, HookFormSegmentGroup, HookFormSelect, HookFormTextField, JobVehicleSearchModal, OrganizationSearchModal, RATING_DATA, RIV_SEARCH_PARAM_MAP, RemoteIdentityVerification, RivModalIframe, StepIndicator, TermsCancerCollectQR, TermsCancerMarketing, TermsCancerProvideQR, TermsCancerSystem, TermsCheckboxButton, TermsDesign, TermsExecution, TermsLoan, TermsMarketing, TermsMarketingCollectQR, TermsMarketingProviderQR, TermsMobileCard, TermsRadio, TermsRatingBar, TermsSignature, TermsTransfer, VERIFICATION_CODES, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCameraV2, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearch, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useSearchAddress, useSearchNationality, useSearchVisa, useTerms, useVisaComponent };
|
|
1138
|
+
export type { AddImageInfo, AttachedPhoto, AttachmentProps, AuthCodeSet, AuthStep, BankStockSearchModalProps, BaseTermsProps, CustomerSearchProps, DownloadProps, DownloadTargetInfo, DownloaderProps, FormFactor, HookFormCheckboxButtonProps, HookFormCheckboxProps, HookFormDatePickerRenewProps, HookFormDateRangePickerRenewProps, HookFormSearchJobFieldProps, HookFormSegmentGroupProps, HookFormSelectProps, HookFormTextFieldProps, InitSearchParams, PaintProps, Pen, RemoteIdentityVerificationProps, RemoteIdentityVerificationSuccess, RemoteIdentityVerificationViewForwardProps, RemoteIdentityVerificationViewProps, RivModalIframeProps, RivModalIframeReturnProps, RivUrlParams, SearchInputProps, StepIndicatorProps, StepItem, TermsCancerMarketingData, TermsCancerMarketingProps, TermsCancerSystemData, TermsCancerSystemDataProps, TermsDesignData, TermsDesignProps, TermsExecutionData, TermsExecutionProps, TermsLoanData, TermsLoanDataProps, TermsMarketingData, TermsMarketingProps, TermsRadioOption, TermsRatingType, TermsSignatureData, UseRemoteIdentityVerificationProps, UseRemoteIdentityVerificationReturn, UseTermsReturn, Vehicle, VerificationResponse, cameraItemType, cameraOptions };
|
package/dist/index.esm.js
CHANGED
|
@@ -22,6 +22,7 @@ import styles$b from './modal/pre-standard/organization-search-modal/organizatio
|
|
|
22
22
|
import styles$c from './step-indicator/step-indicator.module.scss';
|
|
23
23
|
import { Bridge } from 'sales-frontend-bridge';
|
|
24
24
|
import styles$d from './camera/camera.module.scss';
|
|
25
|
+
import { useRemoteIdentityVerificationCore } from 'sales-frontend-headless/remote-identity-verification';
|
|
25
26
|
import styles$e from './terms/components/unit/terms-radio.module.scss';
|
|
26
27
|
import styles$f from './terms/components/unit/terms-rating-bar.module.scss';
|
|
27
28
|
import styles$g from './terms/components/unit/terms-mobile-card.module.scss';
|
|
@@ -641,7 +642,7 @@ function requireBind () {
|
|
|
641
642
|
}
|
|
642
643
|
|
|
643
644
|
var bindExports = requireBind();
|
|
644
|
-
var classNames = /*@__PURE__*/getDefaultExportFromCjs(bindExports);
|
|
645
|
+
var classNames$1 = /*@__PURE__*/getDefaultExportFromCjs(bindExports);
|
|
645
646
|
|
|
646
647
|
const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
647
648
|
if (!targetString || !originalText?.includes(targetString)) {
|
|
@@ -660,7 +661,7 @@ const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
|
660
661
|
return replacedText;
|
|
661
662
|
};
|
|
662
663
|
|
|
663
|
-
const cx$x = classNames.bind(styles);
|
|
664
|
+
const cx$x = classNames$1.bind(styles);
|
|
664
665
|
const { InputBox: InputBox$4, Input: Input$4 } = FormCore;
|
|
665
666
|
const AddressSearchInitialText = () => {
|
|
666
667
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -1494,7 +1495,7 @@ function useBankStockSearch({ onSelect, commonCodeId }) {
|
|
|
1494
1495
|
};
|
|
1495
1496
|
}
|
|
1496
1497
|
|
|
1497
|
-
const cx$w = classNames.bind(styles$1);
|
|
1498
|
+
const cx$w = classNames$1.bind(styles$1);
|
|
1498
1499
|
function BankStockSearchModal({ open, onClose, onSelect, commonCodeId }) {
|
|
1499
1500
|
const { bankList, stockList, handleSelect } = useBankStockSearch({
|
|
1500
1501
|
onSelect,
|
|
@@ -1612,7 +1613,7 @@ const useCustomerSearch = (onSelect, options) => {
|
|
|
1612
1613
|
};
|
|
1613
1614
|
};
|
|
1614
1615
|
|
|
1615
|
-
const cx$v = classNames.bind(styles$2);
|
|
1616
|
+
const cx$v = classNames$1.bind(styles$2);
|
|
1616
1617
|
const { InputBox: InputBox$3, Input: Input$3 } = FormCore;
|
|
1617
1618
|
const CustomerSearch = ({
|
|
1618
1619
|
onSelectCustomer,
|
|
@@ -1688,7 +1689,7 @@ const CustomerSearch = ({
|
|
|
1688
1689
|
] });
|
|
1689
1690
|
};
|
|
1690
1691
|
|
|
1691
|
-
const cx$u = classNames.bind(styles$2);
|
|
1692
|
+
const cx$u = classNames$1.bind(styles$2);
|
|
1692
1693
|
const { InputBox: InputBox$2, Input: Input$2 } = FormCore;
|
|
1693
1694
|
function CustomerSearchModal({ isOpen, closeModal, onSelect, onSearchClear, inputProps, inputBoxProps }) {
|
|
1694
1695
|
const {
|
|
@@ -1780,7 +1781,7 @@ function CustomerSearchModal({ isOpen, closeModal, onSelect, onSearchClear, inpu
|
|
|
1780
1781
|
] });
|
|
1781
1782
|
}
|
|
1782
1783
|
|
|
1783
|
-
const cx$t = classNames.bind(styles$3);
|
|
1784
|
+
const cx$t = classNames$1.bind(styles$3);
|
|
1784
1785
|
const { InputBox: InputBox$1, Input: Input$1 } = FormCore;
|
|
1785
1786
|
const favoriteList = [
|
|
1786
1787
|
{
|
|
@@ -2003,7 +2004,7 @@ const useNationalityComponent = () => {
|
|
|
2003
2004
|
};
|
|
2004
2005
|
};
|
|
2005
2006
|
|
|
2006
|
-
const cx$s = classNames.bind(styles$4);
|
|
2007
|
+
const cx$s = classNames$1.bind(styles$4);
|
|
2007
2008
|
const AUTH_TEMPLATE_CODES = {
|
|
2008
2009
|
appInit: {
|
|
2009
2010
|
dev: {
|
|
@@ -2262,7 +2263,7 @@ function useNxlOneModal({
|
|
|
2262
2263
|
};
|
|
2263
2264
|
}
|
|
2264
2265
|
|
|
2265
|
-
const cx$r = classNames.bind(styles$5);
|
|
2266
|
+
const cx$r = classNames$1.bind(styles$5);
|
|
2266
2267
|
const { InputBox, Input } = FormCore;
|
|
2267
2268
|
const VisaSearchInitialText = ({ visaList, onSelect, onConfirm }) => {
|
|
2268
2269
|
return /* @__PURE__ */ jsx("div", { className: cx$r("favorite-container"), children: /* @__PURE__ */ jsx("ul", { className: cx$r("favorite"), children: visaList.map((item, index) => {
|
|
@@ -2440,7 +2441,7 @@ const useVisaComponent = () => {
|
|
|
2440
2441
|
};
|
|
2441
2442
|
};
|
|
2442
2443
|
|
|
2443
|
-
const cx$q = classNames.bind(styles$6);
|
|
2444
|
+
const cx$q = classNames$1.bind(styles$6);
|
|
2444
2445
|
function DeaCustomerSearchResult({
|
|
2445
2446
|
customerList,
|
|
2446
2447
|
onCustomerSelect,
|
|
@@ -2492,7 +2493,7 @@ function DeaCustomerSearchResult({
|
|
|
2492
2493
|
}
|
|
2493
2494
|
|
|
2494
2495
|
const { TextField: TextField$3 } = FormField;
|
|
2495
|
-
const cx$p = classNames.bind(styles$6);
|
|
2496
|
+
const cx$p = classNames$1.bind(styles$6);
|
|
2496
2497
|
function DeaCustomerSearch({
|
|
2497
2498
|
setSearchParams,
|
|
2498
2499
|
customerList,
|
|
@@ -2731,7 +2732,7 @@ const EMPLOYEE_SEARCH_TABS = [
|
|
|
2731
2732
|
{ value: "WKIS", label: "\uB0B4\uADFC" }
|
|
2732
2733
|
];
|
|
2733
2734
|
|
|
2734
|
-
const cx$o = classNames.bind(styles$7);
|
|
2735
|
+
const cx$o = classNames$1.bind(styles$7);
|
|
2735
2736
|
function EmployeeSearchResult({
|
|
2736
2737
|
filteredEmployees,
|
|
2737
2738
|
onEmployeeSelect,
|
|
@@ -2779,7 +2780,7 @@ function EmployeeSearchResult({
|
|
|
2779
2780
|
}
|
|
2780
2781
|
|
|
2781
2782
|
const { TextField: TextField$2 } = FormField;
|
|
2782
|
-
const cx$n = classNames.bind(styles$7);
|
|
2783
|
+
const cx$n = classNames$1.bind(styles$7);
|
|
2783
2784
|
function EmployeeSearch({
|
|
2784
2785
|
activeTab,
|
|
2785
2786
|
onTabChange,
|
|
@@ -3009,7 +3010,7 @@ function JobSearchDetail({ occupationTypeCode, occupationIndustryCode }) {
|
|
|
3009
3010
|
] }) }) });
|
|
3010
3011
|
}
|
|
3011
3012
|
|
|
3012
|
-
const cx$m = classNames.bind(styles$8);
|
|
3013
|
+
const cx$m = classNames$1.bind(styles$8);
|
|
3013
3014
|
function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
3014
3015
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$m("category-section"), children: [
|
|
3015
3016
|
/* @__PURE__ */ jsxs("p", { className: cx$m("result-title"), children: [
|
|
@@ -3047,7 +3048,7 @@ function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
3047
3048
|
] }) });
|
|
3048
3049
|
}
|
|
3049
3050
|
|
|
3050
|
-
const cx$l = classNames.bind(styles$8);
|
|
3051
|
+
const cx$l = classNames$1.bind(styles$8);
|
|
3051
3052
|
function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
3052
3053
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$l("popular-jobs"), children: [
|
|
3053
3054
|
/* @__PURE__ */ jsx("p", { children: "\uB9CE\uC774 \uCC3E\uB294 \uC9C1\uC885" }),
|
|
@@ -3087,7 +3088,7 @@ function JobSearchFavorite({ filteredJobs, onJobSelect }) {
|
|
|
3087
3088
|
] }) });
|
|
3088
3089
|
}
|
|
3089
3090
|
|
|
3090
|
-
const cx$k = classNames.bind(styles$8);
|
|
3091
|
+
const cx$k = classNames$1.bind(styles$8);
|
|
3091
3092
|
function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
3092
3093
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: cx$k("popular-jobs"), children: [
|
|
3093
3094
|
/* @__PURE__ */ jsxs("p", { className: cx$k("result-title"), children: [
|
|
@@ -3132,7 +3133,7 @@ function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
3132
3133
|
}
|
|
3133
3134
|
|
|
3134
3135
|
const { TextField: TextField$1 } = FormField;
|
|
3135
|
-
const cx$j = classNames.bind(styles$8);
|
|
3136
|
+
const cx$j = classNames$1.bind(styles$8);
|
|
3136
3137
|
const { Option } = Select;
|
|
3137
3138
|
function JobSearch({
|
|
3138
3139
|
activeTab,
|
|
@@ -3485,7 +3486,7 @@ function useJobSearchModal() {
|
|
|
3485
3486
|
};
|
|
3486
3487
|
}
|
|
3487
3488
|
|
|
3488
|
-
const cx$i = classNames.bind(styles$9);
|
|
3489
|
+
const cx$i = classNames$1.bind(styles$9);
|
|
3489
3490
|
const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
3490
3491
|
return /* @__PURE__ */ jsxs("div", { className: cx$i("grade-section"), children: [
|
|
3491
3492
|
/* @__PURE__ */ jsxs("div", { className: cx$i("icon-title"), children: [
|
|
@@ -3506,7 +3507,7 @@ const JobVehicleSearchGrade = ({ riskGrade, hospitalizationGrade }) => {
|
|
|
3506
3507
|
] });
|
|
3507
3508
|
};
|
|
3508
3509
|
|
|
3509
|
-
const cx$h = classNames.bind(styles$a);
|
|
3510
|
+
const cx$h = classNames$1.bind(styles$a);
|
|
3510
3511
|
function VehicleSearch({ vehicles, onVehicleSelect, selectedVehicle }) {
|
|
3511
3512
|
return /* @__PURE__ */ jsxs("div", { className: cx$h("vehicle-search-section"), children: [
|
|
3512
3513
|
/* @__PURE__ */ jsx("p", { children: "\uC6B4\uC804 \uCC28\uC885" }),
|
|
@@ -3610,7 +3611,7 @@ const useJobVehicleSearch = () => {
|
|
|
3610
3611
|
};
|
|
3611
3612
|
};
|
|
3612
3613
|
|
|
3613
|
-
const cx$g = classNames.bind(styles$9);
|
|
3614
|
+
const cx$g = classNames$1.bind(styles$9);
|
|
3614
3615
|
function useJobVehicleSearchModal() {
|
|
3615
3616
|
const {
|
|
3616
3617
|
selectedVehicle,
|
|
@@ -3741,7 +3742,7 @@ function useJobVehicleSearchModal() {
|
|
|
3741
3742
|
};
|
|
3742
3743
|
}
|
|
3743
3744
|
|
|
3744
|
-
const cx$f = classNames.bind(styles$b);
|
|
3745
|
+
const cx$f = classNames$1.bind(styles$b);
|
|
3745
3746
|
function OrganizationSearchResult({
|
|
3746
3747
|
filteredOrganizations,
|
|
3747
3748
|
selectedOrganization,
|
|
@@ -3787,7 +3788,7 @@ function OrganizationSearchResult({
|
|
|
3787
3788
|
}
|
|
3788
3789
|
|
|
3789
3790
|
const { TextField } = FormField;
|
|
3790
|
-
const cx$e = classNames.bind(styles$b);
|
|
3791
|
+
const cx$e = classNames$1.bind(styles$b);
|
|
3791
3792
|
function OrganizationSearch({
|
|
3792
3793
|
searchTerm,
|
|
3793
3794
|
setSearchTerm,
|
|
@@ -3916,7 +3917,7 @@ const OrganizationSearchModal = ({
|
|
|
3916
3917
|
] });
|
|
3917
3918
|
};
|
|
3918
3919
|
|
|
3919
|
-
const cx$d = classNames.bind(styles$a);
|
|
3920
|
+
const cx$d = classNames$1.bind(styles$a);
|
|
3920
3921
|
function JobVehicleSearchModal({ onClose }) {
|
|
3921
3922
|
const { selectedVehicle, VehicleSearchComponent } = useVehicleSearch();
|
|
3922
3923
|
return /* @__PURE__ */ jsxs(Modal.Root, { isOpen: true, onClose, modalSize: "xlarge", children: [
|
|
@@ -4241,7 +4242,7 @@ const HookFormDateRangePickerRenew = ({
|
|
|
4241
4242
|
return /* @__PURE__ */ jsx(DatePickerRangeRenew, { startDateProps: startDateMergedProps, endDateProps: endDateMergedProps });
|
|
4242
4243
|
};
|
|
4243
4244
|
|
|
4244
|
-
const cx$c = classNames.bind(styles$c);
|
|
4245
|
+
const cx$c = classNames$1.bind(styles$c);
|
|
4245
4246
|
const StepIndicator = ({
|
|
4246
4247
|
items,
|
|
4247
4248
|
onClickItem,
|
|
@@ -4307,7 +4308,7 @@ const StepIndicator = ({
|
|
|
4307
4308
|
] });
|
|
4308
4309
|
};
|
|
4309
4310
|
|
|
4310
|
-
const cx$b = classNames.bind(styles$d);
|
|
4311
|
+
const cx$b = classNames$1.bind(styles$d);
|
|
4311
4312
|
function Attachment({
|
|
4312
4313
|
photos,
|
|
4313
4314
|
onAddPhoto,
|
|
@@ -5193,7 +5194,7 @@ const RIV_SEARCH_PARAM_MAP = {
|
|
|
5193
5194
|
}
|
|
5194
5195
|
};
|
|
5195
5196
|
|
|
5196
|
-
const useRemoteIdentityVerification = ({
|
|
5197
|
+
const useRemoteIdentityVerification$1 = ({
|
|
5197
5198
|
rivEnv,
|
|
5198
5199
|
rivOrigin,
|
|
5199
5200
|
tokenRequestParams,
|
|
@@ -5255,7 +5256,7 @@ const useRemoteIdentityVerification = ({
|
|
|
5255
5256
|
};
|
|
5256
5257
|
};
|
|
5257
5258
|
const useRemoteIdentityVerificationIframe = (config) => {
|
|
5258
|
-
const { createMessageHandler, createRemoteIdentityVerificationUrl } = useRemoteIdentityVerification(config);
|
|
5259
|
+
const { createMessageHandler, createRemoteIdentityVerificationUrl } = useRemoteIdentityVerification$1(config);
|
|
5259
5260
|
const { isOpen, openModal, closeModal } = useModalState();
|
|
5260
5261
|
const [remoteIdentityVerificationUrl, setRemoteIdentityVerificationUrl] = useState("");
|
|
5261
5262
|
const [rivsRequestId, setRivsRequestId] = useState("");
|
|
@@ -5345,6 +5346,151 @@ const useRemoteIdentityVerificationIframe = (config) => {
|
|
|
5345
5346
|
};
|
|
5346
5347
|
};
|
|
5347
5348
|
|
|
5349
|
+
var classnames = {exports: {}};
|
|
5350
|
+
|
|
5351
|
+
/*!
|
|
5352
|
+
Copyright (c) 2018 Jed Watson.
|
|
5353
|
+
Licensed under the MIT License (MIT), see
|
|
5354
|
+
http://jedwatson.github.io/classnames
|
|
5355
|
+
*/
|
|
5356
|
+
|
|
5357
|
+
var hasRequiredClassnames;
|
|
5358
|
+
|
|
5359
|
+
function requireClassnames () {
|
|
5360
|
+
if (hasRequiredClassnames) return classnames.exports;
|
|
5361
|
+
hasRequiredClassnames = 1;
|
|
5362
|
+
(function (module) {
|
|
5363
|
+
/* global define */
|
|
5364
|
+
|
|
5365
|
+
(function () {
|
|
5366
|
+
|
|
5367
|
+
var hasOwn = {}.hasOwnProperty;
|
|
5368
|
+
|
|
5369
|
+
function classNames () {
|
|
5370
|
+
var classes = '';
|
|
5371
|
+
|
|
5372
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
5373
|
+
var arg = arguments[i];
|
|
5374
|
+
if (arg) {
|
|
5375
|
+
classes = appendClass(classes, parseValue(arg));
|
|
5376
|
+
}
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
return classes;
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5382
|
+
function parseValue (arg) {
|
|
5383
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
5384
|
+
return arg;
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
if (typeof arg !== 'object') {
|
|
5388
|
+
return '';
|
|
5389
|
+
}
|
|
5390
|
+
|
|
5391
|
+
if (Array.isArray(arg)) {
|
|
5392
|
+
return classNames.apply(null, arg);
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
5396
|
+
return arg.toString();
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
var classes = '';
|
|
5400
|
+
|
|
5401
|
+
for (var key in arg) {
|
|
5402
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
5403
|
+
classes = appendClass(classes, key);
|
|
5404
|
+
}
|
|
5405
|
+
}
|
|
5406
|
+
|
|
5407
|
+
return classes;
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
function appendClass (value, newClass) {
|
|
5411
|
+
if (!newClass) {
|
|
5412
|
+
return value;
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5415
|
+
if (value) {
|
|
5416
|
+
return value + ' ' + newClass;
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
return value + newClass;
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5422
|
+
if (module.exports) {
|
|
5423
|
+
classNames.default = classNames;
|
|
5424
|
+
module.exports = classNames;
|
|
5425
|
+
} else {
|
|
5426
|
+
window.classNames = classNames;
|
|
5427
|
+
}
|
|
5428
|
+
}());
|
|
5429
|
+
} (classnames));
|
|
5430
|
+
return classnames.exports;
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
var classnamesExports = requireClassnames();
|
|
5434
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
5435
|
+
|
|
5436
|
+
const RemoteIdentityVerificationView = ({
|
|
5437
|
+
width = "100%",
|
|
5438
|
+
height = "100%",
|
|
5439
|
+
loadingComponent,
|
|
5440
|
+
isLoading = false,
|
|
5441
|
+
isOpen = false,
|
|
5442
|
+
src,
|
|
5443
|
+
className,
|
|
5444
|
+
...iframeProps
|
|
5445
|
+
}) => {
|
|
5446
|
+
return /* @__PURE__ */ jsxs(Modal.Root, { isOpen, children: [
|
|
5447
|
+
isLoading && (loadingComponent || /* @__PURE__ */ jsx(Loading.Wait, { bodyText: "\uBD88\uB7EC\uC624\uB294 \uC911" })),
|
|
5448
|
+
src && /* @__PURE__ */ jsx(
|
|
5449
|
+
"iframe",
|
|
5450
|
+
{
|
|
5451
|
+
width,
|
|
5452
|
+
height,
|
|
5453
|
+
allow: "camera *;",
|
|
5454
|
+
className: classNames("bg-100", className),
|
|
5455
|
+
...iframeProps,
|
|
5456
|
+
src
|
|
5457
|
+
}
|
|
5458
|
+
)
|
|
5459
|
+
] });
|
|
5460
|
+
};
|
|
5461
|
+
|
|
5462
|
+
const RemoteIdentityVerificationContainer = ({
|
|
5463
|
+
viewProps,
|
|
5464
|
+
...coreParams
|
|
5465
|
+
}) => {
|
|
5466
|
+
const { rivLandingUrl, isLoading, handleIframeLoad } = useRemoteIdentityVerificationCore(coreParams);
|
|
5467
|
+
return /* @__PURE__ */ jsx(
|
|
5468
|
+
RemoteIdentityVerificationView,
|
|
5469
|
+
{
|
|
5470
|
+
...viewProps,
|
|
5471
|
+
src: rivLandingUrl,
|
|
5472
|
+
isOpen: coreParams.isOpen,
|
|
5473
|
+
isLoading,
|
|
5474
|
+
onLoad: handleIframeLoad
|
|
5475
|
+
}
|
|
5476
|
+
);
|
|
5477
|
+
};
|
|
5478
|
+
|
|
5479
|
+
const useRemoteIdentityVerification = () => {
|
|
5480
|
+
const { isOpen, openModal, closeModal } = useModalState();
|
|
5481
|
+
return {
|
|
5482
|
+
isRivModalOpen: isOpen,
|
|
5483
|
+
openRivModal: openModal,
|
|
5484
|
+
closeRivModal: closeModal
|
|
5485
|
+
};
|
|
5486
|
+
};
|
|
5487
|
+
|
|
5488
|
+
const RemoteIdentityVerification = {
|
|
5489
|
+
Container: RemoteIdentityVerificationContainer,
|
|
5490
|
+
View: RemoteIdentityVerificationView,
|
|
5491
|
+
useRemoteIdentityVerification
|
|
5492
|
+
};
|
|
5493
|
+
|
|
5348
5494
|
function DudUpload() {
|
|
5349
5495
|
const [test, setTest] = useState();
|
|
5350
5496
|
const { mutateAsync, data } = useDudExternalFileUploadMutation();
|
|
@@ -5523,7 +5669,7 @@ const TermsCheckboxButton = ({
|
|
|
5523
5669
|
);
|
|
5524
5670
|
};
|
|
5525
5671
|
|
|
5526
|
-
const cx$a = classNames.bind(styles$e);
|
|
5672
|
+
const cx$a = classNames$1.bind(styles$e);
|
|
5527
5673
|
const TermsRadio = ({ field, value, options, onChange }) => {
|
|
5528
5674
|
return /* @__PURE__ */ jsx("div", { className: cx$a("radio", "mt-textarea-medium"), children: options.map((opt) => /* @__PURE__ */ jsx(
|
|
5529
5675
|
Radio.Item,
|
|
@@ -5539,7 +5685,7 @@ const TermsRadio = ({ field, value, options, onChange }) => {
|
|
|
5539
5685
|
)) });
|
|
5540
5686
|
};
|
|
5541
5687
|
|
|
5542
|
-
const cx$9 = classNames.bind(styles$f);
|
|
5688
|
+
const cx$9 = classNames$1.bind(styles$f);
|
|
5543
5689
|
const RATING_DATA = [
|
|
5544
5690
|
{ type: "safe", name: "\uC548\uC2EC" },
|
|
5545
5691
|
// jade-green400
|
|
@@ -5561,7 +5707,7 @@ const TermsRatingBar = ({ active }) => {
|
|
|
5561
5707
|
] });
|
|
5562
5708
|
};
|
|
5563
5709
|
|
|
5564
|
-
const cx$8 = classNames.bind(styles$g);
|
|
5710
|
+
const cx$8 = classNames$1.bind(styles$g);
|
|
5565
5711
|
const TermsMobileCard = ({ className, children }) => {
|
|
5566
5712
|
return /* @__PURE__ */ jsx("div", { className: cx$8("mobile-card", className), children });
|
|
5567
5713
|
};
|
|
@@ -5678,7 +5824,7 @@ const TermsCancerProvideQR = () => /* @__PURE__ */ jsxs(
|
|
|
5678
5824
|
}
|
|
5679
5825
|
);
|
|
5680
5826
|
|
|
5681
|
-
const cx$7 = classNames.bind(styles$h);
|
|
5827
|
+
const cx$7 = classNames$1.bind(styles$h);
|
|
5682
5828
|
const CHANNEL_OPTIONS$1 = [
|
|
5683
5829
|
{ label: "\uC804\uCCB4", value: "0" },
|
|
5684
5830
|
{ label: "\uC804\uD654", value: "1" },
|
|
@@ -5896,7 +6042,7 @@ const TermsMarketing = ({
|
|
|
5896
6042
|
] });
|
|
5897
6043
|
};
|
|
5898
6044
|
|
|
5899
|
-
const cx$6 = classNames.bind(styles$h);
|
|
6045
|
+
const cx$6 = classNames$1.bind(styles$h);
|
|
5900
6046
|
const PERIOD_OPTIONS = [
|
|
5901
6047
|
{ label: "5\uB144", value: "5" },
|
|
5902
6048
|
{ label: "4\uB144", value: "4" },
|
|
@@ -6105,7 +6251,7 @@ const TermsCancerMarketing = ({
|
|
|
6105
6251
|
] });
|
|
6106
6252
|
};
|
|
6107
6253
|
|
|
6108
|
-
const cx$5 = classNames.bind(styles$h);
|
|
6254
|
+
const cx$5 = classNames$1.bind(styles$h);
|
|
6109
6255
|
const TermsCancerSystem = ({
|
|
6110
6256
|
formFactor = "tablet",
|
|
6111
6257
|
value,
|
|
@@ -6333,7 +6479,7 @@ const TermsCancerSystem = ({
|
|
|
6333
6479
|
] });
|
|
6334
6480
|
};
|
|
6335
6481
|
|
|
6336
|
-
const cx$4 = classNames.bind(styles$h);
|
|
6482
|
+
const cx$4 = classNames$1.bind(styles$h);
|
|
6337
6483
|
const TermsExecution = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6338
6484
|
const handleChange = (field, newValue) => {
|
|
6339
6485
|
onChange({
|
|
@@ -6714,7 +6860,7 @@ const TermsExecution = ({ formFactor = "tablet", value, onChange, className }) =
|
|
|
6714
6860
|
] });
|
|
6715
6861
|
};
|
|
6716
6862
|
|
|
6717
|
-
const cx$3 = classNames.bind(styles$h);
|
|
6863
|
+
const cx$3 = classNames$1.bind(styles$h);
|
|
6718
6864
|
const TermsLoan = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6719
6865
|
const handleChange = (field, newValue) => {
|
|
6720
6866
|
onChange({
|
|
@@ -6865,7 +7011,7 @@ const TermsLoan = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
|
6865
7011
|
] });
|
|
6866
7012
|
};
|
|
6867
7013
|
|
|
6868
|
-
const cx$2 = classNames.bind(styles$h);
|
|
7014
|
+
const cx$2 = classNames$1.bind(styles$h);
|
|
6869
7015
|
const TermsSignature = ({ formFactor = "tablet", productInfo, className }) => {
|
|
6870
7016
|
const { productName, contractorName, insuredName } = productInfo;
|
|
6871
7017
|
const TERMS_TITLE = {
|
|
@@ -6920,7 +7066,7 @@ const TermsSignature = ({ formFactor = "tablet", productInfo, className }) => {
|
|
|
6920
7066
|
] });
|
|
6921
7067
|
};
|
|
6922
7068
|
|
|
6923
|
-
const cx$1 = classNames.bind(styles$h);
|
|
7069
|
+
const cx$1 = classNames$1.bind(styles$h);
|
|
6924
7070
|
const TermsTransfer = ({ formFactor = "tablet", className }) => {
|
|
6925
7071
|
const TERMS_TITLE = {
|
|
6926
7072
|
phone: "\uBCF4\uD5D8\uB8CC \uC774\uCCB4 \uBC0F \uCD9C\uAE08\uACC4\uC88C \uB4F1\uB85D\uC744 \uC704\uD574 \uC544\uB798 \uB0B4\uC6A9\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694",
|
|
@@ -6940,7 +7086,7 @@ const TermsTransfer = ({ formFactor = "tablet", className }) => {
|
|
|
6940
7086
|
] });
|
|
6941
7087
|
};
|
|
6942
7088
|
|
|
6943
|
-
const cx = classNames.bind(styles$h);
|
|
7089
|
+
const cx = classNames$1.bind(styles$h);
|
|
6944
7090
|
const TermsDesign = ({ value, onChange, className }) => {
|
|
6945
7091
|
const handleChange = (field, newValue) => {
|
|
6946
7092
|
onChange({
|
|
@@ -7248,4 +7394,4 @@ function useTerms(initialValue) {
|
|
|
7248
7394
|
};
|
|
7249
7395
|
}
|
|
7250
7396
|
|
|
7251
|
-
export { AUTH_TEMPLATE_CODES, Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, GtmIframe, HookFormCheckbox, HookFormCheckboxButton, HookFormDatePickerRenew, HookFormDateRangePickerRenew, HookFormSearchJobField, HookFormSegmentGroup, HookFormSelect, HookFormTextField, JobVehicleSearchModal, OrganizationSearchModal, RATING_DATA, RIV_SEARCH_PARAM_MAP, RivModalIframe, StepIndicator, TermsCancerCollectQR, TermsCancerMarketing, TermsCancerProvideQR, TermsCancerSystem, TermsCheckboxButton, TermsDesign, TermsExecution, TermsLoan, TermsMarketing, TermsMarketingCollectQR, TermsMarketingProviderQR, TermsMobileCard, TermsRadio, TermsRatingBar, TermsSignature, TermsTransfer, VERIFICATION_CODES, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCameraV2, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearch, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useSearchAddress, useSearchNationality, useSearchVisa, useTerms, useVisaComponent };
|
|
7397
|
+
export { AUTH_TEMPLATE_CODES, Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, GtmIframe, HookFormCheckbox, HookFormCheckboxButton, HookFormDatePickerRenew, HookFormDateRangePickerRenew, HookFormSearchJobField, HookFormSegmentGroup, HookFormSelect, HookFormTextField, JobVehicleSearchModal, OrganizationSearchModal, RATING_DATA, RIV_SEARCH_PARAM_MAP, RemoteIdentityVerification, RivModalIframe, StepIndicator, TermsCancerCollectQR, TermsCancerMarketing, TermsCancerProvideQR, TermsCancerSystem, TermsCheckboxButton, TermsDesign, TermsExecution, TermsLoan, TermsMarketing, TermsMarketingCollectQR, TermsMarketingProviderQR, TermsMobileCard, TermsRadio, TermsRatingBar, TermsSignature, TermsTransfer, VERIFICATION_CODES, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCameraV2, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearch, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification$1 as useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useSearchAddress, useSearchNationality, useSearchVisa, useTerms, useVisaComponent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sales-frontend-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -45,12 +45,13 @@
|
|
|
45
45
|
"sales-frontend-stores": "0.0.15",
|
|
46
46
|
"sales-frontend-typescript-config": "0.0.2",
|
|
47
47
|
"sales-frontend-assets": "0.0.28",
|
|
48
|
-
"sales-frontend-api": "0.0.
|
|
48
|
+
"sales-frontend-api": "0.0.186",
|
|
49
49
|
"sales-frontend-design-system": "0.3.6",
|
|
50
50
|
"sales-frontend-bridge": "0.0.122",
|
|
51
51
|
"sales-frontend-hooks": "0.0.182",
|
|
52
52
|
"sales-frontend-solution": "0.0.61",
|
|
53
53
|
"sales-frontend-debug": "0.0.80",
|
|
54
|
+
"sales-frontend-headless": "0.0.12",
|
|
54
55
|
"sales-frontend-vitest-config": "0.0.4"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
@@ -58,11 +59,12 @@
|
|
|
58
59
|
"react": ">=19.0.0",
|
|
59
60
|
"react-dom": ">=19.0.0",
|
|
60
61
|
"react-hook-form": "^7.58.1",
|
|
61
|
-
"sales-frontend-api": "0.0.
|
|
62
|
+
"sales-frontend-api": "0.0.186",
|
|
62
63
|
"sales-frontend-assets": "0.0.28",
|
|
63
64
|
"sales-frontend-stores": "0.0.15",
|
|
64
65
|
"sales-frontend-design-system": "0.3.6",
|
|
65
66
|
"sales-frontend-bridge": "0.0.122",
|
|
67
|
+
"sales-frontend-headless": "0.0.12",
|
|
66
68
|
"sales-frontend-hooks": "0.0.182",
|
|
67
69
|
"sales-frontend-solution": "0.0.61"
|
|
68
70
|
},
|