@daeryun/dr_components 0.6.64 → 0.6.66

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.
@@ -81,6 +81,9 @@ const IntegrateLawyer = (props) => {
81
81
  const isEven = useMemo(() => {
82
82
  return Number(item.id.replace('tmp_', '')) % 2 === 0;
83
83
  }, [item]);
84
+ const fixBg = useMemo(() => {
85
+ return item.id === 'tmp_20250415015844';
86
+ }, [item]);
84
87
  useEffect(() => {
85
88
  const searchQuery = searchParams.get('search');
86
89
  setSearch(searchQuery ? String(searchQuery) : '');
@@ -93,7 +96,7 @@ const IntegrateLawyer = (props) => {
93
96
  query: search != '' ? { integrate_search: search } : {}
94
97
  }} tabIndex={-1}>
95
98
  <div className={'relative flex items-center justify-center '}>
96
- {isEven ? (<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg.webp`} alt={'변호사 리스트 배경'} fill className={'object-cover'}/>) : (<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg2.webp`} alt={'변호사 리스트 배경'} fill className={'object-cover'}/>)}
99
+ <Image src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg${fixBg ? '3' : isEven ? '' : '2'}.webp`} alt={'변호사 리스트 배경'} fill className={'object-cover'}/>
97
100
  <Image loading={'lazy'} src={lawyerImagePath + '/' + item.nukki} alt={item.careers &&
98
101
  item.careers.indexOf(selectedFilter) > -1 &&
99
102
  selectedFilter !== '전체'
@@ -162,6 +162,9 @@ const IntegrateLawyer = (props: {
162
162
  const isEven = useMemo(() => {
163
163
  return Number(item.id.replace('tmp_', '')) % 2 === 0;
164
164
  }, [item]);
165
+ const fixBg = useMemo(() => {
166
+ return item.id === 'tmp_20250415015844';
167
+ }, [item]);
165
168
 
166
169
  useEffect(() => {
167
170
  const searchQuery = searchParams.get('search');
@@ -180,21 +183,12 @@ const IntegrateLawyer = (props: {
180
183
  tabIndex={-1}
181
184
  >
182
185
  <div className={'relative flex items-center justify-center '}>
183
- {isEven ? (
184
- <Image
185
- src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg.webp`}
186
- alt={'변호사 리스트 배경'}
187
- fill
188
- className={'object-cover'}
189
- />
190
- ) : (
191
- <Image
192
- src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg2.webp`}
193
- alt={'변호사 리스트 배경'}
194
- fill
195
- className={'object-cover'}
196
- />
197
- )}
186
+ <Image
187
+ src={`${process.env.NEXT_PUBLIC_S3_URL}/lawyer/list_bg${fixBg ? '3' : isEven ? '' : '2'}.webp`}
188
+ alt={'변호사 리스트 배경'}
189
+ fill
190
+ className={'object-cover'}
191
+ />
198
192
  <Image
199
193
  loading={'lazy'}
200
194
  src={lawyerImagePath + '/' + item.nukki}
@@ -16,6 +16,9 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, isUseWrapper, integrateSe
16
16
  const isEven = useMemo(() => {
17
17
  return Number(lawyerInfo.l_id.replace('tmp_', '')) % 2 === 0;
18
18
  }, [lawyerInfo]);
19
+ const fixBg = useMemo(() => {
20
+ return lawyerInfo.l_id === 'tmp_20250415015844';
21
+ }, [lawyerInfo]);
19
22
  const handleOnClickLawyerTel = () => {
20
23
  if (isMobile) {
21
24
  insert('lawyer_tel', isMobile);
@@ -57,13 +60,8 @@ const BasicInfo = ({ lawyerInfo, codeList, centerCode, isUseWrapper, integrateSe
57
60
  <Container isUseWrapper={isUseWrapper}>
58
61
  <div className={'relative mx-auto h-[630px] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px] ' +
59
62
  (isUseWrapper ? '' : ' w-[90%] ')}>
60
- {isEven ? (<>
61
- <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover max-sm:hidden'}/>
62
- <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo.webp'} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover sm:hidden'}/>
63
- </>) : (<>
64
- <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc2.webp'} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover max-sm:hidden'} unoptimized/>
65
- <Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo2.webp'} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover sm:hidden'}/>
66
- </>)}
63
+ <Image src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc${fixBg ? '3' : isEven ? '' : '2'}.webp`} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover max-sm:hidden'}/>
64
+ <Image src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo${fixBg ? '3' : isEven ? '' : '2'}.webp`} alt={'변호사 리스트 배경'} fill quality={100} className={'object-cover sm:hidden'}/>
67
65
  {/*변호사 이미지*/}
68
66
  <div className={'absolute bottom-0 left-[50px] h-[569px] w-[515px] overflow-hidden max-xl:h-[510px] max-lg:h-[450px] max-md:left-1/2 max-md:h-[400px] max-md:-translate-x-1/2 max-xs:h-[317px] max-xs:w-[286px]'}>
69
67
  <Image src={`${lawyerImagePath}/${lawyerInfo.nukki}`} alt={lawyerInfo.l_name + ' 변호사'} title={lawyerInfo.l_name + ' 변호사'} unoptimized={true} priority={true} sizes="(max-width: 700px)" fill className={'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'}/>
@@ -29,6 +29,9 @@ const BasicInfo = ({
29
29
  const isEven = useMemo(() => {
30
30
  return Number(lawyerInfo.l_id.replace('tmp_', '')) % 2 === 0;
31
31
  }, [lawyerInfo]);
32
+ const fixBg = useMemo(() => {
33
+ return lawyerInfo.l_id === 'tmp_20250415015844';
34
+ }, [lawyerInfo]);
32
35
 
33
36
  const handleOnClickLawyerTel = () => {
34
37
  if (isMobile) {
@@ -85,42 +88,20 @@ const BasicInfo = ({
85
88
  (isUseWrapper ? '' : ' w-[90%] ')
86
89
  }
87
90
  >
88
- {isEven ? (
89
- <>
90
- <Image
91
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'}
92
- alt={'변호사 리스트 배경'}
93
- fill
94
- quality={100}
95
- className={'object-cover max-sm:hidden'}
96
- />
97
- <Image
98
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo.webp'}
99
- alt={'변호사 리스트 배경'}
100
- fill
101
- quality={100}
102
- className={'object-cover sm:hidden'}
103
- />
104
- </>
105
- ) : (
106
- <>
107
- <Image
108
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc2.webp'}
109
- alt={'변호사 리스트 배경'}
110
- fill
111
- quality={100}
112
- className={'object-cover max-sm:hidden'}
113
- unoptimized
114
- />
115
- <Image
116
- src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo2.webp'}
117
- alt={'변호사 리스트 배경'}
118
- fill
119
- quality={100}
120
- className={'object-cover sm:hidden'}
121
- />
122
- </>
123
- )}
91
+ <Image
92
+ src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc${fixBg ? '3' : isEven ? '' : '2'}.webp`}
93
+ alt={'변호사 리스트 배경'}
94
+ fill
95
+ quality={100}
96
+ className={'object-cover max-sm:hidden'}
97
+ />
98
+ <Image
99
+ src={`https://d1tgonli21s4df.cloudfront.net/lawyer/bg_mo${fixBg ? '3' : isEven ? '' : '2'}.webp`}
100
+ alt={'변호사 리스트 배경'}
101
+ fill
102
+ quality={100}
103
+ className={'object-cover sm:hidden'}
104
+ />
124
105
  {/*변호사 이미지*/}
