{"version":3,"sources":["jsdelivr-header.js","/npm/vue-page-transition-helper@0.1.5/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAIA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,IAAI,qBAAsC,WACtC,SAAS,EAAqB,GAC1B,IAAI,EAAQ,KACZ,KAAK,mBAAqB,UAC1B,KAAK,gBAAkB,OACvB,KAAK,MAAQ,KAAK,mBAClB,KAAK,YAAa,EAClB,OAAO,iBAAiB,YAAY,WAChC,EAAM,YACV,IACA,EAAO,YAAW,SAAU,EAAI,EAAM,GAClC,EAAM,qBACN,GACJ,GACJ,CAmBA,OAlBA,EAAqB,UAAU,WAAa,WACxC,KAAK,YAAa,CACtB,EACA,EAAqB,UAAU,mBAAqB,YACxB,IAApB,KAAK,WACL,KAAK,MAAQ,KAAK,gBAGlB,KAAK,MAAQ,KAAK,mBAEtB,KAAK,YAAa,CACtB,EAIA,EAAqB,UAAU,SAAW,WACtC,OAAO,KAAK,KAChB,EACO,CACX,CAlCyC,GAmCzC,QAAQ,wBAA0B,CAC9B,WAAY,KACZ,aAAa,EACb,QAAS,SAAU,EAAK,GACpB,IAAI,EAAS,EAAG,OACZ,KAAK,cAEJ,GAIL,KAAK,aAAc,EACnB,KAAK,WAAa,IAAI,qBAAqB,IAJvC,QAAQ,KAAK,4BAKrB,EACA,SAAU,WACN,OAAI,KAAK,WACE,KAAK,WAAW,YAGvB,QAAQ,KAAK,6CACN,GAEf","file":"/npm/vue-page-transition-helper@0.1.5/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-page-transition-helper@0.1.5/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/**\n * Class PageTransitionHelper\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PageTransitionHelper = /** @class */ (function () {\n    function PageTransitionHelper(router) {\n        var _this = this;\n        this.FORWARD_TRANSITION = 'forward';\n        this.BACK_TRANSITION = 'back';\n        this.state = this.FORWARD_TRANSITION;\n        this.isPopState = false;\n        window.addEventListener('popstate', function () {\n            _this.onPopState();\n        });\n        router.beforeEach(function (to, from, next) {\n            _this.setTransitionState();\n            next();\n        });\n    }\n    PageTransitionHelper.prototype.onPopState = function () {\n        this.isPopState = true;\n    };\n    PageTransitionHelper.prototype.setTransitionState = function () {\n        if (this.isPopState === true) {\n            this.state = this.BACK_TRANSITION;\n        }\n        else {\n            this.state = this.FORWARD_TRANSITION;\n        }\n        this.isPopState = false;\n    };\n    /**\n     * @returns {string} - type of transition: 'forward', 'back'\n     */\n    PageTransitionHelper.prototype.getState = function () {\n        return this.state;\n    };\n    return PageTransitionHelper;\n}());\nexports.VuePageTransitionHelper = {\n    __instance: null,\n    __installed: false,\n    install: function (Vue, _a) {\n        var router = _a.router;\n        if (this.__installed)\n            return;\n        if (!router) {\n            console.warn('router is not undefined!');\n            return;\n        }\n        this.__installed = true;\n        this.__instance = new PageTransitionHelper(router);\n    },\n    getState: function () {\n        if (this.__instance) {\n            return this.__instance.getState();\n        }\n        else {\n            console.warn('VuePageTransitionHelper is not installed!');\n            return '';\n        }\n    }\n};\n"]}