Your IP : 3.12.146.166


Current Path : /home/church/www/wp-content/themes/neve/dashboard/build/
Upload File :
Current File : /home/church/www/wp-content/themes/neve/dashboard/build/dashboard.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{12:function(e,t,n){}}]),function(e){function t(t){for(var a,s,i=t[0],l=t[1],o=t[2],m=0,b=[];m<i.length;m++)s=i[m],Object.prototype.hasOwnProperty.call(c,s)&&c[s]&&b.push(c[s][0]),c[s]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(u&&u(t);b.length;)b.shift()();return r.push.apply(r,o||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,i=1;i<n.length;i++){var l=n[i];0!==c[l]&&(a=!1)}a&&(r.splice(t--,1),e=s(s.s=n[0]))}return e}var a={},c={0:0},r=[];function s(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=a,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var o=0;o<i.length;o++)t(i[o]);var u=l;r.push([18,1]),n()}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,n){var a=n(13),c=n(14),r=n(15),s=n(17);e.exports=function(e,t){return a(e)||c(e,t)||r(e,t)||s()}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)&&a.length){var s=c.apply(null,a);s&&e.push(s)}else if("object"===r)for(var i in a)n.call(a,i)&&a[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(a=function(){return c}.apply(t,[]))||(e.exports=a)}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.api}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){var a,c,r;c=[],void 0===(r="function"==typeof(a=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,a=e.replace(/^v/,"").replace(/\+.*$/,""),c=(n="-",-1===(t=a).indexOf(n)?t.length:t.indexOf(n)),r=a.substring(0,c).split(".");return r.push(a.substring(c+1)),r}function n(e){return isNaN(Number(e))?e:Number(e)}function a(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function c(e,c){[e,c].forEach(a);for(var r=t(e),s=t(c),i=0;i<Math.max(r.length-1,s.length-1);i++){var l=parseInt(r[i]||0,10),o=parseInt(s[i]||0,10);if(l>o)return 1;if(o>l)return-1}var u=r[r.length-1],m=s[s.length-1];if(u&&m){var b=u.split(".").map(n),d=m.split(".").map(n);for(i=0;i<Math.max(b.length,d.length);i++){if(void 0===b[i]||"string"==typeof d[i]&&"number"==typeof b[i])return-1;if(void 0===d[i]||"string"==typeof b[i]&&"number"==typeof d[i])return 1;if(b[i]>d[i])return 1;if(d[i]>b[i])return-1}}else if(u||m)return u?-1:1;return 0}var r=[">",">=","=","<","<="],s={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return c.validate=function(t){return"string"==typeof t&&e.test(t)},c.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===r.indexOf(e))throw new TypeError("Invalid operator, expected one of "+r.join("|"))}(n);var a=c(e,t);return s[n].indexOf(a)>-1},c})?a.apply(t,c):a)||(e.exports=r)},function(e,t){function n(e,t,n,a,c,r,s){try{var i=e[r](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(a,c)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise((function(c,r){var s=e.apply(t,a);function i(e){n(s,c,r,i,l,"next",e)}function l(e){n(s,c,r,i,l,"throw",e)}i(void 0)}))}}},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,c=!1,r=void 0;try{for(var s,i=e[Symbol.iterator]();!(a=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(c)throw r}}return n}}},function(e,t,n){var a=n(16);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t);var a=n(0),c=(n(12),n(3)),r=n.n(c),s=n(10),i=n.n(s),l=n(9),o=n.n(l),u=n(11),m=n.n(u),b=n(7),d=n.n(b),p=n(1),O=n(8),v=function(){return O.loadPromise.then((function(){return(new O.models.Settings).fetch()}))},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(a?"nv_pro_":"")+e+(n?"_status":"");var c=new O.models.Settings(d()({},e,t));return new Promise((function(n){c.save().then((function(a){a&&!a[e]!==t||n({success:!1}),n(h(e,a))}))}))},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return f(e,t,{},"GET",n)},f=function(){var e=m()(o.a.mark((function e(t){var n,a,c,r,s,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],a=i.length>2&&void 0!==i[2]?i[2]:{},c=i.length>3&&void 0!==i[3]?i[3]:"POST",r=!(i.length>4&&void 0!==i[4])||i[4],s={method:c,headers:{Accept:"application/json","Content-Type":"application/json"}},r&&(s.headers["x-wp-nonce"]=neveDash.nonce),"POST"===c&&(s.body=JSON.stringify(a)),e.next=9,fetch(t,s).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(e,t){return"nv_pro_typekit_id"!==e||t.neve_pro_typekit_data?{success:!0}:{message:Object(p.__)("Typekit Project ID is invalid","neve"),success:!1}},E=n(2),_=n(4),y=Object(_.withSelect)((function(e){return{templatesPluginData:(0,e("neve-dashboard").getPlugins)()["templates-patterns-collection"]}}))((function(e){var t,n=e.templatesPluginData,c=neveDash,s=c.assets,i=c.tpcPath,l=c.tpcAdminURL+(c.isOnboarding?"&onboarding=yes":""),o=Object(a.useState)(!1),u=r()(o,2),m=u[0],b=u[1],d=Object(a.useState)(!1),O=r()(d,2),v=O[0],j=O[1],f=Object(a.useState)(!1),h=r()(f,2),_=h[0],y=h[1],N=Object(a.useState)(!1),w=r()(N,2),S=w[0],T=w[1],k=Object(a.useState)(n.cta),D=r()(k,2),P=D[0],L=D[1],x=function(){b(!0),wp.updates.ajax("install-plugin",{slug:"templates-patterns-collection",success:function(e){C()},error:function(e){"folder_exists"===e.errorCode?C():T(e.errorMessage?e.errorMessage:Object(p.__)("Something went wrong while installing the plugin."))}})},C=function(){b(!1),j(!0),L("activate");var e=n.activate;g(e,!0).then((function(e){e.ok?window.location.href=l:T(Object(p.__)("Could not activate plugin."))}))},M=function(){y(!0),wp.updates.ajax("update-plugin",{slug:"templates-patterns-collection",plugin:W(i),success:function(e){window.location.href=l},error:function(e){T(e.errorMessage?e.errorMessage:Object(p.__)("Something went wrong while updating the plugin."))}})};return Object(a.createElement)("div",{className:"unavailable-starter-sites"},Object(a.createElement)("div",{className:"ss-background",style:{backgroundImage:"url(".concat(s,"/starter.jpg)")}}),Object(a.createElement)("div",{className:"content-wrap"},S?Object(a.createElement)("h1",{className:"error"},S):(t={install:Object(a.createElement)(E.Button,{disabled:m,isPrimary:!m,isSecondary:m,className:m&&"is-loading",icon:m&&"update",onClick:x},m?Object(p.__)("Installing")+"...":Object(p.__)("Install and Activate")),activate:Object(a.createElement)(E.Button,{disabled:v,isPrimary:!v,isSecondary:v,className:v&&"is-loading",icon:v&&"update",onClick:C},v?Object(p.__)("Activating")+"...":Object(p.__)("Activate")),deactivate:Object(a.createElement)(E.Button,{disabled:_,isPrimary:!_,isSecondary:_,className:_&&"is-loading",icon:_&&"update",onClick:M},_?Object(p.__)("Updating")+"...":Object(p.__)("Update"))},Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",null,"deactivate"===P?neveDash.strings.starterSitesUnavailableUpdate:neveDash.strings.starterSitesUnavailableActive),Object(a.createElement)("br",null),t[P]))))})),N=n(5),w=n.n(N),S=function(e){var t=e.icon,n=e.iconAlt,c=e.title,r=e.description,s=e.children,i=e.classNames,l=e.dashicon;return Object(a.createElement)("div",{className:w()(["card",i])},Object(a.createElement)("div",{className:"card-header"},t&&(l?Object(a.createElement)(E.Icon,{className:"icon dashicon",icon:t}):Object(a.createElement)("img",{className:"icon",src:t,alt:n||"icon"})),c&&Object(a.createElement)("h3",{className:"title"},c)),Object(a.createElement)("div",{className:"card-content"},r&&Object(a.createElement)("p",{className:"card-description"},r),s))},T=function(e){var t,n,c=e.setTab,r=neveDash,s=r.showFeedbackNotice,i=r.pro,l=r.whiteLabel,o=r.customizerShortcuts,u=r.tpcAdminURL,m=l&&l.hideStarterSites;return Object(a.createElement)(a.Fragment,null,!m&&Object(a.createElement)(S,{icon:neveDash.assets+"squares.svg",title:Object(p.__)("Starter Sites","neve"),description:neveDash.strings.starterSitesCardDescription},H["starter-sites"]?Object(a.createElement)(E.Button,{isPrimary:!0,onClick:function(){c("starter-sites")}},Object(p.__)("Go to Starter Sites","neve")):Object(a.createElement)(E.Button,{href:u,isPrimary:!0},Object(p.__)("Go to Starter Sites","neve"))),Object(a.createElement)(S,{classNames:"customizer-quick-links",icon:neveDash.assets+"compass.svg",title:Object(p.__)("Customizer quick links","neve")},(t=Math.ceil(o.length/2),n=[o.slice(0,t),o.slice(t)],Object(a.createElement)("div",{className:"columns"},n.map((function(e,t){return Object(a.createElement)("div",{className:"col",key:t},e.map((function(t,n){return Object(a.createElement)(a.Fragment,{key:n},Object(a.createElement)(E.Button,{isLink:!0,href:t.link},t.text),n!==e.length-1&&Object(a.createElement)("hr",null))})))}))))),!l&&Object(a.createElement)(S,{icon:neveDash.assets+"page.svg",title:Object(p.__)("Getting Started? Check help and docs","neve"),description:Object(p.__)("Need more details? Please check our full documentation for detailed information on how to use Neve.","neve")},Object(a.createElement)(E.Button,{isLink:!0,onClick:function(){return c("help")}},Object(p.__)("Go to docs","neve"))),s&&!i&&Object(a.createElement)(S,{classNames:"feedback-card",icon:"awards",dashicon:!0,title:Object(p.__)("Feedback","neve"),description:Object(p.__)("Share your feedback for Neve and get the chance to win the pro version.","neve")},Object(a.createElement)(E.Button,{isPrimary:!0,href:"https://themeisle.com/review-neve-theme/"},Object(p.__)("Leave Feedback","neve"))))},k=function(e){var t=e.isOpen,n=e.title,c=e.children,s=Object(a.useState)(t),i=r()(s,2),l=i[0],o=i[1],u=w()(["accordion",{open:l,closed:!l}]);return Object(a.createElement)("div",{className:u},Object(a.createElement)("button",{"aria-expanded":l,className:"accordion-header",onClick:function(){return o(!l)}},n&&Object(a.createElement)("div",{className:"accordion-title"},n),Object(a.createElement)(E.Dashicon,{icon:l?"arrow-up-alt2":"arrow-down-alt2"})),Object(a.createElement)("div",{className:"accordion-body",style:{height:l?"auto":"0px"}},c&&c))},D=n(6),P=Object(D.compose)(Object(_.withSelect)((function(e){var t=e("neve-dashboard").getProOption;return{getOption:function(e){return t(e)}}})),Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.changeModuleOption,a=t.setToast;return{changeOption:function(e,t){return n(e,t)},setToast:function(e){return a(e)}}})))((function(e){var t=e.slug,n=e.label,c=e.placeholder,s=e.getOption,i=e.setToast,l=e.changeOption,o=Object(a.useState)(s(t)),u=r()(o,2),m=u[0],b=u[1],d=Object(a.useState)(!1),O=r()(d,2),v=O[0],g=O[1];return Object(a.createElement)("div",{className:"module-option text"},Object(a.createElement)("form",{onSubmit:function(e){e.preventDefault(),g(!0),j(t,m).then((function(e){if(e.success)return l(t,m),i(!0),g(!1),!1;i(!!e.message&&e.message),g(!1)}))}},n&&Object(a.createElement)("label",{htmlFor:t},n),Object(a.createElement)("div",{className:"input-wrap"},Object(a.createElement)("input",{id:t,placeholder:c,value:m,onChange:function(e){b(e.target.value)}}),Object(a.createElement)("div",{className:"actions"},Object(a.createElement)(E.Button,{className:v?"is-loading":null,type:"submit",disabled:v,label:Object(p.__)("Save","neve"),icon:v?"update":"editor-break"})))))})),L=Object(D.compose)(Object(_.withSelect)((function(e){var t=e("neve-dashboard").getProOption;return{getOption:function(e){return t(e)}}})),Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.changeModuleOption,a=t.setToast;return{changeOption:function(e,t){return n(e,t)},setToast:function(e){return a(e)}}})))((function(e){var t=e.slug,n=e.label,c=e.choices,r=e.getOption,s=e.changeOption,i=e.setToast;return Object(a.createElement)("div",{className:"module-option toggle"},Object(a.createElement)(E.SelectControl,{label:n,value:r(t)||"css",onChange:function(e){j(t,e).then((function(n){if(n.success)return s(t,e),i(!0),!1;i(!1)}))},options:Object.keys(c).map((function(e,t){return{label:c[e],value:e}}))}))})),x=Object(D.compose)(Object(_.withSelect)((function(e){var t=e("neve-dashboard").getProOption;return{getOption:function(e){return t(e)}}})),Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.changeModuleOption,a=t.setToast;return{changeOption:function(e,t){return n(e,t)},setToast:function(e){return a(e)}}})))((function(e){var t=e.slug,n=e.label,c=e.getOption,s=e.changeOption,i=e.setToast,l=Object(a.useState)(!1),o=r()(l,2),u=o[0],m=o[1];return Object(a.createElement)("div",{className:"module-option toggle"},Object(a.createElement)(E.ToggleControl,{checked:c(t)||!1,label:n,onChange:function(e){m(!0),j(t,e).then((function(n){if(n.success)return s(t,e),i(!0),m(!1),!1;i(!1),m(!1)}))}}),u&&Object(a.createElement)(E.Dashicon,{size:18,icon:"update",className:"is-loading"}))})),C=Object(D.compose)(Object(_.withSelect)((function(e){var t=e("neve-dashboard"),n=t.getModuleStatus;return{getModuleStatus:function(e){return n(e)},tier:(0,t.getLicenseTier)()}})),Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.changeModuleStatus,a=t.setToast;return{changeModuleStatus:function(e,t){return n(e,t)},setToast:function(e){return a(e)}}})))((function(e){var t=e.slug,n=e.setToast,c=e.changeModuleStatus,s=e.getModuleStatus,i=e.tier,l=Object(a.useState)(!1),o=r()(l,2),u=o[0],m=o[1],b=neveDash.modules[t],d=b.nicename,O=b.description,v=b.availabilityLevel,g=b.options,f=b.links,h=b.documentation,_=b.required_actions,y=neveDash.upgradeLinks;return Object(a.createElement)("div",{className:w()(["card","module-card",t])},Object(a.createElement)("div",{className:"card-header"},Object(a.createElement)("h3",{className:"title"},d),Object(a.createElement)("div",{className:"toggle-wrap"},i<v?Object(a.createElement)(E.Button,{isPrimary:!0,href:y[v]},Object(p.__)("Upgrade","neve")):Object(a.createElement)(a.Fragment,null,_&&Object(a.createElement)("span",{className:"required",dangerouslySetInnerHTML:{__html:_}}),u&&Object(a.createElement)(E.Dashicon,{size:18,icon:"update",className:"is-loading"}),!_&&Object(a.createElement)(E.ToggleControl,{checked:s(t)||!1,onChange:function(e){m(!0),j(t,e,!0).then((function(a){if(a.success)return c(t,e),m(!1),n((e?Object(p.__)("Module Activated","neve"):Object(p.__)("Module Deactivated.","neve"))+" (".concat(d,")")),!1;m(!1),n(Object(p.__)("Could not activate module. Please try again.","neve"))}))}})))),Object(a.createElement)("div",{className:"card-content"},Object(a.createElement)("p",{className:"card-description"},O+" ",h.url&&Object(a.createElement)("a",{href:h.url},Object(p.__)("Learn More","neve"))),f&&s(t)&&Object(a.createElement)("div",{className:"actions"},f.map((function(e,t){return Object(a.createElement)(E.Button,{key:t,isSecondary:!0,href:e.url},e.label)}))),0<g.length&&!0===s(t)&&-1<i&&Object(a.createElement)("div",{className:"module-options"},g.map((function(e,t){var n=e.label,c=e.options;return Object(a.createElement)(k,{key:t,title:n},Object(a.createElement)("div",null,Object.keys(c).map((function(e,t){var n=c[e],r=n.label,s=n.type,i=n.placeholder,l=n.choices;return Object(a.createElement)(a.Fragment,{key:t},"text"===s&&Object(a.createElement)(P,{label:r,slug:e,placeholder:i}),"toggle"===s&&Object(a.createElement)(x,{label:r,slug:e}),"select"===s&&Object(a.createElement)(L,{label:r,slug:e,choices:l}))}))))})))))})),M=function(){var e=neveDash,t=e.modules,n=e.hasOldPro,c=e.strings;return n?Object(a.createElement)("div",{className:"col"},Object(a.createElement)("div",{className:"card"},Object(a.createElement)("h2",null,c.updateOldPro))):Object(a.createElement)("div",{className:"col"},Object.keys(t).map((function(e,t){return Object(a.createElement)(C,{key:t,slug:e})})))},A=function(e){return new Promise((function(t){wp.updates.ajax("install-plugin",{slug:e,success:function(e){t({success:!0})},error:function(e){t({success:!1})}})}))},I=Object(_.withDispatch)((function(e){var t=e("neve-dashboard").setPluginState;return{setPluginState:function(e,n){return t(e,n)}}}))((function(e){var t=e.slug,n=e.data,c=e.setPluginState,s=n.banner,i=n.name,l=n.description,o=n.version,u=n.author,m=n.cta,b=Object(a.useState)(!1),d=r()(b,2),O=d[0],v=d[1],j={install:{static:Object(p.__)("Install","neve"),progress:Object(p.__)("Installing","neve")},activate:{static:Object(p.__)("Activate","neve"),progress:Object(p.__)("Activating","neve")},deactivate:{static:Object(p.__)("Deactivate","neve"),progress:Object(p.__)("Deactivating","neve")}};return Object(a.createElement)("div",{className:w()(["card","plugin",t])},Object(a.createElement)("div",{className:"card-header"},Object(a.createElement)("img",{src:s,alt:Object(p.__)("Banner Image","name")})),Object(a.createElement)("div",{className:"card-body"},Object(a.createElement)("h3",{className:"card-title"},i),Object(a.createElement)("p",{className:"card-description"},l)),Object(a.createElement)("div",{className:"card-footer"},Object(a.createElement)("div",{className:"plugin-data"},Object(a.createElement)("span",{className:"version"},"v",o)," |"," ",Object(a.createElement)("span",{className:"author"},u)),Object(a.createElement)(E.Button,{className:"plugin-action",isPrimary:["install","activate"].includes(m),isSecondary:"deactivate"===m,disabled:O,onClick:function(){if(v(!0),"install"===m)return A(t).then((function(e){if(!e.success)return v(!1),!1;v(!1),c(t,"activate")})),!1;g(n[m],!0).then((function(e){if(!e.ok)return v(!1),!1;c(t,"activate"===m?"deactivate":"activate"),"templates-patterns-collection"===t&&window.location.reload(),v(!1)}))}},!O&&j[m].static,O&&Object(a.createElement)("span",{style:{display:"flex",alignItems:"center"}},Object(a.createElement)(E.Dashicon,{icon:"update"}),j[m].progress+"..."))))})),U=Object(_.withSelect)((function(e){return{plugins:(0,e("neve-dashboard").getPlugins)()}}))((function(e){var t=e.plugins;return t?Object(a.createElement)(a.Fragment,null,Object.keys(t).map((function(e){return Object(a.createElement)(I,{key:e,slug:e,data:t[e]})}))):null})),B=function(e){var t=e.setTab,n=neveDash,c=n.docsURL,r=n.supportURL,s=n.whiteLabel,i=n.assets,l=neveDash.strings,o=l.supportCardDescription,u=l.docsCardDescription;return s&&s.agencyURL&&(r=s.agencyURL,c=s.agencyURL),Object(a.createElement)(a.Fragment,null,!s&&Object(a.createElement)(S,{icon:i+"arrows.svg",title:Object(p.__)("Build a landing page with a drag-and-drop content builder","neve"),description:Object(p.__)("In the documentation below you will find an easy way to build a great looking landing page using a drag-and-drop content builder plugin.","neve")},Object(a.createElement)(E.Button,{isLink:!0,href:"http://docs.themeisle.com/article/219-how-to-build-a-landing-page-with-a-drag-and-drop-content-builder"},Object(p.__)("Learn More","neve"))),Object(a.createElement)(S,{icon:i+"page.svg",title:Object(p.__)("Documentation","neve"),description:u},Object(a.createElement)(E.Button,{isLink:!0,href:c},Object(p.__)("Go to docs","neve")),!s&&Object(a.createElement)("a",{className:"facebook-badge",href:"https://www.facebook.com/groups/648646435537266/"},Object(a.createElement)(E.Icon,{icon:"facebook-alt"}),Object(a.createElement)("span",null,Object(p.__)("Join our Facebook Group","neve")))),!s&&Object(a.createElement)(S,{icon:i+"clone.svg",title:Object(p.__)("Create a child theme","neve"),description:Object(p.__)("If you want to make changes to the theme's files, those changes are likely to be overwritten when you next update the theme. In order to prevent that from happening, you need to create a child theme. For this, please follow the documentation below.","neve")},Object(a.createElement)(E.Button,{isLink:!0,href:"http://docs.themeisle.com/article/14-how-to-create-a-child-theme"},Object(p.__)("Learn More","neve"))),Object(a.createElement)(S,{icon:neveDash.assets+"buoy.svg",title:Object(p.__)("Contact Support","neve"),description:o},Object(a.createElement)(E.Button,{isPrimary:!0,href:r},Object(p.__)("Contact Support","neve"))),!s&&Object(a.createElement)(S,{icon:i+"tachometer.svg",title:Object(p.__)("Speed up your site","neve"),description:Object(p.__)("If you find yourself in a situation where everything on your site is running very slowly, you might consider having a look at the documentation below where you will find the most common issues causing this and possible solutions for each of the issues.","neve")},Object(a.createElement)(E.Button,{isLink:!0,href:"http://docs.themeisle.com/article/63-speed-up-your-wordpress-site"},Object(p.__)("Learn More","neve"))),!s&&Object(a.createElement)(S,{icon:i+"list.svg",title:Object(p.__)("Changelog","neve"),description:Object(p.__)("Want to get the gist on the latest theme changes? Just consult our changelog below to get a taste of the recent fixes and features implemented.","neve")},Object(a.createElement)(E.Button,{isLink:!0,onClick:function(){return t("changelog")}},Object(p.__)("View Changelog","neve"))))},G=function(e){var t=neveDash,n=t.changelog,c=t.changelogPro,s=Object(a.useState)(!1),i=r()(s,2),l=i[0],o=i[1];return Object(a.createElement)("div",{className:"card"},c&&Object(a.createElement)("div",{className:"changelog-tabs"},Object(a.createElement)("span",null,Object(p.__)("Show changelog for","neve")),Object(a.createElement)("a",{className:w()([{active:!l}]),onClick:function(){o(!1)}},"Neve"),Object(a.createElement)("a",{className:w()([{active:l}]),onClick:function(){o(!0)}},"Neve Pro")),(l?c:n).map((function(e,t){var n=e.date,c=e.version,r=e.tweaks,s=e.fixes,i=e.features;if(!r&&!s&&!i)return null;var l=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"version"},"v",c)," -"," ",Object(a.createElement)("span",{className:"date"},n));return Object(a.createElement)(k,{key:t,isOpen:0===t,title:l},i&&Object(a.createElement)("div",{className:"features changelog-category"},Object(a.createElement)("div",{className:"label-wrap"},Object(a.createElement)("span",{className:"label success"},Object(p.__)("Features","neve"))),Object(a.createElement)("ul",{className:"entries"},i.map((function(e,t){return Object(a.createElement)("li",{key:t,dangerouslySetInnerHTML:{__html:e}})})))),s&&Object(a.createElement)("div",{className:"bugs changelog-category"},Object(a.createElement)("div",{className:"label-wrap"},Object(a.createElement)("span",{className:"label error"},Object(p.__)("Bug Fixes","neve"))),Object(a.createElement)("ul",{className:"entries"},s.map((function(e,t){return Object(a.createElement)("li",{key:t,dangerouslySetInnerHTML:{__html:e}})})))),r&&Object(a.createElement)("div",{className:"tweaks changelog-category"},Object(a.createElement)("div",{className:"label-wrap"},Object(a.createElement)("span",{className:"label info"},Object(p.__)("Tweaks","neve"))),Object(a.createElement)("ul",{className:"entries"},r.map((function(e,t){return Object(a.createElement)("li",{key:t,dangerouslySetInnerHTML:{__html:e}})})))))})))},F=function(e){var t=e.item,n=t.title,c=t.description,s=t.inLite,i=t.docsLink,l=Object(a.useState)(!1),o=r()(l,2),u=o[0],m=o[1],b=function(){return m(!0)},d=function(){return m(!1)};return Object(a.createElement)("tr",{className:"feature-row"},Object(a.createElement)("td",{className:"large"},Object(a.createElement)("div",{className:"feat-wrap"},Object(a.createElement)("h4",null,n),Object(a.createElement)("span",{onMouseEnter:function(e){e.preventDefault(),b()},onMouseLeave:function(e){e.preventDefault(),d()},onFocus:function(e){e.preventDefault(),b()},onBlur:function(e){e.preventDefault(),d()}},Object(a.createElement)(E.Dashicon,{icon:"info"}),u&&Object(a.createElement)("div",{className:"tooltip-content"},Object(a.createElement)("div",{className:"tooltip-inner"},Object(a.createElement)("p",null,c+" ",i&&Object(a.createInterpolateElement)(Object(p.__)("More details <a>here</a>.","neve"),{a:Object(a.createElement)("a",{href:i})}))))))),Object(a.createElement)("td",{className:w()(["indicator",{error:!s,success:s}])},Object(a.createElement)(E.Dashicon,{size:30,icon:s?"yes":"no-alt"})),Object(a.createElement)("td",{className:"indicator success"},Object(a.createElement)(E.Dashicon,{size:30,icon:"yes"})))},z=function(e){var t=neveDash.featureData;return Object(a.createElement)("div",{className:"col"},Object(a.createElement)("table",{className:"card table"},Object(a.createElement)("tbody",{className:"table-body"},Object(a.createElement)("tr",{className:"table-head"},Object(a.createElement)("th",{className:"large"}),Object(a.createElement)("th",{className:"indicator"},"Neve"),Object(a.createElement)("th",{className:"indicator"},"Neve Pro")),t.map((function(e,t){return Object(a.createElement)(F,{key:t,item:e})})))),Object(a.createElement)("div",{className:"card upsell"},Object(a.createElement)("p",null,Object(p.__)("Get access to all Pro features and power-up your website","neve")),Object(a.createElement)(E.Button,{href:neveDash.upgradeURL,isPrimary:!0},Object(p.__)("Get Neve Pro Now","neve"))))},R=function(){var e=window.location.hash;return"string"!=typeof window.location.hash?null:(e=e.substring(1),Object.keys(H).includes(e)?e:null)},H={start:{label:Object(p.__)("Welcome","neve"),render:function(e){return Object(a.createElement)(T,{setTab:e})}},"starter-sites":{label:Object(p.__)("Starter Sites","neve"),render:function(e){return Object(a.createElement)(y,null)}},"free-pro":{label:Object(p.__)("Free vs Pro","neve"),render:function(e){return Object(a.createElement)(z,null)}},plugins:{label:Object(p.__)("Plugins","neve"),render:function(e){return Object(a.createElement)(U,null)}},help:{label:Object(p.__)("Help","neve"),render:function(e){return Object(a.createElement)(B,{setTab:e})}},changelog:{label:Object(p.__)("Changelog","neve"),render:function(e){return Object(a.createElement)(G,null)}}},J=neveDash.plugins,V="deactivate"===J["templates-patterns-collection"].cta,q=1===i()(J["templates-patterns-collection"].version,"1.0.10");V&&q&&delete H["starter-sites"],(neveDash.pro||neveDash.hasOldPro)&&(H.pro={label:neveDash.strings.proTabTitle,render:function(e){return Object(a.createElement)(M,null)}},delete H["free-pro"]),neveDash.whiteLabel&&(delete H.changelog,delete H.plugins,neveDash.whiteLabel.hideStarterSites&&delete H["starter-sites"]),neveDash.hidePluginsTab&&delete H.plugins;var W=function(e){return e.replace(/\/$/,"")},$=function(e){Object(a.useEffect)((function(){var t=R();null!==t&&e.setTab(t)}),[]);var t,n;return Object(a.createElement)("header",null,Object(a.createElement)("div",{className:"container"},Object(a.createElement)("div",{className:"top"},Object(a.createElement)("h1",{className:"heading"},neveDash.strings.header),Object(a.createElement)("span",{className:"version"},neveDash.version),!neveDash.whiteLabel&&Object(a.createElement)("img",{src:neveDash.assets+"/logo.svg",alt:Object(p.__)("Neve Theme Logo","neve")})),(t=e.currentTab,n=e.setTab,Object(a.createElement)("nav",{className:"navigation"},Object.keys(H).map((function(e,c){return Object(a.createElement)("li",{key:c},Object(a.createElement)("a",{href:"#",className:w()([e,t===e?"active":""]),onClick:function(t){var a;t.preventDefault(),n(e),a=e,window.location.hash=a}},H[e].label))}))))))},K=function(e){var t=e.data,n=e.slug,c=Object(a.useState)(!1),s=r()(c,2),i=(s[0],s[1]),l=t.text,o=t.cta,u=t.type,m=t.update,b=Object(a.useState)(!1),d=r()(b,2),O=d[0],v=d[1],j=Object(a.useState)(!1),g=r()(j,2),f=g[0],h=g[1],_=Object(a.useState)(null),y=r()(_,2),N=y[0],S=y[1],T=w()(["notification",n,u&&!f?u:"",{"success hidden":"done"===f,error:"error"===f}]);return Object(a.createElement)("div",{className:T},!f&&Object(a.createElement)("p",null,l),"done"===f&&Object(a.createElement)("p",null,Object(a.createElement)(E.Dashicon,{icon:"yes"}),Object(p.__)("Done!","neve")),"error"===f&&Object(a.createElement)("p",null,Object(a.createElement)(E.Dashicon,{icon:"no"}),N||Object(p.__)("An error occured. Please reload the page and try again.","neve")),o&&!f&&Object(a.createElement)(E.Button,{isSecondary:!0,disabled:O,className:w()({"is-loading":O}),onClick:function(){m&&function(){if(!m.type)return!1;v(!0),new Promise((function(e){if("theme"===m.type){if(!m.slug)return!1;wp.updates.ajax("update-theme",{slug:m.slug,success:function(t){e({success:!0})},error:function(t){S(t.errorMessage),e({success:!1})}})}if("plugin"===m.type){if(!m.slug||!m.path)return!1;wp.updates.ajax("update-plugin",{slug:m.slug,plugin:m.path,success:function(t){e({success:!0})},error:function(t){S(t.errorMessage),e({success:!1})}})}})).then((function(e){if(!e.success)return h("error"),v(!1),!1;h("done"),v(!1),i(!0),delete neveDash.notifications[m.slug]}))}()}},O?Object(a.createElement)("span",null,Object(a.createElement)(E.Dashicon,{icon:"update"})," ",Object(p.__)("In Progress","neve")+"..."," "):o))},Q=function(){return neveDash.notifications?1>neveDash.notifications.length?null:Object(a.createElement)("div",{className:"notifications"},Object.keys(neveDash.notifications).map((function(e,t){return Object(a.createElement)(K,{key:t,data:neveDash.notifications[e],slug:e})}))):null},X=function(e){var t=e.currentTab,n=e.setTab,c=w()(["tab-content","columns",t]);return Object(a.createElement)("div",{className:c},H[t].render(n))},Y=function(e){var t=e.message,n=e.dismiss,c=e.time,r=e.type,s=void 0===r?"info":r;Object(a.useEffect)((function(){var e=setTimeout((function(){n(""),clearTimeout(e)}),c||2e3)}));var i=w()(["toast","components-animate__appear","is-from-middle",s]);return Object(a.createElement)("div",{className:i},Object(a.createElement)(E.Dashicon,{icon:{info:"info",error:"no",success:"yes",warning:"warning"}[s]}),Object(a.createElement)("span",null,t))},Z=Object(D.compose)(Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.changeLicense,a=t.setSettings;return{setSettings:function(e){return a(e)},changeLicense:function(e){n(e)}}})),Object(_.withSelect)((function(e){return{license:(0,e("neve-dashboard").getLicense)()}})))((function(e){var t=e.isVisible,n=e.setSettings,c=e.changeLicense,s=e.license,i=neveDash.proApi,l=Object(a.useState)(s&&"valid"===s.valid&&s.key||""),o=r()(l,2),u=o[0],m=o[1],b=Object(a.useState)(!1),d=r()(b,2),O=d[0],j=d[1],g=Object(a.useState)(""),h=r()(g,2),_=h[0],y=h[1],N=Object(a.useState)("success"),S=r()(N,2),T=S[0],k=S[1],D=s.valid,P=s.expiration,L=neveDash,x=L.whiteLabel,C=L.strings,M=C.licenseCardHeading,A=C.licenseCardDescription;if(!t)return null;var I=function(){var e="valid"===D?"deactivate":"activate";j("activate"===e?"activating":"deactivating"),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return f(e,n,t)}(i+"/toggle_license",{key:u,action:e}).then((function(t){k(t.success?"success":"error"),m("activate"===e?u:""),y(t.message),j(!1),t.license&&(c(t.license),v().then((function(e){n(e)})))}))};return x&&x.hideLicense?null:Object(a.createElement)("aside",{className:"sidebar card license"},Object(a.createElement)("div",{className:"sidebar-section"},M&&Object(a.createElement)("h4",null,M),!x&&A&&Object(a.createElement)("p",{dangerouslySetInnerHTML:{__html:A}}),Object(a.createElement)("form",{className:"license-form",onSubmit:function(e){e.preventDefault(),I()}},Object(a.createElement)("input",{type:"text",id:"license-field",name:"license-field",disabled:"valid"===D,onChange:function(e){var t=e.target.value.replace(/\s+/g,"");m(t)},value:"valid"===D?"******************************"+u.slice(-5):u,placeholder:Object(p.__)("Enter License Key","neve")}),Object(a.createElement)(E.Button,{isPrimary:"valid"!==D,isSecondary:"valid"===D,disabled:O||!u,type:"submit"},O?"activating"===O?Object(p.__)("Activating","neve"):Object(p.__)("Deactivating","neve"):"valid"===D?Object(p.__)("Deactivate","neve"):Object(p.__)("Activate","neve"))),_&&Object(a.createElement)(Y,{type:T,dismiss:y,message:_}),"expired"===D||"valid"===D&&Object(a.createElement)("div",{className:"license-footer"},Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:w()(["status-icon","valid"===D?"success":"error"])},Object(a.createElement)(E.Dashicon,{size:14,icon:"valid"===D?"yes":"no"})),Object(a.createElement)("span",{className:"validity"},"valid"===D?Object(p.__)("Valid","neve"):Object(p.__)("Expired","neve")),P&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"separator"},"-"),Object(a.createElement)("span",{className:"expires"},("valid"===D?Object(p.__)("Expires","neve"):Object(p.__)("Expired","neve"))+" "+P))))))})),ee=Object(D.compose)(Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.setToast,a=t.setLogger;return{setToast:function(e){return n(e)},setLogger:function(e){return a(e)}}})),Object(_.withSelect)((function(e){return{loggerValue:(0,e("neve-dashboard").getOption)("neve_logger_flag")}})))((function(e){var t=e.currentTab,n=e.setToast,c=e.loggerValue,s=e.setLogger,i=Object(a.useState)("yes"===c),l=r()(i,2),o=l[0],u=l[1];return Object(a.createElement)("div",{className:"sidebar-wrap"},neveDash.pro&&Object(a.createElement)(Z,{isVisible:"pro"===t}),!neveDash.whiteLabel&&Object(a.createElement)("aside",{className:"sidebar card"},Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",null,Object(p.__)("Neve Community","neve")),Object(a.createElement)("p",{dangerouslySetInnerHTML:{__html:neveDash.strings.sidebarCommunityDescription}}),Object(a.createElement)("a",{href:"https://www.facebook.com/groups/648646435537266/"},Object(p.__)("Join our Facebook Group","neve"))),Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",null,Object(p.__)("Leave us a review","neve")),Object(a.createElement)("p",null,Object(p.__)("Are you are enjoying Neve? We would love to hear your feedback.","neve")),Object(a.createElement)("a",{href:"https://wordpress.org/support/theme/neve/reviews/#new-post"},Object(p.__)("Submit a review","neve"))),Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",null,Object(p.__)("Contributing","neve")),Object(a.createElement)("p",null,Object(p.__)("Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.","neve")," ",Object(a.createElement)("a",{href:"https://docs.themeisle.com/article/1122-neve-usage-tracking"},Object(p.__)("What do we track?","neve"))),Object(a.createElement)(E.ToggleControl,{checked:o,label:Object(p.__)("Allow Anonymous Tracking","neve"),onChange:function(e){u(e),j("neve_logger_flag",e?"yes":"no",!1,!1).then((function(t){if(!t.success)return n(Object(p.__)("Could not update option. Please try again.","neve")),u(!e),!1;s(e?"yes":"no"),n(Object(p.__)("Option Updated","neve"))}))}}))))})),te=function(){return Object(a.createElement)("div",{className:"mock-dash"},Object(a.createElement)("header",null,Object(a.createElement)("div",{className:"container"},Object(a.createElement)("div",{className:"top"},Object(a.createElement)("h1",{className:"heading loading"}),Object(a.createElement)("span",{className:"version loading"},"v2.6.2"),!neveDash.whiteLabel&&Object(a.createElement)("div",{className:"loading logo"})),Object(a.createElement)("nav",{className:"navigation"},Array.from(Array(6)).map((function(e,t){return Object(a.createElement)("li",{key:t},Object(a.createElement)("a",{className:"loading"}))}))))),Object(a.createElement)("div",{className:"container content"},Object(a.createElement)("div",{className:"main"},neveDash.notifications&&Object(a.createElement)("div",{className:"notifications"},Object.keys(neveDash.notifications).map((function(e,t){return Object(a.createElement)("div",{key:t,className:"notification loading placeholder"})}))),Object(a.createElement)("div",{className:"tab-content columns start"},Object(a.createElement)("div",{className:"card"},Object(a.createElement)("div",{className:"card-header"},Object(a.createElement)("div",{className:"loading icon"}),Object(a.createElement)("h3",{className:"loading title"})),Object(a.createElement)("div",{className:"card-content"},Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("button",{style:{marginTop:"auto"},type:"button",className:"loading components-button is-button is-default is-primary"}))),Object(a.createElement)("div",{className:"card customizer-quick-links"},Object(a.createElement)("div",{className:"card-header"},Object(a.createElement)("div",{className:"loading icon"}),Object(a.createElement)("h3",{className:"loading title"})),Object(a.createElement)("div",{className:"card-content"},Object(a.createElement)("div",{className:"columns"},Object(a.createElement)("div",{className:"col"},Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"})),Object(a.createElement)("div",{className:"col"},Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"}),Object(a.createElement)("hr",null),Object(a.createElement)("span",{className:"loading link"}))))),Object(a.createElement)("div",{className:"card"},Object(a.createElement)("div",{className:"card-header"},Object(a.createElement)("div",{className:"loading icon"}),Object(a.createElement)("h3",{className:"loading title"})),Object(a.createElement)("div",{className:"card-content"},Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("button",{type:"button",className:"loading components-button is-button is-default is-primary"}))))),Object(a.createElement)("div",{className:"sidebar-wrap"},!neveDash.whiteLabel&&Object(a.createElement)("aside",{className:"sidebar card"},Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",{className:"loading"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("span",{className:"loading link components-button is-primary"})),Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",{className:"loading"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("span",{className:"loading link"})),Object(a.createElement)("hr",null),Object(a.createElement)("div",{className:"sidebar-section"},Object(a.createElement)("h4",{className:"loading"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("p",{className:"loading card-description"}),Object(a.createElement)("span",{className:"loading link"}))))))},ne=Object(D.compose)(Object(_.withDispatch)((function(e){var t=e("neve-dashboard").setToast;return{setToast:function(e){return t(e)}}})),Object(_.withSelect)((function(e){var t=e("neve-dashboard").getToast;return{toast:function(){return t()}}})))((function(e){var t=e.toast,n=e.setToast;Object(a.useEffect)((function(){setTimeout((function(){n(null)}),3e3)}),[]);var c=t(),r={opacity:null===c?0:1};return Object(a.createElement)("div",{style:r},Object(a.createElement)(E.Snackbar,{className:"dash-notice"},"boolean"==typeof c?!1===c?Object(p.__)("Could not Update Option. Please try again.","neve"):Object(p.__)("Option Updated","neve"):t()))})),ae=Object(D.compose)(Object(_.withDispatch)((function(e){var t=e("neve-dashboard"),n=t.setSettings,a=t.setTab;return{setSettings:function(e){return n(e)},setTab:function(e){return a(e)}}})),Object(_.withSelect)((function(e){var t=e("neve-dashboard"),n=t.getToast,a=t.getTab;return{toast:n(),currentTab:a()}})))((function(e){var t=e.setSettings,n=e.toast,c=e.currentTab,s=e.setTab,i=Object(a.useState)(!0),l=r()(i,2),o=l[0],u=l[1];return Object(a.useEffect)((function(){v().then((function(e){t(e),u(!1)}))}),[]),o?Object(a.createElement)(te,null):Object(a.createElement)(a.Fragment,null,Object(a.createElement)($,{currentTab:c,setTab:s}),Object(a.createElement)("div",{className:"content-wrap"},Object(a.createElement)("div",{className:"container content"},Object(a.createElement)("div",{className:"main"},"starter-sites"!==c&&Object(a.createElement)(Q,null),Object(a.createElement)(X,{currentTab:c,setTab:s})),"starter-sites"!==c&&Object(a.createElement)(ee,{currentTab:c}))),n&&Object(a.createElement)(ne,null))})),ce={setTab:function(e){return{type:"SET_TAB",payload:{tab:e}}},setSettings:function(e){return{type:"SET_SETTINGS",payload:{object:e}}},setPluginState:function(e,t){return{type:"SET_PLUGIN_STATE",payload:{pluginSlug:e,pluginState:t}}},changeModuleStatus:function(e,t){return{type:"TOGGLE_MODULE",payload:{moduleSlug:"nv_pro_"+e+"_status",value:t}}},changeModuleOption:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"CHANGE_MODULE_OPTION",payload:{optionStatus:(n?"nv_pro_":"")+e,optionValue:t}}},changeLicense:function(e){return{type:"UPDATE_LICENSE",payload:{licenseData:e}}},setToast:function(e){return{type:"UPDATE_TOAST_MESSAGE",payload:e}},setLogger:function(e){return{type:"SET_LOGGER_STATUS",payload:e}}};function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie={settings:{},plugins:neveDash.plugins||{},tier:neveDash.pro?neveDash.license.tier:0,toast:null,currentTab:"start",license:neveDash.pro?neveDash.license:{}},le=R();null!==le&&(ie.currentTab=le);var oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TAB":var n=t.payload.tab;return se(se({},e),{},{currentTab:n});case"SET_SETTINGS":var a=t.payload.object;return se(se({},e),{},{settings:a});case"SET_PLUGIN_STATE":var c=t.payload,r=c.pluginSlug,s=c.pluginState,i=se({},e.plugins);return i[r].cta=s,se(se({},e),{},{plugins:i});case"TOGGLE_MODULE":var l=t.payload,o=l.moduleSlug,u=l.value;return se(se({},e),{},{settings:se(se({},e.settings),{},d()({},o,u))});case"CHANGE_MODULE_OPTION":var m=t.payload,b=m.optionStatus,p=m.optionValue;return se(se({},e),{},{settings:se(se({},e.settings),{},d()({},b,p))});case"UPDATE_LICENSE":return se(se({},e),{},{license:t.payload.licenseData});case"UPDATE_TOAST_MESSAGE":return se(se({},e),{},{toast:t.payload});case"SET_LOGGER_STATUS":return se(se({},e),{},{settings:se(se({},e.settings),{},{neve_logger_flag:t.payload})})}return e};Object(_.registerStore)("neve-dashboard",{reducer:oe,actions:ce,selectors:{getModuleStatus:function(e,t){return e.settings["nv_pro_"+t+"_status"]},getOption:function(e,t){return e.settings[t]},getPlugins:function(e){return e.plugins},getProOption:function(e,t){return e.settings["nv_pro_"+t]},getLicenseTier:function(e){return e.license?e.license.tier:1},getLicense:function(e){return e.license},getToast:function(e){return e.toast},getTab:function(e){return e.currentTab}}});Object(a.render)(Object(a.createElement)((function(){return Object(a.createElement)(ae,null)}),null),document.getElementById("neve-dashboard"))}]);