text: System.register(["jimu-core","jimu-for-builder/service"],(function(e,t){var r={},o={};return{setters:[function(e){r.getAppStore=e.getAppStore,r.jimuHistory=e.jimuHistory,r.urlUtils=e.urlUtils},function(e){o.appServices=e.appServices}],execute:function(){e((()=>{"use strict";var e={8891:e=>{e.exports=r},6325:e=>{e.exports=o}},t={};function i(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{i.r(n),i.d(n,{default:()=>r});var e=i(8891),t=i(6325);class r{constructor(){this.id="app-config-processor-extension-builder-entry"}process(r){return o=this,i=void 0,s=function*(){const o=(0,e.getAppStore)().getState().queryObject;return o.id||o.app_config?yield Promise.resolve(r):o.template?yield t.appServices.createAppByTemplateId(o.template).then((t=>{const i=o.set("id",t).without("template");return e.jimuHistory.changeQueryObject(i,!0,!0),r})):(e.jimuHistory.browserHistory.push(e.urlUtils.getPageLinkUrl("template",o)),Promise.resolve(r))},new((n=void 0)||(n=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function u(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof n?o:new n((function(e){e(o)}))).then(r,u)}c((s=s.apply(o,i||[])).next())}));var o,i,n,s}}})(),n})())}}}));