app_evaluating/unpackage/dist/dev/app-plus/__uniapppicker.js

1 line
24 KiB
JavaScript
Raw Normal View History

2020-01-09 16:29:09 +08:00
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}([function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):a&&(u=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,r="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=/^\$|^on|^create|Sync$|Manager$|^pause/,n=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],r=function(e){return!(t.test(e)&&"createBLEConnection"!==e||~n.indexOf(e))},i=function(t){return function(){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(i.success)||e(i.fail)||e(i.complete)?t.apply(void 0,[i].concat(r)):new Promise(function(e,n){t.apply(void 0,[Object.assign({},i,{success:e,fail:n})].concat(r)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}}).then(function(e){return[null,e]}).catch(function(e){return[e]})}},o=[],s=void 0;function u(e){o.forEach(function(t){return t({origin:s,data:e})})}var c=a.webview.currentWebview().id,l=new BroadcastChannel("UNI-APP-SUBNVUE");function f(e){e.$processed=!0;var t=a.webview.currentWebview().id===e.id,n="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,r=e.id;if(e.postMessage=function(e){n?l.postMessage({data:e,to:t?n:r}):b({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){o.push(e)},e.__uniapp_mask_id){s=e.__uniapp_host;var i=e.__uniapp_mask,u=a.webview.getWebviewById(e.__uniapp_mask_id);u=u.parent()||u;var c=e.show,f=e.hide,d=e.close,p=function(){u.setStyle({mask:"none"})};e.show=function(){u.setStyle({mask:i});for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return c.apply(e,n)},e.hide=function(){p();for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f.apply(e,n)},e.close=function(){p();for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d.apply(e,n)}}}function d(e){var t=a.webview.getWebviewById(e);return t&&!t.$processed&&f(t),t}l.onmessage=function(e){e.data.to===c&&u(e.data.data)};var p=weex.requireModule("plus"),g=weex.requireModu