{"version":3,"sources":["webpack:///./src/views/orders/Form/OrdersForm.vue?3b10","webpack:///./src/views/orders/Form/OrdersForm.vue?ffbf","webpack:///./src/views/orders/Form/OrdersForm.vue?3d7c","webpack:///./src/views/orders/Form/OrdersForm.blueprint.js","webpack:///./src/views/orders/DialogOrders.vue?27cd","webpack:///src/views/orders/DialogOrders.vue","webpack:///./src/views/orders/DialogOrders.vue?83a6","webpack:///./src/views/orders/DialogOrders.vue","webpack:///src/views/orders/Form/OrdersForm.vue","webpack:///./src/views/orders/Form/OrdersForm.vue?1e2b","webpack:///./src/views/orders/Form/OrdersForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","subHeaderActions","scopedSlots","_u","key","fn","cancelButtonPermission","orderId","trackSubheaderButtonString","on","confirmCancelOrder","_e","$event","$router","push","proxy","ref","style","customerCss","deliveryWindowCss","collectWindowCss","form","blueprint","isEdit","hasPaymentLink","hasValueInvoicePermission","docTypeOptions","documentType","customer","transporterPermission","transporters","hasDeliveryWindow","hasCollectWindow","attachments","isMaster","todayParsed","endpointErrors","setAddress","addProduct","removeProduct","resetDocField","onSubmit","checkProducts","fetchStoreAddress","uploadOrdersFiles","removeFile","update","phones","length","_v","_l","phone","i","model","value","callback","$$v","$set","expression","products","product","productsRules","name","quantity","parseMoney","weight","productsSizeByOrderId","tag","size","productsSizes","unity_price","orderPackages","data","content","volume","cubed_weight","class","is_heavy","_s","headers","directives","rawName","_f","total","fare","cancelOrder","staticRenderFns","orderDetails","id","rules","props","label","placeholder","suggestions","searchPromptText","invalidLabel","readOnly","events","input","selectOptions","mask","files","multiple","accept","canRemoveFile","postFiles","target","customerCheckBox","disabled","orederReceiver","clearable","deliveryWindow","format","type","range","notBefore","color","textColor","filled","click","collectWindow","deliveryDetails","prependIcon","collectAddress","fields","zip","address","number","complement","neighborhood","city","state_id","originAddress","destinyAddress","submit","theme","icon","message","labelCancel","handlerConfirm","handlerClose","components","Dialog","show","trigger","undefined","methods","handlerOpen","handleUpdate","handleCreate","handleCancel","handleErros","component","TheSubHeader","DynamicForm","InputGroup","BaseTreeSelect","BaseButton","DialogOrders","DataTable","docTypeMask","store_id","transporter_id","order_number","invoice_number","invoice_value","link","order_type","email","docType","document","driver_id","store_status_id","created_at","order_receiver","order_receiver_doc","order_comments","collect_zip","collect_address","collect_number","collect_complement","collect_neighborhood","collect_city","collect_state_id","origin_zip","origin_address","origin_number","origin_complement","origin_neighborhood","origin_city","origin_state_id","destiny_zip","destiny_address","destiny_number","destiny_complement","destiny_neighborhood","destiny_city","destiny_state_id","date","validProducts","fareObj","computed","transportersOptions","permissions","$route","params","hasShipping","productGrid","sumProducts","reduce","initialValue","price","farePercentage","parseFloat","fare_percentage","fareValue","Math","round","Date","setHours","getProductWeight","p","getProductSize","getProductVolume","fare_min","splice","filter","cancelDialog","showConfirmDialog","fetchfiles","clearAttachments","then"],"mappings":"qIAAA,W,oCCAA,W,gECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,YAAY,cAAc,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,KAAO,uBAAuB,MAAQ,SAAS,iBAAiB,cAAc,QAAUP,EAAIQ,kBAAkBC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,eAAeC,GAAG,WAAW,MAAO,CAAEZ,EAAIa,wBAA4Bb,EAAIc,QAASV,EAAG,aAAa,CAACE,YAAY,uBAAuBC,MAAM,CAAC,KAAO,QAAQ,MAAQ,eAAe,MAAQ,kBAAkB,MAAQP,EAAIe,2BAA2B,cAAe,iBAAiBC,GAAG,CAAC,MAAQhB,EAAIiB,sBAAsBjB,EAAIkB,KAAKd,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,mBAAmB,MAAQ,SAAS,MAAQ,YAAY,MAAQP,EAAIe,2BAA2B,cAAe,SAASC,GAAG,CAAC,MAAQ,SAASG,GAA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iBAhBA,SAiBA,gKAjBA,8CAoBI,OAzJJ,WAyJA,4HACA,GACA,4DACA,4CACA,4CAJA,SAMA,0NANA,8CASIxN,mBAlKJ,WAkKA,MACA,kEAGI,YAtKJ,WAsKA,4HACA,iBADA,SAEA,mBACA,4GACA,+CACA,oDACA,sCANA,sFAUIyN,aAhLJ,WAiLMzO,KAAK0O,mBAAoB,GAG3BC,WApLJ,WAoLA,WACM3O,KAAK4O,mBAAmBC,MAAK,WAAnC,+BAGI,kBAxLJ,SAwLA,4HAKA,SAJA,iBACA,eACA,sCAEA,EACA,yBANA,OASA,GACA,aACA,SAXA,SAaA,8HACA,oBADA,4CAEA,sIAfA,8CAkBI,gBA1MJ,WA0MA,6HACA,8BADA,8CAII,WA9MJ,SA8MA,gIACA,+OADA,iDCnoBkX,ICS9W,G,oBAAY,eACd,EACA/O,EACA8F,GACA,EACA,KACA,WACA,OAIa,e","file":"js/OrdersForm.529b2ce1.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!./OrdersForm.vue?vue&type=style&index=0&id=24abbb96&lang=scss&scoped=true&\"","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!./OrdersForm.vue?vue&type=style&index=1&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('main',{staticClass:\"OrdersForm\"},[_c('TheSubHeader',{attrs:{\"icon\":\"package-delivery-alt\",\"title\":\"Pedido\",\"page-title-tag\":\"Orders Form\",\"actions\":_vm.subHeaderActions},scopedSlots:_vm._u([{key:\"afterButtons\",fn:function(){return [(_vm.cancelButtonPermission && !!_vm.orderId)?_c('BaseButton',{staticClass:\"TheSubHeader__button\",attrs:{\"icon\":\"trash\",\"color\":\"primary-base\",\"label\":\"Cancelar pedido\",\"track\":_vm.trackSubheaderButtonString('Orders Form', 'Cancel Order')},on:{\"click\":_vm.confirmCancelOrder}}):_vm._e(),_c('BaseButton',{attrs:{\"icon\":\"chevron-left-alt\",\"label\":\"voltar\",\"theme\":\"icon-left\",\"track\":_vm.trackSubheaderButtonString('Orders Form', 'back')},on:{\"click\":function($event){return _vm.$router.push('/orders')}}})]},proxy:true}])}),_c('div',{staticClass:\"OrdersForm__content\"},[_c('DynamicForm',{ref:\"form\",staticClass:\"OrdersForm__form\",style:([_vm.customerCss, _vm.deliveryWindowCss, _vm.collectWindowCss]),attrs:{\"model\":_vm.form,\"blueprint\":_vm.blueprint({\n isEdit: _vm.isEdit,\n hasPaymentLink: _vm.hasPaymentLink,\n hasValueInvoicePermission: _vm.hasValueInvoicePermission,\n docTypeOptions: _vm.docTypeOptions,\n documentType: _vm.documentType,\n customer: _vm.customer,\n transporterPermission: _vm.transporterPermission,\n transporters: _vm.transporters,\n hasDeliveryWindow: _vm.hasDeliveryWindow,\n hasCollectWindow: _vm.hasCollectWindow,\n attachments: _vm.attachments,\n isMaster: _vm.isMaster,\n todayParsed: _vm.todayParsed\n }),\"endpoint-errors\":_vm.endpointErrors},on:{\"setAddress\":_vm.setAddress,\"addProduct\":_vm.addProduct,\"removeProduct\":_vm.removeProduct,\"resetDocField\":_vm.resetDocField,\"submit\":_vm.onSubmit,\"beforeSubmit\":_vm.checkProducts,\"selectStore\":_vm.fetchStoreAddress,\"postFiles\":_vm.uploadOrdersFiles,\"removeFile\":_vm.removeFile,\"updateDeliveryWindow\":_vm.update}},[(_vm.form.phones.length && _vm.orderId)?[_c('label',{staticClass:\"OrdersForm__labelphones\"},[_vm._v(\"Telefones\")]),_c('div',{staticClass:\"OrdersForm__phones\"},_vm._l((_vm.form.phones),function(phone,i){return _c('div',{key:i,staticClass:\"OrdersForm__phone\"},[_c('InputGroup',{attrs:{\"label\":\"Número\",\"autocomplete\":\"no\",\"read-only\":true},model:{value:(phone.phone),callback:function ($$v) {_vm.$set(phone, \"phone\", $$v)},expression:\"phone.phone\"}})],1)}),0)]:_vm._e(),(_vm.form.products.length && !_vm.orderId)?[_c('label',{staticClass:\"OrdersForm__labelProducts\"},[_vm._v(\"Produtos\")]),_c('div',{staticClass:\"OrdersForm__products\",style:(_vm.productGrid)},_vm._l((_vm.form.products),function(product,i){return _c('div',{key:i,staticClass:\"OrdersForm__product\"},[_c('InputGroup',{staticClass:\"OrdersForm__productField OrdersForm__productName\",attrs:{\"read-only\":_vm.orderId,\"is-invalid\":_vm.productsRules.name,\"label\":\"Nome\",\"placeholder\":\"Nome\",\"autocomplete\":\"no\"},model:{value:(product.name),callback:function ($$v) {_vm.$set(product, \"name\", $$v)},expression:\"product.name\"}}),(_vm.hasShipping)?_c('InputGroup',{staticClass:\"OrdersForm__productQtd\",attrs:{\"read-only\":_vm.orderId,\"is-invalid\":_vm.productsRules.quantity,\"mask\":\"number\",\"label\":\"Quantidade\",\"placeholder\":\"Quantidade\",\"autocomplete\":\"no\"},on:{\"input\":_vm.parseMoney},model:{value:(product.quantity),callback:function ($$v) {_vm.$set(product, \"quantity\", $$v)},expression:\"product.quantity\"}}):_vm._e(),_c('InputGroup',{staticClass:\"OrdersForm__productWeight\",attrs:{\"read-only\":_vm.orderId,\"is-invalid\":_vm.productsRules.weight,\"label\":\"Peso (kg)\",\"placeholder\":\"Peso (kg)\"},model:{value:(product.weight),callback:function ($$v) {_vm.$set(product, \"weight\", $$v)},expression:\"product.weight\"}}),_c(_vm.productsSizeByOrderId,{tag:\"component\",staticClass:\"OrdersForm__productSize\",attrs:{\"read-only\":_vm.orderId,\"is-invalid\":_vm.productsRules.size,\"select-options\":_vm.productsSizes,\"all\":false,\"label\":\"Tamanho\",\"placeholder\":\"Selecione\"},model:{value:(product.size),callback:function ($$v) {_vm.$set(product, \"size\", $$v)},expression:\"product.size\"}}),(_vm.hasShipping)?_c('InputGroup',{staticClass:\"OrdersForm__productPrice\",attrs:{\"read-only\":_vm.orderId,\"is-invalid\":_vm.productsRules.unity_price,\"label\":\"Preço Unitário\",\"placeholder\":\"Preço Unitário\",\"mask\":\"money\"},on:{\"input\":_vm.parseMoney},model:{value:(product.unity_price),callback:function ($$v) {_vm.$set(product, \"unity_price\", $$v)},expression:\"product.unity_price\"}}):_vm._e(),(!_vm.orderId)?[(i === _vm.form.products.length -1)?_c('BaseButton',{staticClass:\"OrdersForm__productButton\",attrs:{\"tag\":\"a\",\"theme\":\"icon-right\",\"label\":\"Adicionar Volume\",\"color\":\"primary-base\",\"icon\":\"add\",\"data-test\":\"add-product\"},on:{\"click\":_vm.addProduct}}):_c('BaseButton',{staticClass:\"OrdersForm__productButton\",attrs:{\"theme\":\"icon-right\",\"label\":\"Remover Volume\",\"color\":\"primary-base\",\"icon\":\"remove\",\"data-test\":\"remove-product\"},on:{\"click\":function($event){return _vm.removeProduct(i)}}})]:_vm._e()],2)}),0)]:_vm._e(),(_vm.orderPackages.data.content.length && _vm.orderId)?[_c('label',{staticClass:\"OrdersForm__labelProducts\"},[_vm._v(\" PACOTES: \")]),(_vm.form.volume && _vm.form.cubed_weight)?_c('div',{staticClass:\"OrdersForm__productsVolume\"},[_c('div',{staticClass:\"OrdersForm__productsVolume__wrapper\",class:{'OrdersForm__productsVolume__wrapper--heavy': _vm.form.is_heavy}},[_c('Icon',{attrs:{\"name\":\"package-volume\",\"color\":_vm.form.is_heavy ? 'white' : 'primary-base'}}),_vm._v(\" cubagem total: \"+_vm._s(_vm.form.volume)+\" m³ x \"+_vm._s(_vm.form.cubed_weight)+\" kg \")],1)]):_vm._e(),_c('DataTable',{staticClass:\"OrdersForm__products\",attrs:{\"no-content-text\":\"Nenhum pacote encontrado\",\"header\":_vm.orderPackages.data.headers,\"table\":_vm.orderPackages.data.content}})]:_vm._e(),(_vm.hasShipping)?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.fareObj),expression:\"fareObj\"}],staticClass:\"OrdersForm__shipping\"},[_vm._v(\" Valor Total \"),_c('strong',[_vm._v(_vm._s(_vm._f(\"money\")(_vm.total)))]),_vm._v(\" - Valor do Frete \"),_c('strong',[_vm._v(_vm._s(_vm._f(\"money\")(_vm.fare)))])]):_vm._e()],2)],1),_c('DialogOrders',{ref:\"DialogOrders\",on:{\"cancel\":_vm.cancelOrder}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default ({ isEdit, hasPaymentLink, hasValueInvoicePermission, docTypeOptions, documentType, customer, transporterPermission, transporters, hasDeliveryWindow, hasCollectWindow, attachments, isMaster, todayParsed}) => {\n\n //Order Details\n const orderDetails = [\n {\n id: 'labelDetails',\n tag: 'label',\n content: 'Detalhes do Pedido'\n },\n {\n id: 'store_id',\n model: 'store_id',\n tag: 'BaseTreeSelect',\n rules: ['required'],\n props: {\n name: 'Vincular Lojistas',\n label: 'Vincular Lojistas',\n placeholder: 'Pesquisar Lojistas',\n suggestions: 'searchStores',\n searchPromptText: 'Nome do Lojista',\n invalidLabel: 'Selecione um lojista',\n readOnly: isEdit,\n },\n events: {\n input: 'selectStore'\n }\n },\n {\n id: 'transporter_id',\n model: 'transporter_id',\n tag: 'BaseTreeSelect',\n rules: ['required'],\n props: {\n name: 'Vincular Transportadora',\n label: 'Vincular Transportadora',\n placeholder: 'Selecione',\n selectOptions: transporters,\n invalidLabel: 'Vincule ao menos uma transportadora',\n readOnly: isEdit || !transporterPermission,\n },\n },\n {\n id: 'order_number',\n model: 'order_number',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Pedido',\n placeholder: 'Número do pedido',\n invalidLabel: 'Insira um número do pedido',\n readOnly: isEdit\n }\n },\n ...(isEdit && hasValueInvoicePermission ? [{\n id: 'invoice_value',\n model: 'invoice_value',\n tag: 'InputGroup',\n props: {\n label: 'Valor da Nota Fiscal',\n mask: 'money',\n readOnly: true\n }\n }] : []),\n {\n id: 'invoice_number',\n model: 'invoice_number',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Nota Fiscal',\n placeholder: 'Nota Fiscal',\n invalidLabel: 'Insira uma nota fiscal',\n readOnly: isEdit\n }\n },\n\n ...(isEdit ? [{\n id: 'files_label',\n tag: 'label',\n content: 'Anexos do Pedido'\n },\n {\n id: 'files_input',\n tag: 'BaseInputFileGroup',\n props: {\n files: attachments,\n multiple: true,\n accept: ['.jpg', '.png', '.xlsx', '.xls', '.ppt', '.pptx', '.pdf'],\n canRemoveFile: isMaster\n },\n events: {\n postFiles: 'postFiles',\n removeFile: 'removeFile'\n }\n }] : []),\n\n ...(isEdit && hasPaymentLink ? [{\n id: 'link',\n model: 'link',\n tag: 'Link',\n props: {\n label: 'Link de Pagamento',\n target: '_blank'\n }\n }] : []),\n ]\n\n //Customer\n const customerCheckBox = [\n {\n id: 'order_type',\n model: 'order_type',\n tag: 'BaseCheckBox',\n style: 'align-self: end',\n props:{\n name: 'Frete pelo Cliente',\n disabled: isEdit\n }\n }\n ]\n\n //Order Receiver\n const orederReceiver = [\n {\n id: 'labelPerson',\n tag: 'label',\n content: 'Destinatário'\n },\n {\n id: 'name',\n model: 'name',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Nome',\n placeholder: 'Nome',\n invalidLabel: 'Insira um nome',\n readOnly: isEdit\n }\n },\n {\n id: 'phone',\n model: 'phone',\n tag: 'InputGroup',\n rules: ['required', 'phone'],\n props: {\n label: 'Celular',\n placeholder: 'Número de celular',\n invalidLabel: 'Insira um número de celular',\n mask: 'phone',\n readOnly: isEdit\n }\n },\n {\n id: 'email',\n model: 'email',\n tag: 'InputGroup',\n rules: ['required', 'email'],\n props: {\n label: 'E-mail',\n placeholder: 'E-mail',\n invalidLabel: 'E-mail inválido',\n readOnly: isEdit,\n }\n },\n {\n id: 'docType',\n model: 'docType',\n tag: 'BaseTreeSelect',\n rules: ['required'],\n props: {\n name: 'Tipo',\n label: 'Tipo',\n placeholder: 'Selecione',\n selectOptions: docTypeOptions,\n invalidLabel: 'Vincule ao menos um Tipo',\n clearable: false,\n readOnly: isEdit,\n },\n events: {\n input: 'resetDocField'\n }\n },\n {\n id: 'document',\n model: 'document',\n tag: 'InputGroup',\n rules: documentType,\n props: {\n label: 'Documento',\n placeholder: 'Documento',\n invalidLabel: 'Documento inválido',\n mask: documentType[1],\n readOnly: isEdit\n }\n },\n ]\n\n //Delivery Window\n const deliveryWindow = [\n {\n id: 'labelDeliveryWindow',\n tag: 'label',\n content: 'Janela de Entrega'\n },\n {\n id: 'deliveryWindowInit',\n model: 'deliveryWindow',\n tag: 'BaseDatePicker',\n props: {\n label: 'Data de entrega',\n format: 'DD/MM/YYYY HH:mm',\n type: 'datetime',\n range: true,\n clearable: false,\n notBefore: todayParsed,\n }\n },\n {\n id: 'update',\n tag: 'BaseButton',\n style: 'margin: 25px 0 0 0;',\n props: {\n label: 'Atualizar janela de entrega',\n color: 'primary-base',\n textColor: 'white',\n filled: true\n },\n events: {\n click: 'updateDeliveryWindow'\n }\n }\n ]\n\n //Collect Window\n const collectWindow = [\n {\n id: 'labelCollectWindow',\n tag: 'label',\n content: 'Janela de Coleta'\n },\n {\n id: 'collectWindow',\n model: 'collectWindow',\n tag: 'BaseDatePicker',\n props: {\n label: ' ',\n type: 'datetime',\n range: false,\n readOnly: true\n }\n },\n ]\n\n //Delivery Details\n const deliveryDetails = [\n {\n id: 'labelDelivery',\n tag: 'label',\n content: 'Detalhes da Entrega'\n },\n {\n id: 'driver_id',\n model: 'driver_id',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Motorista',\n placeholder: '',\n readOnly: isEdit\n }\n },\n {\n id: 'store_status_id',\n model: 'store_status_id',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Status',\n placeholder: '',\n readOnly: isEdit\n }\n },\n {\n id: 'created_at',\n model: 'created_at',\n tag: 'BaseDatePicker',\n rules: ['required'],\n props: {\n label: 'Data da Entrega',\n placeholder: '',\n format: 'DD/MM/YYYY HH:mm',\n type: 'date',\n readOnly: isEdit,\n range: false,\n prependIcon: false,\n clearable: false,\n\n }\n },\n {\n id: 'order_receiver',\n model: 'order_receiver',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Recebedor',\n placeholder: '',\n readOnly: isEdit\n }\n },\n {\n id: 'order_receiver_doc',\n model: 'order_receiver_doc',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Documento do Recebedor',\n placeholder: '',\n readOnly: isEdit\n }\n },\n {\n id: 'order_comments',\n model: 'order_comments',\n tag: 'InputGroup',\n rules: ['required'],\n props: {\n label: 'Observação',\n placeholder: '',\n readOnly: isEdit\n }\n },\n ]\n\n //Collect Address\n const collectAddress = [\n {\n id: 'labelCollect',\n tag: 'label',\n content: 'Endereço de coleta'\n },\n {\n id: 'collect_address',\n tag: 'InputAddress',\n props: {\n disabled: true,\n fields: {\n zip: 'collect_zip',\n address: 'collect_address',\n number: 'collect_number',\n complement: 'collect_complement',\n neighborhood: 'collect_neighborhood',\n city: 'collect_city',\n state_id: 'collect_state_id'\n }\n }\n },\n ]\n\n //Origin Address\n const originAddress = [\n {\n id: 'labelOrigin',\n tag: 'label',\n content: 'Endereço do CD'\n },\n {\n id: 'origin_address',\n tag: 'InputAddress',\n props: {\n disabled: true,\n fields: {\n zip: 'origin_zip',\n address: 'origin_address',\n number: 'origin_number',\n complement: 'origin_complement',\n neighborhood: 'origin_neighborhood',\n city: 'origin_city',\n state_id: 'origin_state_id'\n }\n }\n },\n ]\n\n //Destiny Address\n const destinyAddress = [\n {\n id: 'labelDestiny',\n tag: 'label',\n content: 'Endereço de entrega'\n },\n {\n id: 'destiny_address',\n tag: 'InputAddress',\n props: {\n disabled: isEdit,\n fields: {\n zip: 'destiny_zip',\n address: 'destiny_address',\n number: 'destiny_number',\n complement: 'destiny_complement',\n neighborhood: 'destiny_neighborhood',\n city: 'destiny_city',\n state_id: 'destiny_state_id'\n }\n }\n },\n ]\n\n //Actions\n const submit = [\n {\n id: 'confirm',\n tag: 'BaseButton',\n props: {\n label: 'ENVIAR PEDIDO',\n theme: 'icon-left',\n color: 'primary-base',\n textColor: 'white',\n icon: 'package-request',\n type: 'submit',\n filled: true\n }\n }\n ]\n\n return [\n ...orderDetails,\n ...(customer ? customerCheckBox : []),\n ...orederReceiver,\n ...(isEdit && hasDeliveryWindow ? deliveryWindow : []),\n ...(isEdit && hasCollectWindow ? collectWindow : []),\n ...(isEdit ? deliveryDetails : []),\n ...collectAddress,\n ...originAddress,\n ...destinyAddress,\n ...(!isEdit ? submit : []),\n ]\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('Dialog',{attrs:{\"warning\":_vm.message,\"label-cancel\":_vm.labelCancel,\"label-confirm\":\"Confirmar\"},on:{\"confirm\":_vm.handlerConfirm,\"cancel\":_vm.handlerClose}}):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./DialogOrders.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!./DialogOrders.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DialogOrders.vue?vue&type=template&id=4db9b39e&\"\nimport script from \"./DialogOrders.vue?vue&type=script&lang=js&\"\nexport * from \"./DialogOrders.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","\n \n \n \n \n \n \n \n \n \n \n Telefones\n \n \n \n \n \n \n \n Produtos\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n PACOTES:\n \n \n \n \n cubagem total: {{ form.volume }} m³ x {{ form.cubed_weight }} kg\n \n \n \n \n\n \n Valor Total {{ total | money }} - Valor do Frete {{ fare | money }}\n \n \n \n \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!./OrdersForm.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!./OrdersForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OrdersForm.vue?vue&type=template&id=24abbb96&scoped=true&\"\nimport script from \"./OrdersForm.vue?vue&type=script&lang=js&\"\nexport * from \"./OrdersForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./OrdersForm.vue?vue&type=style&index=0&id=24abbb96&lang=scss&scoped=true&\"\nimport style1 from \"./OrdersForm.vue?vue&type=style&index=1&lang=scss&\"\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 \"24abbb96\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}