PageSourceSearch

https://lp.conectcar.com/hubfs/hub_generated/template_assets/1/215…/template_conectcar-api-config.min.js

js conectcar.com collected 2026-10-01 13:11:38 UTC 2,446 bytes, 2 lines download raw bytes

1!function(){"use strict";if(window.__ccApiConfigLoaded)return;window.__ccApiConfigLoaded=!0;const SCOPES_PF=["hero","modal","embed","pj"],LEGACY_BY_ATTR={"data-auth-url":[".cc-auth-url-modal",".cc-auth-url","#authURL"],"data-api-url":[".cc-api-url-modal",".cc-api-url","#apiURL"],"data-api-basic-auth":[".cc-api-basic-auth-modal",".cc-api-basic-auth","#apiLeadbasicAuth"],"data-subscription-key":[".cc-subscription-key-modal",".cc-subscription-key","#subscriptionkey"],"data-oferta-id":[".cc-oferta-id-modal",".cc-oferta-id","#ofertaId"],"data-validacao-url":[".cc-validacao-url-modal",".cc-validacao-url"]};function queryOne(root,selector){return(root||document).querySelector(selector)}function readTextFromElement(element){return element?String(element.textContent||element.innerText||"").trim():""}function readValue(root,attrName,options){const opts=options||{},scopes=opts.scopes||SCOPES_PF,legacy=opts.legacySelectors||LEGACY_BY_ATTR[attrName]||[],fromConfig=function(root,attrName,scopes){let i;for(i=0;i<scopes.length;i+=1){let configElement=queryOne(root,'.cc-lead-api-config[data-cc-lead-scope="'+scopes[i]+'"]');if(!configElement)continue;let value=String(configElement.getAttribute(attrName)||"").trim();if(value)return value}return""}(root,attrName,scopes);return fromConfig||function(root,selectors){let i;for(i=0;i<selectors.length;i+=1){let value=readTextFromElement(queryOne(root,selectors[i]));if(value)return value}return""}(root,legacy)}window.ConectcarApiConfig={SCOPES:{HERO:"hero",MODAL:"modal",EMBED:"embed",PJ:"pj"},readValue:readValue,readOfferId:function(root){const nodes=(root||document).querySelectorAll(".cc-bin-campaign-config[data-has-bin='1'], .cc-lead-api-config");let i;for(i=0;i<nodes.length;i+=1){let offerId=String(nodes[i].getAttribute("data-oferta-id")||"").trim();if(offerId)return offerId}return readValue(root,"data-oferta-id")},CONTRACTS:{pf:{auth:"POST + Basic (data-auth-url, data-api-basic-auth)",lead:"POST + Bearer + Ocp-Apim-Subscription-Key",script:"modules/hero.module/module.js"},pj:{lead:"PUT + Ocp-Apim-Subscription-Key (sem Bearer)",script:"js/pj-acquisition-journey.js"},bin:{campanha:"GET apiCampanhaBinURL",validacao:"GET apiValidacaoBinURL",lead:"mesmo fluxo PF após validação",script:"js/bin-campaign.js"}}}}();
2//# sourceURL=https://23595722.fs1.hubspotusercontent-na1.net/hubfs/23595722/hub_generated/template_assets/1/215769193880/1790779196432/template_conectcar-api-config.js

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.