(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-be703b2a"],{"0032":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{class:["idx-wp-icon","idx-wp-icon-"+e.icon,{"idx-wp-icon-spin":e.spin}],attrs:{role:"image","aria-hidden":"true",focusable:"false"}},[n("use",{attrs:{"xlink:href":"#"+e.icon}})])},r=[],s={name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}}},o=s,c=(n("a4aa"),n("2877")),i=Object(c["a"])(o,a,r,!1,null,null,null);t["a"]=i.exports},"33ff":function(e,t,n){},"7b88":function(e,t,n){"use strict";n("bd1f")},a4aa:function(e,t,n){"use strict";n("33ff")},bd1f:function(e,t,n){},e830:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("idx-fullscreen",{attrs:{customClass:"gs"}},[n("idx-block",{attrs:{className:"gs__hero"}},[e.success?[n("idx-block",{attrs:{className:"gs__icon"}},[n("svg-icon",{attrs:{icon:"fal-check"}})],1),n("h1",[e._v("Setup Complete!")])]:e.loading?[n("idx-block",{attrs:{className:"spinner-border",role:"status"}},[n("idx-block",{attrs:{tag:"span",className:"visually-hidden"}},[e._v("Loading...")])],1),n("h1",[e._v("Saving your settings")])]:e.error?[n("idx-block",{attrs:{className:"gs__icon--error"}},[n("svg-icon",{attrs:{icon:"exclamation-triangle"}})],1),n("span",[n("h1",[e._v("Error")]),n("span",[e._v("We're experiencing a problem, please try again.")])])]:e._e()],2)],1)},r=[],s=(n("d81d"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf"),n("1da1")),o=n("5530"),c=n("2f62"),i=n("12e8"),u=n("0032"),l={inject:[i["a"].general.repo,i["a"].listingsSettings.repo,i["a"].agentSettings.repo,i["a"].socialPro.repo,i["a"].omnibar.repo],components:{SvgIcon:u["a"]},data:function(){return{timeout:"",error:!1,success:!1,loading:!1}},computed:Object(o["a"])({},Object(c["c"])({changedModules:"guidedSetup/changedModules"})),methods:Object(o["a"])({},Object(c["b"])({setItem:"guidedSetup/setItem"})),mounted:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=[],e.loading=!0,Promise.all(e.changedModules.map(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(a){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.module=a.module,r=i["a"][e.module].repo,t.prev=2,""===a.path){t.next=8;break}return t.next=6,e[r].post(a.changes,a.path);case 6:t.next=10;break;case 8:return t.next=10,e[r].post(a.changes);case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),n.push(t.t0);case 15:e.setItem({key:a.module,value:{changes:{},module:a.module,path:a.path}});case 16:case"end":return t.stop()}}),t,null,[[2,12]])})));return function(e){return t.apply(this,arguments)}}())).then((function(){e.setItem({key:"hasChanges",value:!1}),e.success=0===n.length,e.error=n.length>0,e.loading=!1,e.timeout=setTimeout((function(){e.$router.push({path:"/settings/general"},(function(){location.reload()}))}),2e3)}));case 3:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearTimeout(this.timeout)}},p=l,d=(n("7b88"),n("2877")),g=Object(d["a"])(p,a,r,!1,null,"16589e2e",null);t["default"]=g.exports}}]);
//# sourceMappingURL=chunk-be703b2a.e795819a.js.map