text: (()=>{var t={788:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={}},978:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={}},137:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={"zh-cn":n(978).Z}},644:(t,e,n)=>{"use strict";function r(t){return n(142)("./".concat(t,".vue")).default}n.d(e,{Z:()=>o});const o=[{path:":scene/list",component:r("list")},{path:":scene/edit",component:r("edit")}]},81:(t,e,n)=>{"use strict";function r(t){return{state:{},getters:{},mutations:{},actions:{}}}n.d(e,{Z:()=>r})},320:(t,e,n)=>{var r=n(233),o=n(361)(r);o.push([t.id,"\n","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),t.exports=o},361:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},233:t=>{"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=function(t){var n,r,o=(r=4,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(n,r)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),c="/*# ".concat(u," */"),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([c]).join("\n")}return[a].join("\n")}},410:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(5);const o={mixins:[n.n(r)().prototype.$meta.module.get("a-base").options.mixins.ebModules],data:function(){return{scene:this.$f7route.params.scene,module:this.$f7route.query.module,data:null,validateParams:null}},computed:{ready:function(){return this.data&&this.validateParams},title:function(){var t=this.getModule(this.module);return t?t.titleLocale:""}},methods:{onFormSubmit:function(){this.$refs.buttonSubmit.onClick()},onPerformValidate:function(){return this.$api.post("settings/".concat(this.scene,"/save"),{module:this.module,data:this.data}).then((function(){return!0}))},onPerformSave:function(t){return this.$refs.validate.perform(t)}},created:function(){var t=this;this.$api.post("settings/".concat(this.scene,"/load"),{module:this.module}).then((function(e){t.data=e.data,t.validateParams={module:e.module,validator:e.validator}}))}},a=(0,n(792).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("eb-page",[n("eb-navbar",{attrs:{large:"",largeTransparent:"",title:t.title,"eb-back-link":"Back"}},[n("f7-nav-right",[t.ready?n("eb-link",{ref:"buttonSubmit",attrs:{iconMaterial:"save",onPerform:t.onPerformSave}}):t._e()],1)],1),t._v(" "),n("eb-validate",{ref:"validate",attrs:{auto:"",data:t.data,params:t.validateParams,onPerform:t.onPerformValidate},on:{submit:t.onFormSubmit}})],1)}),[],!1,null,"2b762be6",null).exports},944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(5);const o={mixins:[n.n(r)().prototype.$meta.module.get("a-base").options.mixins.ebModules],data:function(){return{scene:this.$f7route.params.scene,items:null}},computed:{ready:function(){return this.modulesAll&&this.items}},methods:{onLoadClear:function(t){this.items=[],t()},onLoadMore:function(t){var e=this;return t.index,this.$api.post("settings/".concat(this.scene,"/list")).then((function(t){return e.items=e.items.concat(t.list),t}))},onItemClick:function(t,e){var n=e.validator?{actionModule:"a-settings",actionPath:"".concat(this.scene,"/edit?module=").concat(e.module)}:e;return this.$meta.util.performAction({ctx:this,action:n,item:e}).then((function(){}))}}},a=(0,n(792).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("eb-page",[n("eb-navbar",{attrs:{large:"",largeTransparent:"",title:t.$text("Settings"),"eb-back-link":"Back"}}),t._v(" "),t.ready?n("f7-list",t._l(t.items,(function(e){return n("eb-list-item",{key:e.module,staticClass:"item",attrs:{title:t.getModule(e.module).titleLocale,link:"#",context:e,onPerform:t.onItemClick}})})),1):t._e(),t._v(" "),n("eb-load-more",{ref:"loadMore",attrs:{onLoadClear:t.onLoadClear,onLoadMore:t.onLoadMore,autoInit:!0}})],1)}),[],!1,null,null,null).exports},792:(t,e,n)=>{"use strict";function r(t,e,n,r,o,a,i,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),i?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}n.d(e,{Z:()=>r})},191:(t,e,n)=>{var r=n(320);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(159).Z)("4121b4be",r,!0,{})},159:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=a[0],s={id:t+":"+o,css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(s):n.push(r[i]={id:i,parts:[s]})}return n}n.d(e,{Z:()=>m});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,n,o){c=n,d=o||{};var i=r(t,e);return v(i),function(e){for(var n=[],o=0;o<i.length;o++){var s=i[o];(u=a[s.id]).refs--,n.push(u)}for(e?v(i=r(t,e)):i=[],o=0;o<n.length;o++){var u;if(0===(u=n[o]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete a[u.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=a[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(b(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:i}}}}function h(){var t=document.createElement("style");return t.type="text/css",i.appendChild(t),t}function b(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(c)return l;r.parentNode.removeChild(r)}if(p){var o=u++;r=s||(s=h()),e=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=h(),e=S.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var g,y=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function _(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,o);else{var a=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function S(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute(f,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},142:(t,e,n)=>{var r={"./edit.vue":410,"./list.vue":944};function o(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=a,t.exports=o,o.id=142},5:t=>{"use strict";t.exports=window.Vue}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={id:r,exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";var t;n.r(r),n.d(r,{default:()=>e}),n(191);const e={install:function(e,r){return t?console.error("already installed."):(t=e,r({routes:n(644).Z,store:n(81).Z(t),config:n(788).Z,locales:n(137).Z}))}}})(),window["a-settings"]=r})();
  //# sourceMappingURL=front.js.map