{"version":3,"sources":["webpack:///./src/views/pages/ControleInfinity/Purchase/Index.vue?0bde","webpack:///./src/views/pages/ControleInfinity/Purchase/Index.vue?ec74","webpack:///./src/views/pages/ControleInfinity/Purchase/IndexMixin.js","webpack:///./src/views/pages/ControleInfinity/Purchase/PurchaseMixin.js","webpack:///src/views/pages/ControleInfinity/Purchase/Index.vue","webpack:///./src/views/pages/ControleInfinity/Purchase/Index.vue?59d1","webpack:///./src/views/pages/ControleInfinity/Purchase/Index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","attrs","staticClass","$api_host","directives","name","rawName","value","expression","loading","on","$event","stopPropagation","getStartInFreeTrialConfirm","_l","item","index","key","_s","plan","price","JSON","parse","details","purchasePlanConfirm","staticRenderFns","data","plans","subscription","mounted","getPlans","getSubscription","methods","url","$http","get","then","res","finally","mapActions","$swal","title","type","html","icon","showCancelButton","confirmButtonText","cancelButtonText","customClass","confirmButton","cancelButton","result","getStartInFreeTrial","status","addAbility","removeAbility","updateLocalStorage","text","confirmed","$router","push","catch","purchasePlan","id","message","noBalance","SwalMessages","no_balance","buttons","isConfirmed","components","BListGroup","BListGroupItem","BCard","BCardTitle","BCardText","BRow","BCol","BBadge","BButton","BSpinner","mixins","IndexMixin","PurchaseMixin","component"],"mappings":"gHAAA,W,gECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,SAAS,CAACA,EAAG,eAAe,CAACJ,EAAIM,GAAG,yBAAyBF,EAAG,cAAc,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,IAAI,CAACJ,EAAIM,GAAG,sKAAsKF,EAAG,IAAI,CAACJ,EAAIM,GAAG,mJAAmJF,EAAG,MAAM,CAACI,YAAY,iCAAiC,CAACJ,EAAG,MAAM,CAACI,YAAY,8BAA8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,SAAAgC,GAAO,OAAKA,EAAQC,YACzD,EAAKV,QAAQC,KAAK,CAAEvD,KAAM,oBAC1B,YCqCV,GACEiE,WAAY,CACVC,WAAJ,OACIC,eAAJ,OACIC,MAAJ,OACIC,WAAJ,OACIC,UAAJ,OACIC,KAAJ,OACIC,KAAJ,OACIC,OAAJ,OACIC,QAAJ,OACIC,SAAJ,QAEEC,OAAQ,CAACC,EAAYC,ICjLqW,I,wBCQxXC,EAAY,eACd,EACA3F,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAA2D,E","file":"js/chunk-512249d2.6a11baeb.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('b-card',[_c('b-card-title',[_vm._v(\" Controle Infinity \")]),_c('b-card-text',[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('p',[_vm._v(\" Cansado de se perder com suas dezenas ou milhares de contas? Ou de ficar anotando as informações em um pedaço de papel ou bloco de notas? Nós temos a solução! \")]),_c('p',[_vm._v(\" O Controle Infinity veio para resolver de vez seus problemas ao gerenciar suas contas! Tenha tudo organizado e de fácil acesso em segundos! \")]),_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('img',{staticClass:\"rounded-lg mt-3 mb-3 d-flex\",attrs:{\"width\":\"80%\",\"src\":(_vm.$api_host + \"/storage/screenshots/1.png\")}})]),_c('p',[_vm._v(\" Importe e organize suas contas, filtre e classifique por situações; pesquise e exporte já nos formatos dos principais BOTs tudo com poucos cliques!! \")]),_c('p',[_vm._v(\" Gerencie seus ganhos e tenha um resumo e visão geral sobre suas contas! \")]),_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('img',{staticClass:\"rounded-lg mt-3 mb-3 d-flex\",attrs:{\"width\":\"80%\",\"src\":(_vm.$api_host + \"/storage/screenshots/2.png\")}})]),_c('p',[_vm._v(\" Valorize seu tempo e aumente seus ganhos graças a organização, segurança e praticidade que o Controle Infinity tem a te oferecer! \")]),_c('p',[_vm._v(\" Experimente agora e não desperdice mais o seu tempo ao gerenciar e usar suas contas! \")])])],1)],1)],1),_c('b-row',{staticClass:\"pricing-card d-flex justify-content-center\"},[_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('b-card',{attrs:{\"align\":\"center\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(true),expression:\"true\"}],staticClass:\"pricing-badge text-center\"},[_c('b-badge',{staticClass:\"font-small-4\",attrs:{\"variant\":\"light-info\",\"pill\":\"\"}},[_c('span',{staticClass:\"py-1 px-1\"},[_vm._v(\" TESTE GRATIS DE 1 DIA \")])])],1),_c('div',{staticClass:\"annual-plan\"},[_c('div',{staticClass:\"plan-price mt-2\"},[_c('sup',{staticClass:\"font-medium-1 font-weight-bold text-primary\"},[_vm._v(\"R$ \")]),_c('span',{staticClass:\"pricing-basic-value font-weight-bolder text-primary\"},[_vm._v(\"0\")])])]),_c('b-button',{staticClass:\"mt-1\",attrs:{\"block\":\"\",\"variant\":\"relief-primary\",\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.getStartInFreeTrialConfirm()}}},[(!_vm.loading)?_c('span',[_vm._v(\"Testar Gratuitamente\")]):_c('b-spinner',{attrs:{\"small\":\"\"}})],1)],1)],1)],1),_c('b-row',{staticClass:\"pricing-card\"},_vm._l((_vm.plans),function(item,index){return _c('b-col',{key:index,attrs:{\"md\":\"4\"}},[_c('b-card',{attrs:{\"align\":\"center\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(true),expression:\"true\"}],staticClass:\"pricing-badge text-center\"},[_c('b-badge',{staticClass:\"font-small-4\",attrs:{\"variant\":\"light-info\",\"pill\":\"\"}},[_c('span',{staticClass:\"py-1 px-1\"},[_vm._v(\" \"+_vm._s(item.plan)+\" \")])])],1),_c('div',{staticClass:\"annual-plan\"},[_c('div',{staticClass:\"plan-price mt-2\"},[_c('sup',{staticClass:\"font-medium-1 font-weight-bold text-primary\"},[_vm._v(\"R$ \")]),_c('span',{staticClass:\"pricing-basic-value font-weight-bolder text-primary\"},[_vm._v(_vm._s(item.price))])])]),_c('b-list-group',{staticClass:\"list-group-circle text-left d-flex justify-content-center\"},_vm._l((JSON.parse(item.details)),function(details){return _c('b-list-group-item',{key:details},[_vm._v(\" \"+_vm._s(details)+\" \")])}),1),_c('b-button',{staticClass:\"mt-1\",attrs:{\"block\":\"\",\"variant\":\"relief-primary\",\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.purchasePlanConfirm(item)}}},[(!_vm.loading)?_c('span',[_vm._v(\"Comprar\")]):_c('b-spinner',{attrs:{\"small\":\"\"}})],1)],1)],1)}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n data: () => ({\n loading: false,\n plans: [],\n subscription: []\n }),\n async mounted () {\n await this.getPlans()\n await this.getSubscription()\n },\n methods: {\n async getPlans () {\n this.loading = true\n\n const url = '/user/controle_infinity/get_plans'\n await this.$http.get(url)\n .then(res => {\n this.plans = res.data\n }).finally(() => {\n this.loading = false\n })\n },\n async getSubscription () {\n this.loading = true\n\n const url = '/user/controle_infinity/subscription'\n await this.$http.get(url)\n .then(res => {\n this.subscription = res.data\n }).finally(() => {\n this.loading = false\n })\n }\n }\n}\n","import { mapActions } from 'vuex'\nimport SwalMessages from '@/views/pages/BuyServices/utils/SwalMessages'\n\nexport default {\n data: () => ({\n loading: false\n }),\n methods: {\n ...mapActions('user', ['addAbility', 'removeAbility', 'updateLocalStorage']),\n getStartInFreeTrialConfirm () {\n this.$swal({\n title: 'Iniciar avaliação gratuita?',\n type: 'info',\n html: '

Você será redirecionado para a página de avaliação gratuita.

',\n icon: 'warning',\n showCancelButton: true,\n confirmButtonText: 'Iniciar avaliação!',\n cancelButtonText: 'Cancelar',\n customClass: {\n confirmButton: 'btn btn-primary',\n cancelButton: 'btn btn-danger ml-1'\n }\n }).then(result => {\n if (result.value) {\n this.getStartInFreeTrial()\n }\n })\n },\n async getStartInFreeTrial () {\n this.loading = true\n const url = '/user/controle_infinity/free_trial'\n\n await this.$http.get(url)\n .then(async res => {\n if (res.status === 201 && res.data === 'Free trial applied') {\n await this.addAbility('controle.all')\n await this.removeAbility('controle.buy')\n await this.updateLocalStorage()\n\n this.$swal({\n title: 'Sucesso!',\n icon: 'success',\n text: 'Você está no modo de teste gratuito!',\n type: 'success',\n confirmButtonText: 'Ok',\n customClass: {\n confirmButton: 'btn btn-success'\n }\n })\n .then(confirmed => {\n if (confirmed) {\n this.$router.push({ name: 'Controle Infinity (Minha Assinatura)' })\n }\n })\n }\n })\n .catch(() => {\n this.$swal({\n title: 'Erro!',\n icon: 'error',\n text: 'Você não pode iniciar uma assinatura gratuita!',\n type: 'error',\n confirmButtonText: 'Ok',\n customClass: {\n confirmButton: 'btn btn-danger'\n }\n })\n })\n .finally(() => {\n this.loading = false\n })\n },\n purchasePlanConfirm (plan) {\n this.$swal({\n title: 'Assinar Plano?',\n type: 'info',\n html: `

Você está prestes a comprar o plano ${plan.plan}.

`,\n icon: 'warning',\n showCancelButton: true,\n confirmButtonText: 'Sim!',\n cancelButtonText: 'Cancelar',\n customClass: {\n confirmButton: 'btn btn-primary',\n cancelButton: 'btn btn-danger ml-1'\n }\n }).then(result => {\n if (result.value) {\n this.purchasePlan(plan)\n }\n })\n },\n async purchasePlan (plan) {\n const url = `/user/controle_infinity/purchase/${plan.id}`\n this.loading = true\n\n this.$http.get(url)\n .then(async res => {\n if (res.status === 201 && res.data === 'Plan applied') {\n await this.addAbility('controle.all')\n await this.removeAbility('controle.buy')\n await this.updateLocalStorage()\n\n this.$swal({\n title: 'Sucesso!',\n icon: 'success',\n text: 'Sua assinatura está ativa!',\n type: 'success',\n confirmButtonText: 'Ok',\n customClass: {\n confirmButton: 'btn btn-success'\n }\n })\n .then(confirmed => {\n if (confirmed) {\n this.$router.push({ name: 'Controle Infinity (Minha Assinatura)' })\n }\n })\n }\n if (res.data.message === 'no balance.' && res.status === 200) this.noBalance()\n })\n .finally(() => {\n this.loading = false\n })\n },\n noBalance () {\n this.$swal(SwalMessages.no_balance).then(buttons => (buttons.isConfirmed\n ? this.$router.push({ name: 'Adicionar Saldo' })\n : null))\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=e24f71ee&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}