{"version":3,"sources":["webpack:///./infrastructure/presentation/assets/static/edit-icon.svg","webpack:///./infrastructure/presentation/components/application/ProfileSection.vue?c4fb","webpack:///./infrastructure/presentation/views/Profile.vue?0949","webpack:///./infrastructure/presentation/components/application/shop/HistoryOrder.vue?e48d","webpack:///./infrastructure/presentation/views/Profile.vue?60e1","webpack:///./infrastructure/presentation/components/application/ProfileSection.vue?357c","webpack:///./infrastructure/presentation/components/application/ProfileSection.vue?839a","webpack:///./infrastructure/presentation/components/application/ProfileSection.vue","webpack:///./infrastructure/presentation/components/application/shop/HistoryOrder.vue?84ff","webpack:///./infrastructure/presentation/components/application/shop/HistoryOrder.vue?2841","webpack:///./infrastructure/presentation/components/application/shop/HistoryOrder.vue","webpack:///./infrastructure/presentation/views/Profile.vue?5067","webpack:///./infrastructure/presentation/views/Profile.vue"],"names":["module","exports","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","src","alt","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","key","_hoisted_10","_hoisted_11","for","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_link","_component_ProfileSection","_component_UserStatistics","_component_UserCourses","_component_HistoryOrder","_component_UserEvents","to","name","default","_","user","interests","onChange","navigateToOption","value","selectedOption","options","option","index","param","isOptionSelected","statistics","ganhemais","isCirculoTemplate","params","$route","$event","sortTrainingTypes","id","selected","query","filter","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","noCacheImage","onError","event","target","capitalizeUserName","biography","showButtonBoarding","onClick","redoOnBoarding","document","maskCPF","birthDate","formatBirthDate","email","length","interest","title","isDecolaTemplate","toDecoins","dcoins","methods","props","type","Object","required","Array","setup","Number","Intl","NumberFormat","format","userName","formattedName","toLowerCase","split","i","charAt","toUpperCase","substring","join","cpf","replace","formatedDate","replaceAll","firstPoint","indexOf","lastPoint","year","substr","trim","mouth","day","dispatch","getters","image","Math","random","push","step","message","console","error","__exports__","orders","order","products","product","formattedDate","createAt","quantity","grossValue","generateNewReceipt","store","receipt","orderID","window","open","receiptUrl","components","UserStatistics","UserEvents","ProfileSection","UserCourses","HistoryOrder","route","currentRouteParam","trainings","listUserInterests","String","currentRoute","input","toString"],"mappings":"4HAAAA,EAAOC,QAAU,IAA0B,8B,kCCA3C,W,sFCAA,W,kCCAA,W,kGCIM,EAAe,SAAAC,GAAC,OAAK,eAAa,mBAAmBA,EAAEA,IAAI,iBAAcA,GACzEC,EAAa,CACjBC,MAAO,OACP,YAAa,IAETC,EAAa,CAAED,MAAO,WACtBE,EAAa,CAAEF,MAAO,mBACtBG,EAA2B,GAAa,kBAAmB,eAAoB,MAAO,CAAEH,MAAO,sBAAwB,CAC9G,eAAoB,KAAM,CAAEA,MAAO,kBAAoB,cACvD,eAAoB,QAC/B,MACEI,EAA2B,GAAa,kBAAmB,eAAoB,MAAO,CAC1FC,IAAK,IACLC,IAAK,UACJ,MAAO,MACJC,EAAa,CAAC,SACdC,EAAa,CAAC,SACdC,EAAa,CAAET,MAAO,qBACtBU,EAAa,CACjBC,IAAK,EACLX,MAAO,mBAEHY,EAAc,CAClBD,IAAK,EACLX,MAAO,0BAEHa,EAA4B,GAAa,kBAAmB,eAAoB,QAAS,CAC7Fb,MAAO,iBACPc,IAAK,aACJ,gBAAiB,MACdC,EAAc,CAAC,YACfC,EAAc,CAAC,YACfC,EAAc,CAAC,YACfC,EAAc,CAAC,YAEf,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAyB,eAAkB,eAC3CC,EAA4B,eAAkB,kBAC9CC,EAA4B,eAAkB,kBAC9CC,EAAyB,eAAkB,eAC3CC,EAA0B,eAA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MAAO,KAInBR,EAAqC,gBAAS,WAClD,OAAOkH,EAAMnB,QAAQ,gCAIjBhG,EAA0B,gBAAS,WACvC,OAAOmH,EAAMnB,QAAQ,4BAA8B,IAAI,UAInDiC,EAA6C,gBAAS,WAC1D,OAAOd,EAAMnB,QAAQ,0CAGvB,eAAa,wCAAC,8GACNkC,IADM,OAEZ,kBAFY,4CAKd,eAAMH,GAAO,WAEXC,EAAkB5H,MAAQ2H,EAAMjH,OAAOP,UAKzC,IAAMG,EAAmB,SAACD,GACxB,OAAOA,IAAU0H,OAAOH,EAAkB5H,QAItCD,EAAmB,SAAC0C,GACxB,IAAMxC,EAAkBwC,EAAMC,OAA6B1C,MAC3D,QAAOgG,KAAK,CAAEvG,KAAM,UAAWiB,OAAQ,CAAEP,OAAQF,MAG7CA,EAAiB,gBAAS,WAC9B,OAAO,QAAO+H,aAAahI,MAAMU,OAAOP,QAAU,WAI9C2H,EAAiB,yDAAG,uHAEhBf,EAAMpB,SAAS,oCAFC,yEAIhB,gBAAc,EAAD,IAJG,wDAAH,qDASjB9E,EAAiB,yDAAG,WAAO4B,GAAP,0FAClBwF,EAAQxF,EAAMC,QAEhBuF,EAAMjI,MAHc,gCAIhB,gBAAY,QAAQ,SAAUiI,EAAMjI,MAAMkI,YAJ1B,6CAMhB,gBAAY,QAAQ,UANJ,2CAAH,sDAmBvB,OATA,gBACE,kBAAMP,EAAM3G,QADT,wCAEH,iGAC6B,QAAvB2G,EAAM3G,MAAMC,OADlB,gCAEU,gBAAY,QAAQ,YAF9B,4CAOK,CACLrB,OACAC,YACAK,UACA2H,YACAvH,mBACAO,oBACAd,mBACAE,iBACAQ,kBAAA,W,UC7HN,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAS9B,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-61eee58f.e965ba75.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/edit-icon.5b1aadb3.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ProfileSection.vue?vue&type=style&index=0&id=650c6850&scoped=true&lang=css\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Profile.vue?vue&type=style&index=0&id=59614494&scoped=true&lang=css\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./HistoryOrder.vue?vue&type=style&index=0&id=a9b48e68&scoped=true&lang=css\"","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '../assets/static/edit-icon.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-59614494\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"view\",\n \"data-view\": \"\"\n}\nconst _hoisted_2 = { class: \"profile\" }\nconst _hoisted_3 = { class: \"profile__header\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"profile__container\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", { class: \"profile__title\" }, \"Meu perfil\"),\n /*#__PURE__*/_createElementVNode(\"hr\")\n], -1))\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"Editar\"\n}, null, -1))\nconst _hoisted_6 = [\"value\"]\nconst _hoisted_7 = [\"value\"]\nconst _hoisted_8 = { class: \"profile__nav-list\" }\nconst _hoisted_9 = {\n key: 1,\n class: \"profile__filter\"\n}\nconst _hoisted_10 = {\n key: 0,\n class: \"profile__course-filter\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", {\n class: \"profile__label\",\n for: \"filter_by\"\n}, \"Filtrar por:\", -1))\nconst _hoisted_12 = [\"selected\"]\nconst _hoisted_13 = [\"selected\"]\nconst _hoisted_14 = [\"selected\"]\nconst _hoisted_15 = [\"selected\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_ProfileSection = _resolveComponent(\"ProfileSection\")!\n const _component_UserStatistics = _resolveComponent(\"UserStatistics\")!\n const _component_UserCourses = _resolveComponent(\"UserCourses\")!\n const _component_HistoryOrder = _resolveComponent(\"HistoryOrder\")!\n const _component_UserEvents = _resolveComponent(\"UserEvents\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"header\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_router_link, {\n class: \"profile__link\",\n to: { name: 'edit' }\n }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n })\n ]),\n ($setup.user)\n ? (_openBlock(), _createBlock(_component_ProfileSection, {\n key: 0,\n user: $setup.user,\n interests: $setup.interests\n }, null, 8, [\"user\", \"interests\"]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"nav\", null, [\n _createElementVNode(\"select\", {\n class: \"profile__search\",\n onChange: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => ($setup.navigateToOption && $setup.navigateToOption(...args))),\n value: $setup.selectedOption\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.options, (option, index) => {\n return (_openBlock(), _createElementBlock(\"option\", {\n key: index,\n value: option.param\n }, _toDisplayString(option.name), 9, _hoisted_7))\n }), 128))\n ], 40, _hoisted_6),\n _createElementVNode(\"ul\", _hoisted_8, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.options, (option, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: index,\n class: _normalizeClass([\r\n $setup.isOptionSelected(option.param) ? 'selected' : 'closed',\r\n { statistics: option.param === 'statistics' },\r\n { ganhemais: option.name === 'Eventos' && $setup.isCirculoTemplate() }\r\n ])\n }, [\n _createVNode(_component_router_link, {\n to: { name: 'profile', params: { option: option.param } }\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(option.name), 1)\n ]),\n _: 2\n }, 1032, [\"to\"])\n ], 2))\n }), 128))\n ])\n ]),\n (_ctx.$route.params.option === 'courses')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n (_ctx.$route.params.option === 'courses')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"select\", {\n onChange: _cache[1] || (_cache[1] = ($event: any) => ($setup.sortTrainingTypes($event))),\n name: \"filter_by\",\n id: \"filter_by\"\n }, [\n _createElementVNode(\"option\", {\n value: \"all\",\n selected: _ctx.$route.query.filter === 'all' || !_ctx.$route.query.filter\n }, \"Todos \", 8, _hoisted_12),\n _createElementVNode(\"option\", {\n value: \"online-finished\",\n selected: _ctx.$route.query.filter === 'online'\n }, \"Treinamento online finalizados \", 8, _hoisted_13),\n _createElementVNode(\"option\", {\n value: \"online-in-progress\",\n selected: _ctx.$route.query.filter === 'online'\n }, \"Treinamento online em andamento \", 8, _hoisted_14),\n _createElementVNode(\"option\", {\n value: \"face\",\n selected: _ctx.$route.query.filter === 'face'\n }, \" Treinamento presencial \", 8, _hoisted_15)\n ], 32)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.$route.params.option === 'statistics')\n ? (_openBlock(), _createBlock(_component_UserStatistics, { key: 2 }))\n : _createCommentVNode(\"\", true),\n (_ctx.$route.params.option === 'courses')\n ? (_openBlock(), _createBlock(_component_UserCourses, { key: 3 }))\n : _createCommentVNode(\"\", true),\n (_ctx.$route.params.option === 'history-order')\n ? (_openBlock(), _createBlock(_component_HistoryOrder, { key: 4 }))\n : _createCommentVNode(\"\", true),\n (_ctx.$route.params.option === 'events')\n ? (_openBlock(), _createBlock(_component_UserEvents, { key: 5 }))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-650c6850\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"user-profile\" }\nconst _hoisted_2 = { class: \"user-profile--public-info\" }\nconst _hoisted_3 = [\"src\"]\nconst _hoisted_4 = {\n key: 0,\n class: \"user-profile__username highlighted-text\"\n}\nconst _hoisted_5 = {\n key: 1,\n class: \"user-profile__username highlighted-text\"\n}\nconst _hoisted_6 = {\n key: 2,\n class: \"user-profile__biography\"\n}\nconst _hoisted_7 = {\n key: 3,\n class: \"user-profile__biography\"\n}\nconst _hoisted_8 = { class: \"user-profile--private-info\" }\nconst _hoisted_9 = { class: \"user-profile__personal-info\" }\nconst _hoisted_10 = { class: \"b-user-profile__personal-info b\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", { class: \"personal-info__title\" }, \"Informações pessoais:\", -1))\nconst _hoisted_12 = { class: \"personal-info__list list\" }\nconst _hoisted_13 = /*#__PURE__*/_createTextVNode(\" CPF: \")\nconst _hoisted_14 = {\n key: 0,\n class: \"personal-info__text highlighted-text\"\n}\nconst _hoisted_15 = {\n key: 1,\n class: \"personal-info__text highlighted-text\"\n}\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\" Data de nascimento: \")\nconst _hoisted_17 = {\n key: 0,\n class: \"personal-info__text highlighted-text\"\n}\nconst _hoisted_18 = {\n key: 1,\n class: \"personal-info__text highlighted-text\"\n}\nconst _hoisted_19 = /*#__PURE__*/_createTextVNode(\" E-mail: \")\nconst _hoisted_20 = { class: \"personal-info__text highlighted-text\" }\nconst _hoisted_21 = { class: \"user-profile__interests\" }\nconst _hoisted_22 = { class: \"b-user-profile__interests b\" }\nconst _hoisted_23 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h4\", { class: \"interests__title\" }, \"Seus interesses:\", -1))\nconst _hoisted_24 = {\n key: 0,\n class: \"interests__list list\"\n}\nconst _hoisted_25 = { class: \"highlighted-text\" }\nconst _hoisted_26 = {\n key: 1,\n class: \"interests__list\"\n}\nconst _hoisted_27 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \" Nenhum \", -1))\nconst _hoisted_28 = [\n _hoisted_27\n]\nconst _hoisted_29 = {\n key: 0,\n class: \"user-profile__activity\"\n}\nconst _hoisted_30 = { class: \"b\" }\nconst _hoisted_31 = { class: \"activity__title\" }\nconst _hoisted_32 = /*#__PURE__*/_createTextVNode(\" Seus decoins: \")\nconst _hoisted_33 = { class: \"highlighted-text bold\" }\nconst _hoisted_34 = { class: \"activity__list list\" }\nconst _hoisted_35 = { class: \"link\" }\nconst _hoisted_36 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"highlighted-text\" }, \"Visualizar extrato\", -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"img\", {\n class: \"user-profile__pic\",\n src: $setup.noCacheImage,\n alt: \"Foto do usuário\",\n onError: _cache[0] || (_cache[0] = \r\n event =>\r\n (event.target.src = require('../../assets/static/onerror-user.png'))\r\n )\n }, null, 40, _hoisted_3),\n ($props.user.name)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_4, _toDisplayString($setup.capitalizeUserName($props.user.name)), 1))\n : (_openBlock(), _createElementBlock(\"h2\", _hoisted_5, \" Usuário sem nome \")),\n ($props.user.biography)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, _toDisplayString($props.user.biography), 1))\n : (_openBlock(), _createElementBlock(\"p\", _hoisted_7, \" Você ainda não possui uma biografia. \")),\n ($setup.showButtonBoarding())\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 4,\n class: \"btn btn--boarding\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => ($setup.redoOnBoarding && $setup.redoOnBoarding(...args)))\n }, \" Refazer onboarding \"))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"ul\", _hoisted_12, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"p\", null, [\n _hoisted_13,\n ($props.user.document)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_14, _toDisplayString($setup.maskCPF($props.user.document)), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_15, _toDisplayString($setup.maskCPF(\"00000000000\")), 1))\n ])\n ]),\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"p\", null, [\n _hoisted_16,\n ($props.user.birthDate)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_17, _toDisplayString($setup.formatBirthDate($props.user.birthDate)), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_18, \"--/--/----\"))\n ])\n ]),\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"p\", null, [\n _hoisted_19,\n _createElementVNode(\"span\", _hoisted_20, _toDisplayString($props.user.email), 1)\n ])\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _hoisted_23,\n ($props.interests.length)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_24, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($props.interests, (interest, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createElementVNode(\"span\", _hoisted_25, _toDisplayString(interest.title), 1)\n ]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_26, _hoisted_28))\n ])\n ]),\n ($options.isDecolaTemplate())\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"h4\", _hoisted_31, [\n _hoisted_32,\n _createElementVNode(\"span\", _hoisted_33, _toDisplayString($setup.toDecoins($props.user.dcoins)), 1)\n ]),\n _createElementVNode(\"ul\", _hoisted_34, [\n _createElementVNode(\"li\", _hoisted_35, [\n _createVNode(_component_router_link, { to: { name: 'statement' } }, {\n default: _withCtx(() => [\n _hoisted_36\n ]),\n _: 1\n })\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}","\r\nimport { PropType, ref } from \"vue\";\r\nimport { onMounted } from \"@vue/runtime-core\";\r\nimport store from \"../../../repository/store/store\";\r\nimport router from \"../../../../src/routes\";\r\nimport { dispatchErrorBox, isDecolaTemplate } from \"../mixins\";\r\nimport { RepositoryException } from \"../../../../domain/exceptions/exceptions\";\r\nimport { User } from \"../../../../domain/entities/entities\";\r\n\r\nexport default {\r\n methods: { isDecolaTemplate },\r\n props: {\r\n user: {\r\n type: Object as PropType,\r\n required: true\r\n },\r\n interests: {\r\n type: Array,\r\n required: true\r\n }\r\n },\r\n\r\n setup() {\r\n const noCacheImage = ref();\r\n\r\n onMounted(async () => {\r\n await store.dispatch(\"userProfile_module/loadUser\");\r\n const { image } = await store.getters[\"userProfile_module/user\"];\r\n noCacheImage.value = image + \"?_=\" + Math.random();\r\n });\r\n\r\n function toDecoins(value: number | string) {\r\n value = Number(value);\r\n return Intl.NumberFormat(\"pt-br\").format(value);\r\n }\r\n\r\n /** Makes the user name all lowercased and capitalized. */\r\n function capitalizeUserName(userName: string): string {\r\n const formattedName = userName.toLowerCase().split(\" \");\r\n for (let i = 0; i < formattedName.length; i++) {\r\n formattedName[i] =\r\n formattedName[i].charAt(0).toUpperCase() +\r\n formattedName[i].substring(1);\r\n }\r\n return formattedName.join(\" \");\r\n }\r\n\r\n /** Formats the user CPF.\r\n * @param cpf String of 11 numbers without special characters (00000000000).\r\n */\r\n function maskCPF(cpf: string): string {\r\n if (cpf.length > 11 || cpf.length < 11) return \"CPF INVÁLIDO\";\r\n cpf = cpf.replace(/\\D/g, \"\");\r\n cpf = cpf.replace(/(\\d{3})(\\d)/, \"$1.$2\");\r\n cpf = cpf.replace(/(\\d{3})(\\d)/, \"$1.$2\");\r\n cpf = cpf.replace(/(\\d{3})(\\d{1,2})$/, \"$1-$2\");\r\n return cpf;\r\n }\r\n\r\n /** Makes the user birth date fit the brazilian date format (dd/mm/aaaa). */\r\n function formatBirthDate(birthDate: string) {\r\n if (!birthDate) return;\r\n let formatedDate = birthDate.replaceAll(\"-\", \"/\");\r\n const firstPoint = formatedDate.indexOf(\"/\", 1);\r\n const lastPoint = firstPoint + 1;\r\n const year = formatedDate.substr(0, firstPoint).trim();\r\n const mouth = formatedDate.substr(firstPoint + 1, 3).trim();\r\n const day = formatedDate.substr(lastPoint + 3, 3).trim();\r\n formatedDate = `${day}/${mouth}${year}`;\r\n return formatedDate;\r\n }\r\n\r\n const redoOnBoarding = async () => {\r\n try {\r\n await store.dispatch(\"userProfile_module/redoOnBoarding\", true);\r\n await router.push({ name: \"onboarding\", params: { step: 1 } });\r\n } catch (e) {\r\n if (e instanceof RepositoryException) {\r\n await dispatchErrorBox(e.message);\r\n } else {\r\n console.error(e);\r\n await dispatchErrorBox(\"Ocorreu um erro inesperado.\");\r\n }\r\n }\r\n };\r\n\r\n const showButtonBoarding = (): boolean => {\r\n return process.env.VUE_APP_THEME != \"circulo\";\r\n };\r\n\r\n return {\r\n noCacheImage,\r\n capitalizeUserName,\r\n redoOnBoarding,\r\n toDecoins,\r\n maskCPF,\r\n formatBirthDate,\r\n showButtonBoarding\r\n };\r\n }\r\n};\r\n","import { render } from \"./ProfileSection.vue?vue&type=template&id=650c6850&scoped=true&ts=true\"\nimport script from \"./ProfileSection.vue?vue&type=script&lang=ts\"\nexport * from \"./ProfileSection.vue?vue&type=script&lang=ts\"\n\nimport \"./ProfileSection.vue?vue&type=style&index=0&id=650c6850&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\dev\\\\purple__bee\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-650c6850\"]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a9b48e68\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"history-order\"\n}\nconst _hoisted_2 = { class: \"history-order__number\" }\nconst _hoisted_3 = { class: \"history-order__products\" }\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = { key: 1 }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"default-message\" }, \" Você não possui nenhum histórico de pedidos. \", -1))\nconst _hoisted_7 = [\n _hoisted_6\n]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return ($setup.orders.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.orders, (order, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createElementVNode(\"span\", _hoisted_2, \"Pedido: \" + _toDisplayString(order.id), 1),\n _createElementVNode(\"span\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(order.products, (product, index) => {\n return (_openBlock(), _createElementBlock(\"p\", {\n class: \"history-order__products\",\n key: index\n }, _toDisplayString(product.name), 1))\n }), 128))\n ]),\n _createElementVNode(\"span\", null, _toDisplayString($setup.formattedDate(order.createAt)), 1),\n _createElementVNode(\"span\", null, \"Quantidade: \" + _toDisplayString(order.quantity), 1),\n _createElementVNode(\"span\", null, \"Total: \" + _toDisplayString(order.grossValue) + \" Decoins\", 1),\n _createElementVNode(\"span\", null, [\n _createElementVNode(\"button\", {\n class: \"history-order__button\",\n onClick: ($event: any) => ($setup.generateNewReceipt(order.id))\n }, \" comprovante \", 8, _hoisted_4)\n ])\n ]))\n }), 128))\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_5, _hoisted_7))\n}","\r\nimport {useStore} from \"vuex\";\r\nimport {ComputedRef, onBeforeMount} from \"vue\";\r\nimport {computed} from \"@vue/reactivity\";\r\nimport {dispatchErrorBox, formattedDate} from \"../../mixins\";\r\nimport {Receipt} from \"../../../../../domain/entities/shop/order/receipt\";\r\nimport {RepositoryException} from \"../../../../../domain/exceptions/exceptions\";\r\n\r\nexport default {\r\n setup() {\r\n const store = useStore();\r\n\r\n /** List of orders. */\r\n const orders: ComputedRef> = computed(() => {\r\n return store.getters[\"shop_module/ordersHistory\"];\r\n });\r\n\r\n /** Getter to set the button with the receipt url. */\r\n const receipt: ComputedRef = computed(() => {\r\n return store.getters[\"shop_module/receipt\"];\r\n });\r\n\r\n onBeforeMount(async () => {\r\n try {\r\n await store.dispatch(\"shop_module/ordersHistory\");\r\n } catch (e) {\r\n if (e instanceof RepositoryException) {\r\n await dispatchErrorBox(e.message);\r\n } else {\r\n console.error(e);\r\n await dispatchErrorBox(\"Ocorreu um erro inesperado.\");\r\n }\r\n }\r\n });\r\n\r\n /** Function to generate the receipt. */\r\n async function generateNewReceipt(orderID: number): Promise {\r\n try {\r\n await store.dispatch(\"shop_module/createReceipt\", orderID);\r\n window.open(receipt.value.receiptUrl, \"_blank\");\r\n } catch (e) {\r\n if (e instanceof RepositoryException) {\r\n await dispatchErrorBox(e.message);\r\n } else {\r\n console.error(e);\r\n await dispatchErrorBox(\"Ocorreu um erro inesperado.\");\r\n }\r\n }\r\n }\r\n\r\n return {\r\n orders,\r\n receipt,\r\n generateNewReceipt,\r\n formattedDate\r\n };\r\n }\r\n};\r\n","import { render } from \"./HistoryOrder.vue?vue&type=template&id=a9b48e68&scoped=true&ts=true\"\nimport script from \"./HistoryOrder.vue?vue&type=script&lang=ts\"\nexport * from \"./HistoryOrder.vue?vue&type=script&lang=ts\"\n\nimport \"./HistoryOrder.vue?vue&type=style&index=0&id=a9b48e68&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\dev\\\\purple__bee\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a9b48e68\"]])\n\nexport default __exports__","\r\nimport { useStore } from \"vuex\";\r\nimport { computed, ComputedRef, onBeforeMount, Ref, ref, watch } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\nimport {\r\n EnrolledTraining,\r\n Interest,\r\n User\r\n} from \"../../../domain/entities/entities\";\r\nimport ProfileSection from \"../components/application/ProfileSection.vue\";\r\nimport UserCourses from \"../components/application/UserCourses.vue\";\r\nimport HistoryOrder from \"../components/application/shop/HistoryOrder.vue\";\r\nimport {\r\n isCirculoTemplate,\r\n isDecolaTemplate,\r\n scrollToTop\r\n} from \"../components/mixins\";\r\nimport router from \"../../../src/routes\";\r\nimport UserEvents from \"../components/application/userEvents/UserEvents.vue\";\r\nimport UserStatistics from \"../components/application/userStatistics/UserStatistics.vue\";\r\nimport { dispatchError } from \"../utils/error_handling\";\r\nimport { removeQuery, updateQuery } from \"../utils/routing_utils\";\r\n\r\ntype Option = {\r\n name: string;\r\n param: string;\r\n};\r\n\r\nexport default {\r\n components: {\r\n UserStatistics,\r\n UserEvents,\r\n ProfileSection,\r\n UserCourses,\r\n HistoryOrder\r\n },\r\n setup() {\r\n const store = useStore();\r\n const route = useRoute();\r\n\r\n /** Param that tells which tab is open in the down section of the profile page. */\r\n const currentRouteParam: Ref = ref(route.params.option);\r\n\r\n /** List of tabs available in the down section of the profile page. */\r\n const options: Option[] = [\r\n { name: \"Estatísticas\", param: \"statistics\" },\r\n { name: \"Treinamentos\", param: \"courses\" },\r\n { name: \"Eventos\", param: \"events\" },\r\n isDecolaTemplate()\r\n ? { name: \"Histórico de pedidos\", param: \"history-order\" }\r\n : { name: \"\", param: \"\" }\r\n ];\r\n\r\n /** Interests of the current user. */\r\n const interests: ComputedRef = computed(() => {\r\n return store.getters[\"interest_module/interests\"];\r\n });\r\n\r\n /** Current user and all its information. */\r\n const user: ComputedRef = computed(() => {\r\n return store.getters[\"userProfile_module/user\"] || new User();\r\n });\r\n\r\n /** All the courses of the current user (in progress and finished). */\r\n const trainings: ComputedRef = computed(() => {\r\n return store.getters[\"userProfile_module/enrolledTraining\"];\r\n });\r\n\r\n onBeforeMount(async () => {\r\n await listUserInterests();\r\n scrollToTop();\r\n });\r\n\r\n watch(route, () => {\r\n /** Persists the current route name to set which option is selected in the navigation. */\r\n currentRouteParam.value = route.params.option;\r\n });\r\n\r\n /** Function used to change the menu style when the current route is equal or parameter.\r\n * @param param referring to the parameter that is in the route. */\r\n const isOptionSelected = (param: string): boolean => {\r\n return param === String(currentRouteParam.value);\r\n };\r\n\r\n /** Function to navigate to the selected option. */\r\n const navigateToOption = (event: Event): void => {\r\n const selectedOption = (event.target as HTMLSelectElement).value;\r\n router.push({ name: \"profile\", params: { option: selectedOption } });\r\n };\r\n\r\n const selectedOption = computed(() => {\r\n return router.currentRoute.value.params.option || \"chart\";\r\n });\r\n\r\n /** Function responsible for loading user interests.*/\r\n const listUserInterests = async (): Promise => {\r\n try {\r\n await store.dispatch(\"interest_module/listUserInterest\");\r\n } catch (e) {\r\n await dispatchError(e);\r\n }\r\n };\r\n\r\n /** Function responsible for loading the courses in progress. */\r\n const sortTrainingTypes = async (event: Event): Promise => {\r\n const input = event.target as HTMLSelectElement;\r\n\r\n if (input.value) {\r\n await updateQuery(router, \"filter\", input.value.toString());\r\n } else {\r\n await removeQuery(router, \"filter\");\r\n }\r\n };\r\n\r\n watch(\r\n () => route.query,\r\n async () => {\r\n if (route.query.filter === \"all\") {\r\n await removeQuery(router, \"progress\");\r\n }\r\n }\r\n );\r\n\r\n return {\r\n user,\r\n interests,\r\n options,\r\n trainings,\r\n isOptionSelected,\r\n sortTrainingTypes,\r\n navigateToOption,\r\n selectedOption,\r\n isCirculoTemplate\r\n };\r\n }\r\n};\r\n","import { render } from \"./Profile.vue?vue&type=template&id=59614494&scoped=true&ts=true\"\nimport script from \"./Profile.vue?vue&type=script&lang=ts\"\nexport * from \"./Profile.vue?vue&type=script&lang=ts\"\n\nimport \"./Profile.vue?vue&type=style&index=0&id=59614494&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\dev\\\\purple__bee\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-59614494\"]])\n\nexport default __exports__"],"sourceRoot":""}