(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ae93314"],{"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"),s=r.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(t,e){this.previousRoute=t}}},u=l,f=r("2877"),d=Object(f["a"])(u,n,o,!1,null,null,null),p=d.exports;e["a"]=p},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},s=function t(e,r,o,i,a,s,l,u,f,d,p,y){var v=e;if("function"===typeof l)v=l(r,v);else if(v instanceof Date)v=d(v);else if(null===v){if(i)return s&&!y?s(r,c.encoder):r;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||n.isBuffer(v)){if(s){var m=y?r:s(r,c.encoder);return[p(m)+"="+p(s(v,c.encoder))]}return[p(r)+"="+p(String(v))]}var h,g=[];if("undefined"===typeof v)return g;if(Array.isArray(l))h=l;else{var b=Object.keys(v);h=u?b.sort(u):b}for(var O=0;O<h.length;++O){var w=h[O];a&&null===v[w]||(g=Array.isArray(v)?g.concat(t(v[w],o(r,w),o,i,a,s,l,u,f,d,p,y)):g.concat(t(v[w],r+(f?"."+w:"["+w+"]"),o,i,a,s,l,u,f,d,p,y)))}return g};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 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,v="undefined"!==typeof a.allowDots&&a.allowDots,m="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,h="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 g,b,O=o.formatters[a.format];"function"===typeof a.filter?(b=a.filter,r=b("",r)):Array.isArray(a.filter)&&(b=a.filter,g=b);var w,j=[];if("object"!==typeof r||null===r)return"";w=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var x=i[w];g||(g=Object.keys(r)),y&&g.sort(y);for(var S=0;S<g.length;++S){var _=g[S];f&&null===r[_]||(j=j.concat(s(r[_],_,x,u,f,d?p:null,b,y,v,m,O,h)))}var A=j.join(l),k=!0===a.addQueryPrefix?"?":"";return A.length>0?k+A:""}},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,s=r("2877"),l=Object(s["a"])(c,n,o,!1,null,null,null);e["a"]=l.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),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=e.decoder(f,i.decoder),u=e.strictNullHandling?null:""):(l=e.decoder(f.slice(0,p),i.decoder),u=e.decoder(f.slice(p+1),i.decoder)),o.call(r,l)?r[l]=[].concat(r[l]).concat(u):r[l]=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,s=parseInt(c,10);!isNaN(s)&&a!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(i=[],i[s]=n):i[c]=n}n=i}return n},s=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=i.exec(n),l=s?n.slice(0,s.index):n,u=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}var f=0;while(null!==(s=a.exec(n))&&f<r.depth){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+n.slice(s.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):{},l=Object.keys(o),u=0;u<l.length;++u){var f=l[u],d=s(f,o[f],r);c=n.merge(c,d,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"}},c79c: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)}}})],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-3",staticStyle:{"vertical-align":"top"}},[e("router-link",{attrs:{to:{name:"admin.procurement.request-order.closed-request.view",params:{requestHistoryId:r.item.id,pagination:t.pagination}}}},[t._v("\n              "+t._s(r.item.no)+"\n            ")])],1),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.date?t.getDateTimeFromISO(t.getValue(r.item,"date")):"N/A")+"\n          ")]),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.tax_amount?t.formatMoney(r.item.tax_amount):0)+"\n          ")]),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.amount?t.formatMoney(r.item.amount):0)+"\n          ")]),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.remarks?r.item.remarks:"N/A")+"\n          ")]),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.status)+"\n          ")])])]}}])})],1)],1)},o=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),a=r("365c"),c=r("2f62"),s=r("4da1"),l=r("323e"),u=r.n(l),f=r("6612"),d=r.n(f),p=r("5e44");function y(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 v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=r("4328"),h={created:function(){Object(s["j"])(this.$route,"params.pagination")&&(this.pagination=this.$route.params.pagination),this.fetching=!0},components:{Breadcrumbs:p["a"]},computed:v({},Object(c["b"])(["adminScope"])),watch:{pagination:function(){this.fetching=!0},$route:function(){this.fetching=!0},fetching:function(t){1==t&&this.getTablesData()}},methods:{formatMoney:function(t){return d()(t).format("0,0.00")},getValue:function(t,e){return Object(s["j"])(t,e)},getDateTimeFromISO:function(t){return Object(s["g"])(t)},getDateFromISO:function(t){return Object(s["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/procurement/request-order",{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 m.stringify(t,{indices:!1})}}).then((function(e){t.records=Object(s["j"])(e,"data.data"),t.totalRecords=Object(s["j"])(e,"data.meta.total")})).catch((function(t){})).then((function(){t.fetching=!1,u.a.done()})))},search:function(t){this.fetching=!0}},data:function(){return{fetching:!1,records:[],totalRecords:0,filter:{status:"approved"},pagination:{sortBy:"no",descending:!1},headers:[{text:this.$t("message.orderNo"),align:"left",value:"no"},{text:this.$t("message.date")},{text:this.$t("message.tax")},{text:this.$t("message.amount")},{text:this.$t("message.remarks")},{text:this.$t("message.status")}],breadcrumbs:[{text:this.$t("message.closedRequest"),disabled:!1}]}}},g=h,b=r("2877"),O=Object(b["a"])(g,n,o,!1,null,null,null);e["default"]=O.exports},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)},s=function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},l=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),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:a,prop:l}),r.push(u))}return i(e)},d=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},p=function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};t.exports={arrayToObject:a,assign:s,compact:f,decode:l,encode:u,isBuffer:p,isRegExp:d,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 s(t,e){return 3*e-6*t}function l(t){return 3*t}function u(t,e,r){return((c(e,r)*t+s(e,r))*t+l(e))*t}function f(t,e,r){return 3*c(e,r)*t*t+2*s(e,r)*t+l(e)}function d(t,e,o,i,a){var c,s,l=0;do{s=e+(o-e)/2,c=u(s,i,a)-t,c>0?o=s:e=s}while(Math.abs(c)>r&&++l<n);return s}function p(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 y=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 s=a?new Float32Array(o):new Array(o);if(t!==r||n!==c)for(var l=0;l<o;++l)s[l]=u(l*i,t,n);function y(r){for(var a=0,c=1,l=o-1;c!==l&&s[c]<=r;++c)a+=i;--c;var u=(r-s[c])/(s[c+1]-s[c]),y=a+u*i,v=f(y,t,n);return v>=e?p(r,y,t,n):0===v?y:d(r,a,a+i,t,n)}return function(e){return t===r&&n===c?e:0===e?0:1===e?1:u(y(e),r,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]},m=!1;try{var h=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,h)}catch(T){}var g={$: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,!!m&&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},O=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},w=["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(t){j=O({},j,t)}var S=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,s=void 0,l=void 0,u=void 0,f=void 0,d=void 0,p=void 0,m=void 0,h=void 0,O=void 0,x=void 0,S=void 0,_=void 0,A=function(t){a&&(_=t,S=!0)},k=void 0,P=void 0,D=void 0,C=void 0;function L(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function N(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function T(t){if(S)return $();P||(P=t),D=t-P,C=Math.min(D/r,1),C=k(C),R(e,m+x*C,d+O*C),D<r?window.requestAnimationFrame(T):$()}function $(){S||R(e,h,p),P=!1,g.off(e,w,A),S&&l&&l(_,t),!S&&s&&s(t)}function R(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 E(P,D){var C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof D?"undefined":b(D))?C=D:"number"===typeof D&&(C.duration=D),t=g.$(P),!t)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+P);e=g.$(C.container||j.container),r=C.duration||j.duration,n=C.easing||j.easing,o=C.offset||j.offset,i=C.hasOwnProperty("force")?!1!==C.force:j.force,a=C.hasOwnProperty("cancelable")?!1!==C.cancelable:j.cancelable,c=C.onStart||j.onStart,s=C.onDone||j.onDone,l=C.onCancel||j.onCancel,u=void 0===C.x?j.x:C.x,f=void 0===C.y?j.y:C.y;var $=g.cumulativeOffset(e),R=g.cumulativeOffset(t);if("function"===typeof o&&(o=o()),m=L(e),h=R.top-$.top+o,d=N(e),p=R.left-$.left+o,S=!1,x=h-m,O=p-d,!i){var E=m,F=E+e.offsetHeight,H=h,V=H+t.offsetHeight;if(H>=E&&V<=F)return}return"string"===typeof n&&(n=v[n]||v["ease"]),k=y.apply(y,n),x||O?(c&&c(t),g.on(e,w,A,{passive:!0}),window.requestAnimationFrame(T),function(){_=null,S=!0}):void 0}return E},_=S(),A=[];function k(t){for(var e=0;e<A.length;++e)if(A[e].el===t)return A.splice(e,1),!0;return!1}function P(t){for(var e=0;e<A.length;++e)if(A[e].el===t)return A[e]}function D(t){var e=P(t);return e||(A.push(e={el:t,binding:{}}),e)}function C(t){t.preventDefault();var e=D(this).binding;if("string"===typeof e.value)return _(e.value);_(e.value.el||e.value.element,e.value)}var L={bind:function(t,e){D(t).binding=e,g.on(t,"click",C)},unbind:function(t){k(t),g.off(t,"click",C)},update:function(t,e){D(t).binding=e},scrollTo:_,bindings:A},N=function(t,e){e&&x(e),t.directive("scroll-to",L),t.prototype.$scrollTo=L.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=L,window.VueScrollTo.setDefaults=x,window.Vue.use(N)),L.install=N,L}))}}]);