PageSourceSearch

https://www.pubnub.com/_next/static/chunks/1835-2760fa4075eadd02.js

js pubnub.com collected 2026-09-24 08:40:02 UTC 10,451 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="588c8716-af3e-4fd9-b34f-15020cd7539c",e._sentryDebugIdIdentifier="sentry-dbid-588c8716-af3e-4fd9-b34f-15020cd7539c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1835],{51835:function(e,r,t){t.d(r,{default:function(){return C}});var a=t(57437),n=t(2265),s=t(31877);let o=e=>{let{formId:r,row:t}=e;return(0,a.jsxs)("label",{htmlFor:r+t.id,className:"form-label",children:[t.label.replace(/:\s*$/,"")," ",t.required?(0,a.jsx)("span",{children:"*"}):null]})},i=e=>{let{formId:r,row:t}=e;return(0,a.jsxs)("div",{className:"form-row",children:[(0,a.jsx)(o,{formId:r,row:t}),(0,a.jsx)("input",{id:r+t.id,name:t.id,type:"text",required:t.required||!1,placeholder:" ",className:"form-text"})]})},l=e=>{let{formId:r,row:t}=e;return(0,a.jsxs)("div",{className:"form-row",children:[(0,a.jsx)(o,{formId:r,row:t}),(0,a.jsx)("input",{id:r+t.id,name:t.id,type:"email",required:t.required||!1,placeholder:" ",className:"form-text"})]})};var d=t(98364);let c=e=>{var r;let{formId:t,row:n}=e;return(0,a.jsxs)("div",{className:"form-checkbox-row",children:[(0,a.jsx)("span",{children:(0,a.jsx)(d.Z,{})}),(0,a.jsx)("input",{id:t+n.id,name:n.id,type:"checkbox",defaultChecked:(null===(r=n.fieldMetaData)||void 0===r?void 0:r.initiallyChecked)||!1,className:"mt-checkbox form-checkbox",value:n.defaultValue||"on"}),(0,a.jsxs)("label",{htmlFor:t+n.id,className:"form-checkbox-label",children:[n.label.replace(/:\s*$/,""),n.required?(0,a.jsx)("span",{children:"\xa0*"}):null]})]})},m=e=>{var r,t;let{formId:n,row:s}=e;return(0,a.jsx)(a.Fragment,{children:null===(t=s.fieldMetaData)||void 0===t?void 0:null===(r=t.values)||void 0===r?void 0:r.map((e,r)=>(0,a.jsxs)(a.Fragment,{children:[s.label&&(0,a.jsx)("div",{className:"form-row",children:(0,a.jsx)("label",{htmlFor:n+s.id,className:"form-label",children:s.label})},"label-".concat(r)),(0,a.jsxs)("div",{className:"form-checkbox-row form-checkboxes-row ",children:[(0,a.jsx)("span",{children:(0,a.jsx)(d.Z,{})}),(0,a.jsx)("input",{id:n+s.id,name:s.id,type:"checkbox",defaultChecked:e.selected||!1,className:"mt-checkbox form-checkbox",value:e.value}),(0,a.jsxs)("label",{htmlFor:n+s.id,className:"form-checkbox-label",children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.label.replace(/:\s*$/,"")}}),s.required?(0,a.jsx)("span",{children:"\xa0*"}):null]})]},r)]}))})};var u=t(44785),f=t(20285);function x(e){let{formId:r,row:t}=e,n=new URLSearchParams(window.location.search),s=e=>{switch(e){case"{{url}}":return window.location.origin+window.location.pathname;case"{{system.dateTime}}":return f.X.now()}return e};return(0,a.jsx)("input",{type:"hidden",name:t.id,id:r+t.id,value:(e=>{var r;if(!e)return"";let t=null===(r=e.parameterName)||void 0===r?void 0:r.toLowerCase();switch(e.valueFrom){case"default":return s(e.value);case"cookie":return u.Z.get(t)||n.get(t)||"";case"referrer":case"query":return n.get(t)||""}return""})(t.autoFill)})}let h=e=>{var r;let{formId:t,row:n}=e;return(0,a.jsxs)("div",{className:"form-textarea-row",children:[(0,a.jsx)(o,{formId:t,row:n}),(0,a.jsx)("textarea",{id:t+n.id,name:n.id,rows:(null===(r=n.fieldMetaData)||void 0===r?void 0:r.visibleLines)||2,className:"form-textarea",required:n.required||!1,placeholder:" "})]})},p=e=>{let{formId:r,row:t}=e,n=t.fieldMetaData.values.filter(e=>e.selected);return(0,a.jsxs)("div",{className:"form-row",children:[(0,a.jsx)(o,{formId:r,row:t}),(0,a.jsx)("select",{id:r+t.id,name:t.id,defaultValue:1==n.length?n[0].value:"",required:t.required||!1,className:"form-text",children:t.fieldMetaData.values.map((e,r)=>(0,a.jsx)("option",{value:e.value,children:e.label},r))})]})},b=e=>{let{formId:r,row:t}=e;return(0,a.jsxs)("div",{className:"form-row",children:[(0,a.jsx)(o,{formId:r,row:t}),(0,a.jsx)("input",{id:r+t.id,name:t.id,type:"text",required:t.required||!1,placeholder:" ",className:"mt-input form-text"})]})},j=e=>{let{formId:r}=e;return(0,a.jsx)("input",{type:"text",name:"secondary_email",id:"".concat(r,"_secondary_email"),tabIndex:-1,autoComplete:"off","aria-hidden":"true","data-lpignore":"true","data-1p-ignore":"true","data-form-type":"other",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px"}})},w=e=>{let{formId:r,fields:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j,{formId:r}),t.map((e,t)=>{switch(e.dataType){case"text":case"url":case"date":case"currency":return(0,a.jsx)(i,{formId:r,row:e},t);case"textArea":return(0,a.jsx)(h,{formId:r,row:e},t);case"email":return(0,a.jsx)(l,{formId:r,row:e},t);case"checkbox":return(0,a.jsx)(c,{formId:r,row:e},t);case"checkboxes":return(0,a.jsx)(m,{formId:r,row:e},t);case"hidden":return(0,a.jsx)(x,{formId:r,row:e},t);case"select":return(0,a.jsx)(p,{formId:r,row:e},t);case"telephone":return(0,a.jsx)(b,{formId:r,row:e},t);case"htmltext":case"profiling":case"fieldset":return null;default:return(0,a.jsx)("div",{className:"flex bg-gray-dark rounded-lg p-4 m-4",children:(0,a.jsxs)("p",{className:"ml-3 text-sm text-white",children:[(0,a.jsx)("span",{className:"font-medium",children:"Undef
1ined form row!"})," ",e.dataType]})},t)}})]})},v=e=>{let{fields:r,form:t}=e;return(0,a.jsx)("div",{className:"p-[2.25rem]",children:(0,a.jsx)("button",{type:"submit",className:"component-form__submit button-component flex items-center justify-center gap-2 border box-border relative shrink-0 self-center mt-auto h-auto text-center rounded appearance-none cursor-pointer shadow-sm disabled:opacity-60 disabled:pointer-events-none focus:shadow-focused mx-auto w-full bg-red-600 border-red-600 text-neutral-50 hover:bg-red-800 hover:border-red-800 px-4 py-2 text-[16px] h-[44px]","data-label":t.buttonLabel,"data-waiting-label":t.waitingLabel,"data-enable-chili-piper":r.enableChiliPiper||!1,"data-enable-business-email-validation":r.enableBusinessEmailValidation||!1,"data-thank-you-page-url":r.thankYouPageUrl||"","data-download-file":!1,children:t.buttonLabel})})};var g=t(33851),y=t(60526),k=t(40180),I=t.n(k),N=t(9522),_=t(69136),F=t(63108);function S(e){let{fields:r,forms:t}=e,{contentId:o,variationId:i}=(0,F.i)(),[l,d]=function(e,r){let[t,a]=(0,n.useState)(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):r}catch(e){return r}});return[t,r=>{try{let n=r instanceof Function?r(t):r;a(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}}]}("form_"+r.marketoFormId+"_submitted",!1);(0,n.useEffect)(()=>{window.$=I()},[]);let c=t[r.marketoFormId];if(!c)return(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsx)("p",{children:"Hmmm...looks like something went wrong but we're working on it! Please try again later."}),(0,a.jsx)("a",{href:"/company/contact-us/",className:"whitespace-nowrap inline-flex items-center justify-center px-3 py-2 border rounded-md shadow-sm text-base font-medium border-cherry bg-cherry text-neutral-50 hover:bg-red-800 hover:border-red-800",children:"Contact Us"})]});let m=null==r?void 0:r.maxWidth;return(0,a.jsxs)("div",{className:"component-form",children:[(0,a.jsxs)("div",{className:"px-[40px] pt-[32px]",children:[(0,a.jsx)(N.Z,{text:r.header||"Want to learn more?"}),(0,a.jsx)("p",{className:"text-[14px] font-[400] leading-[20px] mb-[24px]",children:r.description||"Fill out the form and one of our experts will be in touch soon"})]}),(0,a.jsxs)("form",{id:"form_".concat(r.marketoFormId),className:"component-form__form",style:m?{maxWidth:"".concat(m,"px"),marginLeft:"auto",marginRight:"auto"}:{},method:"POST",onSubmit:e=>{d(!0),r.disableConversionTracking||_.o.trackFormConversion({formId:String(r.marketoFormId),pageUrl:window.location.href,contentId:o||void 0,variationId:i||void 0})},children:[r.header&&(0,a.jsx)("h3",{children:r.header}),r.description&&(0,a.jsx)("p",{className:"component-labels",children:r.description}),l&&void 0!==r.actionAfterSubmission&&"Download file"===r.actionAfterSubmission?(0,a.jsx)(a.Fragment,{children:"Download"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"formVid",value:c.id||""}),(0,a.jsx)("input",{type:"hidden",name:"formid",value:c.id||""}),(0,a.jsx)(w,{formId:c.id,fields:c.fields}),(0,a.jsx)(v,{fields:r,form:c}),(0,a.jsxs)("div",{className:"component-form__form-footer border-neutral-200 border-t-[2px] bg-navy-50 py-[24px] px-[40px] text-neutral-700 text-[12px] font-[400] leading-[16px]",children:["By submitting, you agree to our"," ",(0,a.jsx)("a",{href:"https://www.pubnub.com/terms-and-conditions/",target:"_blank",rel:"noopener",className:"text-teal-700 underline",children:"Terms and Conditions"})," ","and"," ",(0,a.jsx)("a",{href:"https://www.pubnub.com/privacy-policy/",target:"_blank",rel:"noopener",className:"text-teal-700 underline",children:"Privacy Policy"}),"."]})]})]}),(0,a.jsx)("form",{id:"mktoForm_".concat(r.marketoFormId),className:"marketo","data-id":r.marketoFormId,style:{display:"none"}}),r.enableChiliPiper?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.default,{src:"https://cdn.leandata.com/js-snippet/ld-book-v2.js",strategy:"afterInteractive"})}):null,(0,a.jsx)(s.default,{src:"https://www.pubnub.com/js/forms2/js/forms2.min.js",strategy:"afterInteractive"}),(0,a.jsx)(s.default,{src:"/scripts/formHelper.js",strategy:"afterInteractive"}),(0,a.jsx)(s.default,{src:"/scripts/formHelperV2.js",strategy:"afterInteractive"}),(0,a.jsx)(s.default,{src:"/scripts/marketo.js",strategy:"afterInteractive",onLoad:()=>{window.KEYUTIL=g.KZ,window.KJUR=g.fs,window.SENTRY=y}})]})}var C=e=>{let{formId:r,isBusinessEmailValidation:t,enableLeanData:s,redirectUrl:o,leanDataId:i,title:l,description:d,disableConversionTracking:c}=e,{contentId:m,variationId:u}
1=(0,F.i)(),f=(0,n.useRef)(!1),[x,h]=(0,n.useState)(null),[p,b]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{b(!0),fetch("/api/form/".concat(r,"/old/")).then(e=>e.json()).then(e=>{let t={};t[r]={...e,id:r,buttonLabel:"Submit"},h(t),b(!1)})},[r]),(0,n.useEffect)(()=>{!p&&x&&m&&!f.current&&(_.o.trackFormImpression({formId:r,pageUrl:window.location.href,contentId:m,variationId:u||void 0}),f.current=!0)},[p,x,r,m,u]),p?(0,a.jsx)("div",{children:"Loading..."}):(0,a.jsx)(S,{fields:{header:"",description:"",marketoFormId:parseInt(r),enableChiliPiper:s,enableBusinessEmailValidation:t,actionAfterSubmission:"Redirect to Thank You Page",thankYouPageUrl:o,disableConversionTracking:c},forms:x})}}}]);

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.