@daeryun/dr_components 0.8.46 → 0.8.48

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.
Files changed (122) hide show
  1. package/dist/asset/images/daeryuntalk/close.svg +2 -2
  2. package/dist/asset/images/daeryuntalk/time.svg +2 -2
  3. package/dist/asset/images/daeryuntalk/viewer/zoom-out.svg +2 -4
  4. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  5. package/dist/components/Daeryuntalk/ChatButton.jsx +5 -2
  6. package/dist/components/Daeryuntalk/ChatButton.tsx +5 -2
  7. package/dist/components/Daeryuntalk/ChatConversation.d.ts +2 -0
  8. package/dist/components/Daeryuntalk/ChatConversation.jsx +22 -63
  9. package/dist/components/Daeryuntalk/ChatConversation.tsx +42 -79
  10. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.d.ts +11 -0
  11. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.jsx +27 -0
  12. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +57 -0
  13. package/dist/components/Daeryuntalk/ChatHomeView.d.ts +3 -2
  14. package/dist/components/Daeryuntalk/ChatHomeView.jsx +59 -181
  15. package/dist/components/Daeryuntalk/ChatHomeView.tsx +102 -206
  16. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +15 -14
  17. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +15 -14
  18. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.d.ts +3 -0
  19. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.jsx +11 -0
  20. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +21 -0
  21. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.jsx +4 -4
  22. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +4 -4
  23. package/dist/components/Daeryuntalk/ChatItem/RichText.jsx +2 -1
  24. package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +2 -1
  25. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.d.ts +9 -0
  26. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.jsx +9 -0
  27. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.tsx +20 -0
  28. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.jsx +3 -3
  29. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +3 -3
  30. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.jsx +2 -2
  31. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +2 -2
  32. package/dist/components/Daeryuntalk/ChatMessage.d.ts +1 -0
  33. package/dist/components/Daeryuntalk/ChatMessage.jsx +31 -36
  34. package/dist/components/Daeryuntalk/ChatMessage.tsx +34 -38
  35. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +2 -2
  36. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +2 -2
  37. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +1 -1
  38. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +1 -1
  39. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +6 -23
  40. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +6 -23
  41. package/dist/components/Daeryuntalk/ChatWidget.jsx +60 -23
  42. package/dist/components/Daeryuntalk/ChatWidget.tsx +72 -34
  43. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +2 -2
  44. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +2 -2
  45. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +5 -5
  46. package/dist/components/Daeryuntalk/DateSeparator.jsx +2 -2
  47. package/dist/components/Daeryuntalk/DateSeparator.tsx +2 -2
  48. package/dist/components/Daeryuntalk/FixedErrorBox.d.ts +7 -0
  49. package/dist/components/Daeryuntalk/FixedErrorBox.jsx +33 -0
  50. package/dist/components/Daeryuntalk/FixedErrorBox.tsx +73 -0
  51. package/dist/components/Daeryuntalk/History/AuthForm.d.ts +3 -1
  52. package/dist/components/Daeryuntalk/History/AuthForm.jsx +15 -45
  53. package/dist/components/Daeryuntalk/History/AuthForm.tsx +21 -53
  54. package/dist/components/Daeryuntalk/HistoryView.d.ts +4 -0
  55. package/dist/components/Daeryuntalk/HistoryView.jsx +17 -40
  56. package/dist/components/Daeryuntalk/HistoryView.tsx +36 -48
  57. package/dist/components/Daeryuntalk/HomeView.d.ts +12 -0
  58. package/dist/components/Daeryuntalk/HomeView.jsx +102 -0
  59. package/dist/components/Daeryuntalk/HomeView.tsx +150 -0
  60. package/dist/components/Daeryuntalk/NavigationFooter.jsx +17 -10
  61. package/dist/components/Daeryuntalk/NavigationFooter.tsx +22 -12
  62. package/dist/components/Daeryuntalk/NoticeMessage.jsx +7 -7
  63. package/dist/components/Daeryuntalk/NoticeMessage.tsx +7 -7
  64. package/dist/components/Daeryuntalk/Toast/ToastRender.jsx +1 -1
  65. package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +2 -2
  66. package/dist/components/Daeryuntalk/Viewer/ImageViewer.d.ts +6 -0
  67. package/dist/components/Daeryuntalk/Viewer/ImageViewer.jsx +18 -90
  68. package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +49 -135
  69. package/dist/components/Daeryuntalk/Viewer/MobileViewer.d.ts +16 -0
  70. package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +66 -0
  71. package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +121 -0
  72. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.d.ts +22 -0
  73. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +104 -0
  74. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +195 -0
  75. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +4 -3
  76. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +81 -105
  77. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +105 -121
  78. package/dist/components/Daeryuntalk/_enums/ask-status.d.ts +7 -0
  79. package/dist/components/Daeryuntalk/_enums/ask-status.js +14 -0
  80. package/dist/components/Daeryuntalk/_enums/ask-status.ts +14 -0
  81. package/dist/components/Daeryuntalk/_enums/error.d.ts +3 -0
  82. package/dist/components/Daeryuntalk/_enums/error.js +125 -0
  83. package/dist/components/Daeryuntalk/_enums/error.ts +143 -0
  84. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.d.ts +8 -8
  85. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +227 -179
  86. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +261 -185
  87. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.d.ts +1 -1
  88. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.js +54 -18
  89. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.ts +68 -15
  90. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +2 -2
  91. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +8 -7
  92. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +13 -6
  93. package/dist/components/Daeryuntalk/_hooks/view/useChatSocketState.d.ts +2 -0
  94. package/dist/components/Daeryuntalk/_hooks/{talkprovider → view}/useChatSocketState.js +7 -1
  95. package/dist/components/Daeryuntalk/_hooks/{talkprovider → view}/useChatSocketState.ts +13 -1
  96. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.d.ts +26 -0
  97. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.js +72 -0
  98. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.ts +93 -0
  99. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.d.ts +16 -0
  100. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.js +61 -0
  101. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +64 -0
  102. package/dist/components/Daeryuntalk/_lib/utils.d.ts +1 -0
  103. package/dist/components/Daeryuntalk/_lib/utils.js +27 -0
  104. package/dist/components/Daeryuntalk/_lib/utils.ts +33 -0
  105. package/dist/components/Daeryuntalk/_ui/buttons/Button2.jsx +3 -3
  106. package/dist/components/Daeryuntalk/_ui/buttons/Button2.tsx +3 -3
  107. package/dist/components/Daeryuntalk/_ui/buttons/Button3.d.ts +10 -0
  108. package/dist/components/Daeryuntalk/_ui/buttons/Button3.jsx +12 -0
  109. package/dist/components/Daeryuntalk/_ui/buttons/Button3.tsx +29 -0
  110. package/dist/components/Daeryuntalk/_ui/inputs/Input2.jsx +2 -1
  111. package/dist/components/Daeryuntalk/_ui/inputs/Input2.tsx +2 -1
  112. package/dist/components/Daeryuntalk/index.jsx +1 -1
  113. package/dist/components/Daeryuntalk/index.tsx +12 -1
  114. package/dist/components/Seo/SeoStrength.jsx +5 -2
  115. package/dist/components/Seo/SeoStrength.tsx +5 -2
  116. package/dist/styles/globals.css +518 -172
  117. package/dist/tsconfig.tsbuildinfo +1 -1
  118. package/package.json +1 -1
  119. package/dist/components/Daeryuntalk/_enums/error_code.d.ts +0 -21
  120. package/dist/components/Daeryuntalk/_enums/error_code.js +0 -23
  121. package/dist/components/Daeryuntalk/_enums/error_code.ts +0 -22
  122. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatSocketState.d.ts +0 -1
