\n \n\n\n","import { each } from \"lodash\";\n/**\n * @param token\n * @returns {boolean}\n */\nexport const hasToken = ({ token }) => !!token;\n\n/**\n *\n * @param user\n * @returns {*}\n */\nexport const getPhoto = ({ user }) => user.partner.logo_foto;\n\n/**\n * @param user\n * @returns {string}\n */\nexport const getFirstLatter = ({ user }) => user.nome[0] || \"?\";\n\n/**\n *\n * @param user\n * @return {Object|undefined}\n */\nexport const getCluster = ({ user }) => user?.partner?.cluster;\n\n/**\n * @return {Object|undefined}\n */\nexport const getUser = ({ user }) => user;\n\n/**\n *\n * @param user\n * @return {*}\n */\nexport const getFirstname = ({ user }) => user.nome.split(\" \")[0] || user.nome;\n\n/**\n *\n * @param user\n * @returns {*|null}\n */\nexport const userPartnerId = ({ user }) => user.parceiro || null;\n\n/**\n *\n * @param user\n * @returns {*|null}\n */\nexport const userSlug = ({ user }) => user.partner.slug || null;\n\n/**\n *\n * @param user\n * @returns {*|null}\n */\nexport const userEmail = ({ user }) => user.email || null;\n\n/* Retona o link da página de signup própria ( externa ) da marca, caso tenha */\nexport const getLinkExternalSignUpPage = ({ external_sign_up_page }) =>\n external_sign_up_page?.value;\n\n/**\n *\n * @param user\n * @returns {*|null}\n */\nexport const userEmailHidden = (state, getters) => {\n if (getters.userEmail) {\n let replaced = \"\";\n for (let i = -1; i < getters.userEmail.length; i++) {\n if (getters.userEmail.charAt(i) === \"@\") i = getters.userEmail.length;\n else if (i > 2) replaced += getters.userEmail.charAt(i);\n }\n\n return getters.userEmail.replace(replaced, \"*\".repeat(replaced.length));\n }\n return null;\n};\n\n/**\n *\n * @param user\n * @returns {*|null}\n */\nexport const userId = ({ user }) => user.id || null;\n\n/**\n * getter to skeleton description\n *\n * @param sign_up_skeleton\n * @returns {*|{}}\n */\nexport const getSignUpSkeleton = ({ sign_up_skeleton }) =>\n sign_up_skeleton || {};\n\nexport const getSignUpSkeletonChallengeCodes = ({ sign_up_skeleton }) =>\n sign_up_skeleton.challenge_links || {};\n\nexport const getSignUpCnaes = ({ sign_up_skeleton }) =>\n sign_up_skeleton?.cnaes || {};\n\nexport const getSignUpPartnerTypes = ({ sign_up_skeleton }) =>\n sign_up_skeleton?.partner_types || {};\n\nexport const getSignUpPartnerTypesLp = ({ sign_up_skeleton }) =>\n sign_up_skeleton?.partner_types.map((p) => ({\n label: p.singular_name,\n value: p.id,\n })) || [];\n\nexport const getSignUpCategories = ({ sign_up_skeleton }) =>\n sign_up_skeleton.categories_to_publish || {};\n\nexport const getSignUpConfig = ({ sign_up_skeleton }) => {\n return (\n {\n slug_placeholder: sign_up_skeleton.params.sign_slug_placeholder,\n message_link: sign_up_skeleton.params.sign_message_link_store,\n } || {}\n );\n};\n\nexport const getSignUpConfigLinkCupom = ({ sign_up_skeleton }) => {\n return {\n store_link_prefix: sign_up_skeleton.params2.sign_link_sufix,\n };\n};\n\nexport const getSignUpSocialNetworks = () => {\n return [\n {\n value: \"facebook\",\n label: \"Facebook\",\n },\n {\n value: \"instagram\",\n label: \"Instagram\",\n },\n {\n value: \"twitter\",\n label: \"Twitter\",\n },\n {\n value: \"linkedin\",\n label: \"Linkedin\",\n },\n {\n value: \"youtube\",\n label: \"Youtube\",\n },\n {\n value: \"whatsapp\",\n label: \"Whatsapp\",\n },\n {\n value: \"tiktok\",\n label: \"Tiktok\",\n },\n {\n value: \"site\",\n label: \"Site\",\n },\n ];\n};\nexport const getRegisterPersonType = ({ sign_up_skeleton }) => {\n let types = [\"PF\", \"PJ\"];\n if (\n sign_up_skeleton.params &&\n sign_up_skeleton.params.user_who_can_register\n ) {\n let value =\n sign_up_skeleton.params.user_who_can_register.value.toUpperCase();\n if (value === \"PF\") {\n types = [\"PF\"];\n } else if (value === \"PJ\") {\n types = [\"PJ\"];\n }\n }\n return types;\n};\n\n/**\n * export getter to skeleton sign up params\n *\n * @param sign_up_skeleton\n * @return {number}\n */\nexport const getSignUpCreateApprovedStatus = ({ sign_up_skeleton }) => {\n let status = 0;\n\n if (sign_up_skeleton && sign_up_skeleton.params) {\n const defaultStatusObj = sign_up_skeleton.params.default_partner_status;\n status = defaultStatusObj.value;\n }\n\n return status;\n};\n\n/**\n * export getter to skeleton sign up params\n *\n * @param sign_up_skeleton\n * @return {number}\n */\nexport const getSlugIsReadyOnly = ({ sign_up_skeleton }) => {\n let status = false;\n if (sign_up_skeleton && sign_up_skeleton.params) {\n each(sign_up_skeleton.params, (p) => {\n if (p.var === \"slug_readonly\") {\n status = p.value.toString() === \"true\";\n }\n });\n }\n return status;\n};\n\nexport const getSignupFlipPartnerType = ({ partner_type_flip_signup }) => {\n return partner_type_flip_signup;\n};\n","var map = {\n\t\"./UploadDocumentComponent\": [\n\t\t\"7404\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-015b2f2e\",\n\t\t\"chunk-1a6e7e47\"\n\t],\n\t\"./UploadDocumentComponent.vue\": [\n\t\t\"7404\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-015b2f2e\",\n\t\t\"chunk-1a6e7e47\"\n\t],\n\t\"./address\": [\n\t\t\"4b89\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-74a85b3e\",\n\t\t\"chunk-71d48d01\"\n\t],\n\t\"./address.vue\": [\n\t\t\"4b89\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-74a85b3e\",\n\t\t\"chunk-71d48d01\"\n\t],\n\t\"./bank-account\": [\n\t\t\"5442\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-25e659ee\",\n\t\t\"chunk-882048fe\",\n\t\t\"chunk-6a4f51ae\",\n\t\t\"chunk-49b57bb2\",\n\t\t\"chunk-066531ac\"\n\t],\n\t\"./bank-account-type-bank\": [\n\t\t\"e34a\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-6a4f51ae\"\n\t],\n\t\"./bank-account-type-bank.vue\": [\n\t\t\"e34a\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-6a4f51ae\"\n\t],\n\t\"./bank-account-type-pix\": [\n\t\t\"8495\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-49b57bb2\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./bank-account-type-pix.vue\": [\n\t\t\"8495\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-49b57bb2\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./bank-account.vue\": [\n\t\t\"5442\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-25e659ee\",\n\t\t\"chunk-882048fe\",\n\t\t\"chunk-6a4f51ae\",\n\t\t\"chunk-49b57bb2\",\n\t\t\"chunk-066531ac\"\n\t],\n\t\"./change-password\": [\n\t\t\"465d\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-b372d5ae\"\n\t],\n\t\"./change-password.vue\": [\n\t\t\"465d\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-b372d5ae\"\n\t],\n\t\"./change-space\": [\n\t\t\"8ead\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-7a3aeb76\"\n\t],\n\t\"./change-space.vue\": [\n\t\t\"8ead\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-7a3aeb76\"\n\t],\n\t\"./company-data\": [\n\t\t\"5cc3\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-62c684ae\"\n\t],\n\t\"./company-data.vue\": [\n\t\t\"5cc3\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-62c684ae\"\n\t],\n\t\"./contact-details\": [\n\t\t\"2769\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-09e712e6\",\n\t\t\"chunk-6b002fdc\",\n\t\t\"chunk-53d3d131\",\n\t\t\"chunk-65aa9886\"\n\t],\n\t\"./contact-details.vue\": [\n\t\t\"2769\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-09e712e6\",\n\t\t\"chunk-6b002fdc\",\n\t\t\"chunk-53d3d131\",\n\t\t\"chunk-65aa9886\"\n\t],\n\t\"./disable-account\": [\n\t\t\"bbd6\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-67abc03c\"\n\t],\n\t\"./disable-account.vue\": [\n\t\t\"bbd6\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-67abc03c\"\n\t],\n\t\"./my-documents\": [\n\t\t\"9422\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-015b2f2e\",\n\t\t\"chunk-e8050ec6\"\n\t],\n\t\"./my-documents.vue\": [\n\t\t\"9422\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-b4558b00\",\n\t\t\"chunk-015b2f2e\",\n\t\t\"chunk-e8050ec6\"\n\t],\n\t\"./personal-info\": [\n\t\t\"7ea8\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-0fbcd3ef\"\n\t],\n\t\"./personal-info.vue\": [\n\t\t\"7ea8\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-2d0cc643\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-5fcce295\",\n\t\t\"chunk-0fbcd3ef\"\n\t],\n\t\"./setup\": [\n\t\t\"512d\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./setup/\": [\n\t\t\"512d\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./setup/index\": [\n\t\t\"512d\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./setup/index.js\": [\n\t\t\"512d\",\n\t\t\"chunk-2d0c7704\"\n\t],\n\t\"./skeletons/AccountTypeBankSkeleton\": [\n\t\t\"84b2\",\n\t\t\"chunk-40c6d732\"\n\t],\n\t\"./skeletons/AccountTypeBankSkeleton.vue\": [\n\t\t\"84b2\",\n\t\t\"chunk-40c6d732\"\n\t],\n\t\"./skeletons/ContactDetailsSkeleton\": [\n\t\t\"0e43\",\n\t\t\"chunk-4c82709e\"\n\t],\n\t\"./skeletons/ContactDetailsSkeleton.vue\": [\n\t\t\"0e43\",\n\t\t\"chunk-4c82709e\"\n\t],\n\t\"./social-account\": [\n\t\t\"d359\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-39572860\"\n\t],\n\t\"./social-account.vue\": [\n\t\t\"d359\",\n\t\t\"chunk-5c7232c0\",\n\t\t\"chunk-8e6188ce\",\n\t\t\"chunk-f591f690\",\n\t\t\"chunk-db6f2968\",\n\t\t\"chunk-2d0e1d50\",\n\t\t\"chunk-715911be\",\n\t\t\"chunk-39572860\"\n\t],\n\t\"./verification-components/FieldToUpdateComponent\": [\n\t\t\"eac6\",\n\t\t\"chunk-53d3d131\",\n\t\t\"chunk-35c4fe96\"\n\t],\n\t\"./verification-components/FieldToUpdateComponent.vue\": [\n\t\t\"eac6\",\n\t\t\"chunk-53d3d131\",\n\t\t\"chunk-35c4fe96\"\n\t],\n\t\"./verification-components/FieldToValidateComponent\": [\n\t\t\"a7d0\",\n\t\t\"chunk-24ea51ae\"\n\t],\n\t\"./verification-components/FieldToValidateComponent.vue\": [\n\t\t\"a7d0\",\n\t\t\"chunk-24ea51ae\"\n\t],\n\t\"./verification-components/GetCodeComponent\": [\n\t\t\"3490\",\n\t\t\"chunk-02a689f0\"\n\t],\n\t\"./verification-components/GetCodeComponent.vue\": [\n\t\t\"3490\",\n\t\t\"chunk-02a689f0\"\n\t],\n\t\"./verification-components/ValidateEmailExt\": [\n\t\t\"9b23\",\n\t\t\"chunk-16895af6\",\n\t\t\"chunk-70f133c1\"\n\t],\n\t\"./verification-components/ValidateEmailExt.vue\": [\n\t\t\"9b23\",\n\t\t\"chunk-16895af6\",\n\t\t\"chunk-70f133c1\"\n\t],\n\t\"./verification-components/ValidateOrChangeCelular\": [\n\t\t\"5e02\",\n\t\t\"chunk-09e712e6\",\n\t\t\"chunk-40856cbc\"\n\t],\n\t\"./verification-components/ValidateOrChangeCelular.vue\": [\n\t\t\"5e02\",\n\t\t\"chunk-09e712e6\",\n\t\t\"chunk-40856cbc\"\n\t],\n\t\"./verification-components/ValidateOrChangeEmail\": [\n\t\t\"b912\",\n\t\t\"chunk-6b002fdc\",\n\t\t\"chunk-51eb8383\"\n\t],\n\t\"./verification-components/ValidateOrChangeEmail.vue\": [\n\t\t\"b912\",\n\t\t\"chunk-6b002fdc\",\n\t\t\"chunk-51eb8383\"\n\t],\n\t\"./verification-components/setup\": [\n\t\t\"c4cb\",\n\t\t\"chunk-2d217146\"\n\t],\n\t\"./verification-components/setup/\": [\n\t\t\"c4cb\",\n\t\t\"chunk-2d217146\"\n\t],\n\t\"./verification-components/setup/index\": [\n\t\t\"c4cb\",\n\t\t\"chunk-2d217146\"\n\t],\n\t\"./verification-components/setup/index.js\": [\n\t\t\"c4cb\",\n\t\t\"chunk-2d217146\"\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = \"24c4\";\nmodule.exports = webpackAsyncContext;","export { default as routes } from \"./routes\";\nexport { default as services } from \"./services\";\nexport { default as stores } from \"./stores\";\n","import { setBearerToken } from \"@/shared/http\";\n\n/**\n * Putting the token in the header for authentic calls\n *\n * @param token\n */\nexport const setHeaderToken = (token) => setBearerToken(token);\n\n/**\n * @returns {string}\n */\nexport const getLocalToken = () => localStorage.getItem(\"token\");\n\n/**\n * Deleting token from localStorage\n */\nexport const deleteLocalToken = () => localStorage.removeItem(\"token\");\n\n/**\n * putting token in localStorage\n * @param token\n */\nexport const setLocalToken = (token) => localStorage.setItem(\"token\", token);\n\n\n/**\n * this function is used to log out the user when the token is expired or is invalid\n * @param message\n */\nexport const LogOutUnauthenticated = (message) => {\n const normalizeMessage = message.toLocaleLowerCase().replace(/[^\\w\\s]/gi, \"\");\n if (\n normalizeMessage === \"unauthorized\" ||\n normalizeMessage === \"unauthenticated\"\n ) {\n deleteLocalToken();\n window.location.reload();\n }\n};\n","export default {\n me_store: {\n image_library: \"Biblioteca de imagens\",\n no_images: \"Não há imagens disponíveis no momento.\",\n expire_in: \"Expira em: { date}\",\n message:\n \"Observação: Algumas imagens podem ter data de expiração, ao fim do periodo de expiração, a imagem não estará mais disponível para uso em sua loja.\",\n success: \"Imagem adicionada com sucesso!\",\n fail: \"Falha ao adicionar imagem!\",\n total_exceeded: \"Limite de imagens excedido!\",\n },\n};\n","/**\n * Course routes\n */\nexport default [\n {\n path: \"course/:id\",\n name: \"course\",\n component: () => import(\"./index\"),\n meta: {\n visible: false,\n },\n },\n {\n path: \"course/:slug/certificate\",\n name: \"course.certificate\",\n component: () => import(\"./certificate\"),\n meta: {\n visible: false,\n },\n },\n];\n","export const statePwa = ({ pwaPromptInstall }) => pwaPromptInstall;","/**\n Export all getters from state\n*/\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getOpenedSummary = ({ opened }) => {\n return opened.summary || {}\n}\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getOpenedMovements = ({ opened }) => {\n return opened.details.data || {}\n}\n\n/**\n * @param openedInRequest\n * @returns {*}\n */\nexport const getOpenedInRequest = ({ openedInRequest }) => {\n return openedInRequest || false\n}\n\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getOpenedPaginationResource = ( { opened } ) => {\n let pagination = Object.assign({}, opened.details || {})\n delete pagination.data\n return pagination;\n}\n\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getClosedSummary = ({ closed }) => {\n return closed.summary || {}\n}\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getClosedParams = ({ closed }) => {\n return closed.params || {}\n}\n/**\n * @param opened\n * @returns {*}\n */\nexport const getClosedClosure = ({ closed }) => {\n return closed.closure || {}\n}\n\n/**\n * @param opened\n * @returns {*}\n */\nexport const getClosedMovements = ({ closed }) => {\n if(closed.closure){\n return closed.closure.commissions || {}\n }\n\n return []\n}\n\n/**\n * @param openedInRequest\n * @returns {*}\n */\nexport const getClosedInRequest = ({ closedInRequest }) => {\n return closedInRequest || false\n}\n\n/**\n * @param opened\n */\nexport const getClosedDate = (state, getters) => {\n if(getters.getOpenedSummary.due_date){\n return getters.getOpenedSummary.due_date\n }\n else return null\n}\n\n\nexport const getPdfLink = ({ pdfLink }) => {\n return pdfLink || \"\"\n}","export default [\n {\n path: \"my-lists\",\n name: \"my-lists\",\n component: () => import(\"./index\"),\n meta: {\n sort: -1,\n visible: true,\n label: \"menu.lading_page\",\n icon: \"thumb_up\",\n },\n },\n];\n","import * as types from \"../mutation-types\";\nimport services from \"@/shared/http\";\n\nexport * from './lp-centralized'\n\n\n/**\n * @param commit\n * @return {*}\n */\nexport const setProducts = ({ commit }, payload) => {\n commit(types.SET_INFLU_PRODUCTS_BY_CATEGORIES, payload);\n\n const allProducts = payload.flatMap(\n category => category?.prods_parent ?? category?.prods\n );\n\n commit(types.SET_ALL_PRODUCTS, allProducts);\n};\n\n/**\n * @param commit\n * @return {*}\n */\nexport const setInfluEcomCustomization = ({ commit }, payload) => {\n commit(types.SET_INFLU_DATA, payload);\n};\n\n/**\n * @param commit\n * @return {*}\n */\nexport const setCompanieDetails = ({ commit }, payload) => {\n commit(types.SET_COMPANIE_DETAILS, payload);\n};\n\n/**\n * @param commit\n * @return {*}\n */\nexport const setSidebarStatus = ({ commit }, payload) => {\n commit(types.SET_SIDEBAR_STATUS, payload);\n};\n\n/**\n * @param dispatch\n * @return {*}\n */\nexport const fetchInfluProducts = ({ dispatch, state }, payload) => {\n const { lp_centralized } = state\n const { is_lp_centralized } = lp_centralized;\n\n const service = is_lp_centralized ? \n services.public_landingpage.getProductsByCompany : \n services.public_landingpage.getProductsByCategory\n\n return new Promise((resolve, reject) => {\n service({}, payload)\n .then((response) => {\n dispatch(\"setProducts\", response.data);\n resolve();\n })\n .catch((error) => {\n reject(error);\n window.location.href = \"/404\";\n });\n });\n};\n\n/**\n * @param dispatch\n * @return {*}\n */\nexport const fetchInfluEcomCustomization = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.public_landingpage\n .getEcommCustomization({}, payload)\n .then((response) => {\n dispatch(\"setInfluEcomCustomization\", response);\n resolve();\n })\n .catch((error) => {\n reject(error);\n window.location.href = \"/404\";\n });\n });\n};\n\n\n/**\n * @param dispatch\n * @return {*}\n */\nexport const fetchCompanieDetails = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.partner\n .parentBySlug(payload)\n .then((response) => {\n dispatch(\"setCompanieDetails\", response);\n resolve();\n })\n .catch((error) => {\n reject(error);\n window.location.href = \"/404\";\n });\n });\n};\n","export default {\n change_photo: \"Mudar foto\",\n delete_photo: \"Excluir foto\",\n change_password: \"Alterar senha\",\n change_email: \"Dados de Contato\",\n contact_details_message:\n \"Mantenha seus dados atualizados para que possamos entrar em contato com você.\",\n change_email_message:\n \"Por medida de segurança, o e-mail somente pode ser alterado mediante a alteração do e-mail anterior. Caso você não consiga alterar seu e-mail, você deve validar o seu e-mail antes de alterá-lo, se estiver com problemas entre em contato com o {value}\",\n account: \"Meus Dados\",\n address: \"Endereço\",\n bank_account: \"Dados Bancários\",\n change_store_name: \"Nome do seu espaço\",\n you_store: \"link da sua loja atual: \",\n social_account: \"Dados Sociais\",\n documents: \"Documentos Submetidos\",\n social_account_alert: `Os dados salvos nesta aba 'Dados Sociais' - inclusive WhatsApp -\n poderão ser compartilhados publicamente na sua área de parceiro.\n Clientes potenciais poderão entrar em contato com você. Somente digite\n esses dados se estiver de acordo com o compartilhamento com clientes.`,\n more_info: \"Mais Informações\",\n pic_dimensions: \"Dimensões recomendadas: 300x300px\",\n pic_size: \"Tamanho máximo: 1MB\",\n my_docs: {\n disclaimer:\n \"Submeta os documentos necessários para validação de seu cadastro.\",\n docs: \"DOCUMENTOS\",\n doc_type: \"Tipo: \",\n file_name: `Nome do Arquivo: {description}`,\n created_at: \"Data\",\n observation: \"Observações:\",\n exedeed_limit: \"O arquivo excede o tamanho máximo de {value}MB.\",\n send_again:\n \"Caso deseje reenviar algum arquivo, clique no botão excluir e faça o upload novamente.\",\n\n // docs side\n modal_title: \"Enviar documento\",\n no_docs: \"Você já enviou todos os documentos necessários.\",\n no_docs_submitted: \"Você ainda não enviou nenhum documento.\",\n tip_1: \"Selecione o tipo de documento que deseja realizar upload;\",\n tip_2: \"É permitido apenas um upload por tipo de documento.\",\n select: \"Selecione um tipo de documento\",\n select_file: \"Selecione um arquivo\",\n message: \"O tamanho máximo do arquivo é de {value}MB\",\n success: \"Documento enviado com sucesso!\",\n },\n company_data: {\n title: {\n migrate: `\n Migrar de Pessoa Física (PF) para Pessoa Jurídica (PJ)\n `,\n update: `\n Atualize os dados da sua empresa\n `\n }\n },\n pending_docs_message:\n \"Olá, Seja bem-vindo(a)! Para prosseguir, será necessário enviar seus documentos para que possamos validar seu cadastro.\",\n\n no_pending_docs: \"Não há documentos pendentes.\",\n\n analyzing_data: \"Dados em análise\",\n update_data: \"Atualizar dados\",\n little_time: \"Falta pouco!\",\n data_analyzing:\n \"Agora seus dados estão em análise, fique atento ao seu e-mail, pois te notificaremos assim que forem validados.\",\n\n perfil_analyzing:\n \"Estamos avaliando seus dados e em breve retornaremos. Fique atento ao seu E-mail.\",\n\n validate_or_change: {\n email: {\n verify: \"Verificar Email\",\n change: \"Alterar Email\",\n label_step_1:\n \"Insira no campo abaixo o novo endereço de email que deseja utilizar.\",\n label_step_2:\n \"Um email com o código de verificação foi enviado para o endereço {value}.\",\n\n verified: \"Email verificado com sucesso!\",\n updated: \"Email atualizado com sucesso!\",\n },\n celular: {\n verify: \"Verificar Celular\",\n change: \"Alterar Celular\",\n label_step_1:\n \"Insira no campo abaixo o novo número de celular que deseja utilizar.\",\n label_step_2:\n \"Um código de verificação foi enviado via SMS para o seguinte número de celular: {value}\",\n\n verified: \"Celular verificado com sucesso!\",\n updated: \"Celular atualizado com sucesso!\",\n },\n\n invalid_code: \"Código inválido.\",\n resended_code: \"Código reenviado com sucesso!\",\n },\n\n association_success: \"Inscrição realizada com sucesso!\",\n\n cpf_is_required: \"O campo CPF é requerido\",\n cpf_is_invalid: \"CPF inválido\",\n\n parameterized_registration: {\n pf_pj_helper:\n \"Se você optar pelo modelo de recebimento como pessoa física ou não puder gerar uma nota fiscal, usaremos esses dados para o pagamento como pessoa física.\",\n select_pix_or_account:\n \"Selecione a Conta ou Pix para recebimento em sua conta:\",\n },\n};\n","/**\n * @param hierarchy\n * @return {{}}\n */\nexport const getHierarchy = ({ hierarchy }) => {\n return hierarchy;\n};\n","import { baseUrl } from \"@/shared/http/api\";\n\n/**\n * By exposing all services used in the module,\n * they are written by axios, responsible for the http control,\n * and are exposed to be used as metadata returning a promise\n */\nexport default {\n login: () => ({ method: \"POST\", url: \"api/v1/auth/login\" }),\n\n loginWithoutPassword: () => ({\n method: \"POST\",\n url: \"api/v1/auth/login-without-password\",\n }),\n\n loginSocial: () => ({\n method: \"GET\",\n url: \"api/v1/auth/social/login/{slug_parent}\",\n baseURL: \"http://localhost:8090/\",\n }),\n\n sendRecoverCode: () => ({ method: \"POST\", url: \"api/v1/recover/send-code\" }),\n\n changePassword: () => ({\n method: \"POST\",\n url: \"api/v1/recover/change-password\",\n }),\n\n validateCode: () => ({ method: \"POST\", url: \"api/v1/recover/validate-code\" }),\n\n me: () => ({\n method: \"GET\",\n url: \"api/v1/user/me\",\n noPersist: true,\n }),\n\n signUpSkeleton: () => ({ method: \"GET\", url: \"api/v1/signup/{slug}\" }),\n\n testStoreSlug: () => ({\n method: \"GET\",\n url: \"api/v1/signup/slug/{partnerSlug}/{newSlug}\",\n }),\n\n signUpStore: () => ({ method: \"POST\", url: \"api/v1/signup/create\" }),\n\n validateSignUpService: () => ({\n method: \"POST\",\n url: \"api/v1/signup/validate\",\n }),\n\n externalSignUpPage: () => ({\n method: \"GET\",\n url: \"api/v1/parameters/p/{partnerSlug}/refirect_signup\",\n baseUrl: baseUrl\n }),\n\n terms: () => ({ method: \"GET\", url: \"api/v1/terms/{partnerSlug}/{type}\" }),\n\n userTerms: () => ({ method: \"GET\", url: \"api/v1/terms\" }),\n\n acceptUserTerms: () => ({ method: \"PATCH\", url: \"api/v1/terms/\" }),\n\n confirmYou: () => ({\n method: \"GET\",\n url: \"api/v1/recover/confirm-person/{slug_parent}/{confirmation}\",\n }),\n};\n","/**\n * When image fetched not found use this by default\n *\n * @returns {string}\n * @constructor\n */\nexport const ImgNotFound = () => {\n return \"/img404.jpg\";\n};\n\n/**\n * @return {string}\n */\nexport const storeNotFound = () => {\n return \"/storeNotFound.jpg\";\n};\n/**\n * @return {string}\n */\nexport const bannerLpDefault = () => {\n return \"/bannerLpDefault.png\";\n};\n/**\n * @return {string}\n */\nexport const storeNotFoundMobile = () => {\n return \"/storeNotFoundMobile.jpg\";\n};\n/**\n * @return {string}\n */\nexport const logo = () => {\n return \"/logo.png\";\n};\n","import state from \"./state\";\nimport mutations from \"./mutations\";\nimport * as actions from \"./actions\";\nimport * as getters from \"./getters\";\n\n/**\n * export all modules from store\n */\nexport default {\n state,\n actions,\n getters,\n mutations,\n namespaced: true,\n};\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param payload\n */\n [types.SET_COURSES](state, payload) {\n state.courses = payload;\n },\n /**\n * @param state\n * @param payload\n */\n [types.SET_COURSES_IN_PROCESS](state, payload) {\n state.courses_in_process = payload;\n },\n /**\n * @param state\n * @param payload\n */\n [types.SET_COURSES_FINISHED](state, payload) {\n state.courses_finished = payload;\n },\n /**\n * @param state\n * @param in_request\n */\n [types.SET_IN_REQUEST](state, in_request) {\n state.in_request = in_request;\n },\n /**\n * @param state\n * @param in_request\n */\n [types.SET_CATEGORIES](state, categories) {\n state.categories = categories;\n },\n /**\n * filter\n *\n * @param state\n * @param filter\n */\n [types.SET_FILTER](state, filter) {\n state.filter = filter;\n },\n\n /**\n * badges changes\n *\n * @param state\n * @param value\n */\n [types.SET_BADGE_CHANGES](state, value) {\n state.badges_changed = value;\n },\n /**\n * set tab mode\n *\n * @param state\n * @param value\n */\n [types.SET_TAB_MODE](state, value) {\n state.tab_mode = value;\n },\n\n /**\n * set tab mode\n *\n * @param state\n * @param value\n */\n [types.SET_ALL_COURSES](state, value) {\n state.courses_list = value;\n },\n\n \n};\n","/**\n * Notifications routes\n */\nexport default [\n {\n path: \"notifications\",\n name: \"notifications\",\n component: () => import(\"./index\"),\n meta: {\n label: \"menu.notifications\",\n icon: \"notifications\",\n },\n },\n];\n","import services from \"./services\";\nimport api from \"./api\";\n\nconst setBearerToken = (token) => {\n api.defaults.headers.common[\"Authorization\"] = `Bearer ${token}`;\n};\n\nexport default services;\n\nexport { api, setBearerToken };\n","import services from \"@/shared/http\";\nimport * as types from \"./mutation-types\";\nimport { filter } from \"lodash\";\n\n/**\n * set products action\n *\n * @param commit\n * @param payload\n */\nexport const setEcommData = ({ commit }, payload) => {\n commit(types.SET_ECOMM, payload);\n};\n\n/**\n * set questions action\n *\n * @param commit\n * @param in_request\n */\nexport const setInRequest = ({ commit }, in_request) => {\n commit(types.SET_IN_REQUEST, in_request);\n};\n\n/**\n * set products action\n *\n * @param commit\n * @param payload\n */\nexport const setMeStoreParams = ({ commit }, payload) => {\n commit(types.SET_ME_STORE_PARAMS, payload);\n};\n\n/**\n * set assets action\n *\n * @param commit\n * @param payload\n */\nexport const setPartnerAssets = ({ commit }, payload) => {\n commit(types.SET_PARTNER_ASSETS, payload);\n};\n\n/**\n * action to fetch question\n *\n * @param dispatch\n * @returns {*}\n */\nexport const fetchEcomm = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n dispatch(\"setInRequest\", true);\n\n services.me_store\n .getEcomm()\n .then((resources) => {\n dispatch(\"setEcommData\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setInRequest\", false));\n });\n};\n\nexport const storeEcomm = ({ dispatch, state }, payload) => {\n return new Promise((resolve, reject) => {\n let ecomm = Object.assign(state.ecomm, payload);\n\n services.me_store\n .putEcomm(ecomm)\n .then(() => {\n dispatch(\"setEcommData\", ecomm);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const pushNewImage = ({ dispatch, state }, payload) => {\n const ecomm = state.ecomm;\n ecomm.photos.push(payload);\n dispatch(\"setEcommData\", ecomm);\n};\n\nexport const deleteEcommPhoto = ({ dispatch, state }, { id }) => {\n return new Promise((resolve, reject) => {\n services.me_store\n .deleteEcommPhoto({ id })\n .then(() => {\n const ecomm = state.ecomm;\n ecomm.photos = filter(ecomm.photos, (photo) => photo.id !== id);\n dispatch(\"setEcommData\", ecomm);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const fetchParametersByKeys = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.me_store\n .params(payload)\n .then((res) => {\n dispatch(\"setMeStoreParams\", res);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const fetchPartnerStoreAssets = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.me_store\n .getAssetsByPartnerStore(payload)\n .then((res) => {\n dispatch(\"setPartnerAssets\", res);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const fetchSelectLibraryImage = ({ dispatch }, payload) => {\n return services.me_store.uploadEcommPhoto(payload).then(() => {\n dispatch(\"fetchPartnerStoreAssets\");\n });\n};\n","import { baseUrlMissions, baseURL } from \"@/shared/http/api\";\n\n/**\n * @mission-services\n */\n\nexport default {\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n getMissions: () => ({\n method: \"GET\",\n url: \"/api/v1/partners/missions\",\n baseURL: baseUrlMissions,\n noPersist: true,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n getMissionsFinished: () => ({\n method: \"GET\",\n url: \"/api/v1/partners/missions\",\n baseURL: baseUrlMissions,\n noPersist: true,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n getNotSubMissions: () => ({\n method: \"GET\",\n url: \"/api/v1/partners/missions/not-subscribed\",\n baseURL: baseUrlMissions,\n noPersist: true,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n createContent: () => ({\n method: \"POST\",\n url: \"/api/v1/contents\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n showMission: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/{slug}\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n subscribe: () => ({\n method: \"POST\",\n url: \"/api/v1/subscribe/{slug}\",\n baseURL: baseUrlMissions,\n }),\n\n unsubscribe: () => ({\n method: \"POST\",\n url: \"/api/v1/subscribe/unsubscribe/{id}\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n sendAnswers: () => ({\n method: \"POST\",\n url: \"/api/v1/behaviors/participant/answer\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n finishedDetails: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/finished-details/{slug}/{id}\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n publicMissions: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/public?\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n finishedMissions: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/public?status=finished\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n showPublicMission: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/public/{slug}\",\n baseURL: baseUrlMissions,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n showPublicHeader: () => ({\n method: \"GET\",\n url: \"/api/v1/assets/public/list-by-company\",\n baseURL: baseURL,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n showPublicHeaderCompany: () => ({\n method: \"GET\",\n url: \"/api/v1/assets/public/list-by-company/{slug}?{target}\",\n baseURL: baseURL,\n }),\n\n /**\n * @api-version 1\n * @returns {{method: string, url: string, baseURL: string}}\n */\n getTermsByMission: () => ({\n method: \"GET\",\n url: \"/api/v1/terms/byMission/{slug}\",\n baseURL: baseUrlMissions,\n }),\n\n avaibleMissions: () => ({\n method: \"GET\",\n url: \"/api/v1/missions/available\",\n baseURL: baseUrlMissions,\n }),\n\n getTemporaryUploadLinks: () => ({\n method: \"POST\",\n url: \"/api/v1/generate-temporary-upload-url\",\n baseURL: baseURL,\n }),\n};\n","/**\n * Sales routes\n */\nexport default [\n {\n path: \"sales\",\n name: \"sales\",\n component: () => import(\"./index\"),\n meta: {\n sort: 5,\n visible: true,\n label: \"menu.sales\",\n icon: \"shopping_cart\",\n },\n },\n];\n","/**\n * all states from store\n */\nexport default {\n unfilledDocs: [],\n opened: {},\n openedInRequest: false,\n closed: {},\n closedInRequest: false,\n history: {},\n historyInRequest: false,\n pdfLink:\"\",\n}","import { validateLuhn } from \"./numbersManipulation\";\nimport i18n from \"@/i18n/wrappers/i18n\";\n\nconst t = i18n.global.t;\n\nexport function checkPrePaidCardNumber(value, prefixes) {\n const cleanedValue = value.replace(/\\D/g, \"\");\n const validateCode = Object.values(prefixes).some((prefix) =>\n cleanedValue.startsWith(prefix)\n );\n\n const validateLength = value.length == 19;\n return (\n (validateLuhn(value) && validateCode && validateLength) ||\n t(\"validations.numbers_manipulations.invalid_number_card\")\n );\n}\n\nexport const emailMatchValidation = (value, currentValue, field) => {\n const validateEmail = /\\S+@\\S+\\.\\S+/;\n\n return (\n (validateEmail.test(value) && value === currentValue) ||\n t(\n `validations.string_manipulations.${\n value ? \"unmatched_field\" : \"required_field\"\n }`,\n { field: field }\n )\n );\n};\n","/**\n * Map name for mutations\n * @types {string}\n */\n\nexport const SET_PARTNER = \"PARTNER/SET_PARTNER\";\nexport const SET_PARAMETERS = \"PARTNER/SET_PARAMETERS\";\nexport const SET_CUSTOMER_SERVICE = \"PARTNER/SET_CUSTOMER_SERVICE\";\n/**\n * TODO: https://app.clickup.com/t/868ck271k\n */\nexport const SET_USE_CUSTOM_LOGO = \"PARTNER/SET_USE_CUSTOM_LOGO\";\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param payload\n */\n [types.SET_ORDERS](state, payload) {\n state.orders = payload;\n },\n\n /**\n * @param state\n * @param in_request\n */\n [types.SET_IN_REQUEST](state, in_request) {\n state.in_request = in_request;\n },\n\n /**\n * set period start and end date\n *\n * @param state\n * @param created_at_start\n * @param created_at_end\n */\n [types.SET_PERIOD](state, { created_at_begin, created_at_end }) {\n state.period = { created_at_begin, created_at_end };\n },\n\n [types.SET_ORDER_CYCLE](state, payload) {\n state.order_cycle = payload;\n },\n};\n","/**\n * all states from store\n */\nexport default {\n reward_info: [],\n in_request: false,\n trade_on_request: false,\n all_rewards: [],\n last_rewards_opened: [],\n rewards_closed: [],\n rewards_opened: [],\n rewards_statuses: [],\n gift_cards: [],\n gift_card_suppliers: [],\n gift_card_categories: [],\n gift_card_departments: [],\n pre_paid_card_info: {},\n reward_elegible: {},\n pre_paid_card_options: [],\n};\n","/**\n * Map name for mutations\n * @types {string}\n */\nexport const SET_PARAM = \"VIEWS/SET_PARAM\";\nexport const SET_MISSION_MENU = \"VIEWS/SET_MISSION_MENU\";\nexport const SET_ALCADAS = \"VIEWS/SET_ALCADAS\";\n","import \"./styles/quasar.scss\";\nimport iconSet from \"quasar/icon-set/material-icons\";\nimport \"@quasar/extras/fontawesome-v5/fontawesome-v5.css\";\nimport lang from \"quasar/lang/pt-BR.js\";\nimport \"@quasar/extras/material-icons/material-icons.css\";\nimport Notify from 'quasar/src/plugins/notify/Notify.js';import LocalStorage from 'quasar/src/plugins/local-storage/LocalStorage.js';import SessionStorage from 'quasar/src/plugins/session-storage/SessionStorage.js';import Loading from 'quasar/src/plugins/loading/Loading.js';import Dialog from 'quasar/src/plugins/dialog/Dialog.js';import Cookies from 'quasar/src/plugins/cookies/Cookies.js';import BottomSheet from 'quasar/src/plugins/bottom-sheet/BottomSheet.js';;\n// To be used on app.use(Quasar, { ... })\nexport default {\n animations: \"all\",\n config: {},\n plugins: {\n Notify,\n LocalStorage,\n SessionStorage,\n Loading,\n Cookies,\n Dialog,\n BottomSheet\n },\n lang: lang,\n iconSet: iconSet,\n};\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param payload\n */\n [types.SET_NOTIFICATIONS](state, payload) {\n state.notifications = payload;\n },\n /**\n * @param state\n * @param on\n */\n [types.SET_NOTIFICATIONS_ON_REQUEST](state, on) {\n state.notificationsOnRequest = on;\n },\n};\n","import { default as faq } from \"./pages/faq/services\";\nimport { default as sales } from \"./pages/sales/services\";\nimport { default as commission } from \"./pages/commission/services\";\nimport { default as account } from \"./pages/account/services\";\nimport { default as notifications } from \"./pages/notifications/services\";\nimport { default as home } from \"./pages/home/services\";\nimport { default as me_store } from \"./pages/me-store/services\";\nimport { default as landing_page } from \"./pages/landing-pages/services\";\nimport { default as products } from \"./pages/products/services\";\nimport { default as components } from \"./components/services\";\nimport { default as my_points } from \"./pages/my-points/services\";\nimport { default as rescue_award } from \"./pages/rescue-award/services\";\nimport { default as hierarchy } from \"./pages/hierarchy/services\";\nimport { default as courses } from \"./pages/courses/services\";\nimport { default as course } from \"./pages/course/services\";\nimport { default as missions } from \"./pages/missions/services\";\nimport { default as my_lists } from \"./pages/my-lists/services\";\nimport { default as public_landingpage } from \"./pages/public-landingpage/services\";\nimport { default as simplified_sharing_products } from \"./pages/simplified-sharing-products/services\";\n\n/**\n * By exposing all services used in the module,\n * they are written by axios, responsible for the http control,\n * and are exposed to be used as metadata returning a promise\n */\nexport default {\n components,\n rescue_award,\n faq,\n landing_page,\n commission,\n account,\n notifications,\n products,\n me_store,\n my_points,\n home,\n hierarchy,\n sales,\n courses,\n course,\n missions,\n my_lists,\n public_landingpage,\n simplified_sharing_products\n};\n","/**\n Export all getters from state\n*/\n\n/**\n * @param menu_param\n */\nexport const getMenuParam = ({ menu_param }) => menu_param;\n\n/**\n * @param links\n */\nexport const getCardLink = ({ links }) => {\n const linksValues = Object.values(links);\n\n return linksValues.map((link) => ({\n value: link.value,\n description: link.func,\n icon: link.var,\n }));\n};\n\n/**\n * @param alcadas\n */\nexport const getAlcadas = ({ alcadas }) => alcadas;\n","/**\n * export all services from index\n */\nexport { default as services } from './services'\nexport { default as store } from './store/'\n\n","export default {\n title: \"Personalize sua loja\",\n change_social_networks: \"Alterar redes sociais\",\n highlight_text: \"Titulo da sua loja\",\n highlight_description: \"Descrição da sua loja\",\n shared: \"Compartilhados\",\n authorize_social_networks:\n \"Autorizo compartilhar minhas redes sociais cadastradas\",\n maybe_u_want_to_change_your_networks:\n \"Talvez você queira alterar suas redes sociais\",\n add_favorites: \"Adicionar favoritos\",\n};\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param payload\n */\n [types.SET_USER](state, payload) {\n state.user = Object.assign({}, payload);\n },\n /**\n * @param state\n * @param payload\n */\n [types.SET_TOKEN](state, payload) {\n state.token = payload;\n },\n\n /**\n * @param state\n * @param payload\n */\n [types.SET_SIGN_UP_SKELETON](state, payload) {\n state.sign_up_skeleton = payload;\n },\n\n /**\n * @param state\n * @param payload\n */\n [types.SET_SIGN_UP_FLIP_PARTNER_TYPE](state, payload) {\n state.partner_type_flip_signup = payload;\n },\n\n [types.SET_EXTERNAL_SIGNUP_PAGE](state, payload) {\n state.external_sign_up_page = payload;\n },\n};\n","import script from \"./App.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./App.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","/**\n * all states from store\n */\nexport default {\n user: {},\n token: \"\",\n sign_up_skeleton: null,\n partner_type_flip_signup: \"pf\",\n external_sign_up_page: null\n};\n","import * as types from './mutation-types'\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param {Object} state\n * @param {Object} payload\n */\n [types.SET_UNFILLED_DOC] (state, payload) {\n state.unfilledDocs = payload\n },\n /**\n * @param {Object} state\n * @param {Object} payload\n */\n [types.SET_OPENED] (state, payload) {\n state.opened = payload\n },\n /**\n * @param {Object} state\n * @param {Boolean} inRequest\n */\n [types.SET_OPENED_IN_REQUEST] (state, inRequest){\n state.openedInRequest = inRequest\n },\n /**\n * @param {Object} state\n * @param {Object} payload\n */\n [types.SET_CLOSED] (state, payload) {\n state.closed = payload\n },\n /**\n * @param {Object} state\n * @param {Boolean} inRequest\n */\n [types.SET_CLOSED_IN_REQUEST] (state, inRequest){\n state.closedInRequest = inRequest\n },\n /**\n * @param {Object} state\n * @param {Object} payload\n */\n [types.SET_HISTORY] (state, payload) {\n state.history = payload\n },\n /**\n * @param {Object} state\n * @param {Boolean} inRequest\n */\n [types.SET_HISTORY_IN_REQUEST] (state, inRequest){\n state.historyInRequest = inRequest\n },\n [types.SET_PDF_LINK] (state, payload) {\n state.pdfLink = payload\n },\n}","/**\n * public routes\n */\nexport default [\n {\n path: \"/:childSlug/lp/:parentSlug\",\n name: \"public-landingpage\",\n component: () => import(\"./pages/public-landingpage/index\"),\n meta: {\n visible: false,\n noAuth: true,\n },\n },\n {\n path: \"/lp/:slug/:user_slug/products\",\n name: \"lp.products\",\n component: () => import(\"./pages/landing-pages/lpProducts\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/blog-lp\",\n component: () => import(\"../../blog-lp/blog.vue\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/blog-lp/company-reviews\",\n component: () => import(\"../../blog-lp/sections/CompanyReviews\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/certificate/course/:slug\",\n name: \"public.course.certificate\",\n component: () => import(\"./pages/course/public.certificate\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/public/missions/:slugCompany\",\n name: \"public.missions.company\",\n component: () => import(\"./pages/missions/PublicMissionPage\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/public/missions\",\n name: \"public.missions\",\n component: () => import(\"./pages/missions/PublicMissionPage\"),\n meta: {\n noAuth: true,\n },\n },\n {\n path: \"/public/mission/:slug\",\n name: \"public.missions-show\",\n component: () => import(\"./pages/missions/PublicShowMissionPage\"),\n meta: {\n noAuth: true,\n },\n },\n {\n meta: {\n noAuth: true,\n },\n path: \"/404\",\n component: () => import(\"./views/404\"),\n name: \"404\",\n },\n {\n meta: {\n noAuth: true,\n },\n path: \"/:catchAll(.*)*\",\n component: () => import(\"./views/404\"),\n },\n];\n","import { createStore } from \"vuex\";\n\nimport modules from \"@/store/modules\";\n\nexport default createStore({\n modules: modules,\n});\n","/**\n * @sales-services\n */\nimport { baseUrlOMS } from \"@/shared/http/api\";\n\nexport default {\n /**\n * orders index\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n orders: () => ({\n method: \"POST\",\n url: \"v2/orders/getOrders\",\n baseURL: baseUrlOMS,\n persistRequest: false,\n }),\n};\n","/**\n * import min routes\n */\nimport { default as notificationsRoutes } from \"./pages/notifications/routes\";\nimport { default as homeRoutes } from \"./pages/home/routes\";\nimport { default as salesRoutes } from \"./pages/sales/routes\";\nimport { default as productsRoutes } from \"./pages/products/routes\";\nimport { default as myListsRoutes } from \"./pages/my-lists/routes\";\nimport { default as simplifiedSharingProductsRoutes } from \"./pages/simplified-sharing-products/routes\";\nimport { accountRoutes, pendingRoutes } from \"./pages/account/routes\";\nimport { default as hierarchyRoutes } from \"./pages/hierarchy/routes\";\nimport { default as commissionRoutes } from \"./pages/commission/routes\";\nimport { default as rescueAwardRoutes } from \"./pages/rescue-award/routes\";\nimport { default as meStoreRoutes } from \"./pages/me-store/routes\";\nimport { default as missionsRoutes } from \"./pages/missions/routes\";\nimport { default as courseRoutes } from \"./pages/course/routes\";\nimport { default as coursesRoutes } from \"./pages/courses/routes\";\nimport { default as myPointsRoutes } from \"./pages/my-points/routes\";\nimport { default as faqRoutes } from \"./pages/faq/routes\";\n\n/**\n * public routes\n */\nimport { default as publicRoutes } from \"./publicRoutes\";\n\nexport default [\n ...publicRoutes,\n {\n path: \"/\",\n redirect: { name: \"dashboard\" },\n component: () => import(\"./layouts/MainLayout\"),\n children: [\n ...meStoreRoutes,\n ...productsRoutes,\n ...myListsRoutes,\n ...accountRoutes,\n ...hierarchyRoutes,\n ...commissionRoutes,\n ...notificationsRoutes,\n ...homeRoutes,\n ...myPointsRoutes,\n ...rescueAwardRoutes,\n ...missionsRoutes,\n ...courseRoutes,\n ...coursesRoutes,\n ...salesRoutes,\n ...faqRoutes,\n ...simplifiedSharingProductsRoutes,\n {\n path: \"/mag\",\n name: \"mag\",\n beforeEnter() {\n window.open(\"https://mag.flip.net.br/\", \"_blank\");\n },\n meta: {\n sort: 8,\n visible: true,\n label: \"menu.mag\",\n icon: \"import_contacts\",\n },\n },\n ],\n },\n {\n path: \"/\",\n component: () => import(\"./layouts/BlockLayout\"),\n children: [...pendingRoutes],\n },\n];\n","import { each } from \"lodash\";\n\n/**\n * @param token\n * @returns {boolean}\n */\nexport const hasPartner = ({ partner }) => partner && partner.slug;\n\n/**\n * @param partner\n * @returns {*}\n */\nexport const getPartner = ({ partner }) => partner;\n\n/**\n * @param partner\n * @param getters\n * @param rootState\n * @param rootGetter\n * @return {*}\n */\nexport const getPartnerParentLogo = (\n { partner },\n getters,\n rootState,\n rootGetter\n) => {\n function isValidImageURL(str) {\n if (typeof str !== \"string\") return false;\n return !!str.match(/\\w+\\.(jpg|jpeg|gif|png|tiff|bmp)$/gi);\n }\n\n let url = partner.logo_foto_link || partner.logo || partner.logo_foto;\n\n if (isValidImageURL(url)) {\n return url;\n } else {\n return rootGetter[\"assents/logo\"];\n }\n};\n\n/**\n * @param partner\n * @returns {*}\n */\nexport const getPartnerSlug = ({ partner }) => partner.slug;\n\n/**\n * TODO: https://app.clickup.com/t/868ck271k\n */\nexport const getUseCustomLogo = ({ use_custom_logo }) => use_custom_logo;\n\n/**\n * @param partner\n * @returns {*}\n */\nexport const isFlipnetCompany = ({ partner }) => partner.slug == \"flipnet\";\n\n/**\n * @return {string}\n */\nexport const getPartnerSuffixParam = () => {\n return \"parceiro\";\n};\n\n/**\n * @param state\n * @param getters\n * @param rootState\n * @param rootGetter\n * @returns {*[]}\n */\nexport const getStoreLinks = (state, getters, rootState, rootGetter) => {\n const overview = rootGetter[\"home/getOverview\"];\n\n if (Object.keys(overview).length) {\n // Usando flatMap para extrair todos os link_store\n return overview.linkStores.flatMap((store) => store.link_store || []);\n } else {\n return [];\n }\n};\n\n/**\n * @param {*} state\n * @param {*} getters\n * @param {*} rootState\n * @param {*} rootGetter\n * @returns {{}}\n */\nexport const getStoreLink = (state, getters, rootState, rootGetter) => {\n const overview = rootGetter[\"home/getOverview\"];\n\n if (Object.keys(overview).length) {\n // Usando flatMap como acima para pegar todos os links\n const allLinks = overview.linkStores.flatMap(\n (store) => store.link_store || []\n );\n // Retornar o primeiro link_store do array consolidado, ou um objeto vazio\n return allLinks[0] || {};\n } else {\n return {};\n }\n};\n\n/**\n * export getter to skeleton sign up params\n *\n * @param parameters\n * @return {number}\n */\nexport const getSlugIsReadyOnly = ({ parameters }) => {\n let status = false;\n if (parameters) {\n each(parameters, (p) => {\n if (p.var === \"slug_readonly\") {\n status = p.value.toString() === \"true\";\n }\n });\n }\n return status;\n};\n\nexport const getPartnerBonusInviteHelp = ({ parameters }) => {\n let desc = \"\";\n if (parameters) {\n each(parameters, (p) => {\n if (p.var === \"bonus_invite_help\") {\n desc = p.value;\n }\n });\n }\n return desc;\n};\n\nexport const getPartnerVoucherHelp = ({ parameters }) => {\n let desc = \"\";\n if (parameters) {\n each(parameters, (p) => {\n if (p.var === \"voucher_helper\") {\n desc = p.value;\n }\n });\n }\n return desc;\n};\n\nexport const getParamsProductHelp = ({ parameters }) => {\n let desc = \"\";\n if (parameters) {\n each(parameters, (p) => {\n if (p.var === \"product_help\") {\n desc = p.value;\n }\n });\n }\n return desc;\n};\n\nexport const getCustomerService = ({ customer_service }) =>\n customer_service || {};\n","import services from \"@/shared/http\";\nimport * as types from \"./mutation-types\";\n\n/**\n * set categories action\n *\n * @param commit\n * @param payload\n */\nexport const setCategories = ({ commit }, payload) => {\n commit(types.SET_CATEGORIES, payload);\n};\n/**\n * set category filter action\n *\n * @param commit\n * @param payload\n */\nexport const setCategoryFilterId = ({ commit }, id) => {\n commit(types.SET_CATEGORY_FILTER_ID, id);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setPoints = ({ commit }, payload) => {\n commit(types.SET_POINTS, payload);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setCommission = ({ commit }, payload) => {\n commit(types.SET_COMMISSION, payload);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setSplitExceptions = ({ commit }, payload) => {\n commit(types.SET_SPLIT_EXCEPTIONS, payload);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setPartner = ({ commit }, payload) => {\n commit(types.SET_PARTNER, payload);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setSplitClusters = ({ commit }, payload) => {\n commit(types.SET_SPLIT_CLUSTERS, payload);\n};\n\n/**\n * set points action\n *\n * @param commit\n * @param payload\n */\nexport const setFaqQuestions = ({ commit }, payload) => {\n commit(types.SET_FAQ_QUESTIONS, payload);\n};\n/**\n * set total points action\n *\n * @param commit\n * @param total\n */\nexport const setTotalPoints = ({ commit }, total) => {\n commit(types.SET_TOTAL_POINTS, total);\n};\n\n/**\n * set points action on request\n *\n * @param commit\n * @param in_request\n */\nexport const setPointsInRequest = ({ commit }, in_request) => {\n commit(types.SET_POINTS_IN_REQUEST, in_request);\n};\n\n/**\n * set points action on request\n *\n * @param commit\n * @param payload\n */\nexport const setSplitClustersRules = ({ commit }, payload) => {\n commit(types.SET_SPLIT_CLUSTERS_RULES, payload);\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @returns {*}\n */\nexport const fetchCategory = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getCategories()\n .then((resources) => {\n dispatch(\"setCategories\", resources);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n/**\n * action to fetch total points\n *\n * @param dispatch\n * @returns {*}\n */\nexport const fetchTotalPoints = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getTotalPoint()\n .then((resources) => {\n dispatch(\"setTotalPoints\", resources);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n/**\n * action to fetch total points\n *\n * @param dispatch\n * @returns {*}\n */\nexport const fetchFaqQuestions = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getFaqQuestions()\n .then((resources) => {\n dispatch(\"setFaqQuestions\", resources);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchPoints = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n let filterId = payload && payload.filter_id ? payload.filter_id : null,\n query = { filter_id: filterId };\n\n dispatch(\"setCategoryFilterId\", filterId);\n dispatch(\"setPointsInRequest\", true);\n\n services.my_points\n .getPoints(query)\n .then((resources) => {\n dispatch(\"setPoints\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setPointsInRequest\", false));\n });\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchCommission = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getCommission()\n .then((resources) => {\n dispatch(\"setCommission\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setCommission\", false));\n });\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchSplitExceptions = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getSplitExceptions()\n .then((resources) => {\n dispatch(\"setSplitExceptions\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setSplitExceptions\", false));\n });\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchPartner = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getPartner()\n .then((resources) => {\n dispatch(\"setPartner\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setPartner\", false));\n });\n};\n\n/**\n * action to fetch category\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchSplitClusters = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getSplitClusters()\n .then((resources) => {\n dispatch(\"setSplitClusters\", resources);\n resolve();\n })\n .catch((error) => reject(error))\n .finally(() => dispatch(\"setSplitClusters\", false));\n });\n};\n\n/**\n * get split clusters rules to partners\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const fetchSplitClustersRules = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.my_points\n .getClusterInfos(payload)\n .then(({ partner_cluster_rules }) => {\n dispatch(\"setSplitClustersRules\", partner_cluster_rules.value);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-ps\": \"4c98\",\n\t\"./ar-ps.js\": \"4c98\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn-bd\": \"9686\",\n\t\"./bn-bd.js\": \"9686\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-in\": \"ec2e\",\n\t\"./en-in.js\": \"ec2e\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./en-sg\": \"b7e9\",\n\t\"./en-sg.js\": \"b7e9\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-mx\": \"b5b7\",\n\t\"./es-mx.js\": \"b5b7\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df48\",\n\t\"./fa.js\": \"8df48\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fil\": \"d69a\",\n\t\"./fil.js\": \"d69a\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b46\",\n\t\"./gd.js\": \"f6b46\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-deva\": \"aaf2\",\n\t\"./gom-deva.js\": \"aaf2\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku-kmr\": \"7558\",\n\t\"./ku-kmr.js\": \"7558\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./oc-lnc\": \"167b\",\n\t\"./oc-lnc.js\": \"167b\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tk\": \"5aff\",\n\t\"./tk.js\": \"5aff\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf75\",\n\t\"./tlh.js\": \"cf75\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-mo\": \"3a6c\",\n\t\"./zh-mo.js\": \"3a6c\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","export default {\n cnaes: {\n 0: \"Válidos para parceiro MEI\",\n 1: \"Válidos para parceiro ME\",\n type: {\n 0: \"mei\",\n 1: \"me\",\n },\n },\n\n partner_types: {\n pf: \"Pessoa física\",\n pj: \"Pessoa jurídica\",\n },\n\n fields: {\n email: \"Email\",\n complete_name: \"Nome completo\",\n invalid_fullname: \"Insira seu Nome completo\",\n fantasy_name: \"Nome fantasia\",\n celular: \"Celular\",\n cpf: \"CPF\",\n document_cpf_contact: \"CPF do contato principal\",\n cnpj: \"CNPJ\",\n birth_date: \"Data de nascimento\",\n invalid_birth_date: \"Data de nascimento inválida\",\n slug: \"Digite o nome para sua lojinha/cupom\",\n slug_alpha_numeric:\n \"Por favor, digite apenas letras e números (sem acentos ou caracteres especiais)\",\n social_networks: {\n instagram: 'Instagram'\n },\n captions: {\n email: \"Um email com sua senha será enviado para o endereço.\",\n slug: \"Coloque uma palavra que faça lembrar você a seus seguidores e clientes.\",\n },\n },\n\n top_messages: {\n steps:\n \"Crie sua conta
Em apenas 3 passos
\",\n success:\n \"Parabéns!
Cadastro finalizado!
\",\n },\n\n success_page: {\n email:\n \"Suas informações de acesso foram enviadas para o seu email: { email }
ATENÇÃO! VOCÊ TERÁ ATÉ 24H PARA CONFIRMAR SEU CADASTRO E CRIAR SUA SENHA.\",\n first_access:\n \"
Quando você entrar pela primeira vez, que tal dar uma olhada em nossos principais recursos?
Você pode criar e personalizar suas lojas online, acompanhar o que está rolando com as empresas, realizar missões e treinamentos profissionalizantes...
E acredite, estamos aqui para ajudar em tudo!
Se precisar de uma mãozinha, é só chamar nossa equipe de suporte.
\",\n support: \"Fale conosco\",\n action: \"Acessar minha loja\",\n },\n\n opt_in: \"Autorizo o uso do meu email e celular para comunicados.\",\n use_terms: \"Concordo com os termos de uso.\",\n help_message: `Ao clicar no botão 'próximo', você concorda com os Termos e Condições de Uso e Política de Privacidade da Plataforma.`,\n\n required: \"O campo {field} é obrigatório\",\n\n parameterized_registration: {\n not_long: \"Falta pouco!\",\n data_pending: \"Dados em análise!\",\n send_docs_pictures:\n \"Tire foto e envie os seguintes documentos para completar seu cadastro:\",\n delete_doc: \"Está certo que deseja excluir este documento?\",\n available_docs: \"Formatos permitidos: .PDF, .PNG, .JPEG, .JPG:\",\n download_file: \"Baixar arquivo\",\n uploads: \"Uploads feitos\",\n send_this_docs: \"Faça upload dos seguintes documentos:\",\n success_docs: \"Uploads realizados com sucesso\",\n steps: {\n address_step: \"Endereço\",\n pf_or_pj_step_PF: \"Dados PF\",\n pf_or_pj_step_PJ: \"Dados PJ\",\n payment_type_step: \"Forma de pagamento\",\n document_step: \"Documentos\",\n },\n },\n};\n","import { orderBy } from \"lodash\";\n/**\n * @param state\n * @returns {{}}\n */\nexport const getChecklists = (state) => {\n return orderBy(orderBy(state.checklists, \"sequence\"), \"checked\");\n};\n\n/**\n * @param show_latter\n * @returns {*}\n */\nexport const isShowLatter = ({ show_latter }) => {\n return show_latter;\n};\n","import state from './state'\nimport mutations from './mutations'\nimport * as actions from './actions'\nimport * as getters from './getters'\n\nexport default {\n state,\n actions,\n getters,\n mutations,\n namespaced: true\n}","export default {\n store_on_process:\n \"Loja em processo de criação, dentro de instantes seu link estará disponivél\",\n};\n","import * as types from \"../mutation-types\";\nimport services from \"@/shared/http\";\n\n\n/** \n * Define apenas as empresas com produtos selecionados pelo INFLU\n * ( Empresas que o influ selecionou produtos no child )\n* */\nexport const setOnlyCompaniesWithProductsLPCentralized = ({ commit }, payload) => {\n commit(types.SET_ONLY_COMPANIES_WITH_PRODUCTS_LP_CENTRALIZED, payload);\n}\n\n\n/* Define os links do ecommerce das empresas parceiras ( Com o parâmetro do influ ) */\nexport const setCompaniesLinksLPCentralized = ({ commit }, payload) => {\n commit(types.SET_COMPANIES_LINKS_LP_CENTRALIZED, payload?.linkStores);\n}\n\n\n/* Define os vouchers disponíveis para o INFLU */\nexport const setInfluencerVoucherLPCentralized = ({ commit }, payload) => {\n commit(types.SET_INFLUENCER_VOUCHERS_LP_CENTRALIZED, payload?.vouchers);\n}\n\n\n/* Define se é ou não a LP Publica */\nexport const setLPCentralized = ({ commit }, payload) => {\n commit(types.SET_LP_CENTRALIZED, payload);\n};\n\n\n/* Busca os Links e Vouchers das empresas disponiveis na LP Centralizada */\nexport const fetchLinksAndVouchers = async ({ dispatch }, payload) => {\n const output = await services.public_landingpage.getLinksAndVouchers({}, payload)\n\n if (!output) throw new Error('Houve um erro ao obter links e vouchers')\n\n dispatch('setCompaniesLinksLPCentralized', output)\n dispatch('setInfluencerVoucherLPCentralized', output)\n}","/**\n * all states from store\n */\nexport default {\n notifications: {},\n notificationsOnRequest: false,\n};\n","/**\n * all states from store\n */\nexport default {\n available_banners: [],\n selected_banners: [],\n lp_products: [],\n};\n","import services from \"@/shared/http\";\nimport * as types from \"./mutation-types\";\n\n/**\n * set checklists\n *\n * @param commit\n * @param payload\n */\nexport const setChecklistAction = async ({ commit }, payload) => {\n await commit(types.SET_CHECKLISTS, payload);\n};\n\n/**\n * set checklists\n *\n * @param commit\n * @param payload\n */\nexport const setShowLatterChecklistAction = ({ commit }, payload) => {\n commit(types.SET_SHOW_LATTER_CHECKLIST, payload);\n};\n\n/**\n * Action to fetch checklists data.\n *\n * @param dispatch\n * @param {boolean} isCached - Whether to check for cached data.\n * @returns {Promise}\n */\nexport const fetchChecklistsAction = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.components\n .list()\n .then((checklists) => {\n // Despachar as ações com os dados obtidos da API\n dispatch(\"setChecklistAction\", checklists).finally(resolve); // Resolver a Promise após dispatchar as ações\n })\n .catch((error) => reject(error)); // Rejeitar a Promise se a requisição falhar\n });\n};\n\nexport const checkUpChecklistAction = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.components\n .verify({ id: payload.id })\n .then(async () => {\n await dispatch(\"fetchChecklistsAction\");\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const undoChecklistAction = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.components\n .undoVerify({ id: payload.id })\n .then(async () => {\n await dispatch(\"fetchChecklistsAction\");\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\nexport const seenChecklistAction = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.components\n .seen({ id: payload.id })\n .then(async () => {\n await dispatch(\"fetchChecklistsAction\");\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n","import { sanitizedPayloadProducts } from \"../helpers/sanitizedPayloadProducts\";\nimport * as types from \"./mutations-types\";\nimport services from \"@/shared/http\";\n\n\n/* ==== INICIO: Essas actions são usadas apenas no dash centralizado ==== */\n\nexport const setDashboardCentralized = ({ commit }, payload) => {\n commit(types.SET_DASHBOARD_CENTRALIZED, payload);\n};\n\nexport const setCompaniesIDsInCentralized = ({ commit }, payload) => {\n commit(types.SET_COMPANIES_IDS_IN_CENTRALIZED, payload);\n commit(types.SET_COMPANIES_IDS_IN_SELECTED_FAVORITES_LIST, payload)\n};\n\nexport const setCompaniesFilterInCentralized = ({ commit }, payload) => {\n commit(types.SET_COMPANIES_FILTER_IN_CENTRALIZED, payload);\n};\n\nexport const setAllCompaniesInCentralized = ({ commit, dispatch }, payload) => {\n commit(types.SET_ALL_COMPANIES_IN_CENTRALIZED, payload);\n\n const onlyCompaniesIDs = payload\n .map(companie => companie.id)\n\n const companies = {\n companies: {\n label: 'Empresas',\n data: payload\n .filter(company => company.slug !== \"flipnet\")\n .map(company => {\n return {\n id: company.id,\n name: company.friendly_name\n }\n })\n }\n }\n \n \n dispatch(\"setCompaniesFilterInCentralized\", companies);\n\n dispatch(\"setFilters\", companies);\n\n dispatch(\"setCompaniesIDsInCentralized\", onlyCompaniesIDs)\n\n dispatch(\"setParentsIDs\", onlyCompaniesIDs);\n};\n\n/* ==== FIM: Essas actions são usadas apenas no dash centralizado ==== */\n\n\n\n/* ==== INICIO: Essas actions são usadas apenas na Lista de favoritos selecionados ==== */\n\nexport const setRequestConfigSelectedFavoritesList = ({ commit }, payload) => {\n commit(types.SET_REQUEST_CONFIG_IN_CENTRALIZED, payload);\n};\n\nexport const setLoadingInSelectedFavoritesList = ({ commit }, payload) => {\n commit(types.SET_LOADING_IN_SELECTED_FAVORITES_LIST, payload);\n};\n\n/* ==== FIM: Essas actions são usadas apenas na Lista de favoritos selecionados ==== */\n\n\n\nexport const setIsAddingProductToFavorites = ({ commit }, payload) => {\n commit(types.SET_IS_ADDING_PRODUCT_TO_FAVORITES, payload);\n};\n\nexport const setParentIDToFetchFilters = ({ commit }, payload) => {\n commit(types.SET_PARENT_ID_FETCH_FILTERS, payload);\n};\n\nexport const setLoading = ({ commit }, payload) => {\n commit(types.SET_LOADING, payload);\n};\n\nexport const setLoadingAddingOneProduct = ({ commit }, payload) => {\n commit(types.SET_LOADING_ADDING_ONE_PRODUCT, payload);\n};\n\nexport const setResearchingProduct = ({ commit }, payload) => {\n commit(types.SET_RESEARCHING_PRODUCT, payload);\n};\n\nexport const setDrawer = ({ commit }, payload) => {\n commit(types.SET_DRAWER, payload);\n};\n\nexport const setFetchingFilters = ({ commit }, payload) => {\n commit(types.SET_FETCHING_FILTERS, payload);\n};\n\nexport const setCurrentPage = ({ commit }, payload) => {\n commit(types.SET_CURRENT_PAGE, payload);\n};\n\nexport const setSelectedFavoritesList = ({ commit }, payload) => {\n const { data } = payload;\n\n commit(types.SET_SELECTED_FAVORITOS_LIST, data);\n};\n\nexport const setSelectedFavoriteProductsPagination = ({ commit }, payload) => {\n let pagination = Object.assign({ current_page: 1 }, payload);\n delete pagination.data;\n\n commit(types.SET_SELECTED_FAVORITE_PRODUCTS_PAGINATION, pagination);\n};\n\nexport const setCurrentPageFavoriteProductsSelected = ({ commit }, payload) => {\n commit(types.SET_CURRENT_PAGE_FAVORITE_PRODUCTS_SELECTED, payload);\n};\n\nexport const setProducts = ({ commit }, payload) => {\n commit(types.SET_PRODUCTS, payload);\n};\n\nexport const setSelectedAllProducts = ({ commit }, payload) => {\n commit(types.SET_SELECTED_ALL_PRODUCTS, payload);\n}\n\nexport const setFilters = ({ commit, state }, payload) => {\n const { filters } = state;\n\n const updatedFilters = {\n ...filters,\n ...payload\n };\n\n commit(types.SET_FILTERS, updatedFilters);\n};\n\nexport const setPriceRange = ({ commit }, payload) => {\n commit(types.SET_PRICE_RANGE, payload);\n};\n\nexport const setPartnerLandingLink = ({ commit }, payload) => {\n commit(types.SET_PARTNER_LANDING_LINK, payload);\n};\n\nexport const setParentsIDs = ({ commit }, payload) => {\n commit(types.SET_PARENTS_ID, payload);\n};\n\nexport const setInfluencerID = ({ commit }, payload) => {\n commit(types.SET_INFLUENCER_ID, payload);\n};\n\nexport const setFilterLikes = ({ commit }, payload) => {\n commit(types.SET_FILTER_LIKES, payload);\n};\n\nexport const setFilterKeys = ({ commit }, payload) => {\n\n const updatedPayload = Object.assign({}, payload);\n\n // Verifica se 'age' tem um valor e copia para 'age_group'\n if (payload.age) {\n updatedPayload.age_group = payload.age;\n }\n\n if (payload.brands) {\n updatedPayload.brand_id = payload.brands\n }\n\n delete updatedPayload.brands\n delete updatedPayload.categories\n delete updatedPayload.age;\n\n if (!updatedPayload.gender || updatedPayload.gender.length === 0) {\n delete updatedPayload.gender;\n }\n\n if (!updatedPayload.brand_id || updatedPayload.brand_id.length === 0) {\n delete updatedPayload.brand_id;\n }\n\n if (!updatedPayload.age_group || updatedPayload.age_group?.length === 0) {\n delete updatedPayload.age_group\n }\n\n if ( updatedPayload.companies ) {\n delete updatedPayload.companies\n }\n\n // Realiza o commit com o payload atualizado\n commit(types.SET_FILTER_KEYS, updatedPayload);\n};\n\n\nexport const setIndividualFilters = ({ commit }, payload) => {\n\n const updatedPayload = Object.assign({}, payload);\n\n Object.keys(updatedPayload).forEach((key) => {\n // Se a chave não tem valor ou está vazia, remove a chave\n if (!updatedPayload[key] || updatedPayload[key].length === 0) {\n delete updatedPayload[key];\n }\n });\n\n delete updatedPayload.companies\n delete updatedPayload.brands;\n\n commit(types.SET_SELECTED_FILTERS, updatedPayload);\n}\n\n\nexport const setOrderBy = ({ commit }, payload) => {\n commit(types.SET_ORDER_BY, payload);\n};\n\nexport const setPayloadProducts = ({ commit }, payload) => {\n commit(types.SET_PAYLOAD_PRODUCTS, payload);\n}\n\nexport const setTextSearch = ({ commit }, payload) => {\n commit(types.SET_SEARCH_TEXT, payload);\n}\n\nexport const resetFiltersPayloads = ({ commit }) => {\n commit(types.SET_SELECTED_FILTERS, {});\n commit(types.SET_FILTER_KEYS, {});\n commit(types.SET_ORDER_BY, {});\n commit(types.SET_CURRENT_PAGE, 1);\n commit(types.SET_SELECTED_ALL_PRODUCTS, []);\n commit(types.SET_LOADING, false);\n commit(types.SET_RESEARCHING_PRODUCT, false);\n commit(types.SET_PRICE_RANGE, {});\n commit(types.SET_FILTERS, {});\n}\n\nexport const resetAll = ({ commit, state }) => {\n const { dashboard_centralized } = state;\n const { is_dashboard_centralized } = dashboard_centralized;\n\n\n commit(types.SET_SEARCH_TEXT, '');\n commit(types.SET_SELECTED_FILTERS, {});\n commit(types.SET_FILTER_LIKES, {});\n commit(types.SET_FILTER_KEYS, {});\n commit(types.SET_ORDER_BY, {});\n commit(types.SET_CURRENT_PAGE, 1);\n commit(types.SET_SELECTED_ALL_PRODUCTS, []);\n commit(types.SET_LOADING, false);\n commit(types.SET_RESEARCHING_PRODUCT, false);\n commit(types.SET_PRICE_RANGE, {});\n \n // Só reseta os filtros se não estiver no Dash Centralizado\n if ( !is_dashboard_centralized ) {\n commit(types.SET_FILTERS, {});\n }\n}\n\nexport const fetchFilters = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.my_lists\n .getFilters({}, payload)\n .then((data) => {\n dispatch(\"setFilters\", data);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const fetchProductsAndFilters = async ({ state, dispatch }) => {\n const { \n text_search, selectedFilters, parent_ids, filter_likes, order_by, current_page,\n influencer_id, filter_keys, researching_product, filter_price_range, is_fetching_filters,\n parent_id_to_fetch_filters\n } = state;\n\n \n const updatedPayloadProducts = {\n ...selectedFilters,\n parent_ids: parent_ids,\n partner_ids: influencer_id,\n filter_likes: filter_likes,\n filter_keys: filter_keys,\n price_range: filter_price_range,\n order_by: order_by,\n page: current_page,\n favorites: 0,\n };\n\n const payload = sanitizedPayloadProducts(updatedPayloadProducts)\n\n await fetchProducts({ dispatch }, payload)\n\n // Só busca os filtros quando o usuário usar o input 'Busque por produtos' ou quando força a busca dos filtros ( is_fetching_filters )\n // researching_product: é o loading (true) enquanto busca os produtos após usar 'Busque por produtos'\n if ( researching_product || is_fetching_filters ) {\n const payloadGetFilters = {\n parent_id: parent_id_to_fetch_filters,\n params: `?prod=${text_search}`\n }\n\n await fetchFilters({ dispatch }, payloadGetFilters)\n\n dispatch('setFetchingFilters', false)\n }\n}\n\nexport const fetchProducts = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.my_lists\n .getProducts(payload)\n .then((data) => {\n dispatch(\"setProducts\", data);\n resolve();\n })\n .catch((error) => reject(error));\n });\n};\n\nexport const fetchSelectedFavoritesList = ({ state, dispatch }) => {\n const { selected_favorites, dashboard_centralized } = state;\n const { is_dashboard_centralized } = dashboard_centralized;\n const { current_page, endpoint_type, parent_ids } = selected_favorites;\n\n const page = endpoint_type == 'all_products' ? current_page : 1\n\n const payload = {\n favorites: 1,\n page: page,\n parent_ids: is_dashboard_centralized ? parent_ids : state.parent_ids,\n };\n\n\n /** \n * Define as configurações da requisição de acordo com a forma de Agrupar selecionada em ( actionsButtons.vue )\n * Ou do padrão default do Dash Centralizado ( all_products ) e no Dash da Marca ( category ), confira no arquivo index.vue\n */\n const requestConfig = \n endpoint_type === 'company' ? services.my_lists.getProductsByCompany :\n endpoint_type === 'category' ? services.my_lists.getProductsByCategory :\n endpoint_type === 'all_products' ? services.my_lists.getProducts :\n services.my_lists.getProducts\n\n\n return requestConfig(payload)\n .then((output) => {\n dispatch(\"setSelectedFavoriteProductsPagination\", output);\n dispatch(\"setSelectedFavoritesList\", output);\n })\n .catch((error) => {\n throw error; // ou `return Promise.reject(error);` se preferir\n });\n};\n\nexport const fetchPartnerLandingLink = async ({ dispatch }) => {\n const output = await services.my_lists.getPartnerLandingLink()\n\n dispatch(\"setPartnerLandingLink\", output);\n}\n\nexport const fechAllCompanies = async () => {\n return await services.my_lists.getAllCompanies()\n}","import { sum, filter, map } from \"lodash\";\n/**\n Export all getters from state\n */\n/**\n * @param categories\n * @returns {*[]|*}\n */\nexport const getCategories = ({ categories }) => {\n return categories;\n};\n\n/**\n * @param points\n * @returns {*[]|*}\n */\nexport const getPoints = ({ points }) => {\n return points;\n};\n\n/**\n * @param points\n * @returns {*[]|*}\n */\nexport const getPointsTypePoint = ({ points }) =>\n (points || [])\n .filter((p) => p.e_type === \"point\")\n .map((p) => ({\n action: p.category.description,\n amount: p.amount,\n created_at: p.created_at,\n }));\n\n/**\n * @param total_points\n * @returns {*[]|*}\n */\nexport const getTotalPoints = ({ total_points }) => {\n return total_points || 0;\n};\n\nexport const getTotalCounted = ({ points }) => {\n let filtered = filter(points, (point) => point.e_type === \"point\"),\n total =\n sum(map(filtered, (p) => p.amount)) -\n sum(map(filtered, (p) => p.points_rescue));\n return total || 0;\n};\n\n/**\n * @param points_in_request\n * @returns {*[]|*}\n */\nexport const isPointerInRequest = ({ points_in_request }) => {\n return points_in_request || false;\n};\n\n/**\n * @param faq_questions\n * @returns\n */\nexport const getFaqQuestions = ({ faq_questions }) => {\n return faq_questions || [];\n};\n\n/**\n * @param commission\n * @returns {*[]|*}\n */\nexport const getCommission = ({ commission }) => {\n return commission || [];\n};\n\n/**\n * @param split_exceptions\n * @returns {*[]|*}\n */\nexport const getSplitExceptions = ({ split_exceptions }) => {\n return split_exceptions || [];\n};\n\n/**\n * @param partner\n * @returns {*[]|*}\n */\nexport const getPartner = ({ partner }) => {\n return partner || [];\n};\n\n/**\n * @param cluster\n * @returns {*[]|*}\n */\nexport const getCluster = ({ cluster }) => {\n return cluster || [];\n};\n\n/**\n * @param split_clusters_rules\n * @returns {*[]|*}\n */\nexport const getSplitClustersRules = ({ split_clusters_rules }) => {\n return split_clusters_rules || [];\n};\n","export default {\n title: \"Extrato de Créditos\",\n rescueCredits: \"Créditos Resgatados\",\n title_how_get: \"Como Ganhar Créditos\",\n how_get: {\n header: \"Ações para pontuar\",\n },\n point_partially_canceled:\n \"{points_canceled} dos {amount} créditos que você receberia foram cancelados\",\n point_canceled_after_rescued: \"Créditos Cancelados\",\n point_canceled_after_rescued_description:\n \"Ocorreu um cancelamento de evento na plataforma (o evento que gerou os créditos foi cancelado total ou parcialmente)\",\n award_rescue: \"Resgatar\",\n how_to_rescue: \"Resgatar Meus Créditos\",\n how_to_earn: \"Como Ganhar Créditos\",\n points_history: \"Histórico de créditos\",\n you_accumulated: \"Você acumulou\",\n last_days: \"nos últimos 30 dias\",\n point_reward: \"Resgate de Créditos\",\n id: \"ID:\",\n order: \"Pedido:\",\n points:\n \"Créditos (Esse valor estará disponível a partir do dia { valid_from })\",\n points_rescue: \"Créditos\",\n points_message:\n \"Ocorreu uma venda na plataforma. Nº do pedido: { external_key }\",\n you_reward:\n \"Você realizou o resgate em { type } utilizando {value} dos seus créditos acumulados.\",\n no_points:\n \"Você ainda não atingiu uma quantidade de créditos que te permite sacar\",\n no_stop: \"Mas não desanime, continue tentando!!\",\n my_points: {\n title: \"Resgatar Meus Créditos\",\n },\n reward_pre_paid_card: {\n edit: \"Editar\",\n taxesAndFees: \"Taxas/Impostos\",\n calc_taxes1:\n \"{value_1} = {value_2} (Valor creditado no cartão) + {value_3} (Frete + Plástico) + {value_4} (Impostos e Taxa)\",\n calc_taxes2:\n \"{value_1} (Valor para recarga) - {value_2} (Impostos e Taxas) = {value_3}\",\n description: \"Descrição\",\n disclaimer:\n \"Você está prestes a recarregar {value} em seu {option}, confirme o número do seu cartão, para prosseguir com esta ação\",\n disclaimer2:\n \"O cartão será enviado para o endereço cadastrado. O envio para endereço errado gerará duas cobranças de frete. Favor confirmar antes de seguir.\",\n alert:\n \"Para realizar a solicação do CARTÃO MASTERCARD, leia antes a 'DESCRIÇÃO'.\",\n op0label: \"Receber um novo cartão pré-pago\",\n op1label: \"Recarregar cartão pré-pago\",\n\n pf: {\n name: \"Nome: {value}\",\n cpf: \"CPF: {value}\",\n gender: \"Sexo: {value}\",\n celular: \"Celular: {value}\",\n email: \"E-mail: {value}\",\n },\n pj: {\n social: \"Razão Social: {value}\",\n cnpj: \"CNPJ: {value}\",\n email: \"E-mail: {value}\",\n celular: \"Celular: {value}\",\n },\n address: {\n cep: \"CEP: {value}\",\n street: \"Rua: {value}\",\n number: \"Número: {value}\",\n district: \"Bairro: {value}\",\n complement: \"Complemento: {value}\",\n stateAndcity: \"Cidade/Estado: {value}\",\n },\n },\n reward_gift: {\n information: {\n amount: \"Total de créditos: { value }\",\n text_1: \"Já filtramos os vouchers até o limite do valor disponível;\",\n text_2:\n \"Leia atentamente as regras de cada parceiro antes de confirmar a solicitação do voucher;\",\n text_3:\n \"Reinicie a operação para solicitar um novo voucher caso o seu limite não seja totalmente usado;\",\n },\n alert_to_show:\n \"Para realizar a solicação do Gift Card, leia antes as seções 'INFORMAÇÕES ADICIONAIS' e 'DETALHES DA DESCRIÇÃO'.\",\n alert_to_show_secound:\n \"Para realizar a solicação do Gift Card, leia antes a seção 'DETALHES DA DESCRIÇÃO'.\",\n final_confirmation:\n \"Essa ação é irreversível tem certeza que deseja continuar com a solicitação?\",\n confirm_email: \"Confirme seu e-mail cadastral.\",\n confirm_check: \"Eu li e concordo com as regras estipuladas pelo parceiro.\",\n alerts: {\n alert_email: \"E-mail não confere!\",\n alert_check: \"Você precisa confirmar os termos.\",\n },\n expansion_item_title: \"INFORMAÇÕES ADICIONAIS\",\n expansion_item_title2: \"DETALHES DA DESCRIÇÃO\",\n gift_value: \"Gift Card de { value }\",\n calc_taxes: \"{preco_btdi} = {preco} (Valor do Gift selecionado) + {taxas} (Taxa de serviço)\" \n },\n faq: {\n page_title: \"Como eu ganho meus créditos?\",\n title_1: \"Ganhe vendendo nossos produtos!\",\n text_1: \"É só vender para juntar créditos e usar como quiser\",\n title_2: \"Percentual na venda.\",\n text_label_1: \"Seu percentual é de { value }%\",\n text_label_2: \"Seu percentual de indicação é de { value }%\",\n text_2: \"Receba uma porcentagem do valor do pedido a cada venda realizada.\",\n text_3:\n \"Indique e ganhe uma porcentagem de créditos por cada venda do seu indicado.\",\n title_3: \"Confira os benefícios de cada nível.\",\n text_4: \"Quanto mais você vende, maior é o seu percentual de ganho!\",\n text_5:\n \"(*) Alguns produtos podem ter percentual comissão menores ou zerados devido a condições comerciais dos fabricantes, consulte o FAQ para maiores informações.\",\n title_4: \"Ganhe mais créditos com ações exclusivas da plataforma\",\n text_6: \"Preparamos outras ações para você receber ainda mais créditos.\",\n percent: \"Percentual:\",\n initial_value: \"Valor inicial:\",\n final_value: \"Valor final:\",\n value_converted: \"(1 crédito = R$ 1,00)\",\n title_5: \"Regras do programa.\",\n },\n award: {\n cannotRescue: \"Você não possui créditos o suficiente\",\n cannotRescueLabel: \"Continue tentando\",\n title: \"Resgate de créditos\",\n conversion_widget: \"{conversion} créditos = R$ \",\n widget_total_title: \"Total de créditos \",\n widget_conversion_title: \"Fator de conversão\",\n widget_bonus_title: \"Bonificação\",\n voucher_title: \"Voucher\",\n gift_card_title: \"Giftcard\",\n min_rescue_value: \"Valor mínimo para retirar:\",\n min_rescue_internal:\n \"Você ainda não tem o saldo mínimo ({value}) para fazer o resgate;\",\n doc_pend_rescue_value: \"Seu cadastro está incompleto!\",\n doc_pend_rescue_internal:\n \"Seu cadastro está incompleto! Complete para que seja possível realizar resgates;\",\n\n doc_pend_rescue_btn: \"Visualizar\",\n doc_pend_rescue_access: \"Ir para Meus Dados\",\n doc_pend_rescue_alert: \"Clique para visualizar\",\n doc_pend_rescue_title: \"Cadastro incompleto\",\n doc_pend_rescue_message:\n \"Não é possível prosseguir com o resgate, pois há pendências de documentos. Corrija os itens a seguir e tente outra vez.\",\n money_title: \"Dinheiro\",\n reward_opened_title: \"Última solicitação realizada\",\n description: \"Escolha uma opção de resgate abaixo\",\n items_search: \"Pesquise por um produto {type}\",\n select_u_option: \"Valor máximo para resgate: { value }\",\n reward_option: \"Resgatar { type }\",\n reward_alert_modal_text:\n \"Vocẽ está prestes a realizar um resgate em { type }, está certo de que deseja prosseguir com essa ação?\",\n },\n awards: {\n title: \"Meus Resgates\",\n help: \"Nesse painel você encontra o seu histórico de prêmios resgatados\",\n show_voucher_code: \"Visualizar código: \",\n show_card_code: \"Nº do cartão: {value}\",\n show_rastreamento_code: \"Cód rastreamento: {value}\",\n bonification_award: \"Fique atento à data prevista de pagamento.\",\n voucher_award: \"Voucher { parent }\",\n credit_used: \"Créditos utilizados: { value }\",\n finantial_value: \"Valor de: { value }\",\n infos: {\n get_date: \"Solicitado em: { date }\",\n prev_payment_date: \"Data prevista de pagamento: { date }\",\n payment_date: \"Data de pagamento: { date }\",\n free_date: \"Liberado em: { date }\",\n send_email: \"E-mail de envio: { email }\",\n },\n card_value: \"Valor: { value }\",\n },\n award_info: {\n deadline: \"Prazo\",\n validate: \"Validade\",\n description: \"Descrição\",\n use: \"Utilização\",\n },\n reward_item_more: {\n warning_invited_gift: \"Giftcard será enviado para seu e-mail de cadastro\",\n warning_invalid_email: \"E-mail não confere!\",\n warning_action:\n \"Você não conseguirá desfazer essa ação, após clicar no Enviar\",\n warning_gift_send: \"O vale presente será enviado para o e-mail cadastral.\",\n warning_voucher_acess:\n \"Qualquer um com acesso ao seu e-mail, poderá usar o seu voucher.\",\n warning_security_email_postal:\n \"Garanta que o e-mail está correto e somente você tem acesso à sua caixa postal\",\n warning_security_gift:\n \"Mantenha o código do seu vale presente privado, não compartilhe com terceiros\",\n type_agree: \"Digite 'Aceito'\",\n warning_agree_incorrect: \"O termo 'Aceito' não está digitado corretamente!\",\n value_name: \"valor:\",\n value: \"R$ 30,00\",\n fee: \"Taxa:\",\n },\n filter: \"Filtro\",\n no_categories: \"Não há categorias para exibir.\",\n credits_by_category: \"Créditos ganhos por categoria\",\n\n card_extract: {\n creadit: \"Créditos\",\n available: \"disponíveis para resgate\",\n to_expire: \"a expirar\",\n in_analysis: \"em análise\",\n total: \"Total de\",\n },\n\n no_gift: \"Não há giftcards disponíveis.\",\n};\n","/**\n * Map name for mutations\n * @types {string}\n */\n\nexport const SET_INFLU_PRODUCTS_BY_CATEGORIES = \"public_landingpage/SET_INFLU_PRODUCTS_BY_CATEGORIES\";\n\nexport const SET_ALL_PRODUCTS = \"public_landingpage/SET_ALL_PRODUCTS\";\n\nexport const SET_INFLU_DATA = \"public_landingpage/SET_INFLU_DATA\";\n\nexport const SET_COMPANIE_DETAILS = \"public_landingpage/SET_COMPANIE_DETAILS\";\n\nexport const SET_SIDEBAR_STATUS = \"public_landingpage/SET_SIDEBAR_STATUS\";\n\nexport const SET_LP_CENTRALIZED = \"public_landingpage/SET_LP_CENTRALIZED\";\n\nexport const SET_COMPANIES_LINKS_LP_CENTRALIZED = \"public_landingpage/SET_COMPANIES_LINKS_LP_CENTRALIZED\";\n\nexport const SET_INFLUENCER_VOUCHERS_LP_CENTRALIZED = \"public_landingpage/SET_INFLUENCER_VOUCHERS_LP_CENTRALIZED\";\n\nexport const SET_ONLY_COMPANIES_WITH_PRODUCTS_LP_CENTRALIZED = \"public_landingpage/SET_ONLY_COMPANIES_WITH_PRODUCTS_LP_CENTRALIZED\";\n\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param banners\n */\n [types.SET_AVAILABLE_BANNERS](state, banners) {\n state.available_banners = banners;\n },\n /**\n * @param state\n * @param banners\n */\n [types.SET_SELECTED_BANNERS](state, banners) {\n state.selected_banners = banners;\n },\n /**\n * @param state\n * @param lp\n */\n [types.SET_LP_PRODUCTS](state, lp) {\n state.lp_products = lp;\n },\n};\n","import * as types from \"./mutation-types\";\nimport { hashFnv32a } from \"@/shared/helpers/stringManipulations\";\n\n/**\n * @param value\n * @param params\n * @returns {string}\n */\nconst makeKey = (value, params = {}) => {\n return hashFnv32a(value + JSON.stringify(params));\n};\n\n/**\n * persist request before call\n *\n * @param commit\n * @param response\n * @param key\n */\nexport const setRequest = ({ commit }, { response, key }) => {\n return commit(types.SET_REQUESTS, { response, key });\n};\n\n/**\n * @param conf\n * @returns {*|boolean|boolean}\n */\nfunction requestCanBePersisted(conf) {\n conf.persistRequest = conf.persistRequest || false;\n conf.noPersist = conf.noPersist || false;\n\n /**\n * if it has this attribute, the request will be forced to persist.\n */\n if (conf.persistRequest) {\n return true;\n } else if (conf.noPersist) {\n /**\n * if it has this attribute, the request will be forced to not persist.\n */\n return false;\n }\n\n /**\n * by default all GET request need to persist\n */\n return conf.method.toUpperCase() === \"GET\";\n}\n\n/**\n * persist request before call\n *\n * @param commit\n * @param payload\n */\nexport const persistBeforeCall = (\n { dispatch, state },\n { axios, url, conf }\n) => {\n return new Promise((resolve, reject) => {\n const key = makeKey(url, conf);\n\n if (requestCanBePersisted(conf)) {\n const wasRequested = Object.prototype.hasOwnProperty.call(\n state.requests,\n key\n );\n if (wasRequested) {\n return resolve(state.requests[key]);\n }\n }\n axios()\n .then(async (response) => {\n await dispatch(\"setRequest\", { response: response, key: key });\n resolve(response);\n })\n .catch((error) => reject(error));\n });\n};\n","/**\n * @checklist-services\n */\nexport default {\n /**\n * list of checklists\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n list: () => ({ method: \"GET\", url: \"api/v1/checklists\", noPersist: true }),\n\n /**\n * verify a checklist\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n verify: () => ({ method: \"POST\", url: \"api/v1/checklists/verify\" }),\n\n /**\n * undo verify a checklist\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n undoVerify: () => ({ method: \"DELETE\", url: \"api/v1/checklists/verify\" }),\n\n /**\n * seen a checklist\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n seen: () => ({ method: \"POST\", url: \"api/v1/checklists/seen\" }),\n};\n","/**\n * Map name for mutations\n * @types {string}\n */\n\nexport const SET_NOTIFICATIONS = \"NOTIFICATIONS/SET_NOTIFICATIONS\";\n\nexport const SET_NOTIFICATIONS_ON_REQUEST =\n \"NOTIFICATIONS/SET_NOTIFICATIONS_ON_REQUEST\";\n","/**\n * all states from store\n */\nexport default {\n productsByCategories: [],\n influ_data: {},\n company_details: {},\n sidebar: false,\n all_products: [],\n lp_centralized: {\n is_lp_centralized: false, // Está no dash centralizado?\n companies_links: [], // Todos os links do ecommerce dos parceiros ( com parâmetros do influ )\n vouchers: [], // Todos os cupons disponiveis para o INFLU\n only_companies_with_products: [] // Apenas empresas que tenham produtos\n }\n};\n","import { createApp } from \"vue\";\nimport App from \"./App.vue\";\nimport router from \"./router\";\nimport store from \"./store\";\nimport Quasar from 'quasar/src/vue-plugin.js';;\nimport quasarUserOptions from \"./quasar-user-options\";\nimport i18n from \"@/i18n\";\nimport './styles/css/app.css'\nimport moment from \"moment\";\nimport { VueReCaptcha } from \"vue-recaptcha-v3\";\n\nmoment.locale(\"pt-br\");\n\nconst reCaptchaConfigs = {\n siteKey: process.env.VUE_APP_RECAPTCHA,\n loaderOptions: {\n autoHideBadge: true,\n },\n};\n\nimport Particles from \"particles.vue3\";\nimport Jquery from \"jquery\";\n\n\n/**\n * set jquery function\n * @type {(function(*=): *)|*}\n */\nwindow.$ = Jquery\n\ncreateApp(App)\n.use(store)\n.use(Particles)\n.use(Quasar, quasarUserOptions)\n.use(i18n)\n.use(router)\n.use(VueReCaptcha, reCaptchaConfigs)\n.mount(\"#app\");\n","/**\n * all states from store\n */\nexport default {\n courses_list: [],\n courses: {},\n courses_in_process: {},\n courses_finished: {},\n categories: [],\n in_request: false,\n badges_changed: 1,\n tab_mode: \"notEnrolled\",\n filter: {\n q: null,\n value: null,\n categories: null,\n },\n};\n","/**\n Export all getters from state\n*/\n\nconst MAP_SERIES = (series) => {\n if (series.length === 0) {\n series.push(0);\n }\n\n if (series.length === 1) {\n series.push(0);\n }\n\n return series.map((v, i) => ({ x: i, y: parseFloat(v) }));\n};\n\nexport const getClusterAndShareData = ({ cluster_and_share }) =>\n cluster_and_share || {};\n\nexport const getClusterPartnerInfo = ({ cluster_partner_info }) => {\n const result =\n Object.keys(cluster_partner_info)\n .filter((key) => key !== \"company_bio\")\n .map((key, index, array) => {\n const {\n description,\n icon,\n short_explain,\n init_billing_range,\n end_billing_range,\n percent,\n color_background_icon,\n text_color_icon,\n } = cluster_partner_info[key];\n\n return {\n description,\n icon,\n short_explain,\n color_background_icon,\n text_color_icon,\n init_billing_range,\n end_billing_range,\n percent: percent / 100,\n is_block: !(\n index === 0 ||\n (index > 0 &&\n cluster_partner_info[array[index - 1]].percent === 100)\n ),\n };\n }) || [];\n\n return result;\n};\n\n/**\n *\n * @param {*} param0\n * @returns\n */\nexport const getVoucher = (state) => {\n if (Object.keys(state.overview).length)\n return state.overview.vouchers[0] || {};\n else return {};\n};\n\nexport const getHasScripts = ({ has_scripts }) => has_scripts;\n\n/**\n *\n * @param {*} param0\n * @returns\n */\nexport const getInvites = ({ invites }) => invites;\n\n/**\n * @param show_up\n * @return {{}}\n */\nexport const getShowUp = ({ show_up }) => show_up;\n\n/**\n * @param reward_ranking\n * @return {{}}\n */\nexport const getRewardRanking = ({ reward_ranking }) => {\n return reward_ranking || [];\n};\n\n/**\n * @param layout\n * @return {{}}\n */\nexport const getDashboardMode = ({ layout }) => {\n return layout.mode || \"commission\";\n};\n\n/**\n * @param show_up_watched\n * @return {boolean}\n */\nexport const isShowUpWatched = ({ show_up_watched }) => {\n return !!show_up_watched;\n};\n\n/**\n * @param order_totals\n * @param on_request\n * @return {null|{series, value}}\n */\nexport const getTotalOrderQuantity = ({ order_totals, on_request }) => {\n let value = 0,\n details = { current: 0, past: 0, percent: 0 },\n series = MAP_SERIES([]),\n feeling = \"Z\";\n\n if (order_totals) {\n let past = order_totals.range.past.data[0].quantity,\n current = order_totals.range.current.data[0].quantity,\n percent = ((current - past) / (current || 1)) * 100;\n details.current = current;\n details.percent = percent;\n details.past = past;\n feeling = order_totals.feeling;\n value = order_totals.value.quantity;\n series = MAP_SERIES(order_totals.series[0].quantity);\n }\n\n return {\n on_request: on_request,\n title: \"dashboard.order_quantity\",\n link: \"/sales\",\n tooltip_message: \"\",\n icon: \"dashboard.icons.order_quantity\",\n value: value,\n series: series,\n details: details,\n feeling: feeling,\n type: \"number\",\n };\n};\n\nexport const showButtonByAlcadas = (alcadas, routeName) =>\n Object.values(alcadas).includes(routeName);\n\n/**\n *\n * @param {*} state\n * @param {*} getters\n * @param {*} rootState\n * @param {*} rootGetter\n */\nexport const rewardWidgets = (state, getters, rootState, rootGetter) => {\n // Obtém parâmetros de \"account/getParams\" ou define como objeto vazio\n const params = rootGetter[\"account/getParams\"] || {};\n\n // Configuração base para cada widget\n const baseConf = {\n on_request: state.on_request,\n tooltip_message: \"\",\n series: [{ x: 0, y: 0 }],\n details: { current: 0, past: 0, percent: 0 },\n feeling: \"Z\", // Um estado de \"sentimento\" padrão, não especificado\n };\n\n // Desestruturação dos dados do estado para facilitar o acesso\n const {\n reward_total_sales = 0,\n reward_total_orders = 0,\n points_sumary: {\n points_received = 0,\n points_to_be_released = 0,\n points_rescued = 0,\n balance = 0,\n points_expired = 0,\n points_expire_soon = 0,\n } = {},\n } = state;\n\n // Controle padrão para os widgets, caso os parâmetros não estejam definidos\n const defaultWidgetsControl = {\n dash_card_tot_sales: { show: 0 },\n dash_card_credits_received: { show: 0 },\n dash_card_credits_redeem: { show: 0 },\n dash_card_available: { show: 0 },\n };\n\n // Obtém o controle dos widgets dos parâmetros ou usa o padrão\n const widgetsControl = Object.fromEntries(\n Object.entries(params.dash_widgets?.value || defaultWidgetsControl).filter(\n ([, item]) => item && item.show == 1 // Filtra apenas os widgets com \"show\" ativo\n )\n );\n\n // Função auxiliar para criar um widget com base em parâmetros\n const createWidget = (key, icon, value, extra = {}) => {\n const widget = widgetsControl[key];\n return {\n ...baseConf, // Configurações base\n title: widget.title,\n icon,\n value,\n tooltip_message: widget.tooltip_message,\n button_title: widget.button_title,\n button_icon: widget.button_icon,\n link: widget.link || \"\",\n show: widget.show, // Mostra o widget ou não\n ...extra, // Adiciona qualquer dado extra específico do widget\n };\n };\n\n // Mapeia os widgets com base nas chaves definidas em \"widgetsControl\"\n const data = Object.keys(widgetsControl).map((key) => {\n switch (key) {\n case \"dash_card_tot_sales\":\n return createWidget(key, \"total_sales.png\", reward_total_sales, {\n total_orders: reward_total_orders,\n });\n case \"dash_card_credits_received\":\n return createWidget(key, \"available.png\", points_received, {\n credits_under_analysis: points_to_be_released,\n });\n case \"dash_card_credits_redeem\":\n return createWidget(key, \"rescued.png\", points_rescued);\n case \"dash_card_available\":\n return createWidget(key, \"total.png\", balance);\n default:\n return null; // Ignora chaves desconhecidas\n }\n });\n\n // Se há pontos expirados ou a expirar em breve, adiciona um widget extra\n if (points_expired || points_expire_soon) {\n data.push({\n ...baseConf,\n title: \"dashboard.reward_points_expired_soon\",\n icon: \"expired.png\",\n identifier: \"points_expired_or_expires\",\n classes: [\"widget-points-expired-or-expires\"],\n value: points_expire_soon,\n sub_label: \"(nos próximos 3 meses)\",\n reward_points_expired_soon: \"\",\n type: \"number\",\n tooltip_message: \"dashboard.tooltip_message.reward_points_expired_soon\",\n button_title: \"\",\n button_icon: \"\",\n });\n }\n\n return data;\n};\n\n/**\n * @param order_totals\n * @param on_request\n * @return {null|{series, value}}\n */\nexport const getTotalOrderSum = ({ order_totals, on_request }) => {\n let value = 0,\n details = { current: 0, past: 0, percent: 0 },\n series = MAP_SERIES([]),\n feeling = \"Z\";\n\n if (order_totals) {\n let past = parseFloat(order_totals.range.past.data[1].sum_order),\n current = parseFloat(order_totals.range.current.data[1].sum_order),\n percent = ((current - past) / (current || 1)) * 100;\n details.current = current;\n details.past = past;\n details.percent = percent;\n feeling = order_totals.feeling;\n value = parseFloat(order_totals.value.sum_order);\n series = MAP_SERIES(order_totals.series[0].sum_order);\n }\n\n return {\n on_request: on_request,\n title: \"dashboard.order_sum\",\n link: \"/sales\",\n tooltip_message: \"\",\n value: value,\n series: series,\n details: details,\n feeling: feeling,\n type: \"money\",\n };\n};\n\nexport const getTotalOrderDash = ({ order_totals }) => {\n return order_totals || {};\n};\n\n/**\n * get visitors data\n * @param {*} visitors_data\n * @returns\n */\nexport const getVisitorsData = ({ visitors_data }) => {\n const getPercent = (v1, v2) => {\n let percentValue = (v1 * 100) / v2;\n return v1 < v2 && v1 != 0\n ? 100 - percentValue\n : v1 > v2 && v2 != 0\n ? percentValue - 100\n : 0;\n };\n\n if (visitors_data) {\n let newValue = visitors_data.value;\n let OldValue = visitors_data.range.past.data[0].quantity;\n return {\n value: newValue,\n percent: getPercent(newValue, OldValue),\n series: visitors_data.series[0].quantity,\n up_down_value: newValue >= OldValue ? true : false,\n up_down_color: newValue >= OldValue ? \"#008000\" : \"#ff0000\",\n };\n }\n\n return {\n value: 0,\n percent: 0,\n series: [],\n up_down_value: true,\n up_down_color: \"#8ebce4\",\n };\n};\n\n/**\n * get visitors data\n * @param {*} visitors_data\n * @returns\n */\nexport const getVisitorsData2 = ({ visitors_data }) =>\n visitors_data.range.past || 0;\n\n/**\n * @param visitors_totals\n * @param on_request\n * @return {null|{series, value}}\n */\nexport const getTotalVisitors = ({ visitors_totals, on_request }) => {\n let value = 0,\n details = { current: 0, past: 0, percent: 0 },\n series = MAP_SERIES([]),\n feeling = \"Z\";\n\n if (visitors_totals) {\n let past = visitors_totals.range.past.data[0].quantity,\n current = visitors_totals.range.current.data[0].quantity,\n percent = ((current - past) / (current || 1)) * 100;\n details.current = current;\n details.percent = percent;\n details.past = past;\n feeling = visitors_totals.feeling;\n value = visitors_totals.value;\n series = MAP_SERIES(visitors_totals.series[0].quantity);\n }\n\n return {\n on_request: on_request,\n title: \"dashboard.visitors\",\n link: \"\",\n tooltip_message: \"\",\n value: value,\n series: series,\n details: details,\n feeling: feeling,\n type: \"number\",\n };\n};\n\nexport const getWidgets = (state, getters) => {\n return getters.rewardWidgets;\n};\n\n/**\n * @param visitor_graph\n * @return {*[]|*}\n */\nexport const getVisitantsGraphData = ({ visitor_graph }) => {\n if (visitor_graph) {\n let dt = visitor_graph.map((v) => parseFloat(v.total));\n if (15 - dt.length >= 1) {\n while (15 - dt.length >= 1) {\n dt = [0, ...dt];\n }\n }\n return dt;\n }\n\n return [];\n};\n\n/**\n * @param reward_points_range\n * @return {*[]|*}\n */\nexport const getRewardPointGraphData = ({ reward_points_range }) => {\n if (reward_points_range) {\n let dt = reward_points_range.map((v) => parseFloat(v.total));\n if (15 - dt.length >= 1) {\n while (15 - dt.length >= 1) {\n dt = [0, ...dt];\n }\n }\n return dt;\n }\n\n return [];\n};\n\n/**\n * @param on_request\n */\nexport const isOnRequest = ({ on_request }) => on_request;\n\n/**\n * @param ecomm\n */\nexport const getEcomm = ({ ecomm }) => ecomm;\n\nexport const getSpread = ({ spread }) => spread;\n\nexport const hasSpread = ({ spread }) => {\n return (\n Object.values(spread || {}).filter((sp) => sp.value && sp.value.length)\n .length > 0\n );\n};\n\nexport const getPartnerId = (state, getters, rootState, rootGetter) =>\n rootGetter[\"auth/userPartnerId\"];\n\nexport const getRewardPoints = ({ reward_points_balance }) =>\n reward_points_balance || 0;\n\nexport const getBanner = (state) => state.banner || {};\n\nexport const getDocsPendingDash = (state) => {\n if (Object.keys(state.doc_pending_dash).length) {\n const totalDone =\n state.doc_pending_dash.total - state.doc_pending_dash.totalPending;\n\n const percent =\n state.doc_pending_dash.totalPending > 0\n ? (totalDone * 100) / state.doc_pending_dash.total\n : 100;\n\n const documents = transformObjectToArray(\n state.doc_pending_dash.categoryPending\n );\n\n const data = {\n percent: percent.toFixed(0),\n docs: documents.map((doc) => ({ description: doc })),\n };\n\n return data;\n }\n\n return {\n percent: 0,\n docs: [],\n };\n};\n\nexport const getPointsSummary = (state) => state.points_sumary || {};\n\n/**\n * receive objects like { key1: \"v1, v2\", key2: \"v3, v4\" } and return an array like [v1, v2, v3, v4]\n */\nfunction transformObjectToArray(obj) {\n const keys = Object.keys(obj),\n valuesToExtract = keys.map((key) => obj[key]);\n\n const newArray = valuesToExtract\n .join(\", \")\n .split(\", \")\n .filter((value) => value.trim())\n .map((value) => value.trim());\n\n return newArray;\n}\n\nexport const getFlipThumb = (state) => state.flip_thumb[0] || { value: false };\n\nexport const getDashImage = (state) => state.dash_image || [];\n\nconst formatVoucherDescription = (value, type) => {\n if (type === \"percent\") {\n return `${value}% OFF`;\n }\n return `R$ ${value} OFF`;\n};\n\nconst capitalize = (str) => str && str.charAt(0).toUpperCase() + str.slice(1);\n\n// UNIFIED GETTERS - dashboard centralizado\n\nexport const getOverview = (state) => state.overview;\n\nexport const getCompaniesList = (state) => {\n if (Object.keys(state.overview).length)\n return state.overview.listCompaniesAvailableForRegister || [];\n else return [];\n};\n\nexport const getCompaniesRegisteredList = (state) => {\n if (Object.keys(state.overview).length)\n return state.overview.listCompaniesPartnerRegistered || [];\n else return [];\n};\n\nexport const getCompaniesRegisteredSelect = (state) => {\n console.log(state.overview);\n console.log(Object.keys(state.overview).length);\n if (\n Object.keys(state.overview).length > 1 &&\n \"listCompaniesPartnerRegistered\" in state.overview\n )\n return (\n state.overview.listCompaniesPartnerRegistered\n .filter((e) => e.slug !== \"flipnet\")\n .map((e) => ({\n id: e.id,\n image: e.logo_foto_link,\n label: capitalize(e.nome),\n })) || []\n );\n else return [];\n};\n\nexport const getAllLinks = (state) => {\n if (Object.keys(state.overview).length)\n return (\n state.overview.linkStores.map((e) => ({\n link_store: e.link_store,\n link_company_image: e.link_company_image,\n parent_name: capitalize(e.parent_name),\n })) || []\n );\n return [];\n};\n\nexport const getInRequestsDash = (state) => state.in_requests_dash;\n\nexport const getNotAssociatedAccs = (state) => {\n if (Object.keys(state.overview).length)\n return state.overview.listNotAssociatePartnerAccount || [];\n else return [];\n};\n\nexport const getAllVouchers = (state) => {\n if (Object.keys(state.overview).length)\n return (\n state.overview.vouchers.map((e) => ({\n ...e,\n label: `${capitalize(\n e.parceiro.friendly_name\n )} - ${formatVoucherDescription(e.discount, e.type_discount)} | CÓD: ${\n e.number\n }`,\n })) || []\n );\n else return [];\n};\n","import * as types from \"./mutation-types\";\n\n/**\n * Export all mutations\n */\nexport default {\n /**\n * @param state\n * @param course\n */\n [types.SET_COURSE_OPENED](state, course) {\n state.course_opened = course;\n },\n /**\n * @param state\n * @param course\n */\n [types.SET_FINISH_COURSE](state, isFinished) {\n state.finished = isFinished;\n },\n /**\n * @param state\n * @param course\n */\n [types.SET_COURSE](state, course) {\n state.course = course;\n },\n /**\n * @param state\n * @param count\n */\n [types.SET_NEXT_COURSE_COUNT](state, count) {\n state.count_course_next = count;\n },\n};\n","import { default as faq } from \"./faq\";\nimport { default as _404 } from \"./404\";\nimport { default as menu } from \"./menu\";\nimport { default as sales } from \"./sales\";\nimport { default as forms } from \"./forms\";\nimport { default as login } from \"./login\";\nimport { default as notify } from \"./notify\";\nimport { default as course } from \"./course\";\nimport { default as global } from \"./global\";\nimport { default as actions } from \"./actions\";\nimport { default as partner } from \"./partner\";\nimport { default as account } from \"./account\";\nimport { default as missions } from \"./missions\";\nimport { default as products } from \"./products\";\nimport { default as me_store } from \"./me_store\";\nimport { default as dashboard } from \"./dashboard\";\nimport { default as my_points } from \"./my_points\";\nimport { default as commission } from \"./commission\";\nimport { default as components } from \"./components\";\nimport { default as image_links } from \"./image_links\";\nimport { default as landing_page } from \"./landing_page\";\nimport { default as notifications } from \"./notifications\";\nimport { default as library_assets } from \"./library_assets\";\nimport { default as card_store_menu } from \"./card_store_menu\";\nimport { default as validations } from \"./validations\";\nimport { default as pwa } from \"./pwa\";\nimport { default as signup } from \"./signup\";\nimport { default as new_dashboard } from \"./new_dashboard\";\nimport { default as my_lists } from \"./my_lists\";\nimport { default as simplified_sharing_products } from \"./simplified_sharing_products\";\n\nexport default {\n new_dashboard,\n pwa,\n signup,\n validations,\n faq,\n _404,\n menu,\n sales,\n forms,\n login,\n notify,\n course,\n global,\n actions,\n partner,\n account,\n missions,\n products,\n me_store,\n my_lists,\n simplified_sharing_products,\n dashboard,\n my_points,\n commission,\n components,\n image_links,\n landing_page,\n notifications,\n library_assets,\n card_store_menu,\n};\n","import services from \"@/shared/http\";\nimport * as types from \"./mutation-types\";\n\n/**\n * @param commit\n * @param payload\n */\nexport const setAvailableBanners = ({ commit }, payload) => {\n commit(types.SET_AVAILABLE_BANNERS, payload);\n};\n\n/**\n * @param commit\n * @param payload\n */\nexport const setSelectedBanners = ({ commit }, payload) => {\n commit(types.SET_SELECTED_BANNERS, payload);\n};\n/**\n * @param commit\n * @param payload\n */\nexport const setLpProducts = ({ commit }, payload) => {\n commit(types.SET_LP_PRODUCTS, payload);\n};\n\n/**\n * @param dispatch\n * @return {Promise}\n */\nexport const fetchLpProducts = async ({ dispatch }) => {\n return await services.landing_page.banners().then(async (resource) => {\n await dispatch(\"setAvailableBanners\", resource.carousels_options);\n await dispatch(\"setSelectedBanners\", resource.selected_carrousels);\n });\n};\n\n/**\n * @param dispatch\n * @param params\n * @return {Promise<*>}\n */\nexport const fetchLpProductsPublic = async ({ dispatch }, { params }) => {\n return await services.landing_page\n .lpProducts(null, params)\n .then(async (resource) => {\n await dispatch(\"setLpProducts\", resource);\n });\n};\n\n/**\n * @param dispatch\n * @param ids\n * @return {Promise<*>}\n */\nexport const storeLpBannersSelected = async ({ dispatch }, ids) => {\n return await services.landing_page\n .storeBannersSelected({ ids: ids })\n .then(async (resource) => {\n await dispatch(\"setSelectedBanners\", resource);\n });\n};\n","/**\n * all states from store\n */\nexport default {\n store_products: {},\n favorites_products: {},\n store_search_filter: \"\",\n favorite_search_filter: \"\",\n landing_page_link: \"\",\n checkout_data: [],\n open_checkout_side: false,\n checkout_link: \"\",\n checkout_params: {},\n checkout_rules: [],\n has_checkout: 0,\n checkout_link_prefix_sufix: [],\n};\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE+SURBVEiJ7ZM/S8NQFMXPTUo2yejSD5DU2UUQdGmsuLh0EMHdraOC5okgiINfQUEcol8gk+LioE7WJAh1NjhIwSmYXAcV0jx9jX86iD3bu/fd8zvw7iOUlefpVmDuA0BU6y6h2UzLjFFZczswDwBYb5UorHUXy0D6A17N90B0S5w9AAATjYAxPgpj4VRMP6vGtbLmoVvffC+HrrMDwkWM5HBKnFS+DRgLzHkQt/PmvRC+uqekofJQ0m+Ec6zqh+7MtqovAewNvwWwUbzExGfReuM8X7OEP0HEk7IlJaHr7H4IAGOZSFstjqSZFkvJ9DTOssqdFIZ5C8AnAOApcOtHcipZ7bXZDoBOsW4Lvyegeot+QUPAPwAof7Ik0nigAN1IvIECrlfmHr8K+PuPPAT0VWGLuGoL//JnllzNn14Aahxl0XsUkoMAAAAASUVORK5CYII=\"","export { default } from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/vue-cli-plugin-quasar/lib/loader.js.transform-quasar-imports.js!../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!./App.vue?vue&type=script&setup=true&lang=js\"; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/vue-cli-plugin-quasar/lib/loader.js.transform-quasar-imports.js!../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!./App.vue?vue&type=script&setup=true&lang=js\"","/**\n * Map name for mutations\n * @types {string}\n */\n\nexport const SET_REWARD_INFO = \"REWARD/SET_REWARD_INFO\";\nexport const SET_IN_REQUEST = \"REWARD/SET_IN_REQUEST\";\nexport const SET_TRADE_IN_REQUEST = \"REWARD/SET_TRADE_IN_REQUEST\";\nexport const SET_ALL_REWARDS = \"REWARD/SET_ALL_REWARDS\";\nexport const SET_CLOSED_REWARDS = \"REWARD/SET_CLOSED_REWARDS\";\nexport const SET_OPENED_REWARDS = \"REWARD/SET_OPENED_REWARDS\";\nexport const SET_LAST_OPENED_REWARDS = \"REWARD/SET_LAST_OPENED_REWARDS\";\nexport const SET_REWARDS_STATUSES = \"REWARD/SET_REWARDS_STATUSES\";\nexport const SET_GIFT_CARDS = \"REWARD/SET_GIFT_CARDS\";\nexport const SET_GIFT_CARD_SUPPLIERS = \"REWARD/SET_GIFT_CARD_SUPPLIERS\";\nexport const SET_GIFT_CARD_CATEGORIES = \"REWARD/SET_GIFT_CARD_CATEGORIES\";\nexport const SET_GIFT_CARD_DEPARTMENTS = \"REWARD/SET_GIFT_CARD_DEPARTMENTS\";\nexport const SET_PRE_PAID_CARD_INFO = \"REWARD/SET_GIFT_CARD_DEPARTMENTS\";\nexport const SET_REWARD_ELEGIBLE = \"REWARD/SET_REWARD_ELEGIBLE\";\nexport const SET_PRE_PAID_CARD_OPTIONS = \"REWARD/SET_PRE_PAID_CARD_OPTIONS\";\n","import services from \"@/shared/http\";\nimport * as types from \"@/modules/main/pages/course/store/mutation-types\";\nimport {\n findNextContentAvailable,\n filterSection,\n} from \"@/modules/main/pages/course/store/helpers\";\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const setOpenedCourse = ({ commit, dispatch, state }, payload) => {\n dispatch(\"startClassAction\", {\n enrollment_id: state.course.id,\n content_id: payload.id,\n });\n commit(types.SET_COURSE_OPENED, payload);\n};\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const setSchoolClassToCourseContent = ({ commit, state }, payload) => {\n let newCourse = state.course;\n\n newCourse.sections.forEach((section, sectionKey) => {\n section.contents.forEach((content, keyContent) => {\n if (content.id === payload.content_id) {\n newCourse.sections[sectionKey].contents[\n keyContent\n ].schoolclass = payload;\n }\n });\n });\n\n commit(types.SET_COURSE, newCourse);\n};\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const setOpenedCourseSchoolClass = ({ commit, state }, payload) => {\n if (state.course_opened.schoolclass === null) {\n commit(\n types.SET_COURSE_OPENED,\n Object.assign(state.course_opened, { schoolclass: payload })\n );\n }\n};\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const setCourse = ({ commit }, payload) => {\n commit(types.SET_COURSE, payload);\n};\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const setCourseFinished = ({ commit }, payload) => {\n commit(types.SET_FINISH_COURSE, payload);\n};\n\n/**\n * set course opened action\n *\n * @param commit\n * @param payload\n */\nexport const nextCourseAction = ({ commit, state, dispatch }) => {\n let content = findNextContentAvailable(filterSection(state.course.sections));\n if (content) {\n dispatch(\"setOpenedCourse\", content);\n commit(types.SET_NEXT_COURSE_COUNT, state.count_course_next + 1);\n } else dispatch(\"setCourseFinished\", true);\n};\n\n/**\n * action to fetch course resource\n *\n * @param context\n * @param payload\n * @returns {*}\n */\nexport const fetchCourseItems = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.course\n .course({}, payload)\n .then((response) => {\n let dt = { ...response.course, ...response };\n delete dt.course;\n dispatch(\"setCourse\", dt);\n resolve(dt);\n })\n .catch((error) => reject(error));\n });\n};\n/**\n * action to fetch course resource\n *\n * @param dispatch\n * @param payload\n * @returns {*}\n */\nexport const startClassAction = ({ dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n services.course\n .startClass(payload)\n .then((response) => {\n dispatch(\"setOpenedCourseSchoolClass\", response);\n resolve(response);\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * action to fetch course resource\n *\n * @param context\n * @param payload\n * @returns {*}\n */\nexport const finishClassAction = ({ state, dispatch }, payload) => {\n return new Promise((resolve, reject) => {\n let schoolclass = state.course_opened.schoolclass,\n action = () => {\n let data = { state: { status: payload ? payload.status || 100 : 100 } },\n bindUrl = { class_id: schoolclass.id };\n services.course\n .finishClass(data, bindUrl)\n .then(async (response) => {\n await dispatch(\"setSchoolClassToCourseContent\", {\n ...schoolclass,\n finished_at: true,\n });\n await dispatch(\"nextCourseAction\");\n resolve(response);\n })\n .catch((error) => reject(error));\n };\n\n if (!schoolclass) {\n return dispatch(\"startClassAction\", {\n enrollment_id: state.course.id,\n content_id: state.course_opened.id,\n })\n .then((resource) => {\n schoolclass = resource;\n dispatch(\"setSchoolClassToCourseContent\", schoolclass);\n return action();\n })\n .catch((error) => reject(error));\n } else {\n return action();\n }\n });\n};\n\n/**\n * action to fetch Questionnaire resource\n *\n * @param context\n * @param payload\n * @returns {*}\n */\nexport const fetchQuestionnaireItems = (context, payload) => {\n return new Promise((resolve, reject) => {\n services.course\n .questions({}, payload)\n .then(async (response) => {\n resolve(response);\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * @param state\n * @param payload\n * @returns {*}\n */\nexport const classScoreTestAction = ({ state }, payload) => {\n return new Promise((resolve, reject) => {\n let schoolclass = state.course_opened.schoolclass;\n services.course\n .classScoreTest(\n { question_answers: payload },\n { class_id: schoolclass.id }\n )\n .then(async (response) => {\n resolve(response);\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * @param state\n * @param payload\n * @returns {*}\n */\nexport const classScoreSaveAction = ({ state }, payload) => {\n return new Promise((resolve, reject) => {\n let schoolclass = state.course_opened.schoolclass;\n services.course\n .classScoreSave(\n { question_answers: payload },\n { class_id: schoolclass.id }\n )\n .then(async (response) => {\n resolve(response);\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * action to fetch course description\n *\n * @param context\n * @param id\n * @returns {Promise}\n */\nexport const fetchCertificate = (context, { slug }) => {\n return new Promise((resolve, reject) => {\n services.course\n .certificate(null, { slug })\n .then((resources) => {\n resolve(resources);\n })\n .catch((error) => reject(error));\n });\n};\n\n/**\n * action to fetch course description\n *\n * @param context\n * @param id\n * @returns {Promise}\n */\nexport const fetchAttachment = (context, { id }) => {\n return new Promise((resolve, reject) => {\n services.course\n .attachment(null, { id })\n .then((resources) => {\n resolve(resources);\n })\n .catch((error) => reject(error));\n });\n};\n","import { SET_HIERARCHY } from \"./mutation-types\";\nimport services from \"@/shared/http\";\n\n/**\n * @param commit\n * @return {*}\n */\nexport const setHierarchy = ({ commit }, payload) => {\n commit(SET_HIERARCHY, payload);\n};\n\n/**\n * @param dispatch\n * @return {*}\n */\nexport const fetchHierarchy = ({ dispatch }) => {\n return new Promise((resolve, reject) => {\n services.hierarchy\n .hierarchyByPartner()\n .then(async (resource) => {\n await dispatch(\"setHierarchy\", resource);\n return resolve();\n })\n .catch((err) => reject(err));\n });\n};\n","/**\n * all states from store\n */\nexport default {\n orders: {},\n in_request: false,\n period: null,\n order_cycle: {},\n};\n","import { baseURL } from \"@/shared/http/api\";\nimport { formatDate } from \"@/shared/helpers/numbersManipulation\";\n\nimport i18n from \"@/i18n/wrappers/i18n\";\nconst t = i18n.global.t;\n\n/**\n * @param state\n * @param getters\n * @param rootState\n * @returns {{}}\n */\nexport const getUserAccount = (state, getters, rootState) =>\n rootState.auth.user;\n\n/**\n * @param state\n * @param getters\n * @param rootState\n * @returns {{}}\n */\nexport const getPartnerAccount = (state, getters, rootState) =>\n rootState.auth.user.partner || {};\n\n/**\n *\n * @param state\n * @param getters\n * @param rootState\n * @return {string|*|{}}\n */\nexport const getPartnerBankAccount = (state, getters, rootState) => {\n let partner = rootState.auth.user.partner || {};\n return partner.bank_account || {};\n};\n/**\n *\n * @param state\n * @param getters\n * @param rootState\n * @return {string|*|{}}\n */\nexport const getPartnerPixAccount = (state, getters, rootState) => {\n let partner = rootState.auth.user.partner || {};\n return partner.pix_account || {};\n};\n\nexport const getPartnerNetworks = (state, getters) => {\n let partner = getters.getPartnerAccount,\n networks = {};\n\n if (partner && partner.social_networks) {\n Object.keys(partner.social_networks).forEach((key) => {\n let nt = partner.social_networks[key];\n networks[nt.network] = nt.content;\n });\n }\n\n return networks;\n};\n\nexport const getBanks = (state) => state.banks;\n\nexport const getExtChallengeSecret = (state) =>\n state.challenge_ext_secret || \"\";\n\nexport const getBanksToOptions = (state) => {\n if (state.banks) {\n return state.banks\n .map((bank) => ({\n value: bank.codigo,\n label: `${bank.codigo} - ${bank.nome}`,\n }))\n .filter((bank) => {\n let needle = state.bank_filter_need;\n return (\n state.bank_filter_need === \"\" ||\n bank.label.toLowerCase().indexOf(needle) > -1\n );\n });\n }\n\n return [];\n};\n\n/**\n * @param state\n * @param getters\n * @param rootState\n * @return {{headers: {Authorization: string}, method: string, url: string}}\n */\nexport const getImageUploadConf = (state, getters, rootState) => {\n return {\n headers: {\n Authorization: `Bearer ${rootState.auth.token}`,\n },\n url: `${baseURL}/api/v1/partner/upload-photo`,\n method: \"POST\",\n field: \"photo\",\n };\n};\n\nexport const getUserDocuments = (state) => state.documents;\n\nexport const getDocTypes = (state) => state.doc_types;\n\nexport const getParams = (state) => state.params;\n\nexport const getConditionsMenuMyData = (state) => state.conditions_menu_my_data;\n\nexport const getPartnerChallengesHash = ({ partner_challenges }) =>\n partner_challenges.link_challenges\n .filter((e) => e.channel == \"email\")\n .map((e) => ({ email_hash: e.hash }))[0].email_hash || [];\n\nexport const getPartnerChallenges = ({ partner_challenges }) => {\n const cha = partner_challenges.link_challenges;\n\n let challenges = cha\n ? cha.map((ch) => (ch.channel == \"sms\" ? \"celular\" : ch.channel))\n : [];\n\n const data = [\n {\n label: \"Email\",\n icon: \"email\",\n type: \"email\",\n value: partner_challenges.email_principal,\n isValidate: challenges.includes(\"email\"),\n ...(challenges.includes(\"email\")\n ? {\n validated: partner_challenges.email_validated_at ? true : false,\n validated_at: partner_challenges.email_validated_at\n ? \"Verificado em \" +\n formatDate(partner_challenges.email_validated_at)\n : \"Não verificado\",\n }\n : {}),\n },\n {\n label: \"Celular\",\n type: \"celular\",\n icon: \"smartphone\",\n mask: \"(##) #####-####\",\n placeholder: \"(00) 00000-0000\",\n value: partner_challenges.celular,\n isValidate: challenges.includes(\"celular\"),\n ...(challenges.includes(\"celular\")\n ? {\n validated: partner_challenges.celular_validated_at ? true : false,\n validated_at: partner_challenges.celular_validated_at\n ? \"Verificado em \" +\n formatDate(partner_challenges.celular_validated_at)\n : \"Não verificado\",\n }\n : {}),\n },\n ];\n\n return data;\n};\n\nexport const getChallengeCode = (state) => state.challenge_hash;\n\nexport const getDownloadLastTermConf = (state, getters, rootState) => {\n return {\n headers: {\n Authorization: `Bearer ${rootState.auth.token}`,\n responseType: \"blob\",\n },\n url: `${baseURL}/api/v1/terms/lastest-signed-term-download`,\n method: \"POST\",\n };\n};\n\nexport const getParameterizedRegistrationSteps = (state) => {\n if (!Object.keys(state.parameterized_registration_param).length) return {};\n\n // remove in_review_step\n delete state.parameterized_registration_param.in_review_step;\n\n let commonSteps = Object.keys(\n state.parameterized_registration_param.common_steps\n ).filter(\n (step) => state.parameterized_registration_param.common_steps[step] === true\n );\n\n const customizableSteps = Object.keys(\n state.parameterized_registration_param.customizable_steps\n );\n\n const AllSteps = commonSteps.concat(customizableSteps);\n\n // document_step needs to be at the end\n if (AllSteps.includes(\"document_step\")) {\n AllSteps.splice(AllSteps.indexOf(\"document_step\"), 1);\n AllSteps.push(\"document_step\");\n }\n\n return AllSteps;\n};\n\nexport const getParameterizedRegistrationInRevStep = (state) => {\n if (!Object.keys(state.parameterized_registration_param).length) return null;\n return state.parameterized_registration_param.in_review_step;\n};\n\nexport const getParameterizedRegistrationStepsLabels = (\n state,\n getters,\n rootState\n) => {\n const pf_pj = rootState.auth.user.partner.pf_pj;\n\n if (!Object.keys(state.parameterized_registration_param).length) return {};\n\n let commonSteps = Object.keys(\n state.parameterized_registration_param.common_steps\n )\n .filter(\n (step) =>\n state.parameterized_registration_param.common_steps[step] === true\n ) // Quando for PF, o label vai ser 'Dados PF', quando for PJ, o label vai ser 'Dados PJ'\n .map((step) =>\n t(\n `signup.parameterized_registration.steps.${\n step == \"pf_or_pj_step\" ? step + \"_\" + pf_pj : step\n }`\n )\n );\n\n const customizableSteps = Object.values(\n state.parameterized_registration_param.customizable_steps\n ).map((step) => step.step_title);\n\n const AllSteps = commonSteps.concat(customizableSteps);\n\n // document_step needs to be at the end\n if (AllSteps.includes(\"Documentos\")) {\n AllSteps.splice(AllSteps.indexOf(\"Documentos\"), 1);\n AllSteps.push(\"Documentos\");\n }\n\n return AllSteps;\n};\n\nexport const getCustomizableSteps = (state) => {\n if (!Object.keys(state.parameterized_registration_param).length) return {};\n return state.parameterized_registration_param.customizable_steps;\n};\n","export default {\n filters: [],\n products: [],\n payloadProducts: {},\n text_search: '',\n is_fetching_filters: false, // É pra buscar novamente os filtros no endpoint?\n is_adding_product_to_favorites: false, // Está adicionando produto aos favoritos?\n parent_ids: [],\n influencer_id: [],\n filter_likes: {},\n filter_keys: {},\n filter_price_range: {},\n order_by: {},\n selectedFilters: {},\n select_all_products: [],\n current_page: 1,\n drawer: false,\n researching_product: false,\n loading_adding_one_product: {\n status: false,\n activeOperationsCount: 0\n },\n loading_searching: false,\n partner_landing_link: null,\n parent_id_to_fetch_filters: null,\n dashboard_centralized: { // Obj usado apenas no Dash Centralizado\n all_companies: [],\n only_companies_ids: [], // ID das empresas do Dash Centralizado\n is_dashboard_centralized: false, // Está no dash centralizado?\n companies_filter: [] // Filtro para filtrar por empresas\n },\n selected_favorites: { // Obj usado apenas nos Favoritos já selecionados\n products: null,\n current_page: 1,\n pagination: null,\n is_loading: false,\n endpoint_type: 'all_products', // all_products, company ou category\n parent_ids: [],\n },\n}","export default {\n s3_with_param: \"https://flipnet-assets.s3.sa-east-1.amazonaws.com/{value}\",\n mission_targets:\n \"https://flipnet-assets.s3.sa-east-1.amazonaws.com/admin/public/mission/assets/icons/{value}.png\",\n \n};\n","/**\n * all states from store\n */\nexport default {\n categories: {},\n}","export default {\n tooltip_message: \"Selecione produtos, dê um título à lista e compartilhe facilmente nas suas redes sociais\",\n navbar: {\n title: 'Compartilhar Produtos'\n }\n}","import * as types from \"./mutations-types\";\n\nexport default {\n [types.SET_LOADING](state, payload) {\n state.loading_searching = payload;\n },\n\n [types.SET_LOADING_ADDING_ONE_PRODUCT](state, payload) {\n if (payload) {\n // Iniciar uma nova operação de carregamento\n state.loading_adding_one_product.activeOperationsCount++;\n state.loading_adding_one_product.status = true;\n } else {\n // Concluir uma operação de carregamento\n if (state.loading_adding_one_product.activeOperationsCount > 0) {\n state.loading_adding_one_product.activeOperationsCount--;\n }\n // Se não houver mais operações em andamento, definir como não carregando\n if (state.loading_adding_one_product.activeOperationsCount === 0) {\n state.loading_adding_one_product.status = false;\n }\n }\n },\n\n [types.SET_DRAWER](state, payload) {\n state.drawer = payload;\n },\n\n [types.SET_RESEARCHING_PRODUCT](state, payload) {\n state.researching_product = payload;\n },\n\n [types.SET_CURRENT_PAGE](state, payload) {\n state.current_page = payload;\n },\n\n [types.SET_FETCHING_FILTERS](state, payload) {\n state.is_fetching_filters = payload;\n },\n\n [types.SET_PRODUCTS](state, payload) {\n state.products = payload;\n },\n\n [types.SET_SELECTED_FAVORITOS_LIST](state, payload) {\n state.selected_favorites.products = payload;\n },\n\n [types.SET_CURRENT_PAGE_FAVORITE_PRODUCTS_SELECTED](state, payload) {\n state.selected_favorites.current_page = payload;\n },\n\n [types.SET_SELECTED_FAVORITE_PRODUCTS_PAGINATION](state, payload) {\n let pagination = Object.assign({ current_page: 1 }, payload);\n \n delete pagination.data;\n\n state.selected_favorites.pagination = pagination;\n },\n\n [types.SET_SELECTED_ALL_PRODUCTS](state, payload) {\n state.select_all_products = payload;\n },\n \n [types.SET_FILTERS](state, payload) {\n console.log('Filtros', payload)\n state.filters = payload;\n },\n\n [types.SET_PRICE_RANGE](state, payload) {\n state.filter_price_range = payload;\n },\n \n [types.SET_PARTNER_LANDING_LINK](state, payload) {\n state.partner_landing_link = payload;\n },\n\n [types.SET_SELECTED_FILTERS](state, payload) {\n state.selectedFilters = payload;\n },\n\n [types.SET_PARENTS_ID](state, payload) {\n state.parent_ids = payload;\n },\n\n [types.SET_INFLUENCER_ID](state, payload) {\n state.influencer_id = payload;\n },\n\n [types.SET_FILTER_LIKES](state, payload) {\n state.filter_likes = payload;\n },\n\n [types.SET_FILTER_KEYS](state, payload) {\n state.filter_keys = payload;\n },\n\n [types.SET_ORDER_BY](state, payload) {\n state.order_by = payload;\n },\n\n [types.SET_SEARCH_TEXT](state, payload) {\n state.text_search = payload;\n },\n\n [types.SET_PAYLOAD_PRODUCTS](state, payload) {\n state.payloadProducts = payload;\n },\n\n [types.SET_IS_ADDING_PRODUCT_TO_FAVORITES](state, payload) {\n state.is_adding_product_to_favorites = payload;\n },\n\n [types.SET_ALL_COMPANIES_IN_CENTRALIZED](state, payload) {\n state.dashboard_centralized.all_companies = payload;\n },\n\n [types.SET_DASHBOARD_CENTRALIZED](state, payload) {\n state.dashboard_centralized.is_dashboard_centralized = payload;\n },\n\n [types.SET_COMPANIES_IDS_IN_CENTRALIZED](state, payload) {\n state.dashboard_centralized.only_companies_ids = payload;\n },\n\n [types.SET_PARENT_ID_FETCH_FILTERS](state, payload) {\n state.parent_id_to_fetch_filters = payload;\n },\n\n [types.SET_COMPANIES_FILTER_IN_CENTRALIZED](state, payload) {\n state.dashboard_centralized.companies_filter = payload;\n },\n\n [types.SET_REQUEST_CONFIG_IN_CENTRALIZED](state, payload) {\n state.selected_favorites.endpoint_type = payload;\n },\n\n [types.SET_LOADING_IN_SELECTED_FAVORITES_LIST](state, payload) {\n state.selected_favorites.is_loading = payload;\n }, \n\n [types.SET_COMPANIES_IDS_IN_SELECTED_FAVORITES_LIST](state, payload) {\n state.selected_favorites.parent_ids = payload\n },\n}","import { baseUrlCC, baseUrlAdmin, baseUrlXmailing } from \"@/shared/http/api\";\n\n/**\n * @account-services\n */\nexport default {\n validatePassword: () => ({\n method: \"POST\",\n url: \"api/v1/user/validate-password\",\n }),\n\n validatePIX: () => ({\n method: \"POST\",\n url: \"/api/v1/starkbank/validatePix\",\n baseURL: baseUrlCC,\n }),\n\n /**\n * api get list of partner ethnicity\n * @api-version 1\n * @returns {{method: string, url: string}}\n */\n getEthnicity: () => ({\n method: \"GET\",\n url: \"api/v1/ethnicity/list\",\n noPersist: true,\n }),\n\n updateUser: () => ({ method: \"POST\", url: \"api/v1/user\" }),\n\n deletePhoto: () => ({ method: \"POST\", url: \"api/v1/partner/delete-photo\" }),\n\n listBanks: () => ({ method: \"GET\", url: \"api/v1/bank\" }),\n\n changePassword: () => ({\n method: \"POST\",\n url: \"api/v1/user/change-password\",\n }),\n\n disable: () => ({ method: \"DELETE\", url: \"api/v1/user/disable\" }),\n\n userDocs: () => ({\n method: \"GET\",\n url: \"api/v1/partner-doc/list\",\n noPersist: true,\n }),\n\n docTypes: () => ({\n method: \"GET\",\n url: \"api/v1/partner-doc-type/list\",\n noPersist: true,\n }),\n\n uploadDocs: () => ({ method: \"POST\", url: \"api/v1/partner-doc\" }),\n\n deleteDocs: () => ({ method: \"DELETE\", url: \"api/v1/partner-doc/{id}\" }),\n\n params: () => ({\n method: \"GET\",\n url: \"api/v1/parameters/byKeys\",\n baseURL: baseUrlAdmin,\n }),\n\n partnerChallenges: () => ({\n method: \"GET\",\n url: \"api/v1/partner-challenges\",\n baseURL: baseUrlAdmin,\n }),\n\n sendAndUpdateChallenge: () => ({\n method: \"GET\",\n url: \"api/challenge/{type}/sendAndUpdate/{value}\",\n baseURL: baseUrlXmailing,\n }),\n\n sendChallenge: () => ({\n method: \"GET\",\n url: \"api/challenge/{type}/send\",\n baseURL: baseUrlXmailing,\n }),\n\n resendChallenge: () => ({\n method: \"GET\",\n url: \"api/challenge/{type}/resend/{hash}\",\n baseURL: baseUrlXmailing,\n }),\n\n validateChallenge: () => ({\n method: \"GET\",\n url: \"api/challenge/{type}/validate/{hash}/{code}\",\n baseURL: baseUrlXmailing,\n }),\n\n validateChallengeWhenChange: () => ({\n method: \"GET\",\n url: \"api/challenge/{type}/validate/{hash}/{code}/{secret}\",\n baseURL: baseUrlXmailing,\n }),\n\n sendChallengeExt: () => ({\n method: \"GET\",\n url: \"api/challengeExt/{type}/send/{hash}/{value}\",\n baseURL: baseUrlXmailing,\n }),\n\n resendChallengeExt: () => ({\n method: \"GET\",\n url: \"api/challengeExt/{type}/resend/{hash}\",\n baseURL: baseUrlXmailing,\n }),\n\n validateChallengeExt: () => ({\n method: \"GET\",\n url: \"api/challengeExt/{type}/validate/{secret}/{hash}/{code}\",\n baseURL: baseUrlXmailing,\n }),\n\n parameterizedRegistration: () => ({\n method: \"GET\",\n url: \"api/v1/parameters/p/{slug}/{param}\",\n }),\n};\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../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!./dialog.vue?vue&type=style&index=0&id=61218531&lang=css\"","export default {\n social_changed_success: \"Redes sociais alteradas com sucesso\",\n social_on_changed_error: \"Não foi possivel alterar as redes sociais\",\n data_changed_success: \"Dados alterados com sucesso\",\n data_on_changed_error: \"Não foi possivel alterar seus dados\",\n address_changed_success: \"Endereço alterado com sucesso\",\n address_on_changed_error: \"não foi possivel alterar o endereço\",\n bank_account_changed_success: \"Dados Bancários alterados com sucesso\",\n bank_account_on_changed_error: \"Erro ao tentar alterar os dados bancários\",\n email_changed_success: \"E-mail alterado com sucess!\",\n email_on_changed_error: \"Erro na alteração de e-mail!\",\n store_name_on_changed_error: \"Erro ao tentar alterar o nome do seu espaço\",\n store_name_changed_success: \"Nome do seu espaço foi alterado com sucesso\",\n};\n","export * from './lp-centralized';\n\nexport const getProducts = ({ productsByCategories }) => productsByCategories\n\nexport const getInfluData = ({ influ_data }) => {\n return influ_data.ecomm_customization || {};\n};\n\nexport const getInfluEcomCustomization = ({ influ_data }) => {\n return influ_data || {};\n};\n\nexport const getCompanieDetails = ({ company_details }) => {\n return company_details || {};\n};\n\nexport const getSidebarStatus = ({ sidebar }) => sidebar\n\nexport const getAllProducts = ({ all_products }) => all_products","// extracted by mini-css-extract-plugin","/**\n * Map name for mutations\n * @types {string}\n */\n\nexport const SET_ORDERS = \"SALES/SET_ORDERS\";\n\nexport const SET_IN_REQUEST = \"SALES/SET_IN_REQUEST\";\n\nexport const SET_PERIOD = \"SALES/PERIOD\";\n\nexport const SET_ORDER_CYCLE = \"SALES/SET_ORDER_CYCLE\";\n","import state from \"./state\";\nimport mutations from \"./mutations\";\nimport * as actions from \"./actions\";\nimport * as getters from \"./getters\";\n\n/**\n * export all modules from store\n */\nexport default {\n state,\n actions,\n getters,\n mutations,\n namespaced: true,\n};\n","import { baseUrlAdmin, baseURL } from \"@/shared/http/api\";\n\n/**\n * @me_store-services\n */\nexport default {\n /**\n * ecomm index\n *\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n getEcomm: () => ({ method: \"GET\", url: \"api/v1/ecomm-store\" }),\n\n /**\n * ecomm model update\n *\n * @return {{method: string, url: string}}\n */\n putEcomm: () => ({ method: \"PUT\", url: \"api/v1/ecomm-store\" }),\n\n /**\n * route used to make upload of ecomm photos\n *\n * @return {{method: string, url: string}}\n */\n uploadEcommPhoto: () => ({ method: \"POST\", url: \"api/v1/ecomm-store/photo\" }),\n\n /**\n * route used to destroy a ecomm photo\n *\n * @return {{method: string, url: string}}\n */\n deleteEcommPhoto: () => ({\n method: \"DELETE\",\n url: \"api/v1/ecomm-store/photo\",\n }),\n\n /**\n * route used to destroy a ecomm photo\n *\n * @return {{method: string, url: string}}\n */\n params: () => ({\n method: \"GET\",\n url: \"api/v1/parameters/byKeys\",\n baseURL: baseUrlAdmin,\n }),\n\n/**\n * @returns {{method: string, url: string, baseURL: string}}\n */\n getAssetsByPartnerStore: () => ({\n method: \"GET\",\n url: `api/v1/assets`,\n baseURL: baseURL,\n}),\n};\n","import { baseURL } from \"@/shared/http/api\";\n\nexport default {\n getSharedLink: () => ({\n method: \"GET\",\n url: \"api/v1/products/shared-link?product_id={product_id}&partner_id={partner_id}&parent_id={parent_id}\",\n baseURL: baseURL,\n noPersist: true,\n }),\n};\n","export default {\n success: \"Ação concluida com sucesso!\",\n error: \"Operação não concluida, algo inesperado aconteceu\",\n unprocessed_error_on_created:\n \"Algo inesperado aconteceu, ao tentar criar o recurso\",\n unprocessed_error_on_save:\n \"Algo inesperado aconteceu, ao tentar salvar o recurso\",\n unprocessed_error_on_delete:\n \"Algo inesperado aconteceu, ao tentar deletar o recurso\",\n terms_refreshed_as_success: \"Termos atualizados com sucesso!\",\n terms_unprocessed: \"Não foi possivel aceitar os termos de uso\",\n};\n","// extracted by mini-css-extract-plugin","import i18n from \"@/i18n/wrappers/i18n\";\nimport moment from \"moment\";\n\nconst t = i18n.global.t;\n\nexport const formatDate = (date) => moment(date).format(\"DD/MM/YY\");\n\nexport const formatDateWithHours = (date) =>\n moment(date).format(\"DD/MM/YY HH:mm\");\n\nexport const formatFullDate = (date) => moment(date).format(\"DD/MM/YYYY\");\n\nexport const formatPeriod = (period) => {\n const startDate = moment(),\n dataFormatType = \"YYYY-MM-DD\";\n\n const created_at_end = startDate.format(dataFormatType),\n created_at_begin = startDate\n .subtract(period, \"days\")\n .format(dataFormatType);\n\n return { created_at_end, created_at_begin };\n};\n\nexport const formatPeriodByMonths = (period) => {\n const startDate = moment();\n const dateFormat = \"YYYY-MM-DD\";\n\n let created_at_begin, created_at_end;\n\n if (period === \"current_month\") {\n created_at_end = startDate.format(dateFormat);\n created_at_begin = startDate.startOf(\"month\").format(dateFormat);\n } else if (period === \"last_month\") {\n created_at_begin = startDate\n .subtract(1, \"month\")\n .startOf(\"month\")\n .format(dateFormat);\n created_at_end = moment(created_at_begin).endOf(\"month\").format(dateFormat);\n } else {\n throw new Error(\n 'Invalid period type. Supported values are \"current_month\" or \"last_month\".'\n );\n }\n\n return { created_at_end, created_at_begin };\n};\n\nexport const americanFormat = (date) => moment(date).format('YYYY-MM-DD');\n\nexport const isDateValid = ( date, format ) => moment(date, format, true).isValid();\n\n/**\n * Calcula a diferença em dias entre duas datas.\n *\n * @param {string} date1 - A primeira data no formato 'YYYY-MM-DD'.\n * @param {string} date2 - A segunda data no formato 'YYYY-MM-DD'.\n * @returns {number} - A diferença em dias entre as duas datas.\n*/\nexport const calculateDaysBetweenDates = (date1, date2) => {\n const momentDate1 = moment(date1);\n const momentDate2 = moment(date2);\n return momentDate2.diff(momentDate1, 'days') + 1 // +1 para incluir o dia inicial\n}\n\nexport const formatTimestamp = (date) =>\n moment(date).format(\"YYYY-MM-DD HH:mm:ss\");\n\nexport function toMoney(value) {\n return parseFloat(value)\n .toFixed(2)\n .replace(\".\", \",\")\n .replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1.\");\n}\n\nexport function toMoneyLabel(value) {\n return `${t(\"global.moneyTypeLabel\")} ${toMoney(value)}`;\n}\n\nexport const validateRepeatedNumbers = (value) => {\n let validateRepeatedNumbers = /^(?!(\\d)\\1{3})\\d{4}$/;\n return validateRepeatedNumbers.test(value);\n};\n\nexport const calculateSum = (number, alternate) => {\n let sum = 0;\n for (let i = number.length - 1; i >= 0; i--) {\n let n = parseInt(number.charAt(i), 10);\n if (alternate) {\n n *= 2;\n if (n > 9) n = (n % 10) + 1;\n }\n sum += n;\n alternate = !alternate;\n }\n return sum;\n};\n\nexport const validateLuhn = (numberMasked) => {\n let alternate = false;\n\n const number = numberMasked.replace(/\\s/g, \"\"),\n sum = calculateSum(number, alternate);\n\n return sum % 10 === 0;\n};\n","import ptBR from \"./langs/pt-br\";\n\nexport default {\n \"pt-Br\": ptBR,\n};\n","/**\n * By exposing all services used in the module,\n * they are written by axios, responsible for the http control,\n * and are exposed to be used as metadata returning a promise\n */\nimport { baseUrlAdmin } from \"@/shared/http/api\";\n\nexport default {\n /**\n * check parent endpoint\n *\n * @api-version 1\n\n * @returns {{method: string, url: string}}\n */\n parentBySlug: () => ({ method: \"GET\", url: \"api/v1/partner/small-info\" }),\n\n /**\n * get partner endpoint\n * @api-version 1\n *\n * @returns {{method: string, url: string}}\n */\n parent: () => ({ method: \"GET\", url: \"api/v1/partner/parent\" }),\n\n /**\n * @returns {{method: string, url: string}}\n */\n params: () => ({ method: \"GET\", url: \"api/v1/parameters\" }),\n\n /**\n * @returns {{method: string, url: string}}\n */\n updatePartner: () => ({ method: \"PUT\", url: \"api/v1/partner\" }),\n\n /**\n * @returns {{method: string, url: string}}\n */\n customerService: () => ({\n method: \"GET\",\n url: \"api/v1/customer-service\",\n baseURL: baseUrlAdmin,\n }),\n};\n","export default {\n tooltip_message: \"Crie e organize suas lojas de produtos favoritos para diferentes ocasiões, como Dia dos Pais, Natal e muito mais. Compartilhe suas recomendações com seus clientes e aumente suas vendas.\",\n tooltip_message_selected_products: `\n Estes são os produtos que você selecionou como favoritos e que agora estão sendo exibidos na sua página pública. \n Para adicionar mais produtos, clique em 'Adicionar favoritos'\n `,\n navbar: {\n title: 'Minhas Lojas'\n },\n action_buttons: {\n add_to_favorites: 'Adicionar favoritos',\n view_page: 'Ver minha página',\n },\n favorites_already_selected: {\n title: 'Produtos selecionados',\n group_by: {\n title: 'Agupar por:',\n category: 'Categoria',\n company: 'Empresa',\n product: 'Produto'\n },\n product: {\n remove_favorite: 'Remover dos favoritos',\n share: 'Compartilhar'\n }\n }\n}","import { prefixes } from \"./cachePrefixes\";\nimport { getLocalUserId } from \"@/modules/partner/storage\";\n\nconst COOKIE_EXPIRATION_TIME = 15 * 60 * 1000;\n\n// Utility function to set a cookie\nconst setCookie = (name, value) => {\n const date = new Date();\n date.setTime(date.getTime() + COOKIE_EXPIRATION_TIME);\n const expires = \"; expires=\" + date.toUTCString();\n document.cookie = name + \"=\" + (value || \"\") + expires + \"; path=/\";\n};\n\n// Utility function to get a cookie by name\nconst getCookie = (name) => {\n const nameEQ = name + \"=\";\n const ca = document.cookie.split(\";\");\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === \" \") c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n};\n\n// Utility function to delete a cookie by name\nconst eraseCookie = (name) => {\n document.cookie = name + \"=; Max-Age=-99999999;\";\n};\n\n// Function to build the cache key\nconst buildCacheKey = (prefix) => {\n const cachePrefix = prefixes[prefix];\n return cachePrefix + getLocalUserId();\n};\n\nexport const verifyCache = (prefix) => {\n return getCookie(buildCacheKey(prefix));\n};\n\nexport const setCache = (prefix, data) => {\n const cacheKey = buildCacheKey(prefix);\n setCookie(cacheKey, JSON.stringify(data));\n};\n\nexport const removeCache = (prefix) => {\n eraseCookie(buildCacheKey(prefix));\n};\n\nexport const getCache = (prefix) => {\n try {\n const cacheItem = getCookie(buildCacheKey(prefix));\n return cacheItem ? JSON.parse(cacheItem) : null;\n } catch (error) {\n console.error(\"Error parsing JSON from cache:\", error);\n return null;\n }\n};\n\nexport const clearAllCache = () => {\n const prefixValues = Object.values(prefixes);\n document.cookie.split(\";\").forEach((cookie) => {\n const [key] = cookie.split(\"=\");\n if (prefixValues.some((prefix) => key.trim().startsWith(prefix))) {\n eraseCookie(key.trim());\n }\n });\n};\n\n/**\n * Handles cache operations based on the provided prefix and dispatchers.\n *\n * @param {string} prefix - The cache prefix to use for the operation.\n * @param {object} dispatchers - An object containing callback functions for cache hits.\n * @param {boolean} [isCached=true] - Whether to check for cached data.\n * @return {Promise