(window.saladictEntry=window.saladictEntry||[]).push([[119],{1353:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n),c="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const s=e=>{const{tag:t="div",html:a,...s}=e,l=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 c(()=>{if(l&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(l)}},[l,i]),r.a.createElement(t,{...s,ref:o})}},661:function(e,t,a){"use strict";a.r(t),a.d(t,"DictHjDict",(function(){return l}));var n=a(0),r=a.n(n),c=a(9),s=a(1353);const l=e=>"lex"===e.result.type?r.a.createElement(i,{...e}):"related"===e.result.type?r.a.createElement(o,{...e}):null;function i(e){const{header:t,entries:a}=e.result;return r.a.createElement("div",{className:"dictHjdict-Entry",onClick:m},r.a.createElement(u,{...e}),t&&r.a.createElement(s.a,{tag:"header",className:"word-details-header",html:t}),a.map((e,t)=>r.a.createElement(s.a,{key:t,html:e})))}function o(e){const{content:t}=e.result;return r.a.createElement("div",null,r.a.createElement(u,{...e}),r.a.createElement(s.a,{className:"dictHjdict-Entry",html:t}))}t.default=l;const d=["w","jp/cj","jp/jc","kr","fr","de","es"];function u(e){const{langCode:t}=e.result,{t:a}=Object(c.e)("dicts");return r.a.createElement("select",{value:t,onChange:t=>e.searchText({id:"hjdict",payload:{langCode:t.target.value}})},d.map(e=>r.a.createElement("option",{key:e,value:e},a("hjdict.options.chsas-"+e))))}function m(e){const t=function(e){for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains("word-details-tab"))return t;return null}(e.target);if(t){if(t.classList.contains("word-details-tab-active"))return;const a=e.currentTarget;if(a){const e=+(t.dataset.categories||"0"),n=a.querySelectorAll(".word-details-pane");a.querySelectorAll(".word-details-tab").forEach((t,a)=>{a===e?(t.classList.add("word-details-tab-active"),n[a].classList.add("word-details-pane-active")):(t.classList.remove("word-details-tab-active"),n[a].classList.remove("word-details-pane-active"))})}}}}}]);