1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1669,3699],{73699:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return i}});var s=a(85893),r=a(25675),o=a.n(r);a(67294);var n={src:"/_next/static/media/loader.199a9fb8.svg",height:100,width:100,blurWidth:0,blurHeight:0},l=a(45665),c=a.n(l),i=e=>{let{value:t,color:a,onClick:r,children:l,isLoading:i=!1,fullWidth:d=!1,...u}=e;return(0,s.jsx)("button",{className:[c().main,c()["color-".concat(null!=a?a:"Default").toLowerCase()],c()["size-large"],d?c()["full-width"]:"","hover:opacity-75"].join(" "),type:"button",value:t,onClick:r,...u,children:i?(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(o(),{src:n,alt:"loading",width:20,height:20})}):l})}},61669:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return u}});var s=a(85893),r=a(67294),o=a(73699),n=a(5152),l=a.n(n),c=a(89276);let i=l()(()=>Promise.all([a.e(1664),a.e(2580),a.e(1730),a.e(7911),a.e(613)]).then(a.bind(a,43887)),{loadableGenerated:{webpack:()=>[43887]},loading:()=>(0,s.jsx)("div",{})}),d=()=>{let[e,t]=(0,r.useState)(!1),a=(0,r.useMemo)(()=>(0,s.jsx)(c.q6,{children:(0,s.jsx)(i,{openModal:t,open:e})}),[e]),o=(0,r.useCallback)(()=>{t(!0)},[t]);return{modal:a,setOpenModal:o}};function u(){let{modal:e,setOpenModal:t}=d();return(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(o.default,{color:"Secondary",onClick:()=>{t()},fullWidth:!0,style:{fontWeight:500,borderRadius:0},children:"SUBSCRIBE FREE"}),e]})}},89276:function(e,t,a){"use strict";a.d(t,{q6:function(){return y},Dj:function(){return h},Qo:function(){return p}});var s=a(85893),r=a(67294),o=a(7652);let n={isLoading:!1,isUpdated:!1,errorMessage:"",showAdvertise:!1,showCreateCompany:!1};function l(e,t){switch(t.type){case o.w.start_fetch:return{...e,isLoading:!0};case o.w.success_fetch:return{...e,isLoading:!1};case o.w.set_updated:return{...e,isUpdated:!0};case o.w.set_error:return{...e,errorMessage:t.payload.error};case o.w.set_show_advertise:return{...e,showAdvertise:t.payload.showAdvertise};case o.w.set_show_company:return{...e,showCreateCompany:t.payload.showCreateCompany};default:throw Error("Unhandled action type: ".concat(JSON.stringify(t)))}}var c=a(33299),i=a(54971);let d=r.createContext(n),u=r.createContext({subscribe:async e=>{let{email:t,siteNameId:a,tag:s}=e},advertise:async e=>{let{name:t,email:a,phone:s,companyname:r,position:o,additionalnotes:n,siteNameId:l,cb:c}=e},setError:e=>{},setShowAdvertise:e=>{},setShowCreateCompany:e=>{},createYourCompany:(e,t)=>{}});function y(e){let{children:t}=e,[a,y]=r.useReducer(l,n),p=(0,r.useCallback)(e=>{y({type:o.w.set_error,payload:{error:e}})},[y]),h=(0,r.useCallback)(async e=>{let{email:t,siteNameId:a,tag:s}=e;y({type:o.w.start_fetch,payload:{}});try{await (0,c.signIn)("requiredSubscription",{redirect:!1,email:t,siteNameId:a,tag:s}),window.dataLayer.push({event:"subscription"})}catch(e){console.log("Subscribe error: ",e.message),p(e.message)}finally{y({type:o.w.set_updated,payload:{}}),y({type:o.w.success_fetch,payload:{}})}},[y,p]),_=(0,r.useCallback)(async e=>{let{name:t,email:a,phone:s,companyname:r,position:n,additionalnotes:l,siteNameId:c,cb:d}=e;y({type:o.w.start_fetch,payload:{}});try{let e=await fetch("https://portalapi.caboodleai.net/api"+i.Y9.POST_ADVERTISEWITHUS,{method:"POST",body:JSON.stringify({name:t,email:a,phone:s,companyname:r,position:n,additionalnotes:l}),headers:{SiteNameId:c,"Content-type":"application/json"}}),d=await e.text();"true"===d&&y({type:o.w.set_updated,payload:{}})}catch(e){p(e.message)}finally{y({type:o.w.success_fetch,payload:{}}),d()}},[y,p]),w=(0,r.useCallback)(async(e,t)=>{y({type:o.w.start_fetch,payload:{}});try{console.log("create button clicked");let a=await fetch("https://portalapi.caboodleai.net/api"+i.Y9.CREATE_COPMANY,{method:"POST",body:JSON.stringify(e),headers:{SiteNameId:t,"Content-type":"application/json"}}),s=await a.text();s&&(y({type:o.w.set_show_company,payload:{showCreateCompany:!1}}),y({type:o.w.set_updated,payload:{}}))}catch(e){p(e.message)}finally{y({type:o.w.success_fetch,payload:{}})}},[y,p]),f=(0,r.useCallback)(e=>{y({type:o.w.set_show_advertise,payload:{showAdvertise:e}})},[y]),b=(0,r.useCallback)(e=>{y({type:o.w.set_show_company,payload:{showCreateCompany:e}})},[y]),C=(0,r.useMemo)(()=>({subscribe:h,advertise:_,setError:p,setShowAdvertise:f,setShowCreateCompany:b,createYourCompany:w}),[h,_,p,f,b,w]),g=(0,r.useMemo)(()=>a,[a]);return(0,s.jsx)(d.Provider,{value:g,children:(0,s.jsx)(u.Provider,{value:C,children:t})})}function p(){let e=r.useContext(d);if(void 0===e)throw Error("useWidgetsState must be used within a WidgetsProvider");return e}function h(){let e=r.useContext(u);if(void 0===e)throw Error("useWidgetsActions must be used within a WidgetsProvider");return e}}
1,7652:function(e,t,a){"use strict";var s,r,o,n;a.d(t,{r:function(){return s},w:function(){return r}}),(o=s||(s={}))[o.Company=1]="Company",o[o.IndustryNews=2]="IndustryNews",o[o.OrganizerNews=3]="OrganizerNews",o[o.IndustryBlog=4]="IndustryBlog",o[o.MagazineSource=5]="MagazineSource",o[o.Expert=6]="Expert",o[o.GlobalSource=7]="GlobalSource",o[o.GlobalPublisher=8]="GlobalPublisher",o[o.Keyword=9]="Keyword",o[o.PressRelease=10]="PressRelease",o[o.Webinar=11]="Webinar",(n=r||(r={})).start_fetch="start_fetch",n.success_fetch="success_fetch",n.set_updated="set_updated",n.set_error="set_error",n.set_show_advertise="set_show_advertise",n.set_show_company="set_show_company"},45665:function(e){e.exports={"color-primary":"styles_color-primary__NAj30","color-secondary":"styles_color-secondary__L8DCi","color-error":"styles_color-error___jGzC","color-accent":"styles_color-accent__cpn6R","color-default":"styles_color-default__z61cl","size-large":"styles_size-large__d_iPP",main:"styles_main__z0Ctr","full-width":"styles_full-width__90BKY"}}}]);
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.