You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
42 KiB
2 lines
42 KiB
|
2 years ago
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,n="undefined"!=typeof window?window:void 0,r="undefined"!=typeof document?document:void 0,o="undefined"!=typeof navigator?navigator:void 0,i="undefined"!=typeof location?location:void 0;function a(){return(null==i?void 0:i.href)||""}function s(){return(null==r?void 0:r.title)||""}var c,u,p,l=(null==o?void 0:o.userAgent)||"",d=(null==o?void 0:o.platform)||"",f=null===(t=null==l?void 0:l.match(/wxwork\/([\d.]+)/i))||void 0===t?void 0:t[1],v=!!f,h=!v&&/micromessenger/i.test(l),g=/\bAndroid\b/i.test(l),x=/Win/i.test(d),m=(e=function(){var e,t=null!==(e=null==o?void 0:o.maxTouchPoints)&&void 0!==e?e:1,n=/Mac/i.test(d);if(n&&t>2)return{isMac:!1,isIOS:!0};return{isMac:n,isIOS:/\b(iPhone|iPad|iPod)\b/i.test(l)}}(),e.isIOS),y=e.isMac;function C(){return c}function w(){var e;return null===(e=null==u?void 0:u.getResult())||void 0===e?void 0:e.params}function S(){var e;return null===(e=null==p?void 0:p.getResult())||void 0===e?void 0:e.params}function T(){var e=C();if(v&&(null==e?void 0:e.getAgentConfigSignature)){var t=S();return null==t?void 0:t.corpid}var n=w();return null==n?void 0:n.appId}function I(){var e=function(){var e=C();return v&&(null==e?void 0:e.getAgentConfigSignature)?S():w()}();if(e){var t=T();return{appId:t,verifyAppId:t,verifySignType:"sha1",verifyTimestamp:e.timestamp,verifyNonceStr:e.nonceStr,verifySignature:e.signature}}}var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},A(e,t)};function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)};function k(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function P(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function _(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}for(var L={config:"preVerifyJsApi",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareWechat:"menu:share:wechat",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",o
|