1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[735],{9962:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/efhw-switch",function(){return n(3399)}])},9091:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(5893),i=n(7294),o=n(3058),a=n(7493);let l=e=>{let{comment:t,replies:n=[],translationLanguage:o,supportedLanguages:b,parsedTranslationLanguage:y,onCommentSubmitted:j,replyEndpoint:v,isReply:C=!1}=e,[Z,k]=(0,i.useState)({}),[P,I]=(0,i.useState)(!1),[S,T]=(0,i.useState)(!1),[E,_]=(0,i.useState)(null),[N,L]=(0,i.useState)(!1),[O,z]=(0,i.useState)(!1),R=async e=>{if(""!==Z&&Z.lang===y)return I(!0);if(b.includes(y)){T(!0);let t=await fetch("/api/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e.comment,target_lang:y})}),{response:n}=await t.json();k({lang:y,text:n.TranslatedText}),I(!0),T(!1)}else _("Current browser language is not supported for translation")},F=e=>{L(!1),z(!1),j&&j(e)};return(0,r.jsxs)(d,{$isReply:C,children:[(0,r.jsx)(s,{children:t.callOrName}),o&&(0,r.jsx)(u,{children:P?(0,r.jsx)(g,{onClick:()=>{I(!1)},children:"show original"}):(0,r.jsx)(g,{onClick:()=>R(t),children:S?(0,r.jsx)("img",{src:"/icons/loader.svg",height:18}):"translate"})}),(0,r.jsx)(c,{children:P?Z.text:t.comment}),!C&&j&&t.id&&(0,r.jsx)(p,{children:(0,r.jsx)(m,{onClick:()=>L(!N),children:N?"cancel":"reply"})}),o&&(0,r.jsx)(h,{children:new Date(t.date).toLocaleDateString(o,{year:"numeric",month:"short",day:"numeric"})}),N&&(0,r.jsx)(x,{children:(0,r.jsx)(a.Z,{endpoint:v,replyTo:t.replyTo||t.id,onCommentSubmitted:F})}),n.length>0&&(0,r.jsx)(f,{children:n.map((e,t)=>(0,r.jsx)(l,{comment:e,supportedLanguages:b,translationLanguage:o,parsedTranslationLanguage:y,isReply:!0},e.id||"".concat(e.callOrName,"-").concat(t)))}),n.length>0&&j&&t.id&&(0,r.jsxs)(w,{children:[(0,r.jsx)(p,{children:(0,r.jsx)(m,{onClick:()=>z(!O),children:O?"cancel":"reply"})}),O&&(0,r.jsx)(x,{children:(0,r.jsx)(a.Z,{endpoint:v,replyTo:t.replyTo||t.id,onCommentSubmitted:F})})]})]})},d=o.ZP.div.withConfig({componentId:"sc-112d8972-0"})(['display:grid;grid-template-columns:1fr auto;grid-template-rows:45px auto 1fr auto auto auto auto;grid-template-areas:"name date" "translate translate" "comment comment" "actions actions" "form form" "replies replies" "replyend replyend";',""],e=>{let{$isReply:t,theme:n}=e;return t?"\n padding: 20px 0;\n border-bottom: 0;\n ":"\n border-bottom: 1px dotted ".concat(n.colors.text,";\n padding: 40px 0;\n ")}),s=o.ZP.div.withConfig({componentId:"sc-112d8972-1"})(["grid-area:name;"]),c=o.ZP.div.withConfig({componentId:"sc-112d8972-2"})(["grid-area:comment;line-break:normal;"]),p=o.ZP.div.withConfig({componentId:"sc-112d8972-3"})(["grid-area:actions;display:flex;align-items:flex-end;justify-content:flex-start;gap:15px;margin-top:15px;"]),m=o.ZP.div.withConfig({componentId:"sc-112d8972-4"})(["border-bottom:1px dotted ",";transition:0.4s;font-size:14px;:hover{cursor:pointer;border-bottom:1px dotted transparent;}"],e=>{let{theme:t}=e;return t.colors.text}),u=o.ZP.div.withConfig({componentId:"sc-112d8972-5"})(["grid-area:translate;display:flex;justify-content:flex-start;margin-bottom:8px;"]),g=(0,o.ZP)(m).withConfig({componentId:"sc-112d8972-6"})(["font-size:12px;"]),h=o.ZP.div.withConfig({componentId:"sc-112d8972-7"})(["grid-area:date;"]),x=o.ZP.div.withConfig({componentId:"sc-112d8972-8"})(["grid-area:form;margin-top:15px;"]),f=o.ZP.div.withConfig({componentId:"sc-112d8972-9"})(["grid-area:replies;margin-top:10px;margin-left:25px;padding-left:20px;border-left:1px dotted ",";@media (min-width:","){margin-left:40px;}"," + ","{border-top:1px dotted ","55;}"],e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.breakpoints.desktop},d,d,e=>{let{theme:t}=e;return t.colors.text}),w=o.ZP.div.withConfig({componentId:"sc-112d8972-10"})(["grid-area:replyend;display:flex;flex-direction:column;margin-left:45px;@media (min-width:","){margin-left:60px;}"],e=>{let{theme:t}=e;return t.breakpoints.desktop});var b=l},534:function(e,t,n){"use strict";var r=n(5893);n(7294);let i=n(3058).ZP.header.withConfig({componentId:"sc-bc9005b9-0"})(["padding:25px 0;width:100%;margin-bottom:20px;
1display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background-image:linear-gradient( 90deg,rgba(0,0,0,0.5) 15%,rgba(73,68,67,0.9) 30%,rgba(73,68,67,0.99) 50%,rgba(73,68,67,0.9) 70%,rgba(0,0,0,0.5) 85% );"]);t.Z=e=>{let{children:t,...n}=e;return(0,r.jsx)(i,{...n,children:t})}},7493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(5893),i=n(7294),o=n(3058),a=n(6683),l=n(1618);let d=o.ZP.form.withConfig({componentId:"sc-715dd6b3-0"})(["display:flex;flex-direction:column;align-items:flex-start;*{margin:7px 0;}"]),s=o.ZP.input.withConfig({componentId:"sc-715dd6b3-1"})(["width:140px;height:20px;padding:10px;font-size:16px;border-radius:0px;border:1px solid ",";background-color:",";"],e=>{let{theme:t}=e;return t.colors.darkPrimary},e=>{let{theme:t}=e;return t.colors.primary}),c=o.ZP.textarea.withConfig({componentId:"sc-715dd6b3-2"})(["min-height:100px;padding:10px;width:100%;resize:none;font-size:16px;border-radius:0px;border:1px solid ",";background-color:",";box-sizing:border-box;"],e=>{let{theme:t}=e;return t.colors.darkPrimary},e=>{let{theme:t}=e;return t.colors.primary});var p=e=>{let{onCommentSubmitted:t,replyTo:n,endpoint:o="/api/addQslComment"}=e,p={callOrName:"",comment:""},[m,u]=(0,i.useState)(p),[g,h]=(0,i.useState)(!1),[x,f]=(0,i.useState)(""),w=async e=>{if(e.preventDefault(),g)return;h(!0);let r=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({callOrName:m.callOrName,comment:m.comment,...n?{replyTo:n}:{}})}),{newComment:i}=await r.json();r.ok?(t(i),u(p),f("Your comment was successfully submitted.")):f("A problem has occurred while submitting the message, please try in another moment."),setTimeout(()=>f(""),5e3),h(!1)};return(0,r.jsxs)(d,{onSubmit:w,children:[(0,r.jsx)(s,{required:!0,placeholder:"Call or Name",value:m.callOrName,onChange:e=>u({...m,callOrName:e.target.value})}),(0,r.jsx)(c,{required:!0,placeholder:"Comment",value:m.comment,onChange:e=>u({...m,comment:e.target.value})}),(0,r.jsx)(a.Z,{isLoading:g,children:n?"SUBMIT REPLY":"SUBMIT COMMENT"}),""!==x&&(0,r.jsx)(l.x,{children:x})]})}},7009:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(5893),i=n(7294),o=n(1618),a=n(990),l=n(3058),d=n(5675),s=n.n(d),c=n(4298),p=n.n(c);let m=function(e,t){var n,l,d,c,g,h,x,f,w;let b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e)return null;if("text"===e.type){let t=e.text;return 1&e.format&&(t=(0,r.jsx)("strong",{children:t},b)),2&e.format&&(t=(0,r.jsx)("em",{children:t},b)),8&e.format&&(t=(0,r.jsx)("u",{children:t},b)),16&e.format&&(t=(0,r.jsx)("s",{children:t},b)),t}if("link"===e.type){let i=(null===(n=e.fields)||void 0===n?void 0:n.url)||e.url||"#",o=null===(l=e.fields)||void 0===l?void 0:l.newTab;return(0,r.jsx)(a.Z,{href:i,...o&&{target:"_blank",rel:"noopener noreferrer"},children:null===(d=e.children)||void 0===d?void 0:d.map((e,n)=>m(e,t,n))},b)}let y="string"==typeof e.format&&e.format?{textAlign:e.format}:void 0;if("paragraph"===e.type){let n=null===(c=e.children)||void 0===c?void 0:c.map((e,n)=>m(e,t,n)),o=null===(g=e.children)||void 0===g?void 0:g[0];return(null==o?void 0:o.type)==="text"&&(null==o?void 0:o.text)==="[translator]"?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(p(),{id:"function",dangerouslySetInnerHTML:{__html:"function googleTranslateElementInit() {\n new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');\n }"}}),(0,r.jsx)(p(),{id:"script",type:"text/javascript",src:"https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"})]},b):(0,r.jsx)(u,{style:y,children:n},b)}if("heading"===e.type){let n=e.tag||"h1",i=null===(h=e.children)||void 0===h?void 0:h.map((e,n)=>m(e,t,n));return(0,r.jsx)(o.X,{tag:n,size:"large",style:y,children:i},b)}if("list"===e.type){let n="number"===e.listType?"ol":"ul",i=null===(x=e.children)||void 0===x?void 0:x.map((e,n)=>m(e,t,n));return(0,r.jsx)(n,{children:i},b)}if("listitem"===e.type){let n=null===(f=e.children)||void 0===f?void 0:f.map((e,n)=>m(e,t,n));return(0,r.jsx)("li",{children:n},b)}if("quote"===e.type){let n=null===(w=e.children)||void 0===w?void 0:w.map((e,n)=>m(e,t,n));return(0,r.jsx)("blockquote",{children:n},b)}if("upload"===e.type){let n=e.value;if(null==n?void 0:n.url)return(0,r.jsx)("div",{style:{width:"100%",maxWidth:t?"75%":"100%",margin:"0 auto"},children:(0,r.jsx)(s(),{height:n.height||500,width:n.width||500,src:"https://morsekey.elia.casa".concat(n.url),alt:n.alt||n.filename||"Image",style:{width:"100%",height:"auto",display:"block"}})},b)}return e.children?e.children.map((e,n)=>m(e,t,n)):null},u=(0,l.ZP)(o.x).withConfig({componentId:"sc-f199e8e4-0"})(["min-height:22px;word-break:break-word;"]);l.ZP.div.withConfig({componentId:"sc-f199e8e4-1"})(["max-width:100%;overflow-x:auto;"]);var g=e=>{let{richText:t,compactImages:n}=e;return t?t.root?(0,r.jsx)(r.Fragment,{children:m(t.root,n)}):(0,r.jsx)(r.Fragment,{children:m(t,n)}):null}},9829:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5893);n(7294);let i=n(3058).ZP.section.withConfig({componentId:"sc-fc3e3826-0"})(["max-width:1080px;display:flex;width:90%;flex-direction:column;{","}margin:auto;margin-top:40px;margin-bottom:40px;@media (max-width:","){width:75%;}"],e=>{let{center:t}=e;return t&&"align-items: center;"},e=>{let{theme:t}=e;return t.breakpoints.mobile});var o=e=>{let{children:t,center:n,customRef:o,...a}=e;return(0,r.jsx)(i,{ref:o,center:n,...a,children:t})}},3399:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return g},default:function(){return h}});var r=n(5893),i=n(7294);
1n(990);var o=n(3058),a=n(1618),l=n(9091),d=n(7493),s=n(9829),c=n(5095);n(534);var p=n(5518),m=n(2962),u=n(7009),g=!0;function h(e){let{query:t,generalPageQuery:n,qsl:o,uniqueLabels:g,globalSettings:h}=e,[j,v]=(0,i.useState)([...t.docs]),[C,Z]=(0,i.useState)([]),[k,P]=(0,i.useState)(0),I=(0,i.useMemo)(()=>{let e=e=>(e.replyTo&&"object"==typeof e.replyTo?e.replyTo.id:e.replyTo)||null,t={};return j.forEach(n=>{let r=e(n);r&&(t[r]=t[r]||[]).push(n)}),j.filter(t=>!e(t)).sort((e,t)=>e.date<t.date?1:-1).map(e=>({comment:e,replies:(t[e.id]||[]).sort((e,t)=>e.date>t.date?1:-1)}))},[j]),S=(0,i.createRef)(null),[T,E]=(0,i.useState)(!1),_=(0,i.useRef)(null);(0,i.useEffect)(()=>{Z([...function(e,t){let n=[];for(let t=0;t<e.length;t+=10){let r=e.slice(t,t+10);n.push(r)}return n}(I,0)])},[I]),(0,i.useEffect)(()=>{T&&S.current.scrollIntoView({behavior:"smooth"}),E(!1)},[k]);let N=(e,t)=>{E(!!t),P(e)},[L,O]=(0,i.useState)(""),[z,R]=(0,i.useState)(""),F=["BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","IT","JA","LT","LV","NL","PL","PT","RO","RU","SK","SL","SV","ZH"];(0,i.useEffect)(()=>{O(window.navigator.language),R(window.navigator.language.split("-")[0].toUpperCase())},[]);let q=e=>{v([e,...j])};return(0,r.jsxs)(f,{children:[(0,r.jsx)(m.PB,{title:"Remote Switch",description:"\n The Ultimate Remote Switch may transform any wire in a perfect matched antenna, avoiding coils or manual jumpers.\n "}),(0,r.jsx)(s.Z,{children:(0,u.Z)({richText:n.content,compactImages:!0})}),(0,r.jsx)("br",{id:"commentSection"}),(0,r.jsxs)(s.Z,{customRef:_,children:[(0,r.jsx)(a.X,{tag:"h3",children:"Please leave a comment:"}),(0,r.jsx)(d.Z,{endpoint:"/api/addEFHWSwitchComment",onCommentSubmitted:q})]}),(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(a.X,{tag:"h3",children:"Comments:"}),(0,r.jsxs)(w,{children:["Translation language:\xa0",(0,r.jsx)(b,{onChange:e=>R(e.target.value),value:F.includes(z)?z:"EN",children:F.map(e=>(0,r.jsx)("option",{children:e},e))})]}),(0,r.jsxs)(y,{children:[(0,r.jsx)(x,{children:(0,r.jsx)(c.t,{page:k+1,onChange:e=>N(e-1),color:"gray",radius:"xs",withControls:!p.tq,total:C.length})}),C.length>0&&C[k].map((e,t)=>{let{comment:n,replies:i}=e;return(0,r.jsx)(l.Z,{supportedLanguages:F,translationLanguage:L,parsedTranslationLanguage:z,comment:n,replies:i,onCommentSubmitted:q,replyEndpoint:"/api/addEFHWSwitchComment"},n.id||"".concat(n.callOrName,"-").concat(t))}),(0,r.jsx)("br",{}),(0,r.jsx)(x,{ref:S,children:(0,r.jsx)(c.t,{page:k+1,onChange:e=>N(e-1,!0),color:"gray",radius:"xs",withControls:!p.tq,total:C.length})})]})]})]})}o.ZP.div.withConfig({componentId:"sc-537cf2ad-0"})(["display:flex;justify-content:center;"]);let x=o.ZP.div.withConfig({componentId:"sc-537cf2ad-1"})(["display:flex;justify-content:center;align-items:center;@media (max-width:","){button{margin:0;}}"],e=>{let{theme:t}=e;return t.breakpoints.desktop});o.ZP.button.withConfig({componentId:"sc-537cf2ad-2"})(["background-color:",";padding:20px;border:0;font-size:",";font-weight:",";:hover{cursor:pointer;}"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{selected:t}=e;return t?"16px":"15px"},e=>{let{selected:t}=e;return t?"bold":"regular"});let f=o.ZP.div.withConfig({componentId:"sc-537cf2ad-3"})(["width:100%;display:flex;flex-direction:column;align-items:center;"]);o.ZP.input.withConfig({componentId:"sc-537cf2ad-4"})(["height:40px;margin:0;padding:2px 10px;border:1px solid #f0e5e5;box-sizing:border-box;background-color:#f9f3f3;width:100%;border-radius:0px;font-size:16px;@media (min-width:","){min-width:150px;}"],e=>{let{theme:t}=e;return t.breakpoints.desktop}),o.ZP.div.withConfig({componentId:"sc-537cf2ad-5"})(["border-bottom:1px dotted white;color:white;transition:0.3s;:hover{cursor:pointer;border-bottom:1px dotted transparent;}"]),o.ZP.button.withConfig({componentId:"sc-537cf2ad-6"})(["height:40px;font-size:15px;box-sizing:border-box;color:",";border:3px solid ",";background-color:",";transition:0.3s;:hover{background-color:white;cursor:pointer;}"],e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.colors.darkPrimary},e=>{let{theme:t}=e;return t.colors.darkPrimary});let w=o.ZP.div.withConfig({componentId:"sc-537cf2ad-7"})(["margin:10px 0;"]),b=o.ZP.select.withConfig({componentId:"sc-537cf2ad-8"})(["width:50px;font-size:15px;"]);o.ZP.div.withConfig({componentId:"sc-537cf2ad-9"})(["display:flex;flex-direction:column;width:90%;@media (min-width:","){width:100%;}"],e=>{let{theme:t}=e;return t.breakpoints.desktop}
1),o.ZP.form.withConfig({componentId:"sc-537cf2ad-10"})(["width:100%;"]),o.ZP.div.withConfig({componentId:"sc-537cf2ad-11"})(["display:flex;height:30px;width:100%;@media (min-width:","){width:unset;}"],e=>{let{theme:t}=e;return t.breakpoints.desktop}),o.ZP.label.withConfig({componentId:"sc-537cf2ad-12"})(["font-size:15px;margin-bottom:5px;"]),o.ZP.div.withConfig({componentId:"sc-537cf2ad-13"})(["display:grid;grid-template-columns:1fr;justify-items:center;grid-gap:40px;margin:0 0 25px 0;@media (min-width:","){justify-items:center;margin:0 0 25px 0;grid-template-columns:1fr 1fr 1fr;}"],e=>{let{theme:t}=e;return t.breakpoints.desktop});let y=o.ZP.div.withConfig({componentId:"sc-537cf2ad-14"})(["display:flex;flex-direction:column;width:100%;margin:auto;border:1px solid ",";background-color:",";padding:30px 30px 60px 30px;box-sizing:border-box;@media (min-width:","){padding:30px 60px 60px 60px;}"],e=>{let{theme:t}=e;return t.colors.darkPrimary},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.breakpoints.desktop})},4298:function(e,t,n){e.exports=n(3381)}},function(e){e.O(0,[675,93,888,774,179],function(){return e(e.s=9962)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.