(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d3a2c"],{"5e39":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("v-container",[t("v-card",[t("v-layout",[t("v-flex",{attrs:{xs6:""}},[t("v-container",[t("v-layout",{attrs:{column:"",wrap:""}},[t("v-text-field",{attrs:{label:e.$t("message.cardholdersName"),placeholder:" ",outline:"","error-messages":e.getValue(e.errorMessages,"subject")},model:{value:e.record.card_holder_name,callback:function(t){e.$set(e.record,"card_holder_name",t)},expression:"record.card_holder_name"}}),t("v-text-field",{attrs:{label:"Vehicle Registration No.",placeholder:" ",outline:"","error-messages":e.getValue(e.errorMessages,"subject")},model:{value:e.record.vehicle_reg_no,callback:function(t){e.$set(e.record,"vehicle_reg_no",t)},expression:"record.vehicle_reg_no"}}),t("v-text-field",{attrs:{label:"Vehicle Model",placeholder:" ",outline:"","error-messages":e.getValue(e.errorMessages,"subject")},model:{value:e.record.vehicle_model,callback:function(t){e.$set(e.record,"vehicle_model",t)},expression:"record.vehicle_model"}}),t("v-text-field",{attrs:{label:"Vehicle Color",placeholder:" ",outline:"","error-messages":e.getValue(e.errorMessages,"subject")},model:{value:e.record.vehicle_color,callback:function(t){e.$set(e.record,"vehicle_color",t)},expression:"record.vehicle_color"}})],1)],1)],1)],1),t("v-layout",[t("v-flex",{attrs:{xs12:""}},[t("v-btn",{attrs:{color:"primary",loading:"save"==e.form.action},on:{click:e.saveData}},[e._v("Submit")])],1)],1)],1)],1),t("snackbar",{attrs:{snackbar:e.snackbar}})],1)},s=[],o=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),c=(r("e562"),r("365c")),n=r("2f62"),i=r("4da1"),_=r("323e"),l=r.n(_),d=r("8106"),p=r("fb7a");r("c1df");function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){Object(o["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={data:function(){return{appType:Object({NODE_ENV:"production",VUE_APP_API_BASEURL:"https://pms.putericoveresidences.net/service/api",VUE_APP_DESIGN_SITE_LOGO_WRAP_COLOR:"",VUE_APP_GOOGLE_ANALYTICS:"",VUE_APP_IDLE_TIME:"28740000",VUE_APP_IS_WHITE_LABEL:"true",VUE_APP_LOGO_ENDPOINT:"",VUE_APP_NAME:"PuteriCove",VUE_APP_PASSPORT_CLIENT_ID:"2",VUE_APP_PASSPORT_CLIENT_SECRET:"OiyeoNx5slPvbtYjwqV0R3i91VtTPjXrI1aXTGcv",VUE_APP_PROFILE_APP_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO2:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_FAVICON:"static/favicons/putericove_favicon.ico",VUE_APP_PROFILE_PAGE_TITLE:"",VUE_APP_SELFCARE_HEADER_COLOR:"white",VUE_APP_SELFCARE_LOGO_HEADER:"/static/system_icons/putericove_logo.png",VUE_APP_SELFCARE_RESOURCE:"OWNER",VUE_APP_SELFCARE_SOFTWARE_TYPE:"iCommercial",VUE_APP_SERVICE_BASEURL:"https://pms.putericoveresidences.net/service",VUE_APP_SOCKET_BASEURL:"https://pms.putericoveresidences.net",VUE_APP_SOCKET_PORT:"6001",BASE_URL:"/prod/"}).VUE_APP_TYPE,record:{},errorMessages:null,form:{loading:!1,action:null},snackbar:{show:!1,type:null,message:null},effectiveDate:"",yearItems:[],monthItems:[],typeOfBayItems:[{id:0,name:"Floating"},{id:1,name:"Reserve"},{id:2,name:"Tandem"}],documents:[],recordId:this.$route.params.id}},components:{Snackbar:d["a"],Editor:p["a"],DateSingleComponent:function(){return r.e("chunk-2d2253c8").then(r.bind(null,"e414"))}},computed:P({},Object(n["b"])(["selfcareScope"])),methods:{getValue:function(e,t){return Object(i["j"])(e,t)},getDateTimeFromISO:function(e){return Object(i["g"])(e)},getDateFromISO:function(e){return Object(i["e"])(e)},getParkingApplication:function(){var e=this;l.a.start(),this.appType&&"REMS"==this.appType?c["a"].get("/selfcare/rems/season-parking/parking-summary/"+this.recordId,{params:{project_id:this.selfcareScope.projectId,company_id:this.selfcareScope.companyId,username:this.selfcareScope.username,tenant_id:this.selfcareScope.tenantId}}).then((function(t){console.log(t.data.data),e.record=t.data.data})).catch((function(e){console.log(e)})).then((function(){l.a.done()})):c["a"].get("/selfcare/season-parking/parking-summary/"+this.recordId,{params:{project_id:this.selfcareScope.projectId,company_id:this.selfcareScope.companyId,username:this.selfcareScope.username,unit_id:this.selfcareScope.unitId}}).then((function(t){console.log(t.data.data),e.record=t.data.data})).catch((function(e){console.log(e)})).then((function(){l.a.done()}))},saveData:function(){var e=this;l.a.start(),this.form.loading=!0,this.form.action="save",this.errorMessages=null,this.record.project_id||(this.record.project_id=this.selfcareScope.projectId),this.record.company_id||(this.record.company_id=this.selfcareScope.companyId),this.record.username||(this.record.username=this.selfcareScope.username),this.appType&&"REMS"==this.appType?(this.record.tenant_id||(this.record.tenant_id=this.selfcareScope.tenantId),c["a"].put("/selfcare/rems/season-parking/parking-summary/"+this.record.id,this.record).then((function(t){e.record=Object(i["j"])(t,"data.data"),e.snackbar.message=Object(i["j"])(t,"data.message"),e.snackbar.type="success",e.snackbar.show=!0})).catch((function(t){e.snackbar.message=Object(i["j"])(t,"response.data.message"),e.snackbar.type="error",e.snackbar.show=!0,e.errorMessages=Object(i["j"])(t,"response.data.errors")})).then((function(){l.a.done(),e.form.loading=!1,e.form.action=null}))):(this.record.unit_id||(this.record.unit_id=this.selfcareScope.unitId),c["a"].put("/selfcare/season-parking/parking-summary/"+this.record.id,this.record).then((function(t){e.record=Object(i["j"])(t,"data.data"),e.snackbar.message=Object(i["j"])(t,"data.message"),e.snackbar.type="success",e.snackbar.show=!0})).catch((function(t){e.snackbar.message=Object(i["j"])(t,"response.data.message"),e.snackbar.type="error",e.snackbar.show=!0,e.errorMessages=Object(i["j"])(t,"response.data.errors")})).then((function(){l.a.done(),e.form.loading=!1,e.form.action=null})))}},watch:{$route:function(e,t){this.recordId=Object(i["j"])(e.params,"id")}},beforeMount:function(){this.appType=Object({NODE_ENV:"production",VUE_APP_API_BASEURL:"https://pms.putericoveresidences.net/service/api",VUE_APP_DESIGN_SITE_LOGO_WRAP_COLOR:"",VUE_APP_GOOGLE_ANALYTICS:"",VUE_APP_IDLE_TIME:"28740000",VUE_APP_IS_WHITE_LABEL:"true",VUE_APP_LOGO_ENDPOINT:"",VUE_APP_NAME:"PuteriCove",VUE_APP_PASSPORT_CLIENT_ID:"2",VUE_APP_PASSPORT_CLIENT_SECRET:"OiyeoNx5slPvbtYjwqV0R3i91VtTPjXrI1aXTGcv",VUE_APP_PROFILE_APP_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_DARK_LOGO2:"/static/system_icons/putericove_logo.png",VUE_APP_PROFILE_FAVICON:"static/favicons/putericove_favicon.ico",VUE_APP_PROFILE_PAGE_TITLE:"",VUE_APP_SELFCARE_HEADER_COLOR:"white",VUE_APP_SELFCARE_LOGO_HEADER:"/static/system_icons/putericove_logo.png",VUE_APP_SELFCARE_RESOURCE:"OWNER",VUE_APP_SELFCARE_SOFTWARE_TYPE:"iCommercial",VUE_APP_SERVICE_BASEURL:"https://pms.putericoveresidences.net/service",VUE_APP_SOCKET_BASEURL:"https://pms.putericoveresidences.net",VUE_APP_SOCKET_PORT:"6001",BASE_URL:"/prod/"}).VUE_APP_TYPE,this.getParkingApplication()}},O=u,m=r("2877"),h=Object(m["a"])(O,a,s,!1,null,"3a521862",null);t["default"]=h.exports}}]);