sales-frontend-components 0.0.159 → 0.0.160

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 CHANGED
@@ -1412,15 +1412,20 @@ const useNationalityComponent = () => {
1412
1412
  const onConfirm = () => {
1413
1413
  setIsConfirmed(true);
1414
1414
  };
1415
+ const openInitModal = () => {
1416
+ setIsConfirmed(false);
1417
+ openModal();
1418
+ };
1415
1419
  const NationalitySearchComponent = () => /* @__PURE__ */ jsxRuntime.jsx(NationalityComponent, { isOpen, onClose: closeModal, setValue: setNationality, onConfirm });
1416
1420
  return {
1417
1421
  isOpen,
1418
1422
  closeModal,
1419
1423
  setNationality,
1420
1424
  nationality,
1421
- openModal,
1425
+ openModal: openInitModal,
1422
1426
  NationalitySearchComponent,
1423
- isConfirmed
1427
+ isConfirmed,
1428
+ setIsConfirmed
1424
1429
  };
1425
1430
  };
1426
1431
 
@@ -1980,15 +1985,20 @@ const useVisaComponent = () => {
1980
1985
  const onConfirm = () => {
1981
1986
  setIsConfirmed(true);
1982
1987
  };
1988
+ const openInitModal = () => {
1989
+ setIsConfirmed(false);
1990
+ openModal();
1991
+ };
1983
1992
  const VisaSearchComponent = () => /* @__PURE__ */ jsxRuntime.jsx(VisaComponent, { isOpen, onClose: closeModal, setValue: setVisa, onConfirm });
1984
1993
  return {
1985
1994
  visa,
1986
- openModal,
1995
+ openModal: openInitModal,
1987
1996
  VisaSearchComponent,
1988
1997
  isOpen,
1989
1998
  closeModal,
1990
1999
  setVisa,
1991
- isConfirmed
2000
+ isConfirmed,
2001
+ setIsConfirmed
1992
2002
  };
1993
2003
  };
1994
2004
 
@@ -2848,6 +2858,7 @@ function useJobSearchModal() {
2848
2858
  reset();
2849
2859
  setSelectedJob(null);
2850
2860
  setActiveTab("jobName");
2861
+ setIsConfirmed(false);
2851
2862
  openModal();
2852
2863
  };
2853
2864
  const closeModalWithCheck = () => {
@@ -2920,6 +2931,7 @@ function useJobSearchModal() {
2920
2931
  ),
2921
2932
  isJobSearchOpen: isOpen,
2922
2933
  isConfirmed,
2934
+ setIsConfirmed,
2923
2935
  openJobSearchModal: openInitModal,
2924
2936
  closeJobSearchModal: closeModal,
2925
2937
  selectedJob,
@@ -3092,6 +3104,7 @@ function useJobVehicleSearchModal() {
3092
3104
  };
3093
3105
  const openInitModal = () => {
3094
3106
  resetJobVehicleSearch();
3107
+ setIsConfirmed(false);
3095
3108
  openModal();
3096
3109
  };
3097
3110
  return {
@@ -3102,6 +3115,7 @@ function useJobVehicleSearchModal() {
3102
3115
  hospitalizationGrade,
3103
3116
  isOpenJobVehicleModal: isOpen,
3104
3117
  isConfirmed,
3118
+ setIsConfirmed,
3105
3119
  openJobVehicleModal: openInitModal,
3106
3120
  closeJobVehicleModal: closeModal,
3107
3121
  JobVehicleSearchModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
@@ -4486,6 +4500,8 @@ exports.JobVehicleSearchModal = JobVehicleSearchModal;
4486
4500
  exports.OrganizationSearchModal = OrganizationSearchModal;
4487
4501
  exports.RIV_SEARCH_PARAM_MAP = RIV_SEARCH_PARAM_MAP;
4488
4502
  exports.StepIndicator = StepIndicator;
4503
+ exports.getGenderName = getGenderName;
4504
+ exports.highlightOnSearchKeyword = highlightOnSearchKeyword;
4489
4505
  exports.resize = resize;
4490
4506
  exports.testSignatureBase64Data = testSignatureBase64Data;
4491
4507
  exports.useAddressComponent = useAddressComponent;