sl-express/project-wl-yonghuduan-uniapp-vue3/unpackage/resources/__UNI__93CDB0C/www/__uniappchooselocation.js

3 lines
26 KiB
JavaScript
Raw Normal View History

2023-09-04 16:40:17 +08:00
"use weex:vue";
(()=>{var S=Object.create;var h=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var y=A=>h(A,"__esModule",{value:!0});var G=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports);var k=(A,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of C(t))!_.call(A,a)&&(s||a!=="default")&&h(A,a,{get:()=>t[a],enumerable:!(r=I(t,a))||r.enumerable});return A},Q=(A,t)=>k(y(h(A!=null?S(E(A)):{},"default",!t&&A&&A.__esModule?{get:()=>A.default,enumerable:!0}:{value:A,enumerable:!0})),A);var B=G(($,D)=>{D.exports=Vue});var N=Object.prototype.toString,f=A=>N.call(A),p=A=>f(A).slice(8,-1);function P(){return typeof __channelId__=="string"&&__channelId__}function j(A,t){switch(p(t)){case"Function":return"function() { [native code] }";default:return t}}function F(A,t,s){return P()?(s.push(t.replace("at ","uni-app:///")),console[A].apply(console,s)):s.map(function(a){let o=f(a).toLowerCase();if(o==="[object object]"||o==="[object array]")try{a="---BEGIN:JSON---"+JSON.stringify(a,j)+"---END:JSON---"}catch{a=o}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{let i=p(a).toUpperCase();i==="NUMBER"||i==="BOOLEAN"?a="---BEGIN:"+i+"---"+a+"---END:"+i+"---":a=String(a)}return a}).join("---COMMA---")+" "+t}function d(A,t,...s){let r=F(A,t,s);r&&console[A](r)}var w={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let A=(plus.webview.currentWebview().extras||{}).data||{};if(A.messages&&(this.localization.messages=A.messages),A.locale){this.locale=A.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),r=s[1];r&&(s[1]=t[r]||r),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(A){let t=this.locale,s=t.split("-")[0],r=this.fallbackLocale,a=this.localization;function o(i){return a[i]||{}}return o("messages")[A]||o(t)[A]||o(s)[A]||o(r)[A]||A}}},m={onLoad(){this.initMessage()},methods:{initMessage(){let{from:A,callback:t,runtime:s,data:r={},useGlobalEvent:a}=plus.webview.currentWebview().extras||{};this.__from=A,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=a,this.data=JSON.parse(JSON.stringify(r)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let o=this,i=function(n){let l=n.data&&n.data.__message;!l||o.__onMessageCallback&&o.__onMessageCallback(l.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",i);else{let n=new BroadcastChannel(this.__page);n.onmessage=i}},postMessage(A={},t=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:A,keep:t}})),r=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,r):new BroadcastChannel(r).postMessage(s);else{let a=plus.webview.getWebviewById(r);a&&a.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(A){this.__onMessageCallback=A}}};var e=Q(B());var b=(A,t)=>{let s=A.__vccOpts||A;for(let[r,a]of t)s[r]=a;return s};var T=Object.defineProperty,O=Object.defineProperties,M=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,L=(A,t,s)=>t in A?T(A,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):A[t]=s,z=(A,t)=>{for(var s in t||(t={}))U.call(t,s)&&L(A,s,t[s]);if(v)for(var s of v(t))R.call(t,s)&&L(A,s,t[s]);return A},H=(A,t)=>O(A,M(t)),Y={map_center_marker_container:{"":{alignItems:"flex-start",width:22,height:70}},map_center_marker:{"":{width:22,height:35}},"unichooselocation-icons":{"":{fontFamily:"unichooselocation",textDecoration:"n