1 |
- {"version":3,"sources":["webpack:///./src/views/product/product-apply-bill.vue?bdc6","webpack:///./src/assets/current.png","webpack:///./src/views/product/product-apply-bill.vue","webpack:///src/views/product/product-apply-bill.vue","webpack:///./src/views/product/product-apply-bill.vue?1771","webpack:///./src/views/product/product-apply-bill.vue?1ab6","webpack:///./src/assets/return.png"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","attrs","require","on","$event","$router","back","_v","info","order_item","cover","_s","order_no","price_total","staticStyle","stopPropagation","push","_l","bill_type_list","item","class","current","bill_info","type","id","title","_m","directives","name","rawName","value","header","expression","domProps","target","composing","$set","identify_number","email","remark","submit","staticRenderFns","data","mounted","beforeRouteEnter","next","vm","localStorage","methods","getBillType","BillService","getOrderDetail","OrderService","order_id","key","msg","validate","setTimeout","component"],"mappings":"kHAAA,W,qBCAAA,EAAOC,QAAU,koE,yCCAjB,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaC,MAAM,CAAC,IAAMC,EAAQ,QAAuB,IAAM,IAAIC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,QAAQC,WAAWR,EAAG,IAAI,CAACE,YAAY,gBAAgB,CAACJ,EAAIW,GAAG,cAAcT,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQC,MAAM,CAAC,IAAML,EAAIY,KAAKC,WAAab,EAAIY,KAAKC,WAAW,GAAGC,MAAQ,GAAG,IAAM,MAAMZ,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACJ,EAAIW,GAAG,SAASX,EAAIe,GAAGf,EAAIY,KAAKI,aAAad,EAAG,MAAM,CA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from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-apply-bill.vue?vue&type=style&index=0&id=f1fecc1c&prod&lang=scss&scoped=true&\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABgdJREFUWEfNmG+MXFUZxp/nzLbFnXvXlkIUEYO4tJ3ZEvaD0aRqi1qNGI1ioayGNtu5sw1/qkRUaCnRJWDZqigGDKS9d7bUFCwgxhCNRKUUBBJjTIXdO6UsDVEE/AftzJ2p3TL3MXemK7uz9+7s0H7omU9z7/u+5/c+55z3vDPEKTZ4ivHgbQEtzQfvqkkfN2CvwPMIvTNKTOBhQgcR4i8S9vg7rNfaTXj2QIMy2b8FqwBcJWAFAdNishDAXgj3+O+zHsIgo+8tx6yALhgor6iFvAvQ0kZEjkt6huTTMDgAhW80HpsFkM6XuIzAMkBzjxOMGmLDiGs/3oqoJVDGKd9E4GY0FHld5FDNhMMHtnX9e6bgS67RQh6t5CjdAGAhwFDUYNG1b5nJLxHo3H6dlk5VhgX1RcEA3FGtHbvlpR0LDrXKcvL7c/vfmN9p5twE6uv1pIgHSocP9b/84DlH4uIkAvU45fsF9EGqGNOxdsTtfLgdkGbbpQPVS8KwthOARXL3qGv1zRook69spsJb6zBIXTRSSP/pRGAmfBfnKh9MMdwTQUn4drEwffmmKZRxyssJ7AEIQ3PZiSozTal8+Uuh+GD0PGX0iee223sn20wFGpTJ/DXYR+ICgD/0Pesbs1JmUI0SMMujnXWC2wFdB3DEPyd94WS/KUA9ufIqEQ9F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ZLmgNBMGYu8Lx2s0zbfS4CZasLS00c/kdhNgARh/uGn9H2hm7k0fbApowjjo7AFsIpQAcEs0PUpCbVKcm/Oq//6E8haj1mC8gJLXZd7umLVPLPdRMvmSgusyEtZ8A6D3+7k0Rf6T4NKgXCLwePVfUI4vnS1pG4kMAOur25D4q3DDqdT3Vai+2/Cn9VgAx45S/QJorJa0kECmWOATUAPweMHcXvc5fxrUfb2vJkvZFqoMXgegVcB7B43/H6DCBgxD21d60Ht+/k4mFNSmTNhRqJfbJeX/KAf0PjwJ6Q+zXuOQAAAAASUVORK5CYII=\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"header-wrap\"},[_c('div',{staticClass:\"header\"},[_c('img',{staticClass:\"return-img\",attrs:{\"src\":require(\"@/assets/return.png\"),\"alt\":\"\"},on:{\"click\":function($event){return _vm.$router.back()}}}),_c('p',{staticClass:\"header-title\"},[_vm._v(\"申请开票\")])])]),_c('div',{staticClass:\"card goods\"},[_c('img',{staticClass:\"cover\",attrs:{\"src\":_vm.info.order_item ? _vm.info.order_item[0].cover : '',\"alt\":\"\"}}),_c('div',{staticClass:\"info\"},[_c('div',{staticClass:\"item\"},[_vm._v(\"订单编号 \"+_vm._s(_vm.info.order_no))]),_c('div',{staticClass:\"item\"},[_vm._v(\"\\n 开票金额 \"),_c('span',{staticClass:\"price\"},[_c('span',{staticClass:\"small\"},[_vm._v(\"¥\")]),_vm._v(\" \"+_vm._s(_vm.info.price_total))])])])]),_c('div',{staticClass:\"invoice card\"},[_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label bolder\",staticStyle:{\"font-size\":\"14px\"}},[_vm._v(\"发票类型\")]),_c('div',{staticClass:\"value tips\",on:{\"click\":function($event){$event.stopPropagation();return _vm.$router.push('/activity_ticket_select')}}},[_vm._v(\"\\n 获取搞一下汽车电子发票抬头\\n \")])]),_c('div',{staticClass:\"type-list\"},_vm._l((_vm.bill_type_list),function(item){return _c('div',{staticClass:\"type-item\",class:{ current: _vm.bill_info.type == item.id },on:{\"click\":function($event){_vm.bill_info.type = item.id}}},[_vm._v(\"\\n \"+_vm._s(item.title)+\"\\n \")])}),0),_vm._m(0),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label require\"},[_vm._v(\"单位名称\")]),_c('div',{staticClass:\"value\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bill_info.header),expression:\"bill_info.header\"}],attrs:{\"type\":\"text\",\"placeholder\":\"填写需要开具发票的企业名称\"},domProps:{\"value\":(_vm.bill_info.header)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.bill_info, \"header\", $event.target.value)}}})])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label require\"},[_vm._v(\"纳税人识别号\")]),_c('div',{staticClass:\"value\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bill_info.identify_number),expression:\"bill_info.identify_number\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入纳税人识别号\"},domProps:{\"value\":(_vm.bill_info.identify_number)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.bill_info, \"identify_number\", $event.target.value)}}})])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label require\"},[_vm._v(\"邮箱\")]),_c('div',{staticClass:\"value\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bill_info.email),expression:\"bill_info.email\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入邮箱\"},domProps:{\"value\":(_vm.bill_info.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.bill_info, \"email\", $event.target.value)}}})])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"},[_vm._v(\"备注\")]),_c('div',{staticClass:\"value\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bill_info.remark),expression:\"bill_info.remark\"}],attrs:{\"type\":\"text\",\"placeholder\":\"选填,限制300字\"},domProps:{\"value\":(_vm.bill_info.remark)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.bill_info, \"remark\", $event.target.value)}}})])])]),_c('div',{staticClass:\"footer\"},[_c('div',{staticClass:\"btn\",on:{\"click\":_vm.submit}},[_vm._v(\"提交申请\")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label bolder\"},[_vm._v(\"发票抬头\")]),_c('div',{staticClass:\"value tips\",staticStyle:{\"font-size\":\"13px\"}},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/current.png\"),\"alt\":\"\"}}),_vm._v(\"公司\\n \")])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"wrap\">\r\n <div class=\"header-wrap\">\r\n <div class=\"header\">\r\n <img\r\n src=\"@/assets/return.png\"\r\n class=\"return-img\"\r\n @click=\"$router.back()\"\r\n alt=\"\"\r\n />\r\n <p class=\"header-title\">申请开票</p>\r\n </div>\r\n </div>\r\n <div class=\"card goods\">\r\n <img\r\n class=\"cover\"\r\n :src=\"info.order_item ? info.order_item[0].cover : ''\"\r\n alt=\"\"\r\n />\r\n <div class=\"info\">\r\n <div class=\"item\">订单编号 {{ info.order_no }}</div>\r\n <div class=\"item\">\r\n 开票金额 <span class=\"price\"\r\n ><span class=\"small\">¥</span> {{ info.price_total }}</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"invoice card\">\r\n <div class=\"item\">\r\n <div class=\"label bolder\" style=\"font-size: 14px\">发票类型</div>\r\n <div\r\n class=\"value tips\"\r\n @click.stop=\"$router.push('/activity_ticket_select')\"\r\n >\r\n 获取搞一下汽车电子发票抬头\r\n </div>\r\n </div>\r\n <div class=\"type-list\">\r\n <div\r\n class=\"type-item\"\r\n v-for=\"item in bill_type_list\"\r\n :class=\"{ current: bill_info.type == item.id }\"\r\n @click=\"bill_info.type = item.id\"\r\n >\r\n {{ item.title }}\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label bolder\">发票抬头</div>\r\n <div class=\"value tips\" style=\"font-size: 13px\">\r\n <img class=\"icon\" src=\"@/assets/current.png\" alt=\"\" />公司\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label require\">单位名称</div>\r\n <div class=\"value\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"填写需要开具发票的企业名称\"\r\n v-model=\"bill_info.header\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label require\">纳税人识别号</div>\r\n <div class=\"value\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"请输入纳税人识别号\"\r\n v-model=\"bill_info.identify_number\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label require\">邮箱</div>\r\n <div class=\"value\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"请输入邮箱\"\r\n v-model=\"bill_info.email\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label\">备注</div>\r\n <div class=\"value\">\r\n <textarea\r\n type=\"text\"\r\n placeholder=\"选填,限制300字\"\r\n v-model=\"bill_info.remark\"\r\n ></textarea>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"footer\">\r\n <div class=\"btn\" @click=\"submit\">提交申请</div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { OrderService, BillService } from \"@/common/service.js\";\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n bill_info: {\r\n // 发票\r\n type: \"\", // 发票类型\r\n header: \"\", // 单位名称\r\n identify_number: \"\", // 纳税人识别号\r\n email: \"\", // 邮箱\r\n remark: \"\", // 备注\r\n },\r\n bill_type_list: [],\r\n };\r\n },\r\n mounted() {\r\n this.info.id = this.$route.query.order_id;\r\n this.getBillType();\r\n this.getOrderDetail();\r\n },\r\n beforeRouteEnter(_, from, next) {\r\n next((vm) => {\r\n if (from.path === \"/activity_ticket_select\") {\r\n // 选择发票抬头返回\r\n const bill = JSON.parse(localStorage.getItem(\"bill\"));\r\n vm.bill_info = { ...vm.bill_info, ...bill };\r\n localStorage.removeItem(\"bill\");\r\n }\r\n });\r\n },\r\n methods: {\r\n // 获取发票类型\r\n getBillType() {\r\n BillService.getBillType().then(({ data }) => {\r\n this.bill_type_list = data.list;\r\n });\r\n },\r\n // 获取订单详情\r\n getOrderDetail() {\r\n OrderService.getOrderDetail({ order_id: this.info.id }).then(\r\n ({ data }) => {\r\n this.info = data.detail;\r\n }\r\n );\r\n },\r\n // 提交申请\r\n submit() {\r\n let invoice_rules = [\r\n { key: \"type\", msg: \"请选择发票类型\" },\r\n { key: \"header\", msg: \"请填写单位名称\" },\r\n { key: \"identify_number\", msg: \"请填写纳税人识别号\" },\r\n { key: \"email\", msg: \"请填写邮箱\" },\r\n ],\r\n validate = invoice_rules.find((item) => !this.bill_info[item.key]);\r\n if (validate) {\r\n return this.$toast(validate.msg);\r\n }\r\n OrderService.applyBill({\r\n order_id: this.info.id,\r\n ...this.bill_info,\r\n }).then(({ msg }) => {\r\n this.$toast(msg);\r\n setTimeout(() => {\r\n this.$router.back();\r\n }, 1000);\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.wrap {\r\n width: 100%;\r\n min-height: calc(100vh - 42px);\r\n display: flex;\r\n flex-direction: column;\r\n margin: 42px 0 0;\r\n padding-bottom: 65px;\r\n box-sizing: border-box;\r\n background: #f4f4f4;\r\n .header-wrap {\r\n width: 100%;\r\n height: 42px;\r\n display: flex;\r\n flex-direction: column;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n z-index: 500;\r\n background-color: #ffffff;\r\n .header {\r\n width: 100%;\r\n height: 44px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n background-color: #ffffff;\r\n z-index: 999;\r\n position: relative;\r\n box-sizing: border-box;\r\n .return-img {\r\n position: absolute;\r\n left: 15px;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n width: 20px;\r\n z-index: 99999;\r\n }\r\n .header-title {\r\n width: 100%;\r\n text-align: center;\r\n color: #222222;\r\n font-size: 18px;\r\n font-weight: bold;\r\n position: relative;\r\n }\r\n .header-btn {\r\n color: #222222;\r\n font-size: 14px;\r\n position: absolute;\r\n padding: 0 12px;\r\n right: 0;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n }\r\n }\r\n }\r\n .card {\r\n width: calc(100% - 20px);\r\n background: #ffffff;\r\n border-radius: 10px;\r\n box-sizing: border-box;\r\n padding: 15px 10px;\r\n margin: 10px 10px 0;\r\n }\r\n .goods {\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\r\n .cover {\r\n width: 60px;\r\n height: 60px;\r\n border-radius: 6px;\r\n }\r\n .info {\r\n height: 60px;\r\n margin-left: 10px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-around;\r\n .item {\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #222222;\r\n .price {\r\n color: #ff6700;\r\n }\r\n .small {\r\n font-size: 10px;\r\n }\r\n }\r\n }\r\n }\r\n .invoice {\r\n padding-top: 0;\r\n .item {\r\n height: 20px;\r\n margin-top: 15px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n .label {\r\n font-size: 13px;\r\n font-weight: 400;\r\n color: #222222;\r\n width: 110px;\r\n }\r\n .value {\r\n width: calc(100% - 110px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n .icon {\r\n width: 18px;\r\n height: 18px;\r\n margin-right: 3px;\r\n }\r\n textarea,\r\n input {\r\n height: 20px;\r\n width: 100%;\r\n font-size: 13px;\r\n font-weight: 400;\r\n color: #222222;\r\n text-align: right;\r\n resize: none;\r\n }\r\n textarea::placeholder,\r\n input::placeholder {\r\n font-size: 13px;\r\n font-weight: 400;\r\n color: #999999;\r\n text-align: right;\r\n }\r\n }\r\n .bolder {\r\n font-weight: 500;\r\n }\r\n .require::after {\r\n content: \"*\";\r\n color: #ff2828;\r\n }\r\n .tips {\r\n font-size: 12px;\r\n font-weight: 400;\r\n color: #2a63f3;\r\n }\r\n }\r\n .type-list {\r\n width: 100%;\r\n .type-item {\r\n margin-top: 10px;\r\n width: 100%;\r\n box-sizing: border-box;\r\n border-radius: 4px;\r\n border: 1px solid #c8c8c8;\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #444444;\r\n text-align: center;\r\n line-height: 40px;\r\n }\r\n .current {\r\n border: 1px solid #2a63f3;\r\n color: #2a63f3;\r\n }\r\n }\r\n }\r\n .footer {\r\n position: fixed;\r\n width: 100%;\r\n height: 80px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n box-sizing: border-box;\r\n padding: 10px 10px 0;\r\n background-color: white;\r\n display: flex;\r\n justify-content: center;\r\n .btn {\r\n width: 100%;\r\n height: 44px;\r\n background: #2a63f3;\r\n border-radius: 22px;\r\n line-height: 44px;\r\n text-align: center;\r\n font-size: 18px;\r\n font-weight: 500;\r\n color: #ffffff;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-apply-bill.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-apply-bill.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./product-apply-bill.vue?vue&type=template&id=f1fecc1c&scoped=true&\"\nimport script from \"./product-apply-bill.vue?vue&type=script&lang=js&\"\nexport * from \"./product-apply-bill.vue?vue&type=script&lang=js&\"\nimport style0 from \"./product-apply-bill.vue?vue&type=style&index=0&id=f1fecc1c&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f1fecc1c\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII=\""],"sourceRoot":""}
|