You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
117 KiB
JavaScript

(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0353":function(t,e,n){"use strict";n.r(e);var i=n("937a"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"0928":function(t,e,n){"use strict";n.r(e);var i=n("3db3"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"0bdb":function(t,e,n){var i=n("d551");function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"0ee4":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},"100a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uniPopup:n("1109").default,uniPopupDialog:n("a502").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","dock"),attrs:{_i:1}},[n("view",[n("scroll-view",{staticClass:t._$s(3,"sc","quick-actions horizontal"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.quickAskList}),(function(e,i,o,s){return n("view",{key:t._$s(4,"f",{forIndex:o,key:e.quickAskText}),staticClass:t._$s("4-"+s,"sc","qa-btn"),attrs:{_i:"4-"+s},on:{longpress:function(n){return n.preventDefault(),t.deleteQucikAsk(e)},click:function(n){return t.onQuickAsk(e.quickAskText)}}},[t._v(t._$s("4-"+s,"t0-0",t._s(e.quickAskText)))])})),0),n("view",{staticClass:t._$s(5,"sc","quick-add"),attrs:{_i:5},on:{click:t.inputDialogToggle}},[n("image",{attrs:{_i:6}})])]),n("view",{staticClass:t._$s(7,"sc","input-bar"),attrs:{_i:7}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputTextValue,expression:"inputTextValue"}],staticClass:t._$s(8,"sc","input"),attrs:{_i:8},domProps:{value:t._$s(8,"v-model",t.inputTextValue)},on:{confirm:function(e){return t.onSend()},input:function(e){e.target.composing||(t.inputTextValue=e.target.value)}}}),n("view",{class:t._$s(9,"c",["mic",{recording:t.isRecording}]),attrs:{_i:9},on:{touchstart:function(e){return e.stopPropagation(),t.onPressMic(e)},touchmove:function(e){return e.stopPropagation(),t.onMoveMic(e)},touchend:function(e){return e.stopPropagation(),t.onReleaseMic(e)}}}),n("view",{class:t._$s(10,"c",["send",!t.isReplying&&t.inputTextValue&&t.inputTextValue.trim()?"normal":"disabled"]),attrs:{_i:10}},[t._$s(11,"i",t.isReplying)?n("image",{attrs:{_i:11},on:{click:t.handleBreak}}):n("image",{attrs:{_i:12},on:{click:t.onSend}})])])]),t._$s(13,"i",t.isRecording)?n("view",{staticClass:t._$s(13,"sc","record-mask"),attrs:{_i:13}},[n("view",{staticClass:t._$s(14,"sc","record-box"),class:t._$s(14,"c",{cancel:t.willCancel}),attrs:{_i:14}},[n("view",{staticClass:t._$s(15,"sc","record-icon"),attrs:{_i:15}}),n("view",{staticClass:t._$s(16,"sc","record-text"),attrs:{_i:16}},[t._v(t._$s(16,"t0-0",t._s(t.willCancel?"\u677e\u5f00\u624b\u6307\uff0c\u53d6\u6d88\u53d1\u9001":"\u624b\u6307\u4e0a\u6ed1\uff0c\u53d6\u6d88\u53d1\u9001")))])])]):t._e(),n("uni-popup",{ref:"inputDialog",attrs:{type:"dialog",_i:17}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u6dfb\u52a0\u5feb\u6377\u63d0\u95ee",placeholder:"\u8bf7\u8f93\u5165\u5185\u5bb9",maxlength:15,_i:18},on:{confirm:t.dialogInputConfirm},model:{value:t._$s(18,"v-model",t.dialogText),callback:function(e){t.dialogText=e},expression:"dialogText"}})],1),t._$s(19,"i",t.isRecording)?n("view",{staticClass:t._$s(19,"sc","mask-layer"),attrs:{_i:19}}):t._e()],1)},s=[]},1033:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},1109:function(t,e,n){"use strict";n.r(e);var i=n("92a1"),o=n("4c9e");for(var s
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var i=this,o=m(t,e,n),s=o.type,r=o.payload,a=(o.options,{type:s,payload:r}),c=this._mutations[s];c&&(this._withCommit((function(){c.forEach((function(t){t(r)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},f.prototype.dispatch=function(t,e){var n=this,i=m(t,e),o=i.type,s=i.payload,r={type:o,payload:s},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(r,n.state)}))}catch(u){0}var c=a.length>1?Promise.all(a.map((function(t){return t(s)}))):a[0](s);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(r,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(r,n.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return h(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),_(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=g(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),p(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),p(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var b=C((function(t,e){var n={};return $(e).forEach((function(e){var i=e.key,o=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=T(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof o?o.call(this,e,n):e[o]},n[i].vuex=!0})),n})),w=C((function(t,e){var n={};return $(e).forEach((function(e){var i=e.key,o=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var s=T(this.$store,"mapMutations",t);if(!s)return;i=s.context.commit}return"function"===typeof o?o.apply(this,[i].concat(e)):i.apply(this.$store,[o].concat(e))}})),n})),x=C((function(t,e){var n={};return $(e).forEach((function(e){var i=e.key,o=e.val;o=t+o,n[i]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[o]},n[i].vuex=!0})),n})),k=C((function(t,e){var n={};return $(e).forEach((function(e){var i=e.key,o=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var s=T(this.$store,"mapActions",t);if(!s)return;i=s.context.dispatch}return"function"===typeof o?o.apply(this,[i].concat(e)):i.apply(this.$store,[o].concat(e))}})),n}));function $(t){return function(t){return Array.isArray(t)||r(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.ch
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return n},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,n={},s=Object.prototype,r=s.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),r=new I(i||[]);return a(s,"_invoke",{value:O(t,n,r)}),s}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var _="suspendedStart",v="executing",g="completed",m={};function y(){}function b(){}function w(){}var x={};d(x,u,(function(){return this}));var k=Object.getPrototypeOf,$=k&&k(k(L([])));$&&$!==s&&r.call($,u)&&(x=$);var C=w.prototype=y.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,s,a,c){var u=p(t[o],t,s);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==i(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(t,i){function s(){return new e((function(e,o){n(t,i,e,o)}))}return o=o?o.then(s,s):s()}})}function O(t,n,i){var o=_;return function(s,r){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===s)throw r;return{value:e,done:!0}}for(i.method=s,i.arg=r;;){var a=i.delegate;if(a){var c=A(a,i);if(c){if(c===m)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===_)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=v;var u=p(t,n,i);if("normal"===u.type){if(o=i.done?g:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(o=g,i.method="throw",i.arg=u.arg)}}}function A(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator["return"]&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var s=p(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,m;var r=s.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(i(t)+" is not iterable")}return b.prototype=w,a(C,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,f,"GeneratorFunction")),t.prototype=Object.create(C),t},n.awrap=function(t){return{__await:t}},T(S.prototype),d(S.prototype,l,(function(){return this})),n.AsyncIterator=S,n.async=functi