(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15d4bc78"],{"3b87":function(t,e,r){"use strict";r.r(e);r("386d");var n=function(){var t=this,e=t._self._c;return e("div",[e("breadcrumbs",{staticClass:"mb-3",attrs:{breadcrumbs:t.breadcrumbs}}),e("v-container",{attrs:{fluid:"","pt-0":""}},[e("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:""}},[e("v-text-field",{staticStyle:{"background-color":"white"},attrs:{placeholder:t.$t("message.search"),solo:"",flat:"","hide-details":"","append-icon":"search"},on:{change:function(e){t.filter.search=e,t.search(e)}}}),e("v-menu",{attrs:{"offset-y":"","open-on-hover":""}},[e("v-btn",{attrs:{slot:"activator",color:"white",outline:""},slot:"activator"},[t._v("\n          "+t._s(t.selectedStatus.title)+"\n          "),e("v-icon",{attrs:{right:"",dark:""}},[t._v("filter_list")])],1),e("v-list",t._l([{value:"all",title:t.$t("message.all")},{value:"pending",title:t.$t("message.pending")},{value:"approved",title:t.$t("message.approved")},{value:"rejected",title:t.$t("message.rejected")}],(function(r,n){return e("v-list-tile",{key:n,on:{click:function(e){t.selectedStatus=r,t.filter.status=r.value,t.search()}}},[e("v-list-tile-title",[t._v(t._s(r.title))])],1)})),1)],1)],1),e("v-data-table",{attrs:{headers:t.headers,items:t.records,"total-items":t.totalRecords,"rows-per-page-items":[15,30,50],pagination:t.pagination,loading:t.fetching},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"headers",fn:function(r){return[e("tr",[t._l(r.headers,(function(r){return e("th",{key:r.text,class:["column",t.pagination.descending?"desc":"asc",r.value===t.pagination.sortBy?"active":"",r.value?"sortable":"","text-xs-"+(r.align?r.align:"left")],on:{click:function(e){return t.changeSort(!!r.value,r.value)}}},[r.value?e("v-icon",{attrs:{small:""}},[t._v("arrow_upward")]):t._e(),t._v("\n            "+t._s(r.text)+"\n          ")],1)})),e("th",{staticStyle:{width:"1%"}})],2)]}},{key:"items",fn:function(r){return[e("tr",[e("td",{staticClass:"py-2",staticStyle:{"vertical-align":"top"}},[e("router-link",{attrs:{to:{name:"admin.property.season-parking-management.parking-application.view",params:{parkingApplicationId:r.item.id,pagination:t.pagination}}}},[t._v("\n              "+t._s(r.item.card_holder_name)+"\n            ")])],1),e("td",{staticClass:"py-2",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.parking_management.tenant_name)+"\n          ")]),e("v-chip",{attrs:{label:"",color:t.statusColor(r.item.application_status.id),"text-color":"white"}},[e("v-avatar",[e("v-icon",[t._v("account_circle")])],1),t._v("\n                "+t._s(r.item.application_status.label)+"\n              ")],1),e("td",{staticClass:"pa-0 py-1",staticStyle:{"vertical-align":"top"}},[e("v-btn",{attrs:{icon:"",to:{name:"admin.property.season-parking-management.parking-application.view",params:{parkingApplicationId:r.item.id,pagination:t.pagination}}}},[e("v-icon",[t._v("edit")])],1)],1)],1)]}}])})],1)],1)},o=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),a=r("365c"),c=r("2f62"),l=r("4da1"),s=r("323e"),u=r.n(s),f=r("5e44");function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var v=r("4328"),y={created:function(){console.log("pagination   ",Object(l["j"])(this.$route,"params.pagination")),Object(l["j"])(this.$route,"params.pagination")&&(this.pagination=Object(l["j"])(this.$route.params.pagination)),this.fetching=!0},components:{Breadcrumbs:f["a"]},computed:d({},Object(c["b"])(["adminScope"])),watch:{pagination:function(){this.fetching=!0},$route:function(){this.fetching=!0},fetching:function(t){1==t&&this.getTablesData()}},methods:{getValue:function(t,e){return Object(l["j"])(t,e)},getDateTimeFromISO:function(t){return Object(l["g"])(t)},getDateFromISO:function(t){return Object(l["e"])(t)},changeSort:function(t,e){t&&(this.pagination.sortBy===e?this.pagination.descending=!this.pagination.descending:(this.pagination.sortBy=e,this.pagination.descending=!1),this.fetching=!0)},getTablesData:function(){var t=this,e=this.pagination,r=e.sortBy,n=e.descending,o=e.page,i=e.rowsPerPage;1==this.fetching&&(u.a.start(),a["a"].get("admin/property/season-parking/parking-application",{params:{page:o,rows_per_page:i,sort_by:r,descending:n,project_id:this.adminScope.projectId,company_id:this.adminScope.companyId,filter:this.filter},paramsSerializer:function(t){return v.stringify(t,{indices:!1})}}).then((function(e){t.records=Object(l["j"])(e,"data.data"),t.totalRecords=Object(l["j"])(e,"data.meta.total")})).catch((function(t){})).then((function(){t.fetching=!1,u.a.done()})))},search:function(t){this.fetching=!0},statusColor:function(t){var e="primary";switch(t){case 1:e="primary";break;case 2:e="error";break;case 0:default:e="warning";break}return e}},data:function(){return{fetching:!1,records:[],totalRecords:0,filter:{},selectedStatus:{value:"all",title:this.$t("message.all")},pagination:{sortBy:"card_holder_name",descending:!1},headers:[{text:this.$t("message.cardHoldersName"),align:"left",value:"card_holder_name"},{text:this.$t("message.ownerTenant"),align:"left",value:""},{text:this.$t("message.status")}],breadcrumbs:[{text:this.$t("message.parkingApplications"),disabled:!1}]}}},g=y,m=r("2877"),h=Object(m["a"])(g,n,o,!1,null,null,null);e["default"]=h.exports},"3ba2":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("router-link",{attrs:{to:t.to},nativeOn:{click:function(e){return t.routeToAnchor.apply(null,arguments)}}},[t._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 s={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(t,e){this.previousRoute=t}}},u=s,f=r("2877"),p=Object(f["a"])(u,n,o,!1,null,null,null),d=p.exports;e["a"]=d},4127:function(t,e,r){"use strict";var n=r("d233"),o=r("b313"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},l=function t(e,r,o,i,a,l,s,u,f,p,d,v){var y=e;if("function"===typeof s)y=s(r,y);else if(y instanceof Date)y=p(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 g=v?r:l(r,c.encoder);return[d(g)+"="+d(l(y,c.encoder))]}return[d(r)+"="+d(String(y))]}var m,h=[];if("undefined"===typeof y)return h;if(Array.isArray(s))m=s;else{var b=Object.keys(y);m=u?b.sort(u):b}for(var w=0;w<m.length;++w){var O=m[w];a&&null===y[O]||(h=Array.isArray(y)?h.concat(t(y[O],o(r,O),o,i,a,l,s,u,f,p,d,v)):h.concat(t(y[O],r+(f?"."+O:"["+O+"]"),o,i,a,l,s,u,f,p,d,v)))}return h};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var s="undefined"===typeof a.delimiter?c.delimiter:a.delimiter,u="boolean"===typeof a.strictNullHandling?a.strictNullHandling:c.strictNullHandling,f="boolean"===typeof a.skipNulls?a.skipNulls:c.skipNulls,p="boolean"===typeof a.encode?a.encode:c.encode,d="function"===typeof a.encoder?a.encoder:c.encoder,v="function"===typeof a.sort?a.sort:null,y="undefined"!==typeof a.allowDots&&a.allowDots,g="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,m="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,b,w=o.formatters[a.format];"function"===typeof a.filter?(b=a.filter,r=b("",r)):Array.isArray(a.filter)&&(b=a.filter,h=b);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 _=i[O];h||(h=Object.keys(r)),v&&h.sort(v);for(var k=0;k<h.length;++k){var x=h[k];f&&null===r[x]||(j=j.concat(l(r[x],x,_,u,f,p?d:null,b,v,y,g,w,m)))}var S=j.join(s),A=!0===a.addQueryPrefix?"?":"";return S.length>0?A+S:""}},4328:function(t,e,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");t.exports={formats:i,parse:o,stringify:n}},"5e44":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("v-toolbar",{attrs:{flat:"",color:t.color?t.color:"white"}},[e("v-breadcrumbs",{attrs:{divider:"/",items:t.breadcrumbs},scopedSlots:t._u([{key:"item",fn:function(r){return[r.item.to?[e("vue-anchor-router-link",{attrs:{to:r.item.to}},[t._v(t._s(r.item.text))])]:[t._v("\n        "+t._s(r.item.text)+"\n      ")]]}}])}),e("v-spacer"),t._t("default")],2)},o=[],i=r("3ba2"),a={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:i["a"]}},c=a,l=r("2877"),s=Object(l["a"])(c,n,o,!1,null,null,null);e["a"]=s.exports},"9e6a":function(t,e,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(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,c=n.split(e.delimiter,a),l=0;l<c.length;++l){var s,u,f=c[l],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(s=e.decoder(f,i.decoder),u=e.strictNullHandling?null:""):(s=e.decoder(f.slice(0,d),i.decoder),u=e.decoder(f.slice(d+1),i.decoder)),o.call(r,s)?r[s]=[].concat(r[s]).concat(u):r[s]=u}return r},c=function(t,e,r){for(var n=e,o=t.length-1;o>=0;--o){var i,a=t[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(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.exec(n),s=l?n.slice(0,l.index):n,u=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}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;u.push(l[1])}return l&&u.push("["+n.slice(l.index)+"]"),c(u,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};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,""===t||null===t||"undefined"===typeof t)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof t?a(t,r):t,c=r.plainObjects?Object.create(null):{},s=Object.keys(o),u=0;u<s.length;++u){var f=s[u],p=l(f,o[f],r);c=n.merge(c,p,r)}return n.compact(c)}},b313:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t){var e;while(t.length){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],o=0;o<e.length;++o)"undefined"!==typeof e[o]&&n.push(e[o]);r.obj[r.prop]=n}}return e},a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)"undefined"!==typeof t[n]&&(r[n]=t[n]);return r},c=function t(e,r,o){if(!r)return e;if("object"!==typeof r){if(Array.isArray(e))e.push(r);else{if("object"!==typeof e)return[e,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!==typeof e)return[e].concat(r);var i=e;return Array.isArray(e)&&!Array.isArray(r)&&(i=a(e,o)),Array.isArray(e)&&Array.isArray(r)?(r.forEach((function(r,i){n.call(e,i)?e[i]&&"object"===typeof e[i]?e[i]=t(e[i],r,o):e.push(r):e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),i)},l=function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},s=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},u=function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),r="",n=0;n<e.length;++n){var i=e.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=e.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&e.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(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],c=Object.keys(a),l=0;l<c.length;++l){var s=c[l],u=a[s];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:a,prop:s}),r.push(u))}return i(e)},p=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},d=function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};t.exports={arrayToObject:a,assign:l,compact:f,decode:s,encode:u,isBuffer:d,isRegExp:p,merge:c}},f13c:function(t,e,r){(function(e,r){t.exports=r()})(0,(function(){"use strict";var t=4,e=.001,r=1e-7,n=10,o=11,i=1/(o-1),a="function"===typeof Float32Array;function c(t,e){return 1-3*e+3*t}function l(t,e){return 3*e-6*t}function s(t){return 3*t}function u(t,e,r){return((c(e,r)*t+l(e,r))*t+s(e))*t}function f(t,e,r){return 3*c(e,r)*t*t+2*l(e,r)*t+s(e)}function p(t,e,o,i,a){var c,l,s=0;do{l=e+(o-e)/2,c=u(l,i,a)-t,c>0?o=l:e=l}while(Math.abs(c)>r&&++s<n);return l}function d(e,r,n,o){for(var i=0;i<t;++i){var a=f(r,n,o);if(0===a)return r;var c=u(r,n,o)-e;r-=c/a}return r}var v=function(t,r,n,c){if(!(0<=t&&t<=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(t!==r||n!==c)for(var s=0;s<o;++s)l[s]=u(s*i,t,n);function v(r){for(var a=0,c=1,s=o-1;c!==s&&l[c]<=r;++c)a+=i;--c;var u=(r-l[c])/(l[c+1]-l[c]),v=a+u*i,y=f(v,t,n);return y>=e?d(r,v,t,n):0===y?v:p(r,a,a+i,t,n)}return function(e){return t===r&&n===c?e:0===e?0:1===e?1:u(v(e),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]},g=!1;try{var m=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",null,m)}catch(T){}var h={$:function(t){return"string"!==typeof t?t:document.querySelector(t)},on:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};e instanceof Array||(e=[e]);for(var o=0;o<e.length;o++)t.addEventListener(e[o],r,!!g&&n)},off:function(t,e,r){e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)t.removeEventListener(e[n],r)},cumulativeOffset:function(t){var e=0,r=0;do{e+=t.offsetTop||0,r+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:r}}},b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},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 _(t){j=w({},j,t)}var k=function(){var t=void 0,e=void 0,r=void 0,n=void 0,o=void 0,i=void 0,a=void 0,c=void 0,l=void 0,s=void 0,u=void 0,f=void 0,p=void 0,d=void 0,g=void 0,m=void 0,w=void 0,_=void 0,k=void 0,x=void 0,S=function(t){a&&(x=t,k=!0)},A=void 0,P=void 0,D=void 0,L=void 0;function C(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function $(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function T(t){if(k)return N();P||(P=t),D=t-P,L=Math.min(D/r,1),L=A(L),E(e,g+_*L,p+w*L),D<r?window.requestAnimationFrame(T):N()}function N(){k||E(e,m,d),P=!1,h.off(e,O,S),k&&s&&s(x,t),!k&&l&&l(t)}function E(t,e,r){f&&(t.scrollTop=e),u&&(t.scrollLeft=r),"body"===t.tagName.toLowerCase()&&(f&&(document.documentElement.scrollTop=e),u&&(document.documentElement.scrollLeft=r))}function R(P,D){var L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof D?"undefined":b(D))?L=D:"number"===typeof D&&(L.duration=D),t=h.$(P),!t)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+P);e=h.$(L.container||j.container),r=L.duration||j.duration,n=L.easing||j.easing,o=L.offset||j.offset,i=L.hasOwnProperty("force")?!1!==L.force:j.force,a=L.hasOwnProperty("cancelable")?!1!==L.cancelable:j.cancelable,c=L.onStart||j.onStart,l=L.onDone||j.onDone,s=L.onCancel||j.onCancel,u=void 0===L.x?j.x:L.x,f=void 0===L.y?j.y:L.y;var N=h.cumulativeOffset(e),E=h.cumulativeOffset(t);if("function"===typeof o&&(o=o()),g=C(e),m=E.top-N.top+o,p=$(e),d=E.left-N.left+o,k=!1,_=m-g,w=d-p,!i){var R=g,F=R+e.offsetHeight,H=m,B=H+t.offsetHeight;if(H>=R&&B<=F)return}return"string"===typeof n&&(n=y[n]||y["ease"]),A=v.apply(v,n),_||w?(c&&c(t),h.on(e,O,S,{passive:!0}),window.requestAnimationFrame(T),function(){x=null,k=!0}):void 0}return R},x=k(),S=[];function A(t){for(var e=0;e<S.length;++e)if(S[e].el===t)return S.splice(e,1),!0;return!1}function P(t){for(var e=0;e<S.length;++e)if(S[e].el===t)return S[e]}function D(t){var e=P(t);return e||(S.push(e={el:t,binding:{}}),e)}function L(t){t.preventDefault();var e=D(this).binding;if("string"===typeof e.value)return x(e.value);x(e.value.el||e.value.element,e.value)}var C={bind:function(t,e){D(t).binding=e,h.on(t,"click",L)},unbind:function(t){A(t),h.off(t,"click",L)},update:function(t,e){D(t).binding=e},scrollTo:x,bindings:S},$=function(t,e){e&&_(e),t.directive("scroll-to",C),t.prototype.$scrollTo=C.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=C,window.VueScrollTo.setDefaults=_,window.Vue.use($)),C.install=$,C}))}}]);