"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[16689],{22002:function(e,n,t){t.r(n),t.d(n,{useServerThemes:function(){return i}});var r=t(63696),u=t(39641),o=function(e,n,t,r){return new(t||(t=Promise))((function(u,o){function a(e){try{i(r.next(e))}catch(e){o(e)}}function l(e){try{i(r.throw(e))}catch(e){o(e)}}function i(e){var n;e.done?u(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}i((r=r.apply(e,n||[])).next())}))},a=function(e,n){var t,r,u,o,a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(i){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(u=2&l[0]?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[2&l[0],u.value]),l[0]){case 0:case 1:u=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((u=(u=a.trys).length>0&&u[u.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!u||l[1]>u[0]&&l[1]<u[3])){a.label=l[1];break}if(6===l[0]&&a.label<u[1]){a.label=u[1],u=l;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(l);break}u[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=u=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,i])}}},l=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,u,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){u={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(u)throw u.error}}return a};function i(){var e=l((0,r.useState)(),2),n=e[0],t=e[1];(0,r.useEffect)((function(){n||function(){o(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return[4,u.A.getThemes()];case 1:return e=n.sent(),t(null!=e?e:[]),[2]}}))}))}()}),[]);var i=(0,r.useMemo)((function(){return n?n.find((function(e){return e.default})):null}),[n]);return{themes:null!=n?n:[],defaultTheme:i}}}}]);