(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b6d810b8"],{"3ba2":function(e,t,n){"use strict";var r=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=(n("c5f6"),n("2b0e")),a=n("8c4f"),c=n("f13c"),s=n.n(c);i["default"].use(a["a"]),i["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}}},u=l,f=n("2877"),d=Object(f["a"])(u,r,o,!1,null,null,null),p=d.exports;t["a"]=p},4127:function(e,t,n){"use strict";var r=n("d233"),o=n("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:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,n,o,i,a,s,l,u,f,d,p,y){var m=t;if("function"===typeof l)m=l(n,m);else if(m instanceof Date)m=d(m);else if(null===m){if(i)return s&&!y?s(n,c.encoder):n;m=""}if("string"===typeof m||"number"===typeof m||"boolean"===typeof m||r.isBuffer(m)){if(s){var v=y?n:s(n,c.encoder);return[p(v)+"="+p(s(m,c.encoder))]}return[p(n)+"="+p(String(m))]}var g,h=[];if("undefined"===typeof m)return h;if(Array.isArray(l))g=l;else{var b=Object.keys(m);g=u?b.sort(u):b}for(var w=0;w<g.length;++w){var O=g[w];a&&null===m[O]||(h=Array.isArray(m)?h.concat(e(m[O],o(n,O),o,i,a,s,l,u,f,d,p,y)):h.concat(e(m[O],n+(f?"."+O:"["+O+"]"),o,i,a,s,l,u,f,d,p,y)))}return h};e.exports=function(e,t){var n=e,a=t?r.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var l="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,d="boolean"===typeof a.encode?a.encode:c.encode,p="function"===typeof a.encoder?a.encoder:c.encoder,y="function"===typeof a.sort?a.sort:null,m="undefined"!==typeof a.allowDots&&a.allowDots,v="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,g="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,n=b("",n)):Array.isArray(a.filter)&&(b=a.filter,h=b);var O,j=[];if("object"!==typeof n||null===n)return"";O=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=i[O];h||(h=Object.keys(n)),y&&h.sort(y);for(var S=0;S<h.length;++S){var x=h[S];f&&null===n[x]||(j=j.concat(s(n[x],x,_,u,f,d?p:null,b,y,m,v,w,g)))}var P=j.join(l),k=!0===a.addQueryPrefix?"?":"";return P.length>0?k+P:""}},4328:function(e,t,n){"use strict";var r=n("4127"),o=n("9e6a"),i=n("b313");e.exports={formats:i,parse:o,stringify:r}},"5e44":function(e,t,n){"use strict";var r=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(n){return[n.item.to?[t("vue-anchor-router-link",{attrs:{to:n.item.to}},[e._v(e._s(n.item.text))])]:[e._v("\n        "+e._s(n.item.text)+"\n      ")]]}}])}),t("v-spacer"),e._t("default")],2)},o=[],i=n("3ba2"),a={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:i["a"]}},c=a,s=n("2877"),l=Object(s["a"])(c,r,o,!1,null,null,null);t["a"]=l.exports},"9e6a":function(e,t,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,c=r.split(t.delimiter,a),s=0;s<c.length;++s){var l,u,f=c[s],d=f.indexOf("]="),p=-1===d?f.indexOf("="):d+1;-1===p?(l=t.decoder(f,i.decoder),u=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,p),i.decoder),u=t.decoder(f.slice(p+1),i.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(u):n[l]=u}return n},c=function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a)i=[],i=i.concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(c,10);!isNaN(s)&&a!==c&&String(s)===c&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=r):i[c]=r}r=i}return r},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=i.exec(r),l=s?r.slice(0,s.index):r,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}var f=0;while(null!==(s=a.exec(r))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+r.slice(s.index)+"]"),c(u,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:i.delimiter,n.depth="number"===typeof n.depth?n.depth:i.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:i.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:i.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:i.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof e?a(e,n):e,c=n.plainObjects?Object.create(null):{},l=Object.keys(o),u=0;u<l.length;++u){var f=l[u],d=s(f,o[f],n);c=r.merge(c,d,n)}return r.compact(c)}},adf1:function(e,t,n){"use strict";n.r(t);n("386d");var r=function(){var e=this,t=e._self._c;return t("div",[t("breadcrumbs",{staticClass:"mb-3",attrs:{breadcrumbs:e.breadcrumbs}},[e.allowedTo("add")?t("v-btn",{attrs:{color:"primary",depressed:"",to:{name:"admin.rems.emergency-evacuation.detail.view",params:{emergencyEvacuationDetailId:"new"}}}},[e._v(e._s(e.$t("message.new")))]):e._e(),t("v-form",{attrs:{action:e.pdfLink,target:"_blank",method:"POST"}},[t("input",{attrs:{type:"hidden",name:"project_id"},domProps:{value:e.adminScope.projectId}}),t("input",{attrs:{type:"hidden",name:"company_id"},domProps:{value:e.adminScope.companyId}}),t("v-btn",{attrs:{type:"submit",color:"primary",depressed:"",loading:e.generate}},[e._v(e._s(e.$t("message.pdfSummary"))+"\n        ")])],1)],1),t("v-container",{attrs:{fluid:"","pt-0":""}},[t("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:""}},[t("v-text-field",{staticStyle:{"background-color":"white"},attrs:{placeholder:e.$t("message.search"),solo:"",flat:"","hide-details":"","append-icon":"search"},on:{change:function(t){e.filter.search=t,e.search(t)}}})],1),t("v-data-table",{attrs:{headers:e.headers,items:e.records,"total-items":e.totalRecords,"rows-per-page-items":[15,30,50],pagination:e.pagination,loading:e.fetching},on:{"update:pagination":function(t){e.pagination=t}},scopedSlots:e._u([{key:"headers",fn:function(n){return[t("tr",[e._l(n.headers,(function(n){return t("th",{key:n.text,class:["column",e.pagination.descending?"desc":"asc",n.value===e.pagination.sortBy?"active":"",n.value?"sortable":"","text-xs-"+(n.align?n.align:"left")],on:{click:function(t){return e.changeSort(!!n.value,n.value)}}},[n.value?t("v-icon",{attrs:{small:""}},[e._v("arrow_upward")]):e._e(),e._v("\n            "+e._s(n.text)+"\n          ")],1)})),t("th",{staticStyle:{width:"1%"}})],2)]}},{key:"items",fn:function(n){return[t("tr",[t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t("router-link",{attrs:{to:{name:"admin.rems.emergency-evacuation.detail.view",params:{emergencyEvacuationDetailId:n.item.id}}}},[e._v(e._s(n.item.tenant.company_name))])],1),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v(e._s(n.item.total_staffs))]),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"},domProps:{innerHTML:e._s(e.getBusinessHours(n.item.tenant_business_hours))}}),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v(e._s(n.item.lunch_hours)+" - "+e._s(n.item.lunch_hours_to))]),t("td",{staticClass:"pa-0 py-1",staticStyle:{"vertical-align":"top"}},[t("v-btn",{attrs:{flat:"",icon:"",to:{name:"admin.rems.emergency-evacuation.detail.view",params:{emergencyEvacuationDetailId:n.item.id}}}},[t("v-icon",[e._v("edit")])],1),t("v-form",{attrs:{action:e.pdfDetailLink,target:"_blank",method:"POST"}},[t("input",{attrs:{type:"hidden",name:"project_id"},domProps:{value:e.adminScope.projectId}}),t("input",{attrs:{type:"hidden",name:"company_id"},domProps:{value:e.adminScope.companyId}}),t("input",{attrs:{type:"hidden",name:"tenant_id"},domProps:{value:n.item.tenant_id}}),t("v-btn",{attrs:{type:"submit",color:"primary",depressed:"",loading:e.generate}},[e._v(e._s(e.$t("message.pdf"))+"\n              ")])],1)],1)])]}}])})],1)],1)},o=[],i=(n("8e6e"),n("456d"),n("7f7f"),n("ac6a"),n("ade3")),a=n("365c"),c=n("2f62"),s=n("4da1"),l=n("323e"),u=n.n(l),f=n("5e44");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=n("4328"),m={created:function(){this.fetching=!0},components:{Breadcrumbs:f["a"]},computed:p(p({},Object(c["b"])(["adminScope"])),{},{pdfLink:function(){return"https://pms.putericoveresidences.net/service/api/admin/rems/emergency-evacuation/detail/export-summary-pdf"},pdfDetailLink:function(){return"https://pms.putericoveresidences.net/service/api/admin/rems/emergency-evacuation/detail/export-detail-pdf"}}),watch:{pagination:function(){this.fetching=!0},$route:function(){this.fetching=!0},fetching:function(e){1==e&&this.getTablesData()}},methods:{getValue:function(e,t){return Object(s["j"])(e,t)},getDateTimeFromISO:function(e){return Object(s["g"])(e)},getDateFromISO:function(e){return Object(s["e"])(e)},allowedTo:function(e){switch(e){case"add":return!this.$can.not("add","acl.admin.rems.emergency-evacuation.emergency-evacuation-details")}return!1},changeSort:function(e,t){e&&(this.pagination.sortBy===t?this.pagination.descending=!this.pagination.descending:(this.pagination.sortBy=t,this.pagination.descending=!1),this.fetching=!0)},getTablesData:function(){var e=this,t=this.pagination,n=t.sortBy,r=t.descending,o=t.page,i=t.rowsPerPage;1==this.fetching&&(u.a.start(),this.generate=!0,a["a"].get("admin/rems/emergency-evacuation/detail",{params:{page:o,rows_per_page:i,sort_by:n,descending:r,project_id:this.adminScope.projectId,company_id:this.adminScope.companyId,filter:this.filter},paramsSerializer:function(e){return y.stringify(e,{indices:!1})}}).then((function(t){e.records=Object(s["j"])(t,"data.data"),e.totalRecords=Object(s["j"])(t,"data.meta.total")})).catch((function(e){})).then((function(){e.fetching=!1,e.generate=!1,u.a.done()})))},getBusinessHours:function(e){var t="";return e.forEach((function(e){t+=e.name+" : "+e.from+" - "+e.to+"<br/>"})),t},search:function(e){this.fetching=!0}},data:function(){return{fetching:!1,generate:!1,records:[],totalRecords:0,filter:{},pagination:{sortBy:"_sort_by_",descending:!1},headers:[{text:this.$t("message.tenant"),align:"left",value:""},{text:this.$t("message.headCount")},{text:this.$t("message.businessHour")},{text:this.$t("message.lunchHour")}],breadcrumbs:[{text:this.$t("message.emergencyEvacuationProcedure"),disabled:!1}]}}},v=m,g=n("2877"),h=Object(g["a"])(v,r,o,!1,null,null,null);t["default"]=h.exports},b313:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(e,t,n){"use strict";var r=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 n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],o=0;o<t.length;++o)"undefined"!==typeof t[o]&&r.push(t[o]);n.obj[n.prop]=r}}return t},a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,o){if(!n)return t;if("object"!==typeof n){if(Array.isArray(t))t.push(n);else{if("object"!==typeof t)return[t,n];(o.plainObjects||o.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!==typeof t)return[t].concat(n);var i=t;return Array.isArray(t)&&!Array.isArray(n)&&(i=a(t,o)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,i){r.call(t,i)?t[i]&&"object"===typeof t[i]?t[i]=e(t[i],n,o):t.push(n):t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),i)},s=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},l=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},u=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),n="",r=0;r<t.length;++r){var i=t.charCodeAt(r);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=t.charAt(r):i<128?n+=o[i]:i<2048?n+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?n+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(r+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(r)),n+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return n},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}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:s,compact:f,decode:l,encode:u,isBuffer:p,isRegExp:d,merge:c}},f13c:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=4,t=.001,n=1e-7,r=10,o=11,i=1/(o-1),a="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 u(e,t,n){return((c(t,n)*e+s(t,n))*e+l(t))*e}function f(e,t,n){return 3*c(t,n)*e*e+2*s(t,n)*e+l(t)}function d(e,t,o,i,a){var c,s,l=0;do{s=t+(o-t)/2,c=u(s,i,a)-e,c>0?o=s:t=s}while(Math.abs(c)>n&&++l<r);return s}function p(t,n,r,o){for(var i=0;i<e;++i){var a=f(n,r,o);if(0===a)return n;var c=u(n,r,o)-t;n-=c/a}return n}var y=function(e,n,r,c){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");var s=a?new Float32Array(o):new Array(o);if(e!==n||r!==c)for(var l=0;l<o;++l)s[l]=u(l*i,e,r);function y(n){for(var a=0,c=1,l=o-1;c!==l&&s[c]<=n;++c)a+=i;--c;var u=(n-s[c])/(s[c+1]-s[c]),y=a+u*i,m=f(y,e,r);return m>=t?p(n,y,e,r):0===m?y:d(n,a,a+i,e,r)}return function(t){return e===n&&r===c?t:0===t?0:1===t?1:u(y(t),n,c)}},m={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]},v=!1;try{var g=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,g)}catch(E){}var h={$:function(e){return"string"!==typeof e?e:document.querySelector(e)},on:function(e,t,n){var r=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],n,!!v&&r)},off:function(e,t,n){t instanceof Array||(t=[t]);for(var r=0;r<t.length;r++)e.removeEventListener(t[r],n)},cumulativeOffset:function(e){var t=0,n=0;do{t+=e.offsetTop||0,n+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:n}}},b="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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}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 _(e){j=w({},j,e)}var S=function(){var e=void 0,t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,c=void 0,s=void 0,l=void 0,u=void 0,f=void 0,d=void 0,p=void 0,v=void 0,g=void 0,w=void 0,_=void 0,S=void 0,x=void 0,P=function(e){a&&(x=e,S=!0)},k=void 0,A=void 0,D=void 0,L=void 0;function T(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function C(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function E(e){if(S)return N();A||(A=e),D=e-A,L=Math.min(D/n,1),L=k(L),$(t,v+_*L,d+w*L),D<n?window.requestAnimationFrame(E):N()}function N(){S||$(t,g,p),A=!1,h.off(t,O,P),S&&l&&l(x,e),!S&&s&&s(e)}function $(e,t,n){f&&(e.scrollTop=t),u&&(e.scrollLeft=n),"body"===e.tagName.toLowerCase()&&(f&&(document.documentElement.scrollTop=t),u&&(document.documentElement.scrollLeft=n))}function R(A,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),e=h.$(A),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+A);t=h.$(L.container||j.container),n=L.duration||j.duration,r=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,s=L.onDone||j.onDone,l=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(t),$=h.cumulativeOffset(e);if("function"===typeof o&&(o=o()),v=T(t),g=$.top-N.top+o,d=C(t),p=$.left-N.left+o,S=!1,_=g-v,w=p-d,!i){var R=v,H=R+t.offsetHeight,F=g,I=F+e.offsetHeight;if(F>=R&&I<=H)return}return"string"===typeof r&&(r=m[r]||m["ease"]),k=y.apply(y,r),_||w?(c&&c(e),h.on(t,O,P,{passive:!0}),window.requestAnimationFrame(E),function(){x=null,S=!0}):void 0}return R},x=S(),P=[];function k(e){for(var t=0;t<P.length;++t)if(P[t].el===e)return P.splice(t,1),!0;return!1}function A(e){for(var t=0;t<P.length;++t)if(P[t].el===e)return P[t]}function D(e){var t=A(e);return t||(P.push(t={el:e,binding:{}}),t)}function L(e){e.preventDefault();var t=D(this).binding;if("string"===typeof t.value)return x(t.value);x(t.value.el||t.value.element,t.value)}var T={bind:function(e,t){D(e).binding=t,h.on(e,"click",L)},unbind:function(e){k(e),h.off(e,"click",L)},update:function(e,t){D(e).binding=t},scrollTo:x,bindings:P},C=function(e,t){t&&_(t),e.directive("scroll-to",T),e.prototype.$scrollTo=T.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=T,window.VueScrollTo.setDefaults=_,window.Vue.use(C)),T.install=C,T}))}}]);