1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2700],{42540:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(12115),r=a(36812),i=a(3361);function l(e=!1){let[t,a]=(0,n.useState)(null),[o,u]=(0,n.useState)(!0),s=async e=>{try{let t=await i.A.get("/profiles",{id:e});return t?.profiles?.[0]}catch(e){return null}},d=async()=>{let{user:t}=await (0,r.Wk)();if(!t?.profile?.id){a(null),u(!1);return}if(e){let e=await s(t.profile.id);if(e){let n=e.content.names?.find(e=>e.preferred)??e.content.names?.[0];a({profile:{id:e.id,preferredId:n?.username??e.id,preferredName:n?.fullname??t.profile.fullname,preferredEmail:e.content.preferredEmail??e.content.emails?.[0]}}),u(!1);return}}a(t),u(!1)};return(0,n.useEffect)(()=>{d()},[e]),{user:t,isRefreshing:o}}},72700:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var n=a(95155),r=a(12115),i=a(80385),l=a.n(i),o=a(58809),u=a(42540),s=a(11855),d=a(49498),f=a(79154),c=a.n(f);let p=()=>{let{field:e,onChange:t,value:a,error:i,clearError:f,note:p,replyToNote:x,invitation:m}=(0,r.useContext)(o.A),{user:v}=(0,u.A)(),b=Object.keys(e)[0],_=e[b]?.value?.param?.type,g=_?.endsWith("[]"),h=g?_?.slice(0,-2):_,C=(0,s.fP)(e[b]),y=e[b]?.value?.param?.default,E=e[b].value?.param?.hidden,S=l()(a)?a:a.toString();g&&(S=(0,s.GT)(a)?.join(","));let[j,N]=(0,r.useState)(S);return((0,r.useEffect)(()=>
1{l()(j)||("function"==typeof t&&t({fieldName:b,value:(e=>g?""!==e.trim()?e.split(",").map(e=>(0,s.dC)(e.trim(),h)):void 0:e||E?(0,s.dC)(e.trim(),h):void 0)(j),shouldSaveDraft:!0}),"function"==typeof f&&f())},[j]),(0,r.useEffect)(()=>{let e,t;if(l()(a)){{let t=(0,d.getAutoStorageKey)(v,m?.id,p?.id,x?.id,b);e=localStorage.getItem(t)}p||(t=g?(0,s.GT)(y)?.join(","):(0,s.cR)(y,!1)),(e||t)&&N(e??t)}},[]),C)?(0,n.jsx)("div",{className:c().textboxContainer,children:(0,n.jsx)("input",{className:`form-control ${c().textboxInput}`,value:C??"",readOnly:!0})}):(0,n.jsx)("div",{className:c().textboxContainer,children:(0,n.jsx)("input",{className:`form-control ${c().textboxInput} ${i?c().invalidValue:""}`,value:j??"",onChange:e=>N(e.target.value)})})}},79154:e=>{e.exports={textboxContainer:"TextboxWidget_textboxContainer__qgdXt",textboxInput:"TextboxWidget_textboxInput__Gu5Es",invalidValue:"TextboxWidget_invalidValue__SXHJQ"}}}]);
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.