1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7794],{9103:function(e,t,r){r.d(t,{Fd:function(){return m},Hk:function(){return v},Jd:function(){return p},Ol:function(){return a},cy:function(){return s},eG:function(){return u},ht:function(){return f},iE:function(){return k},oH:function(){return c},rZ:function(){return h},w2:function(){return d}});let o=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,n=/^[A-Za-z0-9._]{1,30}$/,i={min:8,max:15},l=[{code:"BR",label:"BR",dialCode:"55",placeholder:"(00) 00000-0000",localDigits:11,groups:[2,5,4]},{code:"PT",label:"PT",dialCode:"351",placeholder:"000 000 000",localDigits:9,groups:[3,3,3]},{code:"AO",label:"AO",dialCode:"244",placeholder:"000 000 000",localDigits:9,groups:[3,3,3]},{code:"MZ",label:"MZ",dialCode:"258",placeholder:"00 000 0000",localDigits:9,groups:[2,3,4]},{code:"CV",label:"CV",dialCode:"238",placeholder:"000 00 00",localDigits:7,groups:[3,2,2]},{code:"GW",label:"GW",dialCode:"245",placeholder:"000 000 000",localDigits:9,groups:[3,3,3]},{code:"ST",label:"ST",dialCode:"239",placeholder:"000 0000",localDigits:7,groups:[3,4]},{code:"TL",label:"TL",dialCode:"670",placeholder:"000 0000",localDigits:7,groups:[3,4]},{code:"UK",label:"UK",dialCode:"44",placeholder:"0000 000000",localDigits:10,groups:[4,6]},{code:"ES",label:"ES",dialCode:"34",placeholder:"000 000 000",localDigits:9,groups:[3,3,3]},{code:"US",label:"US",dialCode:"1",placeholder:"(000) 000-0000",localDigits:10,groups:[3,3,4]}].reduce((e,t)=>(e[t.code]=t,e),{});function a(e){let t=e.trim();return t.length<2?{ok:!1,error:"Conta seu primeiro nome (m\xednimo 2 letras)."}:t.length>80?{ok:!1,error:"Nome muito longo. Use at\xe9 80 caracteres."}:/^\d/.test(t)?{ok:!1,error:"O nome n\xe3o pode come\xe7ar com n\xfamero."}:/[A-Za-zÃ-ÿ]/.test(t)?{ok:!0,value:t}:{ok:!1,error:"Use letras no seu nome."}}function c(e){let t=e.trim().toLowerCase();return 0===t.length?{ok:!1,error:"Informe um email."}:t.length>200?{ok:!1,error:"Email muito longo."}:o.test(t)?{ok:!0,value:t}:{ok:!1,error:"Confere o email â algo como [email protected]."}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!0},r=(e||"").replace(/\D/g,"");return r?11!==r.length||!function(e){if(!/^\d{11}$/.test(e)||/^(\d)\1{10}$/.test(e))return!1;let t=e.split("").map(e=>Number(e)),r=10*t.slice(0,9).reduce((e,t,r)=>e+t*(10-r),0)%11;if((10===r?0:r)!==t[9])return!1;let o=10*t.slice(0,10).reduce((e,t,r)=>e+t*(11-r),0)%11;return(10===o?0:o)===t[10]}(r)?{ok:!1,error:"Informe um CPF v\xe1lido."}:{ok:!0,value:r}:!1===t.required?{ok:!0,value:""}:{ok:!1,error:"Informe o CPF."}}function u(e){let t=(e||"").replace(/\D/g,"").slice(0,11);return t.length<=3?t:t.length<=6?"".concat(t.slice(0,3),".").concat(t.slice(3)):t.length<=9?"".concat(t.slice(0,3),".").concat(t.slice(3,6),".").concat(t.slice(6)):"".concat(t.slice(0,3),".").concat(t.slice(3,6),".").concat(t.slice(6,9),"-").concat(t.slice(9))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(/[A-Za-zÃ-ÿ]/.test(e||""))return{ok:!1,error:"Use apenas n\xfameros no WhatsApp."};let r=(e||"").replace(/\D/g,"");return 0===r.length?t.required?{ok:!1,error:"Informe o WhatsApp com c\xf3digo do pa\xeds ou DDD."}:{ok:!0,value:""}:r.length<i.min?{ok:!1,error:"WhatsApp incompleto. Inclua c\xf3digo do pa\xeds ou DDD."}:r.length>i.max?{ok:!1,error:"WhatsApp tem d\xedgitos demais. Confira o n\xfamero com c\xf3digo do pa\xeds."}:{ok:!0,value:r}}function p(e){return e?{ok:!0,value:!0}:{ok:!1,error:"Aceite os termos para continuar."}}function m(e){let t=(e||"").trim();if(!t)return{kind:"unknown",normalized:"",label:""};if(o.test(t))return{kind:"email",normalized:t.toLowerCase(),label:"email"};if(t.startsWith("@")){let e=t.replace(/^@/,"");return n.test(e)?{kind:"instagram",normalized:e,label:"Instagram"}:{kind:"unknown",normalized:t,label:""}}let r=t.replace(/\D/g,"");return/^[\d\s()+-]+$/.test(t)&&r.length>=i.min&&r.length<=i.max?{kind:"whatsapp",normalized:r,label:"WhatsApp"}:n.test(t)&&/[A-Za-z]/.test(t)?{kind:"instagram",normalized:t,label:"Instagram"}:{kind:"unknown",normalized:t,label:""}}
1function g(e,t,r){let o=l[t];return e.startsWith(o.dialCode)&&e.length>r?e.slice(o.dialCode.length):e}function f(e,t){if(t)return function(e,t){let r=(e||"").replace(/\D/g,"");if(!r)return"";let o=l[t];if("US"===t){let e=g(r,t,o.localDigits).slice(0,o.localDigits);return e.length<=3?"(".concat(e):e.length<=6?"(".concat(e.slice(0,3),") ").concat(e.slice(3)):"(".concat(e.slice(0,3),") ").concat(e.slice(3,6),"-").concat(e.slice(6))}let n=g(r,t,o.localDigits).slice(0,o.localDigits);return"BR"!==t?function(e,t){let r=[],o=0;for(let n of t){if(o>=e.length)break;r.push(e.slice(o,o+n)),o+=n}return o<e.length&&r.push(e.slice(o)),r.filter(Boolean).join(" ")}(n,o.groups):n.length<=2?"(".concat(n):n.length<=6?"(".concat(n.slice(0,2),") ").concat(n.slice(2)):n.length<=10?"(".concat(n.slice(0,2),") ").concat(n.slice(2,6),"-").concat(n.slice(6)):"(".concat(n.slice(0,2),") ").concat(n.slice(2,7),"-").concat(n.slice(7))}(e,t);if(!e)return"";let r=e.trim().startsWith("+"),o=e.replace(/\D/g,"");if(!o)return r?"+":"";if(r&&!o.startsWith("55")&&!o.startsWith("1"))return"+".concat(o.slice(0,i.max));let n="",a=o;if(r){let e=o.startsWith("55")?2:o.startsWith("1")?1:o.length>=12?3:2;n=o.slice(0,e),a=o.slice(e)}else o.length>11&&o.startsWith("55")&&(n="55",a=o.slice(2));let c=n?"+".concat(n," "):"";return 0===a.length?c.trim():a.length<=2?"".concat(c,"(").concat(a):a.length<=6?"".concat(c,"(").concat(a.slice(0,2),") ").concat(a.slice(2)):a.length<=10?"".concat(c,"(").concat(a.slice(0,2),") ").concat(a.slice(2,6),"-").concat(a.slice(6)):"".concat(c,"(").concat(a.slice(0,2),") ").concat(a.slice(2,7),"-").concat(a.slice(7,11))}function h(e){let t=e.trim();return!t||/[@A-Za-z]/.test(t)?e:f(t)}function v(e){let t=m(e);return"unknown"===t.kind?{ok:!1,error:"Informe um email, @ do Instagram ou WhatsApp com c\xf3digo do pa\xeds."}:{ok:!0,value:t}}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{requireName:!0,requireEmail:!0},r=!1!==t.requireName,o=!1!==t.requireEmail,i="";if(r||e.name&&e.name.trim().length>0){let t=a(e.name||"");if(!t.ok)return t;i=t.value}let l="";if(o||e.email&&e.email.trim().length>0){let t=c(e.email||"");if(!t.ok)return t;l=t.value}let s=d(e.whatsapp||"",{required:t.requireWhatsapp});if(!s.ok)return s;let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||"").trim().replace(/^@/,"");return 0===r.length?t.required?{ok:!1,error:"Informe seu @ do Instagram."}:{ok:!0,value:""}:n.test(r)?{ok:!0,value:r}:{ok:!1,error:"Use letras, n\xfameros, ponto ou underline (m\xe1x 30 caracteres)."}}(e.instagram||"",{required:t.requireInstagram});return u.ok?{ok:!0,value:{name:i,email:l,whatsapp:s.value,instagram:u.value}}:u}},8585:function(e,t,r){r.d(t,{LY:function(){return a},NS:function(){return c},OZ:function(){return l},dX:function(){return s},nH:function(){return i}});let o="vasto:engage:lead",n="vasto:engage:hub-profile";function i(){try{return function(e){if(!e)return null;try{let t=JSON.parse(e);if(!t||"object"!=typeof t)return null;return{name:"string"==typeof t.name?t.name:void 0,email:"string"==typeof t.email?t.email:void 0,whatsapp:"string"==typeof t.whatsapp?t.whatsapp:void 0,instagram:"string"==typeof t.instagram?t.instagram:void 0,companyName:"string"==typeof t.companyName?t.companyName:void 0,capturedAt:"string"==typeof t.capturedAt?t.capturedAt:void 0,source:"string"==typeof t.source?t.source:void 0}}catch(e){return null}}(localStorage.getItem(o))}catch(e){return null}}function l(e){try{var t,r,n,l,a;let c=i()||{},s={name:(null===(t=e.name)||void 0===t?void 0:t.trim())||c.name,email:(null===(r=e.email)||void 0===r?void 0:r.trim().toLowerCase())||c.email,whatsapp:(null===(n=e.whatsapp)||void 0===n?void 0:n.trim())||c.whatsapp,instagram:(null===(l=e.instagram)||void 0===l?void 0:l.trim())||c.instagram,companyName:(null===(a=e.companyName)||void 0===a?void 0:a.trim())||c.companyName,source:e.source||c.source||"unknown",capturedAt:new Date().toISOString()};localStorage.setItem(o,JSON.stringify(s)),window.dispatchEvent(new CustomEvent("vasto:lead-capture-updated",{detail:s}))}catch(e){}}function a(){try{return function(e){if(!e)return null;try{let t=JSON.parse(e);if(!t||"object"!=typeof t)return null;return{pageSlug:"string"==typeof t.pageSlug?t.pageSlug:void 0,profileRole:"string"==typeof t.profileRole?t.profileRole:void 0,availability:"string"==typeof t.availability?t.availability:void 0,serviceTypes:Array.isArray(t.serviceTypes)?t.serviceTypes.filter(e=>"string"==typeof e&&e.trim().length>0).slice(0,6):void 0,projectInterest:"string"==typeof t.projectInterest?t.projectInterest:void 0,linkedin:"string"==typeof t.linkedin?t.linkedin:void 0,website:"string"==typeof t.website?t.website:void 0,status:"duplicate"===t.status?"duplicate":"submitted"===t.status?"submitted":void 0,nextStep:"string"==typeof t.nextStep?t.nextStep:void 0,capturedAt:"string"==typeof t.capturedAt?t.capturedAt:void 0}}catch(e){return null}}(localStorage.getItem(n))}catch(e){return null}}function c(e){try{var t,r,o,i,l,c;let s=a()||{},u={pageSlug:e.pageSlug||s.pageSlug,profileRole:(null===(t=e.profileRole)||void 0===t?void 0:t.trim())||s.profileRole,availability:(null===(r=e.availability)||void 0===r?void 0:r.trim())||s.availability,serviceTypes:Array.isArray(e.serviceTypes)&&e.serviceTypes.length>0?e.serviceTypes:s.serviceTypes,projectInterest:(null===(o=e.projectInterest)||void 0===o?void 0:o.trim())||s.projectInterest,linkedin:(null===(i=e.linkedin)||void 0===i?void 0:i.trim())||s.linkedin,website:(null===(l=e.website)||void 0===l?void 0:l.trim())||s.website,status:e.status||s.status||"submitted",nextStep:(null===(c=e.nextStep)||void 0===c?void 0:c.trim())||s.nextStep,capturedAt:new Date().toISOString()};localStorage.setItem(n,JSON.stringify(u))}catch(e){}}function s(){try{localStorage.removeItem(n)}catch(e){}}}}]);
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.