(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-80607ce4"],{"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=[],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(e,t){this.previousRoute=e}}},u=l,d=r("2877"),f=Object(d["a"])(u,n,o,!1,null,null,null),p=f.exports;t["a"]=p},4127:function(e,t,r){"use strict";var n=r("d233"),o=r("b313"),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,r,o,a,i,s,l,u,d,f,p,m){var v=t;if("function"===typeof l)v=l(r,v);else if(v instanceof Date)v=f(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,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 w=0;w<y.length;++w){var j=y[w];i&&null===v[j]||(b=Array.isArray(v)?b.concat(e(v[j],o(r,j),o,a,i,s,l,u,d,f,p,m)):b.concat(e(v[j],r+(d?"."+j:"["+j+"]"),o,a,i,s,l,u,d,f,p,m)))}return b};e.exports=function(e,t){var r=e,i=t?n.assign({},t):{};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,d="boolean"===typeof i.skipNulls?i.skipNulls:c.skipNulls,f="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 b,g,w=o.formatters[i.format];"function"===typeof i.filter?(g=i.filter,r=g("",r)):Array.isArray(i.filter)&&(g=i.filter,b=g);var j,k=[];if("object"!==typeof r||null===r)return"";j=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[j];b||(b=Object.keys(r)),m&&b.sort(m);for(var _=0;_<b.length;++_){var x=b[_];d&&null===r[x]||(k=k.concat(s(r[x],x,O,u,d,f?p:null,g,m,v,h,w,y)))}var D=k.join(l),T=!0===i.addQueryPrefix?"?":"";return D.length>0?T+D:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),a=r("b313");e.exports={formats:a,parse:o,stringify:n}},"45a3":function(e,t,r){"use strict";var n=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)},o=[],a={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")}}},i=a,c=r("2877"),s=Object(c["a"])(i,n,o,!1,null,null,null);t["a"]=s.exports},"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=[],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);t["a"]=l.exports},"7fb5":function(e,t,r){var n,o;(function(r,a){r||(r={}),n=[],o=function(){return r.jsonToFormData=a()}.apply(t,n),void 0===o||(e.exports=o)})(this,(function(){function e(e,t){return[e,t].reduce((function(e,t){return Object.keys(t).forEach((function(r){e[r]=t[r]})),e}),{})}function t(e){return"[object Array]"==={}.toString.call(e)}function r(e){return!t(e)&&"object"===typeof e&&!!e&&!(e instanceof Blob)&&!(e instanceof Date)}function n(e){return"function"===typeof e.append}function o(){return"function"===typeof FormData}function a(){if(o())return new FormData}function i(t,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(e){return"boolean"===typeof e?+e?"1":"0":e}},s=e(i,r||{});return c(t,s,s.initialFormData)}function c(e,n,o,a){var i=0;for(var s in e){if(e.hasOwnProperty(s)){var l=a||s,u=n.mapping(e[s]);if(a&&r(e)&&(l=a+"["+s+"]"),a&&t(e)&&(l=t(u)||n.showLeafArrayIndexes?a+"["+i+"]":a+"[]"),t(u)||r(u))c(u,n,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&&n.includeNullValues||null!==u)&&void 0!==u&&o.append(l,u)}i++}return o}return i}))},"9e6a":function(e,t,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(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,c=n.split(t.delimiter,i),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=t.decoder(d,a.decoder),u=t.strictNullHandling?null:""):(l=t.decoder(d.slice(0,p),a.decoder),u=t.decoder(d.slice(p+1),a.decoder)),o.call(r,l)?r[l]=[].concat(r[l]).concat(u):r[l]=u}return r},c=function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var a,i=e[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(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,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 d=0;while(null!==(s=i.exec(n))&&d<r.depth){if(d+=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,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: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,""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?i(e,r):e,c=r.plainObjects?Object.create(null):{},l=Object.keys(o),u=0;u<l.length;++u){var d=l[u],f=s(d,o[d],r);c=n.merge(c,f,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}(),a=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},i=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 a=t;return Array.isArray(t)&&!Array.isArray(r)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach((function(r,a){n.call(t,a)?t[a]&&"object"===typeof t[a]?t[a]=e(t[a],r,o):t.push(r):t[a]=r})),t):Object.keys(r).reduce((function(t,a){var i=r[a];return n.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),a)},s=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},l=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 a=t.charCodeAt(n);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.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&t.charCodeAt(n)),r+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return r},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[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)&&(t.push({obj:i,prop:l}),r.push(u))}return a(t)},f=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:i,assign:s,compact:d,decode:l,encode:u,isBuffer:p,isRegExp:f,merge:c}},e732:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=this,r=t._self._c;return r("div",[r("breadcrumbs",{staticClass:"mb-3",attrs:{breadcrumbs:t.breadcrumbs}}),r("v-container",{staticClass:"pt-0",attrs:{fluid:""}},[r("v-card",{attrs:{flat:""}},[r("v-toolbar",{staticClass:"primary lighten-2",attrs:{flat:"",dark:""}},[r("v-toolbar-title",{staticClass:"font-weight-light"},[t._v(t._s(t.$t("message.changeParkingTypeRequest")))])],1),t.record.status.id!=t.STATUS_REJECTED?r("v-card-actions",{staticStyle:{"background-color":"#EEEEEE"}},[r("v-spacer"),t.form.fetching?[r("v-btn",{attrs:{depressed:"",color:"transparent",loading:t.form.fetching}})]:[t.allowedTo("approve")?r("v-btn",{attrs:{color:"info",depressed:"",loading:"save"==t.form.action},on:{click:t.approve}},[t._v(t._s(t.$t("message.approve")))]):t._e(),t.allowedTo("reject")?r("v-btn",{attrs:{color:"error",depressed:"",loading:"save"==t.form.action},on:{click:function(e){t.showRejectDialog=!0}}},[t._v(t._s(t.$t("message.reject")))]):t._e(),t.allowedTo("cancel")?r("v-btn",{attrs:{color:"grey lighten-2",depressed:"",disabled:"save"==t.form.action},on:{click:t.onCancel}},[t._v(t._s(t.$t("message.cancel")))]):t._e(),t.allowedTo("save")?r("v-btn",{attrs:{color:"info",depressed:"",loading:"save"==t.form.action},on:{click:function(e){return t.saveData("")}}},[t._v(t._s(t.$t("message.save")))]):t._e(),t.allowedTo("pdfForm")?r("v-btn",{attrs:{color:"primary",depressed:""},on:{click:t.pdfForm}},[t._v(t._s(t.$t("message.pdfForm")))]):t._e(),t.allowedTo("edit")?r("v-btn",{attrs:{color:"info",depressed:""},on:{click:function(e){t.mode="edit"}}},[t._v(t._s(t.$t("message.edit")))]):t._e()]],2):t._e(),r("v-layout",{attrs:{row:"",wrap:""}},[r("v-flex",{attrs:{xl8:"",lg8:"",md8:"",sm12:""}},[r("v-container",{staticClass:"pa-3"},[r("v-layout",{attrs:{column:"",wrap:""}},[r("v-text-field",{attrs:{label:t.$t("message.cardHoldersName"),"background-color":"transparent",placeholder:" ",box:"",readonly:""},model:{value:t.record.parent.card_holder_name,callback:function(e){t.$set(t.record.parent,"card_holder_name",e)},expression:"record.parent.card_holder_name"}}),r("v-text-field",{attrs:{label:t.$t("message.tenant"),placeholder:" ",box:"","background-color":"transparent",readonly:""},model:{value:t.record.unit_tenant.trading_as,callback:function(e){t.$set(t.record.unit_tenant,"trading_as",e)},expression:"record.unit_tenant.trading_as"}}),r("v-text-field",{attrs:{label:t.$t("message.cardSerialNo"),placeholder:" ","background-color":"transparent",box:"",readonly:""},model:{value:t.record.parent.serial_no,callback:function(e){t.$set(t.record.parent,"serial_no",e)},expression:"record.parent.serial_no"}}),r("v-text-field",{attrs:{value:t.getValue(t.record.old_type,"name"),label:t.$t("message.currentParkingType"),placeholder:" ",box:"","background-color":"transparent",readonly:""}}),r("v-text-field",{attrs:{value:t.getValue(t.record.type,"name"),label:t.$t("message.newParkingType"),placeholder:" ",box:"","background-color":"transparent",readonly:""}}),r("v-text-field",{attrs:{value:t.getDateFromISO(t.record.effective_date),label:t.$t("message.effectiveDate"),placeholder:" ",box:"","background-color":"transparent",readonly:""}}),t.record.status.id==t.STATUS_REJECTED?r("v-textarea",{attrs:{label:t.$t("message.reasonForReject"),placeholder:" ",box:"","background-color":"transparent",readonly:""},model:{value:t.record.reason_for_reject,callback:function(e){t.$set(t.record,"reason_for_reject",e)},expression:"record.reason_for_reject"}}):t._e()],1)],1)],1),r("v-flex",{attrs:{xl4:"",lg4:"",md4:"",sm12:""}},[r("v-container",{staticClass:"pa-3"},[r("v-layout",{attrs:{column:"",wrap:""}},[r("v-text-field",{attrs:{label:t.$t("message.status"),placeholder:" ",box:"","background-color":"transparent",readonly:""},model:{value:t.record.status.label,callback:function(e){t.$set(t.record.status,"label",e)},expression:"record.status.label"}}),r("v-textarea",{attrs:{label:t.$t("message.remarks"),placeholder:" ",box:"","background-color":t.canEdit("remarks")?"":"transparent",readonly:!t.canEdit("remarks"),"error-messages":t.getValue(t.errorMessages,"remarks")},model:{value:t.record.remarks,callback:function(e){t.$set(t.record,"remarks",e)},expression:"record.remarks"}})],1)],1)],1)],1)],1)],1),r("snackbar",{attrs:{snackbar:t.snackbar}}),r("confirm-dialog",{attrs:{title:"Are you sure ?",text:t.$t("message.confirmDelete"),cancelText:"Cancel",confirmText:"Confirm"},on:{cancelAction:function(){return e.showConfirmDeleteRecord=!1},confirmAction:function(){return t.deleteData()}},model:{value:t.showConfirmDeleteRecord,callback:function(e){t.showConfirmDeleteRecord=e},expression:"showConfirmDeleteRecord"}}),r("v-dialog",{attrs:{width:"500"},model:{value:t.showRejectDialog,callback:function(e){t.showRejectDialog=e},expression:"showRejectDialog"}},[r("v-card",[r("v-card-title",{staticClass:"headline error lighten-2 white--text"},[t._v("\n        "+t._s(t.$t("message.reasonForReject"))+"\n      ")]),r("v-card-text",{staticClass:"pb-0"},[r("v-textarea",{attrs:{required:"",box:"","error-messages":t.reasonForRejectErrors},on:{input:function(e){return t.$v.reasonForReject.$touch()},blur:function(e){return t.$v.reasonForReject.$touch()}},model:{value:t.reasonForReject,callback:function(e){t.reasonForReject=e},expression:"reasonForReject"}})],1),r("v-divider"),r("v-card-actions",[r("v-spacer"),r("v-btn",{attrs:{outline:""},on:{click:function(e){t.showRejectDialog=!1}}},[t._v("\n          "+t._s(t.$t("message.cancel"))+"\n        ")]),r("v-btn",{attrs:{color:"error",outline:"",loading:"save"==t.form.action},on:{click:t.reject}},[t._v("\n          "+t._s(t.$t("message.reject"))+"\n        ")])],1)],1)],1)],1)},o=[],a=(r("8e6e"),r("ac6a"),r("456d"),r("a481"),r("ade3")),i=r("365c"),c=r("2f62"),s=r("4da1"),l=r("323e"),u=r.n(l),d=(r("7fb5"),r("1dce")),f=r("b5ae"),p=r("45a3"),m=r("5e44"),v=r("8106");function h(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=r("4328"),g={mixins:[d["validationMixin"]],validations:{reasonForReject:{required:f["required"]}},constants:{STATUS_PENDING:0,STATUS_APPROVED:1,STATUS_REJECTED:2},created:function(){this.record=this.defaultRecord,"new"==this.recordId&&(this.mode="new"),this.getData()},components:{Breadcrumbs:m["a"],Snackbar:v["a"],ConfirmDialog:p["a"]},computed:y(y({},Object(c["b"])(["adminScope","mySession"])),{},{defaultRecord:function(){return Object.assign({},{tenant:this.defaultUnitTenant,status:this.defaultStatus})},defaultStatus:function(){return Object.assign({},{})},defaultUnitTenant:function(){return Object.assign({},{})},breadcrumbs:function(){var e=[{text:this.$t("message.changeParkingTypeRequest"),disabled:!1,to:{name:"admin.property.season-parking-management.parking-type-change"}}];return e.push({text:"new"==this.recordId?"New":Object(s["j"])(this.record.parent,"card_holder_name"),disabled:!0}),e},locked:function(){return this.record.locked},reasonForRejectErrors:function(){var e=[];return this.$v.reasonForReject.$dirty?(!this.$v.reasonForReject.required&&e.push(this.$t("message.reasonIsRequired")),e):e}}),watch:{$route:function(e,t){this.recordId=Object(s["j"])(e.params,"parkingTypeChangeId"),this.record=this.defaultRecord,"new"==this.recordId&&(this.mode="new"),this.getData()}},methods:{getValue:function(e,t){return Object(s["j"])(e,t)},getDateTimeFromISO:function(e,t){return Object(s["g"])(e,t)},getDateFromISO:function(e,t){return Object(s["e"])(e,t)},convertDateToISO:function(e,t){return Object(s["a"])(e,t)},allowedTo:function(e){switch(e){case"save":if("new"==this.mode||"edit"==this.mode)return!0;if(this.record.status.id!=this.STATUS_APPROVED)return!1;break;case"edit":return"new"!=this.recordId&&"edit"!=this.mode&&this.record.status.id==this.STATUS_APPROVED;case"cancel":if("new"!=this.recordId&&"edit"==this.mode)return!0;break;case"approve":if(this.$can.not("approve","acl.admin.property.season-parking-management.parking-type-changes"))return!1;if(this.record.status.id==this.STATUS_PENDING)return!0;break;case"reject":if(this.$can.not("approve","acl.admin.property.season-parking-management.parking-type-changes"))return!1;if(this.record.status.id==this.STATUS_PENDING)return!0;break;case"pdfForm":if(this.record.status.id==this.STATUS_APPROVED&&"view"==this.mode)return!0;break}return!1},canEdit:function(e){var t=!1;switch(t="edit"==this.mode||"new"==this.mode,e){case"remarks":case"new_serial_number":this.record.status.id==this.STATUS_REJECTED?t=!1:this.record.status.id==this.STATUS_PENDING&&(t=!0);break}return t},onCancel:function(){this.errorMessages=null,this.getData(),this.mode="view"},getData:function(){var e=this;"new"!=this.recordId&&(this.form.fetching=!0,u.a.start(),i["a"].get("admin/property/season-parking/parking-type-change/"+this.recordId,{params:{project_id:this.adminScope.projectId,company_id:this.adminScope.companyId}}).then((function(t){e.record=Object(s["j"])(t,"data.data")})).catch((function(e){})).then((function(){u.a.done(),e.form.fetching=!1})))},reject:function(){this.$v.$touch(),this.$v.$invalid||(this.record.reason_for_reject=this.reasonForReject,this.saveData("reject"))},approve:function(){this.saveData("approve")},pdfForm:function(){var e=b.stringify({project_id:this.adminScope.projectId,company_id:this.adminScope.companyId},{indices:!1}),t=window.open("https://pms.putericoveresidences.net/service/api/admin/property/season-parking/parking-type-change/"+this.record.id+"/download?"+e,"_blank");t.focus()},saveData:function(e){var t=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/property/season-parking/parking-type-change";"new"!==this.recordId&&(r=r+"/"+this.recordId,this.record._method="PATCH",["approve","reject"].indexOf(e)>=0&&(r+="/"+e,this.record._method="PUT")),i["a"].post(r,this.record).then((function(e){t.record=Object(s["j"])(e,"data.data"),t.snackbar.message=Object(s["j"])(e,"data.message"),t.snackbar.type="success",t.snackbar.show=!0,t.mode="view",t.$router.replace({name:"admin.property.season-parking-management.parking-type-change.view",params:{parkingTypeChangeId:t.record.id}})})).catch((function(e){t.snackbar.message=Object(s["j"])(e,"response.data.message"),t.snackbar.type="error",t.snackbar.show=!0,t.errorMessages=Object(s["j"])(e,"response.data.errors")})).then((function(){u.a.done(),t.showRejectDialog=!1,t.form.loading=!1,t.form.action=null}))}},data:function(){return{recordId:this.$route.params.parkingTypeChangeId,record:{},reasonForReject:"",mode:"view",showConfirmDeleteRecord:!1,showRejectDialog:!1,form:{fetching:!1,loading:!1,action:null},snackbar:{show:!1,type:null,message:null},errorMessages:null}}},w=g,j=r("2877"),k=Object(j["a"])(w,n,o,!1,null,null,null);t["default"]=k.exports},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,a=1/(o-1),i="function"===typeof Float32Array;function c(e,t){return 1-3*t+3*e}function s(e,t){return 3*t-6*e}function l(e){return 3*e}function u(e,t,r){return((c(t,r)*e+s(t,r))*e+l(t))*e}function d(e,t,r){return 3*c(t,r)*e*e+2*s(t,r)*e+l(t)}function f(e,t,o,a,i){var c,s,l=0;do{s=t+(o-t)/2,c=u(s,a,i)-e,c>0?o=s:t=s}while(Math.abs(c)>r&&++l<n);return s}function p(t,r,n,o){for(var a=0;a<e;++a){var i=d(r,n,o);if(0===i)return r;var c=u(r,n,o)-t;r-=c/i}return r}var m=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 s=i?new Float32Array(o):new Array(o);if(e!==r||n!==c)for(var l=0;l<o;++l)s[l]=u(l*a,e,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=d(m,e,n);return v>=t?p(r,m,e,n):0===v?m:f(r,i,i+a,e,n)}return function(t){return e===r&&n===c?t:0===t?0:1===t?1:u(m(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]},h=!1;try{var y=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,y)}catch(P){}var b={$: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,!!h&&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}}},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},w=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},j=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],k={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function O(e){k=w({},k,e)}var _=function(){var e=void 0,t=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,d=void 0,f=void 0,p=void 0,h=void 0,y=void 0,w=void 0,O=void 0,_=void 0,x=void 0,D=function(e){i&&(x=e,_=!0)},T=void 0,S=void 0,A=void 0,R=void 0;function $(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function E(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function P(e){if(_)return C();S||(S=e),A=e-S,R=Math.min(A/r,1),R=T(R),F(t,h+O*R,f+w*R),A<r?window.requestAnimationFrame(P):C()}function C(){_||F(t,y,p),S=!1,b.off(t,j,D),_&&l&&l(x,e),!_&&s&&s(e)}function F(e,t,r){d&&(e.scrollTop=t),u&&(e.scrollLeft=r),"body"===e.tagName.toLowerCase()&&(d&&(document.documentElement.scrollTop=t),u&&(document.documentElement.scrollLeft=r))}function I(S,A){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===("undefined"===typeof A?"undefined":g(A))?R=A:"number"===typeof A&&(R.duration=A),e=b.$(S),!e)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+S);t=b.$(R.container||k.container),r=R.duration||k.duration,n=R.easing||k.easing,o=R.offset||k.offset,a=R.hasOwnProperty("force")?!1!==R.force:k.force,i=R.hasOwnProperty("cancelable")?!1!==R.cancelable:k.cancelable,c=R.onStart||k.onStart,s=R.onDone||k.onDone,l=R.onCancel||k.onCancel,u=void 0===R.x?k.x:R.x,d=void 0===R.y?k.y:R.y;var C=b.cumulativeOffset(t),F=b.cumulativeOffset(e);if("function"===typeof o&&(o=o()),h=$(t),y=F.top-C.top+o,f=E(t),p=F.left-C.left+o,_=!1,O=y-h,w=p-f,!a){var I=h,N=I+t.offsetHeight,L=y,V=L+e.offsetHeight;if(L>=I&&V<=N)return}return"string"===typeof n&&(n=v[n]||v["ease"]),T=m.apply(m,n),O||w?(c&&c(e),b.on(t,j,D,{passive:!0}),window.requestAnimationFrame(P),function(){x=null,_=!0}):void 0}return I},x=_(),D=[];function T(e){for(var t=0;t<D.length;++t)if(D[t].el===e)return D.splice(t,1),!0;return!1}function S(e){for(var t=0;t<D.length;++t)if(D[t].el===e)return D[t]}function A(e){var t=S(e);return t||(D.push(t={el:e,binding:{}}),t)}function R(e){e.preventDefault();var t=A(this).binding;if("string"===typeof t.value)return x(t.value);x(t.value.el||t.value.element,t.value)}var $={bind:function(e,t){A(e).binding=t,b.on(e,"click",R)},unbind:function(e){T(e),b.off(e,"click",R)},update:function(e,t){A(e).binding=t},scrollTo:x,bindings:D},E=function(e,t){t&&O(t),e.directive("scroll-to",$),e.prototype.$scrollTo=$.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=$,window.VueScrollTo.setDefaults=O,window.Vue.use(E)),$.install=E,$}))}}]);