PageSourceSearch

https://www.callpage.io/_next/static/chunks/9659-bc1cd2e484bee90f.js

js callpage.io collected 2026-10-02 02:46:52 UTC 19,999 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9659],{1654:function(e,t,n){"use strict";var o,i=n(7294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:17.658,height:17},e),o||(o=i.createElement("g",{"data-name":"Group 33404",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeWidth:2},i.createElement("g",{"data-name":"Ellipse 98",transform:"translate(3.658 6)",strokeLinejoin:"round"},i.createElement("circle",{cx:2.5,cy:2.5,r:2.5,stroke:"none"}),i.createElement("circle",{cx:2.5,cy:2.5,r:1.5})),i.createElement("g",{"data-name":"Ellipse 100",transform:"rotate(180 8.829 2.5)",strokeLinejoin:"round"},i.createElement("circle",{cx:2.5,cy:2.5,r:2.5,stroke:"none"}),i.createElement("circle",{cx:2.5,cy:2.5,r:1.5})),i.createElement("g",{"data-name":"Ellipse 99",transform:"rotate(180 6.329 8.5)",strokeLinejoin:"round"},i.createElement("circle",{cx:2.5,cy:2.5,r:2.5,stroke:"none"}),i.createElement("circle",{cx:2.5,cy:2.5,r:1.5})),i.createElement("path",{"data-name":"Line 496",d:"M10.158 8.5h6.159"}),i.createElement("path",{"data-name":"Line 500",d:"M11.158 2.5H.999"}),i.createElement("path",{"data-name":"Line 498",d:"M6.158 14.5H.999"}),i.createElement("path",{"data-name":"Line 497",d:"M.999 8.5h1.159"}),i.createElement("path",{"data-name":"Line 499",d:"M16.317 14.5h-2.159"}))))}},6742:function(e,t,n){"use strict";n.d(t,{qY:function(){return AsideFilters},mL:function(){return GreenSectionStatic},u_:function(){return Modal}});var o,i,r,a,s=n(5893),l=n(1481),c=n(5111),d=n.n(c);function AsideFilters(e){let{data:t,activeFilter:n,title:o,onFilterChange:i}=e;return(0,s.jsxs)("div",{className:d()["aside-filters"],children:[(0,s.jsx)("h5",{children:o}),(0,s.jsx)("ul",{className:d().filters,children:null==t?void 0:t.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("button",{className:n===e.attributes.slug?d().active:"",onClick:()=>i(e.attributes.slug),children:[(0,s.jsx)(l.Z,{}),(0,s.jsx)("span",{children:e.attributes.Category})]})},e.id))})]})}var u=n(7294);n(1664);var p=n(7089);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var element_1=function(e){return u.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:83.185,height:83.184},e),o||(o=u.createElement("path",{"data-name":"Path 60100",d:"M83.185 76.96V2.536A2.537 2.537 0 0 0 80.568 0 83.226 83.226 0 0 0 0 80.568a2.537 2.537 0 0 0 2.535 2.616h74.426a6.221 6.221 0 0 0 6.222-6.221",fill:"#6b70e9"})))};function element_2_extends(){return(element_2_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var element_2=function(e){return u.createElement("svg",element_2_extends({xmlns:"http://www.w3.org/2000/svg",width:110.213,height:26.714},e),i||(i=u.createElement("g",{"data-name":"Group 32305",fill:"#6b70e9"},u.createElement("path",{"data-name":"Path 60100",d:"M-.001 1.998v23.9a.815.815 0 0 0 .841.816A26.728 26.728 0 0 0 26.714.84.815.815 0 0 0 25.9 0H2a2 2 0 0 0-2 2"}),u.createElement("path",{"data-name":"Path 60101",d:"M41.749 1.998v23.9a.815.815 0 0 0 .841.816A26.728 26.728 0 0 0 68.464.84.815.815 0 0 0 67.65 0h-23.9a2 2 0 0 0-2 2"}),u.createElement("path",{"data-name":"Path 60102",d:"M83.498 1.998v23.9a.815.815 0 0 0 .841.816A26.728 26.728 0 0 0 110.213.84a.815.815 0 0 0-.814-.84h-23.9a2 2 0 0 0-2 2"}))))};function list_icon_extends(){return(list_icon_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var list_icon=function(e){return u.createElement("svg",list_icon_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},e),r||(r=u.createElement("g",{"data-name":"Group 32083",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},u.createElement("path",{"data-name":"Path 59672",d:"m13.284 8.497-3.7 3.7-2.179-2.187"}),u.createElement("path",{"data-name":"Path 59673",d:"M19 10.001a9 9 0 1 1-9-9 9 9 0 0 1 9 9Z"}
1))))},m=n(4032),h=n.n(m),v=n(9670);function GreenSectionStatic(e){var t,n,o,i,r,a,l,c,d,m,b,f;let{title:_,subtitle:g,desc:w,points:x}=e,j=(0,u.useContext)(p.G);return(0,s.jsx)("section",{className:h()["green-section"],children:(0,s.jsxs)("div",{className:"container ".concat(h().container),children:[(0,s.jsx)(element_1,{}),(0,s.jsxs)("div",{className:h().content,children:[(0,s.jsx)("h3",{children:_}),(0,s.jsx)("h4",{children:g}),(0,s.jsx)("p",{children:w}),(0,s.jsx)("ul",{className:h().points,children:x.map((e,t)=>(0,s.jsxs)("li",{children:[(0,s.jsx)(list_icon,{}),(0,s.jsx)("span",{children:e})]},t))}),(0,s.jsx)(v.Z,{text:null==j?void 0:null===(n=j.global)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.attributes.Button1,url:null==j?void 0:null===(i=j.global)||void 0===i?void 0:null===(o=i.data)||void 0===o?void 0:o.attributes.Button1URL,className:"btn btn-primary ".concat(h().btn),children:null==j?void 0:null===(a=j.global)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.attributes.Button1}),(0,s.jsx)(v.Z,{text:null==j?void 0:null===(c=j.global)||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:l.attributes.Button2,url:(null==j?void 0:null===(m=j.global)||void 0===m?void 0:null===(d=m.data)||void 0===d?void 0:d.attributes.Button2URL)||"#",className:"btn btn-white ".concat(h().btn),newWindow:!0,children:null==j?void 0:null===(f=j.global)||void 0===f?void 0:null===(b=f.data)||void 0===b?void 0:b.attributes.Button2})]}),(0,s.jsx)(element_2,{})]})})}var b=n(3935);function close_extends(){return(close_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var images_close=function(e){return u.createElement("svg",close_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),a||(a=u.createElement("path",{d:"M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z"})))},f=n(1555),_=n.n(f);function Modal(e){let{show:t,title:n,children:o,onClose:i}=e,[r,a]=(0,u.useState)(!1);(0,u.useEffect)(()=>{a(!0)},[]);let l=t?(0,s.jsx)("div",{className:_().overlay,onClick:i,children:(0,s.jsxs)("div",{className:_().modal,onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:_().header,children:[(0,s.jsx)("span",{children:n}),(0,s.jsx)("button",{onClick:i,children:(0,s.jsx)(images_close,{})})]}),(0,s.jsx)("div",{className:_().body,children:o})]})}):null;return r?(0,b.createPortal)(l,document.getElementById("modal-root")):null}},9630:function(e,t,n){"use strict";var o=n(5893),i=n(8532),r=n(9234);t.Z=e=>{let{children:t}=e;return(0,o.jsx)(i.D,{rehypePlugins:[r.Z],components:{ul:e=>{let{node:t,...n}=e;return(0,o.jsx)("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"1rem 0"},...n})},li:e=>{let{node:t,...n}=e;return(0,o.jsx)("li",{style:{marginBottom:"0.5rem"},...n})},table:e=>{let{node:t,...n}=e;return(0,o.jsx)("div",{style:{display:"block",width:"100%",maxWidth:"100%",overflowX:"auto",WebkitOverflowScrolling:"touch",margin:"1rem 0"},children:(0,o.jsx)("table",{...n})})}},children:t})}},9659:function(e,t,n){"use strict";n.d(t,{mz:function(){return EbookMainSection},hS:function(){return EbookPreview},CA:function(){return EbooksMainSection},Qb:function(){return TitleSection}});var o=n(5893),i=n(6742),r=n(7967),a=n.n(r);function EbookDownloadModal(e){var t;let{show:n,title:r,onClose:s,ebookData:l}=e,c=null===(t=l.data[0])||void 0===t?void 0:t.attributes.FormID;return(0,o.jsx)(i.u_,{show:n,title:r,onClose:()=>s(!1),children:(0,o.jsx)(a(),{portalId:"1206795",formId:c})})}var s=n(5675),l=n.n(s),c=n(7294),d=n(9234),u=n(9630),p=n(1541),m=n(4908),h=n.n(m);function EbookMainSection(e){var t,n,i,r,a,s,m,v,b,f,_;let{ebookData:g}=e,[w,x]=(0,c.useState)(!1);return(0,o.jsx)("section",{className:h()["ebook-main-section"],children:(0,o.jsxs)("div",{className:"container ".concat(h().container),children:[(0,o.jsxs)("div",{className:h()["title-wrapper"],children:[(0,o.jsx)("h1",{children:null===(t=g.data[0])||void 0===t?void 0:t.attributes.EbookTitle}),(0,o.jsx)("p",{className:h()["short-desc"],children:null===(n=g.data[0])||void 0===n?void 0:n.attributes.ShortDescription})]}),(0,o.jsx)("div",{className:"img-wrapper img-wrapper-mw ".concat(h()["img-wrapper"]),children:(0,o.jsx)(l(),{src:(0,p.Z)(null===(r=g.data[0])||void 0===r?void 0:null===(i=r.attributes.ImageMain.data)||void 0===i?void 0:i.attributes.url),alt:"",width:null===(s=g.data[0])||void 0===s?void 0:null===(a=s.attributes.ImageMain.data)||void 0===a?void 0:a.attributes.width,height:null===(v=g.data[0])||void 0===v?void 0:null===(m=v.attributes.ImageMain.data)||void 0===m?void 0:m.attributes.height})}),(0,o.jsxs)("div",{className:h()["description-wrapper"],children:[(0,o.jsx)(u.Z,{rehypePlugins:[d.Z],children:null===(b=g.data[0])||void 0===b?void 0:b.attributes.AboutEbook}),(0,o.jsx)("button",{className:"btn btn-primary",onClick:()=>x(!0),children:null===(f=g.data[0])||void 0===f?void 0:f.attributes.Button}),(0,o.jsx)(EbookDownloadModal,{show:w,title:null===(_=g.data[0])||void 0===_?void 0:_.attributes.Button,onClose:()=>x(!1),ebookData:g})]})]})})}var v=n(1664),b=n.n(v),f=n(3551),_=n(7851),g=n.n(_);function EbookPreview(e){var t,n,i;let{data:r}=e;return(0,o.jsxs)("div",{className:g()["ebook-preview"],children:[(0,o.jsx)("div",{className:"img-wrapper img-wrapper-mw ".concat(g()["img-wrapper"]),children:(0,o.jsx)(l(),{src:(0,p.Z)(null==r?void 0:null===(t=r.attributes.ImageSmall.data)||void 0===t?void 0:t.attributes.url),alt:"",width:null==r?void 0:null===(n=r.attributes.ImageSmall.data)||void 0===n?void 0:n.attributes.width,height:null==r?void 0:null===(i=r.attributes.ImageSmall.data)||void 0===i?void 0:i.attributes.height})}),(0,o.jsx)("div",{className:g()["title-wrapper"],children:(0,o.jsx)("h4",{className:g().title,children:null==r?void 0:r.attributes.EbookTitle})}),(0,o.jsx)("div",{className:g()["short-desc-wrapper"],children:(0,o.jsx)("p",{className:g()["short-desc"],children:null==r?void 0:r.attributes.ShortDescription})}),(0,o.jsxs)(b(),{href:"/ebooks/".concat(null==r?void 0:r.attributes.slug),className:"link",children:[(0,o.jsx)(f.Z,{}),(0,o.jsx)("span",{children:null==r?void 0:r.attributes.ButtonReadMore})]})]})}var w=n(7392),x=n(1654),j=n(2770),E=n.n(j),k=n(1163),y=n(166);function EbooksMainSection(e){var t,n;let{ebooksData:r,ebooksPageData:a,topicFiltersData:s,typeFiltersData:l}=e,[d,u]=(0,c.useState)(!1),{windowSize:p,breakpoints:m}=(0,w.Z)(),{ebooks:h,activeFilters:v,isLoading:b,filterChangeHandler:f}=function(e){let{initEbooks:t}=e,n=(0,k.useRouter)(),[o,i]=(0,c.useState)(t),[r,a]=(0,c.useState)(n.query),[s,l]=(0,c.useState)(!1),filterChangeHandler=async e=>{let t;l(!0),n.push({pathname:n.pathname,query:e},null,{shallow:!0}),a(e);let o=Object.keys(e);switch(o[0]){case"topic":t="filters[category_ebooks][slug][$contains]";break;case"type":t="filters[category_ebooks_types][slug][$contains]"}let{data:r}=await y.Z.get("ebooks",{[t]:e[o[0]],populate:"*",locale:n.locale});i(r.data),l(!1)};return{ebooks:o,activeFilters:r,isLoading:s,filterChangeHandler}}({initEbooks:r.data}),_=(0,o.jsxs)("ul",{className:E()["ebook-filters-wrapper"],children:[(0,o.jsx)("li",{className:E()["ebook-filters"],children:(0,o.jsx)(i.qY,{data:s.data,title:null===(t=a.data)||void 0===t?void 0:t.attributes.NameCategory1,activeFilter:v.topic,onFilterChange:e=>f({topic:e})})}),(0,o.jsx)("li",{className:E()["ebook-filters"],children:(0,o.jsx)(i.qY,{data:l.data,title:null===(n=a.data)||void 0===n?void 0:n.attributes.NameCategory2,activeFilter:v.type,onFilterChange:e=>f({type:e})})})]});return(0,o.jsx)("section",{className:"".concat(E()["ebooks-main-section"]," ").concat(b?"loading":""),children:(0,o.jsxs)("div",{className:"container ".concat(E().container),children:[p>=m.md&&(0,o.jsx)("aside",{children:_}),(0,o.jsxs)("div",{className:E()["ebooks-wrapper"],children:[p<m.md&&(0,o.jsxs)("div",{className:E()["mobile-filters-wrapper"],children:[(0,o.jsxs)("button",{className:"btn btn-primary",onClick:()=>u(e=>!e),children:[(0,o.jsx)(x.Z,{}),(0,o.jsx)("span",{children:"Filters"})]}),(0,o.jsx)("div",{className:"".concat(E().dropdown," ").concat(d?E().open:""),children:_})]}),(0,o.jsx)("ul",{className:E().ebooks,children:h.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(EbookPreview,{data:e})},e.id))})]})]})})}var N=n(5841),O=n.n(N);function TitleSection(e){var t,n;let{ebooksPageData:i}=e;return(0,o.jsx)("section",{className:O()["title-section"],children:(0,o.jsxs)("div",{className:"container ".concat(O().container),children:[(0,o.jsx)("h1",{children:null===(t=i.data)||void 0===t?void 0:t.attributes.Title}),(0,o.jsx)("h2",{children:null===(n=i.data)||void 0===n?void 0:n.attributes.Description})]})})}},166:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});let o={RETRY_ATTEMPTS:3,RETRY_DELAY:1e3,REQUEST_TIMEOUT:15e3,KEEP_ALIVE:!0,DEFAULT_HEADERS:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"CallPage-Frontend/1.0"},LOG_ERRORS:!1}
1,i=(()=>{let e="https://strapi.callpage.io";if(!e)throw Error("NEXT_PUBLIC_BACKEND environment variable is not set");return{baseUrl:e,timeout:o.REQUEST_TIMEOUT,retryAttempts:o.RETRY_ATTEMPTS,retryDelay:o.RETRY_DELAY}})(),r=i.retryAttempts,a=i.retryDelay,s=i.timeout,sleep=e=>new Promise(t=>setTimeout(t,e));async function retryWithBackoff(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;for(let r=0;r<t;r++)try{return await e()}catch(c){var n,i;let e=r===t-1,s="UND_ERR_CONNECT_TIMEOUT"===c.code||(null===(n=c.message)||void 0===n?void 0:n.includes("timeout"))||(null===(i=c.message)||void 0===i?void 0:i.includes("fetch failed"));if(e||!s)throw c;let l=a*Math.pow(2,r);o.LOG_ERRORS&&console.warn("Request failed (attempt ".concat(r+1,"/").concat(t,"), retrying in ").concat(l,"ms:"),c.message),await sleep(l)}}var l={get:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new URLSearchParams(t).toString(),i="".concat("https://strapi.callpage.io","/api/").concat(e),r=n?"".concat(i,"?").concat(n):i;return await retryWithBackoff(async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),s);try{let n=await fetch(r,{headers:o.DEFAULT_HEADERS,signal:e.signal,keepalive:o.KEEP_ALIVE});if(clearTimeout(t),!n.ok)throw Error("HTTP ".concat(n.status,": ").concat(n.statusText));let i=await n.json();return{data:i}}catch(e){if(clearTimeout(t),"AbortError"===e.name){let e=Error("Request timeout");throw e.code="UND_ERR_CONNECT_TIMEOUT",e}throw e}})}}},5111:function(e){e.exports={"aside-filters":"aside-filters_aside-filters__Yjq_w",filters:"aside-filters_filters__ECWDH",active:"aside-filters_active__Knj1F"}},4032:function(e){e.exports={btn:"green-section-static_btn__aCddL","green-section":"green-section-static_green-section__KQoTG",container:"green-section-static_container__qNN7C",content:"green-section-static_content__0_2zC",points:"green-section-static_points__QCBOA"}},1555:function(e){e.exports={overlay:"modal_overlay__MR62_",modal:"modal_modal__MS70U",header:"modal_header__O0ebJ",body:"modal_body__j3Bav"}},4908:function(e){e.exports={"ebook-main-section":"ebook-main-section_ebook-main-section__28CJ_",container:"ebook-main-section_container__NxQLp","title-wrapper":"ebook-main-section_title-wrapper__Kx8yN","short-desc":"ebook-main-section_short-desc__QLWcQ","img-wrapper":"ebook-main-section_img-wrapper__9_uja","description-wrapper":"ebook-main-section_description-wrapper__6Y9_W"}},7851:function(e){e.exports={"ebook-preview":"ebook-preview_ebook-preview__8tVIg","title-wrapper":"ebook-preview_title-wrapper__ESohf",title:"ebook-preview_title__SPmBf","short-desc-wrapper":"ebook-preview_short-desc-wrapper__h7Lb0","short-desc":"ebook-preview_short-desc__WY_o4"}},2770:function(e){e.exports={"ebooks-main-section":"ebooks-main-section_ebooks-main-section__a31Oc",container:"ebooks-main-section_container__Q2YNx","ebook-filters-wrapper":"ebooks-main-section_ebook-filters-wrapper__ZpFOm","ebook-filters":"ebooks-main-section_ebook-filters__0rOyd","ebooks-wrapper":"ebooks-main-section_ebooks-wrapper__QCojj",ebooks:"ebooks-main-section_ebooks__GTKSc","mobile-filters-wrapper":"ebooks-main-section_mobile-filters-wrapper__TDOfo",dropdown:"ebooks-main-section_dropdown__kMs6M",open:"ebooks-main-section_open__AvdpU"}},5841:function(e){e.exports={"title-section":"title-section_title-section__Em2zr",container:"title-section_container__5Tr0O"}},7967:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),r=_interopRequireDefault(n(7294));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}_interopRequireDefault(n(3935));var a=0,s=function(e){function HubspotForm(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,HubspotForm);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(HubspotForm.__proto__||Object.getPrototypeOf(HubspotForm)).call(this,e));return t.state={loaded:!1},t.id=a++,t.createForm=t.createForm.bind(t),t.findFormElement=t.findFormElement.bind(t),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HubspotForm,e),i(HubspotForm,[{key:"createForm",value:function(){var e=this;if(window.hbspt){if(null===this.el)return;var t=o({},this.props);delete t.loading,delete t.onSubmit,delete t.onReady;var n=o({},t,{target:"#"+this.el.getAttribute("id"),onFormSubmit:function(t){var n=t.serializeArray();e.props.onSubmit(n)}});return window.hbspt.forms.create(n),!0}setTimeout(this.createForm,1)}},{key:"loadScript",value:function(){var e=this,t=document.createElement("script");t.defer=!0,t.onload=function(){e.createForm(),e.findFormElement()},t.src="//js.hsforms.net/forms/v2.js",document.head.appendChild(t)}},{key:"findFormElement",value:function(){if(null!==this.el){var e=this.el.querySelector("iframe");e?(this.setState({loaded:!0}),this.props.onReady&&this.props.onReady(e)):setTimeout(this.findFormElement,1)}}},{key:"componentDidMount",value:function(){window.hbspt||this.props.noScript?(this.createForm(),this.findFormElement()):this.loadScript()}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this;return r.default.createElement("div",null,r.default.createElement("div",{ref:function(t){return e.el=t},id:"reactHubspotForm"+this.id,style:{display:this.state.loaded?"block":"none"}}),!this.state.loaded&&this.props.loading)}}]),HubspotForm}(r.default.Component);t.default=s,e.exports=t.default}}]);

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.