125
106
  <div
126
107
  className={
@@ -4,28 +4,16 @@ const MyPageOptionalCheckBox = ({ title, cautionTitle, isContent, checked, name,
4
4
  const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
5
5
  return (<div className={' ' + ` body_medium2 ` + ' max-lg2:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
6
6
  <div className={' flex flex-row ' + ' max-lg2:gap-[20px] ' + ' max-sm:flex-col max-sm:gap-[12px] '}>
7
- <div className={'flex w-[384px] flex-row items-center gap-[8px] ' +
8
- ' max-xl:w-[380px] ' +
9
- ' max-lg2:w-[380px] ' +
10
- ' max-lg:w-[340px] '}>
7
+ <div className={'flex w-[420px] flex-row items-center gap-[8px] ' +
8
+ ' max-xl:w-[420px] ' +
9
+ ' max-lg2:w-[420px] ' +
10
+ ' max-lg:w-[380px] '}>
11
11
  <div className={' ' +
12
12
  ' body_medium2 text-[#000000] ' +
13
13
  ' max-lg:body_medium2_tb ' +
14
14
  ' max-sm:body_medium2_mo '}>
15
15
  {title}
16
16
  </div>
17
- {/*<button*/}
18
- {/* type={'button'}*/}
19
- {/* onClick={setModal}*/}
20
- {/* className={*/}
21
- {/* ' underline-[#606060] text-[#606060] underline underline-offset-2 ' +*/}
22
- {/* ' body_small2 ' +*/}
23
- {/* ' max-lg:body_small2_tb ' +*/}
24
- {/* ' max-sm:body_small2_mo '*/}
25
- {/* }*/}
26
- {/*>*/}
27
- {/* 보기*/}
28
- {/*</button>*/}
29
17
  </div>
30
18
  <div className={' flex w-[calc(100%-364px)] flex-row items-center gap-[36px] ' +
31
19
  ' max-lg2:w-[calc(100%-271px)] max-lg2:gap-[44px] ' +
@@ -28,10 +28,10 @@ const MyPageOptionalCheckBox = ({
28
28
  <div className={' flex flex-row ' + ' max-lg2:gap-[20px] ' + ' max-sm:flex-col max-sm:gap-[12px] '}>
29
29
  <div
30
30
  className={
31
- 'flex w-[384px] flex-row items-center gap-[8px] ' +
32
- ' max-xl:w-[380px] ' +
33
- ' max-lg2:w-[380px] ' +
34
- ' max-lg:w-[340px] '
31
+ 'flex w-[420px] flex-row items-center gap-[8px] ' +
32
+ ' max-xl:w-[420px] ' +
33
+ ' max-lg2:w-[420px] ' +
34
+ ' max-lg:w-[380px] '
35
35
  }
36
36
  >
37
37
  <div
@@ -44,18 +44,6 @@ const MyPageOptionalCheckBox = ({
44
44
  >
45
45
  {title}
46
46
  </div>
47
- {/*<button*/}
48
- {/* type={'button'}*/}
49
- {/* onClick={setModal}*/}
50
- {/* className={*/}
51
- {/* ' underline-[#606060] text-[#606060] underline underline-offset-2 ' +*/}
52
- {/* ' body_small2 ' +*/}
53
- {/* ' max-lg:body_small2_tb ' +*/}
54
- {/* ' max-sm:body_small2_mo '*/}
55
- {/* }*/}
56
- {/*>*/}
57
- {/* 보기*/}
58
- {/*</button>*/}
59
47
  </div>
60
48
  <div
61
49
  className={
@@ -73,19 +73,6 @@ const Personal = ({ layoutClassName = ` mt-[47px] py-[128px] max-lg:mt-[40px] m
73
73
  key: ''
74
74
  });
75
75
  const [optionalTermItems, setOptionalTermItems] = useState([
76
- // {
77
- // title: '사건관련 알림 수신 동의 (선택)',
78
- // checked: false,
79
- // isContent: true,
80
- // cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
81
- // name: 'optionalMain',
82
- // alarmTypeList: [
83
- // { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
84
- // { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
85
- // { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
86
- // { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
87
- // ]
88
- // },
89
76
  {
90
77
  title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
91
78
  checked: false,
@@ -161,19 +148,11 @@ const Personal = ({ layoutClassName = ` mt-[47px] py-[128px] max-lg:mt-[40px] m
161
148
  // 이름이 바꼈거나 , 휴대전화 인증을 다시 완료했거나 , 약관 총합 값이 바꼈거나
162
149
  const isAll = ((userData === null || userData === void 0 ? void 0 : userData.data.name) !== (userObj === null || userObj === void 0 ? void 0 : userObj.name) && (userValidObj === null || userValidObj === void 0 ? void 0 : userValidObj.nameValid)) ||
163
150
  userValidObj.codeValid ||
164
- // userAgree?.data?.alert_agree !==
165
- // optionalTermItems[0].alarmTypeList
166
- // .filter(item => item.checked)
167
- // .reduce((sum, item) => sum + item.value, 0) ||
168
151
  ((_a = userAgree === null || userAgree === void 0 ? void 0 : userAgree.data) === null || _a === void 0 ? void 0 : _a.marketing_agree) !==
169
152
  optionalTermItems[0].alarmTypeList.filter(item => item.checked).reduce((sum, item) => sum + item.value, 0);
170
- const updateOptionalTermItems = (alertAgree, marketingAgree) => {
171
- setOptionalTermItems(prevItems => prevItems.map((item, index) => {
172
- // alertAgree는 첫 번째 항목, marketingAgree는 두 번째 항목을 업데이트
173
- const agreeValue = index === 0 ? alertAgree : marketingAgree;
174
- //15면 체크
175
- return Object.assign(Object.assign({}, item), { checked: index === 0 ? alertAgree > 0 : marketingAgree > 0, alarmTypeList: item.alarmTypeList.map(alarm => (Object.assign(Object.assign({}, alarm), { checked: (agreeValue & alarm.value) !== 0 }))) });
176
- }));
153
+ const updateOptionalTermItems = (marketingAgree) => {
154
+ setOptionalTermItems(prevItems => prevItems.map(item => (Object.assign(Object.assign({}, item), { checked: marketingAgree > 0, alarmTypeList: item.alarmTypeList.map(alarm => (Object.assign(Object.assign({}, alarm), { checked: (marketingAgree & alarm.value) !== 0 // 비트 연산 체크
155
+ }))) }))));
177
156
  };
178
157
  useEffect(() => {
179
158
  return () => {
@@ -184,7 +163,7 @@ const Personal = ({ layoutClassName = ` mt-[47px] py-[128px] max-lg:mt-[40px] m
184
163
  }, []);
185
164
  useEffect(() => {
186
165
  if (userAgree) {
187
- updateOptionalTermItems(userAgree.data.alert_agree, userAgree.data.marketing_agree);
166
+ updateOptionalTermItems(userAgree.data.marketing_agree);
188
167
  }
189
168
  }, [userAgree]);
190
169
  useEffect(() => {
@@ -112,19 +112,6 @@ const Personal = ({
112
112
  key: ''
113
113
  });
114
114
  const [optionalTermItems, setOptionalTermItems] = useState<IOptionalCheckItem[]>([
115
- // {
116
- // title: '사건관련 알림 수신 동의 (선택)',
117
- // checked: false,
118
- // isContent: true,
119
- // cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
120
- // name: 'optionalMain',
121
- // alarmTypeList: [
122
- // { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
123
- // { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
124
- // { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
125
- // { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
126
- // ]
127
- // },
128
115
  {
129
116
  title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
130
117
  checked: false,
@@ -213,28 +200,18 @@ const Personal = ({
213
200
  const isAll =
214
201
  (userData?.data.name !== userObj?.name && userValidObj?.nameValid) ||
215
202
  userValidObj.codeValid ||
216
- // userAgree?.data?.alert_agree !==
217
- // optionalTermItems[0].alarmTypeList
218
- // .filter(item => item.checked)
219
- // .reduce((sum, item) => sum + item.value, 0) ||
220
203
  userAgree?.data?.marketing_agree !==
221
204
  optionalTermItems[0].alarmTypeList.filter(item => item.checked).reduce((sum, item) => sum + item.value, 0);
222
- const updateOptionalTermItems = (alertAgree: number, marketingAgree: number) => {
205
+ const updateOptionalTermItems = (marketingAgree: number) => {
223
206
  setOptionalTermItems(prevItems =>
224
- prevItems.map((item, index) => {
225
- // alertAgree는 첫 번째 항목, marketingAgree는 두 번째 항목을 업데이트
226
- const agreeValue = index === 0 ? alertAgree : marketingAgree;
227
- //15면 체크
228
-
229
- return {
230
- ...item,
231
- checked: index === 0 ? alertAgree > 0 : marketingAgree > 0,
232
- alarmTypeList: item.alarmTypeList.map(alarm => ({
233
- ...alarm,
234
- checked: (agreeValue & alarm.value) !== 0
235
- }))
236
- };
237
- })
207
+ prevItems.map(item => ({
208
+ ...item,
209
+ checked: marketingAgree > 0,
210
+ alarmTypeList: item.alarmTypeList.map(alarm => ({
211
+ ...alarm,
212
+ checked: (marketingAgree & alarm.value) !== 0 // 비트 연산 체크
213
+ }))
214
+ }))
238
215
  );
239
216
  };
240
217
 
@@ -247,7 +224,7 @@ const Personal = ({
247
224
  }, []);
248
225
  useEffect(() => {
249
226
  if (userAgree) {
250
- updateOptionalTermItems(userAgree.data.alert_agree, userAgree.data.marketing_agree);
227
+ updateOptionalTermItems(userAgree.data.marketing_agree);
251
228
  }
252
229
  }, [userAgree]);
253
230
 
@@ -2600,10 +2600,6 @@ video {
2600
2600
  width: 37px;
2601
2601
  }
2602
2602
 
2603
- .w-\[384px\] {
2604
- width: 384px;
2605
- }
2606
-
2607
2603
  .w-\[386px\] {
2608
2604
  width: 386px;
2609
2605
  }
@@ -2628,6 +2624,10 @@ video {
2628
2624
  width: 40px;
2629
2625
  }
2630
2626
 
2627
+ .w-\[420px\] {
2628
+ width: 420px;
2629
+ }
2630
+
2631
2631
  .w-\[42px\] {
2632
2632
  width: 42px;
2633
2633
  }
@@ -8566,14 +8566,14 @@ body {
8566
8566
  width: 35%;
8567
8567
  }
8568
8568
 
8569
- .max-xl\:w-\[380px\] {
8570
- width: 380px;
8571
- }
8572
-
8573
8569
  .max-xl\:w-\[40px\] {
8574
8570
  width: 40px;
8575
8571
  }
8576
8572
 
8573
+ .max-xl\:w-\[420px\] {
8574
+ width: 420px;
8575
+ }
8576
+
8577
8577
  .max-xl\:w-\[46\%\] {
8578
8578
  width: 46%;
8579
8579
  }
@@ -8873,8 +8873,8 @@ body {
8873
8873
  width: 20px;
8874
8874
  }
8875
8875
 
8876
- .max-lg2\:w-\[380px\] {
8877
- width: 380px;
8876
+ .max-lg2\:w-\[420px\] {
8877
+ width: 420px;
8878
8878
  }
8879
8879
 
8880
8880
  .max-lg2\:w-\[calc\(100\%-271px\)\] {
@@ -9417,8 +9417,8 @@ body {
9417
9417
  width: 32px;
9418
9418
  }
9419
9419
 
9420
- .max-lg\:w-\[340px\] {
9421
- width: 340px;
9420
+ .max-lg\:w-\[380px\] {
9421
+ width: 380px;
9422
9422
  }
9423
9423
 
9424
9424
  .max-lg\:w-\[400px\] {