{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\AnchorWrapper.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\AnchorWrapper.vue","mtime":1675232038543},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n  props: {\n    anchors: Array\n  },\n  data: function data() {\n    return {\n      array: []\n    };\n  },\n  computed: {\n    anchorAry: function anchorAry() {\n      var _this = this;\n\n      if (this.array && this.array.length > 0) {\n        return this.array;\n      }\n\n      this.anchors && this.anchors.forEach(function (item) {\n        _this.array.push(Object.assign({\n          selected: false\n        }, item));\n      });\n      return this.array;\n    }\n  },\n  mounted: function mounted() {\n    var _this2 = this;\n\n    this.$route.hash && this.updateTarget(this.$route.hash);\n    this.$router.afterEach(function (to, from) {\n      to.hash && _this2.updateTarget(to.hash);\n    });\n  },\n  methods: {\n    wrapperClick: function wrapperClick(e) {\n      e.target.hash && this.updateTarget(e.target.hash);\n    },\n    updateTarget: function updateTarget(t) {\n      if (!t || t.constructor != String) {\n        return;\n      }\n\n      var index = t.lastIndexOf(\"#\");\n\n      if (index != -1) {\n        t = t.substr(index + 1);\n      }\n\n      this.anchorAry.forEach(function (item) {\n        if (item.alias == t) {\n          item.selected = true;\n        } else {\n          item.selected = false;\n        }\n      });\n    },\n    genHref: function genHref(anchor) {\n      if (this.$router.mode == \"history\") {\n        return \"#\" + anchor;\n      }\n\n      return \"/#\" + this.$route.path + \"#\" + anchor;\n    }\n  }\n};",null]}