hotime/example/tpt/wx/js/chunk-364739e9.b0694fd8.js

2 lines
13 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-364739e9"],{"0d3b":function(e,t,n){var r=n("d039"),o=n("b622"),a=n("c430"),l=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[l]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},1703:function(e,t,n){},2241:function(e,t,n){"use strict";var r,o=n("f2bf"),a=n("f344"),l=n("c199"),i=n("1da4"),c=n("fe7e"),s=n("f691"),u=n("7e3e"),f=n("8da3"),d=n("b1d2"),h=n("8405"),b=n("f827"),g=n("e41f"),p=n("b650"),v=n("7f9b"),[m,w]=Object(c["a"])("action-bar"),O=Symbol(m),y={safeAreaInsetBottom:s["g"]},k=Object(o["l"])({name:m,props:y,setup(e,t){var{slots:n}=t,{linkChildren:r}=Object(v["e"])(O);return r(),()=>Object(o["k"])("div",{class:[w(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==n.default?void 0:n.default()])}}),j=Object(l["a"])(k),S=n("4eda"),B=n("b070"),[C,x]=Object(c["a"])("action-bar-button"),R=Object(a["a"])({},B["a"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),U=Object(o["l"])({name:C,props:R,setup(e,t){var{slots:n}=t,r=Object(B["b"])(),{parent:a,index:l}=Object(v["i"])(O),i=Object(o["d"])(()=>{if(a){var e=a.children[l.value-1];return!(e&&"isButton"in e)}}),c=Object(o["d"])(()=>{if(a){var e=a.children[l.value+1];return!(e&&"isButton"in e)}});return Object(S["a"])({isButton:!0}),()=>{var{type:t,icon:a,text:l,color:s,loading:u,disabled:f}=e;return Object(o["k"])(p["a"],{class:x([t,{last:c.value,first:i.value}]),size:"large",type:t,icon:a,color:s,loading:u,disabled:f,onClick:r},{default:()=>[n.default?n.default():l]})}}}),P=Object(l["a"])(U),[L,T,I]=Object(c["a"])("dialog"),E=Object(a["a"])({},b["b"],{title:String,theme:String,width:s["f"],message:[String,Function],callback:Function,allowHtml:Boolean,className:s["h"],transition:Object(s["e"])("van-dialog-bounce"),messageAlign:String,closeOnPopstate:s["g"],showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:s["g"],closeOnClickOverlay:Boolean}),H=[...b["a"],"transition","closeOnPopstate"],A=Object(o["l"])({name:L,props:E,emits:["confirm","cancel","update:show"],setup(e,t){var{emit:n,slots:r}=t,l=Object(o["D"])({confirm:!1,cancel:!1}),i=e=>n("update:show",e),c=t=>{i(!1),null==e.callback||e.callback(t)},s=t=>()=>{e.show&&(n(t),e.beforeClose?(l[t]=!0,Object(u["a"])(e.beforeClose,{args:[t],done(){c(t),l[t]=!1},canceled(){l[t]=!1}})):c(t))},b=s("cancel"),v=s("confirm"),m=()=>{var t=r.title?r.title():e.title;if(t)return Object(o["k"])("div",{class:T("header",{isolated:!e.message&&!r.default})},[t])},w=t=>{var{message:n,allowHtml:r,messageAlign:a}=e,l=T("message",{"has-title":t,[a]:a}),i=Object(f["b"])(n)?n():n;return r&&"string"===typeof i?Object(o["k"])("div",{class:l,innerHTML:i},null):Object(o["k"])("div",{class:l},[i])},O=()=>{if(r.default)return Object(o["k"])("div",{class:T("content")},[r.default()]);var{title:t,message:n,allowHtml:a}=e;if(n){var l=!(!t&&!r.title);return Object(o["k"])("div",{key:a?1:0,class:T("content",{isolated:!l})},[w(l)])}},y=()=>Object(o["k"])("div",{class:[d["d"],T("footer")]},[e.showCancelButton&&Object(o["k"])(p["a"],{size:"large",text:e.cancelButtonText||I("cancel"),class:T("cancel"),style:{color:e.cancelButtonColor},loading:l.cancel,onClick:b},null),e.showConfirmButton&&Object(o["k"])(p["a"],{size:"large",text:e.confirmButtonText||I("confirm"),class:[T("confirm"),{[d["b"]]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:l.confirm,onClick:v},null)]),k=()=>Object(o["k"])(j,{class:T("footer")},{default:()=>[e.showCancelButton&&Object(o["k"])(P,{type:"warning",text:e.cancelButtonText||I("cancel"),class:T("cancel"),color:e.cancelButtonColor,loading:l.cancel,onClick:b},null),e.showConfirmButton&&Object(o["k"])(P,{type:"danger",text:e.confirmButtonText||I("confirm"),class:T("confirm"),color:e.confirmButtonColor,loading:l.confirm,onClick:v},null)]}),S=()=>r.footer?r.footer():"round-button"===e.theme?k():y();return()=>{var{width:t,title:n,theme:r,message:l,className:c}=e;return Object(o["k"])(g["a"],Object(o["r"])({role:"dialog",class:[T([r]),c],style:{width:Object(h["a"])(t)},"aria-labelledby":n||l,"onUpdate:show":i},Object(a["e"])(e,H)),{default:()=>[m(),O(),S()]})}}});function N(){var e={setup(){var{state:e,toggle:t}=Object(i["b"])();return()=>Object(o["k"])(A,Object(o["r"])(e,{"onUpdate:show":t}),null)}};({instance:r}=Object(i["a"])(e))}function F(e){return a["c"]?new Promise((t,n)=>{r||N(),r.open(Object(a["a"])({},F.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))}):Promise.resolve()}F.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},F.currentOptions=Object(a["a"])({},F.defaultOptions),F.alert=F,F.confirm=e=>F(Object(a["a"])({showCancelButton:!0},e)),F.close=()=>{r&&r.toggle(!1)},F.setDefaultOptions=e=>{Object(a["a"])(F.currentOptions,e)},F.resetDefaultOptions=()=>{F.currentOptions=Object(a["a"])({},F.defaultOptions)},F.Component=Object(l["a"])(A),F.install=e=>{e.use(F.Component),e.config.globalProperties.$dialog=F};t["a"]=F},"25f0":function(e,t,n){"use strict";var r=n("e330"),o=n("5e77").PROPER,a=n("6eeb"),l=n("825a"),i=n("3a9b"),c=n("577e"),s=n("d039"),u=n("ad6d"),f="toString",d=RegExp.prototype,h=d[f],b=r(u),g=s((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),p=o&&h.name!=f;(g||p)&&a(RegExp.prototype,f,(function(){var e=l(this),t=c(e.source),n=e.flags,r=c(void 0===n&&i(d,e)&&!("flags"in d)?b(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"2fcb":function(e,t,n){},"4dae":function(e,t,n){var r=n("da84"),o=n("23cb"),a=n("07fa"),l=n("8418"),i=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=a(e),s=o(t,r),u=o(void 0===n?r:n,r),f=i(c(u-s,0)),d=0;s<u;s++,d++)l(f,d,e[s]);return f.length=d,f}},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),o=n("da84"),a=n("d066"),l=n("c65b"),i=n("e330"),c=n("0d3b"),s=n("6eeb"),u=n("e2cc"),f=n("d44e"),d=n("9ed3"),h=n("69f3"),b=n("19aa"),g=n("1626"),p=n("1a2d"),v=n("0366"),m=n("f5df"),w=n("825a"),O=n("861d"),y=n("577e"),k=n("7c73"),j=n("5c6c"),S=n("9a1f"),B=n("35a1"),C=n("b622"),x=n("addb"),R=C("iterator"),U="URLSearchParams",P=U+"Iterator",L=h.set,T=h.getterFor(U),I=h.getterFor(P),E=a("fetch"),H=a("Request"),A=a("Headers"),N=H&&H.prototype,F=A&&A.prototype,z=o.RegExp,J=o.TypeError,q=o.decodeURIComponent,D=o.encodeURIComponent,_=i("".charAt),M=i([].join),Q=i([].push),G=i("".replace),X=i([].shift),$=i([].splice),K=i("".split),V=i("".slice),W=/\+/g,Y=Array(4),Z=function(e){return Y[e-1]||(Y[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},ee=function(e){try{return q(e)}catch(t){return e}},te=function(e){var t=G(e,W," "),n=4;try{return q(t)}catch(r){while(n)t=G(t,Z(n--),ee);return t}},ne=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return re[e]},ae=function(e){return G(D(e),ne,oe)},le=function(e,t){if(e<t)throw J("Not enough arguments")},ie=d((function(e,t){L(this,{type:P,iterator:S(T(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===_(e,0)?V(e,1):e:y(e)))};ce.prototype={type:U,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,i,c,s=B(e);if(s){t=S(e,s),n=t.next;while(!(r=l(n,t)).done){if(o=S(w(r.value)),a=o.next,(i=l(a,o)).done||(c=l(a,o)).done||!l(a,o).done)throw J("Expected sequence with length 2");Q(this.entries,{key:y(i.value),value:y(c.value)})}}else for(var u in e)p(e,u)&&Q(this.entries,{key:u,value:y(e[u])})},parseQuery:function(e){if(e){var t,n,r=K(e,"&"),o=0;while(o<r.length)t=r[o++],t.length&&(n=K(t,"="),Q(this.entries,{key:te(X(n)),value:te(M(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],Q(n,ae(e.key)+"="+ae(e.value));return M(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var se=function(){b(this,ue);var e=arguments.length>0?arguments[0]:void 0;L(this,new ce(e))},ue=se.prototype;if(u(ue,{append:function(e,t){le(arguments.length,2);var n=T(this);Q(n.entries,{key:y(e),value:y(t)}),n.updateURL()},delete:function(e){le(arguments.length,1);var t=T(this),n=t.entries,r=y(e),o=0;while(o<n.length)n[o].key===r?$(n,o,1):o++;t.updateURL()},get:function(e){le(arguments.length,1);for(var t=T(this).entries,n=y(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){le(arguments.length,1);for(var t=T(this).entries,n=y(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Q(r,t[o].value);return r},has:function(e){le(arguments.length,1);var t=T(this).entries,n=y(e),r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){le(arguments.length,1);for(var n,r=T(this),o=r.entries,a=!1,l=y(e),i=y(t),c=0;c<o.length;c++)n=o[c],n.key===l&&(a?$(o,c--,1):(a=!0,n.value=i));a||Q(o,{key:l,value:i}),r.updateURL()},sort:function(){var e=T(this);x(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=T(this).entries,r=v(e,arguments.length>1?arguments[1]:void 0),o=0;while(o<n.length)t=n[o++],r(t.value,t.key,this)},keys:function(){return new ie(this,"keys")},values:function(){return new ie(this,"values")},entries:function(){return new ie(this,"entries")}},{enumerable:!0}),s(ue,R,ue.entries,{name:"entries"}),s(ue,"toString",(function(){return T(this).serialize()}),{enumerable:!0}),f(se,U),r({global:!0,forced:!c},{URLSearchParams:se}),!c&&g(A)){var fe=i(F.has),de=i(F.set),he=function(e){if(O(e)){var t,n=e.body;if(m(n)===U)return t=e.headers?new A(e.headers):new A,fe(t,"content-type")||de(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:j(0,y(n)),headers:j(0,t)})}return e};if(g(E)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(e,arguments.length>1?he(arguments[1]):{})}}),g(H)){var be=function(e){return b(this,N),new H(e,arguments.length>1?he(arguments[1]):{})};N.constructor=be,be.prototype=N,r({global:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:se,getState:T}},addb:function(e,t,n){var r=n("4dae"),o=Math.floor,a=function(e,t){var n=e.length,c=o(n/2);return n<8?l(e,t):i(e,a(r(e,0,c),t),a(r(e,c),t),t)},l=function(e,t){var n,r,o=e.length,a=1;while(a<o){r=a,n=e[a];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},i=function(e,t,n,r){var o=t.length,a=n.length,l=0,i=0;while(l<o||i<a)e[l+i]=l<o&&i<a?r(t[l],n[i])<=0?t[l++]:n[i++]:l<o?t[l++]:n[i++];return e};e.exports=a},b0c0:function(e,t,n){var r=n("83ab"),o=n("5e77").EXISTS,a=n("e330"),l=n("9bf2").f,i=Function.prototype,c=a(i.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(s.exec),f="name";r&&!o&&l(i,f,{configurable:!0,get:function(){try{return u(s,c(this))[1]}catch(e){return""}}})},c1fb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));n("e17f");var r=n("2241"),o=(n("e9c4"),n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("25f0"),n("b0c0"),""),a=null;function l(e,t){if(null==t)return t=localStorage.getItem(e),null==t?null:(t=JSON.parse(t),t["data"]);localStorage.setItem(e,null),localStorage.setItem(e,JSON.stringify({data:t}))}function i(){return null==a&&(a=localStorage.getItem("token")),a}function c(e){return null==e?(a=null,void localStorage.removeItem("token")):(a=localStorage.setItem("token",e),a)}function s(e,t){null==t&&(t={}),null!=i()&&(t["token"]=i());var n=new Promise((function(n){fetch(window.H.makeUrl(o+e,t),{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){if(2==e.status){c(null);var t=window.H.getParam("org_id");return null!=t&&l("org_id",t),void(location.hash="#/login")}0==e.status?n(e):Object(r["a"])({message:e.error.msg})}))}));return n}function u(e,t){var n=new URLSearchParams(t),a={};null!=i()&&(a={token:i()});var s=new Promise((function(t){fetch(window.H.makeUrl(o+e,a),{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8"},body:n.toString()}).then((function(e){return e.json()})).then((function(e){if(2==e.status){c(null);var n=window.H.getParam("org_id");return null!=n&&l("org_id",n),void(location.hash="#/companyone")}0==e.status?t(e):Object(r["a"])({message:e.error.msg})}))}));return s}},d4ef:function(e,t,n){},e17f:function(e,t,n){"use strict";n("68ef"),n("d4ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b"),n("1703"),n("a71a"),n("4d75"),n("2fcb")}}]);
//# sourceMappingURL=chunk-364739e9.b0694fd8.js.map