12345678910111213141516171819202122 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-decdd57a"],{"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},1146:function(e,t,n){},"118c":function(e,t,n){"use strict";n("8485")},1984:function(e,t,n){},"1a04":function(e,t,n){},"2de2":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return i}));var r="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",a="/duoduo-service/duoduoenv-service/",c="/duoduo-service/",i="/duoduo-service/custom-service/"},"34e9":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));t=n("c199");var r=n("7a23"),o=n("fe7e"),a=n("f691"),c=n("b1d2");const[i,u]=Object(o.a)("cell-group");n={title:String,inset:Boolean,border:a.g},o=Object(r.defineComponent)({name:i,inheritAttrs:!1,props:n,setup(e,{slots:t,attrs:n}){const o=()=>{var o;return Object(r.createVNode)("div",Object(r.mergeProps)({class:[u({inset:e.inset}),{[c.d]:e.border&&!e.inset}]},n),[null==(o=t.default)?void 0:o.call(t)])};return()=>e.title||t.title?Object(r.createVNode)(r.Fragment,null,[Object(r.createVNode)("div",{class:u("title",{inset:e.inset})},[t.title?t.title():e.title]),o()]):o()}});var s=Object(t.a)(o)},"38d5":function(e,t,n){"use strict";n("68ef")},"3a6a":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n("59b9"),o=n("ba72"),a=function(){return Object(r.b)().request("/mngserver/userInfo",o.b.GET,void 0,o.a.json)},c=function(e){return Object(r.b)().request("/server/login",o.b.POST,e,o.a.json)}},"459d":function(e,t,n){"use strict";n.d(t,"i",(function(){return c})),n.d(t,"D",(function(){return i})),n.d(t,"x",(function(){return u})),n.d(t,"p",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"n",(function(){return b})),n.d(t,"S",(function(){return m})),n.d(t,"B",(function(){return g})),n.d(t,"q",(function(){return h})),n.d(t,"T",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"h",(function(){return j})),n.d(t,"g",(function(){return O})),n.d(t,"m",(function(){return T})),n.d(t,"o",(function(){return y})),n.d(t,"w",(function(){return C})),n.d(t,"y",(function(){return E})),n.d(t,"G",(function(){return S})),n.d(t,"u",(function(){return k})),n.d(t,"d",(function(){return w})),n.d(t,"C",(function(){return P})),n.d(t,"z",(function(){return B})),n.d(t,"A",(function(){return q})),n.d(t,"M",(function(){return N})),n.d(t,"H",(function(){return I})),n.d(t,"O",(function(){return A})),n.d(t,"j",(function(){return L})),n.d(t,"t",(function(){return V})),n.d(t,"Q",(function(){return M})),n.d(t,"E",(function(){return _})),n.d(t,"e",(function(){return D})),n.d(t,"N",(function(){return x})),n.d(t,"c",(function(){return R})),n.d(t,"I",(function(){return G})),n.d(t,"s",(function(){return H})),n.d(t,"r",(function(){return z})),n.d(t,"L",(function(){return F})),n.d(t,"R",(function(){return U})),n.d(t,"P",(function(){return W})),n.d(t,"v",(function(){return Q})),n.d(t,"K",(function(){return K})),n.d(t,"F",(function(){return J})),n.d(t,"f",(function(){return X})),n.d(t,"J",(function(){return Y})),n("99af");var r=n("59b9"),o=n("ba72"),a=n("2de2"),c=function(e){return Object(r.b)().request("/api/company/config/".concat(e.companyId),o.b.GET,void 0,o.a.json)},i=function(e){return Object(r.b)().request("".concat(a.c,"weather/getCurrent?").concat(e),o.b.GET,void 0,o.a.json)},u=function(e){return Object(r.b)().request("".concat(a.b,"space/property"),o.b.POST,e,o.a.json)},s=function(e){return Object(r.b)().request("".concat(a.b,"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o.b.GET,void 0,o.a.json)},l=function(e){return Object(r.b)().request("".concat(a.b,"object/equipment/findForServe?spaceId=").concat(e.spaceId),o.b.POST,void 0,o.a.json)},d=function(e){return Object(r.b)().request("".concat(a.b,"custom/feedback/documents"),o.b.POST,e,o.a.json)},f=function(e){return Object(r.b)().request("".concat(a.b,"custom/feedbackCreate/v2"),o.b.POST,e,o.a.json)},b=function(e){return Object(r.b)({timeout:15e4}).request("".concat(a.b,"light/status/query?spaceId=").concat(e.spaceId),o.b.GET,void 0,o.a.json)},m=function(e){return Object(r.c)("".concat(a.b,"light/onoff/set"),e)},g=function(e){return Object(r.c)("".concat(a.b,"light/onoff/setSatus"),e)},h=function(e){return Object(r.b)().request("".concat(a.b,"object/objectDataEqpGroup/query"),o.b.POST,e,o.a.json)},p=function(e){return Object(r.b)().request("".concat(a.b,"meeting/room/scene/switchover"),o.b.POST,e,o.a.json)},v=function(e){return Object(r.b)().request("".concat(a.b,"customScene/create"),o.b.POST,e,o.a.json)},j=function(e){return Object(r.b)().request("".concat(a.b,"/spaceAdjust/queryPropertyData?").concat(e),o.b.GET,void 0,o.a.json)},O=function(e){return Object(r.b)().request("".concat(a.c,"object/building/query"),o.b.POST,e,o.a.json)},T=function(e){return Object(r.b)().request("".concat(a.c,"object/floor/query"),o.b.POST,e,o.a.json)},y=function(e){return Object(r.b)().request("".concat(a.d,"map/queryMapInfo"),o.b.POST,e,o.a.json)},C=function(e){return Object(r.b)().request("".concat(a.c,"object/equipment/querySpaceEquipType?").concat(e),o.b.GET,void 0,o.a.json)},E=function(e){return Object(r.b)().request("".concat(a.c,"object/space/query"),o.b.POST,e,o.a.json)},S=function(e){return Object(r.b)().request("".concat(a.d,"permanentSpace/save"),o.b.POST,e,o.a.json)},k=function(){return Object(r.b)().request("".concat(a.d,"permanentSpace/query"),o.b.GET,void 0,o.a.json)},w=function(e){return Object(r.b)().request("".concat(a.d,"permanentSpace/delete?").concat(e))},P=function(){return Object(r.b)().request("".concat(a.d,"permanentSpace/queryZJ"),o.b.GET,void 0,o.a.json)},B=function(){return Object(r.b)().request("".concat(a.c,"object/equipment/querySpaceModeSet"),o.b.GET,void 0,o.a.json)},q=function(){return Object(r.b)().request("".concat(a.c,"object/equipment/querySpaceTempSet"),o.b.GET,void 0,o.a.json)},N=function(e){return Object(r.b)().request("".concat(a.d,"scene/querySpaceSceneConfig?").concat(e),o.b.GET,void 0,o.a.json)},I=function(e){return Object(r.b)().request("".concat(a.b,"customScene/queryCustomAndScence?").concat(e),o.b.GET,void 0,o.a.json)},A=function(e){return Object(r.c)("".concat(a.b,"customScene/saveBatchCustomScene"),e)},L=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/getDefaultLocation?").concat(e),o.b.GET,void 0,o.a.json)},V=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/getPadSpaceList?").concat(e),o.b.GET,void 0,o.a.json)},M=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/saveWorkSpace"),o.b.POST,e,o.a.json)},_=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/insertWorkSpace"),o.b.POST,e,o.a.json)},D=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/deleteWorkSpace"),o.b.POST,e,o.a.json)},x=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/queryWorkSpace"),o.b.POST,e,o.a.json)},R=function(e){return Object(r.b)().request("".concat(a.d,"padSpace/queryWorkSpace"),o.b.POST,e,o.a.json)},G=function(e){return Object(r.b)().request("".concat(a.e,"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o.b.POST,e,o.a.json)},H=function(e){return Object(r.b)().request("".concat(a.d,"padLogin/getPadQrCodeStatus?").concat(e),o.b.GET,void 0,o.a.json)},z=function(e){return Object(r.b)().request("".concat(a.d,"padImage/queryImageByFuncType?").concat(e),o.b.GET,void 0,o.a.json)},F=function(e){return Object(r.b)().request("".concat(a.b,"ctrl/querySpaceConditioners?").concat(e),o.b.GET,void 0,o.a.json)},U=function(e){return Object(r.c)("".concat(a.b,"ctrl/set"),e)},W=function(e){return Object(r.b)().request("".concat(a.d,"/map/saveMapPointInfo"),o.b.POST,e,o.a.json)},Q=function(e){return Object(r.b)().request("".concat(a.a,"equipmentRun/queryEquipmentRunConfig?").concat(e),o.b.GET,void 0,o.a.json)},K=function(e){return Object(r.b)().request("".concat(a.b,"ctrl/querySapceFloorHeating?").concat(e),o.b.GET,void 0,o.a.json)},J=function(e){return Object(r.c)("".concat(a.d,"padSpace/insertWorkSpaceBatch"),e)},X=function(e){return Object(r.c)("".concat(a.d,"padSpace/deleteWorkSpaceBatch"),e)},Y=function(e){return Object(r.b)().request("".concat(a.b,"ctrl/queryEquipmentStatusInfo?").concat(e),o.b.GET,void 0,o.a.json)}},5118:function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("6017"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("c8ba"))},"565f":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),t=n("c199"),n=n("d1ba");const r=Object(t.a)(n.a);var o=r},"5c56":function(e,t,n){},6017:function(e,t,n){(function(e,t){!function(e,n){"use strict";var r,o,a,c,i,u,s,l;function d(e){delete o[e]}function f(e){if(a)setTimeout(f,0,e);else{var t=o[e];if(t){a=!0;try{var r=t,c=r.callback,i=r.args;switch(i.length){case 0:c();break;case 1:c(i[0]);break;case 2:c(i[0],i[1]);break;case 3:c(i[0],i[1],i[2]);break;default:c.apply(n,i)}}finally{d(e),a=!1}}}}function b(){function t(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&f(+t.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",t,!1):e.attachEvent("onmessage",t),i=function(t){e.postMessage(n+t,"*")}}e.setImmediate||(r=1,a=!(o={}),c=e.document,l=(l=Object.getPrototypeOf&&Object.getPrototypeOf(e))&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){f(e)}))}:function(){var t,n;if(e.postMessage&&!e.importScripts)return t=!0,n=e.onmessage,e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}()?b():i=e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){s.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(u=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,u.removeChild(t),t=null},u.appendChild(t)}):function(e){setTimeout(f,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return o[r]={callback:e,args:t},i(r),r++},l.clearImmediate=d)}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("c8ba"),n("4362"))},"66b9":function(e,t,n){"use strict";n("68ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b")},"68b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n("7a23"),o=(t=n("fe7e"),n("f691")),a=n("f344"),c=n("8da3"),i=n("b070"),u=n("ad06");const[s,l]=Object(t.a)("cell"),d={icon:String,size:String,title:o.f,value:o.f,label:o.f,center:Boolean,isLink:Boolean,border:o.g,required:Boolean,iconPrefix:String,valueClass:o.h,labelClass:o.h,titleClass:o.h,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}};n=Object(a.a)({},d,i.b);var f=Object(r.defineComponent)({name:s,props:n,setup(e,{slots:t}){const n=Object(i.c)(),o=()=>{if(t.title||Object(c.b)(e.title))return Object(r.createVNode)("div",{class:[l("title"),e.titleClass],style:e.titleStyle},[t.title?t.title():Object(r.createVNode)("span",null,[e.title]),(()=>{if(t.label||Object(c.b)(e.label))return Object(r.createVNode)("div",{class:[l("label"),e.labelClass]},[t.label?t.label():e.label])})()])};return()=>{var{size:a,center:i,border:s,isLink:d,required:f}=e,b=null!=(b=e.clickable)?b:d;const m={center:i,required:f,clickable:b,borderless:!s};return a&&(m[a]=!!a),Object(r.createVNode)("div",{class:l(m),role:b?"button":void 0,tabindex:b?0:void 0,onClick:n},[t.icon?t.icon():e.icon?Object(r.createVNode)(u.a,{name:e.icon,class:l("left-icon"),classPrefix:e.iconPrefix},null):void 0,o(),(()=>{const n=t.value||t.default;var o;if(n||Object(c.b)(e.value))return o=t.title||Object(c.b)(e.title),Object(r.createVNode)("div",{class:[l("value",{alone:!o}),e.valueClass]},[n?n():Object(r.createVNode)("span",null,[e.value])])})(),t["right-icon"]?t["right-icon"]():e.isLink?(d=e.arrowDirection?"arrow-"+e.arrowDirection:"arrow",Object(r.createVNode)(u.a,{name:d,class:l("right-icon")},null)):void 0,null==(i=t.extra)?void 0:i.call(t)])}}})},"772a":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));t=n("c199");var r=n("7a23"),o=n("fe7e"),a=n("f691"),c=n("b1d2"),i=n("4a89"),u=n("f465"),s=n("4eda");const[l,d]=Object(o.a)("form");n={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:a.f,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:a.g,validateTrigger:Object(a.e)("onBlur"),showErrorMessage:a.g,errorMessageAlign:String},o=Object(r.defineComponent)({name:l,props:n,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:o,linkChildren:a}=Object(u.f)(c.f),l=e=>e?o.filter(t=>e.includes(t.name)):o,f=e=>new Promise((t,n)=>{const r=[],o=l(e);o.reduce((e,t)=>e.then(()=>{if(!r.length)return t.validate().then(e=>{e&&r.push(e)})}),Promise.resolve()).then(()=>{r.length?n(r):t()})}),b=e=>new Promise((t,n)=>{const r=l(e);Promise.all(r.map(e=>e.validate())).then(e=>{(e=e.filter(Boolean)).length?n(e):t()})}),m=e=>{const t=o.find(t=>t.name===e);return t?new Promise((e,n)=>{t.validate().then(t=>{t?n(t):e()})}):Promise.reject()},g=t=>("string"==typeof t?m:e.validateFirst?f:b)(t),h=(e,t)=>{o.some(n=>n.name===e&&(n.$el.scrollIntoView(t),!0))},p=()=>{const n=o.reduce((e,t)=>(e[t.name]=t.formValue.value,e),{});g().then(()=>t("submit",n)).catch(r=>{t("failed",{values:n,errors:r}),e.scrollToError&&r[0].name&&h(r[0].name)})},v=e=>{Object(i.e)(e),p()};return a({props:e}),Object(s.a)({submit:p,validate:g,scrollToField:h,resetValidation:e=>{"string"==typeof e&&(e=[e]);const t=l(e);t.forEach(e=>{e.resetValidation()})}}),()=>{var e;return Object(r.createVNode)("form",{class:d(),onSubmit:v},[null==(e=n.default)?void 0:e.call(n)])}}});var f=Object(t.a)(o)},7744:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),t=n("c199"),n=n("68b4");const r=Object(t.a)(n.b);var o=r},"7abe":function(e,t,n){"use strict";function r(e){return Object(o.pushScopeId)("data-v-7ced4278"),e=e(),Object(o.popScopeId)(),e}n.r(t);var o=n("7a23"),a={key:0,class:"home"},c={key:0},i={key:1},u={class:"home-content"},s={class:"home-left"},l={class:"box"},d=["src"],f=r((function(){return Object(o.createElementVNode)("div",{class:"logo-text"},"SagaCare",-1)})),b={class:"home-right"},m={key:0,class:"box"},g={class:"qrcode-main"},h={key:0,class:"qrcode-model"},p={key:0},v=r((function(){return Object(o.createElementVNode)("div",{class:"qrcode-text"}," 请使用朵朵小程序,扫描上面二维码进行授权登录 ",-1)})),j={key:1,class:"box"},O=Object(o.createTextVNode)(" 提交 "),T=r((function(){return Object(o.createElementVNode)("div",{class:"fotter"},"欢迎使用智能办公",-1)}));n("99af");var y=n("5530"),C=n("d39c"),E=(C=n.n(C),n("6c02")),S=n("d257"),k=n("0613"),w=n("3a6a"),P=n("772a"),B=(n("38d5"),n("565f")),q=(n("be7f"),n("34e9")),N=(n("0653"),n("b650")),I=(n("66b9"),n("d399")),A=(n("e7e5"),n("5581")),L=n("459d"),V=n("a873"),M=n("5118");C=Object(o.defineComponent)({components:{QrcodeVue:C.a,vanForm:P.a,vanField:B.b,CellGroup:q.a,vanButton:N.b},beforeRouteEnter:function(e,t,n){var r=Object(A.a)();r&&"null"!=r?"logoOut"!==e.query.type?n((function(e){e.queryPageWorkSpace()})):n((function(e){e.showLogin=!0,Object(A.a)()})):n("/error")},setup:function(e){var t=Object(E.d)(),n=Object(S.t)(),r=Object(k.b)(),a=location.origin,c=Object(o.reactive)({parseImgUrl:S.y,codeValue:"".concat(a,"/sgipad/home"),showLogin:!1,size:134,spaceTimer:null,type:1,userInfo:n,checkLoginType:function(){1===c.type?c.type=2:c.type=1,1===c.type?c.getPadQrCodeStatus():c.timer&&(Object(M.clearTimeout)(c.timer),c.timer=null)},username:"",password:"",onSubmit:function(e){Object(w.b)(e).then((function(e){"success"===e.result?(Object(A.j)(e.token),t.push({path:"/choice-project"})):Object(I.a)("登录失败!")}))},queryPageWorkSpace:function(){var e;c.userInfo.mac?(e={criteria:{macAddress:c.userInfo.mac,isMajorSpace:1},orders:[{column:"createTime",asc:!1}],page:1,size:1},Object(L.N)(e).then((function(e){var n;"success"===e.result?(e=null!=(e=null==e?void 0:e.content)?e:[])&&e.length?(c.showLogin=!1,n=e[0].projectId,r.commit(V.a.SET_PROJECT_ID,n),t.push({name:"envmonitor",query:{spaceId:e[0].spaceId}})):c.showLogin=!0:(c.showLogin=!0,c.spaceTimer=Object(M.setTimeout)((function(){c.queryPageWorkSpace(),Object(M.clearTimeout)(c.spaceTimer)}),5e3))})).catch((function(){c.showLogin=!0,c.spaceTimer=Object(M.setTimeout)((function(){c.queryPageWorkSpace(),Object(M.clearTimeout)(c.spaceTimer)}),5e3)}))):(c.showLogin=!0,t.push({name:"error"}))},getQrcode:function(){var e=c.userInfo.mac;return Object(S.x)(0,1e5,e)},qrCodeId:"",setCodeUrl:function(){var e=c.userInfo.mac,t=c.getQrcode();c.qrCodeId=t,c.codeValue="".concat(a,"/sgipad/home?type=ipad&id=").concat(c.qrCodeId,"&mac=").concat(e)},clearTimer:function(){c.timer&&(Object(M.clearTimeout)(c.timer),c.timer=null)},refreshCode:function(){c.setCodeUrl(),c.clearTimer(),c.getPadQrCodeStatus()},codeStatus:{},timer:null,getPadQrCodeStatus:function(){var e=Object(S.B)({qrCodeId:c.qrCodeId});Object(L.s)(e).then((function(e){var n;c.codeStatus=null!=(e=null==e?void 0:e.data)?e:{},2===c.codeStatus.status?(e=c.codeStatus.projectId,n=c.codeStatus.spaceId,e&&n?(r.commit(V.a.SET_PROJECT_ID,e),t.push({name:"choiceSpace",query:{id:e,spaceId:n}})):e&&(r.commit(V.a.SET_PROJECT_ID,e),t.push({name:"choiceSpace",query:{id:e}}))):(c.timer&&(Object(M.clearTimeout)(c.timer),c.timer=null),c.timer=Object(M.setTimeout)((function(){c.getPadQrCodeStatus()}),1e3))}))}});return Object(o.onBeforeUnmount)((function(){c.timer&&(Object(M.clearTimeout)(c.timer),c.timer=null,Object(M.clearTimeout)(c.spaceTimer),c.spaceTimer=null)})),Object(o.onMounted)((function(){c.setCodeUrl(),c.getPadQrCodeStatus()})),Object(y.a)({},Object(o.toRefs)(c))}}),n("f6c9"),n("118c"),P=n("6b0d"),B=n.n(P);t.default=B()(C,[["render",function(e,t,n,r,y,C){var E=Object(o.resolveComponent)("qrcode-vue"),S=Object(o.resolveComponent)("van-icon"),k=Object(o.resolveComponent)("van-field"),w=Object(o.resolveComponent)("van-cell-group"),P=Object(o.resolveComponent)("van-button"),B=Object(o.resolveComponent)("van-form");return e.showLogin?(Object(o.openBlock)(),Object(o.createElementBlock)("div",a,[Object(o.createElementVNode)("div",{class:"home-btn",onClick:t[0]||(t[0]=function(){return e.checkLoginType&&e.checkLoginType.apply(e,arguments)})},[2===e.type?(Object(o.openBlock)(),Object(o.createElementBlock)("span",c,"二维码登录")):(Object(o.openBlock)(),Object(o.createElementBlock)("span",i,"账号登录"))]),Object(o.createElementVNode)("div",u,[Object(o.createElementVNode)("div",s,[Object(o.createElementVNode)("div",l,[Object(o.createElementVNode)("img",{src:e.parseImgUrl("ipdImages","logo.svg"),alt:""},null,8,d),f])]),Object(o.createElementVNode)("div",b,[1===e.type?(Object(o.openBlock)(),Object(o.createElementBlock)("div",m,[Object(o.createElementVNode)("div",g,[Object(o.createVNode)(E,{value:e.codeValue,class:"qrcode",foreground:"#CE9F27",level:"H"},null,8,["value"]),e.codeStatus.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",h,[1===e.codeStatus.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",p,"已扫描")):Object(o.createCommentVNode)("",!0),2===e.codeStatus.status||3===e.codeStatus.status?(Object(o.openBlock)(),Object(o.createBlock)(S,{key:1,class:"code-replay",onClick:e.refreshCode,name:"replay"},null,8,["onClick"])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)]),v])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",j,[Object(o.createVNode)(B,{onSubmit:e.onSubmit,class:"box-form"},{default:Object(o.withCtx)((function(){return[Object(o.createVNode)(w,{inset:""},{default:Object(o.withCtx)((function(){return[Object(o.createVNode)(k,{modelValue:e.username,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.username=t}),name:"username",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),Object(o.createVNode)(k,{modelValue:e.password,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.password=t}),type:"password",name:"password",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue"])]})),_:1}),Object(o.createElementVNode)("div",null,[Object(o.createVNode)(P,{round:"",block:"","native-type":"submit"},{default:Object(o.withCtx)((function(){return[O]})),_:1})])]})),_:1},8,["onSubmit"])]))])]),T])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-7ced4278"]])},8485:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},b650:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g}));t=n("c199");var r=n("7a23"),o=n("fe7e"),a=n("f344"),c=n("f691"),i=n("4a89"),u=n("b1d2"),s=n("b070"),l=n("ad06"),d=n("543e");const[f,b]=Object(o.a)("button");n=Object(a.a)({},s.b,{tag:Object(c.e)("button"),text:String,icon:String,type:Object(c.e)("default"),size:Object(c.e)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(c.e)("button"),loadingSize:c.f,loadingText:String,loadingType:String,iconPosition:Object(c.e)("left")}),o=Object(r.defineComponent)({name:f,props:n,emits:["click"],setup(e,{emit:t,slots:n}){const o=Object(s.c)(),a=()=>e.loading?n.loading?n.loading():Object(r.createVNode)(d.a,{size:e.loadingSize,type:e.loadingType,class:b("loading")},null):n.icon?Object(r.createVNode)("div",{class:b("icon")},[n.icon()]):e.icon?Object(r.createVNode)(l.a,{name:e.icon,class:b("icon"),classPrefix:e.iconPrefix},null):void 0,c=n=>{e.loading?Object(i.e)(n):e.disabled||(t("click",n),o())};return()=>{const{tag:t,type:o,size:i,block:s,round:l,plain:d,square:f,loading:m,disabled:g,hairline:h,nativeType:p,iconPosition:v}=e;var j=[b([o,i,{plain:d,block:s,round:l,square:f,loading:m,disabled:g,hairline:h}]),{[u.b]:h}];return Object(r.createVNode)(t,{type:p,class:j,style:(()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}})(),disabled:g,onClick:c},{default:()=>[Object(r.createVNode)("div",{class:b("content")},["left"===v&&a(),(()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text)return Object(r.createVNode)("span",{class:b("text")},[t])})(),"right"===v&&a()])]})}}});const m=Object(t.a)(o);var g=m},bc1b:function(e,t,n){},be7f:function(e,t,n){"use strict";n("68ef"),n("cb51"),n("3743"),n("1a04"),n("1146")},d1ba:function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return C}));var r=n("7a23"),o=(t=n("fe7e"),n("f691")),a=n("f344"),c=n("b1d2"),i=n("8da3"),u=n("8405"),s=n("4a89");function l(e,t){var n;if(!t.required||(n=e,Array.isArray(n)?n.length:0===n||n))return!(t.pattern&&!t.pattern.test(String(e)))}function d(e,t){const n=t["message"];return Object(i.c)(n)?n(e,t):n||""}function f({target:e}){e.composing=!0}function b({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function m(e){return[...e].length}var g=n("68b4"),h=n("f465"),p=n("1f4d"),v=n("4eda"),j=n("ad06"),O=n("7744");const[T,y]=Object(t.a)("field"),C={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:o.f,formatter:Function,clearIcon:Object(o.e)("clear"),modelValue:Object(o.c)(""),inputAlign:String,placeholder:String,autocomplete:String,errorMessage:String,clearTrigger:Object(o.e)("focus"),formatTrigger:Object(o.e)("onChange"),error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}};n=Object(a.a)({},g.a,C,{rows:o.f,type:Object(o.e)("text"),rules:Array,autosize:[Boolean,Object],labelWidth:o.f,labelClass:o.h,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var E=Object(r.defineComponent)({name:T,props:n,emits:["blur","focus","clear","keypress","click-input","click-left-icon","click-right-icon","update:modelValue"],setup(e,{emit:t,slots:n}){const o=Object(p.a)(),a=Object(r.reactive)({focused:!1,validateFailed:!1,validateMessage:""}),g=Object(r.ref)(),T=Object(r.ref)(),C=Object(h.k)(c.f)["parent"],E=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},S=t=>Object(i.b)(e[t])?e[t]:C&&Object(i.b)(C.props[t])?C.props[t]:void 0,k=Object(r.computed)(()=>{var t,n=S("readonly");return!(!e.clearable||n)&&(n=""!==E(),t="always"===e.clearTrigger||"focus"===e.clearTrigger&&a.focused,n&&t)}),w=Object(r.computed)(()=>T.value&&n.input?T.value():e.modelValue),P=e=>e.reduce((e,t)=>e.then(()=>{if(!a.validateFailed){let r=w["value"];if(l(r=t.formatter?t.formatter(r,t):r,t))return t.validator?(e=r,n=t,new Promise(t=>{const r=n.validator(e,n);Object(i.g)(r)?r.then(t):t(r)}).then(e=>{e&&"string"==typeof e?(a.validateFailed=!0,a.validateMessage=e):!1===e&&(a.validateFailed=!0,a.validateMessage=d(r,t))})):void 0;var e,n;a.validateFailed=!0,a.validateMessage=d(r,t)}}),Promise.resolve()),B=()=>{a.validateFailed&&(a.validateFailed=!1,a.validateMessage="")},q=(t=e.rules)=>new Promise(n=>{B(),t?P(t).then(()=>{a.validateFailed?n({name:e.name,message:a.validateMessage}):n()}):n()}),N=t=>{if(C&&e.rules){const r=C.props.validateTrigger===t;var n=e.rules.filter(e=>e.trigger?e.trigger===t:r);n.length&&q(n)}},I=(n,r="onChange")=>{var o,a,c;o=n,c=e.maxlength,n=Object(i.b)(c)&&m(o)>c?(a=E())&&m(a)===+c?a:(a=+c,[...o].slice(0,a).join("")):o,"number"!==e.type&&"digit"!==e.type||(c="number"===e.type,n=Object(u.e)(n,c,c)),e.formatter&&r===e.formatTrigger&&(n=e.formatter(n)),g.value&&g.value.value!==n&&(g.value.value=n),n!==e.modelValue&&t("update:modelValue",n)},A=e=>{e.target.composing||I(e.target.value)},L=()=>{var e;return null==(e=g.value)?void 0:e.blur()},V=()=>{var t=g.value;if("textarea"===e.type&&e.autosize&&t){var n,r=e.autosize,o=Object(s.b)();t.style.height="auto";let a=t.scrollHeight;Object(i.f)(r)&&(({maxHeight:r,minHeight:n}=r),void 0!==r&&(a=Math.min(a,r)),void 0!==n&&(a=Math.max(a,n))),a&&(t.style.height=a+"px",Object(s.g)(o))}},M=e=>{a.focused=!0,t("focus",e),Object(r.nextTick)(V),S("readonly")&&L()},_=e=>{S("readonly")||(a.focused=!1,I(E(),"onBlur"),t("blur",e),N("onBlur"),Object(r.nextTick)(V),Object(s.f)())},D=e=>t("click-input",e),x=e=>t("click-left-icon",e),R=e=>t("click-right-icon",e),G=e=>{Object(s.e)(e),t("update:modelValue",""),t("clear",e)},H=Object(r.computed)(()=>"boolean"==typeof e.error?e.error:!!(C&&C.props.showError&&a.validateFailed)||void 0),z=Object(r.computed)(()=>{var e=S("labelWidth");if(e)return{width:Object(u.b)(e)}}),F=n=>{13===n.keyCode&&(C&&C.props.submitOnEnter||"textarea"===e.type||Object(s.e)(n),"search"===e.type&&L()),t("keypress",n)},U=()=>e.id||o+"-input",W=()=>[Object(r.createVNode)("div",{class:y("body")},[(()=>{var t=y("control",[S("inputAlign"),{error:H.value,custom:!!n.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(n.input)return Object(r.createVNode)("div",{class:t,onClick:D},[n.input()]);var a;t={id:U(),ref:g,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:t,value:e.modelValue,disabled:S("disabled"),readonly:S("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,"aria-labelledby":e.label?o+"-label":void 0,onBlur:_,onFocus:M,onInput:A,onClick:D,onChange:b,onKeypress:F,onCompositionend:b,onCompositionstart:f};return"textarea"===e.type?Object(r.createVNode)("textarea",t,null):Object(r.createVNode)("input",Object(r.mergeProps)("number"===(a=e.type)?{type:"text",inputmode:"decimal"}:"digit"===a?{type:"tel",inputmode:"numeric"}:{type:a},t),null)})(),k.value&&Object(r.createVNode)(j.a,{name:e.clearIcon,class:y("clear"),onTouchstart:G},null),(()=>{const t=n["right-icon"];if(e.rightIcon||t)return Object(r.createVNode)("div",{class:y("right-icon"),onClick:R},[t?t():Object(r.createVNode)(j.a,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])})(),n.button&&Object(r.createVNode)("div",{class:y("button")},[n.button()])]),(()=>{var t;if(e.showWordLimit&&e.maxlength)return t=m(E()),Object(r.createVNode)("div",{class:y("word-limit")},[Object(r.createVNode)("span",{class:y("word-num")},[t]),Object(r.createTextVNode)("/"),e.maxlength])})(),(()=>{if(!C||!1!==C.props.showErrorMessage){var t=e.errorMessage||a.validateMessage;if(t){const e=n["error-message"];var o=S("errorMessageAlign");return Object(r.createVNode)("div",{class:y("error-message",o)},[e?e({message:t}):t])}}})()];return Object(v.a)({blur:L,focus:()=>{var e;return null==(e=g.value)?void 0:e.focus()},validate:q,formValue:w,resetValidation:B}),Object(r.provide)(h.a,{customValue:T,resetValidation:B,validateWithTrigger:N}),Object(r.watch)(()=>e.modelValue,()=>{I(E()),B(),N("onChange"),Object(r.nextTick)(V)}),Object(r.onMounted)(()=>{I(E(),e.formatTrigger),Object(r.nextTick)(V)}),()=>{var t,a=S("disabled"),c=S("labelAlign");t=S("colon")?":":"";const i=n.label?[n.label(),t]:e.label?Object(r.createVNode)("label",{id:o+"-label",for:U()},[e.label+t]):void 0,u=(()=>{const t=n["left-icon"];if(e.leftIcon||t)return Object(r.createVNode)("div",{class:y("left-icon"),onClick:x},[t?t():Object(r.createVNode)(j.a,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])})();return Object(r.createVNode)(O.a,{size:e.size,icon:e.leftIcon,class:y({error:H.value,disabled:a,["label-"+c]:c}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:z.value,valueClass:y("value"),titleClass:[y("label",[c,{required:e.required}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:u?()=>u:null,title:i?()=>i:null,value:W,extra:n.extra})}}})},d39c:function(e,t,n){
- /*!
- * qrcode.vue v3.3.3
- * A Vue.js component to generate QRCode.
- * © 2017-2021 @scopewu(https://github.com/scopewu)
- * MIT License.
- */
- e.exports=function(e){"use strict";
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r=n;function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}};var a=o,c={L:1,M:0,Q:3,H:2},i=c;function u(e,t){this.totalCount=e,this.dataCount=t}u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(e,t){var n=u.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var c=n[3*a+0],i=n[3*a+1],s=n[3*a+2],l=0;l<c;l++)o.push(new u(i,s));return o},u.getRsBlockTable=function(e,t){switch(t){case i.L:return u.RS_BLOCK_TABLE[4*(e-1)+0];case i.M:return u.RS_BLOCK_TABLE[4*(e-1)+1];case i.Q:return u.RS_BLOCK_TABLE[4*(e-1)+2];case i.H:return u.RS_BLOCK_TABLE[4*(e-1)+3];default:return}};var s=u;function l(){this.buffer=new Array,this.length=0}l.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};for(var d=l,f={glog:function(e){if(e<1)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},b=0;b<8;b++)f.EXP_TABLE[b]=1<<b;for(b=8;b<256;b++)f.EXP_TABLE[b]=f.EXP_TABLE[b-4]^f.EXP_TABLE[b-5]^f.EXP_TABLE[b-6]^f.EXP_TABLE[b-8];for(b=0;b<255;b++)f.LOG_TABLE[f.EXP_TABLE[b]]=b;var m=f,g=m;function h(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);var n=0;while(n<e.length&&0==e[n])n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}h.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=g.gexp(g.glog(this.get(n))+g.glog(e.get(r)));return new h(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=g.glog(this.get(0))-g.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<e.getLength();r++)n[r]^=g.gexp(g.glog(e.get(r))+t);return new h(n,0).mod(e)}};var p=n,v=h,j=m,O={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},T={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(T.getBCHDigit(t)-T.getBCHDigit(T.G15)>=0)t^=T.G15<<T.getBCHDigit(t)-T.getBCHDigit(T.G15);return(e<<10|t)^T.G15_MASK},getBCHTypeNumber:function(e){var t=e<<12;while(T.getBCHDigit(t)-T.getBCHDigit(T.G18)>=0)t^=T.G18<<T.getBCHDigit(t)-T.getBCHDigit(T.G18);return e<<12|t},getBCHDigit:function(e){var t=0;while(0!=e)t++,e>>>=1;return t},getPatternPosition:function(e){return T.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case O.PATTERN000:return(t+n)%2==0;case O.PATTERN001:return t%2==0;case O.PATTERN010:return n%3==0;case O.PATTERN011:return(t+n)%3==0;case O.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case O.PATTERN101:return t*n%2+t*n%3==0;case O.PATTERN110:return(t*n%2+t*n%3)%2==0;case O.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new v([1],0),n=0;n<e;n++)t=t.multiply(new v([1,j.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case p.MODE_NUMBER:return 10;case p.MODE_ALPHA_NUM:return 9;case p.MODE_8BIT_BYTE:return 8;case p.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case p.MODE_NUMBER:return 12;case p.MODE_ALPHA_NUM:return 11;case p.MODE_8BIT_BYTE:return 16;case p.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case p.MODE_NUMBER:return 14;case p.MODE_ALPHA_NUM:return 13;case p.MODE_8BIT_BYTE:return 16;case p.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var a=0,c=e.isDark(r,o),i=-1;i<=1;i++)if(!(r+i<0||t<=r+i))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==i&&0==u||c==e.isDark(r+i,o+u)&&a++;a>5&&(n+=3+a-5)}for(r=0;r<t-1;r++)for(o=0;o<t-1;o++){var s=0;e.isDark(r,o)&&s++,e.isDark(r+1,o)&&s++,e.isDark(r,o+1)&&s++,e.isDark(r+1,o+1)&&s++,0!=s&&4!=s||(n+=3)}for(r=0;r<t;r++)for(o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o++)for(r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<t;o++)for(r=0;r<t;r++)e.isDark(r,o)&&l++;var d=Math.abs(100*l/t/t-50)/5;return n+=10*d,n}},y=a,C=s,E=d,S=T,k=h;function w(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var P=w.prototype,B=(P.addData=function(e){var t=new y(e);this.dataList.push(t),this.dataCache=null},P.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},P.getModuleCount=function(){return this.moduleCount},P.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=C.getRSBlocks(e,this.errorCorrectLevel),n=new E,r=0,o=0;o<t.length;o++)r+=t[o].dataCount;for(o=0;o<this.dataList.length;o++){var a=this.dataList[o];n.put(a.mode,4),n.put(a.getLength(),S.getLengthInBits(a.mode,e)),a.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},P.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=w.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},P.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},P.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=S.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},P.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var a=0;a<this.modules.length;a++)for(var c=a*o,i=0;i<this.modules[a].length;i++){var u=i*o,s=this.modules[a][i];s&&(r.beginFill(0,100),r.moveTo(u,c),r.lineTo(u+o,c),r.lineTo(u+o,c+o),r.lineTo(u,c+o),r.endFill())}return r},P.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},P.setupPositionAdjustPattern=function(){for(var e=S.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var a=-2;a<=2;a++)for(var c=-2;c<=2;c++)this.modules[r+a][o+c]=-2==a||2==a||-2==c||2==c||0==a&&0==c}},P.setupTypeNumber=function(e){for(var t=S.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},P.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=S.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&1==(r>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++){a=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!e},P.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,a=0,c=this.moduleCount-1;c>0;c-=2){6==c&&c--;while(1){for(var i=0;i<2;i++)if(null==this.modules[r][c-i]){var u=!1;a<e.length&&(u=1==(e[a]>>>o&1));var s=S.getMask(t,r,c-i);s&&(u=!u),this.modules[r][c-i]=u,o--,-1==o&&(a++,o=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}},w.PAD0=236,w.PAD1=17,w.createData=function(e,t,n){for(var r=C.getRSBlocks(e,t),o=new E,a=0;a<n.length;a++){var c=n[a];o.put(c.mode,4),o.put(c.getLength(),S.getLengthInBits(c.mode,e)),c.write(o)}var i=0;for(a=0;a<r.length;a++)i+=r[a].dataCount;if(o.getLengthInBits()>8*i)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*i+")");o.getLengthInBits()+4<=8*i&&o.put(0,4);while(o.getLengthInBits()%8!=0)o.putBit(!1);while(1){if(o.getLengthInBits()>=8*i)break;if(o.put(w.PAD0,8),o.getLengthInBits()>=8*i)break;o.put(w.PAD1,8)}return w.createBytes(o,r)},w.createBytes=function(e,t){for(var n=0,r=0,o=0,a=new Array(t.length),c=new Array(t.length),i=0;i<t.length;i++){var u=t[i].dataCount,s=t[i].totalCount-u;r=Math.max(r,u),o=Math.max(o,s),a[i]=new Array(u);for(var l=0;l<a[i].length;l++)a[i][l]=255&e.buffer[l+n];n+=u;var d=S.getErrorCorrectPolynomial(s),f=new k(a[i],d.getLength()-1),b=f.mod(d);c[i]=new Array(d.getLength()-1);for(l=0;l<c[i].length;l++){var m=l+b.getLength()-c[i].length;c[i][l]=m>=0?b.get(m):0}}var g=0;for(l=0;l<t.length;l++)g+=t[l].totalCount;var h=new Array(g),p=0;for(l=0;l<r;l++)for(i=0;i<t.length;i++)l<a[i].length&&(h[p++]=a[i][l]);for(l=0;l<o;l++)for(i=0;i<t.length;i++)l<c[i].length&&(h[p++]=c[i][l]);return h},w),q="H",N=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}();function I(e,t){var n=c[t],r=new B(-1,n);return r.addData(L(e)),r.make(),r}function A(e){return e in c}function L(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}function V(e,t){void 0===t&&(t=0);var n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(a,c){if(!a&&null!==o)return n.push("M"+(o+t)+" "+(r+t)+"h"+(c-o)+"v1H"+(o+t)+"z"),void(o=null);if(c!==e.length-1)a&&null===o&&(o=c);else{if(!a)return;null===o?n.push("M"+(c+t)+","+(r+t)+" h1v1H"+(c+t)+"z"):n.push("M"+(o+t)+","+(r+t)+" h"+(c+1-o)+"v1H"+(o+t)+"z")}}))})),n.join("")}var M={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:q,validator:function(e){return A(e)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0}},_=t(t({},M),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),D=e.defineComponent({name:"QRCodeSvg",props:M,setup:function(t){var n=e.ref(0),r=e.ref(""),o=function(){var e=t.value,o=t.level,a=t.margin,c=I(e,o).modules;n.value=c.length+2*a,r.value=V(c,a)};return o(),e.onUpdated(o),function(){return e.h("svg",{width:t.size,height:t.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+n.value+" "+n.value},[e.h("path",{fill:t.background,d:"M0,0 h"+n.value+"v"+n.value+"H0z"}),e.h("path",{fill:t.foreground,d:r.value})])}}}),x=e.defineComponent({name:"QRCodeCanvas",props:M,setup:function(t){var n=e.ref(null),r=function(){var e=t.value,r=t.level,o=t.size,a=t.margin,c=t.background,i=t.foreground,u=I(e,r).modules,s=u.length+2*a,l=n.value;if(l){var d=l.getContext("2d");if(d){var f=window.devicePixelRatio||1,b=o/s*f;l.height=l.width=o*f,d.scale(b,b),d.fillStyle=c,d.fillRect(0,0,s,s),d.fillStyle=i,N?d.fill(new Path2D(V(u,a))):u.forEach((function(e,t){e.forEach((function(e,n){e&&d.fillRect(n+a,t+a,1,1)}))}))}}};return e.onMounted(r),e.onUpdated(r),function(){return e.h("canvas",{ref:n,style:{width:t.size+"px",height:t.size+"px"}})}}});return e.defineComponent({name:"Qrcode",render:function(){var t=this.$props,n=t.renderAs,r=t.value,o=t.size,a=t.margin,c=t.level,i=t.background,u=t.foreground,s=o>>>0,l=a>>>0,d=A(c)?c:q;return e.h("svg"===n?D:x,{value:r,size:s,margin:l,level:d,background:i,foreground:u})},props:_})}(n("7a23"))},f6c9:function(e,t,n){"use strict";n("1984")}}]);
|