├── .eslintignore ├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── .node-version ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── babel.config.js ├── deploy.sh ├── dist ├── docs │ ├── css │ │ └── app.6625a00b.css │ ├── favicon.ico │ ├── img │ │ └── logo.82b9c7a5.png │ ├── index.html │ └── js │ │ ├── app.ef2dde6d.js │ │ ├── app.ef2dde6d.js.map │ │ ├── chunk-vendors.24901574.js │ │ └── chunk-vendors.24901574.js.map └── libs │ ├── demo.html │ ├── vue-long-click.common.js │ ├── vue-long-click.common.js.map │ ├── vue-long-click.umd.js │ ├── vue-long-click.umd.js.map │ ├── vue-long-click.umd.min.js │ └── vue-long-click.umd.min.js.map ├── images └── demo.gif ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── assets │ └── logo.png ├── components │ └── Demo.vue ├── directives │ └── longclick.js ├── index.js └── main.js ├── tests └── longclick.test.js └── vue.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | /tests 2 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | workflow_dispatch: 4 | jobs: 5 | test: 6 | name: Test 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout 10 | uses: actions/checkout@v2 11 | - name: Setup Node.js 12 | uses: actions/setup-node@v1 13 | with: 14 | node-version: '14.17.6' 15 | - name: Cache node modules 16 | uses: actions/cache@v2 17 | env: 18 | cache-name: cache-node-modules 19 | with: 20 | # npm cache files are stored in `~/.npm` on Linux/macOS 21 | path: ~/.npm 22 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 23 | restore-keys: | 24 | ${{ runner.os }}-build-${{ env.cache-name }}- 25 | ${{ runner.os }}-build- 26 | ${{ runner.os }}- 27 | - name: Install dependencies 28 | run: npm install 29 | - name: test 30 | run: npm run lint && npm run test 31 | release: 32 | name: Release 33 | runs-on: ubuntu-latest 34 | needs: [test] 35 | if: github.ref == 'refs/heads/master' 36 | steps: 37 | - name: Checkout 38 | uses: actions/checkout@v2 39 | - name: Setup Node.js 40 | uses: actions/setup-node@v1 41 | with: 42 | node-version: '14.17.6' 43 | - name: Cache node modules 44 | uses: actions/cache@v2 45 | env: 46 | cache-name: cache-node-modules 47 | with: 48 | # npm cache files are stored in `~/.npm` on Linux/macOS 49 | path: ~/.npm 50 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 51 | restore-keys: | 52 | ${{ runner.os }}-build-${{ env.cache-name }}- 53 | ${{ runner.os }}-build- 54 | ${{ runner.os }}- 55 | - name: Install dependencies 56 | run: npm install 57 | - name: Build 58 | run: npm run build 59 | - name: Release 60 | env: 61 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} 62 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 63 | run: npx semantic-release -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | on: 3 | push: 4 | workflow_dispatch: 5 | jobs: 6 | test: 7 | name: Test 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v2 12 | - name: Setup Node.js 13 | uses: actions/setup-node@v1 14 | with: 15 | node-version: '14.17.6' 16 | - name: Cache node modules 17 | uses: actions/cache@v2 18 | env: 19 | cache-name: cache-node-modules 20 | with: 21 | # npm cache files are stored in `~/.npm` on Linux/macOS 22 | path: ~/.npm 23 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 24 | restore-keys: | 25 | ${{ runner.os }}-build-${{ env.cache-name }}- 26 | ${{ runner.os }}-build- 27 | ${{ runner.os }}- 28 | - name: Install dependencies 29 | run: npm install 30 | - name: test 31 | run: npm run lint && npm run test -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | v14.17.6 -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- 1 | { 2 | "branches": ["master", {"name": "beta", "channel": "beta", "prerelease": "beta"}], 3 | "plugins": [ 4 | "@semantic-release/commit-analyzer", 5 | "@semantic-release/release-notes-generator", 6 | "@semantic-release/changelog", 7 | [ 8 | "@semantic-release/npm" 9 | ], 10 | ["@semantic-release/git", { 11 | "assets": ["dist/", "src/", "package.json","CHANGELOG.md"], 12 | "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" 13 | }], 14 | "@semantic-release/github" 15 | ], 16 | "repositoryUrl": "https://github.com/ittus/vue-long-click" 17 | 18 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # [0.1.0](https://github.com/ittus/vue-long-click/compare/v0.0.4...v0.1.0) (2021-09-03) 2 | 3 | 4 | ### Features 5 | 6 | * add semantic release ([#33](https://github.com/ittus/vue-long-click/issues/33)) ([8453e00](https://github.com/ittus/vue-long-click/commit/8453e00c605a99920b5ec8b460455feb1dab6bfa)) 7 | 8 | # [0.1.0-beta.1](https://github.com/ittus/vue-long-click/compare/v0.0.4...v0.1.0-beta.1) (2021-09-03) 9 | 10 | 11 | ### Bug Fixes 12 | 13 | * token ([2fe3280](https://github.com/ittus/vue-long-click/commit/2fe3280c8bde3271bde44e222978294f18327d32)) 14 | 15 | 16 | ### Features 17 | 18 | * install semantic release ([0d010d2](https://github.com/ittus/vue-long-click/commit/0d010d204c579a262a72e6cacb6214d0c67d10eb)) 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Thang Minh Vu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-long-click 2 | 3 | > Vue long click (longpress) directive 4 | 5 | [![npm version](https://badge.fury.io/js/vue-long-click.svg)](https://www.npmjs.com/package/vue-long-click) 6 | [![Test and Release](https://github.com/ittus/vue-long-click/actions/workflows/release.yml/badge.svg)](https://github.com/ittus/vue-long-click/actions/workflows/release.yml) 7 | ![Size](https://badgen.net/bundlephobia/min/vue-long-click) 8 | 9 | Checkout the demo at https://ittus.github.io/vue-long-click/ 10 | 11 | ![DemoGIF](./images/demo.gif) 12 | 13 | ## Install 14 | 15 | ```bash 16 | npm install vue-long-click --save 17 | ``` 18 | 19 | ```javascript 20 | import { longClickDirective } from 'vue-long-click' 21 | 22 | const longClickInstance = longClickDirective({delay: 400, interval: 50}) 23 | Vue.directive('longclick', longClickInstance) 24 | ``` 25 | 26 | ## CDN 27 | 28 | Include vue-long-click library from cdn 29 | ```html 30 | 31 | 32 | ``` 33 | 34 | and create custom directive to use 35 | 36 | ```javascript 37 | const longClickInstance = window['vue-long-click'].longClickDirective({delay: 400, interval: 50}) 38 | Vue.directive('longclick', longClickInstance) 39 | ``` 40 | [CDN Demo on codepen](https://codepen.io/ittus/pen/BbeZOQ) 41 | 42 | 43 | ## Usage 44 | 45 | ```javascript 46 | 47 | ``` 48 | 49 | ## Config 50 | 51 | | Prop | Type | Default | Description | 52 | |-----------------------|-----------------|-------------|------------------------------------------| 53 | | delay | Integer (milliseconds) | 400 | Delay until long click function is fired | 54 | | interval | Integer (milliseconds) | 50 | If value is greater than 0, handler function will be fire every `interval` milliseconds when component is pressed 55 | 56 | ## Development 57 | 58 | ```bash 59 | ## Project setup 60 | npm install 61 | 62 | ## Compiles and hot-reloads for development 63 | npm run serve 64 | 65 | ## Build library 66 | npm run build:lib 67 | 68 | ## Run tests 69 | npm run test 70 | 71 | ## Lints and fixes files 72 | npm run lint 73 | ``` 74 | 75 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ], 5 | env: { 6 | test: { 7 | presets: [ 8 | ["env", { "targets": { "node": "6" }}] 9 | ], 10 | plugins: ["@babel/plugin-transform-modules-commonjs"] 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # abort on errors 4 | set -e 5 | 6 | # build 7 | npm run build:docs 8 | 9 | # navigate into the build output directory 10 | cd dist/docs 11 | 12 | # if you are deploying to a custom domain 13 | # echo 'www.example.com' > CNAME 14 | 15 | git init 16 | git add -A 17 | git commit -m 'deploy' 18 | 19 | # if you are deploying to https://.github.io/ 20 | git push -f git@github.com:ittus/vue-long-click.git master:gh-pages 21 | 22 | cd - 23 | -------------------------------------------------------------------------------- /dist/docs/css/app.6625a00b.css: -------------------------------------------------------------------------------- 1 | a[data-v-b31dd1f8]{color:#42b983}.container[data-v-b31dd1f8]{display:inline-block;-webkit-box-shadow:0 0 25px rgba(0,0,0,.08);box-shadow:0 0 25px rgba(0,0,0,.08);width:300px;height:200px;padding-bottom:20px}.counter[data-v-b31dd1f8]{text-align:center;font-size:40px;margin-bottom:15px;color:#4b1248}.center[data-v-b31dd1f8]{text-align:center}button[data-v-b31dd1f8]{padding:10px 15px;font-size:20px;background-color:#42b983;border:1px solid #42b983;outline:none;margin:5px;width:100px;color:#fff}button[data-v-b31dd1f8]:hover{opacity:.8;cursor:pointer}.actions-inner[data-v-b31dd1f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;height:100%}body,html{height:100%;margin:0}#app{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.content{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.footer,a{-ms-flex-negative:0;flex-shrink:0;background-color:#524644;padding:10px;color:#fff} -------------------------------------------------------------------------------- /dist/docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ittus/vue-long-click/a4447cbdc5e7c57812412d9b76a8bab39b66e0e2/dist/docs/favicon.ico -------------------------------------------------------------------------------- /dist/docs/img/logo.82b9c7a5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ittus/vue-long-click/a4447cbdc5e7c57812412d9b76a8bab39b66e0e2/dist/docs/img/logo.82b9c7a5.png -------------------------------------------------------------------------------- /dist/docs/index.html: -------------------------------------------------------------------------------- 1 | vue-long-click
-------------------------------------------------------------------------------- /dist/docs/js/app.ef2dde6d.js: -------------------------------------------------------------------------------- 1 | (function(n){function t(t){for(var o,u,a=t[0],i=t[1],l=t[2],f=0,p=[];f changeValue(1)"}],on:{click:function(t){return n.changeValue(1)}}},[n._v("+")]),e("button",{directives:[{name:"longclick",rawName:"v-longclick",value:function(){return n.changeValue(-1)},expression:"() => changeValue(-1)"}],on:{click:function(){return n.changeValue(-1)}}},[n._v("-")])])])])])},a=[],i={name:"HelloWorld",props:{msg:String},data:function(){return{counter:0}},methods:{changeValue:function(n){console.log("Change amount by ".concat(n)),this.counter=this.counter+n}}},l=i,s=(e("bfa7"),e("2877")),f=Object(s["a"])(l,u,a,!1,null,"b31dd1f8",null),p=f.exports,d={name:"app",components:{Demo:p}},v=d,g=(e("034f"),Object(s["a"])(v,r,c,!1,null,null,null)),h=g.exports,b=(e("ac6a"),e("7f7f"),function(n){var t=n.delay,e=void 0===t?400:t,o=n.interval,r=void 0===o?50:o;return{bind:function(n,t,o){if("function"!==typeof t.value){var c=o.context.name,u="[longclick:] provided expression '".concat(t.expression,"' is not a function, but has to be");c&&(u+="Found in component '".concat(c,"' ")),console.warn(u)}var a=null,i=null,l=function(n){"click"===n.type&&0!==n.button||null===a&&(a=setTimeout((function(){r&&r>0&&(i=setInterval((function(){f()}),r)),f()}),e))},s=function(){null!==a&&(clearTimeout(a),a=null),i&&(clearInterval(i),i=null)},f=function(n){t.value(n)};["mousedown","touchstart"].forEach((function(t){return n.addEventListener(t,l)})),["click","mouseout","touchend","touchcancel"].forEach((function(t){return n.addEventListener(t,s)}))}}}),m=b;o["a"].config.productionTip=!1;var y=m({delay:400,interval:50});o["a"].directive("longclick",y),new o["a"]({render:function(n){return n(h)}}).$mount("#app")},"64a9":function(n,t,e){},bfa7:function(n,t,e){"use strict";e("4284")},cf05:function(n,t,e){n.exports=e.p+"img/logo.82b9c7a5.png"}}); 2 | //# sourceMappingURL=app.ef2dde6d.js.map -------------------------------------------------------------------------------- /dist/docs/js/app.ef2dde6d.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?4241","webpack:///./src/App.vue?c09b","webpack:///./src/components/Demo.vue?adbd","webpack:///src/components/Demo.vue","webpack:///./src/components/Demo.vue?9a6b","webpack:///./src/components/Demo.vue?cd6b","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue?bff9","webpack:///./src/directives/longclick.js","webpack:///./src/index.js","webpack:///./src/main.js","webpack:///./src/components/Demo.vue?d18d","webpack:///./src/assets/logo.png"],"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","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","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_m","staticRenderFns","_s","counter","directives","rawName","changeValue","expression","on","$event","props","msg","String","methods","console","log","amount","component","components","Demo","delay","interval","el","binding","vNode","compName","context","warn","pressTimer","pressInterval","start","e","type","button","setTimeout","setInterval","handler","cancel","clearTimeout","clearInterval","forEach","addEventListener","longClickDirective","longClick","Vue","config","productionTip","longClickInstance","directive","render","h","App","$mount"],"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,IAG/Be,GAA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0B","file":"js/app.ef2dde6d.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\t\"app\": 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 = \"/vue-long-click/\";\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([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('div',{staticClass:\"content\"},[_c('img',{attrs:{\"alt\":\"Vue logo\",\"src\":require(\"./assets/logo.png\")}}),_c('h3',[_vm._v(\"Vue long-click (longpress) demo \")]),_c('demo')],1),_vm._m(0)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('footer',{staticClass:\"footer\"},[_c('a',{attrs:{\"href\":\"https://github.com/ittus/vue-long-click\",\"target\":\"_blank\"}},[_c('strong',[_vm._v(\"https://github.com/ittus/vue-long-click\")])])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"center\"},[_c('div',{staticClass:\"container\"},[_c('p',{staticClass:\"counter\"},[_vm._v(_vm._s(_vm.counter))]),_c('div',{staticClass:\"actions\"},[_c('div',{staticClass:\"actions-inner\"},[_c('button',{directives:[{name:\"longclick\",rawName:\"v-longclick\",value:(function () { return _vm.changeValue(1); }),expression:\"() => changeValue(1)\"}],on:{\"click\":function($event){return _vm.changeValue(1)}}},[_vm._v(\"+\")]),_c('button',{directives:[{name:\"longclick\",rawName:\"v-longclick\",value:(function () { return _vm.changeValue(-1); }),expression:\"() => changeValue(-1)\"}],on:{\"click\":function () { return _vm.changeValue(-1); }}},[_vm._v(\"-\")])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\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!./Demo.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!./Demo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Demo.vue?vue&type=template&id=b31dd1f8&scoped=true&\"\nimport script from \"./Demo.vue?vue&type=script&lang=js&\"\nexport * from \"./Demo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Demo.vue?vue&type=style&index=0&id=b31dd1f8&scoped=true&lang=css&\"\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 \"b31dd1f8\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\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!./App.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!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=c82a922c&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\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 null,\n null\n \n)\n\nexport default component.exports","export default ({delay = 400, interval = 50}) => ({\n bind: function (el, binding, vNode) {\n if (typeof binding.value !== 'function') {\n const compName = vNode.context.name\n let warn = `[longclick:] provided expression '${binding.expression}' is not a function, but has to be`\n if (compName) { warn += `Found in component '${compName}' ` }\n console.warn(warn) // eslint-disable-line\n }\n\n let pressTimer = null\n let pressInterval = null\n\n const start = (e) => {\n if (e.type === 'click' && e.button !== 0) {\n return\n }\n\n if (pressTimer === null) {\n pressTimer = setTimeout(() => {\n if (interval && interval > 0) {\n pressInterval = setInterval(() => {\n handler()\n }, interval)\n }\n handler()\n }, delay)\n }\n }\n\n // Cancel Timeout\n const cancel = () => {\n if (pressTimer !== null) {\n clearTimeout(pressTimer)\n pressTimer = null\n }\n if (pressInterval) {\n clearInterval(pressInterval)\n pressInterval = null\n }\n }\n // Run Function\n const handler = (e) => {\n binding.value(e)\n }\n\n ;['mousedown', 'touchstart'].forEach(e => el.addEventListener(e, start))\n ;['click', 'mouseout', 'touchend', 'touchcancel'].forEach(e => el.addEventListener(e, cancel))\n }\n})\n","import longClick from './directives/longclick'\n\nexport const longClickDirective = longClick\n","import Vue from 'vue'\nimport App from './App.vue'\nimport { longClickDirective } from './index'\n\nVue.config.productionTip = false\n\nconst longClickInstance = longClickDirective({delay: 400, interval: 50})\nVue.directive('longclick', longClickInstance)\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Demo.vue?vue&type=style&index=0&id=b31dd1f8&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/logo.82b9c7a5.png\";"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/libs/demo.html: -------------------------------------------------------------------------------- 1 | 2 | vue-long-click demo 3 | 4 | 5 | 6 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /dist/libs/vue-long-click.common.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | /******/ (function(modules) { // webpackBootstrap 3 | /******/ // The module cache 4 | /******/ var installedModules = {}; 5 | /******/ 6 | /******/ // The require function 7 | /******/ function __webpack_require__(moduleId) { 8 | /******/ 9 | /******/ // Check if module is in cache 10 | /******/ if(installedModules[moduleId]) { 11 | /******/ return installedModules[moduleId].exports; 12 | /******/ } 13 | /******/ // Create a new module (and put it into the cache) 14 | /******/ var module = installedModules[moduleId] = { 15 | /******/ i: moduleId, 16 | /******/ l: false, 17 | /******/ exports: {} 18 | /******/ }; 19 | /******/ 20 | /******/ // Execute the module function 21 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 22 | /******/ 23 | /******/ // Flag the module as loaded 24 | /******/ module.l = true; 25 | /******/ 26 | /******/ // Return the exports of the module 27 | /******/ return module.exports; 28 | /******/ } 29 | /******/ 30 | /******/ 31 | /******/ // expose the modules object (__webpack_modules__) 32 | /******/ __webpack_require__.m = modules; 33 | /******/ 34 | /******/ // expose the module cache 35 | /******/ __webpack_require__.c = installedModules; 36 | /******/ 37 | /******/ // define getter function for harmony exports 38 | /******/ __webpack_require__.d = function(exports, name, getter) { 39 | /******/ if(!__webpack_require__.o(exports, name)) { 40 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 41 | /******/ } 42 | /******/ }; 43 | /******/ 44 | /******/ // define __esModule on exports 45 | /******/ __webpack_require__.r = function(exports) { 46 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 47 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 48 | /******/ } 49 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 50 | /******/ }; 51 | /******/ 52 | /******/ // create a fake namespace object 53 | /******/ // mode & 1: value is a module id, require it 54 | /******/ // mode & 2: merge all properties of value into the ns 55 | /******/ // mode & 4: return value when already ns object 56 | /******/ // mode & 8|1: behave like require 57 | /******/ __webpack_require__.t = function(value, mode) { 58 | /******/ if(mode & 1) value = __webpack_require__(value); 59 | /******/ if(mode & 8) return value; 60 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 61 | /******/ var ns = Object.create(null); 62 | /******/ __webpack_require__.r(ns); 63 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 64 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 65 | /******/ return ns; 66 | /******/ }; 67 | /******/ 68 | /******/ // getDefaultExport function for compatibility with non-harmony modules 69 | /******/ __webpack_require__.n = function(module) { 70 | /******/ var getter = module && module.__esModule ? 71 | /******/ function getDefault() { return module['default']; } : 72 | /******/ function getModuleExports() { return module; }; 73 | /******/ __webpack_require__.d(getter, 'a', getter); 74 | /******/ return getter; 75 | /******/ }; 76 | /******/ 77 | /******/ // Object.prototype.hasOwnProperty.call 78 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 79 | /******/ 80 | /******/ // __webpack_public_path__ 81 | /******/ __webpack_require__.p = ""; 82 | /******/ 83 | /******/ 84 | /******/ // Load entry module and return exports 85 | /******/ return __webpack_require__(__webpack_require__.s = "fae3"); 86 | /******/ }) 87 | /************************************************************************/ 88 | /******/ ({ 89 | 90 | /***/ "01f9": 91 | /***/ (function(module, exports, __webpack_require__) { 92 | 93 | "use strict"; 94 | 95 | var LIBRARY = __webpack_require__("2d00"); 96 | var $export = __webpack_require__("5ca1"); 97 | var redefine = __webpack_require__("2aba"); 98 | var hide = __webpack_require__("32e9"); 99 | var Iterators = __webpack_require__("84f2"); 100 | var $iterCreate = __webpack_require__("41a0"); 101 | var setToStringTag = __webpack_require__("7f20"); 102 | var getPrototypeOf = __webpack_require__("38fd"); 103 | var ITERATOR = __webpack_require__("2b4c")('iterator'); 104 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 105 | var FF_ITERATOR = '@@iterator'; 106 | var KEYS = 'keys'; 107 | var VALUES = 'values'; 108 | 109 | var returnThis = function () { return this; }; 110 | 111 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 112 | $iterCreate(Constructor, NAME, next); 113 | var getMethod = function (kind) { 114 | if (!BUGGY && kind in proto) return proto[kind]; 115 | switch (kind) { 116 | case KEYS: return function keys() { return new Constructor(this, kind); }; 117 | case VALUES: return function values() { return new Constructor(this, kind); }; 118 | } return function entries() { return new Constructor(this, kind); }; 119 | }; 120 | var TAG = NAME + ' Iterator'; 121 | var DEF_VALUES = DEFAULT == VALUES; 122 | var VALUES_BUG = false; 123 | var proto = Base.prototype; 124 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 125 | var $default = $native || getMethod(DEFAULT); 126 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 127 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 128 | var methods, key, IteratorPrototype; 129 | // Fix native 130 | if ($anyNative) { 131 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 132 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 133 | // Set @@toStringTag to native iterators 134 | setToStringTag(IteratorPrototype, TAG, true); 135 | // fix for some old engines 136 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 137 | } 138 | } 139 | // fix Array#{values, @@iterator}.name in V8 / FF 140 | if (DEF_VALUES && $native && $native.name !== VALUES) { 141 | VALUES_BUG = true; 142 | $default = function values() { return $native.call(this); }; 143 | } 144 | // Define iterator 145 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 146 | hide(proto, ITERATOR, $default); 147 | } 148 | // Plug for library 149 | Iterators[NAME] = $default; 150 | Iterators[TAG] = returnThis; 151 | if (DEFAULT) { 152 | methods = { 153 | values: DEF_VALUES ? $default : getMethod(VALUES), 154 | keys: IS_SET ? $default : getMethod(KEYS), 155 | entries: $entries 156 | }; 157 | if (FORCED) for (key in methods) { 158 | if (!(key in proto)) redefine(proto, key, methods[key]); 159 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 160 | } 161 | return methods; 162 | }; 163 | 164 | 165 | /***/ }), 166 | 167 | /***/ "0d58": 168 | /***/ (function(module, exports, __webpack_require__) { 169 | 170 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 171 | var $keys = __webpack_require__("ce10"); 172 | var enumBugKeys = __webpack_require__("e11e"); 173 | 174 | module.exports = Object.keys || function keys(O) { 175 | return $keys(O, enumBugKeys); 176 | }; 177 | 178 | 179 | /***/ }), 180 | 181 | /***/ "1495": 182 | /***/ (function(module, exports, __webpack_require__) { 183 | 184 | var dP = __webpack_require__("86cc"); 185 | var anObject = __webpack_require__("cb7c"); 186 | var getKeys = __webpack_require__("0d58"); 187 | 188 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { 189 | anObject(O); 190 | var keys = getKeys(Properties); 191 | var length = keys.length; 192 | var i = 0; 193 | var P; 194 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 195 | return O; 196 | }; 197 | 198 | 199 | /***/ }), 200 | 201 | /***/ "230e": 202 | /***/ (function(module, exports, __webpack_require__) { 203 | 204 | var isObject = __webpack_require__("d3f4"); 205 | var document = __webpack_require__("7726").document; 206 | // typeof document.createElement is 'object' in old IE 207 | var is = isObject(document) && isObject(document.createElement); 208 | module.exports = function (it) { 209 | return is ? document.createElement(it) : {}; 210 | }; 211 | 212 | 213 | /***/ }), 214 | 215 | /***/ "2aba": 216 | /***/ (function(module, exports, __webpack_require__) { 217 | 218 | var global = __webpack_require__("7726"); 219 | var hide = __webpack_require__("32e9"); 220 | var has = __webpack_require__("69a8"); 221 | var SRC = __webpack_require__("ca5a")('src'); 222 | var $toString = __webpack_require__("fa5b"); 223 | var TO_STRING = 'toString'; 224 | var TPL = ('' + $toString).split(TO_STRING); 225 | 226 | __webpack_require__("8378").inspectSource = function (it) { 227 | return $toString.call(it); 228 | }; 229 | 230 | (module.exports = function (O, key, val, safe) { 231 | var isFunction = typeof val == 'function'; 232 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 233 | if (O[key] === val) return; 234 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 235 | if (O === global) { 236 | O[key] = val; 237 | } else if (!safe) { 238 | delete O[key]; 239 | hide(O, key, val); 240 | } else if (O[key]) { 241 | O[key] = val; 242 | } else { 243 | hide(O, key, val); 244 | } 245 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 246 | })(Function.prototype, TO_STRING, function toString() { 247 | return typeof this == 'function' && this[SRC] || $toString.call(this); 248 | }); 249 | 250 | 251 | /***/ }), 252 | 253 | /***/ "2aeb": 254 | /***/ (function(module, exports, __webpack_require__) { 255 | 256 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 257 | var anObject = __webpack_require__("cb7c"); 258 | var dPs = __webpack_require__("1495"); 259 | var enumBugKeys = __webpack_require__("e11e"); 260 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 261 | var Empty = function () { /* empty */ }; 262 | var PROTOTYPE = 'prototype'; 263 | 264 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 265 | var createDict = function () { 266 | // Thrash, waste and sodomy: IE GC bug 267 | var iframe = __webpack_require__("230e")('iframe'); 268 | var i = enumBugKeys.length; 269 | var lt = '<'; 270 | var gt = '>'; 271 | var iframeDocument; 272 | iframe.style.display = 'none'; 273 | __webpack_require__("fab2").appendChild(iframe); 274 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 275 | // createDict = iframe.contentWindow.Object; 276 | // html.removeChild(iframe); 277 | iframeDocument = iframe.contentWindow.document; 278 | iframeDocument.open(); 279 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 280 | iframeDocument.close(); 281 | createDict = iframeDocument.F; 282 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 283 | return createDict(); 284 | }; 285 | 286 | module.exports = Object.create || function create(O, Properties) { 287 | var result; 288 | if (O !== null) { 289 | Empty[PROTOTYPE] = anObject(O); 290 | result = new Empty(); 291 | Empty[PROTOTYPE] = null; 292 | // add "__proto__" for Object.getPrototypeOf polyfill 293 | result[IE_PROTO] = O; 294 | } else result = createDict(); 295 | return Properties === undefined ? result : dPs(result, Properties); 296 | }; 297 | 298 | 299 | /***/ }), 300 | 301 | /***/ "2b4c": 302 | /***/ (function(module, exports, __webpack_require__) { 303 | 304 | var store = __webpack_require__("5537")('wks'); 305 | var uid = __webpack_require__("ca5a"); 306 | var Symbol = __webpack_require__("7726").Symbol; 307 | var USE_SYMBOL = typeof Symbol == 'function'; 308 | 309 | var $exports = module.exports = function (name) { 310 | return store[name] || (store[name] = 311 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 312 | }; 313 | 314 | $exports.store = store; 315 | 316 | 317 | /***/ }), 318 | 319 | /***/ "2d00": 320 | /***/ (function(module, exports) { 321 | 322 | module.exports = false; 323 | 324 | 325 | /***/ }), 326 | 327 | /***/ "2d95": 328 | /***/ (function(module, exports) { 329 | 330 | var toString = {}.toString; 331 | 332 | module.exports = function (it) { 333 | return toString.call(it).slice(8, -1); 334 | }; 335 | 336 | 337 | /***/ }), 338 | 339 | /***/ "32e9": 340 | /***/ (function(module, exports, __webpack_require__) { 341 | 342 | var dP = __webpack_require__("86cc"); 343 | var createDesc = __webpack_require__("4630"); 344 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) { 345 | return dP.f(object, key, createDesc(1, value)); 346 | } : function (object, key, value) { 347 | object[key] = value; 348 | return object; 349 | }; 350 | 351 | 352 | /***/ }), 353 | 354 | /***/ "38fd": 355 | /***/ (function(module, exports, __webpack_require__) { 356 | 357 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 358 | var has = __webpack_require__("69a8"); 359 | var toObject = __webpack_require__("4bf8"); 360 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 361 | var ObjectProto = Object.prototype; 362 | 363 | module.exports = Object.getPrototypeOf || function (O) { 364 | O = toObject(O); 365 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 366 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 367 | return O.constructor.prototype; 368 | } return O instanceof Object ? ObjectProto : null; 369 | }; 370 | 371 | 372 | /***/ }), 373 | 374 | /***/ "41a0": 375 | /***/ (function(module, exports, __webpack_require__) { 376 | 377 | "use strict"; 378 | 379 | var create = __webpack_require__("2aeb"); 380 | var descriptor = __webpack_require__("4630"); 381 | var setToStringTag = __webpack_require__("7f20"); 382 | var IteratorPrototype = {}; 383 | 384 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 385 | __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; }); 386 | 387 | module.exports = function (Constructor, NAME, next) { 388 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 389 | setToStringTag(Constructor, NAME + ' Iterator'); 390 | }; 391 | 392 | 393 | /***/ }), 394 | 395 | /***/ "4588": 396 | /***/ (function(module, exports) { 397 | 398 | // 7.1.4 ToInteger 399 | var ceil = Math.ceil; 400 | var floor = Math.floor; 401 | module.exports = function (it) { 402 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 403 | }; 404 | 405 | 406 | /***/ }), 407 | 408 | /***/ "4630": 409 | /***/ (function(module, exports) { 410 | 411 | module.exports = function (bitmap, value) { 412 | return { 413 | enumerable: !(bitmap & 1), 414 | configurable: !(bitmap & 2), 415 | writable: !(bitmap & 4), 416 | value: value 417 | }; 418 | }; 419 | 420 | 421 | /***/ }), 422 | 423 | /***/ "4bf8": 424 | /***/ (function(module, exports, __webpack_require__) { 425 | 426 | // 7.1.13 ToObject(argument) 427 | var defined = __webpack_require__("be13"); 428 | module.exports = function (it) { 429 | return Object(defined(it)); 430 | }; 431 | 432 | 433 | /***/ }), 434 | 435 | /***/ "5537": 436 | /***/ (function(module, exports, __webpack_require__) { 437 | 438 | var core = __webpack_require__("8378"); 439 | var global = __webpack_require__("7726"); 440 | var SHARED = '__core-js_shared__'; 441 | var store = global[SHARED] || (global[SHARED] = {}); 442 | 443 | (module.exports = function (key, value) { 444 | return store[key] || (store[key] = value !== undefined ? value : {}); 445 | })('versions', []).push({ 446 | version: core.version, 447 | mode: __webpack_require__("2d00") ? 'pure' : 'global', 448 | copyright: '© 2020 Denis Pushkarev (zloirock.ru)' 449 | }); 450 | 451 | 452 | /***/ }), 453 | 454 | /***/ "5ca1": 455 | /***/ (function(module, exports, __webpack_require__) { 456 | 457 | var global = __webpack_require__("7726"); 458 | var core = __webpack_require__("8378"); 459 | var hide = __webpack_require__("32e9"); 460 | var redefine = __webpack_require__("2aba"); 461 | var ctx = __webpack_require__("9b43"); 462 | var PROTOTYPE = 'prototype'; 463 | 464 | var $export = function (type, name, source) { 465 | var IS_FORCED = type & $export.F; 466 | var IS_GLOBAL = type & $export.G; 467 | var IS_STATIC = type & $export.S; 468 | var IS_PROTO = type & $export.P; 469 | var IS_BIND = type & $export.B; 470 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 471 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 472 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 473 | var key, own, out, exp; 474 | if (IS_GLOBAL) source = name; 475 | for (key in source) { 476 | // contains in native 477 | own = !IS_FORCED && target && target[key] !== undefined; 478 | // export native or passed 479 | out = (own ? target : source)[key]; 480 | // bind timers to global for call from export context 481 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 482 | // extend global 483 | if (target) redefine(target, key, out, type & $export.U); 484 | // export 485 | if (exports[key] != out) hide(exports, key, exp); 486 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 487 | } 488 | }; 489 | global.core = core; 490 | // type bitmap 491 | $export.F = 1; // forced 492 | $export.G = 2; // global 493 | $export.S = 4; // static 494 | $export.P = 8; // proto 495 | $export.B = 16; // bind 496 | $export.W = 32; // wrap 497 | $export.U = 64; // safe 498 | $export.R = 128; // real proto method for `library` 499 | module.exports = $export; 500 | 501 | 502 | /***/ }), 503 | 504 | /***/ "613b": 505 | /***/ (function(module, exports, __webpack_require__) { 506 | 507 | var shared = __webpack_require__("5537")('keys'); 508 | var uid = __webpack_require__("ca5a"); 509 | module.exports = function (key) { 510 | return shared[key] || (shared[key] = uid(key)); 511 | }; 512 | 513 | 514 | /***/ }), 515 | 516 | /***/ "626a": 517 | /***/ (function(module, exports, __webpack_require__) { 518 | 519 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 520 | var cof = __webpack_require__("2d95"); 521 | // eslint-disable-next-line no-prototype-builtins 522 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 523 | return cof(it) == 'String' ? it.split('') : Object(it); 524 | }; 525 | 526 | 527 | /***/ }), 528 | 529 | /***/ "6821": 530 | /***/ (function(module, exports, __webpack_require__) { 531 | 532 | // to indexed object, toObject with fallback for non-array-like ES3 strings 533 | var IObject = __webpack_require__("626a"); 534 | var defined = __webpack_require__("be13"); 535 | module.exports = function (it) { 536 | return IObject(defined(it)); 537 | }; 538 | 539 | 540 | /***/ }), 541 | 542 | /***/ "69a8": 543 | /***/ (function(module, exports) { 544 | 545 | var hasOwnProperty = {}.hasOwnProperty; 546 | module.exports = function (it, key) { 547 | return hasOwnProperty.call(it, key); 548 | }; 549 | 550 | 551 | /***/ }), 552 | 553 | /***/ "6a99": 554 | /***/ (function(module, exports, __webpack_require__) { 555 | 556 | // 7.1.1 ToPrimitive(input [, PreferredType]) 557 | var isObject = __webpack_require__("d3f4"); 558 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 559 | // and the second argument - flag - preferred type is a string 560 | module.exports = function (it, S) { 561 | if (!isObject(it)) return it; 562 | var fn, val; 563 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 564 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 565 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 566 | throw TypeError("Can't convert object to primitive value"); 567 | }; 568 | 569 | 570 | /***/ }), 571 | 572 | /***/ "7726": 573 | /***/ (function(module, exports) { 574 | 575 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 576 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 577 | ? window : typeof self != 'undefined' && self.Math == Math ? self 578 | // eslint-disable-next-line no-new-func 579 | : Function('return this')(); 580 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 581 | 582 | 583 | /***/ }), 584 | 585 | /***/ "77f1": 586 | /***/ (function(module, exports, __webpack_require__) { 587 | 588 | var toInteger = __webpack_require__("4588"); 589 | var max = Math.max; 590 | var min = Math.min; 591 | module.exports = function (index, length) { 592 | index = toInteger(index); 593 | return index < 0 ? max(index + length, 0) : min(index, length); 594 | }; 595 | 596 | 597 | /***/ }), 598 | 599 | /***/ "79e5": 600 | /***/ (function(module, exports) { 601 | 602 | module.exports = function (exec) { 603 | try { 604 | return !!exec(); 605 | } catch (e) { 606 | return true; 607 | } 608 | }; 609 | 610 | 611 | /***/ }), 612 | 613 | /***/ "7f20": 614 | /***/ (function(module, exports, __webpack_require__) { 615 | 616 | var def = __webpack_require__("86cc").f; 617 | var has = __webpack_require__("69a8"); 618 | var TAG = __webpack_require__("2b4c")('toStringTag'); 619 | 620 | module.exports = function (it, tag, stat) { 621 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 622 | }; 623 | 624 | 625 | /***/ }), 626 | 627 | /***/ "7f7f": 628 | /***/ (function(module, exports, __webpack_require__) { 629 | 630 | var dP = __webpack_require__("86cc").f; 631 | var FProto = Function.prototype; 632 | var nameRE = /^\s*function ([^ (]*)/; 633 | var NAME = 'name'; 634 | 635 | // 19.2.4.2 name 636 | NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { 637 | configurable: true, 638 | get: function () { 639 | try { 640 | return ('' + this).match(nameRE)[1]; 641 | } catch (e) { 642 | return ''; 643 | } 644 | } 645 | }); 646 | 647 | 648 | /***/ }), 649 | 650 | /***/ "8378": 651 | /***/ (function(module, exports) { 652 | 653 | var core = module.exports = { version: '2.6.12' }; 654 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 655 | 656 | 657 | /***/ }), 658 | 659 | /***/ "84f2": 660 | /***/ (function(module, exports) { 661 | 662 | module.exports = {}; 663 | 664 | 665 | /***/ }), 666 | 667 | /***/ "86cc": 668 | /***/ (function(module, exports, __webpack_require__) { 669 | 670 | var anObject = __webpack_require__("cb7c"); 671 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 672 | var toPrimitive = __webpack_require__("6a99"); 673 | var dP = Object.defineProperty; 674 | 675 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 676 | anObject(O); 677 | P = toPrimitive(P, true); 678 | anObject(Attributes); 679 | if (IE8_DOM_DEFINE) try { 680 | return dP(O, P, Attributes); 681 | } catch (e) { /* empty */ } 682 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 683 | if ('value' in Attributes) O[P] = Attributes.value; 684 | return O; 685 | }; 686 | 687 | 688 | /***/ }), 689 | 690 | /***/ "9b43": 691 | /***/ (function(module, exports, __webpack_require__) { 692 | 693 | // optional / simple context binding 694 | var aFunction = __webpack_require__("d8e8"); 695 | module.exports = function (fn, that, length) { 696 | aFunction(fn); 697 | if (that === undefined) return fn; 698 | switch (length) { 699 | case 1: return function (a) { 700 | return fn.call(that, a); 701 | }; 702 | case 2: return function (a, b) { 703 | return fn.call(that, a, b); 704 | }; 705 | case 3: return function (a, b, c) { 706 | return fn.call(that, a, b, c); 707 | }; 708 | } 709 | return function (/* ...args */) { 710 | return fn.apply(that, arguments); 711 | }; 712 | }; 713 | 714 | 715 | /***/ }), 716 | 717 | /***/ "9c6c": 718 | /***/ (function(module, exports, __webpack_require__) { 719 | 720 | // 22.1.3.31 Array.prototype[@@unscopables] 721 | var UNSCOPABLES = __webpack_require__("2b4c")('unscopables'); 722 | var ArrayProto = Array.prototype; 723 | if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {}); 724 | module.exports = function (key) { 725 | ArrayProto[UNSCOPABLES][key] = true; 726 | }; 727 | 728 | 729 | /***/ }), 730 | 731 | /***/ "9def": 732 | /***/ (function(module, exports, __webpack_require__) { 733 | 734 | // 7.1.15 ToLength 735 | var toInteger = __webpack_require__("4588"); 736 | var min = Math.min; 737 | module.exports = function (it) { 738 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 739 | }; 740 | 741 | 742 | /***/ }), 743 | 744 | /***/ "9e1e": 745 | /***/ (function(module, exports, __webpack_require__) { 746 | 747 | // Thank's IE8 for his funny defineProperty 748 | module.exports = !__webpack_require__("79e5")(function () { 749 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 750 | }); 751 | 752 | 753 | /***/ }), 754 | 755 | /***/ "ac6a": 756 | /***/ (function(module, exports, __webpack_require__) { 757 | 758 | var $iterators = __webpack_require__("cadf"); 759 | var getKeys = __webpack_require__("0d58"); 760 | var redefine = __webpack_require__("2aba"); 761 | var global = __webpack_require__("7726"); 762 | var hide = __webpack_require__("32e9"); 763 | var Iterators = __webpack_require__("84f2"); 764 | var wks = __webpack_require__("2b4c"); 765 | var ITERATOR = wks('iterator'); 766 | var TO_STRING_TAG = wks('toStringTag'); 767 | var ArrayValues = Iterators.Array; 768 | 769 | var DOMIterables = { 770 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 771 | CSSStyleDeclaration: false, 772 | CSSValueList: false, 773 | ClientRectList: false, 774 | DOMRectList: false, 775 | DOMStringList: false, 776 | DOMTokenList: true, 777 | DataTransferItemList: false, 778 | FileList: false, 779 | HTMLAllCollection: false, 780 | HTMLCollection: false, 781 | HTMLFormElement: false, 782 | HTMLSelectElement: false, 783 | MediaList: true, // TODO: Not spec compliant, should be false. 784 | MimeTypeArray: false, 785 | NamedNodeMap: false, 786 | NodeList: true, 787 | PaintRequestList: false, 788 | Plugin: false, 789 | PluginArray: false, 790 | SVGLengthList: false, 791 | SVGNumberList: false, 792 | SVGPathSegList: false, 793 | SVGPointList: false, 794 | SVGStringList: false, 795 | SVGTransformList: false, 796 | SourceBufferList: false, 797 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 798 | TextTrackCueList: false, 799 | TextTrackList: false, 800 | TouchList: false 801 | }; 802 | 803 | for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { 804 | var NAME = collections[i]; 805 | var explicit = DOMIterables[NAME]; 806 | var Collection = global[NAME]; 807 | var proto = Collection && Collection.prototype; 808 | var key; 809 | if (proto) { 810 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 811 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 812 | Iterators[NAME] = ArrayValues; 813 | if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); 814 | } 815 | } 816 | 817 | 818 | /***/ }), 819 | 820 | /***/ "be13": 821 | /***/ (function(module, exports) { 822 | 823 | // 7.2.1 RequireObjectCoercible(argument) 824 | module.exports = function (it) { 825 | if (it == undefined) throw TypeError("Can't call method on " + it); 826 | return it; 827 | }; 828 | 829 | 830 | /***/ }), 831 | 832 | /***/ "c366": 833 | /***/ (function(module, exports, __webpack_require__) { 834 | 835 | // false -> Array#indexOf 836 | // true -> Array#includes 837 | var toIObject = __webpack_require__("6821"); 838 | var toLength = __webpack_require__("9def"); 839 | var toAbsoluteIndex = __webpack_require__("77f1"); 840 | module.exports = function (IS_INCLUDES) { 841 | return function ($this, el, fromIndex) { 842 | var O = toIObject($this); 843 | var length = toLength(O.length); 844 | var index = toAbsoluteIndex(fromIndex, length); 845 | var value; 846 | // Array#includes uses SameValueZero equality algorithm 847 | // eslint-disable-next-line no-self-compare 848 | if (IS_INCLUDES && el != el) while (length > index) { 849 | value = O[index++]; 850 | // eslint-disable-next-line no-self-compare 851 | if (value != value) return true; 852 | // Array#indexOf ignores holes, Array#includes - not 853 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 854 | if (O[index] === el) return IS_INCLUDES || index || 0; 855 | } return !IS_INCLUDES && -1; 856 | }; 857 | }; 858 | 859 | 860 | /***/ }), 861 | 862 | /***/ "c69a": 863 | /***/ (function(module, exports, __webpack_require__) { 864 | 865 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () { 866 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; 867 | }); 868 | 869 | 870 | /***/ }), 871 | 872 | /***/ "ca5a": 873 | /***/ (function(module, exports) { 874 | 875 | var id = 0; 876 | var px = Math.random(); 877 | module.exports = function (key) { 878 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 879 | }; 880 | 881 | 882 | /***/ }), 883 | 884 | /***/ "cadf": 885 | /***/ (function(module, exports, __webpack_require__) { 886 | 887 | "use strict"; 888 | 889 | var addToUnscopables = __webpack_require__("9c6c"); 890 | var step = __webpack_require__("d53b"); 891 | var Iterators = __webpack_require__("84f2"); 892 | var toIObject = __webpack_require__("6821"); 893 | 894 | // 22.1.3.4 Array.prototype.entries() 895 | // 22.1.3.13 Array.prototype.keys() 896 | // 22.1.3.29 Array.prototype.values() 897 | // 22.1.3.30 Array.prototype[@@iterator]() 898 | module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) { 899 | this._t = toIObject(iterated); // target 900 | this._i = 0; // next index 901 | this._k = kind; // kind 902 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 903 | }, function () { 904 | var O = this._t; 905 | var kind = this._k; 906 | var index = this._i++; 907 | if (!O || index >= O.length) { 908 | this._t = undefined; 909 | return step(1); 910 | } 911 | if (kind == 'keys') return step(0, index); 912 | if (kind == 'values') return step(0, O[index]); 913 | return step(0, [index, O[index]]); 914 | }, 'values'); 915 | 916 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 917 | Iterators.Arguments = Iterators.Array; 918 | 919 | addToUnscopables('keys'); 920 | addToUnscopables('values'); 921 | addToUnscopables('entries'); 922 | 923 | 924 | /***/ }), 925 | 926 | /***/ "cb7c": 927 | /***/ (function(module, exports, __webpack_require__) { 928 | 929 | var isObject = __webpack_require__("d3f4"); 930 | module.exports = function (it) { 931 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 932 | return it; 933 | }; 934 | 935 | 936 | /***/ }), 937 | 938 | /***/ "ce10": 939 | /***/ (function(module, exports, __webpack_require__) { 940 | 941 | var has = __webpack_require__("69a8"); 942 | var toIObject = __webpack_require__("6821"); 943 | var arrayIndexOf = __webpack_require__("c366")(false); 944 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 945 | 946 | module.exports = function (object, names) { 947 | var O = toIObject(object); 948 | var i = 0; 949 | var result = []; 950 | var key; 951 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 952 | // Don't enum bug & hidden keys 953 | while (names.length > i) if (has(O, key = names[i++])) { 954 | ~arrayIndexOf(result, key) || result.push(key); 955 | } 956 | return result; 957 | }; 958 | 959 | 960 | /***/ }), 961 | 962 | /***/ "d3f4": 963 | /***/ (function(module, exports) { 964 | 965 | module.exports = function (it) { 966 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 967 | }; 968 | 969 | 970 | /***/ }), 971 | 972 | /***/ "d53b": 973 | /***/ (function(module, exports) { 974 | 975 | module.exports = function (done, value) { 976 | return { value: value, done: !!done }; 977 | }; 978 | 979 | 980 | /***/ }), 981 | 982 | /***/ "d8e8": 983 | /***/ (function(module, exports) { 984 | 985 | module.exports = function (it) { 986 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 987 | return it; 988 | }; 989 | 990 | 991 | /***/ }), 992 | 993 | /***/ "e11e": 994 | /***/ (function(module, exports) { 995 | 996 | // IE 8- don't enum bug keys 997 | module.exports = ( 998 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 999 | ).split(','); 1000 | 1001 | 1002 | /***/ }), 1003 | 1004 | /***/ "f6fd": 1005 | /***/ (function(module, exports) { 1006 | 1007 | // document.currentScript polyfill by Adam Miller 1008 | 1009 | // MIT license 1010 | 1011 | (function(document){ 1012 | var currentScript = "currentScript", 1013 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1014 | 1015 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1016 | if (!(currentScript in document)) { 1017 | Object.defineProperty(document, currentScript, { 1018 | get: function(){ 1019 | 1020 | // IE 6-10 supports script readyState 1021 | // IE 10+ support stack trace 1022 | try { throw new Error(); } 1023 | catch (err) { 1024 | 1025 | // Find the second match for the "at" string to get file src url from stack. 1026 | // Specifically works with the format of stack traces in IE. 1027 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1028 | 1029 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1030 | for(i in scripts){ 1031 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1032 | return scripts[i]; 1033 | } 1034 | } 1035 | 1036 | // If no match, return null 1037 | return null; 1038 | } 1039 | } 1040 | }); 1041 | } 1042 | })(document); 1043 | 1044 | 1045 | /***/ }), 1046 | 1047 | /***/ "fa5b": 1048 | /***/ (function(module, exports, __webpack_require__) { 1049 | 1050 | module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString); 1051 | 1052 | 1053 | /***/ }), 1054 | 1055 | /***/ "fab2": 1056 | /***/ (function(module, exports, __webpack_require__) { 1057 | 1058 | var document = __webpack_require__("7726").document; 1059 | module.exports = document && document.documentElement; 1060 | 1061 | 1062 | /***/ }), 1063 | 1064 | /***/ "fae3": 1065 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1066 | 1067 | "use strict"; 1068 | // ESM COMPAT FLAG 1069 | __webpack_require__.r(__webpack_exports__); 1070 | 1071 | // EXPORTS 1072 | __webpack_require__.d(__webpack_exports__, "longClickDirective", function() { return /* reexport */ longClickDirective; }); 1073 | 1074 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 1075 | // This file is imported into lib/wc client bundles. 1076 | 1077 | if (typeof window !== 'undefined') { 1078 | if (true) { 1079 | __webpack_require__("f6fd") 1080 | } 1081 | 1082 | var i 1083 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 1084 | __webpack_require__.p = i[1] // eslint-disable-line 1085 | } 1086 | } 1087 | 1088 | // Indicate to webpack that this file can be concatenated 1089 | /* harmony default export */ var setPublicPath = (null); 1090 | 1091 | // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 1092 | var web_dom_iterable = __webpack_require__("ac6a"); 1093 | 1094 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js 1095 | var es6_function_name = __webpack_require__("7f7f"); 1096 | 1097 | // CONCATENATED MODULE: ./src/directives/longclick.js 1098 | 1099 | 1100 | /* harmony default export */ var longclick = (function (_ref) { 1101 | var _ref$delay = _ref.delay, 1102 | delay = _ref$delay === void 0 ? 400 : _ref$delay, 1103 | _ref$interval = _ref.interval, 1104 | interval = _ref$interval === void 0 ? 50 : _ref$interval; 1105 | return { 1106 | bind: function bind(el, binding, vNode) { 1107 | if (typeof binding.value !== 'function') { 1108 | var compName = vNode.context.name; 1109 | var warn = "[longclick:] provided expression '".concat(binding.expression, "' is not a function, but has to be"); 1110 | 1111 | if (compName) { 1112 | warn += "Found in component '".concat(compName, "' "); 1113 | } 1114 | 1115 | console.warn(warn); // eslint-disable-line 1116 | } 1117 | 1118 | var pressTimer = null; 1119 | var pressInterval = null; 1120 | 1121 | var start = function start(e) { 1122 | if (e.type === 'click' && e.button !== 0) { 1123 | return; 1124 | } 1125 | 1126 | if (pressTimer === null) { 1127 | pressTimer = setTimeout(function () { 1128 | if (interval && interval > 0) { 1129 | pressInterval = setInterval(function () { 1130 | handler(); 1131 | }, interval); 1132 | } 1133 | 1134 | handler(); 1135 | }, delay); 1136 | } 1137 | }; // Cancel Timeout 1138 | 1139 | 1140 | var cancel = function cancel() { 1141 | if (pressTimer !== null) { 1142 | clearTimeout(pressTimer); 1143 | pressTimer = null; 1144 | } 1145 | 1146 | if (pressInterval) { 1147 | clearInterval(pressInterval); 1148 | pressInterval = null; 1149 | } 1150 | }; // Run Function 1151 | 1152 | 1153 | var handler = function handler(e) { 1154 | binding.value(e); 1155 | }; 1156 | 1157 | ['mousedown', 'touchstart'].forEach(function (e) { 1158 | return el.addEventListener(e, start); 1159 | }); 1160 | ['click', 'mouseout', 'touchend', 'touchcancel'].forEach(function (e) { 1161 | return el.addEventListener(e, cancel); 1162 | }); 1163 | } 1164 | }; 1165 | }); 1166 | // CONCATENATED MODULE: ./src/index.js 1167 | 1168 | var longClickDirective = longclick; 1169 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js 1170 | 1171 | 1172 | 1173 | 1174 | /***/ }) 1175 | 1176 | /******/ }); 1177 | //# sourceMappingURL=vue-long-click.common.js.map -------------------------------------------------------------------------------- /dist/libs/vue-long-click.common.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://vue-long-click/webpack/bootstrap","webpack://vue-long-click/./node_modules/core-js/modules/_iter-define.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-keys.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-dps.js","webpack://vue-long-click/./node_modules/core-js/modules/_dom-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_redefine.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_wks.js","webpack://vue-long-click/./node_modules/core-js/modules/_library.js","webpack://vue-long-click/./node_modules/core-js/modules/_cof.js","webpack://vue-long-click/./node_modules/core-js/modules/_hide.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-gpo.js","webpack://vue-long-click/./node_modules/core-js/modules/_iter-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-integer.js","webpack://vue-long-click/./node_modules/core-js/modules/_property-desc.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_shared.js","webpack://vue-long-click/./node_modules/core-js/modules/_export.js","webpack://vue-long-click/./node_modules/core-js/modules/_shared-key.js","webpack://vue-long-click/./node_modules/core-js/modules/_iobject.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-long-click/./node_modules/core-js/modules/_has.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-long-click/./node_modules/core-js/modules/_global.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-long-click/./node_modules/core-js/modules/_fails.js","webpack://vue-long-click/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://vue-long-click/./node_modules/core-js/modules/es6.function.name.js","webpack://vue-long-click/./node_modules/core-js/modules/_core.js","webpack://vue-long-click/./node_modules/core-js/modules/_iterators.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-dp.js","webpack://vue-long-click/./node_modules/core-js/modules/_ctx.js","webpack://vue-long-click/./node_modules/core-js/modules/_add-to-unscopables.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-length.js","webpack://vue-long-click/./node_modules/core-js/modules/_descriptors.js","webpack://vue-long-click/./node_modules/core-js/modules/web.dom.iterable.js","webpack://vue-long-click/./node_modules/core-js/modules/_defined.js","webpack://vue-long-click/./node_modules/core-js/modules/_array-includes.js","webpack://vue-long-click/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-long-click/./node_modules/core-js/modules/_uid.js","webpack://vue-long-click/./node_modules/core-js/modules/es6.array.iterator.js","webpack://vue-long-click/./node_modules/core-js/modules/_an-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-keys-internal.js","webpack://vue-long-click/./node_modules/core-js/modules/_is-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_iter-step.js","webpack://vue-long-click/./node_modules/core-js/modules/_a-function.js","webpack://vue-long-click/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-long-click/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-long-click/./node_modules/core-js/modules/_function-to-string.js","webpack://vue-long-click/./node_modules/core-js/modules/_html.js","webpack://vue-long-click/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-long-click/./src/directives/longclick.js","webpack://vue-long-click/./src/index.js","webpack://vue-long-click/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js"],"names":["delay","interval","bind","el","binding","vNode","value","compName","context","name","warn","expression","console","pressTimer","pressInterval","start","e","type","button","setTimeout","setInterval","handler","cancel","clearTimeout","clearInterval","forEach","addEventListener","longClickDirective","longClick"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;AClFa;AACb,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAW;AACjC,eAAe,mBAAO,CAAC,MAAa;AACpC,WAAW,mBAAO,CAAC,MAAS;AAC5B,gBAAgB,mBAAO,CAAC,MAAc;AACtC,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C,qBAAqB,mBAAO,CAAC,MAAsB;AACnD,qBAAqB,mBAAO,C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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzDA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,eAAe,mBAAO,CAAC,MAAc;AACrC,sBAAsB,mBAAO,CAAC,MAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;ACtBA,kBAAkB,mBAAO,CAAC,MAAgB,MAAM,mBAAO,CAAC,MAAU;AAClE,+BAA+B,mBAAO,CAAC,MAAe,gBAAgB,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,uBAAuB,mBAAO,CAAC,MAAuB;AACtD,WAAW,mBAAO,CAAC,MAAc;AACjC,gBAAgB,mBAAO,CAAC,MAAc;AACtC,gBAAgB,mBAAO,CAAC,MAAe;;AAEvC;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,MAAgB;AACzC,gCAAgC;AAChC,cAAc;AACd,iBAAiB;AACjB;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;;;;;;;;ACjCA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;;;;;;;;ACJA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAe;AACvC,mBAAmB,mBAAO,CAAC,MAAmB;AAC9C,eAAe,mBAAO,CAAC,MAAe;;AAEtC;AACA;AACA;AACA;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sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","module.exports = {};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","export default ({delay = 400, interval = 50}) => ({\n bind: function (el, binding, vNode) {\n if (typeof binding.value !== 'function') {\n const compName = vNode.context.name\n let warn = `[longclick:] provided expression '${binding.expression}' is not a function, but has to be`\n if (compName) { warn += `Found in component '${compName}' ` }\n console.warn(warn) // eslint-disable-line\n }\n\n let pressTimer = null\n let pressInterval = null\n\n const start = (e) => {\n if (e.type === 'click' && e.button !== 0) {\n return\n }\n\n if (pressTimer === null) {\n pressTimer = setTimeout(() => {\n if (interval && interval > 0) {\n pressInterval = setInterval(() => {\n handler()\n }, interval)\n }\n handler()\n }, delay)\n }\n }\n\n // Cancel Timeout\n const cancel = () => {\n if (pressTimer !== null) {\n clearTimeout(pressTimer)\n pressTimer = null\n }\n if (pressInterval) {\n clearInterval(pressInterval)\n pressInterval = null\n }\n }\n // Run Function\n const handler = (e) => {\n binding.value(e)\n }\n\n ;['mousedown', 'touchstart'].forEach(e => el.addEventListener(e, start))\n ;['click', 'mouseout', 'touchend', 'touchcancel'].forEach(e => el.addEventListener(e, cancel))\n }\n})\n","import longClick from './directives/longclick'\n\nexport const longClickDirective = longClick\n","import './setPublicPath'\nexport * from '~entry'\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/libs/vue-long-click.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if(typeof exports === 'object' && typeof module === 'object') 3 | module.exports = factory(); 4 | else if(typeof define === 'function' && define.amd) 5 | define([], factory); 6 | else if(typeof exports === 'object') 7 | exports["vue-long-click"] = factory(); 8 | else 9 | root["vue-long-click"] = factory(); 10 | })((typeof self !== 'undefined' ? self : this), function() { 11 | return /******/ (function(modules) { // webpackBootstrap 12 | /******/ // The module cache 13 | /******/ var installedModules = {}; 14 | /******/ 15 | /******/ // The require function 16 | /******/ function __webpack_require__(moduleId) { 17 | /******/ 18 | /******/ // Check if module is in cache 19 | /******/ if(installedModules[moduleId]) { 20 | /******/ return installedModules[moduleId].exports; 21 | /******/ } 22 | /******/ // Create a new module (and put it into the cache) 23 | /******/ var module = installedModules[moduleId] = { 24 | /******/ i: moduleId, 25 | /******/ l: false, 26 | /******/ exports: {} 27 | /******/ }; 28 | /******/ 29 | /******/ // Execute the module function 30 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 31 | /******/ 32 | /******/ // Flag the module as loaded 33 | /******/ module.l = true; 34 | /******/ 35 | /******/ // Return the exports of the module 36 | /******/ return module.exports; 37 | /******/ } 38 | /******/ 39 | /******/ 40 | /******/ // expose the modules object (__webpack_modules__) 41 | /******/ __webpack_require__.m = modules; 42 | /******/ 43 | /******/ // expose the module cache 44 | /******/ __webpack_require__.c = installedModules; 45 | /******/ 46 | /******/ // define getter function for harmony exports 47 | /******/ __webpack_require__.d = function(exports, name, getter) { 48 | /******/ if(!__webpack_require__.o(exports, name)) { 49 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 50 | /******/ } 51 | /******/ }; 52 | /******/ 53 | /******/ // define __esModule on exports 54 | /******/ __webpack_require__.r = function(exports) { 55 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 56 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 57 | /******/ } 58 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 59 | /******/ }; 60 | /******/ 61 | /******/ // create a fake namespace object 62 | /******/ // mode & 1: value is a module id, require it 63 | /******/ // mode & 2: merge all properties of value into the ns 64 | /******/ // mode & 4: return value when already ns object 65 | /******/ // mode & 8|1: behave like require 66 | /******/ __webpack_require__.t = function(value, mode) { 67 | /******/ if(mode & 1) value = __webpack_require__(value); 68 | /******/ if(mode & 8) return value; 69 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 70 | /******/ var ns = Object.create(null); 71 | /******/ __webpack_require__.r(ns); 72 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 73 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 74 | /******/ return ns; 75 | /******/ }; 76 | /******/ 77 | /******/ // getDefaultExport function for compatibility with non-harmony modules 78 | /******/ __webpack_require__.n = function(module) { 79 | /******/ var getter = module && module.__esModule ? 80 | /******/ function getDefault() { return module['default']; } : 81 | /******/ function getModuleExports() { return module; }; 82 | /******/ __webpack_require__.d(getter, 'a', getter); 83 | /******/ return getter; 84 | /******/ }; 85 | /******/ 86 | /******/ // Object.prototype.hasOwnProperty.call 87 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 88 | /******/ 89 | /******/ // __webpack_public_path__ 90 | /******/ __webpack_require__.p = ""; 91 | /******/ 92 | /******/ 93 | /******/ // Load entry module and return exports 94 | /******/ return __webpack_require__(__webpack_require__.s = "fae3"); 95 | /******/ }) 96 | /************************************************************************/ 97 | /******/ ({ 98 | 99 | /***/ "01f9": 100 | /***/ (function(module, exports, __webpack_require__) { 101 | 102 | "use strict"; 103 | 104 | var LIBRARY = __webpack_require__("2d00"); 105 | var $export = __webpack_require__("5ca1"); 106 | var redefine = __webpack_require__("2aba"); 107 | var hide = __webpack_require__("32e9"); 108 | var Iterators = __webpack_require__("84f2"); 109 | var $iterCreate = __webpack_require__("41a0"); 110 | var setToStringTag = __webpack_require__("7f20"); 111 | var getPrototypeOf = __webpack_require__("38fd"); 112 | var ITERATOR = __webpack_require__("2b4c")('iterator'); 113 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 114 | var FF_ITERATOR = '@@iterator'; 115 | var KEYS = 'keys'; 116 | var VALUES = 'values'; 117 | 118 | var returnThis = function () { return this; }; 119 | 120 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 121 | $iterCreate(Constructor, NAME, next); 122 | var getMethod = function (kind) { 123 | if (!BUGGY && kind in proto) return proto[kind]; 124 | switch (kind) { 125 | case KEYS: return function keys() { return new Constructor(this, kind); }; 126 | case VALUES: return function values() { return new Constructor(this, kind); }; 127 | } return function entries() { return new Constructor(this, kind); }; 128 | }; 129 | var TAG = NAME + ' Iterator'; 130 | var DEF_VALUES = DEFAULT == VALUES; 131 | var VALUES_BUG = false; 132 | var proto = Base.prototype; 133 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 134 | var $default = $native || getMethod(DEFAULT); 135 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 136 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 137 | var methods, key, IteratorPrototype; 138 | // Fix native 139 | if ($anyNative) { 140 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 141 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 142 | // Set @@toStringTag to native iterators 143 | setToStringTag(IteratorPrototype, TAG, true); 144 | // fix for some old engines 145 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 146 | } 147 | } 148 | // fix Array#{values, @@iterator}.name in V8 / FF 149 | if (DEF_VALUES && $native && $native.name !== VALUES) { 150 | VALUES_BUG = true; 151 | $default = function values() { return $native.call(this); }; 152 | } 153 | // Define iterator 154 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 155 | hide(proto, ITERATOR, $default); 156 | } 157 | // Plug for library 158 | Iterators[NAME] = $default; 159 | Iterators[TAG] = returnThis; 160 | if (DEFAULT) { 161 | methods = { 162 | values: DEF_VALUES ? $default : getMethod(VALUES), 163 | keys: IS_SET ? $default : getMethod(KEYS), 164 | entries: $entries 165 | }; 166 | if (FORCED) for (key in methods) { 167 | if (!(key in proto)) redefine(proto, key, methods[key]); 168 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 169 | } 170 | return methods; 171 | }; 172 | 173 | 174 | /***/ }), 175 | 176 | /***/ "0d58": 177 | /***/ (function(module, exports, __webpack_require__) { 178 | 179 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 180 | var $keys = __webpack_require__("ce10"); 181 | var enumBugKeys = __webpack_require__("e11e"); 182 | 183 | module.exports = Object.keys || function keys(O) { 184 | return $keys(O, enumBugKeys); 185 | }; 186 | 187 | 188 | /***/ }), 189 | 190 | /***/ "1495": 191 | /***/ (function(module, exports, __webpack_require__) { 192 | 193 | var dP = __webpack_require__("86cc"); 194 | var anObject = __webpack_require__("cb7c"); 195 | var getKeys = __webpack_require__("0d58"); 196 | 197 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { 198 | anObject(O); 199 | var keys = getKeys(Properties); 200 | var length = keys.length; 201 | var i = 0; 202 | var P; 203 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 204 | return O; 205 | }; 206 | 207 | 208 | /***/ }), 209 | 210 | /***/ "230e": 211 | /***/ (function(module, exports, __webpack_require__) { 212 | 213 | var isObject = __webpack_require__("d3f4"); 214 | var document = __webpack_require__("7726").document; 215 | // typeof document.createElement is 'object' in old IE 216 | var is = isObject(document) && isObject(document.createElement); 217 | module.exports = function (it) { 218 | return is ? document.createElement(it) : {}; 219 | }; 220 | 221 | 222 | /***/ }), 223 | 224 | /***/ "2aba": 225 | /***/ (function(module, exports, __webpack_require__) { 226 | 227 | var global = __webpack_require__("7726"); 228 | var hide = __webpack_require__("32e9"); 229 | var has = __webpack_require__("69a8"); 230 | var SRC = __webpack_require__("ca5a")('src'); 231 | var $toString = __webpack_require__("fa5b"); 232 | var TO_STRING = 'toString'; 233 | var TPL = ('' + $toString).split(TO_STRING); 234 | 235 | __webpack_require__("8378").inspectSource = function (it) { 236 | return $toString.call(it); 237 | }; 238 | 239 | (module.exports = function (O, key, val, safe) { 240 | var isFunction = typeof val == 'function'; 241 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 242 | if (O[key] === val) return; 243 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 244 | if (O === global) { 245 | O[key] = val; 246 | } else if (!safe) { 247 | delete O[key]; 248 | hide(O, key, val); 249 | } else if (O[key]) { 250 | O[key] = val; 251 | } else { 252 | hide(O, key, val); 253 | } 254 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 255 | })(Function.prototype, TO_STRING, function toString() { 256 | return typeof this == 'function' && this[SRC] || $toString.call(this); 257 | }); 258 | 259 | 260 | /***/ }), 261 | 262 | /***/ "2aeb": 263 | /***/ (function(module, exports, __webpack_require__) { 264 | 265 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 266 | var anObject = __webpack_require__("cb7c"); 267 | var dPs = __webpack_require__("1495"); 268 | var enumBugKeys = __webpack_require__("e11e"); 269 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 270 | var Empty = function () { /* empty */ }; 271 | var PROTOTYPE = 'prototype'; 272 | 273 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 274 | var createDict = function () { 275 | // Thrash, waste and sodomy: IE GC bug 276 | var iframe = __webpack_require__("230e")('iframe'); 277 | var i = enumBugKeys.length; 278 | var lt = '<'; 279 | var gt = '>'; 280 | var iframeDocument; 281 | iframe.style.display = 'none'; 282 | __webpack_require__("fab2").appendChild(iframe); 283 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 284 | // createDict = iframe.contentWindow.Object; 285 | // html.removeChild(iframe); 286 | iframeDocument = iframe.contentWindow.document; 287 | iframeDocument.open(); 288 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 289 | iframeDocument.close(); 290 | createDict = iframeDocument.F; 291 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 292 | return createDict(); 293 | }; 294 | 295 | module.exports = Object.create || function create(O, Properties) { 296 | var result; 297 | if (O !== null) { 298 | Empty[PROTOTYPE] = anObject(O); 299 | result = new Empty(); 300 | Empty[PROTOTYPE] = null; 301 | // add "__proto__" for Object.getPrototypeOf polyfill 302 | result[IE_PROTO] = O; 303 | } else result = createDict(); 304 | return Properties === undefined ? result : dPs(result, Properties); 305 | }; 306 | 307 | 308 | /***/ }), 309 | 310 | /***/ "2b4c": 311 | /***/ (function(module, exports, __webpack_require__) { 312 | 313 | var store = __webpack_require__("5537")('wks'); 314 | var uid = __webpack_require__("ca5a"); 315 | var Symbol = __webpack_require__("7726").Symbol; 316 | var USE_SYMBOL = typeof Symbol == 'function'; 317 | 318 | var $exports = module.exports = function (name) { 319 | return store[name] || (store[name] = 320 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 321 | }; 322 | 323 | $exports.store = store; 324 | 325 | 326 | /***/ }), 327 | 328 | /***/ "2d00": 329 | /***/ (function(module, exports) { 330 | 331 | module.exports = false; 332 | 333 | 334 | /***/ }), 335 | 336 | /***/ "2d95": 337 | /***/ (function(module, exports) { 338 | 339 | var toString = {}.toString; 340 | 341 | module.exports = function (it) { 342 | return toString.call(it).slice(8, -1); 343 | }; 344 | 345 | 346 | /***/ }), 347 | 348 | /***/ "32e9": 349 | /***/ (function(module, exports, __webpack_require__) { 350 | 351 | var dP = __webpack_require__("86cc"); 352 | var createDesc = __webpack_require__("4630"); 353 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) { 354 | return dP.f(object, key, createDesc(1, value)); 355 | } : function (object, key, value) { 356 | object[key] = value; 357 | return object; 358 | }; 359 | 360 | 361 | /***/ }), 362 | 363 | /***/ "38fd": 364 | /***/ (function(module, exports, __webpack_require__) { 365 | 366 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 367 | var has = __webpack_require__("69a8"); 368 | var toObject = __webpack_require__("4bf8"); 369 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 370 | var ObjectProto = Object.prototype; 371 | 372 | module.exports = Object.getPrototypeOf || function (O) { 373 | O = toObject(O); 374 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 375 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 376 | return O.constructor.prototype; 377 | } return O instanceof Object ? ObjectProto : null; 378 | }; 379 | 380 | 381 | /***/ }), 382 | 383 | /***/ "41a0": 384 | /***/ (function(module, exports, __webpack_require__) { 385 | 386 | "use strict"; 387 | 388 | var create = __webpack_require__("2aeb"); 389 | var descriptor = __webpack_require__("4630"); 390 | var setToStringTag = __webpack_require__("7f20"); 391 | var IteratorPrototype = {}; 392 | 393 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 394 | __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; }); 395 | 396 | module.exports = function (Constructor, NAME, next) { 397 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 398 | setToStringTag(Constructor, NAME + ' Iterator'); 399 | }; 400 | 401 | 402 | /***/ }), 403 | 404 | /***/ "4588": 405 | /***/ (function(module, exports) { 406 | 407 | // 7.1.4 ToInteger 408 | var ceil = Math.ceil; 409 | var floor = Math.floor; 410 | module.exports = function (it) { 411 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 412 | }; 413 | 414 | 415 | /***/ }), 416 | 417 | /***/ "4630": 418 | /***/ (function(module, exports) { 419 | 420 | module.exports = function (bitmap, value) { 421 | return { 422 | enumerable: !(bitmap & 1), 423 | configurable: !(bitmap & 2), 424 | writable: !(bitmap & 4), 425 | value: value 426 | }; 427 | }; 428 | 429 | 430 | /***/ }), 431 | 432 | /***/ "4bf8": 433 | /***/ (function(module, exports, __webpack_require__) { 434 | 435 | // 7.1.13 ToObject(argument) 436 | var defined = __webpack_require__("be13"); 437 | module.exports = function (it) { 438 | return Object(defined(it)); 439 | }; 440 | 441 | 442 | /***/ }), 443 | 444 | /***/ "5537": 445 | /***/ (function(module, exports, __webpack_require__) { 446 | 447 | var core = __webpack_require__("8378"); 448 | var global = __webpack_require__("7726"); 449 | var SHARED = '__core-js_shared__'; 450 | var store = global[SHARED] || (global[SHARED] = {}); 451 | 452 | (module.exports = function (key, value) { 453 | return store[key] || (store[key] = value !== undefined ? value : {}); 454 | })('versions', []).push({ 455 | version: core.version, 456 | mode: __webpack_require__("2d00") ? 'pure' : 'global', 457 | copyright: '© 2020 Denis Pushkarev (zloirock.ru)' 458 | }); 459 | 460 | 461 | /***/ }), 462 | 463 | /***/ "5ca1": 464 | /***/ (function(module, exports, __webpack_require__) { 465 | 466 | var global = __webpack_require__("7726"); 467 | var core = __webpack_require__("8378"); 468 | var hide = __webpack_require__("32e9"); 469 | var redefine = __webpack_require__("2aba"); 470 | var ctx = __webpack_require__("9b43"); 471 | var PROTOTYPE = 'prototype'; 472 | 473 | var $export = function (type, name, source) { 474 | var IS_FORCED = type & $export.F; 475 | var IS_GLOBAL = type & $export.G; 476 | var IS_STATIC = type & $export.S; 477 | var IS_PROTO = type & $export.P; 478 | var IS_BIND = type & $export.B; 479 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 480 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 481 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 482 | var key, own, out, exp; 483 | if (IS_GLOBAL) source = name; 484 | for (key in source) { 485 | // contains in native 486 | own = !IS_FORCED && target && target[key] !== undefined; 487 | // export native or passed 488 | out = (own ? target : source)[key]; 489 | // bind timers to global for call from export context 490 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 491 | // extend global 492 | if (target) redefine(target, key, out, type & $export.U); 493 | // export 494 | if (exports[key] != out) hide(exports, key, exp); 495 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 496 | } 497 | }; 498 | global.core = core; 499 | // type bitmap 500 | $export.F = 1; // forced 501 | $export.G = 2; // global 502 | $export.S = 4; // static 503 | $export.P = 8; // proto 504 | $export.B = 16; // bind 505 | $export.W = 32; // wrap 506 | $export.U = 64; // safe 507 | $export.R = 128; // real proto method for `library` 508 | module.exports = $export; 509 | 510 | 511 | /***/ }), 512 | 513 | /***/ "613b": 514 | /***/ (function(module, exports, __webpack_require__) { 515 | 516 | var shared = __webpack_require__("5537")('keys'); 517 | var uid = __webpack_require__("ca5a"); 518 | module.exports = function (key) { 519 | return shared[key] || (shared[key] = uid(key)); 520 | }; 521 | 522 | 523 | /***/ }), 524 | 525 | /***/ "626a": 526 | /***/ (function(module, exports, __webpack_require__) { 527 | 528 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 529 | var cof = __webpack_require__("2d95"); 530 | // eslint-disable-next-line no-prototype-builtins 531 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 532 | return cof(it) == 'String' ? it.split('') : Object(it); 533 | }; 534 | 535 | 536 | /***/ }), 537 | 538 | /***/ "6821": 539 | /***/ (function(module, exports, __webpack_require__) { 540 | 541 | // to indexed object, toObject with fallback for non-array-like ES3 strings 542 | var IObject = __webpack_require__("626a"); 543 | var defined = __webpack_require__("be13"); 544 | module.exports = function (it) { 545 | return IObject(defined(it)); 546 | }; 547 | 548 | 549 | /***/ }), 550 | 551 | /***/ "69a8": 552 | /***/ (function(module, exports) { 553 | 554 | var hasOwnProperty = {}.hasOwnProperty; 555 | module.exports = function (it, key) { 556 | return hasOwnProperty.call(it, key); 557 | }; 558 | 559 | 560 | /***/ }), 561 | 562 | /***/ "6a99": 563 | /***/ (function(module, exports, __webpack_require__) { 564 | 565 | // 7.1.1 ToPrimitive(input [, PreferredType]) 566 | var isObject = __webpack_require__("d3f4"); 567 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 568 | // and the second argument - flag - preferred type is a string 569 | module.exports = function (it, S) { 570 | if (!isObject(it)) return it; 571 | var fn, val; 572 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 573 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 574 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 575 | throw TypeError("Can't convert object to primitive value"); 576 | }; 577 | 578 | 579 | /***/ }), 580 | 581 | /***/ "7726": 582 | /***/ (function(module, exports) { 583 | 584 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 585 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 586 | ? window : typeof self != 'undefined' && self.Math == Math ? self 587 | // eslint-disable-next-line no-new-func 588 | : Function('return this')(); 589 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 590 | 591 | 592 | /***/ }), 593 | 594 | /***/ "77f1": 595 | /***/ (function(module, exports, __webpack_require__) { 596 | 597 | var toInteger = __webpack_require__("4588"); 598 | var max = Math.max; 599 | var min = Math.min; 600 | module.exports = function (index, length) { 601 | index = toInteger(index); 602 | return index < 0 ? max(index + length, 0) : min(index, length); 603 | }; 604 | 605 | 606 | /***/ }), 607 | 608 | /***/ "79e5": 609 | /***/ (function(module, exports) { 610 | 611 | module.exports = function (exec) { 612 | try { 613 | return !!exec(); 614 | } catch (e) { 615 | return true; 616 | } 617 | }; 618 | 619 | 620 | /***/ }), 621 | 622 | /***/ "7f20": 623 | /***/ (function(module, exports, __webpack_require__) { 624 | 625 | var def = __webpack_require__("86cc").f; 626 | var has = __webpack_require__("69a8"); 627 | var TAG = __webpack_require__("2b4c")('toStringTag'); 628 | 629 | module.exports = function (it, tag, stat) { 630 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 631 | }; 632 | 633 | 634 | /***/ }), 635 | 636 | /***/ "7f7f": 637 | /***/ (function(module, exports, __webpack_require__) { 638 | 639 | var dP = __webpack_require__("86cc").f; 640 | var FProto = Function.prototype; 641 | var nameRE = /^\s*function ([^ (]*)/; 642 | var NAME = 'name'; 643 | 644 | // 19.2.4.2 name 645 | NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { 646 | configurable: true, 647 | get: function () { 648 | try { 649 | return ('' + this).match(nameRE)[1]; 650 | } catch (e) { 651 | return ''; 652 | } 653 | } 654 | }); 655 | 656 | 657 | /***/ }), 658 | 659 | /***/ "8378": 660 | /***/ (function(module, exports) { 661 | 662 | var core = module.exports = { version: '2.6.12' }; 663 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 664 | 665 | 666 | /***/ }), 667 | 668 | /***/ "84f2": 669 | /***/ (function(module, exports) { 670 | 671 | module.exports = {}; 672 | 673 | 674 | /***/ }), 675 | 676 | /***/ "86cc": 677 | /***/ (function(module, exports, __webpack_require__) { 678 | 679 | var anObject = __webpack_require__("cb7c"); 680 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 681 | var toPrimitive = __webpack_require__("6a99"); 682 | var dP = Object.defineProperty; 683 | 684 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 685 | anObject(O); 686 | P = toPrimitive(P, true); 687 | anObject(Attributes); 688 | if (IE8_DOM_DEFINE) try { 689 | return dP(O, P, Attributes); 690 | } catch (e) { /* empty */ } 691 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 692 | if ('value' in Attributes) O[P] = Attributes.value; 693 | return O; 694 | }; 695 | 696 | 697 | /***/ }), 698 | 699 | /***/ "9b43": 700 | /***/ (function(module, exports, __webpack_require__) { 701 | 702 | // optional / simple context binding 703 | var aFunction = __webpack_require__("d8e8"); 704 | module.exports = function (fn, that, length) { 705 | aFunction(fn); 706 | if (that === undefined) return fn; 707 | switch (length) { 708 | case 1: return function (a) { 709 | return fn.call(that, a); 710 | }; 711 | case 2: return function (a, b) { 712 | return fn.call(that, a, b); 713 | }; 714 | case 3: return function (a, b, c) { 715 | return fn.call(that, a, b, c); 716 | }; 717 | } 718 | return function (/* ...args */) { 719 | return fn.apply(that, arguments); 720 | }; 721 | }; 722 | 723 | 724 | /***/ }), 725 | 726 | /***/ "9c6c": 727 | /***/ (function(module, exports, __webpack_require__) { 728 | 729 | // 22.1.3.31 Array.prototype[@@unscopables] 730 | var UNSCOPABLES = __webpack_require__("2b4c")('unscopables'); 731 | var ArrayProto = Array.prototype; 732 | if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {}); 733 | module.exports = function (key) { 734 | ArrayProto[UNSCOPABLES][key] = true; 735 | }; 736 | 737 | 738 | /***/ }), 739 | 740 | /***/ "9def": 741 | /***/ (function(module, exports, __webpack_require__) { 742 | 743 | // 7.1.15 ToLength 744 | var toInteger = __webpack_require__("4588"); 745 | var min = Math.min; 746 | module.exports = function (it) { 747 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 748 | }; 749 | 750 | 751 | /***/ }), 752 | 753 | /***/ "9e1e": 754 | /***/ (function(module, exports, __webpack_require__) { 755 | 756 | // Thank's IE8 for his funny defineProperty 757 | module.exports = !__webpack_require__("79e5")(function () { 758 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 759 | }); 760 | 761 | 762 | /***/ }), 763 | 764 | /***/ "ac6a": 765 | /***/ (function(module, exports, __webpack_require__) { 766 | 767 | var $iterators = __webpack_require__("cadf"); 768 | var getKeys = __webpack_require__("0d58"); 769 | var redefine = __webpack_require__("2aba"); 770 | var global = __webpack_require__("7726"); 771 | var hide = __webpack_require__("32e9"); 772 | var Iterators = __webpack_require__("84f2"); 773 | var wks = __webpack_require__("2b4c"); 774 | var ITERATOR = wks('iterator'); 775 | var TO_STRING_TAG = wks('toStringTag'); 776 | var ArrayValues = Iterators.Array; 777 | 778 | var DOMIterables = { 779 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 780 | CSSStyleDeclaration: false, 781 | CSSValueList: false, 782 | ClientRectList: false, 783 | DOMRectList: false, 784 | DOMStringList: false, 785 | DOMTokenList: true, 786 | DataTransferItemList: false, 787 | FileList: false, 788 | HTMLAllCollection: false, 789 | HTMLCollection: false, 790 | HTMLFormElement: false, 791 | HTMLSelectElement: false, 792 | MediaList: true, // TODO: Not spec compliant, should be false. 793 | MimeTypeArray: false, 794 | NamedNodeMap: false, 795 | NodeList: true, 796 | PaintRequestList: false, 797 | Plugin: false, 798 | PluginArray: false, 799 | SVGLengthList: false, 800 | SVGNumberList: false, 801 | SVGPathSegList: false, 802 | SVGPointList: false, 803 | SVGStringList: false, 804 | SVGTransformList: false, 805 | SourceBufferList: false, 806 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 807 | TextTrackCueList: false, 808 | TextTrackList: false, 809 | TouchList: false 810 | }; 811 | 812 | for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { 813 | var NAME = collections[i]; 814 | var explicit = DOMIterables[NAME]; 815 | var Collection = global[NAME]; 816 | var proto = Collection && Collection.prototype; 817 | var key; 818 | if (proto) { 819 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 820 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 821 | Iterators[NAME] = ArrayValues; 822 | if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); 823 | } 824 | } 825 | 826 | 827 | /***/ }), 828 | 829 | /***/ "be13": 830 | /***/ (function(module, exports) { 831 | 832 | // 7.2.1 RequireObjectCoercible(argument) 833 | module.exports = function (it) { 834 | if (it == undefined) throw TypeError("Can't call method on " + it); 835 | return it; 836 | }; 837 | 838 | 839 | /***/ }), 840 | 841 | /***/ "c366": 842 | /***/ (function(module, exports, __webpack_require__) { 843 | 844 | // false -> Array#indexOf 845 | // true -> Array#includes 846 | var toIObject = __webpack_require__("6821"); 847 | var toLength = __webpack_require__("9def"); 848 | var toAbsoluteIndex = __webpack_require__("77f1"); 849 | module.exports = function (IS_INCLUDES) { 850 | return function ($this, el, fromIndex) { 851 | var O = toIObject($this); 852 | var length = toLength(O.length); 853 | var index = toAbsoluteIndex(fromIndex, length); 854 | var value; 855 | // Array#includes uses SameValueZero equality algorithm 856 | // eslint-disable-next-line no-self-compare 857 | if (IS_INCLUDES && el != el) while (length > index) { 858 | value = O[index++]; 859 | // eslint-disable-next-line no-self-compare 860 | if (value != value) return true; 861 | // Array#indexOf ignores holes, Array#includes - not 862 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 863 | if (O[index] === el) return IS_INCLUDES || index || 0; 864 | } return !IS_INCLUDES && -1; 865 | }; 866 | }; 867 | 868 | 869 | /***/ }), 870 | 871 | /***/ "c69a": 872 | /***/ (function(module, exports, __webpack_require__) { 873 | 874 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () { 875 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; 876 | }); 877 | 878 | 879 | /***/ }), 880 | 881 | /***/ "ca5a": 882 | /***/ (function(module, exports) { 883 | 884 | var id = 0; 885 | var px = Math.random(); 886 | module.exports = function (key) { 887 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 888 | }; 889 | 890 | 891 | /***/ }), 892 | 893 | /***/ "cadf": 894 | /***/ (function(module, exports, __webpack_require__) { 895 | 896 | "use strict"; 897 | 898 | var addToUnscopables = __webpack_require__("9c6c"); 899 | var step = __webpack_require__("d53b"); 900 | var Iterators = __webpack_require__("84f2"); 901 | var toIObject = __webpack_require__("6821"); 902 | 903 | // 22.1.3.4 Array.prototype.entries() 904 | // 22.1.3.13 Array.prototype.keys() 905 | // 22.1.3.29 Array.prototype.values() 906 | // 22.1.3.30 Array.prototype[@@iterator]() 907 | module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) { 908 | this._t = toIObject(iterated); // target 909 | this._i = 0; // next index 910 | this._k = kind; // kind 911 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 912 | }, function () { 913 | var O = this._t; 914 | var kind = this._k; 915 | var index = this._i++; 916 | if (!O || index >= O.length) { 917 | this._t = undefined; 918 | return step(1); 919 | } 920 | if (kind == 'keys') return step(0, index); 921 | if (kind == 'values') return step(0, O[index]); 922 | return step(0, [index, O[index]]); 923 | }, 'values'); 924 | 925 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 926 | Iterators.Arguments = Iterators.Array; 927 | 928 | addToUnscopables('keys'); 929 | addToUnscopables('values'); 930 | addToUnscopables('entries'); 931 | 932 | 933 | /***/ }), 934 | 935 | /***/ "cb7c": 936 | /***/ (function(module, exports, __webpack_require__) { 937 | 938 | var isObject = __webpack_require__("d3f4"); 939 | module.exports = function (it) { 940 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 941 | return it; 942 | }; 943 | 944 | 945 | /***/ }), 946 | 947 | /***/ "ce10": 948 | /***/ (function(module, exports, __webpack_require__) { 949 | 950 | var has = __webpack_require__("69a8"); 951 | var toIObject = __webpack_require__("6821"); 952 | var arrayIndexOf = __webpack_require__("c366")(false); 953 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 954 | 955 | module.exports = function (object, names) { 956 | var O = toIObject(object); 957 | var i = 0; 958 | var result = []; 959 | var key; 960 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 961 | // Don't enum bug & hidden keys 962 | while (names.length > i) if (has(O, key = names[i++])) { 963 | ~arrayIndexOf(result, key) || result.push(key); 964 | } 965 | return result; 966 | }; 967 | 968 | 969 | /***/ }), 970 | 971 | /***/ "d3f4": 972 | /***/ (function(module, exports) { 973 | 974 | module.exports = function (it) { 975 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 976 | }; 977 | 978 | 979 | /***/ }), 980 | 981 | /***/ "d53b": 982 | /***/ (function(module, exports) { 983 | 984 | module.exports = function (done, value) { 985 | return { value: value, done: !!done }; 986 | }; 987 | 988 | 989 | /***/ }), 990 | 991 | /***/ "d8e8": 992 | /***/ (function(module, exports) { 993 | 994 | module.exports = function (it) { 995 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 996 | return it; 997 | }; 998 | 999 | 1000 | /***/ }), 1001 | 1002 | /***/ "e11e": 1003 | /***/ (function(module, exports) { 1004 | 1005 | // IE 8- don't enum bug keys 1006 | module.exports = ( 1007 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1008 | ).split(','); 1009 | 1010 | 1011 | /***/ }), 1012 | 1013 | /***/ "f6fd": 1014 | /***/ (function(module, exports) { 1015 | 1016 | // document.currentScript polyfill by Adam Miller 1017 | 1018 | // MIT license 1019 | 1020 | (function(document){ 1021 | var currentScript = "currentScript", 1022 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1023 | 1024 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1025 | if (!(currentScript in document)) { 1026 | Object.defineProperty(document, currentScript, { 1027 | get: function(){ 1028 | 1029 | // IE 6-10 supports script readyState 1030 | // IE 10+ support stack trace 1031 | try { throw new Error(); } 1032 | catch (err) { 1033 | 1034 | // Find the second match for the "at" string to get file src url from stack. 1035 | // Specifically works with the format of stack traces in IE. 1036 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1037 | 1038 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1039 | for(i in scripts){ 1040 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1041 | return scripts[i]; 1042 | } 1043 | } 1044 | 1045 | // If no match, return null 1046 | return null; 1047 | } 1048 | } 1049 | }); 1050 | } 1051 | })(document); 1052 | 1053 | 1054 | /***/ }), 1055 | 1056 | /***/ "fa5b": 1057 | /***/ (function(module, exports, __webpack_require__) { 1058 | 1059 | module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString); 1060 | 1061 | 1062 | /***/ }), 1063 | 1064 | /***/ "fab2": 1065 | /***/ (function(module, exports, __webpack_require__) { 1066 | 1067 | var document = __webpack_require__("7726").document; 1068 | module.exports = document && document.documentElement; 1069 | 1070 | 1071 | /***/ }), 1072 | 1073 | /***/ "fae3": 1074 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1075 | 1076 | "use strict"; 1077 | // ESM COMPAT FLAG 1078 | __webpack_require__.r(__webpack_exports__); 1079 | 1080 | // EXPORTS 1081 | __webpack_require__.d(__webpack_exports__, "longClickDirective", function() { return /* reexport */ longClickDirective; }); 1082 | 1083 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 1084 | // This file is imported into lib/wc client bundles. 1085 | 1086 | if (typeof window !== 'undefined') { 1087 | if (true) { 1088 | __webpack_require__("f6fd") 1089 | } 1090 | 1091 | var i 1092 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 1093 | __webpack_require__.p = i[1] // eslint-disable-line 1094 | } 1095 | } 1096 | 1097 | // Indicate to webpack that this file can be concatenated 1098 | /* harmony default export */ var setPublicPath = (null); 1099 | 1100 | // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 1101 | var web_dom_iterable = __webpack_require__("ac6a"); 1102 | 1103 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js 1104 | var es6_function_name = __webpack_require__("7f7f"); 1105 | 1106 | // CONCATENATED MODULE: ./src/directives/longclick.js 1107 | 1108 | 1109 | /* harmony default export */ var longclick = (function (_ref) { 1110 | var _ref$delay = _ref.delay, 1111 | delay = _ref$delay === void 0 ? 400 : _ref$delay, 1112 | _ref$interval = _ref.interval, 1113 | interval = _ref$interval === void 0 ? 50 : _ref$interval; 1114 | return { 1115 | bind: function bind(el, binding, vNode) { 1116 | if (typeof binding.value !== 'function') { 1117 | var compName = vNode.context.name; 1118 | var warn = "[longclick:] provided expression '".concat(binding.expression, "' is not a function, but has to be"); 1119 | 1120 | if (compName) { 1121 | warn += "Found in component '".concat(compName, "' "); 1122 | } 1123 | 1124 | console.warn(warn); // eslint-disable-line 1125 | } 1126 | 1127 | var pressTimer = null; 1128 | var pressInterval = null; 1129 | 1130 | var start = function start(e) { 1131 | if (e.type === 'click' && e.button !== 0) { 1132 | return; 1133 | } 1134 | 1135 | if (pressTimer === null) { 1136 | pressTimer = setTimeout(function () { 1137 | if (interval && interval > 0) { 1138 | pressInterval = setInterval(function () { 1139 | handler(); 1140 | }, interval); 1141 | } 1142 | 1143 | handler(); 1144 | }, delay); 1145 | } 1146 | }; // Cancel Timeout 1147 | 1148 | 1149 | var cancel = function cancel() { 1150 | if (pressTimer !== null) { 1151 | clearTimeout(pressTimer); 1152 | pressTimer = null; 1153 | } 1154 | 1155 | if (pressInterval) { 1156 | clearInterval(pressInterval); 1157 | pressInterval = null; 1158 | } 1159 | }; // Run Function 1160 | 1161 | 1162 | var handler = function handler(e) { 1163 | binding.value(e); 1164 | }; 1165 | 1166 | ['mousedown', 'touchstart'].forEach(function (e) { 1167 | return el.addEventListener(e, start); 1168 | }); 1169 | ['click', 'mouseout', 'touchend', 'touchcancel'].forEach(function (e) { 1170 | return el.addEventListener(e, cancel); 1171 | }); 1172 | } 1173 | }; 1174 | }); 1175 | // CONCATENATED MODULE: ./src/index.js 1176 | 1177 | var longClickDirective = longclick; 1178 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js 1179 | 1180 | 1181 | 1182 | 1183 | /***/ }) 1184 | 1185 | /******/ }); 1186 | }); 1187 | //# sourceMappingURL=vue-long-click.umd.js.map -------------------------------------------------------------------------------- /dist/libs/vue-long-click.umd.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://vue-long-click/webpack/universalModuleDefinition","webpack://vue-long-click/webpack/bootstrap","webpack://vue-long-click/./node_modules/core-js/modules/_iter-define.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-keys.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-dps.js","webpack://vue-long-click/./node_modules/core-js/modules/_dom-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_redefine.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_wks.js","webpack://vue-long-click/./node_modules/core-js/modules/_library.js","webpack://vue-long-click/./node_modules/core-js/modules/_cof.js","webpack://vue-long-click/./node_modules/core-js/modules/_hide.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-gpo.js","webpack://vue-long-click/./node_modules/core-js/modules/_iter-create.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-integer.js","webpack://vue-long-click/./node_modules/core-js/modules/_property-desc.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_shared.js","webpack://vue-long-click/./node_modules/core-js/modules/_export.js","webpack://vue-long-click/./node_modules/core-js/modules/_shared-key.js","webpack://vue-long-click/./node_modules/core-js/modules/_iobject.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-long-click/./node_modules/core-js/modules/_has.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-long-click/./node_modules/core-js/modules/_global.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-long-click/./node_modules/core-js/modules/_fails.js","webpack://vue-long-click/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://vue-long-click/./node_modules/core-js/modules/es6.function.name.js","webpack://vue-long-click/./node_modules/core-js/modules/_core.js","webpack://vue-long-click/./node_modules/core-js/modules/_iterators.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-dp.js","webpack://vue-long-click/./node_modules/core-js/modules/_ctx.js","webpack://vue-long-click/./node_modules/core-js/modules/_add-to-unscopables.js","webpack://vue-long-click/./node_modules/core-js/modules/_to-length.js","webpack://vue-long-click/./node_modules/core-js/modules/_descriptors.js","webpack://vue-long-click/./node_modules/core-js/modules/web.dom.iterable.js","webpack://vue-long-click/./node_modules/core-js/modules/_defined.js","webpack://vue-long-click/./node_modules/core-js/modules/_array-includes.js","webpack://vue-long-click/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-long-click/./node_modules/core-js/modules/_uid.js","webpack://vue-long-click/./node_modules/core-js/modules/es6.array.iterator.js","webpack://vue-long-click/./node_modules/core-js/modules/_an-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_object-keys-internal.js","webpack://vue-long-click/./node_modules/core-js/modules/_is-object.js","webpack://vue-long-click/./node_modules/core-js/modules/_iter-step.js","webpack://vue-long-click/./node_modules/core-js/modules/_a-function.js","webpack://vue-long-click/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-long-click/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-long-click/./node_modules/core-js/modules/_function-to-string.js","webpack://vue-long-click/./node_modules/core-js/modules/_html.js","webpack://vue-long-click/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-long-click/./src/directives/longclick.js","webpack://vue-long-click/./src/index.js","webpack://vue-long-click/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js"],"names":["delay","interval","bind","el","binding","vNode","value","compName","context","name","warn","expression","console","pressTimer","pressInterval","start","e","type","button","setTimeout","setInterval","handler","cancel","clearTimeout","clearInterval","forEach","addEventListener","longClickDirective","longClick"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;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CAACE,KAAR,CAAcU,CAAd;AACD,OAFD;;AAIC,OAAC,WAAD,EAAc,YAAd,EAA4BS,OAA5B,CAAoC,UAAAT,CAAC;AAAA,eAAIb,EAAE,CAACuB,gBAAH,CAAoBV,CAApB,EAAuBD,KAAvB,CAAJ;AAAA,OAArC;AACA,OAAC,OAAD,EAAU,UAAV,EAAsB,UAAtB,EAAkC,aAAlC,EAAiDU,OAAjD,CAAyD,UAAAT,CAAC;AAAA,eAAIb,EAAE,CAACuB,gBAAH,CAAoBV,CAApB,EAAuBM,MAAvB,CAAJ;AAAA,OAA1D;AACF;AA/C+C,GAAnC;AAAA,CAAf,E;;ACAA;AAEO,IAAMK,kBAAkB,GAAGC,SAA3B,C;;ACFiB;AACF","file":"vue-long-click.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-long-click\"] = factory();\n\telse\n\t\troot[\"vue-long-click\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","module.exports = {};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","export default ({delay = 400, interval = 50}) => ({\n bind: function (el, binding, vNode) {\n if (typeof binding.value !== 'function') {\n const compName = vNode.context.name\n let warn = `[longclick:] provided expression '${binding.expression}' is not a function, but has to be`\n if (compName) { warn += `Found in component '${compName}' ` }\n console.warn(warn) // eslint-disable-line\n }\n\n let pressTimer = null\n let pressInterval = null\n\n const start = (e) => {\n if (e.type === 'click' && e.button !== 0) {\n return\n }\n\n if (pressTimer === null) {\n pressTimer = setTimeout(() => {\n if (interval && interval > 0) {\n pressInterval = setInterval(() => {\n handler()\n }, interval)\n }\n handler()\n }, delay)\n }\n }\n\n // Cancel Timeout\n const cancel = () => {\n if (pressTimer !== null) {\n clearTimeout(pressTimer)\n pressTimer = null\n }\n if (pressInterval) {\n clearInterval(pressInterval)\n pressInterval = null\n }\n }\n // Run Function\n const handler = (e) => {\n binding.value(e)\n }\n\n ;['mousedown', 'touchstart'].forEach(e => el.addEventListener(e, start))\n ;['click', 'mouseout', 'touchend', 'touchcancel'].forEach(e => el.addEventListener(e, cancel))\n }\n})\n","import longClick from './directives/longclick'\n\nexport const longClickDirective = longClick\n","import './setPublicPath'\nexport * from '~entry'\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/libs/vue-long-click.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vue-long-click"]=n():t["vue-long-click"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fae3")}({"01f9":function(t,n,e){"use strict";var r=e("2d00"),o=e("5ca1"),i=e("2aba"),c=e("32e9"),u=e("84f2"),f=e("41a0"),a=e("7f20"),s=e("38fd"),l=e("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",b=function(){return this};t.exports=function(t,n,e,h,x,m,g){f(e,n,h);var S,O,w,j=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},L=n+" Iterator",_=x==y,T=!1,P=t.prototype,M=P[l]||P[d]||x&&P[x],k=M||j(x),E=x?_?j("entries"):k:void 0,F="Array"==n&&P.entries||M;if(F&&(w=s(F.call(new t)),w!==Object.prototype&&w.next&&(a(w,L,!0),r||"function"==typeof w[l]||c(w,l,b))),_&&M&&M.name!==y&&(T=!0,k=function(){return M.call(this)}),r&&!g||!p&&!T&&P[l]||c(P,l,k),u[n]=k,u[L]=b,x)if(S={values:_?k:j(y),keys:m?k:j(v),entries:E},g)for(O in S)O in P||i(P,O,S[O]);else o(o.P+o.F*(p||T),n,S);return S}},"0d58":function(t,n,e){var r=e("ce10"),o=e("e11e");t.exports=Object.keys||function(t){return r(t,o)}},1495:function(t,n,e){var r=e("86cc"),o=e("cb7c"),i=e("0d58");t.exports=e("9e1e")?Object.defineProperties:function(t,n){o(t);var e,c=i(n),u=c.length,f=0;while(u>f)r.f(t,e=c[f++],n[e]);return t}},"230e":function(t,n,e){var r=e("d3f4"),o=e("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"2aba":function(t,n,e){var r=e("7726"),o=e("32e9"),i=e("69a8"),c=e("ca5a")("src"),u=e("fa5b"),f="toString",a=(""+u).split(f);e("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,c)||o(e,c,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[c]||u.call(this)}))},"2aeb":function(t,n,e){var r=e("cb7c"),o=e("1495"),i=e("e11e"),c=e("613b")("IE_PROTO"),u=function(){},f="prototype",a=function(){var t,n=e("230e")("iframe"),r=i.length,o="<",c=">";n.style.display="none",e("fab2").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),a=t.F;while(r--)delete a[f][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(u[f]=r(t),e=new u,u[f]=null,e[c]=t):e=a(),void 0===n?e:o(e,n)}},"2b4c":function(t,n,e){var r=e("5537")("wks"),o=e("ca5a"),i=e("7726").Symbol,c="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};u.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"32e9":function(t,n,e){var r=e("86cc"),o=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"38fd":function(t,n,e){var r=e("69a8"),o=e("4bf8"),i=e("613b")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"41a0":function(t,n,e){"use strict";var r=e("2aeb"),o=e("4630"),i=e("7f20"),c={};e("32e9")(c,e("2b4c")("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"4bf8":function(t,n,e){var r=e("be13");t.exports=function(t){return Object(r(t))}},5537:function(t,n,e){var r=e("8378"),o=e("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,n){return c[t]||(c[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,n,e){var r=e("7726"),o=e("8378"),i=e("32e9"),c=e("2aba"),u=e("9b43"),f="prototype",a=function(t,n,e){var s,l,p,d,v=t&a.F,y=t&a.G,b=t&a.S,h=t&a.P,x=t&a.B,m=y?r:b?r[n]||(r[n]={}):(r[n]||{})[f],g=y?o:o[n]||(o[n]={}),S=g[f]||(g[f]={});for(s in y&&(e=n),e)l=!v&&m&&void 0!==m[s],p=(l?m:e)[s],d=x&&l?u(p,r):h&&"function"==typeof p?u(Function.call,p):p,m&&c(m,s,p,t&a.U),g[s]!=p&&i(g,s,d),h&&S[s]!=p&&(S[s]=p)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"613b":function(t,n,e){var r=e("5537")("keys"),o=e("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,n,e){var r=e("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,n,e){var r=e("626a"),o=e("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"77f1":function(t,n,e){var r=e("4588"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"7f20":function(t,n,e){var r=e("86cc").f,o=e("69a8"),i=e("2b4c")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},"7f7f":function(t,n,e){var r=e("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||e("9e1e")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},"84f2":function(t,n){t.exports={}},"86cc":function(t,n,e){var r=e("cb7c"),o=e("c69a"),i=e("6a99"),c=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"9c6c":function(t,n,e){var r=e("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&e("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,n,e){var r=e("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},ac6a:function(t,n,e){for(var r=e("cadf"),o=e("0d58"),i=e("2aba"),c=e("7726"),u=e("32e9"),f=e("84f2"),a=e("2b4c"),s=a("iterator"),l=a("toStringTag"),p=f.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(d),y=0;ys)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")((function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cadf:function(t,n,e){"use strict";var r=e("9c6c"),o=e("d53b"),i=e("84f2"),c=e("6821");t.exports=e("01f9")(Array,"Array",(function(t,n){this._t=c(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,n,e){var r=e("69a8"),o=e("6821"),i=e("c366")(!1),c=e("613b")("IE_PROTO");t.exports=function(t,n){var e,u=o(t),f=0,a=[];for(e in u)e!=c&&r(u,e)&&a.push(e);while(n.length>f)r(u,e=n[f++])&&(~i(a,e)||a.push(e));return a}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,n){(function(t){var n="currentScript",e=t.getElementsByTagName("script");n in t||Object.defineProperty(t,n,{get:function(){try{throw new Error}catch(r){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})})(document)},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fab2:function(t,n,e){var r=e("7726").document;t.exports=r&&r.documentElement},fae3:function(t,n,e){"use strict";var r;(e.r(n),e.d(n,"longClickDirective",(function(){return i})),"undefined"!==typeof window)&&(e("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(e.p=r[1]));e("ac6a"),e("7f7f");var o=function(t){var n=t.delay,e=void 0===n?400:n,r=t.interval,o=void 0===r?50:r;return{bind:function(t,n,r){if("function"!==typeof n.value){var i=r.context.name,c="[longclick:] provided expression '".concat(n.expression,"' is not a function, but has to be");i&&(c+="Found in component '".concat(i,"' ")),console.warn(c)}var u=null,f=null,a=function(t){"click"===t.type&&0!==t.button||null===u&&(u=setTimeout((function(){o&&o>0&&(f=setInterval((function(){l()}),o)),l()}),e))},s=function(){null!==u&&(clearTimeout(u),u=null),f&&(clearInterval(f),f=null)},l=function(t){n.value(t)};["mousedown","touchstart"].forEach((function(n){return t.addEventListener(n,a)})),["click","mouseout","touchend","touchcancel"].forEach((function(n){return t.addEventListener(n,s)}))}}},i=o}})})); 2 | //# sourceMappingURL=vue-long-click.umd.min.js.map -------------------------------------------------------------------------------- /images/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ittus/vue-long-click/a4447cbdc5e7c57812412d9b76a8bab39b66e0e2/images/demo.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-long-click", 3 | "version": "0.1.0", 4 | "private": false, 5 | "author": "Vu Minh Thang ", 6 | "description": "Long click (longpress) directive library for VueJS", 7 | "license": "MIT", 8 | "homepage": "https://github.com/ittus/vue-long-click", 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/ittus/vue-long-click" 12 | }, 13 | "scripts": { 14 | "serve": "vue-cli-service serve", 15 | "build:docs": "vue-cli-service build --dest dist/docs", 16 | "build": "npm run build:docs && npm run build:lib", 17 | "lint": "vue-cli-service lint", 18 | "build:lib": "vue-cli-service build --target lib --dest dist/libs --name vue-long-click ./src/index.js", 19 | "test": "NODE_ENV=test jest tests", 20 | "semantic-release": "semantic-release" 21 | }, 22 | "keywords": [ 23 | "longpress", 24 | "longclick", 25 | "interval", 26 | "vuejs" 27 | ], 28 | "dependencies": { 29 | "vue": "^2.5.22" 30 | }, 31 | "main": "./dist/libs/vue-long-click.common.js", 32 | "files": [ 33 | "dist/*", 34 | "src/*" 35 | ], 36 | "devDependencies": { 37 | "@babel/plugin-transform-modules-commonjs": "^7.2.0", 38 | "@semantic-release/changelog": "^5.0.1", 39 | "@semantic-release/commit-analyzer": "^8.0.1", 40 | "@semantic-release/git": "^9.0.0", 41 | "@semantic-release/npm": "^7.1.3", 42 | "@semantic-release/release-notes-generator": "^9.0.3", 43 | "@vue/cli-plugin-babel": "^3.4.0", 44 | "@vue/cli-plugin-eslint": "^3.4.0", 45 | "@vue/cli-service": "^3.4.0", 46 | "@vue/test-utils": "^1.0.0-beta.29", 47 | "babel-eslint": "^10.0.1", 48 | "babel-jest": "^24.1.0", 49 | "babel-preset-env": "^1.7.0", 50 | "eslint": "^5.8.0", 51 | "eslint-plugin-vue": "^5.0.0", 52 | "jest": "^24.1.0", 53 | "semantic-release": "^17.4.7", 54 | "vue-template-compiler": "^2.5.22" 55 | }, 56 | "eslintConfig": { 57 | "root": true, 58 | "env": { 59 | "node": true 60 | }, 61 | "extends": [ 62 | "plugin:vue/essential", 63 | "eslint:recommended" 64 | ], 65 | "rules": {}, 66 | "parserOptions": { 67 | "parser": "babel-eslint" 68 | } 69 | }, 70 | "postcss": { 71 | "plugins": { 72 | "autoprefixer": {} 73 | } 74 | }, 75 | "browserslist": [ 76 | "> 1%", 77 | "last 2 versions", 78 | "not ie <= 8" 79 | ], 80 | "engines": { 81 | "node": ">= 4.0.0", 82 | "npm": ">= 3.0.0" 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ittus/vue-long-click/a4447cbdc5e7c57812412d9b76a8bab39b66e0e2/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | vue-long-click 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 26 | 27 | 54 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ittus/vue-long-click/a4447cbdc5e7c57812412d9b76a8bab39b66e0e2/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/Demo.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 36 | 37 | 38 | 84 | -------------------------------------------------------------------------------- /src/directives/longclick.js: -------------------------------------------------------------------------------- 1 | export default ({delay = 400, interval = 50}) => ({ 2 | bind: function (el, binding, vNode) { 3 | if (typeof binding.value !== 'function') { 4 | const compName = vNode.context.name 5 | let warn = `[longclick:] provided expression '${binding.expression}' is not a function, but has to be` 6 | if (compName) { warn += `Found in component '${compName}' ` } 7 | console.warn(warn) // eslint-disable-line 8 | } 9 | 10 | let pressTimer = null 11 | let pressInterval = null 12 | 13 | const start = (e) => { 14 | if (e.type === 'click' && e.button !== 0) { 15 | return 16 | } 17 | 18 | if (pressTimer === null) { 19 | pressTimer = setTimeout(() => { 20 | if (interval && interval > 0) { 21 | pressInterval = setInterval(() => { 22 | handler(e) 23 | }, interval) 24 | } 25 | handler(e) 26 | }, delay) 27 | } 28 | } 29 | 30 | // Cancel Timeout 31 | const cancel = () => { 32 | if (pressTimer !== null) { 33 | clearTimeout(pressTimer) 34 | pressTimer = null 35 | } 36 | if (pressInterval) { 37 | clearInterval(pressInterval) 38 | pressInterval = null 39 | } 40 | } 41 | // Run Function 42 | const handler = (e) => { 43 | binding.value(e) 44 | } 45 | 46 | ;['mousedown', 'touchstart'].forEach(e => { 47 | el.addEventListener(e, start, { passive: true }) 48 | }) 49 | 50 | ;['click', 'mouseout', 'touchend', 'touchcancel'].forEach(e => { 51 | el.addEventListener(e, cancel, { passive: true }) 52 | }) 53 | } 54 | }) 55 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import longClick from './directives/longclick' 2 | 3 | export const longClickDirective = longClick 4 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import { longClickDirective } from './index' 4 | 5 | Vue.config.productionTip = false 6 | 7 | const longClickInstance = longClickDirective({delay: 400, interval: 50}) 8 | Vue.directive('longclick', longClickInstance) 9 | 10 | new Vue({ 11 | render: h => h(App), 12 | }).$mount('#app') 13 | -------------------------------------------------------------------------------- /tests/longclick.test.js: -------------------------------------------------------------------------------- 1 | import { createLocalVue, shallowMount } from '@vue/test-utils' 2 | import { longClickDirective } from '../src/index.js' 3 | 4 | 5 | const Component = { 6 | template: `
7 | {{ value }} 8 | 10 |
`, 11 | data () { 12 | return { 13 | value: 0 14 | } 15 | }, 16 | methods: { 17 | increase (amount) { 18 | this.value += amount 19 | } 20 | } 21 | } 22 | 23 | describe('longclick directive', () => { 24 | beforeEach(() => { 25 | jest.useFakeTimers(); 26 | }) 27 | 28 | it('should fire event perodically', () => { 29 | const localVue = createLocalVue() 30 | const longClickInstances = longClickDirective({delay: 400, interval: 50}) 31 | localVue.directive('longclick', longClickInstances) 32 | 33 | const wrapper = shallowMount(Component, { 34 | localVue 35 | }) 36 | 37 | wrapper.find('button').trigger('mousedown') 38 | jest.advanceTimersByTime(400) 39 | expect(wrapper.vm.value).toBe(1) 40 | jest.advanceTimersByTime(50) 41 | expect(wrapper.vm.value).toBe(2) 42 | jest.advanceTimersByTime(300) 43 | expect(wrapper.vm.value).toBe(8) 44 | 45 | wrapper.find('button').trigger('mouseout') 46 | jest.advanceTimersByTime(300) 47 | expect(wrapper.vm.value).toBe(8) 48 | }) 49 | 50 | it('should fire event once if interval is 0', () => { 51 | const localVue = createLocalVue() 52 | const longClickInstances = longClickDirective({delay: 400, interval: 0}) 53 | localVue.directive('longclick', longClickInstances) 54 | 55 | const wrapper = shallowMount(Component, { 56 | localVue 57 | }) 58 | 59 | wrapper.find('button').trigger('mousedown') 60 | jest.advanceTimersByTime(400) 61 | expect(wrapper.vm.value).toBe(1) 62 | jest.advanceTimersByTime(50) 63 | expect(wrapper.vm.value).toBe(1) 64 | jest.advanceTimersByTime(300) 65 | expect(wrapper.vm.value).toBe(1) 66 | }) 67 | }) 68 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | publicPath: process.env.NODE_ENV === 'production' 3 | ? '/vue-long-click/' 4 | : '/' 5 | } 6 | --------------------------------------------------------------------------------