!function(){"use strict";var e,t,n,r,i,o={200:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return c}});var r,i=n(49255),o=["title","titleId"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=-r.height*t&&r.bottom<=window.innerHeight+n+r.height*t&&r.left>=-r.width*t&&r.right<=window.innerWidth+r.width*t},O=function(e){return/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?‌​[\w\?‌​=]*)?/.test(e)&&!e.includes("/channel/")},k=function(e,t){var n=e;return e.length>t&&(n=e.slice(0,t-3),n+="..."),n};var L=function(e,t){u.x3(e).then((function(){t&&t()}),(function(t){(0,c.ZI)("".concat(t,": Copy ").concat(e," Js Error"))}))},I=!1,S=function(){if(document&&!(I||!!document.getElementById("optimonk-script-loader"))){var e=document.createElement("script");e.onload=function(){I=!0},e.src="".concat((0,f.kB)(),"/optimonkScript.js"),document.body.appendChild(e)}},j=function(e,t){return Object.keys(e).forEach((function(n){var i=[];e.hasOwnProperty(n)&&(i=e[n]),t.hasOwnProperty(n)?t[n]=[].concat((0,r.A)(t[n]),(0,r.A)(i)):t[n]=i})),t},F=function(){var e,t=window.navigator.userAgent;return t&&(t=t.toLowerCase()),null===(e=t)||void 0===e?void 0:e.includes("headlesschrome")}},4472:function(e,t,n){n.d(t,{FF:function(){return s},ZI:function(){return c}});var r=n(5544),i=n(98120),o=n(32980),a=n(68240),l=n(87162),c=function(e,t){i.v4((function(n){t&&Object.entries(t).forEach((function(e){var t=(0,r.A)(e,2),i=t[0],o=t[1];n.setTag(i,String(o))})),n.setLevel("error"),o.Cp(new Error(e))}))},s=function(e,t){var n="warning";i.v4((function(r){r.setLevel(n),t&&r.setContext("warning_details",t),o.wd(e,n)}))};t.Ay=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.gs,r=arguments.length>3?arguments[3]:void 0;n!==l.gs&&t((0,a.G)("".concat(n),"error",!0)),(e&&e.response&&e.response.status&&200===e.response.status||!e.response)&&(c(JSON.stringify(e),r),o.Cp(new Error(e),{tags:{celeroSeverity:"Notification"}}))}},4570:function(e,t,n){n.r(t);var r=n(24765),i=n(5544),o=n(49255),a=n(93593),l=n(47081),c=n(71e3),s=n(5791),d=n(65983);t.default=function(){var e=(0,l.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,t=(0,o.useState)(!1),n=(0,i.A)(t,2),u=n[0],f=n[1],p=window.celeroURLParams.is_bot,m=e.company&&e.company.integrations;return(0,o.useEffect)((function(){if(e.company&&e.company.integrations)var t=setTimeout((function(){var e=!!a.E.getIntegrationsNeededData();f(e),e&&clearInterval(t)}),3e3)}),[e]),(0,o.useEffect)((function(){var t=new Set;if(e.company&&e.company.integrations){var n,i=(0,r.A)(e.company.integrations);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.account_id===e.company.account_id&&t.add(o.name)}}catch(e){i.e(e)}finally{i.f()}var l,c=(0,r.A)(e.company.integrations);try{for(c.s();!(l=c.n()).done;){var s=l.value;s.shouldLoad=!(s.account_id!==e.company.account_id&&t.has(s.name))}}catch(e){c.e(e)}finally{c.f()}a.E.initializeIntegrationsScripts(e.company.integrations)}}),[e]),(0,d.jsx)(d.Fragment,{children:!!m&&u&&!p&&(0,d.jsx)(c.Ay,{account_id:e.company.account_id,companyIntegrations:m,celero_id:(0,s.getCeleroId)()||""})})}},5182:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return u}});var r,i,o,a,l=n(49255),c=["title","titleId"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)"{"===e[v]?m++:"}"===e[v]&&m--,v++;o+=p+c(e.slice(f+1,v-1),t)+"}",r=v}else{var h=e.indexOf("{",r);if(-1===h){o+=e.slice(r);break}for(var g=e.slice(r,h).split(",").map((function(e){return e.trim()})).filter(Boolean).map((function(e){return e.startsWith(n)?e:"".concat(n," ").concat(e)})).join(", "),w=1,y=h+1;y0;)"{"===e[y]?w++:"}"===e[y]&&w--,y++;var C=e.slice(h+1,y-1);o+="".concat(g,"{").concat(C,"}"),r=y}return o}return(0,r.useEffect)((function(){var e=!1,r=c(t||null,n),s=function(e){var t=c(e||null,n);if(t){if(!a.current){var r=document.createElement("style");r.setAttribute("data-component",n),r.setAttribute("data-source","base"),document.head.appendChild(r),a.current=r}a.current.textContent=t}else a.current&&(a.current.remove(),a.current=null)};if(s(i||null),o&&fetch(o).then((function(e){return e.ok?e.text():Promise.reject(new Error("Failed loading ".concat(o)))})).then((function(t){e||s(t)})).catch((function(){})),r){if(l.current)document.head.appendChild(l.current);else{var d=document.createElement("style");d.setAttribute("data-component",n),d.setAttribute("data-source","s3"),document.head.appendChild(d),l.current=d}l.current.textContent=r}else l.current&&(l.current.remove(),l.current=null);return function(){e=!0,a.current&&(a.current.remove(),a.current=null),l.current&&(l.current.remove(),l.current=null)}}),[t,i,o,n]),null}},13319:function(e,t,n){n.d(t,{h:function(){return s}});var r,i,o=n(49255),a=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?E(e.favicon):E("/celero.ico")};(0,a.useEffect)((function(){var e=function(){var e=(0,i.A)((0,r.A)().m((function e(){var t;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,u.A.getCompanyCustomization().then((function(e){return e}));case 1:(t=e.v)&&_(t),w(!1);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var O=(0,l.d4)((function(e){return{notification:e.notification}})).notification,k=O.message,L=O.isOpen,I=O.severity,S=function(){x((0,s.X)())},j=b||"";return(0,v.jsxs)(v.Fragment,{children:[b&&(0,v.jsx)(m.A,{faviconLink:j}),(0,v.jsxs)(v.Fragment,{children:[!g&&t,(0,v.jsx)(c.A,{variant:I,verticalPosition:"bottom",horizantalPosition:"center",message:k,isOpen:L,onClose:S})]})]})},g=h},14724:function(e,t,n){n.d(t,{GW:function(){return a},PU:function(){return c},kX:function(){return l}});var r=n(63503),i=n(49255),o=!1;function a(){o||(o=!0,setTimeout((function(){o=!1}),100),window.IDRViewer.prev())}function l(){o||(o=!0,setTimeout((function(){o=!1}),100),window.IDRViewer.next())}function c(e){var t=e.idrViewerElement,n=e.viewerOptions,o=e.isControlsBarParamEnabled,c=n.isShowControls,s=n.isPresentationMode,d=(0,i.useRef)(!1),u=function(e){d.current||window.disableNavigation||((e.deltaY>0||e.deltaX>0)&&l(),(e.deltaY<0||e.deltaX<0)&&a())},f=(0,i.useMemo)((function(){return(0,r.n)(u,1500,{leading:!0,trailing:!1})}),[]),p=function(e){f(e),e.preventDefault()},m=function(e){if(!d.current&&!window.disableNavigation)switch(e.key){case"PageUp":case"ArrowUp":case"ArrowLeft":a(),e.preventDefault();break;case"PageDown":case"ArrowDown":case"ArrowRight":l(),e.preventDefault()}},v=function(e){if(!d.current&&!window.disableNavigation)switch(e.key){case"PageUp":case"ArrowUp":if(e.preventDefault(),!t.current)break;t.current.scrollBy({top:-100,behavior:"smooth"});break;case"PageDown":case"ArrowDown":if(e.preventDefault(),!t.current)break;t.current.scrollBy({top:100,behavior:"smooth"});break;case"ArrowLeft":a();break;case"ArrowRight":l()}};window.IDRViewer.on("ready",(function(){var e;window.celeroData||(!s||c&&o?document.addEventListener("keydown",v):(document.addEventListener("keydown",m),null===(e=t.current)||void 0===e||e.addEventListener("wheel",p,{passive:!1})))}))}},15441:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return s}});var r,i,o=n(49255),a=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t1||v()||1===r.touches.length&&(e=r.touches[0].clientX,t=!0,n=!1)}function i(r){if(!(window.visualViewport&&window.visualViewport.scale>1)&&t&&!v()){var i=r.touches[0].clientX-e;!n&&Math.abs(i)>10&&(n=!0),n&&r.preventDefault()}}function a(r){if(!(window.visualViewport&&window.visualViewport.scale>1)&&t&&!v()){var i=r.changedTouches[0].clientX-e;Math.abs(i)>m&&(i<0&&y0&&y>1&&(0,o.GW)()),t=!1,n=!1}}}),[E,x,y,A,f]),(0,i.useEffect)((function(){if(!E&&!x&&!f){var e=!0,t=null;return window.addEventListener("wheel",r,{passive:!1}),function(){window.removeEventListener("wheel",r),t&&window.clearTimeout(t)}}function n(){e=!0}function r(r){if(Math.abs(r.deltaX)>Math.abs(r.deltaY)&&Math.abs(r.deltaX)>200){if(!e)return;e=!1,t&&window.clearTimeout(t),t=window.setTimeout(n,10),r.deltaX>0&&y1&&((0,o.GW)(),r.preventDefault())}}}),[E,x,y,A,f]),C?(0,p.jsx)(p.Fragment,{children:!E&&!x&&(0,p.jsxs)(p.Fragment,{children:[y>1&&(0,p.jsx)(g,{onClick:function(){(0,o.GW)()},"aria-label":"Previous slide",bgcolor:_,children:(0,p.jsx)(l.A,{fontSize:"large",style:{color:O}})}),y0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.h:return(0,o.A)((0,o.A)({},e),t.payload);case h.U:return(0,o.A)((0,o.A)({},e),{},{message:null,isOpen:!1});default:return e}},loader:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;return t.type===f.r?(0,o.A)((0,o.A)({},e),t.payload):e},viewer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case E.T:return(0,o.A)((0,o.A)({},e),t.payload);case E.i:return(0,o.A)({},e);default:return e}},genericPaper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;return t.type===d.b?(0,o.A)((0,o.A)({},e),t.payload):e},tooltip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;return t.type===C.K?(0,o.A)((0,o.A)({},e),t.payload):e},bubble:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;return t.type===a.h?(0,o.A)((0,o.A)({},e),t.payload):e},theme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;return t.type===w.L?(0,o.A)((0,o.A)({},e),t.payload):e},mobileMenu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return t.type===m.W?(0,o.A)((0,o.A)({},e),t.payload):e},customEvents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return t.type===c.p?(0,o.A)((0,o.A)({},e),t.payload):e},marketoFormData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;return t.type===A.H?t.payload:e},defaultFormData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;return t.type===k.z?[].concat((0,O.A)(e),(0,O.A)(t.payload)):e},htmlSnippets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;return t.type===I.g?(0,O.A)(t.payload):e},companyForms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;return t.type===j.L?[].concat((0,O.A)(e),(0,O.A)(t.payload)):e},shortenData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;return t.type===P.q?(0,o.A)((0,o.A)({},e),t.payload):e},inContentSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;return t.type===M.e?(0,o.A)((0,o.A)({},e),t.payload):e},gdpr:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;return t.type===N.j?(0,o.A)((0,o.A)({},e),t.payload):e},celeroFormBuilderData:B.G,formsRegistry:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case G.n:var n=t.payload,r=e.allIds.includes(n.id);return(0,o.A)((0,o.A)({},e),{},{byId:(0,o.A)((0,o.A)({},e.byId),{},(0,W.A)({},n.id,n)),allIds:r?e.allIds:[].concat((0,O.A)(e.allIds),[n.id])});case G.Jt:var i=t.payload,a=(0,o.A)({},e.byId),l=(0,O.A)(e.allIds);return i.forEach((function(e){a[e.id]=e,l.includes(e.id)||l.push(e.id)})),(0,o.A)((0,o.A)({},e),{},{byId:a,allIds:l});case G.x$:var c=t.payload;return(0,o.A)((0,o.A)({},e),{},{accessControlFormId:c});case G.eh:return V;default:return e}}}),U=(0,r.y$)(z,(0,r.Tw)(i.A))},40677:function(e,t,n){n.d(t,{h:function(){return s}});var r,i,o=n(49255),a=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==w[1]?w[1]:[],r=w.length>2&&void 0!==w[2]?w[2]:{},i=w.length>3&&void 0!==w[3]?w[3]:[],a=(0,s.s_)(r),a+=(0,s.s_)(d.E.getIntegrationsNeededData()),a+=t?"&account_id=".concat(t):"",(m=(0,u.getCeleroId)())||(v=p.A.sessionStorage.getItem("celero_obj"))&&(m=null===(h=JSON.parse(v))||void 0===h?void 0:h.celero_id),m||(g=(0,u.getGeneralTrackingData)(),m=(null==g?void 0:g.celero_id)||null),m){e.n=1;break}return e.n=1,f.A.getFingerprint(!1).then((function(e){e&&e.celero_id&&((0,u.setCeleroId)(e.celero_id),m=e.celero_id)}));case 1:return m||(0,c.ZI)("Unable to get celero id in getCompanyIntegrations functionality"),a+=m?"&celero_id=".concat(m):"",n.forEach((function(e){a+="&integrations_ids[]=".concat(e)})),i.forEach((function(e){a+="&types[]=".concat(e)})),e.a(2,l.Ay.get("/api/external/integrations/?".concat(a)).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't get list of integrations :"+e),Promise.reject(e)})))}}),e)}))),function(e){return r.apply(this,arguments)}),createContact:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,i.A)((0,i.A)({},n),{},{properties:(0,i.A)({},t)});return l.Ay.post("/api/external/integrations/".concat(e,"/create-lead/"),r).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't create contact of an integrations :"+e),Promise.reject(e)}))},getIntegrationForms:function(e){return l.Ay.get("/api/external/integrations/".concat(e,"/forms/")).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't get list of integration forms :"+e),Promise.reject(e)}))},visitorIdentify:function(e){var t={account_id:e.account_id,visitor_id:e.visitor_id,integration:e.integration,celero_id:e.celero_id,url_parameter:e.url_parameter,version_id:e.version_id,access_token:e.access_token,access_type:e.access_type,user_context:e.user_context,user_input:e.user_input};return l.th.post("/crm/api/visitor/identify",t).then((function(e){if(e&&e.data)return e.data})).catch((function(e){var n,r,i,o,a,l,s,d,u,f;return(0,c.ZI)("Error in visitorIdentify api call",{message:e.message,status:(null===(n=e.response)||void 0===n?void 0:n.status)||"",statusText:(null===(r=e.response)||void 0===r?void 0:r.statusText)||"",url:(null===(i=e.config)||void 0===i?void 0:i.url)||"",method:(null===(o=e.config)||void 0===o?void 0:o.method)||"",data:"string"==typeof(null===(a=e.response)||void 0===a?void 0:a.data)||"number"==typeof(null===(l=e.response)||void 0===l?void 0:l.data)||"boolean"==typeof(null===(s=e.response)||void 0===s?void 0:s.data)?e.response.data:JSON.stringify(null===(d=e.response)||void 0===d?void 0:d.data),requestHeaders:JSON.stringify((null===(u=e.config)||void 0===u?void 0:u.headers)||{}),responseHeaders:JSON.stringify((null===(f=e.response)||void 0===f?void 0:f.headers)||{}),stack:e.stack||"",body:JSON.stringify(t)}),Promise.reject(e)}))}};t.A=m},52808:function(e,t,n){n.d(t,{q:function(){return o}});var r=n(91212),i=n(10467);function o(e,t){return a.apply(this,arguments)}function a(){return(a=(0,i.A)((0,r.A)().m((function e(t,n){return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:if(t.iframe_support){e.n=1;break}return e.a(2,{canIframe:!1});case 1:if(!t.needs_client_check){e.n=2;break}return e.a(2,{canIframe:!1});case 2:return e.a(2,{canIframe:!0,embedUrl:t.embed_url})}}),e)})))).apply(this,arguments)}},52980:function(e,t,n){n.d(t,{h:function(){return d}});var r,i,o,a=n(49255),l=["title","titleId"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=0,o=n.leading,a=void 0===o||o,l=n.trailing,c=void 0===l||l;return function(){for(var n=this,o=arguments.length,l=new Array(o),s=0;st?(r&&(clearTimeout(r),r=null),i=d,e.apply(this,l)):!r&&c&&(r=setTimeout((function(){i=a?Date.now():0,r=null,e.apply(n,l)}),u))}}function i(e,t){var n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a").concat(t.innerHTML,"")}if(m){var o=document.createElement("img");o.src=d.closeBlackIcon,o.style.cssText="font-size:25px; color:black; cursor:pointer; font-family: 'RobotoThin';",o.onclick=function(){e.hideMarketFrom(r);var t={form_id:r,form_type:s.o4.MARKETO};(0,l.recordEventWidthAdditionalParams)(a.qW.CLOSE_FORM,t)},t.appendChild(o)}Array.from(g.getElementsByTagName("input")).forEach((function(e){e.id="mktoForm_".concat(r)})),Array.from(g.getElementsByTagName("select")).forEach((function(e){e.id="mktoForm_".concat(r)}))}catch(e){}}),2e3)}))}))})).observe(document.body,{childList:!0,subtree:!0}),C.onload=function(){var t=document.createElement("script");t.innerHTML=e.getMarketoFormsLoader(o,"".concat(n),r),t.id="munchkin-forms-script-loader",t.async=!0,document.head.appendChild(t)},!f&&(0,c.Ri)("luid")&&g.remove()}}}},{key:"init",value:function(t){return e.localWindow.Munchkin||(e.initialize(t),e.localWindow=window,e.MktoForms2=e.localWindow.MktoForms2),e.localWindow.Munchkin}},{key:"getMarketoFormInstance",value:function(){return e.localWindow.MktoForms2}},{key:"setDefaultMarketoFrom",value:function(t){t&&(e.defaultMartketoFormId=t)}}])}();r=u,u.localWindow=window,u.MktoForms2=void 0,u.defaultMartketoFormId=void 0,u.getMarketoScript=function(e){return"\n(function(){var didInit=false;function initMunchkin(){if(didInit===false){didInit=true;Munchkin.init('".concat(e,"');}}\nvar s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='//munchkin.marketo.net/munchkin.js';s.onreadystatechange=function(){if(this.readyState=='complete'||this.readyState=='loaded'){initMunchkin();}};s.onload=initMunchkin;document.getElementsByTagName('head')[0].appendChild(s);})();")},u.getMarketoFormsLoader=function(e,t,n){return'MktoForms2.loadForm("'.concat(e,'", "').concat(t,'", ').concat(n,', function(form){\n form.setValues({"mktoceleroid": "').concat((0,l.getCeleroId)(),'"})\n form.onSuccess(function(values, followUpUrl) {\n const event = new CustomEvent("mktoSubmitted", {\n bubbles: true,\n cancelable: true,\n composed: false\n });\n document.dispatchEvent(event);\n window.history.pushState({path:followUpUrl},\'\',followUpUrl);\n const date = new Date();\n date.setTime(date.getTime() + 8760 * 60 * 60 * 1000);\n var expires = "; expires=" + date.toUTCString();\n document.cookie = "mkto_submitted_forms" + "=" + (').concat(n,' || "") + expires + "; path=/";\n const formWrapper = document.getElementById("mktoForm_').concat(n,'_wrapper");\n if(formWrapper) {\n formWrapper.remove();\n }\n return false;\n })\n function isEmailGood(email) {\n for(var i=0; i < invalidDomains.length; i++) {\n var domain = invalidDomains[i];\n if (email.indexOf(domain) != -1) {\n return false;\n }\n }\n return true;\n }\n var invalidDomains = ["@gmail.","@email.","@msn.","@icloud.","@mail.","@me.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@vodamail.","@studentmail.","@ymail.","@uowmail.","@outlook1.","@googlemail.","@mymail.","@webmail.","@protonmail.","@bluemail.","@rocketmail.","@bmail.","@rediffmail.","@dcmail.","@immail.","@finemail.","@europemail.","@zetmail.","gmail.","@tafmail.","@email.","@freemail."]; \n MktoForms2.whenReady(function (form){\n form.onValidate(function(){\n var email = form.vals().Email;\n if(email){\n if(!isEmailGood(email)) {\n form.submitable(false);\n var emailElem = form.getFormElem().find(".mktoEmailField");\n form.showErrorMessage("Must be Business email.", emailElem);\n }else{\n form.submitable(true);\n }\n }\n });\n });\n });')},u.initialize=function(e){var t="munchkin-script-loader";if(document&&!!!document.getElementById(t)){var n=document.createElement("script");n.innerHTML=r.getMarketoScript(e),n.id=t,n.async=!0,n.defer=!1,document.head.appendChild(n)}},u.showMarketFrom=function(e){var t=document.getElementById("mktoForm_".concat(e,"_wrapper"));return!!t&&((0,l.recordEventWidthAdditionalParams)(a.qW.OPEN_FORM,{form_id:e,form_type:s.o4.MARKETO}),t.style.display="flex",t.classList.toggle("visible"),!0)},u.showMarketDefaultFrom=function(){return r.showMarketFrom(r.defaultMartketoFormId)},u.hideMarketFrom=function(e){var t=document.getElementById("mktoForm_".concat(e,"_wrapper"));return!!t&&(t.style.display="none",t.classList.toggle("visible"),!0)},u.hideMarketDefaultFrom=function(){return r.hideMarketFrom(r.defaultMartketoFormId)};var f=u},63617:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return s}});var r,i,o=n(49255),a=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?n/r:0)).toFixed(2))})}),500)};return e.addEventListener("scroll",i,{passive:!0}),function(){e.removeEventListener("scroll",i),n&&window.clearTimeout(n)}}}}),[t,r]);return{rootRef:i,trackRef:a,emit:function(e,n){var r=Array.isArray(e)?e:[e];return h(t,r,n)}}}var w=n.p+"static/media/styles.754660cfcf499b676437.css",y=n(65983),C={SLUG:"carousel",NAME:"carousel",EVENTS:{VIEW:["view"],SCROLL:["scroll"],CARD_CLICK:["card","click"]}};function b(e){var t=e.title,n=e.cards,r=e.companyId,a=e.componentId,l=(0,s.b)(r,"carousel",a).stylesheet,f=g({componentSlug:C.SLUG,viewPayload:{component_title:t,cards_count:(null==n?void 0:n.length)||0},enableHorizontalScrollTracking:!0}),p=f.rootRef,m=f.trackRef,v=f.emit,h=w;(0,o.useEffect)((function(){}),[]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.A,{css:l,baseCss:h,componentName:C.NAME}),(0,y.jsxs)("div",{className:"carousel",ref:p,"data-celero-sp":C.NAME,"assistant-c-name":a?"carousel-".concat(a):"carousel",children:[t&&(0,y.jsx)("div",{className:"header",children:t}),(0,y.jsx)("div",{className:"body",children:(0,y.jsx)("div",{className:"track",ref:m,children:null==n?void 0:n.map((function(e,t){var n=e.image_url||e.image,r=function(e){if(!e)return e;try{var t=new URL(e,window.location.origin),n=t.searchParams,r=(0,u.vA)();return Object.entries(r).forEach((function(e){var t=(0,i.A)(e,2),r=t[0],o=t[1];n.has(r)||null===o||(Array.isArray(o)?o.forEach((function(e){return null!==e&&n.append(r,e)})):n.set(r,o))})),t.toString()}catch(t){return e}}(e.link_url||e.href||e.link),o=e.description||e.subtitle||e.summary,a=e.keywords||e.tags;return(0,y.jsx)("a",{href:r,onClick:function(){v(C.EVENTS.CARD_CLICK,{card_eid:e.eid,card_title:e.title,link_url:r,position_index:t})},style:{color:"inherit",textDecoration:"none",minWidth:260},children:(0,y.jsxs)("div",{className:"card",children:[n&&(0,y.jsx)("img",{className:"media",src:n,alt:e.title}),(0,y.jsxs)("div",{className:"card-body",children:[(0,y.jsx)("div",{className:"title",children:e.title}),o&&(0,y.jsx)("div",{className:"subtitle",children:o}),a&&(0,y.jsxs)("div",{className:"keywords",children:[(0,y.jsx)(c.A,{className:"tag-icon"}),Array.isArray(a)?a.join(" · "):""]})]})]})},"".concat(e.eid||e.title,"-").concat(t))}))})})]})]})}var E=n.p+"static/media/styles.8c74bb42db492771869b.css",x={SLUG:"summary",NAME:"summary",EVENTS:{VIEW:["view"]}};function A(e){var t=e.title,n=void 0===t?"Summary":t,r=e.body,i=e.companyId,o=e.componentId,a=(0,s.b)(i,x.NAME,o).stylesheet,l=g({componentSlug:x.SLUG,viewPayload:{component_title:n}}).rootRef,c=E;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.A,{css:a,baseCss:c,componentName:x.NAME}),(0,y.jsxs)("div",{className:"summary-container",ref:l,"data-celero-sp":x.NAME,"assistant-c-name":o?"summary-".concat(o):"summary",children:[n&&(0,y.jsx)("div",{className:"header",children:n}),(0,y.jsx)("div",{className:"card-body",children:r&&(0,y.jsx)("div",{className:"subtitle",children:r})})]})]})}var _=n(30991),O=n.p+"static/media/styles.4ac192dac97f8c73a7c7.css",k={SLUG:"outline",NAME:"outline",EVENTS:{VIEW:["view"],ITEM_CLICK:["item","click"]}};function L(e){var t=e.title,n=e.items,r=e.onGoToPage,i=e.companyId,o=e.componentId,a=(0,s.b)(i,k.NAME,o).stylesheet,l=g({componentSlug:k.SLUG,viewPayload:{component_title:t,items_count:(null==n?void 0:n.length)||0}}),c=l.rootRef,u=l.emit,f=O;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.A,{css:a,baseCss:f,componentName:k.NAME}),(0,y.jsxs)("div",{className:"outline",ref:c,"data-celero-sp":k.NAME,"assistant-c-name":o?"outline-".concat(o):"outline",children:[t&&(0,y.jsx)("div",{className:"header",children:t}),(0,y.jsx)("div",{className:"body",children:(0,y.jsx)("div",{className:"list",children:null==n?void 0:n.map((function(e,t){var n=e.title||e.description||e.text||"";return(0,y.jsxs)("div",{className:"item",role:"button",onClick:function(){return function(e,t){var n,i=null!==(n=e.page)&&void 0!==n?n:e.page_start;u(k.EVENTS.ITEM_CLICK,{item_title:e.title||e.description||e.text,position_index:t,target_page:i}),null!=i&&r&&r(i)}(e,t)},children:[(0,y.jsx)(_.A,{className:"icon"}),(0,y.jsx)("div",{className:"text",children:n})]},"".concat(n,"-").concat(t))}))})})]})]})}var I=n(91212),S=n(10467),j=n.p+"static/media/styles.d83ddff618c6435ef4dc.css",F={SLUG:"signature",NAME:"signature",EVENTS:{VIEW:["view"],SELECT_CHANGE:["mode","change"],INPUT_CHANGE:["input","change"],SUBMIT:["submit"],ERROR:["error"]}};function P(e,t){if(e&&t){var n,i=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,a=(0,r.A)(i);try{for(a.s();!(n=a.n()).done;){var l=n.value;if(l&&"$"!==l){if(null==o)return;o=o[l]}}}catch(e){a.e(e)}finally{a.f()}return o}}function R(e,t,n){if(e&&t)for(var r=t.replace(/\[(\d+)\]/g,".$1").split("."),i=e,o=0;o2097152)){e.n=2;break}return b(F.EVENTS.ERROR,{message:"file-too-large"}),e.a(2);case 2:(i=new FileReader).onload=function(){var e="string"==typeof i.result?i.result:void 0;B(e),b(F.EVENTS.INPUT_CHANGE,{kind:"image"})},i.readAsDataURL(r);case 3:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=(0,S.A)((0,I.A)().m((function e(){return(0,I.A)().w((function(e){for(;;)switch(e.n){case 0:return b(F.EVENTS.SUBMIT,{mode:k,has_value:!!T}),e.n=1,Promise.resolve(M(l,v,{type:k,value:T}));case 1:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),te=(0,o.useMemo)((function(){return"draw"===k?(0,y.jsxs)("div",{className:"media-container",children:[(0,y.jsx)("canvas",{ref:W,className:"media",height:150,onMouseDown:H,onMouseMove:Z,onMouseUp:q,onMouseLeave:q,onTouchStart:X,onTouchMove:Y,onTouchEnd:J}),T&&(0,y.jsx)("button",{type:"button",className:"clear","aria-label":"Clear signature",onClick:K,children:"×"})]}):"text"===k?(0,y.jsx)("input",{className:"media text-input",type:"text",placeholder:"Type your signature",value:"string"==typeof T?T:"",onChange:Q,maxLength:40}):(0,y.jsx)("input",{className:"media file-input",type:"file",accept:"image/*",onChange:$})}),[k,T]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.A,{css:h,baseCss:E,componentName:F.NAME}),(0,y.jsxs)("div",{className:"signature",ref:C,"data-celero-sp":F.NAME,"assistant-c-name":a?"signature-".concat(a):"signature",children:[n&&(0,y.jsx)("div",{className:"header",children:n}),(0,y.jsx)("div",{className:"body",children:(0,y.jsxs)("div",{className:"track",children:[(0,y.jsxs)("div",{role:"group","aria-label":"signature mode selector",children:[(0,y.jsx)("div",{className:"title",children:"Choose method"}),(0,y.jsx)("div",{className:"subtitle",children:(0,y.jsxs)("select",{className:"select",value:k,onChange:function(e){return t=e.target.value,L(t),"text"===t&&"string"==typeof(n=T)&&/^data:image\//.test(n)&&B(""),void b(F.EVENTS.SELECT_CHANGE,{mode:t});var t,n},children:[(0,y.jsx)("option",{value:"draw",children:"Draw"}),(0,y.jsx)("option",{value:"text",children:"Type it"}),(0,y.jsx)("option",{value:"image",children:"Upload"})]})})]}),(0,y.jsxs)("div",{className:"card",children:[te,(0,y.jsxs)("div",{className:"card-body",children:[(0,y.jsx)("div",{className:"title",children:"Your Signature:"}),T&&(0,y.jsx)("div",{className:"subtitle",children:"text"===k?(0,y.jsx)("span",{className:"typed-preview",children:T}):(0,y.jsx)("img",{className:"image-preview",src:T,alt:"Signature preview"})})]})]}),(0,y.jsx)("button",{className:"button",onClick:ee,type:"button",children:"Submit Signature"})]})})]})]})}var N=n.p+"static/media/styles.f22009fd7f462a627127.css",T=n(30495),B=(0,a.Ay)("div")({display:"flex",flexDirection:"column",height:"100%",width:"100%",minWidth:0}),W=(0,a.Ay)("div")({display:"flex",flexDirection:"column",gap:10,flex:1,minHeight:0,minWidth:0,overflowY:"auto"}),G=(0,a.Ay)("div")({display:"flex",flexDirection:"column",gap:10,flex:1,padding:"8px 10px 12px"});function V(e,t){var n,r,i,o;switch(e.type){case"summary":return(0,y.jsx)(A,{title:e.title||"",body:H(e,t,"body")||e.body,companyId:t.companyId,componentId:e.id});case"carousel":return(0,y.jsx)(b,{title:e.title||"",cards:U(e,t,"cards")||[],companyId:t.companyId,componentId:e.id});case"outline":return(0,y.jsx)(L,{title:e.title||"",items:U(e,t,"items")||[],onGoToPage:t.onGoToPage,companyId:t.companyId,componentId:e.id});case"signature":return(0,y.jsx)(D,{title:e.title||"Signature",companyId:t.companyId,componentId:e.id,ctx:t,typeBindingPath:(null==e||null===(n=e.dataBinding)||void 0===n||null===(r=n.signatureType)||void 0===r?void 0:r.path)||"signature.type",valueBindingPath:(null==e||null===(i=e.dataBinding)||void 0===i||null===(o=i.signatureValue)||void 0===o?void 0:o.path)||"signature.value",submitActionPath:(null==e?void 0:e.submitAction)||"signature.submit"});default:return null}}function z(e){var t,n,r=e.config,a=e.ctx,c=(0,s.b)(a.companyId,"panel",r.id),u=c.stylesheet,f=c.loading,p=r.layout.tabs||[],m=r.layout.defaultTabId||(null===(t=p[0])||void 0===t?void 0:t.id),v=(0,o.useState)(m||""),h=(0,i.A)(v,2),g=h[0],w=h[1],C=(0,o.useMemo)((function(){return p.find((function(e){return e.id===g}))||p[0]}),[p,g]);(0,o.useEffect)((function(){if(a.isMobile){var e=function(e){var t,n=null==e||null===(t=e.detail)||void 0===t?void 0:t.tabId;n&&(p.some((function(e){return e.id===n}))&&w(n))};return window.addEventListener("dsl:setActiveTab",e),function(){return window.removeEventListener("dsl:setActiveTab",e)}}}),[a.isMobile,p]);var b=(0,o.useRef)(null);return(0,o.useEffect)((function(){b.current&&b.current.setAttribute("assistant-c-name","panel")})),(0,y.jsxs)(B,{ref:b,className:"root","data-celero-sp":"panel","assistant-c-name":"panel",children:[(0,y.jsx)(d.A,{css:u,componentName:"panel",baseCss:N}),f&&(0,y.jsxs)(G,{className:"body",children:[!a.isMobile&&(0,y.jsx)(l.A,{variant:"rectangular",height:32,sx:{borderRadius:"12px",width:"100%"}}),(0,y.jsx)(l.A,{variant:"rounded",height:28,sx:{borderRadius:"8px"}}),(0,y.jsx)(l.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}}),(0,y.jsx)(l.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}}),(0,y.jsx)(l.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}})]}),!f&&(0,y.jsxs)(y.Fragment,{children:[!a.isMobile&&(0,y.jsx)("div",{className:"tabs","assistant-c-name":"panel-tabs",children:(0,y.jsx)(T.A,{items:p.map((function(e){return{id:e.id,label:e.label,icon:e.icon}})),value:Math.max(0,p.findIndex((function(e){return e.id===g}))),onChange:function(e){var t,n;return w((null===(t=p[e])||void 0===t?void 0:t.id)||(null===(n=p[0])||void 0===n?void 0:n.id))},variant:"scrollable",color:void 0,iconPosition:"start"})}),(0,y.jsx)(W,{className:"body",children:null==C||null===(n=C.components)||void 0===n?void 0:n.map((function(e){var t,n="string"==typeof e?e:null==e?void 0:e.id;if(!n)return null;var i=r.components,o=Array.isArray(i)?i.find((function(e){return e.id===n})):i[n];if(!o)return null;var l=!(null==o||null===(t=o.state)||void 0===t||!t.collapsed);return(0,y.jsx)("div",{children:!l&&V(o,a)},n)}))})]})]})}function U(e,t,n){var r;if(Array.isArray(e[n]))return e[n];var i=null===(r=e.dataBinding)||void 0===r?void 0:r[n];return"dataBinding"===(null==i?void 0:i.type)&&Z((t.dataSources||{})[i.source],i.path)||[]}function H(e,t,n){var r;if(null!=e[n])return e[n];var i=null===(r=e.dataBinding)||void 0===r?void 0:r[n];return"dataBinding"===(null==i?void 0:i.type)?Z((t.dataSources||{})[i.source],i.path):void 0}function Z(e,t){if(t){var n,i=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,a=(0,r.A)(i);try{for(a.s();!(n=a.n()).done;){var l=n.value;if("$"!==l&&""!==l){if(null==o)return;o=o[l]}}}catch(e){a.e(e)}finally{a.f()}return o}}},65425:function(e,t,n){n.d(t,{A:function(){return A},Z:function(){return E}});var r=n(89379),i=n(91212),o=n(10467),a=n(57957),l=n(97175),c=n.n(l),s=n(85191),d=n.n(s),u=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"panel","$comment":"cssClasses are documentation-only. Runtime styling is provided via external stylesheets and injected by the application. This schema supports both legacy static configuration and new patch-based state management.","title":"Panel DSL","type":"object","required":["version","type","id","components"],"properties":{"version":{"type":"string","pattern":"^\\\\d+\\\\.\\\\d+$"},"type":{"type":"string","const":"panel"},"id":{"type":"string"},"dataSources":{"oneOf":[{"type":"array","description":"Reusable data sources fetched by the parent; components bind into these results.","items":{"$ref":"#/$defs/DataSource","x-ai-editable":"yes"},"x-ai-editable":"yes"},{"type":"object","description":"Reusable data sources keyed by ID (for patch-based updates).","additionalProperties":{"$ref":"#/$defs/DataSource","x-ai-editable":"yes"},"x-ai-editable":"yes"}],"x-ai-editable":"yes"},"layout":{"type":"object","description":"Controls how the panel is organized and what components are displayed.","properties":{"kind":{"type":"string","enum":["tabs"],"description":"Layout of components across multiple tabs","x-ai-editable":"yes"},"tabs":{"oneOf":[{"type":"array","description":"The tabs that will be displayed in the panel. If only one tab is provided, it will be displayed as a single tab.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique tab identifier","x-ai-editable":"yes"},"label":{"type":"string","description":"The text that will be displayed on the tab","x-ai-editable":"yes"},"components":{"type":"array","items":{"$ref":"#/$defs/TabComponentRef"},"description":"What components will be displayed in the tab","x-ai-editable":"yes"},"icon":{"type":"string","description":"Tab icon identifier","x-ai-editable":"yes"},"x-ai-editable":"yes"},"required":["id","label","components"],"x-ai-editable":"yes"},"x-ai-editable":"yes"},{"type":"object","description":"The tabs keyed by ID (for patch-based updates).","additionalProperties":{"type":"object","properties":{"id":{"type":"string","description":"Unique tab identifier","x-ai-editable":"yes"},"label":{"type":"string","description":"The text that will be displayed on the tab","x-ai-editable":"yes"},"components":{"type":"array","items":{"$ref":"#/$defs/TabComponentRef"},"description":"What components will be displayed in the tab","x-ai-editable":"yes"},"icon":{"type":"string","description":"Tab icon identifier","x-ai-editable":"yes"},"x-ai-editable":"yes"},"required":["id","label","components"],"x-ai-editable":"yes"},"x-ai-editable":"yes"}],"x-ai-editable":"yes"},"defaultTabId":{"type":"string","description":"ID of the default tab to show","x-ai-editable":"yes"},"x-ai-editable":"yes"},"required":["kind","tabs"],"x-ai-editable":"yes"},"position":{"type":"string","enum":["left","right"],"default":"left","description":"The location on the screen the panel will be displayed","x-ai-editable":"yes"},"components":{"oneOf":[{"type":"array","minItems":1,"items":{"$ref":"#/$defs/Component"}},{"type":"object","description":"Components keyed by ID (for patch-based updates).","additionalProperties":{"$ref":"#/$defs/Component"}}]}},"unevaluatedProperties":false,"$defs":{"dotPath":{"type":"string","pattern":"^[A-Za-z_][\\\\w]*(\\\\.[A-Za-z_][\\\\w]*)*$","description":"Dot path into JSON (e.g., recommendationApi.outline)"},"DataSource":{"type":"object","required":["id","kind","url"],"properties":{"id":{"type":"string","description":"Unique source id"},"kind":{"const":"http","description":"HTTP JSON source"},"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"default":"GET"},"headers":{"type":"object","description":"Static request headers","additionalProperties":{"type":"string"}},"query":{"type":"object","description":"Query string parameters","additionalProperties":{"type":"string"}},"body":{"description":"Request body (for non-GET methods)","oneOf":[{"type":"object"},{"type":"string"}]},"expects":{"type":"string","const":"json","default":"json","description":"Response is JSON"},"timeoutMs":{"type":"integer","minimum":0,"default":10000},"cacheTtlMs":{"type":"integer","minimum":0},"pollMs":{"type":"integer","minimum":0,"description":"Optional polling interval (0 or omit = no polling)"}},"unevaluatedProperties":false},"Binding":{"type":"object","required":["type","source","path"],"properties":{"type":{"const":"dataBinding"},"source":{"type":"string","description":"id of a DataSource in parent dataSources[]"},"path":{"$ref":"#/$defs/dotPath","description":"Dot path into the JSON returned by the source"}},"unevaluatedProperties":false},"ComponentBase":{"$anchor":"ComponentBase","type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"title":{"type":"string","x-ai-editable":"yes"},"state":{"type":"object","description":"Will the component be displayed as collapsed or expanded when the panel is opened?","properties":{"collapsed":{"type":"boolean","default":false,"x-ai-editable":"yes"}}},"dataBinding":{"type":"object","description":"Map of component inputs (e.g., cards/items/body) → { type:\'dataBinding\', source, path }","additionalProperties":{"$ref":"#/$defs/Binding"},"x-ai-editable":"yes"}}},"TabComponentRef":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Component identifier"},"type":{"type":"string","description":"Component type"}},"additionalProperties":true},"Component":{"oneOf":[{"$ref":"carousel"},{"$ref":"outline"},{"$ref":"summary"},{"$ref":"signature"}]},"PanelPatches":{"$ref":"patches-schema","description":"JSON Patch operations for modifying panel configuration"}}}'),f=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"carousel","allOf":[{"$ref":"panel#/$defs/ComponentBase"},{"type":"object","properties":{"type":{"const":"carousel"},"cards":{"type":"array","items":{}},"carouselOptions":{"type":"object","properties":{"autoplay":{"type":"boolean","default":true},"intervalMs":{"type":"integer","minimum":0,"default":5000}},"unevaluatedProperties":false}},"required":["type"],"allOf":[{"if":{"required":["dataBinding"]},"then":{"properties":{"dataBinding":{"type":"object","propertyNames":{"enum":["cards"]}}}}}],"unevaluatedProperties":false}]}'),p=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"outline","allOf":[{"$ref":"panel#/$defs/ComponentBase"},{"type":"object","properties":{"type":{"const":"outline"},"items":{"type":"array","items":{}},"layout":{"type":"string","enum":["stack","accordion"],"default":"stack"}},"required":["type"],"allOf":[{"if":{"required":["dataBinding"]},"then":{"properties":{"dataBinding":{"type":"object","propertyNames":{"enum":["items"]}}}}}],"unevaluatedProperties":false}]}'),m=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"summary","allOf":[{"$ref":"panel#/$defs/ComponentBase"},{"type":"object","properties":{"type":{"const":"summary"},"body":{"type":"string"},"truncateChars":{"type":"integer","minimum":0,"default":800,"x-ai-editable":"yes"}},"required":["type"],"allOf":[{"if":{"required":["dataBinding"]},"then":{"properties":{"dataBinding":{"type":"object","propertyNames":{"enum":["body"]}}}}}],"unevaluatedProperties":false}]}'),v=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"signature","allOf":[{"$ref":"panel#/$defs/ComponentBase"},{"type":"object","properties":{"type":{"const":"signature"},"title":{"type":"string"},"submitAction":{"type":"string","description":"Path to submit action in ctx.actions (legacy fallback supported via data_binding.onSubmit)"}},"required":["type"],"allOf":[{"if":{"required":["dataBinding"]},"then":{"properties":{"dataBinding":{"type":"object","propertyNames":{"enum":["signatureType","signatureValue"]}}}}}],"unevaluatedProperties":false}]}'),h=null;function g(e){var t=function(){if(h)return h;var e=new(c())({allErrors:!0,strict:!1,validateFormats:!0,validateSchema:!1,allowUnionTypes:!0});return d()(e),e.addSchema(f),e.addSchema(p),e.addSchema(m),e.addSchema(v),e.addSchema(u),h=e.compile(u)}();return{valid:!!t(e),errors:t.errors||null}}var w=n(44415);function y(e,t){var n=(0,w.kB)();return"".concat(n,"/company_files/company_documents/").concat(e).concat(t)}function C(){var e=(0,w.vA)(),t=e.panelId||e.panel_id;return Array.isArray(t)?t[0]||void 0:t||void 0}function b(e,t){if(!e)return null;var n;if("css"in e)return null!==(n=e.css)&&void 0!==n?n:null;if(t){var r,i=null===(r=e.instances)||void 0===r?void 0:r[t];if(null!=(null==i?void 0:i.css))return i.css}var o=e.type;if(null!=(null==o?void 0:o.css))return o.css;if(t){var a,l,c=null===(a=e.instances)||void 0===a?void 0:a[t];return null!==(l=null==c?void 0:c.css)&&void 0!==l?l:null}return null}function E(e){return x.apply(this,arguments)}function x(){return x=(0,o.A)((0,i.A)().m((function e(t){var n;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(Array.isArray(t)&&0!==t.length){e.n=1;break}return e.a(2,{});case 1:return n={},e.n=2,Promise.all(t.map(function(){var e=(0,o.A)((0,i.A)().m((function e(t){var o,a,l,c,s,d,u;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if("http"!==t.kind){e.n=9;break}return e.p=1,o=(t.method||"GET").toUpperCase(),a=t.url,l=(0,r.A)((0,r.A)({},t.headers||{}),{},{origin:window.location.origin}),c={method:o,headers:l,credentials:"omit"},"GET"!==o&&null!=t.body&&(c.body="string"==typeof t.body?t.body:JSON.stringify(t.body)),e.n=2,fetch(a,c);case 2:if((s=e.v).ok){e.n=3;break}throw new Error("HTTP ".concat(s.status));case 3:if("json"!==t.expects){e.n=5;break}return e.n=4,s.json();case 4:u=e.v,e.n=7;break;case 5:return e.n=6,s.text();case 6:u=e.v;case 7:d=u,n[t.id]=d,e.n=9;break;case 8:e.p=8,e.v;case 9:return e.a(2)}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()));case 2:return e.a(2,n)}}),e)}))),x.apply(this,arguments)}var A={_allStylesheetsCache:new Map,_configCache:new Map,getAllComponentStylesheets:function(e){var t=this;return(0,o.A)((0,i.A)().m((function n(){var r,a,l;return(0,i.A)().w((function(n){for(;;)switch(n.n){case 0:if(e){n.n=1;break}return n.a(2,{});case 1:if(r=C()){n.n=2;break}return n.a(2,{});case 2:if(!(a=t._allStylesheetsCache.get(e))){n.n=3;break}return n.a(2,a);case 3:return l=(0,o.A)((0,i.A)().m((function t(){var n,o,a;return(0,i.A)().w((function(t){for(;;)switch(t.n){case 0:return t.p=0,t.n=1,fetch("".concat("https://api.celero.io","/api/stylesheets/?companyId=").concat(e,"&panelId=").concat(r),{method:"GET",headers:{"Content-Type":"application/json"},credentials:"omit"});case 1:if((n=t.v).ok){t.n=2;break}return t.a(2,{});case 2:return t.n=3,n.json();case 3:return o=t.v,a=(null==o?void 0:o.stylesheets)||{},t.a(2,a);case 4:return t.p=4,t.v,t.a(2,{})}}),t,null,[[0,4]])})))(),t._allStylesheetsCache.set(e,l),n.a(2,l)}}),n)})))()},getConfig:function(e){var t=this;return(0,o.A)((0,i.A)().m((function n(){var r,a,l;return(0,i.A)().w((function(n){for(;;)switch(n.n){case 0:if(e){n.n=1;break}return n.a(2,null);case 1:if(r=C()){n.n=2;break}return n.a(2,null);case 2:if(!(a=t._configCache.get(e))){n.n=4;break}return n.n=3,a;case 3:return n.a(2,n.v);case 4:return l=(0,o.A)((0,i.A)().m((function t(){var n,o,a,l,c,s,d,u,f,p,m,v;return(0,i.A)().w((function(t){for(;;)switch(t.n){case 0:return t.p=0,t.n=1,fetch("".concat("https://api.celero.io","/api/configs/?companyId=").concat(e,"&panelId=").concat(r),{method:"GET",headers:{"Content-Type":"application/json"},credentials:"omit"});case 1:if(!(n=t.v).ok){t.n=6;break}return t.n=2,n.json();case 2:if(l=t.v,!(c=(null==l||null===(o=l.configs)||void 0===o||null===(a=o.panel)||void 0===a?void 0:a.config)||(null==l?void 0:l.config)||l)){t.n=4;break}if(c.dataSources&&!Array.isArray(c.dataSources)&&(c.dataSources=Object.values(c.dataSources)),c.components&&!Array.isArray(c.components)&&(c.components=Object.values(c.components)),(s=g(c)).valid){t.n=3;break}throw d=(s.errors||[]).map((function(e){return"".concat(e.instancePath||"/"," ").concat(e.message||"").trim()})).join("; "),new Error("Invalid panel config: ".concat(d||"unknown error"));case 3:return t.a(2,c);case 4:case 5:t.n=7;break;case 6:case 7:t.n=9;break;case 8:t.p=8,t.v;case 9:return t.p=9,u=y(e,"/celero/panel/config.json"),t.n=10,fetch(u);case 10:if(!(f=t.v).ok){t.n=13;break}return t.n=11,f.json();case 11:if((p=t.v).dataSources&&!Array.isArray(p.dataSources)&&(p.dataSources=Object.values(p.dataSources)),p.components&&!Array.isArray(p.components)&&(p.components=Object.values(p.components)),(m=g(p)).valid){t.n=12;break}throw v=(m.errors||[]).map((function(e){return"".concat(e.instancePath||"/"," ").concat(e.message||"").trim()})).join("; "),new Error("Invalid panel config: ".concat(v||"unknown error"));case 12:return t.a(2,p);case 13:t.n=15;break;case 14:t.p=14,t.v;case 15:return t.a(2,null)}}),t,null,[[9,14],[0,8]])})))(),t._configCache.set(e,l),n.a(2,l)}}),n)})))()},getRecommendations:function(e){return(0,o.A)((0,i.A)().m((function t(){var n,r,o;return(0,i.A)().w((function(t){for(;;)switch(t.n){case 0:if(n="https://feedapi.celero.io"){t.n=1;break}throw new Error("REACT_APP_FEED_API environment variable is not configured");case 1:return r="".concat(n.replace(/\/$/,""),"/api/viewer/nextbestaction"),t.n=2,a.SP.post(r,e);case 2:return o=t.v,t.a(2,o.data)}}),t)})))()},getComponentStylesheet:function(e,t,n){var r=this;return(0,o.A)((0,i.A)().m((function o(){var a,l;return(0,i.A)().w((function(i){for(;;)switch(i.n){case 0:if(e){i.n=1;break}return i.a(2,null);case 1:return i.p=1,i.n=2,r.getAllComponentStylesheets(e);case 2:return a=i.v,l=a[t],i.a(2,b(l,n));case 3:return i.p=3,i.v,i.a(2,null)}}),o,null,[[1,3]])})))()}}},66193:function(e,t,n){n.d(t,{G:function(){return a},X:function(){return o}});var r=n(89379),i=n(45051),o={open:!1,config:{id:0,integration_name:"",platform:"",type:"",display_name:"",display:{display_name:"",title:"",submitUrl:"",withLogo:!1,hiddenFields:[],fields:[],customStyles:{},identityField:""},integration_id:0},defaultValues:{show:!1,values:{}}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;return t.type===i.L?(0,r.A)((0,r.A)({},e),t.payload):e}},66241:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return s}});var r,i,o=n(49255),a=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&I(r),3==++t){var l=[];e.forEach((function(e){e.handled||"contact"!==e.type.toLowerCase()||l.push(e.id)})),l.length>0&&I(l)}else n+=2e3,setTimeout((function(){S(e,t,n)}),n)}return(0,o.useEffect)((function(){var e=new Set;k.forEach((function(t){"MARKETO"===t.name&&e.add(t.id)}));var t=k.reduce((function(e,t){return"MARKETO"===t.name?[].concat((0,i.A)(e),[t.id]):e}),[]);t.length>0&&setTimeout((function(){I(t)}),2e4);var n=(0,i.A)(k);setTimeout((function(){S(n,0,2e3)}),2e3)}),[g]),null};y.displayName="IntegrationHandler",t.Ay=y},71534:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return c}});var r,i=n(49255),o=["title","titleId"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=N)n=e.substring(0,r);else{var i=e.indexOf(" ",t);-1!==i&&i-t<=10&&(n=e.substring(0,i))}return n+"..."}(D,60),B="".concat(T," | ").concat(null==w||null===(f=w.company)||void 0===f?void 0:f.name);return(0,P.jsxs)(I.mg,{children:[(0,P.jsx)("title",{children:B}),L,(0,P.jsx)("meta",{property:"og:title",content:A}),(0,P.jsx)("meta",{property:"og:description",content:_}),(0,P.jsx)("meta",{property:"og:image",content:k}),(0,P.jsx)("meta",{name:"title",content:A}),(0,P.jsx)("meta",{name:"description",content:_}),(0,P.jsx)("meta",{name:"keywords",content:(null==h||null===(m=h.keywords)||void 0===m?void 0:m.join(", "))||F.d6}),(0,P.jsx)("meta",{property:"fb:app_id",content:"887434528837802"}),(0,P.jsx)("link",{rel:"canonical",href:window.location.href.split("?")[0]}),(0,P.jsx)("meta",{property:"og:url",content:window.location.href}),(0,P.jsx)("meta",{property:"og:type",content:"website"}),(0,P.jsx)("meta",{name:"author",content:null==w||null===(v=w.company)||void 0===v?void 0:v.name}),(0,P.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,P.jsx)("meta",{name:"twitter:title",content:A}),(0,P.jsx)("meta",{name:"twitter:description",content:_}),(0,P.jsx)("meta",{name:"twitter:image",content:b}),(0,P.jsx)("link",{rel:"alternate",type:"application/json+oembed",href:M}),(0,P.jsx)("link",{rel:"iframely",href:window.location.href,media:"(aspect-ratio: 1280/720)"})]})},M=n(4361),D=(n(21399),n(21959),n(35427),n(68972),n(87973),n(25912)),N=n(63962),T=n(14724),B=n(87162),W=n(63503),G=function(){var e=0,t=function(e){return Math.hypot(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY)},n=function(n){2===n.touches.length&&(e=t(n.touches))},r=(0,W.s)((function(n){if(2===n.touches.length){var r=t(n.touches);r>e?window.IDRViewer.zoomIn():r0?window.IDRViewer.zoomOut():e.deltaY<0&&window.IDRViewer.zoomIn())}),100),a=function(n){if(2===n.touches.length){var i=t(n.touches);(i>e||i0||e.deltaY<0)&&e.preventDefault(),o(e)},c=function(e){!e.ctrlKey&&!e.metaKey||"+"!==e.key&&"-"!==e.key||(e.preventDefault(),"+"===e.key?window.IDRViewer.zoomIn():"-"===e.key&&window.IDRViewer.zoomOut())};return(0,i.useEffect)((function(){return document.addEventListener("touchstart",n,{passive:!1}),document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("keydown",c),function(){document.removeEventListener("touchstart",n),document.removeEventListener("touchmove",a),document.removeEventListener("wheel",l),document.removeEventListener("keydown",c)}}),[]),(0,P.jsx)(P.Fragment,{})},V=n(47206),z=function(e){var t=(0,c.d4)((function(e){return{theme:e.theme}})).theme,n=e.content,r=e.idrViewerElement,o=e.viewerOptions,l=e.isControlsBarParamEnabled,s=e.searchInFeedOpened,d=e.feedWidth,u=o.isPresentationMode,f=o.isWebsiteMode,m=o.isZoomFitPage,v=o.isHideNavigation,h=o.pageFit,g=(0,x.g7)(n,o),w=g.viewerHeight,y=g.viewerBarHeight,C=(0,D.A)().width,A=(0,E.A)().isMobile;(0,T.PU)({idrViewerElement:r,viewerOptions:o,isControlsBarParamEnabled:l});var _=(0,b.A)(),O=_.currentZoomSettings,k=_.currentPageNumber,L=_.loadedPages,I=(0,i.useRef)(0),S=(0,i.useRef)(!1);var j=function(){var e,t=null==n||null===(e=n.config)||void 0===e?void 0:e.bounds[0][0],r=1200,i=s?C-d:C;i>1200&&i<=1920?r=.8*i:i>1920&&(r=.6*i);var o=t?Math.min(t,r):r;return i>o?i-o:0},F=function(){var e=0,t=window.IDRViewer.ZOOM_FITWIDTH;switch(h){case"auto":u?t=window.IDRViewer.ZOOM_AUTO:(t=window.IDRViewer.ZOOM_FITWIDTH,e=j());break;case"fit-height":t=window.IDRViewer.ZOOM_FITHEIGHT;break;case"fit-width-with-margins":t=window.IDRViewer.ZOOM_FITWIDTH,e=j();break;case"fit-width":t=window.IDRViewer.ZOOM_FITWIDTH;break;case"fit-page":t=window.IDRViewer.ZOOM_FITPAGE;break;default:if(e=0,f)t=window.IDRViewer.ZOOM_FITWIDTH;else if(m||u)t=window.IDRViewer.ZOOM_FITPAGE;else{new Date(n.created_at).getTime()>1673526466580?t=window.IDRViewer.ZOOM_AUTO:(t=window.IDRViewer.ZOOM_FITWIDTH,e=j())}}return window.IDRViewer.config=(0,a.A)((0,a.A)({},window.IDRViewer.config),{},{paddingX:e,PADDING_HORIZONTAL:e}),window.IDRViewer.setZoom(t),{PADDING_HORIZONTAL:e}};(0,i.useEffect)((function(){u&&window.IDRViewer.setLayout(window.IDRViewer.LAYOUT_PRESENTATION),F()}),[u,s,d,C]);var R=window.devicePixelRatio,M=window.devicePixelRatio,z=function(){window.devicePixelRatio!==R&&(R=window.devicePixelRatio,M==window.devicePixelRatio?F():window.IDRViewer.setZoom(window.IDRViewer.ZOOM_ACTUALSIZE))};return(0,i.useEffect)((function(){var e=(0,W.n)((function(e){var t=document.getElementById("idrviewer"),n=new e.constructor(e.type,e);null==t||t.dispatchEvent(n)}),500,{leading:!0,trailing:!1});return window.celeroData?(window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}):(window.addEventListener("resize",z),function(){window.removeEventListener("resize",z)})}),[]),(0,i.useEffect)((function(){n&&requestAnimationFrame((function(){try{!function(e){var t=F().PADDING_HORIZONTAL;u&&window.IDRViewer.setLayout(window.IDRViewer.LAYOUT_PRESENTATION);var n=(0,N.h)(e.base_url);window.IDRViewer.config=(0,a.A)((0,a.A)({PADDING_HORIZONTAL:t},e.config),{},{isR2L:!1,url:"".concat(n,"/")}),window.IDRViewer.setup()}(n)}catch(e){}}))}),[n]),(0,i.useEffect)((function(){(o.highlightLinks||S.current)&&L.includes(k)&&I.current!==k&&(I.current=k,function(e){if(e){var t=document.getElementById("idrviewer-page".concat(e));t&&setTimeout((function(){var e=t.getElementsByTagName("A");Array.from(e).forEach((function(e){e.setAttribute("style","box-shadow:0px 1px 2px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1), 0px 4px 8px rgba(0,0,0,0.1), 0px 8px 16px rgba(0,0,0,0.1); background-color: #2a2a2a; opacity:0.2; transition-timing-function:ease-in-out;"),setTimeout((function(){e.setAttribute("style","")}),1e3)}))}),1e3)}}(k))}),[k,L]),(0,i.useEffect)((function(){var e=(0,p.vA)();S.current=void 0===e.highlight_links||null===e.highlight_links||"true"===e.highlight_links}),[]),(0,P.jsxs)("div",{style:{height:"100%"},children:[!A&&(0,P.jsx)(G,{}),(0,P.jsx)(V.c,{contentId:n.uuid}),(0,P.jsx)("div",{id:"idrviewer",ref:r,className:function(){var e,t,r,i;if(f)return"is-website-mode ".concat("auto"===h||""===h?"auto-fit":"");if(u)return"".concat(v?"":"transition-slide"," presentation-mode");if(m&&1!=(null==n||null===(e=n.config)||void 0===e?void 0:e.pagecount))return"";var o=(null==n||null===(t=n.config)||void 0===t?void 0:t.bounds[0])&&(null==n||null===(r=n.config)||void 0===r?void 0:r.bounds[0][1]);return 1==(null==n||null===(i=n.config)||void 0===i?void 0:i.pagecount)&&o&&null!=O&&O.zoomValue&&w&&o*O.zoomValuet?"".concat(e.slice(0,t),"…"):e},J=function(e){var t,n={},r=Array.from(e.attributes).slice(0,50),i=(0,q.A)(r);try{for(i.s();!(t=i.n()).done;){var o,a=t.value;n[a.name]=Y(null!==(o=a.value)&&void 0!==o?o:"",500)}}catch(e){i.e(e)}finally{i.f()}return n},Q=function(e,t){for(var n=[],r=e;r;){var i=r.getAttribute(t);i&&n.push(i),r=r.parentElement}return n.length?n:null},$=function(e,t,n){var r,i,o,a="function"==typeof e.composedPath?e.composedPath():null;if(Array.isArray(a)){var l,c=(0,q.A)(a);try{for(c.s();!(l=c.n()).done;){var s=l.value;if(s instanceof Element&&s.hasAttribute(t)){var d=s.getAttribute(t);if(d)return{element:s,name:d}}}}catch(e){c.e(e)}finally{c.f()}}var u=null;e.target instanceof Element?u=e.target:e.target&&e.target instanceof Node&&(u=e.target.parentElement),u||"number"!=typeof(null==n?void 0:n.clientX)||"number"!=typeof(null==n?void 0:n.clientY)||(u=document.elementFromPoint(n.clientX,n.clientY));var f=null!==(r=null===(i=u)||void 0===i||null===(o=i.closest)||void 0===o?void 0:o.call(i,"[".concat(t,"]")))&&void 0!==r?r:null;if(!f)return null;var p=f.getAttribute(t);return p?{element:f,name:p}:null},ee=function(e){var t=e.getBoundingClientRect();return{top:t.top,left:t.left,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},te=function(e,t){var n=document.createElement("div");return n.id=e,Object.assign(n.style,{position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",pointerEvents:"none",zIndex:"2147483647",border:"2px solid ".concat(t),background:"transparent",boxSizing:"border-box",borderRadius:"4px",display:"none"}),document.documentElement.appendChild(n),n},ne=function(e,t){t?(e.style.display="block",e.style.transform="translate(".concat(t.left,"px, ").concat(t.top,"px)"),e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px")):e.style.display="none"},re=function(){try{return window.location.href}catch(e){return null}},ie=function(e,t){var n,r,i,o,a,l=null!==(n=e.getAttribute(t))&&void 0!==n?n:"unknown",c=e instanceof HTMLElement?e.outerHTML:"",s=null!==(r=e.textContent)&&void 0!==r?r:"";return{name:l,url:re(),rect:ee(e),tagName:null!==(i=e.tagName)&&void 0!==i?i:null,id:null!==(o=e.id)&&void 0!==o?o:null,className:null!==(a=e.className)&&void 0!==a?a:null,attributes:J(e),ancestry:Q(e,t),htmlSnippet:c?Y(c,2e3):null,textSnippet:s?Y(s.trim(),500):null}};function oe(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!==(e=n.markerAttribute)&&void 0!==e?e:"assistant-c-name",i=null!==(t=n.allowedParentOrigins)&&void 0!==t?t:null,o=Boolean(n.sendHover),a=!1,l=null,c=null,s=null,d=te("celero-assistant-inspector-hover","#3b82f6"),u=te("celero-assistant-inspector-selected","#10b981");u.style.borderWidth="3px";var f=function(e){try{window.parent.postMessage(e,"*")}catch(e){}},p=function(e){var t=document.documentElement;e?(null===s&&(s=t.style.cursor||""),t.style.cursor="pointer"):null!==s&&(t.style.cursor=s,s=null)},m=function(e){var t;if(a){var n=$(e,r,{clientX:e.clientX,clientY:e.clientY}),i=null!==(t=null==n?void 0:n.element)&&void 0!==t?t:null;if(i!==l&&(ne(d,(l=i)?ee(l):null),p(Boolean(l)),o)){var c=l?ie(l,r):null;f({channel:K,version:1,type:"hover",component:c})}}},v=function(){a&&(ne(d,l?ee(l):null),ne(u,c?ee(c):null))},h=function(e){if(a){var t=$(e,r,{clientX:e.clientX,clientY:e.clientY});t&&(e.preventDefault(),e.stopPropagation(),c=t.element,ne(u,ee(c)),f({channel:K,version:1,type:"select",component:ie(c,r)}))}},g=function(e){a&&"Escape"===e.key&&(l=null,c=null,ne(d,null),ne(u,null),f({channel:K,version:1,type:"select",component:null}))},w=function(e){if((!i||i.includes(e.origin))&&X(e.data)){var t=e.data;t.channel===K&&1===t.version&&("set-enabled"===t.type?function(e){if(!(a=e))return l=null,c=null,ne(d,null),ne(u,null),void p(!1);p(!1)}(Boolean(t.enabled)):"clear-selection"===t.type&&(l=null,c=null,ne(d,null),ne(u,null)))}};return window.addEventListener("message",w),window.addEventListener("pointermove",m,!0),window.addEventListener("click",h,!0),window.addEventListener("keydown",g,!0),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v,!0),f({channel:K,version:1,type:"ready"}),function(){window.removeEventListener("message",w),window.removeEventListener("pointermove",m,!0),window.removeEventListener("click",h,!0),window.removeEventListener("keydown",g,!0),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v,!0),d.remove(),u.remove()}}var ae=n(49698),le=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,68292))})),ce=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,4570))})),se=(0,i.lazy)((function(){return Promise.all([n.e(997),n.e(224),n.e(566),n.e(182),n.e(472),n.e(157),n.e(702),n.e(515),n.e(605),n.e(772),n.e(871),n.e(489),n.e(300),n.e(428)]).then(n.bind(n,30852))})),de=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,81124))})),ue=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,78688))})),fe=(0,i.lazy)((function(){return Promise.all([n.e(997),n.e(224),n.e(566),n.e(182),n.e(472),n.e(157),n.e(702),n.e(515),n.e(605),n.e(772),n.e(871),n.e(489),n.e(300),n.e(428)]).then(n.bind(n,28740))})),pe=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,82591))})),me=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,92181))})),ve=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,30694))})),he=(0,i.lazy)((function(){return Promise.all([n.e(997),n.e(224),n.e(566),n.e(182),n.e(472),n.e(157),n.e(702),n.e(515),n.e(605),n.e(772),n.e(871),n.e(489),n.e(300),n.e(428)]).then(n.bind(n,75800))})),ge=(0,i.lazy)((function(){return Promise.all([n.e(997),n.e(224),n.e(566),n.e(182),n.e(472),n.e(157),n.e(702),n.e(515),n.e(605),n.e(772),n.e(871),n.e(489),n.e(300),n.e(428)]).then(n.bind(n,32283))})),we=(0,i.lazy)((function(){return Promise.all([n.e(997),n.e(224),n.e(566),n.e(182),n.e(472),n.e(157),n.e(702),n.e(515),n.e(605),n.e(772),n.e(871),n.e(489),n.e(300),n.e(428)]).then(n.bind(n,77230))})),ye=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,45967))})),Ce=function(e){var t,n,o,l,d,f,v,h,O,I,S,j,F,D,N,T,W,G,V,q,K,X,Y,J,Q,$,ee,te,ne,re,ie=e.contentId,Ce=e.isPreviewCampaign,be=e.viewerOptions,Ee=e.handleContentNotFound,xe=(0,i.useRef)(null),Ae=(0,i.useRef)(null),_e=(0,c.wA)(),Oe=window.location.search;if(null!==(t=window.celeroData)&&void 0!==t&&t.url_full)try{Oe=new URL(window.celeroData.url_full).search}catch(e){}var ke=s.parse(Oe),Le=ke.access_id,Ie=be.isWithoutTracking,Se=be.isWithoutAnnotations,je=be.isWithoutIntegrations,Fe=be.isHideNavigation,Pe=be.isPresentationMode,Re=be.isShowControls,Me=(0,c.d4)((function(e){return{theme:e.theme,shortenData:e.shortenData}})),De=Me.theme,Ne=Me.shortenData,Te=Pe?De.palette.customViewer.viewerBackGroundColorPresentation:De.palette.customViewer.viewerBackGroundColorDocument,Be=(0,u.MX)()||Ie,We=(0,i.useState)(),Ge=(0,r.A)(We,2),Ve=Ge[0],ze=Ge[1],Ue=(0,i.useState)(Pe),He=(0,r.A)(Ue,2),Ze=He[0],qe=He[1],Ke=(0,i.useState)(!1),Xe=(0,r.A)(Ke,2),Ye=Xe[0],Je=Xe[1],Qe=(0,E.A)().isMobile,$e=!!(ke.feed||null!=Ne&&null!==(n=Ne.params)&&void 0!==n&&null!==(o=n.feed)&&void 0!==o&&o.feed||ke.search_in_feed||null!=Ne&&null!==(l=Ne.params)&&void 0!==l&&null!==(d=l.feed)&&void 0!==d&&d.search_in_feed),et=Boolean(ke.panelId||ke.panel_id||(null==Ne||null===(f=Ne.params)||void 0===f||null===(v=f.feed)||void 0===v?void 0:v.panelId)||(null==Ne||null===(h=Ne.params)||void 0===h||null===(O=h.feed)||void 0===O?void 0:O.panel_id)),tt=(0,i.useState)($e&&!Qe),nt=(0,r.A)(tt,2),rt=nt[0],it=nt[1],ot=(0,i.useState)(0),at=(0,r.A)(ot,2),lt=at[0],ct=at[1],st=(0,i.useState)("right"),dt=(0,r.A)(st,2),ut=dt[0],ft=dt[1],pt=k({bottom:Ye?76:16}),mt=(0,i.useState)(!1),vt=(0,r.A)(mt,2),ht=vt[0],gt=vt[1],wt=(0,b.A)().currentPageNumber,yt=(0,x.g7)(Ve,be),Ct=yt.footerHeight,bt=yt.viewerBarHeight,Et=(0,i.useState)(!1),xt=(0,r.A)(Et,2),At=xt[0],_t=xt[1],Ot=(0,i.useState)(362),kt=(0,r.A)(Ot,2),Lt=kt[0],It=kt[1],St=(0,i.useState)(!1),jt=(0,r.A)(St,2),Ft=jt[0],Pt=jt[1],Rt=(0,i.useCallback)((function(e){e.preventDefault(),Pt(!0)}),[]);(0,i.useEffect)((function(){if("undefined"!=typeof window&&(window.parent!==window&&"true"===new URLSearchParams(window.location.search).get("celero_preview_app")))return oe({markerAttribute:"assistant-c-name",allowedParentOrigins:["https://app-staging.celero.io","http://localhost:8084","https://app.celero.io"]})}),[]),(0,i.useEffect)((function(){var e=function(e){var t,n;if(Ft){var r,i=et&&"left"===ut,o=Ae.current,a=null==o?void 0:o.getBoundingClientRect(),l=null!==(t=null==a?void 0:a.width)&&void 0!==t?t:window.innerWidth,c=null!==(n=null==a?void 0:a.left)&&void 0!==n?n:0;(r=i?e.clientX-c:l-(e.clientX-c))<250&&(r=250),r>800&&(r=800),It(r)}},t=function(){Pt(!1)};return Ft?(window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),document.body.style.cursor="col-resize",document.body.style.userSelect="none"):(document.body.style.cursor="",document.body.style.userSelect=""),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),document.body.style.cursor="",document.body.style.userSelect=""}}),[Ft,et,ut]);var Mt=(0,i.useState)([]),Dt=(0,r.A)(Mt,2),Nt=Dt[0],Tt=Dt[1];(0,i.useEffect)((function(){var e="viewer-mobile-topbar-offset",t=Qe&&!be.isWithoutNavBar;return document.body.classList.toggle(e,t),document.body.style.setProperty("--viewer-mobile-topbar-height","".concat(B.O5,"px")),function(){document.body.classList.remove(e),document.body.style.removeProperty("--viewer-mobile-topbar-height")}}),[Qe,be.isWithoutNavBar]);var Bt=(0,i.useCallback)((function(e){it(e)}),[]);function Wt(){return(null==Ve?void 0:Ve.conversion_type)===g.d.VIDEO?(0,P.jsx)(ue,{content:Ve,viewerOptions:be}):(0,P.jsx)(z,{content:Ve,viewerOptions:be,idrViewerElement:xe,isControlsBarParamEnabled:Ze,isPreviewCampaign:Ce,searchInFeedOpened:rt,feedWidth:Lt})}if((0,i.useEffect)((function(){Qe&&et&&0===Nt.length&&Tt([{id:"content",label:"Content",icon:"Feed"}])}),[Qe,et]),(0,i.useEffect)((function(){var e=function(){Qe&&et&&ct(0)},t=function(e){var t,n="left"===(null==e||null===(t=e.detail)||void 0===t?void 0:t.side)?"left":"right";ft(n),_t(!0)},n=function(e){var t,n=null==e||null===(t=e.detail)||void 0===t?void 0:t.items;Array.isArray(n)&&n.length&&Tt(n)};return window.addEventListener("dsl:goToPage",e),window.addEventListener("dsl:position",t),window.addEventListener("dsl:tabs",n),function(){window.removeEventListener("dsl:goToPage",e),window.removeEventListener("dsl:position",t),window.removeEventListener("dsl:tabs",n)}}),[Qe,et]),(0,i.useEffect)((function(){ie?L.A.loadContent(ie,Le).then((function(e){var t,n,r,i,o={};(e.data=(0,p.iQ)(e.data),null!=Ne&&null!==(t=Ne.company)&&void 0!==t&&t.is_plan_limit_reached)&&(0,m.recordEventWidthAdditionalParams)(_.qW.PLAN_LIMIT_REACHED,{value:null==Ne||null===(r=Ne.company)||void 0===r?void 0:r.plan_usage});if(202===e.status){var l,c,s;ze(e.data.content),o=null==e||null===(l=e.data)||void 0===l||null===(c=l.content)||void 0===c?void 0:c.content_customizations;var d=(0,u.zL)(A.w,null==Ne||null===(s=Ne.company)||void 0===s?void 0:s.company_customizations);_e((0,y.Y)(d)),(0,m.recordEventWidthAdditionalParams)(_.qW.WARNING,{functionality:"ViewerAPI.loadContent in Viewer container",value:e.data.message})}else{var f,v;ze(e.data);var h=(0,u.zL)(A.w,null==Ne||null===(f=Ne.company)||void 0===f?void 0:f.company_customizations);_e((0,y.Y)(h)),o=null==e||null===(v=e.data)||void 0===v?void 0:v.content_customizations}if(o){var g=(0,u.zL)(A.w,o);_e((0,y.Y)(g))}null!=e&&null!==(n=e.data)&&void 0!==n&&n.html_snippets&&_e((0,C.S)(null==e||null===(i=e.data)||void 0===i?void 0:i.html_snippets));(0,m.debugTracker)("d5",(0,a.A)({},(0,m.getGeneralTrackingData)()))})).catch((function(e){var t,n,r,i,o,a,l,c,s,d,u,f;null!==(t=e.message)&&void 0!==t&&t.includes("404")?Ee():(0,w.vx)("Error while loading content",_e,null,{message:e.message,status:(null===(n=e.response)||void 0===n?void 0:n.status)||"",statusText:(null===(r=e.response)||void 0===r?void 0:r.statusText)||"",url:(null===(i=e.config)||void 0===i?void 0:i.url)||"",method:(null===(o=e.config)||void 0===o?void 0:o.method)||"",data:"string"==typeof(null===(a=e.response)||void 0===a?void 0:a.data)||"number"==typeof(null===(l=e.response)||void 0===l?void 0:l.data)||"boolean"==typeof(null===(c=e.response)||void 0===c?void 0:c.data)?null===(s=e.response)||void 0===s?void 0:s.data:JSON.stringify(null===(d=e.response)||void 0===d?void 0:d.data),requestHeaders:null!==(u=e.config)&&void 0!==u&&u.headers?JSON.stringify(e.config.headers):"",responseHeaders:null!==(f=e.response)&&void 0!==f&&f.headers?JSON.stringify(e.response.headers):"",stack:e.stack||""})})):(0,w.vx)("Please use valid content Id",_e)}),[ie,Le]),(0,i.useEffect)((function(){var e=s.parse(window.location.search);qe("true"===e.controls)}),[]),(0,i.useEffect)((function(){if($e&&!Qe){var e=rt?"Open Sidebar":"Close Sidebar",t={account_id:null==Ne?void 0:Ne.company.account_id};(0,m.recordEventWidthAdditionalParams)(e,t)}}),[rt]),(0,i.useEffect)((function(){Ve&&((0,m.setGeneralTrackingData)({page_number:wt,content_id:Ve.uuid,account_id:Ne.company.account_id,title:Ve.version.version_details.name,version_number:Ve.version.version_number,version_id:Ve.version.version_details.uuid}),gt(!0))}),[Ve]),(0,i.useEffect)((function(){try{var e,t,n=(null==Ne||null===(e=Ne.company)||void 0===e||null===(t=e.id)||void 0===t?void 0:t.toString())||"global",r=localStorage.getItem("sp_side_".concat(n));"left"!==r&&"right"!==r||(ft(r),_t(!0))}catch(e){}}),[null==Ne||null===(I=Ne.company)||void 0===I?void 0:I.id]),!Ve)return null;var Gt=Ze&&Re,Vt=Ve.shorten,zt=null==Vt?void 0:Vt.split("/s/")[1],Ut=null==zt?void 0:zt.split("/")[0],Ht=null==Ne?void 0:Ne.menu_items,Zt=null==Ne||null===(S=Ne.company)||void 0===S||!S.company_customizations||(null==Ne||null===(j=Ne.company)||void 0===j||null===(F=j.company_customizations)||void 0===F?void 0:F.is_sticky_bar);Ve.content_customizations&&(Zt=Ve.content_customizations.is_sticky_bar);var qt=function(e){var t,n;switch(null==e?void 0:e.type){case"link":var r,i,o=e.value;null!==(r=o)&&void 0!==r&&r.startsWith("http://")||null!==(i=o)&&void 0!==i&&i.startsWith("https://")||(o="https://"+o),window.open(o,"_self");break;case"page":null===(t=window.IDRViewer)||void 0===t||null===(n=t.goToPage)||void 0===n||n.call(t,e.value)}};function Kt(e){var t=be.isWithoutNavBar?0:bt;(0,ae.N)(e,{headerOffset:t,isPresentationMode:be.isPresentationMode})}var Xt,Yt;return(0,P.jsxs)("div",{id:"viewer-main-wrapper",ref:Ae,"assistant-c-name":"microsite",style:{position:"relative",height:"100%",background:Te},children:[be.isWithoutNavBar?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(x.Ay,{content:Ve,viewerOptions:be,idrViewer:window.IDRViewer,isPreviewCampaign:Ce,menuItems:Ht,handleMenuItemClick:qt}),Ce&&(0,P.jsx)(Z.A,{isStickyBar:Zt&&!be.isWithoutNavBar})]}),(0,P.jsxs)("div",{style:(0,a.A)((0,a.A)({},!rt||!$e||Qe||et&&!At?{}:et&&"left"===ut?{marginLeft:Lt}:{marginRight:Lt}),{},{position:"relative"}),children:[(0,P.jsx)(R,{contentApiResponse:Ve,shortenData:Ne}),Gt&&(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(me,{content:Ve,setControlsBarOpened:Je})]}),!Be&&(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(le,{content:Ve})]}),!je&&!(0,u.MX)()&&!Boolean("Celero default"===(null==Ne||null===(D=Ne.company)||void 0===D?void 0:D.name))&&(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(ce,{})]}),Be?Wt():ht&&(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:(0,P.jsx)(se,{content:Ve,shortenData:Ne,children:Wt()})}),!Fe&&(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:(0,P.jsx)(fe,{content:Ve,viewerOptions:be,backgroundColor:Te,disableSwipe:Boolean(Qe&&et&&"content"!==(null===(N=Nt[lt])||void 0===N?void 0:N.id))})}),!Se&&(0,P.jsx)(M.A,{content:Ve}),Qe&&et&&(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:(0,P.jsx)(we,{contentUuid:Ve.uuid,background:Te,bottomOffset:Ct+56,topOffset:be.isWithoutNavBar?0:bt,visible:Boolean((null===(T=Nt[lt])||void 0===T?void 0:T.id)&&"content"!==(null===(W=Nt[lt])||void 0===W?void 0:W.id))})}),Qe&&!et&&Boolean((null===(G=Nt[lt])||void 0===G?void 0:G.id)&&"content"!==(null===(V=Nt[lt])||void 0===V?void 0:V.id))&&(0,P.jsx)("div",{style:{position:"fixed",top:be.isWithoutNavBar?0:bt,left:0,right:0,bottom:Ct+56,background:Te,overflowY:"auto",zIndex:1100,padding:"16px"},children:(0,P.jsx)(H.A,{contentUuid:Ve.uuid,onGoToPage:function(e){Kt(e)},showFeeds:!0,feedName:(null==Ne||null===(q=Ne.params)||void 0===q||null===(K=q.feed)||void 0===K?void 0:K.feed)||ke.feed||(null==Ne||null===(X=Ne.params)||void 0===X||null===(Y=X.feed)||void 0===Y?void 0:Y.search_in_feed)||ke.search_in_feed||"default",accountId:null==Ne||null===(J=Ne.company)||void 0===J?void 0:J.account_id,feedsColor:void 0,currentPageNumber:wt,containerScroll:!0})}),"STICKY_CENTER_LEFT"===(null==Ve||null===(Q=Ve.content_action)||void 0===Q?void 0:Q.button_position)&&!Qe&&(0,P.jsx)("div",{className:pt.centeredLeftSticky,children:(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(pe,{content:Ve,withShadow:!0})]})}),(0,P.jsx)("div",{style:(0,a.A)({minHeight:Ct,position:"fixed",bottom:0,left:0,right:0,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",background:Te,paddingTop:"10px",gap:5,zIndex:1200},!rt||!$e||Qe||et&&!At?{}:et&&"left"===ut?{marginLeft:Lt}:{marginRight:Lt}),children:(0,P.jsx)(U.A,{isMobile:Qe,currentPageNumber:wt,pageCount:(null==Ve||null===($=Ve.config)||void 0===$?void 0:$.pagecount)||1,goToPage:Kt,isPresentationMode:Pe,backgroundColor:Te,mobileActiveTab:lt,mobileTabs:Nt,onMobileTabChange:function(e){ct(e);var t=Nt[e];if("content"===(null==t?void 0:t.id))it(!1);else{it(!0);try{window.dispatchEvent(new CustomEvent("dsl:setActiveTab",{detail:{tabId:t.id}}))}catch(e){}}},bottomChildren:Qe?(0,P.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"5px 10px"},children:(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:(0,P.jsx)(ve,{content:Ve,isPresentationMode:Pe})})}):null,children:Qe&&(0,P.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:null!=Ne&&null!==(ee=Ne.company)&&void 0!==ee&&null!==(te=ee.company_customizations)&&void 0!==te&&te.is_powered_by_celero?"flex-end":"center",alignItems:"center",padding:"0px 30px",gap:"5px"},children:null!=Ve&&null!==(Yt=Ve.content_action)&&void 0!==Yt&&Yt.is_enabled&&Qe?(0,P.jsx)(pe,{content:Ve,withShadow:!1}):(0,P.jsx)(P.Fragment,{})})})}),!Qe&&(0,P.jsxs)("div",{className:pt.poweredByWrapper,children:["STICKY_BOTTOM_LEFT"===(null==Ve||null===(Xt=Ve.content_action)||void 0===Xt?void 0:Xt.button_position)?(0,P.jsx)(pe,{content:Ve,withShadow:!0}):(0,P.jsx)(P.Fragment,{}),(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:(0,P.jsx)(ve,{content:Ve})})]}),(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(de,{})]})]}),$e&&!Qe&&(0,P.jsxs)("div",{style:(0,a.A)((0,a.A)({position:window.celeroData?"absolute":"fixed",top:be.isWithoutNavBar?0:bt},et&&"left"===ut?{left:0,right:"auto"}:{right:0}),{},{overflow:"visible",width:rt?Lt:0,transition:Ft?"none":"width 0.3s",height:be.isWithoutNavBar?"100vh":"calc(100vh - ".concat(bt,"px)"),background:Te,zIndex:1100,display:"flex"}),children:[!(et&&"left"===ut)&&(0,P.jsx)("div",{onMouseDown:Rt,style:{width:"12px",cursor:"col-resize",height:"100%",flexShrink:0,backgroundColor:"transparent",zIndex:1102,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",left:0},title:"Drag to resize",children:(0,P.jsx)("div",{style:{width:"4px",height:"40px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.2)"}})}),(0,P.jsx)("div",{style:{flex:1,overflow:"auto",height:"100%",minWidth:0,paddingLeft:et&&"left"===ut?0:"12px",paddingRight:et&&"left"===ut?"12px":0},children:(0,P.jsx)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:et?(0,P.jsx)(ge,{viewerBarHeight:bt,accountId:null==Ne||null===(ne=Ne.company)||void 0===ne?void 0:ne.account_id,shouldOpenFeeds:rt,handleSeachInFeedStatus:Bt,contentUuid:Ve.uuid,celeroId:(0,m.getCeleroId)(),shorten:Ut,background:Te}):(0,P.jsx)(he,{viewerBarHeight:bt,accountId:null==Ne||null===(re=Ne.company)||void 0===re?void 0:re.account_id,shouldOpenFeeds:rt,handleSeachInFeedStatus:Bt,contentUuid:Ve.uuid,celeroId:(0,m.getCeleroId)(),shorten:Ut,background:Te})})}),et&&"left"===ut&&(0,P.jsx)("div",{onMouseDown:Rt,style:{width:"12px",cursor:"col-resize",height:"100%",flexShrink:0,backgroundColor:"transparent",zIndex:1102,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:0},title:"Drag to resize",children:(0,P.jsx)("div",{style:{width:"4px",height:"40px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.2)"}})})]}),(0,P.jsxs)(i.Suspense,{fallback:(0,P.jsx)(P.Fragment,{}),children:[" ",(0,P.jsx)(ye,{})]})]})},be=n(46818),Ee=n(27224),xe=n(56924),Ae=n(81076),_e=n(5084),Oe=n(50327),ke=n(91408),Le=(0,O.A)((function(){return{root:{"& .MuiInputLabel-root.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",top:"auto"},"& .MuiInputLabel-root":{transform:"translate(14px, -50%)",top:"50%"}}}})),Ie={EMAIL_NOT_IN_CONTACTS:"Email not authorized"};function Se(e){var t=e.handleSubmitEmail,n=e.showSubmitInProgress,r=e.descriptionText,i=e.buttonText,o=e.validationError,a=e.title,l=e.logo,c=e.subDescriptionText,s=e.response,d=Le(),u=function(e){var t={};return e.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e.email)||(t.email="Invalid email address"):t.email="Email is required",t};return(0,P.jsx)(Ae.A,{minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",children:(0,P.jsxs)(Ae.A,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",maxWidth:400,children:[(0,P.jsx)("img",{height:50,src:l||Oe.default,alt:"logo"}),(0,P.jsx)(_e.A,{style:{marginTop:28,marginBottom:14,whiteSpace:"pre-line"},variant:"h5",align:"center",children:a}),(0,P.jsx)(_e.A,{style:{whiteSpace:"pre-line"},variant:"body1",align:"center",children:r}),c&&(0,P.jsx)(_e.A,{style:{whiteSpace:"pre-line",marginTop:14},variant:"body2",align:"center",children:c}),(0,P.jsx)(Ee.l1,{onSubmit:t,validate:u,validateOnChange:!1,initialValues:{email:""},children:function(e){var t=e.values,r=e.setFieldValue,o=e.setFieldTouched,a=e.errors,l=e.touched;return(0,P.jsxs)(Ee.lV,{style:{width:"100%"},children:[(0,P.jsx)(xe.A,{id:"email",name:"email",label:"Email Address",value:t.email,fullWidth:!0,style:{marginTop:16},autoComplete:"email",margin:"normal",setFieldValue:r,setFieldTouched:o,error:l.email&&a.email,className:d.root}),(0,P.jsx)(ke.A,{variant:"contained",style:{marginTop:8},fullWidth:!0,type:"submit",color:"primary",size:"large",isLoading:n,disabled:!t.email||n,children:i})]})}}),o&&(0,P.jsx)(_e.A,{style:{marginTop:16},color:"error",align:"center",children:Ie[o]}),(null==s?void 0:s.message)&&(0,P.jsx)(_e.A,{color:"error",children:s.message})]})})}var je=n(74859);var Fe=n(52473);function Pe(e){var t=e.onRequestSent,n=e.celeroCRMIntegrationId,o=e.accountId,a=e.short,l=e.versionId,c=e.accessType,s=e.title,d=e.description,u=e.buttonText,f=e.logo,p=e.visitorId,v=e.subDescription,h=i.useState(!1),g=(0,r.A)(h,2),w=g[0],y=g[1],C=i.useState(""),b=(0,r.A)(C,2),E=b[0],x=b[1],A=i.useState(null),_=(0,r.A)(A,2),O=_[0],k=_[1];return(0,P.jsx)(Se,{descriptionText:d,buttonText:u,title:s,handleSubmitEmail:function(e){y(!0),function(e){var t=e.email,n=e.account_id,r=e.short,i=e.access_type,o=e.version_id,a=e.visitor_id;return je.th.post("/crm/api/visitor/email_landing_page_submit/",{email:t,account_id:n,short:r,access_type:i,version_id:o,celero_id:(0,m.getCeleroId)(),visitor_id:a||"NOVISITORID"}).then((function(e){if(e&&e.data)return e.data}))}({email:e.email,account_id:o,short:a,version_id:l,access_type:c,visitor_id:p||"NOVISITORID"}).then((function(e){var n=e.status;"EMAIL_FOUND_NO_OTP_REQUIRED"===n?t():x(n),k(e),y(!1)})),n&&Fe.A.createContact(n,{},{account_id:o,email:e.email,celero_id:(0,m.getCeleroId)()})},showSubmitInProgress:w,validationError:E,logo:f,subDescriptionText:v,response:O})}var Re=n(71e3),Me=n(93593),De=n(77877),Ne=n(50471),Te=n(27772),Be=n(66193),We=n(51053),Ge=n(9551);function Ve(e){var t,n,o=e.restrictAccess,l=e.contentUUID,s=e.children,d=e.celeroCRMIntegrationId,f=e.accountId,h=e.companyIntegrations,g=e.short,w=e.logo,y=e.accessControlSettings,C=(0,i.useState)(!1),b=(0,r.A)(C,2),E=b[0],x=b[1],A=(0,i.useState)(),_=(0,r.A)(A,2),O=_[0],k=_[1],L=(0,i.useState)(!0),I=(0,r.A)(L,2),S=I[0],j=I[1],F=(0,c.d4)((function(e){return{shortenData:e.shortenData,gdpr:e.gdpr}})),R=F.shortenData,M=F.gdpr,D=(0,c.wA)(),N=null==R||null===(t=R.versions[0])||void 0===t?void 0:t.version_details.uuid,T=null==R||null===(n=R.access_control)||void 0===n?void 0:n.min_stage,B=(0,Re.eM)(f);var W=function(){var e,t,n,r=R.access_control;if(!r||!r.stage_options||!r.min_stage)return null;var i=r.min_stage;r.min_stage===De.s.PRIVATE&&(i=De.s.VERIFIED_CONTACT);var o=null===(e=r.stage_options[i])||void 0===e?void 0:e.form_obj;return"optimonk"===(null==o||null===(t=o.data)||void 0===t||null===(n=t.platform)||void 0===n?void 0:n.toLowerCase())&&(0,u.oN)(),o}();(0,i.useEffect)((function(){if(W&&!E){var e=(0,a.A)((0,a.A)({},W.data),{},{integration:W.integration,integration_id:W.external_integration,id:W.id,integration_name:W.integrtation_name});Ge.A.has(W.id)||Ge.A.register(W.id,e,"access_control",W.external_integration),window.celeroFormConfig=e}}),[W,E]);var G=function(e){var t=e.response;"ALLOWED"===(null==t?void 0:t.access_status)&&(x(!0),D((0,Te.j)(Be.X)))};(0,i.useEffect)((function(){function e(e){G(e.detail)}return window.addEventListener("celeroGDPRFormSubmit",e),function(){window.removeEventListener("celeroGDPRFormSubmit",e)}}),[]),(0,i.useEffect)((function(){if(h&&f&&o&&N){if([De.s.UNVERIFIED_CONTACT,De.s.VERIFIED_CONTACT,De.s.PRIVATE,De.s.GDPR_CONSENT].includes(o)){j(!0);var e=(0,Re.u4)(h,f),t=e.find((function(e){return"contact"===e.type.toLowerCase()})),n=e.find((function(e){return"gdpr"===e.type.toLowerCase()}));if(!t)return void j(!1);var r=t.data.visitor_param,i=Me.E.getIntegrationsNeededData(),l=0,c=setInterval((function(){var e=(i=Me.E.getIntegrationsNeededData())[r];window.contactNeededIntegrationData=window.contactNeededIntegrationData||{},window.contactNeededIntegrationData=(0,a.A)((0,a.A)({},window.contactNeededIntegrationData),{},{version_id:N,celero_id:(0,m.getCeleroId)(),account_id:f,access_type:T,integration:t.name,visitor_id:e||"NOVISITORID"}),(e||10==l)&&clearInterval(c),l++}),1e3),s=t.data.url_parameter;if(r){var d=i[r],u=i[s+"_url_param"],p={account_id:f,visitor_id:d||"NOVISITORID",integration:"GDPR_CONSENT"===T?(null==n?void 0:n.name)||"":t.name,celero_id:(0,m.getCeleroId)()||"",url_parameter:u,version_id:N,access_token:B,access_type:T,user_context:JSON.stringify({location:JSON.parse(v.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}})};return void Fe.A.visitorIdentify(p).then((function(e){k(e),"ALLOWED"==e.access_status&&x(!0),j(!1)})).finally((function(){j(!1)}))}}j(!1)}else j(!1)}),[R,h,f,o,N]);var V=(0,i.useCallback)((function(){var e,t="ALLOWED"===(null===(e=M.identifyResponse)||void 0===e?void 0:e.access_status),n=M.integration;if(t)x(t);else{var r,i=window.location.href,o=null;if(null!=n&&null!==(r=n.data)&&void 0!==r&&r.gdpr_page){var a;o=null==n||null===(a=n.data)||void 0===a?void 0:a.gdpr_page,o=(0,p.Oh)(o,i),i=(0,p.He)(i,"gdpr_source","consent page"),i=(0,p.He)(i,"gdpr_consent","1"),o=(0,p.He)(o,"ref_version_id",N);var l=n.data.visitor_param,c=n.data.url_parameter,s=Me.E.getIntegrationsNeededData(),d=s[l]||"NOVISITORID",u=s[c+"_url_param"]||"",v=(0,m.getCeleroId)()||"",h=JSON.stringify({gdpr_consent_value:void 0});o=(0,p.He)(o,"account_id",f||""),o=(0,p.He)(o,"visitor_id",d||""),o=(0,p.He)(o,"integration",n.name||""),o=(0,p.He)(o,"celero_id",v||""),o=(0,p.He)(o,"url_parameter",u||""),o=(0,p.He)(o,"access_type",T||""),o=(0,p.He)(o,"user_input",h||""),o=(0,p.He)(o,"access_token",B||""),o=(0,p.He)(o,"callbackUrl",encodeURIComponent(i))}o&&window.location.assign(o)}}),[M]);if((0,i.useEffect)((function(){}),[M,E]),S||!o||o===De.s.GDPR_CONSENT&&(null==M||!M.integration))return(0,P.jsx)(P.Fragment,{});if(o===De.s.EVERYONE_ALLOWED)return s;if(!l)return(0,P.jsx)(P.Fragment,{});if(!y||y&&"POPUP"===y.stage_options[o].form_preview)return s;if([De.s.UNVERIFIED_CONTACT,De.s.VERIFIED_CONTACT,De.s.PRIVATE].includes(o)){if(!E){var z,U,H=function(e){var t={button:"",title:"",description:"",sub_description:""};switch(e){case De.s.PRIVATE:t={button:"Send me a code",title:"This microsite is private",description:"Enter your email address and we will send you a 6-digit access code."};break;case De.s.VERIFIED_CONTACT:t={title:"Enter your email \n to receive a verification code",description:"We will send you a 6-digit access code.",sub_description:"We use cookies to make this experience seamless.If you prefer not to use cookies, you can close this page.",button:"Continue"};break;case De.s.UNVERIFIED_CONTACT:t={button:"Continue",title:"Enter your email to access",description:"We use cookies to make this experience seamless. For details on how we use cookies and your options for managing them, please check our Terms & Conditions and Privacy Policy."}}return t}(T);return W&&"celero"===(null===(z=W.data)||void 0===z?void 0:z.platform)?(0,P.jsx)(Ae.A,{justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",display:"flex",children:(0,P.jsx)(Ae.A,{maxWidth:"980px",children:(0,P.jsx)(Ne.A,{formConfig:(0,a.A)((0,a.A)({},W.data),{},{integration:W.integration,integration_id:W.external_integration,id:W.id,integration_name:W.integrtation_name}),afterSubmit:G,sourceOfRender:We._.LANDING_PAGE,defaultValues:null===(U=y.stage_options[o])||void 0===U?void 0:U.form_default_values,onCancel:function(){D((0,Te.j)(Be.X))}})})}):(0,P.jsx)(Pe,{onRequestSent:function(){x(!0)},celeroCRMIntegrationId:d,accountId:f,short:g,versionId:N,accessType:T,title:H.title,description:H.description,buttonText:H.button,logo:w,visitorId:null==O?void 0:O.visitor_id,subDescription:H.sub_description})}}return o!=De.s.GDPR_CONSENT||E?s:(V(),(0,P.jsx)(P.Fragment,{}))}var ze=n(75449),Ue=n(86948),He=n(99964),Ze=n(19378),qe=n(73371);var Ke=function(e){var t=e.accountId,n=e.companyIntegrations,r=e.versionId,a=e.accessType,d=e.microsite_name,u=(0,c.wA)(),f=(0,i.useRef)(!1),p=s.parse(window.location.search);function h(){return(h=(0,l.A)((0,o.A)().m((function e(n){var i,l,c,s,f,h,g,y,C;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(window.isLoadingGdpr=!0,l=(null===(i=(0,m.getGeneralTrackingData)())||void 0===i?void 0:i.celero_id)||null){e.n=1;break}return e.n=1,qe.A.getFingerprint(!1).then((function(e){e&&e.celero_id&&(0,m.setCeleroId)(e.celero_id)}));case 1:c=Me.E.getIntegrationsNeededData(),s=n.data.visitor_param,f=n.data.url_parameter,h=c[s],g=c[f+"_url_param"],y=JSON.stringify({microsite_name:d,location:JSON.parse(v.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}}),C={account_id:t,visitor_id:h||"NOVISITORID",integration:n.name,celero_id:l||"",version_id:r||"",url_parameter:g,access_type:a,user_context:y},Fe.A.visitorIdentify(C).then((function(e){if(window.isLoadingGdpr=!1,v.A.sessionStorage.setItem(Ze.$i,null==e?void 0:e.gdpr_track),g){var t="url param";p.gdpr_source&&(t=p.gdpr_source),(0,m.recordEventWidthAdditionalParams)(_.qW.GDPR_CONSENT,{value:!0,source:t})}u((0,He.y)(n,e))})).catch((function(e){window.isLoadingGdpr=!1,(0,w.ZI)("Error in fetching the gdpr integtration: "+e)}));case 2:return e.a(2)}}),e)})))).apply(this,arguments)}return(0,i.useEffect)((function(){if(t&&1!=f.current&&n&&!window.isLoadingGdpr){var e=n.find((function(e){return(null==e?void 0:e.type)===ze.Iq.GDPR}));e&&(!function(e){h.apply(this,arguments)}(e),f.current=!0)}}),[t,n]),e.children},Xe=function(e){var t,n,g,w,C,b,E=e.shortenHash,x=e.company,_=(0,i.useState)(E),O=(0,r.A)(_,2),k=O[0],L=O[1],I=(0,c.wA)(),S=(0,i.useState)(void 0),j=(0,r.A)(S,2),F=j[0],R=j[1],M=(0,i.useState)(!1),D=(0,r.A)(M,2),N=D[0],T=D[1],B=(0,i.useRef)(m.getGeneralTrackingData).current(),W=(0,i.useState)(!1),G=(0,r.A)(W,2),V=G[0],z=G[1],U=(0,i.useState)((0,be.i7)()),H=(0,r.A)(U,2),Z=H[0],q=H[1],K=(0,i.useState)("EVERYONE_ALLOWED"),X=(0,r.A)(K,2),Y=X[0],J=X[1],Q=(0,i.useState)(!1),$=(0,r.A)(Q,2),ee=$[0],te=$[1],ne=(0,i.useState)(null),re=(0,r.A)(ne,2),ie=re[0],oe=re[1],ae=(0,i.useState)(),le=(0,r.A)(ae,2),ce=le[0],se=le[1],de=function(){var e,t=null==x||null===(e=x.company_settings)||void 0===e?void 0:e.not_found_hash;return!(!t||k===t)&&(L(t),!0)};var ue=function(){var e=(0,l.A)((0,o.A)().m((function e(){var t,n,r,i,l,c,h,g,w,C,b,E,x,_,O,L,S,j,F,P,M,D,W,G,V,U,H,Z,K;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return t=s.parse(window.location.search),n=window.location.search,e.n=1,d.A.getShortenUrlInfo(k,I).catch((function(e){404==e.status&&(de()||T(!0))}));case 1:if(r=e.v){e.n=2;break}return N||de()||T(!0),e.a(2);case 2:if(i=null,t&&(i=t.type),l=i||(0,u.ZI)(),c="/s/".concat(k,"/").concat(r.seo_content_version_name),r){if(null!==(h=r)&&void 0!==h&&null!==(g=h.company)&&void 0!==g&&g.integrations&&(null===(j=r)||void 0===j||null===(F=j.company)||void 0===F||null===(P=F.integrations)||void 0===P||P.forEach((function(e){e.name=e.name.toUpperCase()}))),r=(0,p.iQ)(r),I((0,Ue.x)(r)),se(r),M=(0,u.zL)(A.w,null===(w=r)||void 0===w||null===(C=w.company)||void 0===C?void 0:C.company_customizations),I((0,y.Y)(M)),D=r.versions,W=r.content_uuid,window.micrositeLink=r.content_url,r.versions.length>1)for(G=0;G255||isNaN(r)||r<0||r>255||isNaN(i)||i<0||i>255||isNaN(o)||o<0||o>1)throw new Error("Invalid RGBA values");return"#"+((1<<24)+(n<<16)+(r<<8)+i).toString(16).slice(1)}n.d(t,{H:function(){return r}})},88990:function(e,t,n){n.d(t,{J:function(){return a}});var r=n(89379),i=n(44415);function o(e){var t=(0,i.vA)()[e];return Array.isArray(t)?t[0]||void 0:t||void 0}function a(e,t){var n,i={feed:o("feed")||o("dsl_feed"),model:o("model")||o("dsl_model"),debug_mode:"true"===(o("debug_mode")||"false")},a=null==e?void 0:e.shortenData,l={account_id:null==a||null===(n=a.company)||void 0===n?void 0:n.account_id,element_eid:null!=a&&a.hash?"celero-".concat(a.hash):void 0},c={visitor_id:localStorage.getItem("visitor_id")||"test_visitor_id",contact_id:localStorage.getItem("contact_id")||"test_contact_id"};return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},{model:"default",feed:"cognyte",debug_mode:!1}),c),l),i),t||{})}},90945:function(e,t,n){n.d(t,{b:function(){return l}});var r=n(5544),i=n(49255),o=n(65425),a=new Map;function l(e,t,n){var l=(0,i.useState)(null),c=(0,r.A)(l,2),s=c[0],d=c[1],u=(0,i.useState)(!1),f=(0,r.A)(u,2),p=f[0],m=f[1],v=(0,i.useState)(null),h=(0,r.A)(v,2),g=h[0],w=h[1];return(0,i.useEffect)((function(){if(e&&t){var r=!0;m(!0),w(null);var i="".concat(e,"::").concat(n||t),l=a.get(i);return void 0!==l?(d(l),m(!1),function(){r=!1}):(o.A.getComponentStylesheet(e,t,n).then((function(e){r&&(a.set(i,e),d(e))})).catch((function(e){r&&w((null==e?void 0:e.message)||"Failed to load stylesheet")})).finally((function(){r&&m(!1)})),function(){r=!1})}d(null)}),[e,t,n]),{stylesheet:s,loading:p,error:g}}},91260:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return c}});var r,i=n(49255),o=["title","titleId"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?v+="&viewer=true":v="?viewer=true",r.u.get("/api/shorten/".concat(e,"/").concat(v),{headers:{"doc-referer":document.referrer}}).then((function(e){return e.data})).catch((function(e){var n;return null!=e&&null!==(n=e.message)&&void 0!==n&&n.includes("404")||(0,o.vx)(e,t),Promise.reject(e)})).finally((function(){t((0,i.i)(!1))}))}};t.A=a}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e].call(n.exports,n,n.exports,l),n.exports}l.m=o,l.amdD=function(){throw new Error("define cannot be used indirect")},l.amdO={},e=[],l.O=function(t,n,r,i){if(!n){var o=1/0;for(d=0;d=i)&&Object.keys(l.O).every((function(e){return l.O[e](n[c])}))?n.splice(c--,1):(a=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,r,i]},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);l.r(i);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},l.d(i,o),i},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,n){return l.f[n](e,t),t}),[]))},l.u=function(e){return"https://engage.cognyte.com/static/js/"+{157:"vendors-96e7fe95",224:"vendors-d2eb5610",472:"vendors-059be3de",489:"vendors-27545368",515:"vendors-f92f78ac",566:"vendors-2b4841d6",605:"vendors-5d86a222",702:"vendors-0860747a",772:"vendors-0bc0478e",871:"vendors-49ceb22a",997:"vendors-cdd60c62"}[e]+"."+{157:"ae3a3d10",224:"2f0a305c",472:"657a408c",489:"df0e8068",515:"6babfd6a",566:"d563631d",605:"bd3fd455",702:"5ce9bc87",772:"1b77fa5e",871:"7fdfe5d4",997:"520d9ce4"}[e]+".js"},l.miniCssF=function(e){return"https://engage.cognyte.com/static/css/vendors-8f161a59.cd130353.css"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},i="celero:",l.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var a,c;if(void 0!==n)for(var s=document.getElementsByTagName("script"),d=0;d