@@ -0,0 +1,61 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
11
+ export const useHomeView = ({ setIsLoading, setViewState, retryInquiryMain, inquiryMainData, startChat }) => {
12
+ const toast = useDaeryunTalkToast();
13
+ const handleStartChat = () => __awaiter(void 0, void 0, void 0, function* () {
14
+ var _a, _b, _c;
15
+ try {
16
+ setIsLoading(true);
17
+ const res = yield retryInquiryMain((inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_number) || '');
18
+ if (((_a = res === null || res === void 0 ? void 0 : res.result_info) === null || _a === void 0 ? void 0 : _a.result_cd) === 'OK' || ((_b = res === null || res === void 0 ? void 0 : res.result_info) === null || _b === void 0 ? void 0 : _b.result_type_cd) === 'OK') {
19
+ const startRes = yield startChat((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.progress_inquiry_number);
20
+ if (startRes) {
21
+ // 대화 화면으로 전환
22
+ setViewState('conversation');
23
+ }
24
+ else {
25
+ toast.error('문의 시작에 실패했습니다.');
26
+ }
27
+ }
28
+ else {
29
+ toast.error('채팅문의 시작에 실패했습니다.');
30
+ }
31
+ }
32
+ catch (error) {
33
+ console.error('채팅 시작 실패:', error);
34
+ }
35
+ finally {
36
+ setIsLoading(false);
37
+ }
38
+ });
39
+ const handleHashStartChat = () => __awaiter(void 0, void 0, void 0, function* () {
40
+ try {
41
+ setIsLoading(true);
42
+ yield startChat();
43
+ // 대화 화면으로 전환
44
+ setViewState('conversation');
45
+ }
46
+ catch (error) {
47
+ console.error('채팅 시작 실패:', error);
48
+ }
49
+ finally {
50
+ setIsLoading(false);
51
+ }
52
+ });
53
+ const handleBackToHome = () => {
54
+ setViewState('home');
55
+ };
56
+ return {
57
+ handleStartChat,
58
+ handleHashStartChat,
59
+ handleBackToHome
60
+ };
61
+ };
@@ -0,0 +1,64 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ViewState } from '../../ChatHomeView';
3
+ import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
4
+ import { IChatInquiryMainDataResponse } from '../../_api/daeryuntalk/type/response';
5
+
6
+ interface IHomeProps {
7
+ setIsLoading: Dispatch<SetStateAction<boolean>>;
8
+ setViewState: Dispatch<SetStateAction<ViewState>>;
9
+ retryInquiryMain: (channelNumber: string) => any;
10
+ inquiryMainData: IChatInquiryMainDataResponse | null;
11
+ startChat: (progressInquiryNumber?: string) => any;
12
+ }
13
+ export const useHomeView = ({
14
+ setIsLoading,
15
+ setViewState,
16
+ retryInquiryMain,
17
+ inquiryMainData,
18
+ startChat
19
+ }: IHomeProps) => {
20
+ const toast = useDaeryunTalkToast();
21
+ const handleStartChat = async () => {
22
+ try {
23
+ setIsLoading(true);
24
+ const res = await retryInquiryMain(inquiryMainData?.channel_number || '');
25
+ if (res?.result_info?.result_cd === 'OK' || res?.result_info?.result_type_cd === 'OK') {
26
+ const startRes = await startChat(res?.data?.progress_inquiry_number);
27
+ if (startRes) {
28
+ // 대화 화면으로 전환
29
+ setViewState('conversation');
30
+ } else {
31
+ toast.error('문의 시작에 실패했습니다.');
32
+ }
33
+ } else {
34
+ toast.error('채팅문의 시작에 실패했습니다.');
35
+ }
36
+ } catch (error) {
37
+ console.error('채팅 시작 실패:', error);
38
+ } finally {
39
+ setIsLoading(false);
40
+ }
41
+ };
42
+
43
+ const handleHashStartChat = async () => {
44
+ try {
45
+ setIsLoading(true);
46
+ await startChat();
47
+ // 대화 화면으로 전환
48
+ setViewState('conversation');
49
+ } catch (error) {
50
+ console.error('채팅 시작 실패:', error);
51
+ } finally {
52
+ setIsLoading(false);
53
+ }
54
+ };
55
+ const handleBackToHome = () => {
56
+ setViewState('home');
57
+ };
58
+
59
+ return {
60
+ handleStartChat,
61
+ handleHashStartChat,
62
+ handleBackToHome
63
+ };
64
+ };
@@ -11,3 +11,4 @@ export declare const nameFilter: (value: string) => {
11
11
  isValid: boolean;
12
12
  };
