{"version":3,"sources":["webpack:///./src/views/admin/users/models/user-form.ts","webpack:///./src/views/admin/users/components/Form.vue?96d2","webpack:///./src/views/admin/users/components/Form.vue","webpack:///./src/views/admin/users/Create.vue?6f75","webpack:///./src/views/admin/users/Create.vue","webpack:///./src/views/admin/users/Disable.vue?9d19","webpack:///./src/views/admin/users/Disable.vue","webpack:///./src/views/admin/users/Edit.vue?6a1b","webpack:///./src/views/admin/users/Edit.vue","webpack:///./src/views/admin/users/table-columns.ts","webpack:///./src/views/admin/users/View.vue?0b94","webpack:///./src/views/admin/users/View.vue","webpack:///./src/views/admin/users/Index.vue?8101","webpack:///./src/views/admin/users/Index.vue","webpack:///./node_modules/quasar/src/components/card/QCardActions.js","webpack:///./src/views/admin/users/View.vue?ba91","webpack:///./src/views/admin/users/Disable.vue?9829","webpack:///./src/views/admin/users/components/Form.vue?89e7"],"names":["getEmptyUserForm","name","region","regional","email","document","type","phone","supervisorId","password","passwordConfirm","getFormByInstance","user","toRequestData","formData","supervisor_id","password_confirmation","getUserTypeOptions","Object","keys","UserTypeString","map","key","label","value","_hoisted_1","class","_defineComponent","props","users","emits","setup","__props","expose","emit","quasar","useQuasar","ref","form","supervisorOptions","computed","supervisors","filter","User","TYPE_ADMIN","TYPE_SUPERVISOR","id","isEdit","undefined","resetForm","save","validate","then","success","notify","message","cancel","setUser","blockFieldSupervisor","typeUser","TYPE_DEVELOPER","_ctx","_cache","_component_q_card_section","_resolveComponent","_component_q_input","_component_q_select","_component_q_btn","_component_q_card_actions","_openBlock","_createBlock","_unref","QForm","ref_key","onSubmit","autofocus","default","_withCtx","_createVNode","_createElementVNode","_toDisplayString","_","outlined","modelValue","$event","rules","FormRules","required","length","confirm","_createCommentVNode","options","clearable","disable","align","flat","onClick","color","__exports__","QCardSection","QInput","QSelect","QCardActions","QBtn","show","api","post","close","catch","error","response","status","data","console","log","open","_component_q_card","_component_q_dialog","persistent","Form","onSave","onCancel","QDialog","QCard","_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_2","deletedAt","delete","enable","get","innerHTML","patch","setTimeout","tableColumns","field","row","sortable","format","val","substring","_createTextVNode","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_component_q_item_section","_component_q_item","_component_q_list","side","createdAt","updatedAt","QList","QItem","QItemSection","searchWord","selectedUser","modalCreate","modalEdit","modalView","modalDisable","getUsers","loading","plainToInstance","hide","edit","find","view","init","_component_q_icon","_component_q_td","_component_q_table","_createElementBlock","_Fragment","title","rows","columns","borderless","dense","debounce","placeholder","append","size","round","icon","Create","onCreated","Edit","onSaved","View","Disable","QTable","QIcon","QTd","createComponent","useAlignProps","vertical","Boolean","slots","alignClass","useAlign","classes","h","hSlot"],"mappings":"+NAiCMA,G,UAAmB,iBAAiB,CACxCC,KAAM,GACNC,OAAQ,KACRC,SAAU,KACVC,MAAO,GACPC,SAAU,GACVC,KAAM,KACNC,MAAO,GACPC,aAAc,KACdC,SAAU,GACVC,gBAAiB,MAGbC,EAAoB,SAACC,GAAD,MAA2B,CACnDX,KAAMW,EAAKX,KACXC,OAAQU,EAAKV,OACbC,SAAUS,EAAKT,SACfC,MAAOQ,EAAKR,MACZC,SAAUO,EAAKP,SACfC,KAAMM,EAAKN,KACXC,MAAOK,EAAKL,MACZC,aAAcI,EAAKJ,aACnBC,SAAU,GACVC,gBAAiB,KAGbG,EAAgB,SAACC,GACrB,MAAO,CACLb,KAAMa,EAASb,KACfC,OAAQY,EAASZ,OACjBC,SAAUW,EAASX,SACnBC,MAAOU,EAASV,MAChBC,SAAUS,EAAST,SACnBC,KAAMQ,EAASR,KACfC,MAAOO,EAASP,MAChBQ,cAAeD,EAASN,aACxBC,SAAUK,EAASL,SACnBO,sBAAuBF,EAASJ,kBAI9BO,EAAqB,kBACzBC,OAAOC,KAAKC,QAAgBC,KAAI,SAACC,GAAD,MAAU,CACxCC,MAAOH,OAAeE,GACtBE,MAAOF,O,wBCz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,CACjB5H,QAAS,YACTpC,IAAKkI,EACL3J,KAAMwJ,EAAa5I,OAClB,KAAM,EAAG,CAAC,SACbsD,yBAAawH,EAAS,CACpB7H,QAAS,eACTpC,IAAKmI,EACL5J,KAAMwJ,EAAa5I,MACnB4K,QAAS3B,GACR,KAAM,EAAG,CAAC,UACZ,Q,uCCnLL,MAAM,GAAc,GAEL,gBAOf,IAAS,GAAQ,aAAc,CAAC8B,UAAA,KAAOnG,SAAA,KAAOoG,SAAA,KAAMjG,OAAA,KAAKkG,OAAA,Q,oGCL1CC,sBAAgB,CAC7BzM,KAAM,eAEN2B,MAAO,iCACF+K,QADA,IAEHC,SAAUC,UAGZ9K,MAR6B,SAQtBH,EARsB,GAQJ,IAATkL,EAAS,EAATA,MACRC,EAAaC,eAASpL,GAEtBqL,EAAUzK,uBAAS,iBACvB,0BAAoBuK,EAAWvL,OAA/B,6BAC2C,IAAnBI,EAAMgL,SAAoB,cAAgB,gBAGpE,OAAO,kBAAMM,eAAE,MAAO,CAAExL,MAAOuL,EAAQzL,OAAS2L,eAAML,EAAMlI,e,oCCvBhE,W,2DCAA,W,kCCAA,W","file":"js/chunk-0276db06.29305f8d.js","sourcesContent":["import { User, UserType, UserTypeString } from '@/models/user';\r\n\r\ninterface UserForm {\r\n name: string;\r\n region: number | null;\r\n regional: number | null;\r\n email: string;\r\n document: string;\r\n type: UserType | null;\r\n phone: string;\r\n supervisorId: number | null;\r\n password: string;\r\n passwordConfirm: string;\r\n}\r\n\r\ninterface UserFormToRequest {\r\n name: string;\r\n region: number | null;\r\n regional: number | null;\r\n email: string;\r\n document: string;\r\n type: UserType | null;\r\n phone: string;\r\n supervisor_id: number | null;\r\n password: string;\r\n password_confirmation: string;\r\n}\r\n\r\ninterface UserTypeOptions {\r\n label: string;\r\n value: UserType;\r\n}\r\n\r\nconst getEmptyUserForm = (): UserForm => ({\r\n name: '',\r\n region: null,\r\n regional: null,\r\n email: '',\r\n document: '',\r\n type: null,\r\n phone: '',\r\n supervisorId: null,\r\n password: '',\r\n passwordConfirm: '',\r\n});\r\n\r\nconst getFormByInstance = (user: User): UserForm => ({\r\n name: user.name,\r\n region: user.region,\r\n regional: user.regional,\r\n email: user.email,\r\n document: user.document,\r\n type: user.type,\r\n phone: user.phone,\r\n supervisorId: user.supervisorId,\r\n password: '',\r\n passwordConfirm: '',\r\n});\r\n\r\nconst toRequestData = (formData: UserForm): UserFormToRequest => {\r\n return {\r\n name: formData.name,\r\n region: formData.region,\r\n regional: formData.regional,\r\n email: formData.email,\r\n document: formData.document,\r\n type: formData.type,\r\n phone: formData.phone,\r\n supervisor_id: formData.supervisorId,\r\n password: formData.password,\r\n password_confirmation: formData.passwordConfirm,\r\n };\r\n};\r\n\r\nconst getUserTypeOptions = (): UserTypeOptions[] =>\r\n Object.keys(UserTypeString).map((key) => ({\r\n label: UserTypeString[key as UserType],\r\n value: key as UserType,\r\n }));\r\n\r\nexport { getEmptyUserForm, getFormByInstance, getUserTypeOptions, toRequestData, UserForm };\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-31a6fcca\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"text-h6\" }\n\nimport { FormRules } from '@/utils';\r\nimport { User } from '@/models/user';\r\nimport { computed, ref } from 'vue';\r\nimport {\r\n getEmptyUserForm,\r\n getFormByInstance,\r\n getUserTypeOptions,\r\n UserForm,\r\n} from '../models/user-form';\r\nimport QForm from 'quasar/src/components/form/QForm.js';import useQuasar from 'quasar/src/composables/use-quasar.js';;\r\n\r\ninterface Props {\r\n users: User[];\r\n user?: User | null;\r\n}\r\n\r\ninterface Emits {\r\n (e: 'cancel'): void;\r\n (e: 'save', formData: UserForm): void;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n users: null,\n user: null\n },\n emits: [\"cancel\", \"save\"],\n setup(__props: any, { expose, emit }: { emit: ({\r\n (e: 'cancel'): void;\r\n (e: 'save', formData: UserForm): void;\r\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\r\n users: User[];\r\n user?: User | null;\r\n}\n\r\n\r\n\r\n\r\nconst quasar = useQuasar();\r\n\r\nconst formData = ref(getEmptyUserForm());\r\n\r\nconst form = ref | null>(null);\r\n\r\nconst supervisorOptions = computed(() => {\r\n const supervisors = props.users.filter(\r\n (user) => user.type === User.TYPE_ADMIN || user.type === User.TYPE_SUPERVISOR\r\n );\r\n\r\n return supervisors.map((user) => ({ label: user.name, value: user.id }));\r\n});\r\n\r\nconst isEdit = computed(() => props.user !== undefined && props.user !== null);\r\n\r\nconst resetForm = () => {\r\n formData.value = getEmptyUserForm();\r\n};\r\n\r\nconst save = () => {\r\n form.value?.validate().then((success) => {\r\n if (success) {\r\n emit('save', formData.value);\r\n } else {\r\n quasar.notify({\r\n type: 'warning',\r\n message: 'Por favor confira os campos obrigatórios.',\r\n });\r\n }\r\n });\r\n};\r\n\r\nconst cancel = () => {\r\n emit('cancel');\r\n resetForm();\r\n};\r\n\r\nconst setUser = (user: User | null) => {\r\n if (user !== null) {\r\n formData.value = getFormByInstance(user);\r\n } else {\r\n resetForm();\r\n }\r\n};\r\n\r\nconst blockFieldSupervisor = (typeUser: string): boolean => {\r\n if(typeUser === User.TYPE_ADMIN || typeUser === User.TYPE_SUPERVISOR || typeUser === User.TYPE_DEVELOPER){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n};\r\n\r\nexpose({ resetForm, setUser });\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_card_section = _resolveComponent(\"q-card-section\")!\n const _component_q_input = _resolveComponent(\"q-input\")!\n const _component_q_select = _resolveComponent(\"q-select\")!\n const _component_q_btn = _resolveComponent(\"q-btn\")!\n const _component_q_card_actions = _resolveComponent(\"q-card-actions\")!\n\n return (_openBlock(), _createBlock(_unref(QForm), {\n ref_key: \"form\",\n ref: form,\n class: \"ni-form q-gutter-md\",\n onSubmit: save,\n autofocus: \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card_section, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, _toDisplayString(_unref(isEdit) ? 'Editar Usuário' : 'Cadastrar Usuário'), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_section, { class: \"q-pt-none q-gutter-sm\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.name,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((formData.value.name) = $event)),\n label: \"Nome\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.email,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((formData.value.email) = $event)),\n label: \"Email\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.document,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((formData.value.document) = $event)),\n label: \"Documento\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.phone,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((formData.value.phone) = $event)),\n label: \"Telefone\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.password,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((formData.value.password) = $event)),\n label: \"Senha\",\n \"lazy-rules\": \"\",\n rules: !_unref(isEdit) ? [_unref(FormRules).required, _unref(FormRules).password] : []\n }, null, 8, [\"modelValue\", \"rules\"]),\n (!_unref(isEdit) || formData.value.password.length > 0)\n ? (_openBlock(), _createBlock(_component_q_input, {\n key: 0,\n outlined: \"\",\n modelValue: formData.value.passwordConfirm,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((formData.value.passwordConfirm) = $event)),\n label: \"Confirmação da senha\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).confirm(formData.value.password, 'Senha')]\n }, null, 8, [\"modelValue\", \"rules\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_q_select, {\n outlined: \"\",\n modelValue: formData.value.type,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((formData.value.type) = $event)),\n label: \"Tipo\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required],\n options: _unref(getUserTypeOptions)(),\n \"emit-value\": \"\",\n \"map-options\": \"\"\n }, null, 8, [\"modelValue\", \"rules\", \"options\"]),\n _createVNode(_component_q_select, {\n outlined: \"\",\n clearable: \"\",\n modelValue: formData.value.supervisorId,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((formData.value.supervisorId) = $event)),\n label: \"Supervisor\",\n options: _unref(supervisorOptions),\n \"map-options\": \"\",\n \"emit-value\": \"\",\n disable: blockFieldSupervisor(formData.value.type)\n }, null, 8, [\"modelValue\", \"options\", \"disable\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.region,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((formData.value.region) = $event)),\n label: \"Região\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"]),\n _createVNode(_component_q_input, {\n outlined: \"\",\n modelValue: formData.value.regional,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((formData.value.regional) = $event)),\n label: \"Regional\",\n \"lazy-rules\": \"\",\n rules: [_unref(FormRules).required]\n }, null, 8, [\"modelValue\", \"rules\"])\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_actions, { align: \"right\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_btn, {\n flat: \"\",\n label: \"Cancelar\",\n onClick: cancel\n }),\n _createVNode(_component_q_btn, {\n type: \"submit\",\n color: \"primary\",\n label: \"Salvar\"\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 512))\n}\n}\n\n})","import script from \"./Form.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Form.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Form.vue?vue&type=style&index=0&id=31a6fcca&lang=scss&scoped=true\"\n\nimport exportComponent from \"C:\\\\Users\\\\Scaleao\\\\Desktop\\\\Projetos Timo\\\\nutricao-inteligente-frontend\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-31a6fcca\"]])\n\nexport default __exports__\nimport QForm from 'quasar/src/components/form/QForm.js';\nimport QCardSection from 'quasar/src/components/card/QCardSection.js';\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport QSelect from 'quasar/src/components/select/QSelect.js';\nimport QCardActions from 'quasar/src/components/card/QCardActions.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport qInstall from \"../../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QForm,QCardSection,QInput,QSelect,QCardActions,QBtn});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { api } from '@/utils';\r\nimport Form from './components/Form.vue';\r\nimport { ref } from 'vue';\r\nimport useQuasar from 'quasar/src/composables/use-quasar.js';;\r\nimport { User } from '@/models/user';\r\nimport { toRequestData, UserForm } from './models/user-form';\r\n\r\ninterface Props {\r\n users: User[];\r\n}\r\n\r\ninterface Emits {\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'created'): void;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n users: null\n },\n emits: [\"open\", \"close\", \"created\"],\n setup(__props: any, { expose, emit }: { emit: ({\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'created'): void;\r\n}), expose: any, slots: any, attrs: any }) {\n\r\n\r\n\r\n\r\nconst quasar = useQuasar();\r\n\r\nconst show = ref(false);\r\n\r\nconst form = ref | null>(null);\r\n\r\nconst save = (formData: UserForm) => {\r\n api\r\n .post('user', { ...toRequestData(formData) })\r\n .then(() => {\r\n quasar.notify({\r\n type: 'positive',\r\n message: 'Usuário criado com sucesso!',\r\n });\r\n\r\n close();\r\n form.value?.resetForm();\r\n emit('created');\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 422) {\r\n quasar.notify({\r\n type: 'warning',\r\n message: error.response.data.message,\r\n });\r\n } else {\r\n quasar.notify({\r\n type: 'negative',\r\n message: error.response.data.message,\r\n });\r\n console.log('Erro ao salvar usuário.', error.response);\r\n }\r\n });\r\n};\r\n\r\nconst open = () => {\r\n show.value = true;\r\n emit('open');\r\n};\r\n\r\nconst close = () => {\r\n show.value = false;\r\n emit('close');\r\n};\r\n\r\nexpose({ open, close });\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_card = _resolveComponent(\"q-card\")!\n const _component_q_dialog = _resolveComponent(\"q-dialog\")!\n\n return (_openBlock(), _createBlock(_component_q_dialog, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((show).value = $event)),\n persistent: \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card, null, {\n default: _withCtx(() => [\n _createVNode(Form, {\n ref_key: \"form\",\n ref: form,\n users: __props.users,\n onSave: save,\n onCancel: close\n }, null, 8, [\"users\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Create.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Create.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__\nimport QDialog from 'quasar/src/components/dialog/QDialog.js';\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QDialog,QCard});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-070de6d2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-h6\" }, \"Desabilitar Usuário\", -1))\nconst _hoisted_2 = [\"innerHTML\"]\n\nimport { api } from '@/utils';\r\nimport useQuasar from 'quasar/src/composables/use-quasar.js';;\r\nimport { User } from '@/models/user';\r\nimport { computed, ref } from 'vue';\r\n\r\ninterface Props {\r\n user: User | null;\r\n}\r\n\r\ninterface Emits {\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'saved'): void;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n user: null\n },\n emits: [\"open\", \"close\", \"saved\"],\n setup(__props: any, { expose, emit }: { emit: ({\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'saved'): void;\r\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\r\n user: User | null;\r\n}\n\r\n\r\n\r\n\r\nconst quasar = useQuasar();\r\n\r\nconst show = ref(false);\r\n\r\nconst message = computed(() => {\r\n if (props.user?.deletedAt) {\r\n return `Realmente deseja reabilitar o usuário ${props.user?.name}?`;\r\n } else {\r\n return `Realmente deseja desabilitar o usuário ${props.user?.name}?`;\r\n }\r\n});\r\n\r\nconst disable = () => {\r\n api\r\n .delete(`user/${props.user?.id}`)\r\n .then(() => {\r\n quasar.notify({\r\n type: 'positive',\r\n message: 'Usuário desabilitado!',\r\n });\r\n\r\n close();\r\n emit('saved');\r\n })\r\n .catch((error) => {\r\n quasar.notify({\r\n type: 'negative',\r\n message: error.response.data.message,\r\n });\r\n\r\n console.log('Erro ao salvar usuário.', error.response);\r\n });\r\n};\r\n\r\nconst enable = () => {\r\n api\r\n .get(`user/${props.user?.id}/restore`)\r\n .then(() => {\r\n quasar.notify({\r\n type: 'positive',\r\n message: 'Usuário reabilitado!',\r\n });\r\n\r\n close();\r\n emit('saved');\r\n })\r\n .catch((error) => {\r\n quasar.notify({\r\n type: 'negative',\r\n message: error.response.data.message,\r\n });\r\n\r\n console.log('Erro ao salvar usuário.', error.response);\r\n });\r\n};\r\n\r\nconst confirm = () => {\r\n if (props.user?.deletedAt) {\r\n enable();\r\n } else {\r\n disable();\r\n }\r\n};\r\n\r\nconst open = () => {\r\n show.value = true;\r\n emit('open');\r\n};\r\n\r\nconst close = () => {\r\n show.value = false;\r\n emit('close');\r\n};\r\n\r\nexpose({ open, close });\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_card_section = _resolveComponent(\"q-card-section\")!\n const _component_q_btn = _resolveComponent(\"q-btn\")!\n const _component_q_card_actions = _resolveComponent(\"q-card-actions\")!\n const _component_q_card = _resolveComponent(\"q-card\")!\n const _component_q_dialog = _resolveComponent(\"q-dialog\")!\n\n return (_openBlock(), _createBlock(_component_q_dialog, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((show).value = $event)),\n persistent: \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card, { class: \"view-modal\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card_section, null, {\n default: _withCtx(() => [\n _hoisted_1\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_section, null, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", { innerHTML: _unref(message) }, null, 8, _hoisted_2)\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_actions, { align: \"right\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_btn, {\n flat: \"\",\n label: \"Não\",\n onClick: close\n }),\n _createVNode(_component_q_btn, {\n flat: \"\",\n label: \"Sim\",\n onClick: confirm\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Disable.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Disable.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Disable.vue?vue&type=style&index=0&id=070de6d2&lang=scss&scoped=true\"\n\nimport exportComponent from \"C:\\\\Users\\\\Scaleao\\\\Desktop\\\\Projetos Timo\\\\nutricao-inteligente-frontend\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-070de6d2\"]])\n\nexport default __exports__\nimport QDialog from 'quasar/src/components/dialog/QDialog.js';\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport QCardSection from 'quasar/src/components/card/QCardSection.js';\nimport QCardActions from 'quasar/src/components/card/QCardActions.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QDialog,QCard,QCardSection,QCardActions,QBtn});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { api } from '@/utils';\r\nimport Form from './components/Form.vue';\r\nimport { ref } from 'vue';\r\nimport useQuasar from 'quasar/src/composables/use-quasar.js';;\r\nimport { User } from '@/models/user';\r\nimport { toRequestData, UserForm } from './models/user-form';\r\n\r\ninterface Props {\r\n users: User[];\r\n user: User | null;\r\n}\r\n\r\ninterface Emits {\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'saved'): void;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n users: null,\n user: null\n },\n emits: [\"open\", \"close\", \"saved\"],\n setup(__props: any, { expose, emit }: { emit: ({\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n (e: 'saved'): void;\r\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\r\n users: User[];\r\n user: User | null;\r\n}\n\r\n\r\n\r\n\r\nconst quasar = useQuasar();\r\n\r\nconst show = ref(false);\r\n\r\nconst form = ref | null>(null);\r\n\r\nconst save = (formData: UserForm) => {\r\n api\r\n .patch(`user/${props.user?.id}`, { ...toRequestData(formData) })\r\n .then(() => {\r\n quasar.notify({\r\n type: 'positive',\r\n message: 'Usuário salvo!',\r\n });\r\n\r\n close();\r\n form.value?.resetForm();\r\n emit('saved');\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 422) {\r\n quasar.notify({\r\n type: 'warning',\r\n message: error.response.data.message,\r\n });\r\n } else {\r\n quasar.notify({\r\n type: 'negative',\r\n message: error.response.data.message,\r\n });\r\n console.log('Erro ao salvar usuário.', error.response);\r\n }\r\n });\r\n};\r\n\r\nconst open = () => {\r\n show.value = true;\r\n emit('open');\r\n\r\n setTimeout(() => form.value?.setUser(props.user), 250);\r\n};\r\n\r\nconst close = () => {\r\n show.value = false;\r\n emit('close');\r\n};\r\n\r\nexpose({ open, close });\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_card = _resolveComponent(\"q-card\")!\n const _component_q_dialog = _resolveComponent(\"q-dialog\")!\n\n return (_openBlock(), _createBlock(_component_q_dialog, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((show).value = $event)),\n persistent: \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card, null, {\n default: _withCtx(() => [\n _createVNode(Form, {\n ref_key: \"form\",\n ref: form,\n users: __props.users,\n user: __props.user,\n onSave: save,\n onCancel: close\n }, null, 8, [\"users\", \"user\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Edit.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Edit.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__\nimport QDialog from 'quasar/src/components/dialog/QDialog.js';\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QDialog,QCard});\n","import { Moment } from 'moment';\r\nimport { User, UserType, UserTypeString } from '@/models/user';\r\n\r\nconst tableColumns = [\r\n {\r\n name: 'id',\r\n required: true,\r\n label: 'Código',\r\n align: 'left',\r\n field: (row: User): number | null => row.id,\r\n sortable: true,\r\n },\r\n {\r\n name: 'name',\r\n required: true,\r\n label: 'Nome',\r\n align: 'left',\r\n field: (row: User): string => row.name,\r\n sortable: true,\r\n },\r\n {\r\n name: 'document',\r\n required: true,\r\n label: 'Documento',\r\n align: 'left',\r\n field: (row: User): string => row.document,\r\n format: (val: string): string => (val.length > 20 ? `${val.substring(0, 20)}...` : val),\r\n sortable: true,\r\n },\r\n {\r\n name: 'phone',\r\n required: true,\r\n label: 'Telefone',\r\n align: 'left',\r\n field: (row: User): string => row.phone,\r\n sortable: true,\r\n },\r\n {\r\n name: 'email',\r\n required: true,\r\n label: 'Email',\r\n align: 'left',\r\n field: (row: User): string => row.email,\r\n sortable: true,\r\n },\r\n {\r\n name: 'type',\r\n required: true,\r\n label: 'Tipo',\r\n align: 'left',\r\n field: (row: User): UserType => row.type,\r\n format: (val: UserType): string => UserTypeString[val],\r\n sortable: true,\r\n },\r\n {\r\n name: 'deletedAt',\r\n required: true,\r\n label: 'Desabilitado',\r\n align: 'left',\r\n field: (row: User): Moment | null => row.deletedAt,\r\n format: (val: Moment | null): string => (val !== null ? `Sim, em ${val.format('L')}` : 'Não'),\r\n sortable: true,\r\n },\r\n {\r\n name: 'actions',\r\n label: '',\r\n align: 'left',\r\n field: (row: User): User => row,\r\n sortable: false,\r\n },\r\n];\r\n\r\nexport { tableColumns };\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, unref as _unref, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-73e3dc0e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-h6\" }, \"Detalhes do Usuário\", -1))\nconst _hoisted_2 = /*#__PURE__*/_createTextVNode(\"Código: \")\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\"Nome: \")\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\"Documento: \")\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\"Telefone: \")\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\"E-mail: \")\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\"Região: \")\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\"Regional: \")\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"Tipo: \")\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\"Criado em: \")\nconst _hoisted_11 = /*#__PURE__*/_createTextVNode(\"Atualizado em: \")\nconst _hoisted_12 = /*#__PURE__*/_createTextVNode(\"Desabilidado: \")\n\nimport { ref } from 'vue';\r\nimport { User, UserTypeString } from '@/models/user';\r\n\r\ninterface Props {\r\n user: User | null;\r\n}\r\n\r\ninterface Emits {\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n}\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n user: null\n },\n emits: [\"open\", \"close\"],\n setup(__props: any, { expose, emit }: { emit: ({\r\n (e: 'open'): void;\r\n (e: 'close'): void;\r\n}), expose: any, slots: any, attrs: any }) {\n\r\n\r\n\r\n\r\nconst show = ref(false);\r\n\r\nconst open = () => {\r\n show.value = true;\r\n emit('open');\r\n};\r\n\r\nconst close = () => {\r\n show.value = false;\r\n emit('close');\r\n};\r\n\r\nexpose({ open, close });\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_card_section = _resolveComponent(\"q-card-section\")!\n const _component_q_item_section = _resolveComponent(\"q-item-section\")!\n const _component_q_item = _resolveComponent(\"q-item\")!\n const _component_q_list = _resolveComponent(\"q-list\")!\n const _component_q_btn = _resolveComponent(\"q-btn\")!\n const _component_q_card_actions = _resolveComponent(\"q-card-actions\")!\n const _component_q_card = _resolveComponent(\"q-card\")!\n const _component_q_dialog = _resolveComponent(\"q-dialog\")!\n\n return (_openBlock(), _createBlock(_component_q_dialog, {\n modelValue: show.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((show).value = $event)),\n persistent: \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card, { class: \"view-modal\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_card_section, null, {\n default: _withCtx(() => [\n _hoisted_1\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_section, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_list, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.id), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.name), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.document), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.phone), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.email), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_7\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.region), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.regional), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_unref(UserTypeString)[__props.user!.type]), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_10\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.createdAt.format('L')), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.updatedAt?.format('L') || '-'), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_q_item_section, { side: \"\" }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }),\n _createVNode(_component_q_item_section, null, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(__props.user?.deletedAt !== null ? `Sim, em ${__props.user?.deletedAt.format('L')}` : 'Não'), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_q_card_actions, { align: \"right\" }, {\n default: _withCtx(() => [\n _createVNode(_component_q_btn, {\n flat: \"\",\n label: \"Fechar\",\n onClick: close\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./View.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./View.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./View.vue?vue&type=style&index=0&id=73e3dc0e&lang=scss&scoped=true\"\n\nimport exportComponent from \"C:\\\\Users\\\\Scaleao\\\\Desktop\\\\Projetos Timo\\\\nutricao-inteligente-frontend\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-73e3dc0e\"]])\n\nexport default __exports__\nimport QDialog from 'quasar/src/components/dialog/QDialog.js';\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport QCardSection from 'quasar/src/components/card/QCardSection.js';\nimport QList from 'quasar/src/components/item/QList.js';\nimport QItem from 'quasar/src/components/item/QItem.js';\nimport QItemSection from 'quasar/src/components/item/QItemSection.js';\nimport QCardActions from 'quasar/src/components/card/QCardActions.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QDialog,QCard,QCardSection,QList,QItem,QItemSection,QCardActions,QBtn});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"row full-width\" }\nconst _hoisted_2 = { class: \"col-12\" }\n\nimport { api } from '@/utils';\r\nimport Create from './Create.vue';\r\nimport Disable from './Disable.vue';\r\nimport Edit from './Edit.vue';\r\nimport { plainToInstance } from 'class-transformer';\r\nimport { ref } from 'vue';\r\nimport { tableColumns } from './table-columns';\r\nimport useQuasar from 'quasar/src/composables/use-quasar.js';;\r\nimport { User } from '@/models/user';\r\nimport View from './View.vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\r\nconst quasar = useQuasar();\r\n\r\nconst searchWord = ref('');\r\nconst users = ref([]);\r\nconst selectedUser = ref(null);\r\n\r\nconst modalCreate = ref | null>(null);\r\nconst modalEdit = ref | null>(null);\r\nconst modalView = ref | null>(null);\r\nconst modalDisable = ref | null>(null);\r\n\r\nconst getUsers = () => {\r\n quasar.loading.show();\r\n\r\n api\r\n .get('user')\r\n .then((response) => {\r\n users.value = plainToInstance(User, response.data);\r\n\r\n quasar.loading.hide();\r\n })\r\n .catch((error) => {\r\n quasar.notify({\r\n type: 'negative',\r\n message: 'Houve um problema ao adquirir as informações dos usuários.',\r\n });\r\n console.log('Erro ao adquirir dados de usuários', error.response);\r\n\r\n quasar.loading.hide();\r\n });\r\n};\r\n\r\nconst edit = (id: number) => {\r\n selectedUser.value = users.value.find((user) => user.id === id) || null;\r\n\r\n setTimeout(() => {\r\n modalEdit.value?.open();\r\n }, 250);\r\n};\r\n\r\nconst view = (id: number) => {\r\n selectedUser.value = users.value.find((user) => user.id === id) || null;\r\n\r\n setTimeout(() => {\r\n modalView.value?.open();\r\n }, 250);\r\n};\r\n\r\nconst disable = (id: number) => {\r\n selectedUser.value = users.value.find((user) => user.id === id) || null;\r\n\r\n setTimeout(() => {\r\n modalDisable.value?.open();\r\n }, 250);\r\n};\r\n\r\nconst init = () => {\r\n getUsers();\r\n};\r\n\r\ninit();\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_q_icon = _resolveComponent(\"q-icon\")!\n const _component_q_input = _resolveComponent(\"q-input\")!\n const _component_q_btn = _resolveComponent(\"q-btn\")!\n const _component_q_td = _resolveComponent(\"q-td\")!\n const _component_q_table = _resolveComponent(\"q-table\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_q_table, {\n title: \"Usuários\",\n rows: users.value,\n \"row-key\": \"id\",\n columns: _unref(tableColumns),\n filter: searchWord.value,\n \"rows-per-page-options\": [10, 50, 100, 200, 0],\n class: \"\"\n }, {\n \"top-right\": _withCtx(() => [\n _createVNode(_component_q_input, {\n borderless: \"\",\n dense: \"\",\n debounce: \"300\",\n modelValue: searchWord.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((searchWord).value = $event)),\n placeholder: \"Pesquisar\"\n }, {\n append: _withCtx(() => [\n _createVNode(_component_q_icon, { name: \"search\" })\n ]),\n _: 1\n }, 8, [\"modelValue\"]),\n _createVNode(_component_q_btn, {\n label: \"Novo\",\n color: \"primary\",\n class: \"q-ml-xl\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (modalCreate.value?.open()))\n })\n ]),\n \"body-cell-actions\": _withCtx((props) => [\n _createVNode(_component_q_td, { props: props }, {\n default: _withCtx(() => [\n _createVNode(_component_q_btn, {\n flat: \"\",\n size: \"sm\",\n round: \"\",\n color: \"primary\",\n icon: \"visibility\",\n onClick: ($event: any) => (view(props.row.id))\n }, null, 8, [\"onClick\"]),\n _createVNode(_component_q_btn, {\n flat: \"\",\n size: \"sm\",\n round: \"\",\n color: \"primary\",\n icon: \"edit\",\n onClick: ($event: any) => (edit(props.row.id))\n }, null, 8, [\"onClick\"]),\n _createVNode(_component_q_btn, {\n flat: \"\",\n size: \"sm\",\n round: \"\",\n color: \"primary\",\n icon: props.row.deletedAt ? 'recycling' : 'delete',\n onClick: ($event: any) => (disable(props.row.id))\n }, null, 8, [\"icon\", \"onClick\"])\n ]),\n _: 2\n }, 1032, [\"props\"])\n ]),\n _: 1\n }, 8, [\"rows\", \"columns\", \"filter\"])\n ])\n ]),\n _createVNode(Create, {\n ref_key: \"modalCreate\",\n ref: modalCreate,\n users: users.value,\n onCreated: getUsers\n }, null, 8, [\"users\"]),\n _createVNode(Edit, {\n ref_key: \"modalEdit\",\n ref: modalEdit,\n users: users.value,\n user: selectedUser.value,\n onSaved: getUsers\n }, null, 8, [\"users\", \"user\"]),\n _createVNode(View, {\n ref_key: \"modalView\",\n ref: modalView,\n user: selectedUser.value\n }, null, 8, [\"user\"]),\n _createVNode(Disable, {\n ref_key: \"modalDisable\",\n ref: modalDisable,\n user: selectedUser.value,\n onSaved: getUsers\n }, null, 8, [\"user\"])\n ], 64))\n}\n}\n\n})","import script from \"./Index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Index.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__\nimport QTable from 'quasar/src/components/table/QTable.js';\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport QIcon from 'quasar/src/components/icon/QIcon.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport QTd from 'quasar/src/components/table/QTd.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QTable,QInput,QIcon,QBtn,QTd});\n","import { h, computed } from 'vue'\n\nimport useAlign, { useAlignProps } from '../../composables/private/use-align.js'\n\nimport { createComponent } from '../../utils/private/create.js'\nimport { hSlot } from '../../utils/private/render.js'\n\nexport default createComponent({\n name: 'QCardActions',\n\n props: {\n ...useAlignProps,\n vertical: Boolean\n },\n\n setup (props, { slots }) {\n const alignClass = useAlign(props)\n\n const classes = computed(() =>\n `q-card__actions ${ alignClass.value }`\n + ` q-card__actions--${ props.vertical === true ? 'vert column' : 'horiz row' }`\n )\n\n return () => h('div', { class: classes.value }, hSlot(slots.default))\n }\n})\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./View.vue?vue&type=style&index=0&id=73e3dc0e&lang=scss&scoped=true\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./Disable.vue?vue&type=style&index=0&id=070de6d2&lang=scss&scoped=true\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./Form.vue?vue&type=style&index=0&id=31a6fcca&lang=scss&scoped=true\""],"sourceRoot":""}