(window.saladictEntry=window.saladictEntry||[]).push([[137],{648:function(e,t,a){"use strict";a.r(t),a.d(t,"DictHjDict",(function(){return c}));var n=a(0),r=a.n(n),s=a(9);const c=e=>"lex"===e.result.type?r.a.createElement(l,{...e}):"related"===e.result.type?r.a.createElement(i,{...e}):null;function l(e){const{header:t,entries:a}=e.result;return r.a.createElement("div",{className:"dictHjdict-Entry",onClick:u},r.a.createElement(o,{...e}),t&&r.a.createElement("header",{className:"word-details-header",dangerouslySetInnerHTML:{__html:t}}),a.map((e,t)=>r.a.createElement("div",{dangerouslySetInnerHTML:{__html:e},key:t})))}function i(e){const{content:t}=e.result;return r.a.createElement("div",null,r.a.createElement(o,{...e}),r.a.createElement("div",{className:"dictHjdict-Entry",dangerouslySetInnerHTML:{__html:t}}))}t.default=c;const d=["w","jp/cj","jp/jc","kr","fr","de","es"];function o(e){const{langCode:t}=e.result,{t:a}=Object(s.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 u(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"))})}}}}}]);