import{z as e}from"./vendor-s2rfM_Vj.js";import{D as r,W as o}from"./Index-DAF2pSwh.js";import{D as s}from"./t-r-vendor-gn7FMrPE.js";import"./constant-Dkm_Y9q1.js";import"./apis-DdFSvwR4.js";import"./newtab-BWIjnu6l.js";import"./index-Bf7N7lFc.js";const t=({visible:t,handleVisible:n,weatherInfo:i,province:a,city:d})=>e.jsx(s,{className:"calculator-dialog",style:{padding:0,overflow:"auto",background:"linear-gradient(to bottom, rgba(52, 94, 152, 0.9), rgba(107, 152, 201, 0.7)",backdropFilter:"blur(5px)",height:"fit-content",border:"0 solid transparent",boxShadow:"4px 4px 8px var(--black5)"},width:"fit-content",visible:t,mode:"modal",onClose:()=>n(!1),preventScrollThrough:!0,showOverlay:!0,theme:"default",footer:!1,header:!1,closeBtn:!1,closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmOnEnter:!1,destroyOnClose:!0,children:e.jsxs(r.WrapUI,{children:[e.jsxs(r.HeaderUI,{children:[e.jsxs("h1",{children:[i.now.temperature,e.jsx("span",{children:"°C"})]}),e.jsxs("aside",{children:[e.jsxs("h4",{children:[e.jsxs("p",{children:[e.jsx("i",{className:"ovo location"}),(e=>{const r=new Map([["内蒙古",e=>e+"自治区"],["西藏",e=>e+"自治区"],["宁夏",e=>e+"回族自治区"],["新疆",e=>e+"维吾尔自治区"],["广西",e=>e+"壮族自治区"]]);if(r.has(e)){const o=r.get(e);if(o)return o(e)}return e+"省"})(a),"·",d]}),e.jsx("span",{children:"位置信息来源于您的ip地址"})]}),e.jsxs("h2",{children:[i.now.weather,e.jsx("i",{className:"ovo-color "+o.get(i.now.weather)})]}),e.jsx("h3",{children:i.now.wind})]})]}),e.jsxs(r.ContentUI,{children:[e.jsxs(r.ContentDayUI,{children:[e.jsx("h1",{children:"今天天气"}),e.jsx("i",{className:"ovo-color "+o.get(i.today.weather)}),e.jsx("div",{children:i.today.temperature}),e.jsx("div",{children:i.today.weather}),e.jsx("div",{children:i.today.wind})]}),e.jsxs(r.ContentDayUI,{children:[e.jsx("h1",{children:"明天天气"}),e.jsx("i",{className:"ovo-color "+o.get(i.tomorrow.weather)}),e.jsx("div",{children:i.tomorrow.temperature}),e.jsx("div",{children:i.tomorrow.weather}),e.jsx("div",{children:i.tomorrow.wind})]}),e.jsxs(r.ContentDayUI,{children:[e.jsx("h1",{children:"后天天气"}),e.jsx("i",{className:"ovo-color "+o.get(i.DATomorrow.weather)}),e.jsx("div",{children:i.DATomorrow.temperature}),e.jsx("div",{children:i.DATomorrow.weather}),e.jsx("div",{children:i.DATomorrow.wind})]})]}),e.jsx(r.FooterUI,{onClick:()=>{location.href="https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=1&tn=baidu&wd=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&fenlei=256&oq=%25E5%25A4%25A9%25E6%25B0%2594%25E9%25A2%2584%25E6%258A%25A5&rsv_pq=9caa49600001cb7c&rsv_t=5d85OpCti5LRaUCSVgigLCgQlX%2FP%2F3aPji%2FqdU4%2FUn0L7ueTFRKH6KHZGPE&rqlang=cn&rsv_dl=tb&rsv_enter=0&rsv_btype=t"},children:"点击查看更多天气信息"})]})});export{t as default};
