(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-409d23be"],{"3ba2":function(e,t,r){"use strict";var n=function(){var e=this,t=e._self._c;return t("router-link",{attrs:{to:e.to},nativeOn:{click:function(t){return e.routeToAnchor.apply(null,arguments)}}},[e._t("default")],2)},o=[],i=(r("c5f6"),r("2b0e")),a=r("8c4f"),c=r("f13c"),l=r.n(c);i["default"].use(a["a"]),i["default"].use(l.a);var u={name:"vue-anchor-router-link",props:{to:Object,scrollOptions:{type:[Object,Number],default:1}},data:function(){return{previousRoute:this.$route}},methods:{routeToAnchor:function(){this.$route.fullPath===this.previousRoute.fullPath&&this.$scrollTo(this.to.hash,this.scrollOptions)}},watch:{$route:function(e,t){this.previousRoute=e}}},s=u,f=r("2877"),d=Object(f["a"])(s,n,o,!1,null,null,null),p=d.exports;t["a"]=p},4127:function(e,t,r){"use strict";var n=r("d233"),o=r("b313"),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,o,i,a,l,u,s,f,d,p,v){var y=t;if("function"===typeof u)y=u(r,y);else if(y instanceof Date)y=d(y);else if(null===y){if(i)return l&&!v?l(r,c.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||n.isBuffer(y)){if(l){var m=v?r:l(r,c.encoder);return[p(m)+"="+p(l(y,c.encoder))]}return[p(r)+"="+p(String(y))]}var b,h=[];if("undefined"===typeof y)return h;if(Array.isArray(u))b=u;else{var g=Object.keys(y);b=s?g.sort(s):g}for(var w=0;w<b.length;++w){var O=b[w];a&&null===y[O]||(h=Array.isArray(y)?h.concat(e(y[O],o(r,O),o,i,a,l,u,s,f,d,p,v)):h.concat(e(y[O],r+(f?"."+O:"["+O+"]"),o,i,a,l,u,s,f,d,p,v)))}return h};e.exports=function(e,t){var r=e,a=t?n.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var u="undefined"===typeof a.delimiter?c.delimiter:a.delimiter,s="boolean"===typeof a.strictNullHandling?a.strictNullHandling:c.strictNullHandling,f="boolean"===typeof a.skipNulls?a.skipNulls:c.skipNulls,d="boolean"===typeof a.encode?a.encode:c.encode,p="function"===typeof a.encoder?a.encoder:c.encoder,v="function"===typeof a.sort?a.sort:null,y="undefined"!==typeof a.allowDots&&a.allowDots,m="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,b="boolean"===typeof a.encodeValuesOnly?a.encodeValuesOnly:c.encodeValuesOnly;if("undefined"===typeof a.format)a.format=o["default"];else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var h,g,w=o.formatters[a.format];"function"===typeof a.filter?(g=a.filter,r=g("",r)):Array.isArray(a.filter)&&(g=a.filter,h=g);var O,j=[];if("object"!==typeof r||null===r)return"";O=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var x=i[O];h||(h=Object.keys(r)),v&&h.sort(v);for(var k=0;k<h.length;++k){var A=h[k];f&&null===r[A]||(j=j.concat(l(r[A],A,x,s,f,d?p:null,g,v,y,m,w,b)))}var D=j.join(u),S=!0===a.addQueryPrefix?"?":"";return D.length>0?S+D:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},"45a3":function(e,t,r){"use strict";var n=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{"max-width":"500px",persistent:""},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelAction()}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[t("v-card",[t("v-card-title",{staticClass:"headline"},[e._v("\n      "+e._s(e.title)+"\n    ")]),t("v-card-text",[e._v("\n      "+e._s(e.text)+"\n    ")]),t("v-card-actions",[t("v-spacer"),this.loading?e._e():t("v-btn",{attrs:{color:"red",flat:"",loading:this.loading},on:{click:e.cancelAction}},[e._v(e._s(e.cancelText))]),t("v-btn",{attrs:{color:"green",flat:"",loading:this.loading},on:{click:e.confirmAction,keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()}}},[e._v(e._s(e.confirmText)+" ")])],1)],1)],1)},o=[],i={props:["title","text","cancelText","confirmText","value"],data:function(){return{loading:!1}},watch:{value:function(){this.resetState()}},methods:{resetState:function(){this.loading=!1},confirmAction:function(){this.loading=!0,this.$emit("confirmAction")},cancelAction:function(){this.loading=!0,this.$emit("cancelAction")}}},a=i,c=r("2877"),l=Object(c["a"])(a,n,o,!1,null,null,null);t["a"]=l.exports},"5e44":function(e,t,r){"use strict";var n=function(){var e=this,t=e._self._c;return t("v-toolbar",{attrs:{flat:"",color:e.color?e.color:"white"}},[t("v-breadcrumbs",{attrs:{divider:"/",items:e.breadcrumbs},scopedSlots:e._u([{key:"item",fn:function(r){return[r.item.to?[t("vue-anchor-router-link",{attrs:{to:r.item.to}},[e._v(e._s(r.item.text))])]:[e._v("\n        "+e._s(r.item.text)+"\n      ")]]}}])}),t("v-spacer"),e._t("default")],2)},o=[],i=r("3ba2"),a={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:i["a"]}},c=a,l=r("2877"),u=Object(l["a"])(c,n,o,!1,null,null,null);t["a"]=u.exports},"7fb5":function(e,t,r){var n,o;(function(r,i){r||(r={}),n=[],o=function(){return r.jsonToFormData=i()}.apply(t,n),void 0===o||(e.exports=o)})(this,(function(){function e(e,t){return[e,t].reduce((function(e,t){return Object.keys(t).forEach((function(r){e[r]=t[r]})),e}),{})}function t(e){return"[object Array]"==={}.toString.call(e)}function r(e){return!t(e)&&"object"===typeof e&&!!e&&!(e instanceof Blob)&&!(e instanceof Date)}function n(e){return"function"===typeof e.append}function o(){return"function"===typeof FormData}function i(){if(o())return new FormData}function a(t,r){if(r&&r.initialFormData){if(!n(r.initialFormData))throw"initialFormData must have an append function."}else if(!o())throw"This environment does not have global form data. options.initialFormData must be specified.";var a={initialFormData:i(),showLeafArrayIndexes:!0,includeNullValues:!1,mapping:function(e){return"boolean"===typeof e?+e?"1":"0":e}},l=e(a,r||{});return c(t,l,l.initialFormData)}function c(e,n,o,i){var a=0;for(var l in e){if(e.hasOwnProperty(l)){var u=i||l,s=n.mapping(e[l]);if(i&&r(e)&&(u=i+"["+l+"]"),i&&t(e)&&(u=t(s)||n.showLeafArrayIndexes?i+"["+a+"]":i+"[]"),t(s)||r(s))c(s,n,o,u);else if(s instanceof FileList)for(var f=0;f<s.length;f++)o.append(u+"["+f+"]",s.item(f));else s instanceof Blob?o.append(u,s,s.name):s instanceof Date?o.append(u,s.toISOString()):(null===s&&n.includeNullValues||null!==s)&&void 0!==s&&o.append(u,s)}a++}return o}return a}))},"9e6a":function(e,t,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,c=n.split(t.delimiter,a),l=0;l<c.length;++l){var u,s,f=c[l],d=f.indexOf("]="),p=-1===d?f.indexOf("="):d+1;-1===p?(u=t.decoder(f,i.decoder),s=t.strictNullHandling?null:""):(u=t.decoder(f.slice(0,p),i.decoder),s=t.decoder(f.slice(p+1),i.decoder)),o.call(r,u)?r[u]=[].concat(r[u]).concat(s):r[u]=s}return r},c=function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a)i=[],i=i.concat(n);else{i=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(i=[],i[l]=n):i[c]=n}n=i}return n},l=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.exec(n),u=l?n.slice(0,l.index):n,s=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}var f=0;while(null!==(l=a.exec(n))&&f<r.depth){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+n.slice(l.index)+"]"),c(s,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"===typeof r.depth?r.depth:i.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?a(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(o),s=0;s<u.length;++s){var f=u[s],d=l(f,o[f],r);c=n.merge(c,d,r)}return n.compact(c)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},bdfe:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("v-container",{staticClass:"pt-0",attrs:{fluid:""}},[t("v-card",{attrs:{flat:""}},[t("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:"",dark:""}},[t("v-toolbar-title",{staticClass:"font-weight-light"},[e._v("\n          "+e._s(e.$t("message.bindcardReport")))])],1),t("v-toolbar",{attrs:{dense:"",flat:"",color:"grey lighten-2"}},[t("v-spacer"),e.form.fetching?[t("v-btn",{attrs:{depressed:"",color:"transparent",loading:e.form.fetching}})]:[t("v-btn",{attrs:{color:"info",depressed:"",loading:e.generate},on:{click:e.downloadXls}},[e._v("\n            "+e._s(e.$t("message.xls"))+"\n            "),t("v-icon",{attrs:{right:"",dark:""}},[e._v("cloud_download")])],1)]],2)],1)],1),t("snackbar",{attrs:{snackbar:e.snackbar}})],1)},o=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),a=r("365c"),c=r("2f62"),l=r("4da1"),u=(r("323e"),r("7fb5"),r("1dce")),s=(r("c1df"),r("45a3")),f=r("5e44"),d=r("8106");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){Object(i["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=r("4328"),m={mixins:[u["validationMixin"]],validations:{},constants:{},created:function(){"new"==this.recordId&&(this.mode="new")},components:{Breadcrumbs:f["a"],Snackbar:d["a"],ConfirmDialog:s["a"]},computed:v(v({},Object(c["b"])(["adminScope","mySession"])),{},{breadcrumbs:function(){var e=[{text:this.$t("message.bindcardReport"),disabled:!1}];return e.push({text:(this.recordId,"New"),disabled:!0}),e},locked:function(){return this.record.locked},uuid:function(){return this.$uuid.v1().substring(0,13)}}),watch:{$route:function(e,t){this.recordId="new",this.record=Object.assign({},this.defaultRecord),"new"==this.recordId&&(this.mode="new")}},methods:{getValue:function(e,t){return Object(l["j"])(e,t)},getDateTimeFromISO:function(e,t){return Object(l["g"])(e,t)},getDateFromISO:function(e,t){return Object(l["e"])(e,t)},convertDateToISO:function(e,t){return Object(l["a"])(e,t)},getDateFromUnixTime:function(e,t){return Object(l["f"])(e,t)},formatNumber:function(e,t){return Object(l["c"])(e,t)},removeFormatNumber:function(e){return Object(l["l"])(e)},allowedTo:function(e){switch(e){case"add":return!0;case"delete":if("new"==this.mode)return!1;if("new"!=this.recordId)return!this.record.locked;break;case"save":if("new"==this.mode||"edit"==this.mode)return!0;break;case"edit":return"new"!=this.recordId&&"edit"!=this.mode;case"cancel":if("new"!=this.recordId&&"edit"==this.mode)return!0;break;case"manage":return!this.$can.not("manage","acl.admin.financial-ar.recurring-card.bindcard-report")}return!1},downloadXls:function(){var e=this;this.generate=!0,a["a"].post(this.xlsLink,y.stringify({my_username:this.mySession.username,project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}),{responseType:"blob"}).then((function(t){e.generate=!1;var r=window.URL.createObjectURL(t.data),n=document.createElement("a");n.href=r,n.setAttribute("download","bindcard-report.xls"),document.body.appendChild(n),n.click(),n.parentNode.removeChild(n)}))}},data:function(){return{recordId:this.$route.params.id,record:{},configuration:{},totalRecords:0,itemRecords:[],xlsLink:"https://pms.putericoveresidences.net/service/api/admin/financial/ar/recurring-card/bindcard-report/export-xls",mode:"edit",searching:!1,generate:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null}}},b=m,h=r("2877"),g=Object(h["a"])(b,n,o,!1,null,null,null);t["default"]=g.exports},d233:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e){var t;while(e.length){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var n=[],o=0;o<t.length;++o)"undefined"!==typeof t[o]&&n.push(t[o]);r.obj[r.prop]=n}}return t},a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,o){if(!r)return t;if("object"!==typeof r){if(Array.isArray(t))t.push(r);else{if("object"!==typeof t)return[t,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!==typeof t)return[t].concat(r);var i=t;return Array.isArray(t)&&!Array.isArray(r)&&(i=a(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach((function(r,i){n.call(t,i)?t[i]&&"object"===typeof t[i]?t[i]=e(t[i],r,o):t.push(r):t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),i)},l=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},s=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],c=Object.keys(a),l=0;l<c.length;++l){var u=c[l],s=a[u];"object"===typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:a,prop:u}),r.push(s))}return i(t)},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},p=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:a,assign:l,compact:f,decode:u,encode:s,isBuffer:p,isRegExp:d,merge:c}},f13c:function(e,t,r){(function(t,r){e.exports=r()})(0,(function(){"use strict";var e=4,t=.001,r=1e-7,n=10,o=11,i=1/(o-1),a="function"===typeof Float32Array;function c(e,t){return 1-3*t+3*e}function l(e,t){return 3*t-6*e}function u(e){return 3*e}function s(e,t,r){return((c(t,r)*e+l(t,r))*e+u(t))*e}function f(e,t,r){return 3*c(t,r)*e*e+2*l(t,r)*e+u(t)}function d(e,t,o,i,a){var c,l,u=0;do{l=t+(o-t)/2,c=s(l,i,a)-e,c>0?o=l:t=l}while(Math.abs(c)>r&&++u<n);return l}function p(t,r,n,o){for(var i=0;i<e;++i){var a=f(r,n,o);if(0===a)return r;var c=s(r,n,o)-t;r-=c/a}return r}var v=function(e,r,n,c){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var l=a?new Float32Array(o):new Array(o);if(e!==r||n!==c)for(var u=0;u<o;++u)l[u]=s(u*i,e,n);function v(r){for(var a=0,c=1,u=o-1;c!==u&&l[c]<=r;++c)a+=i;--c;var s=(r-l[c])/(l[c+1]-l[c]),v=a+s*i,y=f(v,e,n);return y>=t?p(r,v,e,n):0===y?v:d(r,a,a+i,e,n)}return function(t){return e===r&&n===c?t:0===t?0:1===t?1:s(v(t),r,c)}},y={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},m=!1;try{var b=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,b)}catch(C){}var h={$:function(e){return"string"!==typeof e?e:document.querySelector(e)},on:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};t instanceof Array||(t=[t]);for(var o=0;o<t.length;o++)e.addEventListener(t[o],r,!!m&&n)},off:function(e,t,r){t instanceof Array||(t=[t]);for(var n=0;n<t.length;n++)e.removeEventListener(t[n],r)},cumulativeOffset:function(e){var t=0,r=0;do{t+=e.offsetTop||0,r+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:r}}},g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],j={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function x(e){j=w({},j,e)}var k=function(){var e=void 0,t=void 0,r=void 0,n=void 0,o=void 0,i=void 0,a=void 0,c=void 0,l=void 0,u=void 0,s=void 0,f=void 0,d=void 0,p=void 0,m=void 0,b=void 0,w=void 0,x=void 0,k=void 0,A=void 0,D=function(e){a&&(A=e,k=!0)},S=void 0,_=void 0,L=void 0,P=void 0;function T(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function F(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function C(e){if(k)return N();_||(_=e),L=e-_,P=Math.min(L/r,1),P=S(P),E(t,m+x*P,d+w*P),L<r?window.requestAnimationFrame(C):N()}function N(){k||E(t,b,p),_=!1,h.off(t,O,D),k&&u&&u(A,e),!k&&l&&l(e)}function E(e,t,r){f&&(e.scrollTop=t),s&&(e.scrollLeft=r),"body"===e.tagName.toLowerCase()&&(f&&(document.documentElement.scrollTop=t),s&&(document.documentElement.scrollLeft=r))}function R(_,L){var P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof L?"undefined":g(L))?P=L:"number"===typeof L&&(P.duration=L),e=h.$(_),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+_);t=h.$(P.container||j.container),r=P.duration||j.duration,n=P.easing||j.easing,o=P.offset||j.offset,i=P.hasOwnProperty("force")?!1!==P.force:j.force,a=P.hasOwnProperty("cancelable")?!1!==P.cancelable:j.cancelable,c=P.onStart||j.onStart,l=P.onDone||j.onDone,u=P.onCancel||j.onCancel,s=void 0===P.x?j.x:P.x,f=void 0===P.y?j.y:P.y;var N=h.cumulativeOffset(t),E=h.cumulativeOffset(e);if("function"===typeof o&&(o=o()),m=T(t),b=E.top-N.top+o,d=F(t),p=E.left-N.left+o,k=!1,x=b-m,w=p-d,!i){var R=m,I=R+t.offsetHeight,$=b,H=$+e.offsetHeight;if($>=R&&H<=I)return}return"string"===typeof n&&(n=y[n]||y["ease"]),S=v.apply(v,n),x||w?(c&&c(e),h.on(t,O,D,{passive:!0}),window.requestAnimationFrame(C),function(){A=null,k=!0}):void 0}return R},A=k(),D=[];function S(e){for(var t=0;t<D.length;++t)if(D[t].el===e)return D.splice(t,1),!0;return!1}function _(e){for(var t=0;t<D.length;++t)if(D[t].el===e)return D[t]}function L(e){var t=_(e);return t||(D.push(t={el:e,binding:{}}),t)}function P(e){e.preventDefault();var t=L(this).binding;if("string"===typeof t.value)return A(t.value);A(t.value.el||t.value.element,t.value)}var T={bind:function(e,t){L(e).binding=t,h.on(e,"click",P)},unbind:function(e){S(e),h.off(e,"click",P)},update:function(e,t){L(e).binding=t},scrollTo:A,bindings:D},F=function(e,t){t&&x(t),e.directive("scroll-to",T),e.prototype.$scrollTo=T.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=T,window.VueScrollTo.setDefaults=x,window.Vue.use(F)),T.install=F,T}))}}]);