vue-trip
Version:
Vue Trip is a lightweight and customizable plug-in that allows an easy and efficient way to guide your users in your application
27 lines • 45.4 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-trip"]=e():t["vue-trip"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),a=n("6a99"),s=n("69a8"),f=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=i(t),e=a(e,!0),f)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),s=a.length,f=0;while(s>f)r.f(t,n=a[f++],e[n]);return t}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),s="toString",f=Function[s],u=(""+f).split(s);n("8378").inspectSource=function(t){return f.call(t)},(t.exports=function(t,e,n,s){var f="function"==typeof n;f&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(f&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||f.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},f="prototype",u=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[f][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[f]=r(t),n=new s,s[f]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,s=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};s.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),o=n("d2c8"),i="includes";r(r.P+r.F*n("5147")(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),a=n("2aba"),s=n("9b43"),f="prototype",u=function(t,e,n){var c,p,l,d,h=t&u.F,m=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,b=m?r:v?r[e]||(r[e]={}):(r[e]||{})[f],w=m?o:o[e]||(o[e]={}),x=w[f]||(w[f]={});for(c in m&&(n=e),n)p=!h&&b&&void 0!==b[c],l=(p?b:n)[c],d=y&&p?s(l,r):g&&"function"==typeof l?s(Function.call,l):l,b&&a(b,c,l,t&u.U),w[c]!=l&&i(w,c,d),g&&x[c]!=l&&(x[c]=l)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"65da":function(t,e,n){},6762:function(t,e,n){"use strict";var r=n("5ca1"),o=n("c366")(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"718f":function(t,e,n){},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f7f":function(t,e,n){var r=n("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n("9e1e")&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},"80d3":function(t,e,n){},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a909:function(t,e,n){"use strict";var r=n("718f"),o=n.n(r);o.a},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),a=n("fdef"),s="["+a+"]",f="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),p=function(t,e,n){var o={},s=i(function(){return!!a[t]()||f[t]()!=f}),u=o[t]=s?e(l):a[t];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},l=p.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=p},aae3:function(t,e,n){var r=n("d3f4"),o=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var s,f=r(e),u=o(f.length),c=i(a,u);if(t&&n!=n){while(u>c)if(s=f[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in f)&&f[c]===n)return t||c||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),a=n("5dbc"),s=n("6a99"),f=n("79e5"),u=n("9093").f,c=n("11e9").f,p=n("86cc").f,l=n("aa77").trim,d="Number",h=r[d],m=h,v=h.prototype,g=i(n("2aeb")(v))==d,y="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():l(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,f=e.slice(2),u=0,c=f.length;u<c;u++)if(a=f.charCodeAt(u),a<48||a>o)return NaN;return parseInt(f,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(g?f(function(){v.valueOf.call(n)}):i(n)!=d)?a(new m(b(e)),n,h):b(e)};for(var w,x=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;x.length>E;E++)o(m,w=x[E])&&!o(h,w)&&p(h,w,c(m,w));h.prototype=v,v.constructor=h,n("2aba")(r,d,h)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=o(t),f=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>f)r(s,n=e[f++])&&(~i(u,n)||u.push(n));return u}},d2c8:function(t,e,n){var r=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},db36:function(t,e,n){"use strict";var r=n("65da"),o=n.n(r);o.a},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e1de:function(t,e,n){"use strict";var r=n("80d3"),o=n.n(r);o.a},f0bd:function(t,e,n){"use strict";(function(t){for(
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.4
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!==typeof window&&"undefined"!==typeof document,r=["Edge","Trident","Firefox"],o=0,i=0;i<r.length;i+=1)if(n&&navigator.userAgent.indexOf(r[i])>=0){o=1;break}function a(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function s(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},o))}}var f=n&&window.Promise,u=f?a:s;function c(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function p(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=p(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?t:d(l(t))}var h=n&&!(!window.MSInputMethodContext||!document.documentMode),m=n&&/MSIE 10/.test(navigator.userAgent);function v(t){return 11===t?h:10===t?m:h||m}function g(t){if(!t)return document.documentElement;var e=v(10)?document.body:null,n=t.offsetParent;while(n===e&&t.nextElementSibling)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===p(n,"position")?g(n):n:t?t.ownerDocument.documentElement:document.documentElement}function y(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||g(t.firstElementChild)===t)}function b(t){return null!==t.parentNode?b(t.parentNode):t}function w(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(t!==a&&e!==a||r.contains(o))return y(a)?a:g(a);var s=b(t);return s.host?w(s.host,e):w(t,b(e).host)}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[n]}return t[n]}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x(e,"top"),o=x(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=o*i,t.right+=o*i,t}function O(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}function _(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],v(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function T(t){var e=t.body,n=t.documentElement,r=v(10)&&getComputedStyle(n);return{height:_("Height",e,n,r),width:_("Width",e,n,r)}}var S=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),I=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function N(t){return P({},t,{right:t.left+t.width,bottom:t.top+t.height})}function L(t){var e={};try{if(v(10)){e=t.getBoundingClientRect();var n=x(t,"top"),r=x(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?T(t.ownerDocument):{},a=i.width||t.clientWidth||o.right-o.left,s=i.height||t.clientHeight||o.bottom-o.top,f=t.offsetWidth-a,u=t.offsetHeight-s;if(f||u){var c=p(t);f-=O(c,"x"),u-=O(c,"y"),o.width-=f,o.height-=u}return N(o)}function F(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(10),o="HTML"===e.nodeName,i=L(t),a=L(e),s=d(t),f=p(e),u=parseFloat(f.borderTopWidth,10),c=parseFloat(f.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var l=N({top:i.top-a.top-u,left:i.left-a.left-c,width:i.width,height:i.height});if(l.marginTop=0,l.marginLeft=0,!r&&o){var h=parseFloat(f.marginTop,10),m=parseFloat(f.marginLeft,10);l.top-=u-h,l.bottom-=u-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(l=E(l,e)),l}function M(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=F(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:x(n),s=e?0:x(n,"left"),f={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return N(f)}function k(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===p(t,"position")||k(l(t)))}function j(t){if(!t||!t.parentElement||v())return document.documentElement;var e=t.parentElement;while(e&&"none"===p(e,"transform"))e=e.parentElement;return e||document.documentElement}function R(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?j(t):w(t,e);if("viewport"===r)i=M(a,o);else{var s=void 0;"scrollParent"===r?(s=d(l(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===r?t.ownerDocument.documentElement:r;var f=F(s,a,o);if("HTML"!==s.nodeName||k(a))i=f;else{var u=T(t.ownerDocument),c=u.height,p=u.width;i.top+=f.top-f.marginTop,i.bottom=c+f.top,i.left+=f.left-f.marginLeft,i.right=p+f.left}}n=n||0;var h="number"===typeof n;return i.left+=h?n:n.left||0,i.top+=h?n:n.top||0,i.right-=h?n:n.right||0,i.bottom-=h?n:n.bottom||0,i}function B(t){var e=t.width,n=t.height;return e*n}function A(t,e,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=R(n,r,i,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},f=Object.keys(s).map(function(t){return P({key:t},s[t],{area:B(s[t])})}).sort(function(t,e){return e.area-t.area}),u=f.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),c=u.length>0?u[0].key:f[0].key,p=t.split("-")[1];return c+(p?"-"+p:"")}function D(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?j(e):w(e,n);return F(n,o,r)}function W(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),r=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+r,height:t.offsetHeight+n};return o}function H(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function q(t,e,n){n=n.split("-")[0];var r=W(t),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",f=i?"height":"width",u=i?"width":"height";return o[a]=e[a]+e[f]/2-r[f]/2,o[s]=n===s?e[s]-r[u]:e[H(s)],o}function V(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function U(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=V(t,function(t){return t[e]===n});return t.indexOf(r)}function Y(t,e,n){var r=void 0===n?t:t.slice(0,U(t,"name",n));return r.forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t["function"]||t.fn;t.enabled&&c(n)&&(e.offsets.popper=N(e.offsets.popper),e.offsets.reference=N(e.offsets.reference),e=n(e,t))}),e}function $(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=q(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Y(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function z(t,e){return t.some(function(t){var n=t.name,r=t.enabled;return r&&n===e})}function G(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var o=e[r],i=o?""+o+n:t;if("undefined"!==typeof document.body.style[i])return i}return null}function X(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(t){var e=t.ownerDocument;return e?e.defaultView:window}function J(t,e,n,r){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(e,n,{passive:!0}),o||J(d(i.parentNode),e,n,r),r.push(i)}function Q(t,e,n,r){n.updateBound=r,K(t).addEventListener("resize",n.updateBound,{passive:!0});var o=d(t);return J(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Z(){this.state.eventsEnabled||(this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate))}function tt(t,e){return K(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function et(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=tt(this.reference,this.state))}function nt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function rt(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&nt(e[n])&&(r="px"),t.style[n]=e[n]+r})}function ot(t,e){Object.keys(e).forEach(function(n){var r=e[n];!1!==r?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function it(t){return rt(t.instance.popper,t.styles),ot(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&rt(t.arrowElement,t.arrowStyles),t}function at(t,e,n,r,o){var i=D(o,e,t,n.positionFixed),a=A(n.placement,i,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),rt(e,{position:n.positionFixed?"fixed":"absolute"}),n}function st(t,e){var n=e.x,r=e.y,o=t.offsets.popper,i=V(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:e.gpuAcceleration,s=g(t.instance.popper),f=L(s),u={position:o.position},c={left:Math.floor(o.left),top:Math.round(o.top),bottom:Math.round(o.bottom),right:Math.floor(o.right)},p="bottom"===n?"top":"bottom",l="right"===r?"left":"right",d=G("transform"),h=void 0,m=void 0;if(m="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-f.height+c.bottom:c.top,h="right"===l?"HTML"===s.nodeName?-s.clientWidth+c.right:-f.width+c.right:c.left,a&&d)u[d]="translate3d("+h+"px, "+m+"px, 0)",u[p]=0,u[l]=0,u.willChange="transform";else{var v="bottom"===p?-1:1,y="right"===l?-1:1;u[p]=m*v,u[l]=h*y,u.willChange=p+", "+l}var b={"x-placement":t.placement};return t.attributes=P({},b,t.attributes),t.styles=P({},u,t.styles),t.arrowStyles=P({},t.offsets.arrow,t.arrowStyles),t}function ft(t,e,n){var r=V(t,function(t){var n=t.name;return n===e}),o=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!o){var i="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function ut(t,e){var n;if(!ft(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(r=t.instance.popper.querySelector(r),!r)return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],i=t.offsets,a=i.popper,s=i.reference,f=-1!==["left","right"].indexOf(o),u=f?"height":"width",c=f?"Top":"Left",l=c.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=W(r)[u];s[h]-m<a[l]&&(t.offsets.popper[l]-=a[l]-(s[h]-m)),s[l]+m>a[h]&&(t.offsets.popper[l]+=s[l]+m-a[h]),t.offsets.popper=N(t.offsets.popper);var v=s[l]+s[u]/2-m/2,g=p(t.instance.popper),y=parseFloat(g["margin"+c],10),b=parseFloat(g["border"+c+"Width"],10),w=v-t.offsets.popper[l]-y-b;return w=Math.max(Math.min(a[u]-m,w),0),t.arrowElement=r,t.offsets.arrow=(n={},I(n,l,Math.round(w)),I(n,d,""),n),t}function ct(t){return"end"===t?"start":"start"===t?"end":t}var pt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],lt=pt.slice(3);function dt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=lt.indexOf(t),r=lt.slice(n+1).concat(lt.slice(0,n));return e?r.reverse():r}var ht={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mt(t,e){if(z(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=R(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=H(r),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case ht.FLIP:a=[r,o];break;case ht.CLOCKWISE:a=dt(r);break;case ht.COUNTERCLOCKWISE:a=dt(r,!0);break;default:a=e.behavior}return a.forEach(function(s,f){if(r!==s||a.length===f+1)return t;r=t.placement.split("-")[0],o=H(r);var u=t.offsets.popper,c=t.offsets.reference,p=Math.floor,l="left"===r&&p(u.right)>p(c.left)||"right"===r&&p(u.left)<p(c.right)||"top"===r&&p(u.bottom)>p(c.top)||"bottom"===r&&p(u.top)<p(c.bottom),d=p(u.left)<p(n.left),h=p(u.right)>p(n.right),m=p(u.top)<p(n.top),v=p(u.bottom)>p(n.bottom),g="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v);(l||g||b)&&(t.flipped=!0,(l||g)&&(r=a[f+1]),b&&(i=ct(i)),t.placement=r+(i?"-"+i:""),t.offsets.popper=P({},t.offsets.popper,q(t.instance.popper,t.offsets.reference,t.placement)),t=Y(t.instance.modifiers,t,"flip"))}),t}function vt(t){var e=t.offsets,n=e.popper,r=e.reference,o=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",f=a?"left":"top",u=a?"width":"height";return n[s]<i(r[f])&&(t.offsets.popper[f]=i(r[f])-n[u]),n[f]>i(r[s])&&(t.offsets.popper[f]=i(r[s])),t}function gt(t,e,n,r){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var f=N(s);return f[e]/100*i}if("vh"===a||"vw"===a){var u=void 0;return u="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}return i}function yt(t,e,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(V(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(f)[0]]),[a[s].split(f)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(t,r){var o=(1===r?!i:i)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return gt(t,o,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,r){nt(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))})}),o}function bt(t,e){var n=e.offset,r=t.placement,o=t.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],f=void 0;return f=nt(+n)?[+n,0]:yt(n,i,a,s),"left"===s?(i.top+=f[0],i.left-=f[1]):"right"===s?(i.top+=f[0],i.left+=f[1]):"top"===s?(i.left+=f[0],i.top-=f[1]):"bottom"===s&&(i.left+=f[0],i.top+=f[1]),t.popper=i,t}function wt(t,e){var n=e.boundariesElement||g(t.instance.popper);t.instance.reference===n&&(n=g(n));var r=G("transform"),o=t.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var f=R(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=i,o.left=a,o[r]=s,e.boundaries=f;var u=e.priority,c=t.offsets.popper,p={primary:function(t){var n=c[t];return c[t]<f[t]&&!e.escapeWithReference&&(n=Math.max(c[t],f[t])),I({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>f[t]&&!e.escapeWithReference&&(r=Math.min(c[n],f[t]-("right"===t?c.width:c.height))),I({},n,r)}};return u.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=P({},c,p[e](t))}),t.offsets.popper=c,t}function xt(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var o=t.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),f=s?"left":"top",u=s?"width":"height",c={start:I({},f,i[f]),end:I({},f,i[f]+i[u]-a[u])};t.offsets.popper=P({},a,c[r])}return t}function Et(t){if(!ft(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=V(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function Ot(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),t.placement=H(e),t.offsets.popper=N(o),t}var _t={shift:{order:100,enabled:!0,fn:xt},offset:{order:200,enabled:!0,fn:bt,offset:0},preventOverflow:{order:300,enabled:!0,fn:wt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:vt},arrow:{order:500,enabled:!0,fn:ut,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mt,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:Ot},hide:{order:800,enabled:!0,fn:Et},computeStyle:{order:850,enabled:!0,fn:st,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:it,onLoad:at,gpuAcceleration:void 0}},Tt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:_t},St=function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=u(this.update.bind(this)),this.options=P({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(P({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){r.options.modifiers[e]=P({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return P({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&c(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return C(t,[{key:"update",value:function(){return $.call(this)}},{key:"destroy",value:function(){return X.call(this)}},{key:"enableEventListeners",value:function(){return Z.call(this)}},{key:"disableEventListeners",value:function(){return et.call(this)}}]),t}();St.Utils=("undefined"!==typeof window?window:t).PopperUtils,St.placements=pt,St.Defaults=Tt,e["a"]=St}).call(this,n("c8ba"))},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));n("7f7f");var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"v-trip"}},t._l(t.stages,function(e,r){return t.currentIndex===Number(r)?n("v-card",{key:r,staticClass:"animated fadeIn",attrs:{target:e.target,theme:t.configs.theme,position:e.position,offset:t.configs.spacing+5}},[n("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(e.title)+"\n ")]),n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(e.content)},slot:"content"}),n("div",{attrs:{slot:"footer"},slot:"footer"},t._l(e.buttons,function(e,r){return n("v-button",{key:r,staticStyle:{margin:"2px"},attrs:{shape:"rounded",color:e.color},nativeOn:{click:function(n){t.returnAction(e.action)}}},[t._v("\n "+t._s(e.label)+"\n ")])}))]):t._e()}))},i=[],a=(n("c5f6"),n("6762"),n("2fdb"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-trip-card",class:[t.theme]},[n("div",{staticClass:"label"},[t._t("label")],2),n("div",{staticClass:"content"},[t._t("content")],2),n("div",{staticClass:"footer"},[t._t("footer")],2)])}),s=[],f=n("f0bd"),u={name:"VCard",props:{target:{type:String,required:!0,default:function(){return null}},position:{type:String,required:!1,default:function(){return"bottom"}},offset:{type:Number,required:!1,default:function(){return 10}},theme:{type:String,required:!1,default:function(){return"light"}}},computed:{params:function(){return{placement:this.position,modifiers:{flip:{behavior:["left","right","top","bottom"]},offset:{enabled:!0,offset:"0,".concat(this.offset)}}}}},mounted:function(){this.create()},methods:{create:function(){this.targetEl=document.querySelector('[data-v-stage="'.concat(this.target,'"]')),this.targetEl&&(this.targetEl.scrollIntoView({behavior:"smooth"}),new f["a"](this.targetEl,this.$el,this.params))}}},c=u;n("a909");function p(t,e,n,r,o,i,a,s){var f,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=f):o&&(f=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(u.functional){u._injectStyles=f;var c=u.render;u.render=function(t,e){return f.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:u}}var l=p(c,a,s,!1,null,"f95ef540",null);l.options.__file="VCard.vue";var d=l.exports,h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{directives:[{name:"ripple",rawName:"v-ripple",value:"rgba(0, 0, 0, 0.1)",expression:"'rgba(0, 0, 0, 0.1)'"}],staticClass:"v-button",class:[t.shape,t.size],style:{background:t.color,color:t.color?"#ffffff":"#5E5E5E"},attrs:{disabled:t.disabled}},[t._t("default")],2)},m=[],v={bind:function(t,e){var n={event:"mousedown",transition:600};g(Object.keys(e.modifiers),n),t.addEventListener(n.event,function(n){i(n,t,e.value)});var r=e.value||v.color||"rgba(0, 0, 0, 0.35)",o=v.zIndex||"9999";function i(t,e){var i=e,a=parseInt(getComputedStyle(i).borderWidth.replace("px","")),s=i.getBoundingClientRect(),f=s.left,u=s.top,c=i.offsetWidth,p=i.offsetHeight,l=t.clientX-f,d=t.clientY-u,h=Math.max(l,c-l),m=Math.max(d,p-d),v=window.getComputedStyle(i),g=Math.sqrt(h*h+m*m),y=a>0?a:0,b=document.createElement("div"),w=document.createElement("div");w.className="ripple-container",b.className="ripple",b.style.marginTop="0px",b.style.marginLeft="0px",b.style.width="1px",b.style.height="1px",b.style.transition="all "+n.transition+"ms cubic-bezier(0.4, 0, 0.2, 1)",b.style.borderRadius="50%",b.style.pointerEvents="none",b.style.position="relative",b.style.zIndex=o,b.style.backgroundColor=r,w.style.position="absolute",w.style.left=0-y+"px",w.style.top=0-y+"px",w.style.height="0",w.style.width="0",w.style.pointerEvents="none",w.style.overflow="hidden";var x=i.style.position.length>0?i.style.position:getComputedStyle(i).position;function E(){setTimeout(function(){b.style.backgroundColor="rgba(0, 0, 0, 0)"},250),setTimeout(function(){w.parentNode.removeChild(w)},850),e.removeEventListener("mouseup",E,!1),setTimeout(function(){for(var t=!0,e=0;e<i.childNodes.length;e++)"ripple-container"===i.childNodes[e].className&&(t=!1);t&&(i.style.position="static"!==x?x:"")},n.transition+250)}"relative"!==x&&(i.style.position="relative"),w.appendChild(b),i.appendChild(w),b.style.marginLeft=l+"px",b.style.marginTop=d+"px",w.style.width=c+"px",w.style.height=p+"px",w.style.borderTopLeftRadius=v.borderTopLeftRadius,w.style.borderTopRightRadius=v.borderTopRightRadius,w.style.borderBottomLeftRadius=v.borderBottomLeftRadius,w.style.borderBottomRightRadius=v.borderBottomRightRadius,w.style.direction="ltr",setTimeout(function(){b.style.width=2*g+"px",b.style.height=2*g+"px",b.style.marginLeft=l-g+"px",b.style.marginTop=d-g+"px"},0),"mousedown"===t.type?e.addEventListener("mouseup",E,!1):E()}}};function g(t,e){t.forEach(function(t){isNaN(Number(t))?e.event=t:e.transition=t})}var y=v,b={name:"VButton",directives:{ripple:y},props:{color:{type:String,required:!1,default:function(){return null}},shape:{type:String,required:!1,default:function(){return null}},size:{type:String,required:!1,default:function(){return null}},disabled:{type:Boolean,required:!1,default:function(){return!1}}}},w=b,x=(n("e1de"),p(w,h,m,!1,null,null,null));x.options.__file="VButton.vue";var E=x.exports;function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}var S=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fadeIn",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fadeOut";O(this,t),this.padding=e,this.fadeIn=n,this.fadeOut=r}return T(t,[{key:"rectTopProperties",value:function(t){var e=t.getBoundingClientRect(),n=e.top-this.padding,r=t.offsetWidth+2*this.padding;return{top:0,left:e.left-this.padding,height:n<0?0:n,width:r<0?0:r}}},{key:"rectRightProperties",value:function(t){var e=t.getBoundingClientRect(),n=window.innerHeight,r=window.innerWidth-e.left+(t.offsetWidth+this.padding);return{top:0,left:e.left+t.offsetWidth+this.padding,height:n<0?0:n,width:r<0?0:r}}},{key:"rectBottomProperties",value:function(t){var e=t.getBoundingClientRect(),n=window.innerHeight-e.top+(t.offsetHeight+this.padding),r=t.offsetWidth+2*this.padding;return{top:e.top+t.offsetHeight+this.padding,left:e.left-this.padding,height:n<0?0:n,width:r<0?0:r}}},{key:"rectLeftProperties",value:function(t){var e=t.getBoundingClientRect(),n=window.innerHeight,r=e.left-this.padding;return{top:0,left:0,height:n<0?0:n,width:r<0?0:r}}},{key:"mountDiv",value:function(t,e,n,r,o){var i=document.createElement("div");return i.innerHTML="",i.style.setProperty("top","".concat(e,"px"),"important"),i.style.setProperty("left","".concat(n,"px"),"important"),i.style.setProperty("width","".concat(o,"px"),"important"),i.style.setProperty("height","".concat(r,"px"),"important"),i.setAttribute("id",t),i.classList.add("v-frame","animated",this.fadeIn),i}},{key:"destroyDiv",value:function(t){var e=document.getElementById(t);return e?(e.classList.remove(this.fadeIn),e.classList.add(this.fadeOut),e.innerHTML="",e):null}},{key:"appendFrame",value:function(t,e){var n=document.getElementById("v-trip");n.appendChild(this.mountDiv(t,e.top,e.left,e.height,e.width))}},{key:"removeFrame",value:function(t){var e=this.destroyDiv(t);e&&setTimeout(function(){var t=document.getElementById("v-trip");t.removeChild(e)},500)}},{key:"updateFrame",value:function(t,e){var n=document.getElementById(t);n.style.setProperty("top","".concat(e.top,"px"),"important"),n.style.setProperty("left","".concat(e.left,"px"),"important"),n.style.setProperty("width","".concat(e.width,"px"),"important"),n.style.setProperty("height","".concat(e.height,"px"),"important")}},{key:"create",value:function(t){this.appendFrame("v-trip-frame-top",this.rectTopProperties(t)),this.appendFrame("v-trip-frame-right",this.rectRightProperties(t)),this.appendFrame("v-trip-frame-bottom",this.rectBottomProperties(t)),this.appendFrame("v-trip-frame-left",this.rectLeftProperties(t))}},{key:"recalculate",value:function(t){this.updateFrame("v-trip-frame-top",this.rectTopProperties(t)),this.updateFrame("v-trip-frame-right",this.rectRightProperties(t)),this.updateFrame("v-trip-frame-bottom",this.rectBottomProperties(t)),this.updateFrame("v-trip-frame-left",this.rectLeftProperties(t))}},{key:"destroy",value:function(){this.removeFrame("v-trip-frame-top"),this.removeFrame("v-trip-frame-right"),this.removeFrame("v-trip-frame-bottom"),this.removeFrame("v-trip-frame-left")}}]),t}(),C={name:"VTrip",props:{configs:{type:Object,required:!0,default:function(){return{type:"popup-steps",theme:"light",spacing:4}}},stages:{type:Array,required:!0,default:function(){return[]}}},components:{VCard:d,VButton:E},data:function(){return{running:!1,currentIndex:-1,frame:new S(this.configs.spacing,"fadeIn","fadeOut")}},computed:{type:function(){return this.configs.type},targets:function(){return this.stages.map(function(t){return document.querySelector('[data-v-stage="'.concat(t.target,'"]'))})}},methods:{getStage:function(t){return this.stages[t].hasOwnProperty("ignore")&&this.stages[t].ignore?t+1:t},go:function(){return this.stages.length<=0?(console.error("Your array of stages is empty."),!1):this.running?(console.error("You already have an instance running."),!1):(this.running=!0,this.frame.destroy(),this.currentIndex=this.getStage(0),"popup-frame-steps"===this.type&&this.frame.create(this.targets[this.currentIndex]),!0)},next:function(){var t=this.currentIndex+1;return this.stages[t]?this.targets[t]?(t>=this.stages.length?this.finish():this.currentIndex=this.getStage(t),"popup-frame-steps"===this.type&&this.frame.recalculate(this.targets[this.currentIndex]),!0):(console.error("Element target '".concat(this.stages[t].target,"' not exists.")),!1):(console.error("The stage you are trying to access does not exist in the stage array."),!1)},previous:function(){var t=this.currentIndex-1;return this.currentIndex=t<0?0:this.getStage(t),"popup-frame-steps"===this.type&&this.frame.recalculate(this.targets[this.currentIndex]),!0},goTo:function(t){return this.stages[t]?(this.currentIndex=t,"popup-frame-steps"===this.type&&this.frame.recalculate(this.targets[this.currentIndex]),!0):(console.error('The stage "'.concat(t,'" you are trying to go to does not defined in array of stages.')),!1)},skip:function(){return this.finish()},finish:function(){return this.running=!1,this.currentIndex=-1,"popup-frame-steps"===this.type&&this.frame.destroy(),!0},returnAction:function(t){return"next"===t?this.next():"previous"===t?this.previous():"skip"===t?this.skip():"finish"===t?this.finish():"string"===typeof t&&t.includes("goTo")?this.goTo(Number(t.substr(t.indexOf("::")+"::".length))):t()}}},I=C,P=(n("db36"),p(I,o,i,!1,null,null,null));P.options.__file="VTrip.vue";var N=P.exports,L={install:function(t){t.component(N.name,N),t.component(d.name,d),t.component(E.name,E)}},F=L;e["default"]=F},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})});
//# sourceMappingURL=vue-trip.umd.min.js.map