PageSourceSearch

https://www.c1.ai/assets/HubSpotForm-Cqi_ZbBF.js

js c1.ai collected 2026-09-25 04:41:05 UTC 3,531 bytes, 2 lines download raw bytes

1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-DbyrFoBd.js";import{Ot as r,kt as i}from"./index-AbdmGcba.js";var a=e(n(),1),o=t(),s=`//js.hsforms.net/forms/embed/v2.js`,c={pro:`Pro`,enterprise:`Enterprise`},l={lifecycle:`C1 Lifecycle`,access:`C1 Access`,comply:`C1 Comply`,"llm-gateway":`C1 LLM Gateway`,"mcp-gateway":`C1 MCP Gateway`,vault:`C1 Vault`,worker:`C1 Agents`},u=!1,d=!1,f=[];function p(){return u?Promise.resolve():new Promise(e=>{if(f.push(e),d)return;d=!0;let t=document.createElement(`script`);t.src=s,t.async=!0,t.onload=()=>{u=!0,f.forEach(e=>e()),f.length=0},document.head.appendChild(t)})}var m=!1,h=!1,g=[];function _(e){return m?Promise.resolve():new Promise(t=>{if(g.push(t),h)return;h=!0;let n=document.createElement(`script`);n.id=`chilipiper-concierge`,n.src=`https://${e}.chilipiper.com/concierge-js/cjs/concierge.js`,n.crossOrigin=`anonymous`,n.async=!0,n.onload=()=>{m=!0,g.forEach(e=>e()),g.length=0},document.head.appendChild(n)})}function v({portalId:e=`9161697`,formId:t,onSuccess:n,successMessage:s,onSubmitted:u,chiliPiperDomain:d,chiliPiperRouter:f,formCta:m,additionalFields:h={},placeholdersFromLabels:g=!1,className:v=``}){let y=(0,a.useRef)(null),[b,x]=(0,a.useState)(!1),S=(0,a.useRef)(!1),C=(0,a.useRef)(!1),w=!!(d&&f);return(0,a.useEffect)(()=>{if(!t||S.current||typeof window>`u`)return;let a=`hsform-${t.replace(/-/g,``)}`,o=[p()];w&&o.push(_(d)),Promise.all(o).then(()=>{if(!window.hbspt||!y.current||S.current)return;S.current=!0,w&&window.ChiliPiper&&!C.current&&(C.current=!0,window.ChiliPiper.deploy(d,f,{formType:`Hubspot`,formIds:[t]}));let o=i(),p=typeof window<`u`?new URLSearchParams(window.location.search):null,_=p?.get(`products`)?.split(`,`).filter(Boolean).map(e=>l[e]||e).join(`;`),v=[{name:`gclid`,value:o.gclid},{name:`managed_identities`,value:p?.get(`identities`)},{name:`platform_level`,value:c[p?.get(`level`)||``]},{name:`products`,value:_},...Object.entries(h).map(([e,t])=>({name:e,value:t}))];window.hbspt.forms.create({region:`na1`,portalId:e,formId:t,target:`#${a}`,pageUri:r(),onFormReady:()=>{if(y.current){for(let e of v){if(!e.value)continue;let t=y.current.querySelector(`form`);if(t){let n=t.querySelector(`[name="${e.name}"]`)??document.createElement(`input`);n.type=`hidden`,n.name=e.name,n.value=e.value,n.parentElement||t.appendChild(n)}}try{let e=window.sessionStorage.getItem(`c1:pricing-email`),t=y.current.querySelector(`input[name="email"]`);e&&t&&!t.value&&(t.value=e,t.dispatchEvent(new Event(`input`,{bubbles:!0})),t.dispatchEvent(new Event(`change`,{bubbles:!0})),window.sessionStorage.removeItem(`c1:pricing-email`))}catch{}if(m){let e=y.current.querySelector(`input[type="submit"], button[type="submit"]`);e&&(e instanceof HTMLInputElement?e.value=m:e.textContent=m)}g&&y.current.querySelectorAll(`.hs-form-field`).forEach(e=>{let t=e.querySelector(`label`),n=e.querySelector(`input:not([type=radio]):not([type=checkbox]):not([type=hidden]), textarea`);t&&n&&!n.placeholder&&(n.placeholder=t.textContent?.trim()||``)})}},onFormSubmitted:()=>{if(!w){if(n){window.location.href=n;return}u?.(),s&&x(!0)}}})})},[t,e,n,s,u,w,d,f,m,h,g]),b?(0,o.jsx)(`div`,{className:`rounded-lg bg-green-50 p-8 text-center ${v}`,children:(0,o.jsx)(`p`,{className:`text-lg font-semibold text-green-90`,children:s||`Thanks! We'll be in touch.`})}):(0,o.jsx)(`div`,{ref:y,className:v,children:(0,o.jsx)(`div`,{id:`hsform-${t?.replace(/-/g,``)||`placeholder`}`})})}export{p as n,v as t};
2//# sourceMappingURL=HubSpotForm-Cqi_ZbBF.js.map

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.