(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f174e75"],{"3ba2":function(e,t,o){"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)},r=[],a=(o("c5f6"),o("2b0e")),i=o("8c4f"),c=o("f13c"),s=o.n(c);a["default"].use(i["a"]),a["default"].use(s.a);var l={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}}},d=l,u=o("2877"),_=Object(u["a"])(d,n,r,!1,null,null,null),f=_.exports;t["a"]=f},"45a3":function(e,t,o){"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)},r=[],a={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")}}},i=a,c=o("2877"),s=Object(c["a"])(i,n,r,!1,null,null,null);t["a"]=s.exports},"5e44":function(e,t,o){"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(o){return[o.item.to?[t("vue-anchor-router-link",{attrs:{to:o.item.to}},[e._v(e._s(o.item.text))])]:[e._v("\n        "+e._s(o.item.text)+"\n      ")]]}}])}),t("v-spacer"),e._t("default")],2)},r=[],a=o("3ba2"),i={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:a["a"]}},c=i,s=o("2877"),l=Object(s["a"])(c,n,r,!1,null,null,null);t["a"]=l.exports},"7fb5":function(e,t,o){var n,r;(function(o,a){o||(o={}),n=[],r=function(){return o.jsonToFormData=a()}.apply(t,n),void 0===r||(e.exports=r)})(this,(function(){function e(e,t){return[e,t].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),{})}function t(e){return"[object Array]"==={}.toString.call(e)}function o(e){return!t(e)&&"object"===typeof e&&!!e&&!(e instanceof Blob)&&!(e instanceof Date)}function n(e){return"function"===typeof e.append}function r(){return"function"===typeof FormData}function a(){if(r())return new FormData}function i(t,o){if(o&&o.initialFormData){if(!n(o.initialFormData))throw"initialFormData must have an append function."}else if(!r())throw"This environment does not have global form data. options.initialFormData must be specified.";var i={initialFormData:a(),showLeafArrayIndexes:!0,includeNullValues:!1,mapping:function(e){return"boolean"===typeof e?+e?"1":"0":e}},s=e(i,o||{});return c(t,s,s.initialFormData)}function c(e,n,r,a){var i=0;for(var s in e){if(e.hasOwnProperty(s)){var l=a||s,d=n.mapping(e[s]);if(a&&o(e)&&(l=a+"["+s+"]"),a&&t(e)&&(l=t(d)||n.showLeafArrayIndexes?a+"["+i+"]":a+"[]"),t(d)||o(d))c(d,n,r,l);else if(d instanceof FileList)for(var u=0;u<d.length;u++)r.append(l+"["+u+"]",d.item(u));else d instanceof Blob?r.append(l,d,d.name):d instanceof Date?r.append(l,d.toISOString()):(null===d&&n.includeNullValues||null!==d)&&void 0!==d&&r.append(l,d)}i++}return r}return i}))},a7ca:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("breadcrumbs",{staticClass:"mb-3",attrs:{breadcrumbs:e.breadcrumbs}}),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(e._s(e.$t("message.applicationConfiguration")))])],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}})]:[e.allowedTo("cancel")?t("v-btn",{attrs:{color:"grey lighten-2",depressed:"",disabled:"save"==e.form.action},on:{click:e.onCancel}},[e._v(e._s(e.$t("message.cancel")))]):e._e(),e.allowedTo("save")?t("v-btn",{attrs:{color:"info",depressed:"",loading:"save"==e.form.action},on:{click:e.saveData}},[e._v(e._s(e.$t("message.save")))]):e._e(),e.allowedTo("edit")?t("v-btn",{attrs:{color:"info",depressed:""},on:{click:function(t){e.mode="edit"}}},[e._v(e._s(e.$t("message.edit")))]):e._e()]],2),t("v-layout",{attrs:{row:"",wrap:""}},[t("v-flex",{attrs:{xl8:"",lg8:"",md8:"",sm12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("v-checkbox",{attrs:{label:e.$t("message.enableAutoBillingAcrossTheBuilding"),placeholder:" ",box:"","background-color":e.canEdit("enable_bill_accros_building")?"":"transparent",readonly:!e.canEdit("enable_bill_accros_building"),"error-messages":e.getValue(e.errorMessages,"enable_bill_accros_building")},model:{value:e.record.enable_bill_accros_building,callback:function(t){e.$set(e.record,"enable_bill_accros_building",t)},expression:"record.enable_bill_accros_building"}}),t("v-checkbox",{attrs:{label:e.$t("message.enableGlobalAccounting"),placeholder:" ",box:"","background-color":e.canEdit("enable_global_accounting")?"":"transparent",readonly:!e.canEdit("enable_global_accounting"),"error-messages":e.getValue(e.errorMessages,"enable_global_accounting")},model:{value:e.record.enable_global_accounting,callback:function(t){e.$set(e.record,"enable_global_accounting",t)},expression:"record.enable_global_accounting"}}),t("v-text-field",{attrs:{label:e.$t("message.iosStoreUrl"),placeholder:" ",box:"",readonly:!e.canEdit("ios_store_url"),"error-messages":e.getValue(e.errorMessages,"ios_store_url")},model:{value:e.record.ios_store_url,callback:function(t){e.$set(e.record,"ios_store_url",t)},expression:"record.ios_store_url"}}),t("v-text-field",{attrs:{label:e.$t("message.androidStoreUrl"),placeholder:" ",box:"",readonly:!e.canEdit("android_store_url"),"error-messages":e.getValue(e.errorMessages,"android_store_url")},model:{value:e.record.android_store_url,callback:function(t){e.$set(e.record,"android_store_url",t)},expression:"record.android_store_url"}}),t("v-text-field",{attrs:{label:e.$t("message.iosAppId"),placeholder:" ",box:"",readonly:!e.canEdit("ios_app_id"),"error-messages":e.getValue(e.errorMessages,"ios_app_id")},model:{value:e.record.ios_app_id,callback:function(t){e.$set(e.record,"ios_app_id",t)},expression:"record.ios_app_id"}}),t("v-text-field",{attrs:{label:e.$t("message.androidAppId"),placeholder:" ",box:"",readonly:!e.canEdit("android_app_id"),"error-messages":e.getValue(e.errorMessages,"android_app_id")},model:{value:e.record.android_app_id,callback:function(t){e.$set(e.record,"android_app_id",t)},expression:"record.android_app_id"}}),t("v-text-field",{attrs:{label:e.$t("message.sapTxtFileStoragePath"),placeholder:" ",box:"",readonly:!e.canEdit("sap_file_storage_path"),"error-messages":e.getValue(e.errorMessages,"sap_file_storage_path")},model:{value:e.record.sap_file_storage_path,callback:function(t){e.$set(e.record,"sap_file_storage_path",t)},expression:"record.sap_file_storage_path"}})],1)],1)],1)],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}})]:[e.allowedTo("cancel")?t("v-btn",{attrs:{color:"grey lighten-2",depressed:"",disabled:"save"==e.form.action},on:{click:e.onCancel}},[e._v(e._s(e.$t("message.cancel")))]):e._e(),e.allowedTo("save")?t("v-btn",{attrs:{color:"info",depressed:"",loading:"save"==e.form.action},on:{click:e.saveData}},[e._v(e._s(e.$t("message.save")))]):e._e(),e.allowedTo("edit")?t("v-btn",{attrs:{color:"info",depressed:""},on:{click:function(t){e.mode="edit"}}},[e._v(e._s(e.$t("message.edit")))]):e._e()]],2)],1)],1),t("snackbar",{attrs:{snackbar:e.snackbar}})],1)},r=[],a=(o("8e6e"),o("456d"),o("ac6a"),o("6b54"),o("ade3")),i=o("365c"),c=o("2f62"),s=o("4da1"),l=o("323e"),d=o.n(l),u=(o("7fb5"),o("1dce")),_=(o("c1df"),o("45a3")),f=o("5e44"),p=o("8106"),v=o("fb7a");function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?b(Object(o),!0).forEach((function(t){Object(a["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var g={mixins:[u["validationMixin"]],validations:{},constants:{},created:function(){this.appType=Object({NODE_ENV:"production",VUE_APP_API_BASEURL:"https://pms.putericoveresidences.net/service/api",VUE_APP_DESIGN_SITE_LOGO_WRAP_COLOR:"",VUE_APP_GOOGLE_ANALYTICS:"",VUE_APP_IDLE_TIME:"28740000",VUE_APP_IS_WHITE_LABEL:"true",VUE_APP_LOGO_ENDPOINT:"",VUE_APP_NAME:"PuteriCove",VUE_APP_PASSPORT_CLIENT_ID:"2",VUE_APP_PASSPORT_CLIENT_SECRET:"OiyeoNx5slPvbtYjwqV0R3i91VtTPjXrI1aXTGcv",VUE_APP_PROFILE_APP_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO2:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_FAVICON:"static/favicons/putericove_favicon.ico",VUE_APP_PROFILE_PAGE_TITLE:"",VUE_APP_SELFCARE_HEADER_COLOR:"white",VUE_APP_SELFCARE_LOGO_HEADER:"/static/system_icons/putericove_logo.png",VUE_APP_SELFCARE_RESOURCE:"OWNER",VUE_APP_SELFCARE_SOFTWARE_TYPE:"iCommercial",VUE_APP_SERVICE_BASEURL:"https://pms.putericoveresidences.net/service",VUE_APP_SOCKET_BASEURL:"https://pms.putericoveresidences.net",VUE_APP_SOCKET_PORT:"6001",BASE_URL:"/prod/"}).VUE_APP_TYPE,this.appName="PuteriCove",this.record=Object.assign({},this.defaultRecord),this.getData()},components:{Breadcrumbs:f["a"],Snackbar:p["a"],Editor:v["a"],ConfirmDialog:_["a"]},computed:m(m({},Object(c["b"])(["adminScope"])),{},{breadcrumbs:function(){var e=[{text:this.$t("message.applicationConfiguration"),disabled:!1,to:{name:"admin.system-admin.application.configuration.view"}}];return e},locked:function(){return this.record.locked}}),watch:{},methods:{getValue:function(e,t){return Object(s["j"])(e,t)},getDateTimeFromISO:function(e,t){return Object(s["g"])(e,t)},getDateFromISO:function(e,t){return Object(s["e"])(e,t)},convertDateToISO:function(e,t){return Object(s["a"])(e,t)},allowedTo:function(e){switch(e){case"add":return!this.$can.not("add","acl.admin.administrator.application.configuration");case"delete":if(this.$can.not("add","acl.admin.administrator.application.configuration")&&this.$can.not("delete","acl.admin.administrator.application.configuration"))return!1;if("new"==this.mode)return!1;if("new"!=this.recordId)return!this.record.locked;break;case"save":if(this.$can.not("add","acl.admin.administrator.application.configuration")&&this.$can.not("edit","acl.admin.administrator.application.configuration"))return!1;if("new"==this.mode||"edit"==this.mode)return!0;break;case"edit":return(!this.$can.not("add","acl.admin.administrator.application.configuration")||!this.$can.not("edit","acl.admin.administrator.application.configuration"))&&("new"!=this.recordId&&"edit"!=this.mode);case"cancel":if(this.$can.not("add","acl.admin.administrator.application.configuration")&&this.$can.not("edit","acl.admin.administrator.application.configuration"))return!1;if("new"!=this.recordId&&"edit"==this.mode)return!0;break}return!1},canEdit:function(e){var t=!1;switch(t="edit"==this.mode||"new"==this.mode,e){default:break}return t},onCancel:function(){this.errorMessages=null,this.getData(),this.mode="view"},getData:function(){var e=this;this.record=Object.assign({},this.defaultRecord),this.form.fetching=!0,d.a.start(),i["a"].get("/admin/system/application/configuration",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(t){e.recordArray=Object(s["j"])(t,"data.data"),e.manipulateRecordArray(Object(s["j"])(t,"data.data"))})).catch((function(e){})).then((function(){d.a.done(),e.form.fetching=!1}))},saveData:function(){var e=this;d.a.start(),this.form.loading=!0,this.form.action="save",this.errorMessages=null,this.record.project_id||(this.record.project_id=this.adminScope.projectId),this.record.company_id||(this.record.company_id=this.adminScope.companyId),this.record.enable_bill_accros_building&&this.record.enable_bill_accros_building.toString(),this.record.ios_store_url&&this.record.ios_store_url.toString(),this.record.android_store_url&&this.record.android_store_url.toString(),this.record.ios_app_id&&this.record.ios_app_id.toString(),this.record.android_app_id&&this.record.android_app_id.toString(),this.record.enable_global_accounting&&this.record.enable_global_accounting.toString();var t="admin/system/application/configuration";i["a"].post(t,this.record).then((function(t){e.record=Object(s["j"])(t,"data.data"),e.snackbar.message=Object(s["j"])(t,"data.message"),e.snackbar.type="success",e.snackbar.show=!0,e.mode="edit",e.getData()})).catch((function(t){e.snackbar.message=Object(s["j"])(t,"response.data.message"),e.snackbar.type="error",e.snackbar.show=!0,e.errorMessages=Object(s["j"])(t,"response.data.errors")})).then((function(){d.a.done(),e.form.loading=!1,e.form.action=null}))},manipulateRecordArray:function(e){var t=this;e.length>0&&e.forEach((function(e){switch(e.key){case"enable_bill_accros_building":"1"==e.value?t.record.enable_bill_accros_building=!0:t.record.enable_bill_accros_building=!1;break;case"ios_store_url":t.record.ios_store_url=e.value;break;case"android_store_url":t.record.android_store_url=e.value;break;case"ios_app_id":t.record.ios_app_id=e.value;break;case"android_app_id":t.record.android_app_id=e.value;break;case"enable_global_accounting":"1"==e.value?t.record.enable_global_accounting=!0:t.record.enable_global_accounting=!1;break;default:break}}))}},data:function(){return{appType:Object({NODE_ENV:"production",VUE_APP_API_BASEURL:"https://pms.putericoveresidences.net/service/api",VUE_APP_DESIGN_SITE_LOGO_WRAP_COLOR:"",VUE_APP_GOOGLE_ANALYTICS:"",VUE_APP_IDLE_TIME:"28740000",VUE_APP_IS_WHITE_LABEL:"true",VUE_APP_LOGO_ENDPOINT:"",VUE_APP_NAME:"PuteriCove",VUE_APP_PASSPORT_CLIENT_ID:"2",VUE_APP_PASSPORT_CLIENT_SECRET:"OiyeoNx5slPvbtYjwqV0R3i91VtTPjXrI1aXTGcv",VUE_APP_PROFILE_APP_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO2:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_FAVICON:"static/favicons/putericove_favicon.ico",VUE_APP_PROFILE_PAGE_TITLE:"",VUE_APP_SELFCARE_HEADER_COLOR:"white",VUE_APP_SELFCARE_LOGO_HEADER:"/static/system_icons/putericove_logo.png",VUE_APP_SELFCARE_RESOURCE:"OWNER",VUE_APP_SELFCARE_SOFTWARE_TYPE:"iCommercial",VUE_APP_SERVICE_BASEURL:"https://pms.putericoveresidences.net/service",VUE_APP_SOCKET_BASEURL:"https://pms.putericoveresidences.net",VUE_APP_SOCKET_PORT:"6001",BASE_URL:"/prod/"}).VUE_APP_TYPE,appName:"PuteriCove",record:{},recordArray:[],defaultRecord:{},recordOptions:[],mode:"view",showConfirmDeleteRecord:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null}}},h=g,E=o("2877"),P=Object(E["a"])(h,n,r,!1,null,null,null);t["default"]=P.exports},f13c:function(e,t,o){(function(t,o){e.exports=o()})(0,(function(){"use strict";var e=4,t=.001,o=1e-7,n=10,r=11,a=1/(r-1),i="function"===typeof Float32Array;function c(e,t){return 1-3*t+3*e}function s(e,t){return 3*t-6*e}function l(e){return 3*e}function d(e,t,o){return((c(t,o)*e+s(t,o))*e+l(t))*e}function u(e,t,o){return 3*c(t,o)*e*e+2*s(t,o)*e+l(t)}function _(e,t,r,a,i){var c,s,l=0;do{s=t+(r-t)/2,c=d(s,a,i)-e,c>0?r=s:t=s}while(Math.abs(c)>o&&++l<n);return s}function f(t,o,n,r){for(var a=0;a<e;++a){var i=u(o,n,r);if(0===i)return o;var c=d(o,n,r)-t;o-=c/i}return o}var p=function(e,o,n,c){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var s=i?new Float32Array(r):new Array(r);if(e!==o||n!==c)for(var l=0;l<r;++l)s[l]=d(l*a,e,n);function p(o){for(var i=0,c=1,l=r-1;c!==l&&s[c]<=o;++c)i+=a;--c;var d=(o-s[c])/(s[c+1]-s[c]),p=i+d*a,v=u(p,e,n);return v>=t?f(o,p,e,n):0===v?p:_(o,i,i+a,e,n)}return function(t){return e===o&&n===c?t:0===t?0:1===t?1:d(p(t),o,c)}},v={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]},b=!1;try{var m=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("test",null,m)}catch(C){}var g={$:function(e){return"string"!==typeof e?e:document.querySelector(e)},on:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};t instanceof Array||(t=[t]);for(var r=0;r<t.length;r++)e.addEventListener(t[r],o,!!b&&n)},off:function(e,t,o){t instanceof Array||(t=[t]);for(var n=0;n<t.length;n++)e.removeEventListener(t[n],o)},cumulativeOffset:function(e){var t=0,o=0;do{t+=e.offsetTop||0,o+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:o}}},h="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},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},P=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],O={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function y(e){O=E({},O,e)}var A=function(){var e=void 0,t=void 0,o=void 0,n=void 0,r=void 0,a=void 0,i=void 0,c=void 0,s=void 0,l=void 0,d=void 0,u=void 0,_=void 0,f=void 0,b=void 0,m=void 0,E=void 0,y=void 0,A=void 0,w=void 0,S=function(e){i&&(w=e,A=!0)},L=void 0,T=void 0,k=void 0,R=void 0;function V(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function j(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function C(e){if(A)return I();T||(T=e),k=e-T,R=Math.min(k/o,1),R=L(R),x(t,b+y*R,_+E*R),k<o?window.requestAnimationFrame(C):I()}function I(){A||x(t,m,f),T=!1,g.off(t,P,S),A&&l&&l(w,e),!A&&s&&s(e)}function x(e,t,o){u&&(e.scrollTop=t),d&&(e.scrollLeft=o),"body"===e.tagName.toLowerCase()&&(u&&(document.documentElement.scrollTop=t),d&&(document.documentElement.scrollLeft=o))}function U(T,k){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof k?"undefined":h(k))?R=k:"number"===typeof k&&(R.duration=k),e=g.$(T),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+T);t=g.$(R.container||O.container),o=R.duration||O.duration,n=R.easing||O.easing,r=R.offset||O.offset,a=R.hasOwnProperty("force")?!1!==R.force:O.force,i=R.hasOwnProperty("cancelable")?!1!==R.cancelable:O.cancelable,c=R.onStart||O.onStart,s=R.onDone||O.onDone,l=R.onCancel||O.onCancel,d=void 0===R.x?O.x:R.x,u=void 0===R.y?O.y:R.y;var I=g.cumulativeOffset(t),x=g.cumulativeOffset(e);if("function"===typeof r&&(r=r()),b=V(t),m=x.top-I.top+r,_=j(t),f=x.left-I.left+r,A=!1,y=m-b,E=f-_,!a){var U=b,D=U+t.offsetHeight,$=m,F=$+e.offsetHeight;if($>=U&&F<=D)return}return"string"===typeof n&&(n=v[n]||v["ease"]),L=p.apply(p,n),y||E?(c&&c(e),g.on(t,P,S,{passive:!0}),window.requestAnimationFrame(C),function(){w=null,A=!0}):void 0}return U},w=A(),S=[];function L(e){for(var t=0;t<S.length;++t)if(S[t].el===e)return S.splice(t,1),!0;return!1}function T(e){for(var t=0;t<S.length;++t)if(S[t].el===e)return S[t]}function k(e){var t=T(e);return t||(S.push(t={el:e,binding:{}}),t)}function R(e){e.preventDefault();var t=k(this).binding;if("string"===typeof t.value)return w(t.value);w(t.value.el||t.value.element,t.value)}var V={bind:function(e,t){k(e).binding=t,g.on(e,"click",R)},unbind:function(e){L(e),g.off(e,"click",R)},update:function(e,t){k(e).binding=t},scrollTo:w,bindings:S},j=function(e,t){t&&y(t),e.directive("scroll-to",V),e.prototype.$scrollTo=V.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=V,window.VueScrollTo.setDefaults=y,window.Vue.use(j)),V.install=j,V}))}}]);