(window.saladictEntry=window.saladictEntry||[]).push([[57],{1328:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...l}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...l},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},1329:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n);class l extends r.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",l=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":l}},r.a.createElement("path",{fill:s<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},667:function(e,t,a){"use strict";a.r(t),a.d(t,"DictYoudao",(function(){return i}));var n=a(0),r=a.n(n),l=a(119),s=a(1329),c=a(1328);const i=({result:e})=>{const[t,a]=Object(n.useState)(0);return"related"===e.type?r.a.createElement("div",{className:"dictYoudao-Related",dangerouslySetInnerHTML:{__html:e.list}}):r.a.createElement(r.a.Fragment,null,e.title&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},r.a.createElement("h1",{className:"dictYoudao-Title"},e.title),r.a.createElement("span",{className:"dictYoudao-Pattern"},e.pattern)),(e.stars>0||e.prons.length>0)&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},e.stars>0&&r.a.createElement(s.a,{className:"dictYoudao-Stars",rate:e.stars}),e.prons.map(({phsym:e,url:t})=>r.a.createElement(r.a.Fragment,{key:t},e," ",r.a.createElement(l.c,{src:t}))),r.a.createElement("span",{className:"dictYoudao-Rank"},e.rank)),e.basic&&r.a.createElement("div",{className:"dictYoudao-Basic",dangerouslySetInnerHTML:{__html:e.basic}}),e.collins.length>0&&r.a.createElement(c.a,{title:"柯林斯英汉双解"},e.collins.length>1&&r.a.createElement("select",{value:t,onChange:e=>a(e.currentTarget.value)},e.collins.map((e,t)=>r.a.createElement("option",{key:t,value:t},e.title))),r.a.createElement("div",{className:"dictYoudao-Collins",dangerouslySetInnerHTML:{__html:e.collins[t].content}})),e.discrimination&&r.a.createElement("div",{className:"dictYoudao-Discrimination"},r.a.createElement("h1",{className:"dictYoudao-Discrimination_Title"},"词义辨析"),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.discrimination}})),e.sentence&&r.a.createElement(c.a,{title:"权威例句"},r.a.createElement("ol",{className:"dictYoudao-Sentence",dangerouslySetInnerHTML:{__html:e.sentence}})),e.translation&&r.a.createElement(c.a,{title:"机器翻译"},r.a.createElement("div",{className:"dictYoudao-Translation",dangerouslySetInnerHTML:{__html:e.translation}})))};t.default=i}}]);