PageSourceSearch

https://yamap.com/_next/static/chunks/pages/conversations/[id]-ca833062e52a60bd.js

js yamap.com collected 2026-09-24 08:40:01 UTC 25,293 bytes, 382 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dda7877d-276d-47c4-8ffa-f61aebeefbd5",e._sentryDebugIdIdentifier="sentry-dbid-dda7877d-276d-47c4-8ffa-f61aebeefbd5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790],{12177:(e,t,n)=>{"use strict";n.d(t,{XG:()=>f,QI:()=>h,kc:()=>g});var r=n(43087),o=n(95132),i=n(18350),s=n.n(i),a=n(23217),l=n(23976),d=n(89751),c=n(4236),u=n(74761),p=n(4610);let{publicRuntimeConfig:m}=(0,l.A)(),h=(0,o.createContext)({abort:()=>{},redirectTo:()=>{}}),f=({children:e,confirmMessage:t,excludeUrlsAndPaths:n,isDisabled:i})=>{let l=(0,o.useRef)(null),f=(0,o.useRef)(!1),g=(0,o.useRef)(()=>{}),x=(0,o.useRef)(()=>{}),b=(0,c.rd)(),[v]=(0,c.Bd)("common"),y=t||v("messagePromptConfirmMessageDefault"),w=(0,o.useCallback)(e=>{if(!f.current){if(d.J.shouldSkipLeaveConfirm())return!0;if(!n?.some(t=>e.startsWith(t))&&!i){if(window.confirm(y))return!0;throw s().done(),a.ROUTE_CHANGE_ABORTED}}},[y,n,i]),$=(0,o.useCallback)(e=>{i||d.J.shouldSkipLeaveConfirm()||l.current&&n?.some(e=>l.current?.startsWith(e))||e.preventDefault()},[i,n]);(0,c.Es)(()=>(b.events.on("routeChangeStart",w),window.addEventListener("beforeunload",$),g.current=w,x.current=$,()=>{b.events.off("routeChangeStart",w),window.removeEventListener("beforeunload",$)}),[b.events,w,$]),(0,c.Es)(()=>{if(!i)return d.J.registerLeaveGuard(b,()=>window.confirm(y))},[b,i,y]);let Y=(0,o.useCallback)(()=>{"function"==typeof g.current&&b.events.off("routeChangeStart",g.current),"function"==typeof x.current&&window.removeEventListener("beforeunload",x.current)},[b.events]),A=(0,o.useCallback)(e=>{let t=(0,u.J)(e,m.acceptUrls||[]);l.current=t,t.startsWith("http://")||t.startsWith("https://")||!(0,p.b)(t)?window.location.href=t:(f.current=!0,b.push(t).finally(()=>{f.current=!1}))},[b]);return(0,r.Y)(h.Provider,{value:{abort:Y,redirectTo:A},children:e})},g=()=>{let e=(0,o.useContext)(h);if(!e)throw Error("usePrompt must be used within a Prompt component");return e}},13354:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/conversations/[id]",function(){return n(37230)}])},37206:(e,t,n)=>{"use strict";n.d(t,{M:()=>r.M});var r=n(83813)},37230:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>eO,default:()=>eJ});var r=n(43087),o=n(4236),i=n(90283),s=n(88933),a=n(95132),l=n(63991),d=n(15745),c=n(62834),u=n(14740),p=n(51782),m=n(5666),h=n(72187),f=n(12177),g=n(4579),x=n(96519);let b="/settings/account/phone-number/edit",v=e=>`message-${e}`,y=()=>{let{t:e}=(0,o.Bd)(["conversation"]);return(0,r.FD)("div",{css:w,children:[(0,r.Y)("p",{css:$,children:e("needAuthPhoneNumber",{ns:"conversation"})}),(0,r.Y)(x.m,{variant:"primary",href:b,css:Y,children:e("buttonLabelAuthenticatePhoneNumber",{ns:"conversation"})})]})},w=(0,p.AH)`
2  display: flex;
3  flex-direction: column;
4  row-gap: ${d.YK["xs.px"]};
5  padding: ${d.YK["s.px"]};
6  background-color: ${d.yW["background.secondary"]};
7`,$=(0,p.AH)`
8  font-size: ${d.J.s};
9  color: ${d.yW["text.primary"]};
10`,Y=(0,p.AH)`
11  width: 100%;
12`;var A=n(33564),C=n(20561),k=n(1886);let H=({user:e,showReportButton:t,onClickReport:n})=>{let{t:i}=(0,o.Bd)(["conversation"]);return(0,r.FD)("div",{css:F,children:[(0,r.Y)(C.N,{href:`/users/${e.id}`,css:D,children:(0,r.Y)(l.euF,{src:e.image?.url??A.q6,alt:e.name??"",size:140})}),(0,r.Y)("div",{css:S,children:(0,r.FD)(C.N,{href:`/users/${e.id}`,css:E,children:[(0,r.Y)("span",{css:K,children:e.name}),(0,r.Y)(k.N,{user:e,size:16,css:z})]})}),t&&(0,r.Y)("button",{type:"button",onClick:n,css:W,children:i("reportToManagement",{ns:"conversation"})})]})},F=(0,p.AH)`
13  display: flex;
14  flex-direction: column;
15  row-gap: ${d.YK["xs.px"]};
16  align-items: center;
17  padding: ${d.YK["l.px"]};
18  border: 1px solid ${d.yW["border.primary"]};
19  border-radius: ${d.Vq.xs};
20
21  ${p.nj.over("md")} {
22    padding: ${d.YK["m.px"]};
23  }
24`,D=(0,p.AH)`
25  ${p.vE.hoverDefaultCss};
26`,S=(0,p.AH)`
27  display: flex;
28  flex-direction: column;
29  align-items: center;
30`,E=(0,p.AH)`
31  ${p.vE.hoverDefaultCss};
32  display: flex;
33  column-gap: ${d.YK["4xs.px"]};
34  align-items: center;
35  text-decoration: none;
36`,K=(0,p.AH)`
37  font-size: ${d.J.m};
38  font-weight: 700;
39  color: ${d.yW["text.primary"]};
40`,z=(0,p.AH)`
41  flex-shrink: 0;
42  line-height: 0;
43`,W=(0,p.AH)`
44  ${p.vE.buttonTextCss};
45  width: 100%;
46  font-size: ${d.J.xs};
47  font-weight: normal;
48  color: ${d.yW["text.primary"]};
49`;var R=n(91821);let _=({onSend:e,onBodyChange:t})=>{let[{auth:n}]=(0,R.Pj)(),{t:i}=(0,o.Bd)(["conversation"]),s=(0,o.vz)(),d=(0,o.dv)({under:"md"}),[c,u]=(0,a.useState)(""),[p,m]=(0,a.useState)(!1),h=!p&&c.trim().length>0,f=d?40:56,g=(0,a.useCallback)(e=>{let n=e.target.value;u(n),t(n)},[t]),x=(0,a.useCallback)(async()=>
49{if(s()){m(!0);try{await e(c)&&(u(""),t(""))}finally{m(!1)}}},[c,s,e,t]);return(0,r.FD)("div",{css:B,children:[n.loginUser?(0,r.Y)(l.euF,{alt:n.loginUser.name||"",size:f,src:n.loginUser.image?.thumbSquareUrl}):(0,r.Y)(l.euF,{size:f}),(0,r.FD)("div",{css:L,children:[(0,r.Y)("div",{css:N,children:(0,r.Y)(l.TMX,{css:j,placeholder:i("messageFormPlaceholder",{ns:"conversation"}),value:c,onChange:g,autoResize:!0,minRows:4})}),(0,r.Y)("div",{css:M,children:(0,r.Y)(l.$nd,{variant:"primary",disabled:!h,onClick:x,children:i("buttonLabelSendComment",{ns:"common"})})})]})]})},B=(0,p.AH)`
50  display: flex;
51  flex-direction: column;
52  row-gap: ${d.YK["xs.px"]};
53
54  ${p.nj.over("md")} {
55    flex-direction: row;
56    row-gap: ${d.YK["xs.px"]};
57    column-gap: ${d.YK["xs.px"]};
58  }
59`,L=(0,p.AH)`
60  flex-grow: 1;
61  align-self: stretch;
62
63  ${p.nj.over("md")} {
64    align-self: auto;
65  }
66`,N=(0,p.AH)`
67  width: 100%;
68  overflow: hidden;
69  border: 1px solid ${d.yW["border.primary"]};
70  border-radius: ${d.Vq.m};
71`,j=(0,p.AH)`
72  width: 100%;
73  min-height: 80px;
74  max-height: 300px;
75  padding: ${d.YK["xs.px"]};
76  resize: vertical;
77  border: none;
78  border-radius: ${d.Vq.m};
79
80  ${p.nj.over("md")} {
81    padding: ${d.YK["xs.px"]} ${d.YK["m.px"]};
82  }
83`,M=(0,p.AH)`
84  display: flex;
85  justify-content: flex-end;
86  margin-top: ${d.YK["2xs.px"]};
87
88  ${p.nj.over("md")} {
89    margin-top: ${d.YK["m.px"]};
90  }
91`;var T=n(97886),I=n(85043),P=n(17488),O=n(98641),J=n(37206);let q=a.memo(({isOpen:e,closeFunc:t,messageId:n,onDelete:i})=>{let{t:s}=(0,o.Bd)(["common","conversation"]),d=(0,o.dj)(),[c,u]=(0,a.useState)(!1),p=(0,a.useCallback)(async()=>{u(!0);try{await i(n)&&(d.success(s("toastMessageDeleteSuccess",{ns:"conversation"})),t())}finally{u(!1)}},[t,n,i,d,s]);return(0,r.Y)(l.lGe,{title:s("confirmToDeleteMessage",{ns:"conversation"}),icon:(0,r.Y)(l.Eau,{size:48,css:U}),isDangerous:!0,isOpen:e,closeFunc:t,showCloseButton:!0,portalElementId:"modal-root",children:(0,r.FD)("div",{css:G,children:[(0,r.Y)(l.$
91nd,{variant:"secondary",isFullWidth:!0,onClick:t,children:s("buttonLabelCancel")}),(0,r.Y)(l.$nd,{variant:"yamap-red",isFullWidth:!0,disabled:c,onClick:p,children:s("buttonLabelDelete")})]})})}),U=(0,p.AH)`
92  width: 48px !important;
93  height: 48px !important;
94`,G=(0,p.AH)`
95  display: flex;
96  column-gap: ${d.YK["xs.px"]};
97  margin-top: ${d.YK["xs.px"]};
98`,V=a.memo(({isOpen:e,closeFunc:t,messageId:n,rawBody:i,onUpdate:s})=>{let{t:d}=(0,o.Bd)(["common","conversation"]),c=(0,o.dj)(),u=(0,o.dv)({under:"md"}),[p,m]=(0,a.useState)(i),[h,f]=(0,a.useState)(!1),g=!h&&p.trim().length>0,x=(0,a.useCallback)(async()=>{f(!0);try{await s(n,p)&&(c.success(d("toastMessageUpdateSuccess",{ns:"conversation"})),t())}finally{f(!1)}},[n,p,s,t,c,d]);return(0,r.Y)(l.lGe,{title:d("headingModalEditMessage",{ns:"conversation"}),isOpen:e,closeFunc:t,showCloseButton:!0,portalElementId:"modal-root",children:(0,r.FD)("div",{css:X,children:[(0,r.Y)(l.TMX,{css:Q,value:p,onChange:e=>m(e.target.value),autoResize:!0,minRows:3,maxRows:u?3:5}),(0,r.FD)("div",{css:Z,children:[(0,r.Y)(l.$
98nd,{variant:"secondary",isFullWidth:!0,onClick:t,children:d("buttonLabelCancel")}),(0,r.Y)(l.$nd,{variant:"primary",isFullWidth:!0,disabled:!g,onClick:x,children:d("buttonLabelOk")})]})]})})}),X=(0,p.AH)`
99  display: flex;
100  flex-direction: column;
101  row-gap: ${d.YK["xs.px"]};
102`,Q=(0,p.AH)`
103  resize: none;
104`,Z=(0,p.AH)`
105  display: flex;
106  column-gap: ${d.YK["xs.px"]};
107  margin-top: ${d.YK["l.px"]};
108`,ee=a.memo(({message:e,isOwner:t,onUpdate:n,onDelete:i,onEditBodyChange:s})=>{let{t:d}=(0,o.Bd)(["common"]),c=(0,o.dv)({under:"md"})?32:56,{isOpen:u,openDialog:m,closeDialog:h}=(0,l.spv)(),{isOpen:f,openDialog:g,closeDialog:x}=(0,l.spv)(),b=(0,a.useMemo)(()=>O.Yu.formatDate(e.createdAt,"full_ja"),[e.createdAt]);return(0,r.FD)("article",{id:v(e.id),tabIndex:-1,css:et,children:[(0,r.FD)("div",{css:en,children:[(0,r.FD)("div",{css:er,children:[(0,r.Y)("span",{css:eo,children:e.user.name}),(0,r.Y)(k.N,{user:e.user,css:ep,size:16})]}),(0,r.FD)("div",{css:ei,children:[(0,r.Y)("time",{css:es,children:b}),t&&(0,r.FD)(T.cQ,{children:[(0,r.Y)(I.$,{"aria-label":d("ariaLabels.commentMenu"),type:"button",css:ea,children:(0,r.Y)(l.CTX,{css:el})}),(0,r.Y)(P.A,{placement:"bottom end",css:ed,children:(0,r.FD)(T.W1,{children:[(0,r.FD)(T.Dr,{onAction:()=>{s(e.rawBody),m()},css:ec,children:[(0,r.Y)("span",{children:d("buttonLabelBalloonActionEdit")}),(0,r.Y)(l.r9C,{})]}),(0,r.FD)(T.Dr,{onAction:g,css:ec,children:[(0,r.Y)("span",{children:d("buttonLabelBalloonActionDelete")}),(0,r.Y)(l.Eau,{})]})]})})]})]})]}),(0,r.FD)("div",{css:eu,children:[e.user?(0,r.Y)(C.N,{href:`/users/${e.user.id}`,css:p.vE.hoverDefaultCss,children:(0,r.Y)(l.euF,{alt:e.user.name||"",size:c,src:e.user.image?.thumbSquareUrl})}):(0,r.Y)(l.euF,{size:c}),(0,r.Y)("div",{css:em,children:(0,r.Y)("div",{css:t?ef:eg,children:(0,r.Y)("div",{css:t?eb:ev,children:(0,r.Y)(J.M,{css:p.vE.wrapTextCss,children:e.body})})})})]}),u&&(0,r.Y)(V,{isOpen:u,closeFunc:()=>{s(""),h()},messageId:e.id,rawBody:e.rawBody,onUpdate:n}),f&&(0,r.Y)(q,{isOpen:f,closeFunc:x,messageId:e.id,onDelete:i})]})},(e,t)=>e.message.body===t.message.body&&e.message.rawBody===t.message.rawBody&&e.message.updatedAt===t.message.updatedAt&&e.isOwner===t.isOwner),et=(0,p.AH)`
109  padding: ${d.YK["m.px"]} 0;
110  overflow: hidden;
111  overflow-wrap: break-word;;
112`,en=(0,p.AH)`
113  display: flex;
114  flex-wrap: nowrap;
115  column-gap: ${d.YK["3xs.px"]};
116  align-items: center;
117  justify-content: space-between;
118  margin-bottom: ${d.YK["4xs.px"]};
119`,er=(0,p.AH)`
120  display: flex;
121  flex: 1;
122  align-items: center;
123  min-width: 0;
124  overflow: hidden;
125`,eo=(0,p.AH)`
126  ${p.vE.dottedOnelineCss};
127  font-family: ${d.mw.ja};
128  font-size: ${d.J.m};
129  color: ${d.yW["text.secondary"]};
130`,ei=(0,p.AH)`
131  display: flex;
132  flex-shrink: 0;
133  column-gap: ${d.YK["3xs.px"]};
134  align-items: center;
135`,es=(0,p.AH)`
136  font-family: ${d.mw.en};
137  font-size: ${d.J.s};
138  color: ${d.yW["text.secondary"]};
139  white-space: nowrap;
140`,ea=(0,p.AH)`
141  display: flex;
142  align-items: center;
143  justify-content: center;
144  width: 24px;
145  height: 24px;
146  padding: ${d.YK["none.px"]};
147  cursor: pointer;
148  background: transparent;
149  border: none;
150
151  &:hover {
152    opacity: 0.7;
153  }
154`,el=(0,p.AH)`
155  display: block;
156  width: 20px;
157  height: 20px;
158  color: black;
159`,ed=(0,p.AH)`
160  position: absolute;
161  z-index: ${p.fE.commentItemMenuPopover};
162  width: 280px;
163  overflow: hidden;
164  background: ${d.yW["background.primary"]};
165  border-radius: ${d.Vq.m};
166  outline: none;
167  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
168`,ec=(0,p.AH)`
169  display: flex;
170  align-items: center;
171  justify-content: space-between;
172  min-height: 38px;
173  padding: ${d.YK["2xs.px"]} ${d.YK["xs.px"]};
174  font-size: ${d.J.s};
175  white-space: nowrap;
176  cursor: pointer;
177  transition: background-color 0.2s;
178
179  &:not(:last-child) {
180    border-bottom: 1px solid ${d.yW["border.primary"]};
181  }
182
183  &:hover,
184  &:focus {
185    background-color: ${d.yW["background.secondary"]};
186  }
187`,eu=(0,p.AH)`
188  display: flex;
189  align-items: flex-start;
190`,ep=(0,p.AH)`
191  flex-shrink: 0;
192  margin-left: ${d.YK["4xs.px"]};
193  line-height: 0;
194`,em=(0,p.AH)`
195  flex: 1;
196  margin-left: ${d.YK["m.px"]};
197`,eh=(0,p.AH)`
198  position: relative;
199  text-align: left;
200
201  &::before {
202    position: absolute;
203    top: 14px;
204    left: -16px;
205    z-index: ${p.fE.default};
206    display: none;
207    width: 0;
208    height: 0;
209    content: '';
210    border-color: ${d.yW["border.primary"]} transparent transparent transparent;
211    border-style: solid;
212    border-width: 16px 16px 0 16px;
213  }
214
215  &::after {
216    position: absolute;
217    top: 16px;
218    left: -12px;
219    z-index: ${p.fE.default+1};
220    width: 0;
221    height: 0;
222    content: '';
223    border-style: solid;
224    border-width: 16px 0 0 16px;
225  }
226`,ef=(0,p.AH)`
227  ${eh};
228
229  &::before {
230    display: block;
231  }
232
233  &::after {
234    border-color: ${d.yW["background.primary"]} transparent transparent transparent;
235  }
236`,eg=(0,p.AH)`
237  ${eh};
238
239  &::after {
240    border-color: ${d.yW["background.secondary"]} transparent transparent transparent;
241  }
242`,ex=(0,p.AH)`
243  position: relative;
244  z-index: ${p.fE.default};
245  padding: ${d.YK["2xs.px"]};
246  border-radius: ${d.Vq.m};
247
248  ${p.nj.over("md")} {
249    padding: ${d.YK["s.px"]};
250  }
251`,eb=(0,p.AH)`
252  ${ex};
253  background-color: ${d.yW["background.primary"]};
254  border: 1px solid ${d.yW["border.primary"]};
255`,ev=(0,p.AH)`
256  ${ex};
257  background-color: ${d.yW["background.secondary"]};
258`;var ey=n(74199);let ew=({isOpen:e,closeFunc:t})=>{let{t:n}=(0,o.Bd)(["conversation"]);return(0,r.Y)(l.lGe,{isOpen:e,closeFunc:t,showCloseButton:!0,portalElementId:"modal-root",style:{maxWidth:480},children:(0,r.FD)("div",{css:e$,children:[(0,r.Y)(ey._,{src:"/__v2__/images/dialog/communication.png",alt:"",css:eY}),(0,r.Y)("h2",{css:eA,children:n("authPhoneNumberDialogHead",{ns:"conversation"})}),(0,r.Y)("p",{css:eC,children:n("authPhoneNumberDialogGuideText",{ns:"conversation"})}),(0,r.Y)(x.m,{variant:"primary",size:"l",href:b,css:ek,children:n("buttonLabelAuthenticatePhoneNumber",{ns:"conversation"})})]})})},e$=(0,p.AH)`
259  display: flex;
260  flex-direction: column;
261  align-items: center;
262  text-align: center;
263`,eY=(0,p.AH)`
264  position: relative;
265  top: ${d.YK["m.px"]};
266  width: 100%;
267  margin-bottom: ${d.YK["m.px"]};
268
269  ${p.nj.over("md")} {
270    top: 0;
271  }
272`,eA=(0,p.AH)`
273  margin-bottom: ${d.YK["xs.px"]};
274  font-size: ${d.J.l};
275  font-weight: 700;
276  line-height: 1.5;
277  color: ${d.yW["text.primary"]};
278  white-space: pre-wrap;
279
280  ${p.nj.over("md")} {
281    margin-bottom: ${d.YK["m.px"]};
282    font-size: ${d.J["3xl"]};
283  }
284`,eC=(0,p.AH)`
285  margin-bottom: ${d.YK["xs.px"]};
286  font-size: ${d.J.s};
287  line-height: 1.5;
288  color: ${d.yW["text.secondary"]};
289
290  ${p.nj.over("md")} {
291    margin-bottom: ${d.YK["m.px"]};
292  }
293`,ek=(0,p.AH)`
294  width: 100%;
295`,eH=()=>{let{t:e}=(0,o.Bd)(["conversation"]);return(0,r.FD)("div",{css:eF,children:[(0,r.FD)("div",{css:eD,children:[(0,r.Y)(l.bCG,{css:eS}),(0,r.Y)("span",{children:e("warningForRomanceScam",{ns:"conversation"})})]}),(0,r.Y)(C.N,{href:"https://info.yamap.com/archives/5879",newTab:!0,css:eE,children:e("helpLinkInWarningForRomanceScam",{ns:"conversation"})})]})},eF=(0,p.AH)`
296  display: flex;
297  align-items: center;
298  justify-content: space-between;
299  font-size: ${d.J.s};
300
301  ${p.nj.over("md")} {
302    column-gap: ${d.YK["m.px"]};
303    justify-content: initial;
304  }
305`,eD=(0,p.AH)`
306  display: flex;
307  column-gap: ${d.YK["3xs.px"]};
308  align-items: center;
309`,eS=(0,p.AH)`
310  flex-shrink: 0;
311  width: 16px;
312  height: 16px;
313`,eE=(0,p.AH)`
314  ${p.vE.ridgeLinkTextCss};
315  font-size: ${d.J.s};
316  font-weight: 700;
317  text-decoration: underline;
318`;var eK=n(38014);let ez="read_conversation_auth_phone_number",eW=({conversation:e,initialMessages:t,initialMeta:n,user:i,capability:s,loginUser:d})=>{let p,m,x=(0,u.gf)(),{t:b}=(0,o.Bd)(["conversation"]),w=(0,o.dj)(),$=(0,a.useRef)(null),[Y,A]=(0,a.useState)(t),[C,k]=(0,a.useState)(n),[F,D]=(0,a.useState)(!1),[S,E]=(0,a.useState)(null),[K,z]=(0,a.useState)(""),[W,R]=(0,a.useState)(""),B=(0,l.spv)(),L=(0,l.spv)(),N=s.canSendMessage,j=s.requiredUserAction?.key==="authenticated_phone_number",M=!i.official,T=C.nextPage>0,I=Number(d.id),P=(0,a.useMemo)(()=>(0,r.Y)(H,{user:i,showReportButton:M,onClickReport:B.openDialog}),[i,M,B.openDialog]),O=(0,a.useRef)(j);(0,a.useEffect)(()=>{O.current&&!c.A.get(ez)&&(L.openDialog(),c.A.set(ez,"true",{expires:365}))},[L.openDialog]),p=(0,o.rd)(),m=(0,a.useRef)(!1),(0,a.useEffect)(()=>
318{if(!p.isReady||m.current)return;m.current=!0;let e=p.query.message_id;if((0,eK.q)(e)){let t=v(Number(e)),n=document.getElementById(t);if(n){window.history.replaceState(window.history.state,"",`#${t}`),n.scrollIntoView(),n.focus({preventScroll:!0});return}}$.current?.scrollIntoView()},[p.isReady,p.query,$]),(0,a.useEffect)(()=>{null!==S&&document.getElementById(v(S))?.scrollIntoView({behavior:"smooth"})},[S]);let J=(0,a.useRef)(C);J.current=C;let q=(0,a.useCallback)(async()=>{D(!0);try{let t=J.current.currentPage+1,n=await x.my.conversations.messages.list(e.id,{page:t});A(e=>[...[...n.messages].reverse(),...e]),k(n.meta)}catch(e){(0,u.NF)(e)&&w.error(e.message)}finally{D(!1)}},[x,e.id,w]),U=(0,a.useCallback)(async t=>{try{let n=await x.my.conversations.messages.post(e.id,{message:{body:t}});return A(e=>[...e,n.message]),E(n.message.id),w.success(b("toastMessageSendSuccess",{ns:"conversation"})),!0}catch(e){return(0,u.NF)(e)&&w.error(e.message),!1}},[x,e.id,w,b]),G=(0,a.useCallback)(async(e,t)=>{try{let n=await x.my.messages.put(e,{body:t});return A(t=>t.map(t=>t.id===e?n.message:t)),!0}catch(e){return(0,u.NF)(e)&&w.error(e.message),!1}},[x,w]),V=(0,a.useCallback)(async e=>{try{return await x.my.messages.delete(e),A(t=>t.filter(t=>t.id!==e)),!0}catch(e){return(0,u.NF)(e)&&w.error(e.message),!1}},[x,w]),X=0===K.length&&0===W.length;return(0,r.FD)(f.XG,{confirmMessage:b("confirmToBeforeUnload",{ns:"conversation"}),isDisabled:X,children:[(0,r.FD)("div",{css:eR,children:[(0,r.Y)("aside",{css:e_,children:P}),(0,r.FD)("main",{css:eL,children:[T&&(0,r.Y)("div",{css:eN,children:F?(0,r.Y)(h.L,{}):(0,r.Y)(l.$nd,{variant:"outline",onClick:q,children:b("checkPrevMessage",{ns:"conversation"})})}),Y.length>0?(0,r.FD)("div",{css:ej,children:[Y.map(e=>(0,r.Y)(ee,{message:e,isOwner:Number(e.user.id)===I,onUpdate:G,onDelete:V,onEditBodyChange:R},e.id)),(0,r.Y)("div",{ref:$})]}):(0,r.Y)("p",{css:eM,children:b("noMessages",{ns:"conversation"})}),(0,r.FD)("div",{css:eT,children:[(0,r.Y)("h3",{css:eI,children:b("commentsHeadingNewComment",{ns:"conversation"})}),(0,r.Y)(eH,{}),j?(0,r.Y)(y,{}):N?(0,r.Y)(_,{onSend:U,onBodyChange:z}):(0,r.Y)("p",{css:eP,children:s.errorMessages??b("messageSendNotAllowed",{ns:"conversation"})})]})]}),(0,r.Y)("aside",{css:eB,children:P})]}),(0,r.Y)(g.K,{isOpen:B.isOpen,onClose:B.closeDialog,contentId:e.id,contentType:"Conversation"}),(0,r.Y)(ew,{isOpen:L.isOpen,closeFunc:L.closeDialog})]})},eR=(0,p.AH)`
319  ${m.pageInnerCss};
320  padding: ${d.YK["l.px"]} ${d.YK["m.px"]};
321
322  ${p.nj.over("md")} {
323    display: grid;
324    grid-template-columns: 1fr 2fr;
325    column-gap: ${d.YK["xl.px"]};
326    padding: ${d.YK["2xl.px"]} ${d.YK["l.px"]};
327  }
328`,e_=(0,p.AH)`
329  display: none;
330
331  ${p.nj.over("md")} {
332    display: block;
333  }
334`,eB=(0,p.AH)`
335  display: block;
336  margin-top: ${d.YK["2xl.px"]};
337
338  ${p.nj.over("md")} {
339    display: none;
340  }
341`,eL=(0,p.AH)`
342  min-width: 0;
343`,eN=(0,p.AH)`
344  margin-bottom: ${d.YK["m.px"]};
345`,ej=(0,p.AH)`
346  margin-bottom: ${d.YK["m.px"]};
347`,eM=(0,p.AH)`
348  padding: ${d.YK["m.px"]};
349  margin-bottom: ${d.YK["m.px"]};
350  font-size: ${d.J.s};
351  color: ${d.yW["text.secondary"]};
352  text-align: center;
353  background-color: ${d.yW["background.secondary"]};
354  border-radius: ${d.Vq.xs};
355`,eT=(0,p.AH)`
356  display: flex;
357  flex-direction: column;
358  row-gap: ${d.YK["m.px"]};
359  margin-top: ${d.YK["2xl.px"]};
360
361  ${p.nj.over("md")} {
362    margin-top: 96px;
363  }
364`,eI=(0,p.AH)`
365  font-size: ${d.J.l};
366
367  ${p.nj.over("md")} {
368    font-size: 3.2rem;
369  }
370`,eP=(0,p.AH)`
371  padding: ${d.YK["m.px"]};
372  font-size: ${d.J.s};
373  color: ${d.yW["text.secondary"]};
374  text-align: center;
375  background-color: ${d.yW["background.secondary"]};
376  border-radius: ${d.Vq.xs};
377`;var eO=!0;let eJ=({conversation:e,messages:t,meta:n,user:a,capability:l,loginUser:d,error:c})=>{let{t:u}=(0,o.Bd)(["conversation"]),p=(0,o.rd)().query.message_id,m=Array.isArray(p)?p[0]:p;return c?(0,r.Y)(i.e,{status:c.status}):e&&a&&d?(0,r.FD)(r.FK,{children:[(0,r.Y)(s.p,{title:u("metaTitle",{ns:"conversation"}),noindex:!0}),(0,r.Y)(eW,{conversation:e,initialMessages:t,initialMeta:n,user:a,capability:l,loginUser:d},`${e.id}-${m??""}`)]}):(0,r.Y)(i.e,{status:404})}}
377,38014:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=e=>{let t=Number(e);return Number.isInteger(t)&&t>0}},86512:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(43087),o=n(91646),i=n(24497),s=n(51782);let a=(0,i.R)(function({value:e,defaultValue:t,minRows:n=5,maxRows:i,...s},a){return(0,r.Y)(o.A,{css:l,value:e,defaultValue:t,minRows:n,maxRows:i,...s,ref:a})}),l=(0,s.AH)`
378  ${s.vE.inputCss};
379  min-height: 80px;
380  vertical-align: bottom;
381  resize: vertical;
382`},89751:(e,t,n)=>{"use strict";let r,o,i,s,a,l,d,c,u,p,m,h;n.d(t,{J:()=>b});let f="__yamapPromptBackGuard",g=["routeChangeComplete","routeChangeError","hashChangeComplete"],x=()=>window.history.state?.[f]===!0,b=(r=new Set,o=new Set,i=!1,s=!1,a=!1,l=null,d=null,c=()=>{i||(window.history.pushState({...window.history.state,[f]:!0},"",window.location.href),i=!0)},u=()=>{s=!1,i=x()},p=()=>{let e=i;if(i=x(),!e)return;let t=Array.from(r).at(-1);t?.()??!0?(s=!0,window.history.back()):c()},m=e=>!i&&Array.from(o).every(t=>t(e)),h=e=>{if(!a)for(let t of(a=!0,l=e.events,(d=e.beforePopState)(m),window.addEventListener("popstate",p),g))l.on(t,u)},{registerLeaveGuard:(e,t)=>(h(e),r.add(t),window.history.length>1&&c(),()=>{r.delete(t)}),registerPopStateInterceptor:(e,t)=>(h(e),o.add(t),()=>{o.delete(t)}),shouldSkipLeaveConfirm:()=>s,dispose:()=>{for(let e of(r.clear(),o.clear(),d?.(()=>!0),g))l?.off(e,u);window.removeEventListener("popstate",p),l=null,d=null,a=!1,i=!1,s=!1}})},91646:(e,t,n)=>{"use strict";n.d(t,{A:()=>Y});var r=n(10460),o=n(88433),i=n(95132),s=i.useLayoutEffect,a=function(e){var t=i.useRef(e);return s(function(){t.current=e}),t},l=function(e,t){"function"==typeof e?e(t):e.current=t},d=function(e,t){var n=i.useRef();return i.useCallback(function(r){e.current=r,n.current&&l(n.current,null),n.current=t,t&&l(t,r)},[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},u=function(e){Object.keys(c).forEach(function(t){e.style.setProperty(t,c[t],"important")})},p=null,m=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},h=function(){},f=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],g=!!document.documentElement.currentStyle,x=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=f.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;g&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:i}};function b(e,t,n){var r=a(n);i.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var v=function(e,t){b(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},y=function(e){b(window,"resize",e)},w=function(e){b(document.fonts,"loadingdone",e)},$=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Y=i.forwardRef(function(e,t){var n=e.cacheMeasurements,s=e.maxRows,a=e.minRows,l=e.onChange,c=void 0===l?h:l,f=e.onHeightChange,g=void 0===f?h:f,b=(0,o.A)(e,$),Y=void 0!==b.value,A=i.useRef(null),C=d(A,t),k=i.useRef(0),H=i.useRef(),F=function(){var e=A.current,t=n&&H.current?H.current:x(e);if(t){H.current=t;var r,o,i,l,d,c,h,f,b,v,y,w=(r=e.value||e.placeholder||"x",void 0===(o=a)&&(o=1),void 0===(i=s)&&(i=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),u(p)),null===p.parentNode&&document.body.appendChild(p),l=t.paddingSize,d=t.borderSize,h=(c=t.sizingStyle).boxSizing,Object.keys(c).forEac
382h(function(e){p.style[e]=c[e]}),u(p),p.value=r,f=m(p,t),p.value=r,f=m(p,t),p.value="x",v=(b=p.scrollHeight-l)*o,"border-box"===h&&(v=v+l+d),f=Math.max(v,f),y=b*i,"border-box"===h&&(y=y+l+d),[f=Math.min(y,f),b]),$=w[0],Y=w[1];k.current!==$&&(k.current=$,e.style.setProperty("height",$+"px","important"),g($,{rowHeight:Y}))}};return i.useLayoutEffect(F),v(A,function(){if(!Y){var e=A.current.value;requestAnimationFrame(function(){var t=A.current;t&&e!==t.value&&F()})}}),y(F),w(F),i.createElement("textarea",(0,r.A)({},b,{onChange:function(e){Y||F(),c(e)},ref:C}))})}},e=>{e.O(0,[1470,3399,636,6593,8792],()=>e(e.s=13354)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.