13
13
  export declare const formatSecondsToMMSS: (seconds: number) => string;
14
+ export declare const formatTimestamp: (timestamp: string) => string;
@@ -48,3 +48,30 @@ export const formatSecondsToMMSS = (seconds) => {
48
48
  const paddedSec = String(sec).padStart(2, '0');
49
49
  return `${paddedMin}:${paddedSec}`;
50
50
  };
51
+ export const formatTimestamp = (timestamp) => {
52
+ if (!timestamp)
53
+ return '';
54
+ // UTC string을 Date 객체로 변환
55
+ const date = new Date(timestamp);
56
+ const now = new Date();
57
+ // 시간 차이(초)
58
+ const diffInSeconds = Math.floor((now.getTime() - date.getTime()) / 1000);
59
+ if (diffInSeconds < 5) {
60
+ return '방금';
61
+ }
62
+ if (diffInSeconds < 60 * 60 * 24) {
63
+ // 오늘 내 메시지: 시:분
64
+ const hours = date.getHours().toString().padStart(2, '0');
65
+ const minutes = date.getMinutes().toString().padStart(2, '0');
66
+ return `${hours}:${minutes}`;
67
+ }
68
+ if (diffInSeconds < 60 * 60 * 24 * 7) {
69
+ // 일주일 내: N일전
70
+ const days = Math.floor(diffInSeconds / (60 * 60 * 24));
71
+ return `${days}일전`;
72
+ }
73
+ // 그 외: 월일
74
+ const month = date.getMonth() + 1;
75
+ const day = date.getDate();
76
+ return `${month}월${day}일`;
77
+ };
@@ -63,3 +63,36 @@ export const formatSecondsToMMSS = (seconds: number): string => {
63
63
 
64
64
  return `${paddedMin}:${paddedSec}`;
65
65
  };
