(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7748],{83204:function(e,t,n){"use strict";var r=n(3930),o=n(48002),c=n(59682);t.Z=function(e,t,n){void 0===n&&(n={});var i=(0,r.Z)(t);(0,c.Z)(function(){var t=(0,o.n)(n.target,window);if(null==t?void 0:t.addEventListener){var r=function(e){return i.current(e)};return t.addEventListener(e,r,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,r,{capture:n.capture})}}},[e,n.capture,n.once,n.passive],n.target)}},3930:function(e,t,n){"use strict";var r=n(67294);t.Z=function(e){var t=(0,r.useRef)(e);return t.current=e,t}},45210:function(e,t,n){"use strict";var r=n(67294),o=n(3930),c=n(92770),i=n(31663);t.Z=function(e){i.Z&&!(0,c.mf)(e)&&console.error("useUnmount expected parameter is a function, got ".concat(typeof e));var t=(0,o.Z)(e);(0,r.useEffect)(function(){return function(){t.current()}},[])}},40351:function(e,t,n){"use strict";var r=n(67294),o=n(45210),c=n(8224),i=n(48002);t.Z=function(e){return function(t,n,u){var a=(0,r.useRef)(!1),s=(0,r.useRef)([]),l=(0,r.useRef)([]),d=(0,r.useRef)();e(function(){var e,r=(Array.isArray(u)?u:[u]).map(function(e){return(0,i.n)(e)});if(!a.current){a.current=!0,s.current=r,l.current=n,d.current=t();return}r.length===s.current.length&&(0,c.Z)(r,s.current)&&(0,c.Z)(n,l.current)||(null===(e=d.current)||void 0===e||e.call(d),s.current=r,l.current=n,d.current=t())}),(0,o.Z)(function(){var e;null===(e=d.current)||void 0===e||e.call(d),a.current=!1})}}},8224:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}n.d(t,{Z:function(){return r}})},48002:function(e,t,n){"use strict";n.d(t,{n:function(){return c}});var r=n(92770),o=n(52982);function c(e,t){return o.Z?e?(0,r.mf)(e)?e():"current"in e?e.current:e:t:void 0}},92770:function(e,t,n){"use strict";n.d(t,{mf:function(){return r}});var r=function(e){return"function"==typeof e}},52982:function(e,t){"use strict";var n=!!("undefined"!=typeof window&&window.document&&window.document.createElement);t.Z=n},31663:function(e,t){"use strict";t.Z=!1},59682:function(e,t,n){"use strict";var r=n(67294),o=(0,n(40351).Z)(r.useEffect);t.Z=o},13504:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/support/downloads",function(){return n(48056)}])},37749:function(e,t,n){"use strict";var r=n(85893),o=n(67294),c=n(8818),i=n(45697),u=n.n(i),a=n(96486),s=n(69765),l=n.n(s);let d=e=>{let{defaultValue:t,size:n,placeholder:i,rules:u,onSearch:s}=e,{t:d}=(0,c.Z)("support"),[_,f]=(0,o.useState)(""),[p,v]=(0,o.useState)(!1),g=()=>{_&&!p&&s(_)},h=e=>{let{value:t}=null==e?void 0:e.target;if(!(0,a.isEmpty)(u)){let{min:e}=u;v((null==t?void 0:t.length)<e)}f(t)},m=e=>{(null==e?void 0:e.keyCode)===13&&g()};return(0,o.useEffect)(()=>{f(t)},[t]),(0,r.jsxs)("div",{className:l().search,children:[(0,r.jsx)("input",{className:"".concat(l().input," ").concat(l()["input--".concat(n)]," ").concat(p&&l()["input--wrong"]),type:"text",placeholder:i,value:_,onChange:h,onKeyUp:m}),p&&(0,r.jsx)("p",{className:l().wrong,children:null==u?void 0:u.message}),(0,r.jsx)("button",{type:"button",className:"".concat(l().button," ").concat((!_||p)&&l()["button--disabled"]),onClick:g,children:d("search.text")})]})};d.propTypes={defaultValue:u().string,size:u().string,placeholder:u().string,rules:u().object,onSearch:u().func},d.defaultProps={defaultValue:"",size:"small",placeholder:"",rules:{},onSearch:()=>{}},t.Z=d},48056:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w}});var r=n(85893),o=n(67294),c=n(41664),i=n.n(c),u=n(8818),a=n(11163),s=n(96486),l=n(254),d=n(94403),_=n(99872),f=n(72219),p=n(37749),v=n(25136),g=n(63202),h=n(25579),m=n(5534),x=n.n(m);let y=()=>{let e=(0,a.useRouter)(),[t,n]=(0,o.useState)([]),{t:c}=(0,u.Z)("support"),m=async()=>{try{var e;let t=await (0,g.uL)();n((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.list)||[])}catch(e){(0,h.b$)(e)}},y=t=>{e.push("/support/downloads/detail?word=".concat(encodeURIComponent(t)))},w=(0,r.jsx)("div",{className:x().category,children:t.map(e=>(0,r.jsxs)("div",{className:x().category__item,children:[(0,r.jsx)("span",{className:x().category__title,children:null==e?void 0:e.categoryLabel}),!(0,s.isEmpty)(null==e?void 0:e.secondCategoryList)&&(null==e?void 0:e.secondCategoryList.map(t=>(0,r.jsx)(i(),{href:"/support/downloads/detail?first=".concat(encodeURIComponent(null==e?void 0:e.category),"&second=").concat(null==t?void 0:t.category),className:x().category__subtitle,children:null==t?void 0:t.categoryLabel},null==t?void 0:t.category)))]},null==e?void 0:e.category))});return(0,o.useEffect)(()=>{m()},[]),(0,r.jsxs)(l.Z,{backGroundColor:"white",children:[(0,r.jsx)(d.Z,{title:c("download.seo.title"),description:c("download.seo.description"),keywords:c("download.seo.keywords"),requestUri:"/support/downloads"}),(0,r.jsx)(_.Z,{logo:"https://static.donnermusic.com/donner-official-web/images/icon_support.png",path:"/support"}),(0,r.jsx)(f.Z,{}),(0,r.jsxs)("div",{className:"page__wrapper",children:[(0,r.jsxs)("div",{className:x().header,children:[(0,r.jsx)("h1",{className:x().title,children:c("download.title")}),(0,r.jsx)("div",{className:x().search,children:(0,r.jsx)(p.Z,{size:"small",placeholder:c("download.placeholder"),onSearch:y})})]}),w]}),(0,r.jsx)(v.Z,{})]})};var w=!0;t.default=y},69765:function(e){e.exports={search:"index_search__NbrrW",input:"index_input__PGUmU","input--small":"index_input--small__lYu2k","input--large":"index_input--large__UxgNL","input--wrong":"index_input--wrong__ZNrda",wrong:"index_wrong__xxFqg",button:"index_button__2O5aU","button--disabled":"index_button--disabled__HZVyr"}},5534:function(e){e.exports={header:"index_header__mVkOc",title:"index_title__jodab",category:"index_category__rmIQX",category__item:"index_category__item__HOXG5",category__title:"index_category__title__2YeKE",category__subtitle:"index_category__subtitle__UkKjd"}}},function(e){e.O(0,[1664,4202,3106,9906,9774,2888,179],function(){return e(e.s=13504)}),_N_E=e.O()}]);