!function(){"use strict";var e,t,n,r,i,o={9:function(e,t,n){n.d(t,{T:function(){return i},k:function(){return r}});var r=["feed","ui","model","elements_number","scroll"],i={ui:"gallery",model:"default",scroll:"true"}},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 u},ZI:function(){return d},nG:function(){return s}});var r=n(5544),i=n(71361),o=n(98120),a=n(32980),l=n(68240),c=n(87162),s="__celeroLogged",d=function(e,t){var n={};if(t)if("tags"in t||"context"in t||"fingerprint"in t||"level"in t||"contextData"in t)n=t;else{var l=t,c={};Object.entries(l).forEach((function(e){var t=(0,r.A)(e,2),n=t[0],i=t[1],o="string"==typeof i?i:String(i);o.length<=200&&(c[n]=o)})),n={tags:c,context:{details:l}}}var d,u=(d=e)instanceof Error||"object"==typeof d&&null!==d&&"stack"in d&&"message"in d?e:new Error("string"==typeof e?e:String(e));if(u[s])i.Z({category:"duplicate-log",level:n.level||"error",message:u.message,data:{tags:n.tags,context_keys:n.context?Object.keys(n.context):void 0}});else{try{Object.defineProperty(u,s,{value:!0,enumerable:!1,configurable:!0,writable:!1})}catch(e){}o.v4((function(e){e.setLevel(n.level||"error"),function(e,t){t&&Object.entries(t).forEach((function(t){var n=(0,r.A)(t,2),i=n[0],o=n[1];if(null!=o){var a="string"==typeof o?o:String(o);e.setTag(i,a.length>200?a.slice(0,200):a)}}))}(e,n.tags),n.context&&Object.entries(n.context).forEach((function(t){var n=(0,r.A)(t,2),i=n[0],o=n[1];e.setContext(i,o)})),n.contextData&&e.setContext("details",n.contextData),n.fingerprint&&n.fingerprint.length>0&&e.setFingerprint(n.fingerprint),a.Cp(u)}))}},u=function(e,t){o.v4((function(n){n.setLevel("warning"),t&&n.setContext("warning_details",t),n.setFingerprint([e]),a.wd(e,"warning")}))};t.Ay=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.gs,r=arguments.length>3?arguments[3]:void 0;n!==c.gs&&t((0,l.G)("".concat(n),"error",!0)),(e&&e.response&&e.response.status&&200===e.response.status||!e.response)&&d(e,{context:r?{details:r}:void 0,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(38607),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=(0,o.useState)(""),m=(0,i.A)(p,2),v=m[0],h=m[1],g=window.celeroURLParams.is_bot,w=e.company&&e.company.integrations;return(0,o.useEffect)((function(){s.A.waitForCeleroId().then((function(e){e&&h(e)}))}),[]),(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:!!w&&u&&!!v&&!g&&(0,d.jsx)(c.Ay,{account_id:e.company.account_id,companyIntegrations:w,celero_id:v})})}},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;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==g||null===(f=g.company)||void 0===f?void 0:f.name);return(0,M.jsxs)(j.mg,{children:[(0,M.jsx)("title",{children:B}),L,(0,M.jsx)("meta",{property:"og:title",content:A}),(0,M.jsx)("meta",{property:"og:description",content:_}),(0,M.jsx)("meta",{property:"og:image",content:k}),(0,M.jsx)("meta",{name:"title",content:A}),(0,M.jsx)("meta",{name:"description",content:_}),(0,M.jsx)("meta",{name:"keywords",content:(null==h||null===(m=h.keywords)||void 0===m?void 0:m.join(", "))||R.d6}),(0,M.jsx)("meta",{property:"fb:app_id",content:"887434528837802"}),(0,M.jsx)("link",{rel:"canonical",href:window.location.href.split("?")[0]}),(0,M.jsx)("meta",{property:"og:url",content:window.location.href}),(0,M.jsx)("meta",{property:"og:type",content:"website"}),(0,M.jsx)("meta",{name:"author",content:null==g||null===(v=g.company)||void 0===v?void 0:v.name}),(0,M.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,M.jsx)("meta",{name:"twitter:title",content:A}),(0,M.jsx)("meta",{name:"twitter:description",content:_}),(0,M.jsx)("meta",{name:"twitter:image",content:C}),(0,M.jsx)("link",{rel:"alternate",type:"application/json+oembed",href:S}),(0,M.jsx)("link",{rel:"iframely",href:window.location.href,media:"(aspect-ratio: 1280/720)"})]})},N=n(56115),T=n(89349),B=n(83365),W=(n(21399),n(21959),n(35427),n(68972),n(87973),n(25912)),G=n(63962),V=n(14724),z=n(87162),U=n(63503),H=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,U.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,M.jsx)(M.Fragment,{})},Z=n(47206),q="celero-image-expand-lightbox";function X(e){var t=function(){var e=document.getElementById(q);if(e)return e;(e=document.createElement("div")).id=q,e.style.cssText="\n position: fixed; inset: 0; z-index: 99999;\n background: rgba(0,0,0,0.8); display: none;\n align-items: center; justify-content: center;\n cursor: zoom-out;\n ";var t=document.createElement("div");return t.style.cssText="\n max-width: 90vw; max-height: 90vh; overflow: auto;\n background: white; border-radius: 8px; padding: 16px;\n box-shadow: 0 20px 60px rgba(0,0,0,0.5);\n ",t.id="".concat(q,"-inner"),e.appendChild(t),e.addEventListener("click",(function(){e.style.display="none",t.innerHTML=""})),document.body.appendChild(e),e}(),n=document.getElementById("".concat(q,"-inner")),r=e.getAttribute("href")||e.getAttributeNS("http://www.w3.org/1999/xlink","href");if(r){var i=document.createElement("img");i.src=r,i.style.cssText="max-width: 85vw; max-height: 85vh; display: block;",n.innerHTML="",n.appendChild(i),t.style.display="flex"}}function Y(e){return{x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),w:parseFloat(e.getAttribute("width")||"0"),h:parseFloat(e.getAttribute("height")||"0")}}function K(e){var t=document.getElementById("idrviewer-page".concat(e));if(t){var n=t.querySelector('svg[id^="pdf"]');if(n){var r=Array.from(n.querySelectorAll("image"));r.forEach((function(e,n){parseFloat(e.getAttribute("width")||"0")*parseFloat(e.getAttribute("height")||"0")<5e3||function(e,t,n){for(var r=Y(e),i=n+1;i0&&a/l>.5)return!0}return!1}(e,r,n)||function(e,t){var n=e.getBoundingClientRect();if(0===n.width||0===n.height)return!1;var r=t.querySelector("[id^='p'][style*='height']");if(!r)return!1;for(var i=r.querySelectorAll(".t"),o=0,a=Array.from(i);o0&&s>0)return!0}return!1}(e,t)||(e.style.cursor="zoom-in",e.style.pointerEvents="all",e.addEventListener("mouseenter",(function(){e.style.filter="brightness(0.92)",e.style.outline="3px solid rgba(59,130,246,0.6)",e.style.outlineOffset="2px"})),e.addEventListener("mouseleave",(function(){e.style.filter="",e.style.outline="none"})),e.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.style.filter="",e.style.outline="none",X(e)})))}));var i=t.querySelector('[id^="pg"][id$="Overlay"]');i&&(i.style.pointerEvents="none")}}}var J=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=e.editModeAppBarGhostVisible,f=o.isPresentationMode,m=o.isWebsiteMode,v=o.isZoomFitPage,h=o.isHideNavigation,g=o.pageFit,w=(0,_.g7)(n,o,{editModeAppBarGhostVisible:u}),y=w.viewerHeight,b=w.viewerBarHeight,C=(0,W.A)().width,x=(0,A.A)().isMobile;(0,V.PU)({idrViewerElement:r,viewerOptions:o,isControlsBarParamEnabled:l});var O,k,L=(0,E.A)(),I=L.currentZoomSettings,S=L.currentPageNumber,j=L.loadedPages;O=!0,k=(0,i.useRef)(new Set),(0,i.useEffect)((function(){if(O&&window.IDRViewer)return window.IDRViewer.on("pageload",(function(e){var t=e.page;k.current.has(t)||(k.current.add(t),setTimeout((function(){return K(t)}),500))})),function(){k.current.clear();var e=document.getElementById(q);e&&e.remove()}}),[O]);var F=(0,i.useRef)(0),P=(0,i.useRef)(!1);var R=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},D=function(){var e=0,t=window.IDRViewer.ZOOM_FITWIDTH;switch(g){case"auto":f?t=window.IDRViewer.ZOOM_AUTO:(t=window.IDRViewer.ZOOM_FITWIDTH,e=R());break;case"fit-height":t=window.IDRViewer.ZOOM_FITHEIGHT;break;case"fit-width-with-margins":t=window.IDRViewer.ZOOM_FITWIDTH,e=R();break;case"fit-width":t=window.IDRViewer.ZOOM_FITWIDTH;break;case"fit-page":t=window.IDRViewer.ZOOM_FITPAGE;break;default:if(e=0,m)t=window.IDRViewer.ZOOM_FITWIDTH;else if(v||f)t=window.IDRViewer.ZOOM_FITPAGE;else{new Date(n.created_at).getTime()>1673526466580?t=window.IDRViewer.ZOOM_AUTO:(t=window.IDRViewer.ZOOM_FITWIDTH,e=R())}}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(){f&&window.IDRViewer.setLayout(window.IDRViewer.LAYOUT_PRESENTATION),D()}),[f,s,d,C]);var N=window.devicePixelRatio,T=window.devicePixelRatio,B=function(){window.devicePixelRatio!==N&&(N=window.devicePixelRatio,T==window.devicePixelRatio?D():window.IDRViewer.setZoom(window.IDRViewer.ZOOM_ACTUALSIZE))};return(0,i.useEffect)((function(){var e=(0,U.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",B),function(){window.removeEventListener("resize",B)})}),[]),(0,i.useEffect)((function(){n&&requestAnimationFrame((function(){try{!function(e){var t=D().PADDING_HORIZONTAL;f&&window.IDRViewer.setLayout(window.IDRViewer.LAYOUT_PRESENTATION);var n=(0,G.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||P.current)&&j.includes(S)&&F.current!==S&&(F.current=S,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)}}(S))}),[S,j]),(0,i.useEffect)((function(){var e=(0,p.vA)();P.current=void 0===e.highlight_links||null===e.highlight_links||"true"===e.highlight_links}),[]),(0,M.jsxs)("div",{style:{height:"100%"},children:[!x&&(0,M.jsx)(H,{}),(0,M.jsx)(Z.c,{contentId:n.uuid}),(0,M.jsx)("div",{id:"idrviewer",ref:r,className:function(){var e,t,r,i;if(m)return"is-website-mode ".concat("auto"===g||""===g?"auto-fit":"");if(f)return"".concat(h?"":"transition-slide"," presentation-mode");if(v&&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!=I&&I.zoomValue&&y&&o*I.zoomValuet?"".concat(e.slice(0,t),"…"):e},ie=function(e){var t,n={},r=Array.from(e.attributes).slice(0,50),i=(0,te.A)(r);try{for(i.s();!(t=i.n()).done;){var o,a=t.value;n[a.name]=re(null!==(o=a.value)&&void 0!==o?o:"",500)}}catch(e){i.e(e)}finally{i.f()}return n},oe=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},ae="data-celero-inspector-ignore",le=function(e,t,n){var r,i,o,a,l,c="function"==typeof e.composedPath?e.composedPath():null;if(Array.isArray(c)){var s,d=(0,te.A)(c);try{for(d.s();!(s=d.n()).done;){var u=s.value;if(u instanceof Element){if(u.hasAttribute(ae))return null;if(u.hasAttribute(t)){var f=u.getAttribute(t);if(f)return{element:u,name:f}}}}}catch(e){d.e(e)}finally{d.f()}}var p=null;if(e.target instanceof Element?p=e.target:e.target&&e.target instanceof Node&&(p=e.target.parentElement),p||"number"!=typeof(null==n?void 0:n.clientX)||"number"!=typeof(null==n?void 0:n.clientY)||(p=document.elementFromPoint(n.clientX,n.clientY)),null!==(r=p)&&void 0!==r&&null!==(i=r.closest)&&void 0!==i&&i.call(r,"[".concat(ae,"]")))return null;var m=null!==(o=null===(a=p)||void 0===a||null===(l=a.closest)||void 0===l?void 0:l.call(a,"[".concat(t,"]")))&&void 0!==o?o:null;if(!m)return null;var v=m.getAttribute(t);return v?{element:m,name:v}:null},ce=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}},se=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},de=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"},ue=function(){try{return window.location.href}catch(e){return null}},fe=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:ue(),rect:ce(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:ie(e),ancestry:oe(e,t),htmlSnippet:c?re(c,2e3):null,textSnippet:s?re(s.trim(),500):null}};function pe(){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=se("celero-assistant-inspector-hover","#3b82f6"),u=se("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){if((a=e)&&(v=!1,h=!1),!a)return l=null,c=null,de(d,null),de(u,null),void p(!1);p(!1)},v=!1,h=!1,g=0,w=0,y={left:0,top:0,width:0,height:0},b=!1,C=0,x=0,E=function(e,t,n){return Math.max(t,Math.min(e,n))},A=function(){return document.getElementById("celero-custom-cta-wrapper")},_=function(e){v=e,e?m(!1):h=!1;var t=A();t&&(t.style.cursor=e?"grab":"")},O=function(e){if(v){var t=A(),n=e.target;if(t&&n&&t.contains(n)){var r=t.getBoundingClientRect();g=e.clientX-r.left,w=e.clientY-r.top,C=e.clientX,x=e.clientY,b=!1,y={left:Number(t.dataset.safeLeft)||0,top:Number(t.dataset.safeTop)||0,width:Number(t.dataset.safeWidth)||0,height:Number(t.dataset.safeHeight)||0},h=!0,t.style.cursor="grabbing";try{var i,o;null===(i=(o=e.target).setPointerCapture)||void 0===i||i.call(o,e.pointerId)}catch(e){}e.preventDefault(),e.stopPropagation()}}},k=function(e){if(h){var t=A();if(t){!b&&(Math.abs(e.clientX-C)>3||Math.abs(e.clientY-x)>3)&&(b=!0);var n=t.getBoundingClientRect(),r=Math.max(0,y.width-n.width),i=Math.max(0,y.height-n.height),o=E(e.clientX-g,y.left,y.left+r),a=E(e.clientY-w,y.top,y.top+i);t.style.left="".concat(o,"px"),t.style.top="".concat(a,"px"),y.width>0&&y.height>0&&document.dispatchEvent(new CustomEvent("celero:cta-live-position",{detail:{x:E((o-y.left)/y.width,0,1),y:E((a-y.top)/y.height,0,1)}})),e.preventDefault()}}},L=function(e){if(h){h=!1;var t=A();if(t&&(t.style.cursor="grab",b)){var n=t.getBoundingClientRect(),r=y.width>0?E((n.left-y.left)/y.width,0,1):0,i=y.height>0?E((n.top-y.top)/y.height,0,1):0;f({channel:ne.$d,version:ne.S5,type:"cta-drag",phase:"drop",x:r,y:i}),document.dispatchEvent(new CustomEvent("celero:cta-live-position",{detail:{x:r,y:i}})),e.preventDefault()}}},I=function(e){if(v){var t=A(),n=e.target;t&&n&&t.contains(n)&&(e.preventDefault(),e.stopPropagation())}},S=!1,j=!1,F=0,P=0,R=0,M=0,D=null,N=!1,T=se("celero-annotation-draw","#6C5CE7");T.style.background="rgba(108,92,231,0.14)",T.style.borderStyle="dashed";var B=function(){var e,t,n=j?!(t=null===(e=D)||void 0===e?void 0:e.getBoundingClientRect())||t.width<=0||t.height<=0?null:{x:t.left+F*t.width,y:t.top+P*t.height}:null;if(n){var r=Math.min(n.x,R),i=Math.min(n.y,M),o=Math.abs(R-n.x),a=Math.abs(M-n.y);de(T,{left:r,top:i,width:o,height:a,right:r+o,bottom:i+a})}else de(T,null)},W=function(e){if(S){var t=function(e,t){var n,r=document.elementsFromPoint(e,t),i=(0,te.A)(r);try{for(i.s();!(n=i.n()).done;)for(var o=n.value;o;){if(o.id&&/^p\d+$/.test(o.id))return o;o=o.parentElement}}catch(e){i.e(e)}finally{i.f()}return null}(e.clientX,e.clientY);if(t){var n=t.getBoundingClientRect();if(!(n.width<=0||n.height<=0)){D=t,F=E((e.clientX-n.left)/n.width,0,1),P=E((e.clientY-n.top)/n.height,0,1),R=e.clientX,M=e.clientY,j=!0;try{var r,i;null===(r=(i=e.target).setPointerCapture)||void 0===r||r.call(i,e.pointerId)}catch(e){}B(),e.preventDefault(),e.stopPropagation()}}}},G=function(e){j&&(R=e.clientX,M=e.clientY,B(),e.preventDefault())},V=function(e){if(j){j=!1;var t=D;if(de(T,null),t){var n=t.getBoundingClientRect();if(!(n.width<=0||n.height<=0)){var r,i=F,o=P,a=(r=e.clientX,E((r-n.left)/n.width,0,1)),l=function(e){return E((e-n.top)/n.height,0,1)}(e.clientY),c=Math.min(i,a),s=Math.min(o,l),d=Math.abs(a-i),u=Math.abs(l-o);if(d<.01||u<.01)e.preventDefault();else{var p=parseInt(t.id.replace(/^p/,""),10);S=!1,N=!0,document.documentElement.style.cursor="",f({channel:ne.$d,version:ne.S5,type:"annotation-drawn",page_number:p,bounds:[c,s,d,u]}),e.preventDefault()}}}}},z=function(e){(S||j||N)&&(N=!1,e.preventDefault(),e.stopPropagation())},U=function(e){var t;if(a&&!v&&!h&&!S){var n=le(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&&(de(d,(l=i)?ce(l):null),p(Boolean(l)),o)){var c=l?fe(l,r):null;f({channel:ne.$d,version:ne.S5,type:"hover",component:c})}}},H=function(){j&&B(),a&&(de(d,l?ce(l):null),de(u,c?ce(c):null))},Z=function(e){if(a){var t=le(e,r,{clientX:e.clientX,clientY:e.clientY});t&&(e.preventDefault(),e.stopPropagation(),c=t.element,de(u,ce(c)),f({channel:ne.$d,version:ne.S5,type:"select",component:fe(c,r)}))}},q=function(e){a&&"Escape"===e.key&&(l=null,c=null,de(d,null),de(u,null),f({channel:ne.$d,version:ne.S5,type:"select",component:null}))},X=function(e){if((!i||i.includes(e.origin))&&(0,ne.ZV)(e.data)){var t,n=e.data;if(n.channel===ne.$d)if(n.version===ne.S5)"set-enabled"===n.type?m(Boolean(n.enabled)):"set-drag-to-place"===n.type?_(Boolean(n.enabled)):"set-annotation-draw"===n.type?(t=Boolean(n.enabled),S=t,t&&(m(!1),_(!1)),j=!1,D=null,N=!1,de(T,null),document.documentElement.style.cursor=t?"crosshair":""):"clear-selection"===n.type&&(l=null,c=null,de(d,null),de(u,null))}};return window.addEventListener("message",X),window.addEventListener("pointermove",U,!0),window.addEventListener("click",Z,!0),window.addEventListener("keydown",q,!0),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H,!0),window.addEventListener("pointerdown",O,!0),window.addEventListener("pointermove",k,!0),window.addEventListener("pointerup",L,!0),window.addEventListener("click",I,!0),window.addEventListener("pointerdown",W,!0),window.addEventListener("pointermove",G,!0),window.addEventListener("pointerup",V,!0),window.addEventListener("click",z,!0),f({channel:ne.$d,version:ne.S5,type:"ready"}),function(){window.removeEventListener("message",X),window.removeEventListener("pointermove",U,!0),window.removeEventListener("click",Z,!0),window.removeEventListener("keydown",q,!0),window.removeEventListener("scroll",H,!0),window.removeEventListener("resize",H,!0),window.removeEventListener("pointerdown",O,!0),window.removeEventListener("pointermove",k,!0),window.removeEventListener("pointerup",L,!0),window.removeEventListener("click",I,!0),window.removeEventListener("pointerdown",W,!0),window.removeEventListener("pointermove",G,!0),window.removeEventListener("pointerup",V,!0),window.removeEventListener("click",z,!0),d.remove(),u.remove(),T.remove()}}var me=n(49698);var ve=n(40472),he=n(48623),ge=n(58324),we=n(38633),ye=n(15884),be=n(77998),Ce=n(83940),xe=n(21146),Ee=n(25761),Ae=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,68292))})),_e=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,4570))})),Oe=(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))})),ke=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,81124))})),Le=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,78688))})),Ie=(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))})),Se=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,68995))})),je=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,92181))})),Fe=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,30694))})),Pe=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,40472))})),Re=(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))})),Me=(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))})),De=(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))})),Ne=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,45967))})),Te=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,19457))})),Be=(0,i.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,89827))})),We={},Ge=function(e){var t,n,o,l,d,f,h,g,L,j,F,P,R,W,G,V,U,H,Z,q,X,Y,K,te,re,ie,oe,ae,le,ce,se,de,ue,fe=e.contentId,Ge=e.isPreviewCampaign,Ve=e.viewerOptions,ze=e.handleContentNotFound,Ue=(0,i.useRef)(null),He=(0,i.useRef)(null),Ze=(0,c.wA)(),qe=window.location.search;if(null!==(t=window.celeroData)&&void 0!==t&&t.url_full)try{qe=new URL(window.celeroData.url_full).search}catch(e){}var Xe=s.parse(qe),Ye=Xe.access_id,Ke=Ve.isWithoutTracking,Je=Ve.isWithoutAnnotations,Qe=Ve.isWithoutIntegrations,$e=Ve.isHideNavigation,et=Ve.isPresentationMode,tt=Ve.isShowControls,nt=(0,c.d4)((function(e){return{theme:e.theme,shortenData:e.shortenData}})),rt=nt.theme,it=nt.shortenData,ot=et?rt.palette.customViewer.viewerBackGroundColorPresentation:rt.palette.customViewer.viewerBackGroundColorDocument,at=(0,u.MX)()||Ke,lt=(0,i.useState)(),ct=(0,r.A)(lt,2),st=ct[0],dt=ct[1],ut=(0,i.useState)(et),ft=(0,r.A)(ut,2),pt=ft[0],mt=ft[1],vt=(0,i.useState)(!1),ht=(0,r.A)(vt,2),gt=ht[0],wt=ht[1],yt=(0,A.A)().isMobile,bt=function(){var e,t=null!==(e=window.celeroData)&&void 0!==e&&e.url_full?new URL(window.celeroData.url_full).search:window.location.search;return"pdftolink"===s.parse(t).source}(),Ct=bt?yt?ve.PDFTOLINK_BANNER_HEIGHT_MOBILE:ve.PDFTOLINK_BANNER_HEIGHT:0,xt=!!(Xe.feed||null!=it&&null!==(n=it.params)&&void 0!==n&&null!==(o=n.feed)&&void 0!==o&&o.feed||Xe.search_in_feed||null!=it&&null!==(l=it.params)&&void 0!==l&&null!==(d=l.feed)&&void 0!==d&&d.search_in_feed),Et=Boolean(Xe.panelId||Xe.panel_id||(null==it||null===(f=it.params)||void 0===f||null===(h=f.feed)||void 0===h?void 0:h.panelId)||(null==it||null===(g=it.params)||void 0===g||null===(L=g.feed)||void 0===L?void 0:L.panel_id)),At=(0,i.useState)(xt&&!yt),_t=(0,r.A)(At,2),Ot=_t[0],kt=_t[1],Lt=(0,i.useState)(0),It=(0,r.A)(Lt,2),St=It[0],jt=It[1],Ft=(0,i.useState)("right"),Pt=(0,r.A)(Ft,2),Rt=Pt[0],Mt=Pt[1],Dt=I({bottom:(gt?76:16)+Ct}),Nt=(0,i.useState)(!1),Tt=(0,r.A)(Nt,2),Bt=Tt[0],Wt=Tt[1],Gt=(0,E.A)().currentPageNumber,Vt=(0,xe.y)(),zt=(0,i.useState)(!1),Ut=(0,r.A)(zt,2),Ht=Ut[0],Zt=Ut[1],qt=(0,i.useState)(!1),Xt=(0,r.A)(qt,2),Yt=Xt[0],Kt=Xt[1],Jt=!!Ve.isWithoutNavBar&&Vt&&!Ht,Qt=(0,_.g7)(st,Ve,{editModeAppBarGhostVisible:Jt}),$t=Qt.footerHeight,en=Qt.viewerBarHeight,tn=(0,i.useState)(!1),nn=(0,r.A)(tn,2),rn=nn[0],on=nn[1],an=(0,i.useState)(362),ln=(0,r.A)(an,2),cn=ln[0],sn=ln[1],dn=(0,i.useState)(!1),un=(0,r.A)(dn,2),fn=un[0],pn=un[1],mn=(0,i.useState)(null),vn=(0,r.A)(mn,2),hn=vn[0],gn=vn[1],wn=(0,we.Y)({content:st||We}),yn=wn.openUrl,bn=wn.openContent,Cn=wn.dialog,xn=(0,ye.B)({content:st||We}),En=xn.triggerShareDialog,An=xn.ShareDialogLoader,_n=(0,be.p)({content:st||We}).handleDownloadOriginalPdf,On=(0,i.useState)(!1),kn=(0,r.A)(On,2),Ln=kn[0],In=kn[1],Sn=(0,i.useState)(!1),jn=(0,r.A)(Sn,2),Fn=jn[0],Pn=jn[1],Rn=(0,i.useCallback)((function(e){e.preventDefault(),pn(!0)}),[]);(0,i.useEffect)((function(){if("undefined"!=typeof window&&(window.parent!==window&&"true"===new URLSearchParams(window.location.search).get("celero_preview_app")))return pe({markerAttribute:"assistant-c-name",allowedParentOrigins:(0,w.A)(ne.XU)})}),[]),(0,i.useEffect)((function(){if("undefined"!=typeof window&&window.parent!==window&&"true"===new URLSearchParams(window.location.search).get("celero_preview_app")){var e=function(e){if((0,ne.Id)(e)){var t=e.data;if("set-drag-to-place"===t.type){var n=Boolean(t.enabled);In(n),n&&Pn(!0)}}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}}),[]),(0,i.useEffect)((function(){var e=function(e){var t,n;if(fn){var r,i=Et&&"left"===Rt,o=He.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),sn(r)}},t=function(){pn(!1)};return fn?(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=""}}),[fn,Et,Rt]);var Mn=(0,i.useState)([]),Dn=(0,r.A)(Mn,2),Nn=Dn[0],Tn=Dn[1];(0,i.useEffect)((function(){var e="viewer-mobile-topbar-offset",t=yt&&!Ve.isWithoutNavBar;return document.body.classList.toggle(e,t),document.body.style.setProperty("--viewer-mobile-topbar-height","".concat(z.O5,"px")),function(){document.body.classList.remove(e),document.body.style.removeProperty("--viewer-mobile-topbar-height")}}),[yt,Ve.isWithoutNavBar]);var Bn=(0,i.useCallback)((function(e){kt(e)}),[]);function Wn(){return(null==st?void 0:st.conversion_type)===y.d.VIDEO?(0,M.jsx)(Le,{content:st,viewerOptions:Ve,editModeAppBarGhostVisible:Jt}):(0,M.jsx)(J,{content:st,viewerOptions:Ve,idrViewerElement:Ue,isControlsBarParamEnabled:pt,isPreviewCampaign:Ge,searchInFeedOpened:Ot,feedWidth:cn,editModeAppBarGhostVisible:Jt})}if((0,i.useEffect)((function(){yt&&Et&&0===Nn.length&&Tn([{id:"content",label:"Content",icon:"Feed"}])}),[yt,Et]),(0,i.useEffect)((function(){var e=function(){yt&&Et&&jt(0)},t=function(e){var t,n="left"===(null==e||null===(t=e.detail)||void 0===t?void 0:t.side)?"left":"right";Mt(n),on(!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&&Tn(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)}}),[yt,Et]),(0,i.useEffect)((function(){fe?S.A.loadContent(fe,Ye).then((function(e){var t,n,r,i,o={};(e.data=(0,p.iQ)(e.data),null!=it&&null!==(t=it.company)&&void 0!==t&&t.is_plan_limit_reached)&&(0,m.xF)(v.qW.PLAN_LIMIT_REACHED,{value:null==it||null===(r=it.company)||void 0===r?void 0:r.plan_usage});if(202===e.status){var l,c,s;dt(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)(O.w,null==it||null===(s=it.company)||void 0===s?void 0:s.company_customizations);Ze((0,C.Y)(d)),(0,m.xF)(v.qW.WARNING,{functionality:"ViewerAPI.loadContent in Viewer container",value:e.data.message})}else{var f,h;dt(e.data);var g=(0,u.zL)(O.w,null==it||null===(f=it.company)||void 0===f?void 0:f.company_customizations);Ze((0,C.Y)(g)),o=null==e||null===(h=e.data)||void 0===h?void 0:h.content_customizations}if(o){var w=(0,u.zL)(O.w,o);Ze((0,C.Y)(w))}null!=e&&null!==(n=e.data)&&void 0!==n&&n.html_snippets&&Ze((0,x.S)(null==e||null===(i=e.data)||void 0===i?void 0:i.html_snippets));(0,m.E1)("d5",(0,a.A)({},(0,m.wn)()))})).catch((function(e){var t,n,r,i,o,a,l,c,s,d,u,f,p;404!==(null===(t=e.response)||void 0===t?void 0:t.status)?"ERR_CANCELED"===e.code||null!==(n=e.message)&&void 0!==n&&n.includes("aborted")||(0,b.vx)("Error while loading content",Ze,null,{message:e.message,status:(null===(r=e.response)||void 0===r?void 0:r.status)||"",statusText:(null===(i=e.response)||void 0===i?void 0:i.statusText)||"",url:(null===(o=e.config)||void 0===o?void 0:o.url)||"",method:(null===(a=e.config)||void 0===a?void 0:a.method)||"",data:"string"==typeof(null===(l=e.response)||void 0===l?void 0:l.data)||"number"==typeof(null===(c=e.response)||void 0===c?void 0:c.data)||"boolean"==typeof(null===(s=e.response)||void 0===s?void 0:s.data)?null===(d=e.response)||void 0===d?void 0:d.data:JSON.stringify(null===(u=e.response)||void 0===u?void 0:u.data),requestHeaders:null!==(f=e.config)&&void 0!==f&&f.headers?JSON.stringify(e.config.headers):"",responseHeaders:null!==(p=e.response)&&void 0!==p&&p.headers?JSON.stringify(e.response.headers):"",stack:e.stack||""}):ze()})):(0,b.vx)("Please use valid content Id",Ze)}),[fe,Ye]),(0,i.useEffect)((function(){var e=s.parse(window.location.search);mt("true"===e.controls)}),[]),(0,i.useEffect)((function(){if(xt&&!yt){var e=Ot?"Open Sidebar":"Close Sidebar",t={account_id:null==it?void 0:it.company.account_id};(0,m.xF)(e,t)}}),[Ot]),(0,i.useEffect)((function(){st&&((0,m.I1)({page_number:Gt,content_id:st.uuid,account_id:it.company.account_id,title:st.version.version_details.name,version_number:st.version.version_number,version_id:st.version.version_details.uuid}),Wt(!0))}),[st]),(0,i.useEffect)((function(){try{var e,t,n=(null==it||null===(e=it.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||(Mt(r),on(!0))}catch(e){}}),[null==it||null===(j=it.company)||void 0===j?void 0:j.id]),!st)return null;var Gn=Vt&&!(null!=st&&null!==(F=st.content_action)&&void 0!==F&&F.is_enabled)&&!Yt;var Vn=pt&&tt,zn=st.shorten,Un=null==zn?void 0:zn.split("/s/")[1],Hn=null==Un?void 0:Un.split("/")[0],Zn=null==it?void 0:it.menu_items,qn=null==it?void 0:it.buttons,Xn=null==it||null===(P=it.company)||void 0===P||!P.company_customizations||(null==it||null===(R=it.company)||void 0===R||null===(W=R.company_customizations)||void 0===W?void 0:W.is_sticky_bar);st.content_customizations&&(Xn=st.content_customizations.is_sticky_bar);var Yn=new Set(["image","audio","html","embed"]),Kn=function(e,t){if(e)if(Yn.has(e.kind))bn(e);else{var n={source:t,goToPage:function(e){return(0,me.N)(e,{headerOffset:en,isPresentationMode:Ve.isPresentationMode})},goToTop:function(){return(0,me.N)(1,{headerOffset:en,isPresentationMode:Ve.isPresentationMode})},next:function(){var e,t;return null===(e=window.IDRViewer)||void 0===e||null===(t=e.next)||void 0===t?void 0:t.call(e)},prev:function(){var e,t;return null===(e=window.IDRViewer)||void 0===e||null===(t=e.prev)||void 0===t?void 0:t.call(e)},openVideo:function(e){var t=e.src;return gn(null!=t?t:null)},openUrl:function(e,t){return yn(e,t)},share:function(){return En("buttons"===t?"Buttons":"Menu")},download:function(){return _n()},print:function(){return window.print()},call:Ce.PS,sendEmail:Ce.Ed,openForm:(0,Ce.nX)(Ze),openMicrosite:function(e,t){var n=e?"".concat(window.location.origin,"/s/").concat(e):"";n&&yn(n,t)}};(0,he.w)(e,n)}},Jn=function(e){Kn((0,ge.le)(e),"menu")},Qn=function(e){Kn((0,ge.V_)(e),"buttons")};function $n(e){var t=en;(0,me.N)(e,{headerOffset:t,isPresentationMode:Ve.isPresentationMode})}var er,tr;return(0,M.jsxs)("div",{id:"viewer-main-wrapper",ref:He,"assistant-c-name":"microsite",style:{position:"relative",height:"100%",background:ot},children:[Ve.isWithoutNavBar?Jt?(0,M.jsx)("div",{"data-celero-inspector-ignore":"true",style:{position:"sticky",top:0,zIndex:1100,display:"flex",alignItems:"center",boxSizing:"border-box",height:z.Hi,padding:"0 16px",background:(0,k.X4)(O.w.palette.primary.main,.04),borderBottom:"1.5px dashed ".concat((0,k.X4)(O.w.palette.primary.main,.5))},children:(0,M.jsx)(Ee.A,{element:"app-bar",variant:"block",label:"Add header bar",onDismiss:function(){return Zt(!0)}})}):null:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(_.Ay,{content:st,viewerOptions:Ve,idrViewer:window.IDRViewer,isPreviewCampaign:Ge,menuItems:Zn,handleMenuItemClick:Jn,buttons:qn,handleButtonClick:Qn}),Ge&&(0,M.jsx)(ee.A,{isStickyBar:Xn&&!Ve.isWithoutNavBar})]}),(0,M.jsxs)("div",{style:(0,a.A)((0,a.A)({},!Ot||!xt||yt||Et&&!rn?{}:Et&&"left"===Rt?{marginLeft:cn}:{marginRight:cn}),{},{position:"relative"}),children:[(0,M.jsx)(D,{contentApiResponse:st,shortenData:it}),Vn&&(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(je,{content:st,setControlsBarOpened:wt})]}),!at&&(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(Ae,{content:st})]}),!Qe&&!(0,u.MX)()&&!Boolean("Celero default"===(null==it||null===(G=it.company)||void 0===G?void 0:G.name))&&(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(_e,{})]}),at?Wn():Bt&&(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Oe,{content:st,shortenData:it,children:Wn()})}),!$e&&(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Ie,{content:st,viewerOptions:Ve,backgroundColor:ot,disableSwipe:Boolean(yt&&Et&&"content"!==(null===(V=Nn[St])||void 0===V?void 0:V.id))})}),!Je&&(0,M.jsx)(N.A,{content:st}),!Je&&(0,M.jsx)(T.A,{content:st}),(0,M.jsx)(B.A,{isPresentationMode:et,contentUuid:null==st?void 0:st.uuid,pageCount:(null==st||null===(U=st.config)||void 0===U?void 0:U.pagecount)||1}),yt&&Et&&(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(De,{contentUuid:st.uuid,background:ot,bottomOffset:$t+56+Ct,topOffset:en,visible:Boolean((null===(H=Nn[St])||void 0===H?void 0:H.id)&&"content"!==(null===(Z=Nn[St])||void 0===Z?void 0:Z.id))})}),yt&&!Et&&Boolean((null===(q=Nn[St])||void 0===q?void 0:q.id)&&"content"!==(null===(X=Nn[St])||void 0===X?void 0:X.id))&&(0,M.jsx)("div",{style:{position:"fixed",top:en,left:0,right:0,bottom:$t+56+Ct,background:ot,overflowY:"auto",zIndex:1100,padding:"16px"},children:(0,M.jsx)($.A,{contentUuid:st.uuid,onGoToPage:function(e){$n(e)},showFeeds:!0,feedName:(null==it||null===(Y=it.params)||void 0===Y||null===(K=Y.feed)||void 0===K?void 0:K.feed)||Xe.feed||(null==it||null===(te=it.params)||void 0===te||null===(re=te.feed)||void 0===re?void 0:re.search_in_feed)||Xe.search_in_feed||"default",accountId:null==it||null===(ie=it.company)||void 0===ie?void 0:ie.account_id,feedsColor:void 0,currentPageNumber:Gt,containerScroll:!0})}),"STICKY_CENTER_LEFT"===(null==st||null===(oe=st.content_action)||void 0===oe?void 0:oe.button_position)&&!yt&&!Fn&&(0,M.jsx)("div",{className:Dt.centeredLeftSticky,children:(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(Se,{content:st,withShadow:!0})]})}),("CUSTOM"===(null==st||null===(ae=st.content_action)||void 0===ae?void 0:ae.button_position)||Ln||Fn)&&!yt&&(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Be,{content:st,containerRef:He,barHeight:en,bottomReserve:$t+(gt?76:16)+72,feed:{open:Boolean(Ot&&xt&&!yt),width:cn,side:Et&&"left"===Rt?"left":"right"},isMobile:yt,forceShow:Ln||Fn,placing:Ln})}),(0,M.jsx)("div",{style:(0,a.A)({minHeight:$t,position:"fixed",bottom:Ct,left:0,right:0,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",background:ot,paddingTop:"10px",gap:5,zIndex:1200},!Ot||!xt||yt||Et&&!rn?{}:Et&&"left"===Rt?{marginLeft:cn}:{marginRight:cn}),children:(0,M.jsx)(Q.A,{isMobile:yt,currentPageNumber:Gt,pageCount:(null==st||null===(le=st.config)||void 0===le?void 0:le.pagecount)||1,goToPage:$n,isPresentationMode:et,backgroundColor:ot,mobileActiveTab:St,mobileTabs:Nn,onMobileTabChange:function(e){jt(e);var t=Nn[e];if("content"===(null==t?void 0:t.id))kt(!1);else{kt(!0);try{window.dispatchEvent(new CustomEvent("dsl:setActiveTab",{detail:{tabId:t.id}}))}catch(e){}}},bottomChildren:yt?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"5px 10px"},children:(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Fe,{content:st,isPresentationMode:et})})}):null,children:yt&&(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:null!=it&&null!==(ce=it.company)&&void 0!==ce&&null!==(se=ce.company_customizations)&&void 0!==se&&se.is_powered_by_celero?"flex-end":"center",alignItems:"center",padding:"0px 30px",gap:"5px"},children:null!=st&&null!==(tr=st.content_action)&&void 0!==tr&&tr.is_enabled&&yt?(0,M.jsx)(Se,{content:st,withShadow:!1}):(0,M.jsx)(M.Fragment,{})})})}),(!yt||Gn)&&(0,M.jsxs)("div",{className:Dt.poweredByWrapper,children:["STICKY_BOTTOM_LEFT"!==(null==st||null===(er=st.content_action)||void 0===er?void 0:er.button_position)||Fn?(0,M.jsx)(M.Fragment,{}):(0,M.jsx)(Se,{content:st,withShadow:!0}),Gn&&(0,M.jsx)(Ee.A,{element:"cta",variant:"button",label:"Add call to action",onDismiss:function(){return Kt(!0)}}),!yt&&(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Fe,{content:st})})]}),(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(ke,{})]}),bt&&(0,M.jsx)("div",{style:{position:"fixed",bottom:0,left:0,right:0,zIndex:1300},children:(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Pe,{contentId:st.uuid,backgroundColor:ot})})})]}),xt&&!yt&&(0,M.jsxs)("div",{style:(0,a.A)((0,a.A)({position:window.celeroData?"absolute":"fixed",top:en},Et&&"left"===Rt?{left:0,right:"auto"}:{right:0}),{},{overflow:"visible",width:Ot?cn:0,transition:fn?"none":"width 0.3s",height:en>0?"calc(100vh - ".concat(en,"px)"):"100vh",background:ot,zIndex:1100,display:"flex"}),children:[!(Et&&"left"===Rt)&&(0,M.jsx)("div",{onMouseDown:Rn,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,M.jsx)("div",{style:{width:"4px",height:"40px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.2)"}})}),(0,M.jsx)("div",{style:{flex:1,overflow:"auto",height:"100%",minWidth:0,paddingLeft:Et&&"left"===Rt?0:"12px",paddingRight:Et&&"left"===Rt?"12px":0},children:(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:Et?(0,M.jsx)(Me,{viewerBarHeight:en,accountId:null==it||null===(de=it.company)||void 0===de?void 0:de.account_id,shouldOpenFeeds:Ot,handleSeachInFeedStatus:Bn,contentUuid:st.uuid,celeroId:(0,m.AS)(),shorten:Hn,background:ot}):(0,M.jsx)(Re,{viewerBarHeight:en,accountId:null==it||null===(ue=it.company)||void 0===ue?void 0:ue.account_id,shouldOpenFeeds:Ot,handleSeachInFeedStatus:Bn,contentUuid:st.uuid,celeroId:(0,m.AS)(),shorten:Hn,background:ot})})}),Et&&"left"===Rt&&(0,M.jsx)("div",{onMouseDown:Rn,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,M.jsx)("div",{style:{width:"4px",height:"40px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.2)"}})})]}),(0,M.jsxs)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:[" ",(0,M.jsx)(Ne,{})]}),(0,M.jsx)(i.Suspense,{fallback:(0,M.jsx)(M.Fragment,{}),children:(0,M.jsx)(Te,{url:hn,contentUUID:null==st?void 0:st.uuid,open:!!hn,onClose:function(){return gn(null)}})}),Cn,(0,M.jsx)(An,{})]})},Ve=n(46818),ze=n(27224),Ue=n(56924),He=n(81076),Ze=n(5084),qe=n(50327),Xe=n(91408),Ye=(0,L.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%"}}}})),Ke={EMAIL_NOT_IN_CONTACTS:"Email not authorized"};function Je(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=Ye(),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,M.jsx)(He.A,{minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",children:(0,M.jsxs)(He.A,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",maxWidth:400,children:[(0,M.jsx)("img",{height:50,src:l||qe.default,alt:"logo"}),(0,M.jsx)(Ze.A,{style:{marginTop:28,marginBottom:14,whiteSpace:"pre-line"},variant:"h5",align:"center",children:a}),(0,M.jsx)(Ze.A,{style:{whiteSpace:"pre-line"},variant:"body1",align:"center",children:r}),c&&(0,M.jsx)(Ze.A,{style:{whiteSpace:"pre-line",marginTop:14},variant:"body2",align:"center",children:c}),(0,M.jsx)(ze.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,M.jsxs)(ze.lV,{style:{width:"100%"},children:[(0,M.jsx)(Ue.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,M.jsx)(Xe.A,{variant:"contained",style:{marginTop:8},fullWidth:!0,type:"submit",color:"primary",size:"large",isLoading:n,disabled:!t.email||n,children:i})]})}}),o&&(0,M.jsx)(Ze.A,{style:{marginTop:16},color:"error",align:"center",children:Ke[o]}),(null==s?void 0:s.message)&&(0,M.jsx)(Ze.A,{color:"error",children:s.message})]})})}var Qe=n(74859);var $e=n(52473);function et(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],b=i.useState(""),C=(0,r.A)(b,2),x=C[0],E=C[1],A=i.useState(null),_=(0,r.A)(A,2),O=_[0],k=_[1];return(0,M.jsx)(Je,{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 Qe.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.AS)(),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():E(n),k(e),y(!1)})),n&&$e.A.createContact(n,{},{account_id:o,email:e.email,celero_id:(0,m.AS)()})},showSubmitInProgress:w,validationError:x,logo:f,subDescriptionText:v,response:O})}var tt=n(71e3),nt=n(38607),rt=n(93593),it=n(77877),ot=n(50471),at=n(27772),lt=n(66193),ct=n(51053),st=n(9551);function dt(e){var t,n,s,d,f=e.restrictAccess,m=e.contentUUID,v=e.children,g=e.celeroCRMIntegrationId,w=e.accountId,y=e.companyIntegrations,C=e.short,x=e.logo,E=e.accessControlSettings,A=(0,i.useState)(!1),_=(0,r.A)(A,2),O=_[0],k=_[1],L=(0,i.useState)(),I=(0,r.A)(L,2),S=I[0],j=I[1],F=(0,i.useState)(!0),P=(0,r.A)(F,2),R=P[0],D=P[1],N=(0,c.d4)((function(e){return{shortenData:e.shortenData,gdpr:e.gdpr}})),T=N.shortenData,B=N.gdpr,W=(0,c.wA)(),G=null==T||null===(t=T.versions)||void 0===t||null===(n=t[0])||void 0===n||null===(s=n.version_details)||void 0===s?void 0:s.uuid,V=null==T||null===(d=T.access_control)||void 0===d?void 0:d.min_stage,z=(0,tt.eM)(w);var U=function(){var e,t,n,r=T.access_control;if(!r||!r.stage_options||!r.min_stage)return null;var i=r.min_stage;r.min_stage===it.s.PRIVATE&&(i=it.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(U&&!O){var e=(0,a.A)((0,a.A)({},U.data),{},{integration:U.integration,integration_id:U.external_integration,id:U.id,integration_name:U.integrtation_name});st.A.has(U.id)||st.A.register(U.id,e,"access_control",U.external_integration),window.celeroFormConfig=e}}),[U,O]);var H=function(e){var t=e.response;"ALLOWED"===(null==t?void 0:t.access_status)&&(k(!0),W((0,at.j)(lt.X)))};(0,i.useEffect)((function(){function e(e){H(e.detail)}return window.addEventListener("celeroGDPRFormSubmit",e),function(){window.removeEventListener("celeroGDPRFormSubmit",e)}}),[]),(0,i.useEffect)((function(){if(y&&w&&f&&G){if([it.s.UNVERIFIED_CONTACT,it.s.VERIFIED_CONTACT,it.s.PRIVATE,it.s.GDPR_CONSENT].includes(f)){D(!0);var e=(0,tt.u4)(y,w),t=e.find((function(e){return"contact"===e.type.toLowerCase()})),n=e.find((function(e){return"gdpr"===e.type.toLowerCase()}));if(!t)return void D(!1);var r=t.data.visitor_param,i=!1,c=function(){i||(i=!0,clearTimeout(s),D(!1))},s=setTimeout((function(){i||((0,b.FF)("Access control identify did not answer in time",{timeout_ms:8e3,access_type:V,version_id:G}),c())}),8e3);return(0,l.A)((0,o.A)().m((function e(){var i,l,s,d,u,f,p,m;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,nt.A.waitForCeleroId();case 1:i=e.v,l=rt.E.getIntegrationsNeededData(i),s=0,d=setInterval((function(){var e=(l=rt.E.getIntegrationsNeededData(i))[r];window.contactNeededIntegrationData=window.contactNeededIntegrationData||{},window.contactNeededIntegrationData=(0,a.A)((0,a.A)({},window.contactNeededIntegrationData),{},{version_id:G,celero_id:i,account_id:w,access_type:V,integration:t.name,visitor_id:e||"NOVISITORID"}),(e||10==s)&&clearInterval(d),s++}),1e3),u=t.data.url_parameter,r?(f=l[r],p=l[u+"_url_param"],m={account_id:w,visitor_id:f||"NOVISITORID",integration:"GDPR_CONSENT"===V?(null==n?void 0:n.name)||"":t.name,celero_id:l.celero_id||"",url_parameter:p,version_id:G,access_token:z,access_type:V,user_context:JSON.stringify({location:JSON.parse(h.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}})},$e.A.visitorIdentify(m).then((function(e){j(e),"ALLOWED"==e.access_status&&k(!0),c()})).catch((function(e){(0,b.FF)("Access control visitor identify request failed",{message:null==e?void 0:e.message,access_type:V,version_id:G})})).finally((function(){c()}))):c();case 2:return e.a(2)}}),e)})))().catch((function(e){(0,b.FF)("Access control identify failed before the request was sent",{message:null==e?void 0:e.message,access_type:V,version_id:G}),c()})),function(){return clearTimeout(s)}}D(!1)}else D(!1)}),[T,y,w,f,G]);var Z=(0,i.useCallback)((function(){var e,t="ALLOWED"===(null===(e=B.identifyResponse)||void 0===e?void 0:e.access_status),n=B.integration;if(t)k(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",G);var l=n.data.visitor_param,c=n.data.url_parameter,s=rt.E.getIntegrationsNeededData(),d=s[l]||"NOVISITORID",u=s[c+"_url_param"]||"",f=s.celero_id||"",m=JSON.stringify({gdpr_consent_value:void 0});o=(0,p.He)(o,"account_id",w||""),o=(0,p.He)(o,"visitor_id",d||""),o=(0,p.He)(o,"integration",n.name||""),o=(0,p.He)(o,"celero_id",f||""),o=(0,p.He)(o,"url_parameter",u||""),o=(0,p.He)(o,"access_type",V||""),o=(0,p.He)(o,"user_input",m||""),o=(0,p.He)(o,"access_token",z||""),o=(0,p.He)(o,"callbackUrl",encodeURIComponent(i))}o&&window.location.assign(o)}}),[B]);if((0,i.useEffect)((function(){}),[B,O]),!f||f===it.s.GDPR_CONSENT&&(null==B||!B.integration))return(0,M.jsx)(M.Fragment,{});if(f===it.s.EVERYONE_ALLOWED)return v;if(!m)return(0,M.jsx)(M.Fragment,{});if(!E||E&&"POPUP"===E.stage_options[f].form_preview)return v;if([it.s.UNVERIFIED_CONTACT,it.s.VERIFIED_CONTACT,it.s.PRIVATE].includes(f)){if(!O){var q,X;if(R)return(0,M.jsx)(M.Fragment,{});var Y=function(e){var t={button:"",title:"",description:"",sub_description:""};switch(e){case it.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 it.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 it.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}(V);return U&&"celero"===(null===(q=U.data)||void 0===q?void 0:q.platform)?(0,M.jsx)(He.A,{justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",display:"flex",children:(0,M.jsx)(He.A,{maxWidth:"980px",children:(0,M.jsx)(ot.A,{formConfig:(0,a.A)((0,a.A)({},U.data),{},{integration:U.integration,integration_id:U.external_integration,id:U.id,integration_name:U.integrtation_name}),afterSubmit:H,sourceOfRender:ct._.LANDING_PAGE,defaultValues:null===(X=E.stage_options[f])||void 0===X?void 0:X.form_default_values,onCancel:function(){W((0,at.j)(lt.X))}})})}):(0,M.jsx)(et,{onRequestSent:function(){k(!0)},celeroCRMIntegrationId:g,accountId:w,short:C,versionId:G,accessType:V,title:Y.title,description:Y.description,buttonText:Y.button,logo:x,visitorId:null==S?void 0:S.visitor_id,subDescription:Y.sub_description})}}return f!=it.s.GDPR_CONSENT||O?v:(Z(),(0,M.jsx)(M.Fragment,{}))}var ut=n(75449),ft=n(86948),pt=n(99964),mt=n(19378),vt=n(75184);var ht=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 g(){return(g=(0,l.A)((0,o.A)().m((function e(n){var i,l,c,s,f,g,w,y;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return window.isLoadingGdpr=!0,e.n=1,nt.A.waitForCeleroId();case 1:i=e.v,l=rt.E.getIntegrationsNeededData(i),c=n.data.visitor_param,s=n.data.url_parameter,f=l[c],g=l[s+"_url_param"],w=JSON.stringify({microsite_name:d,location:(0,vt.j)(h.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}}),y={account_id:t,visitor_id:f||"NOVISITORID",integration:n.name,celero_id:i||"",version_id:r||"",url_parameter:g,access_type:a,user_context:w},$e.A.visitorIdentify(y).then((function(e){if(window.isLoadingGdpr=!1,h.A.sessionStorage.setItem(mt.$i,null==e?void 0:e.gdpr_track),g){var t="url param";p.gdpr_source&&(t=p.gdpr_source),(0,m.xF)(v.qW.GDPR_CONSENT,{value:!0,source:t})}u((0,pt.y)(n,e))})).catch((function(e){window.isLoadingGdpr=!1,(0,b.FF)("Error in fetching the gdpr integtration",{message:String(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)===ut.Iq.GDPR}));e&&(!function(e){g.apply(this,arguments)}(e),f.current=!0)}}),[t,n]),e.children},gt=function(e){var t,n,w,y,b,x,E,A,_,k,L=e.shortenHash,I=e.company,S=(0,i.useState)(L),j=(0,r.A)(S,2),F=j[0],P=j[1],R=(0,c.wA)(),D=(0,i.useState)(void 0),N=(0,r.A)(D,2),T=N[0],B=N[1],W=(0,i.useState)(!1),G=(0,r.A)(W,2),V=G[0],z=G[1],U=(0,i.useRef)(m.wn).current(),H=(0,i.useState)(!1),Z=(0,r.A)(H,2),q=Z[0],X=Z[1],Y=(0,i.useState)((0,Ve.i7)()),K=(0,r.A)(Y,2),J=K[0],Q=K[1],$=(0,i.useState)("EVERYONE_ALLOWED"),ee=(0,r.A)($,2),te=ee[0],ne=ee[1],re=(0,i.useState)(!1),ie=(0,r.A)(re,2),oe=ie[0],ae=ie[1],le=(0,i.useState)(null),ce=(0,r.A)(le,2),se=ce[0],de=ce[1],ue=(0,i.useState)(),fe=(0,r.A)(ue,2),pe=fe[0],me=fe[1];function ve(){var e,t;(0,m.xF)(v.qW.CONTENT_NOT_FOUND,{short:F,account_id:null==I?void 0:I.account_id}),(!(t=null==I||null===(e=I.company_settings)||void 0===e?void 0:e.not_found_hash)||F===t||(P(t),0))&&z(!0)}var he=function(){var e=(0,l.A)((0,o.A)().m((function e(){var t,n,r,i,l,c,v,g,w,y,b,x,E,A,_,k,L,I,S,j,M,D,N,T,W,G,z,H,Z,q,Y,K,J,$,ee,te,re;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return n=s.parse(window.location.search),r=window.location.search,e.n=1,d.A.getShortenUrlInfo(F,R).catch((function(e){404==e.status&&ve()}));case 1:if(i=e.v){e.n=2;break}return V||ve(),e.a(2);case 2:if(l="preview"===(null===(t=i.params)||void 0===t?void 0:t.campaign),!i.is_expired||l){e.n=3;break}return(w=null===(c=i)||void 0===c||null===(v=c.company)||void 0===v||null===(g=v.company_settings)||void 0===g?void 0:g.not_found_hash)&&F!==w?P(w):ve(),e.a(2);case 3:if(y=null,n&&(y=n.type),b=y||(0,u.ZI)(),x="/s/".concat(F,"/").concat(i.seo_content_version_name),i){if(null!==(E=i)&&void 0!==E&&null!==(A=E.company)&&void 0!==A&&A.integrations&&(null===(G=i)||void 0===G||null===(z=G.company)||void 0===z||null===(H=z.integrations)||void 0===H||H.forEach((function(e){e.name=e.name.toUpperCase()}))),i=(0,p.iQ)(i),R((0,ft.x)(i)),me(i),Z=(0,u.zL)(O.w,null===(_=i)||void 0===_||null===(k=_.company)||void 0===k?void 0:k.company_customizations),R((0,C.Y)(Z)),q=i.versions,Y=i.content_uuid,window.micrositeLink=i.content_url,(null===(L=i.versions)||void 0===L?void 0:L.length)>1)for(K=0;K0;)"{"===n[h]?v++:"}"===n[h]&&v--,h++;a+=m+c(n.slice(p+1,h-1),t)+"}",i=h}else{var g=n.indexOf("{",i);if(-1===g){a+=n.slice(i);break}for(var w=n.slice(i,g).split(",").map((function(e){return e.trim()})).filter(Boolean),y=w.map((function(e){return e.startsWith(r)?e:"".concat(r," ").concat(e)})).join(", "),b=w.filter((function(e){return!e.startsWith(r)&&/^[.#:[]/.test(e)})).map((function(e){return"".concat(r).concat(e)})).join(", "),C=1,x=g+1;x0;)"{"===n[x]?C++:"}"===n[x]&&C--,x++;var E=n.slice(g+1,x-1);a+="".concat(y,"{").concat(E,"}"),b&&(a+="".concat(b,"{").concat(E,"}")),i=x}return a}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?x(e.favicon):x("/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(){E((0,s.X)())},j=C||"";return(0,v.jsxs)(v.Fragment,{children:[C&&(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}}}),[x,E,y,A,f]),(0,i.useEffect)((function(){if(!x&&!E&&!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())}}}),[x,E,y,A,f]),b?(0,p.jsx)(p.Fragment,{children:!x&&!E&&(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&&(P.hash,e.context.page_number),function(){var e,t,n,r;(e=(0,A.AS)(),t=te,n=ie,r={celero_id:e,account_id:t,model:n,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"},s.Yq.post("/feed/chat",r)).then((function(e){e&&e.data&&K(e.data)})).finally((function(){ee(!1)}))}),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,A.AS)();d(0,M,te,ie,(0,r.A)((0,r.A)({},re),{},{ui:ae})).then((function(e){if(e.data&&e.data.sections){var t=e.data.sections.find((function(e){return"cards"===e.type}));if(t){var n,r=function(e){var t=new Map;return null==e||e.forEach((function(e,n){t.set(e.eid,n)})),t}(t.elements);if(se)null===(n=t.elements)||void 0===n||n.splice(se);V(e.data),me(r)}}})).catch((function(e){var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.includes("404")&&V(null)})).finally((function(){Z(!1);var t={recommendation_list:G,feed_name:M,account_id:te,params:ve},n=e?"Refresh Feed":"Open Feed";(0,A.xF)(n,t),le&&he()}))};(0,o.useImperativeHandle)(t,(function(){return{loadFeedElements:ge}}),[ge]),(0,o.useEffect)((function(){M&&te&&ge()}),[te]);var we=(0,o.useRef)(),ye=function(){var e=we.current,t=e.scrollTop/(e.scrollHeight-e.clientHeight),n={recommendation_list:G,feed_name:M,account_id:te,value:Math.round(100*t)/100,params:ve};(0,A.xF)("Scroll Feed",n)},be=(0,o.useCallback)((0,l.A)(ye,1e3),[ye]);(0,o.useEffect)((function(){var e=we.current;return e&&e.addEventListener("scroll",be),function(){e&&e.removeEventListener("scroll",be)}}),[H]);null===(L=window)||void 0===L||null===(I=L.location)||void 0===I||null===(F=I.href)||void 0===F||F.includes("/s/");return(0,C.jsxs)("div",{ref:we,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"==de?"hidden":"auto"},children:[le&&(0,C.jsx)(O.A,{data:Y,isLoading:$,feedCardsMap:pe,feedElements:G,color:D}),H?"carousel"==ae?(0,C.jsx)("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)(y.A,{style:{fontSize:26},children:S})}):(0,C.jsx)(C.Fragment,{}):G?(0,C.jsx)("div",{style:{height:"100%",width:"100%",maxWidth:1190},children:(0,C.jsx)(E,{data:G,scroll:de,color:D,onSuggestionClick:function(e,t){var n={type:"suggestion",value:t,recommendation_list:G};(0,A.xF)("Click Feed",n),d((0,A.AS)(),M,te,ie,(0,r.A)((0,r.A)({},re),{},{ui:ae})).then((function(e){var t;V(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:e.data)}))},onCardClick:function(e,t){for(var n={type:"card",value:t,recommendation_list:G,params:(0,r.A)({searchParams:re},ve)},o=new URL(e),l=a.parse(o.search),c=Object.keys(l),s=a.parse(window.location.search),d=0,u=Object.entries(s);d1&&void 0!==arguments[1]?arguments[1]:500;return e.length>t?"".concat(e.slice(0,t),"…(+").concat(e.length-t,")"):e},i=function(){var e=navigator.connection;if(e)return{effective_type:e.effectiveType,downlink:e.downlink,rtt:e.rtt,save_data:e.saveData}},o=function(e){if(null!=e){if("string"==typeof e)return r(e);if("number"==typeof e||"boolean"==typeof e)return String(e);try{return r(JSON.stringify(e))}catch(e){return"[unserializable]"}}},a=function(e){var t,n,r,a,l=e.config||{},c=e.response,s=null==l||null===(t=l.metadata)||void 0===t?void 0:t.start_time,d="number"==typeof s?Math.round(performance.now()-s):void 0,u=null==l?void 0:l.signal,f=(null==l?void 0:l.headers)&&(l.headers["X-Request-Id"]||l.headers["x-request-id"])||void 0;return{code:e.code,message:e.message,status:null!==(n=null==c?void 0:c.status)&&void 0!==n?n:0,status_text:null!==(r=null==c?void 0:c.statusText)&&void 0!==r?r:"",method:null==l||null===(a=l.method)||void 0===a?void 0:a.toUpperCase(),url:null==l?void 0:l.url,base_url:null==l?void 0:l.baseURL,request_id:"string"==typeof f?f:void 0,duration_ms:d,online:"undefined"==typeof navigator||navigator.onLine,visibility:"undefined"!=typeof document?document.visibilityState:"unknown",connection:i(),signal_aborted:null==u?void 0:u.aborted,signal_reason:null!=u&&u.aborted&&null!=u&&u.reason?String(u.reason):void 0,response_data_preview:o(null==c?void 0:c.data),request_headers:null!=l&&l.headers?JSON.parse(JSON.stringify(l.headers)):void 0,response_headers:null!=c&&c.headers?JSON.parse(JSON.stringify(c.headers)):void 0,no_response:!c}}},38219: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&&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]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x.T:return(0,o.A)((0,o.A)({},e),t.payload);case x.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]:C,t=arguments.length>1?arguments[1]:void 0;return t.type===b.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))},44415:function(e,t,n){n.d(t,{Gb:function(){return o},He:function(){return i},Oh:function(){return h},Oo:function(){return v},aQ:function(){return a},g$:function(){return l},iQ:function(){return p},kB:function(){return m},lK:function(){return u},s_:function(){return c},vA:function(){return s}});var r=n(21430),i=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+i+t+"="+n},o=function(e,t){return e.replace(new RegExp("[?&]"+t+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+t+"=[^&]*&"),"$1")},a=function(e){var t=document.createElement("a");return t.rel="nofollow",t.href=e,t.pathname},l=function(e){var t=document.createElement("a");return t.rel="nofollow",t.href=e,t},c=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.length?t.join("&"):""},s=function(){var e,t=window.location.search;if(null!==(e=window.celeroData)&&void 0!==e&&e.url_full)try{t=new URL(window.celeroData.url_full).search}catch(e){}return r.parse(t)};window.addEventListener("onhashchange",(function(){var e=s();window.celeroURLParams=e}));var d=s();function u(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(""!==t&&(t+="&"),t+="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(JSON.stringify(e[n]))));return t}function f(e){try{return e.startsWith("/")}catch(e){return!1}}function p(e){if("string"==typeof e&&e)return f(e)?(t=e,r=window.location.origin,null!==(n=window.celeroData)&&void 0!==n&&n.domain&&(r="https://"+window.celeroData.domain),f(t)?"".concat(r).concat(t):t):e;var t,n,r;if(Array.isArray(e))return e.map((function(e){return p(e)}));if("object"==typeof e&&null!==e){var i={};for(var o in e)e.hasOwnProperty(o)&&(o.toLowerCase().includes("color")&&"string"==typeof e[o]&&!e[o].startsWith("#")?i[o]="#"+e[o]:i[o]=p(e[o]));return i}return e}function m(){var e,t=window.location.origin;return null!==(e=window.celeroData)&&void 0!==e&&e.domain&&(t="https://"+window.celeroData.domain),t}function v(){var e=window.location.pathname,t=window.location.href,n=t.indexOf(e);return e+t.substring(n+e.length)}function h(e,t){try{var n=new URL(t,window.location.origin),r=new URLSearchParams(n.search),i=new URL(e,window.location.origin),o=new URLSearchParams(i.search);return r.forEach((function(e,t){o.set(t,e)})),"".concat(i.origin).concat(i.pathname,"?").concat(o.toString())}catch(t){return e}}window.celeroURLParams=d,window.addEventListener("onpushstate",(function(){var e=s();window.celeroURLParams=e})),window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,n){var r=new Event("onpushstate");return dispatchEvent(r),e.apply(t,n)}})},45863: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&&(m.hash,e.context.page_number),function(){(function(e,t,n){var r={celero_id:e,account_id:t,model:n,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"};return A.Yq.post("/feed/chat",r)})((0,C.AS)(),V,U).then((function(e){e&&e.data&&N(e.data)})).finally((function(){G(!1)}))}),ie=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,C.AS)();_(0,u,V,U,(0,r.A)((0,r.A)({},z),{},{ui:q})).then((function(e){if(e.data&&e.data.sections){var t=e.data.sections.find((function(e){return"cards"===e.type}));if(t){var n,r=function(e){var t=new Map;return null==e||e.forEach((function(e,n){t.set(e.eid,n)})),t}(t.elements);if(K)null===(n=t.elements)||void 0===n||n.splice(K);E(e.data),te(r)}}})).catch((function(e){var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.includes("404")&&E(null)})).finally((function(){P(!1);var t={recommendation_list:w,feed_name:u,account_id:V,params:ne},n=e?"Refresh Feed":"Open Feed";(0,C.xF)(n,t),X&&re()}))};(0,o.useImperativeHandle)(t,(function(){return{loadFeedElements:ie}}),[ie]),(0,o.useEffect)((function(){u&&V&&ie()}),[V,u]);var oe=(0,o.useRef)(),ae=function(){var e=oe.current,t=e.scrollTop/(e.scrollHeight-e.clientHeight),n={recommendation_list:w,feed_name:u,account_id:V,value:Math.round(100*t)/100,params:ne};(0,C.xF)("Scroll Feed",n)},le=(0,o.useCallback)((0,l.A)(ae,1e3),[ae]);return(0,o.useEffect)((function(){var e=oe.current;return e&&e.addEventListener("scroll",le),function(){e&&e.removeEventListener("scroll",le)}}),[F]),(0,g.jsxs)("div",{ref:oe,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"===J?"hidden":"auto"},children:[X&&(0,g.jsx)(b.A,{data:D,isLoading:W,feedCardsMap:ee,feedElements:w,color:p}),F?"carousel"==q?(0,g.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"10px"},children:[(0,g.jsx)(f.A,{style:{fontSize:30,fontWeight:"bold",textAlign:"center"},children:S}),(0,g.jsx)(O.A,{color:"inherit"})]}):(0,g.jsx)(g.Fragment,{}):w?(0,g.jsx)("div",{style:{height:"100%",width:"100%"},children:(0,g.jsx)(y,{data:w,scroll:J,color:p,onSuggestionClick:function(e,t){var n={type:"suggestion",value:t,recommendation_list:w};(0,C.xF)("Click Feed",n),_((0,C.AS)(),u,V,U,(0,r.A)((0,r.A)({},z),{},{ui:q})).then((function(e){var t;E(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:e.data)}))},onCardClick:function(e,t){for(var n={type:"card",value:t,recommendation_list:w,params:(0,r.A)({searchParams:z},ne)},o=new URL(e),l=a.parse(o.search),c=Object.keys(l),s=a.parse(window.location.search),d=0,u=Object.entries(s);d1&&void 0!==p[1]?p[1]:[],r=p.length>2&&void 0!==p[2]?p[2]:{},i=p.length>3&&void 0!==p[3]?p[3]:[],a=(0,d.s_)(r),a+=t?"&account_id=".concat(t):"",e.n=1,f.A.waitForCeleroId();case 1:return(s=e.v)||(0,c.ZI)("Unable to get celero id in getCompanyIntegrations functionality"),a+=(0,d.s_)(u.E.getIntegrationsNeededData(s)),a+=s?"&celero_id=".concat(s):"",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=e.account_id,n=e.visitor_id,r=e.integration,i=e.celero_id,o=e.url_parameter,a=e.version_id,d=e.access_token,u=e.access_type,f=e.user_context,p=e.user_input,m={account_id:t,visitor_id:n,integration:r,celero_id:i,url_parameter:o,version_id:a,access_token:d,access_type:u,user_context:f,user_input:p};return l.th.post("/crm/api/visitor/identify",m).then((function(e){if(e&&e.data)return e.data})).catch((function(e){var n,o=(0,s.p)(e);return o.no_response&&"ERR_NETWORK"===o.code?((0,c.FF)("visitorIdentify network error (no response)",{integration:r,visibility:o.visibility,online:o.online,duration_ms:o.duration_ms}),Promise.reject(e)):((0,c.ZI)(e,{tags:{api:"visitorIdentify",integration:r,error_code:o.code||"no-code",http_status:o.status,online:o.online,visibility:o.visibility,no_response:o.no_response,effective_type:null===(n=o.connection)||void 0===n?void 0:n.effective_type,hostname:"undefined"!=typeof window?window.location.hostname:void 0},context:{request:{method:o.method,url:o.url,base_url:o.base_url,request_id:o.request_id,duration_ms:o.duration_ms,signal_aborted:o.signal_aborted,signal_reason:o.signal_reason,request_headers:o.request_headers},response:{status:o.status,status_text:o.status_text,response_headers:o.response_headers,data_preview:o.response_data_preview},connection:o.connection,body:{account_id:t,integration:r,version_id:a,access_type:u,celero_id:i}},fingerprint:["visitorIdentify",r,o.code||"no-code",String(o.status)]}),Promise.reject(e))}))}};t.A=p},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.xF)(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}),b.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.AS)(),'"})\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.xF)(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 g(t,r,n)}}}var y=n.p+"static/media/styles.9030d7c6ea9829b5d8eb.css",b=n(65983),C={SLUG:"carousel",NAME:"carousel",EVENTS:{VIEW:["view"],SCROLL:["scroll"],CARD_CLICK:["card","click"]}};function x(e){var t=e.title,n=e.cards,r=e.companyId,a=e.componentId,l=(0,d.b)(r,"carousel",a).stylesheet,c=w({componentSlug:C.SLUG,viewPayload:{component_title:t,cards_count:(null==n?void 0:n.length)||0},enableHorizontalScrollTracking:!0}),p=c.rootRef,m=c.trackRef,v=c.emit,h=y;(0,o.useEffect)((function(){}),[]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.A,{css:l,baseCss:h,componentName:C.NAME}),(0,b.jsxs)("div",{className:"carousel",ref:p,"data-celero-sp":C.NAME,"assistant-c-name":a?"carousel-".concat(a):"carousel",children:[t&&(0,b.jsx)("div",{className:"header",children:t}),(0,b.jsx)("div",{className:"body",children:(0,b.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,f.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,b.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})},className:"card-link",children:(0,b.jsxs)("div",{className:"card",children:[n?(0,b.jsx)("img",{className:"media",src:n,alt:e.title}):(0,b.jsx)("div",{className:"media","aria-hidden":"true"}),(0,b.jsxs)("div",{className:"card-body",children:[(0,b.jsx)("div",{className:"title",children:e.title}),o&&(0,b.jsx)("div",{className:"subtitle",children:o}),a&&(0,b.jsxs)("div",{className:"keywords",children:[(0,b.jsx)(s.A,{className:"tag-icon"}),Array.isArray(a)?a.join(" · "):""]})]})]})},"".concat(e.eid||e.title,"-").concat(t))}))})})]})]})}var E=n.p+"static/media/styles.0c08e1d1f59677e6c07d.css",A={SLUG:"summary",NAME:"summary",EVENTS:{VIEW:["view"]}};function _(e){var t=e.title,n=void 0===t?"Summary":t,r=e.body,i=e.companyId,o=e.componentId,a=(0,d.b)(i,A.NAME,o).stylesheet,l=w({componentSlug:A.SLUG,viewPayload:{component_title:n}}).rootRef,c=E;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.A,{css:a,baseCss:c,componentName:A.NAME}),(0,b.jsxs)("div",{className:"summary-container",ref:l,"data-celero-sp":A.NAME,"assistant-c-name":o?"summary-".concat(o):"summary",children:[n&&(0,b.jsx)("div",{className:"header",children:n}),(0,b.jsx)("div",{className:"card-body",children:r&&(0,b.jsx)("div",{className:"subtitle",children:r})})]})]})}var O=n(30991),k=n.p+"static/media/styles.43022456e85e3c7140ed.css",L={SLUG:"outline",NAME:"outline",EVENTS:{VIEW:["view"],ITEM_CLICK:["item","click"]}};function I(e){var t=e.title,n=e.items,r=e.onGoToPage,i=e.companyId,o=e.componentId,a=(0,d.b)(i,L.NAME,o).stylesheet,l=w({componentSlug:L.SLUG,viewPayload:{component_title:t,items_count:(null==n?void 0:n.length)||0}}),c=l.rootRef,s=l.emit,f=k;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.A,{css:a,baseCss:f,componentName:L.NAME}),(0,b.jsxs)("div",{className:"outline",ref:c,"data-celero-sp":L.NAME,"assistant-c-name":o?"outline-".concat(o):"outline",children:[t&&(0,b.jsx)("div",{className:"header",children:t}),(0,b.jsx)("div",{className:"body",children:(0,b.jsx)("div",{className:"list",children:null==n?void 0:n.map((function(e,t){var n=e.title||e.description||e.text||"";return(0,b.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;s(L.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,b.jsx)(O.A,{className:"icon"}),(0,b.jsx)("div",{className:"text",children:n})]},"".concat(n,"-").concat(t))}))})})]})]})}var S=n(91212),j=n(10467),F=n.p+"static/media/styles.37008852affbaa0cbdff.css",P={SLUG:"signature",NAME:"signature",EVENTS:{VIEW:["view"],SELECT_CHANGE:["mode","change"],INPUT_CHANGE:["input","change"],SUBMIT:["submit"],ERROR:["error"]}};function R(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 M(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 C(P.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),C(P.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,j.A)((0,S.A)().m((function e(){return(0,S.A)().w((function(e){for(;;)switch(e.n){case 0:return C(P.EVENTS.SUBMIT,{mode:k,has_value:!!T}),e.n=1,Promise.resolve(D(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,b.jsxs)("div",{className:"media-container",children:[(0,b.jsx)("canvas",{ref:W,className:"media",height:150,onMouseDown:H,onMouseMove:Z,onMouseUp:q,onMouseLeave:q,onTouchStart:Y,onTouchMove:K,onTouchEnd:J}),T&&(0,b.jsx)("button",{type:"button",className:"clear","aria-label":"Clear signature",onClick:X,children:"×"})]}):"text"===k?(0,b.jsx)("input",{className:"media text-input",type:"text",placeholder:"Type your signature",value:"string"==typeof T?T:"",onChange:Q,maxLength:40}):(0,b.jsx)("input",{className:"media file-input",type:"file",accept:"image/*",onChange:$})}),[k,T]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.A,{css:h,baseCss:x,componentName:P.NAME}),(0,b.jsxs)("div",{className:"signature",ref:y,"data-celero-sp":P.NAME,"assistant-c-name":a?"signature-".concat(a):"signature",children:[n&&(0,b.jsx)("div",{className:"header",children:n}),(0,b.jsx)("div",{className:"body",children:(0,b.jsxs)("div",{className:"track",children:[(0,b.jsxs)("div",{role:"group","aria-label":"signature mode selector",children:[(0,b.jsx)("div",{className:"title",children:"Choose method"}),(0,b.jsx)("div",{className:"subtitle",children:(0,b.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 C(P.EVENTS.SELECT_CHANGE,{mode:t});var t,n},children:[(0,b.jsx)("option",{value:"draw",children:"Draw"}),(0,b.jsx)("option",{value:"text",children:"Type it"}),(0,b.jsx)("option",{value:"image",children:"Upload"})]})})]}),(0,b.jsxs)("div",{className:"card",children:[te,(0,b.jsxs)("div",{className:"card-body",children:[(0,b.jsx)("div",{className:"title",children:"Your Signature:"}),T&&(0,b.jsx)("div",{className:"subtitle",children:"text"===k?(0,b.jsx)("span",{className:"typed-preview",children:T}):(0,b.jsx)("img",{className:"image-preview",src:T,alt:"Signature preview"})})]})]}),(0,b.jsx)("button",{className:"button",onClick:ee,type:"button",children:"Submit Signature"})]})})]})]})}var T=n.p+"static/media/styles.df18eb3c25e68962dd20.css",B=n(30495),W=(0,a.Ay)("div",{shouldForwardProp:function(e){return"contrastColor"!==e}})((function(e){return{display:"flex",flexDirection:"column",height:"100%",width:"100%",minWidth:0,color:e.contrastColor}})),G=(0,a.Ay)("div")({display:"flex",flexDirection:"column",gap:10,flex:1,minHeight:0,minWidth:0,overflowY:"auto"}),V=(0,a.Ay)("div")({display:"flex",flexDirection:"column",gap:10,flex:1,padding:"8px 10px 12px"});function z(e,t){var n,r,i,o;switch(e.type){case"summary":return(0,b.jsx)(_,{title:e.title||"",body:Z(e,t,"body")||e.body,companyId:t.companyId,componentId:e.id});case"carousel":return(0,b.jsx)(x,{title:e.title||"",cards:H(e,t,"cards")||[],companyId:t.companyId,componentId:e.id});case"outline":return(0,b.jsx)(I,{title:e.title||"",items:H(e,t,"items")||[],onGoToPage:t.onGoToPage,companyId:t.companyId,componentId:e.id});case"signature":return(0,b.jsx)(N,{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 U(e){var t,n,r=e.config,a=e.ctx,s=(0,d.b)(a.companyId,"panel",r.id),f=s.stylesheet,p=s.loading,m=(0,l.A)(),v=(0,o.useMemo)((function(){if(a.backgroundColor)try{return m.palette.getContrastText(a.backgroundColor)}catch(e){return}}),[m,a.backgroundColor]),h=r.layout.tabs||[],g=r.layout.defaultTabId||(null===(t=h[0])||void 0===t?void 0:t.id),w=(0,o.useState)(g||""),y=(0,i.A)(w,2),C=y[0],x=y[1],E=(0,o.useMemo)((function(){return h.find((function(e){return e.id===C}))||h[0]}),[h,C]);(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&&(h.some((function(e){return e.id===n}))&&x(n))};return window.addEventListener("dsl:setActiveTab",e),function(){return window.removeEventListener("dsl:setActiveTab",e)}}}),[a.isMobile,h]);var A=(0,o.useRef)(null);return(0,o.useEffect)((function(){A.current&&A.current.setAttribute("assistant-c-name","panel")})),(0,b.jsxs)(W,{ref:A,className:"root",contrastColor:v,"data-celero-sp":"panel","assistant-c-name":"panel",children:[(0,b.jsx)(u.A,{css:f,componentName:"panel",baseCss:T}),p&&(0,b.jsxs)(V,{className:"body",children:[!a.isMobile&&(0,b.jsx)(c.A,{variant:"rectangular",height:32,sx:{borderRadius:"12px",width:"100%"}}),(0,b.jsx)(c.A,{variant:"rounded",height:28,sx:{borderRadius:"8px"}}),(0,b.jsx)(c.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}}),(0,b.jsx)(c.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}}),(0,b.jsx)(c.A,{variant:"rounded",height:82,sx:{borderRadius:"8px"}})]}),!p&&(0,b.jsxs)(b.Fragment,{children:[!a.isMobile&&(0,b.jsx)("div",{className:"tabs","assistant-c-name":"panel-tabs",children:(0,b.jsx)(B.A,{items:h.map((function(e){return{id:e.id,label:e.label,icon:e.icon}})),value:Math.max(0,h.findIndex((function(e){return e.id===C}))),onChange:function(e){var t,n;return x((null===(t=h[e])||void 0===t?void 0:t.id)||(null===(n=h[0])||void 0===n?void 0:n.id))},variant:"scrollable",color:void 0,iconPosition:"start"})}),(0,b.jsx)(G,{className:"body",children:null==E||null===(n=E.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,b.jsx)("div",{children:!l&&z(o,a)},n)}))})]})]})}function H(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)&&q((t.dataSources||{})[i.source],i.path)||[]}function Z(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)?q((t.dataSources||{})[i.source],i.path):void 0}function q(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 x}});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 b(){var e=(0,w.vA)(),t=e.panelId||e.panel_id;return Array.isArray(t)?t[0]||void 0:t||void 0}function C(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 x(e){return E.apply(this,arguments)}function E(){return E=(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)}))),E.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=b()){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://p2api.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=b()){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://p2api.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,C(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&&M(r),3==++t){var l=[];e.forEach((function(e){e.handled||"contact"!==e.type.toLowerCase()||l.push(e.id)})),l.length>0&&M(l)}else n+=2e3,setTimeout((function(){D(e,t,n)}),n)}return(0,l.useEffect)((function(){var e=new Set;j.forEach((function(t){"MARKETO"===t.name&&e.add(t.id)}));var t=j.reduce((function(e,t){return"MARKETO"===t.name?[].concat((0,a.A)(e),[t.id]):e}),[]);t.length>0&&setTimeout((function(){M(t)}),2e4);var n=(0,a.A)(j);setTimeout((function(){D(n,0,2e3)}),2e3)}),[E]),null};x.displayName="IntegrationHandler",t.Ay=x},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;t1&&void 0!==arguments[1]?arguments[1]:null;if(null==e)return t;if("string"!=typeof e)return t;if(""===e||"undefined"===e||"null"===e)return t;if(e.trimStart().startsWith("<"))return t;try{return JSON.parse(e)}catch(e){return t}}},75449:function(e,t,n){n.d(t,{Iq:function(){return c},f3:function(){return l},o4:function(){return i},pi:function(){return a},pu:function(){return o}});var r=n(64467),i={HUBSPOT:"HUBSPOT",MARKETO:"MARKETO",SALESFORCE:"SALESFORCE",FACEBOOK:"FACEBOOK",LINKEDIN:"LINKEDIN",GOOGLE_ANALYTICS:"GOOGLE ANALYTICS",GOOGLE_TAG_MANAGER:"GOOGLE TAG MANAGER",DRIFT:"DRIFT",INTERCOM:"INTERCOM",OPTIMONK:"OPTIMONK",ELOQUA:"ELOQUA",CELERO_CRM:"CELERO CRM",CCRM:"CCRM",SALESFORCECELERO:"SALESFORCECELERO",KRANESHARES:"KRANESHARES",GOOGLE_ADS:"GOOGLE ADS",CCRMCELERO:"CCRMCELERO",GDPRCELERO:"GDPRCELERO",MAILCHIMP:"MAILCHIMP"},o=(0,r.A)((0,r.A)((0,r.A)({},i.HUBSPOT,"hs_id"),i.MARKETO,"luid"),i.SALESFORCE,"sf_id"),a=(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},i.HUBSPOT,["app_id"]),i.MARKETO,["app_id"]),i.FACEBOOK,["app_id"]),i.LINKEDIN,["app_id"]),i.GOOGLE_ANALYTICS,["app_id"]),i.GOOGLE_TAG_MANAGER,["gtm_id","gtm_auth","gtm_preview"]),i.DRIFT,["app_id"]),i.INTERCOM,["app_id"]),i.ELOQUA,["site_id","first_party_cookie"]),i.GOOGLE_ADS,["gads_id"]),l=["hs_id","luid","sf_id"],c={CONTACT:"Contact",GDPR:"GDPR",FORM:"Form"}},75800:function(e,t,n){n.r(t),n.d(t,{default:function(){return _}});var r=n(5544),i=n(89379),o=n(49255),a=n(62701),l=n(47081),c=n(21430),s=n(44415),d=n(24507),u=n(84899),f=n(95792),p=n(15811),m=n(55429),v=n(18229),h=n(56787),g=n(11422),w=n(65983),y=(0,d.Ay)("div")((function(e){var t=e.theme;return{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:e.viewerBarHeight+20,right:0,width:"50px",height:"50px",border:"1px solid #ccc",borderRadius:"45% 0px 0px 45%",cursor:"pointer",zIndex:t.zIndex.appBar}})),b=(0,d.Ay)("div")((function(e){var t=e.theme,n=e.background;return{color:t.palette.getContrastText(n),opacity:.5}})),C=(0,d.Ay)("div")((function(e){return{width:e.isMobile?"100vw":"100%",background:e.background,position:"relative",flex:1,minWidth:0,overflowY:"hidden"}})),x=(0,d.Ay)("div")((function(e){return{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",height:50,position:"sticky",top:0,zIndex:100,paddingLeft:20,paddingRight:20,background:e.background}})),E=(0,d.Ay)(f.A)((function(e){var t=e.theme,n=e.background;return{padding:0,display:"flex",justifyContent:"center",alignItems:"center",background:"transparent",color:t.palette.getContrastText(n),"&:hover":{background:"transparent"}}})),A=(0,d.Ay)("div")({display:"flex",flexDirection:"column",gap:"10px",alignItems:"center"});function _(e){var t,n,d=(0,l.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,_=(null==d?void 0:d.params)||{},O=(0,u.A)().isMobile,k=(0,h.A)().currentPageNumber,L=(0,s.vA)(),I=(null==_||null===(t=_.feed)||void 0===t?void 0:t.feed)||L.feed||(null==_||null===(n=_.feed)||void 0===n?void 0:n.search_in_feed)||L.search_in_feed,S=(0,a.A)(),j=(0,o.useRef)();(0,o.useEffect)((function(){var e,t,n,r,o;if(d&&null!=d&&null!==(e=d.params)&&void 0!==e&&e.feed){var a=(null==d?void 0:d.params)||{},l=(null==a||null===(t=a.feed)||void 0===t?void 0:t.feed)||L.feed||(null==a||null===(n=a.feed)||void 0===n?void 0:n.search_in_feed)||L.search_in_feed,s=(null==a||null===(r=a.feed)||void 0===r?void 0:r.model)||L.model,u=(null==a||null===(o=a.feed)||void 0===o?void 0:o.ui)||L.ui,f=(0,i.A)((0,i.A)({},L),{},{feed:l,model:s,ui:u}),p=c.stringify(f),m="".concat(window.location.pathname,"?").concat(p);setTimeout((function(){window.history.pushState({path:m},"",m)}),1e3)}}),[d]);var F=e.viewerBarHeight,P=e.background,R=e.accountId,M=e.feedsColor,D=e.handleSeachInFeedStatus,N=e.shouldOpenFeeds,T=e.contentUuid,B=o.useState(!0),W=(0,r.A)(B,2),G=W[0],V=W[1],z="boolean"==typeof N?N:G;return(0,w.jsxs)(w.Fragment,{children:[!z&&(0,w.jsx)(y,{theme:S,viewerBarHeight:F,onClick:function(){V(!0),D(!0)},children:(0,w.jsx)(b,{theme:S,background:P,children:(0,w.jsx)(m.A,{})})}),z&&(0,w.jsxs)(C,{isMobile:O,background:P,children:[(0,w.jsxs)(x,{background:P,children:[(0,w.jsx)(E,{theme:S,background:P,onClick:function(){V(!1),D(!1)},children:(0,w.jsx)(p.A,{})}),(0,w.jsx)(f.A,{onClick:function(){j&&j.current&&j.current.loadFeedElements(!0)},children:(0,w.jsx)(v.A,{})})]}),(0,w.jsx)(A,{children:(0,w.jsx)(g.A,{contentUuid:T,onGoToPage:function(e){window.IDRViewer&&"function"==typeof window.IDRViewer.goToPage&&window.IDRViewer.goToPage(e)},showFeeds:!0,feedName:I,accountId:R,feedsColor:M,currentPageNumber:k,feedRef:j})})]})]})}},77230:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(89379),i=n(91212),o=n(60436),a=n(10467),l=n(5544),c=n(49255),s=n(47081),d=n(84899),u=n(65425),f=n(88990),p=n(64547),m=n(49698),v=n(65983);function h(e){var t,n,h,g,w=e.contentUuid,y=e.background,b=e.bottomOffset,C=void 0===b?56:b,x=e.topOffset,E=void 0===x?0:x,A=e.visible,_=void 0===A||A,O=(0,s.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,k=(0,d.A)().isMobile,L=(0,c.useState)(null),I=(0,l.A)(L,2),S=I[0],j=I[1],F=(0,c.useState)({}),P=(0,l.A)(F,2),R=P[0],M=P[1],D=(0,c.useState)(!1),N=(0,l.A)(D,2),T=N[0],B=N[1],W=(0,c.useState)(null),G=(0,l.A)(W,2),V=G[0],z=G[1];return(0,c.useEffect)((function(){var e=!0;function t(){return(t=(0,a.A)((0,i.A)().m((function t(){var n,r,a,l,c,s,d,f,p,m,v,h;return(0,i.A)().w((function(t){for(;;)switch(t.n){case 0:return t.p=0,B(!0),z(null),t.n=1,u.A.getConfig(null==O||null===(n=O.company)||void 0===n||null===(r=n.id)||void 0===r?void 0:r.toString());case 1:if(a=t.v,e){j(a);try{d=(null==a?void 0:a.position)||"right",f=(null==O||null===(l=O.company)||void 0===l||null===(c=l.id)||void 0===c?void 0:c.toString())||"global",localStorage.setItem("sp_side_".concat(f),d),window.dispatchEvent(new CustomEvent("dsl:position",{detail:{side:d}})),p=((null==a||null===(s=a.layout)||void 0===s?void 0:s.tabs)||[]).map((function(e){return{id:e.id,label:e.label,icon:e.icon}})),m=p.some((function(e){return"content"===e.id})),v=m?p:[{id:"content",label:"Content",icon:"Feed"}].concat((0,o.A)(p)),window.dispatchEvent(new CustomEvent("dsl:tabs",{detail:{items:v}}))}catch(e){}}t.n=3;break;case 2:t.p=2,h=t.v,e&&z((null==h?void 0:h.message)||"Failed to load side panel config");case 3:return t.p=3,e&&B(!1),t.f(3);case 4:return t.a(2)}}),t,null,[[0,2,3,4]])})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!1}}),[w]),(0,c.useEffect)((function(){var e=!0;function t(){return(t=(0,a.A)((0,i.A)().m((function t(){var n,o,a,l;return(0,i.A)().w((function(t){for(;;)switch(t.n){case 0:if(t.p=0,null!=(n=S)&&n.dataSources){t.n=1;break}return t.a(2);case 1:return o=(0,f.J)({shortenData:O}),a=n.dataSources.map((function(e){return"http"===e.kind&&e.url.includes("/api/viewer/nextbestaction")?(0,r.A)((0,r.A)({},e),{},{method:"POST",headers:(0,r.A)({"Content-Type":"application/json"},e.headers||{}),body:{account_id:o.account_id,contact_id:o.contact_id,visitor_id:o.visitor_id,element_eid:o.element_eid,model:o.model,feed:o.feed,debug_mode:o.debug_mode}}):e})),t.n=2,(0,u.Z)(a);case 2:l=t.v,e&&M(l),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}}),t,null,[[0,3]])})))).apply(this,arguments)}return function(){t.apply(this,arguments)}(),function(){e=!1}}),[S,null==O||null===(t=O.company)||void 0===t?void 0:t.account_id,null==O?void 0:O.hash]),k?(0,v.jsxs)("div",{style:{position:"fixed",top:E,left:0,right:0,bottom:C,background:y,overflowY:"auto",zIndex:1100,padding:10,display:_?"block":"none"},children:[T&&(0,v.jsx)("div",{style:{padding:12,color:"#6b7280"},children:(null==S?void 0:S.loadingMessage)||"Loading…"}),!T&&V&&(0,v.jsx)("div",{style:{padding:12,color:"#d32f2f"},children:V}),!T&&!V&&S&&(0,v.jsx)(p.A,{config:S,ctx:{backgroundColor:y,contentUuid:w,onGoToPage:function(e){(0,m.N)(e);try{var t=new CustomEvent("dsl:goToPage",{detail:{page:e}});window.dispatchEvent(t)}catch(e){}},isMobile:k,accountId:null==O||null===(n=O.company)||void 0===n?void 0:n.account_id,companyId:null==O||null===(h=O.company)||void 0===h||null===(g=h.id)||void 0===g?void 0:g.toString(),dataSources:(0,r.A)({},R)}})]}):null}},77236:function(e,t,n){n.d(t,{V:function(){return r}});var r=function(e){return e.Mobile="mobile",e.Desktop="desktop",e.Tablet="tablet",e}({})},77403:function(e,t,n){n.r(t);var r=n(49255),i=n(57957);t.default=function(){return(0,r.useEffect)((function(){(0,i.ZI)("Test error")}),[]),null}},78217:function(e,t,n){e.exports=n.p+"static/media/kranesharelogo@3x.b9ff26ace5d8386d6e2c.png"},78917:function(e,t,n){n.r(t);var r=n(49255),i=n(98941),o=n(45332),a=n(37512),l=n(65983),c=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,40310))}));t.default=function(e){var t,n,s=e.company,d=e.shouldTrack;return(0,l.jsxs)(i.P,{children:[(0,l.jsx)(c,{company:s}),d?(0,l.jsx)(o.default,{children:(0,l.jsx)(r.Suspense,{fallback:(0,l.jsx)(l.Fragment,{}),children:(0,l.jsx)(a.A,{account_id:null==s?void 0:s.account_id,name:null===(t=window.celeroFeedData)||void 0===t?void 0:t.feedName})})}):(0,l.jsx)(a.A,{account_id:null==s?void 0:s.account_id,name:null===(n=window.celeroFeedData)||void 0===n?void 0:n.feedName})]})}},79679:function(e,t,n){n.r(t);var r=n(49255),i=n(72295),o=n(65124),a=n(59004),l=n(14247),c=n(65983),s=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,40310))})),d=(0,r.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,71889))})),u=(0,r.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,55637))})),f=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,50728))})),p=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,77403))})),m=(0,r.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,91097))})),v=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,45332))})),h=(0,r.lazy)((function(){return Promise.all([n.e(300),n.e(428)]).then(n.bind(n,19164))})),g=(0,r.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,5786))}));t.default=function(e){var t=e.company,n=e.shouldTrack,w=function(){return(0,c.jsxs)(l.A,{children:[(0,c.jsx)(s,{company:t}),n?(0,c.jsx)(v,{children:(0,c.jsx)(g,{company:t})}):(0,c.jsx)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:(0,c.jsx)(g,{company:t})})]})};return(0,c.jsxs)(i.Kd,{children:[(0,c.jsxs)(o.BV,{children:[(0,c.jsx)(o.qh,{path:"/light",element:(0,c.jsx)(a.A,{})}),(0,c.jsx)(o.qh,{path:"/f/:name",element:n?(0,c.jsx)(v,{children:(0,c.jsx)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:(0,c.jsx)(d,{account_id:null==t?void 0:t.account_id})})}):(0,c.jsx)(d,{account_id:null==t?void 0:t.account_id})}),(0,c.jsx)(o.qh,{path:"/not-found",element:(0,c.jsx)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:(0,c.jsx)(u,{})})}),(0,c.jsx)(o.qh,{path:"/s/:shorten/*",element:w()}),(0,c.jsx)(o.qh,{path:"/s",element:w()}),(0,c.jsx)(o.qh,{path:"/",element:w()}),(0,c.jsx)(o.qh,{path:"/form-test",element:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s,{company:t}),(0,c.jsx)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:(0,c.jsx)(f,{})})]})}),(0,c.jsx)(o.qh,{path:"/test-sentry-error",element:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s,{company:t}),(0,c.jsx)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:(0,c.jsx)(p,{})})]})}),(0,c.jsx)(o.qh,{path:"*",element:w()})]}),(0,c.jsxs)(r.Suspense,{fallback:(0,c.jsx)(c.Fragment,{}),children:[n&&(0,c.jsx)(m,{}),n&&(0,c.jsx)(h,{useProFingerprint:null==t?void 0:t.use_pro_fingerprint,accountId:null==t?void 0:t.account_id})]})]})}},81046:function(e,t,n){var r,i,o=n(91212),a=n(10467),l=n(74859),c=n(57957),s=n(44415),d=n(5791),u=n(81114),f={loadContent:(i=(0,a.A)((0,o.A)().m((function e(t,n){var r;return(0,o.A)().w((function(e){for(;;)if(0===e.n)return r=(0,s.s_)({access_id:n,is_bot:!!window.celeroURLParams.is_bot,is_preview:!!(0,l.GB)()||void 0}),e.a(2,l.Ay.get("/api/content/".concat(t,"/?").concat(r),{headers:{"doc-referer":document.referrer}}))}),e)}))),function(e,t){return i.apply(this,arguments)}),loadCustomAnnotations:(r=(0,a.A)((0,o.A)().m((function e(t,n,r){var i;return(0,o.A)().w((function(e){for(;;)if(0===e.n)return n||(0,c.vx)("Please use valid Viewer Id",t),i="".concat(r?"?access_id="+r:""),e.a(2,l.Ay.get("/api/content/".concat(n,"/custom-annotation/").concat(i)))}),e)}))),function(e,t,n){return r.apply(this,arguments)}),checkIfURIIsValid:function(e,t,n,r){return e=e.trim(),l.Ay.post("/api/iframe-support/",{url:e}).then((function(n){return t(n,e,r)})).catch((function(t){return t.message.includes("504")?(0,d.xF)(u.qW.WARNING,{functionality:"iframe-support in viwerAPI.tsx",value:"timeout error while trying to check if url is supported to be opened in iframe: url:".concat(e),code:"IFRAME_SUPPORT_TIMEOUT"}):(0,c.vx)(t,n),Promise.reject(t)}))},searchInContent:function(e,t,n,r,i,o){var a=new FormData;return a.append("search_term",String(t)),a.append("page_size",String(n)),a.append("page",String(r)),a.append("surrounding_chars_limit",String(60)),l.Ay.post("/api/content/".concat(e,"/texts/"),a).then((function(e){i(e.data)})).catch((function(e){(0,c.vx)(e,o)}))}};t.A=f},81153:function(e,t,n){e.exports=n.p+"static/media/not_found.7e612ca030513f4d5916.jpg"},82626: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;t255||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:"f0a296d5",472:"305b0170",489:"62c53b5d",515:"6babfd6a",566:"eead7a72",605:"bd3fd455",702:"5ce9bc87",772:"1b77fa5e",871:"7fdfe5d4",997:"4d72cd49"}[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