chunk-916a4c38.4d23f0f0.js
27.3 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-916a4c38","chunk-ad8465b0"],{"0e9b":function(e,t,o){"use strict";o.d(t,"l",(function(){return l})),o.d(t,"d",(function(){return c})),o.d(t,"o",(function(){return r})),o.d(t,"p",(function(){return s})),o.d(t,"m",(function(){return d})),o.d(t,"n",(function(){return u})),o.d(t,"f",(function(){return m})),o.d(t,"b",(function(){return v})),o.d(t,"a",(function(){return g})),o.d(t,"k",(function(){return b})),o.d(t,"j",(function(){return _})),o.d(t,"h",(function(){return O})),o.d(t,"g",(function(){return f})),o.d(t,"e",(function(){return p})),o.d(t,"c",(function(){return j})),o.d(t,"i",(function(){return y}));o("0643"),o("2382");var n=o("cee4");const a="https://m.ydn.com/graphql",i={headers:{"Content-Type":"application/json"}};async function l({yiqiu_id:e=0,info_id:t=0,game_id:o=0}){var l;if(!e||"0"==e)return{};const c=`\n query{\n get_soccer_game_info(yiqiu_id:${e},info_id:${t},game_id:${o})\n }\n `;let r=await n["a"].post(a+"/get_soccer_game_info",`{"query":${JSON.stringify(c)},"variables":null}`,i),s=null===r||void 0===r||null===(l=r.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.get_soccer_game_info;return null==s||null!=s.error?{}:s}async function c({yiqiu_id:e=0,pageIndex:t=1,pageSize:o=10}){var l,c;if(!e||"0"==e)return{};const r=`\n query{\n get_expert_schemes(yiqiu_game_id:${e}, page_size: ${o}, page_index: ${t})\n }\n `;let s=await n["a"].post(a+"/get_expert_schemes_list",`{"query":${JSON.stringify(r)},"variables":null}`,i),d=null===s||void 0===s||null===(l=s.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.get_expert_schemes;var u,m;null!==d&&void 0!==d&&null!==(c=d.result)&&void 0!==c&&c.data_list&&(d.result.data_list=null===(u=d.result.data_list)||void 0===u||null===(m=u.filter)||void 0===m?void 0:m.call(u,e=>"千嗨资讯"!=(null===e||void 0===e?void 0:e.type1)));return d}async function r({yiqiu_id:e=0}){var t;if(!e||"0"==e)return{};const o=`\n query{\n nm_competition_team_point_rank_list(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/nm_competition_team_point_rank_list",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.nm_competition_team_point_rank_list;return c}async function s({yiqiu_id:e=0}){var t;if(!e||"0"==e)return{};const o=`\n query{\n nm_team_point_rank(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/nm_team_point_rank",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.nm_team_point_rank;return c}async function d({yiqiu_id:e=0,info_id:t=0,game_id:o=0}){var l;if(!e||"0"==e)return{};const c=`\n query{\n get_soccer_game_info(yiqiu_id:${e},info_id:${t},game_id:${o})\n nm_match_detail(yiqiu_match_id:${e})\n }\n `;let r=await n["a"].post(a+"/get_soccer_game_info_nm_detail",`{"query":${JSON.stringify(c)},"variables":null}`,i),s=null===r||void 0===r||null===(l=r.data)||void 0===l?void 0:l.data;return null==s||null!=s.error?{}:s}async function u({sporttery_id:e=0}){var t;const o=`\n query{\n get_sporttery_pool(sporttery_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_sporttery_pool",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.get_sporttery_pool;return c}async function m({game_id:e=0}){var t;const o=`\n query{\n getgameanalyse(gameid:${e})\n }\n `;let l=await n["a"].post(a+"/getgameanalyse",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.getgameanalyse;return c}async function v({competition_id:e=0}){var t;const o=`\n query{\n getcompetitionstanding(competitionid:${e})\n }\n `;let l=await n["a"].post(a+"/getcompetitionstanding",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.getcompetitionstanding;return c}async function g({competition_id:e=0}){var t;const o=`\n query{\n getcompetitionschedule(competitionid:${e}){\n Mode\n SubMode\n Team\n Schedule\n Competition\n Period\n }\n }\n `;let l=await n["a"].post(a+"/getcompetitionschedule",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.getcompetitionschedule;return c}async function b(){var e;const t="\n query{\n get_predict_datas\n }\n ";let o=await n["a"].post(a+"/get_predict_datas",`{"query":${JSON.stringify(t)},"variables":null}`,i),l=null===o||void 0===o||null===(e=o.data)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.get_predict_datas;return l}async function _({yiqiu_id:e=0}){var t;const o=`\n query{\n get_game_ssyc_detail(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_game_ssyc_detail",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.get_game_ssyc_detail;return c}async function O({yiqiu_id:e=0}){var t;const o=`\n query{\n get_game_nnjq_detail(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_game_nnjq_detail",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.get_game_nnjq_detail;return c}async function f({yiqiu_id:e=0}){var t;const o=`\n query{\n get_game_hwyc_detail(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_game_hwyc_detail",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.get_game_hwyc_detail;return c}async function p({yiqiu_id:e=0}){var t;const o=`\n query{\n get_game_2c1_list(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_game_2c1_list",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.get_game_2c1_list;return c}async function j({yiqiu_id:e=0}){var t;const o=`\n query{\n get_expert_schemes(yiqiu_game_id:${e})\n get_game_2c1_list(yiqiu_id:${e})\n }\n `;let l=await n["a"].post(a+"/get_expert_schemes_2c1_list",`{"query":${JSON.stringify(o)},"variables":null}`,i),c=null===l||void 0===l||null===(t=l.data)||void 0===t?void 0:t.data;return c}async function y({yiqiu_id:e=0,game_id:t=0}){var o;const l=`\n query{\n get_game_odds(yiqiu_id:${e},game_id:${t})\n }\n `;let c=await n["a"].post(a+"/get_game_odds",`{"query":${JSON.stringify(l)},"variables":null}`,i),r=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.get_game_odds;return r}n["a"].defaults.timeout=2e4},1419:function(e,t,o){"use strict";var n=o("7a23");const a={class:"no-data"},i={class:"message"};function l(e,t,o,l,c,r){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[t[0]||(t[0]=Object(n["createElementVNode"])("div",{class:"bg"},null,-1)),Object(n["createElementVNode"])("div",i,Object(n["toDisplayString"])(o.nodata_message),1)])}var c={name:"NoData",props:{nodata_message:{type:String,default:""}}},r=(o("aa9b"),o("6b0d")),s=o.n(r);const d=s()(c,[["render",l]]);t["a"]=d},2382:function(e,t,o){"use strict";o("910d")},"3ea6":function(e,t,o){"use strict";o("3fab")},"3fab":function(e,t,o){},"87ec":function(e,t,o){},"910d":function(e,t,o){"use strict";var n=o("23e7"),a=o("c65b"),i=o("59ed"),l=o("825a"),c=o("46c4"),r=o("c5cc"),s=o("9bdd"),d=o("c430"),u=r((function(){var e,t,o,n=this.iterator,i=this.predicate,c=this.next;while(1){if(e=l(a(c,n)),t=this.done=!!e.done,t)return;if(o=e.value,s(n,i,[o,this.counter++],!0))return o}}));n({target:"Iterator",proto:!0,real:!0,forced:d},{filter:function(e){return l(this),i(e),new u(c(this),{predicate:e})}})},"9ee8":function(e,t,o){"use strict";o.r(t);var n=o("7a23");const a={key:0,class:"content-slide"},i={class:"tab-sel"},l={class:"around"},c=["src"],r={key:0,class:"info-list"},s={class:"info"},d={key:1,class:"info-list"},u={class:"info"},m={key:0,class:"info-list"},v={class:"info"},g={key:1,class:"info-list"},b={class:"info"},_={key:0,class:"info-list"},O={class:"info"};function f(e,t,o,f,p,j){var y,h,w,k,N,q,B,E,V,S,$,C,x,z,P,I,D,Z,H,J,G,X,Y,L;const R=Object(n["resolveComponent"])("noData");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[null!==(y=e.game_info)&&void 0!==y&&y.sports_info?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("p",{class:Object(n["normalizeClass"])(e.tab_name==(null===(h=e.game_info.host_team)||void 0===h?void 0:h.short_name)?"around-p active-p":"around-p"),onClick:t[0]||(t[0]=t=>{var o;return e.tab_name=null===(o=e.game_info.host_team)||void 0===o?void 0:o.short_name,e.is_show.host=!0,e.is_show.away=!1,e.is_show.zhong=!1})},Object(n["toDisplayString"])(null===(w=e.game_info.host_team)||void 0===w?void 0:w.short_name),3),Object(n["createElementVNode"])("p",{class:Object(n["normalizeClass"])("中立"==e.tab_name?"around-p active-p":"around-p"),onClick:t[1]||(t[1]=t=>(e.tab_name="中立",e.is_show.host=!1,e.is_show.away=!1,e.is_show.zhong=!0))},"中立",2),Object(n["createElementVNode"])("p",{class:Object(n["normalizeClass"])(e.tab_name==(null===(k=e.game_info.away_team)||void 0===k?void 0:k.short_name)?"around-p active-p":"around-p"),onClick:t[2]||(t[2]=t=>{var o;return e.tab_name=null===(o=e.game_info.away_team)||void 0===o?void 0:o.short_name,e.is_show.host=!1,e.is_show.away=!0,e.is_show.zhong=!1})},Object(n["toDisplayString"])(null===(N=e.game_info.away_team)||void 0===N?void 0:N.short_name),3)])]),e.game_info.dfcp_img_url&&e.common_data.switchState?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"info-list qb-space",onClick:t[3]||(t[3]=t=>e.look_img())},[t[4]||(t[4]=Object(n["createElementVNode"])("h6",null,"牛牛指数截图",-1)),Object(n["createElementVNode"])("img",{src:e.game_info.dfcp_img_url,alt:"牛牛指数截图"},null,8,c),t[5]||(t[5]=Object(n["createElementVNode"])("div",{style:{"font-size":"12px",color:"#999"}},"仅供大家参考",-1))])):Object(n["createCommentVNode"])("",!0),e.is_show.host?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:1},[null!==(q=e.game_info.sports_info)&&void 0!==q&&q.HostGood&&null!==(B=e.game_info.sports_info)&&void 0!==B&&B.HostGood.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("h6",null,[t[6]||(t[6]=Object(n["createElementVNode"])("span",{class:"t-bg"},null,-1)),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(null===(E=e.game_info.host_team)||void 0===E?void 0:E.short_name)+"有利情报",1)]),Object(n["createElementVNode"])("div",s,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(null===(V=e.game_info.sports_info)||void 0===V?void 0:V.HostGood,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e),1)]))),128))])])):Object(n["createCommentVNode"])("",!0),null!==(S=e.game_info.sports_info)&&void 0!==S&&S.HostBad&&null!==($=e.game_info.sports_info)&&void 0!==$&&$.HostBad.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",d,[Object(n["createElementVNode"])("h6",null,[t[7]||(t[7]=Object(n["createElementVNode"])("span",{class:"t-bg"},null,-1)),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(null===(C=e.game_info.host_team)||void 0===C?void 0:C.short_name)+"不利情报",1)]),Object(n["createElementVNode"])("div",u,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(null===(x=e.game_info.sports_info)||void 0===x?void 0:x.HostBad,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e),1)]))),128))])])):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0),e.is_show.away?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:2},[null!==(z=e.game_info.sports_info)&&void 0!==z&&z.GuestGood&&null!==(P=e.game_info.sports_info)&&void 0!==P&&P.GuestGood.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",m,[Object(n["createElementVNode"])("h6",null,[t[8]||(t[8]=Object(n["createElementVNode"])("span",{class:"t-bg"},null,-1)),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(null===(I=e.game_info.away_team)||void 0===I?void 0:I.short_name)+"有利情报",1)]),Object(n["createElementVNode"])("div",v,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(null===(D=e.game_info.sports_info)||void 0===D?void 0:D.GuestGood,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e),1)]))),128))])])):Object(n["createCommentVNode"])("",!0),null!==(Z=e.game_info.sports_info)&&void 0!==Z&&Z.GuestBad&&null!==(H=e.game_info.sports_info)&&void 0!==H&&H.GuestBad.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,[Object(n["createElementVNode"])("h6",null,[t[9]||(t[9]=Object(n["createElementVNode"])("span",{class:"t-bg"},null,-1)),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(null===(J=e.game_info.away_team)||void 0===J?void 0:J.short_name)+"不利情报",1)]),Object(n["createElementVNode"])("div",b,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(null===(G=e.game_info.sports_info)||void 0===G?void 0:G.GuestBad,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e),1)]))),128))])])):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0),e.is_show.zhong?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:3},[null!==(X=e.game_info.sports_info)&&void 0!==X&&X.PredictionDesc&&null!==(Y=e.game_info.sports_info)&&void 0!==Y&&Y.PredictionDesc.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",_,[t[10]||(t[10]=Object(n["createElementVNode"])("h6",null,[Object(n["createElementVNode"])("span",{class:"t-bg"}),Object(n["createElementVNode"])("span",null,"中立情报")],-1)),Object(n["createElementVNode"])("div",O,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(null===(L=e.game_info.sports_info)||void 0===L?void 0:L.PredictionDesc,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e),1)]))),128))])])):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0)])):Object(n["createCommentVNode"])("",!0),e.no_data?(Object(n["openBlock"])(),Object(n["createBlock"])(R,{key:1,nodata_message:"暂无情报数据!"})):Object(n["createCommentVNode"])("",!0)])}var p=o("fa7c"),j=o("6872"),y=o("1fba"),h=o("e5f6"),w=o("9b55"),k=o("d243"),N=o("8db7"),q=o("450f"),B=o("efd9"),E=o("9a1c"),V=o("c21d"),S=o("5f24"),$=o("5aa0"),C=o("d7d5"),x=o("23f9");const[z,P]=Object(y["a"])("image"),I={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:h["f"],height:h["f"],radius:h["f"],lazyLoad:Boolean,iconSize:h["f"],showError:h["g"],errorIcon:Object(h["e"])("photo-fail"),iconPrefix:String,showLoading:h["g"],loadingIcon:Object(h["e"])("photo"),crossorigin:String,referrerpolicy:String};var D=Object(n["defineComponent"])({name:z,props:I,emits:["load","error"],setup(e,{emit:t,slots:o}){const a=Object(n["ref"])(!1),i=Object(n["ref"])(!0),l=Object(n["ref"])(),{$Lazyload:c}=Object(n["getCurrentInstance"])().proxy,r=Object(n["computed"])(()=>{const t={width:Object($["a"])(e.width),height:Object($["a"])(e.height)};return Object(p["f"])(e.radius)&&(t.overflow="hidden",t.borderRadius=Object($["a"])(e.radius)),t});Object(n["watch"])(()=>e.src,()=>{a.value=!1,i.value=!0});const s=e=>{i.value&&(i.value=!1,t("load",e))},d=()=>{const e=new Event("load");Object.defineProperty(e,"target",{value:l.value,enumerable:!0}),s(e)},u=e=>{a.value=!0,i.value=!1,t("error",e)},m=(t,o,a)=>a?a():Object(n["createVNode"])(E["a"],{name:t,size:e.iconSize,class:o,classPrefix:e.iconPrefix},null),v=()=>i.value&&e.showLoading?Object(n["createVNode"])("div",{class:P("loading")},[m(e.loadingIcon,P("loading-icon"),o.loading)]):a.value&&e.showError?Object(n["createVNode"])("div",{class:P("error")},[m(e.errorIcon,P("error-icon"),o.error)]):void 0,g=()=>{if(a.value||!e.src)return;const t={alt:e.alt,class:P("img"),style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?Object(n["withDirectives"])(Object(n["createVNode"])("img",Object(n["mergeProps"])({ref:l},t),null),[[Object(n["resolveDirective"])("lazy"),e.src]]):Object(n["createVNode"])("img",Object(n["mergeProps"])({ref:l,src:e.src,onLoad:s,onError:u},t),null)},b=({el:e})=>{const t=()=>{e===l.value&&i.value&&d()};l.value?t():Object(n["nextTick"])(t)},_=({el:e})=>{e!==l.value||a.value||u()};return c&&p["d"]&&(c.$on("loaded",b),c.$on("error",_),Object(n["onBeforeUnmount"])(()=>{c.$off("loaded",b),c.$off("error",_)})),Object(n["onMounted"])(()=>{Object(n["nextTick"])(()=>{var t;(null==(t=l.value)?void 0:t.complete)&&!e.lazyLoad&&d()})}),()=>{var t;return Object(n["createVNode"])("div",{class:P({round:e.round,block:e.block}),style:r.value},[g(),v(),null==(t=o.default)?void 0:t.call(o)])}}});const Z=Object(x["a"])(D);var H=o("5913"),J=o("82db");const G=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),X=e=>({x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}),Y=Object(y["a"])("image-preview")[1],L=2.6,R={src:String,show:Boolean,active:Number,minZoom:Object(h["d"])(h["f"]),maxZoom:Object(h["d"])(h["f"]),rootWidth:Object(h["d"])(Number),rootHeight:Object(h["d"])(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var T=Object(n["defineComponent"])({props:R,emits:["scale","close","longPress"],setup(e,{emit:t,slots:o}){const a=Object(n["reactive"])({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),i=Object(C["a"])(),l=Object(n["ref"])(),c=Object(n["ref"])(),r=Object(n["ref"])(!1),s=Object(n["ref"])(!1);let d=0;const u=Object(n["computed"])(()=>{const{scale:e,moveX:t,moveY:o,moving:n,zooming:i,initializing:l}=a,c={transitionDuration:i||n||l?"0s":".3s"};return(1!==e||s.value)&&(c.transform=`matrix(${e}, 0, 0, ${e}, ${t}, ${o})`),c}),m=Object(n["computed"])(()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:o}=e,n=r.value?o/a.imageRatio:t;return Math.max(0,(a.scale*n-t)/2)}return 0}),v=Object(n["computed"])(()=>{if(a.imageRatio){const{rootWidth:t,rootHeight:o}=e,n=r.value?o:t*a.imageRatio;return Math.max(0,(a.scale*n-o)/2)}return 0}),g=(o,n)=>{var i;if(o=Object($["c"])(o,+e.minZoom,+e.maxZoom+1),o!==a.scale){const c=o/a.scale;if(a.scale=o,n){const e=Object(q["useRect"])(null==(i=l.value)?void 0:i.$el),t={x:.5*e.width,y:.5*e.height},o=a.moveX-(n.x-e.left-t.x)*(c-1),r=a.moveY-(n.y-e.top-t.y)*(c-1);a.moveX=Object($["c"])(o,-m.value,m.value),a.moveY=Object($["c"])(r,-v.value,v.value)}else a.moveX=0,a.moveY=s.value?d:0;t("scale",{scale:o,index:e.active})}},b=()=>{g(1)},_=()=>{const e=a.scale>1?1:2;g(e,2===e||s.value?{x:i.startX.value,y:i.startY.value}:void 0)};let O,f,p,j,y,h,w,E,V=!1;const S=t=>{const{touches:o}=t;if(O=o.length,2===O&&e.disableZoom)return;const{offsetX:n}=i;i.start(t),f=a.moveX,p=a.moveY,E=Date.now(),V=!1,a.moving=1===O&&(1!==a.scale||s.value),a.zooming=2===O&&!n.value,a.zooming&&(j=a.scale,y=G(o))},x=t=>{const{touches:o}=t;if(i.move(t),a.moving){const{deltaX:o,deltaY:n}=i,l=o.value+f,c=n.value+p;if((e.vertical?i.isVertical()&&Math.abs(c)>v.value:i.isHorizontal()&&Math.abs(l)>m.value)&&!V)return void(a.moving=!1);V=!0,Object(N["d"])(t,!0),a.moveX=Object($["c"])(l,-m.value,m.value),a.moveY=Object($["c"])(c,-v.value,v.value)}if(a.zooming&&(Object(N["d"])(t,!0),2===o.length)){const e=G(o),t=j*e/y;h=X(o),g(t,h)}},z=o=>{var n;const a=null==(n=c.value)?void 0:n.$el;if(!a)return;const i=a.firstElementChild,l=o.target===a,r=null==i?void 0:i.contains(o.target);!e.closeOnClickImage&&r||!e.closeOnClickOverlay&&l||t("close")},P=o=>{if(O>1)return;const n=Date.now()-E,a=250;i.isTap.value&&(n<a?e.doubleScale?w?(clearTimeout(w),w=null,_()):w=setTimeout(()=>{z(o),w=null},a):z(o):n>k["g"]&&t("longPress"))},I=t=>{let o=!1;if((a.moving||a.zooming)&&(o=!0,a.moving&&f===a.moveX&&p===a.moveY&&(o=!1),!t.touches.length)){a.zooming&&(a.moveX=Object($["c"])(a.moveX,-m.value,m.value),a.moveY=Object($["c"])(a.moveY,-v.value,v.value),a.zooming=!1),a.moving=!1,f=0,p=0,j=1,a.scale<1&&b();const t=+e.maxZoom;a.scale>t&&g(t,h)}Object(N["d"])(t,o),P(t),i.reset()},D=()=>{const{rootWidth:t,rootHeight:o}=e,n=o/t,{imageRatio:i}=a;r.value=a.imageRatio>n&&i<L,s.value=a.imageRatio>n&&i>=L,s.value&&(d=(i*t-o)/2,a.moveY=d,a.initializing=!0,Object(q["raf"])(()=>{a.initializing=!1})),b()},R=e=>{const{naturalWidth:t,naturalHeight:o}=e.target;a.imageRatio=o/t,D()};return Object(n["watch"])(()=>e.active,b),Object(n["watch"])(()=>e.show,e=>{e||b()}),Object(n["watch"])(()=>[e.rootWidth,e.rootHeight],D),Object(q["useEventListener"])("touchmove",x,{target:Object(n["computed"])(()=>{var e;return null==(e=c.value)?void 0:e.$el})}),Object(B["a"])({resetScale:b}),()=>{const t={loading:()=>Object(n["createVNode"])(H["a"],{type:"spinner"},null)};return Object(n["createVNode"])(J["a"],{ref:c,class:Y("swipe-item"),onTouchstartPassive:S,onTouchend:I,onTouchcancel:I},{default:()=>[o.image?Object(n["createVNode"])("div",{class:Y("image-wrap")},[o.image({src:e.src,onLoad:R,style:u.value})]):Object(n["createVNode"])(Z,{ref:l,src:e.src,fit:"contain",class:Y("image",{vertical:r.value}),style:u.value,onLoad:R},t)]})}}});const[F,M]=Object(y["a"])("image-preview"),W=["show","teleport","transition","overlayStyle","closeOnPopstate"],U={show:Boolean,loop:h["g"],images:Object(h["a"])(),minZoom:Object(h["c"])(1/3),maxZoom:Object(h["c"])(3),overlay:h["g"],vertical:Boolean,closeable:Boolean,showIndex:h["g"],className:h["h"],closeIcon:Object(h["e"])("clear"),transition:String,beforeClose:Function,doubleScale:h["g"],overlayClass:h["h"],overlayStyle:Object,swipeDuration:Object(h["c"])(300),startPosition:Object(h["c"])(0),showIndicators:Boolean,closeOnPopstate:h["g"],closeOnClickImage:h["g"],closeOnClickOverlay:h["g"],closeIconPosition:Object(h["e"])("top-right"),teleport:[String,Object]};var A=Object(n["defineComponent"])({name:F,props:U,emits:["scale","close","closed","change","longPress","update:show"],setup(e,{emit:t,slots:o}){const a=Object(n["ref"])(),i=Object(n["ref"])(),l=Object(n["reactive"])({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),c=()=>{if(a.value){const e=Object(q["useRect"])(a.value.$el);l.rootWidth=e.width,l.rootHeight=e.height,a.value.resize()}},r=e=>t("scale",e),s=e=>t("update:show",e),d=()=>{Object(w["a"])(e.beforeClose,{args:[l.active],done:()=>s(!1)})},u=e=>{e!==l.active&&(l.active=e,t("change",e))},m=()=>{if(e.showIndex)return Object(n["createVNode"])("div",{class:M("index")},[o.index?o.index({index:l.active}):`${l.active+1} / ${e.images.length}`])},v=()=>{if(o.cover)return Object(n["createVNode"])("div",{class:M("cover")},[o.cover()])},g=()=>{l.disableZoom=!0},b=()=>{l.disableZoom=!1},_=()=>Object(n["createVNode"])(V["a"],{ref:a,lazyRender:!0,loop:e.loop,class:M("swipe"),vertical:e.vertical,duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:u,onDragEnd:b,onDragStart:g},{default:()=>[e.images.map((a,c)=>Object(n["createVNode"])(T,{ref:e=>{c===l.active&&(i.value=e)},src:a,show:e.show,active:l.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:l.rootWidth,rootHeight:l.rootHeight,disableZoom:l.disableZoom,doubleScale:e.doubleScale,closeOnClickImage:e.closeOnClickImage,closeOnClickOverlay:e.closeOnClickOverlay,vertical:e.vertical,onScale:r,onClose:d,onLongPress:()=>t("longPress",{index:c})},{image:o.image}))]}),O=()=>{if(e.closeable)return Object(n["createVNode"])(E["a"],{role:"button",name:e.closeIcon,class:[M("close-icon",e.closeIconPosition),k["f"]],onClick:d},null)},f=()=>t("closed"),j=(e,t)=>{var o;return null==(o=a.value)?void 0:o.swipeTo(e,t)};return Object(B["a"])({resetScale:()=>{var e;null==(e=i.value)||e.resetScale()},swipeTo:j}),Object(n["onMounted"])(c),Object(n["watch"])([N["h"],N["g"]],c),Object(n["watch"])(()=>e.startPosition,e=>u(+e)),Object(n["watch"])(()=>e.show,o=>{const{images:a,startPosition:i}=e;o?(u(+i),Object(n["nextTick"])(()=>{c(),j(+i,{immediate:!0})})):t("close",{index:l.active,url:a[l.active]})}),()=>Object(n["createVNode"])(S["a"],Object(n["mergeProps"])({class:[M(),e.className],overlayClass:[M("overlay"),e.overlayClass],onClosed:f,"onUpdate:show":s},Object(p["n"])(e,W)),{default:()=>[O(),_(),m(),v()]})}});let K;const Q={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function ee(){({instance:K}=Object(j["a"])({setup(){const{state:e,toggle:t}=Object(j["b"])(),o=()=>{e.images=[]};return()=>Object(n["createVNode"])(A,Object(n["mergeProps"])(e,{onClosed:o,"onUpdate:show":t}),null)}}))}const te=(e,t=0)=>{if(p["d"])return K||ee(),e=Array.isArray(e)?{images:e,startPosition:t}:e,K.open(Object(p["a"])({},Q,e)),K};var oe=o("5502"),ne=o("6605"),ae=o("0e9b"),ie=o("1419"),le=Object(n["defineComponent"])({name:"GameInfo",components:{noData:ie["a"]},props:{gameInfo:{type:Object,default:()=>({})}},setup(e){const t=Object(oe["b"])(),o=Object(ne["d"])(),a=Object(n["ref"])({}),i=Object(n["computed"])(()=>{var t;return null!==(t=e.gameInfo)&&void 0!==t&&t.sports_info?e.gameInfo:a.value}),l=Object(n["ref"])(""),c=Object(n["ref"])({host:!0,zhong:!1,away:!1}),r=Object(n["ref"])(!1),s=async()=>{var e,t,o,n,c,s;(a.value=await d(),null!==(e=i.value)&&void 0!==e&&e.sports_info&&(null!==(t=i.value.sports_info)&&void 0!==t&&t.HostGood||null!==(o=i.value.sports_info)&&void 0!==o&&o.HostBad||null!==(n=i.value.sports_info)&&void 0!==n&&n.GuestGood||null!==(c=i.value.sports_info)&&void 0!==c&&c.GuestBad))?l.value=null===(s=i.value.host_team)||void 0===s?void 0:s.short_name:r.value=!0};Object(n["onMounted"])(s),Object(n["watch"])(()=>o.query.yiqiuid||o.params.yiqiuid,e=>{e&&i.value&&e!=i.value.id&&(console.info("info",e,i.value.id),s())});const d=async()=>{try{var e;if(null===(e=i.value)||void 0===e||!e.sports_info){const e=o.query.yiqiuid||o.params.yiqiuid,t=o.query.gameid,n=o.query.infoid;let a=await ae["l"]({yiqiu_id:e,game_id:t,info_id:n});return a}}catch(t){return console.info("get_soccer_game_info",t),{}}},u=()=>{te([i.value.dfcp_img_url])};return{no_data:r,game_info:i,tab_name:l,is_show:c,common_data:t.state.common_data,look_img:u}}}),ce=(o("3ea6"),o("6b0d")),re=o.n(ce);const se=re()(le,[["render",f],["__scopeId","data-v-13c0c69c"]]);t["default"]=se},aa9b:function(e,t,o){"use strict";o("87ec")}}]);