(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2040f45c"],{"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=[],a=(r("c5f6"),r("2b0e")),i=r("8c4f"),c=r("f13c"),s=r.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(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"),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return i.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,r,o,a,i,s,l,u,f,d,p,m){var v=e;if("function"===typeof l)v=l(r,v);else if(v instanceof Date)v=d(v);else if(null===v){if(a)return s&&!m?s(r,c.encoder):r;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||n.isBuffer(v)){if(s){var h=m?r:s(r,c.encoder);return[p(h)+"="+p(s(v,c.encoder))]}return[p(r)+"="+p(String(v))]}var y,g=[];if("undefined"===typeof v)return g;if(Array.isArray(l))y=l;else{var b=Object.keys(v);y=u?b.sort(u):b}for(var w=0;w<y.length;++w){var D=y[w];i&&null===v[D]||(g=Array.isArray(v)?g.concat(t(v[D],o(r,D),o,a,i,s,l,u,f,d,p,m)):g.concat(t(v[D],r+(f?"."+D:"["+D+"]"),o,a,i,s,l,u,f,d,p,m)))}return g};t.exports=function(t,e){var r=t,i=e?n.assign({},e):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!==typeof i.encoder)throw new TypeError("Encoder has to be a function.");var l="undefined"===typeof i.delimiter?c.delimiter:i.delimiter,u="boolean"===typeof i.strictNullHandling?i.strictNullHandling:c.strictNullHandling,f="boolean"===typeof i.skipNulls?i.skipNulls:c.skipNulls,d="boolean"===typeof i.encode?i.encode:c.encode,p="function"===typeof i.encoder?i.encoder:c.encoder,m="function"===typeof i.sort?i.sort:null,v="undefined"!==typeof i.allowDots&&i.allowDots,h="function"===typeof i.serializeDate?i.serializeDate:c.serializeDate,y="boolean"===typeof i.encodeValuesOnly?i.encodeValuesOnly:c.encodeValuesOnly;if("undefined"===typeof i.format)i.format=o["default"];else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var g,b,w=o.formatters[i.format];"function"===typeof i.filter?(b=i.filter,r=b("",r)):Array.isArray(i.filter)&&(b=i.filter,g=b);var D,O=[];if("object"!==typeof r||null===r)return"";D=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var j=a[D];g||(g=Object.keys(r)),m&&g.sort(m);for(var _=0;_<g.length;++_){var x=g[_];f&&null===r[x]||(O=O.concat(s(r[x],x,j,u,f,d?p:null,b,m,v,h,w,y)))}var k=O.join(l),S=!0===i.addQueryPrefix?"?":"";return k.length>0?S+k:""}},4328:function(t,e,r){"use strict";var n=r("4127"),o=r("9e6a"),a=r("b313");t.exports={formats:a,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=[],a=r("3ba2"),i={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:a["a"]}},c=i,s=r("2877"),l=Object(s["a"])(c,n,o,!1,null,null,null);e["a"]=l.exports},"7fb5":function(t,e,r){var n,o;(function(r,a){r||(r={}),n=[],o=function(){return r.jsonToFormData=a()}.apply(e,n),void 0===o||(t.exports=o)})(this,(function(){function t(t,e){return[t,e].reduce((function(t,e){return Object.keys(e).forEach((function(r){t[r]=e[r]})),t}),{})}function e(t){return"[object Array]"==={}.toString.call(t)}function r(t){return!e(t)&&"object"===typeof t&&!!t&&!(t instanceof Blob)&&!(t instanceof Date)}function n(t){return"function"===typeof t.append}function o(){return"function"===typeof FormData}function a(){if(o())return new FormData}function i(e,r){if(r&&r.initialFormData){if(!n(r.initialFormData))throw"initialFormData must have an append function."}else if(!o())throw"This environment does not have global form data. options.initialFormData must be specified.";var i={initialFormData:a(),showLeafArrayIndexes:!0,includeNullValues:!1,mapping:function(t){return"boolean"===typeof t?+t?"1":"0":t}},s=t(i,r||{});return c(e,s,s.initialFormData)}function c(t,n,o,a){var i=0;for(var s in t){if(t.hasOwnProperty(s)){var l=a||s,u=n.mapping(t[s]);if(a&&r(t)&&(l=a+"["+s+"]"),a&&e(t)&&(l=e(u)||n.showLeafArrayIndexes?a+"["+i+"]":a+"[]"),e(u)||r(u))c(u,n,o,l);else if(u instanceof FileList)for(var f=0;f<u.length;f++)o.append(l+"["+f+"]",u.item(f));else u instanceof Blob?o.append(l,u,u.name):u instanceof Date?o.append(l,u.toISOString()):(null===u&&n.includeNullValues||null!==u)&&void 0!==u&&o.append(l,u)}i++}return o}return i}))},"9e6a":function(t,e,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,c=n.split(e.delimiter,i),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,a.decoder),u=e.strictNullHandling?null:""):(l=e.decoder(f.slice(0,p),a.decoder),u=e.decoder(f.slice(p+1),a.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 a,i=t[o];if("[]"===i)a=[],a=a.concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(c,10);!isNaN(s)&&i!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[],a[s]=n):a[c]=n}n=a}return n},s=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=a.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=i.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:a.delimiter,r.depth="number"===typeof r.depth?r.depth:a.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:a.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:a.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:a.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:a.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:a.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:a.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:a.strictNullHandling,""===t||null===t||"undefined"===typeof t)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof t?i(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"}},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}(),a=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},i=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 a=e;return Array.isArray(e)&&!Array.isArray(r)&&(a=i(e,o)),Array.isArray(e)&&Array.isArray(r)?(r.forEach((function(r,a){n.call(e,a)?e[a]&&"object"===typeof e[a]?e[a]=t(e[a],r,o):e.push(r):e[a]=r})),e):Object.keys(r).reduce((function(e,a){var i=r[a];return n.call(e,a)?e[a]=t(e[a],i,o):e[a]=i,e}),a)},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 a=e.charCodeAt(n);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=e.charAt(n):a<128?r+=o[a]:a<2048?r+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?r+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(n+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(n)),r+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}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],i=o.obj[o.prop],c=Object.keys(i),s=0;s<c.length;++s){var l=c[s],u=i[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:i,prop:l}),r.push(u))}return a(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:i,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,a=1/(o-1),i="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,a,i){var c,s,l=0;do{s=e+(o-e)/2,c=u(s,a,i)-t,c>0?o=s:e=s}while(Math.abs(c)>r&&++l<n);return s}function p(e,r,n,o){for(var a=0;a<t;++a){var i=f(r,n,o);if(0===i)return r;var c=u(r,n,o)-e;r-=c/i}return r}var m=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=i?new Float32Array(o):new Array(o);if(t!==r||n!==c)for(var l=0;l<o;++l)s[l]=u(l*a,t,n);function m(r){for(var i=0,c=1,l=o-1;c!==l&&s[c]<=r;++c)i+=a;--c;var u=(r-s[c])/(s[c+1]-s[c]),m=i+u*a,v=f(m,t,n);return v>=e?p(r,m,t,n):0===v?m:d(r,i,i+a,t,n)}return function(e){return t===r&&n===c?e:0===e?0:1===e?1:u(m(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]},h=!1;try{var y=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,y)}catch(L){}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,!!h&&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},D=["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 j(t){O=w({},O,t)}var _=function(){var t=void 0,e=void 0,r=void 0,n=void 0,o=void 0,a=void 0,i=void 0,c=void 0,s=void 0,l=void 0,u=void 0,f=void 0,d=void 0,p=void 0,h=void 0,y=void 0,w=void 0,j=void 0,_=void 0,x=void 0,k=function(t){i&&(x=t,_=!0)},S=void 0,$=void 0,A=void 0,P=void 0;function F(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function T(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function L(t){if(_)return C();$||($=t),A=t-$,P=Math.min(A/r,1),P=S(P),N(e,h+j*P,d+w*P),A<r?window.requestAnimationFrame(L):C()}function C(){_||N(e,y,p),$=!1,g.off(e,D,k),_&&l&&l(x,t),!_&&s&&s(t)}function N(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($,A){var P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof A?"undefined":b(A))?P=A:"number"===typeof A&&(P.duration=A),t=g.$($),!t)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+$);e=g.$(P.container||O.container),r=P.duration||O.duration,n=P.easing||O.easing,o=P.offset||O.offset,a=P.hasOwnProperty("force")?!1!==P.force:O.force,i=P.hasOwnProperty("cancelable")?!1!==P.cancelable:O.cancelable,c=P.onStart||O.onStart,s=P.onDone||O.onDone,l=P.onCancel||O.onCancel,u=void 0===P.x?O.x:P.x,f=void 0===P.y?O.y:P.y;var C=g.cumulativeOffset(e),N=g.cumulativeOffset(t);if("function"===typeof o&&(o=o()),h=F(e),y=N.top-C.top+o,d=T(e),p=N.left-C.left+o,_=!1,j=y-h,w=p-d,!a){var E=h,I=E+e.offsetHeight,R=y,B=R+t.offsetHeight;if(R>=E&&B<=I)return}return"string"===typeof n&&(n=v[n]||v["ease"]),S=m.apply(m,n),j||w?(c&&c(t),g.on(e,D,k,{passive:!0}),window.requestAnimationFrame(L),function(){x=null,_=!0}):void 0}return E},x=_(),k=[];function S(t){for(var e=0;e<k.length;++e)if(k[e].el===t)return k.splice(e,1),!0;return!1}function $(t){for(var e=0;e<k.length;++e)if(k[e].el===t)return k[e]}function A(t){var e=$(t);return e||(k.push(e={el:t,binding:{}}),e)}function P(t){t.preventDefault();var e=A(this).binding;if("string"===typeof e.value)return x(e.value);x(e.value.el||e.value.element,e.value)}var F={bind:function(t,e){A(t).binding=e,g.on(t,"click",P)},unbind:function(t){S(t),g.off(t,"click",P)},update:function(t,e){A(t).binding=e},scrollTo:x,bindings:k},T=function(t,e){e&&j(e),t.directive("scroll-to",F),t.prototype.$scrollTo=F.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=F,window.VueScrollTo.setDefaults=j,window.Vue.use(T)),F.install=T,F}))},fd5f: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}},[t.allowedTo("add")?e("v-btn",{attrs:{color:"primary",depressed:"",loading:"save"==t.form.action},on:{click:function(e){return t.onNewTaxableClick()}}},[t._v("\n    "+t._s(t.$t("message.new")))]):t._e()],1),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},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.financial-sst.sst-return-form.form-detail",params:{formId:r.item.id,pagination:t.pagination}}}},[t._v("\n             "+t._s(t.getDateFromISO(r.item.from_date))+"\n            ")])],1),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(t.getDateFromISO(r.item.to_date))+"\n          ")]),e("td",{staticClass:"py-3",staticStyle:{"vertical-align":"top"}},[t._v("\n            "+t._s(r.item.remarks)+"\n          ")]),e("td",{staticClass:"pa-0 py-1",staticStyle:{"vertical-align":"top"}},[e("v-btn",{attrs:{flat:"",icon:"",to:{name:"admin.financial-sst.sst-return-form.form-detail",params:{formId:r.item.id,pagination:t.pagination}}}},[e("v-icon",[t._v("edit")])],1)],1)])]}}])})],1),e("v-dialog",{attrs:{persistent:"","max-width":"600px"},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}},[e("v-card",[e("v-card-title",{staticClass:"headline error lighten-2 white--text"},[t._v("\n        "+t._s(t.$t("message.newTaxablePeriod"))+"\n      ")]),e("v-card-text",{staticClass:"pb-0"},[e("v-container",{attrs:{"grid-list-md":""}},[e("v-layout",{attrs:{wrap:""}},[e("v-flex",{attrs:{xs12:"",sm6:""}},[e("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,lazy:"",transition:"scale-transition","offset-y":"","full-width":"","min-width":"290px"},model:{value:t.fromDate_picker,callback:function(e){t.fromDate_picker=e},expression:"fromDate_picker"}},[e("v-text-field",{attrs:{slot:"activator",value:t.getDateFromISO(t.fromDate),label:t.$t("message.fromDate")+" *",placeholder:" ","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":t.fromDateErrors},on:{input:function(e){t.fromDate=""}},slot:"activator"}),e("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(e){t.fromDate_picker=!1,t.$v.fromDate.$touch()},blur:function(e){return t.$v.fromDate.$touch()}},model:{value:t.fromDate_model,callback:function(e){t.fromDate_model=e},expression:"fromDate_model"}})],1)],1),e("v-flex",{attrs:{xs12:"",sm6:""}},[e("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,lazy:"",transition:"scale-transition","offset-y":"","full-width":"","min-width":"290px"},model:{value:t.toDate_picker,callback:function(e){t.toDate_picker=e},expression:"toDate_picker"}},[e("v-text-field",{attrs:{slot:"activator",value:t.getDateFromISO(t.toDate),label:t.$t("message.toDate")+" *",placeholder:" ","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":t.toDateErrors},on:{input:function(e){t.toDate=""}},slot:"activator"}),e("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(e){t.toDate_picker=!1,t.$v.toDate.$touch()},blur:function(e){return t.$v.toDate.$touch()}},model:{value:t.toDate_model,callback:function(e){t.toDate_model=e},expression:"toDate_model"}})],1)],1),e("v-flex",{attrs:{xs12:""}},[e("v-textarea",{attrs:{label:t.$t("message.remarks"),required:"",box:""},model:{value:t.remarks,callback:function(e){t.remarks=e},expression:"remarks"}})],1)],1)],1)],1),e("v-divider"),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{outline:""},on:{click:function(e){t.showDialog=!1}}},[t._v("\n          "+t._s(t.$t("message.cancel"))+"\n        ")]),e("v-btn",{attrs:{color:"error",outline:"",loading:"save"==t.form.action},on:{click:t.onSave}},[t._v("\n          "+t._s(t.$t("message.save"))+"\n        ")])],1)],1)],1)],1)},o=[],a=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),i=r("365c"),c=r("2f62"),s=r("4da1"),l=r("323e"),u=r.n(l),f=(r("7fb5"),r("1dce")),d=r("b5ae"),p=r("c1df"),m=r.n(p),v=r("5e44");function h(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 y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){Object(a["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g=r("4328"),b={created:function(){Object(s["j"])(this.$route,"params.pagination")&&(this.pagination=this.$route.params.pagination),this.fetching=!0},mixins:[f["validationMixin"]],validations:{fromDate:{required:d["required"]},toDate:{required:d["required"]}},components:{Breadcrumbs:v["a"]},computed:y(y({},Object(c["b"])(["adminScope","mySession"])),{},{fromDateErrors:function(){var t=[];return this.$v.fromDate.$dirty?(!this.$v.fromDate.required&&t.push(this.$t("message.dateFrom")),t):t},toDateErrors:function(){var t=[];return this.$v.toDate.$dirty?(!this.$v.toDate.required&&t.push(this.$t("message.dateTo")),t):t}}),watch:{pagination:function(){this.fetching=!0},$route:function(){this.fetching=!0},fetching:function(t){1==t&&this.getTablesData()},fromDate_model:function(t){t&&(this.fromDate=m()(t).format())},toDate_model:function(t){t&&(this.toDate=m()(t).format())}},methods:{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)},convertDateToISO:function(t,e){return Object(s["a"])(t,e)},allowedTo:function(t){switch(t){case"add":return!this.$can.not("add","acl.admin.financial-sst.sst-return-form")}return!1},onNewTaxableClick:function(){var t=this;this.form.fetching=!0,u.a.start(),i["a"].get("admin/financial/sst/sst-return-form/get-company",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(e){t.record=Object(s["j"])(e,"data.data"),t.fromDate=t.record.next_filing_date,"A"==t.record.tax_period.id&&(t.toDate=m()(t.record.next_filing_date).add(1,"M").format()),"B"==t.record.tax_period.id&&(t.toDate=m()(t.record.next_filing_date).add(2,"M").format()),t.toDate=m()(t.toDate).subtract(1,"days").format(),t.showDialog=!0})).catch((function(t){})).then((function(){u.a.done(),t.form.fetching=!1}))},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,a=e.rowsPerPage;1==this.fetching&&(u.a.start(),this.showDialog=!1,this.form.loading=!1,this.form.action=null,i["a"].get("admin/financial/sst/sst-return-form",{params:{page:o,rows_per_page:a,sort_by:r,descending:n,project_id:this.adminScope.projectId,company_id:this.adminScope.companyId,filter:this.filter},paramsSerializer:function(t){return g.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},onSave:function(){this.$v.$touch(),this.$v.$invalid||(this.record.from_date=this.fromDate,this.record.to_date=this.toDate,this.record.remarks=this.remarks,this.record.status=0,this.saveData("onSave"))},saveData:function(t){var e=this;u.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.my_username=this.mySession.username;var r="admin/financial/sst/sst-return-form";i["a"].post(r,this.record).then((function(t){e.snackbar.message=Object(s["j"])(t,"data.message"),e.snackbar.type="success",e.snackbar.show=!0,e.showDialog=!1,e.record={},e.errorMessages=null,e.$router.go()})).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(){u.a.done(),e.form.loading=!1,e.form.action=null}))}},data:function(){return{fetching:!1,records:[],totalRecords:0,filter:{},pagination:{sortBy:"from_date",descending:!0},fromDate:"",toDate:"",remarks:"",fromDate_picker:!1,fromDate_model:"",toDate_picker:!1,toDate_model:"",showDialog:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null,headers:[{text:this.$t("message.dateFrom"),align:"left",value:"from_date"},{text:this.$t("message.dateTo"),value:"to_date"},{text:this.$t("message.remarks")}],breadcrumbs:[{text:this.$t("SST-02 Form"),disabled:!1}]}}},w=b,D=r("2877"),O=Object(D["a"])(w,n,o,!1,null,null,null);e["default"]=O.exports}}]);