(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35b509b6"],{"3ba2":function(e,t,n){"use strict";var o=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)},r=[],i=(n("c5f6"),n("2b0e")),a=n("8c4f"),c=n("f13c"),l=n.n(c);i["default"].use(a["a"]),i["default"].use(l.a);var u={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}}},s=u,f=n("2877"),d=Object(f["a"])(s,o,r,!1,null,null,null),p=d.exports;t["a"]=p},4127:function(e,t,n){"use strict";var o=n("d233"),r=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:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,r,i,a,l,u,s,f,d,p,m){var v=t;if("function"===typeof u)v=u(n,v);else if(v instanceof Date)v=d(v);else if(null===v){if(i)return l&&!m?l(n,c.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||o.isBuffer(v)){if(l){var y=m?n:l(n,c.encoder);return[p(y)+"="+p(l(v,c.encoder))]}return[p(n)+"="+p(String(v))]}var h,b=[];if("undefined"===typeof v)return b;if(Array.isArray(u))h=u;else{var g=Object.keys(v);h=s?g.sort(s):g}for(var O=0;O<h.length;++O){var _=h[O];a&&null===v[_]||(b=Array.isArray(v)?b.concat(e(v[_],r(n,_),r,i,a,l,u,s,f,d,p,m)):b.concat(e(v[_],n+(f?"."+_:"["+_+"]"),r,i,a,l,u,s,f,d,p,m)))}return b};e.exports=function(e,t){var n=e,a=t?o.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!==typeof a.encoder)throw new TypeError("Encoder has to be a function.");var u="undefined"===typeof a.delimiter?c.delimiter:a.delimiter,s="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,m="function"===typeof a.sort?a.sort:null,v="undefined"!==typeof a.allowDots&&a.allowDots,y="function"===typeof a.serializeDate?a.serializeDate:c.serializeDate,h="boolean"===typeof a.encodeValuesOnly?a.encodeValuesOnly:c.encodeValuesOnly;if("undefined"===typeof a.format)a.format=r["default"];else if(!Object.prototype.hasOwnProperty.call(r.formatters,a.format))throw new TypeError("Unknown format option provided.");var b,g,O=r.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"";_=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=i[_];b||(b=Object.keys(n)),m&&b.sort(m);for(var k=0;k<b.length;++k){var x=b[k];f&&null===n[x]||(w=w.concat(l(n[x],x,j,s,f,d?p:null,g,m,v,y,O,h)))}var L=w.join(u),D=!0===a.addQueryPrefix?"?":"";return L.length>0?D+L:""}},4328:function(e,t,n){"use strict";var o=n("4127"),r=n("9e6a"),i=n("b313");e.exports={formats:i,parse:r,stringify:o}},"45a3":function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{"max-width":"500px",persistent:""},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelAction()}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[t("v-card",[t("v-card-title",{staticClass:"headline"},[e._v("\n      "+e._s(e.title)+"\n    ")]),t("v-card-text",[e._v("\n      "+e._s(e.text)+"\n    ")]),t("v-card-actions",[t("v-spacer"),this.loading?e._e():t("v-btn",{attrs:{color:"red",flat:"",loading:this.loading},on:{click:e.cancelAction}},[e._v(e._s(e.cancelText))]),t("v-btn",{attrs:{color:"green",flat:"",loading:this.loading},on:{click:e.confirmAction,keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()}}},[e._v(e._s(e.confirmText)+" ")])],1)],1)],1)},r=[],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"),l=Object(c["a"])(a,o,r,!1,null,null,null);t["a"]=l.exports},"56d2":function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",[t("v-autocomplete",{attrs:{label:e.label,items:e.itemLookupOptions,loading:e.loadingLookupOptions,"search-input":e.searchLookupOptions,clearable:"","item-text":"name","item-value":"id",placeholder:" ","return-object":e.returnObject,"error-messages":e.error,"menu-props":{fixed:!0,nudgeBottom:10,maxHeight:300},dense:e.dense,box:e.box,solo:e.solo,flat:e.flat,outline:e.outline,"hide-details":e.hideDetails},on:{"update:searchInput":function(t){e.searchLookupOptions=t},"update:search-input":function(t){e.searchLookupOptions=t}},model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}})],1)},r=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),a=n("365c"),c=n("2f62");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={props:{value:[String,Object],itemOptions:{type:Array,default:function(){return[]}},label:String,error:Array,returnObject:{type:Boolean,default:!0},dense:{type:Boolean,default:!1},solo:{type:Boolean,default:!1},box:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},hideDetails:{type:Boolean,default:!1}},created:function(){this.internalValue=this.value},mounted:function(){0==this.itemOptions.length&&this.getLookupOptions()},computed:u(u({},Object(c["b"])(["adminScope"])),{},{itemLookupOptions:function(){return this.filteredLookupOptions=this.entryLookupOptions,this.filteredLookupOptions.map((function(e){var t=e.lease_id_name;return Object.assign({},e,{name:t})}))}}),watch:{searchLookupOptions:function(e){this.itemLookupOptions.length>0||this.loadingLookupOptions||(this.loadingLookupOptions=!0,this.getLookupOptions())},internalValue:function(){this.$emit("input",this.internalValue)}},methods:{getLookupOptions:function(){var e=this;a["a"].get("admin/lookup/lease-out-tenant",{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(t){var n=t.data.data;e.entryLookupOptions=n})).catch((function(e){})).finally((function(){return e.loadingLookupOptions=!1}))}},data:function(){return{internalValue:{},entryLookupOptions:this.itemOptions,loadingLookupOptions:!1,searchLookupOptions:null}}},f=s,d=n("2877"),p=Object(d["a"])(f,o,r,!1,null,null,null);t["a"]=p.exports},"5e44":function(e,t,n){"use strict";var o=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)},r=[],i=n("3ba2"),a={props:["breadcrumbs","color"],computed:{},components:{VueAnchorRouterLink:i["a"]}},c=a,l=n("2877"),u=Object(l["a"])(c,o,r,!1,null,null,null);t["a"]=u.exports},"7fb5":function(e,t,n){var o,r;(function(n,i){n||(n={}),o=[],r=function(){return n.jsonToFormData=i()}.apply(t,o),void 0===r||(e.exports=r)})(this,(function(){function e(e,t){return[e,t].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})}function t(e){return"[object Array]"==={}.toString.call(e)}function n(e){return!t(e)&&"object"===typeof e&&!!e&&!(e instanceof Blob)&&!(e instanceof Date)}function o(e){return"function"===typeof e.append}function r(){return"function"===typeof FormData}function i(){if(r())return new FormData}function a(t,n){if(n&&n.initialFormData){if(!o(n.initialFormData))throw"initialFormData must have an append function."}else if(!r())throw"This environment does not have global form data. options.initialFormData must be specified.";var a={initialFormData:i(),showLeafArrayIndexes:!0,includeNullValues:!1,mapping:function(e){return"boolean"===typeof e?+e?"1":"0":e}},l=e(a,n||{});return c(t,l,l.initialFormData)}function c(e,o,r,i){var a=0;for(var l in e){if(e.hasOwnProperty(l)){var u=i||l,s=o.mapping(e[l]);if(i&&n(e)&&(u=i+"["+l+"]"),i&&t(e)&&(u=t(s)||o.showLeafArrayIndexes?i+"["+a+"]":i+"[]"),t(s)||n(s))c(s,o,r,u);else if(s instanceof FileList)for(var f=0;f<s.length;f++)r.append(u+"["+f+"]",s.item(f));else s instanceof Blob?r.append(u,s,s.name):s instanceof Date?r.append(u,s.toISOString()):(null===s&&o.includeNullValues||null!==s)&&void 0!==s&&r.append(u,s)}a++}return r}return a}))},"9e6a":function(e,t,n){"use strict";var o=n("d233"),r=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,c=o.split(t.delimiter,a),l=0;l<c.length;++l){var u,s,f=c[l],d=f.indexOf("]="),p=-1===d?f.indexOf("="):d+1;-1===p?(u=t.decoder(f,i.decoder),s=t.strictNullHandling?null:""):(u=t.decoder(f.slice(0,p),i.decoder),s=t.decoder(f.slice(p+1),i.decoder)),r.call(n,u)?n[u]=[].concat(n[u]).concat(s):n[u]=s}return n},c=function(e,t,n){for(var o=t,r=e.length-1;r>=0;--r){var i,a=e[r];if("[]"===a)i=[],i=i.concat(o);else{i=n.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&&n.parseArrays&&l<=n.arrayLimit?(i=[],i[l]=o):i[c]=o}o=i}return o},l=function(e,t,n){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.exec(o),u=l?o.slice(0,l.index):o,s=[];if(u){if(!n.plainObjects&&r.call(Object.prototype,u)&&!n.allowPrototypes)return;s.push(u)}var f=0;while(null!==(l=a.exec(o))&&f<n.depth){if(f+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+o.slice(l.index)+"]"),c(s,t,n)}};e.exports=function(e,t){var n=t?o.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||o.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 r="string"===typeof e?a(e,n):e,c=n.plainObjects?Object.create(null):{},u=Object.keys(r),s=0;s<u.length;++s){var f=u[s],d=l(f,r[f],n);c=o.merge(c,d,n)}return o.compact(c)}},b313:function(e,t,n){"use strict";var o=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,r,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r=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 o=[],r=0;r<t.length;++r)"undefined"!==typeof t[r]&&o.push(t[r]);n.obj[n.prop]=o}}return t},a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!==typeof e[o]&&(n[o]=e[o]);return n},c=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(Array.isArray(t))t.push(n);else{if("object"!==typeof t)return[t,n];(r.plainObjects||r.allowPrototypes||!o.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,r)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,i){o.call(t,i)?t[i]&&"object"===typeof t[i]?t[i]=e(t[i],n,r):t.push(n):t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),i)},l=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},s=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),n="",o=0;o<t.length;++o){var i=t.charCodeAt(o);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=t.charAt(o):i<128?n+=r[i]:i<2048?n+=r[192|i>>6]+r[128|63&i]:i<55296||i>=57344?n+=r[224|i>>12]+r[128|i>>6&63]+r[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),n+=r[240|i>>18]+r[128|i>>12&63]+r[128|i>>6&63]+r[128|63&i])}return n},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],c=Object.keys(a),l=0;l<c.length;++l){var u=c[l],s=a[u];"object"===typeof s&&null!==s&&-1===n.indexOf(s)&&(t.push({obj:a,prop:u}),n.push(s))}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:u,encode:s,isBuffer:p,isRegExp:d,merge:c}},e0f2:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("v-container",{staticClass:"pt-0",attrs:{fluid:""}},[t("v-card",{attrs:{flat:""}},[t("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:"",dark:""}},[t("v-toolbar-title",{staticClass:"font-weight-light"},[e._v(e._s(e.$t("message.emailHistory")))])],1),t("v-layout",{attrs:{row:"",wrap:""}},[t("v-flex",{attrs:{sm3:"",xs12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,lazy:"",transition:"scale-transition","offset-y":"","full-width":"","min-width":"290px"},model:{value:e.record.from_date_picker,callback:function(t){e.$set(e.record,"from_date_picker",t)},expression:"record.from_date_picker"}},[t("v-text-field",{staticClass:"custom-placeholder-color",attrs:{slot:"activator",value:e.getDateFromISO(e.record.from_date),label:e.$t("message.fromDate"),placeholder:"Select Date","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":e.getValue(e.errorMessages,"from_date")},on:{input:function(t){e.record.from_date=""}},slot:"activator"}),t("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(t){e.record.from_date_picker=!1}},model:{value:e.record.from_date_model,callback:function(t){e.$set(e.record,"from_date_model",t)},expression:"record.from_date_model"}})],1)],1)],1)],1),t("v-flex",{attrs:{sm3:"",xs12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,lazy:"",transition:"scale-transition","offset-y":"","full-width":"","min-width":"290px"},model:{value:e.record.to_date_picker,callback:function(t){e.$set(e.record,"to_date_picker",t)},expression:"record.to_date_picker"}},[t("v-text-field",{staticClass:"custom-placeholder-color",attrs:{slot:"activator",value:e.getDateFromISO(e.record.to_date),label:e.$t("message.toDate"),placeholder:"Current Date","append-icon":"event",box:"",readonly:"",clearable:"","error-messages":e.getValue(e.errorMessages,"to_date")},on:{input:function(t){e.record.to_date=""}},slot:"activator"}),t("v-date-picker",{attrs:{color:"primary lighten-2"},on:{input:function(t){e.record.to_date_picker=!1}},model:{value:e.record.to_date_model,callback:function(t){e.$set(e.record,"to_date_model",t)},expression:"record.to_date_model"}})],1)],1)],1)],1),t("v-flex",{attrs:{sm3:"",xs12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("from-unit-lookup",e._b({on:{input:function(t){return e.clearField(1)}},model:{value:e.record.from_unit,callback:function(t){e.$set(e.record,"from_unit",t)},expression:"record.from_unit"}},"from-unit-lookup",{label:e.$t("message.fromTenant"),itemOptions:e.fromUnitOptions,dense:!0,box:!0,returnObject:!0,error:e.getValue(e.errorMessages,"")},!1))],1)],1)],1),t("v-flex",{attrs:{sm3:"",xs12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("to-unit-lookup",e._b({on:{input:function(t){return e.clearField(2)}},model:{value:e.record.to_unit,callback:function(t){e.$set(e.record,"to_unit",t)},expression:"record.to_unit"}},"to-unit-lookup",{label:e.$t("message.toTenant"),itemOptions:e.toUnitOptions,dense:!0,box:!0,returnObject:!0,error:e.getValue(e.errorMessages,"")},!1))],1)],1)],1)],1),t("v-layout",{attrs:{row:"",wrap:""}},[t("v-flex",{attrs:{sm3:"",xs12:""}},[t("v-container",{staticClass:"pa-3"},[t("v-layout",{attrs:{column:"",wrap:""}},[t("v-select",{attrs:{label:e.$t("message.type"),items:[{id:2,label:"Print Bill"}],placeholder:"All",box:"",dense:"",clearable:"","hide-details":"","item-value":"id","item-text":"label"},model:{value:e.record.type,callback:function(t){e.$set(e.record,"type",t)},expression:"record.type"}})],1)],1)],1)],1),t("v-toolbar",{attrs:{dense:"",flat:"",color:"grey lighten-2"}},[t("v-spacer"),[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("input",{attrs:{type:"hidden",name:"from_date"},domProps:{value:e.record.from_date}}),t("input",{attrs:{type:"hidden",name:"to_date"},domProps:{value:e.record.to_date}}),t("input",{attrs:{type:"hidden",name:"from_unit"},domProps:{value:e.getValue(e.record.from_unit,"company_name")}}),t("input",{attrs:{type:"hidden",name:"to_unit"},domProps:{value:e.getValue(e.record.to_unit,"company_name")}}),t("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.record.type}}),t("v-btn",{attrs:{type:"submit",color:"info",depressed:""}},[e._v(e._s(e.$t("message.pdf"))+"\n            "),t("v-icon",{attrs:{right:"",dark:""}},[e._v("cloud_download")])],1)],1)]],2)],1)],1)],1)},r=[],i=(n("8e6e"),n("456d"),n("ac6a"),n("ade3")),a=n("365c"),c=n("2f62"),l=n("4da1"),u=(n("323e"),n("7fb5"),n("1dce")),s=n("c1df"),f=n.n(s),d=n("45a3"),p=n("5e44"),m=n("8106"),v=n("56d2");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=n("4328"),g={mixins:[u["validationMixin"]],validations:{},constants:{},created:function(){var e=this;window.Echo.channel("report."+this.uuid).listen("GenerateReportCompleted",(function(t){a["a"].get("admin/file",{params:{name:t.file,keep:!1},responseType:"blob"}).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement("a");n.href=t,n.setAttribute("download","report-aging.xlsx"),document.body.appendChild(n),n.click(),n.parentNode.removeChild(n)})).catch((function(e){})).then((function(){e.generate=!1}))}))},components:{Breadcrumbs:p["a"],Snackbar:m["a"],ConfirmDialog:d["a"],FromUnitLookup:v["a"],ToUnitLookup:v["a"]},computed:h(h({},Object(c["b"])(["adminScope"])),{},{breadcrumbs:function(){var e=[{text:this.$t("message.generalLedger"),disabled:!0}];return e},locked:function(){return this.record.locked},pdfLink:function(){return"https://pms.putericoveresidences.net/service/api/admin/rems/ar-report/email-history/export-pdf"},uuid:function(){return this.$uuid.v1().substring(0,13)}}),watch:{"record.from_date_model":function(e){e&&(this.record.from_date=f()(e).format())},"record.to_date_model":function(e){e&&(this.record.to_date=f()(e).format())}},methods:{save:function(e){this.$refs.menu.save(e)},handleUnit:function(){var e=this;return this.selective_units=[],this.selective_unit.forEach((function(t){e.selective_units.push(t.unit_no)})),this.selective_units},clearField:function(e){1!=e&&2!=e||(this.selective_unit=[],this.selective_units=[]),3==e&&(this.from_unit=null,this.to_unit=null)},toSave:function(e){this.$refs.toMenu.save(e)},getValue:function(e,t){return Object(l["j"])(e,t)},getDateTimeFromISO:function(e,t){return Object(l["g"])(e,t)},getDateFromISO:function(e,t){return Object(l["e"])(e,t)},convertDateToISO:function(e,t){return Object(l["a"])(e,t)},allowedTo:function(e){switch(e){case"print":return!this.$can.not("print","acl.admin.rems.collections.receipt")}return!1},downloadXls:function(){this.generate=!0,a["a"].get("admin/rems/ar-report/email-history/export-xls",{params:{uuid:this.uuid,from_date:this.record.from_date,to_date:this.record.to_date,from_unit:Object(l["j"])(this.record.from_unit,"company_name"),to_unit:Object(l["j"])(this.record.to_unit,"company_name"),selective_units:this.selective_units,type:this.record.type,project_id:this.adminScope.projectId,company_id:this.adminScope.companyId},paramsSerializer:function(e){return b.stringify(e,{indices:!1})}}).then((function(e){})).catch((function(e){})).then((function(){}))}},data:function(){return{record:{},to_date:null,to_menu:!1,modal:!1,from_unit:null,to_unit:null,selective_unit:[],selective_units:[],show:null,mode:"edit",showConfirmDeleteRecord:!1,generate:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null,defaultRecord:{from_date:null,to_date:null,from_unit:null,to_unit:null,selective_unit:null,tenancy_status:null,account_type:null,type:null},fromUnitOptions:[],toUnitOptions:[]}}},O=g,_=n("2877"),w=Object(_["a"])(O,o,r,!1,null,null,null);t["default"]=w.exports},f13c:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=4,t=.001,n=1e-7,o=10,r=11,i=1/(r-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 u(e){return 3*e}function s(e,t,n){return((c(t,n)*e+l(t,n))*e+u(t))*e}function f(e,t,n){return 3*c(t,n)*e*e+2*l(t,n)*e+u(t)}function d(e,t,r,i,a){var c,l,u=0;do{l=t+(r-t)/2,c=s(l,i,a)-e,c>0?r=l:t=l}while(Math.abs(c)>n&&++u<o);return l}function p(t,n,o,r){for(var i=0;i<e;++i){var a=f(n,o,r);if(0===a)return n;var c=s(n,o,r)-t;n-=c/a}return n}var m=function(e,n,o,c){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");var l=a?new Float32Array(r):new Array(r);if(e!==n||o!==c)for(var u=0;u<r;++u)l[u]=s(u*i,e,o);function m(n){for(var a=0,c=1,u=r-1;c!==u&&l[c]<=n;++c)a+=i;--c;var s=(n-l[c])/(l[c+1]-l[c]),m=a+s*i,v=f(m,e,o);return v>=t?p(n,m,e,o):0===v?m:d(n,a,a+i,e,o)}return function(t){return e===n&&o===c?t:0===t?0:1===t?1:s(m(t),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]},y=!1;try{var h=Object.defineProperty({},"passive",{get:function(){y=!0}});window.addEventListener("test",null,h)}catch(F){}var b={$:function(e){return"string"!==typeof e?e:document.querySelector(e)},on:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};t instanceof Array||(t=[t]);for(var r=0;r<t.length;r++)e.addEventListener(t[r],n,!!y&&o)},off:function(e,t,n){t instanceof Array||(t=[t]);for(var o=0;o<t.length;o++)e.removeEventListener(t[o],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}}},g="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 n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],w={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function j(e){w=O({},w,e)}var k=function(){var e=void 0,t=void 0,n=void 0,o=void 0,r=void 0,i=void 0,a=void 0,c=void 0,l=void 0,u=void 0,s=void 0,f=void 0,d=void 0,p=void 0,y=void 0,h=void 0,O=void 0,j=void 0,k=void 0,x=void 0,L=function(e){a&&(x=e,k=!0)},D=void 0,A=void 0,S=void 0,P=void 0;function C(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function T(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function F(e){if(k)return $();A||(A=e),S=e-A,P=Math.min(S/n,1),P=D(P),E(t,y+j*P,d+O*P),S<n?window.requestAnimationFrame(F):$()}function $(){k||E(t,h,p),A=!1,b.off(t,_,L),k&&u&&u(x,e),!k&&l&&l(e)}function E(e,t,n){f&&(e.scrollTop=t),s&&(e.scrollLeft=n),"body"===e.tagName.toLowerCase()&&(f&&(document.documentElement.scrollTop=t),s&&(document.documentElement.scrollLeft=n))}function V(A,S){var P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof S?"undefined":g(S))?P=S:"number"===typeof S&&(P.duration=S),e=b.$(A),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+A);t=b.$(P.container||w.container),n=P.duration||w.duration,o=P.easing||w.easing,r=P.offset||w.offset,i=P.hasOwnProperty("force")?!1!==P.force:w.force,a=P.hasOwnProperty("cancelable")?!1!==P.cancelable:w.cancelable,c=P.onStart||w.onStart,l=P.onDone||w.onDone,u=P.onCancel||w.onCancel,s=void 0===P.x?w.x:P.x,f=void 0===P.y?w.y:P.y;var $=b.cumulativeOffset(t),E=b.cumulativeOffset(e);if("function"===typeof r&&(r=r()),y=C(t),h=E.top-$.top+r,d=T(t),p=E.left-$.left+r,k=!1,j=h-y,O=p-d,!i){var V=y,N=V+t.offsetHeight,R=h,I=R+e.offsetHeight;if(R>=V&&I<=N)return}return"string"===typeof o&&(o=v[o]||v["ease"]),D=m.apply(m,o),j||O?(c&&c(e),b.on(t,_,L,{passive:!0}),window.requestAnimationFrame(F),function(){x=null,k=!0}):void 0}return V},x=k(),L=[];function D(e){for(var t=0;t<L.length;++t)if(L[t].el===e)return L.splice(t,1),!0;return!1}function A(e){for(var t=0;t<L.length;++t)if(L[t].el===e)return L[t]}function S(e){var t=A(e);return t||(L.push(t={el:e,binding:{}}),t)}function P(e){e.preventDefault();var t=S(this).binding;if("string"===typeof t.value)return x(t.value);x(t.value.el||t.value.element,t.value)}var C={bind:function(e,t){S(e).binding=t,b.on(e,"click",P)},unbind:function(e){D(e),b.off(e,"click",P)},update:function(e,t){S(e).binding=t},scrollTo:x,bindings:L},T=function(e,t){t&&j(t),e.directive("scroll-to",C),e.prototype.$scrollTo=C.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=C,window.VueScrollTo.setDefaults=j,window.Vue.use(T)),C.install=T,C}))}}]);