cnhis-design-vue 3.2.2-beta.22 → 3.2.2-beta.29

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 (40) hide show
  1. package/es/components/biunique-chat/index.d.ts +35 -98
  2. package/es/components/biunique-chat/src/Index.vue.d.ts +36 -98
  3. package/es/components/biunique-chat/src/Index.vue2.js +1 -1
  4. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +3 -14
  5. package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
  6. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +3 -36
  7. package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
  8. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -13
  9. package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
  10. package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +1 -12
  11. package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +1 -12
  12. package/es/components/biunique-chat/src/components/ChatSet.vue2.js +1 -1
  13. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +10 -17
  14. package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
  15. package/es/components/biunique-chat/src/hooks/index.d.ts +2 -0
  16. package/es/components/biunique-chat/src/hooks/index.js +1 -0
  17. package/es/components/biunique-chat/src/hooks/useSession.d.ts +7 -0
  18. package/es/components/biunique-chat/src/hooks/useSession.js +1 -0
  19. package/es/components/biunique-chat/src/hooks/useState.d.ts +1 -13
  20. package/es/components/biunique-chat/src/hooks/useState.js +1 -1
  21. package/es/components/biunique-chat/src/types/index.d.ts +2 -3
  22. package/es/components/biunique-chat/src/utils/emoji.d.ts +1 -1
  23. package/es/components/biunique-chat/src/utils/emoji.js +1 -1
  24. package/es/components/biunique-chat/src/utils/index.js +1 -1
  25. package/es/components/biunique-chat/style/index.css +1 -1
  26. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  27. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  28. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
  29. package/es/components/form-config/src/constants/index.d.ts +1 -0
  30. package/es/components/form-config/src/constants/index.js +1 -1
  31. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  32. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  33. package/es/components/index.css +1 -1
  34. package/es/components/step-notice/index.d.ts +1538 -1
  35. package/es/components/step-notice/src/StepNotice.vue.d.ts +1538 -1
  36. package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
  37. package/es/components/step-notice/style/index.css +1 -1
  38. package/es/shared/assets/img/emoji/666.gif.js +1 -0
  39. package/es/shared/package.json.js +1 -1
  40. package/package.json +2 -2
@@ -2,18 +2,7 @@ import { AnyObject } from '../../../../shared/types';
2
2
  import { MESSAGE_TYPE } from '../constants';
3
3
  declare const _default: import("vue").DefineComponent<{}, {
4
4
  chatMainRef: import("vue").Ref<HTMLElement | undefined>;
5
- state: {
6
- currentSessionItem: AnyObject;
7
- sessionKey: string;
8
- userInfo: AnyObject;
9
- msgList: AnyObject[];
10
- currentMsg: AnyObject;
11
- isAppendMsg: boolean;
12
- sessionList: AnyObject[];
13
- isChangeSession: boolean;
14
- updateSessionItem: AnyObject;
15
- isUpdateSession: boolean;
16
- };
5
+ state: import("../types").IState;
17
6
  setMsgList: (list?: AnyObject[]) => void;
18
7
  page: number;
19
8
  getHistoryRecord: () => Promise<void>;
@@ -152,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{}, {
152
141
  required: true;
153
142
  };
154
143
  }>>, {}>;
155
- images: any[];
144
+ images: import("vue").Ref<any[]>;
156
145
  MESSAGE_TYPE: typeof MESSAGE_TYPE;
