maiResult-legacy.6117e652.js 4.2 KB

1
  1. System.register(["./vendor-legacy.ab945ac3.js","./Loading-legacy.9c349192.js","./index-legacy.c1916c65.js"],(function(e){"use strict";var t,s,n,o,c,i,a;return{setters:[function(e){t=e.d,s=e.h,n=e.H,o=e.T,c=e.a},function(e){i=e.B},function(e){a=e.c}],execute:function(){const u={qi:4,blood:4,fluids:4,humor:4},r=(e("d",(e=>{const t={title:[],desc:[]};return e?(e.forEach((e=>{t.title.push(e.name_cn),t.desc.push(e.explaination_cn)})),t):t})),{new_food_propose:"饮食",new_sport_propose:"运动",other_propose:"生活"}),l=(e("e",(e=>{const t=["qi","blood","fluids","humor"],s={level:Object.assign({},u),text:[],desc:[]};for(const o of t){const t=e[o];t&&(s.level[o]=(n=t.score)<50?7:n>=50&&n<80?6:n>=80&&n<90?5:n>=90&&n<=110?4:n>110&&n<120?3:n>=120&&n<150?2:n>=150?1:4,s.text.push(t.text),s.desc.push(t.desc))}var n;return s})),e("f",(e=>{const t=["phlegm","dampness","chill","fever"],s={value:[],text:[],desc:[]};for(const n of t){const t=e[n];t&&(t.score>0&&(s.value.push(n),s.desc.push(t.desc)),t.text&&s.text.push(t.text))}return s})),e("h",(e=>{const t=["new_food_propose","new_sport_propose","other_propose"],s=[];for(const n of t){const t=e[n];t&&t[n]&&s.push({title:r[n],desc:t[n]})}return s})),e("i",(e=>{const t={text:[],desc:[]};return e.desc&&(t.text=[...e.desc.desc]),e.desc_detail&&(t.desc=[...e.desc_detail.desc_detail]),t})),e("b",(e=>{const t=[];return["taiyang","yangming","shaoyang","shaoyin","jueyin","taiyin"].forEach((s=>{e[s]&&t.push({key:s,text:e[s]})})),t})),{shu:"",hua:"",xian:"",fu:"",kong:""}),h=(e("g",((e,t,s)=>{const n=(e=>{const t={shu:0,chi:0};return e>180?t.shu=6:e<=180&&e>150?t.shu=5:e<=150&&e>130?t.shu=4:e<=130&&e>110?t.shu=3:e<=110&&e>100?t.shu=2:e<=100&&e>=90?t.shu=1:e<90&&e>60?(t.shu=0,t.chi=0):e<=60&&e>50?t.chi=1:e<=50&&e>45?t.chi=2:e<=45&&(t.chi=3),t})(t),o={};let c={shu:0,chi:0,hua:0,xi:0,xian:0,ruan:0,fu:0,chen:0,kong:0,shi:0};const i=[["shu","chi"],["hua","xi"],["xian","ruan"],["fu","chen"],["kong","shi"]],a=e.xian[0]>e.ruan[0]||e.xian[0]===e.ruan[0]&&e.xian[1]>e.ruan[1],u=n.shu>0;for(const l in e){const t=l;c[t]=e[t][0]}c=Object.assign(Object.assign({},c),n);const r=Object.assign({},l);let h=0;for(const l of i){const e=l[0],t=l[1],s=c[e]-c[t];s>0?(o[e]={level:c[e],division:!1},r[e]="left"):s<0?(r[e]="right",o[t]={level:c[t],division:!1}):(h++,o[e]={level:c[e],division:!1},o[t]={level:c[t],division:!1})}h===i.length&&delete o.hua,o.shu&&(o.shu.division=a),o.fu&&(o.fu.division=!u),o.chen&&(o.chen.division=a);const d={};return s.forEach((e=>{for(const t in o){if(0===o[t].level)continue;let s="";"shu"===t&&a&&(s="2"),"chen"!==t||a||(s="2"),d[`${t}${s}_${e.key}`]=!0}})),{mais:o,duadMai:r,lj:d}})),e=>null!==e&&"object"==typeof e),d=(e("k",((e,t=200)=>e?e.includes("aliyun")?`${e}?x-oss-process=image/resize,h_${t}`.replace(/https:|http:/,""):e:"")),{duration:{type:Number,default:2e3},mask:{type:Boolean,default:!0},message:{type:String,default:""},type:{type:String,default:"text"}}),p=t({name:"Toast",props:d,setup(e){const t=s(!0);return()=>{let s;return clearTimeout(s),s=setTimeout((()=>{t.value=!1}),e.duration),n(o,{name:"fade"},{default:()=>n(i,{mask:e.mask,message:e.message,type:e.type,visible:t.value})})}}}),f={duration:2e3,mask:!0,message:"",type:"text"},m=(e,t)=>h(e)?{...f,...e,type:t}:{...f,message:e,type:t},y=(e,t)=>{const s={...m(t,e)};["success","fail","text"].includes(s.type)||(s.type="text");const n=s.duration,o=document.createElement("div");o.style.display="block",o.style.color="white",document.body.appendChild(o);const i=c(p,{duration:n,mask:(null==s?void 0:s.mask)||!0,message:(null==s?void 0:s.message)||"",type:null==s?void 0:s.type});i.mount(o),setTimeout((()=>{i.unmount(),o.remove()}),n+300)},g=e=>t=>{y(e,t)},v=e("T",(e=>{h(e)?y(e.type,e):y(f.type,e)}));v.success=g("success"),v.fail=g("fail"),v.text=g("text"),e("c",((e,t={cun:"",guan:"",chi:"",summary:[]})=>{const s={branch:{...a},total:""};return e?(["cun","guan","chi"].forEach((n=>{s.branch[n]={mai:(t[n]||"").replace(/,/g,"、"),value:e[n]||""}})),s.total=(t.summary||[]).join(" "),s):s})),e("j",(e=>{if(!e)return;const t=e.split("-");return 3===t.length?{name:t[0],mac:t[2],v:`${parseInt(t[1])}.X`}:void 0})),e("a",((e,t)=>t?{0:"Left hand",1:"Right hand",2:"Both hands"}[e]||"":{0:"左手",1:"右手",2:"总体"}[e]||""))}}}));