{"version":3,"sources":["webpack:///./src/views/vehicles/Form/VehiclesForm.vue?9dac","webpack:///./src/views/vehicles/Form/VehiclesForm.vue?4216","webpack:///./src/views/vehicles/Form/VehiclesForm.blueprint.js","webpack:///src/views/vehicles/Form/VehiclesForm.vue","webpack:///./src/views/vehicles/Form/VehiclesForm.vue?2d65","webpack:///./src/views/vehicles/Form/VehiclesForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","TheSubHeaderIcon","TheSubHeaderTitle","ref","form","blueprint","asyncCallsLoaded","brandId","maxCarYear","endpointErrors","on","showLightbox","vehicleBrandChange","onSubmit","lightbox","scopedSlots","_u","key","fn","_v","_s","modalTitle","proxy","_e","staticRenderFns","id","tag","content","model","rules","props","label","mask","invalidLabel","name","placeholder","selectOptions","fetchOptions","events","input","refs","searchLabel","autoLoadRootOptions","fetchParams","readOnly","format","notAfter","type","range","prependIcon","clearable","theme","color","textColor","icon","filled","components","TheSubHeader","DynamicForm","Modal","data","plate","brand_id","model_id","year","antt","renavam","status_id","computed","vehicleId","$route","params","today","setFullYear","getCurrentUser","user","mounted","initFetchVehicle","methods","$refs","copyOption","component"],"mappings":"gHAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,YAAY,gBAAgB,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,KAAOP,EAAIQ,iBAAiB,MAAQR,EAAIS,kBAAkB,iBAAiB,gBAAgB,QAAU,CAAC,WAAWL,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,cAAc,CAACM,IAAI,OAAOJ,YAAY,qBAAqBC,MAAM,CAAC,MAAQP,EAAIW,KAAK,UAAYX,EAAIY,UAAU,CAACC,iBAAkBb,EAAIa,iBAAkBC,QAASd,EAAIc,QAASC,WAAYf,EAAIe,aAAa,kBAAkBf,EAAIgB,gBAAg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,WA4DIlF,KAAKmF,oBAEPC,QAAS,EAAX,GACIzE,UAAJ,GACA,gBACI,WAAJ,wBAHA,IAOI,iBAPJ,WAOA,iHAEA,YAFA,gCAEA,iBAFA,OAGA,sBAHA,8CAMI,SAbJ,SAaA,8HACA,2BACA,qBACA,wCACA,YACA,uBALA,8CASI,aAtBJ,WAsBA,oHACA,iBADA,SAEA,kDACA,oBACA,0BAEA,wBANA,OAOA,iBAPA,8CAUI,aAhCJ,SAgCA,qHACA,iBACA,mBAFA,gCAEA,cAFA,8CAEA,EAFA,OAEA,WAFA,mDAKI,cArCJ,SAqCA,uHACA,iBACA,sCAFA,SAGA,4JAHA,8CAMI,cA3CJ,SA2CA,uHACA,iBADA,SAEA,kLAFA,8CAKI,SAhDJ,SAgDA,gHACA,kDADA,8CAIIO,mBApDJ,WAqDMlB,KAAKU,KAAK2D,SAAW,KACrBrE,KAAKqF,MAAM3E,KAAK2E,MAAMhB,SAAS,GAAGiB,WAAW,UChKiU,I,wBCQhXC,EAAY,eACd,EACAzF,EACAgC,GACA,EACA,KACA,WACA,MAIa,aAAAyD,E","file":"js/VehiclesForm.5a049d8a.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VehiclesForm.vue?vue&type=style&index=0&id=70ea6b3f&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('main',{staticClass:\"VehiclesForm\"},[_c('TheSubHeader',{attrs:{\"icon\":_vm.TheSubHeaderIcon,\"title\":_vm.TheSubHeaderTitle,\"page-title-tag\":\"Vehicles Form\",\"actions\":['back']}}),_c('div',{staticClass:\"VehiclesForm__content\"},[_c('DynamicForm',{ref:\"form\",staticClass:\"VehiclesForm__form\",attrs:{\"model\":_vm.form,\"blueprint\":_vm.blueprint({asyncCallsLoaded: _vm.asyncCallsLoaded, brandId: _vm.brandId, maxCarYear: _vm.maxCarYear}),\"endpoint-errors\":_vm.endpointErrors},on:{\"showLightbox\":_vm.showLightbox,\"vehicleBrandChange\":_vm.vehicleBrandChange,\"submit\":_vm.onSubmit}})],1),(!!_vm.lightbox)?_c('Modal',{on:{\"close\":_vm.showLightbox},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{staticClass:\"VehiclesForm__modalHeader\"},[_vm._v(\" \"+_vm._s(_vm.modalTitle)+\" \")])]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"VehiclesForm__modal\"},[_c('img',{attrs:{\"alt\":_vm.modalTitle,\"src\":_vm.lightbox}})])]},proxy:true}],null,false,2245880808)}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default ({ asyncCallsLoaded, brandId, maxCarYear}) => {\n return [\n {\n id: 'labelVehicleData',\n tag: 'label',\n content: 'Dados do Veículo'\n },\n {\n id: 'plate',\n model: 'plate',\n tag: 'InputGroup',\n rules: ['required', 'carPlate'],\n props: {\n label: 'Placa',\n mask: 'carPlate',\n invalidLabel: 'Insira uma placa de carro',\n }\n },\n {\n id: 'brand_id',\n model: 'brand_id',\n tag: 'BaseTreeSelect',\n rules: ['required'],\n props: {\n name: 'Fabricante',\n label: 'Fabricante',\n placeholder: 'Selecione',\n invalidLabel: 'Selecione um fabricante',\n selectOptions: null,\n fetchOptions: 'drivers/fetchVehicleBrands',\n },\n events: {\n ...(asyncCallsLoaded ? {input: 'vehicleBrandChange'} : '')\n }\n },\n {\n id: 'model_id',\n model: 'model_id',\n tag: 'BaseTreeSelect',\n refs: 'vehicleModel',\n rules: ['required'],\n props: {\n name: 'Modelo',\n label: 'Modelo',\n searchLabel: 'Modelo',\n placeholder: 'Selecione',\n invalidLabel: 'Insira um modelo',\n autoLoadRootOptions: false,\n selectOptions: null,\n fetchOptions: 'drivers/fetchVehicleModels',\n fetchParams: brandId,\n readOnly: !brandId\n }\n },\n {\n id: 'year',\n model: 'year',\n tag: 'BaseDatePicker',\n rules: ['required'],\n props: {\n label: 'Ano',\n format: 'YYYY',\n notAfter: maxCarYear,\n type: 'year',\n invalidLabel: 'Insira um ano',\n range: false,\n prependIcon: false,\n placeholder: '',\n clearable: false,\n }\n },\n {\n id: 'antt',\n model: 'antt',\n tag: 'InputGroup',\n props: {\n label: 'Registro ANTT',\n invalidLabel: 'Insira um registro ANTT',\n }\n },\n {\n id: 'renavam',\n model: 'renavam',\n tag: 'InputGroup',\n rules: ['required', 'renavam'],\n props: {\n label: 'RENAVAM',\n mask: 'number',\n invalidLabel: 'Insira um RENAVAM',\n }\n },\n\n // {\n // id: 'labelVehicle',\n // tag: 'label',\n // content: 'Veículo'\n // },\n // {\n // id: 'vehicle_left_image',\n // tag: 'ThumbAction',\n // model: {\n // document_images: 'vehicle_left_image'\n // },\n // props: {\n // label: 'Lateral Esquerda',\n // options: [],\n // isApprovable: false\n // }\n // },\n // {\n // id: 'vehicle_right_image',\n // tag: 'ThumbAction',\n // model: {\n // document_images: 'vehicle_right_image'\n // },\n // props: {\n // label: 'Lateral Direita',\n // options: [],\n // isApprovable: false\n // }\n // },\n // {\n // id: 'vehicle_front_image',\n // tag: 'ThumbAction',\n // model: {\n // document_images: 'vehicle_front_image'\n // },\n // props: {\n // label: 'Frente',\n // options: [],\n // isApprovable: false\n // }\n // },\n // {\n // id: 'vehicle_back_image',\n // tag: 'ThumbAction',\n // model: {\n // document_images: 'vehicle_back_image'\n // },\n // props: {\n // label: 'Traseira',\n // options: [],\n // isApprovable: false\n // }\n // },\n\n {\n id: 'confirm',\n tag: 'BaseButton',\n props: {\n label: 'Salvar',\n theme: 'icon-right',\n color: 'primary-base',\n textColor: 'white',\n icon: 'save',\n type: 'submit',\n filled: true\n }\n }\n ]\n}","\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VehiclesForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VehiclesForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VehiclesForm.vue?vue&type=template&id=70ea6b3f&scoped=true&\"\nimport script from \"./VehiclesForm.vue?vue&type=script&lang=js&\"\nexport * from \"./VehiclesForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VehiclesForm.vue?vue&type=style&index=0&id=70ea6b3f&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"70ea6b3f\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}