"use strict";var r=Object.defineProperty;var n=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var a=(e,o,t)=>o in e?r(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,i=(e,o)=>{for(var t in o||(o={}))m.call(o,t)&&a(e,t,o[t]);if(n)for(var t of n(o))u.call(o,t)&&a(e,t,o[t]);return e};var s=require("../../../../../../common/vendor.js");const d=s.defineComponent({props:{data:{type:Object,default:()=>({})},messageData:{type:Object,default:()=>({})}},setup(e,o){const t=s.reactive({data:{},extension:{},isCustom:"",payload:{},message:{}});return s.watchEffect(()=>{t.data=e.data,t.message=e.messageData,t.isCustom=e.data.message.payload.data,t.payload=e.data.message.payload,t.extension=JSON.parse(e.data.message.payload.extension)}),i({},s.toRefs(t))}}),p=d;function C(e,o,t,f,g,y){return s.e({a:e.isCustom==="order"},e.isCustom==="order"?{b:s.t(e.extension.patientName),c:s.t(e.extension.sex),d:s.t(e.extension.mobile),e:s.t(e.extension.duration),f:s.t(e.extension.isVisit),g:s.t(e.extension.title)}:e.isCustom==="prescribe"?{i:s.t(e.extension.diagnose)}:e.isCustom==="report"?{}:e.isCustom==="follow"?{}:e.isCustom==="drugReport"?{}:e.isCustom==="startInquiry"?{n:s.t(e.extension.title),o:s.n("content content-"+e.message.flow)}:e.isCustom==="finishInquiry"?{q:s.t(e.extension.title),r:s.n("content content-"+e.message.flow)}:{s:s.t(e.data.custom),t:s.n("content content-"+e.message.flow)},{h:e.isCustom==="prescribe",j:e.isCustom==="report",k:e.isCustom==="follow",l:e.isCustom==="drugReport",m:e.isCustom==="startInquiry",p:e.isCustom==="finishInquiry"})}var l=s._export_sfc(p,[["render",C],["__scopeId","data-v-261d728a"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages/TUIKit/TUIPages/TUIChat/components/message-elements/message-custom.vue"]]);wx.createComponent(l);
