{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/js/pages/tech-hybrid/article-1.js","webpack:///./src/js/pages/tech-hybrid-article-1.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","57","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","Vue","use","VueRx","Rx","$","document","ready","console","log","el","props","clientWidth","body","showContent","animateContent","options","offset","top","left","right","bottom","threshold","once","playAnimate","mounted","this","$subscribeTo","Observable","fromEvent","debounceTime","distinctUntilChanged","onResize","beforeDestroy","computed","isMobile","methods","close","gaev","$emit","onAnimateLoaded","$el","querySelector","map","onScroll","inViewChanged","getBoundingClientRect","width","height","intersection","innerWidth","innerHeight","bool","onMoreClick","open"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,E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KAAKM,WAKTC,cAlCyB,WAmCvBP,KAAKZ,aAAc,GAErBoB,SAAU,CACRC,SADQ,WAGN,OADwBT,KAAhBd,aACc,MAG1BwB,QAAS,CACPJ,SADO,WAELN,KAAKd,YAAcN,SAASO,KAAKD,aAEnCyB,MAJO,WAKLX,KAAKY,KAAK,uBACVZ,KAAKa,MAAM,UAEbC,gBARO,WAQW,WAChBhC,QAAQC,IAAI,sBADI,IAERgC,EAAQf,KAARe,IAER,GADAf,KAAKX,eAAiBW,KAAKe,IAAIC,cAAc,oBACzChB,KAAKH,KAGP,OAFAG,KAAKH,MAAO,OACZG,KAAKF,aAAc,GAGrBE,KAAKC,aACHvB,IAAGwB,WAAWC,UAAUY,EAAK,UAC1BE,KAAI,kBAAM,EAAKC,cACfd,aAAa,KACbC,uBACHL,KAAKmB,gBAGTD,SAzBO,WAyBI,IACD5B,EAA4BU,KAA5BV,QADC,EAC2BU,KAAnBX,eAQE+B,wBANjB5B,EAHO,EAGPA,IACAC,EAJO,EAIPA,KACAC,EALO,EAKPA,MACAC,EANO,EAMPA,OACA0B,EAPO,EAOPA,MACAC,EARO,EAQPA,OAEIC,EACC5B,EADD4B,EAEE7B,EAFF6B,EAGGnD,OAAOoD,WAAa/B,EAHvB8B,EAIInD,OAAOqD,YAAcjC,EAGzBI,EACDN,EAAQM,UAAYyB,EADnBzB,EAEDN,EAAQM,UAAY0B,EAGzB,OACEC,EAAmBjC,EAAQC,OAAOC,IAAMI,GACrC2B,EAAoBjC,EAAQC,OAAOE,KAAOG,GAC1C2B,EAAqBjC,EAAQC,OAAOG,MAAQE,GAC5C2B,EAAsBjC,EAAQC,OAAOI,OAASC,GAGrDuB,cAtDO,SAsDOO,GAEPA,IACD1B,KAAKH,OACTG,KAAKH,KAAO6B,EAGZ1B,KAAKF,aAAc,KAErB6B,YA/DO,WAiELvD,OAAOwD,KAAK,yD","file":"js/techHybridArticle1.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t57: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([1062,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import '~/sass/pages/tech-hybrid-1.scss';\r\nimport Vue from 'vue';\r\nimport Rx from 'rxjs/Rx';\r\nimport VueRx from 'vue-rx';\r\n\r\n// import AArticle1pc from './article1-pc';\r\n// import AArticle1mb from './article1-mb';\r\n\r\nVue.use(VueRx, Rx);\r\n\r\nexport default () => {\r\n const article1Vm = new Vue({\r\n el: '#article1',\r\n props: [],\r\n\r\n data() {\r\n return {\r\n clientWidth: document.body.clientWidth,\r\n showContent: false,\r\n animateContent: null,\r\n options: {\r\n offset: {\r\n top: 0,\r\n left: 0,\r\n right: 0,\r\n bottom: 0,\r\n },\r\n threshold: 0.5,\r\n },\r\n once: false,\r\n playAnimate: false,\r\n };\r\n },\r\n\r\n mounted() {\r\n this.showContent = true;\r\n this.$subscribeTo(\r\n Rx.Observable.fromEvent(window, 'resize')\r\n .debounceTime(100)\r\n .distinctUntilChanged(),\r\n this.onResize,\r\n );\r\n // AArticle1pc();\r\n // AArticle1mb();\r\n },\r\n beforeDestroy() {\r\n this.showContent = false;\r\n },\r\n computed: {\r\n isMobile() {\r\n const { clientWidth } = this;\r\n return clientWidth <= 960;\r\n },\r\n },\r\n methods: {\r\n onResize() {\r\n this.clientWidth = document.body.clientWidth;\r\n },\r\n close() {\r\n this.gaev('btn_article_1_close');\r\n this.$emit('close');\r\n },\r\n onAnimateLoaded() {\r\n console.log('執行 onAnimateLoaded');\r\n const { $el } = this;\r\n this.animateContent = this.$el.querySelector('.animate_content');\r\n if (this.once) {\r\n this.once = false;\r\n this.playAnimate = false;\r\n return;\r\n }\r\n this.$subscribeTo(\r\n Rx.Observable.fromEvent($el, 'scroll')\r\n .map(() => this.onScroll())\r\n .debounceTime(100)\r\n .distinctUntilChanged(),\r\n this.inViewChanged,\r\n );\r\n },\r\n onScroll() {\r\n const { options, animateContent } = this;\r\n const {\r\n top,\r\n left,\r\n right,\r\n bottom,\r\n width,\r\n height,\r\n } = animateContent.getBoundingClientRect();\r\n const intersection = {\r\n top: bottom,\r\n left: right,\r\n right: window.innerWidth - left,\r\n bottom: window.innerHeight - top,\r\n };\r\n\r\n const threshold = {\r\n x: options.threshold * width,\r\n y: options.threshold * height,\r\n };\r\n\r\n return (\r\n intersection.top > options.offset.top + threshold.y\r\n && intersection.left > options.offset.left + threshold.x\r\n && intersection.right > options.offset.right + threshold.x\r\n && intersection.bottom > options.offset.bottom + threshold.y\r\n );\r\n },\r\n inViewChanged(bool) {\r\n // check inview once\r\n if (!bool) return;\r\n if (this.once) return;\r\n this.once = bool;\r\n\r\n // play animation\r\n this.playAnimate = true;\r\n },\r\n onMoreClick() {\r\n // this.gaev('btn_article_1_phv');\r\n window.open('https://www.toyota.com.tw/showroom/PRIUS_PHV/');\r\n },\r\n },\r\n });\r\n return article1Vm;\r\n};\r\n","import $ from 'jquery';\r\nimport techHybridArticle1 from './tech-hybrid/article-1';\r\n\r\n$(document).ready(() => {\r\n console.log('init tech article-1');\r\n techHybridArticle1();\r\n});\r\n"],"sourceRoot":""}