1 |
- {"version":3,"sources":["webpack:///./node_modules/vant/es/cell-group/style/index.js","webpack:///./src/config/index.ts","webpack:///./node_modules/vant/es/cell-group/CellGroup.js","webpack:///./node_modules/vant/es/cell-group/index.js","webpack:///./node_modules/vant/es/form/style/index.js","webpack:///./src/apis/user.ts","webpack:///./src/views/home/index.vue?38d1","webpack:///./src/apis/envmonitor.ts","webpack:///./node_modules/vant/es/field/index.js","webpack:///./node_modules/vant/es/button/style/index.js","webpack:///./node_modules/vant/es/cell/Cell.js","webpack:///./node_modules/vant/es/form/Form.js","webpack:///./node_modules/vant/es/form/index.js","webpack:///./node_modules/vant/es/cell/index.js","webpack:///./src/views/home/index.vue?2c53","webpack:///./src/views/home/index.vue?9003","webpack:///./src/views/home/index.vue","webpack:///./node_modules/vant/es/button/Button.js","webpack:///./node_modules/vant/es/button/index.js","webpack:///./src/views/home/index.vue?a957","webpack:///./src/views/home/index.vue?75cc","webpack:///./node_modules/vant/es/field/style/index.js","webpack:///./node_modules/vant/es/field/utils.js","webpack:///./node_modules/vant/es/field/Field.js","webpack:///./node_modules/qrcode.vue/dist/qrcode.vue.browser.js"],"names":["setupService","objectService","duoduoenvService","weachatService","customService","bem","create","cellGroupProps","title","String","inset","Boolean","border","stdin_default","name","inheritAttrs","props","slots","attrs","renderGroup","_a","default","call","renderTitle","CellGroup","getUsersInfo","request","GET","undefined","json","login","data","POST","getCompanyInfo","companyInfo","companyId","getWeather","params","getSpaceInfo","getMeetingSceneHttp","spaceId","getEquipmentListHttp","getFeedbackDocumentsHttp","changeTempHttp","getLampHttp","timeout","setallLampHttp","setEquipeHttp","getStatusHttp","getObjectDataEqpGroupHttp","switchoverSceneHttp","changeSetTimeHttp","getChartListHTTP","getBuildingList","getFloorList","getMapInfo","getSpaceEquipType","getSpaceLike","permanentSpace","getPermanentSpace","delPermanentSpace","getUserControlAuth","getSpaceMode","getSpaceTemp","querySpaceSceneConfig","queryCustomAndScence","saveBatchCustomScene","getDefaultLocation","getPadSpaceList","saveWorkSpace","insertWorkSpace","deleteWorkSpace","queryWorkSpace","checkWorkSpace","queryCustomerservice","getPadQrCodeStatus","getPadImg","querySpaceConditioners","setSpaceCondtioners","saveMapPointInfo","getSpaceEquipList","Field","cellSharedProps","icon","size","value","label","center","isLink","required","iconPrefix","valueClass","labelClass","titleClass","titleStyle","arrowDirection","clickable","type","cellProps","route","renderLabel","showLabel","renderValue","slot","hasValue","hasTitle","alone","renderLeftIcon","renderRightIcon","name2","_b","classes","borderless","extra","formProps","colon","disabled","readonly","showError","labelWidth","labelAlign","inputAlign","scrollToError","validateFirst","submitOnEnter","validateTrigger","showErrorMessage","errorMessageAlign","emits","emit","children","linkChildren","getFieldsByNames","names","filter","field","includes","validateSeq","Promise","resolve","reject","errors","fields","reduce","promise","then","length","validate","error","push","validateAll","all","map","item","validateField","matched","find","resetValidation","forEach","scrollToField","options","some","$el","scrollIntoView","getValues","form","formValue","submit","values","catch","onSubmit","event","Form","Cell","n","_hoisted_1","key","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","render","_ctx","_cache","$props","$setup","$data","$options","_component_qrcode_vue","_component_van_icon","_component_van_field","_component_van_cell_group","_component_van_button","_component_van_form","showLogin","onClick","checkLoginType","src","parseImgUrl","alt","codeValue","foreground","level","codeStatus","status","refreshCode","modelValue","username","$event","placeholder","rules","message","password","_","round","block","components","QrcodeVue","vanForm","vanField","vanButton","beforeRouteEnter","to","from","next","query","e","setup","router","userInfo","store","timer","orgin","location","origin","proxyData","clearTimeout","res","resData","result","token","path","mac","criteria","macAddress","isMajorSpace","orders","column","asc","page","content","projectId","commit","SET_PROJECT_ID","getQrcode","id","qrCodeId","setCodeUrl","clearTimer","setTimeout","__exports__","buttonProps","tag","text","color","plain","square","loading","hairline","nativeType","loadingSize","loadingText","loadingType","iconPosition","renderLoadingIcon","renderIcon","renderText","getStyle","style","background","borderColor","Button","module","exports","isEmptyValue","Array","isArray","runSyncRule","rule","pattern","test","runRuleValidator","returnVal","validator","getRuleMessage","startComposing","target","composing","endComposing","dispatchEvent","Event","resizeTextarea","input","autosize","scrollTop","height","scrollHeight","maxHeight","minHeight","Math","min","max","mapInputType","inputmode","getStringLength","str","cutString","maxlength","slice","join","fieldSharedProps","leftIcon","rightIcon","autofocus","clearable","formatter","Function","clearIcon","autocomplete","errorMessage","clearTrigger","formatTrigger","fieldProps","rows","Object","showWordLimit","state","focused","validateFailed","validateMessage","inputRef","customValue","parent","getModelValue","getProp","showClear","trigger","runRules","validateWithTrigger","defaultTrigger","limitValueLength","updateValue","isNumber","format","onInput","blur","focus","adjustTextareaSize","onFocus","onBlur","onClickInput","onClickLeftIcon","onClickRightIcon","onClear","labelStyle","width","onKeypress","ENTER_CODE","keyCode","getInputId","renderInput","controlClass","custom","inputAttrs","ref","onChange","onCompositionend","onCompositionstart","leftIconSlot","rightIconSlot","renderWordLimit","count","renderMessage","renderFieldBody","button","Label","LeftIcon","global","factory","this","vue","__assign","assign","t","s","i","arguments","p","prototype","hasOwnProperty","apply","mode$1","MODE_NUMBER","MODE_ALPHA_NUM","MODE_8BIT_BYTE","MODE_KANJI","mode","QR8bitByte","getLength","buffer","write","put","charCodeAt","_8BitByte","ErrorCorrectLevel","L","M","Q","H","ECL","QRRSBlock","totalCount","dataCount","RS_BLOCK_TABLE","getRSBlocks","typeNumber","errorCorrectLevel","rsBlock","getRsBlockTable","Error","list","j","RSBlock$1","QRBitBuffer","get","index","bufIndex","floor","num","putBit","getLengthInBits","bit","BitBuffer$1","QRMath","glog","LOG_TABLE","gexp","EXP_TABLE","math$2","math$1","QRPolynomial","shift","offset","multiply","mod","ratio","Polynomial$2","Mode","Polynomial$1","math","QRMaskPattern","PATTERN000","PATTERN001","PATTERN010","PATTERN011","PATTERN100","PATTERN101","PATTERN110","PATTERN111","QRUtil","PATTERN_POSITION_TABLE","G15","G18","G15_MASK","getBCHTypeInfo","d","getBCHDigit","getBCHTypeNumber","digit","getPatternPosition","getMask","maskPattern","getErrorCorrectPolynomial","errorCorrectLength","a","getLostPoint","qrCode","moduleCount","getModuleCount","lostPoint","row","col","sameCount","dark","isDark","r","c","darkCount","abs","util$1","BitByte","RSBlock","BitBuffer","util","Polynomial","QRCode$1","modules","dataCache","dataList","proto","addData","newData","make","rsBlocks","totalDataCount","makeImpl","getBestMaskPattern","setupPositionProbePattern","setupPositionAdjustPattern","setupTimingPattern","setupTypeInfo","setupTypeNumber","createData","mapData","minLostPoint","createMovieClip","target_mc","instance_name","depth","qr_mc","createEmptyMovieClip","cs","y","x","beginFill","moveTo","lineTo","endFill","pos","bits","inc","bitIndex","byteIndex","mask","PAD0","PAD1","createBytes","maxDcCount","maxEcCount","dcdata","ecdata","dcCount","ecCount","rsPoly","rawPoly","modPoly","modIndex","totalCodeCount","QRCode_1","defaultErrorCorrectLevel","SUPPORTS_PATH2D","Path2D","addPath","QRCode","qrcode","toUTF8String","validErrorCorrectLevel","utf8Str","charCode","fromCharCode","generatePath","margin","ops","start","cell","QRCodeProps","Number","l","QRCodeVueProps","renderAs","as","indexOf","QRCodeSvg","defineComponent","numCells","fgPath","generate","cells","onUpdated","h","xmlns","viewBox","fill","QRCodeCanvas","canvasEl","canvas","ctx","getContext","devicePixelRatio","window","scale","fillStyle","fillRect","rdx","cdx","onMounted","_size","_margin","_level"],"mappings":"kHAAA,qB,oFCAA,0KAQO,IAAMA,EAAe,iCACfC,EAAgB,kCAChBC,EAAmB,qCACnBC,EAAiB,mBACjBC,EAAgB,mC,sICT7B,MAAO,EAAMC,GAAO,OAAAC,EAAA,MAAgB,cAC9BC,EAAiB,CACrBC,MAAOC,OACPC,MAAOC,QACPC,OAAQ,QAEV,IAAIC,EAAgB,6BAAgB,CAClCC,KAAI,EACJC,cAAc,EACdC,MAAOT,EACP,MAAMS,GAAO,MACXC,EAAK,MACLC,IAEA,MAAMC,EAAc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AGkM,WACjKlI,EAAOuhB,IAAU,EACjBnC,EAASoC,IAAY,EACrBrZ,EAAQ4W,EAAuB0C,GAAUA,EAASjD,EACtD,OAAOzK,EAAIuM,EAAe,QAAbV,EAAqBG,EAAYW,EAAc,CAAEzgB,MAAOA,EAAOD,KAAMA,EAAMof,OAAQA,EAAQjX,MAAOA,EAAO6E,WAAYA,EAAY9E,WAAYA,KAE9JtM,MAAO+jB,IAGX,OAAOzW","file":"static/js/chunk-4fc65864.63329f74.js","sourcesContent":["import \"../../style/base.css\";\nimport \"../index.css\";\n","// // 默认配置\n// import { netConfig, settingConfig, themeConfig } from './default'\n// // 自定义配置\n// import customConfig from './customConfig'\n//\n// // 导出配置(自定义配置优先级高)\n// export default Object.assign({}, netConfig, settingConfig, themeConfig, customConfig)\n\nexport const setupService = '/duoduo-service/setup-service/'\nexport const objectService = '/duoduo-service/object-service/'\nexport const duoduoenvService = '/duoduo-service/duoduoenv-service/'\nexport const weachatService = '/duoduo-service/'\nexport const customService = '/duoduo-service/custom-service/'\nexport const ssoService = '/sso/'\nexport const testApi = '/test/'\n","import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { truthProp, createNamespace, BORDER_TOP_BOTTOM } from \"../utils\";\nconst [name, bem] = createNamespace(\"cell-group\");\nconst cellGroupProps = {\n title: String,\n inset: Boolean,\n border: truthProp\n};\nvar stdin_default = defineComponent({\n name,\n inheritAttrs: false,\n props: cellGroupProps,\n setup(props, {\n slots,\n attrs\n }) {\n const renderGroup = () => {\n var _a;\n return _createVNode(\"div\", _mergeProps({\n \"class\": [bem({\n inset: props.inset\n }), {\n [BORDER_TOP_BOTTOM]: props.border && !props.inset\n }]\n }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);\n };\n const renderTitle = () => _createVNode(\"div\", {\n \"class\": bem(\"title\", {\n inset: props.inset\n })\n }, [slots.title ? slots.title() : props.title]);\n return () => {\n if (props.title || slots.title) {\n return _createVNode(_Fragment, null, [renderTitle(), renderGroup()]);\n }\n return renderGroup();\n };\n }\n});\nexport {\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _CellGroup from \"./CellGroup\";\nconst CellGroup = withInstall(_CellGroup);\nvar stdin_default = CellGroup;\nexport {\n CellGroup,\n stdin_default as default\n};\n","import \"../../style/base.css\";\n","import { RootObject } from '@/model/rootObject'\nimport { https } from '@/utils/https'\nimport { ContentType, Method } from 'axios-mapper'\nimport { setupService, testApi } from '@/config'\n\n/**\n * \n * @param data 获取用户信息\n * @returns \n */\nexport const getUsersInfo = () => {\n return https().request(`/mngserver/userInfo`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * \n * @param data 登录\n * @returns \n */\nexport const login = (data: any) => {\n return https().request(`/server/login`, Method.POST, data, ContentType.json)\n}\n\n/**\n * \n * @returns 获取当前版本更新的时间\n */\nexport const getPadVersionTimer = () => {\n return https().request(`/pad_mtime`, Method.GET, undefined, ContentType.json)\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./index.vue?vue&type=style&index=0&id=58979163&lang=scss&scoped=true\"","import { RootObject, RootWeatherObject } from '@/model/rootObject'\nimport { CompanyModel, OutherWeather, SpaceModel } from '@/model/userModel'\nimport { https, post } from '@/utils/https'\nimport { ContentType, Method, RequestParams } from 'axios-mapper'\nimport { setQueryConfig } from '@/utils'\nimport { customService, duoduoenvService, objectService, setupService, testApi, weachatService } from '@/config'\n\n// const comInfo = getUserInfo()\n// const comParams: string = \"\"\n\n// https://sagacare-h5.tenants.link/api/company/config/245e7060643811eb934c0237aedb39a6\nexport const getCompanyInfo = (companyInfo: RequestParams) => {\n return https().request<RootObject<CompanyModel>>(`/api/company/config/${companyInfo.companyId}`, Method.GET, undefined, ContentType.json)\n}\nexport const getWeather = (params: string) => {\n return https().request<RootWeatherObject<OutherWeather>>(`${objectService}weather/getCurrent?${params}`, Method.GET, undefined, ContentType.json)\n}\nexport const getSpaceInfo = (data: any) => {\n return https().request<RootWeatherObject<SpaceModel>>(`${duoduoenvService}space/property`, Method.POST, data, ContentType.json)\n}\n\n// 获取会议室场景\nexport const getMeetingSceneHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}meeting/room/scene/getMeetingScene/V2?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n// 获取设备信息\nexport const getEquipmentListHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}object/equipment/findForServe?spaceId=${params.spaceId}`, Method.POST, undefined, ContentType.json)\n}\n// 查询定制时间\nexport const getSetTimeHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}customScene/queryCustom?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n// 空调 - 调节文案/空调信息\nexport const getFeedbackDocumentsHttp = (data: any) => {\n return https().request<any>(`${duoduoenvService}custom/feedback/documents`, Method.POST, data, ContentType.json)\n}\n\n// 空调调节\nexport const changeTempHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}custom/feedbackCreate/v2`, Method.POST, params, ContentType.json)\n}\n// 查询灯的状态(优先查采集的状态)\nexport const getLampHttp = (params: any) => {\n return https({ timeout: 1000 }).request<RootObject<any>>(`${duoduoenvService}light/status/query?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n\n// 批量操作 灯\nexport const setallLampHttp = (data: any) => {\n return post(`${duoduoenvService}light/onoff/set`, data)\n}\n// 设置窗帘 \nexport const setEquipeHttp = (data: any) => {\n return post(`${duoduoenvService}object/eqp/infocode/set`, data)\n}\n\n// 指令失败的时候轮询查询灯的状态\nexport const getStatusHttp = (data: any) => {\n return post(`${duoduoenvService}light/onoff/setSatus`, data)\n}\n\n// 获取窗帘数据列表\nexport const getObjectDataEqpGroupHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}object/objectDataEqpGroup/query`, Method.POST, params, ContentType.json)\n}\n\n// 切换场景\nexport const switchoverSceneHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}meeting/room/scene/switchover`, Method.POST, params, ContentType.json)\n}\n\nexport const changeSetTimeHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}customScene/create`, Method.POST, params, ContentType.json)\n}\n// 详情页面的图表数据\nexport const getChartListHTTP = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}/spaceAdjust/queryPropertyData?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n// 查询建筑的信息\nexport const getBuildingList = (params: any) => {\n return https().request<any>(`${objectService}object/building/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 查询楼层信息\n * @param params\n */\nexport const getFloorList = (params: any) => {\n return https().request<any>(`${objectService}object/floor/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取地图数据\n * @param params\n */\nexport const getMapInfo = (params: any) => {\n return https().request<any>(`${setupService}map/queryMapInfo`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取空间设备\n * @param params\n */\nexport const getSpaceEquipType = (params: any) => {\n return https().request<any>(`${objectService}object/equipment/querySpaceEquipType?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 模糊查询空间列表数据\n * @param params\n */\nexport const getSpaceLike = (params: any) => {\n return https().request<any>(`${objectService}object/space/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 增加常驻空间\n */\nexport const permanentSpace = (params: any) => {\n // return https().request<any>(`${setupService}permanentSpace/save`, Method.POST, params, ContentType.json)\n // return https().request<any>(`${testApi}permanentSpace/save`, Method.POST, params, ContentType.json)\n return https().request<any>(`${setupService}permanentSpace/save`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取常驻空间\n */\nexport const getPermanentSpace = () => {\n return https().request<any>(`${setupService}permanentSpace/query`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 删除常驻空间\n */\nexport const delPermanentSpace = (params: any) => {\n return https().request<any>(`${setupService}permanentSpace/delete?${params}`)\n}\n\n/**\n * 获取用户使用权限\n */\nexport const getUserControlAuth = () => {\n return https().request<any>(`${setupService}permanentSpace/queryZJ`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 获取空间运行模式\n */\nexport const getSpaceMode = () => {\n return https().request<any>(`${objectService}object/equipment/querySpaceModeSet`, Method.GET, undefined, ContentType.json)\n}\n/**\n * 获取空调设备温度\n */\nexport const getSpaceTemp = () => {\n return https().request<any>(`${objectService}object/equipment/querySpaceTempSet`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * \n * @param params 查询场景配置\n * @returns \n */\nexport const querySpaceSceneConfig = (params: any) => {\n return https().request<any>(`${setupService}scene/querySpaceSceneConfig?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 查询加班记录\n */\nexport const queryCustomAndScence = (params: any) => {\n // return https().request<any>(`${testApi}customScene/queryCustomAndScence?${params}`, Method.GET, undefined, ContentType.json)\n return https().request<any>(`${duoduoenvService}customScene/queryCustomAndScence?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 添加(取消)加班记录\n * @param params\n */\nexport const saveBatchCustomScene = (data: any) => {\n // return post(`${testApi}customScene/saveBatchCustomScene`, data)\n return post(`${duoduoenvService}customScene/saveBatchCustomScene`, data)\n}\n\n\n/**\n * 查询默认位置\n */\nexport const getDefaultLocation = (params: any) => {\n return https().request<any>(`${setupService}padSpace/getDefaultLocation?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 查询空间列表\n */\nexport const getPadSpaceList = (params: any) => {\n return https().request<any>(`${setupService}padSpace/getPadSpaceList?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设置成办公空间-(\"批量保存\")\n */\nexport const saveWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/saveWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 设置工作空间\n * @param params \n */\nexport const insertWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/insertWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 删除工作空间\n * @param params \n */\nexport const deleteWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/deleteWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n\n\n/**\n * 查询平板下面的办公空间\n */\nexport let queryWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/queryWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n\n/**\n * 查询平板下面的办公空间\n */\nexport let checkWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/queryWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 查询客户列表\n */\nexport const queryCustomerservice = (params: any) => {\n return https().request<RootObject<any>>(`${weachatService}wechat-service-duoduoenv/duoduoenv/customerservice/query`, Method.POST, params, ContentType.json)\n}\n\n\n/**\n * 获取二维码状态\n */\nexport const getPadQrCodeStatus = (params: any) => {\n return https().request<any>(`${setupService}padLogin/getPadQrCodeStatus?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n\n/**\n * 获取背景图\n * @param params \n * @returns \n */\nexport const getPadImg = (params: any) => {\n // return https().request<any>(`${setupService}/padImage/queryImageByFuncType`,Method.GET, undefined, ContentType.json)\n return https().request<any>(`${setupService}padImage/queryImageByFuncType?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设备手动控制\n */\nexport const querySpaceConditioners = (params: any) => {\n return https().request<any>(`${duoduoenvService}ctrl/querySpaceConditioners?${params}`, Method.GET, undefined, ContentType.json)\n // return https().request<any>(`${testApi}ctrl/querySpaceConditioners?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设备手动控制\n */\nexport const setSpaceCondtioners = (data: any) => {\n return post(`${duoduoenvService}ctrl/set`, data)\n // return post(`${testApi}ctrl/set`, data)\n}\n\n// 地图数据保存\nexport const saveMapPointInfo = (data: any) => {\n // return post(`${duoduoenvService}map/saveMapPointInfo`, data)\n return https().request<any>(`${setupService}/map/saveMapPointInfo`, Method.POST, data, ContentType.json)\n}\n\n\n// 获取空间下的可控制的设备\nexport const getSpaceEquipList = (params: any) => {\n return https().request<any>(`${customService}equipmentRun/queryEquipmentRunConfig?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n\n","import { withInstall } from \"../utils\";\nimport _Field from \"./Field\";\nconst Field = withInstall(_Field);\nvar stdin_default = Field;\nexport {\n Field,\n stdin_default as default\n};\n","import \"../../style/base.css\";\nimport \"../../badge/index.css\";\nimport \"../../icon/index.css\";\nimport \"../../loading/index.css\";\nimport \"../index.css\";\n","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { isDef, extend, truthProp, unknownProp, numericProp, createNamespace } from \"../utils\";\nimport { useRoute, routeProps } from \"../composables/use-route\";\nimport { Icon } from \"../icon\";\nconst [name, bem] = createNamespace(\"cell\");\nconst cellSharedProps = {\n icon: String,\n size: String,\n title: numericProp,\n value: numericProp,\n label: numericProp,\n center: Boolean,\n isLink: Boolean,\n border: truthProp,\n required: Boolean,\n iconPrefix: String,\n valueClass: unknownProp,\n labelClass: unknownProp,\n titleClass: unknownProp,\n titleStyle: null,\n arrowDirection: String,\n clickable: {\n type: Boolean,\n default: null\n }\n};\nconst cellProps = extend({}, cellSharedProps, routeProps);\nvar stdin_default = defineComponent({\n name,\n props: cellProps,\n setup(props, {\n slots\n }) {\n const route = useRoute();\n const renderLabel = () => {\n const showLabel = slots.label || isDef(props.label);\n if (showLabel) {\n return _createVNode(\"div\", {\n \"class\": [bem(\"label\"), props.labelClass]\n }, [slots.label ? slots.label() : props.label]);\n }\n };\n const renderTitle = () => {\n if (slots.title || isDef(props.title)) {\n return _createVNode(\"div\", {\n \"class\": [bem(\"title\"), props.titleClass],\n \"style\": props.titleStyle\n }, [slots.title ? slots.title() : _createVNode(\"span\", null, [props.title]), renderLabel()]);\n }\n };\n const renderValue = () => {\n const slot = slots.value || slots.default;\n const hasValue = slot || isDef(props.value);\n if (hasValue) {\n const hasTitle = slots.title || isDef(props.title);\n return _createVNode(\"div\", {\n \"class\": [bem(\"value\", {\n alone: !hasTitle\n }), props.valueClass]\n }, [slot ? slot() : _createVNode(\"span\", null, [props.value])]);\n }\n };\n const renderLeftIcon = () => {\n if (slots.icon) {\n return slots.icon();\n }\n if (props.icon) {\n return _createVNode(Icon, {\n \"name\": props.icon,\n \"class\": bem(\"left-icon\"),\n \"classPrefix\": props.iconPrefix\n }, null);\n }\n };\n const renderRightIcon = () => {\n if (slots[\"right-icon\"]) {\n return slots[\"right-icon\"]();\n }\n if (props.isLink) {\n const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : \"arrow\";\n return _createVNode(Icon, {\n \"name\": name2,\n \"class\": bem(\"right-icon\")\n }, null);\n }\n };\n return () => {\n var _a, _b;\n const {\n size,\n center,\n border,\n isLink,\n required\n } = props;\n const clickable = (_a = props.clickable) != null ? _a : isLink;\n const classes = {\n center,\n required,\n clickable,\n borderless: !border\n };\n if (size) {\n classes[size] = !!size;\n }\n return _createVNode(\"div\", {\n \"class\": bem(classes),\n \"role\": clickable ? \"button\" : void 0,\n \"tabindex\": clickable ? 0 : void 0,\n \"onClick\": route\n }, [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_b = slots.extra) == null ? void 0 : _b.call(slots)]);\n };\n }\n});\nexport {\n cellSharedProps,\n stdin_default as default\n};\n","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { FORM_KEY, truthProp, numericProp, preventDefault, makeStringProp, createNamespace } from \"../utils\";\nimport { useChildren } from \"@vant/use\";\nimport { useExpose } from \"../composables/use-expose\";\nconst [name, bem] = createNamespace(\"form\");\nconst formProps = {\n colon: Boolean,\n disabled: Boolean,\n readonly: Boolean,\n showError: Boolean,\n labelWidth: numericProp,\n labelAlign: String,\n inputAlign: String,\n scrollToError: Boolean,\n validateFirst: Boolean,\n submitOnEnter: truthProp,\n validateTrigger: makeStringProp(\"onBlur\"),\n showErrorMessage: truthProp,\n errorMessageAlign: String\n};\nvar stdin_default = defineComponent({\n name,\n props: formProps,\n emits: [\"submit\", \"failed\"],\n setup(props, {\n emit,\n slots\n }) {\n const {\n children,\n linkChildren\n } = useChildren(FORM_KEY);\n const getFieldsByNames = (names) => {\n if (names) {\n return children.filter((field) => names.includes(field.name));\n }\n return children;\n };\n const validateSeq = (names) => new Promise((resolve, reject) => {\n const errors = [];\n const fields = getFieldsByNames(names);\n fields.reduce((promise, field) => promise.then(() => {\n if (!errors.length) {\n return field.validate().then((error) => {\n if (error) {\n errors.push(error);\n }\n });\n }\n }), Promise.resolve()).then(() => {\n if (errors.length) {\n reject(errors);\n } else {\n resolve();\n }\n });\n });\n const validateAll = (names) => new Promise((resolve, reject) => {\n const fields = getFieldsByNames(names);\n Promise.all(fields.map((item) => item.validate())).then((errors) => {\n errors = errors.filter(Boolean);\n if (errors.length) {\n reject(errors);\n } else {\n resolve();\n }\n });\n });\n const validateField = (name2) => {\n const matched = children.find((item) => item.name === name2);\n if (matched) {\n return new Promise((resolve, reject) => {\n matched.validate().then((error) => {\n if (error) {\n reject(error);\n } else {\n resolve();\n }\n });\n });\n }\n return Promise.reject();\n };\n const validate = (name2) => {\n if (typeof name2 === \"string\") {\n return validateField(name2);\n }\n return props.validateFirst ? validateSeq(name2) : validateAll(name2);\n };\n const resetValidation = (name2) => {\n if (typeof name2 === \"string\") {\n name2 = [name2];\n }\n const fields = getFieldsByNames(name2);\n fields.forEach((item) => {\n item.resetValidation();\n });\n };\n const scrollToField = (name2, options) => {\n children.some((item) => {\n if (item.name === name2) {\n item.$el.scrollIntoView(options);\n return true;\n }\n return false;\n });\n };\n const getValues = () => children.reduce((form, field) => {\n form[field.name] = field.formValue.value;\n return form;\n }, {});\n const submit = () => {\n const values = getValues();\n validate().then(() => emit(\"submit\", values)).catch((errors) => {\n emit(\"failed\", {\n values,\n errors\n });\n if (props.scrollToError && errors[0].name) {\n scrollToField(errors[0].name);\n }\n });\n };\n const onSubmit = (event) => {\n preventDefault(event);\n submit();\n };\n linkChildren({\n props\n });\n useExpose({\n submit,\n validate,\n scrollToField,\n resetValidation\n });\n return () => {\n var _a;\n return _createVNode(\"form\", {\n \"class\": bem(),\n \"onSubmit\": onSubmit\n }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);\n };\n }\n});\nexport {\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _Form from \"./Form\";\nconst Form = withInstall(_Form);\nvar stdin_default = Form;\nexport {\n Form,\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _Cell from \"./Cell\";\nconst Cell = withInstall(_Cell);\nvar stdin_default = Cell;\nexport {\n Cell,\n stdin_default as default\n};\n","import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createBlock as _createBlock, withCtx as _withCtx, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-58979163\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"home\"\n}\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = { class: \"home-content\" }\nconst _hoisted_5 = { class: \"home-left\" }\nconst _hoisted_6 = { class: \"box\" }\nconst _hoisted_7 = [\"src\"]\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"logo-text\" }, \"SagaCare\", -1))\nconst _hoisted_9 = { class: \"home-right\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"box\"\n}\nconst _hoisted_11 = { class: \"qrcode-main\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"qrcode-model\"\n}\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"qrcode-text\" }, \" 请使用朵朵小程序,扫描上面二维码进行授权登录 \", -1))\nconst _hoisted_15 = {\n key: 1,\n class: \"box\"\n}\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\" 提交 \")\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"fotter\" }, \"欢迎使用智能办公\", -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_qrcode_vue = _resolveComponent(\"qrcode-vue\")!\n const _component_van_icon = _resolveComponent(\"van-icon\")!\n const _component_van_field = _resolveComponent(\"van-field\")!\n const _component_van_cell_group = _resolveComponent(\"van-cell-group\")!\n const _component_van_button = _resolveComponent(\"van-button\")!\n const _component_van_form = _resolveComponent(\"van-form\")!\n\n return (_ctx.showLogin)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"home-btn\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.checkLoginType && _ctx.checkLoginType(...args)))\n }, [\n (_ctx.type === 2)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, \"二维码登录\"))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \"账号登录\"))\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"img\", {\n src: _ctx.parseImgUrl('ipdImages', 'logo.svg'),\n alt: \"\"\n }, null, 8, _hoisted_7),\n _hoisted_8\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n (_ctx.type === 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(_component_qrcode_vue, {\n value: _ctx.codeValue,\n class: \"qrcode\",\n foreground: \"#CE9F27\",\n level: \"H\"\n }, null, 8, [\"value\"]),\n (_ctx.codeStatus.status)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n (_ctx.codeStatus.status === 1)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_13, \"已扫描\"))\n : _createCommentVNode(\"\", true),\n (_ctx.codeStatus.status === 2 || _ctx.codeStatus.status === 3)\n ? (_openBlock(), _createBlock(_component_van_icon, {\n key: 1,\n class: \"code-replay\",\n onClick: _ctx.refreshCode,\n name: \"replay\"\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_14\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n _createVNode(_component_van_form, {\n onSubmit: _ctx.onSubmit,\n class: \"box-form\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_van_cell_group, { inset: \"\" }, {\n default: _withCtx(() => [\n _createVNode(_component_van_field, {\n modelValue: _ctx.username,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.username) = $event)),\n name: \"username\",\n placeholder: \"用户名\",\n rules: [{ required: true, message: '请填写用户名' }]\n }, null, 8, [\"modelValue\"]),\n _createVNode(_component_van_field, {\n modelValue: _ctx.password,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.password) = $event)),\n type: \"password\",\n name: \"password\",\n placeholder: \"密码\",\n rules: [{ required: true, message: '请填写密码' }]\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", null, [\n _createVNode(_component_van_button, {\n round: \"\",\n block: \"\",\n \"native-type\": \"submit\"\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n })\n ])\n ]),\n _: 1\n }, 8, [\"onSubmit\"])\n ]))\n ])\n ]),\n _hoisted_17\n ]))\n : _createCommentVNode(\"\", true)\n}","\nimport {\n defineComponent,\n reactive,\n toRefs,\n onBeforeMount,\n onMounted,\n ref,\n onBeforeUnmount,\n} from \"vue\";\nimport QrcodeVue from \"qrcode.vue\";\nimport { useRouter } from \"vue-router\";\nimport {\n getUserInfo,\n newNumber,\n parseImgUrl,\n setLocalProjectId,\n setQueryConfig,\n} from \"@/utils\";\nimport { UserActionTypes } from \"@/store/modules/user/action-types\";\nimport { store, useStore } from \"@/store\";\nimport { login } from \"@/apis/user\";\nimport { Form, Field, CellGroup, Button, Toast } from \"vant\";\nimport { getCookieMac, setToken } from \"@/utils/cookies\";\nimport { getPadQrCodeStatus, queryWorkSpace } from \"@/apis/envmonitor\";\nimport { getUrlParams } from \"@/utils/https\";\nimport { UserMutationTypes } from \"@/store/modules/user/mutation-types\";\nimport router from \"@/router\";\n\nexport default defineComponent({\n components: {\n QrcodeVue,\n vanForm: Form,\n vanField: Field,\n CellGroup,\n vanButton: Button,\n },\n beforeRouteEnter(to, from, next) {\n // 不能获取组件实例\n // 因为当守卫执行前,组件实例还没被创建\n console.log(\"路由导航首位---\");\n console.log(to);\n console.log(from);\n // next()\n if (to.query.type !== \"logoOut\") {\n next((e: any) => {\n console.log(e);\n e.queryWorkSpace();\n });\n } else {\n next((e: any) => {\n e.showLogin = true;\n let mac: any = getCookieMac();\n console.log(mac);\n // to.query = { mac: mac};\n console.log(to);\n // console.log( e.showLogin )\n // router.push({ name: \"home\", query: { mac: mac } });\n });\n }\n },\n setup(props) {\n let router: any = useRouter();\n const userInfo: any = getUserInfo();\n const store = useStore();\n const codeStatus: any = {};\n const timer: any = null;\n const orgin: any = location.origin;\n const proxyData = reactive({\n parseImgUrl: parseImgUrl,\n codeValue: `${orgin}/sgipad/home`,\n showLogin: false,\n size: 134,\n type: 1, // 1:二维码登录 2:用户密码登录\n userInfo: userInfo,\n checkLoginType() {\n if (proxyData.type === 1) {\n proxyData.type = 2;\n } else {\n proxyData.type = 1;\n }\n if (proxyData.type === 1) {\n proxyData.getPadQrCodeStatus();\n } else {\n if (proxyData.timer) {\n clearTimeout(proxyData.timer);\n proxyData.timer = null;\n }\n }\n },\n username: \"\",\n password: \"\",\n onSubmit(values: any) {\n console.log(\"submit\", values);\n let params: any = values;\n login(params).then((res) => {\n let resData: any = res;\n if (resData.result === \"success\") {\n setToken(resData.token);\n router.push({ path: \"/choice-project\" });\n } else {\n Toast(\"登录失败!\");\n }\n });\n },\n // 查询工作空间\n queryWorkSpace() {\n if (!proxyData.userInfo.mac) {\n proxyData.showLogin = true;\n } else {\n let params: any = {\n criteria: {\n macAddress: proxyData.userInfo.mac,\n isMajorSpace: 1,\n },\n orders: [\n {\n column: \"createTime\",\n\n asc: false,\n },\n ],\n page: 1,\n size: 1,\n };\n queryWorkSpace(params)\n .then((res: any) => {\n let resData: any = res;\n if (resData.result === \"success\") {\n let content: any = resData?.content ?? [];\n if (content && content.length) {\n proxyData.showLogin = false;\n let projectId: any = content[0].projectId;\n store.commit(UserMutationTypes.SET_PROJECT_ID, projectId);\n router.push({\n name: \"envmonitor\",\n query: { spaceId: content[0].spaceId },\n });\n } else {\n proxyData.showLogin = true;\n }\n } else {\n proxyData.showLogin = true;\n }\n })\n .catch(() => {\n proxyData.showLogin = true;\n });\n }\n },\n /**\n * 获取mac地址\n */\n getQrcode() {\n let mac: any = proxyData.userInfo.mac;\n const id: any = newNumber(0, 100000, mac);\n return id;\n },\n qrCodeId: \"\",\n setCodeUrl() {\n let mac: any = proxyData.userInfo.mac;\n let qrCodeId: any = proxyData.getQrcode();\n proxyData.qrCodeId = qrCodeId;\n proxyData.codeValue = `${orgin}/sgipad/home?type=ipad&id=${proxyData.qrCodeId}&mac=${mac}`;\n },\n // 定时器清楚\n clearTimer() {\n if (proxyData.timer) {\n clearTimeout(proxyData.timer);\n proxyData.timer = null;\n }\n },\n // 二维码刷新\n refreshCode() {\n proxyData.setCodeUrl();\n proxyData.clearTimer();\n proxyData.getPadQrCodeStatus();\n },\n /**\n *\n *获取二维码状态\n */\n codeStatus: codeStatus,\n timer: timer,\n getPadQrCodeStatus() {\n let params: any = setQueryConfig({ qrCodeId: proxyData.qrCodeId });\n getPadQrCodeStatus(params).then((res) => {\n let resData: any = res;\n proxyData.codeStatus = resData?.data ?? {};\n if (proxyData.codeStatus.status === 2) {\n // debugger\n let projectId: any = proxyData.codeStatus.projectId;\n let spaceId: any = proxyData.codeStatus.spaceId;\n if (projectId && spaceId) {\n // 直接去环境条件页面\n // setLocalProjectId(projectId)\n store.commit(UserMutationTypes.SET_PROJECT_ID, projectId);\n router.push({\n name: \"choiceSpace\",\n query: { id: projectId, spaceId: spaceId },\n });\n } else if (projectId) {\n // 去选择项目页面\n store.commit(UserMutationTypes.SET_PROJECT_ID, projectId);\n router.push({ name: \"choiceSpace\", query: { id: projectId } });\n }\n } else {\n if (proxyData.timer) {\n clearTimeout(proxyData.timer);\n proxyData.timer = null;\n }\n proxyData.timer = setTimeout(() => {\n proxyData.getPadQrCodeStatus();\n }, 1000);\n }\n });\n },\n });\n onBeforeUnmount(() => {\n if (proxyData.timer) {\n clearTimeout(proxyData.timer);\n proxyData.timer = null;\n }\n });\n onMounted(() => {\n // 设置二维码路径\n proxyData.setCodeUrl();\n proxyData.getPadQrCodeStatus();\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=58979163&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=58979163&lang=scss&scoped=true\"\nimport \"./index.vue?vue&type=style&index=1&id=58979163&lang=scss\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-58979163\"]])\n\nexport default __exports__","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { extend, numericProp, preventDefault, makeStringProp, createNamespace, BORDER_SURROUND } from \"../utils\";\nimport { useRoute, routeProps } from \"../composables/use-route\";\nimport { Icon } from \"../icon\";\nimport { Loading } from \"../loading\";\nconst [name, bem] = createNamespace(\"button\");\nconst buttonProps = extend({}, routeProps, {\n tag: makeStringProp(\"button\"),\n text: String,\n icon: String,\n type: makeStringProp(\"default\"),\n size: makeStringProp(\"normal\"),\n color: String,\n block: Boolean,\n plain: Boolean,\n round: Boolean,\n square: Boolean,\n loading: Boolean,\n hairline: Boolean,\n disabled: Boolean,\n iconPrefix: String,\n nativeType: makeStringProp(\"button\"),\n loadingSize: numericProp,\n loadingText: String,\n loadingType: String,\n iconPosition: makeStringProp(\"left\")\n});\nvar stdin_default = defineComponent({\n name,\n props: buttonProps,\n emits: [\"click\"],\n setup(props, {\n emit,\n slots\n }) {\n const route = useRoute();\n const renderLoadingIcon = () => {\n if (slots.loading) {\n return slots.loading();\n }\n return _createVNode(Loading, {\n \"size\": props.loadingSize,\n \"type\": props.loadingType,\n \"class\": bem(\"loading\")\n }, null);\n };\n const renderIcon = () => {\n if (props.loading) {\n return renderLoadingIcon();\n }\n if (slots.icon) {\n return _createVNode(\"div\", {\n \"class\": bem(\"icon\")\n }, [slots.icon()]);\n }\n if (props.icon) {\n return _createVNode(Icon, {\n \"name\": props.icon,\n \"class\": bem(\"icon\"),\n \"classPrefix\": props.iconPrefix\n }, null);\n }\n };\n const renderText = () => {\n let text;\n if (props.loading) {\n text = props.loadingText;\n } else {\n text = slots.default ? slots.default() : props.text;\n }\n if (text) {\n return _createVNode(\"span\", {\n \"class\": bem(\"text\")\n }, [text]);\n }\n };\n const getStyle = () => {\n const {\n color,\n plain\n } = props;\n if (color) {\n const style = {\n color: plain ? color : \"white\"\n };\n if (!plain) {\n style.background = color;\n }\n if (color.includes(\"gradient\")) {\n style.border = 0;\n } else {\n style.borderColor = color;\n }\n return style;\n }\n };\n const onClick = (event) => {\n if (props.loading) {\n preventDefault(event);\n } else if (!props.disabled) {\n emit(\"click\", event);\n route();\n }\n };\n return () => {\n const {\n tag,\n type,\n size,\n block,\n round,\n plain,\n square,\n loading,\n disabled,\n hairline,\n nativeType,\n iconPosition\n } = props;\n const classes = [bem([type, size, {\n plain,\n block,\n round,\n square,\n loading,\n disabled,\n hairline\n }]), {\n [BORDER_SURROUND]: hairline\n }];\n return _createVNode(tag, {\n \"type\": nativeType,\n \"class\": classes,\n \"style\": getStyle(),\n \"disabled\": disabled,\n \"onClick\": onClick\n }, {\n default: () => [_createVNode(\"div\", {\n \"class\": bem(\"content\")\n }, [iconPosition === \"left\" && renderIcon(), renderText(), iconPosition === \"right\" && renderIcon()])]\n });\n };\n }\n});\nexport {\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _Button from \"./Button\";\nconst Button = withInstall(_Button);\nvar stdin_default = Button;\nexport {\n Button,\n stdin_default as default\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./index.vue?vue&type=style&index=1&id=58979163&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","import \"../../style/base.css\";\nimport \"../../badge/index.css\";\nimport \"../../icon/index.css\";\nimport \"../../cell/index.css\";\nimport \"../index.css\";\n","import {\n isObject,\n isPromise,\n isFunction,\n getRootScrollTop,\n setRootScrollTop\n} from \"../utils\";\nfunction isEmptyValue(value) {\n if (Array.isArray(value)) {\n return !value.length;\n }\n if (value === 0) {\n return false;\n }\n return !value;\n}\nfunction runSyncRule(value, rule) {\n if (rule.required && isEmptyValue(value)) {\n return false;\n }\n if (rule.pattern && !rule.pattern.test(String(value))) {\n return false;\n }\n return true;\n}\nfunction runRuleValidator(value, rule) {\n return new Promise((resolve) => {\n const returnVal = rule.validator(value, rule);\n if (isPromise(returnVal)) {\n returnVal.then(resolve);\n return;\n }\n resolve(returnVal);\n });\n}\nfunction getRuleMessage(value, rule) {\n const { message } = rule;\n if (isFunction(message)) {\n return message(value, rule);\n }\n return message || \"\";\n}\nfunction startComposing({ target }) {\n target.composing = true;\n}\nfunction endComposing({ target }) {\n if (target.composing) {\n target.composing = false;\n target.dispatchEvent(new Event(\"input\"));\n }\n}\nfunction resizeTextarea(input, autosize) {\n const scrollTop = getRootScrollTop();\n input.style.height = \"auto\";\n let height = input.scrollHeight;\n if (isObject(autosize)) {\n const { maxHeight, minHeight } = autosize;\n if (maxHeight !== void 0) {\n height = Math.min(height, maxHeight);\n }\n if (minHeight !== void 0) {\n height = Math.max(height, minHeight);\n }\n }\n if (height) {\n input.style.height = `${height}px`;\n setRootScrollTop(scrollTop);\n }\n}\nfunction mapInputType(type) {\n if (type === \"number\") {\n return {\n type: \"text\",\n inputmode: \"decimal\"\n };\n }\n if (type === \"digit\") {\n return {\n type: \"tel\",\n inputmode: \"numeric\"\n };\n }\n return { type };\n}\nfunction getStringLength(str) {\n return [...str].length;\n}\nfunction cutString(str, maxlength) {\n return [...str].slice(0, maxlength).join(\"\");\n}\nexport {\n cutString,\n endComposing,\n getRuleMessage,\n getStringLength,\n mapInputType,\n resizeTextarea,\n runRuleValidator,\n runSyncRule,\n startComposing\n};\n","import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode } from \"vue\";\nimport { ref, watch, provide, computed, nextTick, reactive, onMounted, defineComponent } from \"vue\";\nimport { isDef, extend, addUnit, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from \"../utils\";\nimport { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from \"./utils\";\nimport { cellSharedProps } from \"../cell/Cell\";\nimport { CUSTOM_FIELD_INJECTION_KEY, useParent } from \"@vant/use\";\nimport { useId } from \"../composables/use-id\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { Icon } from \"../icon\";\nimport { Cell } from \"../cell\";\nconst [name, bem] = createNamespace(\"field\");\nconst fieldSharedProps = {\n id: String,\n name: String,\n leftIcon: String,\n rightIcon: String,\n autofocus: Boolean,\n clearable: Boolean,\n maxlength: numericProp,\n formatter: Function,\n clearIcon: makeStringProp(\"clear\"),\n modelValue: makeNumericProp(\"\"),\n inputAlign: String,\n placeholder: String,\n autocomplete: String,\n errorMessage: String,\n clearTrigger: makeStringProp(\"focus\"),\n formatTrigger: makeStringProp(\"onChange\"),\n error: {\n type: Boolean,\n default: null\n },\n disabled: {\n type: Boolean,\n default: null\n },\n readonly: {\n type: Boolean,\n default: null\n }\n};\nconst fieldProps = extend({}, cellSharedProps, fieldSharedProps, {\n rows: numericProp,\n type: makeStringProp(\"text\"),\n rules: Array,\n autosize: [Boolean, Object],\n labelWidth: numericProp,\n labelClass: unknownProp,\n labelAlign: String,\n showWordLimit: Boolean,\n errorMessageAlign: String,\n colon: {\n type: Boolean,\n default: null\n }\n});\nvar stdin_default = defineComponent({\n name,\n props: fieldProps,\n emits: [\"blur\", \"focus\", \"clear\", \"keypress\", \"click-input\", \"click-left-icon\", \"click-right-icon\", \"update:modelValue\"],\n setup(props, {\n emit,\n slots\n }) {\n const id = useId();\n const state = reactive({\n focused: false,\n validateFailed: false,\n validateMessage: \"\"\n });\n const inputRef = ref();\n const customValue = ref();\n const {\n parent: form\n } = useParent(FORM_KEY);\n const getModelValue = () => {\n var _a;\n return String((_a = props.modelValue) != null ? _a : \"\");\n };\n const getProp = (key) => {\n if (isDef(props[key])) {\n return props[key];\n }\n if (form && isDef(form.props[key])) {\n return form.props[key];\n }\n };\n const showClear = computed(() => {\n const readonly = getProp(\"readonly\");\n if (props.clearable && !readonly) {\n const hasValue = getModelValue() !== \"\";\n const trigger = props.clearTrigger === \"always\" || props.clearTrigger === \"focus\" && state.focused;\n return hasValue && trigger;\n }\n return false;\n });\n const formValue = computed(() => {\n if (customValue.value && slots.input) {\n return customValue.value();\n }\n return props.modelValue;\n });\n const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {\n if (state.validateFailed) {\n return;\n }\n let {\n value\n } = formValue;\n if (rule.formatter) {\n value = rule.formatter(value, rule);\n }\n if (!runSyncRule(value, rule)) {\n state.validateFailed = true;\n state.validateMessage = getRuleMessage(value, rule);\n return;\n }\n if (rule.validator) {\n return runRuleValidator(value, rule).then((result) => {\n if (result && typeof result === \"string\") {\n state.validateFailed = true;\n state.validateMessage = result;\n } else if (result === false) {\n state.validateFailed = true;\n state.validateMessage = getRuleMessage(value, rule);\n }\n });\n }\n }), Promise.resolve());\n const resetValidation = () => {\n if (state.validateFailed) {\n state.validateFailed = false;\n state.validateMessage = \"\";\n }\n };\n const validate = (rules = props.rules) => new Promise((resolve) => {\n resetValidation();\n if (rules) {\n runRules(rules).then(() => {\n if (state.validateFailed) {\n resolve({\n name: props.name,\n message: state.validateMessage\n });\n } else {\n resolve();\n }\n });\n } else {\n resolve();\n }\n });\n const validateWithTrigger = (trigger) => {\n if (form && props.rules) {\n const defaultTrigger = form.props.validateTrigger === trigger;\n const rules = props.rules.filter((rule) => {\n if (rule.trigger) {\n return rule.trigger === trigger;\n }\n return defaultTrigger;\n });\n if (rules.length) {\n validate(rules);\n }\n }\n };\n const limitValueLength = (value) => {\n const {\n maxlength\n } = props;\n if (isDef(maxlength) && getStringLength(value) > maxlength) {\n const modelValue = getModelValue();\n if (modelValue && getStringLength(modelValue) === +maxlength) {\n return modelValue;\n }\n return cutString(value, +maxlength);\n }\n return value;\n };\n const updateValue = (value, trigger = \"onChange\") => {\n value = limitValueLength(value);\n if (props.type === \"number\" || props.type === \"digit\") {\n const isNumber = props.type === \"number\";\n value = formatNumber(value, isNumber, isNumber);\n }\n if (props.formatter && trigger === props.formatTrigger) {\n value = props.formatter(value);\n }\n if (inputRef.value && inputRef.value.value !== value) {\n inputRef.value.value = value;\n }\n if (value !== props.modelValue) {\n emit(\"update:modelValue\", value);\n }\n };\n const onInput = (event) => {\n if (!event.target.composing) {\n updateValue(event.target.value);\n }\n };\n const blur = () => {\n var _a;\n return (_a = inputRef.value) == null ? void 0 : _a.blur();\n };\n const focus = () => {\n var _a;\n return (_a = inputRef.value) == null ? void 0 : _a.focus();\n };\n const adjustTextareaSize = () => {\n const input = inputRef.value;\n if (props.type === \"textarea\" && props.autosize && input) {\n resizeTextarea(input, props.autosize);\n }\n };\n const onFocus = (event) => {\n state.focused = true;\n emit(\"focus\", event);\n nextTick(adjustTextareaSize);\n if (getProp(\"readonly\")) {\n blur();\n }\n };\n const onBlur = (event) => {\n if (getProp(\"readonly\")) {\n return;\n }\n state.focused = false;\n updateValue(getModelValue(), \"onBlur\");\n emit(\"blur\", event);\n validateWithTrigger(\"onBlur\");\n nextTick(adjustTextareaSize);\n resetScroll();\n };\n const onClickInput = (event) => emit(\"click-input\", event);\n const onClickLeftIcon = (event) => emit(\"click-left-icon\", event);\n const onClickRightIcon = (event) => emit(\"click-right-icon\", event);\n const onClear = (event) => {\n preventDefault(event);\n emit(\"update:modelValue\", \"\");\n emit(\"clear\", event);\n };\n const showError = computed(() => {\n if (typeof props.error === \"boolean\") {\n return props.error;\n }\n if (form && form.props.showError && state.validateFailed) {\n return true;\n }\n });\n const labelStyle = computed(() => {\n const labelWidth = getProp(\"labelWidth\");\n if (labelWidth) {\n return {\n width: addUnit(labelWidth)\n };\n }\n });\n const onKeypress = (event) => {\n const ENTER_CODE = 13;\n if (event.keyCode === ENTER_CODE) {\n const submitOnEnter = form && form.props.submitOnEnter;\n if (!submitOnEnter && props.type !== \"textarea\") {\n preventDefault(event);\n }\n if (props.type === \"search\") {\n blur();\n }\n }\n emit(\"keypress\", event);\n };\n const getInputId = () => props.id || `${id}-input`;\n const renderInput = () => {\n const controlClass = bem(\"control\", [getProp(\"inputAlign\"), {\n error: showError.value,\n custom: !!slots.input,\n \"min-height\": props.type === \"textarea\" && !props.autosize\n }]);\n if (slots.input) {\n return _createVNode(\"div\", {\n \"class\": controlClass,\n \"onClick\": onClickInput\n }, [slots.input()]);\n }\n const inputAttrs = {\n id: getInputId(),\n ref: inputRef,\n name: props.name,\n rows: props.rows !== void 0 ? +props.rows : void 0,\n class: controlClass,\n value: props.modelValue,\n disabled: getProp(\"disabled\"),\n readonly: getProp(\"readonly\"),\n autofocus: props.autofocus,\n placeholder: props.placeholder,\n autocomplete: props.autocomplete,\n \"aria-labelledby\": props.label ? `${id}-label` : void 0,\n onBlur,\n onFocus,\n onInput,\n onClick: onClickInput,\n onChange: endComposing,\n onKeypress,\n onCompositionend: endComposing,\n onCompositionstart: startComposing\n };\n if (props.type === \"textarea\") {\n return _createVNode(\"textarea\", inputAttrs, null);\n }\n return _createVNode(\"input\", _mergeProps(mapInputType(props.type), inputAttrs), null);\n };\n const renderLeftIcon = () => {\n const leftIconSlot = slots[\"left-icon\"];\n if (props.leftIcon || leftIconSlot) {\n return _createVNode(\"div\", {\n \"class\": bem(\"left-icon\"),\n \"onClick\": onClickLeftIcon\n }, [leftIconSlot ? leftIconSlot() : _createVNode(Icon, {\n \"name\": props.leftIcon,\n \"classPrefix\": props.iconPrefix\n }, null)]);\n }\n };\n const renderRightIcon = () => {\n const rightIconSlot = slots[\"right-icon\"];\n if (props.rightIcon || rightIconSlot) {\n return _createVNode(\"div\", {\n \"class\": bem(\"right-icon\"),\n \"onClick\": onClickRightIcon\n }, [rightIconSlot ? rightIconSlot() : _createVNode(Icon, {\n \"name\": props.rightIcon,\n \"classPrefix\": props.iconPrefix\n }, null)]);\n }\n };\n const renderWordLimit = () => {\n if (props.showWordLimit && props.maxlength) {\n const count = getStringLength(getModelValue());\n return _createVNode(\"div\", {\n \"class\": bem(\"word-limit\")\n }, [_createVNode(\"span\", {\n \"class\": bem(\"word-num\")\n }, [count]), _createTextVNode(\"/\"), props.maxlength]);\n }\n };\n const renderMessage = () => {\n if (form && form.props.showErrorMessage === false) {\n return;\n }\n const message = props.errorMessage || state.validateMessage;\n if (message) {\n const slot = slots[\"error-message\"];\n const errorMessageAlign = getProp(\"errorMessageAlign\");\n return _createVNode(\"div\", {\n \"class\": bem(\"error-message\", errorMessageAlign)\n }, [slot ? slot({\n message\n }) : message]);\n }\n };\n const renderLabel = () => {\n const colon = getProp(\"colon\") ? \":\" : \"\";\n if (slots.label) {\n return [slots.label(), colon];\n }\n if (props.label) {\n return _createVNode(\"label\", {\n \"id\": `${id}-label`,\n \"for\": getInputId()\n }, [props.label + colon]);\n }\n };\n const renderFieldBody = () => [_createVNode(\"div\", {\n \"class\": bem(\"body\")\n }, [renderInput(), showClear.value && _createVNode(Icon, {\n \"name\": props.clearIcon,\n \"class\": bem(\"clear\"),\n \"onTouchstart\": onClear\n }, null), renderRightIcon(), slots.button && _createVNode(\"div\", {\n \"class\": bem(\"button\")\n }, [slots.button()])]), renderWordLimit(), renderMessage()];\n useExpose({\n blur,\n focus,\n validate,\n formValue,\n resetValidation\n });\n provide(CUSTOM_FIELD_INJECTION_KEY, {\n customValue,\n resetValidation,\n validateWithTrigger\n });\n watch(() => props.modelValue, () => {\n updateValue(getModelValue());\n resetValidation();\n validateWithTrigger(\"onChange\");\n nextTick(adjustTextareaSize);\n });\n onMounted(() => {\n updateValue(getModelValue(), props.formatTrigger);\n nextTick(adjustTextareaSize);\n });\n return () => {\n const disabled = getProp(\"disabled\");\n const labelAlign = getProp(\"labelAlign\");\n const Label = renderLabel();\n const LeftIcon = renderLeftIcon();\n return _createVNode(Cell, {\n \"size\": props.size,\n \"icon\": props.leftIcon,\n \"class\": bem({\n error: showError.value,\n disabled,\n [`label-${labelAlign}`]: labelAlign\n }),\n \"center\": props.center,\n \"border\": props.border,\n \"isLink\": props.isLink,\n \"clickable\": props.clickable,\n \"titleStyle\": labelStyle.value,\n \"valueClass\": bem(\"value\"),\n \"titleClass\": [bem(\"label\", [labelAlign, {\n required: props.required\n }]), props.labelClass],\n \"arrowDirection\": props.arrowDirection\n }, {\n icon: LeftIcon ? () => LeftIcon : null,\n title: Label ? () => Label : null,\n value: renderFieldBody,\n extra: slots.extra\n });\n };\n }\n});\nexport {\n stdin_default as default,\n fieldSharedProps\n};\n","/*!\n * qrcode.vue v3.3.3\n * A Vue.js component to generate QRCode.\n * © 2017-2021 @scopewu(https://github.com/scopewu)\n * MIT License.\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue')) :\n typeof define === 'function' && define.amd ? define(['vue'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.QrcodeVue = factory(global.Vue));\n})(this, (function (vue) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation.\r\n\r\n Permission to use, copy, modify, and/or distribute this software for any\r\n purpose with or without fee is hereby granted.\r\n\r\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n PERFORMANCE OF THIS SOFTWARE.\r\n ***************************************************************************** */\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\n\n var mode$1 = {\n \tMODE_NUMBER :\t\t1 << 0,\n \tMODE_ALPHA_NUM : \t1 << 1,\n \tMODE_8BIT_BYTE : \t1 << 2,\n \tMODE_KANJI :\t\t1 << 3\n };\n\n var mode = mode$1;\n\n function QR8bitByte(data) {\n \tthis.mode = mode.MODE_8BIT_BYTE;\n \tthis.data = data;\n }\n\n QR8bitByte.prototype = {\n\n \tgetLength : function(buffer) {\n \t\treturn this.data.length;\n \t},\n \t\n \twrite : function(buffer) {\n \t\tfor (var i = 0; i < this.data.length; i++) {\n \t\t\t// not JIS ...\n \t\t\tbuffer.put(this.data.charCodeAt(i), 8);\n \t\t}\n \t}\n };\n\n var _8BitByte = QR8bitByte;\n\n var ErrorCorrectLevel = {\n \tL : 1,\n \tM : 0,\n \tQ : 3,\n \tH : 2\n };\n\n // ErrorCorrectLevel\n var ECL = ErrorCorrectLevel;\n\n function QRRSBlock(totalCount, dataCount) {\n \tthis.totalCount = totalCount;\n \tthis.dataCount = dataCount;\n }\n\n QRRSBlock.RS_BLOCK_TABLE = [\n\n \t// L\n \t// M\n \t// Q\n \t// H\n\n \t// 1\n \t[1, 26, 19],\n \t[1, 26, 16],\n \t[1, 26, 13],\n \t[1, 26, 9],\n \t\n \t// 2\n \t[1, 44, 34],\n \t[1, 44, 28],\n \t[1, 44, 22],\n \t[1, 44, 16],\n\n \t// 3\n \t[1, 70, 55],\n \t[1, 70, 44],\n \t[2, 35, 17],\n \t[2, 35, 13],\n\n \t// 4\t\t\n \t[1, 100, 80],\n \t[2, 50, 32],\n \t[2, 50, 24],\n \t[4, 25, 9],\n \t\n \t// 5\n \t[1, 134, 108],\n \t[2, 67, 43],\n \t[2, 33, 15, 2, 34, 16],\n \t[2, 33, 11, 2, 34, 12],\n \t\n \t// 6\n \t[2, 86, 68],\n \t[4, 43, 27],\n \t[4, 43, 19],\n \t[4, 43, 15],\n \t\n \t// 7\t\t\n \t[2, 98, 78],\n \t[4, 49, 31],\n \t[2, 32, 14, 4, 33, 15],\n \t[4, 39, 13, 1, 40, 14],\n \t\n \t// 8\n \t[2, 121, 97],\n \t[2, 60, 38, 2, 61, 39],\n \t[4, 40, 18, 2, 41, 19],\n \t[4, 40, 14, 2, 41, 15],\n \t\n \t// 9\n \t[2, 146, 116],\n \t[3, 58, 36, 2, 59, 37],\n \t[4, 36, 16, 4, 37, 17],\n \t[4, 36, 12, 4, 37, 13],\n \t\n \t// 10\t\t\n \t[2, 86, 68, 2, 87, 69],\n \t[4, 69, 43, 1, 70, 44],\n \t[6, 43, 19, 2, 44, 20],\n \t[6, 43, 15, 2, 44, 16],\n\n \t// 11\n \t[4, 101, 81],\n \t[1, 80, 50, 4, 81, 51],\n \t[4, 50, 22, 4, 51, 23],\n \t[3, 36, 12, 8, 37, 13],\n\n \t// 12\n \t[2, 116, 92, 2, 117, 93],\n \t[6, 58, 36, 2, 59, 37],\n \t[4, 46, 20, 6, 47, 21],\n \t[7, 42, 14, 4, 43, 15],\n\n \t// 13\n \t[4, 133, 107],\n \t[8, 59, 37, 1, 60, 38],\n \t[8, 44, 20, 4, 45, 21],\n \t[12, 33, 11, 4, 34, 12],\n\n \t// 14\n \t[3, 145, 115, 1, 146, 116],\n \t[4, 64, 40, 5, 65, 41],\n \t[11, 36, 16, 5, 37, 17],\n \t[11, 36, 12, 5, 37, 13],\n\n \t// 15\n \t[5, 109, 87, 1, 110, 88],\n \t[5, 65, 41, 5, 66, 42],\n \t[5, 54, 24, 7, 55, 25],\n \t[11, 36, 12],\n\n \t// 16\n \t[5, 122, 98, 1, 123, 99],\n \t[7, 73, 45, 3, 74, 46],\n \t[15, 43, 19, 2, 44, 20],\n \t[3, 45, 15, 13, 46, 16],\n\n \t// 17\n \t[1, 135, 107, 5, 136, 108],\n \t[10, 74, 46, 1, 75, 47],\n \t[1, 50, 22, 15, 51, 23],\n \t[2, 42, 14, 17, 43, 15],\n\n \t// 18\n \t[5, 150, 120, 1, 151, 121],\n \t[9, 69, 43, 4, 70, 44],\n \t[17, 50, 22, 1, 51, 23],\n \t[2, 42, 14, 19, 43, 15],\n\n \t// 19\n \t[3, 141, 113, 4, 142, 114],\n \t[3, 70, 44, 11, 71, 45],\n \t[17, 47, 21, 4, 48, 22],\n \t[9, 39, 13, 16, 40, 14],\n\n \t// 20\n \t[3, 135, 107, 5, 136, 108],\n \t[3, 67, 41, 13, 68, 42],\n \t[15, 54, 24, 5, 55, 25],\n \t[15, 43, 15, 10, 44, 16],\n\n \t// 21\n \t[4, 144, 116, 4, 145, 117],\n \t[17, 68, 42],\n \t[17, 50, 22, 6, 51, 23],\n \t[19, 46, 16, 6, 47, 17],\n\n \t// 22\n \t[2, 139, 111, 7, 140, 112],\n \t[17, 74, 46],\n \t[7, 54, 24, 16, 55, 25],\n \t[34, 37, 13],\n\n \t// 23\n \t[4, 151, 121, 5, 152, 122],\n \t[4, 75, 47, 14, 76, 48],\n \t[11, 54, 24, 14, 55, 25],\n \t[16, 45, 15, 14, 46, 16],\n\n \t// 24\n \t[6, 147, 117, 4, 148, 118],\n \t[6, 73, 45, 14, 74, 46],\n \t[11, 54, 24, 16, 55, 25],\n \t[30, 46, 16, 2, 47, 17],\n\n \t// 25\n \t[8, 132, 106, 4, 133, 107],\n \t[8, 75, 47, 13, 76, 48],\n \t[7, 54, 24, 22, 55, 25],\n \t[22, 45, 15, 13, 46, 16],\n\n \t// 26\n \t[10, 142, 114, 2, 143, 115],\n \t[19, 74, 46, 4, 75, 47],\n \t[28, 50, 22, 6, 51, 23],\n \t[33, 46, 16, 4, 47, 17],\n\n \t// 27\n \t[8, 152, 122, 4, 153, 123],\n \t[22, 73, 45, 3, 74, 46],\n \t[8, 53, 23, 26, 54, 24],\n \t[12, 45, 15, 28, 46, 16],\n\n \t// 28\n \t[3, 147, 117, 10, 148, 118],\n \t[3, 73, 45, 23, 74, 46],\n \t[4, 54, 24, 31, 55, 25],\n \t[11, 45, 15, 31, 46, 16],\n\n \t// 29\n \t[7, 146, 116, 7, 147, 117],\n \t[21, 73, 45, 7, 74, 46],\n \t[1, 53, 23, 37, 54, 24],\n \t[19, 45, 15, 26, 46, 16],\n\n \t// 30\n \t[5, 145, 115, 10, 146, 116],\n \t[19, 75, 47, 10, 76, 48],\n \t[15, 54, 24, 25, 55, 25],\n \t[23, 45, 15, 25, 46, 16],\n\n \t// 31\n \t[13, 145, 115, 3, 146, 116],\n \t[2, 74, 46, 29, 75, 47],\n \t[42, 54, 24, 1, 55, 25],\n \t[23, 45, 15, 28, 46, 16],\n\n \t// 32\n \t[17, 145, 115],\n \t[10, 74, 46, 23, 75, 47],\n \t[10, 54, 24, 35, 55, 25],\n \t[19, 45, 15, 35, 46, 16],\n\n \t// 33\n \t[17, 145, 115, 1, 146, 116],\n \t[14, 74, 46, 21, 75, 47],\n \t[29, 54, 24, 19, 55, 25],\n \t[11, 45, 15, 46, 46, 16],\n\n \t// 34\n \t[13, 145, 115, 6, 146, 116],\n \t[14, 74, 46, 23, 75, 47],\n \t[44, 54, 24, 7, 55, 25],\n \t[59, 46, 16, 1, 47, 17],\n\n \t// 35\n \t[12, 151, 121, 7, 152, 122],\n \t[12, 75, 47, 26, 76, 48],\n \t[39, 54, 24, 14, 55, 25],\n \t[22, 45, 15, 41, 46, 16],\n\n \t// 36\n \t[6, 151, 121, 14, 152, 122],\n \t[6, 75, 47, 34, 76, 48],\n \t[46, 54, 24, 10, 55, 25],\n \t[2, 45, 15, 64, 46, 16],\n\n \t// 37\n \t[17, 152, 122, 4, 153, 123],\n \t[29, 74, 46, 14, 75, 47],\n \t[49, 54, 24, 10, 55, 25],\n \t[24, 45, 15, 46, 46, 16],\n\n \t// 38\n \t[4, 152, 122, 18, 153, 123],\n \t[13, 74, 46, 32, 75, 47],\n \t[48, 54, 24, 14, 55, 25],\n \t[42, 45, 15, 32, 46, 16],\n\n \t// 39\n \t[20, 147, 117, 4, 148, 118],\n \t[40, 75, 47, 7, 76, 48],\n \t[43, 54, 24, 22, 55, 25],\n \t[10, 45, 15, 67, 46, 16],\n\n \t// 40\n \t[19, 148, 118, 6, 149, 119],\n \t[18, 75, 47, 31, 76, 48],\n \t[34, 54, 24, 34, 55, 25],\n \t[20, 45, 15, 61, 46, 16]\n ];\n\n QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) {\n \t\n \tvar rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);\n \t\n \tif (rsBlock == undefined) {\n \t\tthrow new Error(\"bad rs block @ typeNumber:\" + typeNumber + \"/errorCorrectLevel:\" + errorCorrectLevel);\n \t}\n\n \tvar length = rsBlock.length / 3;\n \t\n \tvar list = new Array();\n \t\n \tfor (var i = 0; i < length; i++) {\n\n \t\tvar count = rsBlock[i * 3 + 0];\n \t\tvar totalCount = rsBlock[i * 3 + 1];\n \t\tvar dataCount = rsBlock[i * 3 + 2];\n\n \t\tfor (var j = 0; j < count; j++) {\n \t\t\tlist.push(new QRRSBlock(totalCount, dataCount) );\t\n \t\t}\n \t}\n \t\n \treturn list;\n };\n\n QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) {\n\n \tswitch(errorCorrectLevel) {\n \tcase ECL.L :\n \t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];\n \tcase ECL.M :\n \t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];\n \tcase ECL.Q :\n \t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];\n \tcase ECL.H :\n \t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];\n \tdefault :\n \t\treturn undefined;\n \t}\n };\n\n var RSBlock$1 = QRRSBlock;\n\n function QRBitBuffer() {\n \tthis.buffer = new Array();\n \tthis.length = 0;\n }\n\n QRBitBuffer.prototype = {\n\n \tget : function(index) {\n \t\tvar bufIndex = Math.floor(index / 8);\n \t\treturn ( (this.buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;\n \t},\n \t\n \tput : function(num, length) {\n \t\tfor (var i = 0; i < length; i++) {\n \t\t\tthis.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);\n \t\t}\n \t},\n \t\n \tgetLengthInBits : function() {\n \t\treturn this.length;\n \t},\n \t\n \tputBit : function(bit) {\n \t\n \t\tvar bufIndex = Math.floor(this.length / 8);\n \t\tif (this.buffer.length <= bufIndex) {\n \t\t\tthis.buffer.push(0);\n \t\t}\n \t\n \t\tif (bit) {\n \t\t\tthis.buffer[bufIndex] |= (0x80 >>> (this.length % 8) );\n \t\t}\n \t\n \t\tthis.length++;\n \t}\n };\n\n var BitBuffer$1 = QRBitBuffer;\n\n var QRMath = {\n\n \tglog : function(n) {\n \t\n \t\tif (n < 1) {\n \t\t\tthrow new Error(\"glog(\" + n + \")\");\n \t\t}\n \t\t\n \t\treturn QRMath.LOG_TABLE[n];\n \t},\n \t\n \tgexp : function(n) {\n \t\n \t\twhile (n < 0) {\n \t\t\tn += 255;\n \t\t}\n \t\n \t\twhile (n >= 256) {\n \t\t\tn -= 255;\n \t\t}\n \t\n \t\treturn QRMath.EXP_TABLE[n];\n \t},\n \t\n \tEXP_TABLE : new Array(256),\n \t\n \tLOG_TABLE : new Array(256)\n\n };\n \t\n for (var i = 0; i < 8; i++) {\n \tQRMath.EXP_TABLE[i] = 1 << i;\n }\n for (var i = 8; i < 256; i++) {\n \tQRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4]\n \t\t^ QRMath.EXP_TABLE[i - 5]\n \t\t^ QRMath.EXP_TABLE[i - 6]\n \t\t^ QRMath.EXP_TABLE[i - 8];\n }\n for (var i = 0; i < 255; i++) {\n \tQRMath.LOG_TABLE[QRMath.EXP_TABLE[i] ] = i;\n }\n\n var math$2 = QRMath;\n\n var math$1 = math$2;\n\n function QRPolynomial(num, shift) {\n\n \tif (num.length == undefined) {\n \t\tthrow new Error(num.length + \"/\" + shift);\n \t}\n\n \tvar offset = 0;\n\n \twhile (offset < num.length && num[offset] == 0) {\n \t\toffset++;\n \t}\n\n \tthis.num = new Array(num.length - offset + shift);\n \tfor (var i = 0; i < num.length - offset; i++) {\n \t\tthis.num[i] = num[i + offset];\n \t}\n }\n\n QRPolynomial.prototype = {\n\n \tget : function(index) {\n \t\treturn this.num[index];\n \t},\n \t\n \tgetLength : function() {\n \t\treturn this.num.length;\n \t},\n \t\n \tmultiply : function(e) {\n \t\n \t\tvar num = new Array(this.getLength() + e.getLength() - 1);\n \t\n \t\tfor (var i = 0; i < this.getLength(); i++) {\n \t\t\tfor (var j = 0; j < e.getLength(); j++) {\n \t\t\t\tnum[i + j] ^= math$1.gexp(math$1.glog(this.get(i) ) + math$1.glog(e.get(j) ) );\n \t\t\t}\n \t\t}\n \t\n \t\treturn new QRPolynomial(num, 0);\n \t},\n \t\n \tmod : function(e) {\n \t\n \t\tif (this.getLength() - e.getLength() < 0) {\n \t\t\treturn this;\n \t\t}\n \t\n \t\tvar ratio = math$1.glog(this.get(0) ) - math$1.glog(e.get(0) );\n \t\n \t\tvar num = new Array(this.getLength() );\n \t\t\n \t\tfor (var i = 0; i < this.getLength(); i++) {\n \t\t\tnum[i] = this.get(i);\n \t\t}\n \t\t\n \t\tfor (var i = 0; i < e.getLength(); i++) {\n \t\t\tnum[i] ^= math$1.gexp(math$1.glog(e.get(i) ) + ratio);\n \t\t}\n \t\n \t\t// recursive call\n \t\treturn new QRPolynomial(num, 0).mod(e);\n \t}\n };\n\n var Polynomial$2 = QRPolynomial;\n\n var Mode = mode$1;\n var Polynomial$1 = Polynomial$2;\n var math = math$2;\n\n var QRMaskPattern = {\n \tPATTERN000 : 0,\n \tPATTERN001 : 1,\n \tPATTERN010 : 2,\n \tPATTERN011 : 3,\n \tPATTERN100 : 4,\n \tPATTERN101 : 5,\n \tPATTERN110 : 6,\n \tPATTERN111 : 7\n };\n\n var QRUtil = {\n\n PATTERN_POSITION_TABLE : [\n \t [],\n \t [6, 18],\n \t [6, 22],\n \t [6, 26],\n \t [6, 30],\n \t [6, 34],\n \t [6, 22, 38],\n \t [6, 24, 42],\n \t [6, 26, 46],\n \t [6, 28, 50],\n \t [6, 30, 54],\t\t\n \t [6, 32, 58],\n \t [6, 34, 62],\n \t [6, 26, 46, 66],\n \t [6, 26, 48, 70],\n \t [6, 26, 50, 74],\n \t [6, 30, 54, 78],\n \t [6, 30, 56, 82],\n \t [6, 30, 58, 86],\n \t [6, 34, 62, 90],\n \t [6, 28, 50, 72, 94],\n \t [6, 26, 50, 74, 98],\n \t [6, 30, 54, 78, 102],\n \t [6, 28, 54, 80, 106],\n \t [6, 32, 58, 84, 110],\n \t [6, 30, 58, 86, 114],\n \t [6, 34, 62, 90, 118],\n \t [6, 26, 50, 74, 98, 122],\n \t [6, 30, 54, 78, 102, 126],\n \t [6, 26, 52, 78, 104, 130],\n \t [6, 30, 56, 82, 108, 134],\n \t [6, 34, 60, 86, 112, 138],\n \t [6, 30, 58, 86, 114, 142],\n \t [6, 34, 62, 90, 118, 146],\n \t [6, 30, 54, 78, 102, 126, 150],\n \t [6, 24, 50, 76, 102, 128, 154],\n \t [6, 28, 54, 80, 106, 132, 158],\n \t [6, 32, 58, 84, 110, 136, 162],\n \t [6, 26, 54, 82, 110, 138, 166],\n \t [6, 30, 58, 86, 114, 142, 170]\n ],\n\n G15 : (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0),\n G18 : (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0),\n G15_MASK : (1 << 14) | (1 << 12) | (1 << 10)\t| (1 << 4) | (1 << 1),\n\n getBCHTypeInfo : function(data) {\n \t var d = data << 10;\n \t while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {\n \t\t d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) ) ); \t\n \t }\n \t return ( (data << 10) | d) ^ QRUtil.G15_MASK;\n },\n\n getBCHTypeNumber : function(data) {\n \t var d = data << 12;\n \t while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {\n \t\t d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) ) ); \t\n \t }\n \t return (data << 12) | d;\n },\n\n getBCHDigit : function(data) {\n\n \t var digit = 0;\n\n \t while (data != 0) {\n \t\t digit++;\n \t\t data >>>= 1;\n \t }\n\n \t return digit;\n },\n\n getPatternPosition : function(typeNumber) {\n \t return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];\n },\n\n getMask : function(maskPattern, i, j) {\n \t \n \t switch (maskPattern) {\n \t\t \n \t case QRMaskPattern.PATTERN000 : return (i + j) % 2 == 0;\n \t case QRMaskPattern.PATTERN001 : return i % 2 == 0;\n \t case QRMaskPattern.PATTERN010 : return j % 3 == 0;\n \t case QRMaskPattern.PATTERN011 : return (i + j) % 3 == 0;\n \t case QRMaskPattern.PATTERN100 : return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0;\n \t case QRMaskPattern.PATTERN101 : return (i * j) % 2 + (i * j) % 3 == 0;\n \t case QRMaskPattern.PATTERN110 : return ( (i * j) % 2 + (i * j) % 3) % 2 == 0;\n \t case QRMaskPattern.PATTERN111 : return ( (i * j) % 3 + (i + j) % 2) % 2 == 0;\n\n \t default :\n \t\t throw new Error(\"bad maskPattern:\" + maskPattern);\n \t }\n },\n\n getErrorCorrectPolynomial : function(errorCorrectLength) {\n\n \t var a = new Polynomial$1([1], 0);\n\n \t for (var i = 0; i < errorCorrectLength; i++) {\n \t\t a = a.multiply(new Polynomial$1([1, math.gexp(i)], 0) );\n \t }\n\n \t return a;\n },\n\n getLengthInBits : function(mode, type) {\n\n \t if (1 <= type && type < 10) {\n\n \t\t // 1 - 9\n\n \t\t switch(mode) {\n \t\t case Mode.MODE_NUMBER \t: return 10;\n \t\t case Mode.MODE_ALPHA_NUM \t: return 9;\n \t\t case Mode.MODE_8BIT_BYTE\t: return 8;\n \t\t case Mode.MODE_KANJI \t: return 8;\n \t\t default :\n \t\t\t throw new Error(\"mode:\" + mode);\n \t\t }\n\n \t } else if (type < 27) {\n\n \t\t // 10 - 26\n\n \t\t switch(mode) {\n \t\t case Mode.MODE_NUMBER \t: return 12;\n \t\t case Mode.MODE_ALPHA_NUM \t: return 11;\n \t\t case Mode.MODE_8BIT_BYTE\t: return 16;\n \t\t case Mode.MODE_KANJI \t: return 10;\n \t\t default :\n \t\t\t throw new Error(\"mode:\" + mode);\n \t\t }\n\n \t } else if (type < 41) {\n\n \t\t // 27 - 40\n\n \t\t switch(mode) {\n \t\t case Mode.MODE_NUMBER \t: return 14;\n \t\t case Mode.MODE_ALPHA_NUM\t: return 13;\n \t\t case Mode.MODE_8BIT_BYTE\t: return 16;\n \t\t case Mode.MODE_KANJI \t: return 12;\n \t\t default :\n \t\t\t throw new Error(\"mode:\" + mode);\n \t\t }\n\n \t } else {\n \t\t throw new Error(\"type:\" + type);\n \t }\n },\n\n getLostPoint : function(qrCode) {\n \t \n \t var moduleCount = qrCode.getModuleCount();\n \t \n \t var lostPoint = 0;\n \t \n \t // LEVEL1\n \t \n \t for (var row = 0; row < moduleCount; row++) {\n\n \t\t for (var col = 0; col < moduleCount; col++) {\n\n \t\t\t var sameCount = 0;\n \t\t\t var dark = qrCode.isDark(row, col);\n\n \t\t\t\tfor (var r = -1; r <= 1; r++) {\n\n \t\t\t\t if (row + r < 0 || moduleCount <= row + r) {\n \t\t\t\t\t continue;\n \t\t\t\t }\n\n \t\t\t\t for (var c = -1; c <= 1; c++) {\n\n \t\t\t\t\t if (col + c < 0 || moduleCount <= col + c) {\n \t\t\t\t\t\t continue;\n \t\t\t\t\t }\n\n \t\t\t\t\t if (r == 0 && c == 0) {\n \t\t\t\t\t\t continue;\n \t\t\t\t\t }\n\n \t\t\t\t\t if (dark == qrCode.isDark(row + r, col + c) ) {\n \t\t\t\t\t\t sameCount++;\n \t\t\t\t\t }\n \t\t\t\t }\n \t\t\t }\n\n \t\t\t if (sameCount > 5) {\n \t\t\t\t lostPoint += (3 + sameCount - 5);\n \t\t\t }\n \t\t }\n \t }\n\n \t // LEVEL2\n\n \t for (var row = 0; row < moduleCount - 1; row++) {\n \t\t for (var col = 0; col < moduleCount - 1; col++) {\n \t\t\t var count = 0;\n \t\t\t if (qrCode.isDark(row, col ) ) count++;\n \t\t\t if (qrCode.isDark(row + 1, col ) ) count++;\n \t\t\t if (qrCode.isDark(row, col + 1) ) count++;\n \t\t\t if (qrCode.isDark(row + 1, col + 1) ) count++;\n \t\t\t if (count == 0 || count == 4) {\n \t\t\t\t lostPoint += 3;\n \t\t\t }\n \t\t }\n \t }\n\n \t // LEVEL3\n\n \t for (var row = 0; row < moduleCount; row++) {\n \t\t for (var col = 0; col < moduleCount - 6; col++) {\n \t\t\t if (qrCode.isDark(row, col)\n \t\t\t\t\t && !qrCode.isDark(row, col + 1)\n \t\t\t\t\t && qrCode.isDark(row, col + 2)\n \t\t\t\t\t && qrCode.isDark(row, col + 3)\n \t\t\t\t\t && qrCode.isDark(row, col + 4)\n \t\t\t\t\t && !qrCode.isDark(row, col + 5)\n \t\t\t\t\t && qrCode.isDark(row, col + 6) ) {\n \t\t\t\t lostPoint += 40;\n \t\t\t }\n \t\t }\n \t }\n\n \t for (var col = 0; col < moduleCount; col++) {\n \t\t for (var row = 0; row < moduleCount - 6; row++) {\n \t\t\t if (qrCode.isDark(row, col)\n \t\t\t\t\t && !qrCode.isDark(row + 1, col)\n \t\t\t\t\t && qrCode.isDark(row + 2, col)\n \t\t\t\t\t && qrCode.isDark(row + 3, col)\n \t\t\t\t\t && qrCode.isDark(row + 4, col)\n \t\t\t\t\t && !qrCode.isDark(row + 5, col)\n \t\t\t\t\t && qrCode.isDark(row + 6, col) ) {\n \t\t\t\t lostPoint += 40;\n \t\t\t }\n \t\t }\n \t }\n\n \t // LEVEL4\n \t \n \t var darkCount = 0;\n\n \t for (var col = 0; col < moduleCount; col++) {\n \t\t for (var row = 0; row < moduleCount; row++) {\n \t\t\t if (qrCode.isDark(row, col) ) {\n \t\t\t\t darkCount++;\n \t\t\t }\n \t\t }\n \t }\n \t \n \t var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;\n \t lostPoint += ratio * 10;\n\n \t return lostPoint;\t\t\n }\n };\n\n var util$1 = QRUtil;\n\n var BitByte = _8BitByte;\n var RSBlock = RSBlock$1;\n var BitBuffer = BitBuffer$1;\n var util = util$1;\n var Polynomial = Polynomial$2;\n\n function QRCode$1(typeNumber, errorCorrectLevel) {\n \tthis.typeNumber = typeNumber;\n \tthis.errorCorrectLevel = errorCorrectLevel;\n \tthis.modules = null;\n \tthis.moduleCount = 0;\n \tthis.dataCache = null;\n \tthis.dataList = [];\n }\n\n // for client side minification\n var proto = QRCode$1.prototype;\n\n proto.addData = function(data) {\n \tvar newData = new BitByte(data);\n \tthis.dataList.push(newData);\n \tthis.dataCache = null;\n };\n\n proto.isDark = function(row, col) {\n \tif (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {\n \t\tthrow new Error(row + \",\" + col);\n \t}\n \treturn this.modules[row][col];\n };\n\n proto.getModuleCount = function() {\n \treturn this.moduleCount;\n };\n\n proto.make = function() {\n \t// Calculate automatically typeNumber if provided is < 1\n \tif (this.typeNumber < 1 ){\n \t\tvar typeNumber = 1;\n \t\tfor (typeNumber = 1; typeNumber < 40; typeNumber++) {\n \t\t\tvar rsBlocks = RSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel);\n\n \t\t\tvar buffer = new BitBuffer();\n \t\t\tvar totalDataCount = 0;\n \t\t\tfor (var i = 0; i < rsBlocks.length; i++) {\n \t\t\t\ttotalDataCount += rsBlocks[i].dataCount;\n \t\t\t}\n\n \t\t\tfor (var i = 0; i < this.dataList.length; i++) {\n \t\t\t\tvar data = this.dataList[i];\n \t\t\t\tbuffer.put(data.mode, 4);\n \t\t\t\tbuffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber) );\n \t\t\t\tdata.write(buffer);\n \t\t\t}\n \t\t\tif (buffer.getLengthInBits() <= totalDataCount * 8)\n \t\t\t\tbreak;\n \t\t}\n \t\tthis.typeNumber = typeNumber;\n \t}\n \tthis.makeImpl(false, this.getBestMaskPattern() );\n };\n\n proto.makeImpl = function(test, maskPattern) {\n \t\n \tthis.moduleCount = this.typeNumber * 4 + 17;\n \tthis.modules = new Array(this.moduleCount);\n \t\n \tfor (var row = 0; row < this.moduleCount; row++) {\n \t\t\n \t\tthis.modules[row] = new Array(this.moduleCount);\n \t\t\n \t\tfor (var col = 0; col < this.moduleCount; col++) {\n \t\t\tthis.modules[row][col] = null;//(col + row) % 3;\n \t\t}\n \t}\n\n \tthis.setupPositionProbePattern(0, 0);\n \tthis.setupPositionProbePattern(this.moduleCount - 7, 0);\n \tthis.setupPositionProbePattern(0, this.moduleCount - 7);\n \tthis.setupPositionAdjustPattern();\n \tthis.setupTimingPattern();\n \tthis.setupTypeInfo(test, maskPattern);\n \t\n \tif (this.typeNumber >= 7) {\n \t\tthis.setupTypeNumber(test);\n \t}\n\n \tif (this.dataCache == null) {\n \t\tthis.dataCache = QRCode$1.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);\n \t}\n\n \tthis.mapData(this.dataCache, maskPattern);\n };\n\n proto.setupPositionProbePattern = function(row, col) {\n \t\n \tfor (var r = -1; r <= 7; r++) {\n \t\t\n \t\tif (row + r <= -1 || this.moduleCount <= row + r) continue;\n \t\t\n \t\tfor (var c = -1; c <= 7; c++) {\n \t\t\t\n \t\t\tif (col + c <= -1 || this.moduleCount <= col + c) continue;\n \t\t\t\n \t\t\tif ( (0 <= r && r <= 6 && (c == 0 || c == 6) )\n \t\t\t\t\t|| (0 <= c && c <= 6 && (r == 0 || r == 6) )\n \t\t\t\t\t|| (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {\n \t\t\t\tthis.modules[row + r][col + c] = true;\n \t\t\t} else {\n \t\t\t\tthis.modules[row + r][col + c] = false;\n \t\t\t}\n \t\t}\t\t\n \t}\t\t\n };\n\n proto.getBestMaskPattern = function() {\n\n \tvar minLostPoint = 0;\n \tvar pattern = 0;\n\n \tfor (var i = 0; i < 8; i++) {\n \t\t\n \t\tthis.makeImpl(true, i);\n\n \t\tvar lostPoint = util.getLostPoint(this);\n\n \t\tif (i == 0 || minLostPoint > lostPoint) {\n \t\t\tminLostPoint = lostPoint;\n \t\t\tpattern = i;\n \t\t}\n \t}\n\n \treturn pattern;\n };\n\n proto.createMovieClip = function(target_mc, instance_name, depth) {\n\n \tvar qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);\n \tvar cs = 1;\n\n \tthis.make();\n\n \tfor (var row = 0; row < this.modules.length; row++) {\n \t\t\n \t\tvar y = row * cs;\n \t\t\n \t\tfor (var col = 0; col < this.modules[row].length; col++) {\n\n \t\t\tvar x = col * cs;\n \t\t\tvar dark = this.modules[row][col];\n \t\t\n \t\t\tif (dark) {\n \t\t\t\tqr_mc.beginFill(0, 100);\n \t\t\t\tqr_mc.moveTo(x, y);\n \t\t\t\tqr_mc.lineTo(x + cs, y);\n \t\t\t\tqr_mc.lineTo(x + cs, y + cs);\n \t\t\t\tqr_mc.lineTo(x, y + cs);\n \t\t\t\tqr_mc.endFill();\n \t\t\t}\n \t\t}\n \t}\n \t\n \treturn qr_mc;\n };\n\n proto.setupTimingPattern = function() {\n \t\n \tfor (var r = 8; r < this.moduleCount - 8; r++) {\n \t\tif (this.modules[r][6] != null) {\n \t\t\tcontinue;\n \t\t}\n \t\tthis.modules[r][6] = (r % 2 == 0);\n \t}\n\n \tfor (var c = 8; c < this.moduleCount - 8; c++) {\n \t\tif (this.modules[6][c] != null) {\n \t\t\tcontinue;\n \t\t}\n \t\tthis.modules[6][c] = (c % 2 == 0);\n \t}\n };\n\n proto.setupPositionAdjustPattern = function() {\n\n \tvar pos = util.getPatternPosition(this.typeNumber);\n \t\n \tfor (var i = 0; i < pos.length; i++) {\n \t\n \t\tfor (var j = 0; j < pos.length; j++) {\n \t\t\n \t\t\tvar row = pos[i];\n \t\t\tvar col = pos[j];\n \t\t\t\n \t\t\tif (this.modules[row][col] != null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfor (var r = -2; r <= 2; r++) {\n \t\t\t\n \t\t\t\tfor (var c = -2; c <= 2; c++) {\n \t\t\t\t\n \t\t\t\t\tif (r == -2 || r == 2 || c == -2 || c == 2\n \t\t\t\t\t\t\t|| (r == 0 && c == 0) ) {\n \t\t\t\t\t\tthis.modules[row + r][col + c] = true;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthis.modules[row + r][col + c] = false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n };\n\n proto.setupTypeNumber = function(test) {\n\n \tvar bits = util.getBCHTypeNumber(this.typeNumber);\n\n \tfor (var i = 0; i < 18; i++) {\n \t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n \t\tthis.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;\n \t}\n\n \tfor (var i = 0; i < 18; i++) {\n \t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n \t\tthis.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;\n \t}\n };\n\n proto.setupTypeInfo = function(test, maskPattern) {\n\n \tvar data = (this.errorCorrectLevel << 3) | maskPattern;\n \tvar bits = util.getBCHTypeInfo(data);\n\n \t// vertical\t\t\n \tfor (var i = 0; i < 15; i++) {\n\n \t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n\n \t\tif (i < 6) {\n \t\t\tthis.modules[i][8] = mod;\n \t\t} else if (i < 8) {\n \t\t\tthis.modules[i + 1][8] = mod;\n \t\t} else {\n \t\t\tthis.modules[this.moduleCount - 15 + i][8] = mod;\n \t\t}\n \t}\n\n \t// horizontal\n \tfor (var i = 0; i < 15; i++) {\n\n \t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n \t\t\n \t\tif (i < 8) {\n \t\t\tthis.modules[8][this.moduleCount - i - 1] = mod;\n \t\t} else if (i < 9) {\n \t\t\tthis.modules[8][15 - i - 1 + 1] = mod;\n \t\t} else {\n \t\t\tthis.modules[8][15 - i - 1] = mod;\n \t\t}\n \t}\n\n \t// fixed module\n \tthis.modules[this.moduleCount - 8][8] = (!test);\n };\n\n proto.mapData = function(data, maskPattern) {\n \t\n \tvar inc = -1;\n \tvar row = this.moduleCount - 1;\n \tvar bitIndex = 7;\n \tvar byteIndex = 0;\n \t\n \tfor (var col = this.moduleCount - 1; col > 0; col -= 2) {\n\n \t\tif (col == 6) col--;\n\n \t\twhile (true) {\n\n \t\t\tfor (var c = 0; c < 2; c++) {\n \t\t\t\t\n \t\t\t\tif (this.modules[row][col - c] == null) {\n \t\t\t\t\t\n \t\t\t\t\tvar dark = false;\n\n \t\t\t\t\tif (byteIndex < data.length) {\n \t\t\t\t\t\tdark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);\n \t\t\t\t\t}\n\n \t\t\t\t\tvar mask = util.getMask(maskPattern, row, col - c);\n\n \t\t\t\t\tif (mask) {\n \t\t\t\t\t\tdark = !dark;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tthis.modules[row][col - c] = dark;\n \t\t\t\t\tbitIndex--;\n\n \t\t\t\t\tif (bitIndex == -1) {\n \t\t\t\t\t\tbyteIndex++;\n \t\t\t\t\t\tbitIndex = 7;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\t\t\t\t\n \t\t\trow += inc;\n\n \t\t\tif (row < 0 || this.moduleCount <= row) {\n \t\t\t\trow -= inc;\n \t\t\t\tinc = -inc;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n };\n\n QRCode$1.PAD0 = 0xEC;\n QRCode$1.PAD1 = 0x11;\n\n QRCode$1.createData = function(typeNumber, errorCorrectLevel, dataList) {\n \t\n \tvar rsBlocks = RSBlock.getRSBlocks(typeNumber, errorCorrectLevel);\n \t\n \tvar buffer = new BitBuffer();\n \t\n \tfor (var i = 0; i < dataList.length; i++) {\n \t\tvar data = dataList[i];\n \t\tbuffer.put(data.mode, 4);\n \t\tbuffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber) );\n \t\tdata.write(buffer);\n \t}\n\n \t// calc num max data.\n \tvar totalDataCount = 0;\n \tfor (var i = 0; i < rsBlocks.length; i++) {\n \t\ttotalDataCount += rsBlocks[i].dataCount;\n \t}\n\n \tif (buffer.getLengthInBits() > totalDataCount * 8) {\n \t\tthrow new Error(\"code length overflow. (\"\n \t\t\t+ buffer.getLengthInBits()\n \t\t\t+ \">\"\n \t\t\t+ totalDataCount * 8\n \t\t\t+ \")\");\n \t}\n\n \t// end code\n \tif (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {\n \t\tbuffer.put(0, 4);\n \t}\n\n \t// padding\n \twhile (buffer.getLengthInBits() % 8 != 0) {\n \t\tbuffer.putBit(false);\n \t}\n\n \t// padding\n \twhile (true) {\n \t\t\n \t\tif (buffer.getLengthInBits() >= totalDataCount * 8) {\n \t\t\tbreak;\n \t\t}\n \t\tbuffer.put(QRCode$1.PAD0, 8);\n \t\t\n \t\tif (buffer.getLengthInBits() >= totalDataCount * 8) {\n \t\t\tbreak;\n \t\t}\n \t\tbuffer.put(QRCode$1.PAD1, 8);\n \t}\n\n \treturn QRCode$1.createBytes(buffer, rsBlocks);\n };\n\n QRCode$1.createBytes = function(buffer, rsBlocks) {\n\n \tvar offset = 0;\n \t\n \tvar maxDcCount = 0;\n \tvar maxEcCount = 0;\n \t\n \tvar dcdata = new Array(rsBlocks.length);\n \tvar ecdata = new Array(rsBlocks.length);\n \t\n \tfor (var r = 0; r < rsBlocks.length; r++) {\n\n \t\tvar dcCount = rsBlocks[r].dataCount;\n \t\tvar ecCount = rsBlocks[r].totalCount - dcCount;\n\n \t\tmaxDcCount = Math.max(maxDcCount, dcCount);\n \t\tmaxEcCount = Math.max(maxEcCount, ecCount);\n \t\t\n \t\tdcdata[r] = new Array(dcCount);\n \t\t\n \t\tfor (var i = 0; i < dcdata[r].length; i++) {\n \t\t\tdcdata[r][i] = 0xff & buffer.buffer[i + offset];\n \t\t}\n \t\toffset += dcCount;\n \t\t\n \t\tvar rsPoly = util.getErrorCorrectPolynomial(ecCount);\n \t\tvar rawPoly = new Polynomial(dcdata[r], rsPoly.getLength() - 1);\n\n \t\tvar modPoly = rawPoly.mod(rsPoly);\n \t\tecdata[r] = new Array(rsPoly.getLength() - 1);\n \t\tfor (var i = 0; i < ecdata[r].length; i++) {\n var modIndex = i + modPoly.getLength() - ecdata[r].length;\n \t\t\tecdata[r][i] = (modIndex >= 0)? modPoly.get(modIndex) : 0;\n \t\t}\n\n \t}\n \t\n \tvar totalCodeCount = 0;\n \tfor (var i = 0; i < rsBlocks.length; i++) {\n \t\ttotalCodeCount += rsBlocks[i].totalCount;\n \t}\n\n \tvar data = new Array(totalCodeCount);\n \tvar index = 0;\n\n \tfor (var i = 0; i < maxDcCount; i++) {\n \t\tfor (var r = 0; r < rsBlocks.length; r++) {\n \t\t\tif (i < dcdata[r].length) {\n \t\t\t\tdata[index++] = dcdata[r][i];\n \t\t\t}\n \t\t}\n \t}\n\n \tfor (var i = 0; i < maxEcCount; i++) {\n \t\tfor (var r = 0; r < rsBlocks.length; r++) {\n \t\t\tif (i < ecdata[r].length) {\n \t\t\t\tdata[index++] = ecdata[r][i];\n \t\t\t}\n \t\t}\n \t}\n\n \treturn data;\n };\n\n var QRCode_1 = QRCode$1;\n\n var defaultErrorCorrectLevel = 'H';\r\n // Thanks the `qrcode.react`\r\n var SUPPORTS_PATH2D = (function () {\r\n try {\r\n new Path2D().addPath(new Path2D());\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n return true;\r\n })();\r\n function QRCode(data, level) {\r\n var errorCorrectLevel = ErrorCorrectLevel[level];\r\n // We'll use type===-1 to force QRCode to automatically pick the best type\r\n var qrcode = new QRCode_1(-1, errorCorrectLevel);\r\n qrcode.addData(toUTF8String(data));\r\n qrcode.make();\r\n return qrcode;\r\n }\r\n function validErrorCorrectLevel(level) {\r\n return level in ErrorCorrectLevel;\r\n }\r\n /**\r\n * Encode UTF16 to UTF8.\r\n * See: http://jonisalonen.com/2012/from-utf-16-to-utf-8-in-javascript/\r\n * @param str {string}\r\n * @returns {string}\r\n */\r\n function toUTF8String(str) {\r\n var utf8Str = '';\r\n for (var i = 0; i < str.length; i++) {\r\n var charCode = str.charCodeAt(i);\r\n if (charCode < 0x0080) {\r\n utf8Str += String.fromCharCode(charCode);\r\n }\r\n else if (charCode < 0x0800) {\r\n utf8Str += String.fromCharCode(0xc0 | (charCode >> 6));\r\n utf8Str += String.fromCharCode(0x80 | (charCode & 0x3f));\r\n }\r\n else if (charCode < 0xd800 || charCode >= 0xe000) {\r\n utf8Str += String.fromCharCode(0xe0 | (charCode >> 12));\r\n utf8Str += String.fromCharCode(0x80 | ((charCode >> 6) & 0x3f));\r\n utf8Str += String.fromCharCode(0x80 | (charCode & 0x3f));\r\n }\r\n else {\r\n // surrogate pair\r\n i++;\r\n // UTF-16 encodes 0x10000-0x10FFFF by\r\n // subtracting 0x10000 and splitting the\r\n // 20 bits of 0x0-0xFFFFF into two halves\r\n charCode =\r\n 0x10000 + (((charCode & 0x3ff) << 10) | (str.charCodeAt(i) & 0x3ff));\r\n utf8Str += String.fromCharCode(0xf0 | (charCode >> 18));\r\n utf8Str += String.fromCharCode(0x80 | ((charCode >> 12) & 0x3f));\r\n utf8Str += String.fromCharCode(0x80 | ((charCode >> 6) & 0x3f));\r\n utf8Str += String.fromCharCode(0x80 | (charCode & 0x3f));\r\n }\r\n }\r\n return utf8Str;\r\n }\r\n function generatePath(modules, margin) {\r\n if (margin === void 0) { margin = 0; }\r\n var ops = [];\r\n modules.forEach(function (row, y) {\r\n var start = null;\r\n row.forEach(function (cell, x) {\r\n if (!cell && start !== null) {\r\n // M0 0h7v1H0z injects the space with the move and drops the comma,\r\n // saving a char per operation\r\n ops.push(\"M\" + (start + margin) + \" \" + (y + margin) + \"h\" + (x - start) + \"v1H\" + (start + margin) + \"z\");\r\n start = null;\r\n return;\r\n }\r\n // end of row, clean up or skip\r\n if (x === row.length - 1) {\r\n if (!cell) {\r\n // We would have closed the op above already so this can only mean\r\n // 2+ light modules in a row.\r\n return;\r\n }\r\n if (start === null) {\r\n // Just a single dark module.\r\n ops.push(\"M\" + (x + margin) + \",\" + (y + margin) + \" h1v1H\" + (x + margin) + \"z\");\r\n }\r\n else {\r\n // Otherwise finish the current line.\r\n ops.push(\"M\" + (start + margin) + \",\" + (y + margin) + \" h\" + (x + 1 - start) + \"v1H\" + (start + margin) + \"z\");\r\n }\r\n return;\r\n }\r\n if (cell && start === null) {\r\n start = x;\r\n }\r\n });\r\n });\r\n return ops.join('');\r\n }\r\n var QRCodeProps = {\r\n value: {\r\n type: String,\r\n required: true,\r\n \"default\": '',\r\n },\r\n size: {\r\n type: Number,\r\n \"default\": 100,\r\n },\r\n level: {\r\n type: String,\r\n \"default\": defaultErrorCorrectLevel,\r\n validator: function (l) { return validErrorCorrectLevel(l); },\r\n },\r\n background: {\r\n type: String,\r\n \"default\": '#fff',\r\n },\r\n foreground: {\r\n type: String,\r\n \"default\": '#000',\r\n },\r\n margin: {\r\n type: Number,\r\n required: false,\r\n \"default\": 0,\r\n },\r\n };\r\n var QRCodeVueProps = __assign(__assign({}, QRCodeProps), { renderAs: {\r\n type: String,\r\n required: false,\r\n \"default\": 'canvas',\r\n validator: function (as) { return ['canvas', 'svg'].indexOf(as) > -1; },\r\n } });\r\n var QRCodeSvg = vue.defineComponent({\r\n name: 'QRCodeSvg',\r\n props: QRCodeProps,\r\n setup: function (props) {\r\n var numCells = vue.ref(0);\r\n var fgPath = vue.ref('');\r\n var generate = function () {\r\n var value = props.value, level = props.level, margin = props.margin;\r\n var cells = QRCode(value, level).modules;\r\n numCells.value = cells.length + margin * 2;\r\n // Drawing strategy: instead of a rect per module, we're going to create a\r\n // single path for the dark modules and layer that on top of a light rect,\r\n // for a total of 2 DOM nodes. We pay a bit more in string concat but that's\r\n // way faster than DOM ops.\r\n // For level 1, 441 nodes -> 2\r\n // For level 40, 31329 -> 2\r\n fgPath.value = generatePath(cells, margin);\r\n };\r\n generate();\r\n vue.onUpdated(generate);\r\n return function () { return vue.h('svg', {\r\n width: props.size,\r\n height: props.size,\r\n 'shape-rendering': \"crispEdges\",\r\n xmlns: 'http://www.w3.org/2000/svg',\r\n viewBox: \"0 0 \" + numCells.value + \" \" + numCells.value,\r\n }, [\r\n vue.h('path', {\r\n fill: props.background,\r\n d: \"M0,0 h\" + numCells.value + \"v\" + numCells.value + \"H0z\",\r\n }),\r\n vue.h('path', { fill: props.foreground, d: fgPath.value }),\r\n ]); };\r\n },\r\n });\r\n var QRCodeCanvas = vue.defineComponent({\r\n name: 'QRCodeCanvas',\r\n props: QRCodeProps,\r\n setup: function (props) {\r\n var canvasEl = vue.ref(null);\r\n var generate = function () {\r\n var value = props.value, level = props.level, size = props.size, margin = props.margin, background = props.background, foreground = props.foreground;\r\n var cells = QRCode(value, level).modules;\r\n var numCells = cells.length + margin * 2;\r\n var canvas = canvasEl.value;\r\n if (!canvas) {\r\n return;\r\n }\r\n var ctx = canvas.getContext('2d');\r\n if (!ctx) {\r\n return;\r\n }\r\n var devicePixelRatio = window.devicePixelRatio || 1;\r\n var scale = (size / numCells) * devicePixelRatio;\r\n canvas.height = canvas.width = size * devicePixelRatio;\r\n ctx.scale(scale, scale);\r\n ctx.fillStyle = background;\r\n ctx.fillRect(0, 0, numCells, numCells);\r\n ctx.fillStyle = foreground;\r\n if (SUPPORTS_PATH2D) {\r\n ctx.fill(new Path2D(generatePath(cells, margin)));\r\n }\r\n else {\r\n cells.forEach(function (row, rdx) {\r\n row.forEach(function (cell, cdx) {\r\n if (cell) {\r\n ctx.fillRect(cdx + margin, rdx + margin, 1, 1);\r\n }\r\n });\r\n });\r\n }\r\n };\r\n vue.onMounted(generate);\r\n vue.onUpdated(generate);\r\n return function () { return vue.h('canvas', {\r\n ref: canvasEl,\r\n style: { width: props.size + \"px\", height: props.size + \"px\" },\r\n }); };\r\n },\r\n });\r\n var QrcodeVue = vue.defineComponent({\r\n name: 'Qrcode',\r\n render: function () {\r\n var _a = this.$props, renderAs = _a.renderAs, value = _a.value, _size = _a.size, _margin = _a.margin, _level = _a.level, background = _a.background, foreground = _a.foreground;\r\n var size = _size >>> 0;\r\n var margin = _margin >>> 0;\r\n var level = validErrorCorrectLevel(_level) ? _level : defaultErrorCorrectLevel;\r\n return vue.h(renderAs === 'svg' ? QRCodeSvg : QRCodeCanvas, { value: value, size: size, margin: margin, level: level, background: background, foreground: foreground });\r\n },\r\n props: QRCodeVueProps,\r\n });\n\n return QrcodeVue;\n\n}));\n"],"sourceRoot":""}
|