157
146
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
158
147
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,nextTick as s,watch as n,openBlock as i,createElementBlock as o,Fragment as r,renderList as a,unref as m,normalizeClass as c,toDisplayString as l,createCommentVNode as u,createBlock as d,createElementVNode as f,createVNode as p,withCtx as g}from"vue";import{NAvatar as y}from"naive-ui";import{useInfiniteScroll as v}from"@vueuse/core";import{isToday as T,format as M,isYesterday as h}from"date-fns";import{getHistoryRecordApi as H}from"../api/index.js";import{useState as L}from"../hooks/useState.js";import{isNumber as _}from"lodash-es";import k from"./PersonProfile.vue.js";import E from"./MessageTemplate.vue.js";import{images as j}from"../utils/emoji.js";import{MESSAGE_TYPE as A}from"../constants/index.js";const w={key:0,class:"time"},D={class:"message-box"},I=["data-time"],P=["innerHTML"],x=["src"];var K=e({__name:"ChatMain",setup(e){const K=t(),{state:F,setMsgList:J}=L();let O=1;async function R(){try{const e=await H({sessionKey:F.sessionKey,page:O});if(console.log("getHistoryRecord",e),!Array.isArray(e))return;if(0===e.length)return console.log("没有更多消息了");J(O>1?[...e,...F.msgList]:e),1===O&&z()}catch(e){console.log(e)}}function Y(e){var t;const{chatMessageType:s,msgTemplate:n}=e.content;return s===A.TEMPLATE&&2==(null==(t=null==n?void 0:n.setting)?void 0:t.style.id)}function b(e,t){var s;const n=_(e.sendTime)?e.sendTime:Date.parse(e.sendTime),i=null==(s=F.msgList[t-1])?void 0:s.sendTime;return n-(0===t?0:_(i)?i:Date.parse(i))>3e5}async function z(){var e,t,n;await s();const i=null!=(t=null==(e=K.value)?void 0:e.scrollHeight)?t:0;null==(n=K.value)||n.scrollTo({top:i})}function C(e){const t=new Date(e),s=Date.now()-t.getTime();if(s<6e4)return"刚刚";if(s<36e5)return Math.ceil(s/1e4/60)+"分钟前";if(T(t))return"今天 "+M(t,"HH:mm");if(h(t))return"昨天 "+M(t,"HH:mm");{const e=t.getFullYear(),s=(new Date).getFullYear();return M(t,e<s?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}}return v(K,(()=>{O++,R()}),{distance:20,direction:"top"}),n((()=>F.sessionKey),(e=>{e&&(O=1,R())}),{immediate:!0}),n((()=>F.isAppendMsg),(e=>{e&&(J([...F.msgList,F.currentMsg]),F.isAppendMsg=!1,z())}),{immediate:!0}),(e,t)=>(i(),o("div",{class:"chat-main",ref_key:"chatMainRef",ref:K},[(i(!0),o(r,null,a(m(F).msgList,((e,t)=>(i(),o("div",{class:c(["message-item",{"message-item--mine":e.sender==m(F).userInfo.id}]),key:t},[b(e,t)?(i(),o("p",w,l(C(e.sendTime)),1)):u("v-if",!0),Y(e)?(i(),d(E,{key:1,data:e},null,8,["data"])):u("v-if",!0),f("div",D,[p(k,{"user-info":e.sender==m(F).userInfo.id?m(F).userInfo:e},{trigger:g((()=>[p(m(y),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-info"]),e.content?(i(),o("div",{key:0,class:c(["content",{emoji:e.content.chatMessageType===m(A).EMOJI},{template:e.content.chatMessageType===m(A).TEMPLATE}]),"data-time":e.__time},[e.content.chatMessageType===m(A).TEXT?(i(),o("pre",{key:0,innerHTML:e.__content},null,8,P)):u("v-if",!0),e.content.chatMessageType===m(A).EMOJI?(i(),o("img",{key:1,src:m(j)[e.__content]},null,8,x)):u("v-if",!0),e.content.chatMessageType===m(A).TEMPLATE?(i(),d(E,{key:2,data:e},null,8,["data"])):u("v-if",!0)],10,I)):u("v-if",!0)])],2)))),128))],512))}});export{K as default};
1
+ import{defineComponent as e,ref as t,watch as s,openBlock as n,createElementBlock as i,Fragment as r,renderList as o,unref as a,normalizeClass as m,toDisplayString as c,createCommentVNode as l,createBlock as u,createElementVNode as d,createVNode as f,withCtx as g}from"vue";import{NAvatar as p}from"naive-ui";import{useInfiniteScroll as y,promiseTimeout as v}from"@vueuse/core";import{isToday as T,format as M,isYesterday as h}from"date-fns";import{getHistoryRecordApi as H}from"../api/index.js";import{useState as L}from"../hooks/useState.js";import{isNumber as k}from"lodash-es";import E from"./PersonProfile.vue.js";import j from"./MessageTemplate.vue.js";import{images as A}from"../utils/emoji.js";import{MESSAGE_TYPE as _}from"../constants/index.js";const I={key:0,class:"time"},w={class:"message-box"},D=["data-time"],P=["innerHTML"],x=["src"];var F=e({__name:"ChatMain",setup(e){const F=t(),{state:J,setMsgList:K}=L();let O=1;async function R(){try{const e=await H({sessionKey:J.currentSessionItem.sessionKey,page:O});if(console.log("getHistoryRecord",e,O),!Array.isArray(e))return;if(0===e.length)return console.log("没有更多消息了");K(O>1?[...e,...J.msgList]:e),1===O&&b()}catch(e){console.log(e)}}function S(e){var t;const{chatMessageType:s,msgTemplate:n}=e.content;return s===_.TEMPLATE&&2==(null==(t=null==n?void 0:n.setting)?void 0:t.style.id)}function Y(e,t){var s;const n=k(e.sendTime)?e.sendTime:Date.parse(e.sendTime),i=null==(s=J.msgList[t-1])?void 0:s.sendTime;return n-(0===t?0:k(i)?i:Date.parse(i))>3e5}async function b(){var e,t,s;await v(50);const n=null!=(t=null==(e=F.value)?void 0:e.scrollHeight)?t:0;null==(s=F.value)||s.scrollTo({top:n})}function z(e){const t=new Date(e),s=Date.now()-t.getTime();if(s<6e4)return"刚刚";if(s<36e5)return Math.ceil(s/1e4/60)+"分钟前";if(T(t))return"今天 "+M(t,"HH:mm");if(h(t))return"昨天 "+M(t,"HH:mm");{const e=t.getFullYear(),s=(new Date).getFullYear();return M(t,e<s?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}}return y(F,(()=>{O++,R()}),{distance:20,direction:"top"}),s((()=>J.id),(e=>{e&&(O=1,R())}),{immediate:!0}),s((()=>J.isAppendMsg),(e=>{e&&(K([...J.msgList,J.currentMsg]),J.isAppendMsg=!1,b())}),{immediate:!0}),(e,t)=>(n(),i("div",{class:"chat-main",ref_key:"chatMainRef",ref:F},[(n(!0),i(r,null,o(a(J).msgList,((e,t)=>(n(),i("div",{class:m(["message-item",{"message-item--mine":e.sender==a(J).userInfo.id}]),key:t},[Y(e,t)?(n(),i("p",I,c(z(e.sendTime)),1)):l("v-if",!0),S(e)?(n(),u(j,{key:1,data:e},null,8,["data"])):l("v-if",!0),d("div",w,[f(E,{"user-info":e.sender==a(J).userInfo.id?a(J).userInfo:e},{trigger:g((()=>[f(a(p),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-info"]),e.content?(n(),i("div",{key:0,class:m(["content",{emoji:e.content.chatMessageType===a(_).EMOJI},{template:e.content.chatMessageType===a(_).TEMPLATE}]),"data-time":e.__time},[e.content.chatMessageType===a(_).TEXT?(n(),i("pre",{key:0,innerHTML:e.__content},null,8,P)):l("v-if",!0),e.content.chatMessageType===a(_).EMOJI?(n(),i("img",{key:1,src:a(A)[e.content.msg]},null,8,x)):l("v-if",!0),e.content.chatMessageType===a(_).TEMPLATE?(n(),u(j,{key:2,data:e},null,8,["data"])):l("v-if",!0)],10,D)):l("v-if",!0)])],2)))),128))],512))}});export{F as default};
@@ -5,18 +5,7 @@ declare const _default: import("vue").DefineComponent<{}, {
5
5
  color: string;
6
6
  textColor: string;
7
7
  };
8
- state: {
9
- currentSessionItem: AnyObject;
10
- sessionKey: string;
11
- userInfo: AnyObject;
12
- msgList: AnyObject[];
13
- currentMsg: AnyObject;
14
- isAppendMsg: boolean;
15
- sessionList: AnyObject[];
16
- isChangeSession: boolean;
17
- updateSessionItem: AnyObject;
18
- isUpdateSession: boolean;
19
- };
8
+ state: import("../types").IState;
20
9
  options: {
21
10
  label: any;
22
11
  value: any;
@@ -1,18 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{}, {
4
- state: {
5
- currentSessionItem: AnyObject;
6
- sessionKey: string;
7
- userInfo: AnyObject;
8
- msgList: AnyObject[];
9
- currentMsg: AnyObject;
10
- isAppendMsg: boolean;
11
- sessionList: AnyObject[];
12
- isChangeSession: boolean;
13
- updateSessionItem: AnyObject;
14
- isUpdateSession: boolean;
15
- };
4
+ state: import("../types").IState;
16
5
  setCurrentSessionItem: (item: AnyObject) => void;
17
6
  handleTopping: (value: boolean) => Promise<void>;
18
7
  NDrawer: any;
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as s,createBlock as t,unref as o,withCtx as n,createVNode as i,createElementVNode as r,toDisplayString as a}from"vue";import{NDrawer as u,NDrawerContent as l,NAvatar as c,NIcon as p,NSwitch as m}from"naive-ui";import{ChevronForwardOutline as f}from"@vicons/ionicons5";import{useState as d}from"../hooks/useState.js";import v from"./PersonProfile.vue.js";import{toppingSessionApi as g}from"../api/index.js";const h={class:"chat-set-wrapper"},_={class:"item user-info"},I={class:"item"},S=r("span",{class:"label"},"置顶聊天",-1);var y=e({__name:"ChatSet",setup(e){const{state:y,setCurrentSessionItem:b}=d();async function j(e){try{await g({sessionKey:y.currentSessionItem.sessionKey,id:y.currentSessionItem.id,topping:e}),b({topping:e}),y.isChangeSession=!0}catch(e){console.log(e)}}return(e,d)=>(s(),t(o(u),{width:320,"trap-focus":!1,"block-scroll":!1,to:".c-biunique-chat"},{default:n((()=>[i(o(l),{title:"聊天设置"},{default:n((()=>[r("div",h,[i(v,{"user-info":o(y).userInfo},{trigger:n((()=>[r("div",_,[i(o(c),{round:"",size:40,src:o(y).currentSessionItem.avatar},null,8,["src"]),r("span",null,a(o(y).userInfo.name),1),i(o(p),{size:24,component:o(f),class:"item__right"},null,8,["component"])])])),_:1},8,["user-info"]),r("div",I,[S,i(o(m),{value:o(y).userInfo.topping,"onUpdate:value":[d[0]||(d[0]=e=>o(y).userInfo.topping=e),j],class:"item__right"},null,8,["value"])])])])),_:1})])),_:1}))}});export{y as default};
1
+ import{defineComponent as s,openBlock as e,createBlock as o,unref as t,withCtx as n,createVNode as i,createElementVNode as r,toDisplayString as a}from"vue";import{NDrawer as u,NDrawerContent as l,NAvatar as c,NIcon as m,NSwitch as p}from"naive-ui";import{ChevronForwardOutline as f}from"@vicons/ionicons5";import{useState as d}from"../hooks/useState.js";import{useSession as v}from"../hooks/useSession.js";import g from"./PersonProfile.vue.js";import{toppingSessionApi as h}from"../api/index.js";const _={class:"chat-set-wrapper"},I={class:"item user-info"},S={class:"item"},j=r("span",{class:"label"},"置顶聊天",-1);var y=s({__name:"ChatSet",setup(s){const{state:y}=d(),{setCurrentSessionItem:b}=v(y);async function k(s){try{await h({sessionKey:y.currentSessionItem.sessionKey,id:y.currentSessionItem.id,topping:s}),b({topping:s}),y.isChangeSession=!0}catch(s){console.log(s)}}return(s,d)=>(e(),o(t(u),{width:320,"trap-focus":!1,"block-scroll":!1,to:".c-biunique-chat"},{default:n((()=>[i(t(l),{title:"聊天设置"},{default:n((()=>[r("div",_,[i(g,{"user-info":t(y).userInfo},{trigger:n((()=>[r("div",I,[i(t(c),{round:"",size:40,src:t(y).currentSessionItem.avatar},null,8,["src"]),r("span",null,a(t(y).userInfo.name),1),i(t(m),{size:24,component:t(f),class:"item__right"},null,8,["component"])])])),_:1},8,["user-info"]),r("div",S,[j,i(t(p),{value:t(y).userInfo.topping,"onUpdate:value":[d[0]||(d[0]=s=>t(y).userInfo.topping=s),k],class:"item__right"},null,8,["value"])])])])),_:1})])),_:1}))}});export{y as default};
@@ -1,36 +1,29 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
2
  import { formatTime } from '../utils';
3
3
  declare const _default: import("vue").DefineComponent<{}, {
4
+ filterKey: {
5
+ all: string;
6
+ unread: string;
7
+ };
4
8
  flexWidth: import("vue").Ref<number>;
5
9
  listBoxRef: import("vue").Ref<HTMLElement | undefined>;
6
10
  keyword: import("vue").Ref<string>;
7
- sessionList: import("vue").Ref<AnyObject[]>;
8
11
  loading: import("vue").Ref<boolean>;
9
12
  filterList: import("vue").Ref<{
10
13
  label: string;
11
14
  key: string;
12
- number: number;
13
15
  }[]>;
14
16
  currentFilterKey: import("vue").Ref<string>;
15
- state: {
16
- currentSessionItem: AnyObject;
17
- sessionKey: string;
18
- userInfo: AnyObject;
19
- msgList: AnyObject[];
20
- currentMsg: AnyObject;
21
- isAppendMsg: boolean;
22
- sessionList: AnyObject[];
23
- isChangeSession: boolean;
24
- updateSessionItem: AnyObject;
25
- isUpdateSession: boolean;
26
- };
27
- setCurrentSessionItem: (item: AnyObject) => void;
28
- currentWidth: import("vue").ComputedRef<number>;
29
- handleSearch: () => void;
17
+ state: import("../types").IState;
18
+ emit: (event: string, ...args: any[]) => void;
30
19
  entrySession: (item: AnyObject) => void;
20
+ unreadTotal: import("vue").ComputedRef<number>;
21
+ currentWidth: import("vue").ComputedRef<number>;
22
+ sessionList: import("vue").ComputedRef<AnyObject[]>;
31
23
  sessionChange: (sessionItem: AnyObject) => void;
32
24
  changeWidth: ({ distance }: AnyObject) => void;
33
25
  handleFilter: (key: string) => void;
26
+ showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
34
27
  NSpin: any;
35
28
  NBadge: any;
36
29
  NAvatar: any;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as s,computed as i,watch as n,withDirectives as a,openBlock as t,createElementBlock as l,normalizeStyle as r,unref as u,createBlock as o,createCommentVNode as d,createElementVNode as v,Fragment as m,renderList as c,withCtx as f,createTextVNode as p,toDisplayString as y,normalizeClass as k,createVNode as h}from"vue";import{NSpin as _,NTag as g,NAvatar as b,NBadge as S}from"naive-ui";import{useState as x}from"../hooks/useState.js";import{vFlexibleResize as L}from"../../../../shared/directive/flexibleResize.js";import{formatTime as M,listSort as T}from"../utils/index.js";const C={class:"sider-list__filter box-shadow"},w=["onClick"],I={class:"avatar-right"},K={class:"name"},N={class:"msg-tip"},j={class:"msg-tip__content"},R=["innerHTML"];var z=e({__name:"SiderList",setup(e){const z=s(300),D=s(),H=s(""),U=s([]),B=s(!1),V=s([{label:"全部",key:"all",number:0},{label:"未读",key:"unread",number:0}]),q=s("all"),{state:A,setCurrentSessionItem:E}=x(),F=i((()=>Math.min(Math.max(z.value,240),360)));function G(e){e.unreadNum=0,E(e)}function J(e){const s=A.sessionList.map((s=>(e.receiver!==A.currentSessionItem.receiver&&s.unreadNum++,e.receiver===s.receiver?{...s,...e}:s)));A.sessionList=s,U.value=T(s)}function O({distance:e}){z.value=z.value+e}return n([()=>A.isChangeSession,()=>A.isUpdateSession],(([e,s])=>{e&&(J(A.currentSessionItem),A.isChangeSession=!1),s&&(J(A.updateSessionItem),A.isUpdateSession=!1)}),{immediate:!0}),n((()=>A.sessionList.length),(()=>{!function(){U.value=A.sessionList.sort(((e,s)=>new Date(s.updatedTime).getTime()-new Date(e.updatedTime).getTime())).filter((e=>e.name.includes(H.value)||!H.value)),V.value[0].number=U.value.length;const e=U.value.find((e=>e.sessionKey===A.sessionKey));e&&G(e),T(U.value)}()})),(e,s)=>a((t(),l("section",{class:"sider-list",style:r({width:u(F)+"px"})},[B.value?(t(),o(u(_),{key:0,stroke:"#5585f5"})):d("v-if",!0),d(' <n-input v-else placeholder="输入用户名模糊搜索" v-model:value="keyword" @keyup.enter="handleSearch"></n-input> '),v("div",C,[(t(!0),l(m,null,c(V.value,(e=>(t(),o(u(g),{type:q.value===e.key?"info":"default",round:"",bordered:!1,key:e.key,onClick:()=>function(e){q.value=e,U.value="unread"===e?A.sessionList.filter((e=>+e.unreadNum>0)):A.sessionList;U.value=T(U.value)}(e.key)},{default:f((()=>[p(y(e.label)+"("+y(e.number)+") ",1)])),_:2},1032,["type","onClick"])))),128))]),v("div",{class:"sider-list__box",ref_key:"listBoxRef",ref:D},[(t(!0),l(m,null,c(U.value,((e,s)=>(t(),l("div",{key:s,onClick:()=>G(e),class:k(["sider-list__box__item",{active:e.sessionKey===u(A).sessionKey}])},[h(u(b),{round:"",size:"large",src:e.avatar},null,8,["src"]),v("div",I,[v("div",K,[v("h4",null,y(e.name),1),v("span",null,y(u(M)(e.lastMessageSendTime).siderMsgTime),1)]),v("div",N,[v("div",j,[v("div",{innerHTML:e.lastMessage},null,8,R)]),h(u(S),{value:e.unreadNum},null,8,["value"])])])],10,w)))),128))],512)],4)),[[u(L),{mode:"VR",onMove:O}]])}});export{z as default};
1
+ import{defineComponent as e,ref as s,computed as i,watch as a,withDirectives as n,openBlock as t,createElementBlock as l,normalizeStyle as r,unref as o,createBlock as u,createCommentVNode as d,createElementVNode as v,Fragment as c,renderList as m,withCtx as p,createTextVNode as f,toDisplayString as k,normalizeClass as h,createVNode as y,vShow as _}from"vue";import{NSpin as S,NTag as g,NAvatar as b,NBadge as x}from"naive-ui";import{useState as M}from"../hooks/useState.js";import{useSession as L}from"../hooks/useSession.js";import{vFlexibleResize as C}from"../../../../shared/directive/flexibleResize.js";import{listSort as j,formatTime as T}from"../utils/index.js";const w={class:"sider-list__filter box-shadow"},I=["onClick"],N={class:"avatar-right"},R={class:"name"},z={class:"msg-tip"},H={class:"msg-tip__content"},U=["innerHTML"];var B=e({__name:"SiderList",setup(e){const B="all",E="unread",O=s(300),V=s();s("");const q=s(!1),A=s([{label:"全部",key:B},{label:"未读",key:E}]),D=s("all"),{state:F,emit:G}=M(),{entrySession:J,unreadTotal:K}=L(F),P=i((()=>Math.min(Math.max(O.value,240),360))),Q=i((()=>j(F.sessionList)));function W(e){!e.id||F.sessionList.map((e=>e.id)).includes(e.id)?F.sessionList.forEach((s=>{s.receiver===e.receiver&&(Object.assign(s,e),e.receiver!==F.currentSessionItem.receiver&&s.unreadNum++)})):F.sessionList.push(e)}function X({distance:e}){O.value=O.value+e}function Y(e,s=o(D)){var i;return s===B||(s===E?(null!=(i=e.unreadNum)?i:0)>0:void 0)}return a([()=>F.isChangeSession,()=>F.isUpdateSession],(([e,s])=>{e&&(W(F.currentSessionItem),F.isChangeSession=!1),s&&(W(F.updateSessionItem),F.isUpdateSession=!1)}),{immediate:!0}),a((()=>K.value),(e=>{const s=Q.value.filter((e=>Y(e,E)));G("unread-message-update",e,s)})),(e,s)=>n((t(),l("section",{class:"sider-list",style:r({width:o(P)+"px"})},[q.value?(t(),u(o(S),{key:0,stroke:"#5585f5"})):d("v-if",!0),d(' <n-input v-else placeholder="输入用户名模糊搜索" v-model:value="keyword" @keyup.enter="handleSearch"></n-input> '),v("div",w,[(t(!0),l(c,null,m(A.value,(e=>(t(),u(o(g),{type:D.value===e.key?"info":"default",round:"",bordered:!1,key:e.key,onClick:()=>{return s=e.key,void(D.value=s);var s}},{default:p((()=>[f(k(e.label)+"("+k(o(K))+") ",1)])),_:2},1032,["type","onClick"])))),128))]),v("div",{class:"sider-list__box",ref_key:"listBoxRef",ref:V},[(t(!0),l(c,null,m(o(Q),((e,s)=>n((t(),l("div",{key:s,onClick:()=>o(J)(e),class:h(["sider-list__box__item",{active:e.id===o(F).id}])},[y(o(b),{round:"",size:"large",src:e.avatar},null,8,["src"]),v("div",N,[v("div",R,[v("h4",null,k(e.name),1),v("span",null,k(o(T)(e.lastMessageSendTime).siderMsgTime),1)]),v("div",z,[v("div",H,[v("div",{innerHTML:e.lastMessage},null,8,U)]),y(o(x),{value:e.unreadNum},null,8,["value"])])])],10,I)),[[_,Y(e)]]))),128))],512)],4)),[[o(C),{mode:"VR",onMove:X}]])}});export{B as default};
@@ -0,0 +1,2 @@
1
+ export * from './useState';
2
+ export * from './useSession';
@@ -0,0 +1 @@
1
+ export{useState}from"./useState.js";export{useSession}from"./useSession.js";
@@ -0,0 +1,7 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ import { IState } from '../types';
3
+ export declare function useSession(state: IState): {
4
+ entrySession: (item: AnyObject) => void;
5
+ setCurrentSessionItem: (item: AnyObject) => void;
6
+ unreadTotal: import("vue").ComputedRef<number>;
7
+ };
@@ -0,0 +1 @@
1
+ import{computed as e}from"vue";import{transformLastMessage as s}from"../utils/index.js";function n(n){function t(e){Object.assign(n.currentSessionItem,e,e.lastMessage?{lastMessage:s(e)}:{}),n.id!==n.currentSessionItem.id&&(n.id=n.currentSessionItem.id)}return{entrySession:function(e){e.unreadNum=0,t(e),n.isChangeSession=!0},setCurrentSessionItem:t,unreadTotal:e((()=>n.sessionList.reduce(((e,s)=>e+ +s.unreadNum),0)))}}export{n as useSession};
@@ -1,18 +1,6 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
2
  export declare function useState(): {
3
- state: {
4
- currentSessionItem: AnyObject;
5
- sessionKey: string;
6
- userInfo: AnyObject;
7
- msgList: AnyObject[];
8
- currentMsg: AnyObject;
9
- isAppendMsg: boolean;
10
- sessionList: AnyObject[];
11
- isChangeSession: boolean;
12
- updateSessionItem: AnyObject;
13
- isUpdateSession: boolean;
14
- };
15
- setCurrentSessionItem: (item: AnyObject) => void;
3
+ state: import("../types").IState;
16
4
  setMsgList: (list?: AnyObject[]) => void;
17
5
  stompClient: import("vue").Ref<import("../utils/chatSock").ChatSock>;
18
6
  emit: (event: string, ...args: any[]) => void;
@@ -1 +1 @@
1
- import{inject as s}from"vue";import{transformLastMessage as e,formatTime as t,transformMessage as n}from"../utils/index.js";import{InjectionIChatState as i,InjectionIChatStompClient as o,InjectionIChatEmits as m}from"../types/index.js";function r(){const r=s(i),u=s(o),c=s(m);return{state:r,setCurrentSessionItem:function(s){Object.assign(r.currentSessionItem,s,s.lastMessage?{lastMessage:e(s)}:{}),r.sessionKey!==r.currentSessionItem.sessionKey&&(r.sessionKey=r.currentSessionItem.sessionKey,r.msgList=[])},setMsgList:function(s=[]){r.msgList=s.map((s=>{var e;return{...s,__time:t(s.sendTime).msgTime,__content:n(null==(e=s.content)?void 0:e.msg)}}))},stompClient:u,emit:c}}export{r as useState};
1
+ import{inject as t}from"vue";import{last as e}from"lodash-es";import{formatTime as n,transformMessage as s}from"../utils/index.js";import{InjectionIChatState as i,InjectionIChatStompClient as m,InjectionIChatEmits as o}from"../types/index.js";function r(){const r=t(i),g=t(m),c=t(o);return{state:r,setMsgList:function(t=[]){var i;r.msgList=t.sort(((t,e)=>{var i;return Object.assign(t,{__time:n(t.sendTime).msgTime,__content:s(null==(i=t.content)?void 0:i.msg)}),new Date(t.sendTime).getTime()-new Date(e.sendTime).getTime()}));const m=e(r.msgList);m.__time=n(m.sendTime).msgTime,m.__content=s(null==(i=m.content)?void 0:i.msg)},stompClient:g,emit:c}}export{r as useState};
@@ -1,9 +1,9 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  import { ChatSock } from '../utils/chatSock';
4
- declare type IState = {
4
+ export declare type IState = {
5
5
  currentSessionItem: AnyObject;
6
- sessionKey: string;
6
+ id: string;
7
7
  userInfo: AnyObject;
8
8
  msgList: AnyObject[];
9
9
  currentMsg: AnyObject;
@@ -16,4 +16,3 @@ declare type IState = {
16
16
  export declare const InjectionIChatState: InjectionKey<IState>;
17
17
  export declare const InjectionIChatStompClient: InjectionKey<Ref<ChatSock>>;
18
18
  export declare const InjectionIChatEmits: InjectionKey<(event: string, ...args: any[]) => void>;
19
- export {};
@@ -1,2 +1,2 @@
1
- export declare const images: any[];
1
+ export declare const images: import("vue").Ref<any[]>;
2
2
  export declare const alt: string[];
@@ -1 +1 @@
1
- const s=[],e=Object.assign({"../../../../shared/assets/img/emoji/emotion_001.png":()=>import("../../../../shared/assets/img/emoji/emotion_001.png.js"),"../../../../shared/assets/img/emoji/emotion_002.png":()=>import("../../../../shared/assets/img/emoji/emotion_002.png.js"),"../../../../shared/assets/img/emoji/emotion_003.png":()=>import("../../../../shared/assets/img/emoji/emotion_003.png.js"),"../../../../shared/assets/img/emoji/emotion_004.png":()=>import("../../../../shared/assets/img/emoji/emotion_004.png.js"),"../../../../shared/assets/img/emoji/emotion_005.png":()=>import("../../../../shared/assets/img/emoji/emotion_005.png.js"),"../../../../shared/assets/img/emoji/emotion_006.png":()=>import("../../../../shared/assets/img/emoji/emotion_006.png.js"),"../../../../shared/assets/img/emoji/emotion_007.png":()=>import("../../../../shared/assets/img/emoji/emotion_007.png.js"),"../../../../shared/assets/img/emoji/emotion_008.png":()=>import("../../../../shared/assets/img/emoji/emotion_008.png.js"),"../../../../shared/assets/img/emoji/emotion_009.png":()=>import("../../../../shared/assets/img/emoji/emotion_009.png.js"),"../../../../shared/assets/img/emoji/emotion_010.png":()=>import("../../../../shared/assets/img/emoji/emotion_010.png.js"),"../../../../shared/assets/img/emoji/emotion_011.png":()=>import("../../../../shared/assets/img/emoji/emotion_011.png.js"),"../../../../shared/assets/img/emoji/emotion_012.png":()=>import("../../../../shared/assets/img/emoji/emotion_012.png.js"),"../../../../shared/assets/img/emoji/emotion_013.png":()=>import("../../../../shared/assets/img/emoji/emotion_013.png.js"),"../../../../shared/assets/img/emoji/emotion_014.png":()=>import("../../../../shared/assets/img/emoji/emotion_014.png.js"),"../../../../shared/assets/img/emoji/emotion_015.png":()=>import("../../../../shared/assets/img/emoji/emotion_015.png.js"),"../../../../shared/assets/img/emoji/emotion_016.png":()=>import("../../../../shared/assets/img/emoji/emotion_016.png.js"),"../../../../shared/assets/img/emoji/emotion_017.png":()=>import("../../../../shared/assets/img/emoji/emotion_017.png.js"),"../../../../shared/assets/img/emoji/emotion_018.png":()=>import("../../../../shared/assets/img/emoji/emotion_018.png.js"),"../../../../shared/assets/img/emoji/emotion_019.png":()=>import("../../../../shared/assets/img/emoji/emotion_019.png.js"),"../../../../shared/assets/img/emoji/emotion_020.png":()=>import("../../../../shared/assets/img/emoji/emotion_020.png.js"),"../../../../shared/assets/img/emoji/emotion_021.png":()=>import("../../../../shared/assets/img/emoji/emotion_021.png.js"),"../../../../shared/assets/img/emoji/emotion_022.png":()=>import("../../../../shared/assets/img/emoji/emotion_022.png.js"),"../../../../shared/assets/img/emoji/emotion_023.png":()=>import("../../../../shared/assets/img/emoji/emotion_023.png.js"),"../../../../shared/assets/img/emoji/emotion_024.png":()=>import("../../../../shared/assets/img/emoji/emotion_024.png.js"),"../../../../shared/assets/img/emoji/emotion_025.png":()=>import("../../../../shared/assets/img/emoji/emotion_025.png.js"),"../../../../shared/assets/img/emoji/emotion_026.png":()=>import("../../../../shared/assets/img/emoji/emotion_026.png.js"),"../../../../shared/assets/img/emoji/emotion_027.png":()=>import("../../../../shared/assets/img/emoji/emotion_027.png.js"),"../../../../shared/assets/img/emoji/emotion_028.png":()=>import("../../../../shared/assets/img/emoji/emotion_028.png.js"),"../../../../shared/assets/img/emoji/emotion_029.png":()=>import("../../../../shared/assets/img/emoji/emotion_029.png.js"),"../../../../shared/assets/img/emoji/emotion_030.png":()=>import("../../../../shared/assets/img/emoji/emotion_030.png.js"),"../../../../shared/assets/img/emoji/emotion_031.png":()=>import("../../../../shared/assets/img/emoji/emotion_031.png.js"),"../../../../shared/assets/img/emoji/emotion_032.png":()=>import("../../../../shared/assets/img/emoji/emotion_032.png.js"),"../../../../shared/assets/img/emoji/emotion_033.png":()=>import("../../../../shared/assets/img/emoji/emotion_033.png.js"),"../../../../shared/assets/img/emoji/emotion_034.png":()=>import("../../../../shared/assets/img/emoji/emotion_034.png.js"),"../../../../shared/assets/img/emoji/emotion_035.png":()=>import("../../../../shared/assets/img/emoji/emotion_035.png.js"),"../../../../shared/assets/img/emoji/emotion_036.png":()=>import("../../../../shared/assets/img/emoji/emotion_036.png.js"),"../../../../shared/assets/img/emoji/emotion_037.png":()=>import("../../../../shared/assets/img/emoji/emotion_037.png.js"),"../../../../shared/assets/img/emoji/emotion_038.png":()=>import("../../../../shared/assets/img/emoji/emotion_038.png.js"),"../../../../shared/assets/img/emoji/emotion_039.png":()=>import("../../../../shared/assets/img/emoji/emotion_039.png.js"),"../../../../shared/assets/img/emoji/emotion_040.png":()=>import("../../../../shared/assets/img/emoji/emotion_040.png.js"),"../../../../shared/assets/img/emoji/emotion_041.png":()=>import("../../../../shared/assets/img/emoji/emotion_041.png.js"),"../../../../shared/assets/img/emoji/emotion_042.png":()=>import("../../../../shared/assets/img/emoji/emotion_042.png.js"),"../../../../shared/assets/img/emoji/emotion_043.png":()=>import("../../../../shared/assets/img/emoji/emotion_043.png.js"),"../../../../shared/assets/img/emoji/emotion_044.png":()=>import("../../../../shared/assets/img/emoji/emotion_044.png.js"),"../../../../shared/assets/img/emoji/emotion_045.png":()=>import("../../../../shared/assets/img/emoji/emotion_045.png.js"),"../../../../shared/assets/img/emoji/emotion_046.png":()=>import("../../../../shared/assets/img/emoji/emotion_046.png.js"),"../../../../shared/assets/img/emoji/emotion_047.png":()=>import("../../../../shared/assets/img/emoji/emotion_047.png.js"),"../../../../shared/assets/img/emoji/emotion_048.png":()=>import("../../../../shared/assets/img/emoji/emotion_048.png.js"),"../../../../shared/assets/img/emoji/emotion_049.png":()=>import("../../../../shared/assets/img/emoji/emotion_049.png.js"),"../../../../shared/assets/img/emoji/emotion_050.png":()=>import("../../../../shared/assets/img/emoji/emotion_050.png.js"),"../../../../shared/assets/img/emoji/emotion_051.png":()=>import("../../../../shared/assets/img/emoji/emotion_051.png.js"),"../../../../shared/assets/img/emoji/emotion_052.png":()=>import("../../../../shared/assets/img/emoji/emotion_052.png.js"),"../../../../shared/assets/img/emoji/emotion_053.png":()=>import("../../../../shared/assets/img/emoji/emotion_053.png.js"),"../../../../shared/assets/img/emoji/emotion_054.png":()=>import("../../../../shared/assets/img/emoji/emotion_054.png.js"),"../../../../shared/assets/img/emoji/emotion_055.png":()=>import("../../../../shared/assets/img/emoji/emotion_055.png.js"),"../../../../shared/assets/img/emoji/emotion_056.png":()=>import("../../../../shared/assets/img/emoji/emotion_056.png.js"),"../../../../shared/assets/img/emoji/emotion_057.png":()=>import("../../../../shared/assets/img/emoji/emotion_057.png.js"),"../../../../shared/assets/img/emoji/emotion_058.png":()=>import("../../../../shared/assets/img/emoji/emotion_058.png.js"),"../../../../shared/assets/img/emoji/emotion_059.png":()=>import("../../../../shared/assets/img/emoji/emotion_059.png.js"),"../../../../shared/assets/img/emoji/emotion_060.png":()=>import("../../../../shared/assets/img/emoji/emotion_060.png.js"),"../../../../shared/assets/img/emoji/emotion_061.png":()=>import("../../../../shared/assets/img/emoji/emotion_061.png.js"),"../../../../shared/assets/img/emoji/emotion_062.png":()=>import("../../../../shared/assets/img/emoji/emotion_062.png.js"),"../../../../shared/assets/img/emoji/emotion_063.png":()=>import("../../../../shared/assets/img/emoji/emotion_063.png.js"),"../../../../shared/assets/img/emoji/emotion_064.png":()=>import("../../../../shared/assets/img/emoji/emotion_064.png.js"),"../../../../shared/assets/img/emoji/emotion_065.png":()=>import("../../../../shared/assets/img/emoji/emotion_065.png.js"),"../../../../shared/assets/img/emoji/emotion_066.png":()=>import("../../../../shared/assets/img/emoji/emotion_066.png.js"),"../../../../shared/assets/img/emoji/emotion_067.png":()=>import("../../../../shared/assets/img/emoji/emotion_067.png.js"),"../../../../shared/assets/img/emoji/emotion_068.png":()=>import("../../../../shared/assets/img/emoji/emotion_068.png.js"),"../../../../shared/assets/img/emoji/emotion_069.png":()=>import("../../../../shared/assets/img/emoji/emotion_069.png.js"),"../../../../shared/assets/img/emoji/emotion_070.png":()=>import("../../../../shared/assets/img/emoji/emotion_070.png.js"),"../../../../shared/assets/img/emoji/emotion_071.png":()=>import("../../../../shared/assets/img/emoji/emotion_071.png.js"),"../../../../shared/assets/img/emoji/emotion_072.png":()=>import("../../../../shared/assets/img/emoji/emotion_072.png.js"),"../../../../shared/assets/img/emoji/emotion_073.png":()=>import("../../../../shared/assets/img/emoji/emotion_073.png.js"),"../../../../shared/assets/img/emoji/emotion_074.png":()=>import("../../../../shared/assets/img/emoji/emotion_074.png.js"),"../../../../shared/assets/img/emoji/emotion_075.png":()=>import("../../../../shared/assets/img/emoji/emotion_075.png.js"),"../../../../shared/assets/img/emoji/emotion_076.png":()=>import("../../../../shared/assets/img/emoji/emotion_076.png.js"),"../../../../shared/assets/img/emoji/emotion_077.png":()=>import("../../../../shared/assets/img/emoji/emotion_077.png.js"),"../../../../shared/assets/img/emoji/emotion_078.png":()=>import("../../../../shared/assets/img/emoji/emotion_078.png.js"),"../../../../shared/assets/img/emoji/emotion_079.png":()=>import("../../../../shared/assets/img/emoji/emotion_079.png.js"),"../../../../shared/assets/img/emoji/emotion_080.png":()=>import("../../../../shared/assets/img/emoji/emotion_080.png.js"),"../../../../shared/assets/img/emoji/emotion_081.png":()=>import("../../../../shared/assets/img/emoji/emotion_081.png.js"),"../../../../shared/assets/img/emoji/emotion_082.png":()=>import("../../../../shared/assets/img/emoji/emotion_082.png.js"),"../../../../shared/assets/img/emoji/emotion_083.png":()=>import("../../../../shared/assets/img/emoji/emotion_083.png.js"),"../../../../shared/assets/img/emoji/emotion_084.png":()=>import("../../../../shared/assets/img/emoji/emotion_084.png.js"),"../../../../shared/assets/img/emoji/emotion_085.png":()=>import("../../../../shared/assets/img/emoji/emotion_085.png.js"),"../../../../shared/assets/img/emoji/emotion_086.png":()=>import("../../../../shared/assets/img/emoji/emotion_086.png.js"),"../../../../shared/assets/img/emoji/emotion_087.png":()=>import("../../../../shared/assets/img/emoji/emotion_087.png.js"),"../../../../shared/assets/img/emoji/emotion_088.png":()=>import("../../../../shared/assets/img/emoji/emotion_088.png.js"),"../../../../shared/assets/img/emoji/emotion_089.png":()=>import("../../../../shared/assets/img/emoji/emotion_089.png.js"),"../../../../shared/assets/img/emoji/emotion_090.png":()=>import("../../../../shared/assets/img/emoji/emotion_090.png.js"),"../../../../shared/assets/img/emoji/emotion_091.png":()=>import("../../../../shared/assets/img/emoji/emotion_091.png.js"),"../../../../shared/assets/img/emoji/emotion_092.png":()=>import("../../../../shared/assets/img/emoji/emotion_092.png.js"),"../../../../shared/assets/img/emoji/emotion_093.png":()=>import("../../../../shared/assets/img/emoji/emotion_093.png.js"),"../../../../shared/assets/img/emoji/emotion_094.png":()=>import("../../../../shared/assets/img/emoji/emotion_094.png.js"),"../../../../shared/assets/img/emoji/emotion_095.png":()=>import("../../../../shared/assets/img/emoji/emotion_095.png.js"),"../../../../shared/assets/img/emoji/emotion_096.png":()=>import("../../../../shared/assets/img/emoji/emotion_096.png.js"),"../../../../shared/assets/img/emoji/emotion_097.png":()=>import("../../../../shared/assets/img/emoji/emotion_097.png.js"),"../../../../shared/assets/img/emoji/emotion_098.png":()=>import("../../../../shared/assets/img/emoji/emotion_098.png.js"),"../../../../shared/assets/img/emoji/emotion_099.png":()=>import("../../../../shared/assets/img/emoji/emotion_099.png.js"),"../../../../shared/assets/img/emoji/emotion_100.png":()=>import("../../../../shared/assets/img/emoji/emotion_100.png.js"),"../../../../shared/assets/img/emoji/emotion_101.png":()=>import("../../../../shared/assets/img/emoji/emotion_101.png.js"),"../../../../shared/assets/img/emoji/emotion_102.png":()=>import("../../../../shared/assets/img/emoji/emotion_102.png.js"),"../../../../shared/assets/img/emoji/emotion_103.png":()=>import("../../../../shared/assets/img/emoji/emotion_103.png.js"),"../../../../shared/assets/img/emoji/emotion_104.png":()=>import("../../../../shared/assets/img/emoji/emotion_104.png.js"),"../../../../shared/assets/img/emoji/emotion_105.png":()=>import("../../../../shared/assets/img/emoji/emotion_105.png.js"),"../../../../shared/assets/img/emoji/emotion_106.png":()=>import("../../../../shared/assets/img/emoji/emotion_106.png.js"),"../../../../shared/assets/img/emoji/emotion_107.png":()=>import("../../../../shared/assets/img/emoji/emotion_107.png.js"),"../../../../shared/assets/img/emoji/emotion_108.png":()=>import("../../../../shared/assets/img/emoji/emotion_108.png.js"),"../../../../shared/assets/img/emoji/emotion_109.png":()=>import("../../../../shared/assets/img/emoji/emotion_109.png.js"),"../../../../shared/assets/img/emoji/emotion_110.png":()=>import("../../../../shared/assets/img/emoji/emotion_110.png.js"),"../../../../shared/assets/img/emoji/emotion_111.png":()=>import("../../../../shared/assets/img/emoji/emotion_111.png.js"),"../../../../shared/assets/img/emoji/emotion_112.png":()=>import("../../../../shared/assets/img/emoji/emotion_112.png.js"),"../../../../shared/assets/img/emoji/emotion_113.png":()=>import("../../../../shared/assets/img/emoji/emotion_113.png.js"),"../../../../shared/assets/img/emoji/emotion_114.png":()=>import("../../../../shared/assets/img/emoji/emotion_114.png.js"),"../../../../shared/assets/img/emoji/emotion_115.png":()=>import("../../../../shared/assets/img/emoji/emotion_115.png.js"),"../../../../shared/assets/img/emoji/emotion_116.png":()=>import("../../../../shared/assets/img/emoji/emotion_116.png.js"),"../../../../shared/assets/img/emoji/emotion_117.png":()=>import("../../../../shared/assets/img/emoji/emotion_117.png.js"),"../../../../shared/assets/img/emoji/emotion_118.png":()=>import("../../../../shared/assets/img/emoji/emotion_118.png.js"),"../../../../shared/assets/img/emoji/emotion_119.png":()=>import("../../../../shared/assets/img/emoji/emotion_119.png.js"),"../../../../shared/assets/img/emoji/emotion_120.png":()=>import("../../../../shared/assets/img/emoji/emotion_120.png.js"),"../../../../shared/assets/img/emoji/emotion_121.png":()=>import("../../../../shared/assets/img/emoji/emotion_121.png.js"),"../../../../shared/assets/img/emoji/emotion_122.png":()=>import("../../../../shared/assets/img/emoji/emotion_122.png.js"),"../../../../shared/assets/img/emoji/emotion_123.png":()=>import("../../../../shared/assets/img/emoji/emotion_123.png.js"),"../../../../shared/assets/img/emoji/emotion_124.png":()=>import("../../../../shared/assets/img/emoji/emotion_124.png.js"),"../../../../shared/assets/img/emoji/emotion_125.png":()=>import("../../../../shared/assets/img/emoji/emotion_125.png.js"),"../../../../shared/assets/img/emoji/emotion_126.png":()=>import("../../../../shared/assets/img/emoji/emotion_126.png.js"),"../../../../shared/assets/img/emoji/emotion_127.png":()=>import("../../../../shared/assets/img/emoji/emotion_127.png.js"),"../../../../shared/assets/img/emoji/emotion_128.png":()=>import("../../../../shared/assets/img/emoji/emotion_128.png.js"),"../../../../shared/assets/img/emoji/emotion_129.png":()=>import("../../../../shared/assets/img/emoji/emotion_129.png.js"),"../../../../shared/assets/img/emoji/emotion_130.png":()=>import("../../../../shared/assets/img/emoji/emotion_130.png.js"),"../../../../shared/assets/img/emoji/emotion_131.png":()=>import("../../../../shared/assets/img/emoji/emotion_131.png.js"),"../../../../shared/assets/img/emoji/emotion_132.png":()=>import("../../../../shared/assets/img/emoji/emotion_132.png.js"),"../../../../shared/assets/img/emoji/emotion_133.png":()=>import("../../../../shared/assets/img/emoji/emotion_133.png.js"),"../../../../shared/assets/img/emoji/emotion_134.png":()=>import("../../../../shared/assets/img/emoji/emotion_134.png.js"),"../../../../shared/assets/img/emoji/emotion_135.png":()=>import("../../../../shared/assets/img/emoji/emotion_135.png.js"),"../../../../shared/assets/img/emoji/emotion_136.png":()=>import("../../../../shared/assets/img/emoji/emotion_136.png.js"),"../../../../shared/assets/img/emoji/emotion_137.png":()=>import("../../../../shared/assets/img/emoji/emotion_137.png.js"),"../../../../shared/assets/img/emoji/emotion_138.png":()=>import("../../../../shared/assets/img/emoji/emotion_138.png.js"),"../../../../shared/assets/img/emoji/emotion_139.png":()=>import("../../../../shared/assets/img/emoji/emotion_139.png.js"),"../../../../shared/assets/img/emoji/emotion_140.png":()=>import("../../../../shared/assets/img/emoji/emotion_140.png.js"),"../../../../shared/assets/img/emoji/emotion_141.png":()=>import("../../../../shared/assets/img/emoji/emotion_141.png.js"),"../../../../shared/assets/img/emoji/emotion_142.png":()=>import("../../../../shared/assets/img/emoji/emotion_142.png.js"),"../../../../shared/assets/img/emoji/emotion_143.png":()=>import("../../../../shared/assets/img/emoji/emotion_143.png.js"),"../../../../shared/assets/img/emoji/emotion_144.png":()=>import("../../../../shared/assets/img/emoji/emotion_144.png.js"),"../../../../shared/assets/img/emoji/emotion_145.png":()=>import("../../../../shared/assets/img/emoji/emotion_145.png.js"),"../../../../shared/assets/img/emoji/emotion_146.png":()=>import("../../../../shared/assets/img/emoji/emotion_146.png.js"),"../../../../shared/assets/img/emoji/emotion_147.png":()=>import("../../../../shared/assets/img/emoji/emotion_147.png.js"),"../../../../shared/assets/img/emoji/emotion_148.png":()=>import("../../../../shared/assets/img/emoji/emotion_148.png.js"),"../../../../shared/assets/img/emoji/emotion_149.png":()=>import("../../../../shared/assets/img/emoji/emotion_149.png.js"),"../../../../shared/assets/img/emoji/emotion_150.png":()=>import("../../../../shared/assets/img/emoji/emotion_150.png.js"),"../../../../shared/assets/img/emoji/emotion_151.png":()=>import("../../../../shared/assets/img/emoji/emotion_151.png.js"),"../../../../shared/assets/img/emoji/emotion_152.png":()=>import("../../../../shared/assets/img/emoji/emotion_152.png.js"),"../../../../shared/assets/img/emoji/emotion_153.png":()=>import("../../../../shared/assets/img/emoji/emotion_153.png.js"),"../../../../shared/assets/img/emoji/emotion_154.png":()=>import("../../../../shared/assets/img/emoji/emotion_154.png.js"),"../../../../shared/assets/img/emoji/emotion_155.png":()=>import("../../../../shared/assets/img/emoji/emotion_155.png.js"),"../../../../shared/assets/img/emoji/emotion_156.png":()=>import("../../../../shared/assets/img/emoji/emotion_156.png.js"),"../../../../shared/assets/img/emoji/emotion_157.png":()=>import("../../../../shared/assets/img/emoji/emotion_157.png.js"),"../../../../shared/assets/img/emoji/emotion_158.png":()=>import("../../../../shared/assets/img/emoji/emotion_158.png.js"),"../../../../shared/assets/img/emoji/emotion_159.png":()=>import("../../../../shared/assets/img/emoji/emotion_159.png.js"),"../../../../shared/assets/img/emoji/emotion_160.png":()=>import("../../../../shared/assets/img/emoji/emotion_160.png.js"),"../../../../shared/assets/img/emoji/emotion_161.png":()=>import("../../../../shared/assets/img/emoji/emotion_161.png.js"),"../../../../shared/assets/img/emoji/emotion_162.png":()=>import("../../../../shared/assets/img/emoji/emotion_162.png.js"),"../../../../shared/assets/img/emoji/emotion_163.png":()=>import("../../../../shared/assets/img/emoji/emotion_163.png.js"),"../../../../shared/assets/img/emoji/emotion_164.png":()=>import("../../../../shared/assets/img/emoji/emotion_164.png.js"),"../../../../shared/assets/img/emoji/emotion_165.png":()=>import("../../../../shared/assets/img/emoji/emotion_165.png.js"),"../../../../shared/assets/img/emoji/emotion_166.png":()=>import("../../../../shared/assets/img/emoji/emotion_166.png.js"),"../../../../shared/assets/img/emoji/emotion_167.png":()=>import("../../../../shared/assets/img/emoji/emotion_167.png.js"),"../../../../shared/assets/img/emoji/emotion_168.png":()=>import("../../../../shared/assets/img/emoji/emotion_168.png.js"),"../../../../shared/assets/img/emoji/emotion_169.png":()=>import("../../../../shared/assets/img/emoji/emotion_169.png.js"),"../../../../shared/assets/img/emoji/emotion_170.png":()=>import("../../../../shared/assets/img/emoji/emotion_170.png.js"),"../../../../shared/assets/img/emoji/emotion_171.png":()=>import("../../../../shared/assets/img/emoji/emotion_171.png.js"),"../../../../shared/assets/img/emoji/emotion_172.png":()=>import("../../../../shared/assets/img/emoji/emotion_172.png.js"),"../../../../shared/assets/img/emoji/emotion_173.png":()=>import("../../../../shared/assets/img/emoji/emotion_173.png.js"),"../../../../shared/assets/img/emoji/emotion_174.png":()=>import("../../../../shared/assets/img/emoji/emotion_174.png.js"),"../../../../shared/assets/img/emoji/emotion_175.png":()=>import("../../../../shared/assets/img/emoji/emotion_175.png.js"),"../../../../shared/assets/img/emoji/emotion_176.png":()=>import("../../../../shared/assets/img/emoji/emotion_176.png.js"),"../../../../shared/assets/img/emoji/emotion_177.png":()=>import("../../../../shared/assets/img/emoji/emotion_177.png.js"),"../../../../shared/assets/img/emoji/emotion_178.png":()=>import("../../../../shared/assets/img/emoji/emotion_178.png.js"),"../../../../shared/assets/img/emoji/emotion_179.png":()=>import("../../../../shared/assets/img/emoji/emotion_179.png.js"),"../../../../shared/assets/img/emoji/emotion_180.png":()=>import("../../../../shared/assets/img/emoji/emotion_180.png.js"),"../../../../shared/assets/img/emoji/emotion_181.png":()=>import("../../../../shared/assets/img/emoji/emotion_181.png.js"),"../../../../shared/assets/img/emoji/emotion_182.png":()=>import("../../../../shared/assets/img/emoji/emotion_182.png.js"),"../../../../shared/assets/img/emoji/emotion_183.png":()=>import("../../../../shared/assets/img/emoji/emotion_183.png.js"),"../../../../shared/assets/img/emoji/emotion_184.png":()=>import("../../../../shared/assets/img/emoji/emotion_184.png.js"),"../../../../shared/assets/img/emoji/emotion_185.png":()=>import("../../../../shared/assets/img/emoji/emotion_185.png.js"),"../../../../shared/assets/img/emoji/emotion_186.png":()=>import("../../../../shared/assets/img/emoji/emotion_186.png.js"),"../../../../shared/assets/img/emoji/emotion_187.png":()=>import("../../../../shared/assets/img/emoji/emotion_187.png.js"),"../../../../shared/assets/img/emoji/emotion_188.png":()=>import("../../../../shared/assets/img/emoji/emotion_188.png.js"),"../../../../shared/assets/img/emoji/emotion_189.png":()=>import("../../../../shared/assets/img/emoji/emotion_189.png.js"),"../../../../shared/assets/img/emoji/emotion_190.png":()=>import("../../../../shared/assets/img/emoji/emotion_190.png.js"),"../../../../shared/assets/img/emoji/emotion_191.png":()=>import("../../../../shared/assets/img/emoji/emotion_191.png.js"),"../../../../shared/assets/img/emoji/emotion_192.png":()=>import("../../../../shared/assets/img/emoji/emotion_192.png.js"),"../../../../shared/assets/img/emoji/emotion_193.png":()=>import("../../../../shared/assets/img/emoji/emotion_193.png.js"),"../../../../shared/assets/img/emoji/emotion_194.png":()=>import("../../../../shared/assets/img/emoji/emotion_194.png.js"),"../../../../shared/assets/img/emoji/emotion_195.png":()=>import("../../../../shared/assets/img/emoji/emotion_195.png.js"),"../../../../shared/assets/img/emoji/emotion_196.png":()=>import("../../../../shared/assets/img/emoji/emotion_196.png.js")});for(const o in e){const i=o.replace(/^\.\/(.*)\.\w+$/,"$1").match(/(\d+)\.png$/);e[o]().then((e=>{s[+i[1]]=e.default}))}const o=["微笑","憨笑","色","发呆","老板","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","大笑","惊讶","流汗","广播","自信","你强"];export{o as alt,s as images};
1
+ import{ref as s}from"vue";import e from"../../../../shared/assets/img/emoji/666.gif.js";const o=s([]),i=Object.assign({"../../../../shared/assets/img/emoji/emotion_001.png":()=>import("../../../../shared/assets/img/emoji/emotion_001.png.js"),"../../../../shared/assets/img/emoji/emotion_002.png":()=>import("../../../../shared/assets/img/emoji/emotion_002.png.js"),"../../../../shared/assets/img/emoji/emotion_003.png":()=>import("../../../../shared/assets/img/emoji/emotion_003.png.js"),"../../../../shared/assets/img/emoji/emotion_004.png":()=>import("../../../../shared/assets/img/emoji/emotion_004.png.js"),"../../../../shared/assets/img/emoji/emotion_005.png":()=>import("../../../../shared/assets/img/emoji/emotion_005.png.js"),"../../../../shared/assets/img/emoji/emotion_006.png":()=>import("../../../../shared/assets/img/emoji/emotion_006.png.js"),"../../../../shared/assets/img/emoji/emotion_007.png":()=>import("../../../../shared/assets/img/emoji/emotion_007.png.js"),"../../../../shared/assets/img/emoji/emotion_008.png":()=>import("../../../../shared/assets/img/emoji/emotion_008.png.js"),"../../../../shared/assets/img/emoji/emotion_009.png":()=>import("../../../../shared/assets/img/emoji/emotion_009.png.js"),"../../../../shared/assets/img/emoji/emotion_010.png":()=>import("../../../../shared/assets/img/emoji/emotion_010.png.js"),"../../../../shared/assets/img/emoji/emotion_011.png":()=>import("../../../../shared/assets/img/emoji/emotion_011.png.js"),"../../../../shared/assets/img/emoji/emotion_012.png":()=>import("../../../../shared/assets/img/emoji/emotion_012.png.js"),"../../../../shared/assets/img/emoji/emotion_013.png":()=>import("../../../../shared/assets/img/emoji/emotion_013.png.js"),"../../../../shared/assets/img/emoji/emotion_014.png":()=>import("../../../../shared/assets/img/emoji/emotion_014.png.js"),"../../../../shared/assets/img/emoji/emotion_015.png":()=>import("../../../../shared/assets/img/emoji/emotion_015.png.js"),"../../../../shared/assets/img/emoji/emotion_016.png":()=>import("../../../../shared/assets/img/emoji/emotion_016.png.js"),"../../../../shared/assets/img/emoji/emotion_017.png":()=>import("../../../../shared/assets/img/emoji/emotion_017.png.js"),"../../../../shared/assets/img/emoji/emotion_018.png":()=>import("../../../../shared/assets/img/emoji/emotion_018.png.js"),"../../../../shared/assets/img/emoji/emotion_019.png":()=>import("../../../../shared/assets/img/emoji/emotion_019.png.js"),"../../../../shared/assets/img/emoji/emotion_020.png":()=>import("../../../../shared/assets/img/emoji/emotion_020.png.js"),"../../../../shared/assets/img/emoji/emotion_021.png":()=>import("../../../../shared/assets/img/emoji/emotion_021.png.js"),"../../../../shared/assets/img/emoji/emotion_022.png":()=>import("../../../../shared/assets/img/emoji/emotion_022.png.js"),"../../../../shared/assets/img/emoji/emotion_023.png":()=>import("../../../../shared/assets/img/emoji/emotion_023.png.js"),"../../../../shared/assets/img/emoji/emotion_024.png":()=>import("../../../../shared/assets/img/emoji/emotion_024.png.js"),"../../../../shared/assets/img/emoji/emotion_025.png":()=>import("../../../../shared/assets/img/emoji/emotion_025.png.js"),"../../../../shared/assets/img/emoji/emotion_026.png":()=>import("../../../../shared/assets/img/emoji/emotion_026.png.js"),"../../../../shared/assets/img/emoji/emotion_027.png":()=>import("../../../../shared/assets/img/emoji/emotion_027.png.js"),"../../../../shared/assets/img/emoji/emotion_028.png":()=>import("../../../../shared/assets/img/emoji/emotion_028.png.js"),"../../../../shared/assets/img/emoji/emotion_029.png":()=>import("../../../../shared/assets/img/emoji/emotion_029.png.js"),"../../../../shared/assets/img/emoji/emotion_030.png":()=>import("../../../../shared/assets/img/emoji/emotion_030.png.js"),"../../../../shared/assets/img/emoji/emotion_031.png":()=>import("../../../../shared/assets/img/emoji/emotion_031.png.js"),"../../../../shared/assets/img/emoji/emotion_032.png":()=>import("../../../../shared/assets/img/emoji/emotion_032.png.js"),"../../../../shared/assets/img/emoji/emotion_033.png":()=>import("../../../../shared/assets/img/emoji/emotion_033.png.js"),"../../../../shared/assets/img/emoji/emotion_034.png":()=>import("../../../../shared/assets/img/emoji/emotion_034.png.js"),"../../../../shared/assets/img/emoji/emotion_035.png":()=>import("../../../../shared/assets/img/emoji/emotion_035.png.js"),"../../../../shared/assets/img/emoji/emotion_036.png":()=>import("../../../../shared/assets/img/emoji/emotion_036.png.js"),"../../../../shared/assets/img/emoji/emotion_037.png":()=>import("../../../../shared/assets/img/emoji/emotion_037.png.js"),"../../../../shared/assets/img/emoji/emotion_038.png":()=>import("../../../../shared/assets/img/emoji/emotion_038.png.js"),"../../../../shared/assets/img/emoji/emotion_039.png":()=>import("../../../../shared/assets/img/emoji/emotion_039.png.js"),"../../../../shared/assets/img/emoji/emotion_040.png":()=>import("../../../../shared/assets/img/emoji/emotion_040.png.js"),"../../../../shared/assets/img/emoji/emotion_041.png":()=>import("../../../../shared/assets/img/emoji/emotion_041.png.js"),"../../../../shared/assets/img/emoji/emotion_042.png":()=>import("../../../../shared/assets/img/emoji/emotion_042.png.js"),"../../../../shared/assets/img/emoji/emotion_043.png":()=>import("../../../../shared/assets/img/emoji/emotion_043.png.js"),"../../../../shared/assets/img/emoji/emotion_044.png":()=>import("../../../../shared/assets/img/emoji/emotion_044.png.js"),"../../../../shared/assets/img/emoji/emotion_045.png":()=>import("../../../../shared/assets/img/emoji/emotion_045.png.js"),"../../../../shared/assets/img/emoji/emotion_046.png":()=>import("../../../../shared/assets/img/emoji/emotion_046.png.js"),"../../../../shared/assets/img/emoji/emotion_047.png":()=>import("../../../../shared/assets/img/emoji/emotion_047.png.js"),"../../../../shared/assets/img/emoji/emotion_048.png":()=>import("../../../../shared/assets/img/emoji/emotion_048.png.js"),"../../../../shared/assets/img/emoji/emotion_049.png":()=>import("../../../../shared/assets/img/emoji/emotion_049.png.js"),"../../../../shared/assets/img/emoji/emotion_050.png":()=>import("../../../../shared/assets/img/emoji/emotion_050.png.js"),"../../../../shared/assets/img/emoji/emotion_051.png":()=>import("../../../../shared/assets/img/emoji/emotion_051.png.js"),"../../../../shared/assets/img/emoji/emotion_052.png":()=>import("../../../../shared/assets/img/emoji/emotion_052.png.js"),"../../../../shared/assets/img/emoji/emotion_053.png":()=>import("../../../../shared/assets/img/emoji/emotion_053.png.js"),"../../../../shared/assets/img/emoji/emotion_054.png":()=>import("../../../../shared/assets/img/emoji/emotion_054.png.js"),"../../../../shared/assets/img/emoji/emotion_055.png":()=>import("../../../../shared/assets/img/emoji/emotion_055.png.js"),"../../../../shared/assets/img/emoji/emotion_056.png":()=>import("../../../../shared/assets/img/emoji/emotion_056.png.js"),"../../../../shared/assets/img/emoji/emotion_057.png":()=>import("../../../../shared/assets/img/emoji/emotion_057.png.js"),"../../../../shared/assets/img/emoji/emotion_058.png":()=>import("../../../../shared/assets/img/emoji/emotion_058.png.js"),"../../../../shared/assets/img/emoji/emotion_059.png":()=>import("../../../../shared/assets/img/emoji/emotion_059.png.js"),"../../../../shared/assets/img/emoji/emotion_060.png":()=>import("../../../../shared/assets/img/emoji/emotion_060.png.js"),"../../../../shared/assets/img/emoji/emotion_061.png":()=>import("../../../../shared/assets/img/emoji/emotion_061.png.js"),"../../../../shared/assets/img/emoji/emotion_062.png":()=>import("../../../../shared/assets/img/emoji/emotion_062.png.js"),"../../../../shared/assets/img/emoji/emotion_063.png":()=>import("../../../../shared/assets/img/emoji/emotion_063.png.js"),"../../../../shared/assets/img/emoji/emotion_064.png":()=>import("../../../../shared/assets/img/emoji/emotion_064.png.js"),"../../../../shared/assets/img/emoji/emotion_065.png":()=>import("../../../../shared/assets/img/emoji/emotion_065.png.js"),"../../../../shared/assets/img/emoji/emotion_066.png":()=>import("../../../../shared/assets/img/emoji/emotion_066.png.js"),"../../../../shared/assets/img/emoji/emotion_067.png":()=>import("../../../../shared/assets/img/emoji/emotion_067.png.js"),"../../../../shared/assets/img/emoji/emotion_068.png":()=>import("../../../../shared/assets/img/emoji/emotion_068.png.js"),"../../../../shared/assets/img/emoji/emotion_069.png":()=>import("../../../../shared/assets/img/emoji/emotion_069.png.js"),"../../../../shared/assets/img/emoji/emotion_070.png":()=>import("../../../../shared/assets/img/emoji/emotion_070.png.js"),"../../../../shared/assets/img/emoji/emotion_071.png":()=>import("../../../../shared/assets/img/emoji/emotion_071.png.js"),"../../../../shared/assets/img/emoji/emotion_072.png":()=>import("../../../../shared/assets/img/emoji/emotion_072.png.js"),"../../../../shared/assets/img/emoji/emotion_073.png":()=>import("../../../../shared/assets/img/emoji/emotion_073.png.js"),"../../../../shared/assets/img/emoji/emotion_074.png":()=>import("../../../../shared/assets/img/emoji/emotion_074.png.js"),"../../../../shared/assets/img/emoji/emotion_075.png":()=>import("../../../../shared/assets/img/emoji/emotion_075.png.js"),"../../../../shared/assets/img/emoji/emotion_076.png":()=>import("../../../../shared/assets/img/emoji/emotion_076.png.js"),"../../../../shared/assets/img/emoji/emotion_077.png":()=>import("../../../../shared/assets/img/emoji/emotion_077.png.js"),"../../../../shared/assets/img/emoji/emotion_078.png":()=>import("../../../../shared/assets/img/emoji/emotion_078.png.js"),"../../../../shared/assets/img/emoji/emotion_079.png":()=>import("../../../../shared/assets/img/emoji/emotion_079.png.js"),"../../../../shared/assets/img/emoji/emotion_080.png":()=>import("../../../../shared/assets/img/emoji/emotion_080.png.js"),"../../../../shared/assets/img/emoji/emotion_081.png":()=>import("../../../../shared/assets/img/emoji/emotion_081.png.js"),"../../../../shared/assets/img/emoji/emotion_082.png":()=>import("../../../../shared/assets/img/emoji/emotion_082.png.js"),"../../../../shared/assets/img/emoji/emotion_083.png":()=>import("../../../../shared/assets/img/emoji/emotion_083.png.js"),"../../../../shared/assets/img/emoji/emotion_084.png":()=>import("../../../../shared/assets/img/emoji/emotion_084.png.js"),"../../../../shared/assets/img/emoji/emotion_085.png":()=>import("../../../../shared/assets/img/emoji/emotion_085.png.js"),"../../../../shared/assets/img/emoji/emotion_086.png":()=>import("../../../../shared/assets/img/emoji/emotion_086.png.js"),"../../../../shared/assets/img/emoji/emotion_087.png":()=>import("../../../../shared/assets/img/emoji/emotion_087.png.js"),"../../../../shared/assets/img/emoji/emotion_088.png":()=>import("../../../../shared/assets/img/emoji/emotion_088.png.js"),"../../../../shared/assets/img/emoji/emotion_089.png":()=>import("../../../../shared/assets/img/emoji/emotion_089.png.js"),"../../../../shared/assets/img/emoji/emotion_090.png":()=>import("../../../../shared/assets/img/emoji/emotion_090.png.js"),"../../../../shared/assets/img/emoji/emotion_091.png":()=>import("../../../../shared/assets/img/emoji/emotion_091.png.js"),"../../../../shared/assets/img/emoji/emotion_092.png":()=>import("../../../../shared/assets/img/emoji/emotion_092.png.js"),"../../../../shared/assets/img/emoji/emotion_093.png":()=>import("../../../../shared/assets/img/emoji/emotion_093.png.js"),"../../../../shared/assets/img/emoji/emotion_094.png":()=>import("../../../../shared/assets/img/emoji/emotion_094.png.js"),"../../../../shared/assets/img/emoji/emotion_095.png":()=>import("../../../../shared/assets/img/emoji/emotion_095.png.js"),"../../../../shared/assets/img/emoji/emotion_096.png":()=>import("../../../../shared/assets/img/emoji/emotion_096.png.js"),"../../../../shared/assets/img/emoji/emotion_097.png":()=>import("../../../../shared/assets/img/emoji/emotion_097.png.js"),"../../../../shared/assets/img/emoji/emotion_098.png":()=>import("../../../../shared/assets/img/emoji/emotion_098.png.js"),"../../../../shared/assets/img/emoji/emotion_099.png":()=>import("../../../../shared/assets/img/emoji/emotion_099.png.js"),"../../../../shared/assets/img/emoji/emotion_100.png":()=>import("../../../../shared/assets/img/emoji/emotion_100.png.js"),"../../../../shared/assets/img/emoji/emotion_101.png":()=>import("../../../../shared/assets/img/emoji/emotion_101.png.js"),"../../../../shared/assets/img/emoji/emotion_102.png":()=>import("../../../../shared/assets/img/emoji/emotion_102.png.js"),"../../../../shared/assets/img/emoji/emotion_103.png":()=>import("../../../../shared/assets/img/emoji/emotion_103.png.js"),"../../../../shared/assets/img/emoji/emotion_104.png":()=>import("../../../../shared/assets/img/emoji/emotion_104.png.js"),"../../../../shared/assets/img/emoji/emotion_105.png":()=>import("../../../../shared/assets/img/emoji/emotion_105.png.js"),"../../../../shared/assets/img/emoji/emotion_106.png":()=>import("../../../../shared/assets/img/emoji/emotion_106.png.js"),"../../../../shared/assets/img/emoji/emotion_107.png":()=>import("../../../../shared/assets/img/emoji/emotion_107.png.js"),"../../../../shared/assets/img/emoji/emotion_108.png":()=>import("../../../../shared/assets/img/emoji/emotion_108.png.js"),"../../../../shared/assets/img/emoji/emotion_109.png":()=>import("../../../../shared/assets/img/emoji/emotion_109.png.js"),"../../../../shared/assets/img/emoji/emotion_110.png":()=>import("../../../../shared/assets/img/emoji/emotion_110.png.js"),"../../../../shared/assets/img/emoji/emotion_111.png":()=>import("../../../../shared/assets/img/emoji/emotion_111.png.js"),"../../../../shared/assets/img/emoji/emotion_112.png":()=>import("../../../../shared/assets/img/emoji/emotion_112.png.js"),"../../../../shared/assets/img/emoji/emotion_113.png":()=>import("../../../../shared/assets/img/emoji/emotion_113.png.js"),"../../../../shared/assets/img/emoji/emotion_114.png":()=>import("../../../../shared/assets/img/emoji/emotion_114.png.js"),"../../../../shared/assets/img/emoji/emotion_115.png":()=>import("../../../../shared/assets/img/emoji/emotion_115.png.js"),"../../../../shared/assets/img/emoji/emotion_116.png":()=>import("../../../../shared/assets/img/emoji/emotion_116.png.js"),"../../../../shared/assets/img/emoji/emotion_117.png":()=>import("../../../../shared/assets/img/emoji/emotion_117.png.js"),"../../../../shared/assets/img/emoji/emotion_118.png":()=>import("../../../../shared/assets/img/emoji/emotion_118.png.js"),"../../../../shared/assets/img/emoji/emotion_119.png":()=>import("../../../../shared/assets/img/emoji/emotion_119.png.js"),"../../../../shared/assets/img/emoji/emotion_120.png":()=>import("../../../../shared/assets/img/emoji/emotion_120.png.js"),"../../../../shared/assets/img/emoji/emotion_121.png":()=>import("../../../../shared/assets/img/emoji/emotion_121.png.js"),"../../../../shared/assets/img/emoji/emotion_122.png":()=>import("../../../../shared/assets/img/emoji/emotion_122.png.js"),"../../../../shared/assets/img/emoji/emotion_123.png":()=>import("../../../../shared/assets/img/emoji/emotion_123.png.js"),"../../../../shared/assets/img/emoji/emotion_124.png":()=>import("../../../../shared/assets/img/emoji/emotion_124.png.js"),"../../../../shared/assets/img/emoji/emotion_125.png":()=>import("../../../../shared/assets/img/emoji/emotion_125.png.js"),"../../../../shared/assets/img/emoji/emotion_126.png":()=>import("../../../../shared/assets/img/emoji/emotion_126.png.js"),"../../../../shared/assets/img/emoji/emotion_127.png":()=>import("../../../../shared/assets/img/emoji/emotion_127.png.js"),"../../../../shared/assets/img/emoji/emotion_128.png":()=>import("../../../../shared/assets/img/emoji/emotion_128.png.js"),"../../../../shared/assets/img/emoji/emotion_129.png":()=>import("../../../../shared/assets/img/emoji/emotion_129.png.js"),"../../../../shared/assets/img/emoji/emotion_130.png":()=>import("../../../../shared/assets/img/emoji/emotion_130.png.js"),"../../../../shared/assets/img/emoji/emotion_131.png":()=>import("../../../../shared/assets/img/emoji/emotion_131.png.js"),"../../../../shared/assets/img/emoji/emotion_132.png":()=>import("../../../../shared/assets/img/emoji/emotion_132.png.js"),"../../../../shared/assets/img/emoji/emotion_133.png":()=>import("../../../../shared/assets/img/emoji/emotion_133.png.js"),"../../../../shared/assets/img/emoji/emotion_134.png":()=>import("../../../../shared/assets/img/emoji/emotion_134.png.js"),"../../../../shared/assets/img/emoji/emotion_135.png":()=>import("../../../../shared/assets/img/emoji/emotion_135.png.js"),"../../../../shared/assets/img/emoji/emotion_136.png":()=>import("../../../../shared/assets/img/emoji/emotion_136.png.js"),"../../../../shared/assets/img/emoji/emotion_137.png":()=>import("../../../../shared/assets/img/emoji/emotion_137.png.js"),"../../../../shared/assets/img/emoji/emotion_138.png":()=>import("../../../../shared/assets/img/emoji/emotion_138.png.js"),"../../../../shared/assets/img/emoji/emotion_139.png":()=>import("../../../../shared/assets/img/emoji/emotion_139.png.js"),"../../../../shared/assets/img/emoji/emotion_140.png":()=>import("../../../../shared/assets/img/emoji/emotion_140.png.js"),"../../../../shared/assets/img/emoji/emotion_141.png":()=>import("../../../../shared/assets/img/emoji/emotion_141.png.js"),"../../../../shared/assets/img/emoji/emotion_142.png":()=>import("../../../../shared/assets/img/emoji/emotion_142.png.js"),"../../../../shared/assets/img/emoji/emotion_143.png":()=>import("../../../../shared/assets/img/emoji/emotion_143.png.js"),"../../../../shared/assets/img/emoji/emotion_144.png":()=>import("../../../../shared/assets/img/emoji/emotion_144.png.js"),"../../../../shared/assets/img/emoji/emotion_145.png":()=>import("../../../../shared/assets/img/emoji/emotion_145.png.js"),"../../../../shared/assets/img/emoji/emotion_146.png":()=>import("../../../../shared/assets/img/emoji/emotion_146.png.js"),"../../../../shared/assets/img/emoji/emotion_147.png":()=>import("../../../../shared/assets/img/emoji/emotion_147.png.js"),"../../../../shared/assets/img/emoji/emotion_148.png":()=>import("../../../../shared/assets/img/emoji/emotion_148.png.js"),"../../../../shared/assets/img/emoji/emotion_149.png":()=>import("../../../../shared/assets/img/emoji/emotion_149.png.js"),"../../../../shared/assets/img/emoji/emotion_150.png":()=>import("../../../../shared/assets/img/emoji/emotion_150.png.js"),"../../../../shared/assets/img/emoji/emotion_151.png":()=>import("../../../../shared/assets/img/emoji/emotion_151.png.js"),"../../../../shared/assets/img/emoji/emotion_152.png":()=>import("../../../../shared/assets/img/emoji/emotion_152.png.js"),"../../../../shared/assets/img/emoji/emotion_153.png":()=>import("../../../../shared/assets/img/emoji/emotion_153.png.js"),"../../../../shared/assets/img/emoji/emotion_154.png":()=>import("../../../../shared/assets/img/emoji/emotion_154.png.js"),"../../../../shared/assets/img/emoji/emotion_155.png":()=>import("../../../../shared/assets/img/emoji/emotion_155.png.js"),"../../../../shared/assets/img/emoji/emotion_156.png":()=>import("../../../../shared/assets/img/emoji/emotion_156.png.js"),"../../../../shared/assets/img/emoji/emotion_157.png":()=>import("../../../../shared/assets/img/emoji/emotion_157.png.js"),"../../../../shared/assets/img/emoji/emotion_158.png":()=>import("../../../../shared/assets/img/emoji/emotion_158.png.js"),"../../../../shared/assets/img/emoji/emotion_159.png":()=>import("../../../../shared/assets/img/emoji/emotion_159.png.js"),"../../../../shared/assets/img/emoji/emotion_160.png":()=>import("../../../../shared/assets/img/emoji/emotion_160.png.js"),"../../../../shared/assets/img/emoji/emotion_161.png":()=>import("../../../../shared/assets/img/emoji/emotion_161.png.js"),"../../../../shared/assets/img/emoji/emotion_162.png":()=>import("../../../../shared/assets/img/emoji/emotion_162.png.js"),"../../../../shared/assets/img/emoji/emotion_163.png":()=>import("../../../../shared/assets/img/emoji/emotion_163.png.js"),"../../../../shared/assets/img/emoji/emotion_164.png":()=>import("../../../../shared/assets/img/emoji/emotion_164.png.js"),"../../../../shared/assets/img/emoji/emotion_165.png":()=>import("../../../../shared/assets/img/emoji/emotion_165.png.js"),"../../../../shared/assets/img/emoji/emotion_166.png":()=>import("../../../../shared/assets/img/emoji/emotion_166.png.js"),"../../../../shared/assets/img/emoji/emotion_167.png":()=>import("../../../../shared/assets/img/emoji/emotion_167.png.js"),"../../../../shared/assets/img/emoji/emotion_168.png":()=>import("../../../../shared/assets/img/emoji/emotion_168.png.js"),"../../../../shared/assets/img/emoji/emotion_169.png":()=>import("../../../../shared/assets/img/emoji/emotion_169.png.js"),"../../../../shared/assets/img/emoji/emotion_170.png":()=>import("../../../../shared/assets/img/emoji/emotion_170.png.js"),"../../../../shared/assets/img/emoji/emotion_171.png":()=>import("../../../../shared/assets/img/emoji/emotion_171.png.js"),"../../../../shared/assets/img/emoji/emotion_172.png":()=>import("../../../../shared/assets/img/emoji/emotion_172.png.js"),"../../../../shared/assets/img/emoji/emotion_173.png":()=>import("../../../../shared/assets/img/emoji/emotion_173.png.js"),"../../../../shared/assets/img/emoji/emotion_174.png":()=>import("../../../../shared/assets/img/emoji/emotion_174.png.js"),"../../../../shared/assets/img/emoji/emotion_175.png":()=>import("../../../../shared/assets/img/emoji/emotion_175.png.js"),"../../../../shared/assets/img/emoji/emotion_176.png":()=>import("../../../../shared/assets/img/emoji/emotion_176.png.js"),"../../../../shared/assets/img/emoji/emotion_177.png":()=>import("../../../../shared/assets/img/emoji/emotion_177.png.js"),"../../../../shared/assets/img/emoji/emotion_178.png":()=>import("../../../../shared/assets/img/emoji/emotion_178.png.js"),"../../../../shared/assets/img/emoji/emotion_179.png":()=>import("../../../../shared/assets/img/emoji/emotion_179.png.js"),"../../../../shared/assets/img/emoji/emotion_180.png":()=>import("../../../../shared/assets/img/emoji/emotion_180.png.js"),"../../../../shared/assets/img/emoji/emotion_181.png":()=>import("../../../../shared/assets/img/emoji/emotion_181.png.js"),"../../../../shared/assets/img/emoji/emotion_182.png":()=>import("../../../../shared/assets/img/emoji/emotion_182.png.js"),"../../../../shared/assets/img/emoji/emotion_183.png":()=>import("../../../../shared/assets/img/emoji/emotion_183.png.js"),"../../../../shared/assets/img/emoji/emotion_184.png":()=>import("../../../../shared/assets/img/emoji/emotion_184.png.js"),"../../../../shared/assets/img/emoji/emotion_185.png":()=>import("../../../../shared/assets/img/emoji/emotion_185.png.js"),"../../../../shared/assets/img/emoji/emotion_186.png":()=>import("../../../../shared/assets/img/emoji/emotion_186.png.js"),"../../../../shared/assets/img/emoji/emotion_187.png":()=>import("../../../../shared/assets/img/emoji/emotion_187.png.js"),"../../../../shared/assets/img/emoji/emotion_188.png":()=>import("../../../../shared/assets/img/emoji/emotion_188.png.js"),"../../../../shared/assets/img/emoji/emotion_189.png":()=>import("../../../../shared/assets/img/emoji/emotion_189.png.js"),"../../../../shared/assets/img/emoji/emotion_190.png":()=>import("../../../../shared/assets/img/emoji/emotion_190.png.js"),"../../../../shared/assets/img/emoji/emotion_191.png":()=>import("../../../../shared/assets/img/emoji/emotion_191.png.js"),"../../../../shared/assets/img/emoji/emotion_192.png":()=>import("../../../../shared/assets/img/emoji/emotion_192.png.js"),"../../../../shared/assets/img/emoji/emotion_193.png":()=>import("../../../../shared/assets/img/emoji/emotion_193.png.js"),"../../../../shared/assets/img/emoji/emotion_194.png":()=>import("../../../../shared/assets/img/emoji/emotion_194.png.js"),"../../../../shared/assets/img/emoji/emotion_195.png":()=>import("../../../../shared/assets/img/emoji/emotion_195.png.js"),"../../../../shared/assets/img/emoji/emotion_196.png":()=>import("../../../../shared/assets/img/emoji/emotion_196.png.js")});o.value[0]=e;for(const s in i){const e=s.replace(/^\.\/(.*)\.\w+$/,"$1").match(/(\d+)\.png$/);i[s]().then((s=>{o.value[+e[1]]=s.default}))}const m=["微笑","憨笑","色","发呆","老板","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","大笑","惊讶","流汗","广播","自信","你强"];export{m as alt,o as images};
@@ -1 +1 @@
1
- import{isToday as e,format as t,isYesterday as r}from"date-fns";import{cloneDeep as a}from"lodash-es";import{MESSAGE_TYPE as s}from"../constants/index.js";import{images as n}from"./emoji.js";function i(a){const s=new Date(a);let n,i;if(e(s))n=i=t(s,"HH:mm");else{n=r(s)?"昨天":t(s,"MM-dd");const e=s.getFullYear(),a=(new Date).getFullYear();i=t(s,e<a?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}return{siderMsgTime:n,msgTime:i}}function o(e){return a(e).sort(((e,t)=>e.topping&&!t.topping?-1:!e.topping&&t.topping?1:new Date(t.sortTime).getTime()-new Date(e.sortTime).getTime()))}function p(e){if(!e)return"";const t=e=>new RegExp("\\n*\\["+(e||"")+"(code|pre|div|span|p|table|thead|th|tbody|tr|td|ul|li|ol|li|dl|dt|dd|h2|h3|h4|h5)([\\s\\S]*?)]\\n*","g");return e=e.toString().replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/@(\S+)(\s+?|$)/g,'@<a href="javascript:;">$1</a>$2').replace(t(),"<$1 $2>").replace(t("/"),"</$1>").replace(/\n/g,"<br>")}function c(e){if(!e.chatMessageType)return p(e.lastMessage);switch(e.chatMessageType){case s.TEXT:return p(e.lastMessage);case s.IMAGE:return"[图片]";case s.FILE:return"[文件]";case s.EMOJI:return`<img src=${n[e.lastMessage]}>`;default:return"其他消息"}}export{i as formatTime,o as listSort,c as transformLastMessage,p as transformMessage};
1
+ import{isToday as e,format as t,isYesterday as r}from"date-fns";import{cloneDeep as a}from"lodash-es";import{MESSAGE_TYPE as s}from"../constants/index.js";import{images as n}from"./emoji.js";function i(a){const s=new Date(a);let n,i;if(e(s))n=i=t(s,"HH:mm");else{n=r(s)?"昨天":t(s,"MM-dd");const e=s.getFullYear(),a=(new Date).getFullYear();i=t(s,e<a?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}return{siderMsgTime:n,msgTime:i}}function o(e){return a(e).sort(((e,t)=>e.topping&&!t.topping?-1:!e.topping&&t.topping?1:new Date(t.sortTime).getTime()-new Date(e.sortTime).getTime()))}function l(e){if(!e)return"";const t=e=>new RegExp("\\n*\\["+(e||"")+"(code|pre|div|span|p|table|thead|th|tbody|tr|td|ul|li|ol|li|dl|dt|dd|h2|h3|h4|h5)([\\s\\S]*?)]\\n*","g");return e=e.toString().replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/@(\S+)(\s+?|$)/g,'@<a href="javascript:;">$1</a>$2').replace(t(),"<$1 $2>").replace(t("/"),"</$1>").replace(/\n/g,"<br>")}function p(e){if(!e.chatMessageType)return l(e.lastMessage);switch(e.chatMessageType){case s.TEXT:return l(e.lastMessage);case s.IMAGE:return"[图片]";case s.FILE:return"[文件]";case s.EMOJI:return`<img alt=${e.lastMessage} src=${n.value[e.lastMessage]}>`;default:return"其他消息"}}export{i as formatTime,o as listSort,p as transformLastMessage,l as transformMessage};