PageSourceSearch

https://safe2pay.com.br/_nuxt/8b633bb.js

js safe2pay.com.br collected 2026-10-04 16:08:21 UTC 52,140 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[3,87,89,90,92,93],{349:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(43),n(53);function r(e){return window.location.host.includes("localhost")?"http://localhost:63582/v2":window.location.host.includes("-h")?"https://app-site-s2p-bff-hml.azurewebsites.net/v2":"https://app-site-s2p-bff-prod.azurewebsites.net/v2"}},397:function(e,t,n){"use strict";n.r(t);n(122);var r={name:"CnpjField",components:{TheMask:n(347).TheMask},props:{value:String,forId:String,maxlength:Number,placeholder:String,inputType:String,labelText:String,disabled:Boolean,inputClass:String,showTooltip:Boolean},data:function(){return{isFocused:!1,document:this.value}},methods:{handleCnpjInput:function(){this.$emit("input",this.document=this.document.toUpperCase())}}},o=n(3),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative w-full"},[t("label",{staticClass:"leading-160 absolute left-4 top-2 text-xs font-bold uppercase tracking-tighter",class:{focused:e.isFocused},attrs:{for:e.forId}},[e._v("\n    "+e._s(e.labelText)+"\n  ")]),e._v(" "),t("the-mask",{class:["flex h-16 w-full flex-col items-start justify-center rounded-md bg-gray-200 px-4 pt-4 outline-none border",e.inputClass],attrs:{id:e.forId,autocomplete:"off",mask:["XX.XXX.XXX/XXXX-##"],type:e.inputType,placeholder:e.placeholder,maxlength:e.maxlength,disabled:e.disabled,required:""},on:{input:e.handleCnpjInput,focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1}},model:{value:e.document,callback:function(t){e.document=t},expression:"document"}})],1)}),[],!1,null,null,null);t.default=component.exports},477:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{h(r.next(e))}catch(e){c(e)}}function d(e){try{h(r.throw(e))}catch(e){c(e)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,d)}h((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=void 0;var c=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();t.ReCaptchaInstance=c},493:function(e,t,n){"use strict";n.r(t);var r={components:{cnpjField:n(397).default},props:{razaoSocial:String,cnpj:String,cep:String,logradouro:String,numero:String,bairro:String,cidade:String,estado:String},data:function(){return{document:this.cnpj}}},o=n(3),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("cnpj-field",{attrs:{labelText:"CNPJ",disabled:!0},model:{value:e.document,callback:function(t){e.document=t},expression:"document"}}),e._v(" "),t("div",{staticClass:"mt-8 w-full"},[t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("\n        Razão Social\n      ")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.razaoSocial)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("CEP")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.cep)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("\n        Logradouro\n      ")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.logradouro)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("Número")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.numero)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"}
1,[e._v("Bairro")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.bairro)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("Cidade")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.cidade)+"\n      ")])]),e._v(" "),t("div",{staticClass:"mb-6 flex w-full justify-between"},[t("h5",{staticClass:"leading-132 text-xl font-semibold text-blue-600"},[e._v("Estado")]),e._v(" "),t("h5",{staticClass:"leading-132 text-right text-xl font-normal",staticStyle:{color:"#00304d"}},[e._v("\n        "+e._s(e.estado)+"\n      ")])])])],1)}),[],!1,null,null,null);t.default=component.exports},494:function(e,t,n){"use strict";n.r(t);n(42),n(45);var r=n(11),o=(n(63),n(9),n(32),n(33),n(384),n(385),n(163),n(54)),c=n.n(o),l=n(349),d={data:function(){return{useTermsUrl:null,checkbox1:!1,checkbox2:!1,checkbox3:!1,isLoading:!1}},beforeMount:function(){this.downloadTermsOfUse()},methods:{downloadTermsOfUse:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.get("".concat(Object(l.a)(e),"/Documents/UseTerms"),{responseType:"blob"});case 2:(n=t.sent).data instanceof Blob&&(r=new Blob([n.data],{type:"application/pdf"}),o=URL.createObjectURL(r),e.useTermsUrl=o);case 4:case"end":return t.stop()}}),t)})))()},submitCheckbox:function(){this.isLoading=!0,this.$emit("form-submitted",{agreeWithTerms:this.checkbox1,confirmBankAccount:this.checkbox2,receiveEmails:this.checkbox3})}}},h=n(3),component=Object(h.a)(d,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"relative h-96 rounded-md border-2 border-gray-300 bg-white"},[t("embed",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.useTermsUrl,type:"application/pdf"}})]),e._v(" "),t("div",{staticClass:"mt-5 flex flex-col"},[t("label",{staticClass:"mb-2 text-sm font-normal text-gray-600"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkbox1,expression:"checkbox1"}],attrs:{disabled:e.isLoading,type:"checkbox"},domProps:{checked:Array.isArray(e.checkbox1)?e._i(e.checkbox1,null)>-1:e.checkbox1},on:{change:function(t){var n=e.checkbox1,r=t.target,o=!!r.checked;if(Array.isArray(n)){var c=e._i(n,null);r.checked?c<0&&(e.checkbox1=n.concat([null])):c>-1&&(e.checkbox1=n.slice(0,c).concat(n.slice(c+1)))}else e.checkbox1=o}}}),t("span",{staticClass:"ml-2"},[e._v("Li e aceito os termos de uso.*")])]),e._v(" "),t("label",{staticClass:"mb-2 text-sm font-normal text-gray-600"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkbox2,expression:"checkbox2"}],attrs:{disabled:e.isLoading,type:"checkbox"},domProps:{checked:Array.isArray(e.checkbox2)?e._i(e.checkbox2,null)>-1:e.checkbox2},on:{change:function(t){var n=e.checkbox2,r=t.target,o=!!r.checked;if(Array.isArray(n)){var c=e._i(n,null);r.checked?c<0&&(e.checkbox2=n.concat([null])):c>-1&&(e.checkbox2=n.slice(0,c).concat(n.slice(c+1)))}else e.checkbox2=o}}}),t("span",{staticClass:"ml-2"},[e._v("Confirmo ter uma conta bancária jurídica no CNPJ informado.*")])]),e._v(" "),t("label",{staticClass:"mb-2 text-sm font-normal text-gray-600"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkbox3,expression:"checkbox3"}],attrs:{disabled:e.isLoading,type:"checkbox"},domProps:{checked:Array.isArray(e.checkbox3)?e._i(e.checkbox3,null)>-1:e.checkbox3},on:{change:function(t){var n=e.checkbox3,r=t.target,o=!!r.checked;if(Array.isArray(n)){var c=e._i(n,null);r.checked?c<0&&(e.checkbox3=n.concat([null])):c>-1&&(e.checkbox3=n.slice(0,c).concat(n.slice(c+1)))}else e.checkbox3=o}}}),t("span",{staticClass:"ml-2"},[e._v("Concordo em receber e-mails e SMS promocionais e com novidades da Safe2Pay.")])])]),e._v(" "),e.isLoading?e._e():t("button",{staticClass:"mt-8 flex h-14 w-full items-center justify-center rounded-md bg-blue-500 text-base font-semibold text-white duration-300 md:text-lg",style:{backgroundColor:e.checkbox1&&e.checkbox2?"#0052EA":"#DCDCEC"},attrs:{disabled:!e.checkbox1||!e.checkbox2},on:{click:e.submitCheckbox}},[e._v("\n    Tudo certo!\n  ")]),e._v(" "),e.isLoading?t("button",{staticClass:"mt-8 flex h-14 w-full items-center justify-center rounded-md bg-blue-500 text-base font-semibold text-white duration-300 md:text-lg",style:{backgroundColor:"#0052EA"},attrs:{disabled:!0}},[t("div",{attrs:{role:"status"}},[t("svg",{staticClass:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",attrs:{"aria-hidden":"true",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}}),e._v(" "),t("path",{attrs:{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}})])])]):e._e()])}),[],!1,null,null,null);t.default=component.exports},495:function(e,t,n){"use strict";n.r(t);n(19),n(44),n(9),n(23),n(52),n(47),n(55),n(45),n(164),n(29),n(24),n(34),n(32),n(33);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,a){if(e){if("string"==typeof e)return o(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,c=function(){};return{s:c,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function o(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var c={name:"SiteOrSocial",data:function(){return{dropdowns:[{selectedOption:"site",inputValue:"",isValid:!1}],isSubmited:!1}},methods:{addNewDropdown:function(){this.dropdowns.push({selectedOption:"",inputValue:"",isValid:!1});var e,t=r(this.dropdowns);try{for(t.s();!(e=t.n()).done;){e.value.isValid=!0}}catch(e){t.e(e)}finally{t.f()}},updateValue:function(e){this.dropdowns[e].inputValue=""},submitForm:function(){if(this.isSubmited=!0,!this.validateURLs())return!1;var e=this.dropdowns.filter((function(e){return e.selectedOption.length>0}));this.$emit("form-submitted",e)},removeDropdown:function(e){this.dropdowns.splice(e,1)},validateURLs:function(){var e,t=r(this.dropdowns);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.selectedOption.length>0&&!this.isValidURL(n.inputValue)?n.isValid=!1:n.isValid=!0}}catch(e){t.e(e)}finally{t.f()}var o,c=r(this.dropdowns);try{for(c.s();!(o=c.n()).done;){if(!1===o.value.isValid)return!1}}catch(e){c.e(e)}finally{c.f()}return!0},isValidURL:function(e){return/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}(\/\S*)?$/.test(e)}}},l=n(3),component=Object(l.a)(c,(function(){var e=this,t=e._self._c;return t("form",{staticClass:"w-full",on:{submit:function(t){return t.preventDefault(),e.submitForm.apply(null,arguments)}}},[e._l(e.dropdowns,(function(n,r){return t("div",{key:r,staticClass:"relative mb-4"},[n.selectedOption?e._e():t("select",{directives:[{name:"model",rawName:"v-model",value:n.selectedOption,expression:"item.selectedOption"}],staticClass:"focus:border-teal relative mb-2 flex h-16 w-full appearance-none flex-col items-center justify-center rounded-md bg-gray-200 px-4 pt-5 focus:outline-none focus:ring-0",on:{change:[function(t){var r=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(n,"selectedOption",t.target.multiple?r:r[0])},function(t){return e.updateValue(r)}]}},[t("option",{attrs:{value:"",disabled:"",selected:""}},[e._v("Escolha o que deseja inserir")]),e._v(" "),t("option",{attrs:{value:"site"}},[e._v("Site")]),e._v(" "),t("option",{attrs:{value:"rede-social"}},[e._v("Social Media")])]),e._v(" "),n.selectedOption?t("div",{staticClass:"relative flex w-full flex-wrap items-center justify-between"},[t("label",{staticClass:"leading-160 absolute left-4 top-2 text-xs font-bold uppercase tracking-tighter",staticStyle:{color:"#0052EA"}},[e._v("\n        "+e._s("site"===n.selectedOption?"URL":"Rede Social")+"\n      ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:n.inputValue,expression:"item.inputValue"}],staticClass:"focus:border-teal mb-2 flex h-16 w-full flex-col items-start justify-center rounded-md bg-gray-200 px-4 pt-4 focus:outline-none focus:ring-0",class:{"w-full":0===r,"w-10/12 sm:w-11/12":0!==r},attrs:{type:"text"},domProps:{value:n.inputValue},on:{input:function(t){t.target.composing||e.$set(n,"inputValue",t.target.value)}}}),e._v(" "),0!==r?t("svg",{staticClass:"close mb-2 cursor-pointer",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},on:{click:function(t){return e.removeDropdown(r)}}},[t("g",{attrs:{"clip-path":"url(#clip0_3950_12999)"}},[t("path",{attrs:{d:"M18.3007 5.70973C17.9107 5.31973 17.2807 5.31973 16.8907 5.70973L12.0007 10.5897L7.1107 5.69973C6.7207 5.30973 6.0907 5.30973 5.7007 5.69973C5.3107 6.08973 5.3107 6.71973 5.7007 7.10973L10.5907 11.9997L5.7007 16.8897C5.3107 17.2797 5.3107 17.9097 5.7007 18.2997C6.0907 18.6897 6.7207 18.6897 7.1107 18.2997L12.0007 13.4097L16.8907 18.2997C17.2807 18.6897 17.9107 18.6897 18.3007 18.2997C18.6907 17.9097 18.6907 17.2797 18.3007 16.8897L13.4107 11.9997L18.3007 7.10973C18.6807 6.72973 18.6807 6.08973 18.3007 5.70973Z",fill:"#727577"}})]),e._v(" "),t("defs",[t("clipPath",{attrs:{id:"clip0_3950_12999"}}
1,[t("rect",{attrs:{width:"24",height:"24",fill:"white"}})])])]):e._e(),e._v(" "),e.isSubmited&&!n.isValid?t("span",{staticClass:"m-0 basis-full text-sm font-normal text-red-600"},[e._v("\n        Adicione uma URL válida\n      ")]):e._e()]):e._e()])})),e._v(" "),t("button",{staticClass:"mb-10 mt-8 flex h-14 w-full items-center justify-center rounded-md border-2 border-blue-600 bg-white p-2 text-sm font-semibold text-blue-600 md:p-8 lg:text-lg",attrs:{type:"button"},on:{click:e.addNewDropdown}},[e._v("\n    Adicionar outro site ou rede social\n  ")]),e._v(" "),t("button",{staticClass:"flex h-14 w-full items-center justify-center rounded-md bg-blue-600 p-2 text-sm font-semibold text-white md:p-8 lg:text-lg",attrs:{type:"submit"}},[e._v("\n    Prosseguir\n  ")])],2)}),[],!1,null,null,null);t.default=component.exports},501:function(e,t,n){"use strict";n.r(t);var r={name:"ChooseLegalRepresentative",props:{listaSocios:Array},data:function(){return{isSubmited:!1,selectedOption:""}},methods:{submitForm:function(){if(this.isSubmited=!0,!this.selectedOption)return!1;this.$emit("form-submitted",this.selectedOption)}}},o=n(3),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("form",{staticClass:"w-full",on:{submit:function(t){return t.preventDefault(),e.submitForm.apply(null,arguments)}}},[e._l(e.listaSocios,(function(n,r){return t("div",{key:r,staticClass:"relative mb-4"},[t("label",{staticClass:"mb-2 flex h-16 items-center justify-start rounded-md bg-gray-200 px-4 text-base font-normal"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedOption,expression:"selectedOption"}],staticClass:"hidden appearance-none",attrs:{type:"radio",name:"groupSocios"},domProps:{value:n.Name,checked:e._q(e.selectedOption,n.Name)},on:{change:function(t){e.selectedOption=n.Name}}}),e._v(" "),e.selectedOption==n.Name?t("svg",{staticClass:"mr-2",attrs:{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{x:"3",y:"3.40039",width:"18",height:"18",rx:"9",stroke:"#0052EA","stroke-width":"2"}}),e._v(" "),t("rect",{attrs:{x:"6",y:"6.40039",width:"12",height:"12",rx:"6",fill:"#0052EA"}})]):t("svg",{staticClass:"mr-2",attrs:{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{x:"3",y:"3.40039",width:"18",height:"18",rx:"9",stroke:"#0052EA","stroke-width":"2"}})]),e._v("\n      "+e._s(n.Name)+"\n    ")])])})),e._v(" "),e._m(0),e._v(" "),t("button",{staticClass:"mt-10 flex h-14 w-full items-center justify-center rounded-md bg-blue-600 p-2 text-sm font-semibold text-white md:p-8 lg:text-lg",style:{backgroundColor:e.selectedOption?"#0052EA":"#DCDCEC"},attrs:{type:"submit",disabled:!e.selectedOption}},[e._v("\n    Prosseguir\n  ")])],2)}),[function(){var e=this,t=e._self._c;return t("p",{staticClass:"mb-8 text-sm font-normal text-gray-600"},[e._v("\n    O "),t("strong",[e._v("responsável legal")]),e._v(" escolhido deve ser o mesmo cadastrado na Receita Federal.\n  ")])}],!1,null,null,null);t.default=component.exports},502:function(e,t,n){"use strict";n.r(t);var r={props:{ResponsibleName:String,ResponsibleIdentity:String,ResponsibleBirthdate:String,ResponsiblePhone:String,Email:String,HasContact:Boolean,ContactName:String,ContactCpf:String,ContactPhone:String,ContactEmail:String},methods:{returnFormModal:function(){this.$emit("form-submitted",{ResponsibleName:this.ResponsibleName,ResponsibleIdentity:this.ResponsibleIdentity,ResponsibleBirthdate:this.ResponsibleBirthdate,ResponsiblePhone:this.ResponsiblePhone,Email:this.Email,HasContact:this.HasContact,ContactName:this.ContactName,ContactCpf:this.ContactCpf,ContactPhone:this.ContactPhone,ContactEmail:this.ContactEmail})}}},o=n(3),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex w-full max-w-screen-xl justify-center"},[t("div",{staticClass:"box-border flex w-11/12 flex-col rounded-lg bg-white p-4 sm:w-[628px] sm:p-4"},[e._m(0),e._v(" "),t("div",{staticClass:"items:center flex w-full flex-col sm:flex-row sm:justify-around"},[t("NuxtLink",{attrs:{to:"/"}},[t("button",{staticClass:"flex h-14 w-full items-center justify-center rounded-md bg-white px-6 text-base font-semibold tracking-wide text-blue-600 lg:w-auto flex-grow"},[e._v("\n          Voltar para home\n        ")])]),e._v(" "),t("button",{staticClass:"mb-8 flex h-14 w-full items-center justify-center rounded bg-blue-600 px-6 text-base font-semibold text-white sm:mb-0 lg:w-auto",on:{click:e.returnFormModal}},[e._v("\n        Tentar outro CPF\n      ")])],1)])])}),[function(){var e=this,t=e._self._c;return t("p",{staticClass:"text-center text-base"},[e._v("\n      Verificamos que o CPF informado "),t("span",{staticClass:"font-semibold"},[e._v("não coincide")]),e._v(" com o responsável pela empresa na Receita Federal! 🧐\n      "),t("br"),t("br"),e._v("\n      Por gentileza, revise seus dados para prosseguirmos.\n      "),t("br"),t("br"),e._v("\n      Falta pouco para a "),t("span",{staticClass:"font-semibold"},[e._v("#NossaRevolução")]),e._v(" começar! 💙\n      "),t("br"),t("br")])}],!1,null,null,null);t.default=component.exports},503:function(e,t,n){"use strict";n.r(t);var r={props:{ResponsibleName:String,ResponsibleIdentity:String,ResponsibleBirthdate:String,ResponsiblePhone:String,Email:String,HasContact:Boolean,ContactName:String,ContactCpf:String,ContactPhone:String,ContactEmail:String},methods:{returnFormModal:function(){this.$emit("form-submitted",{ResponsibleName:this.ResponsibleName,ResponsibleIdentity:this.ResponsibleIdentity,ResponsibleBirthdate:this.ResponsibleBirthdate,ResponsiblePhone:this.ResponsiblePhone,Email:this.Email,HasContact:this.HasContact,ContactName:this.ContactName,ContactCpf:this.ContactCpf,ContactPhone:this.ContactPhone,ContactEmail:this.ContactEmail})}}},o=n(3),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex w-full max-w-screen-xl justify-center"},[t("div",{staticClass:"box-border flex w-11/12 flex-col rounded-lg bg-white p-2 sm:w-[628px] sm:p-2"},[e._m(0),e._v(" "),t("div",{staticClass:"items:center flex w-full flex-col sm:flex-row sm:justify-around"},[t("NuxtLink",{attrs:{to:"/"}},[t("button",{staticClass:"flex h-14 w-full items-center justify-center rounded-md bg-white px-6 text-base font-semibold tracking-wide text-blue-600 lg:w-auto flex-grow"},[e._v("\n          Voltar para home\n        ")])]),e._v(" "),t("button",{staticClass:"mb-6 flex h-14 w-full items-center justify-center rounded bg-blue-600 px-6 text-base font-semibold text-white sm:mb-0 lg:w-auto",on:{click:e.returnFormModal}},[e._v("\n        Tentar outra data\n      ")])],1)])])}),[function(){var e=this,t=e._self._c;return t("p",{staticClass:"text-center text-base"},[e._v("\n      Ops! Encontramos uma divergência na "),t("span",{staticClass:"font-semibold"},[e._v("data de nascimento")]),e._v(" do responsável informado. 😓\n      "),t("br"),t("br"),e._v("\n      Por favor, verifique e atualize essa informação!\n      "),t("br"),t("br"),e._v("\n      Estamos ansiosos para te dar "),t("span",{staticClass:"font-semibold"},[e._v("boas-vindas")]),e._v(" à Safe2Pay! 🤩\n      "),t("br"),t("br")])}],!1,null,null,null);t.default=component.exports},617:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
1ise))((function(o,c){function l(e){try{h(r.next(e))}catch(e){c(e)}}function d(e){try{h(r.throw(e))}catch(e){c(e)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,d)}h((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(618);t.VueReCaptcha=function(e,t){var n=this,c=new l,d=!1,h=null,f=[];e.prototype.$recaptchaLoaded=function(){return new Promise((function(e,t){return null!==h?t(h):!0===d?e(!0):void f.push({resolve:e,reject:t})}))},c.initializeReCaptcha(t).then((function(t){d=!0,e.prototype.$recaptcha=function(e){return r(n,void 0,void 0,(function(){return o(this,(function(n){return[2,t.execute(e)]}))}))},e.prototype.$recaptchaInstance=t,f.forEach((function(e){return e.resolve(!0)}))})).catch((function(e){h=e,f.forEach((function(t){return t.reject(e)}))}))};var l=function(){function e(){}return e.prototype.initializeReCaptcha=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){return[2,c.load(e.siteKey,e.loaderOptions)]}))}))},e}()},618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=t.getInstance=t.load=void 0;var r=n(619);Object.defineProperty(t,"load",{enumerable:!0,get:function(){return r.load}}),Object.defineProperty(t,"getInstance",{enumerable:!0,get:function(){return r.getInstance}});var o=n(477);Object.defineProperty(t,"ReCaptchaInstance",{enumerable:!0,get:function(){return o.ReCaptchaInstance}})},619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInstance=t.load=void 0;var r,o=n(477);!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(r||(r={}));var c=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===r.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===r.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(r.LOADING);var c=new e;return new Promise((function(l,d){c.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(r.LOADED);var d=c.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),h=new o.ReCaptchaInstance(t,d,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(h)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&h.hideBadge(),e.instance=h,l(h)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],d(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?r.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,o,c,l){var d=this;void 0===n&&(n=!1),void 0===o&&(o=!1),void 0===c&&(c={}),void 0===l&&(l="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script","");var f="https://www.google.com/recaptcha/api.js";n&&(f=o?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),o&&(f="https://www.google.com/recaptcha/enterprise.js"),l&&(f=l),c.render&&(c.render=void 0);var m=this.buildQueryString(c);return h.src=f+"?render=explicit"+m,new Promise((function(t,n){h.addEventListener("load",d.waitForScriptToLoad((function(){t(h)}),o),!1),h.onerror=function(t){e.setLoadingState(r.NOT_LOADED),n(t)},document.head.appendChild(h)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var o={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,o):e.render(n.container,o):r?e.enterprise.render(o):e.render(o)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();t.load=c.load,t.getInstance=c.getInstance},633:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(35),n(36),n(25),n(9),n(20);var r=n(11),o=n(10),c=(n(63),n(42),n(43),n(29),n(24),n(53),n(46),n(123),n(241),n(54)),l=n.n(c),d=n(1),h=n(617),f=n(95),m=n(397),v=n(493),x=n(494),C=n(495),y=n(634),w=n(501),_=n(502),S=n(503),R=n(349);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?k(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={name:"CnpjForm",components:{cnpjField:m.default,InfoDisplay:v.default,TermsOfUse:x.default,SiteOrSocial:C.default,LegalRepresentative:y.default,ChooseLegalRepresentative:w.default,InvalidCPF:_.default,InvalidBirthdate:S.default},data:function(){return{Merchant:{AdditionalInformation:{IsOperation:!1,IsApi:!1,IsInterface:!1,IsOtherSoftware:!1},HasTechContact:!1,TechName:null,TechIdentity:null,TechEmail:null,TechPhone:null,Address:{Street:null,Number:null,District:null,ZipCode:null,Complement:null,City:{Name:null},State:{Initials:null},Country:{Name:"BRASIL"}},HashPartner:null,Name:null,FantasyName:null,Identity:null,ResponsibleName:null,ResponsibleIdentity:null,ResponsiblePhone:null,ResponsibleBirthdate:null,Email:null,Fingerprint:null,RecaptchaToken:null},isLoading:!1,listaSocios:[],formStep:0,isFocused:!1,h5Text:"Por favor, digite o CNPJ da empresa",dropdowns:[{selectedOption:"",inputValue:""}],dateDiff:0}},computed:M(M({},Object(f.c)(["partnerLinkHash"])),{},{isValidCnpj:function(){if(!this.Merchant.Identity||""===this.Merchant.Identity.trim())return!1;var e=this.Merchant.Identity.replace(/[.\-/]/g,"").toUpperCase();if(14!==e.length)return!1;if(!/^[A-Z0-9]{12}[0-9]{2}$/.test(e))return!1;var t=[5,4,3,2,9,8,7,6,5,4,3,2],n=[6,5,4,3,2,9,8,7,6,5,4,3,2];try{for(var r=0,i=0;i<12;i++){r+=(e.charCodeAt(i)-48)*t[i]}var o=r%11,c=o<2?0:11-o;if(parseInt(e[12],10)!==c)return!1;for(var l=0,d=0;d<12;d++){l+=(e.charCodeAt(d)-48)*n[d]}var h=(l+=c*n[12])%11,f=h<2?0:11-h;return parseInt(e[13],10)===f}catch(e){return!1}}}),methods:{resetMerchant:function(){this.Merchant={AdditionalInformation:{IsOperation:!1,IsApi:!1,IsInterface:!1,IsOtherSoftware:!1},HasTechContact:!1,TechName:null,TechIdentity:null,TechEmail:null,TechPhone:null,Address:{Street:null,Number:null,District:null,ZipCode:null,Complement:null,City:{Name:null},State:{Initials:null},Country:{Name:"BRASIL"}},HashPartner:null,Name:null,FantasyName:null,Identity:null,ResponsibleName:null,ResponsibleIdentity:null,ResponsiblePhone:null,ResponsibleBirthdate:null,Email:null,Fingerprint:null,RecaptchaToken:null}},changeToStep0:function(){this.h5Text="Por favor, digite o CNPJ da empresa",this.formStep=0,this.listaSocios=[],this.resetMerchant(),this.scrollSmoth()},scrollSmoth:function(){document.querySelector(".scroll-scene").scrollIntoView({behavior:"smooth",block:"start"})},changeToStep1:function(){this.isValidCnpj&&this.consultarBlocklist()},decideIfShouldSelectResponsable:function(){0===this.listaSocios.length&&(this.Merchant.ResponsibleName=null,this.Merchant.ResponsibleIdentity=null,this.changeToStep3()),1===this.listaSocios.length&&(this.Merchant.ResponsibleName=this.listaSocios[0].Name,this.Merchant.ResponsibleIdentity=this.listaSocios[0].Identity,this.changeToStep3()),this.listaSocios.length>1&&(this.h5Text="Selecione o responsável legal pela empresa",this.formStep=99,this.scrollSmoth())},changeToStep2:function(){this.h5Text="Agora insira seu site ou rede social do seu negócio",this.formStep=2,this.scrollSmoth()},changeToStep3:function(){this.h5Text="Insira os dados do Representante Legal",this.formStep=3,this.scrollSmoth()},changeToStep4:function(){this.h5Text="Por favor, leia com atenção os Termos de Uso do Contrato",this.formStep=4,this.scrollSmoth()},representativeSubmitted:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=!0,t.Merchant.ResponsibleName=e.name,t.Merchant.ResponsibleBirthdate=e.birthday,t.Merchant.ResponsibleIdentity=e.cpf,t.Merchant.ResponsiblePhone=e.phone,t.Merchant.Email=e.mail,t.Merchant.HasTechContact=e.hasContact,e.hasContact&&(t.Merchant.TechName=e.contactName,t.Merchant.TechIdentity=e.contactCpf,t.Merchant.TechEmail=e.contactMail,t.Merchant.TechPhone=e.contactPhone),n.prev=8,n.next=11,l.a.get("".concat(Object(R.a)(t),"/Blocklist/").concat(t.Merchant.ResponsibleIdentity.replace(/\D/g,"")));case 11:r=n.sent,n.next=19;break;case 14:return n.prev=14,n.t0=n.catch(8),t.isLoading=!1,t.$emit("modal-screen",13),n.abrupt("return");case 19:if(!(r.data.HasError||null!=r.data.ResponseDetail&&null!=r.data.ResponseDetail.Identity)){n.next=23;break}return t.isLoading=!1,t.$emit("modal-screen",13),n.abrupt("return");case 23:return n.next=25,l.a.post("".concat(Object(R.a)(t),"/MerchantPreview/ValidatePriorConsultant"),t.Merchant);case 25:if(o=n.sent,t.isLoading=!1,!o.data.HasError){n.next=37;break}n.t1=o.data.ErrorCode,n.next="802"===n.t1?31:"1113"===n.t1?33:35;break;case 31:return t.changeToStep100(),n.abrupt("return");case 33:return t.changeToStep101(),n.abrupt("return");case 35:return t.$emit("modal-screen",13),n.abrupt("return");case 37:t.changeToStep4();case 38:case"end":return n.stop()}}),n,null,[[8,14]])})))()},socialSubmitted:function(e){this.socialInfo=e,this.changeToStep3()}
1,chooseRepresentativeSubmitted:function(e){this.Merchant.ResponsibleName=e,this.changeToStep3()},finalizarCadastro:function(e){this.isLoading=!0,this.termsCheckbox=e,this.SendData()},SendData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getRecaptchaToken("signup");case 2:return n=t.sent,e.Merchant.RecaptchaToken=n,e.Merchant.Fingerprint="752251115",e.Merchant.Address.ZipCode=e.onlyNumbers(e.Merchant.Address.ZipCode),e.Merchant.TechPhone=e.onlyNumbers(e.Merchant.TechPhone),e.Merchant.TechIdentity=e.onlyNumbers(e.Merchant.TechIdentity),e.Merchant.ResponsibleIdentity=e.onlyNumbers(e.Merchant.ResponsibleIdentity),e.Merchant.ResponsiblePhone=e.onlyNumbers(e.Merchant.ResponsiblePhone),e.partnerLinkHash?e.Merchant.HashPartner=e.partnerLinkHash:e.Merchant.HashPartner=localStorage.getItem("PartnerHash"),t.next=13,l.a.post("".concat(Object(R.a)(e),"/MerchantPreview"),e.Merchant);case 13:if(!(r=t.sent).data.HasError){t.next=35;break}t.t0=r.data.ErrorCode,t.next="802"===t.t0?18:"1113"===t.t0?20:"186"===t.t0?22:"930"===t.t0?24:"931"===t.t0?26:"187"===t.t0?28:"297"===t.t0?30:32;break;case 18:return e.changeToStep100(),t.abrupt("break",34);case 20:return e.changeToStep101(),t.abrupt("break",34);case 22:return e.$emit("modal-screen",5),t.abrupt("break",34);case 24:return e.$emit("modal-screen",2),t.abrupt("break",34);case 26:return e.$emit("modal-screen",3),t.abrupt("break",34);case 28:return e.$emit("modal-screen",15),t.abrupt("break",34);case 30:return e.$emit("modal-screen",16),t.abrupt("break",34);case 32:return e.$emit("modal-screen",4),t.abrupt("break",34);case 34:return t.abrupt("return");case 35:e.$emit("modal-screen",6);case 36:case"end":return t.stop()}}),t)})))()},changeToStep100:function(){this.formStep=100,this.scrollSmoth()},changeToStep101:function(){this.formStep=101,this.scrollSmoth()},restoreToStep3:function(e){this.isLoading=!1,this.Merchant.ResponsibleName=e.ResponsibleName,this.Merchant.ResponsibleIdentity=e.ResponsibleIdentity,this.Merchant.ResponsibleBirthdate=e.ResponsibleBirthdate,this.Merchant.ResponsiblePhone=e.ResponsiblePhone,this.Merchant.Email=e.Email,e.HasContact&&(this.Merchant.TechName=e.ContactName,this.Merchant.TechIdentity=e.ContactCpf,this.Merchant.TechEmail=e.ContactEmail,this.Merchant.TechPhone=e.ContactPhone),this.changeToStep3()},onlyNumbers:function(e){return null!=e?e.replace(/\D/g,""):e},getRecaptchaToken:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$recaptchaLoaded();case 2:return n.next=4,t.$recaptcha(e);case 4:return r=n.sent,n.abrupt("return",r);case 6:case"end":return n.stop()}}),n)})))()},consultarMerchantPreview:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,d,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.Merchant.Identity.replace(/[^a-zA-Z0-9]/g,""),t.prev=1,t.next=4,l.a.get("".concat(Object(R.a)(e),"/MerchantPreview/").concat(n));case 4:r=t.sent,t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(1),e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 12:if(!r.data.HasError){t.next=16;break}return e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 16:if(null!=(o=r.data.ResponseDetail)){t.next=20;break}return e.consultarNaReceita(),t.abrupt("return");case 20:if("3"!==(c=o.Status)){t.next=24;break}return e.$emit("modal-screen",8),t.abrupt("return");case 24:if("2"!==c){t.next=55;break}return t.next=27,l.a.get("".concat(Object(R.a)(e),"/MerchantPreviewHistory/").concat(o.Id));case 27:if(!(d=t.sent).data.HasError){t.next=31;break}return e.$emit("modal-screen",13),t.abrupt("return");case 31:h=d.data.ResponseDetail.IdRefusedReason,t.t1=h,t.next=1===t.t1?35:2===t.t1?37:3===t.t1?42:4===t.t1?47:52;break;case 35:return e.$emit("modal-screen",9),t.abrupt("break",55);case 37:if(!e.aptoNaRF(n)){t.next=40;break}return e.consultarNaReceita(),t.abrupt("break",55);case 40:return e.$emit("modal-screen",10),t.abrupt("break",55);case 42:if(!e.setDaysBeforeRetry(d.data.ResponseDetail)){t.next=45;break}return e.consultarNaReceita(),t.abrupt("break",55);case 45:return e.$emit("modal-screen",11,{dateDiff:e.dateDiff}),t.abrupt("break",55);case 47:if(!e.aptoNaRF(n)){t.next=50;break}return e.consultarNaReceita(),t.abrupt("break",55);case 50:return e.$emit("modal-screen",12),t.abrupt("break",55);case 52:return e.setDaysBeforeRetry(d.data.ResponseDetail)?e.consultarNaReceita():e.$emit("modal-screen",11,{dateDiff:e.dateDiff}),t.abrupt("break",55);case 55:"1"===c&&e.consultarNaReceita();case 56:case"end":return t.stop()}}),t,null,[[1,7]])})))()},consultarBlocklist:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.prev=1,t.next=4,l.a.get("".concat(Object(R.a)(e),"/Blocklist/").concat(e.Merchant.Identity.replace(/[^a-zA-Z0-9]/g,"")));case 4:n=t.sent,t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(1),e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 12:if(!(n.data.HasError||null!=n.data.ResponseDetail&&null!=n.data.ResponseDetail.Identity)){t.next=16;break}return e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 16:if(null!=n.data.ResponseDetail){t.next=20;break}return e.consultarMerchant(),t.abrupt("return");case 20:e.$emit("modal-screen",9);case 21:case"end":return t.stop()}}),t,null,[[1,7]])})))()},consultarMerchant:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.prev=1,t.next=4,l.a.get("".concat(Object(R.a)(e),"/Merchant/").concat(e.Merchant.Identity.replace(/[^a-zA-Z0-9]/g,"")));case 4:n=t.sent,t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(1),e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 12:if(!n.data.HasError){t.next=16;break}return e.isLoading=!1,e.$emit("modal-screen",13),t.abrupt("return");case 16:if(null!=(r=n.data.ResponseDetail)){t.next=20;break}return e.consultarMerchantPreview(),t.abrupt("return");case 20:if(!r.IsSubAccount){t.next=23;break}return e.consultarMerchantPreview(),t.abrupt("return");case 23:e.isLoading=!1,e.$emit("modal-screen",5);case 25:case"end":return t.stop()}}),t,null,[[1,7]])})))()},setDaysBeforeRetry:function(e){var t=e.ChangedDate.split(/[\s/:]+/),n=t[0],r=t[1]-1,o=t[2],c=new Date(o,r,n),l=new Date;return this.dateDiff=Math.floor((c-l)/1e3/60/60/24+91),this.dateDiff<=0},aptoNaRF:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getRecaptchaToken("signup");case 3:return r=n.sent,n.next=6,l.a.get("".concat(Object(R.a)(t),"/ReceitaFederal/").concat(e),{headers:{"X-RECAPTCHA-TOKEN":r}});case 6:if("ATIVA"===n.sent.data.ResponseDetail.situacao){n.next=9;break}return n.abrupt("return",!1);case 9:return n.abrupt("return",!0);case 12:n.prev=12,n.t0=n.catch(0),t.$emit("modal-screen",13);case 15:case"end":return n.stop()}}),n,null,[[0,12]])})))()},consultarNaReceita:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,data,o,i,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.getRecaptchaToken("signup");case 3:return n=t.sent,t.prev=4,t.next=7,l.a.get("".concat(Object(R.a)(e),"/ReceitaFederal/").concat(e.Merchant.Identity.replace(/[^a-zA-Z0-9]/g,"")),{headers:{"X-RECAPTCHA-TOKEN":n}});case 7:if(r=t.sent,data=r.data.ResponseDetail,e.isLoading=!1,null!=data){t.next=13;break}return e.$emit("modal-screen",17),t.abrupt("return");case 13:if(200!==r.status){t.next=39;break}if("ERROR"!==data.status){t.next=17;break}return e.$emit("modal-screen",17),t.abrupt("return");case 17:if("OK"!==data.status){t.next=36;break}if("ATIVA"===data.situacao){t.next=21;break}return e.$emit("modal-screen",12),t.abrupt("return");case 21:if(e.Merchant.Name=data.nome,e.Merchant.FantasyName=data.fantasia,e.Merchant.Address.ZipCode=data.cep,e.Merchant.Address.Street=data.logradouro,e.Merchant.Address.District=data.bairro,e.Merchant.Address.Number=data.numero,e.Merchant.Address.City.Name=data.municipio,e.Merchant.Address.State.Initials=data.uf,e.Merchant.Address.Country.Name="BRASIL",data.natureza_juridica.includes("213-5"))null!=(o=e.onlyNumbers(data.nome))&&11===o.length&&e.listaSocios.push({Name:data.nome.replace(o,"").trim(),Identity:o});else if(data.natureza_juridica.includes("206-2")){if(null!==data.qsa&&data.qsa.length>0)for(i=0;i<data.qsa.length;i++)data.qsa[i].qual.includes("49")&&e.listaSocios.push({Name:data.qsa[i].nome,Identity:null})}else if(null!==data.qsa&&data.qsa.length>0)for(c=0;c<data.qsa.length;c++)e.listaSocios.push({Name:data.qsa[c].nome,Identity:null});e.h5Text="Antes de seguir, confira os dados da empresa",e.formStep=1,e.scrollSmoth(),t.next=37;break;case 36:e.$emit("modal-screen",4);case 37:t.next=40;break;case 39:e.$emit("modal-screen",4);case 40:t.next=48;break;case 42:if(t.prev=42,t.t0=t.catch(4),!t.t0.response||400!==t.t0.response.status){t.next=47;break}return e.$emit("modal-screen",14),t.abrupt("return");case 47:e.$emit("modal-screen",13);case 48:return t.prev=48,e.isLoading=!1,t.finish(48);case 51:case"end":return t.stop()}}),t,null,[[4,42,48,51]])})))()}},destroyed:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$recaptchaLoaded();case 2:e.$recaptchaInstance.hideBadge();case 4:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d.a.use(h.VueReCaptcha,{siteKey:"6LdJE_4eAAAAACQSVXpEwJAf7qzU8CjbOi-k39Ki"}),t.next=3,e.$recaptchaLoaded();case 3:e.$recaptchaInstance.showBadge();case 5:case"end":return t.stop()}}),t)})))()}},T=n(3),component=Object(T.a)(I,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full"},[100!==e.formStep&&101!==e.formStep?t("h5",{staticClass:"scroll-scene mb-12 w-11/12 pt-8 text-center text-base font-semibold text-black sm:w-full sm:pt-0 sm:text-xl"}
1,[e._v("\n    "+e._s(e.h5Text)+"\n  ")]):e._e(),e._v(" "),t("div",{staticClass:"relative w-full"},[0===e.formStep?t("cnpjField",{attrs:{maxlength:18,forId:"cnpjInput",placeholder:"Digite aqui o CNPJ",inputType:"text",labelText:"CNPJ",disabled:e.isLoading,inputClass:e.Merchant.Identity&&!e.isValidCnpj&&e.Merchant.Identity.length>13?"border-red-500 focus:border-red-500":"border-gray-300"},model:{value:e.Merchant.Identity,callback:function(t){e.$set(e.Merchant,"Identity",t)},expression:"Merchant.Identity"}}):e._e(),e._v(" "),e.Merchant.Identity&&!e.isValidCnpj&&e.Merchant.Identity.length>13?t("span",{staticClass:"text-red-500 text-sm mt-1"},[e._v("\n      CNPJ inválido.\n    ")]):e._e(),e._v(" "),0!==e.formStep||e.isLoading?e._e():t("button",{staticClass:"mt-6 flex h-14 w-full items-center justify-center rounded-md bg-blue-600 p-2 text-lg font-semibold text-white md:p-8",style:{backgroundColor:e.isValidCnpj?"#0052EA":"#DCDCEC"},attrs:{disabled:e.Merchant.Identity&&!e.isValidCnpj&&e.Merchant.Identity.length>13},on:{click:e.changeToStep1}},[e._v("\n      Consultar CNPJ\n    ")]),e._v(" "),0===e.formStep&&e.isLoading?t("button",{staticClass:"flex h-14 w-full items-center justify-center rounded-md bg-blue-600 p-2 text-lg font-semibold text-white md:p-8",style:{backgroundColor:"#0052EA"},attrs:{disabled:!0},on:{click:e.changeToStep1}},[t("div",{attrs:{role:"status"}},[t("svg",{staticClass:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",attrs:{"aria-hidden":"true",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}}),e._v(" "),t("path",{attrs:{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}})])])]):e._e(),e._v(" "),1===e.formStep?t("InfoDisplay",{attrs:{razaoSocial:e.Merchant.Name,cnpj:e.Merchant.Identity,cep:e.Merchant.Address.ZipCode,logradouro:e.Merchant.Address.Street,numero:e.Merchant.Address.Number,bairro:e.Merchant.Address.District,cidade:e.Merchant.Address.City.Name,estado:e.Merchant.Address.State.Initials}}):e._e(),e._v(" "),1===e.formStep?t("div",{staticClass:"w-full"},[t("p",{staticClass:"mb-8 mt-16 text-base font-normal text-gray-600"},[e._v("\n        Me conta, está tudo certo e podemos seguir para a próxima etapa?\n      ")]),e._v(" "),t("div",{staticClass:"flex w-full justify-around"},[t("button",{staticClass:"leading-148 flex h-14 w-auto items-center justify-center rounded-md bg-white px-6 text-base font-semibold tracking-wide text-blue-600",on:{click:e.changeToStep0}},[e._v("\n          Voltar\n        ")]),e._v(" "),t("button",{staticClass:"leading-148 h-14 w-auto items-center justify-center rounded-md bg-blue-600 px-6 text-base font-semibold tracking-wide text-white",on:{click:e.decideIfShouldSelectResponsable}},[e._v("\n          Sim, tudo certo\n        ")])])]):e._e(),e._v(" "),99===e.formStep?t("ChooseLegalRepresentative",{attrs:{listaSocios:e.listaSocios},on:{"form-submitted":e.chooseRepresentativeSubmitted}}):e._e(),e._v(" "),2===e.formStep?t("SiteOrSocial",{on:{"form-submitted":e.socialSubmitted}}):e._e(),e._v(" "),3===e.formStep?t("LegalRepresentative",{attrs:{IsLoading:e.isLoading,ResponsibleName:e.Merchant.ResponsibleName,ResponsibleIdentity:e.Merchant.ResponsibleIdentity,ResponsibleBirthdate:e.Merchant.ResponsibleBirthdate,ResponsiblePhone:e.Merchant.ResponsiblePhone,Email:e.Merchant.Email,HasContact:e.Merchant.HasTechContact,ContactName:e.Merchant.TechName,ContactCpf:e.Merchant.TechIdentity,ContactEmail:e.Merchant.TechEmail,ContactPhone:e.Merchant.TechPhone},on:{"form-submitted":e.representativeSubmitted}}
1):e._e(),e._v(" "),4===e.formStep?t("TermsOfUse",{on:{"form-submitted":e.finalizarCadastro}}):e._e(),e._v(" "),100===e.formStep?t("InvalidCPF",{attrs:{ResponsibleName:e.Merchant.ResponsibleName,ResponsibleIdentity:e.Merchant.ResponsibleIdentity,ResponsibleBirthdate:e.Merchant.ResponsibleBirthdate,ResponsiblePhone:e.Merchant.ResponsiblePhone,Email:e.Merchant.Email,HasContact:e.Merchant.HasTechContact,ContactName:e.Merchant.TechName,ContactCpf:e.Merchant.TechIdentity,ContactPhone:e.Merchant.TechPhone,ContactEmail:e.Merchant.TechEmail},on:{"form-submitted":e.restoreToStep3}}):e._e(),e._v(" "),101===e.formStep?t("InvalidBirthdate",{attrs:{ResponsibleName:e.Merchant.ResponsibleName,ResponsibleIdentity:e.Merchant.ResponsibleIdentity,ResponsibleBirthdate:e.Merchant.ResponsibleBirthdate,ResponsiblePhone:e.Merchant.ResponsiblePhone,Email:e.Merchant.Email,HasContact:e.Merchant.HasTechContact,ContactName:e.Merchant.TechName,ContactCpf:e.Merchant.TechIdentity,ContactPhone:e.Merchant.TechPhone,ContactEmail:e.Merchant.TechEmail},on:{"form-submitted":e.restoreToStep3}}):e._e()],1)])}),[],!1,null,null,null);t.default=component.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.