(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-92b66cce"],{"0653":function(e,t,r){"use strict";r("68ef"),r("5c56")},"2de2":function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"e",(function(){return i})),r.d(t,"a",(function(){return u}));var n="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",a="/duoduo-service/duoduoenv-service/",i="/duoduo-service/",u="/duoduo-service/custom-service/"},"34e9":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));t=r("c199");var n=r("7a23"),o=r("fe7e"),a=r("f691"),i=r("b1d2");const[u,s]=Object(o.a)("cell-group");r={title:String,inset:Boolean,border:a.g},o=Object(n.defineComponent)({name:u,inheritAttrs:!1,props:r,setup(e,{slots:t,attrs:r}){const o=()=>{var o;return Object(n.createVNode)("div",Object(n.mergeProps)({class:[s({inset:e.inset}),{[i.d]:e.border&&!e.inset}]},r),[null==(o=t.default)?void 0:o.call(t)])};return()=>e.title||t.title?Object(n.createVNode)(n.Fragment,null,[Object(n.createVNode)("div",{class:s("title",{inset:e.inset})},[t.title?t.title():e.title]),o()]):o()}});var c=Object(t.a)(o)},"38d5":function(e,t,r){"use strict";r("68ef")},5118:function(e,t,r){(function(e){var n=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,n,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,n,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(n,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))},r("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,r("c8ba"))},"5c56":function(e,t,r){},6017:function(e,t,r){(function(e,t){!function(e,r){"use strict";var n,o,a,i,u,s,c,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 n=t,i=n.callback,u=n.args;switch(u.length){case 0:i();break;case 1:i(u[0]);break;case 2:i(u[0],u[1]);break;case 3:i(u[0],u[1],u[2]);break;default:i.apply(r,u)}}finally{d(e),a=!1}}}}function h(){function t(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&f(+t.data.slice(r.length))}var r="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",t,!1):e.attachEvent("onmessage",t),u=function(t){e.postMessage(r+t,"*")}}e.setImmediate||(n=1,a=!(o={}),i=e.document,l=(l=Object.getPrototypeOf&&Object.getPrototypeOf(e))&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?u=function(e){t.nextTick((function(){f(e)}))}:function(){var t,r;if(e.postMessage&&!e.importScripts)return t=!0,r=e.onmessage,e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}()?h():u=e.MessageChannel?((c=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){c.port2.postMessage(e)}):i&&"onreadystatechange"in i.createElement("script")?(s=i.documentElement,function(e){var t=i.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.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),r=0;re?o.filter(t=>e.includes(t.name)):o,f=e=>new Promise((t,r)=>{const n=[],o=l(e);o.reduce((e,t)=>e.then(()=>{if(!n.length)return t.validate().then(e=>{e&&n.push(e)})}),Promise.resolve()).then(()=>{n.length?r(n):t()})}),h=e=>new Promise((t,r)=>{const n=l(e);Promise.all(n.map(e=>e.validate())).then(e=>{(e=e.filter(Boolean)).length?r(e):t()})}),m=e=>{const t=o.find(t=>t.name===e);return t?new Promise((e,r)=>{t.validate().then(t=>{t?r(t):e()})}):Promise.reject()},g=t=>("string"==typeof t?m:e.validateFirst?f:h)(t),p=(e,t)=>{o.some(r=>r.name===e&&(r.$el.scrollIntoView(t),!0))},v=()=>{const r=o.reduce((e,t)=>(e[t.name]=t.formValue.value,e),{});g().then(()=>t("submit",r)).catch(n=>{t("failed",{values:r,errors:n}),e.scrollToError&&n[0].name&&p(n[0].name)})},b=e=>{Object(u.e)(e),v()};return a({props:e}),Object(c.a)({submit:v,validate:g,scrollToField:p,resetValidation:e=>{"string"==typeof e&&(e=[e]);const t=l(e);t.forEach(e=>{e.resetValidation()})}}),()=>{var e;return Object(n.createVNode)("form",{class:d(),onSubmit:b},[null==(e=r.default)?void 0:e.call(r)])}}});var f=Object(t.a)(o)},"7abe":function(e,t,r){"use strict";function n(e){return Object(o.pushScopeId)("data-v-15f6ef1b"),e=e(),Object(o.popScopeId)(),e}r.r(t);var o=r("7a23"),a={key:0,class:"home"},i={key:0},u={key:1},s={class:"home-content"},c={class:"home-left"},l={class:"box"},d=["src"],f=n((function(){return Object(o.createElementVNode)("div",{class:"logo-text"},"SagaCare",-1)})),h={class:"home-right"},m={key:0,class:"box"},g={class:"qrcode-main"},p={key:0,class:"qrcode-model"},v={key:0},b=n((function(){return Object(o.createElementVNode)("div",{class:"qrcode-text"}," 请使用朵朵小程序,扫描上面二维码进行授权登录 ",-1)})),T={key:1,class:"box"},C=Object(o.createTextVNode)(" 提交 "),O=n((function(){return Object(o.createElementVNode)("div",{class:"fotter"},"欢迎使用智能办公",-1)}));r("99af");var E=r("5530"),y=r("d39c"),w=(y=r.n(y),r("6c02")),j=r("d257"),B=r("0613"),k=r("59b9"),P=r("ba72"),L=r("772a"),A=(r("38d5"),r("565f")),_=(r("be7f"),r("34e9")),I=(r("0653"),r("b650")),N=(r("66b9"),r("d399")),S=(r("e7e5"),r("5581")),D=r("459d"),M=r("a873"),R=r("5118");y=Object(o.defineComponent)({components:{QrcodeVue:y.a,vanForm:L.a,vanField:A.b,CellGroup:_.a,vanButton:I.b},beforeRouteEnter:function(e,t,r){var n=Object(S.a)();n&&"null"!=n?"logoOut"!==e.query.type?r((function(e){e.queryPageWorkSpace()})):r((function(e){e.showLogin=!0,Object(S.a)()})):r("/error")},setup:function(e){var t=Object(w.d)(),r=Object(j.t)(),n=Object(B.b)(),a=location.origin,i=Object(o.reactive)({parseImgUrl:j.y,codeValue:"".concat(a,"/tenantslink/home"),showLogin:!1,size:134,spaceTimer:null,type:1,userInfo:r,checkLoginType:function(){1===i.type?i.type=2:i.type=1,1===i.type?i.getPadQrCodeStatus():i.timer&&(Object(R.clearTimeout)(i.timer),i.timer=null)},username:"",password:"",onSubmit:function(e){e=e,Object(k.b)().request("/server/login",P.b.POST,e,P.a.json).then((function(e){"success"===e.result?(Object(S.j)(e.token),t.push({path:"/choice-project"})):Object(N.a)("登录失败!")}))},queryPageWorkSpace:function(){var e;i.userInfo.mac?(e={criteria:{macAddress:i.userInfo.mac,isMajorSpace:1},orders:[{column:"createTime",asc:!1}],page:1,size:1},Object(D.H)(e).then((function(e){var r;"success"===e.result?(e=null!=(e=null==e?void 0:e.content)?e:[])&&e.length?(i.showLogin=!1,r=e[0].projectId,n.commit(M.a.SET_PROJECT_ID,r),t.push({name:"envmonitor",query:{spaceId:e[0].spaceId}})):i.showLogin=!0:(i.showLogin=!0,i.spaceTimer=Object(R.setTimeout)((function(){i.queryPageWorkSpace(),Object(R.clearTimeout)(i.spaceTimer)}),5e3))})).catch((function(){i.showLogin=!0,i.spaceTimer=Object(R.setTimeout)((function(){i.queryPageWorkSpace(),Object(R.clearTimeout)(i.spaceTimer)}),5e3)}))):(i.showLogin=!0,t.push({name:"error"}))},getQrcode:function(){var e=i.userInfo.mac;return Object(j.x)(0,1e5,e)},qrCodeId:"",setCodeUrl:function(){var e=i.userInfo.mac,t=i.getQrcode();i.qrCodeId=t,i.codeValue="".concat(a,"/tenantslink/home?type=ipad&id=").concat(i.qrCodeId,"&mac=").concat(e)},clearTimer:function(){i.timer&&(Object(R.clearTimeout)(i.timer),i.timer=null)},refreshCode:function(){i.setCodeUrl(),i.clearTimer(),i.getPadQrCodeStatus()},codeStatus:{},timer:null,getPadQrCodeStatus:function(){var e=Object(j.B)({qrCodeId:i.qrCodeId});Object(D.p)(e).then((function(e){var r;i.codeStatus=null!=(e=null==e?void 0:e.data)?e:{},2===i.codeStatus.status?(e=i.codeStatus.projectId,r=i.codeStatus.spaceId,e&&r?(n.commit(M.a.SET_PROJECT_ID,e),t.push({name:"choiceSpace",query:{id:e,spaceId:r}})):e&&(n.commit(M.a.SET_PROJECT_ID,e),t.push({name:"choiceSpace",query:{id:e}}))):(i.timer&&(Object(R.clearTimeout)(i.timer),i.timer=null),i.timer=Object(R.setTimeout)((function(){i.getPadQrCodeStatus()}),1e3))}))}});return Object(o.onBeforeUnmount)((function(){i.timer&&(Object(R.clearTimeout)(i.timer),i.timer=null,Object(R.clearTimeout)(i.spaceTimer),i.spaceTimer=null)})),Object(o.onMounted)((function(){i.setCodeUrl(),i.getPadQrCodeStatus()})),Object(E.a)({},Object(o.toRefs)(i))}}),r("f3c1"),r("753a"),L=r("6b0d"),A=r.n(L);t.default=A()(y,[["render",function(e,t,r,n,E,y){var w=Object(o.resolveComponent)("qrcode-vue"),j=Object(o.resolveComponent)("van-icon"),B=Object(o.resolveComponent)("van-field"),k=Object(o.resolveComponent)("van-cell-group"),P=Object(o.resolveComponent)("van-button"),L=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",i,"二维码登录")):(Object(o.openBlock)(),Object(o.createElementBlock)("span",u,"账号登录"))]),Object(o.createElementVNode)("div",s,[Object(o.createElementVNode)("div",c,[Object(o.createElementVNode)("div",l,[Object(o.createElementVNode)("img",{src:e.parseImgUrl("ipdImages","logo.svg"),alt:""},null,8,d),f])]),Object(o.createElementVNode)("div",h,[1===e.type?(Object(o.openBlock)(),Object(o.createElementBlock)("div",m,[Object(o.createElementVNode)("div",g,[Object(o.createVNode)(w,{value:e.codeValue,class:"qrcode",foreground:"#CE9F27",level:"H"},null,8,["value"]),e.codeStatus.status?(Object(o.openBlock)(),Object(o.createElementBlock)("div",p,[1===e.codeStatus.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",v,"已扫描")):Object(o.createCommentVNode)("",!0),2===e.codeStatus.status||3===e.codeStatus.status?(Object(o.openBlock)(),Object(o.createBlock)(j,{key:1,class:"code-replay",onClick:e.refreshCode,name:"replay"},null,8,["onClick"])):Object(o.createCommentVNode)("",!0)])):Object(o.createCommentVNode)("",!0)]),b])):(Object(o.openBlock)(),Object(o.createElementBlock)("div",T,[Object(o.createVNode)(L,{onSubmit:e.onSubmit,class:"box-form"},{default:Object(o.withCtx)((function(){return[Object(o.createVNode)(k,{inset:""},{default:Object(o.withCtx)((function(){return[Object(o.createVNode)(B,{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)(B,{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[C]})),_:1})])]})),_:1},8,["onSubmit"])]))])]),O])):Object(o.createCommentVNode)("",!0)}],["__scopeId","data-v-15f6ef1b"]])},"88f2":function(e,t,r){},a377:function(e,t,r){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},be7f:function(e,t,r){"use strict";r("68ef"),r("cb51"),r("3743"),r("1a04"),r("1146")},d39c:function(e,t,r){ /*! * 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,r=1,n=arguments.length;r>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-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)},h=0;h<8;h++)f.EXP_TABLE[h]=1<=0)t^=O.G15<=0)t^=O.G18<>>=1;return t},getPatternPosition:function(e){return O.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case C.PATTERN000:return(t+r)%2==0;case C.PATTERN001:return t%2==0;case C.PATTERN010:return r%3==0;case C.PATTERN011:return(t+r)%3==0;case C.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case C.PATTERN101:return t*r%2+t*r%3==0;case C.PATTERN110:return(t*r%2+t*r%3)%2==0;case C.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new b([1],0),r=0;r5&&(r+=3+a-5)}for(n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=k.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},P.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},P.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=j.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},P.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r),o=1;this.make();for(var a=0;a>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},P.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=j.getBCHTypeInfo(r),o=0;o<15;o++){var a=!e&&1==(n>>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==(n>>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 r=-1,n=this.moduleCount-1,o=7,a=0,i=this.moduleCount-1;i>0;i-=2){6==i&&i--;while(1){for(var u=0;u<2;u++)if(null==this.modules[n][i-u]){var s=!1;a>>o&1));var c=j.getMask(t,n,i-u);c&&(s=!s),this.modules[n][i-u]=s,o--,-1==o&&(a++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}},k.PAD0=236,k.PAD1=17,k.createData=function(e,t,r){for(var n=y.getRSBlocks(e,t),o=new w,a=0;a8*u)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*u+")");o.getLengthInBits()+4<=8*u&&o.put(0,4);while(o.getLengthInBits()%8!=0)o.putBit(!1);while(1){if(o.getLengthInBits()>=8*u)break;if(o.put(k.PAD0,8),o.getLengthInBits()>=8*u)break;o.put(k.PAD1,8)}return k.createBytes(o,n)},k.createBytes=function(e,t){for(var r=0,n=0,o=0,a=new Array(t.length),i=new Array(t.length),u=0;u=0?h.get(m):0}}var g=0;for(l=0;l>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}function D(e,t){void 0===t&&(t=0);var r=[];return e.forEach((function(e,n){var o=null;e.forEach((function(a,i){if(!a&&null!==o)return r.push("M"+(o+t)+" "+(n+t)+"h"+(i-o)+"v1H"+(o+t)+"z"),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?r.push("M"+(i+t)+","+(n+t)+" h1v1H"+(i+t)+"z"):r.push("M"+(o+t)+","+(n+t)+" h"+(i+1-o)+"v1H"+(o+t)+"z")}}))})),r.join("")}var M={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:A,validator:function(e){return N(e)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0}},R=t(t({},M),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),V=e.defineComponent({name:"QRCodeSvg",props:M,setup:function(t){var r=e.ref(0),n=e.ref(""),o=function(){var e=t.value,o=t.level,a=t.margin,i=I(e,o).modules;r.value=i.length+2*a,n.value=D(i,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 "+r.value+" "+r.value},[e.h("path",{fill:t.background,d:"M0,0 h"+r.value+"v"+r.value+"H0z"}),e.h("path",{fill:t.foreground,d:n.value})])}}}),x=e.defineComponent({name:"QRCodeCanvas",props:M,setup:function(t){var r=e.ref(null),n=function(){var e=t.value,n=t.level,o=t.size,a=t.margin,i=t.background,u=t.foreground,s=I(e,n).modules,c=s.length+2*a,l=r.value;if(l){var d=l.getContext("2d");if(d){var f=window.devicePixelRatio||1,h=o/c*f;l.height=l.width=o*f,d.scale(h,h),d.fillStyle=i,d.fillRect(0,0,c,c),d.fillStyle=u,_?d.fill(new Path2D(D(s,a))):s.forEach((function(e,t){e.forEach((function(e,r){e&&d.fillRect(r+a,t+a,1,1)}))}))}}};return e.onMounted(n),e.onUpdated(n),function(){return e.h("canvas",{ref:r,style:{width:t.size+"px",height:t.size+"px"}})}}});return e.defineComponent({name:"Qrcode",render:function(){var t=this.$props,r=t.renderAs,n=t.value,o=t.size,a=t.margin,i=t.level,u=t.background,s=t.foreground,c=o>>>0,l=a>>>0,d=N(i)?i:A;return e.h("svg"===r?V:x,{value:n,size:c,margin:l,level:d,background:u,foreground:s})},props:R})}(r("7a23"))},f3c1:function(e,t,r){"use strict";r("88f2")}}]);