PageSourceSearch

https://static.choigai.cn/_next/static/chunks/40030-740a5db822722dcc.js

js choigai.cn collected 2026-10-10 00:15:37 UTC 39,274 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40030],{48819:function(e,a,s){s.d(a,{Z:function(){return r}});var t=s(97458);s(52983);var l=s(5916),n=s(28095),i=s(55285);function r(e){let{theme:a="default",label:s,content:r,iconContent:o,onClick:u}=e;return(0,t.jsxs)("div",{className:(0,l.cn)("InfoTips_infoIcon__dhXEN",e.className),children:[s&&s,(0,t.jsx)("span",{onClick:()=>{if(u){u();return}i.Z.info({title:"提示",content:r})},children:o||(0,t.jsx)(n.sz,{className:(0,l.cn)("u-size-s-xxs u-me-xs u-inline-block",{"u-text-secondary":"default"===a,"u-text-light":"light"===a})})})]})}},58119:function(e,a,s){s.d(a,{Z:function(){return i}});var t=s(97458),l=s(52983),n=s(5916);function i(e){let{options:a,size:s="md"}=e,i=(0,l.useRef)(null),r=(0,l.useRef)(null),o=(0,l.useCallback)(()=>{if(!i.current||!r.current)return;let e=i.current.querySelector('[data-is-active="true"]');if(!e)return;let a=e.getBoundingClientRect(),{offsetLeft:s}=e;r.current.style.width="".concat(a.width-4,"px"),r.current.style.left="".concat(s+2,"px")},[]);return(0,l.useEffect)(o,[e.value,o]),(0,l.useEffect)(()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),(0,t.jsxs)("div",{className:(0,n.cn)("u-flex u-relative u-z-[2]","u-rounded-xs","u-bg-fill-tertiary",e.className),style:e.style,ref:i,children:[a.map(a=>(0,t.jsx)("button",{type:"button",className:(0,n.cn)("u-flex-grow u-flex-1 u-flex-shrink-0","u-truncate",e.value===a.value?"u-font-bold":"u-font-medium",{"u-h-[32px] u-text-[13px] u-px-1":"sm"===s,"u-h-[36px] u-text-subheadline":"md"===s}),"data-value":a.value,"data-is-active":e.value===a.value,onClick:()=>{e.onChange(a.value)},children:(0,t.jsx)("span",{className:"u-truncate",children:a.label})},a.value)),(0,t.jsx)("div",{className:"u-absolute u-bg-background-primary u-rounded-[6px] u-shadow-small u-top-[2px] u-bottom-[2px] u-z-[-1] u-transition-left",ref:r})]})}},75145:function(e,a,s){var t=s(97458),l=s(52983),n=s(59191),i=s(28095);let r=(0,l.forwardRef)((e,a)=>(0,t.jsx)(n.Z,{variant:"merge",radius:"round",square:!0,offset:"10",...e,ref:a,children:(0,t.jsx)(i.Tw,{className:"u-size-[22px] u-block"})}));a.Z=r},95766:function(e,a,s){s.d(a,{Z:function(){return X}});var t=s(97458),l=s(52983),n=s(24271),i=s(5916),r=s(99020),o=s(52850),u=s(59191),c=s(68383),d=s(28095);function m(e){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,i.cn)("u-flex u-size-[20px] u-flex-shrink-0 u-items-center u-justify-center u-rounded-round u-me-sm u-border u-border-solid u-border-default",e.checked&&"u-bg-primary u-border-primary",e.className),children:e.checked?(0,t.jsx)(d.nQ,{className:"u-block u-size-[16px] u-text-inverse"}):null})}var f=s(73724),p=s(60074),h=s(56e3),b=s(51068),g=s(91907),x=s(17125),v=s(91240),j=s(58119),y=s(13188),w=s(50504),N=s(97426),C=s(86234),M=s(20479),Z=s(55693),_=s(68449),k=s(14192),P=s(7829),S=s(49900),A=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s={...e};return a.forEach(e=>{delete s[e]}),s};function T(e){return e?e.toString().split("").reverse().map(e=>Number(e)):[]}var D=e=>{let{prefixCls:a="ft-ScrollNumber",count:s=null,onAnimated:n,className:i,size:r,style:o,component:u,...c}=e,[d,m]=(0,l.useState)(!0),[f,p]=(0,l.useState)(s),h=(0,l.useRef)(null),b=(0,l.useRef)(s),g=(0,l.useRef)(n);g.current=n,(0,l.useEffect)(()=>{if(b.current===s)return;h.current=b.current,b.current=s,m(!0);let e=setTimeout(()=>{m(!1),p(s)},5);return()=>clearTimeout(e)},[s]),(0,l.useEffect)(()=>{!d&&f===s&&g.current&&g.current()},[d,f,s]);let x=(e,a)=>{if(d)return 10+e;let s=T(f)[a],t=T(h.current)[a];return(f||0)>(h.current||0)?s>=t?10+e:20+e:s<=t?10+e:e},v=e=>{let a=[];for(let s=0;s<30;s+=1){let l=e===s?"current":"";a.push((0,t.jsx)("p",{className:l,children:s%10},s.toString()))}return a},j=(e,s)=>{let t=x(e,s),n=d||void 0===T(h.current)[s];return(0,l.createElement)("span",{className:"".concat(a,"__only"),style:{transition:n?"none":void 0,msTransform:"translateY(".concat(-(100*t),"%)"),WebkitTransform:"translateY(".concat(-(100*t),"%)"),transform:"translateY(".concat(-(100*t),"%)")},key:s},v(t))},y={...A({prefixCls:a,count:s,onAnimated:n,component:u,className:i,size:r,style:o,...c},["count","onAnimated","component","prefixCls"]),className:"".concat(a," ").concat(i||""," ").concat(a,"_").concat(r)};return y.style&&y.style.borderColor&&(y.style={...y.style,boxShadow:"0 0 0 1px ".concat(y.style.borderColor," inset")}),(0,l.createElement)(u||"sup",y,!f||isNaN(f)?f:T(f).map((e,a)=>j(e,a)).reverse())},L=s(9918);let z=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact",customProps:["modifier","isActive","
1isOver","isRemoved","isSelf"],state:e=>{let{namespace:a,baseName:s,modifier:t,isActive:l,isOver:n,isRemoved:r,isSelf:o,onClick:u}=e,c="".concat(a,"-").concat(s),d={["".concat(c,"_").concat(t)]:t,"js-clickable":!!u,"is-active":l,"is-over":n,"is-removed":r,"is-self":o};return(0,i.cn)(d)},displayName:"TContact"}),I=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"ContactWrap",customProps:["isActive","modifier"],state:e=>{let{isActive:a,namespace:s,baseName:t,modifier:l}=e;return(0,i.cn)({["".concat(s,"-").concat(t,"_").concat(l)]:l,"is-active":a})},displayName:"TContactWrap"}),R=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__container",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),E=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__titleContainer",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),O=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__rightTitleContainer",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),U=(0,_.Z)({Compo:e=>{let{count:a=null,showZero:s=!1,namespace:l=S.u,overflowCount:n=99,className:i,style:r,children:o,dot:u,status:c,text:d,size:m="md",...f}=e,p="".concat(l,"-Badge"),h=u||c,b=a&&Number(a)>n?"".concat(n,"+"):a||"";h&&(b="");let g="0"===b||0===b,x=(null==b||""===b||g&&!s)&&!h,v=(0,P.Z)({["".concat(p,"__dot")]:h,["".concat(p,"__count")]:!h}),j=(0,P.Z)(i,p,"".concat(p,"_").concat(m),{["".concat(p,"_status")]:!!c,["".concat(p,"_notAWrapper")]:!o});if(!o&&c){let e=(0,P.Z)({["".concat(p,"__status_dot")]:!!c,["".concat(p,"__status_").concat(c)]:!0});return(0,t.jsxs)("span",{className:j,children:[(0,t.jsx)("span",{className:e}),(0,t.jsx)("span",{className:"".concat(p,"__statusText"),children:d})]})}let y=(0,t.jsx)(D,{className:v,size:m,count:b,style:r}),w=x||!d?null:(0,t.jsx)("span",{className:"".concat(p,"__statusText"),children:d});return(0,t.jsxs)("span",{...f,className:j,title:String(a),children:[o,(0,t.jsx)(k.ZP,{visible:!x,motionName:o?"".concat(p,"_zoom"):"",motionAppear:!0,removeOnLeave:!0,children:(e,a)=>{let{className:s,style:l}=e;return(0,t.jsx)("span",{ref:a,className:s,style:l,children:y})}}),w]})},namespace:"IM",baseName:"Contact__avatar",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),Y=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__info",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),F=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__name",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}}),W=(0,_.Z)({Compo:"div",namespace:"IM",baseName:"Contact__meta",customProps:["modifier"],state:e=>{let{modifier:a,namespace:s,baseName:t}=e;return a&&"".concat(s,"-").concat(t,"_").concat(a)}});function q(e){let{contact:a,selectedUsers:s}=e,n=(0,v.No)(a),i=(0,v.f8)(a);(0,v.rH)(a);let r=(0,y.xJ)(),[o,u]=(0,l.useState)(!1),c=(0,C.T0)(a.group.id),d=(0,l.useMemo)(()=>{if(!c||!s.length)return"";let a=c.map(e=>e.user),t=new Set(a);return(e.selectedUsers.forEach(e=>{t.delete(e)}),t.size==a.length)?"":0==t.size?"selected":"partial-selected"},[e.selectedUsers,c]),m=(0,g.T)(),f=(0,l.useCallback)(e=>m((0,N.j0)({roomId:(0,Z.o3)(e),groupId:e.group.id})),[]),p=(0,l.useCallback)(async()=>{let s;o||(c?s=c.map(e=>e.user):(u(!0),s=(await f(a)).map(e=>e.user),u(!1)),e.onSelect({uids:s,contact:a,action:"selected"==d?"deselect":"select"}))},[o,a,d,c]),h=null;return"selected"==d?h={backgroundColor:"#d9eefc"}:"partial-selected"==d&&(h={backgroundColor:"#fffdf8"}),(0,t.jsx)(z.Wrap,{style:h,children:(0,t.jsx)(z,{onClick:p,children:(0,t.jsx)(z.Container,{children:(0,t.jsxs)(z.TitleContainer,{children:[(0,t.jsx)(z.Avatar,{children:(0,t.jsx)(w.Z,{className:"u-inline-block",contact:a,role:(0,M.rz)(a.group,r)?"owner":"participator"})}),(0,t.jsxs)(z.Info,{children:[(0,t.jsx)(z.Name,{children:n}),(0,t.jsx)(z.Meta,{children:i})]})]})})})})}z.Wrap=I,z.Container=R,z.TitleContainer=E,z.RightTitleContainer=O,z.Avatar=U,z.Info=Y,z.Name=F,z.Meta=W,z.L
1oading=()=>(0,t.jsx)("div",{className:"IM-ContactLoading",children:(0,t.jsx)(L.Z,{size:"xs"})});var K=s(69269),H=s(98653);function B(e){let{contact:a,selectedUsers:s}=e,n=(0,v.No)(a),i=(0,v.f8)(a),r=(0,v.rH)(a),o=(0,l.useMemo)(()=>s.includes(a.friend)?"selected":"",[a,s]),u=(0,l.useCallback)(()=>{e.onSelect({uids:[a.friend],contact:a,action:o?"deselect":"select"})},[a,o]),c=null;return"selected"==o&&(c={backgroundColor:"#d9eefc"}),(0,t.jsx)(z.Wrap,{style:c,children:(0,t.jsx)(z,{onClick:u,children:(0,t.jsx)(z.Container,{children:(0,t.jsxs)(z.TitleContainer,{children:[(0,t.jsx)(z.Avatar,{children:(0,t.jsx)(H.Z,{className:"u-inline-block",avatar:r,username:n,archived:a.status===K.Ci,round:a.status!==K.Ci})}),(0,t.jsxs)(z.Info,{children:[(0,t.jsx)(z.Name,{children:n}),(0,t.jsx)(z.Meta,{children:i})]})]})})})})}function G(e){let a=(0,g.C)(x.RC),{formatMessage:s}=(0,n.Z)(),[i,r]=(0,l.useState)("users"),o=(0,l.useMemo)(()=>[{value:"users",label:s({id:"party.common.users",defaultMessage:"Users"})},{value:"groups",label:s({id:"party.common.groups",defaultMessage:"Groups"})}],[]),u=(0,l.useMemo)(()=>{let e={};return a.list&&a.list.forEach(a=>{(0,v.yC)(a)&&(e.groups||(e.groups=[]),e.groups.push(a)),(0,v.YR)(a)&&(e.users||(e.users=[]),e.users.push(a))}),e},[a.list]);return(0,t.jsxs)("div",{className:"u-flex u-flex-col u-overflow-hidden",children:[(0,t.jsx)("div",{className:"u-sticky u-top-0",children:(0,t.jsx)(j.Z,{size:"sm",options:o,value:i,onChange:r})}),"users"==i&&(0,t.jsx)("div",{className:"u-flex-1 u-overflow-auto",children:u.users?(0,t.jsx)("div",{children:u.users.map(a=>(0,t.jsx)(B,{selectedUsers:e.selectedUsers,contact:a,onSelect:e.onSelect},a.id))}):(0,t.jsx)("div",{children:"NO user contact"})}),"groups"==i&&(0,t.jsx)("div",{className:"u-flex-1 u-overflow-auto",children:u.groups?(0,t.jsx)("div",{children:u.groups.map(a=>(0,t.jsx)(q,{selectedUsers:e.selectedUsers,contact:a,onSelect:e.onSelect},a.id))}):(0,t.jsx)("div",{children:"NO group contact"})})]})}function X(e){let{data:a}=e,{formatMessage:s}=(0,n.Z)(),[d,g]=(0,l.useState)(()=>a.restricted?"restricted":"public"),[x,v]=(0,l.useState)(()=>a.restricted?a.restricted:[e.authorId]),j=(0,l.useMemo)(()=>[{value:"public",label:s(h.Z.publicAccess),desc:s(h.Z.publicAccessDesc)},{value:"restricted",label:s(h.Z.restrictedAccess),desc:s(h.Z.restrictedAccessDesc)}],[]),y=(0,l.useCallback)(()=>{"public"==d&&e.onChange({restricted:!1}),"restricted"==d&&e.onChange({restricted:x}),e.onNext()},[d,x,a,e.onChange]);return(0,t.jsx)(f.Z,{size:"lg",shadow:e.shadow,children:(0,t.jsxs)(f.Z.Wrap,{children:[(0,t.jsx)(f.Z.Header,{className:"u-px-md sm:u-px-lg",children:(0,t.jsx)(f.Z.Title,{className:"u-text-body sm:u-text-title-2 u-font-semibold u-py-xs u-leading-none",children:(0,t.jsx)(p.Z,{message:h.Z.accessControl})})}),(0,t.jsxs)(f.Z.Content,{className:"u-px-md sm:u-px-lg u-pt-md u-pb-md u-flex u-flex-col u-overflow-auto",children:[(0,t.jsx)("div",{className:"sm:u-flex u-flex-wrap sm:u--mx-sm",children:j.map(e=>{let a=e.value===d;return(0,t.jsx)("div",{className:"sm:u-px-sm sm:u-py-xs u-basis-12/24",children:(0,t.jsxs)(u.Z,{type:"button",variant:"default",radius:"sm",align:"left",className:"u-w-full u-h-full",innerClassName:(0,i.cn)("u-py-md u-px-md u-bd-default u-mb-xs","sm:u-py-md sm:u-border-transparent sm:u-mb-0",{"u-text-primary":a}),onClick:()=>{g(e.value)},children:[(0,t.jsx)(m,{checked:a}),(0,t.jsxs)("div",{className:"u-text-left",children:[(0,t.jsx)("div",{className:"u-font-bold u-mb-xs",children:e.label}),e.desc]})]})},e.value)})}),"restricted"==d&&(0,t.jsx)("div",{className:"u-flex-1 u-overflow-auto u-mt-1 u-bd-t u-pt-2",children:(0,t.jsxs)("div",{className:"sm:u-flex u-max-h-full",children:[(0,t.jsxs)("div",{className:"sm:u-basis-10/24 sm:u-pe-xs u-flex u-flex-col u-overflow-auto",children:[(0,t.jsx)("div",{className:"u-font-bold u-text-caption-1 u-mb-xs u-pl-xxs",children:(0,t.jsx)(p.Z,{message:h.Z.selectUser})}),(0,t.jsx)(G,{selectedUsers:x,onSelect:a=>{v(s=>{let t=new Set(s),{uids:l,contact:n,action:i}=a;return"select"==i&&l.forEach(e=>{t.add(e)}),"deselect"==i&&l.forEach(a=>{a!=e.authorId&&t.delete(a)}),Array.from(t)})}})]}),(0,t.jsxs)("div",{className:"sm:u-block sm:u-basis-14/24 u-ps-xs",children:[(0,t.jsx)("div",{className:"u-text-lg u-font-bold u-mt-1 u-mb-md",children:(0,t.jsx)(p.Z,{message:h.Z.selectedUsers})}),(0,t.jsx)("div",{className:"u-flex u-flex-wrap u-gap-3",children:x.map((a,s)=>(0,t.jsx)(r.Z,{userId:a,fallback:(0,t.jsx)(c.Z,{label:a}),children:l=>(0,t.jsx)(c.Z,{avatar:(0,o.wX)(l),label:(0,o.Ms)(l),onDelete:a==e.authorId?void 0:()=>{v(e=>[...e.slice(0,s),...e.slice(s+1)])}})},a))})]})]})})]}),(0,t.jsx)(b.Z,{hasPrev:e.hasPrev,onPrev:e.onPrev,onNext:y,nextLabel:e.nextLabel})]})})}},46047:function(e,a,s){s.d(a,{Li:function(){return f},Ul:function(){return m}});var t=s(97458),l=s(52983),n=s(94817),i=s(27469),r=s.n(i),o=s(91676),u=s(54907),c=s(60074),d=s(56e3);function m(e){return(0,t.jsx)("ul",{children:e})}function f(e){return(0,t.jsx)("li",{children:e})}a.Z=function(e){var a,s;let{locale:i}=(0,n.useRouter)(),m=i.split("-")[0];(0,o.zY)(i,!0);let f=r()((null==e?void 0:null===(s=e.data)||void 0===s?void 0:null===(a=s.delayPublish)||void 0===a?void 0:a.publish_time)||new Date),p=f.format("YYYY-MM-DD HH:mm:ss"),h=(0,l.useMemo)(()=>
1({pickerMode:"future",yearRange:1,minDate:r()(new Date).add(1,"hours"),momentFormat:"YYYY-MM-DD HH:mm:ss",placement:"bottomLeft",trigger:"click",canClear:!1}),[]);return(0,t.jsx)("div",{className:"u-flex u-flex-col u-h-full",children:(0,t.jsxs)("div",{className:"u-mb-md",children:[(0,t.jsxs)("div",{className:"u-text-subheadline u-mb-xs",children:[(0,t.jsx)(c.Z,{message:d.Z.delayPublishTitle}),":",(0,t.jsx)("span",{children:e.data.title})]}),(0,t.jsxs)("div",{className:"u-text-subheadline u-mb-xs",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)(c.Z,{message:d.Z.delayPublishDate}),":"]}),(0,t.jsx)("span",{children:p})]}),(0,t.jsx)(u.Z,{yearRange:1,pickerMode:h.pickerMode,labels:"zh"===m?{year:"年",month:"月",day:"日",hour:"时",minute:"分"}:{},viewMode:"YMDHm",minDate:h.minDate,weekLabel:!0,value:f,format:h.momentFormat,internalOnPick:a=>{let s=r()(a);e.onChange({delayPublish:{publish_time:s,publish_time_string:s.format(h.momentFormat)}})},internalConfirmMode:!1})]})})}},27487:function(e,a,s){var t=s(97458),l=s(52983),n=s(24271),i=s(39442),r=s(94817),o=s(27469),u=s.n(o),c=s(62806),d=s(59191),m=s(48819),f=s(9918),p=s(73724),h=s(60074),b=s(56e3),g=s(51068),x=s(46047);a.Z=function(e){var a,s,o;let{formatMessage:v}=(0,n.Z)(),{locale:j}=(0,r.useRouter)();"zh"===j.split("-")[0]&&u().locale("zh",{monthsShort:"1_2_3_4_5_6_7_8_9_10_11_12".split("_")});let[y,w]=(0,l.useState)(!1),N=u()(null==e?void 0:null===(s=e.data)||void 0===s?void 0:null===(a=s.delayPublish)||void 0===a?void 0:a.publish_time)>=u()(new Date).add(1,"hours")&&y&&!e.loading,C=a=>{let s={...a,delayPublish:a.delayPublish};a.publishNow&&(s={...a,delayPublish:{publish_time:u()(),publish_time_string:u()().toString()}}),e.onChange(s),a.delayPublish||a.publishNow||!e.onPrev||e.onPrev(a),w(!0)},M=(0,l.useCallback)(()=>{e.onNext&&e.onNext()},[e.onNext]),Z=(0,l.useCallback)(()=>{e.onPrev&&e.onPrev()},[e.onPrev]);return(0,t.jsx)(p.Z,{size:"lg",className:"mobile-fixed-height",shadow:e.shadow,children:(0,t.jsxs)(p.Z.Wrap,{children:[(0,t.jsx)(p.Z.Header,{className:"u-px-md sm:u-px-lg",children:(0,t.jsxs)(p.Z.Title,{className:"u-text-body sm:u-text-title-2 u-font-semibold u-py-xs u-leading-none",children:[(0,t.jsx)(h.Z,{message:b.Z.delayPublish}),(0,t.jsx)(m.Z,{content:v(b.Z.delayPublishDesc,{ul:x.Ul,li:x.Li})})]})}),(0,t.jsx)(p.Z.Content,{className:"u-px-md sm:u-px-lg u-pt-md u-pb-lg u-overflow-auto",children:(0,t.jsx)(x.Z,{onChange:C,data:null==e?void 0:e.data})}),(0,t.jsx)(g.Z,{hasPrev:!0,onPrev:Z,onNext:M,prevLabel:e.prevLabel,nextDisabled:!N,middleAction:(null===(o=e.data)||void 0===o?void 0:o.id)?null:(0,t.jsx)(d.Z,{type:"button",variant:"primary-outline",size:"lg",style:{minWidth:80},onClick:()=>{C({delayPublish:null})},children:(0,t.jsx)(h.Z,{message:b.Z.delayPublishReset})}),nextLabel:(0,t.jsxs)(t.Fragment,{children:[e.data.status==c.DD?(0,t.jsx)(h.Z,{message:(0,i.Em)({id:"app.common.confirm",defaultMessage:"Confirm"})}):e.nextLabel||(0,t.jsx)(h.Z,{message:b.Z.next}),e.loading&&(0,t.jsx)(f.Z,{size:"xxs",color:"inverse",className:"u-ms-xs"})]})})]})})}},51068:function(e,a,s){s.d(a,{Z:function(){return u}});var t=s(97458),l=s(5916),n=s(59191),i=s(73724),r=s(60074),o=s(56e3);function u(e){let{hasPrev:a,onPrev:s,onNext:u,prevLabel:c,nextLabel:d,nextDisabled:m,leading:f,status:p,middleAction:h,className:b}=e;return(0,t.jsx)(i.Z.Footer,{className:(0,l.cn)("!u-p-0",b),children:(0,t.jsxs)("div",{className:"u-bg-primary/10 u-px-md u-py-md sm:u-px-lg",children:[p?(0,t.jsx)("div",{className:"u-mb-sm",children:p}):null,(0,t.jsxs)("div",{className:"u-flex u-items-center u-gap-xs",children:[a&&s?(0,t.jsx)(n.Z,{type:"button",size:"lg",variant:"primary-outline",style:{minWidth:120},onClick:s,children:c||(0,t.jsx)(r.Z,{message:o.Z.prev})}):(0,t.jsx)("div",{className:"u-me-auto",children:f}),h,(0,t.jsx)(n.Z,{type:"button",size:"lg",variant:"primary-inverse",className:"u-ms-auto",style:{minWidth:120},onClick:u,disabled:m,children:d||(0,t.jsx)(r.Z,{message:o.Z.next})})]})]})})}},56e3:function(e,a,s){var t=s(50012);a.Z=(0,t.vU)({title:{id:"bangwo.draft-publish-modal.title",defaultMessage:"Publish your document"},publicationStatus:{id:"bangwo.draft-publish-modal.publication-status",defaultMessage:"Publication Status"},publicDocument:{id:"bangwo.draft-publish-modal.public-document",defaultMessage:"Public Document"},publicPublishDesc:{id:"bangwo.draft-publish-modal.public-publish-desc",defaultMessage:"Your document is currently <strong>public</strong>. Publish\n    your document to make it publicly visible to readers and\n    search engines and assign it with a DOI, so it can be cited."},publishScope:{id:"bangwo.draft-publish-modal.publish-scope",defaultMessage:"Publish Scope"},publishScopeDesc:{id:"bangwo.draft-publish-modal.publish-scope-desc",defaultMessage:"You may publish a part of content separated by <strong>SubTitle</strong>."},fullText:{id:"bangwo.draft-publish-modal.full-text",defaultMessage:"Full text"},partial:{id:"bangwo.draft-publish-modal.partial",defaultMessage:"Partial"},publishNote:{id:"bangwo.draft-publish-modal.publish-note",defaultMessage:"In the next screens, you will be asked to pick keywords and\n    a license for your document"},publishBasicInfo:{id:"bangwo.draft-publish-modal.publish-basic",defaultMessage:"Basic Info"},totalWordCount:{id:"bangwo.draft-publish-modal.total-word-count",defaultMessage:"Total word count"},wordCount:{id:"bangwo.draft-publish-modal.word-count",defaultMessage:"Word count"},collaborators:{id:"bangwo.draft-publish-modal.collaborators",defaultMessage:"Collaborators"},publish:{id:"bangwo.draft-publish-modal.publish",defaultMessage:"Publish"},publishNow:{id:"bangwo.draft-publish-modal.publish-now",defaultMessage:"Publish now"},selectCategory:{id:"bangwo.draft-publish-modal.select-category",defaultMessage:"Select document category"},selectedCategory:{id:"bangwo.draft-publish-modal.selected-category",defaultMessage:"Current category: {category}"},selectCategoryPlaceholder:{id:"bangwo.draft-publish-modal.select-category-placeholder",defaultMessage:"Select..."},selectedLanguage:{id:"bangwo.draft-publish-modal.selected-language",defaultMessage:"Current selected: {value}"},prev:{id:"bangwo.draft-publish-modal.prev",defaultMessage:"Prev"},next:{id:"bangwo.draft-publish-modal.next",defaultMessage:"Next"}
1,selectApplyScenes:{id:"bangwo.draft-publish-modal.select-apply-scenes",defaultMessage:"Select apply scenes"},selectApplyScenesPlaceholder:{id:"dz.edit.set-apply-scenes.placeholder",defaultMessage:"Search and Select..."},selectApplyScenesDesc:{id:"bangwo.draft-publish-modal.select-apply-scenes-desc",defaultMessage:"Before publishing, here's a chance to add or modify the\n    document keywords. Keywords help make\n    your document discoverable to readers and search engines.\n    "},feedCard:{id:"bangwo.draft-publish-modal.feed-card",defaultMessage:"Feed Card"},feedCardDesc:{id:"bangwo.draft-publish-modal.feed-card-desc",defaultMessage:"Note: Changes here will affect how your story appears in\n    public places like Index feed — not the story itself."},sectionReleaseCardsDesc:{id:"bangwo.draft-publish-modal.section-release-cards-desc",defaultMessage:"Note: please input section summary and set a cover image. Inputs here will not affect current draft."},license:{id:"bangwo.draft-publish-modal.license",defaultMessage:"License"},selectLicense:{id:"bangwo.draft-publish-modal.select-license",defaultMessage:"Select your license"},publishDesc:{id:"bangwo.draft-publish-modal.publish-desc",defaultMessage:"<div>\n    By clicking “publish now”, your document will\n    <ol>\n      <li>\n        become <strong>publicly visible</strong> and be assigned\n        with a <strong>DOI</strong>\n      </li>\n      <li>\n        be indexed by <strong>search engines</strong> (including\n        Google Scholar)\n      </li>\n      <li>\n        be posted on the\n        <pubsLink>\n          Publications\n        </pubsLink>\n      </li>\n    </ol>\n  </div>"},licenseFreeTo:{id:"bangwo.draft-publish-modal.license-free-to",defaultMessage:"You are free to: "},licenseFreeToContent:{id:"bangwo.draft-publish-modal.license-free-to-content",defaultMessage:"The copyright holder for this preprint is the\n    author/funder. All rights reserved. No further reuse\n    allowed without permission."},licenseTermDesc:{id:"bangwo.draft-publish-modal.license-term-desc",defaultMessage:"Under the following terms: "},licenseTermDescContent:{id:"bangwo.draft-publish-modal.license-term-desc-content",defaultMessage:"By posting content on Qiqixie, the author explicitly\n    consents to allow text and data mining of their work."},licenseMoreInfo:{id:"bangwo.draft-publish-modal.license-more-info",defaultMessage:"Under the following terms: "},licenseMoreInfoContent:{id:"bangwo.draft-publish-modal.license-more-info-content",defaultMessage:"Read some <faq>frequently asked questions</faq> about licensing options and our <terms>terms of service</terms>."},publishFootnote:{id:"bangwo.draft-publish-modal.publish-footnote",defaultMessage:"<strong>NOTE:</strong> All documents are subject to minimal\n    screening to prevent publication of spam and marketing\n    material. <link>Read more about publications.</link>"},language:{id:"bangwo.draft-publish-modal.language",defaultMessage:"Language"},languageDesc:{id:"bangwo.draft-publish-modal.language-desc",defaultMessage:"Select language which your article is written in."},published:{id:"bangwo.draft-publish-modal.published",defaultMessage:"Draft published."},publishFailed:{id:"bangwo.draft-publish-modal.publish-failed",defaultMessage:"Failed to publish"},validationFailed:{id:"bangwo.draft-publish-modal.validation-failed",defaultMessage:"Validation failed"},authors:{id:"bangwo.draft-publish-modal.authors",defaultMessage:"Authors"},authorsDesc:{id:"bangwo.draft-publish-modal.authors-desc",defaultMessage:"Select Authors from collaborators"},preset:{id:"bangwo.draft-publish-modal.preset",defaultMessage:"Preset"},owner:{id:"bangwo.draft-publish-modal.owner",defaultMessage:"Owner"},hasAccepted:{id:"bangwo.draft-publish-modal.has-accepted",defaultMessage:"Has Content Accepted"},hasParticipated:{id:"bangwo.draft-publish-modal.has-participated",defaultMessage:"Participated"},publishReview:{id:"bangwo.draft-publish-modal.publish-review",defaultMessage:"Publish review"},generalInfo:{id:"bangwo.draft-publish-modal.general-info",defaultMessage:"General information"},category:{id:"bangwo.draft-publish-modal.category",defaultMessage:"Category"},applyScenes:{id:"bangwo.draft-publish-modal.apply-scenes",defaultMessage:"Apply scenes"},accessControl:{id:"bangwo.draft-publish-modal.access-control",defaultMessage:"Access Control"},publicAccess:{id:"bangwo.draft-publish-modal.public-access",defaultMessage:"Public Access"},publicAccessDesc:{id:"bangwo.draft-publish-modal.public-access-desc",defaultMessage:"Allows anyone to access the resource or content without requiring specific permissions or login."},restrictedAccess:{id:"bangwo.draft-publish-modal.restricted-access",defaultMessage:"Restricted Access"},restrictedAccessDesc:{id:"bangwo.draft-publish-modal.restricted-access-desc",defaultMessage:"Restricts access to specific users or user groups only, allowing them to access the publication."},selectUser:{id:"bangwo.draft-publish-modal.access-control.select-user",defaultMessage:"Select User"},selectedUsers:{id:"bangwo.draft-publish-modal.access-control.selected-user",defaultMessage:"Selected User"},delayPublish:{id:"bangwo.draft-publish-modal.delay-publish",defaultMessage:"Delay Publish"},delayPublishTitle:{id:"bangwo.draft-publish-modal.delay-publish-title",defaultMessage:"Title"},delayPublishDate:{id:"bangwo.draft-publish-modal.delay-publish-date",defaultMessage:"Date"}
1,delayPublishReset:{id:"bangwo.draft-publish-modal.delay-publish-reset",defaultMessage:"Now"},delayPublishDesc:{id:"bangwo.draft-publish-modal.delay-publish-desc",defaultMessage:"<ul>\n      <li>Can be published at a scheduled time (optional).</li>\n      <li>After setting, before the scheduled time, the delayed publication will only be visible to members of the collaborators list.</li>\n      <li>Should be at least 1 hour later than the current time.</li>\n    </ul>"}})},10731:function(e,a,s){s.d(a,{Z:function(){return i}});var t=s(97458),l=s(52983),n=s(59191);function i(e){let{data:a,getLabel:s,getKey:i,isActive:r,isSelectable:o,onItemClick:u}=e,c=(0,l.useMemo)(()=>a&&[...a].sort((e,a)=>s(e)>s(a)?1:-1),[a,s]);return(0,t.jsx)("div",{className:"lc-SelectGrid",children:c?c.map(e=>(0,t.jsx)("div",{className:"u-flex u-mb-[8px] u-break-inside-avoid",children:(0,t.jsx)(n.Z,{type:"button",variant:"merge",size:"md",className:"u-flex-grow u-text-link",radius:"xs",align:"left",style:{maxWidth:250},selected:r(e),disabled:!o(e),onClick:()=>u(e),children:(0,t.jsx)("span",{className:"u-text-subheadline u-text-start u-truncate",children:s(e)})})},i(e))):(0,t.jsx)("div",{className:"u-ps-md",children:(0,t.jsx)("div",{className:"u-py-sm u-leading-main u-opacity-70",children:"--"})})})}},17672:function(e,a,s){s.d(a,{Z:function(){return n}});var t=s(97458),l=s(12982);function n(e){let{code:a,...s}=e,n=(0,l.ZK)(a);return n?(0,t.jsx)("span",{...s,children:n.language_local}):(0,t.jsx)("span",{...s,children:a})}},55111:function(e,a,s){s.d(a,{Z:function(){return _}});var t=s(97458),l=s(52983),n=s(42962),i=s(24271),r=s(9918),o=s(40209),u=s(73724),c=s(60074),d=s(97015),m=s(82087),f=s.n(m),p=s(32620),h=s.n(p),b=s(5916),g=s(16524),x=s(10731);let v=()=>!0,j={wrapper:"u-pb-sm",section:"u-py-lg u-bd-t-default",sectionTitle:"u-text-title-2 u-ps-xs u-pb-lg u-pt-xs u-mb-md u-my-0",sectionContent:void 0};var y=function(e){let{style:a,options:s,value:n,classes:o=j,filter:u="",isSelectable:c=v}=e,{formatMessage:d}=(0,i.Z)(),m=(0,l.useCallback)(e=>e.language_local,[]),p=(0,l.useCallback)(e=>e.label,[]),y=(0,l.useCallback)(e=>!!n&&("string"==typeof n?e.language_code===n:"object"==typeof n&&n.language_code===e.language_code),[n]),w=(0,g.Y)(d),N=(0,l.useMemo)(()=>{if(!s)return null;let e=u.trim().toLowerCase();if(e){let a=s.filter(a=>m(a).toLowerCase().indexOf(e)>-1||a.language_code.toLowerCase().indexOf(e)>-1);return h()(a,e=>f()(e.language_continent_region))}return h()(s,e=>f()(e.language_continent_region))},[s,m,u]);return(0,t.jsx)("div",{style:a,className:(0,b.cn)(o.wrapper),"data-el-label":"language-select",children:N?w.map(a=>(0,t.jsxs)("div",{className:o.section,"data-el-label":"locale-select-group",children:[(0,t.jsx)("h2",{className:o.sectionTitle,id:a.value,children:a.label}),(0,t.jsx)("div",{className:o.sectionContent,children:(0,t.jsx)(x.Z,{data:N[a.value],getLabel:m,getKey:p,isActive:y,isSelectable:c,onItemClick:a=>{e.onChange(a)}})})]},a.value)):(0,t.jsx)("div",{className:"u-p-md u-text-center",children:(0,t.jsx)(r.Z,{size:"sm"})})})},w=function(e){let{style:a,className:s,title:n,options:m,value:f,onChange:p,isSelectable:h,shadow:b}=e,{formatMessage:g}=(0,i.Z)(),[x,v]=(0,l.useState)("");return(0,t.jsx)(u.Z,{size:"lg",id:"LanguageSelect",style:a,className:s,shadow:b,children:(0,t.jsxs)(u.Z.Wrap,{children:[(0,t.jsxs)(u.Z.Header,{className:"u-py-xs u-px-lg u-flex",children:[(0,t.jsx)(u.Z.Title,{className:"u-text-body sm:u-text-title-2 u-font-semibold u-py-xs u-leading-none",children:n||(0,t.jsx)(c.Z,{message:d.E4.title})}),(0,t.jsx)(u.Z.SubHeader,{className:"u-mt-auto u-ms-auto u-pe-[4px]",children:(0,t.jsx)(o.Z,{value:x,placeholder:g(d.E4.filterPlaceholder),onChange:e=>{v(e.target.value)}})})]}),(0,t.jsxs)(u.Z.Content,{className:"u-overflow-auto u-overscroll-contain u-px-md sm:u-px-lg",children:[e.desc&&(0,t.jsx)("div",{className:"u-py-sm",children:e.desc}),m?(0,t.jsx)(y,{filter:x,value:f,options:m,onChange:p,isSelectable:h}):(0,t.jsx)("div",{className:"u-p-md u-mb-sm u-flex u-items-center u-justify-center",children:(0,t.jsx)(r.Z,{size:"xs",className:"u-me-md"})})]}),e.footer]})})},N=s(96250);function C(e){let{title:a,data:s,getKey:n,getLabel:i,onItemClick:r,isSelectable:o,isActive:u}=e,c=(0,l.useMemo)(()=>s&&[...s].sort((e,a)=>i(e)>i(a)?1:-1),[s,i]);return(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("div",{className:"u-ps-md u-bg-background-primary u-sticky u-z-10 u-separator-b",style:{to
1p:0},children:(0,t.jsx)("div",{className:"u-pe-md u-py-xs u-font-bold",children:a})}),c?(0,t.jsx)("div",{className:"u-bg-fill-quaternary u-flex u-flex-wrap u-px-xs u-py-sm",children:c.map(e=>(0,t.jsx)(N.Z,{customTransition:!0,className:(0,b.cn)("u-transition-btn","u-m-[4px]","u-flex u-items-center","u-min-h-s-md u-px-sm u-py-[3px] u-rounded-xs u-shadow-line",{"u-bg-background-primary":o(e),"u-opacity-70":!o(e),"u-bg-label-primary u-text-inverse":u(e)}),onClick:()=>{o(e)&&r(e)},children:(0,t.jsx)("span",{children:i(e)})},n(e)))}):(0,t.jsx)("div",{className:"u-ps-md",children:(0,t.jsx)("div",{className:"u-py-sm u-leading-main u-opacity-70",children:"--"})})]})}function M(e){let{style:a,title:s,options:n,value:m,isSelectable:p=()=>!0}=e,{formatMessage:b}=(0,i.Z)(),[x,v]=(0,l.useState)(""),j=(0,l.useCallback)(e=>e.language_local,[]),y=(0,l.useCallback)(e=>"string"==typeof m?e.language_local===m:"object"==typeof m&&m.language_local===e.language_local,[m]),w=(0,g.Y)(b),N=(0,l.useMemo)(()=>{if(!n)return null;let e=x.trim().toLowerCase();if(e){let a=n.filter(a=>j(a).toLowerCase().indexOf(e)>-1||a.language_code.toLowerCase().indexOf(e)>-1);return h()(a,e=>f()(e.language_continent_region))}return h()(n,e=>f()(e.language_continent_region))},[n,j,x]);return(0,t.jsx)(u.Z,{size:"lg",id:"LanguageSelect",style:a,className:"mobile-fixed-height",shadow:e.shadow,children:(0,t.jsxs)(u.Z.Wrap,{children:[(0,t.jsx)(u.Z.Header,{children:(0,t.jsx)(u.Z.Title,{className:"u-text-body sm:u-text-title-2 u-font-semibold u-py-xs u-leading-none",children:s||(0,t.jsx)(c.Z,{message:d.E4.title})})}),(0,t.jsxs)(u.Z.Content,{className:"u-overflow-auto",children:[e.desc&&(0,t.jsx)("div",{className:"u-px-md u-pt-xs",children:e.desc}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"u-px-md u-pt-xs u-pb-sm",children:(0,t.jsx)(o.Z,{value:x,placeholder:b(d.E4.filterPlaceholder),onChange:e=>{v(e.target.value)}})}),(0,t.jsx)("div",{className:"md:u-px-[8px]",children:w.map(a=>(0,t.jsx)(C,{title:a.label,data:N[a.value],getLabel:j,getKey:e=>e.language_code,isActive:y,isSelectable:p,onItemClick:a=>{e.onChange(a)}},a.value))})]}):(0,t.jsx)("div",{className:"u-p-md u-mb-sm u-text-center",children:(0,t.jsx)(r.Z,{size:"xs",className:"u-me-md"})})]}),e.footer]})})}var Z=s(12982);function _(e){let{data:a}=(0,Z.uJ)({}),{isMobileView:s}=(0,n.u)();return(0,t.jsx)(s?M:w,{...e,options:a})}},16524:function(e,a,s){s.d(a,{Y:function(){return n},b:function(){return i}});var t=s(52983),l=s(97015);let n=e=>(0,t.useMemo)(()=>[{value:"africaMideast",label:e(l.KM.africaMideast)},{value:"asiaPacific",label:e(l.KM.asiaPacific)},{value:"europe",label:e(l.KM.europe)},{value:"americas",label:e(l.KM.americas)},{value:"oceania",label:e(l.KM.oceania)}],[]),i=e=>(0,t.useMemo)(()=>[{value:"africaMideast",label:e(l.KM.africaMideast)},{value:"asiaPacific",label:e(l.KM.asiaPacific)},{value:"europe",label:e(l.KM.europe)},{value:"latinAmerica",label:e(l.KM.latinAmerica)},{value:"northAmerica",label:e(l.KM.northAmerica)}],[])},97015:function(e,a,s){s.d(a,{E4:function(){return i},Iy:function(){return n},KM:function(){return l}});var t=s(50012);let l=(0,t.vU)({africaMideast:{id:"locale.region.africa-mideast",defaultMessage:"Africa, Middle East, and India"},asiaPacific:{id:"locale.region.asia-pacific",defaultMessage:"Asia Pacific"},europe:{id:"locale.region.europe",defaultMessage:"Europe"},americas:{id:"locale.region.americas",defaultMessage:"Americas"},latinAmerica:{id:"locale.region.latin-america",defaultMessage:"Latin America and the Caribbean"},northAmerica:{id:"locale.region.north-america",defaultMessage:"The United States, Canada, and Puerto Rico"},global:{id:"locale.region.global",defaultMessage:"Global"},oceania:{id:"locale.region.oceania",defaultMessage:"Oceania"}}),n=(0,t.vU)({regionTitle:{id:"locale.select-locale.select-region-title",defaultMessage:"Country/Region"},languageTitle:{id:"locale.select-locale.select-language-title",defaultMessage:"Language"},filterPlaceholder:{id:"locale.select-locale.filter-placeholder",defaultMessage:"filter"}}),i=(0,t.vU)({title:{id:"locale.select-language.title",defaultMessage:"Language"},filterPlaceholder:{id:"locale.select-language.filter-placeholder",defaultMessage:"filter"}})},50504:function(e,a,s){s.d(a,{Z:function(){return m}});var t=s(97458),l=s(52983),n=s(36989),i=s(91907),r=s(5916),o=s(29206),u=s(57920),c=s(91240),d=s(86036);
1function m(e){let{contact:a,className:s,archived:m,role:f}=e,p=(0,l.useRef)(null),h=(0,i.T)(),b=(0,l.useCallback)(()=>{!a.avatar_with_role&&p.current&&(0,n.rT)(p.current,{skipFonts:!0}).then(e=>{let s=e.toDataURL();h({type:"PARTY/SET_GROUP_CONTACT_LOCAL_AVATAR",payload:{entityMutators:[{[u.PX.key]:{[a.id.toString()]:{avatar_with_role:{$set:s}}}}]}})}).catch(e=>{o.Z.error("Error capturing avatar:",e)})},[a.avatar,f,h,a.id,a.avatar_with_role]);return(0,t.jsxs)("div",{ref:p,className:(0,r.cn)(s,"u-relative",m&&"u-grayscale"),children:[(0,t.jsx)("img",{className:(0,r.cn)("u-w-full u-h-full"),src:(0,c.rH)(a),alt:(0,c.No)(a),onLoad:b,loading:"lazy"}),(0,t.jsx)("div",{className:"u-absolute u-bottom-0 u-right-0 u-w-1/2 u-h-1/2",children:(0,t.jsx)(d.Z,{className:"u-w-full u-h-full u-block",role:e.role})})]})}},86036:function(e,a,s){s.d(a,{Z:function(){return o}});var t=s(97458),l=s(63418),n=s(75468),i=s(37032);let r={owner:n.r,admin:l.r,participator:i.r};function o(e){let{role:a,...s}=e,l=r[a];return l?(0,t.jsx)(l,{...s}):null}},86234:function(e,a,s){s.d(a,{Ln:function(){return v},Nh:function(){return x},O4:function(){return w},Qf:function(){return N},T0:function(){return j},Z:function(){return Z},ng:function(){return g},sA:function(){return y},w_:function(){return b}});var t=s(52983),l=s(88471),n=s.n(l),i=s(97879),r=s(91907),o=s(13188),u=s(97426),c=s(4771),d=s(69269),m=s(57920),f=s(17125),p=s(91240),h=s(55693);let b=()=>{let e=(0,r.C)(f.RC),a=(0,r.T)();return(0,t.useEffect)(()=>{(e.shouldRefresh||!e.fetchedAt||Date.now()-e.fetchedAt>6e5)&&!e.fetching&&a((0,u.S0)(!0)).catch(e=>{})},[]),e},g=()=>(0,r.C)(f.A8),x=e=>{let a=(0,r.C)(f.wi);return(0,t.useMemo)(()=>{if(!e)return a;let s=e.toLowerCase();return a.filter(e=>{let a=(0,p.No)(e);return a&&a.toLowerCase().indexOf(s)>-1})},[a,e])},v=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=(0,r.C)(f.Af);return(0,t.useMemo)(()=>Object.values(a).filter(e=>(0,p.YR)(e)).filter(a=>e||a.status!==d.Ci).sort((e,a)=>new Date(a.contact_time).valueOf()-new Date(e.contact_time).valueOf()),[a,e])},j=e=>(0,r.C)(a=>(0,f.i8)(a,e)),y=e=>{let a=(0,r.C)(a=>(0,f.i8)(a,e)),s=(0,r.C)(a=>{let s=(0,f.uA)(a,{roomId:(0,h.Lf)(e)});return{shouldRefresh:s.shouldRefreshMember,loaded:s.memberFetched,loading:s.fetchingMembers}}),l=(0,r.T)(),n=(0,t.useCallback)(()=>l((0,u.j0)({roomId:(0,h.Lf)(e),groupId:e})),[e,l]);return(0,t.useEffect)(()=>{!s.shouldRefresh&&s.loaded||s.loaded||n()},[n,s]),{...s,data:a,refetch:n}},w=()=>(0,r.C)(f.lD),N=e=>{let a=(0,r.C)(a=>(0,f._h)(a,{roomId:e})),s=C(e),l=M(),n=(0,o.xJ)(),c=(0,r.T)();return((0,t.useEffect)(()=>{!(!l||(0,h.qj)(e)&&(0,h.n5)(e)===n.uid.toString())&&(a||s.contactableOnceFetched||c((0,u.Ks)({roomId:e})))},[l,e,a,c,n,s]),(0,h.qj)(e)&&(0,h.n5)(e)===n.uid.toString())?{error:new i.Z({code:"SHOULD_NOT_CONCACT_YOURSELF",message:"Should not contact yourself."})}:{data:a,error:s.contactableError,onceFetched:s.contactableOnceFetched}},C=e=>(0,r.C)(a=>(0,f.uA)(a,{roomId:e})),M=()=>(0,r.C)(e=>n()(e,[c.Xf,"archiveContact","initFetched"])),Z=e=>{let{ids:a,type:s}=e,l=(0,r.C)(e=>n()(e,["entities","inbox"===s?m.I1.key:m.wu.key]));return(0,t.useMemo)(()=>a.map(e=>{let a=l[e];return a&&(a.img||a.image)?{messageId:e,image:a.image||{url:a.img}}:null}).filter(Boolean),[a,l])}},68383:function(e,a,s){s.d(a,{Z:function(){return i}});var t=s(97458),l=s(5916),n=s(59191);function i(e){let{avatar:a,icon:s,label:i}=e,r=!a&&!s;return(0,t.jsxs)("div",{className:(0,l.cn)("u-w-[44px]",e.className),onClick:e.onClick,children:[(0,t.jsxs)("div",{className:"u-relative",children:[e.icon&&(0,t.jsx)(n.Z,{square:!0,type:"button",radius:"round",className:"u-mx-auto u-block",innerClassName:(0,l.cn)("u-size-[36px]","u-border-default"),children:e.icon}),a&&(0,t.jsx)("img",{className:(0,l.cn)("u-size-[36px] u-rounded-round u-block u-bg-fill-quaternary","u-mx-auto"),src:a,alt:i}),r&&(0,t.jsx)("div",{className:(0,l.cn)("u-size-[36px] u-rounded-round u-block u-bg-fill-quaternary","u-mx-auto")}),e.onDelete&&(0,t.jsx)(n.Z,{type:"button",variant:"merge",square:!0,radius:"round",style:{position:"absolute",top:"-6px",right:"-6px"},innerClassName:"u-shadow-small u-size-[20px] u-bg-background-primary",onClick:()=>{e.onDelete()},children:"\xd7"})]}),(0,t.jsx)("div",{className:(0,l.cn)("u-truncate","u-text-meta u-text-center u-text-caption-1","u-mt-[3px]"),children:i||(0,t.jsx)("span",{className:"u-inline-block u-w-s-lg u-h-s-em u-bg-fill-quaternary"})})]})}}}]);

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.