(window.saladictEntry=window.saladictEntry||[]).push([[60],{1353:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n),s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,c=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,o]=Object(n.useState)(null);return s(()=>{if(c&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(c)}},[c,i]),r.a.createElement(t,{...l,ref:o})}},1355:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...s}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...s},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},1356:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n);class s 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",s=this.props.gutter||"0.3em",l={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:l},Array.from(Array(t)).map((e,l)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:l+a,width:n,height:n,style:{marginRight:l===t-1?"":s}},r.a.createElement("path",{fill:l<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"}))))}}},682:function(e,t,a){"use strict";a.r(t),a.d(t,"DictYoudao",(function(){return o}));var n=a(0),r=a.n(n),s=a(123),l=a(1356),c=a(1355),i=a(1353);const o=({result:e})=>{const[t,a]=Object(n.useState)(0);return"related"===e.type?r.a.createElement(i.a,{className:"dictYoudao-Related",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(l.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(s.c,{src:t}))),r.a.createElement("span",{className:"dictYoudao-Rank"},e.rank)),e.basic&&r.a.createElement(i.a,{className:"dictYoudao-Basic",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(i.a,{className:"dictYoudao-Collins",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(i.a,{html:e.discrimination})),e.sentence&&r.a.createElement(c.a,{title:"权威例句"},r.a.createElement(i.a,{tag:"ol",className:"dictYoudao-Sentence",html:e.sentence})),e.translation&&r.a.createElement(c.a,{title:"机器翻译"},r.a.createElement(i.a,{className:"dictYoudao-Translation",html:e.translation})))};t.default=o}}]);