{"version":3,"sources":["webpack:///./src/scripts/models/pagSeguro/address.model.js","webpack:///./src/scripts/models/pagSeguro/document.model.js","webpack:///./src/scripts/models/pagSeguro/documentHolder.model.js","webpack:///./src/scripts/models/pagSeguro/holder.model.js","webpack:///./src/scripts/models/pagSeguro/installment.model.js","webpack:///./src/scripts/models/pagSeguro/card.model.js","webpack:///./src/scripts/models/pagSeguro/payment.model.js","webpack:///src/components/PagSeguroCheckout.vue","webpack:///./src/components/PagSeguroCheckout.vue?88f9","webpack:///./src/components/PagSeguroCheckout.vue"],"names":["Address","_createClass","_classCallCheck","this","street","number","complement","district","city","state","country","postalCode","Document","type","value","DocumentHolder","document","Holder","name","documents","birthDate","phone","Phone","Installment","quantity","noInterestInstallmentQuantity","Card","cardNumber","brand","cvv","expirationMonth","expirationYear","token","holder","billingAddress","installment","key","get","slice","Payment","amount","paymentMethods","senderHash","card","installments","paymentMethod","PaymentMethod","creditCard","data","payment","pagSeguroService","PagSeguroService","session","brandName","cardToken","mounted","init","methods","push","areaCode","createPreApproval","createSubscription","then","onPreApprovalCreated","createCheckout","createTransaction","preApproval","console","log","url","code","onSessionCreated","PagSeguroDirectPayment","setSessionId","id","prepareSenderHash","onSenderHashReady","onPaymentMethodsLoaded","response","status","alert","message","getBrand","cardBin","success","onBrandLoaded","error","onError","createCardToken","Object","assign","onCardTokenCreated","onCheckoutCreated","checkout","render","_vm","_h","$createElement","_c","_self","_v","_s","on","staticRenderFns","__vue_template_functional__","__vue_styles__","__vue_scopeId__","__vue_module_identifier__","Component"],"mappings":"mLAAqBA,EAAOC,gBACxB,SAAAD,IAAcE,eAAA,KAAAF,GAKVG,KAAKC,OAAS,GAMdD,KAAKE,OAAS,EAMdF,KAAKG,WAAa,GAMlBH,KAAKI,SAAW,GAMhBJ,KAAKK,KAAO,GAMZL,KAAKM,MAAQ,GAMbN,KAAKO,QAAU,GAMfP,KAAKQ,WAAa,KC/CLC,EAAQX,gBAEzB,SAAAW,EAAYC,GAAMX,eAAA,KA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,EAAIK,GAAG,kBAAkBL,EAAIM,GAAGN,EAAI1C,WAAW,QAAQ6C,EAAG,MAAMH,EAAIK,GAAG,kBAAkBL,EAAIM,GAAGN,EAAIzC,WAAW,QAAQ4C,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,SAAS,CAACI,GAAG,CAAC,MAAQP,EAAI/B,iBAAiB,CAAC+B,EAAIK,GAAG,uBAAuBL,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,MAAMH,EAAIK,GAAG,KAAKF,EAAG,SAAS,CAACI,GAAG,CAAC,MAAQP,EAAInC,oBAAoB,CAACmC,EAAIK,GAAG,mBACvnBG,EAAkB,G,YCKlBC,GAA8B,EAE9BC,EAAiB,KAEjBC,EAAkB,KAElBC,EAA4B,KAE5BC,EAAY,eACd,EACA,EACA,EACAJ,EACAC,EACAC,EACAC,GAGa,aAAAC,EAAiB","file":"assets/js/chunk-2d22948d.js","sourcesContent":["export default class Address {\n constructor() {\n /**\n * Nome da rua do endereço de envio. Informa o nome da rua do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Livre, com limite de 80 caracteres.\n */\n this.street = '';\n\n /**\n * Número do endereço de envio. Informa o número do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Livre, com limite de 20 caracteres.\n */\n this.number = 0;\n\n /**\n * Complemento do endereço de envio. Informa o complemento (bloco, apartamento, etc.) do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Livre, com limite de 40 caracteres.\n */\n this.complement = '';\n\n /**\n * Bairro do endereço de envio. Informa o bairro do endereço de envio do produto. Este campo é opcional e você pode enviá-lo caso já tenha capturado os dados do comprador em seu sistema e queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Livre, com limite de 60 caracteres.\n */\n this.district = '';\n\n /**\n * Cidade do endereço de envio. Informa a cidade do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Livre. Deve ser um nome válido de cidade do Brasil, com no mínimo 2 e no máximo 60 caracteres.\n */\n this.city = '';\n\n /**\n * Estado do endereço de envio. Informa o estado do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro.\n * Formato: Duas letras, representando a sigla do estado brasileiro correspondente.\n */\n this.state = '';\n\n /**\n * País do endereço de envio. Informa o país do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: No momento, apenas o valor BRA é permitido.\n */\n this.country = '';\n\n /**\n * CEP do endereço de envio. Informa o CEP do endereço de envio do produto. Pode enviá-lo caso queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Um número de 8 dígitos\n */\n this.postalCode = 0;\n }\n}","\nexport default class Document {\n\n constructor(type) {\n /**\n * Tipo de documento do comprador. Especifica o tipo do documento é CPF ou CNPJ. \n * Formato:CPF ou CNPJ\n */\n this.type = type;\n \n /**\n * Número do CPF ou CNPJ do comprador Especifica o CPF/CNPJ do comprador que está realizando o pagamento. Este campo é opcional e você pode enviá-lo caso já tenha capturado os dados do comprador em seu sistema e queira evitar que ele preencha esses dados novamente no PagSeguro. \n * Formato: Um número de 11 dígitos para CPF ou 14 dígitos para CNPJ. \n */\n this.value = 0; \n }\n}","import Document from './document.model';\n\nexport default class DocumentHolder {\n\n constructor() {\n this.document = new Document();\n }\n}","import Phone from './phone.model';\n\nexport default class Holder {\n constructor(){\n this.name = '';\n this.documents = [];\n this.birthDate = '';\n this.phone = new Phone()\n }\n}","export default class Installment {\n constructor(){\n this.quantity = 1;\n this.value = 0.0;\n this.noInterestInstallmentQuantity = 0;\n }\n}","import Holder from \"./holder.model\";\nimport Address from './address.model';\nimport Installment from \"./installment.model\";\n\nexport default class Card {\n constructor() {\n this.cardNumber = '';\n this.brand = null;\n this.cvv = '';\n this.expirationMonth = '';\n this.expirationYear = '';\n this.token = '';\n this.holder = new Holder();\n this.billingAddress = new Address();\n this.installment = new Installment();\n }\n\n get cardBin() {\n return this.cardNumber.slice(0, 6);\n }\n}","import Card from \"./card.model\";\nimport PaymentMethod from \"@/scripts/models/enums/paymentMethod.enum\";\n\nexport default class Payment {\n constructor() {\n this.amount = 0.00;\n this.paymentMethods = [];\n this.senderHash = \"\";\n this.card = new Card();\n this.installments = [];\n this.paymentMethod = PaymentMethod.creditCard;\n }\n}","\n\n\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n \"+_vm._s(_vm.session)+\"\\n \"),_c('br'),_vm._v(\"\\n SenderHash: \"+_vm._s(_vm.senderHash)+\"\\n \"),_c('br'),_vm._v(\"\\n BrandName: \"+_vm._s(_vm.brandName)+\"\\n \"),_c('br'),_vm._v(\"\\n CardToken: \"+_vm._s(_vm.cardToken)+\"\\n \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{on:{\"click\":_vm.createCheckout}},[_vm._v(\"Cartão de Crédito\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{on:{\"click\":_vm.createPreApproval}},[_vm._v(\"Assinatura\")])])}\nvar staticRenderFns = []\nexport { render, staticRenderFns }","/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./PagSeguroCheckout.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./PagSeguroCheckout.vue\"\n/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1dcf62d8\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./PagSeguroCheckout.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n"],"sourceRoot":""}