{"version":3,"sources":["webpack:///./assets/img/logo.png","webpack:///./app/mobile/components/JWPush.vue?787b","webpack:///./app/desktop/components/JWPush.vue?7f7a","webpack:///./app/mobile/components/JWPush.vue?b63e","webpack:///./app/desktop/components/JWPush.vue?9f3e","webpack:///./app/desktop/components/JWPush.vue","webpack:///./app/mobile/components/JWPush.vue","webpack:///./app/mobile/components/JWPush.vue?61cb","webpack:///./app/desktop/components/JWPush.vue?5e9b","webpack:///./app/mobile/components/JWPush.vue?ca71","webpack:///./app/desktop/components/JWPush.vue?40a1"],"names":["module","exports","name","data","approval","show","methods","_objectSpread","mapActions","changeDialog","this","yes","_this","setTimeout","window","MTpushInterface","getWebPermission","_this$store","userId","store","getters","id","cookieFingerprintVal","$cookies","get","localStorage","setItem","concat","init","_this2","_asyncToGenerator","regeneratorRuntime","mark","_callee","_this2$store","now","tomorrow","wrap","_context","prev","next","tool","getLocalStorage","jiguangSw","$dayjs","tz","add","startOf","setLocalStorage","showNextPopup","stop","watch","immediate","handler","_this3","_callee2","_context2","mixins","_vm","_c","_self","attrs","directives","rawName","value","expression","staticClass","style","zIndex","require","_v","on","_m"],"mappings":"gFAAAA,EAAOC,QAAU,IAA0B,8B,uBCC3CD,EAAOC,QAAU,CAAC,C,uBCAlBD,EAAOC,QAAU,CAAC,C,oCCDlB,O,oCCAA,O,kFCAA,I,qnBCIe,ICJsP,EDItP,CACbC,KAAM,SACNC,KAAI,WACF,MAAO,CACLC,SAAU,KACVC,MAAM,EAEV,EACAC,QAAOC,IAAA,GACFC,YAAW,SAAU,CAAC,mBAAiB,IAC1CC,aAAY,WACVC,KAAKL,MAAQK,KAAKL,IACpB,EACAM,IAAG,WAAG,IAAAC,EAAA,KACJF,KAAKD,eAELI,YAAW,WAET,GAAiB,WADCC,OAAOC,gBAAgBC,mBACb,KAAAC,EACtBC,EAAmB,QAAbD,EAAGL,EAAKO,aAAK,IAAAF,GAA6B,QAA7BA,EAAVA,EAAYG,QAAQ,2BAAmB,IAAAH,OAAA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AqB,CAACP,EAAG,MAAM,CAACO,YAAY,OAAOL,MAAM,CAAC,IAAMQ,EAAQ,MAA0B,IAAM,MAAMX,EAAIY,GAAG,KAAKX,EAAG,OAAO,CAACO,YAAY,iCAAiCK,GAAG,CAAC,MAAQb,EAAIjD,gBAAgBiD,EAAIY,GAAG,KAAKX,EAAG,MAAM,CAACO,YAAY,SAAS,CAACR,EAAIY,GAAG,8BAA8BZ,EAAIY,GAAG,KAAKZ,EAAIc,GAAG,GAAGd,EAAIY,GAAG,KAAKX,EAAG,MAAM,CAACO,YAAY,MAAMK,GAAG,CAAC,MAAQb,EAAI/C,MAAM,CAAC+C,EAAIY,GAAG,YACrnB,GACsB,CAAC,WAAY,IAAIZ,EAAI,KAAKC,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACO,YAAY,WAAW,CAACP,EAAG,MAAM,CAACO,YAAY,QAAQ,CAACR,EAAIY,GAAG,uBAAuBZ,EAAIY,GAAG,KAAKX,EAAG,MAAM,CAACO,YAAY,QAAQ,CAACR,EAAIY,GAAG,0BACxN,IKSE,EACA,KACA,WACA,OAIa,Y","file":"296.js?v=1793776739851&xbeta=b","sourcesContent":["module.exports = __webpack_public_path__ + \"assets/img/logo.9ec2eb1e.png\";","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","export * from \"-!../../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--5-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??ref--5-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--5-oneOf-1-3!../../../node_modules/sass-resources-loader/lib/loader.js??ref--5-oneOf-1-4!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=style&index=0&id=06869680&prod&scoped=true&lang=less\"","export * from \"-!../../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--5-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??ref--5-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--5-oneOf-1-3!../../../node_modules/sass-resources-loader/lib/loader.js??ref--5-oneOf-1-4!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=style&index=0&id=233910de&prod&scoped=true&lang=less\"","\nimport JWPush from \"@@/app/mobile/components/JWPush.vue\";\n\nexport default {\n  mixins: [JWPush],\n};\n","\nimport jiguangSw from \"@@/scripts/jiguangSw\";\nimport { mapActions } from \"vuex\";\n\nexport default {\n  name: \"JWPush\",\n  data() {\n    return {\n      approval: null,\n      show: false,\n    };\n  },\n  methods: {\n    ...mapActions(\"popoup\", [\"showNextPopup\"]),\n    changeDialog() {\n      this.show = !this.show;\n    },\n    yes() {\n      this.changeDialog();\n      // this.approval();\n      setTimeout(() => {\n        const pushState = window.MTpushInterface.getWebPermission();\n        if (pushState == \"granted\") {\n          let userId = this.store?.getters[\"user/getUserInfo\"]?.id;\n          let cookieFingerprintVal = this.$cookies.get(\"fingerprintVal\");\n          localStorage.setItem(`${userId || cookieFingerprintVal}_jiguang_push_opened`, 1);\n        }\n      }, 1000);\n    },\n    async init() {\n      let userId = this.store?.getters[\"user/getUserInfo\"]?.id;\n      let cookieFingerprintVal = this.$cookies.get(\"fingerprintVal\");\n      // const hasAppval = localStorage.getItem(`${userId || cookieFingerprintVal}_jiguang_push_opened`) == 1;\n      const todayShowed = this.tool.getLocalStorage(\"JWPushRecord\") == \"showed\";\n\n      if ((process.env.NODE_ENV === \"production\" || process.env.NODE_ENV === \"release\") && !todayShowed) {\n        await jiguangSw(userId, cookieFingerprintVal, \".jw-container .jw-container-main .yes\");\n        const pushState = window.MTpushInterface.getWebPermission();\n        if (pushState != \"granted\") {\n          this.changeDialog();\n          let now = this.$dayjs().tz(\"America/Los_Angeles\");\n          let tomorrow = now.add(1, \"day\").startOf(\"day\");\n          this.tool.setLocalStorage(\"JWPushRecord\", \"showed\", (tomorrow - now) / 1000 / 24 / 60 / 60);\n        } else {\n          this.showNextPopup();\n        }\n      } else {\n        this.showNextPopup();\n      }\n    },\n  },\n  watch: {\n    \"$route.name\": {\n      immediate: true,\n      async handler() {\n        if (process.client) {\n          await this.init();\n        }\n      },\n    },\n  },\n};\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=script&lang=js\"","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JWPush.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./JWPush.vue?vue&type=template&id=06869680&scoped=true\"\nimport script from \"./JWPush.vue?vue&type=script&lang=js\"\nexport * from \"./JWPush.vue?vue&type=script&lang=js\"\nimport style0 from \"./JWPush.vue?vue&type=style&index=0&id=06869680&prod&scoped=true&lang=less\"\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  \"06869680\",\n  null\n  \n)\n\nexport default component.exports","import { render, staticRenderFns } from \"./JWPush.vue?vue&type=template&id=233910de&scoped=true\"\nimport script from \"./JWPush.vue?vue&type=script&lang=js\"\nexport * from \"./JWPush.vue?vue&type=script&lang=js\"\nimport style0 from \"./JWPush.vue?vue&type=style&index=0&id=233910de&prod&scoped=true&lang=less\"\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  \"233910de\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}