{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-resize-sensor/src/resize-sensor.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-resize-sensor/src/resize-sensor.vue","mtime":1509913592000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n\r\n\"use strict\";\r\n\r\nexport default {\r\n\r\n\t// thanks to https://github.com/marcj/css-element-queries\r\n\tprops: {\r\n\t\tinitial: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t}\r\n\t},\r\n\tdata: function() {\r\n\t\treturn {\r\n\t\t\tsize: {\r\n\t\t\t\twidth: -1,\r\n\t\t\t\theight: -1\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\treset: function() {\r\n\r\n\t\t\tvar expand = this.$el.firstChild;\r\n\t\t\tvar shrink = this.$el.lastChild;\r\n\t\t\texpand.scrollLeft = 100000;\r\n\t\t\texpand.scrollTop = 100000;\r\n\t\t\tshrink.scrollLeft = 100000;\r\n\t\t\tshrink.scrollTop = 100000;\r\n\t\t},\r\n\t\tupdate: function() {\r\n\t\t\t\r\n\t\t\tthis.size.width = this.$el.offsetWidth;\r\n\t\t\tthis.size.height = this.$el.offsetHeight;\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tsize: {\r\n\t\t\tdeep: true,\r\n\t\t\thandler: function(size) {\r\n\t\t\t\t\r\n\t\t\t\tthis.reset();\r\n\t\t\t\tthis.$emit('resize', { width: this.size.width, height: this.size.height });\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\trender: function(create) {\r\n\t\t\r\n\t\tvar style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';\r\n\t\tvar styleChild = 'position: absolute; left: 0; top: 0;';\r\n\r\n\t\treturn create('div', {\r\n\t\t\tstyle: style + 'animation-name: resizeSensorVisibility;',\r\n\t\t\ton: {\r\n\t\t\t\t'~animationstart': this.update\r\n\t\t\t}\r\n\t\t},[\r\n\t\t\tcreate('div', {\r\n\t\t\t\tstyle: style,\r\n\t\t\t\ton: {\r\n\t\t\t\t\tscroll: this.update\r\n\t\t\t\t}\r\n\t\t\t}, [\r\n\t\t\t\tcreate('div', {\r\n\t\t\t\t\tstyle: styleChild + 'width: 100000px; height: 100000px;'\r\n\t\t\t\t})\r\n\t\t\t]),\r\n\t\t\tcreate('div', {\r\n\t\t\t\tstyle: style,\r\n\t\t\t\ton: {\r\n\t\t\t\t\tscroll: this.update\r\n\t\t\t\t}\r\n\t\t\t}, [\r\n\t\t\t\tcreate('div', {\r\n\t\t\t\t\tstyle: styleChild + 'width: 200%; height: 200%;'\r\n\t\t\t\t})\r\n\t\t\t]),\r\n\t\t]);\r\n\t},\r\n\tbeforeDestroy: function() {\r\n\t\t\r\n\t\tthis.$emit('resize', { width: 0, height: 0 });\r\n\t\tthis.$emit('resizeSensorBeforeDestroy');\r\n\t},\r\n\tmounted: function() {\r\n\r\n\t\tif ( this.initial === true )\r\n\t\t\tthis.$nextTick(this.update);\r\n\t\t\r\n\t\tif ( this.$el.offsetParent !== this.$el.parentNode )\r\n\t\t\tthis.$el.parentNode.style.position = 'relative';\r\n\r\n\t\tif ( 'attachEvent' in this.$el && !('AnimationEvent' in window) ) {\r\n\r\n\t\t\tvar onresizeHandler = function() {\r\n\r\n\t\t\t\tthis.update();\r\n\t\t\t\tremoveOnresizeEvent();\r\n\t\t\t}.bind(this);\r\n\t\t\r\n\t\t\tvar removeOnresizeEvent = function() {\r\n\t\t\t\t\r\n\t\t\t\tthis.$el.detachEvent('onresize', onresizeHandler);\r\n\t\t\t\tthis.$off('resizeSensorBeforeDestroy', removeOnresizeEvent);\r\n\t\t\t}.bind(this);\r\n\t\t\t\r\n\t\t\tthis.$el.attachEvent('onresize', onresizeHandler);\r\n\t\t\tthis.$on('resizeSensorBeforeDestroy', removeOnresizeEvent);\r\n\t\t\tthis.reset();\r\n\t\t}\r\n\t}\r\n}\r\n\r\n",null]}