SmartStorage/unpackage/dist/build/app-plus/app-service.js

11 lines
971 KiB
JavaScript
Raw Normal View History

2024-07-31 15:35:57 +08:00
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{0:function(e,t){},"0045":function(e,t,a){"use strict";function n(e){var t="";for(var a in e){var n=e[a];t+="".concat(a,":").concat(n,";")}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:function(){return{color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"}}},errorMessage:{type:[String,Boolean],default:""}},data:function(){return{focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}},computed:{isVal:function(){var e=this.val;return!(!e&&0!==e)},msg:function(){return this.localMsg||this.errorMessage},inputMaxlength:function(){return Number(this.maxlength)},boxStyle:function(){return"color:".concat(this.inputBorder&&this.msg?"#e43d33":this.styles.color,";")},inputContentClass:function(){return function(e){var t="";for(var a in e){var n=e[a];n&&(t+="".concat(a," "))}return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle:function(){var e=this.focusShow?this.primaryColor:this.styles.borderColor,t=this.inputBorder&&this.msg?"#dd524d":e;return n({"border-color":t||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle:function(){var e="password"===this.type||this.clearable||this.prefixIcon?"":"10px";return n({"padding-right":e,"padding-left":this.prefixIcon?"":"10px"})}},watch:{value:function(e){this.val=e},modelValue:function(e){this.val=e},focus:function(e){var t=this;this.$nextTick((function(){t.focused=t.focus,t.focusShow=t.focus}))}},created:function(){var e=this;this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(function(t){e.localMsg=t}))},mounted:function(){var e=this;this.$nextTick((function(){e.focused=e.focus,e.focusShow=e.focus}))},methods:{init:function(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon:function(e){this.$emit("iconClick",e)},onEyes:function(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput:function(e){var t=e.detail.value;this.trim&&("boolean"===typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"===typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus:function(){var e=this;this.$nextTick((function(){e.focused=!0})),this.$emit("focus",null)},_Focus:function(e){this.focusShow=!0,this.$emit("focus",e)},onBlur:function(){this.focused=!1,this.$emit("focus",null)},_Blur:function(e){e.detail.value;if(this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){var t=this.form.validateTrigger;"blur"===t&&this.formItem.onFieldChange()}},onConfirm:function(
2023-12-20 15:15:23 +08:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
2024-07-31 15:35:57 +08:00
var n=a("10ab"),i=a("ba37"),r=a("b0e4");function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,a){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,a);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,a)}function u(e,t,a,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,a,n){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===a&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,a):new Uint8Array(t,a,n);c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=d(e,t);return e}(e,t,a,n):"string"===typeof t?function(e,t,a){"string"===typeof a&&""!==a||(a="utf8");if(!c.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,a);e=o(e,n);var i=e.write(t,a);i!==n&&(e=e.slice(0,i));return e}(e,t,a):function(e,t){if(c.isBuffer(t)){var a=0|h(t.length);return e=o(e,a),0===e.length?e:(t.copy(e,0,0,a),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||function(e){return e!==e}(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&r(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=o(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)e[a]=0;return e}function d(e,t){var a=t.length<0?0:0|h(t.length);e=o(e,a);for(var n=0;n<a;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return U(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,a){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return T(this,t,a);case"utf8":case"utf-8":return $(this,t,a);case"ascii":return I(this,t,a);case"latin1":case"binary":return P(this,t,a);case"base64":return C(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,a);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,a){var n=e[t];e[t]=e[a],e[a]=n}function g(e,t,a,n,i){if(0===e.length)return-1;if("string"===typeof a?(n=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=i?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(i)return-1;a=e.length-1}else if(a<0){if(!i)return-1;a=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:_(e,t,a,n,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):_(e,[t],a,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,a,n,i){var r,s=1,o=e.length,c=t.length;if
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return a},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,a={},r=Object.prototype,s=r.hasOwnProperty,o=Object.defineProperty||function(e,t,a){e[t]=a.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,a){return e[t]=a}}function h(e,t,a,n){var i=t&&t.prototype instanceof y?t:y,r=Object.create(i.prototype),s=new A(n||[]);return o(r,"_invoke",{value:P(e,a,s)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}a.wrap=h;var v="suspendedStart",m="executing",g="completed",_={};function y(){}function b(){}function w(){}var x={};d(x,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(E([])));S&&S!==r&&s.call(S,u)&&(x=S);var C=w.prototype=y.prototype=Object.create(x);function $(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function a(i,r,o,c){var u=p(e[i],e,r);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&s.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,o,c)}),(function(e){a("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return a("throw",e,o,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,i){a(e,n,t,i)}))}return i=i?i.then(r,r):r()}})}function P(e,a,n){var i=v;return function(r,s){if(i===m)throw Error("Generator is already running");if(i===g){if("throw"===r)throw s;return{value:t,done:!0}}for(n.method=r,n.arg=s;;){var o=n.delegate;if(o){var c=T(o,n);if(c){if(c===_)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var u=p(e,a,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===_)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function T(e,a){var n=a.method,i=e.iterator[n];if(i===t)return a.delegate=null,"throw"===n&&e.iterator["return"]&&(a.method="return",a.arg=t,T(e,a),"throw"===a.method)||"return"!==n&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var r=p(i,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,_;var s=r.arg;return s?s.done?(a[e.resultName]=s.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,_):s:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(e){if(e||""===e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function a(){for(;++i<e.length;)if(s.call(e,i))return a.value=e[i],a.done=!1,a;return a.value=t,a.done=!0,a};return r.next=r}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,f,"GeneratorFunction"),a.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,f,"GeneratorFunction")),e.prototype=Object.create(C),e},a.awrap=function(e){return{__await:e}},$(I.prototype),d(I.prototype,l,(function(){return this})),a.AsyncIterator=I,a.async=functi
2024-07-31 08:55:30 +08:00
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2024-07-31 15:35:57 +08:00
t.read=function(e,t,a,n,i){var r,s,o=8*i-n-1,c=(1<<o)-1,u=c>>1,l=-7,f=a?i-1:0,d=a?-1:1,h=e[t+f];for(f+=d,r=h&(1<<-l)-1,h>>=-l,l+=o;l>0;r=256*r+e[t+f],f+=d,l-=8);for(s=r&(1<<-l)-1,r>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),r-=u}return(h?-1:1)*s*Math.pow(2,r-n)},t.write=function(e,t,a,n,i,r){var s,o,c,u=8*r-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:r-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),t+=s+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=l?(o=0,s=l):s+f>=1?(o=(t*c-1)*Math.pow(2,i),s+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[a+h]=255&o,h+=p,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[a+h]=255&s,h+=p,s/=256,u-=8);e[a+h-p]|=128*v}},ba3b:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"===typeof e},t.paging=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;if(!Array.isArray(e)||!e.length)return e;var a=[];return e.forEach((function(e,n){var i=Math.floor(n/t);a[i]||(a[i]=[]),a[i].push(e)})),a}},ba7c:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toolbar:{show:!0,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u8ba4",cancelColor:"#909193",confirmColor:"#3c9cff",title:""}}},bb13:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},bb34:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=this._self._c||e;return t("view",[t("view",{staticClass:this._$s(1,"sc","tit"),attrs:{_i:1}})])},i=[]},bb81:function(e,t,a){"use strict";(function(e){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("127e")),r=n(a("ee10")),s=n(a("7ca3")),o=n(a("2a13")),c=a("3bf1"),u=n(a("951c"));u.default.prototype.binddata=function(t,a,n){if(n)this.$refs[n].setValue(t,a);else{var i;for(var r in this.$refs){var s=this.$refs[r];if(s&&s.$options&&"uniForms"===s.$options.name){i=s;break}}if(!i)return e("error","\u5f53\u524d uni-froms \u7ec4\u4ef6\u7f3a\u5c11 ref \u5c5e\u6027"," at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:38");i.setValue(t,a)}};var l={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:function(){return null}},modelValue:{type:Object,default:function(){return null}},model:{type:Object,default:function(){return null}},rules:{type:Object,default:function(){return{}}},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide:function(){return{uniForm:this}},data:function(){return{formData:{},formRules:{}}},computed:{localData:function(){var e=this.model||this.modelValue||this.value;return e?(0,c.deepCopy)(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created:function(){this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules:function(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new o.default(e)},setValue:function(e,t){var a=this.childrens.find((function(t){return t.name===e}));return a?(this.formData[e]=(0,c.getValue)(e,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate:function(e,t){return this.checkAll(this.formData,e,t)},validateField:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;t=[].concat(t);var n={};return this.childrens.forEach((function(a){var i=(0,c.realName)(a.name);-1!==t.indexOf(i)&&(n=Object.assign({},n,(0,s.default)({},i,e.formData[i])))})),this.checkAll(n,[],a)},clearValid