(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5563],{83204:function(e,t,n){"use strict";var r=n(3930),i=n(48002),c=n(59682);t.Z=function(e,t,n){void 0===n&&(n={});var s=(0,r.Z)(t);(0,c.Z)(function(){var t=(0,i.n)(n.target,window);if(null==t?void 0:t.addEventListener){var r=function(e){return s.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),i=n(3930),c=n(92770),s=n(31663);t.Z=function(e){s.Z&&!(0,c.mf)(e)&&console.error("useUnmount expected parameter is a function, got ".concat(typeof e));var t=(0,i.Z)(e);(0,r.useEffect)(function(){return function(){t.current()}},[])}},40351:function(e,t,n){"use strict";var r=n(67294),i=n(45210),c=n(8224),s=n(48002);t.Z=function(e){return function(t,n,a){var u=(0,r.useRef)(!1),o=(0,r.useRef)([]),l=(0,r.useRef)([]),_=(0,r.useRef)();e(function(){var e,r=(Array.isArray(a)?a:[a]).map(function(e){return(0,s.n)(e)});if(!u.current){u.current=!0,o.current=r,l.current=n,_.current=t();return}r.length===o.current.length&&(0,c.Z)(r,o.current)&&(0,c.Z)(n,l.current)||(null===(e=_.current)||void 0===e||e.call(_),o.current=r,l.current=n,_.current=t())}),(0,i.Z)(function(){var e;null===(e=_.current)||void 0===e||e.call(_),u.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),i=n(52982);function c(e,t){return i.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),i=(0,n(40351).Z)(r.useEffect);t.Z=i},28469:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/support",function(){return n(73493)}])},37749:function(e,t,n){"use strict";var r=n(85893),i=n(67294),c=n(8818),s=n(45697),a=n.n(s),u=n(96486),o=n(69765),l=n.n(o);let _=e=>{let{defaultValue:t,size:n,placeholder:s,rules:a,onSearch:o}=e,{t:_}=(0,c.Z)("support"),[d,p]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),x=()=>{d&&!f&&o(d)},m=e=>{let{value:t}=null==e?void 0:e.target;if(!(0,u.isEmpty)(a)){let{min:e}=a;v((null==t?void 0:t.length)<e)}p(t)},h=e=>{(null==e?void 0:e.keyCode)===13&&x()};return(0,i.useEffect)(()=>{p(t)},[t]),(0,r.jsxs)("div",{className:l().search,children:[(0,r.jsx)("input",{className:"".concat(l().input," ").concat(l()["input--".concat(n)]," ").concat(f&&l()["input--wrong"]),type:"text",placeholder:s,value:d,onChange:m,onKeyUp:h}),f&&(0,r.jsx)("p",{className:l().wrong,children:null==a?void 0:a.message}),(0,r.jsx)("button",{type:"button",className:"".concat(l().button," ").concat((!d||f)&&l()["button--disabled"]),onClick:x,children:_("search.text")})]})};_.propTypes={defaultValue:a().string,size:a().string,placeholder:a().string,rules:a().object,onSearch:a().func},_.defaultProps={defaultValue:"",size:"small",placeholder:"",rules:{},onSearch:()=>{}},t.Z=_},49053:function(e,t,n){"use strict";var r=n(85893),i=n(67294),c=n(41664),s=n.n(c),a=n(11163),u=n(96486),o=n(83731),l=n.n(o);let _=[{value:"faq",label:"FAQS",url:"/support"},{value:"contact",label:"Contact Us",url:"/support/contact"}],d=()=>{let e=(0,a.useRouter)(),[t,n]=(0,i.useState)(),c=()=>{let{pathname:t}=e,r=(0,u.find)(_,e=>t.includes(null==e?void 0:e.value)),i=(0,u.isEmpty)(r)?"faq":null==r?void 0:r.value;n(i)};return(0,i.useEffect)(()=>{c()},[]),(0,r.jsx)("div",{className:l().navs,children:(0,r.jsxs)("div",{className:l().navs__main,children:[(0,r.jsx)("span",{className:l().navs__title,children:"support"}),_.map(e=>(0,r.jsx)(s(),{href:null==e?void 0:e.url,className:"".concat(l().nav," ").concat(t===(null==e?void 0:e.value)&&l()["nav--active"]),title:e.name,children:e.label},null==e?void 0:e.url))]})})};t.Z=d},73493:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return b}});var r=n(85893),i=n(67294),c=n(41664),s=n.n(c),a=n(11163),u=n(8818),o=n(254),l=n(94403),_=n(99872),d=n(25136),p=n(72219),f=n(49053),v=n(37749),x=n(63202),m=n(25579),h=n(64885),g=n.n(h);let y=()=>{let e=(0,a.useRouter)(),[t,n]=(0,i.useState)([]),[c,h]=(0,i.useState)([]),[y,b]=(0,i.useState)([]),{t:j}=(0,u.Z)("support"),Z=async()=>{try{let e=await (0,x.AT)(),{productList:t,shippingList:r}=null==e?void 0:e.data;n(t||[]),h(r||[])}catch(e){(0,m.b$)(e)}},N=async()=>{try{var e;let t=await (0,x.rs)();b((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.list)||[])}catch(e){(0,m.b$)(e)}},w=t=>{e.push("/support/faq?word=".concat(encodeURIComponent(t)))},k=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"".concat(g().subtitle," ").concat(g().subtitle__link),children:j("support.link")}),(0,r.jsx)("div",{className:g().link,children:y.map(e=>(0,r.jsx)(s(),{href:"/support/faq/detail?id=".concat(null==e?void 0:e.supportId),className:g().link__item,children:null==e?void 0:e.title},null==e?void 0:e.supportId))})]}),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"".concat(g().subtitle," ").concat(g().subtitle__category),children:e}),(0,r.jsx)("div",{className:g().category,children:t.map(e=>(0,r.jsxs)(s(),{href:"/support/faq?id=".concat(null==e?void 0:e.category),className:g().category__item,children:[(0,r.jsx)("img",{className:g().category__icon,src:null==e?void 0:e.categoryImageUrl,alt:"icon"}),(0,r.jsx)("span",{className:g().category__text,children:null==e?void 0:e.categoryLabel})]},null==e?void 0:e.category))})]})};return(0,i.useEffect)(()=>{N(),Z()},[]),(0,r.jsxs)(o.Z,{backGroundColor:"white",children:[(0,r.jsx)(l.Z,{title:j("seo.title"),description:j("seo.description"),keywords:j("seo.keywords"),requestUri:"/support"}),(0,r.jsx)(_.Z,{logo:"https://static.donnermusic.com/donner-official-web/images/icon_support.png",path:"/support",children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(p.Z,{}),(0,r.jsx)("p",{className:g().title,children:j("support.title")}),(0,r.jsx)("p",{className:g().desc,children:j("support.desc")}),(0,r.jsx)("div",{className:g().search,children:(0,r.jsx)(v.Z,{size:"large",placeholder:j("support.placeholder"),rules:{min:4,message:j("search.tip")},onSearch:w})}),(0,r.jsx)("i",{className:g().line}),(0,r.jsxs)("div",{className:"page__wrapper",children:[k,E(j("support.product"),t),E(j("support.ship"),c)]}),(0,r.jsx)(d.Z,{})]})};var b=!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"}},83731:function(e){e.exports={navs:"index_navs__7FgKn",navs__main:"index_navs__main__zKCqO",navs__title:"index_navs__title__TWEkS",nav:"index_nav__oLOK6","nav--active":"index_nav--active__LPgKZ"}},64885:function(e){e.exports={title:"index_title__IHfAz",desc:"index_desc___RpYL",search:"index_search__O5ofT",line:"index_line__XbbxE",subtitle:"index_subtitle__MnG8z",subtitle__link:"index_subtitle__link__ZTKYY",subtitle__category:"index_subtitle__category__mNv_v",link:"index_link__p7zrK",link__item:"index_link__item__rtbX7",category:"index_category__mIjTY",category__item:"index_category__item__FKMjI",category__icon:"index_category__icon__84XRM",category__text:"index_category__text__0muci"}}},function(e){e.O(0,[1664,4202,3106,9906,9774,2888,179],function(){return e(e.s=28469)}),_N_E=e.O()}]);