(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3bb57c45"],{"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 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(e,t){this.previousRoute=e}}},u=s,f=r("2877"),d=Object(f["a"])(u,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,s,u,f,d,p,y){var v=t;if("function"===typeof s)v=s(r,v);else if(v instanceof Date)v=d(v);else if(null===v){if(i)return l&&!y?l(r,c.encoder):r;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||n.isBuffer(v)){if(l){var m=y?r:l(r,c.encoder);return[p(m)+"="+p(l(v,c.encoder))]}return[p(r)+"="+p(String(v))]}var h,g=[];if("undefined"===typeof v)return g;if(Array.isArray(s))h=s;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(e(v[w],o(r,w),o,i,a,l,s,u,f,d,p,y)):g.concat(e(v[w],r+(f?"."+w:"["+w+"]"),o,i,a,l,s,u,f,d,p,y)))}return g};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 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,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(l(r[_],_,x,u,f,d?p:null,b,y,v,m,O,h)))}var A=j.join(s),P=!0===a.addQueryPrefix?"?":"";return A.length>0?P+A:""}},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}},"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"),s=Object(l["a"])(c,n,o,!1,null,null,null);t["a"]=s.exports},"6a68":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",{attrs:{fluid:"","pa-0":""}},[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(r){return[t("tr",[e._l(r.headers,(function(r){return t("th",{key:r.text,class:["column",e.pagination.descending?"desc":"asc",r.value===e.pagination.sortBy?"active":"",r.value?"sortable":"","text-xs-"+(r.align?r.align:"left")],on:{click:function(t){return e.changeSort(!!r.value,r.value)}}},[r.value?t("v-icon",{attrs:{small:""}},[e._v("arrow_upward")]):e._e(),e._v("\n            "+e._s(r.text)+"\n          ")],1)})),t("th",{staticStyle:{width:"1%"}})],2)]}},{key:"items",fn:function(r){return[t("tr",[t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v("\n            "+e._s(e.getDateTimeFromISO(r.item.created_at))+"\n          ")]),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v("\n            "+e._s(r.item.module)+"\n          ")]),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v("\n            "+e._s(r.item.comment)+"\n          ")]),t("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[e._v("\n            "+e._s(r.item.created_by)+"\n          ")])])]}}])})],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 d(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){Object(i["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=r("4328"),v={created:function(){this.fetching=!0},components:{Breadcrumbs:f["a"]},computed:p({},Object(c["b"])(["adminScope"])),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(l["j"])(e,t)},getDateTimeFromISO:function(e){return Object(l["g"])(e)},getDateFromISO:function(e){return Object(l["e"])(e)},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,r=t.sortBy,n=t.descending,o=t.page,i=t.rowsPerPage;if(1==this.fetching){u.a.start();var c=this.$route.params.inventoryId,s=this.$route.params.companyId;a["a"].get("admin/system/parameter/company/"+s+"/inventory/"+c+"/history",{params:{page:o,rows_per_page:i,sort_by:r,descending:n,project_id:this.adminScope.projectId,company_id:this.$route.params.companyId,filter:this.filter},paramsSerializer:function(e){return y.stringify(e,{indices:!1})}}).then((function(t){e.records=Object(l["j"])(t,"data.data"),e.totalRecords=Object(l["j"])(t,"data.meta.total")})).catch((function(e){})).then((function(){e.fetching=!1,u.a.done()}))}},search:function(e){this.fetching=!0}},data:function(){return{fetching:!1,records:[],totalRecords:0,filter:{},pagination:{sortBy:"created_time",descending:!0},headers:[{text:this.$t("message.date"),value:"date"},{text:this.$t("message.module"),value:"module"},{text:this.$t("message.remarks"),value:"comment"},{text:this.$t("message.by"),value:"created_by"}]}}},m=v,h=r("2877"),g=Object(h["a"])(m,n,o,!1,null,null,null);t["default"]=g.exports},"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 s,u,f=c[l],d=f.indexOf("]="),p=-1===d?f.indexOf("="):d+1;-1===p?(s=t.decoder(f,i.decoder),u=t.strictNullHandling?null:""):(s=t.decoder(f.slice(0,p),i.decoder),u=t.decoder(f.slice(p+1),i.decoder)),o.call(r,s)?r[s]=[].concat(r[s]).concat(u):r[s]=u}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),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,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):{},s=Object.keys(o),u=0;u<s.length;++u){var f=s[u],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"}},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)},s=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),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 s=c[l],u=a[s];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:s}),r.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:l,compact:f,decode:s,encode:u,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 s(e){return 3*e}function u(e,t,r){return((c(t,r)*e+l(t,r))*e+s(t))*e}function f(e,t,r){return 3*c(t,r)*e*e+2*l(t,r)*e+s(t)}function d(e,t,o,i,a){var c,l,s=0;do{l=t+(o-t)/2,c=u(l,i,a)-e,c>0?o=l:t=l}while(Math.abs(c)>r&&++s<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=u(r,n,o)-t;r-=c/a}return r}var y=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 s=0;s<o;++s)l[s]=u(s*i,e,n);function y(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]),y=a+u*i,v=f(y,e,n);return v>=t?p(r,y,e,n):0===v?y:d(r,a,a+i,e,n)}return function(t){return e===r&&n===c?t:0===t?0:1===t?1:u(y(t),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(N){}var g={$: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}}},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},O=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},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(e){j=O({},j,e)}var S=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,s=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(e){a&&(_=e,S=!0)},P=void 0,k=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 N(e){if(S)return E();k||(k=e),D=e-k,L=Math.min(D/r,1),L=P(L),R(t,m+x*L,d+O*L),D<r?window.requestAnimationFrame(N):E()}function E(){S||R(t,h,p),k=!1,g.off(t,w,A),S&&s&&s(_,e),!S&&l&&l(e)}function R(e,t,r){f&&(e.scrollTop=t),u&&(e.scrollLeft=r),"body"===e.tagName.toLowerCase()&&(f&&(document.documentElement.scrollTop=t),u&&(document.documentElement.scrollLeft=r))}function $(k,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=g.$(k),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+k);t=g.$(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 E=g.cumulativeOffset(t),R=g.cumulativeOffset(e);if("function"===typeof o&&(o=o()),m=T(t),h=R.top-E.top+o,d=C(t),p=R.left-E.left+o,S=!1,x=h-m,O=p-d,!i){var $=m,F=$+t.offsetHeight,H=h,B=H+e.offsetHeight;if(H>=$&&B<=F)return}return"string"===typeof n&&(n=v[n]||v["ease"]),P=y.apply(y,n),x||O?(c&&c(e),g.on(t,w,A,{passive:!0}),window.requestAnimationFrame(N),function(){_=null,S=!0}):void 0}return $},_=S(),A=[];function P(e){for(var t=0;t<A.length;++t)if(A[t].el===e)return A.splice(t,1),!0;return!1}function k(e){for(var t=0;t<A.length;++t)if(A[t].el===e)return A[t]}function D(e){var t=k(e);return t||(A.push(t={el:e,binding:{}}),t)}function L(e){e.preventDefault();var t=D(this).binding;if("string"===typeof t.value)return _(t.value);_(t.value.el||t.value.element,t.value)}var T={bind:function(e,t){D(e).binding=t,g.on(e,"click",L)},unbind:function(e){P(e),g.off(e,"click",L)},update:function(e,t){D(e).binding=t},scrollTo:_,bindings:A},C=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(C)),T.install=C,T}))}}]);