!function(){var t=document.createElement("style");t.innerHTML='.chart-channel{overflow:hidden;width:45%;height:500px;padding:0 20px}.channel-wrp{backface-visibility:hidden;width:1200px!important;height:1200px!important;position:relative}.channel-wrp .bg{position:absolute;width:100%;height:100%;background-image:url(./image/channel_bg.png);background-size:100% 100%;top:0;left:0}.channel-wrp .result-canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.channel-wrp .r-2{transform:rotate(45deg)}.channel-wrp .r-3{transform:rotate(90deg)}.channel-wrp .r-4{transform:rotate(-45deg)}.channel-wrp .channel{position:absolute;width:86%;height:86%;left:7%;top:7%}.channel-wrp .channel .item{width:220px;position:absolute;height:100%;left:50%;margin-left:-110px;text-align:center}.channel-wrp .channel .top,.channel-wrp .channel .bottom{position:absolute;width:100%}.channel-wrp .channel .top{top:0;transform:translateY(-100%)}.channel-wrp .channel .bottom{bottom:0;transform:translateY(100%)}.channel-wrp .channel .txt{border:.5px solid #f4bdbd;color:#000;display:block;width:50px;font-size:1.8rem;line-height:2.4rem;margin:auto;border-bottom:none}.channel-wrp .channel .txt:last-child{border-bottom:.5px solid #f4bdbd}.channel-wrp .channel .r-4 .left,.channel-wrp .channel .r-2 .right{transform:rotate(-12deg);margin-left:10px}.channel-wrp .channel .left{float:left}.channel-wrp .channel .r-4 .right,.channel-wrp .channel .r-2 .left{transform:rotate(12deg);margin-right:10px}.channel-wrp .channel .right{float:right}.channel-wrp .channel .r-3 .top{transform:rotate(-90deg) translate(50px)}.channel-wrp .channel .r-3 .bottom{transform:rotate(-90deg) translate(-50px)}.channel-wrp .channel .on.txt{background-color:#d5454b;color:#fff;border-color:#d5454b}.channel-wrp .mai{position:absolute;width:75%;height:75%;left:12.5%;top:12.5%}.channel-wrp .mai .item{width:40px;position:absolute;height:100%;left:50%;margin-left:-20px;text-align:center}.channel-wrp .mai .top{position:absolute;width:100%;top:0;transform:translateY(-100%)}.channel-wrp .mai .bottom{position:absolute;width:100%;bottom:0;transform:translateY(100%)}.channel-wrp .mai .txt{font-size:2rem}.channel-wrp .mai .on.txt{color:#d5454b}.channel-wrp .mai .r-3 .top{transform:rotate(-90deg) translate(27px)}.channel-wrp .mai .r-3 .bottom{transform:rotate(-90deg) translate(-27px)}body.pc{font-size:14px;min-width:1140px}body.pc .wrap{width:1024px;padding:64px 0;margin:auto;display:flex;flex-direction:column;position:relative}body.pc .build-report{position:fixed;width:1024px;text-align:right;z-index:100}body.pc .build-report span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .build-report2{position:fixed;width:950px;text-align:right;z-index:100}body.pc .build-report2 span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .btmpoint{font-size:1.7rem;line-height:2;width:100%;text-align:center;font-weight:600}body.pc .btmbutton{width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;left:43%;bottom:30px}body.pc .mai-item{letter-spacing:1px}body.pc .mai-item.device-info{border-top:2px solid #e5e9f2;padding:8px;margin-top:12px}body.pc .mai-item h1.title{font-size:26px;color:#39caaf;border-left:40px solid #39caaf;padding-left:12px;line-height:40px;font-weight:500}body.pc .mai-item h1.title.yellow{border-color:#f5b52a;color:#f5b52a}body.pc .mai-item h1.title.blue{border-color:#2291fb;color:#2291fb}body.pc .mai-item h2.sub-title{font-size:20px;font-weight:900}body.pc .item-border-top{border-top:2px solid #e5e9f2;margin-top:16px;padding-top:36px}body.pc .mai{font-size:24px;line-height:2;padding-left:53px}body.pc .legend{border:1px solid #eff2f7;background-color:#fbfbfb;border-radius:6px;padding:10px 10px 10px 0;display:flex;justify-content:space-between;align-items:center;text-align:center;color:#475669;font-size:12px;min-height:60px}body.pc .legend>.title{border-right:1px solid #e5e9f2;width:52px;color:#8492a6}body.pc .legend .item{border-radius:1px}body.pc .legend-mai{width:280px;margin-left:53px}body.pc .legend-mai .item{background-image:url(./image/3d_unhealthy.png);background-position:top;background-size:80px 25px;background-repeat:no-repeat;padding-top:30px;width:80px}body.pc .legend-mai .item2{background-image:url(./image/3d_healthy.png)}body.pc .hand-branch_legend{margin-left:53px;display:flex;flex-direction:column;align-items:center}body.pc .legend-branch .title{margin-right:12px}body.pc .legend-branch .item{border-left:#f7f3e9 solid 20px;padding-left:8px;font-weight:400;line-height:1}body.pc .legend-branch .item2{border-color:#a3e5d9;margin-top:10px}body.pc .paragraph-wrap{padding-left:52px;padding-top:12px;margin-bottom:20px}body.pc .paragraph{padding-top:12px}body.pc .paragraph h3{font-weight:400;font-size:18px}body.pc .paragraph-p{margin-bottom:16px;text-align:justify;font-size:18px}body.pc .paragraph-p:last-child{margin-bottom:0}body.pc .legend-channel{width:260px;margin-bottom:4px}body.pc .legend-channel .item{position:relative;line-height:16px}body.pc .legend-channel .item:before{position:absolute;content:"";width:24px;height:16px;background-color:#c23534;left:0}body.pc .legend-channel .item2:before{background-color:#fff;border:1px solid #f1b5b7}body.pc .legend-dialectical{width:260px}body.pc .legend-dialectical>div>div{text-align:left}body.pc .legend-dialectical .dialectical{display:flex;flex-wrap:wrap;width:180px}body.pc .legend-dialectical .dialectical .item{width:50%;border-left:#3bdcc9 solid 24px;padding-left:8px;font-weight:400;line-height:16px;margin-top:8px}body.pc .legend-dialectical .dialectical .item2{border-color:#fbb74a}body.pc .legend-dialectical .dialectical .item3{border-color:#fee273}body.pc .legend-dialectical .dialectical .item4{border-color:#de4d56}body.pc .user-info{margin-bottom:40px;width:360px;display:flex;justify-content:space-between;text-align:center}body.pc .user-info .user{width:220px}body.pc .user-info .user p{color:#99a9bf}body.pc .user-info .name{font-size:22px;padding:6px 0;line-height:1.5;min-height:45px}body.pc .user-info .name span{font-size:10px;padding-left:10px}body.pc .user-info .portrait{margin:auto;width:94px;height:94px;border:1px solid #eff2f7;border-radius:10px;background-size:cover;background-position:center}body.pc .mai-hand{width:100px;height:180px}body.pc .mai-total h1.title{margin-bottom:20px}body.pc .mai-desc{padding-top:0}body.pc .heart-rate{background-position:left;background-size:30px;padding-left:52px;font-size:16px;font-weight:bolder;line-height:2.5}body.pc .user-desc-three{display:flex;justify-content:space-between;align-items:center}body.pc .user-desc-three .user-desc{width:380px}body.pc .user-desc-three .three{width:640px}body.pc .user-desc-three .three .loading-component{height:512px}body.pc .stability .paragraph{padding-top:0}body.pc .stability .paragraph p{margin-bottom:0;font-size:12px;letter-spacing:0;color:#99a9bf}body.pc .stability .num{font-size:40px;font-weight:bolder;padding-right:50px}body.pc .stability .num i{font-size:24px;font-style:normal}body.pc .pc-branch-warp{min-height:444px;display:flex;align-items:center;justify-content:space-between}body.pc .pc-branch-warp .loading-component{height:444px;width:780px}body.pc .pc-branch{width:780px;display:flex;justify-content:space-between;text-align:center}body.pc .pc-branch .branch-canvas-wrap{margin:auto}body.pc .mai-channel{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-channel .channel-content{padding-left:52px;width:100%}body.pc .mai-channel .chart-channel{margin:0;height:900px}body.pc .mai-qxjy{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-qxjy .qxjy-content{padding-left:52px;width:100%;display:flex;align-items:center;justify-content:space-between}body.pc .mai-qxjy .chart-qxjy{width:540px}body.pc .mai-qxjy .chart-qxjy .column{width:280px;height:320px}body.pc .mai-qxjy .chart-qxjy .icon{background-size:35px;padding-top:36px}body.pc .mai-heresy{display:flex}body.pc .mai-heresy .desc-heresy{width:100%}body.pc .mai-heresy .chart-heresy{align-items:center}body.pc .mai-heresy .chart-heresy .item{width:132px;background-size:60%;padding-top:80px}html{font-size:10px}.btmbutton{width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;left:43%;bottom:30px}body.print.pc{font-size:1.4rem;width:100%;height:auto;min-width:auto;margin:auto;background-color:#c0cdde}body.print.pc .nop-page-hr{background-color:#c0cdde}body.print.pc .page-num-simple{margin-bottom:40px;margin-left:100px;margin-right:40px;border-top:2px solid #e5e9f2;width:84%;height:70px;display:flex;justify-content:space-between}body.print.pc .page-num-simple .hole-content{position:absolute;display:flex;justify-content:space-between;bottom:0;width:80%;height:60px}body.print.pc .page-num-simple .hole-content .content-warp{margin-top:5px}body.print.pc .page-num-simple .hole-content .content-warp i{display:block;font-style:normal;min-width:20%;text-align:left;font-size:1.4rem}body.print.pc .page-num-simple .hole-content i{font-style:normal}body.print.pc .page-num-simple span{background-color:#8492a6;position:absolute;bottom:0;right:0;width:60px;height:60px;line-height:60px;text-align:center;font-size:3.6rem;color:#fff}body.print.pc .nop-page-content .item-border-top:first-child{position:relative;border-top:none!important;padding-top:0;margin-top:36px}body.print.pc .wrap{width:100%;padding:0;margin:0}body.print.pc .print-home{width:100%;height:100%;background-image:url(./image/print-home.jpg);background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}body.print.pc .print-home .name-wrap{position:absolute;left:42.5%;top:20%;font-size:5rem}body.print.pc .print-home .name-wrap p{color:#475669;font-size:4.5rem}body.print.pc .btmpoint{font-size:1.7rem;line-height:2;width:100%;text-align:center;font-weight:600}body.print.pc .mai-item h1.title{font-size:2rem;border-left-width:24px;height:24px;line-height:24px;font-weight:bolder;padding-left:16px}body.print.pc .legend{margin-left:40px}body.print.pc .legend .title{font-size:1.6rem;width:7.2rem}body.print.pc .legend-branch .item{border-left-width:24px}body.print.pc .legend-channel,body.print.pc .legend-dialectical{width:280px}body.print.pc .paragraph-wrap{padding-left:40px;font-size:1.4rem}body.print.pc .heart-rate{padding-left:40px}body.print.pc .print-page-wrap{width:100%}body.print.pc .print-page{width:100%;padding:0 60px;position:relative;overflow:hidden}body.print.pc .page-top{overflow:hidden;display:flex;justify-content:space-between;padding-bottom:7px}body.print.pc .page-top .title{text-align:right}body.print.pc .page-top .title h1{font-size:34px;font-weight:bolder}body.print.pc .page-top .title h2{font-size:24px;font-weight:bolder}body.print.pc .page-top.gray{border-color:#000;color:#000}body.print.pc .print-user{display:flex}body.print.pc .print-user .portrait{margin:auto;width:78px;height:78px;border:1px solid #eff2f7;border-radius:10px;background-size:cover;background-position:center}body.print.pc .print-user .info{padding-left:8px;font-weight:bolder;font-size:16px}body.print.pc .print-user .name{font-size:24px}body.print.pc .print-user .name span{font-size:16px;padding-left:10px}body.print.pc .name-wrap div{font-size:2rem;font-weight:bolder}body.print.pc .name-wrap p{font-size:1.4em}body.print.pc .print-total-item{display:flex;flex-direction:column}body.print.pc .print-total-item h1.title{margin-bottom:120px}body.print.pc .print-total-item .mai{padding-left:40px}body.print.pc .print-total-item .mai-img{display:flex;justify-content:space-between}body.print.pc .print-total-item .mai-total-txt{display:flex;flex-direction:column;justify-content:space-between}body.print.pc .print-total-item .loading-component{height:400px;width:640px}body.print.pc .print-total-item .three{overflow:hidden;height:400px}body.print.pc .print-total-item .three .chart-3d{position:relative;top:-70px}body.print.pc .item-stability{padding-top:0}body.print.pc .stability .paragraph-wrap{display:flex;align-items:center}body.print.pc .print-channel-item .channel-content{align-items:flex-start;padding-left:0}body.print.pc .print-channel-item .channel-title{display:flex;flex-direction:column}body.print.pc .print-channel-item .channel-title h1{margin-bottom:10px}body.print.pc .print-heresy-item{flex-direction:column}body.print.pc .mai-branch .title{display:flex;justify-content:space-between}body.print.pc .mai-branch .loading-component{height:600px}body.print.pc .mai-branch .chart-branch .chart{padding:1.2rem 0;display:flex;justify-content:space-around}body.print.pc .mai-all{margin-top:10px;position:relative;display:flex;align-items:center;width:110%;height:200px}body.print.pc .mai-all .mai-font{text-align:center}body.print.pc .mai-all .mai-font img{height:200px}body.print.pc .mai-all .mai-img{width:80%;height:100%}body.print.pc .mai-color-image{width:70px;height:200px;margin-left:10px}body.print.pc .mai-color-image img{width:100px;height:200px}body.print.pc .far{font-size:40px;display:flex;justify-content:center;align-items:center}body.print.pc .far1{font-size:40px;display:flex;justify-content:center;align-items:center;padding-right:1.4rem}body.print.pc .timeWidth{margin-top:1rem;margin-left:-20px}body.print.pc .hole-body{position:relative}body.print.pc .print-branch-item .pc-branch{width:750px;margin:0;justify-content:space-around}body.print.pc .print-branch-item .branch-content{display:flex;align-items:center;justify-content:space-between}body.print.pc .print-branch-item .branch-content-3d{padding-top:20px}body.print.pc .print-branch-item .branch-content-bar{padding-bottom:20px}body.print.pc .print-branch-item .legend-branch{width:170px;margin-left:0}body.print.pc .print-branch-item .loading-component{width:750px;height:240}body.print.pc .print-branch-item .hand-branch_legend{margin-left:40px}body.print.pc .print-qxjy-item .chart-qxjy{padding:0}body.print.pc .print-qxjy-item .qxjy-content{padding-left:0;align-items:flex-start}body.print.pc .print-qxjy-item .qxjy-title{display:flex;flex-direction:column}body.print.pc .print-qxjy-item .qxjy-title h1.title{margin-bottom:80px}.btn-print{display:block;position:fixed;z-index:100;background-color:#39caaf;color:#fff;-ms-writing-mode:tb-lr;writing-mode:vertical-lr;-ms-writing-mode:tb-rl;writing-mode:tb-rl;text-align:center;font-size:16px;top:200px;right:0;width:40px;height:120px;line-height:40px;letter-spacing:6px;text-indent:6px;border-radius:4px 0 0 4px;cursor:pointer;transition:.2s}.btn-print:hover{opacity:.9}.btmbutton{display:block;letter-spacing:6px;text-indent:6px;z-index:100;width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;right:0;bottom:30px}.build-report3{position:fixed;text-align:right;z-index:100;display:block;cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;font-size:1.5rem;border-radius:4px;right:200px;top:20px;font-weight:500}@media print{.dialog-msg-print,.test-img,.btn-print,.btmbutton,.build-report3{display:none}}\n',document.head.appendChild(t),System.register(["./preload-helper-legacy.2e08847a.js","./Loading-legacy.9c349192.js","./maiResult-legacy.6117e652.js","./useWindowSize-legacy.86c42a65.js","./GroupBar-legacy.c39073f2.js","./index-legacy.c1916c65.js","./ChannelBgPc.vue_vue_type_script_lang-legacy.96525cc0.js","./Item.vue_vue_type_script_lang-legacy.3ffa22da.js","./vendor-legacy.ab945ac3.js","./Paragraph.vue_vue_type_script_lang-legacy.80e6aab1.js","./HealthAdvice.vue_vue_type_script_lang-legacy.bc9559d3.js","./Chart.vue_vue_type_style_index_0_lang-legacy.28c7bfd5.js","./LoadingComponent-legacy.9f93946b.js","./useMaiResult-legacy.78b810a4.js","./usePatientInfo-legacy.72f55b21.js","./index-legacy.3f143d64.js","./service-legacy.395b8fc2.js","./Bar-legacy.c12565a7.js","./groups-legacy.4719b424.js","./plugin-vue_export-helper-legacy.d48ec26d.js"],(function(t,e){"use strict";var n,i,a,o,p,r,l,c,d,s,h,b,g,m,y,u,x,f,w,v,j,z,k,_,q,C,R,U,Y,D,M,T,F,N,P,B,E,I,G,L,$,S;return{setters:[function(t){n=t.a},function(t){i=t.L},function(t){a=t.g,o=t.T},function(t){p=t.u},function(t){r=t._},function(t){l=t.d,c=t.b},function(t){d=t._},function(t){s=t._},function(t){h=t.d,b=t.K,g=t.e,m=t.E,y=t.y,u=t.h,x=t.x,f=t.z,w=t.j,v=t.A,j=t.B,z=t.o,k=t.c,_=t.m,q=t.t,C=t.l,R=t.p,U=t.b,Y=t.F,D=t.G},function(t){M=t._,T=t.a,F=t.b},function(t){N=t._},function(t){P=t._,B=t.a},function(t){E=t.L},function(t){I=t.u},function(t){G=t.u},function(t){L=t.s,$=t.C},function(t){S=t.b},function(){},function(){},function(){}],execute:function(){var A=h({components:{ChannelBgPc:d,Item:s},props:{channels:{type:Array,required:!0},width:{type:Number,default:800},heartrate:{type:Number,default:75},summary:{type:Object,default:null}},setup(t){let e=b({...l}),n=b({});const i=t=>{const e=t/800,n=50*(1-e)/e;return`scale(${e}) translate(-${n}%, -${n}%)`},o=()=>{if(!t.summary||!t.channels)return;const{mais:i,duadMai:o,lj:p}=a(t.summary,t.heartrate,t.channels);return e=b(o),n=b(p),console.log(i),i};return()=>g("div",{class:"chart-channel"},[g("div",{class:"channel-wrp",style:`transform: ${i(t.width)}`},[g(d,{mais:o(),width:1200},null),g("div",{class:"channel"},[g("div",{class:"item"},[g("div",{class:"top"},[g("span",{class:"txt "+(n.xian_shaoyang?"on":"")},[m("少阳")])]),g("div",{class:"bottom"},[g("span",{class:"txt "+(n.ruan_taiyang?"on":"")},[m("太阳")]),g("span",{class:"txt "+(n.ruan_jueyin?"on":"")},[m("厥阴")])])]),g("div",{class:"item r-2"},[g("div",{class:"top"},[g("span",{class:"txt "+(n.fu_taiyang?"on":"")},[m("太阳")]),g("span",{class:"txt "+(n.fu_yangming?"on":"")},[m("阳明")])]),g("div",{class:"bottom"},[g("div",{class:"left"},[g("span",{class:"txt "+(n.chen_yangming?"on":"")},[m("阳明")])]),g("div",{class:"right"},[g("span",{class:"txt "+(n.chen2_shaoyang?"on":"")},[m("少阳")]),g("span",{class:"txt "+(n.chen2_jueyin?"on":"")},[m("厥阴")])])])]),g("div",{class:"item r-3"},[g("div",{class:"top"},[g("span",{class:"txt "+(n.hua_yangming?"on":"")},[m("阳明")]),g("span",{class:"txt "+(n.hua_taiyang?"on":"")},[m("太阳")])]),g("div",{class:"bottom"},[g("span",{class:"txt "+(n.xi_jueyin?"on":"")},[m("厥阴")]),g("span",{class:"txt "+(n.xi_shaoyin?"on":"")},[m("少阴")])])]),g("div",{class:"item r-4"},[g("div",{class:"top"},[g("div",{class:"left"},[g("span",{class:"txt "+(n.shu_shaoyin?"on":"")},[m("少阴")]),g("span",{class:"txt "+(n.shu_taiyin?"on":"")},[m("太阴")])]),g("div",{class:"right"},[g("span",{class:"txt "+(n.shu2_taiyang?"on":"")},[m("太阳")]),g("span",{class:"txt "+(n.shu2_yangming?"on":"")},[m("阳明")])])]),g("div",{class:"bottom"},[g("span",{class:"txt "+(n.chi_shaoyin?"on":"")},[m("少阴")]),g("span",{class:"txt "+(n.chi_jueyin?"on":"")},[m("厥阴")]),g("span",{class:"txt "+(n.chi_taiyang?"on":"")},[m("太阳")])])])]),g("div",{class:"mai"},[g(s,{on:e.xian,titles:c.xian},null),g(s,{cla:"r-2",on:e.fu,titles:c.fu},null),g(s,{cla:"r-3",on:e.hua,titles:c.hua},null),g(s,{cla:"r-4",on:e.shu,titles:c.shu},null)]),g("div",{class:"bg",id:"channelchartbg"},null)])])}});const H={id:"content-box",class:"print-page"},K=_("div",{"data-op-type":"new-page"},null,-1),W=_("div",{"data-op-type":"pendants"},null,-1),J={style:{"text-align":"center","font-size":"40px","font-weight":"500",position:"relative"}},O=m(" 健康报告 "),Q={style:{position:"absolute",right:"5%",top:"10px","font-size":"20px"}},V={"data-op-type":"block",style:{}},X={class:"mai-img"},Z={class:"mai-total-txt"},tt=_("h1",{style:{"font-size":"30px","font-weight":"bolder"}},"1: 总体脉象",-1),et={style:{"font-size":"20px","font-weight":"600","margin-left":"30px"}},nt=_("i",{style:{"margin-left":"10px"},class:"heart-rate img-heart-rate"},null,-1),it={style:{"font-weight":"normal"}},at=_("p",null,"注释:",-1),ot={style:{"font-size":"18px"}},pt={style:{display:"flex"}},rt={key:0,style:{display:"flex","align-items":"center","margin-right":"10px"}},lt=[_("div",{style:{"font-size":"30px","font-weight":"bolder"}},[_("div",null,"左"),_("div",null,"手")],-1)],ct={key:1,"data-op-type":"block",class:"mai-item print-branch-item"},dt={class:"branch-content branch-content-3d"},st={class:"pc-branch pc-branch-3d"},ht={class:"pc-branch"},bt={style:{display:"flex"}},gt={key:0,style:{display:"flex","align-items":"center","margin-right":"10px"}},mt=[_("div",{style:{"font-size":"30px","font-weight":"bolder"}},[_("div",null,"右"),_("div",null,"手")],-1)],yt={key:1,"data-op-type":"block",class:"mai-item print-branch-item"},ut={class:"branch-content branch-content-3d"},xt={style:{}},ft={class:"pc-branch pc-branch-3d"},wt={class:"pc-branch"},vt={style:{display:"flex"}},jt={"data-op-type":"block"},zt={class:"channel-content"},kt={class:"channel-title"},_t=_("h1",{style:{"font-size":"30px","font-weight":"bolder"}},"2: 六经辨证",-1),qt={style:{display:"flex"}},Ct={style:{width:"33%",display:"flex","align-items":"center"}},Rt={"data-op-type":"block",class:"mai-item mai-qxjy item-border-top print-qxjy-item"},Ut={class:"qxjy-content"},Yt={class:"qxjy-title"},Dt=_("h1",{style:{"font-size":"30px","font-weight":"bolder"}},"3: 气血津液",-1),Mt={style:{display:"flex","margin-top":"50px"}},Tt={"data-op-type":"block",class:"mai-item mai-heresy item-border-top print-heresy-item"},Ft=_("h1",{style:{"font-size":"30px","font-weight":"bolder"}},"4: 邪性",-1),Nt={class:"desc-heresy"},Pt={"data-op-type":"mix-box",class:"mai-item mai-heresy print-heresy-item"},Bt=_("div",{"data-op-type":"block-box",class:"mai-item item-border-top"},[_("h1",{style:{"font-size":"30px","font-weight":"bolder"}},"5: 养生建议")],-1),Et={"data-op-type":"block-box",class:"mai-item"},It=_("div",{class:"btmpoint"},"(以上分析结果为大数据分析所得,请结合临床)",-1);t("default",h({setup(t){const a=y({loader:()=>n((()=>e.import("./Group3D-legacy.e0c50f91.js")),void 0),loadingComponent:E});y({loader:()=>n((()=>e.import("./Total3d-legacy.349d19d7.js")),void 0),loadingComponent:E}),L("pc print");const{width:l}=p(),c=u(!1),d=u(!1),s=x().query;u(),u();const h=u("1"===s.kong);u(!(!$||!$.showKaiFang||"True"!==$.showKaiFang()));const b=s.third,Gt=s.appId||"",Lt=s.en||"";u();const $t=u(),St=u();f((()=>.4*l.value));const{loading:At,patientInfo:Ht}=G(s.uid,s.access_session);l.value>640||l.value;const{loading:Kt,leftFlag:Wt,rightFlag:Jt,leftResUrl:Ot,rightResUrl:Qt,branchResult:Vt,channelReault:Xt,createTime:Zt,leftChiUrl:te,leftCunUrl:ee,leftGuanUrl:ne,rightChiUrl:ie,rightCunUrl:ae,rightGuanUrl:oe,hand:pe,handText:re,heartrate:le,heresyResult:ce,proposeResult:de,qxjyResult:se,feature:he,summary:be,symptomsResult:ge,totalMai:me,totalMaiDescStr:ye,score:ue}=I(s.mid,s.access_session,b,Lt,Gt),xe=u(!0);function fe(){0==xe.value&&function(t,e){try{const n=document.getElementById(t),i=getComputedStyle(n).background;const a=/url\((['"])?(.*?)\1\)/gi.exec(i)[2],o=document.createElement("img");o.src=a,o.onload=()=>{console.log(t,"加载成功"),e()},o.onerror=()=>{console.log(t,"加载失败")}}catch(n){console.log(t,"加载失败"),console.log(n)}}("channelchartbg",(()=>{xe.value=!0})),0==xe.value&&setTimeout(fe,1e3)}w((()=>{xe.value=!1,fe()}));const we=u(0);u(!1).value=[1,3,5,7,9,11,428].includes(we.value);const ve=()=>{try{$.buildPdf(s.mid),je()}catch(t){o.fail("PDF生成失败")}},je=()=>{try{$.saveJCHPdf(Ht.value.name||Ht.value.nickName,Number(function(t){var e,n=t.split("-"),i=Number(n[0]),a=Number(n[1]),o=Number(n[2]),p=(c=new Date).getFullYear(),r=c.getMonth()+1,l=c.getDate();if(null==n)return!1;var c=new Date(i,a-1,o);if(c.getFullYear()==i&&c.getMonth()+1==a&&c.getDate()==o){if(p==i)e=0;else{var d=p-i;if(!(d>0))return"日期晚于今天,数据有误";e=r==a?l-o<0?d-1:d:r-a<0?d-1:d}return e}return"日期格式错误!"}(Ht.value.birthday?Ht.value.birthday:"")),Ht.value.gender||"",s.mid,s.uid)}catch(t){console.log(t)}},ze=u(!1),ke=u(0),_e=u(0),qe=t=>{ke.value=ke.value+1},Ce=t=>{_e.value=_e.value+1};return v((()=>{(Ot.value||Qt.value)&&((async t=>{const e={resUrl:t},n=await S(e),i=[];n.x.forEach(((t,e)=>{i.push([t/1e3,n.y[e]/100])})),$t.value=i})(Ot.value),(async t=>{const e={resUrl:t},n=await S(e),i=[];n.x.forEach(((t,e)=>{i.push([t/1e3,n.y[e]/100])})),St.value=i})(Qt.value))})),j([Zt,pe],(()=>{const t=D(Zt.value).format("YYYY年MM月DD日");c.value=0===pe.value||2===pe.value,d.value=1===pe.value||2===pe.value,document.title=t})),j([Ht,Kt,xe,ze,ke,_e],(()=>{At.value||Kt.value||(document.title=`${Ht.value.name||Ht.value.nickName||""}|脉诊报告`,setTimeout((()=>{window.bookConfig.start=!0}),1e3),console.log(Ht.value.name),$&&Ht.value.name&&le.value&&"0"!==s.print&&xe.value&&ze.value&&ke.value&&_e.value&&(9==ke.value&&3==_e.value||2==pe.value)&&(18==ke.value&&6==_e.value||2!==pe.value)&&setTimeout(ve,3e3))})),w((()=>{})),(t,e)=>(z(),k(Y,null,[_("div",H,[K,W,_("div",null,[_("div",J,[O,_("div",Q,q(C(Zt)),1)]),_("div",V,[_("div",X,[_("div",Z,[tt,_("div",et,[_("div",null,[m("总体脉象:"+q(C(me).title.join(" "))+" ",1),nt,m("心率:"+q(C(le))+"次/分钟",1)]),_("div",it,[at,_("p",ot,q(C(ye)),1)])])])])])]),_("div",pt,[c.value?(z(),k("div",rt,lt)):R("",!0),c.value?(z(),k("div",ct,[_("div",dt,[_("div",null,[_("div",st,[g(C(a),{"branch-result":C(Vt).left,feature:C(he).left,rotate:!1,onCanhand:qe},null,8,["branch-result","feature"])]),_("div",ht,[C(Kt)?R("",!0):(z(),U(r,{key:0,"branch-result":C(Vt).left,"show-kong":h.value,onCanline:Ce},null,8,["branch-result","show-kong"]))])])])])):R("",!0)]),_("div",bt,[d.value?(z(),k("div",gt,mt)):R("",!0),d.value?(z(),k("div",yt,[_("div",ut,[_("div",xt,[_("div",ft,[g(C(a),{"branch-result":C(Vt).right,feature:C(he).right,rotate:!1,onCanhand:qe},null,8,["branch-result","feature"])]),_("div",wt,[C(Kt)?R("",!0):(z(),U(r,{key:0,"branch-result":C(Vt).right,"show-kong":h.value,onCanline:Ce},null,8,["branch-result","show-kong"]))])])])])):R("",!0)]),_("div",vt,[_("div",jt,[_("div",zt,[_("div",kt,[_t,_("div",qt,[g(A,{channels:C(Xt),heartrate:C(le),summary:C(be),width:340,style:{"margin-top":"40px"}},null,8,["channels","heartrate","summary"]),_("div",Ct,[g(M,{channels:C(Xt),symptoms:C(ge)},null,8,["channels","symptoms"])])])])])])]),_("div",Rt,[_("div",Ut,[_("div",Yt,[Dt,_("div",Mt,[g(P,{value:C(se).level,style:{width:"50%"}},null,8,["value"]),g(T,{qxjy:C(se),style:{width:"50%"}},null,8,["qxjy"])])])])]),_("div",Tt,[Ft,_("div",Nt,[g(B,{value:C(ce).value},null,8,["value"])])]),_("div",Pt,[g(F,{heresy:C(ce)},null,8,["heresy"])]),Bt,_("div",Et,[g(N,{propose:C(de)},null,8,["propose"])]),It]),g(C(i),{message:"加载中...",visible:C(At)||C(Kt)},null,8,["visible"])],64))}}))}}}))}();