(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-273028ea"],{"3ba2":function(t,e,n){"use strict";var r=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=(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(t,e){this.previousRoute=t}}},u=l,d=n("2877"),f=Object(d["a"])(u,r,o,!1,null,null,null),p=f.exports;e["a"]=p},4127:function(t,e,n){"use strict";var r=n("d233"),o=n("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:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,n,o,i,a,s,l,u,d,f,p,m){var v=e;if("function"===typeof l)v=l(n,v);else if(v instanceof Date)v=f(v);else if(null===v){if(i)return s&&!m?s(n,c.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||r.isBuffer(v)){if(s){var h=m?n:s(n,c.encoder);return[p(h)+"="+p(s(v,c.encoder))]}return[p(n)+"="+p(String(v))]}var y,b=[];if("undefined"===typeof v)return b;if(Array.isArray(l))y=l;else{var g=Object.keys(v);y=u?g.sort(u):g}for(var O=0;O<y.length;++O){var w=y[O];a&&null===v[w]||(b=Array.isArray(v)?b.concat(t(v[w],o(n,w),o,i,a,s,l,u,d,f,p,m)):b.concat(t(v[w],n+(d?"."+w:"["+w+"]"),o,i,a,s,l,u,d,f,p,m)))}return b};t.exports=function(t,e){var n=t,a=e?r.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,d="boolean"===typeof a.skipNulls?a.skipNulls:c.skipNulls,f="boolean"===typeof a.encode?a.encode:c.encode,p="function"===typeof a.encoder?a.encoder:c.encoder,m="function"===typeof a.sort?a.sort:null,v="undefined"!==typeof a.allowDots&&a.allowDots,h="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,y="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 b,g,O=o.formatters[a.format];"function"===typeof a.filter?(g=a.filter,n=g("",n)):Array.isArray(a.filter)&&(g=a.filter,b=g);var w,_=[];if("object"!==typeof n||null===n)return"";w=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=i[w];b||(b=Object.keys(n)),m&&b.sort(m);for(var x=0;x<b.length;++x){var k=b[x];d&&null===n[k]||(_=_.concat(s(n[k],k,j,u,d,f?p:null,g,m,v,h,O,y)))}var U=_.join(l),A=!0===a.addQueryPrefix?"?":"";return U.length>0?A+U:""}},4328:function(t,e,n){"use strict";var r=n("4127"),o=n("9e6a"),i=n("b313");t.exports={formats:i,parse:o,stringify:r}},"45a3":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{"max-width":"500px",persistent:""},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelAction()}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[e("v-card",[e("v-card-title",{staticClass:"headline"},[t._v("\n      "+t._s(t.title)+"\n    ")]),e("v-card-text",[t._v("\n      "+t._s(t.text)+"\n    ")]),e("v-card-actions",[e("v-spacer"),this.loading?t._e():e("v-btn",{attrs:{color:"red",flat:"",loading:this.loading},on:{click:t.cancelAction}},[t._v(t._s(t.cancelText))]),e("v-btn",{attrs:{color:"green",flat:"",loading:this.loading},on:{click:t.confirmAction,keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()}}},[t._v(t._s(t.confirmText)+" ")])],1)],1)],1)},o=[],i={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")}}},a=i,c=n("2877"),s=Object(c["a"])(a,r,o,!1,null,null,null);e["a"]=s.exports},"5e44":function(t,e,n){"use strict";var r=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(n){return[n.item.to?[e("vue-anchor-router-link",{attrs:{to:n.item.to}},[t._v(t._s(n.item.text))])]:[t._v("\n        "+t._s(n.item.text)+"\n      ")]]}}])}),e("v-spacer"),t._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);e["a"]=l.exports},"7fb5":function(t,e,n){var r,o;(function(n,i){n||(n={}),r=[],o=function(){return n.jsonToFormData=i()}.apply(e,r),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(n){t[n]=e[n]})),t}),{})}function e(t){return"[object Array]"==={}.toString.call(t)}function n(t){return!e(t)&&"object"===typeof t&&!!t&&!(t instanceof Blob)&&!(t instanceof Date)}function r(t){return"function"===typeof t.append}function o(){return"function"===typeof FormData}function i(){if(o())return new FormData}function a(e,n){if(n&&n.initialFormData){if(!r(n.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 a={initialFormData:i(),showLeafArrayIndexes:!0,includeNullValues:!1,mapping:function(t){return"boolean"===typeof t?+t?"1":"0":t}},s=t(a,n||{});return c(e,s,s.initialFormData)}function c(t,r,o,i){var a=0;for(var s in t){if(t.hasOwnProperty(s)){var l=i||s,u=r.mapping(t[s]);if(i&&n(t)&&(l=i+"["+s+"]"),i&&e(t)&&(l=e(u)||r.showLeafArrayIndexes?i+"["+a+"]":i+"[]"),e(u)||n(u))c(u,r,o,l);else if(u instanceof FileList)for(var d=0;d<u.length;d++)o.append(l+"["+d+"]",u.item(d));else u instanceof Blob?o.append(l,u,u.name):u instanceof Date?o.append(l,u.toISOString()):(null===u&&r.includeNullValues||null!==u)&&void 0!==u&&o.append(l,u)}a++}return o}return a}))},"9e6a":function(t,e,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(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,c=r.split(e.delimiter,a),s=0;s<c.length;++s){var l,u,d=c[s],f=d.indexOf("]="),p=-1===f?d.indexOf("="):f+1;-1===p?(l=e.decoder(d,i.decoder),u=e.strictNullHandling?null:""):(l=e.decoder(d.slice(0,p),i.decoder),u=e.decoder(d.slice(p+1),i.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(u):n[l]=u}return n},c=function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[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(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,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 d=0;while(null!==(s=a.exec(r))&&d<n.depth){if(d+=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,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};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,""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof t?a(t,n):t,c=n.plainObjects?Object.create(null):{},l=Object.keys(o),u=0;u<l.length;++u){var d=l[u],f=s(d,o[d],n);c=r.merge(c,f,n)}return r.compact(c)}},b313:function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(t,e,n){"use strict";var r=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 n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)"undefined"!==typeof e[o]&&r.push(e[o]);n.obj[n.prop]=r}}return e},a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n},c=function t(e,n,o){if(!n)return e;if("object"!==typeof n){if(Array.isArray(e))e.push(n);else{if("object"!==typeof e)return[e,n];(o.plainObjects||o.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!==typeof e)return[e].concat(n);var i=e;return Array.isArray(e)&&!Array.isArray(n)&&(i=a(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach((function(n,i){r.call(e,i)?e[i]&&"object"===typeof e[i]?e[i]=t(e[i],n,o):e.push(n):e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return r.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,n){return t[n]=e[n],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),n="",r=0;r<e.length;++r){var i=e.charCodeAt(r);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=e.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&e.charCodeAt(r)),n+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return n},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[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)&&(e.push({obj:a,prop:l}),n.push(u))}return i(e)},f=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:d,decode:l,encode:u,isBuffer:p,isRegExp:f,merge:c}},e2dd:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("v-container",{staticClass:"pt-0",attrs:{fluid:""}},[e("v-card",{attrs:{flat:""}},[e("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:"",dark:""}},[e("v-toolbar-title",{staticClass:"font-weight-light"},[t._v(t._s(t.$t("message.statementOfAccount")))])],1),e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[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.record.from_date_picker,callback:function(e){t.$set(t.record,"from_date_picker",e)},expression:"record.from_date_picker"}},[e("v-text-field",{staticClass:"custom-placeholder-color",attrs:{slot:"activator",value:t.getDateFromISO(t.record.from_date),label:t.$t("message.fromDate"),placeholder:"Current Date","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":t.getValue(t.errorMessages,"from_date")},on:{input:function(e){t.record.from_date=""}},slot:"activator"}),e("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(e){t.record.from_date_picker=!1}},model:{value:t.record.from_date_model,callback:function(e){t.$set(t.record,"from_date_model",e)},expression:"record.from_date_model"}})],1)],1)],1)],1),e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[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.record.to_date_picker,callback:function(e){t.$set(t.record,"to_date_picker",e)},expression:"record.to_date_picker"}},[e("v-text-field",{staticClass:"custom-placeholder-color",attrs:{slot:"activator",value:t.getDateFromISO(t.record.to_date),label:t.$t("message.toDate"),placeholder:"Current Date","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":t.getValue(t.errorMessages,"to_date")},on:{input:function(e){t.record.to_date=""}},slot:"activator"}),e("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(e){t.record.to_date_picker=!1}},model:{value:t.record.to_date_model,callback:function(e){t.$set(t.record,"to_date_model",e)},expression:"record.to_date_model"}})],1)],1)],1)],1),e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[e("v-autocomplete",{attrs:{label:t.$t("message.fromUnit"),items:t.itemFromUnitOptions,placeholder:" ","persistent-hint":"","prepend-icon":"mdi-city",box:"",dense:"",clearable:"","hide-details":"","return-object":"","item-value":"id","item-text":"unit_no"},on:{input:function(e){return t.clearField(1)}},model:{value:t.record.from_unit,callback:function(e){t.$set(t.record,"from_unit",e)},expression:"record.from_unit"}})],1)],1)],1),e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[e("v-autocomplete",{attrs:{label:t.$t("message.toUnit"),items:t.itemToUnitOptions,placeholder:" ","persistent-hint":"","prepend-icon":"mdi-city",box:"",dense:"",clearable:"","hide-details":"","return-object":"","item-value":"id","item-text":"unit_no"},on:{input:function(e){return t.clearField(2)}},model:{value:t.record.to_unit,callback:function(e){t.$set(t.record,"to_unit",e)},expression:"record.to_unit"}})],1)],1)],1)],1),e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[e("v-select",{attrs:{label:t.$t("message.tenancyStatus"),items:[{id:"ACTIVE",label:"Active"},{id:"INACTIVE",label:"Inactive"}],placeholder:"All",box:"",dense:"",clearable:"","hide-details":"","item-value":"id","item-text":"label"},model:{value:t.record.tenancy_status,callback:function(e){t.$set(t.record,"tenancy_status",e)},expression:"record.tenancy_status"}})],1)],1)],1),e("v-flex",{attrs:{sm3:"",xs12:""}},[e("v-container",{staticClass:"pa-3"},[e("v-layout",{attrs:{column:"",wrap:""}},[e("v-autocomplete",{attrs:{label:t.$t("message.ownerName"),items:t.itemUnitOwnerOptions,loading:t.loadingUnitOwnerOptions,"search-input":t.searchUnitOwnerOptions,placeholder:" ","persistent-hint":"","prepend-icon":"mdi-city",box:"",multiple:"",dense:"",clearable:"","hide-details":"","return-object":"","item-value":"owner_name","item-text":"ownnam_name"},on:{"update:searchInput":function(e){t.searchUnitOwnerOptions=e},"update:search-input":function(e){t.searchUnitOwnerOptions=e},input:function(e){return t.clearField(3)},change:function(e){return t.handleUnit()}},model:{value:t.selective_unit,callback:function(e){t.selective_unit=e},expression:"selective_unit"}})],1)],1)],1)],1),e("v-toolbar",{attrs:{dense:"",flat:"",color:"grey lighten-2"}},[e("v-spacer"),[e("v-form",{attrs:{action:t.pdfLink,target:"_blank",method:"POST"}},[e("input",{attrs:{type:"hidden",name:"project_id"},domProps:{value:t.adminScope.projectId}}),e("input",{attrs:{type:"hidden",name:"company_id"},domProps:{value:t.adminScope.companyId}}),e("input",{attrs:{type:"hidden",name:"from_date"},domProps:{value:t.record.from_date}}),e("input",{attrs:{type:"hidden",name:"to_date"},domProps:{value:t.record.to_date}}),e("input",{attrs:{type:"hidden",name:"from_unit"},domProps:{value:t.getValue(t.record.from_unit,"unit_no")}}),e("input",{attrs:{type:"hidden",name:"to_unit"},domProps:{value:t.getValue(t.record.to_unit,"unit_no")}}),e("input",{attrs:{type:"hidden",name:"selective_units[]"},domProps:{value:t.selective_units}}),e("input",{attrs:{type:"hidden",name:"tenancy_status"},domProps:{value:t.record.tenancy_status}}),e("v-btn",{attrs:{type:"submit",color:"info",depressed:""}},[t._v(t._s(t.$t("message.pdf"))+"\n            "),e("v-icon",{attrs:{right:"",dark:""}},[t._v("cloud_download")])],1)],1)]],2)],1)],1),e("snackbar",{attrs:{snackbar:t.snackbar}})],1)},o=[],i=(n("8e6e"),n("456d"),n("ac6a"),n("ade3")),a=n("365c"),c=n("2f62"),s=n("4da1"),l=(n("323e"),n("7fb5"),n("1dce")),u=n("c1df"),d=n.n(u),f=n("45a3"),p=n("5e44"),m=n("8106");function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n("4328");var y={mixins:[l["validationMixin"]],validations:{},constants:{},created:function(){this.record=Object.assign({},this.defaultRecord),this.getSnackbar(),this.getFromUnitOptions(),this.getToUnitOptions(),this.getOwnerNameOptions()},components:{Breadcrumbs:p["a"],Snackbar:m["a"],ConfirmDialog:f["a"]},computed:h(h({},Object(c["b"])(["adminScope"])),{},{locked:function(){return this.record.locked},itemFromUnitOptions:function(){return this.entryFromUnitOptions.map((function(t){var e=t.id;return Object.assign({},t,{name:e})}))},itemToUnitOptions:function(){return this.entryToUnitOptions.map((function(t){var e=t.id;return Object.assign({},t,{name:e})}))},itemUnitOwnerOptions:function(){return this.entryUnitOwnerOptions.map((function(t){var e=t.ownnam_name;return Object.assign({},t,{name:e})}))},pdfLink:function(){return"https://pms.putericoveresidences.net/service/api/admin/financial/slb/statement/statement-of-account/export-pdf"}}),watch:{searchFromUnitOptions:function(t){this.itemFromUnitOptions.length>0||this.loadingFromUnitOptions||(this.loadingFromUnitOptions=!0,this.getFromUnitOptions())},searchToUnitOptions:function(t){this.itemToUnitOptions.length>0||this.loadingToUnitOptions||(this.loadingToUnitOptions=!0,this.getFromUnitOptions())},searchUnitOwnerOptions:function(t){this.itemUnitOwnerOptions.length>0||this.loadingUnitOwnerOptions||(this.loadingUnitOwnerOptions=!0,this.getOwnerNameOptions())},"record.from_date_model":function(t){t&&(this.record.from_date=d()(t).format())},"record.to_date_model":function(t){t&&(this.record.to_date=d()(t).format())}},methods:{getValue:function(t,e){return Object(s["j"])(t,e)},getDateTimeFromISO:function(t,e){return Object(s["g"])(t,e)},getDateFromISO:function(t,e){return Object(s["e"])(t,e)},convertDateToISO:function(t,e){return Object(s["a"])(t,e)},allowedTo:function(t){switch(t){case"view":return!this.$can.not("view","admin.financial-slb.statement.statement-of-account")}return!1},save:function(t){this.$refs.menu.save(t)},handleUnit:function(){var t=this;return this.selective_units=[],this.selective_unit.forEach((function(e){t.selective_units.push(e.owner_name)})),this.selective_units},clearField:function(t){1!=t&&2!=t||(this.selective_unit=[],this.selective_units=[]),3==t&&(this.from_unit=null,this.to_unit=null)},getSnackbar:function(){this.snackbar.message="",this.snackbar.type="error",this.snackbar.show=!1,"undefined"!=typeof this.$route.params.message&&(this.snackbar.message=this.$route.params.message,this.snackbar.type="success",this.snackbar.show=!0)},getFromUnitOptions:function(){var t=this;a["a"].get("admin/lookup/unit",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(e){var n=e.data.data;t.entryFromUnitOptions=n})).catch((function(t){})).finally((function(){return t.loadingFromUnitOptions=!1}))},getToUnitOptions:function(){var t=this;a["a"].get("admin/lookup/unit",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(e){var n=e.data.data;t.entryToUnitOptions=n})).catch((function(t){})).finally((function(){return t.loadingToUnitOptions=!1}))},getOwnerNameOptions:function(){var t=this;a["a"].get("admin/lookup/slb-owner-name",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(e){var n=e.data.data;t.entryUnitOwnerOptions=n})).catch((function(t){})).finally((function(){return t.loadingUnitOwnerOptions=!1}))}},data:function(){var t;return{record:{},emailId:"",messagePreview:"",emailData:[],emailMessage:"",receivers:[],fetching:!1,to_date:null,to_menu:!1,modal:!1,from_unit:null,to_unit:null,selective_unit:[],selective_units:[],show:null,showGenerateBillingConfirmDialog:!1,mode:"edit",showConfirmDeleteRecord:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null,defaultRecord:(t={from_date:null,to_date:null,from_unit:null,to_unit:null,selective_unit:null,tenancy_status:null,account_type:null},Object(i["a"])(t,"from_date",d()().format()),Object(i["a"])(t,"to_date",d()().format()),t),entryFromUnitOptions:[],loadingFromUnitOptions:!1,searchFromUnitOptions:null,entryToUnitOptions:[],loadingToUnitOptions:!1,searchToUnitOptions:null,entryUnitOwnerOptions:[],loadingUnitOwnerOptions:!1,searchUnitOwnerOptions:null}}},b=y,g=n("2877"),O=Object(g["a"])(b,r,o,!1,null,null,null);e["default"]=O.exports},f13c:function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=4,e=.001,n=1e-7,r=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,n){return((c(e,n)*t+s(e,n))*t+l(e))*t}function d(t,e,n){return 3*c(e,n)*t*t+2*s(e,n)*t+l(e)}function f(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)>n&&++l<r);return s}function p(e,n,r,o){for(var i=0;i<t;++i){var a=d(n,r,o);if(0===a)return n;var c=u(n,r,o)-e;n-=c/a}return n}var m=function(t,n,r,c){if(!(0<=t&&t<=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(t!==n||r!==c)for(var l=0;l<o;++l)s[l]=u(l*i,t,r);function m(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]),m=a+u*i,v=d(m,t,r);return v>=e?p(n,m,t,r):0===v?m:f(n,a,a+i,t,r)}return function(e){return t===n&&r===c?e:0===e?0:1===e?1:u(m(e),n,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(C){}var b={$:function(t){return"string"!==typeof t?t:document.querySelector(t)},on:function(t,e,n){var r=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],n,!!h&&r)},off:function(t,e,n){e instanceof Array||(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],n)},cumulativeOffset:function(t){var e=0,n=0;do{e+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:n}}},g="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 n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],_={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({},_,t)}var x=function(){var t=void 0,e=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,d=void 0,f=void 0,p=void 0,h=void 0,y=void 0,O=void 0,j=void 0,x=void 0,k=void 0,U=function(t){a&&(k=t,x=!0)},A=void 0,D=void 0,F=void 0,S=void 0;function T(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function P(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function C(t){if(x)return L();D||(D=t),F=t-D,S=Math.min(F/n,1),S=A(S),$(e,h+j*S,f+O*S),F<n?window.requestAnimationFrame(C):L()}function L(){x||$(e,y,p),D=!1,b.off(e,w,U),x&&l&&l(k,t),!x&&s&&s(t)}function $(t,e,n){d&&(t.scrollTop=e),u&&(t.scrollLeft=n),"body"===t.tagName.toLowerCase()&&(d&&(document.documentElement.scrollTop=e),u&&(document.documentElement.scrollLeft=n))}function N(D,F){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof F?"undefined":g(F))?S=F:"number"===typeof F&&(S.duration=F),t=b.$(D),!t)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+D);e=b.$(S.container||_.container),n=S.duration||_.duration,r=S.easing||_.easing,o=S.offset||_.offset,i=S.hasOwnProperty("force")?!1!==S.force:_.force,a=S.hasOwnProperty("cancelable")?!1!==S.cancelable:_.cancelable,c=S.onStart||_.onStart,s=S.onDone||_.onDone,l=S.onCancel||_.onCancel,u=void 0===S.x?_.x:S.x,d=void 0===S.y?_.y:S.y;var L=b.cumulativeOffset(e),$=b.cumulativeOffset(t);if("function"===typeof o&&(o=o()),h=T(e),y=$.top-L.top+o,f=P(e),p=$.left-L.left+o,x=!1,j=y-h,O=p-f,!i){var N=h,E=N+e.offsetHeight,I=y,R=I+t.offsetHeight;if(I>=N&&R<=E)return}return"string"===typeof r&&(r=v[r]||v["ease"]),A=m.apply(m,r),j||O?(c&&c(t),b.on(e,w,U,{passive:!0}),window.requestAnimationFrame(C),function(){k=null,x=!0}):void 0}return N},k=x(),U=[];function A(t){for(var e=0;e<U.length;++e)if(U[e].el===t)return U.splice(e,1),!0;return!1}function D(t){for(var e=0;e<U.length;++e)if(U[e].el===t)return U[e]}function F(t){var e=D(t);return e||(U.push(e={el:t,binding:{}}),e)}function S(t){t.preventDefault();var e=F(this).binding;if("string"===typeof e.value)return k(e.value);k(e.value.el||e.value.element,e.value)}var T={bind:function(t,e){F(t).binding=e,b.on(t,"click",S)},unbind:function(t){A(t),b.off(t,"click",S)},update:function(t,e){F(t).binding=e},scrollTo:k,bindings:U},P=function(t,e){e&&j(e),t.directive("scroll-to",T),t.prototype.$scrollTo=T.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=T,window.VueScrollTo.setDefaults=j,window.Vue.use(P)),T.install=P,T}))}}]);