66
+
67
+ export const formatTimestamp = (timestamp: string): string => {
68
+ if (!timestamp) return '';
69
+
70
+ // UTC string을 Date 객체로 변환
71
+ const date = new Date(timestamp);
72
+ const now = new Date();
73
+
74
+ // 시간 차이(초)
75
+ const diffInSeconds = Math.floor((now.getTime() - date.getTime()) / 1000);
76
+
77
+ if (diffInSeconds < 5) {
78
+ return '방금';
79
+ }
80
+
81
+ if (diffInSeconds < 60 * 60 * 24) {
82
+ // 오늘 내 메시지: 시:분
83
+ const hours = date.getHours().toString().padStart(2, '0');
84
+ const minutes = date.getMinutes().toString().padStart(2, '0');
85
+ return `${hours}:${minutes}`;
86
+ }
87
+
88
+ if (diffInSeconds < 60 * 60 * 24 * 7) {
89
+ // 일주일 내: N일전
90
+ const days = Math.floor(diffInSeconds / (60 * 60 * 24));
91
+ return `${days}일전`;
92
+ }
93
+
94
+ // 그 외: 월일
95
+ const month = date.getMonth() + 1;
96
+ const day = date.getDate();
97
+ return `${month}월${day}일`;
98
+ };
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  const Button2 = ({ onClick, type = 'button', className = '', children, isDisabled = false }) => {
3
3
  return (<button disabled={isDisabled} type={type} onClick={onClick} className={`
4
- h-[40px] rounded-[6px] bg-[#AA1D36] text-center text-[12px]
5
- font-[400] leading-[140%] tracking-[-4%] text-white
6
- disabled:bg-[#D2D2D2]
4
+ dr_talk_body_small1 h-[40px] rounded-[6px] bg-[#AA1D36]
5
+ text-center text-drTalkWhite
6
+ disabled:bg-drTalkDisabled
7
7
  ${className}
8
8
  `}>
9
9
  {children}
@@ -14,9 +14,9 @@ const Button2 = ({ onClick, type = 'button', className = '', children, isDisable
14
14
  type={type}
15
15
  onClick={onClick}
16
16
  className={`
17
- h-[40px] rounded-[6px] bg-[#AA1D36] text-center text-[12px]
18
- font-[400] leading-[140%] tracking-[-4%] text-white
19
- disabled:bg-[#D2D2D2]
17
+ dr_talk_body_small1 h-[40px] rounded-[6px] bg-[#AA1D36]
18
+ text-center text-drTalkWhite
19
+ disabled:bg-drTalkDisabled
20
20
  ${className}
21
21
  `}
22
22
  >
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface Button3Props {
3
+ onClick?: () => void | Promise<void>;
4
+ type?: 'button' | 'submit' | 'reset';
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ isDisabled?: boolean;
8
+ }
9
+ declare const Button3: ({ onClick, type, className, children, isDisabled }: Button3Props) => React.JSX.Element;
10
+ export default Button3;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ const Button3 = ({ onClick, type = 'button', className = '', children, isDisabled = false }) => {
3
+ return (<button type={type} onClick={onClick} disabled={isDisabled} className={`
4
+ dr_talk_subtitle_medium
5
+ h-[48px] rounded-[25px] bg-drTalkBtnActive2 text-drTalkWhite
6
+ disabled:cursor-not-allowed disabled:bg-drTalkDisabled
7
+ ${className}
8
+ `}>
9
+ {children}
10
+ </button>);
11
+ };
12
+ export default Button3;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+
3
+ interface Button3Props {
4
+ onClick?: () => void | Promise<void>;
5
+ type?: 'button' | 'submit' | 'reset';
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ isDisabled?: boolean;
9
+ }
10
+
11
+ const Button3 = ({ onClick, type = 'button', className = '', children, isDisabled = false }: Button3Props) => {
12
+ return (
13
+ <button
14
+ type={type}
15
+ onClick={onClick}
16
+ disabled={isDisabled}
17
+ className={`
18
+ dr_talk_subtitle_medium
19
+ h-[48px] rounded-[25px] bg-drTalkBtnActive2 text-drTalkWhite
20
+ disabled:cursor-not-allowed disabled:bg-drTalkDisabled
21
+ ${className}
22
+ `}
23
+ >
24
+ {children}
25
+ </button>
26
+ );
27
+ };
28
+
29
+ export default Button3;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  const Input2 = ({ value, name, readOnly = false, className = '', onChange, placeholder, type = 'text', maxLength = 99999 }) => {
3
3
  return (<input type={type} readOnly={readOnly} name={name} value={value} onChange={onChange} maxLength={maxLength} placeholder={placeholder} className={`
4
+ dr_talk_body_medium2
4
5
  h-[40px] w-full rounded-[6px] border-[1px] border-solid
5
- border-[#D9D9D9] px-[8px] py-[12.5px] text-[14px] font-[400] leading-[110%] tracking-[-4%] outline-none
6
+ border-[#D9D9D9] px-[8px] py-[12.5px] placeholder-drTalkGrayscale3 outline-none
6
7
  ${className}
7
8
  `}/>);
8
9
  };
@@ -31,8 +31,9 @@ const Input2 = ({
31
31
  maxLength={maxLength}
32
32
  placeholder={placeholder}
33
33
  className={`
34
+ dr_talk_body_medium2
34
35
  h-[40px] w-full rounded-[6px] border-[1px] border-solid
35
- border-[#D9D9D9] px-[8px] py-[12.5px] text-[14px] font-[400] leading-[110%] tracking-[-4%] outline-none
36
+ border-[#D9D9D9] px-[8px] py-[12.5px] placeholder-drTalkGrayscale3 outline-none
36
37
  ${className}
37
38
  `}
38
39
  />
@@ -37,7 +37,7 @@ const Daeryuntalk = ({ tel = '1800-7905' }) => {
37
37
  <DaeryuntalkToastProvider>
38
38
  <ViewportHandler />
39
39
  <DaeryuntalkProvider propsTel={tel}>
40
- <ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>
40
+ {isMobile ? (isOpen ? null : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)) : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)}
41
41
  <ChatWidget isOpen={hashValue ? true : isOpen} isMobile={isMobile} onClose={closeChatWidget} hashValue={hashValue} setHashValue={setHashValue}/>
42
42
  </DaeryuntalkProvider>
43
43
  </DaeryuntalkToastProvider>
@@ -53,7 +53,18 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
53
53
  <DaeryuntalkToastProvider>
54
54
  <ViewportHandler />
55
55
  <DaeryuntalkProvider propsTel={tel}>
56
- <ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat} />
56
+ {isMobile ? (
57
+ isOpen ? null : (
58
+ <ChatButton
59
+ isOpen={isOpen}
60
+ isMobile={isMobile}
61
+ hashValue={hashValue}
62
+ onClick={toggleChat}
63
+ />
64
+ )
65
+ ) : (
66
+ <ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat} />
67
+ )}
57
68
  <ChatWidget
58
69
  isOpen={hashValue ? true : isOpen}
59
70
  isMobile={isMobile}
@@ -11,7 +11,7 @@ const SeoStrength = ({ initialData }) => {
11
11
  const data = [
12
12
  '대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
13
13
  `<b>${initialData.pro_count}명 이상</b>의\n다양한 분야의 전문가들`,
14
- `총 <b>${initialData.experience_cnt.toLocaleString()}</b>건의\n사건처리 경험건수` // Use template literal to inject initialData
14
+ `${initialData.consult_date}\n총 <b>${initialData.experience_cnt.toLocaleString()}</b>건의\n사건처리 경험건수` // Use template literal to inject initialData
15
15
  ];
16
16
  const iconComponents = {
17
17
  0: Icon1,
@@ -34,7 +34,10 @@ const SeoStrength = ({ initialData }) => {
34
34
  </Link>
35
35
  </div>
36
36
 
37
- <div className={'mt-[26px] grid grid-cols-1 flex-col justify-between gap-[12px] text-[16px] leading-[20px] sm:mt-[50px] sm:gap-[20px] sm:text-[20px] sm:leading-[28px] lg:grid-cols-3 lg:gap-[40px] 3xl:text-[22px]'}>
37
+ <div className={'mt-[26px] grid grid-cols-1 flex-col justify-between gap-[12px] text-[16px] leading-[18px] ' +
38
+ 'sm:mt-[50px] sm:gap-[20px] sm:text-[18px] sm:leading-[21px] ' +
39
+ 'lg:grid-cols-3 lg:gap-[40px] ' +
40
+ '3xl:text-[20px] 3xl:leading-[23px] '}>
38
41
  {data.map((item, index) => (<div key={index} className={'flex h-[94px] w-full items-center justify-center gap-[20px] rounded-[12px] bg-[#fff] bg-opacity-50 text-center tracking-[-0.7px] shadow-md max-sm:px-[18px] sm:h-[120px] lg:h-[200px] lg:flex-col'}>
39
42
  <div className={`${index !== 0 ? 'w-[30px]' : 'h-[42px] w-[46px]'} sm:h-[50px] sm:w-[56px] `}>
40
43
  {iconComponents[index] &&
@@ -15,7 +15,7 @@ const SeoStrength = ({ initialData }: { initialData: IInitialDataTypes }) => {
15
15
  const data = [
16
16
  '대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
17
17
  `<b>${initialData.pro_count}명 이상</b>의\n다양한 분야의 전문가들`,
18
- `총 <b>${initialData.experience_cnt.toLocaleString()}</b>건의\n사건처리 경험건수` // Use template literal to inject initialData
18
+ `${initialData.consult_date}\n총 <b>${initialData.experience_cnt.toLocaleString()}</b>건의\n사건처리 경험건수` // Use template literal to inject initialData
19
19
  ];
20
20
 
21
21
  const iconComponents: any = {
@@ -47,7 +47,10 @@ const SeoStrength = ({ initialData }: { initialData: IInitialDataTypes }) => {
47
47
 
48
48
  <div
49
49
  className={
50
- 'mt-[26px] grid grid-cols-1 flex-col justify-between gap-[12px] text-[16px] leading-[20px] sm:mt-[50px] sm:gap-[20px] sm:text-[20px] sm:leading-[28px] lg:grid-cols-3 lg:gap-[40px] 3xl:text-[22px]'
50
+ 'mt-[26px] grid grid-cols-1 flex-col justify-between gap-[12px] text-[16px] leading-[18px] ' +
51
+ 'sm:mt-[50px] sm:gap-[20px] sm:text-[18px] sm:leading-[21px] ' +
52
+ 'lg:grid-cols-3 lg:gap-[40px] ' +
53
+ '3xl:text-[20px] 3xl:leading-[23px] '
51
54
  }
52
55
  >
53
56
  {data.map((item, index) => (