"use strict";(self.webpackChunkcelero=self.webpackChunkcelero||[]).push([[300],{9:function(e,n,t){t.d(n,{T:function(){return i},k:function(){return r}});var r=["feed","ui","model","elements_number","scroll"],i={ui:"gallery",model:"default",scroll:"true"}},2790:function(e,n,t){t.d(n,{L:function(){return r}});var r="SET_COMPANY_FORMS"},3605:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var r=t(49255),i=t(72295),o=t(65124),a=t(91212),l=t(10467),c=t(5544),s=t(4361),u=t(81046),d=t(89379),p=(t(21399),t(21959),t(63962)),f=t(65983),m=function(e){var n=e.content,t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");if(e.id="idrviewer",e.style.width="100%",e.style.height="100%",e.className="document-mode-with-one-page-light-viewer",t.current&&t.current.appendChild(e),n){var r=(0,p.h)(n.base_url);window.IDRViewer.config=(0,d.A)((0,d.A)({},n.config),{},{url:"".concat(r,"/"),isR2L:!1}),requestAnimationFrame((function(){window.IDRViewer.setup(),window.IDRViewer.setZoom(window.IDRViewer.ZOOM_FITPAGE)}))}return function(){window.IDRViewer&&"function"==typeof window.IDRViewer.destroy&&window.IDRViewer.destroy()}}),[n]),(0,f.jsx)("div",{ref:t,style:{width:"100%",height:"100%"}})},h=t(44415),g=t(99266),v=t(4134),x=t(77236);function A(e){var n=e.match(/\/s\/([^/]+)/);return n?n[1]:e}var b=function(e){var n=e.contentId,t=e.shortenLink,i=(0,r.useState)(null),o=(0,c.A)(i,2),d=o[0],p=o[1],b=(0,r.useState)(!0),_=(0,c.A)(b,2),w=_[0],y=_[1],E=(0,r.useState)(null),S=(0,c.A)(E,2),I=S[0],C=S[1],k=(0,r.useState)(n||null),j=(0,c.A)(k,2),T=(j[0],j[1]),N=(0,r.useState)(!1),D=(0,c.A)(N,2),R=(D[0],D[1]);return(0,r.useEffect)((function(){var e=!0;function r(){return(r=(0,l.A)((0,a.A)().m((function r(){var i,o,l,c,s,d,f,m,b;return(0,a.A)().w((function(r){for(;;)switch(r.n){case 0:if(y(!0),C(null),i=n,!t){r.n=6;break}return r.p=1,o=A(t),l=function(){},r.n=2,g.A.getShortenUrlInfo(o,l);case 2:if((c=r.v)&&c.content_uuid){r.n=3;break}throw new Error("Shorten link did not resolve to a content ID");case 3:if(s=(0,v.ZI)(),d=c.content_uuid,c.versions&&c.versions.length>1)for(f=0;f2&&void 0!==arguments[2]?arguments[2]:5;return e.every((function(e,r){return Math.abs(+e-+n[r])<=t}))}(e.bounds,n.bounds)},te=function(e){return e.filter((function(e,n,t){return n===t.findIndex((function(n){return ne(e,n)}))}))},re=c.memo((function(e){var n=e.defaultAnnotationResponse,t=e.customAnnotations,p=e.contentLastPageNumber,f=e.contentUUID,g=e.contentViewerTheme,v=e.zIndex,x=e.handleAnnotationClick,A=e.baseURL,_=e.handleAudioClick,V=e.isContentPageLoading,ne=e.handleOpenShareDialog,re=y(),ie=re.shareAnnotation,oe=re.divAnnotation,ae=[],le=(0,u.A)(),ce=(0,c.useRef)([]),se=(0,c.useRef)([]),ue=q.parse(window.location.search),de=(0,K.A)(),pe=de.currentZoomSettings,fe=de.loadedPages,me=(0,c.useRef)(new Map),he=(0,c.useCallback)((function(e,n,t,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"3",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"transparent",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"scale(1)",c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:void 0,s=document.createElement("div");return s.style.width=e,s.style.height=n,s.style.position=t,s.style.top=r,s.style.left=i,s.style.zIndex=o,s.style.backgroundColor=a,s.style.transform=l,c&&(s.style.backgroundImage="url('"+c+"')",s.style.backgroundSize="100% 100%"),s}),[]),ge=(0,c.useCallback)((function(e){if(document.getElementById("p".concat(e))){var n=function(e){var n=document.getElementById("p".concat(e));if(n){var t=window.getComputedStyle(n).transform;if(t&&"none"!==t){var r=t.match(/matrix\(([^)]+)\)/);if(r)return r[1].split(",").map((function(e){return parseFloat(e.trim())}))[0]||1}var i=n.parentElement;if(i){var o=window.getComputedStyle(i).transform;if(o&&"none"!==o){var a=o.match(/matrix\(([^)]+)\)/);if(a)return a[1].split(",").map((function(e){return parseFloat(e.trim())}))[0]||1}}}return 1}(e),t=n*(window.IDRViewer&&window.IDRViewer.getZoom&&window.IDRViewer.getZoom()||1),r=t>0?t:1,i=[];me.current.forEach((function(n,t){if(t.startsWith("page-".concat(e,"-"))){var o=n.dataset.originalBounds,a="true"===n.dataset.isAnchorAnnotation,l="true"===n.dataset.isFormAnnotation;if(o){var c=JSON.parse(o),s=parseFloat(c[2]),u=parseFloat(c[3]),d=window.innerWidth<=768,p=n.querySelector('[data-annotation-form-content="true"]'),f=1/r;d||a||!l||i.push((function(){n.style.width="".concat(s*r,"px"),n.style.height="".concat(u*r,"px"),n.style.overflow="auto",n.style.transform="scale(".concat(f,")"),n.style.transformOrigin="top left",p&&(p.style.transform="scale(".concat(f,")"),p.style.transformOrigin="top left",p.style.width="".concat(100/f,"%"),p.style.height="".concat(100/f,"%"))}))}}})),i.length>0&&requestAnimationFrame((function(){i.forEach((function(e){return e()}))}))}}),[]);(0,c.useEffect)((function(){void 0!==(null==pe?void 0:pe.zoomValue)&&Array.from(me.current.keys()).map((function(e){var n=e.match(/page-(\d+)-/);return n?parseInt(n[1]):null})).filter(Boolean).forEach((function(e){e&&ge(e)}))}),[null==pe?void 0:pe.zoomValue,ge]),(0,c.useEffect)((function(){var e;e=new Set(fe),Array.from(me.current.keys()).forEach((function(n){var t=n.match(/page-(\d+)-/);if(t){var r=parseInt(t[1]);if(!e.has(r)){var i=me.current.get(n);i&&i.parentNode&&i.parentNode.removeChild(i),me.current.delete(n)}}}))}),[fe]);var ve=function(){ne(E.T9.ANNOTATION)},xe=(0,c.useRef)({}),Ae=(0,c.useCallback)((function(e){var n=me.current.get(e);if(n&&n.parentNode){if(!document.getElementById("annotation-success-animations")){var t=document.createElement("style");t.id="annotation-success-animations",t.textContent="\n @keyframes annotationSuccessFadeIn {\n from {\n opacity: 0;\n transform: scale(0.8) translateY(-10px);\n }\n to {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n }\n @keyframes annotationSuccessCheckmark {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.2);\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes annotationSuccessPulse {\n 0%, 100% {\n box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);\n }\n 50% {\n box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);\n }\n }\n ",document.head.appendChild(t)}s.render((0,m.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"16px 20px",borderRadius:"8px",background:"linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%)",border:"1.5px solid rgba(76, 175, 80, 0.3)",color:"#2e7d32",fontSize:"13px",fontWeight:600,minWidth:"140px",animation:"annotationSuccessFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, annotationSuccessPulse 1s ease-in-out infinite",boxShadow:"0 4px 12px rgba(76, 175, 80, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1)"},children:[(0,m.jsx)(d.A,{sx:{fontSize:"32px",color:"#4caf50",animation:"annotationSuccessCheckmark 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards",filter:"drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3))"}}),(0,m.jsxs)("div",{style:{textAlign:"center",lineHeight:"1.4"},children:[(0,m.jsx)("div",{style:{fontSize:"14px",fontWeight:700,marginBottom:"2px"},children:"Success!"}),(0,m.jsx)("div",{style:{fontSize:"11px",fontWeight:500,opacity:.8},children:"Form submitted"})]})]}),n),setTimeout((function(){n&&n.parentNode&&n.parentNode.removeChild(n),me.current.delete(e)}),2e3)}}),[]),be=function(e,n,t,s,u){var d=(0,m.jsx)(m.Fragment,{});if(n.toLowerCase().includes("download")&&(0,z.e)())return(0,m.jsx)("div",{});var p=t.pathname,g=new URL(n),A=g.pathname.split("/");if(p===M){var w,y=g.searchParams.get("form_id"),E=g.searchParams.get("source"),N="false"!==g.searchParams.get("remove_on_submit");if(e.form_obj){var D=e.form_obj;w=(0,r.A)((0,r.A)({},D.data),{},{integration:D.integration,integration_id:D.external_integration,id:D.id,integration_name:D.integration_name||D.integrtation_name||""})}else if(y){var R=parseInt(y,10);w=Y.A.get(R)}else w="access_control"===E?Y.A.getAccessControl():window.celeroFormConfig;if(!w)return(0,m.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 12px",borderRadius:"4px",backgroundColor:"rgba(255, 193, 7, 0.1)",border:"1px solid rgba(255, 193, 7, 0.8)",color:"#795548",fontSize:"12px",fontWeight:500,textAlign:"center"},children:"Annotation form could not be loaded. Please review this annotation's configuration."});var V="page_number"in e?e.id:void 0!==u?"".concat(u," ").concat(s.join(",")):null;return d=(0,m.jsx)("div",{"data-annotation-form-content":"true",style:{width:"100%",height:"100%",transformOrigin:"top left"},children:(0,m.jsx)(G.A,{formConfig:w,afterSubmit:function(){N&&function(){if(null!==V&&void 0!==u){var e="page-".concat(u,"-").concat(V);Ae(e)}}()},sourceOfRender:"annotation",onCancel:function(){}})})}if("form"===A[1])return xe.current.form||(xe.current.form=[]),xe.current.form.push({uri:n,bounds:s}),(0,m.jsx)(m.Fragment,{});switch(p){case I:var q=g.searchParams.get("src"),K=g.searchParams.get("autoPlay"),ee=g.searchParams.get("poster")||void 0;q&&(d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(J,{url:q,contentUUID:f,pageNumber:u,width:+s[2],autoplay:!(!K||"true"!==K),poster:ee})}));break;case C:var ne=g.searchParams.get("src");if(ne){var te=(0,b.Ln)(ne,!1),re=g.searchParams.get("can_scroll"),ie=g.searchParams.get("scroll_top");d=U().canPlay(ne)?(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(J,{url:ne,contentUUID:f,pageNumber:u,width:+s[2],autoplay:te})}):(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(X,{src:ne,width:s[2],height:s[3],pageNumber:u,canScroll:re&&"true"===re||void 0,scrollTop:ie&&+ie||void 0,contentUUId:f})})}break;case k:var ae=g.searchParams.get("src");ae&&(d=(0,m.jsx)("img",{width:"100%",height:"100%",src:ae,alt:"",style:{objectFit:"contain",overflow:"hidden"}}));break;case j:var le=g.searchParams.get("src"),ce=g.searchParams.get("is_icon_needed"),se=g.searchParams.get("should_close_per_slide"),de=g.searchParams.get("icon_color");le&&(d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(Z,{left:s[0],top:s[1],width:s[2],height:s[3],src:le,isIconNeeded:!(!ce||"true"!==ce),handleClick:_,iconColor:de||void 0,shouldCloseAfterSlideChange:!(!se||"true"!==se),pageNumber:u})}));break;case T:var pe=g.searchParams.get("src"),fe=g.searchParams.get("open_in_new_tab"),me=Boolean("true"===fe),he=new URL(pe||""),ge="true"===g.searchParams.get("embed")||"true"===he.searchParams.get("embed"),ve=pe&&(0,H.r)(pe);d=ge&&pe&&U().canPlay(pe)?(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(J,{url:pe,contentUUID:f,pageNumber:u,width:+s[2],autoplay:(0,b.Ln)(pe,!1)})}):ve?(0,m.jsx)("img",{width:"100%",height:"100%",src:pe||"",alt:"",style:{objectFit:"contain",overflow:"hidden"}}):(0,m.jsx)(h,{onClick:x,width:s[2],height:s[3],position:"absolute",zIndex:v||3,src:pe,annotationPageNumber:u,actionType:l.B4.URI,shouldOpenInNewTab:me});break;case O:var be=g.searchParams.get("src");if(!be)break;var _e=g.searchParams.get("autoPlay"),we=g.searchParams.get("poster")||void 0,ye=_e&&"true"===_e?"yes":"no";be=we?(0,S.He)(be,"poster",we):be,d=(0,m.jsx)(h,{onClick:x,width:s[2],height:s[3],position:"absolute",zIndex:v||3,annotationPageNumber:u,src:be,actionType:l.B4.VideoLink,autoPlay:ye});break;case P:var Ee=g.searchParams.get("id");d=(0,m.jsx)("div",{id:"".concat(Ee),className:oe,style:{width:"100%",height:"100%"}});break;case L:var Se=g.searchParams.get("snippet");if(!Se)break;d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(Q,{snippetName:Se})});break;case W:var Ie=g.searchParams.get("url");if(!Ie)break;d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)($,{url:Ie})});break;case F:d=(0,m.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer"},onClick:(0,o.A)((0,i.A)().m((function e(){var n,t;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:n=g.searchParams,(t=n.get("url"))&&(t.startsWith("https://")||t.startsWith("http://")||(t="https://"+t),window.location.href=t);case 1:return e.a(2)}}),e)})))});break;case B:d=(0,m.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer"},onClick:(0,o.A)((0,i.A)().m((function e(){var n,t,r,o,l,c,s;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(n=ue.callbackUrl,t=g.searchParams,n){e.n=1;break}return e.a(2);case 1:if(t)for(r=0,o=Object.entries(t);r0&&s.map((function(n,t){return s[t].type===l.L5.AUDIO_MPEG?(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(Z,{width:i[2],height:i[3],src:"".concat(A,"/")+n.src,imgSrc:"".concat(A,"/")+u,isDefualtAudioAnnotation:!0,handleClick:e.handleAudioClick},t+e.contentUUID)}):(0,m.jsx)(m.Fragment,{})}));break;case l.Is.VIDEO_STANDALONE:var q=(0,b.Ln)(a.src,!1,a.autoPlay);y=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(J,{url:a.src,contentUUID:f,pageNumber:d,width:+i[2],autoplay:q,poster:null==a?void 0:a.poster})});break;case l.Is.IMAGE:y=(0,m.jsx)("img",{width:"100%",height:"100%",src:o.uri,alt:"",style:{objectFit:"contain",overflow:"hidden"}});break;case l.Is.SHARE_CONTENT:y=(0,m.jsx)("div",{id:"share-content-annotation".concat(d),className:ie,onClick:ve});break;case l.Is.CUSTOM_HTML:y=(0,m.jsx)("div",{id:"".concat(a.id),className:oe,style:{width:"100%",height:"100%"},children:(0,m.jsx)("span",{})});break;default:y=(0,m.jsx)(m.Fragment,{})}var G=g||le;return E||(E=null==a?void 0:a.gate),(0,m.jsx)(w,{theme:G,children:y})}catch(e){"Error while rendering annotation of type ".concat(t,", on page ").concat(d,", with actions of ").concat(JSON.stringify(o)," and bound on ").concat(i,". Error: ").concat(e);return null}}),[f,p,g,le,v,x]),we=(0,c.useRef)(new Map),ye=(0,K.A)().loadedPages,Ee=(0,c.useCallback)((function(e,n,t){return e.forEach((function(e){var r=null,i=void 0;if("default"==n){if("number"!=typeof(i=t)||!ye.includes(i)){if("number"==typeof i)new MutationObserver((function(t,r){document.getElementById("p".concat(i))&&(r.disconnect(),e.type&&Ee([e],n,i))})).observe(document.body,{childList:!0,subtree:!0});return}if(we.current.has(i))return;r=document.getElementById("p".concat(t))}else{var o=e;if("number"!=typeof(i=o.page_number)||!ye.includes(i)){if("number"==typeof i)new MutationObserver((function(t,r){document.getElementById("p".concat(i))&&(r.disconnect(),e.page_number&&Ee([e],n,i))})).observe(document.body,{childList:!0,subtree:!0});return}if(we.current.has(i))return;r=document.getElementById("p".concat(o.page_number))}r&&i&&we.current.set(i,r)})),e.map((function(e){var r,i;if(e.handled)return null;var o="page_number"in e?e.id:"".concat(t," ").concat(e.bounds);if("page_number"in e&&ce.current.includes(o)||se.current.includes(o))return null;var a=he(e.bounds[2]+"px",e.bounds[3]+"px","absolute",e.bounds[1]+"px",e.bounds[0]+"px",v,e.background_color,"scale(".concat(e.scale,")"),e.appearance);ae.push(a),a.dataset.originalBounds=JSON.stringify(e.bounds);var c="component"in e?e.component:e.type,u=function(e){if(!e)return!1;var n=e;try{n=decodeURIComponent(n)}catch(e){}n=n.replace(" ","");var t=(0,S.g$)(n);if(!n||"celero"!==t.hostname)return!1;if(t.pathname===M)return!0;try{var r=n.startsWith("http://")||n.startsWith("https://")?n:"https://".concat(n);return"form"===new URL(r).pathname.split("/")[1]}catch(e){return!1}}(null===(r=e.action)||void 0===r?void 0:r.uri);a.dataset.isFormAnnotation=u.toString();var d=function(){if(c===l.qL.LINK||c===l.qL.TEXT_LINK||c===l.qL.WIDGET||c===l.Is.VIDEO_DIALOG||c===l.Is.LINK){var n=e.action;if(null==n||!n.uri)return!1;var t=decodeURIComponent(n.uri).replace(" ",""),r=(0,S.g$)(t);if(Boolean(t&&"celero"===r.hostname)){var i=r.pathname;if(i===T)try{var o=new URL(t.startsWith("http")?t:"https://"+t),a=o.searchParams.get("src");if(a){var s=new URL(a),u=("true"===o.searchParams.get("embed")||"true"===s.searchParams.get("embed"))&&U().canPlay(a),d=(0,H.r)(a);return!u&&!d}}catch(e){return!0}return new Set([O,N,D,k,j,R,F,B]).has(i)}try{var p="true"===new URL(t.startsWith("http")?t:"https://"+t).searchParams.get("embed"),f=t&&(0,H.r)(t);return!(p&&U().canPlay(t))&&!f}catch(e){return!0}}return!1}();a.dataset.isAnchorAnnotation=d.toString(),a.dataset.isFormAnnotation=function(e){if(!e)return!1;try{var n,t=decodeURIComponent(e).replace(" ","");return((null===(n=(0,S.g$)(t).pathname)||void 0===n?void 0:n.toLowerCase())||"").includes("/form")}catch(n){return e.toLowerCase().includes("form")}}(null===(i=e.action)||void 0===i?void 0:i.uri).toString();var p=_e(e,c,e.bounds,e.action,e.additional_data,e.richmedia,e.appearance,t);return function(){var r=null;"default"==n?r=t:r=e.page_number;var i=we.current.get(r);if(i&&p){s.render(p,a),i.appendChild(a);var l="page-".concat(r,"-").concat(o);me.current.set(l,a),null!=r&&ge(r),e.handled=!0,"page_number"in e?ce.current.push(o):se.current.push(o)}}}))}),[_e,v,fe,ge]),Se=(0,c.useCallback)((function(e,n){if(document&&document.getElementById("contentContainer")){for(var t=e.pages,r=[],i=0,o=t.length;i0){var h=document.createElement("div");s.render((0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(ee,{fields:xe.current.form})}),h),f&&f.appendChild(h)}}if(window.requestAnimationFrame((function(){r.forEach((function(e){return e.forEach((function(e){return e&&e()}))}))})),n.length){var g=Ee(n,"custom");window.requestAnimationFrame((function(){g.forEach((function(e){return e&&e()}))}))}}}),[Ee]);return(0,c.useEffect)((function(){Se(n,[])}),[V,n]),(0,c.useEffect)((function(){Se({pages:[]},t)}),[V,t]),null})),ie=re,oe=t(5791),ae=t(84740),le=t(81046),ce=t(52808),se=t(77998),ue=t(25195),de=t(15884),pe=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,52484))})),fe=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,83430))})),me=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,96054))})),he=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,5348))})),ge=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,70035))})),ve=function(e){var n=e.content,t=(0,K.A)(),s=t.currentPageNumber,u=t.loadedPages,d=(0,se.p)({content:n}).handleDownloadOriginalPdf,p=(0,de.B)({content:n}),f=p.triggerShareDialog,h=p.ShareDialogLoader,g=(0,c.useState)([]),v=(0,a.A)(g,2),x=v[0],A=v[1],w=(0,c.useState)(!1),y=(0,a.A)(w,2),I=y[0],C=y[1],k=(0,c.useState)(!1),j=(0,a.A)(k,2),T=j[0],O=j[1],P=(0,c.useState)(!1),L=(0,a.A)(P,2),W=L[0],F=L[1],B=(0,c.useState)(""),M=(0,a.A)(B,2),V=M[0],H=M[1],z=(0,c.useState)(!1),q=(0,a.A)(z,2),G=q[0],Y=q[1],J=(0,c.useState)(),Z=(0,a.A)(J,2),X=Z[0],$=Z[1],Q=(0,c.useState)(""),ee=(0,a.A)(Q,2),ne=ee[0],te=ee[1],re=(0,c.useState)(""),ve=(0,a.A)(re,2),xe=ve[0],Ae=ve[1],be=(0,c.useState)(""),_e=(0,a.A)(be,2),we=_e[0],ye=_e[1],Ee=(0,c.useState)(0),Se=(0,a.A)(Ee,2),Ie=Se[0],Ce=Se[1],ke=(0,c.useState)(!1),je=(0,a.A)(ke,2),Te=je[0],Ne=je[1],De=(0,c.useState)(null),Re=(0,a.A)(De,2),Oe=Re[0],Pe=Re[1],Le=(0,c.useState)(!1),We=(0,a.A)(Le,2),Fe=We[0],Be=We[1],Me=(0,b.ZI)()===_.V.Mobile,Ve=(0,c.useCallback)(function(){var e=(0,o.A)((0,i.A)().m((function e(t,r,o){var a,l,c,s,u;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return Ae(r),e.n=1,(0,ce.q)(t.data,r);case 1:if(a=e.v,l=a.canIframe,c=a.embedUrl,te(c||r),Be(l),l){e.n=2;break}return setTimeout((function(){window.open(r)})),s={content_id:n.uuid,link_url:r,page_number:o},(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_LINK_IN_NEW_TAB,s),e.a(2);case 2:Me?F(!0):O(!0);case 3:u={content_id:n.uuid,link_url:r,is_iframe_loadable:l,type_of_dialog:E.KZ.IFRAME_DIALOG,page_number:o},(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_LINK,u);case 4:return e.a(2)}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),[]),Ue=(0,c.useCallback)((function(e,t){if(e.includes("https"))le.A.checkIfURIIsValid(e,Ve,t).catch((function(){window.open(e)}));else{setTimeout((function(){window.open(e)}));var r={content_id:n.uuid,link_url:e,page_number:t};(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_LINK_IN_NEW_TAB,r)}}),[]),He=function(e){var t={content_id:n.uuid,link_url:e,type_of_dialog:E.KZ.VIDEO_PLAYER_DIALOG};(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_LINK,t)},ze=(0,c.useCallback)((function(){var e=performance.now(),t={};switch(we){case l.B4.URI:O(!1),t={content_id:n.uuid,type_of_dialog:E.KZ.IFRAME_DIALOG,link_url:ne,duration:(0,b.eG)(Ie,e),page_number:s};break;case l.B4.Video:case l.B4.VideoLink:t={content_id:n.uuid,link_url:V,type_of_dialog:E.KZ.VIDEO_PLAYER_DIALOG,duration:(0,b.eG)(Ie,e)}}(0,oe.recordEventWidthAdditionalParams)(E.qW.CLOSE_LINK,t)}),[ne,V,Ie,n,s]),qe=(0,c.useCallback)((function(){var e=n.uuid;switch(we){case l.B4.Video:case l.B4.VideoLink:return(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(pe,{url:V,contentUUID:e,pageNumber:s,autoplay:G,isDialog:!0,poster:X})});default:return null}}),[we,V,n,s,G,X]),Ge=(0,c.useCallback)((function(e){Pe(e),Ne(!0);var t={content_id:n.uuid,audio_src:e.audioSrc,page_number:e.pageNumber};(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_AUDIO,t)}),[]),Ke=(0,c.useCallback)((function(){if(ne){window.open(ne,"_blank","noopener,noreferrer");var e={content_id:n.uuid,link_url:ne,page_number:s};(0,oe.recordEventWidthAdditionalParams)(E.qW.OPEN_LINK_IN_NEW_TAB,e)}}),[ne]),Ye=(0,c.useCallback)((function(){if(we===l.B4.URI){var e=ne;return(0,S.g$)(e).hostname.replace("www.","")===window.location.hostname.replace("www.","")&&(e=(0,S.He)(e,"without_navbar","true")),(0,m.jsx)("iframe",{title:"internal-iframe",style:{width:"100%",height:"100%",border:0},src:e})}return null}),[we,ne]),Je=(0,c.useMemo)((function(){return[{icon:(0,m.jsx)(ue.A,{fontSize:"inherit"}),action:Ke,hidden:we!==l.B4.URI}]}),[we,Ke]),Ze=(0,c.useCallback)((function(e){var n=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!1});document.dispatchEvent(n)}),[]),Xe=(0,c.useCallback)((function(e,n){switch((0,S.aQ)(e)){case N:f("Annotation",n);break;case D:d();break;case R:var t=new URL(e),r=t.searchParams.get("name");t.searchParams.get("should_record");r&&Ze(r)}}),[]),$e=(0,c.useCallback)((function(e,n,t,i,o){switch(e){case l.B4.URI:case l.B4.VideoLink:case l.B4.TextLink:!t||t.startsWith("http://")||t.startsWith("https://")||t.startsWith("mailto:")||(t="https://"+t),Boolean("string"==typeof t&&"celero"===(0,S.g$)(t).hostname)?Xe(t,n):U().canPlay(t)||e==l.B4.VideoLink?(Y((0,b.Ln)(t,!0,i)),H(t),$((0,b.NN)(t)),F(!0),C(!0),ye(l.B4.Video),He(t)):(o?setTimeout((function(){window.open(t)})):Ue(t,n),ye(l.B4.URI));break;case l.B4.GoTo:var a=(0,r.A)((0,r.A)({},(0,oe.getGeneralTrackingData)()),{},{page_number:n,value:"GoTo Page ".concat(t)});(0,oe.recordEventWidthAdditionalParams)(E.qW.GO_TO_CLICKED,a);var c={eventName:E.qW.SLIDE_VIEW_STARTED,payload:(0,r.A)({source:E.T9.GO_TO_LINK},(0,oe.getGeneralTrackingData)()),created_at:new Date};if(window.customEventsHandler&&window.customEventsHandler(c),n===t)break;window.IDRViewer.goToPage(t);break;case l.B4.Video:He(t),Y((0,b.Ln)(t,!0,i)),H(t),$((0,b.NN)(t)),F(!0),C(!0),ye(l.B4.Video);break;case l.B4.Named:t===l.H2.NextPage?window.IDRViewer.next():t===l.H2.PrevPage?window.IDRViewer.prev():window.IDRViewer.goToPage(t)}}),[]);(0,c.useEffect)((function(){!function(){var e=[];if(n&&n.annotations&&n.annotations.pages){for(var t=n.annotations.pages,r=t.length,i=0;i0||!["-1","0","1"].includes(i))setTimeout((function(){M()}),400);else if("0"!==i||null!==(e=c.dn[n.name])&&void 0!==e&&e.isGDPREssential){var o={event:{name:n.name,payload:t}},a="https://t.celero.io/t/m.png?".concat((0,y.lK)(o));I.get(a).then((function(e){return e.data})).catch((function(e){(0,f.ZI)("Error in recording event (url length:".concat(a.length," ) error: ").concat(e.message))})).finally((function(){j.shift(),M()}))}else j.shift()}else C.isOn=!1}var V=function(){F("d3",{celero_id:L()})},U=Boolean("true"===new URLSearchParams(window.location.search).get("celero_preview_app"));function H(e,n){return z.apply(this,arguments)}function z(){return(z=(0,o.A)((0,i.A)().m((function e(n,t){var r,o,l,s,u,p,m,h,g,v;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=JSON.parse(JSON.stringify(t)),(r=(0,a.A)({chk:"p"},r)).timestamp_sent=new Date,r.event_type=n,r.referrer=k,U&&(r._opened_in_preview=U),n===c.qW.CONTENT_VIEW_STARTED&&(o=JSON.parse(d.A.sessionStorage.getItem("geolocation"))||window.geolocation||T||{},r.location=o,r.user_agent=S(),o&&0!==Object.keys(o).length||(l=JSON.parse(d.A.sessionStorage.getItem("geo_location_null_reason"))||window.geo_location_null_reason||N,r.location_null_reason=l)),s={name:n,payload:r},u=B.filter((function(e){return!r[e]})),p=d.A.sessionStorage.getItem(E.$i),!(u.length>0)&&["-1","0","1"].includes(p)){e.n=1;break}return j.push((0,a.A)({},s)),j.length>0&&(C.isOn||M()),e.a(2);case 1:return m={event:s},h="https://t.celero.io/t/m.png?".concat((0,y.lK)(m)),e.p=2,e.n=3,I.get(h);case 3:return g=e.v,e.a(2,g.data);case 4:throw e.p=4,v=e.v,(0,f.ZI)("Error in recording event (url length:".concat(h.length,"): ").concat(v.message)),v;case 5:return e.a(2)}}),e,null,[[2,4]])})))).apply(this,arguments)}null!==(r=window)&&void 0!==r&&r.celeroFeedData||window.location.href.includes("/f/")||B.push("version_id");var q=function(){R=D},G=function(){var e=(0,o.A)((0,i.A)().m((function e(n,t){var r,o;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(!window||void 0===window.enableTracking||null===window.enableTracking||0!=window.enableTracking){e.n=1;break}return e.a(2,Promise.resolve());case 1:if("0"!==d.A.sessionStorage.getItem(E.$i)||null!==(r=c.dn[n])&&void 0!==r&&r.isGDPREssential){e.n=2;break}return e.a(2,Promise.resolve());case 2:return e.p=2,e.n=3,H(n,t);case 3:return o=e.v,e.a(2,o);case 4:return e.p=4,e.v,e.a(2,null)}}),e,null,[[2,4]])})));return function(n,t){return e.apply(this,arguments)}}(),K=function(){var e=d.A.localStorage.getItem("celero_unsent");if(e=e&&JSON.parse(e))return Promise.all([e.forEach((function(n){return G(n.eventName,(0,a.A)({timestamp:n.created_at},n.payload)).then((function(){e.shift(),d.A.localStorage.setItem("celero_unsent",JSON.stringify(e))}))}))])},Y=function(){var e=(0,o.A)((0,i.A)().m((function e(n,t){var r,o,c,s,u,d,p,f=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=!(f.length>2&&void 0!==f[2])||f[2],!(window.celeroURLParams&&window.celeroURLParams.is_bot||(0,l.MX)())){e.n=1;break}return e.a(2);case 1:return o=r?R:{},c=(0,a.A)((0,a.A)({},o),{},{timestamp:new Date},t),s=(0,l.f_)(c),u={eventName:n,payload:s,created_at:s.timestamp},d=new CustomEvent(n,{detail:u,bubbles:!0,cancelable:!0,composed:!1}),!1!==s.checkCustomEvent&&(document.dispatchEvent(d),window.customEventsHandler&&window.customEventsHandler(u)),delete s.checkCustomEvent,e.n=2,G(n,s);case 2:return p=e.v,e.a(2,p)}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),J={400:"Bad Request: Check for invalid IP/domain values, special characters, or issues with the bulk query JSON.",401:"Unauthorized: Verify your API key and account status.",403:"Forbidden: Domain lookup might not be allowed with a free API key.",404:"Not Found: The IP/domain might not exist in our database, or an incorrect endpoint was used.",405:"Method Not Allowed: Ensure you're using the correct HTTP method (GET for /ipgeo, POST for /ipgeo-bulk).",413:"Content Too Large: The POST payload exceeds API limits.",415:"Unsupported Media Type: Confirm that the payload is JSON and content type is set correctly.",423:"Locked: The IP address may be from a bogon or private network.",429:"Too Many Requests: API usage limits have been reached.",499:"Client Closed Request: The client set a very short timeout."};w.A.get("https://api.ipgeolocation.io/ipgeo",{params:{apiKey:"6f2d870402f14704929b78cc257da158"},timeout:5e3}).then((function(e){var n=e.data;d.A.sessionStorage.setItem("geolocation",JSON.stringify(n)),window.continentCode=null==n?void 0:n.continent_code,window.ipgeoaddress=null==n?void 0:n.ip,window.geolocation=n,T=n})).catch((function(e){var n="",t=null,r="";e.response?(t=e.response.status,r=e.response.data,n="HTTP error: ".concat(t," - ").concat(e.response.statusText)):e.request?(n="Network error: No response received",r=e.request):n="Error in setting up the request: ".concat(e.message);var i=t?J[t]||"Unexpected error":"Network level error",o={message:n,originalMessage:e.message,description:i,status:t||"No status available",timestamp:(new Date).toISOString(),endpoint:"https://api.ipgeolocation.io/ipgeo",responseBody:r};N=o,window.geo_location_null_reason=o,d.A.sessionStorage.setItem("geo_location_null_reason",JSON.stringify(o)),(0,f.ZI)("Error in loading the location in tracker.ts: ",o),window.continentCode="UNKNOWN"}));var Z=function(){return(0,g.useEffect)((function(){v.A.getFingerprint(!0).then((function(e){e&&e.celero_id&&W(e.celero_id),V()}))}),[]),""},X=function(){try{var e=d.A.localStorage.getItem(p.R.CONTENTS),n=e&&JSON.parse(e);if(!n)return;for(var t=P().content_id,r=0,i=n.length;r0&&void 0!==arguments[0])||arguments[0];if(ie())try{if(!e)return R.session_id=void 0,void ne();var n=d.A.localStorage.getItem(p.R.SESSION),t=n&&JSON.parse(n);if(t)if(t.sessionId){var r=new Date;t=(0,a.A)((0,a.A)({},t),{},{updatedAt:r.getTime()}),Q(t)}}catch(e){(0,f.ZI)("updateSession in tracker.ts "+e)}},ae=function(){var e=(0,o.A)((0,i.A)().m((function e(){return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:try{ne(),R.session_id=void 0}catch(e){(0,f.ZI)("closeSession :"+e)}case 1:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){oe(),X()},ce=function(){var e=d.A.localStorage.getItem(p.R.SESSION),n=e&&JSON.parse(e),t=null;return n&&(t=n.updatedAt),t},se=function(e){try{return m.A.getMarketoFormInstance().getForm(e).validate()}catch(e){}},ue=function(e){if(e.target instanceof Element||e.target instanceof HTMLInputElement){var n=Number((null==e?void 0:e.target.id.includes("mktoForm"))&&(null==e?void 0:e.target.id.split("_")[1]));return{form_type:(null==e?void 0:e.target.id.includes("mktoForm"))&&h.o4.MARKETO,form_id:n,is_valid:se(n)}}return{}}},6245:function(e,n,t){t.d(n,{z:function(){return r}});var r="SET_DEFAULT_FORM_DATA"},8737:function(e,n,t){t.d(n,{A:function(){return y}});var r=t(80045),i=t(89379),o=t(29297),a=t(58422),l=t(79236),c=t(55944),s=t(69478),u=t(95792),d=t(12182),p=t(59964),f=t(28362),m=t(15614),h=t(20535),g=(0,h.A)((function(e){return{margin:{margin:e.spacing(1)}}})),v=(0,h.A)((function(e){return{container:{display:"flex",alignItems:"center",padding:e.spacing(1)},message:{display:"flex",alignItems:"center"},messageContent:{display:"flex",alignItems:"center"},icon:{fontSize:20,opacity:.9,marginRight:e.spacing(1)},iconVariant:{opacity:.9},closeIcon:{padding:e.spacing(.5)},success:{backgroundColor:e.palette.success.main},error:{backgroundColor:e.palette.error.main},info:{backgroundColor:e.palette.info.main},warning:{backgroundColor:e.palette.warning.main}}})),x=t(65983),A=["message","onClose","variant"],b={success:a.A,warning:f.A,error:l.A,info:c.A};function _(e){return(0,x.jsx)(m.A,(0,i.A)({},e))}var w=function(e){var n=v(e),t=e.message,a=e.onClose,l=e.variant,c=(0,r.A)(e,A),d=b[l];return(0,x.jsx)(p.A,(0,i.A)({className:(0,o.A)(n[l],n.container),"aria-describedby":"client-snackbar",message:(0,x.jsxs)("span",{id:"client-snackbar",className:n.message,children:[(0,x.jsx)(d,{className:(0,o.A)(n.icon,n.iconVariant)}),t]}),classes:{message:n.messageContent},action:[(0,x.jsx)(u.A,{className:n.closeIcon,"aria-label":"close",color:"inherit",onClick:a,children:(0,x.jsx)(s.A,{className:n.icon})},"close")]},c))},y=function(e){var n=g(e),t=e.message,r=e.variant,i=e.verticalPosition,o=e.horizantalPosition,a=e.isOpen,l=e.onClose;return(0,x.jsx)(d.A,{anchorOrigin:{vertical:i,horizontal:o},className:n.margin,open:a,onClose:l,autoHideDuration:6e3,TransitionComponent:_,disableWindowBlurListener:!0,sx:{position:"fixed",zIndex:9999},children:(0,x.jsx)(w,{onClose:l,variant:r,message:t})})}},11977:function(e,n,t){t.d(n,{j:function(){return r}});var r="SET_GDPR"},12815:function(e,n,t){t.d(n,{U:function(){return i},h:function(){return r}});var r="SET_NOTIFICATION",i="CLEAR_NOTIFICATION"},13249:function(e,n,t){t.d(n,{t:function(){return l}});var r=t(89379),i=t(49255),o=t(87632),a=t(65983),l=(0,i.forwardRef)((function(e,n){return(0,a.jsx)(o.A,(0,r.A)({direction:"left",ref:n},e))})),c=(0,i.forwardRef)((function(e,n){return(0,a.jsx)(o.A,(0,r.A)({direction:"up",ref:n},e))}));n.A=c},15884:function(e,n,t){t.d(n,{B:function(){return L}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(56787),c=t(84899),s=t(47081),u=t(21430),d=t(42883),p=t(94541),f=t(81114),m=t(5791),h=t(44415),g=t(75449),v=t(57957),x=t(64467),A=t(29297),b=t(55284),_=t(29732),w=t(7780),y=t(69478),E=t(75700),S=t(84411),I=t(79218),C=t(42143),k=t(20535),j=t(17141),T=t(87162),N=t(85434),D=(0,k.A)((function(e){return{header:{paddingBottom:0},dialogTitle:{display:"flex",alignItems:"center",justifyContent:"space-between"},titleText:{height:28,width:59,color:(0,N.X4)(e.palette.customStyles.primaryTextColor,.65),fontWeight:700,fontSize:24,letterSpacing:-.29,lineHeight:"28px",marginLeft:15},leftSide:{display:"flex",alignItems:"center"},iconDiv:{display:"flex",marginRight:10},closeIconDiv:{display:"flex",cursor:"pointer"},linkTextField:{marginRight:10,flexGrow:11},input:{fontSize:14},linkWrapper:{width:"100%",display:"flex",justifyContent:"space-between",paddingBottom:10},copyTextStyle:{color:"black",fontSize:16,letterSpacing:-.29,lineHeight:"28px"},buttons:{display:"flex",justifyContent:"center",gap:"5px",alignItems:"center"},copyLinkButton:(0,x.A)({display:"flex",justifyContent:"flex-start",boxSizing:"border-box",textTransform:"initial",height:56,width:"47%",border:"1px solid #DBE0E9 !important",borderRadius:13,fontSize:"16px !important",fontWeight:"normal",letterSpacing:"-0.06px",lineHeight:"48px",gap:10,color:"black !important","&:hover":{backgroundColor:(0,N.X4)(e.palette.customViewer.viewerPrimaryColor,.3)}},"".concat(e.breakpoints.down("xs")," "),{fontSize:16,lineHeight:"23px"}),socialContainer:{margin:"28px 0 40px 0",height:"auto"},IEtextStyle:{fontSize:11},currentPageCheckBox:{margin:"10px 5px 0 0"},attachStyle:{maxWidth:22,maxHeight:22,filter:"".concat((0,C.hexToCSSFilter)(e.palette.customStyles.primaryTextColor).filter)},checkBoxContainer:{display:"flex",justifyContent:"space-between",margin:"15px 15px 15px 15px"},checkBoxContainerMargin:{marginTop:0},label:{margin:"10px 0",fontWeight:"bold"},checkBox:{paddingLeft:0},mobileDialog:{marginTop:T.O5}}})),R=(0,j.A)((function(e){return{paper:{width:560,borderRadius:16,backgroundColor:e.palette.customStyles.backGroundColor,boxShadow:"0 12px 24px 0 rgba(44,39,56,0.06), 0 32px 64px 0 rgba(44,39,56,0.08)"}}}))(I.A),O=t(65983),P=function(e){var n=(0,a.useState)(!1),t=(0,o.A)(n,2),r=t[0],i=(t[1],(0,a.useState)()),l=(0,o.A)(i,2),c=(l[0],l[1]),s=D(),u=(0,E.A)(),d=(0,w.A)(u.breakpoints.down("sm")),p=e.openDialog,f=e.handleCloseShareDialog,m=e.currentPage,h=e.fileTitle,g=e.getShareObj,v=function(){f()};(0,a.useEffect)((function(){!p&&!r||g(r).then((function(e){c(e)}))}),[p,r]);var I=s.header,C=s.closeIconDiv,k=s.leftSide,j=s.dialogTitle,N=s.titleText,P=s.socialContainer,L=(0,A.A)((0,x.A)({},s.mobileDialog,d));return(0,O.jsxs)(R,{fullScreen:d,open:p,onClose:v,className:L,disableEnforceFocus:!0,children:[(0,O.jsx)(_.A,{className:I,children:(0,O.jsxs)("div",{className:j,children:[(0,O.jsx)("div",{className:k,children:(0,O.jsx)("div",{className:N,children:T.yM.TITLE})}),(0,O.jsx)("div",{className:C,onClick:v,children:(0,O.jsx)(y.A,{})})]})}),(0,O.jsx)(b.A,{children:(0,O.jsx)("div",{className:P,children:(0,O.jsx)(S.T,{getShareObj:function(){return g()},fileTitle:h,withPageNumber:r,pageNumber:r?m:void 0})})})]})},L=function(e){var n=e.content,t=(0,a.useState)(!1),x=(0,o.A)(t,2),A=x[0],b=x[1],_=(0,l.A)().currentPageNumber,w=(0,c.A)().isMobile,y=(0,s.wA)(),E=n.version?n.version.is_active?n.version.version_details.name:n.version.content_version_name:"",S=(0,a.useCallback)((function(e,t){if(w)y((0,d.J)(!A,p.r.ANNOTATION));else{var r=A?f.qW.CLOSE_SHARE:f.qW.OPEN_SHARE;b(!A);var i={content_id:n.uuid,page_number:t||_,source:e};(0,m.recordEventWidthAdditionalParams)(r,i)}}),[_,n,A]),I=(0,a.useCallback)(function(){var e=(0,i.A)((0,r.A)().m((function e(n){var t,i,o,a,l,c;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:if(t=window.micrositeLink){e.n=1;break}return e.a(2);case 1:e.p=1,t=n?(0,h.He)(t,"page","".concat(_)):(0,h.Gb)(t,"page"),i=u.parse(window.location.search),o=Object.keys(i),a=0;case 2:if(!(aB.current.clientHeight;F(!!e)}),[E]);var V=function(){var e=(0,l.A)((0,i.A)().m((function e(n){var t,l,c,s;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if("string"!=typeof n){e.n=8;break}t=(0,a.A)(n),e.p=1,c=(0,i.A)().m((function e(){var n;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return n=l.value,e.n=1,new Promise((function(e){return setTimeout(e,20)}));case 1:S((function(e){if("string"==typeof e[e.length-1]){var t=(0,o.A)(e);return t[t.length-1]+=n,t}return[].concat((0,o.A)(e),[n])}));case 2:return e.a(2)}}),e)})),t.s();case 2:if((l=t.n()).done){e.n=4;break}return e.d((0,r.A)(c()),3);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,t.e(s);case 6:return e.p=6,t.f(),e.f(6);case 7:e.n=9;break;case 8:S((function(e){return[].concat((0,o.A)(e),[n])}));case 9:return e.a(2)}}),e,null,[[1,5,6,7]])})));return function(n){return e.apply(this,arguments)}}(),U=(0,s.useCallback)((function(e){var n={type:"Assistant Chat",value:e,recommendation_list:g};(0,w.recordEventWidthAdditionalParams)("Click Feed",n)}),[g]),H=function(e){var n,t=null==g||null===(n=g.sections)||void 0===n?void 0:n.find((function(e){return"cards"===e.type}));return t?e.split(/\[([^\]]+)\]/g).map((function(e,n){if(v.has(e)){var r=e,i=t.elements[v.get(r)],o=null==i?void 0:i.title;return(0,b.jsx)(_,{card:i,onClick:U,children:"("+o+")"},n)}return e})):e},z=function(){var e=(0,l.A)((0,i.A)().m((function e(n){var t,r,o,l,c;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:t=H(n),r=(0,a.A)(t),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=4;break}return l=o.value,e.n=3,V(l);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,c=e.v,r.e(c);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}}),e,null,[[1,5,6,7]])})));return function(n){return e.apply(this,arguments)}}(),q=(0,s.useCallback)((function(){O(!0);var e={value:j};(0,w.recordEventWidthAdditionalParams)("Expand Assistant Chat",e)}),[R]);return(0,s.useEffect)((function(){var e,t;(null==n||null===(e=n.display_hook)||void 0===e?void 0:e.length)>0&&0===(null===(t=I.current)||void 0===t?void 0:t.length)&&(I.current=n.display_hook,T(n.display_hook),z(n.display_hook))}),[n]),(0,b.jsx)(d.A,{className:"assistant-box",display:"flex",flexDirection:"column",alignItems:"flex-start",borderRadius:"8px",border:1,borderColor:"grey.300",padding:2,width:"325px",margin:"20px auto",marginBottom:0,bgcolor:"transparent",children:t?(0,b.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"start",width:"100%",children:[(0,b.jsxs)(d.A,{display:"flex",style:{gap:5},children:[(0,b.jsx)("div",{className:"spinner",style:{"--color":x,"--inverse-color":M.palette.getContrastText(x)},children:(0,o.A)(Array(12)).map((function(e,n){return(0,b.jsx)("div",{className:"spinner-blade"},n)}))}),(0,b.jsx)(p.A,{variant:"body1",style:{fontWeight:"bold",color:x},children:"Assistant is thinking..."})]}),(0,b.jsxs)(d.A,{width:"100%",children:[(0,b.jsx)(h.A,{variant:"text",width:100}),(0,b.jsx)(h.A,{variant:"text",width:"80%"}),(0,b.jsx)(h.A,{variant:"text",width:"90%"})]})]}):(0,b.jsxs)(d.A,{display:"flex",flexDirection:"column",width:"100%",position:"relative",children:[(0,b.jsxs)(d.A,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,b.jsx)(p.A,{variant:"body1",style:{fontWeight:"bold",color:x},children:"Assistant"}),(0,b.jsx)(f.A,{size:"small",children:(0,b.jsx)(m.A,{fontSize:"small"})})]}),(0,b.jsx)("div",{className:"text-container ".concat(R?"expanded":"unexpanded"),style:{"--color":x,"--inverse-color":M.palette.getContrastText(x)},ref:B,children:(0,b.jsx)(p.A,{variant:"body1",style:{color:x},className:"text-content ".concat(R?"expanded":"unexpanded"),children:E})}),W&&!R&&(0,b.jsx)(p.A,{variant:"body2",className:"see-more",style:{backgroundColor:M.palette.getContrastText(x)},onClick:q,children:"See more"})]})})}},19378:function(e,n,t){t.d(n,{$i:function(){return r}});var r="g_t"},19874:function(e,n,t){t.d(n,{h:function(){return r}});var r="SET_OPEN_BUBBLE"},20253:function(e,n,t){t.d(n,{g:function(){return o}});var r=function(e,n){return"number"==typeof e&&"number"==typeof n},i=function(e,n){return"string"==typeof e&&"string"==typeof n},o=function(e,n,t){switch(t){case"lessThan":return!!r(e,n)&&en;case"greaterThanOrEqual":return!!r(e,n)&&e>=n;case"equal":return e==n;case"notEqual":return e!=n;case"contains":return!!i(e,n)&&e.includes(n);case"notContains":return!!i(e,n)&&!e.includes(n);case"in":return n instanceof Array&&n.indexOf(e)>-1;case"notIn":return n instanceof Array&&-1==n.indexOf(e);case"exists":return null!=e&&null!=e;case"notExists":return null==e||null==e;default:return!1}}},21970:function(e,n,t){t.r(n),t.d(n,{default:function(){return Y}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(59205),c=t(60419),s=t(95266),u=t(5084),d=t(81076),p=t(89379),f=t(21430),m=t(16976),h=t(47081),g=t(72514),v=t(93690),x=t(71551),A=t(20535),b=t(91934),_=t(84899),w=t(97094),y=t.n(w),E=t(60723),S=t(13989),I=t(78752),C=t(95492),k=t(61870),j=t(65983),T=(0,A.A)((function(e){return(0,S.A)({root:{width:"100%",height:"100%",cursor:"pointer",display:"flex",flexDirection:"column",overflow:"hidden"},media:function(e){return{flex:"0 1 auto",paddingTop:e.mediaPadding,backgroundPosition:"center",backgroundSize:"cover",cursor:"pointer"}},cardContent:{flex:"1 1 auto",display:"flex",flexDirection:"column",overflow:"hidden"},title:{fontWeight:"bold",cursor:"pointer",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",marginBottom:e.spacing(1)},description:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",marginBottom:e.spacing(1),cursor:"pointer"},tags:{display:"flex",flexWrap:"wrap",listStyle:"none",margin:0,padding:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},chip:{margin:e.spacing(.5),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},visitors:{display:"flex",alignItems:"center",color:"rgb(107, 107, 107)",fontSize:12,marginTop:"auto"},visitorsNumber:{marginLeft:e.spacing(.5)},icon:{marginRight:e.spacing(.5)}})}));function N(e){var n=e.card,t=e.onClick,r=e.mediaPadding,i=T({mediaPadding:r}),o=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"";return(0,j.jsxs)("div",{className:i.root,onClick:function(){t(n.link_url||n.link,n)},children:[(0,j.jsx)(I.A,{className:i.media,image:n.image_url||n.image,title:n.title}),(0,j.jsxs)(C.A,{className:i.cardContent,children:[(0,j.jsx)(u.A,{className:i.title,variant:"h6",component:"h2",title:n.title,children:n.title}),(0,j.jsx)(u.A,{variant:"body2",color:"textSecondary",component:"p",className:i.description,children:o.length<=300?o:o.substr(0,300)+"..."}),n.visits>=0&&(0,j.jsxs)("div",{className:i.visitors,children:[(0,j.jsx)(k.h,{className:i.icon}),(0,j.jsx)("div",{className:i.visitorsNumber,children:n.visits})]})]})]})}var D=(0,A.A)((function(){return{carouselContainer:{width:"100%",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},carouselItem:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},cardWrapper:{width:"100%",height:"100%",boxSizing:"border-box"}}})),R=function(e){var n=e.cards,t=e.color,r=e.onClick,i=D(),l=(0,a.useRef)(null),c=(0,a.useState)("56.25%"),s=(0,o.A)(c,2),u=s[0],p=s[1];(0,a.useEffect)((function(){var e=function(){if(l.current){p("56.25%")}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[l]);var f=function(e,n){for(var t=[],r=0;r0?{short:d.hash,page_number:e.context.page_number}:null,ie=function(){(function(e,n,t){var r={celero_id:e,account_id:n,model:t,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"};return B.Yq.post("/feed/chat",r)})((0,W.getCeleroId)(),R,U).then((function(e){e&&e.data&&C(e.data)})).finally((function(){D(!1)}))},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];M((0,W.getCeleroId)(),l,R,U,(0,p.A)((0,p.A)({},O),{},{ui:K}),re,void 0).then((function(e){if(e.data&&e.data.sections){var n=e.data.sections.find((function(e){return"cards"===e.type}));if(n){var t,r=function(e){var n=new Map;return null==e||e.forEach((function(e,t){n.set(e.eid,t)})),n}(n.elements);if(Z)null===(t=n.elements)||void 0===t||t.splice(Z);A(e.data),ne(r)}}})).catch((function(e){var n;null!=e&&null!==(n=e.message)&&void 0!==n&&n.includes("404")&&A(null)})).finally((function(){y(!1);var n={recommendation_list:x,feed_name:l,account_id:R,params:te},t=e?"Refresh Feed":"Open Feed";(0,W.recordEventWidthAdditionalParams)(t,n),Y&&ie()}))};(0,a.useImperativeHandle)(n,(function(){return{loadFeedElements:oe}}),[oe]),(0,a.useEffect)((function(){l&&R&&oe()}),[R,l]);var ae=(0,a.useRef)(),le=function(){var e=ae.current,n=e.scrollTop/(e.scrollHeight-e.clientHeight),t={recommendation_list:x,feed_name:l,account_id:R,value:Math.round(100*n)/100,params:te};(0,W.recordEventWidthAdditionalParams)("Scroll Feed",t)},ce=(0,a.useCallback)((0,m.A)(le,1e3),[le]);return(0,a.useEffect)((function(){var e=ae.current;return e&&e.addEventListener("scroll",ce),function(){e&&e.removeEventListener("scroll",ce)}}),[w]),(0,j.jsxs)("div",{ref:ae,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"===X?"hidden":"auto"},children:[Y&&(0,j.jsx)(L.A,{data:I,isLoading:N,feedCardsMap:ee,feedElements:x,color:c}),w?"carousel"==K?(0,j.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"10px"},children:[(0,j.jsx)(u.A,{style:{fontSize:30,fontWeight:"bold",textAlign:"center"},children:z}),(0,j.jsx)(s.A,{color:"inherit"})]}):(0,j.jsx)(j.Fragment,{}):x?(0,j.jsx)("div",{style:{height:"100%",width:"100%"},children:(0,j.jsx)(P,{data:x,scroll:X,color:c,onSuggestionClick:function(e,n){var t={type:"suggestion",value:n,recommendation_list:x};(0,W.recordEventWidthAdditionalParams)("Click Feed",t),M((0,W.getCeleroId)(),l,R,U,(0,p.A)((0,p.A)({},O),{},{ui:K}),re,e).then((function(e){var n;A(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:e.data)}))},onCardClick:function(e,n){for(var t={type:"card",value:n,recommendation_list:x,params:(0,p.A)({searchParams:O},te)},r=new URL(e),i=f.parse(r.search),a=Object.keys(i),l=f.parse(window.location.search),c=0,s=Object.entries(l);cy;var o=t.scrollTopa.current+.2*l.current&&!E,s=!(t.scrollTop>a.current&&E),u=!(t.scrollTop div > div > div":{height:"100%",display:"flex !important",alignItems:"center",justifyContent:"center","& > .vidyard-player-container":{height:"100%","& > div":{height:"100vh",width:"100%"}}}},hideVideo:{visibility:"hidden"},stickyVideo:{position:"fixed",bottom:0,right:0,width:"300px",height:"169px",marginRight:"73px",marginBottom:"100px",zIndex:e.zIndex.modal+1,animation:"$slideRight 2s ease-in-out forwards",backgroundColor:"#D8D8D8",boxShadow:"4px 4px 22px 0 rgba(0,0,0,0.39)"},playButton:{position:"absolute",marginTop:"7%",bottom:"7%",left:0,right:0,cursor:"pointer"},buttonsBar:{position:"absolute",zIndex:2e3,width:"97%",bottom:"2%",left:"1.5%",display:"flex",flexDirection:"row",justifyContent:"center",background:"linear-gradient(90.03deg, rgba(255, 255, 255, 0.49) 2.81%, rgba(255, 255, 255, 0.68) 100.76%)",backdropFilter:"blur(3px)",height:"40px",borderRadius:"8px",opacity:function(e){return e.isProgressBarVisible?1:0},"-webkit-transition":"0.2s",transition:"0.2s"},dialogBar:{opacity:function(e){return e.isProgressBarVisible?1:0},"-webkit-transition":"0.2s",transition:"0.2s",height:"45px",position:"absolute",width:"97%",bottom:"3%",left:"1.5%",zIndex:2e3},floatingBar:{height:"22.5px",bottom:"3%"},dialogIcons:{width:"30px",height:"30px"},dialogVolume:{width:"30px",height:"30px"},progressContainer:{display:"flex",flexDirection:"row",flexGrow:30,alignItems:"center",justifyContent:"space-between"},icon:{color:e.palette.basicColors.black,zIndex:e.zIndex.modal},playIcon:{display:"flex",alignItems:"center",justifyContent:"center",zIndex:e.zIndex.modal+9},collapeEntered:{bottom:"110%",right:"10%",position:"absolute"},volumePaper:{background:"linear-gradient(90.03deg, rgba(255, 255, 255, 0.49) 2.81%, rgba(255, 255, 255, 0.68) 100.76%)",height:"91px",width:"26px",display:"flex",justifyContent:"center",marginBottom:"12px",zIndex:e.zIndex.modal+3,"&::after":{content:'""',position:"absolute",width:"0",zIndex:e.zIndex.modal+3,borderStyle:"solid",borderColor:"rgba(255, 255, 255, 0.6) transparent",borderWidth:"11px 6px 0",top:"91px",left:"25%%"}},volumeButtons:{cursor:"pointer"},volumeWrapper:{display:"flex",alignItems:"center",height:"100%",marginLeft:"20px",position:"relative",zIndex:e.zIndex.modal+11},progressSlider:{flexGrow:40,alignItems:"center"},progressLabel:{flexGrow:1,textAlign:"center",fontSize:"13px",fontWeight:"bold"},fullScreenIcon:{display:"flex",alignItems:"center",justifyContent:"center"},"@media only screen and (max-width: 1200px) ":{stickyVideo:{marginRight:"10%",width:"80%",height:"25%"},dialogBar:{opacity:1},buttonsBar:{opacity:1}}}})),I=((0,w.A)((function(e){return{root:{width:"100%",padding:"3px 0",color:e.palette.customStyles.primary,height:function(e){return"".concat(e.height,"px")}},thumb:{maxHeight:function(e){return"".concat(e.diameter,"px")},maxWidth:function(e){return"".concat(e.diameter,"px")},marginTop:"-4px"},valueLabel:{left:"calc(-50% + 4px)"},track:{borderRadius:"20px",color:e.palette.customStyles.primary,height:function(e){return"".concat(e.height,"px")}},rail:{borderRadius:"20px",color:"#F6F7F8",height:function(e){return"".concat(e.height,"px")}}}}))(E.Ay),(0,w.A)((function(){return{root:{color:"black",maxHeight:70,margin:10,"&$vertical":{width:4,display:"flex",justifyContent:"center"}},thumb:{"&:focus, &:hover":{boxShadow:"none"},"&$active":{boxShadow:"none"}},track:{height:8},rail:{height:8},vertical:{"& $rail":{width:4},"& $track":{width:4},"& $thumb":{marginLeft:0}}}}))(E.Ay),t(16976)),C=t(63055),k=t(65983),j=o.memo((function(e){var n=e.isDialog,t=e.autoplay,c=e.contentUUID,u=e.url,x=e.pageNumber,A=e.poster,b=.5,w=(0,o.useState)(b),y=(0,i.A)(w,2),E=(y[0],y[1]),j=(0,o.useState)(b),T=(0,i.A)(j,2),N=T[0],D=T[1],R=(0,o.useState)(null),O=(0,i.A)(R,2),P=O[0],L=O[1],W=(0,o.useState)(!1),F=(0,i.A)(W,2),B=F[0],M=F[1],V=(0,o.useState)(!1),U=(0,i.A)(V,2),H=U[0],z=U[1],q=(0,o.useState)(0),G=(0,i.A)(q,2),K=G[0],Y=G[1],J=(0,o.useState)(0),Z=(0,i.A)(J,2),X=(Z[0],Z[1]),$=(0,o.useState)(!1),Q=(0,i.A)($,2),ee=Q[0],ne=Q[1],te=(0,o.useState)(!1),re=(0,i.A)(te,2),ie=re[0],oe=re[1],ae=(0,o.useState)(!1),le=(0,i.A)(ae,2),ce=le[0],se=le[1],ue=(0,o.useState)(0),de=(0,i.A)(ue,2),pe=de[0],fe=de[1],me=(0,o.useState)({}),he=(0,i.A)(me,2),ge=he[0],ve=he[1],xe=(0,o.useState)(!1),Ae=(0,i.A)(xe,2),be=Ae[0],_e=Ae[1],we=(0,o.useState)(!1),ye=(0,i.A)(we,2),Ee=ye[0],Se=ye[1],Ie=(0,o.useRef)(!1),Ce=(0,o.useRef)(null),ke=(0,o.useRef)(0),je=(0,o.useRef)(!1),Te=(0,o.useRef)(!1),Ne=(0,o.useRef)(!1),De=(0,o.useRef)(0),Re=u.includes(".mp4"),Oe=u.includes("vimeo"),Pe=new Set,Le=S({isProgressBarVisible:Ee}),We=(0,o.useState)({played:0,playedSeconds:0,loaded:0,loadedSeconds:0}),Fe=(0,i.A)(We,2),Be=Fe[0],Me=Fe[1],Ve=(0,o.useRef)(null),Ue=(0,o.useRef)(null),He=(0,o.useRef)(null),ze=(0,h.Eg)(u),qe=Le.videoContainer,Ge=Le.videoItem,Ke=Le.containerFloating,Ye=Le.closeIcon,Je=Le.stickyVideo,Ze=_(Ce,(function(){De.current=Ve.current.getCurrentTime(),De.current&&De&&0!==De.current&&Y(De.current)}),be,!Oe&&ee&&!be),Xe=function(){var e=document.querySelector("[class*=fb-video]");if(e){var n=document.querySelector("iframe"),t=parseInt(String(Ve&&Ve.current&&Ve.current.getCurrentTime()))||0;n.src=n.src+"&width=".concat(e.clientWidth,"&height=").concat(e.clientHeight,"&t=").concat(t)}},$e=(0,o.useCallback)((0,I.A)(Xe,300),[Xe]);(0,o.useEffect)((function(){var e;setTimeout((function(){var e=document.querySelector("[class*=vidyard-iframe]");e&&(e.src=e.src+"&hidden_controls=1");var n=document.querySelector("[class*=fb-video]"),t=n&&(null==n?void 0:n.childNodes[0]);if(n){n.style.display="flex",n.style.alignItems="center";var r=document.querySelector("iframe");r.src=r.src+"&width=".concat(n.clientWidth,"&height=").concat(n.clientHeight),t&&(t.style.width=n.clientWidth,t.style.height=n.clientHeight,r.style.width="100% !important",r.style.height="100% !important",r.width="100%",r.height="100%"),window.addEventListener("resize",$e)}}),2e3);var n=new URL(u);if(n&&null!==(e=n.origin)&&void 0!==e&&e.includes("vidyard")){var t,r;window.vidyardVideos=window.vidyardVideos||new Set;var i=n.origin+n.pathname;null!==(t=window.vidyardVideos)&&void 0!==t&&t.has(i)&&(0,m.recordEventWidthAdditionalParams)(f.qW.WARNING,{code:"VIDYARD_TWO_VIDEOS_ISSUE",additional_data:u,page:x,internal_explanation:"there is more than a vidyard videos with the same link which will cause an events issue"}),null===(r=window.vidyardVideos)||void 0===r||r.add(i)}}),[]),(0,o.useEffect)((function(){Re||oe(!0)}),[Ze]);var Qe=function(e){var n=e.eventName,t=e.previous,i=e.next,o=e.pauseSorce,a=e.isAutoPlay,l={content_id:c,page_number:x,video_link:u,video_duration:(0,h.DS)(pe)},s=Ve.current&&Ve.current.getCurrentTime()&&(0,h.DS)(Ve.current.getCurrentTime());switch(n){case f.qW.VIDEO_SEEKED:return(0,r.A)((0,r.A)({},l),{},{from_video_time:t,to_video_time:i});case f.qW.VIDEO_SOUND_CHANGED:return(0,r.A)((0,r.A)({},l),{},{at_video_time:(0,h.DS)(Be.playedSeconds),from_volume_level:t,to_volume_level:i});case f.qW.VIDEO_PAUSED:return(0,r.A)((0,r.A)({},l),{},{at_video_time:s,cause:o});case f.qW.FINISH_VIDEO:return(0,r.A)({},l);case f.qW.VIDEO_PLAYED:return(0,r.A)((0,r.A)({},l),{},{at_video_time:(0,h.DS)(Be.playedSeconds),auto_play:a});case"milestone":return(0,r.A)((0,r.A)({},l),{},{total_watched_time:Pe.size});default:return(0,r.A)((0,r.A)({},l),{},{at_video_time:s})}},en=function(){z(!1),Te.current=!ee,ne(!ee),Ne.current&&(0,m.recordEventWidthAdditionalParams)(f.qW.VIDEO_PLAYED,Qe({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:!0}))},nn=function(){if(Ie.current){Ie.current=!1;var e=(0,h.DS)(Ve.current?Ve.current.getCurrentTime():0),n={content_id:c,page_number:x,video_link:u,video_duration:(0,h.DS)(ke.current),at_video_time:e};(0,m.recordEventWidthAdditionalParams)(f.qW.ClOSE_VIDEO,n)}},tn=function(){var e=(0,h.DC)(window),n=Ue&&Ue.current;n&&(0,h.RC)(n,.5,0)&&t&&!Ie.current&&e&&e!==l.u.IOS&&pe>0&&(Ie.current=!0,Ne.current=!0,en())},rn=function(e){if(e.srcElement===Ue.current){var n=d().isEnabled&&d().isFullscreen,t=n?f.qW.VIDEO_SET_FULLSCREEN:f.qW.VIDEO_EXIT_FULLSCREEN;M(n),(0,m.recordEventWidthAdditionalParams)(t,Qe({eventName:t}))}};(0,o.useEffect)((function(){d().isEnabled&&d().on("change",rn);var e=(0,h.DC)(window)===l.u.IOS;return L(!(!t||n||e)),D(!t||n||e?b:0),E(!t||n||e?b:0),function(){d().isEnabled&&d().off("change",rn),nn()}}),[pe]),(0,o.useEffect)((function(){var e;return ce&&ie&&(e=setTimeout((function(){oe(!1),se(!1)}),700)),function(){e&&clearTimeout(e)}}),[ce]),(0,o.useEffect)((function(){pe>0&&tn();var e=document.getElementById("viewer");return e&&e.addEventListener("scroll",tn),function(){e&&e.removeEventListener("scroll",tn)}}),[pe]);var on=ie?Le.hideVideo:Je,an=Ze?(0,p.A)(qe,Ke,on):(0,p.A)(qe,qe),ln=Re?"mp4":"video";return(0,o.useEffect)((function(){var e;null===(e=Ce.current)||void 0===e||e.addEventListener("click",(function(){ne(!0)}))}),[]),(0,k.jsx)("div",{className:an,ref:Ce,children:null!==P&&null!==N&&(0,k.jsxs)("div",{ref:Ue,className:qe,onMouseLeave:function(){Se(!1)},children:[Ze&&!B&&(0,k.jsx)(a.A,{onClick:function(){_e(!0),ze||ne(!1)},className:Ye,children:(0,k.jsx)(v.h,{className:Ke})}),(0,k.jsx)("div",{className:Ge,onClick:en,onMouseMove:function(){He.current&&clearTimeout(He.current),Se(!0),He.current=setTimeout((function(){Se(!1)}),2e3)},children:(0,k.jsx)(s(),{ref:Ve,url:u,width:"100%",height:"100%",playing:ee,muted:P||be,autoPlay:!0,onPause:function(){var e;Te.current=!1,je.current?(e=Qe({eventName:f.qW.VIDEO_PAUSED,pauseSorce:f.T9.LEAVING_PAGE}),je.current=!1):e=Qe({eventName:f.qW.VIDEO_PAUSED,pauseSorce:f.T9.USER}),(0,m.recordEventWidthAdditionalParams)(f.qW.VIDEO_PAUSED,e),ne(!1),z(!1)},onPlay:function(){if(Te.current=!0,Ie.current=!0,H||Ne.current||(0,m.recordEventWidthAdditionalParams)(f.qW.VIDEO_PLAYED,Qe({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:Ne.current})),Ne.current=!1,ne(!0),be&&ze)return ne(!1),void _e(!1)},onProgress:function(e){if(Math.round(e.playedSeconds)%f.vh-1==0&&(0,m.keepAlive)(),e.playedSeconds&&(Pe.add(e.playedSeconds),function(e){var n="";switch(Math.floor(e)){case ge["25%"]:n="25%";break;case ge["50%"]:n="50%";break;case ge["75%"]:n="75%";break;case ge["100%"]:n="100%"}n.length&&(0,m.recordEventWidthAdditionalParams)("Reached "+n+" Video milestone",Qe({eventName:"milestone"}))}(e.playedSeconds),(0,C.DW)(u,e.playedSeconds,(0,r.A)((0,r.A)({},(0,m.getGeneralTrackingData)()),Qe({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:Ne.current})))),Math.round(Math.abs(e.playedSeconds-Be.playedSeconds))>1){var n=(0,h.DS)(Be.playedSeconds),t=(0,h.DS)(e.playedSeconds);if(n===t)return;(0,m.recordEventWidthAdditionalParams)(f.qW.VIDEO_SEEKED,Qe({eventName:f.qW.VIDEO_SEEKED,previous:n,next:t}))}Me({played:e.played,playedSeconds:e.playedSeconds,loaded:e.loaded,loadedSeconds:e.loadedSeconds}),X(100*e.played)},onDuration:function(e){fe(e),ve({"25%":Math.floor(pe/4),"50%":Math.floor(pe/2),"75%":Math.floor(3*pe/4),"100%":Math.floor(pe)}),ke.current=e},volume:N,onEnded:function(){ne(!1),(0,m.recordEventWidthAdditionalParams)(f.qW.FINISH_VIDEO,Qe({eventName:f.qW.FINISH_VIDEO}))},onReady:function(){var e,n=(0,h.DC)(window)===l.u.IOS,t=ee;n&&ne(!1),ze||_e(!1),(t||be)&&!Re&&(e=K,Ve&&Ve.current&&(ee&&z(!0),Ve.current.seekTo(e,"seconds"),ie&&se(!0)))},playsinline:!0,controls:!0,config:{file:{attributes:{poster:A}}},light:e.poster},ln)}),(0,k.jsx)(g.A,{handler:nn})]})})}))},26882:function(e,n,t){t.d(n,{p:function(){return r}});var r="SET_CUSTOM_EVENTS"},27772:function(e,n,t){t.d(n,{j:function(){return i}});var r=t(45051),i=function(e){return function(n){n({type:r.L,payload:e})}}},28930:function(e,n,t){var r=t(61755),i=t(65983);n.A=function(e){var n=e.faviconLink;return(0,i.jsxs)(r.mg,{children:[(0,i.jsx)("meta",{name:"favicon"}),(0,i.jsx)("link",{id:"favicon",rel:"icon","data-react-helmet":"true",href:n}),(0,i.jsx)("link",{rel:"shortcut icon","data-react-helmet":"true",href:n}),(0,i.jsx)("link",{rel:"alternate icon",href:n,type:"image/png"})]})}},29431:function(e,n,t){t.r(n),t.d(n,{HTMLSnippet:function(){return l}});var r=t(5544),i=t(49255),o=t(47081),a=t(65983);var l=function(e){var n=(0,o.d4)((function(e){return{htmlSnippets:e.htmlSnippets}})).htmlSnippets,t=(0,i.useState)(""),l=(0,r.A)(t,2),c=l[0],s=l[1];(0,i.useEffect)((function(){var t;if(n){var r=null==n||null===(t=n.find((function(n){return n.name==e.snippetName})))||void 0===t?void 0:t.html;s(r||"")}}),[n]);var u=(0,i.useMemo)((function(){return c?function(e){return"\n\n".concat(e,"")}(c):""}),[c]);return u?(0,a.jsx)("div",{id:"".concat(e.snippetName),style:{width:"100%",height:"100%"},children:(0,a.jsx)("iframe",{srcDoc:u,style:{width:"100%",height:"100%",border:"none"},title:e.snippetName,allow:"autoplay; fullscreen"})}):null};n.default=l},30694:function(e,n,t){t.r(n),t.d(n,{default:function(){return m}});var r=t(49255),i=t(47081),o=t(55737),a=t(5791),l=t(81114),c=t(56787),s=t(84740),u=t(50327),d=t(84899),p=t(5084),f=t(65983);function m(e){var n=(0,i.d4)((function(e){return{theme:e.theme,shortenData:e.shortenData}})),t=n.theme,m=n.shortenData,h=e.content,g=e.isPresentationMode,v=(0,c.A)().currentPageNumber,x=window.celeroURLParams.is_bot,A=(0,d.A)().isMobile,b=g?t.palette.customViewer.viewerBackGroundColorPresentation:t.palette.customViewer.viewerBackGroundColorDocument,_=(0,o.z4)({ismobile:A,background:b}),w=_.poweredByCeleroLabel,y=_.celeroLogoClass,E=m&&m.company&&m.company.company_customizations&&m.company.company_customizations.is_powered_by_celero,S=null==E||E,I=(0,r.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,a.getCeleroId)()),n={content_id:h.uuid,link_url:e,page_number:v};(0,a.recordEventWidthAdditionalParams)(l.qW.CLICK_POWERED_BY,n),setTimeout((function(){window.open(e,"_blank")}))}),[h,v]);return(0,f.jsx)(s.A,{isVisible:S&&!x,children:(0,f.jsxs)(o.A2,{variant:"extended",onClick:I,ismobile:A,background:b,children:[(0,f.jsx)(p.A,{className:w,children:"Powered by"}),(0,f.jsx)(u.ReactComponent,{className:y})]})})}},30852:function(e,n,t){t.r(n),t.d(n,{default:function(){return w}});var r=t(89379),i=t(49255),o=t(31783),a=t(5791),l=t(691),c=t(4134),s=t(81114),u=t(16976),d=t(34955),p=t(57957),f=t(52473),m=t(16084),h=t(75449),g=t(47081),v=t(68240),x=t(56787),A=t(65983),b=i.forwardRef((function(e,n){var t=(0,g.d4)((function(e){return{marketoFormData:e.marketoFormData}})).marketoFormData,l=(0,g.wA)(),b=new Date,_=(0,i.useRef)(b),w=(0,i.useRef)(new Date),y=(0,x.A)().currentPageNumber,E=e.contentUUID,S=e.componentName,I=(0,i.useRef)(t),C=function(e,n){(0,a.recordEventWidthAdditionalParams)(e,n)},k=(0,i.useRef)(""),j=function(){var e,n=null===(e=document.getSelection())||void 0===e?void 0:e.toString();switch(S){case o.$.CALCULATOR:if(!n||k.current===n)return;C(s.qW.TEXT_HIGHLIGHTED,{text:n});break;case o.$.VIEWER:if(!n||k.current===n)return;C(s.qW.TEXT_HIGHLIGHTED,{text:n,page_number:y,content_id:E})}k.current=n},T=(0,i.useCallback)((function(){var e=n.current,t="";e&&(e.onmouseup=function(){j()},e.oncopy=function(){var e,n,r=null===(e=window)||void 0===e||null===(n=e.getSelection())||void 0===n?void 0:n.toString();switch(S){case o.$.CALCULATOR:if(!r||t===r)return;C(s.qW.TEXT_COPIED,{text:r});break;case o.$.VIEWER:if(!r||t===r)return;C(s.qW.TEXT_COPIED,{text:r,content_id:E,page_number:y})}t=r})}),[n,E,y,S]);(0,i.useEffect)((function(){T()}),[T]),(0,i.useEffect)((function(){I.current=t}),[t]);var N=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var t=new Date,r=t,i=(0,c.ez)(_.current,t);n&&(i=(0,c.ez)(_.current,w.current)+s.Md,r=new Date(w.current.getTime()+s.Md));var o={duration:i,page_number:e,content_id:E,keen:{timestamp:r}};(0,a.recordEventWidthAdditionalParams)(s.qW.SLIDE_VIEW_FINISHED,o),_.current=new Date}},D=function(){j()},R=(0,i.useCallback)((0,u.A)(D,1e3),[D]);(0,i.useEffect)((function(){if(window.location.hostname.includes("netapp")){var e=(0,m.Ri)("_netapp_utm_params");e&&(0,a.setGeneralTrackingData)(JSON.parse(e))}return document.addEventListener("selectionchange",R),function(){document.removeEventListener("selectionchange",R)}}),[]);var O=function(e){var n=(0,a.getFormInfoFromEvent)(e);(0,a.recordEventWidthAdditionalParams)(s.qW.FILL_FORM,n)},P=function(e){e.preventDefault();var n=(0,a.getFormInfoFromEvent)(e);if(n.is_valid){(0,a.recordEventWidthAdditionalParams)(s.qW.FORM_SUBMITTED,n),setTimeout((function(){l((0,v.G)("Form has been submitted successfully","success",!0))}),2e3);var t=e.target,i=+t.id.split("_")[1]||0,o=I.current.find((function(e){return e.form_id===i}));t.id.includes("mktoForm")&&null!=o&&o.is_progressive&&(window.mktoSubmittedForms?window.mktoSubmittedForms.push(o.form_id):window.mktoSubmittedForms=[o.form_id]),setTimeout((function(){var e,t;e=n.form_type,(t=(0,a.getGeneralTrackingData)()).account_id&&f.A.getCompanyIntegrations(t.account_id).then((function(n){var i,o=n.find((function(n){return n.name===e}));o&&(e===h.o4.MARKETO&&null!=o&&null!==(i=o.data)&&void 0!==i&&i.luid&&(0,m.TV)("luid",o.data.luid,365),(0,a.recordEventWidthAdditionalParams)(s.qW.NEW_LEAD,(0,r.A)((0,r.A)({integration_type:e},t),o.data)))}))}),2e4)}};(0,i.useEffect)((function(){var e=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){if("FORM"===e.nodeName){var n=e;n.className.includes("mktoForm")&&function(e){e.classList.contains("formListnerHandled")||(e.classList.add("formListnerHandled"),e.addEventListener("change",O),e.addEventListener("submit",P))}(n)}}))}))}));return e.observe(document.body,{childList:!0,subtree:!0}),function(){e.disconnect()}}),[]),(0,i.useEffect)((function(){return function(){N(y)}}),[E,y,_]);return(0,d.h)({timeout:s.Md,onAction:function(){if(!(0,a.isRouteExcludedFromSession)()){if((0,a.checkSessionAvailability)())(0,a.updateSession)();else try{var e={duration:s.Md,keen:{timestamp:new Date(w.current.getTime()+s.Md)}};(0,a.recordEventWidthAdditionalParams)(s.qW.WINDOW_FOCUSED,e),N(y,!0),(0,a.createSession)(),(0,a.recordEventWidthAdditionalParams)(s.qW.SLIDE_VIEW_STARTED,{}),_.current=new Date}catch(e){(0,p.ZI)("create session in window tracker 'handleFocusEvent' :"+e)}w.current=new Date}}}),(0,A.jsx)("div",{ref:n,style:{height:"100%"},children:e.children})}));b.displayName="EventsTracker";var _=b,w=function(e){var n=e.children,t=e.content,u=e.shortenData,d=(0,x.A)().currentPageNumber,p=(0,i.useRef)(d),f=(0,i.useRef)(!1),m=(0,i.useRef)(!1),h=(0,i.createRef)();return(0,i.useEffect)((function(){p.current=d}),[d]),(0,i.useEffect)((function(){if(null!=t&&t.uuid){var e=l.A.sessionStorage.getItem("celero_obj"),n=l.A.localStorage.getItem("mvt_url"),i=l.A.localStorage.getItem("mvt_referrer"),o=e&&JSON.parse(e)||{},c=(0,r.A)((0,r.A)({},o),{},{content_id:t.uuid});(0,a.setGeneralTrackingData)({content_id:t.uuid}),i&&window.location.href.includes(n)?(0,a.setGeneralTrackingData)({with_mvt:!0,mvt_referrer:i}):(l.A.localStorage.removeItem("mvt_url"),l.A.localStorage.removeItem("mvt_referrer")),l.A.sessionStorage.setItem("celero_obj",JSON.stringify(c))}}),[t]),(0,i.useEffect)((function(){if(t&&d){var e=u.company&&u.company.account_id;(0,a.setGeneralTrackingData)({page_number:d,content_id:t.uuid,account_id:e,title:t.version.version_details.name,version_number:t.version.version_number,version_id:t.version.version_details.uuid})}}),[d,t]),(0,i.useEffect)((function(){f.current||((0,a.recordEventWidthAdditionalParams)("Init"),f.current=!0)}),[]),(0,i.useEffect)((function(){if(t&&!m.current){var e=(0,c.al)(),n=window.celeroData?s.AI.OEMBED:e?s.AI.IFRAME:s.AI.STANDARD,r={content_id:t.uuid,title:t.original_name,type:n};(0,a.recordEventWidthAdditionalParams)(s.qW.CONTENT_VIEW_STARTED,r),m.current=!0}}),[t]),(0,i.useEffect)((function(){if(t){var e={page_number:p.current,content_id:t.uuid};(0,a.recordEventWidthAdditionalParams)(s.qW.SLIDE_VIEW_STARTED,e),l.A.sessionStorage.setItem("last_open_page_time","".concat(new Date))}}),[t,d]),(0,i.useEffect)((function(){window.enableTracking=u.company.enableTracking}),[t]),(0,A.jsx)(_,{ref:h,contentUUID:t.uuid,pageId:d,componentName:o.$.VIEWER,title:t.original_name,children:n})}},31783:function(e,n,t){t.d(n,{$:function(){return r},Y:function(){return i}});var r=function(e){return e.VIEWER="VIEWER",e.CALCULATOR="CALCULATOR",e}({}),i=function(e){return e.EXTERNAL="EXTERNAL",e.INTERNAL="INTERNAL",e}({})},35928:function(e,n,t){t.d(n,{i:function(){return i}});var r=t(63547),i=function(e){return function(n){n({type:r.r,payload:{isLoaderShown:e}})}}},38097:function(e,n,t){t.d(n,{A:function(){return s}});var r=t(28122),i=t(2378),o=t(20535),a=t(87162),l=(0,o.A)((function(e){return{previewModeMessage:{position:"sticky",lineHeight:2,top:function(e){return e.is_sticky_bar?a.O5:0},zIndex:1e3,color:"black",fontSize:16,backgroundColor:"white",textAlign:"start"},infoAlert:{color:"".concat(e.palette.customViewer.viewerPrimaryTextColor," !important"),backgroundColor:"".concat(e.palette.customViewer.viewerPrimaryColor," !important")},infoIconStyle:{color:e.palette.customViewer.viewerPrimaryColor}}})),c=((0,o.A)((function(e){return{previewMode:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",backgroundColor:e.palette.background.default},previewModeContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.spacing(3),textAlign:"center"},previewModeTitle:{marginBottom:e.spacing(2),color:e.palette.text.primary},previewModeDescription:{marginBottom:e.spacing(3),color:e.palette.text.secondary}}})),t(65983));function s(e){var n=e.isStickyBar,t=l({is_sticky_bar:n}),o=t.previewModeMessage,a=t.infoAlert,s=t.infoIconStyle;return(0,c.jsx)("div",{className:o,children:(0,c.jsx)(r.A,{severity:"info",className:a,icon:(0,c.jsx)(i.A,{className:s}),children:'You are in preview mode. To share this content with others, go back to your content area (previous tab) and click the "copy link" button.'})})}},40310:function(e,n,t){t.r(n),t.d(n,{MetadataHead:function(){return d},default:function(){return p}});var r,i=t(61755),o=t(60436),a=t(64467),l=function(e){return e.root="/",e.filesList="/files-list",e.profile="/profile",e.SalesDashboard="https://celero.metabaseapp.com/dashboard/4-celero-insights",e.PageMetaData="/content/:contentId/page/:pageNumber",e.ContentPages="/content/:contentId/pages",e}(l||{}),c=function(e){return e.login="/login",e.signUp="/sign-up",e.emailVerification="/verify-email",e.verificationResult="/verification-result",e.forgetPassword="/forgot-password",e.resetPassword="/reset-password",e.notFound="/not-found",e.utilisCalculator="/utilis/calculator",e.viewer="/viewer/:viewerId",e.utilisLeaksCalculator="/utilis/leaks-calculator",e.shortenUrl="/s/:shortenHash",e.shortenWithTitleUrl="/s/:shortenHash/:title",e.multiVariantTestUrl="/mvt/:hash",e}(c||{}),s=(r={},(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)(r,l.root,"Content List"),l.filesList,"Content List"),l.profile,"Profile"),l.SalesDashboard,"Sales Dashboard"),l.PageMetaData,"Content Page Metadata"),l.ContentPages,"Content Pages List"),c.login,"Login"),c.signUp,"Sign Up"),c.emailVerification,"Verify Email"),c.verificationResult,"Verification Result"),(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)(r,c.forgetPassword,"Forgot Password"),c.resetPassword,"Reset Password"),c.notFound,"Not Found"),c.utilisCalculator,"Utilis Calculator"),c.viewer,"Viewer"),c.utilisLeaksCalculator,"Utilis Leaks Calculator"),c.shortenUrl,"Content"),c.shortenWithTitleUrl,"Shorten Url"),c.multiVariantTestUrl,"Multi Variant Test Url")),u=([].concat((0,o.A)(Object.values(l)),[c.login,c.signUp,c.emailVerification,c.verificationResult,c.forgetPassword,c.resetPassword,c.notFound]),t(65983)),d=function(e){var n,t=e.company,r=window.location;return null!=t&&t.id?(0,u.jsxs)(i.mg,{children:[(0,u.jsx)("title",{children:s[r.pathname]||""}),(0,u.jsx)("meta",{property:"fb:app_id",content:"887434528837802"}),(0,u.jsx)("meta",{name:"title",content:t.name}),(0,u.jsx)("meta",{name:"description",content:t.name}),(0,u.jsx)("meta",{name:"keywords",content:null===(n=t.taxonomies)||void 0===n?void 0:n.join(", ")}),(0,u.jsx)("link",{rel:"canonical",href:window.location.href.split("?")[0]}),(0,u.jsx)("meta",{property:"og:title",content:t.name}),(0,u.jsx)("meta",{property:"og:description",content:t.name}),(0,u.jsx)("meta",{property:"og:image"}),(0,u.jsx)("meta",{property:"og:url",content:window.location.href}),(0,u.jsx)("meta",{property:"og:type",content:"website"}),(0,u.jsx)("meta",{name:"author",content:"Celero"}),(0,u.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,u.jsx)("meta",{name:"twitter:title",content:t.name}),(0,u.jsx)("meta",{name:"twitter:description",content:t.name}),(0,u.jsx)("meta",{name:"twitter:image"})]}):null},p=d},41679:function(e,n,t){t.d(n,{g:function(){return r}});var r="SET_HTML_SNIPPETS"},42156:function(e,n,t){t.d(n,{Y:function(){return i}});var r=t(77167),i=function(e){return function(n){n({type:r.L,payload:e})}}},42883:function(e,n,t){t.d(n,{W:function(){return o.W},J:function(){return a}});var r=t(81114),i=t(5791),o=t(94541),a=function(e,n){return function(t){var a=r.qW.CLOSE_SHARE,l={};e&&(a=r.qW.OPEN_SHARE,l={source:n}),(0,i.recordEventWidthAdditionalParams)(a,l),t({type:o.W,payload:{isMobileMenuOpen:e}})}}},45051:function(e,n,t){t.d(n,{L:function(){return r}});var r="SET_CELERO_FORM_BUILDER"},45332:function(e,n,t){t.r(n),t.d(n,{default:function(){return p}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(57957),c=t(691),s=t(5791),u=t(65983),d=function(e){var n=(0,a.useState)(!0),t=(0,o.A)(n,2),d=t[0],p=t[1],f=function(){var e=(0,i.A)((0,r.A)().m((function e(){var n,t,i,o;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:if(e.p=0,n=c.A.sessionStorage.getItem("is_refresh"),t="yes"===n,c.A.sessionStorage.removeItem("is_refresh"),t?(i=c.A.sessionStorage.getItem("tab_id"),(0,s.setGeneralTrackingData)({tab_id:i})):(0,s.createTabId)(),(0,s.checkSessionAvailability)()){e.n=2;break}return e.n=1,(0,s.createSession)();case 1:e.n=3;break;case 2:(0,s.updateSession)();case 3:e.n=5;break;case 4:e.p=4,o=e.v,(0,l.ZI)("error in SessionHandler "+o);case 5:p(!1);case 6:return e.a(2)}}),e,null,[[0,4]])})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){f()}),[]),(0,u.jsxs)(u.Fragment,{children:[" ",!d&&e.children]})},p=d},45967:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var r=t(49255),i=t(47081),o=t(79218),a=t(50471),l=(0,t(20535).A)((function(e){return{iframe:{width:"100%",height:"100%"},dialogContainerStyle:{display:"flex",height:"100%"},contentWrapper:{display:"flex"},iconsWrapper:{position:"absolute",right:"0",display:"flex",flexDirection:"row-reverse"},openNewWidowIconStyle:{borderRadius:40,zIndex:e.zIndex.modal+1,backgroundColor:"#09a4c0","&:hover":{backgroundColor:"#0996b5"}},closeIconButtonStyle:{zIndex:e.zIndex.modal+1},dialogIconColor:{color:"#FFFFFF"},backdrop:{backdropFilter:"blur(2.71828px)"},root:{margin:"20px 0 20px 0",background:"transparent !important",overflowY:"visible"},paper:{maxWidth:"fit-content",width:"700px",borderRadius:"16px",backgroundColor:"transparent !important",background:"transparent",boxShadow:"none !important",overflow:"visible",display:"flex",justifyContent:"center",alignItems:"center"}}})),c=t(13249),s=t(27772),u=t(66193),d=t(51053),p=t(65983),f=function(){var e=(0,i.d4)((function(e){return{celeroFormBuilderData:e.celeroFormBuilderData}})).celeroFormBuilderData,n=(0,i.wA)(),t=l();function f(){n((0,s.j)(u.X))}return(0,r.useEffect)((function(){e.open?window.disableNavigation=!0:window.disableNavigation=!1}),[e]),(0,p.jsx)(o.A,{disableEnforceFocus:!0,TransitionComponent:c.A,classes:{root:t.root},slotProps:{backdrop:{classes:{root:t.backdrop}}},PaperProps:{classes:{root:t.paper}},open:e.open,children:(0,p.jsx)(a.A,{formConfig:e.config,afterSubmit:f,sourceOfRender:d._.POPUP,defaultValues:e.defaultValues,onCancel:f})})}},46697:function(e,n,t){t.d(n,{b:function(){return r}});var r="SET_OPEN_PAPER"},46842:function(e,n,t){t.d(n,{A:function(){return x}});var r=t(24507),i=t(75700),o=t(98992),a=t(90945),l=t(12647),c=t(30495),s=t(65983),u=8,d=8,p=function(e){return e?d:u},f=function(e){return p(e)+6},m=(0,r.Ay)("div")((function(e){var n,t=e.theme,r=e.ismobile;return{display:"flex",justifyContent:e.centered?"center":"flex-start",alignItems:"center",zIndex:t.zIndex.appBar+1,pointerEvents:"auto",overflow:"hidden",minHeight:17,position:"relative",width:(n=!!r,7*f(n))}})),h=(0,r.Ay)("div")((function(e){var n=e.active,t=e.dotColor,r=e.borderColor,i=e.isMobile,o=e.isFirst,a=e.isLast;return{width:p(!!i),height:p(!!i),borderRadius:"50%",marginLeft:o?0:3,marginRight:a?0:3,background:t,opacity:n?1:.35,transition:"opacity 0.2s, background 0.2s",cursor:"pointer",boxShadow:n?"0 0 0 1.5px ".concat(r):void 0,border:"1px solid ".concat(r)}})),g=(0,r.Ay)(o.A)((function(){return{width:"100vw",boxShadow:"none"}})),v=function(e){var n=(0,i.A)(),t=e.isMobile,r=(0,a.b)(e.companyId||"","panel").stylesheet,o=e.currentPageNumber,u=e.goToPage,d=e.isPresentationMode,p=e.backgroundColor,v=e.pageCount,x=e.mobileActiveTab,A=e.mobileTabs,b=e.onMobileTabChange,_=p?n.palette.getContrastText(p):n.palette.common.white,w=_,y=_;return(0,s.jsxs)("div",{children:[d&&v>1&&(0,s.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center",background:"transparent",marginBottom:"5px"},children:(0,s.jsx)(m,{ismobile:t,centered:v<=7,children:(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",transition:"transform 0.3s cubic-bezier(.4,2,.6,1)",willChange:"transform",transform:"translateX(".concat(function(){var e=f(t);if(v<=7)return 2;var n=o-1;return n<5?2:n>=5&&n=v-1?-1*(v-7)*e:0}(),"px)")},children:Array.from({length:v}).map((function(e,n){return{page:n+1,active:o===n+1}})).map((function(e,n,r){return(0,s.jsx)(h,{active:e.active,dotColor:w,borderColor:y,isMobile:t,isFirst:0===n,isLast:n===r.length-1,onClick:function(){return u(e.page)},"aria-label":"Go to page ".concat(e.page)},e.page)}))})})}),e.children,t&&A&&A.length>0&&(0,s.jsxs)(g,{elevation:3,style:{background:p},"data-celero-sp":"panel",className:"switcher",children:[(0,s.jsx)(l.A,{css:r,componentName:"panel"}),(0,s.jsx)(c.A,{items:A,value:x||0,onChange:function(e){return null==b?void 0:b(e)},variant:"fullWidth",color:void 0,iconPosition:"top",className:"tabs"})]}),e.bottomChildren]})};v.displayName="ViewerFooter";var x=v},47206:function(e,n,t){t.d(n,{c:function(){return L}});var r=t(49255),i=t(60436),o=t(89379),a=t(5544),l=t(47081),c=t(27460),s=t(34730),u=t(32388),d=t(74484),p=t(57957),f=t(24507),m=t(87162),h=t(81076),g=t(25728),v=t(95792),x=(0,f.Ay)(h.A)((function(e){var n=e.theme;return{position:"absolute",top:m.O5+19,right:24,zIndex:n.zIndex.modal-1}})),A=(0,f.Ay)(g.A)((function(e){var n=e.theme;return{width:527,"& .MuiOutlinedInput-root":{height:54,borderRadius:16,backgroundColor:"#FFFFFF",boxShadow:"0 12px 24px 0 rgba(44,39,56,0.06), 0 32px 64px 0 rgba(44,39,56,0.08)","& .MuiOutlinedInput-notchedOutline":{borderColor:n.palette.customViewer.viewerBackGroundColorDocument,borderWidth:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:n.palette.customViewer.viewerPrimaryColor,borderWidth:1},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:n.palette.customViewer.viewerPrimaryColor,borderWidth:1}},"& .MuiInputBase-input":{padding:"6px 0 7px 21px",height:21,fontSize:16,letterSpacing:0,lineHeight:"21px"}}})),b=(0,f.Ay)(v.A)((function(){return{paddingLeft:0}})),_=(0,f.Ay)(v.A)({padding:0}),w=(0,f.Ay)(h.A)({height:"100%",color:"#4E606B",fontSize:16,letterSpacing:0,lineHeight:"31px"}),y=((0,f.Ay)(h.A)({width:16,height:16}),t(21661)),E=t(39863),S=t(60873),I=t(44444),C=t(81046),k=t(5791),j=t(81114),T=t(15893),N=t(65983),D=function(e){var n=(0,l.wA)(),t=(0,r.useState)(),f=(0,a.A)(t,2),m=f[0],h=f[1],g=(0,r.useState)(1),v=(0,a.A)(g,2),D=v[0],R=v[1],O=(0,r.useState)(0),P=(0,a.A)(O,2),L=P[0],W=P[1],F=(0,r.useState)(""),B=(0,a.A)(F,2),M=B[0],V=B[1],U=(0,r.useState)(!1),H=(0,a.A)(U,2),z=H[0],q=H[1],G=(0,r.useState)(""),K=(0,a.A)(G,2),Y=K[0],J=K[1],Z=(0,r.useRef)(),X=(0,r.useRef)(0),$=(0,r.useRef)([]),Q=(0,r.useRef)([]),ee=(0,r.useRef)([]),ne=(0,r.useRef)(null),te=e.contentId,re=e.isOpen,ie=e.closeSearch,oe=e.handleNavigateBySearchResults,ae=e.currentPage,le=e.shouldRenderHighlight,ce=function(){var e=ee.current;if(e){for(var n=0;n0&&(oe(e.result[0].page_number),R(1),W(0)),q(!!(e.result.length=e-1?0:L+1,r=m.result[t];r&&oe(r.page_number),W(t),z&&L===10*D-4&&C.A.searchInContent(te,Y,10,D+1,se,n)}},pe=function(e,n,t,r){return e.substring(0,n)+r+e.substring(t)},fe=function(e){"Enter"!==e.key&&"Enter"!==e.code&&13!==e.keyCode||(e.preventDefault(),m&&m.count>0?de():ue(Y))},me=(0,c.NH)({onKeyDown:fe},{domTarget:window}),he=function(e){try{var n="";return e.forEach((function(e){var t=" ";n.endsWith("-")&&(t=""),n=n+t+e})),n.trim()}catch(e){return(0,p.ZI)("error in joinWords"+e),""}},ge=function(){try{var e=String(Y.toLowerCase());if(!(m&&m.count&&Y&&le))return;for(var n,t=function(){var n;if(-1!==$.current.indexOf(ae+r))return 0;var t=document.getElementById("p".concat(ae+r));if(!t)return{v:void 0};var o=(null===(n=t.querySelector(".text-container"))||void 0===n?void 0:n.children)||t.children;if(!o)return{v:void 0};$.current.push(ae+r);var a=Y.split(" ");a.forEach((function(e,n){if(e.includes("-")){var t=e.split("-");a.splice(n,1,t[0]+"-",t[1])}}));for(var l=!1,c=a.slice(),s=0;sc.length){var f=he(c);null!=p&&p.startsWith(f.toLowerCase())?(Q.current.push({index:s,highlightID:"highlightMark".concat(X.current),elementId:u.id,text:d.substring(0,f.length),position:"start",original:u.innerHTML}),ee.current=[].concat((0,i.A)(ee.current),(0,i.A)(Q.current)),c=a.slice()):l=!1,c=a.slice(),Q.current=[]}if(null!=p&&p.includes(e)){var m=p.indexOf(e),h=m+Y.length,g=null==d?void 0:d.substring(m,h);ee.current.push({index:s,highlightID:"highlightMark".concat(X.current),elementId:u.id,text:g||"",position:"mid",original:u.innerHTML})}var v=[],x=!1,A=null==p?void 0:p.split(" "),b=A?A.length:-1;if(p!==e||!A||!he(c).includes(A[b])){for(var _=0;_").concat(ee.current[n].text,""),r="";switch(ee.current[n].position){case"start":r=pe(e[ee.current[n].index].innerHTML,0,ee.current[n].text.length,t);var i=document.getElementById(ee.current[n].elementId);i&&(i.innerHTML=r);break;case"end":r=pe(e[ee.current[n].index].innerHTML,e[ee.current[n].index].innerHTML.length-ee.current[n].text.length-1,e[ee.current[n].index].innerHTML.length,t);var o=document.getElementById(ee.current[n].elementId);o&&(o.innerHTML=r);break;case"mid":var a=document.getElementById(ee.current[n].elementId);if(a){var l="(>[^<]*)"+(0,T.N)(ee.current[n].text),c=new RegExp(l,"ig");a.outerHTML=a.outerHTML.replace(c,"$1"+t)}}X.current=X.current+1}}(o)},r=0;r<4;r++)if(0!==(n=t())&&n)return n.v}catch(e){(0,p.ZI)("error in search"+e)}};(0,r.useEffect)((function(){ge()}),[m,ae,le]),(0,r.useEffect)((function(){re&&Z&&Z.current&&Z.current.select()}),[re]);var ve=!Y&&(0,N.jsx)(s.A,{position:"start",children:(0,N.jsx)(u.A,{children:(0,N.jsx)(E.ReactComponent,{})})}),xe="".concat(null!=m&&m.count?L+1:0,"/").concat(null==m?void 0:m.count),Ae={color:"#273138",fontSize:"16px"},be=(0,N.jsxs)(s.A,{position:"end",sx:{height:"100%",gap:"8px"},children:[0!==M.length&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(w,{children:xe}),(0,N.jsx)(_,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:function(){var e=null==m?void 0:m.count;if(m&&e&&0!==L){var n=m.result[L-1];n&&oe(n.page_number),W(L-1)}},children:(0,N.jsx)(S.A,{sx:Ae})}),(0,N.jsx)(_,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:de,children:(0,N.jsx)(I.A,{sx:Ae})})]}),(0,N.jsx)(b,{disableRipple:!0,onClick:function(){J(""),Z.current&&(Z.current.value=""),ue(""),ie()},children:(0,N.jsx)(u.A,{children:(0,N.jsx)(y.h,{})})})]});return(0,N.jsx)(d.A,{in:re,children:(0,N.jsx)(x,(0,o.A)((0,o.A)({},me()),{},{children:(0,N.jsx)(A,{fullWidth:!0,value:Y,onChange:function(e){J(e.target.value),ne.current&&clearTimeout(ne.current),ne.current=setTimeout((function(){ue(e.target.value)}),300)},onKeyDown:fe,placeholder:"Search",inputRef:Z,autoFocus:!0,InputProps:{startAdornment:ve,endAdornment:be}})}))})},R=t(56787),O=t(80922),P=t(58651);function L(e){var n=(0,R.A)().currentPageNumber,t=window.IDRViewer,i=e.contentId,o=(0,l.d4)((function(e){return{inContentSearchState:e.inContentSearch}})).inContentSearchState,a=(0,l.wA)(),c=function(e){var n=e.keyCode;if((e.ctrlKey||window.navigator.platform.includes("Mac")&&(91===n||93===n||e.metaKey))&&70===n){if(e.preventDefault(),o.isOpen)return;a((0,P.a)(!0,O.I.KEYBOARD)),(0,k.recordEventWidthAdditionalParams)(j.qW.OPEN_SEARCH)}};(0,r.useEffect)((function(){return window.addEventListener("keydown",c,!0),function(){return window.removeEventListener("keydown",c,!0)}}),[c]);return(0,N.jsx)(D,{contentId:i,isOpen:o.isOpen,closeSearch:function(){a((0,P.a)(!1,O.I.ITSELF)),(0,k.recordEventWidthAdditionalParams)(j.qW.CLOSE_SEARCH)},handleNavigateBySearchResults:function(e){t.goToPage(e)},currentPage:n,shouldRenderHighlight:!0})}},49698:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(87162),i=function(e,n){var t=n||{},i=t.headerOffset,o=void 0===i?r.Hi:i,a=t.isPresentationMode,l=void 0!==a&&a;window.IDRViewer&&"function"==typeof window.IDRViewer.goToPage&&(window.IDRViewer.goToPage(e),window.celeroData&&!l&&requestAnimationFrame((function(){var n=document.getElementById("idrviewer-page".concat(e));if(n){var t=n.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:t-o,behavior:"smooth"})}})))}},50471:function(e,n,t){t.d(n,{A:function(){return ue}});var r=t(20454),i=t(5544),o=t(64467),a=t(91212),l=t(10467),c=t(89379),s=t(49255),u=t(27224),d=t(12558),p=t(5084),f=t(47081),m=t(92049),h=t(51053),g=t(91250),v=t(25728),x=t(20535),A=t(13989),b=t(65983),_=(0,x.A)((function(){return(0,A.A)({inputLabelShrink:{transform:"translate(14px, -6px) scale(0.75)"},formControlRoot:{}})})),w={marginBottom:"16px"},y={fontSize:"14px",color:"#4E606B"},E={fontSize:"16px",color:"#4E606B"},S=function(e){var n=e.name,t=e.label,r=e.type,o=void 0===r?"text":r,a=e.customStyles,l=_(),s=(0,u.Mt)(n),d=(0,i.A)(s,2),p=d[0],f=d[1];return(0,b.jsx)("div",{style:(0,c.A)((0,c.A)({},w),null==a?void 0:a.container),children:(0,b.jsx)(v.A,(0,c.A)((0,c.A)({},p),{},{type:o,label:t,variant:"outlined",fullWidth:!0,error:f.touched&&Boolean(f.error),helperText:f.touched&&f.error?f.error:"",InputLabelProps:{classes:{shrink:l.inputLabelShrink},style:(0,c.A)((0,c.A)({},y),null==a?void 0:a.label)},InputProps:{style:(0,c.A)((0,c.A)({},E),null==a?void 0:a.input)},classes:{root:l.formControlRoot}}))})},I=t(81076),C=t(82788),k=t(52396),j=t(98312),T=function(e){var n=e.name,t=e.label,o=e.customStyles,a=(0,u.Mt)({name:n,type:"checkbox"}),l=(0,i.A)(a,2),s=l[0],d=l[1];return(0,b.jsxs)(I.A,{mb:2,style:null==o?void 0:o.container,children:[(0,b.jsx)(C.A,{style:{alignItems:"flex-start"},control:(0,b.jsx)(k.A,(0,c.A)((0,c.A)({},s),{},{checked:Boolean(s.value),color:"primary",style:{paddingTop:0}})),label:(0,b.jsx)("span",{style:null==o?void 0:o.label,children:(0,b.jsx)(m.$,{components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,b.jsx)("p",(0,c.A)((0,c.A)({},n),{},{style:{margin:0}}))}},children:t})})}),d.touched&&d.error?(0,b.jsx)(j.A,{error:!0,children:d.error}):null]})},N=t(26308),D=t(5720),R=t(57798),O=t(52218),P=function(e){var n,t=e.name,r=e.label,o=e.options,a=e.customStyles,l=(0,u.Mt)(t),c=(0,i.A)(l,2),s=c[0],d=c[1],p=(0,u.j7)().setFieldValue;return(0,b.jsxs)(N.A,{component:"fieldset",error:d.touched&&Boolean(d.error),style:null==a?void 0:a.container,children:[(0,b.jsx)(D.A,{component:"legend",style:null==a?void 0:a.label,children:r}),(0,b.jsx)(R.A,{row:!0,name:s.name,value:null===(n=s.value)||void 0===n?void 0:n.toString(),onChange:function(e){var n=e.target.value,r=o.find((function(e){return e.value.toString()===n}));p(t,r?r.value:n)},children:o.map((function(e){return(0,b.jsx)(C.A,{value:e.value.toString(),control:(0,b.jsx)(O.A,{color:"primary",style:null==a?void 0:a.input}),label:e.label},e.value.toString())}))}),d.touched&&d.error&&(0,b.jsx)(j.A,{children:d.error})]})},L=t(54758),W=t(62516),F=t(6218),B={marginBottom:"16px"},M={fontSize:"14px",color:"#4E606B"},V={fontSize:"16px",color:"#4E606B"},U=function(e){var n=e.name,t=e.label,r=e.options,o=e.customStyles,a=(0,u.Mt)(n),l=(0,i.A)(a,2),s=l[0],d=l[1];return(0,b.jsx)("div",{style:(0,c.A)((0,c.A)({},B),null==o?void 0:o.container),children:(0,b.jsxs)(N.A,{fullWidth:!0,error:d.touched&&Boolean(d.error),children:[(0,b.jsx)(L.A,{shrink:!0,style:(0,c.A)((0,c.A)({},M),null==o?void 0:o.label),children:t}),(0,b.jsx)(W.A,(0,c.A)((0,c.A)({},s),{},{variant:"outlined",fullWidth:!0,error:d.touched&&Boolean(d.error),inputProps:{style:(0,c.A)((0,c.A)({},V),null==o?void 0:o.input)},children:r.map((function(e){return(0,b.jsx)(F.A,{value:e.value,children:e.label},e.value)}))})),(0,b.jsx)(j.A,{children:d.touched&&d.error?d.error:""})]})})},H=function(e){return e.reduce((function(e,n){return e[n.name]="checkbox"!==n.type&&"",e}),{})},z=function(e){var n=e.reduce((function(e,n){if("required"===n.validation)if("checkbox"===n.type)e[n.name]=g.zM().oneOf([!0],"consent"==n.name?"You must provide your consent to continue":"".concat(n.label," must be checked"));else"email"===n.validationType?e[n.name]=g.Yj().email("".concat(n.label," must be a valid email")).required("".concat(n.label," is required")):"password"===n.validationType?e[n.name]=g.Yj().min(8,"".concat(n.label," should be of minimum 8 characters length")).required("".concat(n.label," is required")):e[n.name]=g.Yj().required("".concat(n.label," is required"));else if("checkbox"===n.type)e[n.name]=g.zM();else"email"===n.validationType?e[n.name]=g.Yj().email("".concat(n.label," must be a valid email")):"password"===n.validationType?e[n.name]=g.Yj().min(8,"".concat(n.label," should be of minimum 8 characters length")):e[n.name]=g.Yj();return e}),{});return g.Ik().shape(n)},q=function(e,n,t,r){var i;switch(e.type){case"text":return(0,b.jsx)(S,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),customStyles:null==n?void 0:n.text},e.name);case"checkbox":return(0,b.jsx)(T,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),customStyles:null==n?void 0:n.checkbox},e.name);case"radio":return(0,b.jsx)(P,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),options:e.options,customStyles:null==n?void 0:n.radio},e.name);case"select":return(0,b.jsx)(U,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),options:e.options,customStyles:null==n?void 0:n.select},e.name);case"button":return(0,b.jsx)(d.A,{style:(0,c.A)((0,c.A)({},(null==n?void 0:n.button)||{}),(null===(i=e.customStyles)||void 0===i?void 0:i.button)||{}),onClick:function(){return t&&t(e.action,e)},disabled:r,children:e.label},e.name);default:return null}},G=t(52473),K=t(5791),Y=t(81114),J=t(91408),Z=t(93593),X=t(21661),$=t(71e3),Q=t(19378),ee=t(691),ne=t(73371);function te(e,n){return Array.isArray(e)?e.map((function(e){return te(e,n)})):"object"==typeof e&&null!==e?Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=te(e[r],n)),t}),{}):e}function re(e,n){var t=(0,c.A)({},e);return n&&Object.keys(n).forEach((function(r){var i=e[r],o=n[r];i&&o&&"object"==typeof i&&"object"==typeof o&&!Array.isArray(i)&&!Array.isArray(o)?t[r]=re(i,o):t[r]=o})),t}function ie(e){var n=e.onCancel;return(0,b.jsx)(d.A,{onClick:n,style:{position:"absolute",top:5,right:5,minWidth:0,padding:"2px",lineHeight:1,fontSize:"18px",fontWeight:"bold"},children:(0,b.jsx)(X.h,{})})}var oe={formContainer:{padding:"16px",border:"1px solid #ccc",borderRadius:"4px",margin:"0 auto",background:"white",display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",width:"100%",minHeight:"100%",boxSizing:"border-box"},logo:{width:"100px",height:"auto",objectFit:"contain",display:"block",flexShrink:0,aspectRatio:"auto"},title:{fontSize:"20px",textAlign:"center"},message:{fontSize:"18px"},submitButton:{padding:"8px",width:"100%"},fieldStyles:{text:{container:{width:"100%"},input:{},label:{fontWeight:"medium"}},radio:{container:{width:"100%"},label:{marginBottom:"4px"}},checkbox:{container:{width:"100%",marginBottom:0},label:{marginBottom:"4px"}},select:{container:{width:"100%"},input:{},label:{fontWeight:"medium"}}}},ae=function(e){return re(oe,e||{})},le=function(e){var n,t,r,i,o,s,m,g,v,x,A,_,w=e.formConfig,y=e.afterSubmit,E=e.sourceOfRender,S=e.defaultValues,I=e.onCancel,C=w.display,k=(0,f.d4)((function(e){return{theme:e.theme}})).theme,j=C.logo_url||(null==k||null===(n=k.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==k||null===(r=k.palette)||void 0===r||null===(i=r.customViewer)||void 0===i?void 0:i.appLogo)||(null==k||null===(o=k.palette)||void 0===o||null===(s=o.customStyles)||void 0===s?void 0:s.viewerLogo)||(null==k||null===(m=k.palette)||void 0===m||null===(g=m.customStyles)||void 0===g?void 0:g.appLogo),T=C.customStyles,N=C.title,D=C.withLogo,R=C.fields,O=C.submitUrl,P=E!==h._.LANDING_PAGE&&C.can_reject,L=(null==w||null===(v=w.display)||void 0===v||null===(x=v.fields)||void 0===x?void 0:x.filter((function(e){return!0===e.pii})).map((function(e){return e.name})))||[],W=ae(T),F=E===h._.POPUP?(0,c.A)((0,c.A)({},W.formContainer),{},{width:"auto",minWidth:(null===(A=W.formContainer)||void 0===A?void 0:A.minWidth)||"300px",maxWidth:(null===(_=W.formContainer)||void 0===_?void 0:_.maxWidth)||"90vw"}):W.formContainer,B=(0,c.A)((0,c.A)({},H(R)),null!=S&&S.show&&(null==S?void 0:S.values)||{}),M=z(R),V=function(){var e=(0,l.A)((0,a.A)().m((function e(n,t){var r,i,o,l,s,u;return(0,a.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch(O,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then((function(e){return e.json()})).then((function(){t.resetForm(),t.setSubmitting(!1),y(n)})).catch((function(e){t.setSubmitting(!1)}));case 1:s=e.v,u=te((0,c.A)({},n),L),(0,K.recordEventWidthAdditionalParams)(Y.qW.FORM_ACTION,{event_attributes:{integration:null==w?void 0:w.integration_name,version_id:null===(r=(0,K.getGeneralTrackingData)())||void 0===r?void 0:r.version_id,form_configuration:{id:null==w?void 0:w.id,type:null==w?void 0:w.type,display_name:null==w?void 0:w.display_name,fields:null==C||null===(i=C.fields)||void 0===i?void 0:i.map((function(e){return e.name})),hidden_fields:null==C?void 0:C.hiddenFields},referrer_type:E,referrer_url:window.location.href,action_type:"submit",webhook_url:"identifyform"===(null===(o=w.type)||void 0===o?void 0:o.toLowerCase())?"https://capi.celero.io/crm/api/visitor/identify":null==w||null===(l=w.display)||void 0===l?void 0:l.submitUrl,webhook_payload:u,webhook_response:s}});case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,b.jsx)(u.l1,{initialValues:B,validationSchema:M,onSubmit:V,children:function(e){var n=e.isSubmitting;return(0,b.jsxs)(u.lV,{style:(0,c.A)((0,c.A)({},F),{},{position:"relative"}),children:[P&&(0,b.jsx)(ie,{onCancel:I}),D&&(0,b.jsx)("img",{style:W.logo,src:j,alt:"logo"}),(0,b.jsx)(p.A,{style:W.title,children:N}),R.map((function(e){return q(e,W.fieldStyles)})),(0,b.jsx)(d.A,{type:"submit",variant:"contained",color:"primary",disabled:n,style:W.submitButton,children:"Submit"})]})}})},ce=function(e){var n,t,r,d,m,v,x,A,_,w=e.formConfig,y=e.afterSubmit,E=e.sourceOfRender,S=e.defaultValues,I=e.onCancel,C=e.initialResponse,k=w.display,j=(0,f.d4)((function(e){return{shortenData:e.shortenData,theme:e.theme}})),T=j.shortenData,N=j.theme,D=k.logo_url||(null==N||null===(n=N.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==N||null===(r=N.palette)||void 0===r||null===(d=r.customViewer)||void 0===d?void 0:d.appLogo)||(null==N||null===(m=N.palette)||void 0===m||null===(v=m.customStyles)||void 0===v?void 0:v.viewerLogo)||(null==N||null===(x=N.palette)||void 0===x||null===(A=x.customStyles)||void 0===A?void 0:A.appLogo),R=k.customStyles,O=k.title,P=k.withLogo,L=k.fields,W=k.identityField,F=k.hiddenFields,B=void 0===F?[]:F,M=E!==h._.LANDING_PAGE&&k.can_reject,V=ae(R),U=Z.E.getIntegrationsNeededData(),K=L.find((function(e){return e.name.toLowerCase()===(null==W?void 0:W.toLowerCase())})),Y=K?(0,c.A)((0,c.A)({},H([K])),null!=S&&S.show&&(null==S?void 0:S.values)||{}):{},X=K?z([K]):void 0,Q={name:"otp",label:"Your one-time password",type:"text",validation:"required"},ee=(0,o.A)({},Q.name,""),ne=g.Ik().shape((0,o.A)({},Q.name,g.Yj().required("One-time password is required"))),te=1,re="",oe=(0,$.eM)(null==T||null===(_=T.company)||void 0===_?void 0:_.account_id),le={},ce=[],se="";if(C){var ue,de=C.access_status;if("RETURN_OTP_GENERATED"===de||"RETURN_OTP_EXPIRED"===de)te=2,re=(null===(ue=C.user_context)||void 0===ue?void 0:ue.session_id)||"",le=C.collectedData||{},"RETURN_OTP_EXPIRED"===de&&(se="OTP has expired. Please enter the new OTP.");else if("RETURN_GET_USER_FIELDS_NEEDED"===de){var pe,fe;te=3,re=(null===(pe=C.user_context)||void 0===pe?void 0:pe.session_id)||"",oe=(null===(fe=C.user_context)||void 0===fe?void 0:fe.access_token)||oe,le=C.collectedData||{};var me=C.user_fields_needed||[];ce=L.filter((function(e){var n=me.includes(e.name),t=B.includes(e.name);if(n&&!t)return!0;if(t){var r,i=null==S||null===(r=S.values)||void 0===r?void 0:r[e.name],o=U[e.name];return i||o}return!1}))}}var he=(0,s.useState)(te),ge=(0,i.A)(he,2),ve=ge[0],xe=ge[1],Ae=(0,s.useState)(le),be=(0,i.A)(Ae,2),_e=be[0],we=be[1],ye=(0,s.useState)(se),Ee=(0,i.A)(ye,2),Se=Ee[0],Ie=Ee[1],Ce=(0,s.useState)(re),ke=(0,i.A)(Ce,2),je=ke[0],Te=ke[1],Ne=(0,s.useState)((function(){return oe})),De=(0,i.A)(Ne,2),Re=De[0],Oe=De[1],Pe=(0,s.useState)(ce),Le=(0,i.A)(Pe,2),We=Le[0],Fe=Le[1],Be=function(e){var n;(Oe(e),e)&&(0,$.eK)(null==T||null===(n=T.company)||void 0===n?void 0:n.account_id,e)},Me=function(){var e=(0,l.A)((0,a.A)().m((function e(n,t){var r,i,l,s,u,d,p,f,m,h,g,v,x,A,b,_,E,I,C,k,j,N,D,R,O,P,F,M;return(0,a.A)().w((function(e){for(;;)switch(e.n){case 0:return b={},_=Z.E.getIntegrationsNeededData(),B.forEach((function(e){(null!=S&&S.values&&null!=S&&S.values[e]||window.contactNeededIntegrationData&&window.contactNeededIntegrationData[e]||_[e])&&(b[e]=(null==S?void 0:S.values)&&(null==S?void 0:S.values[e])||window.contactNeededIntegrationData&&window.contactNeededIntegrationData[e]||_[e])})),E=(0,o.A)({},W,n[W]),I=(0,c.A)((0,c.A)((0,c.A)({},b),n),E[W]?{identity:E}:{}),C={account_id:null===(r=window.contactNeededIntegrationData)||void 0===r?void 0:r.account_id,visitor_id:(null===(i=window.contactNeededIntegrationData)||void 0===i?void 0:i.visitor_id)||"NOVISITORID",integration:null===(l=window.contactNeededIntegrationData)||void 0===l?void 0:l.integration,celero_id:null===(s=window.contactNeededIntegrationData)||void 0===s?void 0:s.celero_id,version_id:null===(u=window.contactNeededIntegrationData)||void 0===u?void 0:u.version_id,access_type:null===(d=T.access_control)||void 0===d?void 0:d.min_stage,access_token:Re,user_input:JSON.stringify(I),user_context:JSON.stringify((0,c.A)({form_id:w.id,integration_id:w.integration_id,microsite_name:null==T||null===(p=T.versions[0])||void 0===p||null===(f=p.version_details)||void 0===f?void 0:f.name,account_id:null===(m=window.contactNeededIntegrationData)||void 0===m?void 0:m.account_id,visitor_id:(null===(h=window.contactNeededIntegrationData)||void 0===h?void 0:h.visitor_id)||"NOVISITORID",integration:null===(g=window.contactNeededIntegrationData)||void 0===g?void 0:g.integration,celero_id:null===(v=window.contactNeededIntegrationData)||void 0===v?void 0:v.celero_id,version_id:null===(x=window.contactNeededIntegrationData)||void 0===x?void 0:x.version_id,access_type:null===(A=T.access_control)||void 0===A?void 0:A.min_stage},je&&{session_id:je}))},e.p=1,Ie(""),e.n=2,G.A.visitorIdentify(C);case 2:if("RETURN_OTP_GENERATED"!==(k=e.v).access_status){e.n=3;break}return(null===(j=k.user_context)||void 0===j?void 0:j.session_id)&&Te(null===(N=k.user_context)||void 0===N?void 0:N.session_id),xe(2),t.setSubmitting(!1),e.a(2);case 3:if("RETURN_OTP_EXPIRED"!==k.access_status){e.n=4;break}return(null===(D=k.user_context)||void 0===D?void 0:D.session_id)&&Te(null===(R=k.user_context)||void 0===R?void 0:R.session_id),xe(2),Ie("OTP has expired. Please enter the new OTP."),t.setSubmitting(!1),e.a(2);case 4:if("ALLOWED"!==k.access_status){e.n=5;break}return null!==(O=k.user_context)&&void 0!==O&&O.access_token&&Be(k.user_context.access_token),Ie(""),y({response:k,payload:I}),e.a(2);case 5:if("RETURN_GET_USER_FIELDS_NEEDED"!==k.access_status){e.n=6;break}return null!==(P=k.user_context)&&void 0!==P&&P.access_token&&Be(k.user_context.access_token),we(n),F=k.user_fields_needed||[],M=L.filter((function(e){var n=F.includes(e.name),t=B.includes(e.name);if(n&&!t)return!0;if(t){var r,i=null==S||null===(r=S.values)||void 0===r?void 0:r[e.name],o=_[e.name];return i||o}return!1})),Fe(M),xe(3),t.setSubmitting(!1),e.a(2);case 6:Ie(k.message||"Access not allowed"),t.setSubmitting(!1),e.n=8;break;case 7:e.p=7,e.v,Ie("Something went wrong, please try again."),t.setSubmitting(!1);case 8:return e.a(2)}}),e,null,[[1,7]])})));return function(n,t){return e.apply(this,arguments)}}(),Ve=(0,c.A)((0,c.A)({},H(We)),null!=S&&S.show&&(null==S?void 0:S.values)||{});W&&_e[W]&&(Ve[W]=_e[W]);var Ue=z(We);return(0,b.jsxs)(b.Fragment,{children:[1===ve&&K&&X&&(0,b.jsx)(u.l1,{initialValues:Y,validationSchema:X,onSubmit:Me,children:function(e){var n=e.isSubmitting;return(0,b.jsxs)(u.lV,{onChange:function(){Se&&Ie("")},style:(0,c.A)((0,c.A)({},V.formContainer),{},{position:"relative"}),children:[M&&(0,b.jsx)(ie,{onCancel:I}),P&&D&&(0,b.jsx)("img",{style:V.logo,src:D,alt:"logo"}),(0,b.jsx)(p.A,{style:V.title,children:O}),q(K,V.fieldStyles),Se&&(0,b.jsx)(p.A,{color:"error",children:Se}),(0,b.jsx)(J.A,{type:"submit",variant:"contained",color:"primary",style:V.submitButton,isLoading:n,children:"Continue"})]})}}),2===ve&&(0,b.jsx)(u.l1,{initialValues:ee,validationSchema:ne,onSubmit:function(e,n){return Me((0,c.A)((0,c.A)({},_e),e),n)},children:function(e){var n,t=e.isSubmitting;return(0,b.jsxs)(u.lV,{onChange:function(){Se&&Ie("")},style:(0,c.A)((0,c.A)({},V.formContainer),{},{position:"relative"}),children:[M&&(0,b.jsx)(ie,{onCancel:I}),P&&D&&(0,b.jsx)("img",{style:V.logo,src:D,alt:"logo"}),(0,b.jsx)(p.A,{style:V.title,children:"Please check your email for your one-time passowrd"}),q(Q,(0,c.A)((0,c.A)({},V.fieldStyles),{},{text:(0,c.A)((0,c.A)({},null===(n=V.fieldStyles)||void 0===n?void 0:n.text),{},{container:{width:"100%"}})})),Se&&(0,b.jsx)(p.A,{color:"error",children:Se}),(0,b.jsx)(J.A,{type:"submit",variant:"contained",color:"primary",style:V.submitButton,isLoading:t,children:"Continue"})]})}},"otp-form"),3===ve&&(0,b.jsx)(u.l1,{initialValues:Ve,validationSchema:Ue,onSubmit:Me,children:function(e){var n=e.isSubmitting;return(0,b.jsxs)(u.lV,{style:(0,c.A)((0,c.A)({},V.formContainer),{},{position:"relative"}),children:[M&&(0,b.jsx)(ie,{onCancel:I}),P&&D&&(0,b.jsx)("img",{style:V.logo,src:D,alt:"logo"}),(0,b.jsx)(p.A,{style:V.title,children:O}),We.map((function(e){return B.includes(e.name)?null:q(e,V.fieldStyles)})),Se&&(0,b.jsx)(p.A,{color:"error",style:{marginBottom:"16px"},children:Se}),(0,b.jsx)(J.A,{type:"submit",variant:"contained",color:"primary",style:V.submitButton,isLoading:n,children:"Submit"})]})}})]})},se=function(e){var n,t,i,o,s,d,h,g,v=e.formConfig,x=e.afterSubmit,A=e.sourceOfRender,_=e.defaultValues,w=(0,f.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData,theme:e.theme}})),y=w.gdpr,E=w.shortenData,S=w.theme,I=v.display.logo_url||(null==S||null===(n=S.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==S||null===(i=S.palette)||void 0===i||null===(o=i.customViewer)||void 0===o?void 0:o.appLogo)||(null==S||null===(s=S.palette)||void 0===s||null===(d=s.customStyles)||void 0===d?void 0:d.viewerLogo)||(null==S||null===(h=S.palette)||void 0===h||null===(g=h.customStyles)||void 0===g?void 0:g.appLogo),C=v.display,k=C.customStyles,j=C.title,T=C.withLogo,N=C.fields,D=void 0===N?[]:N,R=v.display.message,O=ae(k),P=(0,c.A)((0,c.A)({},H(D)),null!=_&&_.show&&(null==_?void 0:_.values)||{}),L=z(D),W=function(){var e=(0,l.A)((0,a.A)().m((function e(n,t){var r,i,o,l,c,s,u,d,p,f,m,h,g,b,_,w;return(0,a.A)().w((function(e){for(;;)switch(e.n){case 0:if(s=void 0,"accept"===n&&(s=!0),"reject"===n&&(s=!1),(u=(0,K.getCeleroId)())||(d=ee.A.sessionStorage.getItem("celero_obj"))&&(u=null===(p=JSON.parse(d))||void 0===p?void 0:p.celero_id),u||(u=null===(f=(0,K.getGeneralTrackingData)())||void 0===f?void 0:f.celero_id),u){e.n=1;break}return e.n=1,ne.A.getFingerprint(!1).then((function(e){e&&e.celero_id&&((0,K.setCeleroId)(e.celero_id),u=e.celero_id)}));case 1:m=Z.E.getIntegrationsNeededData(),h=y.integration.data.visitor_param,g=y.integration.data.url_parameter,b=m[h],_=m[g+"_url_param"],w={account_id:null==E||null===(r=E.company)||void 0===r?void 0:r.account_id,visitor_id:b||"NOVISITORID",integration:y.integration.name,celero_id:u,version_id:(null==E||null===(i=E.versions[0].version_details)||void 0===i?void 0:i.uuid)||"",url_parameter:_,access_type:null===(o=E.access_control)||void 0===o?void 0:o.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==E||null===(l=E.versions[0])||void 0===l||null===(c=l.version_details)||void 0===c?void 0:c.name}),user_input:JSON.stringify({gdpr_consent_value:s})},G.A.visitorIdentify(w).then((function(e){var t,r,i,o,a;if(ee.A.sessionStorage.setItem(Q.$i,null==e?void 0:e.gdpr_track),x({gdpr_consent_value:s,response:e}),window.dispatchEvent(new CustomEvent("celeroGDPRFormSubmit",{detail:{gdpr_consent_value:s,response:e}})),(0,K.recordEventWidthAdditionalParams)(Y.qW.FORM_ACTION,{event_attributes:{integration:null==v?void 0:v.integration_name,version_id:null===(t=(0,K.getGeneralTrackingData)())||void 0===t?void 0:t.version_id,form_configuration:{id:null==v?void 0:v.id,type:null==v?void 0:v.type,display_name:null==v?void 0:v.display_name,fields:null==v||null===(r=v.display)||void 0===r||null===(i=r.fields)||void 0===i?void 0:i.map((function(e){return e.name})),hidden_fields:null==v||null===(o=v.display)||void 0===o?void 0:o.hiddenFields},referrer_type:A,referrer_url:window.location.href,action_type:n,webhook_url:null==v||null===(a=v.display)||void 0===a?void 0:a.submitUrl,webhook_payload:{gdpr_consent_value:s},webhook_response:e}}),(0,K.recordEventWidthAdditionalParams)(Y.qW.GDPR_CONSENT,{value:s,source:"gdprform"}),!s){var l,c,u=null===(l=y.integration)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.redirect_url;u&&(u.startsWith("https://")||u.startsWith("http://")||(u="https://"+u),window.location.href=u)}})).catch((function(e){}));case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,b.jsx)(u.l1,{initialValues:P,validationSchema:L,onSubmit:function(){},children:function(e){var n=e.isSubmitting;return(0,b.jsxs)(u.lV,{style:(0,c.A)((0,c.A)({},O.formContainer),{},{position:"relative"}),children:[T&&I&&(0,b.jsx)("img",{style:O.logo,src:I,alt:"logo"}),(0,b.jsx)(p.A,{style:O.title,children:j}),R&&(0,b.jsx)(m.$,{components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,b.jsx)(p.A,(0,c.A)((0,c.A)({},n),{},{style:O.message}))}},children:R}),D.filter((function(e){return"button"!==e.type})).map((function(e){return q(e,O.fieldStyles,W,n)})),D.some((function(e){return"button"===e.type}))&&(0,b.jsx)("div",{style:(0,c.A)({display:"flex",flexWrap:"wrap",gap:12,width:"100%",justifyContent:"center"},O.buttonsWrapper||O.fieldsWrapper||{}),children:D.filter((function(e){return"button"===e.type})).map((function(e){var t,r,i,o;return(0,b.jsx)("div",{style:(0,c.A)({display:"flex"},"object"!=typeof(null===(t=O.fieldStyles)||void 0===t?void 0:t.button)||Array.isArray(null===(r=O.fieldStyles)||void 0===r?void 0:r.button)?{}:(null===(i=O.fieldStyles)||void 0===i||null===(o=i.button)||void 0===o?void 0:o.container)||{}),children:q(e,O.fieldStyles,W,n)},e.name)}))})]})}})},ue=function(e){var n,t=e.formConfig,r=e.afterSubmit,i=e.sourceOfRender,o=e.defaultValues,a=e.onCancel,l=e.initialResponse,c=t.display;function u(){var e,n;(0,K.recordEventWidthAdditionalParams)(Y.qW.FORM_ACTION,{event_attributes:{integration:null==t?void 0:t.integration_name,version_id:null===(e=(0,K.getGeneralTrackingData)())||void 0===e?void 0:e.version_id,form_configuration:{id:null==t?void 0:t.id,type:null==t?void 0:t.type,display_name:null==t?void 0:t.display_name,fields:null==c||null===(n=c.fields)||void 0===n?void 0:n.map((function(e){return e.name})),hidden_fields:null==c?void 0:c.hiddenFields},referrer_type:i,referrer_url:window.location.href,action_type:"reject"}}),a()}switch((0,s.useEffect)((function(){var e,n;(0,K.recordEventWidthAdditionalParams)(Y.qW.OPEN_FORM,{event_attributes:{integration:null==t?void 0:t.integration_name,version_id:null===(e=(0,K.getGeneralTrackingData)())||void 0===e?void 0:e.version_id,form_configuration:{id:null==t?void 0:t.id,type:null==t?void 0:t.type,display_name:null==t?void 0:t.display_name,fields:null==c||null===(n=c.fields)||void 0===n?void 0:n.map((function(e){return e.name})),hidden_fields:null==c?void 0:c.hiddenFields},referrer_type:i,referrer_url:window.location.href}})}),[]),null===(n=t.type)||void 0===n?void 0:n.toLowerCase()){case"identifyform":return(0,b.jsx)(ce,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:u,initialResponse:l});case"gdprform":return(0,b.jsx)(se,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:u});default:return(0,b.jsx)(le,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:u})}}},51053:function(e,n,t){t.d(n,{_:function(){return r}});var r={POPUP:"popup",LANDING_PAGE:"landing page"}},52484:function(e,n,t){t.r(n);var r=t(26811);n.default=r.L},55737:function(e,n,t){t.d(n,{A2:function(){return s},bY:function(){return l},z4:function(){return c}});var r=t(20535),i=t(17141),o=t(812),a=t(85434),l=15,c=(0,r.A)((function(e){return{root:{display:"flex",alignItems:"center",gap:e.spacing(1),color:e.palette.text.secondary,fontSize:"0.875rem",textDecoration:"none","&:hover":{textDecoration:"underline"}},logo:{height:20,width:"auto"},poweredByCeleroLabel:{color:function(n){return n.ismobile?e.palette.getContrastText(n.background):"rgba(14, 32, 26, 0.84)"},fontSize:function(e){return(e.ismobile?10:16)+"px !important"},fontWeight:500,fontStretch:"normal",lineHeight:"21px",letterSpacing:0,textAlign:"center",height:function(e){return e.ismobile?"auto":21},paddingLeft:function(e){return e.ismobile?0:"6px"},paddingRight:function(e){return e.ismobile?0:"6px"}},celeroLogoClass:{marginLeft:3,height:function(e){return(e.ismobile?14:20)+"px"},"& path":{fill:function(n){return n.ismobile?e.palette.getContrastText(n.background):""}}}}})),s=(0,i.A)((function(){return{root:function(e){return{display:"flex",justifyContent:"center",alignItems:"center",alignSelf:e.ismobile?"flex-end":"center",backgroundColor:e.ismobile?"transparent":"white","&:hover":{backgroundColor:e.ismobile?"transparent":(0,a.e$)("#FFFFFF",.05)},boxShadow:e.ismobile?"none !important":"0px 8px 15px rgba(0, 0, 0, 0.1)",borderRadius:32,fontSize:24,fontWeight:500,textTransform:"none","&.MuiFab-root":{height:e.ismobile?l:52,marginBottom:e.ismobile?5:0,padding:e.ismobile?0:"0 16px",width:"fit-content",backgroundColor:e.ismobile?"transparent":"white","&:hover":{backgroundColor:e.ismobile?"transparent":(0,a.e$)("#FFFFFF",.05)}}}}}}))(o.A)},56924:function(e,n,t){t.d(n,{A:function(){return E}});var r=t(89379),i=t(5544),o=t(80045),a=t(49255),l=t(34730),c=t(26308),s=t(25728),u=t(98312),d=t(29297),p=t(64467),f=t(95792),m=t(20535),h=t(17141),g=(0,m.A)((function(e){return{TextField:{width:"100%","& > div":(0,p.A)((0,p.A)((0,p.A)({borderRadius:"16px",height:"80px",backgroundImage:"linear-gradient(to left top, #ecedf2, #e9eaef, #e5e7ed, #e2e4ea, #dee1e8)",boxShadow:"inset 6px 6px 10px 0px rgba(36, 65, 93, 0.2)"},"".concat(e.breakpoints.down("md")),{height:"50px"}),"& > fieldset",{border:0}),"& > input",(0,p.A)({textAlign:"center",fontSize:"30px",fontWeight:900,fontStretch:"normal",fontStyle:"normal",lineHeight:1.23,letterSpacing:"normal",color:"green"},"".concat(e.breakpoints.down("md")),{fontSize:"20px"}))},FormHelperText:{fontSize:12,paddingLeft:5,marginTop:0},FormControlStyle:{width:"100%"}}})),v=(0,h.A)((function(){return{root:{"&:hover":{background:"#F6F7F8"}}}}))(f.A),x=t(81114),A=t(89252),b=t(58523),_=t(27224),w=t(65983),y=["setFieldValue","setFieldTouched","name","value","error","className","handleCallBack","container","FormControlStyle","type","isWithTwoLines"],E=function(e){var n=e.setFieldValue,t=e.setFieldTouched,p=e.name,f=e.value,m=e.error,h=e.className,E=e.handleCallBack,S=void 0===E?function(){}:E,I=e.container,C=e.FormControlStyle,k=e.type,j=e.isWithTwoLines,T=(0,o.A)(e,y),N=g(),D=(0,a.useState)(!1),R=(0,i.A)(D,2),O=R[0],P=R[1],L=(0,_.j7)(),W={endAdornment:"password"===k&&(0,w.jsx)(l.A,{position:"end",children:(0,w.jsx)(v,{onClick:function(){P(!O)},disableRipple:!0,children:O?(0,w.jsx)(A.A,{}):(0,w.jsx)(b.A,{})})})},F=j?2:1;return(0,w.jsxs)(c.A,{error:!!m,className:(0,d.A)(N.FormControlStyle,C),children:[(0,w.jsx)(s.A,(0,r.A)({className:h,id:"outlined-basic",variant:"outlined",value:f,onChange:function(e){e.target.value.indexOf("\n")>-1?L.submitForm():(n(p,e.target.value),t(p,!0,!1)),S(p,e.target.value,I,x.wz.TEXT_FIELD)},InputProps:W,type:O?"text":k,multiline:j,rows:F},T)),m&&(0,w.jsx)(u.A,{className:N.FormHelperText,error:!0,children:m})]})}},57161:function(e,n,t){t.d(n,{H:function(){return r}});var r="SET_MARKETO_FORM_DATA"},58651:function(e,n,t){t.d(n,{e:function(){return o.e},a:function(){return a}});var r=t(81114),i=t(5791),o=t(80922),a=function(e,n){return function(t){var a=r.qW.CLOSE_SEARCH,l={};e&&(a=r.qW.OPEN_SEARCH,l={source:n}),(0,i.recordEventWidthAdditionalParams)(a,l),t({type:o.e,payload:{isOpen:e}})}}},60997:function(e,n,t){t.d(n,{K:function(){return r}});var r="SET_OPEN_TOOLTIP"},62912:function(e,n,t){t.d(n,{A:function(){return W},k:function(){return P}});var r=t(89379),i=t(5544),o=t(49255),a=t(21430),l=t(16976),c=t(74859);function s(e,n,t,i,o,a,l){var s={celero_id:e,account_id:t,context:(0,r.A)((0,r.A)({},a&&{microsite:a}),{},{params:(0,r.A)((0,r.A)({feed_name:n},o),{},{model:i||"default"})},l?[{suggestion:{text:l}}]:[])};return c.Yq.post("/feed/getrelated",s)}var u=t(72514),d=t(93690),p=t(71551),f=t(20535),m=t(91934),h=t(84899),g=t(47081),v=t(97094),x=t.n(v),A=t(81076),b=t(60723),_=t(65983),w=(0,f.A)((function(){return{carouselContainer:{width:"100%"},carouselItem:{display:"flex",alignItems:"center",justifyContent:"center"},cardWrapper:{width:"100%",height:"100%"},gridContainer:{display:"flex",justifyContent:"center"}}})),y=function(e){var n=e.cards,t=w(),r=(0,o.useRef)(null),a=(0,o.useState)(3),l=(0,i.A)(a,2),c=l[0],s=l[1];(0,o.useEffect)((function(){var e=new ResizeObserver((function(){if(r.current){var e=r.current.getBoundingClientRect().width;s(e<240?1:e<640?2:3)}}));return r.current&&e.observe(r.current),function(){r.current&&e.unobserve(r.current)}}),[r]);var u=function(e,n){for(var t=[],r=0;r0?{short:I.hash,page_number:e.context.page_number}:null,ve=function(){var e,n,t,r;(e=(0,k.getCeleroId)(),n=ne,t=ie,r={celero_id:e,account_id:n,model:t,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"},c.Yq.post("/feed/chat",r)).then((function(e){e&&e.data&&Z(e.data)})).finally((function(){ee(!1)}))},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s((0,k.getCeleroId)(),R,ne,ie,(0,r.A)((0,r.A)({},re),{},{ui:ae}),ge,void 0).then((function(e){if(e.data&&e.data.sections){var n=e.data.sections.find((function(e){return"cards"===e.type}));if(n){var t,r=function(e){var n=new Map;return null==e||e.forEach((function(e,t){n.set(e.eid,t)})),n}(n.elements);if(se)null===(t=n.elements)||void 0===t||t.splice(se);U(e.data),me(r)}}})).catch((function(e){var n;null!=e&&null!==(n=e.message)&&void 0!==n&&n.includes("404")&&U(null)})).finally((function(){G(!1);var n={recommendation_list:V,feed_name:R,account_id:ne,params:he},t=e?"Refresh Feed":"Open Feed";(0,k.recordEventWidthAdditionalParams)(t,n),le&&ve()}))};(0,o.useImperativeHandle)(n,(function(){return{loadFeedElements:xe}}),[xe]),(0,o.useEffect)((function(){R&&ne&&xe()}),[ne]);var Ae=(0,o.useRef)(),be=function(){var e=Ae.current,n=e.scrollTop/(e.scrollHeight-e.clientHeight),t={recommendation_list:V,feed_name:R,account_id:ne,value:Math.round(100*n)/100,params:he};(0,k.recordEventWidthAdditionalParams)("Scroll Feed",t)},_e=(0,o.useCallback)((0,l.A)(be,1e3),[be]);(0,o.useEffect)((function(){var e=Ae.current;return e&&e.addEventListener("scroll",_e),function(){e&&e.removeEventListener("scroll",_e)}}),[q]);null===(w=window)||void 0===w||null===(y=w.location)||void 0===y||null===(S=y.href)||void 0===S||S.includes("/s/");return(0,_.jsxs)("div",{ref:Ae,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"==ue?"hidden":"auto"},children:[le&&(0,_.jsx)(T.A,{data:J,isLoading:Q,feedCardsMap:fe,feedElements:V,color:L}),q?"carousel"==ae?(0,_.jsx)("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)(E.A,{style:{fontSize:26},children:O})}):(0,_.jsx)(_.Fragment,{}):V?(0,_.jsx)("div",{style:{height:"100%",width:"100%",maxWidth:1190},children:(0,_.jsx)(C,{data:V,scroll:ue,color:L,onSuggestionClick:function(e,n){var t={type:"suggestion",value:n,recommendation_list:V};(0,k.recordEventWidthAdditionalParams)("Click Feed",t),s((0,k.getCeleroId)(),R,ne,ie,(0,r.A)((0,r.A)({},re),{},{ui:ae}),ge,e).then((function(e){var n;U(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:e.data)}))},onCardClick:function(e,n){for(var t={type:"card",value:n,recommendation_list:V,params:(0,r.A)({searchParams:re},he)},o=new URL(e),l=a.parse(o.search),c=Object.keys(l),s=a.parse(window.location.search),u=0,d=Object.entries(s);u-1}));if(r){var s=null;switch(r.function){case"getValue":s=1e3*Math.floor(null!==(n=null===(t=l.get(d))||void 0===t?void 0:t.currentTime)&&void 0!==n?n:0);break;case"getTotal":s=l.get(d).total}if(s&&(0,a.g)(s,r.value,r.condition)){var u,p={eventName:"Video"===e.type?o.qW.VIDEO_PLAYED:o.qW.PLAY_AUDIO,payload:(0,i.A)((0,i.A)({},null===(u=l.get(d))||void 0===u?void 0:u.currentMediaData),{},{functionPassed:r.function,valuePassed:r.value})};window.customEventsHandler&&window.customEventsHandler(p)}}}))}},63547:function(e,n,t){t.d(n,{r:function(){return r}});var r="SET_LOADER"},63962:function(e,n,t){t.d(n,{h:function(){return f}});var r=t(5544),i=t(49255),o=t(47081),a=t(57957),l=t(74859),c=t(91943),s=t(8737),u=t(691),d=t(65983),p=new RegExp("media.celero.io","g");function f(e){var n;return null!==(n=window)&&void 0!==n&&n.celeroData?e.replace(p,window.celeroData.domain):e.replace(p,window.location.hostname)}n.A=function(){var e=(0,i.useState)(!1),n=(0,r.A)(e,2),t=n[0],p=n[1],m=(0,o.wA)();l.Ay.interceptors.response.use((function(e){return JSON.parse(f(JSON.stringify(e)))}),(function(e){var n=e.config,t=e.response,r=void 0===t?{}:t,i=r.status,o=void 0===i?"":i,l=r.data,s=void 0===l?{}:l;r.statusText;if(function(e){var n,t,r=e.config,i=e.response;(0,a.ZI)('Axios Interceptor Error - method "'.concat(r.method,'" URL "').concat(r.baseURL).concat(r.url,'"'),{method:null==r||null===(n=r.method)||void 0===n?void 0:n.toUpperCase(),url:"".concat(null==r?void 0:r.baseURL).concat(null==r?void 0:r.url),status:(null==i?void 0:i.status)||"Unknown",statusText:(null==i?void 0:i.statusText)||"Unknown Error",detail:(null==i||null===(t=i.data)||void 0===t?void 0:t.detail)||"No detail provided"})}(e),o===c.pR&&n&&!n.__isRetryRequest){if("User account is disabled."===s.detail)return u.A.localStorage.removeItem("token"),u.A.localStorage.removeItem("accessToken"),u.A.localStorage.removeItem("loggedIn"),u.A.localStorage.removeItem("refreshToken"),void(0,a.vx)(e,m,s.detail)}else o===c.se&&n&&!n.__isRetryRequest?window.location.redirect("/"):o===c.lV||c.n;return Promise.reject(e)}));return(0,d.jsx)("div",{children:(0,d.jsx)(s.A,{variant:"error",verticalPosition:"bottom",horizantalPosition:"center",message:"Something went wrong!",isOpen:t,onClose:function(){p(!1)}})})}},68240:function(e,n,t){t.d(n,{G:function(){return i},X:function(){return o}});var r=t(12815),i=function(e,n,t){return function(i){i({type:r.h,payload:{message:e,severity:n,isOpen:t}})}},o=function(){return function(e){e({type:r.U,payload:{message:null,severity:null,isOpen:!1}})}}},68292:function(e,n,t){t.r(n),t.d(n,{default:function(){return B}});var r=t(49255),i=t(80045),o=t(24765),a=t(89379),l=t(5544),c=t(47081),s=t(63592),u=t(64467),d=t(81114),p=t(4134),f=t(63055),m=!1,h=function(e,n,t,r,i){var o="VIDEO"===n;e.forEach((function(e,n){e.id="CE".concat(n)}));var l={},c=new Map,s=void 0;return e.forEach((function(e){var n,r;if(null!=e&&null!==(n=e.name)&&void 0!==n&&n.includes("gate_dialog")&&(s=JSON.parse(JSON.stringify(e))),!m){var h=function(e,n,t){var r=e.action_obj;if(!r)return!1;if("show_integration_form"===(null==r?void 0:r.key)){var i,o=null==r||null===(i=r.additional_data)||void 0===i?void 0:i.integration_form_id;if(o){var a,l,c=e.form||(null==t?void 0:t.find((function(e){return e.id==o})));if(c)return"optimonk"===(null==c||null===(a=c.data)||void 0===a||null===(l=a.platform)||void 0===l?void 0:l.toLowerCase())}}return!1}(e,0,i);h&&((0,p.oN)(),m=!0)}e.is_enabled&&(e.conditions&&(null===(r=e.conditions)||void 0===r||r.forEach((function(n,r){var i;null===(i=n.group_events)||void 0===i||i.forEach((function(n){var i=n.event;n.rules&&o&&i.toLowerCase().includes("video")&&!Boolean(n.rules.findIndex((function(e){return"video_link"===e.key}))>-1)&&n.rules.push({key:"video_link",value:t,condition:"equal"}),function(e,n,t){if(-1!==[d.qW.VIDEO_PLAYED,d.qW.PLAY_AUDIO].indexOf(n.event)){var r=n.rules&&n.rules.find((function(e){return["audio_src","video_link"].indexOf(e.key)>-1}));if(r&&n.rules&&n.rules.find((function(e){return"time"===e.key&&f.AP.indexOf(e.function||"")>-1}))){var i=(0,a.A)((0,a.A)({},n),{},{type:"audio_src"===r.key?"Audio":"Video",groupIndex:t});e.has(r.value)?e.get(r.value).push(i):e.set(r.value,[i])}}}(c,n,r);var s=l[i],p=s&&s[e.id];s?p&&-1===s[e.id].indexOf(r)?s[e.id].push(r):s[e.id]=[r]:l[i]=(0,u.A)({},e.id,[r])}))}))))})),(0,f.F)(c),{mapResult:l,customEvents:e,mediaMap:c,gateCustomEvent:s}},g=t(20253),v=t(28216),x=t(93593),A=t(28439),b=t(5791),_=t(79218),w=t(29732),y=t(5084),E=t(32388),S=t(55284),I=t(89004),C=t(12558),k=t(20535),j=t(85434),T=(0,k.A)((function(e){return{dialogTitle:{color:e.palette.customStyles.primaryTextColor,fontSize:"24px",fontWeight:"bold",letterSpacing:"-0.33px",lineHeight:"32px"},paper:{height:"268px",maxWidth:"632px",width:"632px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 12px 24px 0 rgba(44,39,56,0.06), 0 32px 64px 0 rgba(44,39,56,0.08)",padding:"30px"},dialogSubTitle:{color:e.palette.customStyles.primaryTextColor,fontSize:17,letterSpacing:"0",lineHeight:"19px",marginTop:17},dialogTitleWrapper:{flex:1,padding:0},backdrop:{backgroundColor:"rgba(78,96,107,0.72)"},cancelButton:{height:"36px",width:"162px",borderRadius:"4px",color:e.palette.customStyles.secondaryTextColor,backgroundColor:e.palette.customStyles.primaryTextColor,fontSize:16,lineHeight:"21px",textTransform:"none","&:hover":{backgroundColor:(0,j.X4)(e.palette.customStyles.primaryTextColor,.8)}},titleWithCloseWrapper:{display:"flex",justifyContent:"space-between"},closeIcon:{cursor:"pointer"},dialogContent:{padding:"0px","&.MuiDialogContent-root":{padding:"0px"}}}})),N=t(21661),D=t(65983),R=function(e){var n=T(),t=n.dialogTitle,r=n.paper,i=n.dialogSubTitle,o=n.dialogTitleWrapper,a=n.backdrop,l=n.cancelButton,c=n.titleWithCloseWrapper,s=n.closeIcon,u=n.dialogContent,d=e.isOpen,p=e.closeDialog,f=e.title,m=e.subTitle,h=e.buttonText,g={classes:{root:r}},v={classes:{root:a}};return(0,D.jsxs)(_.A,{open:d,onClose:p,PaperProps:g,BackdropProps:v,disableEnforceFocus:!0,children:[(0,D.jsx)(w.A,{className:o,children:(0,D.jsxs)("div",{className:c,children:[(0,D.jsxs)(y.A,{className:t,children:[" ",f]}),(0,D.jsx)(E.A,{onClick:p,className:s,children:(0,D.jsx)(N.h,{})})]})}),(0,D.jsx)(S.A,{className:u,children:(0,D.jsx)(y.A,{className:i,children:m})}),(0,D.jsx)(I.A,{children:(0,D.jsx)(C.A,{className:l,onClick:p,variant:"contained",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:h})})]})},O=t(27772),P=["index","group"],L=["timeoutRef"],W=function(){var e=(0,c.d4)((function(e){return{customEventsStore:e.customEvents}})).customEventsStore,n=(0,c.wA)(),t=(0,r.useRef)([]),u=(0,r.useRef)([]),f=(0,r.useRef)([]),m=(0,r.useState)(!1),h=(0,l.A)(m,2),_=h[0],w=h[1],y=function(){w(!1)},E=function(e,n,t){var r,i,o;null===(r=u.current[e])||void 0===r||null===(i=r.conditions[n])||void 0===i||null===(o=i.group_events)||void 0===o||o.splice(t,1)},S=function(e){var t;if("MARKETO"===("object"==typeof e.external_integration?null===(t=e.external_integration)||void 0===t?void 0:t.name:"")){var r,i;if("self"===e.data.platform)!function(e){if(e){var n=e.data.form_id;if(null!==n){if(null!=e&&e.is_progressive&&window.mktoSubmittedForms&&window.mktoSubmittedForms.includes(n))return void w(!0);var t=0,r=setInterval((function(){var e=s.A.showMarketFrom(n);clearInterval(r),e&&clearInterval(r),10===++t&&clearInterval(r)}),200)}}}(e);else if("optimonk"===(null===(r=e.data)||void 0===r||null===(i=r.platform)||void 0===i?void 0:i.toLowerCase())){var o,l=null===(o=e.data)||void 0===o?void 0:o.jsevent_trigger_to_show_form;l&&(A.A.fireEvent(l),x.E.dispatchCustomEvent(l))}}else{var c,u,d=null===(c=e.data)||void 0===c||null===(u=c.platform)||void 0===u?void 0:u.toLowerCase();if("optimonk"===d){var p,f=null===(p=e.data)||void 0===p?void 0:p.jsevent_trigger_to_show_form;f&&(A.A.fireEvent(f),x.E.dispatchCustomEvent(f))}else"celero"===d&&n((0,O.j)({open:!0,config:(0,a.A)((0,a.A)({},e.data),{},{id:e.id,integration_name:e.integration_name,integration_id:e.exteranl_integration}),defaultValues:{show:!1,values:{}}}))}},I=function(n,t,r){if(0===n.group_events.length)if(function(e){var n;if(e.recurrence||-1===f.current.indexOf(e.id)){var t={name:e.name};switch((0,b.recordEventWidthAdditionalParams)(d.qW.FIRE_JS_EVENT,t),A.A.fireEvent(e.name),x.E.dispatchCustomEvent(e.name),null===(n=e.action_obj)||void 0===n?void 0:n.key){case"show_drift_widget":v.A.getInstance()&&v.A.setVisibility(!0);break;case"trigger_js_event":var r,i,o=null===(r=e.action_obj)||void 0===r||null===(i=r.additional_data)||void 0===i?void 0:i.event;if(!o)break;var a={name:o};(0,b.recordEventWidthAdditionalParams)(d.qW.FIRE_JS_EVENT,a),A.A.fireEvent(o),x.E.dispatchCustomEvent(o);break;case"show_integration_form":var l=e.form;l&&S(l)}}}(t),t.recurrence){var i=+t.id.split("E")[1];u.current[i].conditions[r]=JSON.parse(JSON.stringify(e.customEvents[i].conditions[r]))}else f.current.push(t.id)},C=function(e,n){var t,r=e.split("__"),i=n,a=(0,o.A)(r);try{for(a.s();!(t=a.n()).done;){var l=t.value;if(!i||"object"!=typeof i||!(l in i))return;i=i[l]}}catch(e){a.e(e)}finally{a.f()}return i};return window.customEventsHandler=function(n){var r,o,l=n.eventName,c=(0,a.A)({},e.eventsMap.all)||{},s=(0,a.A)({},e.eventsMap[l])||{};s=(0,p.rL)(c,s),r=n,(o=d.dn[r.eventName])&&t.current.forEach((function(e,n){if(-1!==o.itCancelEvents.indexOf(e.event)){var i=!1,a=[];e.rules.forEach((function(e){-1!==o.cancelDependencyParams.indexOf(e.key)&&a.push(e)}));for(var l=0;l0;return(0,r.useEffect)((function(){var e,t=h(n.custom_events,n.conversion_type,n.base_url);s((e={customEvents:t.customEvents,eventsMap:t.mapResult,mediaMap:t.mediaMap},function(n){n({type:F.p,payload:(0,a.A)({},e)})}))}),[n,o,l]),(0,r.useEffect)((function(){(i.customEvents||[]).forEach((function(e){var n;if("show_integration_form"===(null==e||null===(n=e.action_obj)||void 0===n?void 0:n.key)){var t,r=o.find((function(n){var t,r;return n.id===(null==e||null===(t=e.action_obj)||void 0===t||null===(r=t.additional_data)||void 0===r?void 0:r.integration_form_id)}));if(r&&"MARKETO"==(null===(t=r.external_integration)||void 0===t?void 0:t.name)){var i;window.mktoFormsIds=window.mktoFormsIds||new Set;var a=null==r||null===(i=r.data)||void 0===i?void 0:i.form_id;a&&null!==a&&window.mktoFormsIds.add(+a)}}}))}),[o,i.customEvents,n,l]),(0,r.useEffect)((function(){window.customEventsLoaded=!0}),[n]),!d||u?null:(0,D.jsx)(W,{})}},68494:function(e,n,t){t.d(n,{Jt:function(){return i},eh:function(){return a},n:function(){return r},x$:function(){return o}});var r="REGISTER_FORM",i="REGISTER_FORMS_BATCH",o="SET_ACCESS_CONTROL_FORM",a="CLEAR_FORMS"},70035:function(e,n,t){t.r(n),t.d(n,{default:function(){return v}});var r=t(49255),i=t(95792),o=t(60723),a=t(31740),l=t(79218),c=t(32388),s=t(16263),u=t(64467),d=(0,t(20535).A)((function(e){return{dialogContainerStyle:{display:"flex",height:"100%",backgroundColor:"#F8F8F8"},contentWrapper:{display:"flex"},iconsWrapper:{position:"fixed",right:"55px",top:"120px",display:"flex",flexDirection:"column"},openNewWidowIconStyle:{zIndex:e.zIndex.modal+2,backgroundColor:"#FFFFFF !important",height:"56px",width:"56px",boxShadow:"0 10px 10px 0 rgba(39,49,56,0.1)","&:hover":{backgroundColor:"#FFFFFF !important"}},closeIconButtonStyle:{zIndex:e.zIndex.modal+2,backgroundColor:"#FFFFFF !important",marginBottom:"22px !important",height:"56px",width:"56px",boxShadow:"0 10px 10px 0 rgba(39,49,56,0.1)","&:hover":{backgroundColor:"#FFFFFF !important"}},backdrop:{backgroundColor:"rgba(78,96,107,0.72)"},paper:(0,u.A)({margin:"0px !important",width:"100% !important",height:"100% !important",maxHeight:"100% !important",borderRadius:"16px !important",maxWidth:"100% !important",overflow:"hidden !important"},"".concat(e.breakpoints.down("md")," and (orientation: portrait)"),{maxWidth:"100%"}),root:{margin:"97px 80px 37px 80px",zIndex:e.zIndex.modal+120+" !important"},iconImg:{width:"32px",height:"32px"}}})),p=t(21661),f=t(91260),m=t(88960),h=t(5791),g=t(65983),v=function(e){var n=d(),t=n.dialogContainerStyle,u=n.contentWrapper,v=n.openNewWidowIconStyle,x=n.closeIconButtonStyle,A=n.root,b=e.openExternalLinkTooltip,_=e.closeDialogTooltip,w=e.handleCloseIframeDialog,y=e.handleOpenLinkExternal;return(0,r.useEffect)((function(){e.openIframeDialog&&e.setDialogStartTime(performance.now())}),[e.openIframeDialog]),(0,g.jsxs)(l.A,{open:e.openIframeDialog,onClose:e.handleCloseIframeDialog,TransitionComponent:s.L,disableEnforceFocus:!0,classes:{root:A},BackdropProps:{classes:{root:n.backdrop}},PaperProps:{classes:{root:n.paper}},children:[(0,g.jsx)(o.Ay,{container:!0,spacing:0,className:t,children:(0,g.jsx)(o.Ay,{item:!0,xs:12,className:u,children:(0,g.jsx)(o.Ay,{item:!0,xs:12,md:12,children:!e.isLoading&&(0,g.jsx)(g.Fragment,{children:e.isIframeLoadable?e.renderContentOfDialog():(0,g.jsx)(m.A,{handleOpenLinkExternal:y,iframeSrc:e.urlSrcWithOutParams,isPreview:h.isPreview})})})})}),e.openIframeDialog&&(0,g.jsxs)("div",{id:"lololololol",className:n.iconsWrapper,children:[(0,g.jsx)(a.A,{title:_,children:(0,g.jsx)(i.A,{className:x,onClick:w,children:(0,g.jsx)(c.A,{className:n.iconImg,children:(0,g.jsx)(p.h,{})})})}),(0,g.jsx)(a.A,{title:b,children:(0,g.jsx)(i.A,{className:v,onClick:y,children:(0,g.jsx)(c.A,{className:n.iconImg,children:(0,g.jsx)(f.ReactComponent,{})})})})]})]})}},70609:function(e,n,t){t.d(n,{Ay:function(){return Ee},g7:function(){return ye}});var r=t(89379),i=t(64467),o=t(60436),a=t(91212),l=t(10467),c=t(5544),s=t(49255),u=t(95792),d=t(31740),p=t(73952),f=t(81076),m=t(97997),h=t(29297),g=t(20535),v=t(13989),x=t(17141),A=t(85434),b=t(65278),_=t(7220),w=t(26468),y=t(30612),E=t(76892),S=t(70432),I=t(87162),C=t(42143),k=t(88119),j=t(65983),T=((0,g.A)((function(e){return{viewerTop:(0,i.A)({top:function(e){return"".concat(e.topValue,"px")},bottom:0,left:function(e){return"".concat(e.thumbnailsOpened?180:0,"px")}},e.breakpoints.down("sm"),{left:"0px !important"}),viewer:(0,i.A)((0,i.A)((0,i.A)({background:"".concat(e.palette.customViewer.viewerBackGroundColorDocument," none repeat scroll 0 0"),position:function(e){return e.contentPosision},right:0,overflowX:"auto",overflowY:"auto",lineHeight:0,margin:0,padding:0,outline:"none"},e.breakpoints.down("md"),{alignItems:"center",display:"block"}),"& .page",{margin:function(e){return e.isViewerInWebsiteMode?0:"10px auto 10px"}}),"&.layout-continuous .page",{margin:function(e){return e.isViewerInWebsiteMode?0:"5px auto 5px"}}),overlay:{width:"100%",height:"100%",position:"absolute",zIndex:10,visibility:"hidden"},wrapper:(0,i.A)({position:"relative",verticalAlign:"middle",lineHeight:"normal",display:"flex",justifyContent:"center",height:"100%"},e.breakpoints.down("md"),{display:"flex",height:"95%"}),contentContainer:{transformOrigin:"top center",transform:function(e){return"translateX(".concat(e.transformValues.translateX,"px)\n translateY(").concat(e.transformValues.translateY,"px) scale(").concat(e.transformValues.scale,")")}},page:{boxShadow:"1px 1px 4px rgba(120, 120, 120, 0.5)",display:"block",overflow:"hidden",backgroundColor:"#fff"},svgWrapperStyle:{height:"100%","& > div":{height:"100%"}},videoContentWrapperStyle:{display:"flex",marginTop:function(e){return"calc(28px + ".concat(e.topValue,"px)")},marginLeft:55,paddingBottom:52,width:"calc(100vw - 300px)",height:function(e){return"calc(100vh - 28px - ".concat(e.topValue,"px)")}},videoContentMobileWrapperStyle:(0,i.A)({display:"flex",marginTop:function(e){return"".concat(e.topValue,"px")},width:"100vw",height:"100vh"},"".concat(e.breakpoints.down("md")," and (orientation: portrait)"),{height:"50vh"}),previewModeMessage:{position:"sticky",lineHeight:2,top:0,zIndex:5e3,color:"black",fontSize:16,backgroundColor:"white",textAlign:"start"},infoAlert:{color:"".concat(e.palette.customViewer.viewerPrimaryTextColor," !important"),backgroundColor:"".concat((0,A.X4)(e.palette.customViewer.viewerPrimaryColor,.25)," !important")},infoIconStyle:{color:e.palette.customViewer.viewerPrimaryColor}}})),(0,g.A)((function(e){return{wrapper:{display:"flex",flexDirection:"row",height:"100%",alignItems:"center",backgroundColor:e.palette.customViewer.viewerBarColor},menuItem:{color:e.palette.getContrastText(e.palette.customViewer.viewerBarColor),textAlign:"center",margin:"0 2px",cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"row",height:"100%",padding:"5px",borderRadius:"2px","&:hover":{color:e.palette.customViewer.viewerPrimaryColor}},popoverContent:{display:"flex",flexDirection:"column",gap:"5px",width:250,padding:20,backgroundColor:e.palette.customViewer.viewerBarColor},menuIcon:{width:"24px",height:"24px",filter:"".concat((0,C.hexToCSSFilter)((0,k.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter)},menuIconButton:{"&:hover":{background:"none"}}}}))),N=(0,g.A)((function(e){return{logoWrapperWithoutMinWidth:{maxWidth:"129px",height:"39px",margin:0,display:"flex",alignItems:"center"},logoWrapperStyle:{maxHeight:"50px",margin:0,display:"flex",alignItems:"center",width:"129px",justifyContent:"center"},logoStyle:{maxHeight:"50px",maxWidth:"129px",objectFit:"cover"},mobileLogo:{maxWidth:"118px",maxHeight:"48px"},actionsDiv:{display:"flex"},mobileViewerBar:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:e.spacing(3)},readLaterPopUp:(0,i.A)({order:2,marginRight:"24px"},"".concat(e.breakpoints.up("sm")),{paddingTop:12}),actionsGrid:{display:"flex",alignItems:"center",justifyContent:"flex-end"},fileNameGrid:{display:"flex",alignItems:"center"},svgDiv:{display:"flex","& *":{fill:e.palette.customViewer.viewerPrimaryTextColor,maxWidth:"24px",maxHeight:"24px"}},actionButton:{maxHeight:"50px",borderRadius:2,filter:"".concat((0,C.hexToCSSFilter)((0,k.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,A.X4)(e.palette.basicColors.black,.3)}},viewerBar:{display:"flex",justifyContent:"flex-end",gap:e.spacing(1)},thumbnailsIcon:{maxHeight:"50px",borderRadius:2,filter:"".concat((0,C.hexToCSSFilter)((0,k.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,A.X4)(e.palette.basicColors.black,.3)},"& > span > svg":{width:"24px",height:"24px"}},barIcon:{maxHeight:"50px",borderRadius:2,filter:"".concat((0,C.hexToCSSFilter)((0,k.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,A.X4)(e.palette.basicColors.black,.3)}},readLaterContainer:{marginLeft:"24px"},enhancedToolBarStyle:(0,i.A)({width:"100%",minHeight:I.Hi},"".concat(e.breakpoints.down("sm")),{minHeight:I.O5}),topBarContents:{display:"flex",flexGrow:1,justifyContent:"space-between"},mobileMenuIcon:{padding:0,"&:hover":{background:"none"}},openMobileMenuIcon:{width:"24px",height:"24px",filter:"".concat((0,C.hexToCSSFilter)((0,k.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{background:"none"}},ribbonContainerStyle:(0,i.A)({display:"flex",alignItems:"center",zIndex:e.zIndex.appBar,width:"100%",minHeight:"".concat(I.Hi,"px !important")},"".concat(e.breakpoints.down("sm")),{minHeight:"".concat(I.O5,"px !important")}),ribbonContainerStyleWithReview:{boxShadow:"0 -2px 5px 0 rgb(78 96 107 / 13%)"}}})),D=function(e){return(0,j.jsx)(b.A,(0,r.A)((0,r.A)({},e),{},{sx:{alignItems:"center",backgroundColor:function(e){return e.palette.customViewer.viewerBarColor},boxShadow:"0 4px 20px 0 rgba(0,27,56,0.08)",zIndex:function(n){return"true"===e.should_app_bar_be_in_top?n.zIndex.modal+2:n.zIndex.appBar},position:e.position,"@media only screen and (max-width: 600px)":{minHeight:I.O5}}}))},R=(0,x.A)((function(e){return{root:(0,i.A)((0,i.A)({padding:"0 21px 0 21px"},"".concat(e.breakpoints.down("md")," and (orientation: portrait)"),{padding:"0 10 0 10px"}),"".concat(e.breakpoints.down("sm")),{padding:"8px 21px 8px 21px"})}}))(_.A),O=((0,x.A)((function(e){return{root:{height:"50%",backgroundColor:e.palette.customViewer.viewerPrimaryTextColor,alignSelf:"center",marginRight:"40px",marginLeft:"40px"}}}))(w.A),(0,x.A)((function(){return{root:{position:"relative"}}}))(y.Ay),(0,x.A)((function(){return{root:{width:"100%",marginTop:function(e){return"".concat(e.topValue,"px")}},paper:{bottom:0,height:"auto"}}}))(y.Ay),(0,x.A)((function(e){return{root:(0,i.A)({color:e.palette.basicColors.white,alignSelf:"center",textAlign:"center",fontSize:"14px",opacity:1,fontStyle:"normal",maxWidth:32,borderBottom:"2px solid ".concat(e.palette.basicColors.white)},"".concat(e.breakpoints.down("sm")),{fontSize:"14px"})}}))(E.A),(0,x.A)((function(){return{root:{width:"100%",height:"100%",border:"4px solid #ffff",borderRadius:"50%"}}}))(S.A),(0,x.A)((function(){return{tooltip:{padding:"15px",margin:"8px",fontSize:14,fontWeight:"bold",whiteSpace:"pre-wrap"}}}))(d.A)),P=((0,g.A)((function(e){return(0,v.A)({list:{width:250},fullList:{width:"auto"},menuButton:{marginRight:e.spacing(2)},orange:{color:e.palette.basicColors.white,backgroundColor:"rgb(20, 36, 108)",width:100,height:100},centeredMenuItem:{display:"flex",alignItems:"center",justifyContent:"center",color:"grey"},usernameTextMenuItem:{fontWeight:"bold",color:e.palette.basicColors.black},listItem:{"&:hover":{color:"#ffffff","& > div > svg":{fill:"#ff5102"}}},clearIcon:{cursor:"pointer"}})})),(0,g.A)((function(e){return(0,v.A)({list:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",height:"100%",backgroundColor:e.palette.basicColors.white,width:280,paddingTop:17},pageNumberDiv:{color:"#273138",fontSize:"16px",letterSpacing:"0",lineHeight:"22px",width:47,textAlign:"end"},imgThumbnail:{cursor:"pointer",height:"100%",minHeight:"100px",position:"relative",maxWidth:"180px",marginLeft:13,boxShadow:"0 0 6px 0 rgba(0,0,0,0.13)",borderRadius:"10px",display:"flex",flexDirection:"column",border:"1px solid #DBE0E9"},thumbnailIconsContainer:{top:0,position:"absolute",display:"flex",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center"},thumbnailIcon:{flexGrow:1,maxWidth:"28%",width:"180px"},thumbnailContainer:{justifyContent:"center",width:"100%"},imgGrid:{height:"100% ",width:"180px"},imgOfThumbnailIsSelected:{border:"2px solid rgba(0,148,141)"},thumnailWrapperSelected:{width:"100%",display:"flex",height:"100%",padding:"16px 0px",backgroundColor:"rgba(0,148,141,0.08)"},thumbnailWrapper:{width:"100%",display:"flex",padding:"16px 0px"},thumnailWrapperSkeleton:{height:"100%",width:"100%",flex:1}})})),t(4134)),L=t(5791),W=t(81114),F=t(62614),B=t(74724),M=t(98992),V=(0,g.A)((function(e){return{paper:{display:"flex",flexDirection:"column",borderRadius:"8px",boxShadow:"none",backgroundColor:e.palette.customViewer.viewerBarColor,padding:4,alignContent:"center"},collapse:{filter:"drop-shadow(0px 4px 5px ".concat(e.palette.customViewer.viewerPrimaryTextColor,")"),backgroundColor:e.palette.customViewer.viewerBarColor,display:"flex",justifyContent:"center",width:"48px",position:"absolute",borderRadius:"8px","&::after":{content:'""',position:"absolute",display:"block",width:"0",zIndex:1,borderStyle:"solid",borderColor:"".concat(e.palette.customViewer.viewerBarColor," transparent"),borderWidth:"6px 5px 0",top:"-5px",marginLeft:"0px",transform:"rotate(180deg)"}},collapseWrapper:{width:"60px"},color:(0,i.A)({color:function(e){return e.color}},e.breakpoints.down("xs"),{"& > span > svg":{fontSize:19}})}})),U=function(e){var n=V(e),t=s.useState(!1),r=(0,c.A)(t,2),i=r[0],o=r[1];return(0,j.jsx)(p.x,{onClickAway:function(){o(!1)},children:(0,j.jsxs)("div",{children:[(0,j.jsx)(u.A,{"aria-label":"more","aria-haspopup":"true",onClick:function(e){o(!i)},className:n.color,children:(0,j.jsx)(F.A,{})}),(0,j.jsx)(B.A,{in:i,classes:{wrapper:n.collapseWrapper},className:n.collapse,unmountOnExit:!0,children:(0,j.jsx)(M.A,{className:n.paper,children:e.renderActions()})})]})})},H=t(59205),z=t(57957),q=function(e){var n=(0,s.useState)(""),t=(0,c.A)(n,2),r=t[0],i=t[1];return(0,s.useEffect)((function(){H.A.get(e.url).then((function(e){return i(e.data)})).catch((function(){(0,z.ZI)("Fetch SVG ".concat(e.url," Failed"))}))}),[e.url]),(0,j.jsx)("div",{className:e.svgDivClassName,dangerouslySetInnerHTML:{__html:r}})},G=t(6218),K=t(5084),Y=t(87632),J=t(84411),Z=(0,g.A)((function(e){return{menuItem:{border:"1px solid #DBE0E9",maxHeight:56,borderRadius:"13px",marginBottom:"10px"},paper:{maxHeight:"100%",overflow:"auto",width:"100%",position:"fixed",bottom:0,left:0,borderRadius:0,zIndex:e.zIndex.snackbar+1,boxShadow:"0 -5px 6px 0 rgba(0,0,0,0.04)",backgroundColor:"#FFFFFF"},header:{margin:"19px 0px 0px 16px"},labelIcon:{height:24,width:24,marginRight:"10px",filter:"".concat((0,C.hexToCSSFilter)(e.palette.customStyles.primaryTextColor).filter)},lableTypo:(0,i.A)({color:e.palette.customStyles.primaryTextColor,fontSize:18,letterSpacing:"-0.06px",lineHeight:"28px"},e.breakpoints.down("sm"),{textAlign:"center",fontWeight:"normal",fontSize:16,letterSpacing:"0.38px",lineHeight:"23px",justifyContent:"center"}),itemsWrapper:{margin:"20px 0px 8px 0"},icon:{height:24,width:24},actionsWrapper:{padding:10},cancelItem:{borderRadius:"13px",backgroundColor:"rgba(248,248,248,0.82)",marginTop:6,justifyContent:"center",minHeight:56},mobileMenuIcon:{paddingRight:0},cancelLabel:{color:"#F45B38",fontSize:"20px",letterSpacing:"0.38px",lineHeight:"24px",textAlign:"center",justifyContent:"center"},fullScreenPaper:{"@media only screen and (max-width: 600px)":{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",borderTopLeftRadius:20,borderTopRightRadius:20,borderRadius:0,zIndex:1300,background:"#fff",display:"flex",flexDirection:"column",boxShadow:"0 -5px 16px 0 rgba(0,0,0,0.10)"}},mobileHeader:{"@media only screen and (max-width: 600px)":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"18px 18px 0 18px",minHeight:56}},closeButton:{"@media only screen and (max-width: 600px)":{background:"none",border:"none",fontSize:32,cursor:"pointer",color:"#222",padding:0,marginRight:8,lineHeight:1}},mobileTitle:{"@media only screen and (max-width: 600px)":{flex:1,textAlign:"center",fontWeight:600,fontSize:20,color:"#222",marginLeft:-32}},mobileShareContent:{"@media only screen and (max-width: 600px)":{flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"0 0 32px 0",overflowY:"auto"}}}})),X=t(88031),$=t(84899),Q=function(e){var n=e.actionCards,t=e.isOpen,r=e.handleCloseMobileMenu,i=e.getShareObj,o=e.contentConversionType,a=Z(),l=(0,$.A)().isMobile,c=a.menuItem,s=a.paper,u=a.labelIcon,d=a.lableTypo,p=a.actionsWrapper,f=a.cancelItem,m={root:s},g=function(e){e.clickAction(e.actionType,e.shortcutId,e.additionlData)},v=function(e){e.preventDefault(),e.stopPropagation(),r()},x=(n||[]).filter((function(e){return"DOWNLOAD"===e.actionType&&o===X.d.DOCUMENT})).map((function(e){return{icon:e.icon,title:e.label,onClick:function(){g(e),r()}}}));return l?(0,j.jsx)(Y.A,{direction:"up",in:t,children:(0,j.jsxs)(M.A,{classes:m,className:a.fullScreenPaper,children:[(0,j.jsxs)("div",{className:a.mobileHeader,children:[(0,j.jsx)("button",{className:a.closeButton,onClick:r,"aria-label":"Close",children:"×"}),(0,j.jsx)(K.A,{className:a.mobileTitle,children:"Share"})]}),(0,j.jsx)("div",{className:a.mobileShareContent,children:i&&(0,j.jsx)(J.T,{getShareObj:i,additionalActions:x})})]})}):(0,j.jsx)(Y.A,{direction:"up",in:t,children:(0,j.jsxs)(M.A,{classes:m,children:[i&&(0,j.jsx)(J.T,{getShareObj:i}),(0,j.jsxs)("div",{className:p,children:[n&&n.length&&n.length>0&&n.map((function(e,n){return!(o!=X.d.DOCUMENT&&"DOWNLOAD"==e.actionType)&&function(e,n){var t=(0,h.A)(c);return(0,j.jsxs)(G.A,{className:t,onTouchEnd:function(n){n.preventDefault(),n.stopPropagation(),g(e)},children:[(0,j.jsx)(K.A,{className:u,children:e.icon}),(0,j.jsx)(K.A,{className:d,children:e.label})]},e.label+n)}(e,n)})),(0,j.jsx)(G.A,{onTouchEnd:v,onClick:r,className:f})]})]})})};Q.displayName="Mobile Viewer Menu";var ee=t(96947),ne=t(52980),te=t(39863),re=t(68240),ie=t(42883),oe=t(94541),ae=t(73530),le=t(47081),ce=t(82591),se=t(49535),ue=t(30007),de=function(e){var n=e.menuItems,t=e.handleMenuItemClick,r=e.type,i=T(),o=i.wrapper,a=i.menuItem,l=i.popoverContent,d=i.menuIcon,p=i.menuIconButton,f=s.useState(null),m=(0,c.A)(f,2),h=m[0],g=m[1],v=Boolean(h),x=v?"simple-popover":void 0;function A(){var e;return n&&null!=n&&n.data?null==n||null===(e=n.data)||void 0===e?void 0:e.map((function(e){return e.is_showing?(0,j.jsx)("div",{className:a,children:(0,j.jsx)(K.A,{onClick:function(){t(e)},children:e.title})}):(0,j.jsx)(j.Fragment,{})})):(0,j.jsx)(j.Fragment,{})}return(0,j.jsx)("div",{className:o,children:"desktop"===r?(0,j.jsx)("div",{style:{display:"flex",gap:"10px",marginLeft:"30px"},children:A()}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(u.A,{onClick:function(e){g(e.currentTarget)},disableFocusRipple:!0,disableRipple:!0,disableTouchRipple:!0,className:p,children:(0,j.jsx)(se.A,{className:d})}),(0,j.jsx)(ue.Ay,{id:x,open:v,anchorEl:h,onClose:function(){g(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,j.jsx)("div",{className:l,children:A()})})]})})},pe=t(95458),fe=t(58651),me=t(80922),he=(0,s.forwardRef)((function(e,n){var t,g,v=N(),x=e.setCurrentPage,A=e.contentName,b=e.content,_=e.logo,w=e.logImgAlt,y=e.handleOpenShareDialog,E=e.isMobile,S=e.handleDownloadOriginalPdf,C=e.shortcuts,k=e.shouldShowShareButton,T=e.isWitoutNavBar,F=e.shouldAppBarBeInTop,B=e.getShareObj,M=e.barPosition,V=e.conversionType,H=e.id,G=e.isPreviewCampaign,K=e.menuItems,Y=e.handleMenuItemClick,J=v.actionButton,Z=v.viewerBar,$=v.actionsDiv,se=v.actionsGrid,ue=v.enhancedToolBarStyle,he=v.topBarContents,ge=v.fileNameGrid,ve=v.logoStyle,xe=v.logoWrapperStyle,Ae=v.logoWrapperWithoutMinWidth,be=v.mobileLogo,_e=v.svgDiv,we=v.barIcon,ye=v.mobileViewerBar,Ee=v.mobileMenuIcon,Se=v.openMobileMenuIcon,Ie=(0,le.d4)((function(e){return{mobileMenu:e.mobileMenu}})).mobileMenu.isMobileMenuOpen,Ce=(0,s.useState)(),ke=(0,c.A)(Ce,2),je=ke[0],Te=ke[1],Ne=!E&&(null===(t=b.content_action)||void 0===t?void 0:t.is_enabled)&&"BAR"===(null===(g=b.content_action)||void 0===g?void 0:g.button_position),De=G?'You are in preview mode. To share this content with others, go back to your content area (previous tab) and click the "copy link" button.':"",Re=(0,le.wA)(),Oe=(0,le.d4)((function(e){return{theme:e.theme}})).theme.palette.customViewer.viewerPrimaryTextColor,Pe=function(){var e=(0,l.A)((0,a.A)().m((function e(){var n,t;return(0,a.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,B(!1);case 1:n=e.v,t={share_link:n,file_title:A,type:W.qW.COPY_SHARE_LINK},(0,L.recordEventWidthAdditionalParams)(W.qW.SHARE_LINK,t);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),Le=function(){y(W.T9.VIEWER_BAR)},We=(0,pe.e)(),Fe=function(e,n,t){switch(e){case I.Q3.Go_TO:if(!t||!t.page_number)return void(0,z.ZI)("No page number for ".concat(e));x(t.page_number);break;case I.Q3.DOWNLOAD:if(!t||!t.download_url)return void(0,z.ZI)("No Download URL for ".concat(e," shortcut and shortcut_id ").concat(n));S(t.download_url);break;case I.oV:Le();break;case I.RD:Pe();je&&(0,P.eM)(je,(function(){return Re((0,re.G)("Copied","success",!0))}));break;default:return}},Be=function(e){return e.action===I.Q3.DOWNLOAD?(0,j.jsx)(ne.h,{}):(n=e.icon_url,(0,j.jsx)(q,{url:n,svgDivClassName:_e}));var n};function Me(){Re((0,fe.a)(!0,me.I.VIEWER_BAR))}var Ve=function(){return(0,j.jsx)(j.Fragment,{children:V==X.d.DOCUMENT&&(0,j.jsxs)("div",{children:[C&&C.length>0&&C.map((function(e){var n,t,r=function(e){switch(e){case I.Q3.Go_TO:return"Go To";case I.Q3.DOWNLOAD:return"Download";default:return""}}(e.action);return(0,j.jsx)(d.A,{title:r,children:(0,j.jsx)(u.A,{disabled:(n=e.action,(null==n||null===(t=n.toLowerCase())||void 0===t?void 0:t.includes("download"))&&We),onClick:function(){return Fe(e.action,e.id,e.additional_data)},className:J,disableFocusRipple:!0,disableRipple:!0,children:Be(e)})},e.id)})),(0,j.jsx)(d.A,{title:"Search",children:(0,j.jsx)(u.A,{className:we,onClick:Me,disableFocusRipple:!0,disableRipple:!0,children:(0,j.jsx)(te.ReactComponent,{})})}),(0,j.jsx)(d.A,{title:"Share",children:(0,j.jsx)(u.A,{className:we,disableFocusRipple:!0,disableRipple:!0,disabled:G,onClick:Le,children:(0,j.jsx)(m.h,{})})})]})})};(0,s.useEffect)((function(){!Ie||B(!1).then((function(e){Te(e)}))}),[Ie]);var Ue=function(e){switch(e){case I.Q3.Go_TO:return I.co;case I.Q3.DOWNLOAD:return I.dC;default:return e}},He=null==C?void 0:C.some((function(e){return e.action===I.Q3.DOWNLOAD})),ze=[{clickAction:function(){Fe(I.RD)},label:I.RD,actionType:I.RD,icon:(0,j.jsx)(ee.h,{})}].concat((0,o.A)(He||V!==X.d.DOCUMENT?[]:[{clickAction:function(){S("")},label:I.dC,actionType:I.Q3.DOWNLOAD,icon:(0,j.jsx)(ne.h,{})}]),(0,o.A)((C||[]).map((function(e){return{clickAction:Fe,label:Ue(e.action),actionType:e.action,shortcutId:e.id,additionlData:e.additional_data,icon:Be(e)}})))),qe=(0,h.A)((0,i.A)((0,i.A)({},ve,!E),be,E)),Ge=(0,h.A)((0,i.A)((0,i.A)({},Ae,!_),xe,_)),Ke=(E&&_||!E)&&(0,j.jsx)("div",{className:Ge,children:_&&w&&(0,j.jsx)("img",{src:_,alt:w,className:qe})}),Ye=(0,s.useCallback)((function(e){!Ie||e&&e.srcElement&&e.srcElement.id.includes("share-content-annotation")||Re((0,ie.J)(!1,oe.r.VIEWER_BAR))}),[Ie]),Je={should_app_bar_be_in_top:"".concat(F),position:M};function Ze(){return Ne?(0,j.jsx)(ce.default,{content:b,withShadow:!1}):(0,j.jsx)(j.Fragment,{})}return(0,j.jsx)(j.Fragment,{children:!T&&(0,j.jsx)(D,(0,r.A)((0,r.A)({ref:n},Je),{},{"assistant-c-name":"topbar",children:(0,j.jsx)(R,{className:ue,children:(0,j.jsxs)("div",{className:he,children:[(0,j.jsxs)("div",{className:ge,children:[(0,j.jsxs)(f.A,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"row",alignItems:"center",width:"100%"},children:[(null==K?void 0:K.show_in_mobile)&&(0,j.jsx)(f.A,{sx:{minWidth:48,display:"flex",justifyContent:"flex-start"},children:(0,j.jsx)(de,{type:"mobile",menuItems:K,handleMenuItemClick:Y})}),(0,j.jsx)(f.A,{sx:{flex:1,display:"flex",justifyContent:null!=K&&K.show_in_mobile?"center":"flex-start"},children:Ke}),(0,j.jsx)(f.A,{sx:{minWidth:48}})]}),(0,j.jsxs)(f.A,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"row",alignItems:"center"},children:[!E&&_&&Ke,null!=K&&K.show_in_desktop?(0,j.jsx)(de,{type:"desktop",menuItems:K,handleMenuItemClick:Y}):(0,j.jsx)(j.Fragment,{})]})]}),(0,j.jsx)(f.A,{sx:{display:{xs:"none",sm:"flex"}},children:(0,j.jsxs)("div",{className:Z,children:[(0,j.jsx)("div",{className:se,children:!k&&V==X.d.DOCUMENT&&(0,j.jsx)("div",{className:$,children:C&&C.length>2?(0,j.jsx)(U,{color:Oe,renderActions:Ve}):Ve()})}),Ze()]})}),(0,j.jsx)(f.A,{sx:{display:{xs:"block",sm:"none"}},children:(0,j.jsx)(p.x,{onClickAway:Ye,children:(0,j.jsxs)("div",{className:ye,children:[!k&&!Ne&&(0,j.jsx)(O,{title:De,children:(0,j.jsx)("span",{children:(0,j.jsx)(u.A,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,className:Ee,onClick:function(){Re((0,ie.J)(!Ie,oe.r.VIEWER_BAR))},id:"mobileMenuButton",disabled:G,children:(0,j.jsx)(m.h,{className:Se,path:ae._9r})})})}),Ze(),!k&&(0,j.jsx)(Q,{id:H,isOpen:Ie,actionCards:ze,getShareObj:B,handleCloseMobileMenu:Ye,contentConversionType:V})]})})})]})})}))})}));he.displayName="ViewerBar";var ge=he,ve=t(77998),xe=t(15884),Ae=t(25912),be=t(55737),_e="BAR_TOP",we="BAR_BOTTOM",ye=function(e,n){var t,r,i,o,a,l,c=(0,le.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,s=n.isWithoutNavBar,u=n.isPresentationMode,d=(0,$.A)().isMobile,p=(0,Ae.A)().height,f=d?I.O5:I.Hi,m=d?we:_e,h=0;d?(u&&(h=0),null!=e&&null!==(t=e.content_action)&&void 0!==t&&t.is_enabled&&!1!==(null==c||null===(r=c.company)||void 0===r||null===(i=r.company_customizations)||void 0===i?void 0:i.is_powered_by_celero)?h+=be.bY+60+5+4:!1!==(null==c||null===(o=c.company)||void 0===o||null===(a=o.company_customizations)||void 0===a?void 0:a.is_powered_by_celero)?h+=be.bY+24:null!=e&&null!==(l=e.content_action)&&void 0!==l&&l.is_enabled?h+=76:h=30):u&&(h=30);return{viewerBarPosition:m,viewerHeight:p-h,viewerBarHeight:s?0:f,footerHeight:h}},Ee=function(e){var n,t,r,i,o,a,l=e.content,c=e.idrViewer,u=e.isPreviewCampaign,d=e.viewerOptions,p=e.menuItems,f=e.handleMenuItemClick,m=(0,s.useRef)(null),h=(0,$.A)().isMobile,g=(0,ve.p)({content:l}).handleDownloadOriginalPdf,v=(0,xe.B)({content:l}),x=v.triggerShareDialog,A=v.getShareObj,b=v.ShareDialogLoader,_=(0,le.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,w=d.isWithoutNavBar,y=null==_||null===(n=_.company)||void 0===n||!n.company_customizations||(null==_||null===(t=_.company)||void 0===t||null===(r=t.company_customizations)||void 0===r?void 0:r.is_sticky_bar);l.content_customizations&&(y=l.content_customizations.is_sticky_bar);var E=y?"sticky":"relative",S=(0,s.useMemo)((function(){return null==l?void 0:l.conversion_type}),[null==l?void 0:l.conversion_type]),I=l.version?l.version.is_active?l.version.version_details.name:l.version.content_version_name:"",C=null==l?void 0:l.shortcut_customizations,k=(null==l||null===(i=l.content_customizations)||void 0===i?void 0:i.logo_url)||(null==_||null===(o=_.company)||void 0===o||null===(a=o.company_customizations)||void 0===a?void 0:a.logo_url)||"";return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(b,{}),(0,j.jsx)(ge,{id:l.id,setCurrentPage:function(e){c&&"function"==typeof c.goToPage&&c.goToPage(e)},content:l,ref:m,handleOpenShareDialog:x,contentName:I,logo:k,logImgAlt:"Logo",isPreviewCampaign:u,getShareObj:A,shortcuts:C,isMobile:h,handleDownloadOriginalPdf:g,shouldShowShareButton:!1,barPosition:E,isWitoutNavBar:!!w,shouldAppBarBeInTop:!0,conversionType:S,menuItems:p,handleMenuItemClick:f})]})}},70819:function(e,n,t){t.r(n),t.d(n,{EnhancedButton:function(){return m},default:function(){return v}});var r=t(89379),i=t(91212),o=t(10467),a=t(27224),l=(t(49255),t(91250)),c=t(25728),s=t(17141),u=(0,s.A)((function(e){return{root:{"& .MuiInputBase-root":{backgroundColor:"white",height:"100%"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&:hover fieldset":{borderColor:e.palette.common.black},"&.Mui-focused fieldset":{borderColor:e.palette.common.black,borderWidth:2}},"& .MuiOutlinedInput-input":{padding:"8.5px 14px",height:"100%"}}}}))(c.A),d=t(12558),p=t(59205),f=t(65983),m=(0,s.A)((function(){return{root:{borderRadius:"4px",width:"100%",height:"100%",textTransform:"none"}}}))(d.A),h=function(e){return e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))},g=function(){var e=(0,o.A)((0,i.A)().m((function e(n,t){return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,p.A.post(n,t);case 1:e.v,e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(n,t){return e.apply(this,arguments)}}(),v=function(e){var n=e.fields,t=l.Ik().shape({firstName:l.Yj().required("First Name is required"),lastName:l.Yj().required("Last Name is required"),email:l.Yj().email("Invalid email").required("Email is required")}),c=n.reduce((function(e,n){return e[new URL(n.uri).pathname.split("/")[2]]="",e}),{});return(0,f.jsx)(a.l1,{initialValues:c,validationSchema:t,onSubmit:function(){var e=(0,o.A)((0,i.A)().m((function e(t,r){var o,a,l,c,s;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(o=r.setSubmitting,!(a=n.find((function(e){return"submit"===new URL(e.uri).pathname.split("/")[2]})))){e.n=1;break}if(l=new URL(a.uri),c=l.searchParams.get("action"),s=l.searchParams.get("endpoint"),"webhook"!==c||!s){e.n=1;break}return e.n=1,g(s,t);case 1:o(!1);case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),children:function(e){var t=e.isSubmitting;return(0,f.jsx)(a.lV,{children:n.map((function(e,n){var i=new URL(e.uri).pathname.split("/")[2];return(0,f.jsx)("div",{id:"annotation-form-field"+n,style:{position:"absolute",top:"".concat(e.bounds[1],"px"),left:"".concat(e.bounds[0],"px"),width:"".concat(e.bounds[2],"px"),height:"".concat(e.bounds[3],"px"),zIndex:9999},children:"submit"===i?(0,f.jsx)(m,{style:{width:"100%",height:"100%",background:"gray",cursor:"pointer",fontSize:20},type:"submit",disabled:t,children:h(i)}):(0,f.jsx)(a.D0,{name:i,children:function(e){var n=e.field,t=e.meta;return(0,f.jsx)("div",{style:{height:"100%"},children:(0,f.jsx)(u,(0,r.A)((0,r.A)({},n),{},{fullWidth:!0,size:"small",variant:"outlined",placeholder:h(i),error:t.touched&&Boolean(t.error),helperText:t.touched&&t.error?t.error:"",style:{height:"100%",padding:0},inputProps:{style:{height:"100%"}}}))})}})},n)}))})}})}},71551:function(e,n,t){t.d(n,{A:function(){return s}});var r=t(5544),i=t(49255),o=t(20535),a=t(13989),l=t(65983),c=(0,o.A)((function(){return(0,a.A)({root:{alignSelf:"flex-start",display:"flex",flexDirection:"row",width:"100%",margin:"5px 0px",alignItems:"center",gap:14,padding:15,backgroundColor:"#efefef",borderRadius:10,transition:"transform 0.15s ease-in-out","&:hover":{transform:"scale(1.04)"},cursor:"pointer"},title:{fontWeight:"bold",fontSize:function(e){return"".concat(18*e.scale,"px")},wordBreak:"break-word",cursor:"pointer"},header:{fontWeight:"bold",fontSize:function(e){return"".concat(30*e.scale,"px")},color:"#1476BA"},rootWrapper:{alignSelf:"flex-start",width:"95%",cursor:"pointer"}})}));function s(e){var n=e.card,t=e.onClick,o=e.color,a=(0,i.useState)(1),s=(0,r.A)(a,2),u=s[0],d=s[1],p=(0,i.useState)(!1),f=(0,r.A)(p,2),m=f[0],h=f[1],g=c({scale:u,is_mobile:m,color:o}),v=(0,i.useRef)(null);var x=(null==n?void 0:n.keywords)||(null==n?void 0:n.tags),A=x&&x.length?x[0]:n.title.split(" ").map((function(e){return e[0]})).join("").toUpperCase();return(0,i.useEffect)((function(){var e=function(){if(v.current){for(var e=v.current.offsetWidth,n=1,t=0,r=[{maxWidth:600,scaleFactor:.8},{maxWidth:800,scaleFactor:.9},{maxWidth:900,scaleFactor:1}];t=0&&(0,p.jsxs)("div",{className:_.visitors,children:[(0,p.jsx)(d.h,{className:_.icon}),(0,p.jsx)("div",{className:_.visitorsNumber,children:n.visits})]}),S&&(0,p.jsx)("div",{className:_.tags,children:null==S?void 0:S.map((function(e){return(0,p.jsx)(s.A,{label:e,className:_.chip,classes:{label:_.chipLabel}},e)}))})]})]})})}),(0,p.jsx)(u.A,{className:_.divider})]})}},73371:function(e,n,t){var r=t(89379),i=t(74859),o=t(57957),a=t(40561),l=t(5791),c={getFingerprint:function(e){var n,t=new a.ClientJS,c=t.getDeviceXDPI(),s=t.getTimeZone(),u=t.getUserAgentLowerCase(),d=t.getPlugins(),p=t.getSystemLanguage(),f=t.getCustomFingerprint(s,u,c,d,p,window.ipgeoaddress),m=t.getBrowser(),h=(0,l.getCeleroId)(),g=null===(n=window)||void 0===n?void 0:n.ipgeoaddress,v=(0,r.A)({ipgeo:g,hash:f,browser_data:m},h&&{celero_id:h}),x={params_sent_to_be:(0,r.A)({},v),data_used_to_generate_hash_in_fe:{timezone:s,userAgent:u,deviceXDPI:c,plugins:d,systemLanguage:p}};return window.fingerprintData=x||{},i.Ay.post("/api/fingerprint/",v).then((function(n){var t=JSON.parse(JSON.stringify(n.data));return window.fingerprintData=(0,r.A)((0,r.A)({},window.fingerprintData),{},{fingerprint_be_response:t}),e&&(0,l.debugTracker)("d2.5",{celero_id:h,fingerprint_data:window.fingerprintData,ipgeo:window.ipgeoaddress,ipgeo_failed:!window.ipgeoaddress}),n.data})).catch((function(e){(0,o.ZI)(e)}))}};n.A=c},73931:function(e,n,t){t.d(n,{A:function(){return j}});var r=t(5544),i=t(49255),o=t(15625),a=t(51619),l=t(61755),c=t(98941),s=t(46818),u=t(47081),d=t(5791),p=t(65983),f=function(){return(0,i.useEffect)((function(){(0,d.debugTracker)("d1",{})}),[]),(0,p.jsx)(p.Fragment,{})},m=t(87237),h=t(57957),g=t(74859),v=t(91943),x=t(8737),A=t(691),b=new RegExp("media.celero.io","g");var _=function(){var e=(0,i.useState)(!1),n=(0,r.A)(e,2),t=n[0],o=n[1],a=(0,u.wA)();g.u.interceptors.response.use((function(e){return JSON.parse(JSON.stringify(e).replace(b,window.location.hostname))}),(function(e){var n=e.config,t=e.response,r=void 0===t?{}:t,i=r.status,o=void 0===i?"":i,l=r.data,c=void 0===l?{}:l;r.statusText;if(o===v.pR&&n&&!n.__isRetryRequest){if("User account is disabled."===c.detail)return A.A.localStorage.removeItem("token"),A.A.localStorage.removeItem("accessToken"),A.A.localStorage.removeItem("loggedIn"),A.A.localStorage.removeItem("refreshToken"),void(0,h.vx)(e,a,c.detail)}else o===v.se&&n&&!n.__isRetryRequest?window.location.redirect("/"):o===v.lV||v.n;return Promise.reject(e)}));return(0,p.jsx)("div",{children:(0,p.jsx)(x.A,{variant:"error",verticalPosition:"bottom",horizantalPosition:"center",message:"Something went wrong!",isOpen:t,onClose:function(){o(!1)}})})},w=t(4134),y=(0,i.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489)]).then(t.bind(t,19500)).then((function(e){return{default:e.ThemeProvider}}))})),E=(0,i.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489)]).then(t.bind(t,59032))})),S=(0,i.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,17415))})),I=(0,i.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,78917))})),C=(0,i.lazy)((function(){return Promise.all([t.e(997),t.e(224),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(605),t.e(772),t.e(871),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,3605))})),k=function(){return(0,p.jsx)(p.Fragment,{})},j=function(){var e=(0,i.useState)({account_id:"",company_customizations:void 0,id:0,integrations:[],name:"",taxonomies:[],can_use_home:null,company_settings:{home_hash:null,not_found_hash:null}}),n=(0,r.A)(e,2),t=n[0],d=n[1];["/login"].includes(window.location.pathname)&&window.location.replace("https://app.celero.io");var h=(0,u.d4)((function(e){return{theme:e.theme}})).theme,g=(0,s.i7)().isWithoutTracking,v=!g&&!(0,w.MX)();(0,i.useEffect)((function(){var e;null===(e=m.A.getCompany())||void 0===e||e.then((function(e){e&&d(e)})),o.T({dsn:"https://a1d9a6755fee465784e10804d349f28f@o435682.ingest.sentry.io/6659501",release:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GTM_KEY:"GTM-K3TPRSF",REACT_APP_GTM_PREVIEW:"env-1",REACT_APP_NAME:"celero",REACT_APP_KEEN_WRITE_KEY:"3aaa095fd1b6997cd0da8ab81b4e78074cc7ac023a9237ea91956c18bacbb7cd36c16d1d7ddfc08a0b6fec895939aaf74a127f3ae510c612ed1d0fbe33ae7f354ee7bb3dd0f587cb73aea951c075b640fac050376ca37f5c226fbbdbec0a75a9",REACT_APP_UTILIS_CONTENT_ID:"4",REACT_APP_CHK:"p",REACT_APP_MEDIA_CDN_URL:"media.celero.io",REACT_APP_KEEN_READ_KEY:"e80f4fc25bd6db4993a44e55282df3a6634108f11d1b312692adb5c7d428f11c481f61a62b8de024b22d6c6e89e0294cb6949c3207084a8f6b89d868bf1531faeea3b34e5e0e2e2edcb6ee82a36d84a5c4c021288b094702a031dff2950e1f27",REACT_APP_VIEWER_URL:"https://content.celero.io",REACT_APP_BE_SERVICES_API:"https://api1.celero.io",REACT_APP_KEEN_PROJECT_ID:"5ef32fe4e1469b46b0540e20",REACT_APP_OEMBED_BASE:"https://embeds.celero.io",REACT_APP_HOTJAR_SNIPPET_VERSION:"6",REACT_APP_SENTRY_DSN:"https://a1d9a6755fee465784e10804d349f28f@o435682.ingest.sentry.io/6659501",REACT_APP_SENTRY_ENVIRONMENT:"PRODUCTION",REACT_APP_HOTJAR_ID:"2435795",REACT_APP_C_API:"https://capi.celero.io",REACT_APP_NEXT_APP_BASE_URL:"https://view.celero.site",REACT_APP_AUTH0_DOMAIN:"celero-live.us.auth0.com",REACT_APP_UTILIS_CONTENT_UUID:"43eb09c6-d691-4912-ab5b-e9cc8f84fa68",REACT_APP_MIXPANEL_TOKEN:"b8f627b3aa898054b4dc48e5c7e285c4",REACT_APP_ENVIRONMENT:"production",REACT_APP_INTERCOM_APP_ID:"y91fmz0s",REACT_APP_DESIGNER_URL:"https://app.celero.io/",REACT_APP_BASE_URL:"https://api.celero.io",REACT_APP_CELERO_WB_CONTENT_ID:"709",REACT_APP_GOOGLE_DATA_STUDIO_EVN:"d4201138-2ab9-4b43-8e5b-58070e5e7b34",REACT_APP_AUTH0_CLIENT_ID:"Ha0llxXHgFgPHOSmNNpKsIBsgii2BE7k",REACT_APP_AUTH0_CLIENT_SECRET:"arr5VEcDdZmImH97YZsl52aoALLeiKkpTbR-tTDzBM_sSiAiT0BO9Qz-lladWx2y",REACT_APP_KEEN_MASTER_KEY:"0471F1D5E3206993407BB254F0DF02BF67E12399D0FEBE0A2EC5CD9DD52B4C5F",REACT_APP_VERSION:"0.38.0",REACT_APP_FEED_API:"https://feedapi.celero.io",REACT_APP_DEBUG_CHK:"dp",REACT_APP_CELERO_WEB_NEW_CONTENT_ID:"733",REACT_APP_GTM_AUTH:"8znMOagmoN7xh2oEuA6yig",REACT_APP_FRONTEND_URL:"https://app.celero.io",REACT_APP_CELERO_WB_NEW_SHORTEN_URL:"a68cfaed",REACT_APP_MEDIA_CDN_URL_WITH_PROTOCOL:"https://dev-media.celero.io"}.npm_package_version,environment:"PRODUCTION",tracesSampleRate:1,ignoreErrors:["Non-Error exception captured","Non-Error promise rejection captured"],attachStacktrace:!0})}),[]);return(0,p.jsx)(l.vd,{children:(0,p.jsx)(i.Suspense,{fallback:(0,p.jsx)(k,{}),children:(0,p.jsx)(y,{theme:h,children:(0,p.jsx)(E,{style:{height:"100%",backgroundColor:"transparent"},children:(0,p.jsx)(a.tH,{fallback:(0,p.jsx)("div",{children:"Something went wrong..."}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f,{}),(0,p.jsx)(c.K,{}),(0,p.jsx)(_,{}),window.celeroData?(0,p.jsx)(S,{company:t,shouldTrack:v}):window.celeroFeedData?(0,p.jsx)(I,{company:t,shouldTrack:v}):(0,p.jsx)(C,{company:t,shouldTrack:v})]})})})})})})}},77167:function(e,n,t){t.d(n,{L:function(){return r}});var r="SET_THEME"},77877:function(e,n,t){t.d(n,{s:function(){return r}});var r={EVERYONE_ALLOWED:"EVERYONE_ALLOWED",GDPR_CONSENT:"GDPR_CONSENT",UNVERIFIED_CONTACT:"UNVERIFIED_CONTACT",VERIFIED_CONTACT:"VERIFIED_CONTACT",PRIVATE:"PRIVATE"}},77998:function(e,n,t){t.d(n,{p:function(){return l}});var r=t(49255),i=t(5791),o=t(81114),a=t(95458),l=function(e){var n=e.content;return{handleDownloadOriginalPdf:(0,r.useCallback)((function(){if(n&&!(0,a.e)()){var e="".concat("https://api.celero.io","/api/content/").concat(n.uuid,"/download/");fetch(e,{method:"GET",headers:{"Content-Type":"application/pdf"}}).then((function(e){return e.blob()})).then((function(e){var t=window.URL.createObjectURL(new Blob([e],{type:"application/pdf"})),r=document.createElement("a");r.rel="nofollow",r.href=t,r.setAttribute("download",n.original_name),document.body.appendChild(r),r.click(),document.body.removeChild(r)}));var t={content_id:null==n?void 0:n.uuid,file_title:null==n?void 0:n.version.version_details.name};(0,i.recordEventWidthAdditionalParams)(o.qW.DOWNLOAD_FILE,t)}}),[n])}}},78688:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var r=t(26811),i=t(64467),o=(0,t(20535).A)((function(e){return{videoContentWrapperStyle:{display:"flex",marginTop:28,marginLeft:55,paddingBottom:52,width:"calc(100vw - 300px)",height:function(e){return"calc(100vh - 28px - ".concat(e.topValue,"px)")}},videoContentMobileWrapperStyle:(0,i.A)({display:"flex",marginTop:0,width:"100vw",height:"100vh"},"".concat(e.breakpoints.down("md")," and (orientation: portrait)"),{height:"50vh"})}})),a=t(84899),l=t(47081),c=t(70609),s=t(65983),u=function(e){var n=e.content,t=e.viewerOptions,i=(0,l.d4)((function(e){return{theme:e.theme}})).theme,u=(0,c.g7)(n,t).viewerBarHeight,d=o({theme:i,topValue:u}),p=(0,a.A)().isMobile;return(0,s.jsx)("div",{className:p?d.videoContentMobileWrapperStyle:d.videoContentWrapperStyle,children:(0,s.jsx)(r.L,{url:n.base_url,contentUUID:n.uuid,autoplay:!1})})}},78917:function(e,n,t){t.r(n);var r=t(49255),i=t(98941),o=t(45332),a=t(62912),l=t(65983),c=(0,r.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,40310))}));n.default=function(e){var n,t,s=e.company,u=e.shouldTrack;return(0,l.jsxs)(i.P,{children:[(0,l.jsx)(c,{company:s}),u?(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===(n=window.celeroFeedData)||void 0===n?void 0:n.feedName})})}):(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})]})}},80922:function(e,n,t){t.d(n,{I:function(){return i},e:function(){return r}});var r="SET_IN_CONTENT_SEARCH",i=function(e){return e.KEYBOARD="Keyboard",e.VIEWER_BAR="Viewer Bar",e.ITSELF="Itself",e}({})},81114:function(e,n,t){t.d(n,{AI:function(){return d},KZ:function(){return u},dn:function(){return s},vh:function(){return h},Md:function(){return m},qW:function(){return c},wz:function(){return f},T9:function(){return p}});var r,i=t(64467),o=t(23029),a=t(92901),l=function(){return(0,a.A)((function e(){(0,o.A)(this,e),this._rule=void 0,this._rule={isBackground:!1,requiredEvent:null,isBlockEvent:!1,itCancelEvents:[],cancelDependencyParams:[],isGDPREssential:!1}}),[{key:"isBackground",value:function(e){return this._rule.isBackground=e,this}},{key:"requiredEvent",value:function(e){return this._rule.requiredEvent=e,this}},{key:"isBlockEvent",value:function(e){return this._rule.isBlockEvent=e,this}},{key:"itCancelEvents",value:function(e){return this._rule.itCancelEvents=e,this}},{key:"cancelDependencyParams",value:function(e){return this._rule.cancelDependencyParams=e,this}},{key:"isGDPREssential",value:function(e){return this._rule.isGDPREssential=e,this}},{key:"build",value:function(){return this._rule}}])}(),c={CONTENT_UPLOADED:"Upload Content",PLAN_LIMIT_REACHED:"Plan Limit Reached",CONTENT_VIEW_STARTED:"Open Content",GO_TO_CLICKED:"Navigate In Content",SLIDE_VIEW_STARTED:"Open Page",SLIDE_VIEW_FINISHED:"Close Page",SET_INPUT:"Set Input",FORM_SUBMITTED:"Submit Form",FORM_ACTION:"Form Action",OPEN_FORM:"Open Form",CLOSE_FORM:"Close Form",FILL_FORM:"Fill Form",BUTTON_CLICKED:"Click Button",ACTION_CLICKED:"Click CTA",TEXT_HIGHLIGHTED:"Highlight Text",TEXT_COPIED:"Copy Text",HOVER:"Hover",USER_LOGIN:"Login",USER_LOGOUT:"Logout",CONTENTS_LIST_OPENED:"Open Content List",WINDOW_FOCUSED:"Return Window",WINDOW_BLUR:"Leave Window",SCREENSHOT_TOOK:"Take Screenshot",PRINT:"Print",GLOBAL_CELERO_COLLECTION:"Global Celero Collection",VIDEO_PLAYED:"Play Video",VIDEO_PAUSED:"Pause Video",VIDEO_SEEKED:"Seek Video",VIDEO_MUTED:"Mute Video",VIDEO_UNMUTED:"Unmute Video",VIDEO_SOUND_CHANGED:"Set Video Volume",VIDEO_SET_FULLSCREEN:"Enter Video Fullscreen",VIDEO_EXIT_FULLSCREEN:"Exit Video Fullscreen",CLOSE_LINK:"Close Link",OPEN_LINK:"Open Link",OPEN_LINK_IN_NEW_TAB:"Open Link In New Tab",ZOOM_CHANGED:"Set Zoom",SEEK_AUDIO:"Seek Audio",PLAY_AUDIO:"Play Audio",PAUSE_AUDIO:"Pause Audio",SET_AUDIO_VOLUME:"Set Audio Volume",CLOSE_AUDIO:"Close Audio",FINISH_AUDIO:"Finish Audio",OPEN_AUDIO:"Open Audio",AUDIO_MUTED:"Mute Audio",AUDIO_UNMUTED:"Unmute Audio",ClOSE_VIDEO:"Close Video",FINISH_VIDEO:"Finish Video",OPEN_SHARE:"Open Share",CLOSE_SHARE:"Close Share",SHARE_LINK:"Share Link",COPY_SHARE_LINK:"Copy Share Link",DOWNLOAD_FILE:"Download File",COPY_HUBSPOT_SHARE_LINK:"Copy Hubspot Share Link",COPY_MARKETO_SHARE_LINK:"Copy Marketo Share Link",COPY_PARDOT_SHARE_LINK:"Copy Pardot Share Link",USER_IDLE:"User Idle",OPEN_CONTACT_LIST:"Open Contact List",OPEN_GOOGLE_STUDIO:"Open Google Studio",TRIGGER_CONTACT_ACTION:"Trigger Contact Action",OPEN_ACCOUNT_DASHBOARD:"Open Account Dashboard",SEARCH_INSIDE_CONTENT:"Search Inside Content",MOBILE_ZOOM_IN:"Mobile Zoom In",MOBILE_ZOOM_OUT:"Mobile Zoom Out",OPEN_SEARCH:"Open Search",CLOSE_SEARCH:"Close Search",SAVE_FOR_LATER:"Save For later",READ_LATER:"Read Later",REFRESH:"Refresh",IDENTIFY_USER:"Identify User2",NEW_LEAD:"New Lead",FIRE_JS_EVENT:"Fire JS Event",OPEN_CHAT:"Open Chat",CLOSE_CHAT:"Close Chat",RECEIVE_MESSAGE:"Receive Message",SEND_MESSAGE:"Send Message",WARNING:"Warning",CLICK_POWERED_BY:"Clicked Power By Celero",INIT:"Init",GDPR_CONSENT:"GDPR Consent"},s=(r={},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,c.SLIDE_VIEW_STARTED,(new l).requiredEvent(c.SLIDE_VIEW_FINISHED).itCancelEvents([c.SLIDE_VIEW_STARTED]).cancelDependencyParams(["page_number"]).build()),c.FINISH_VIDEO,(new l).isBackground(!0).build()),c.FINISH_AUDIO,(new l).isBackground(!0).build()),c.WINDOW_BLUR,(new l).isBlockEvent(!0).requiredEvent(c.WINDOW_FOCUSED).build()),c.CLOSE_LINK,(new l).itCancelEvents([c.OPEN_LINK]).build()),c.PAUSE_AUDIO,(new l).itCancelEvents([c.PLAY_AUDIO]).build()),c.CLOSE_AUDIO,(new l).itCancelEvents([c.PLAY_AUDIO]).build()),c.FINISH_AUDIO,(new l).itCancelEvents([c.PLAY_AUDIO]).build()),c.ClOSE_VIDEO,(new l).itCancelEvents([c.VIDEO_PLAYED]).build()),c.VIDEO_PAUSED,(new l).itCancelEvents([c.VIDEO_PLAYED]).build()),(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,c.FINISH_VIDEO,(new l).itCancelEvents([c.VIDEO_PLAYED]).build()),c.PLAY_AUDIO,(new l).cancelDependencyParams(["audio_src"]).build()),c.VIDEO_PLAYED,(new l).cancelDependencyParams(["video_link"]).build()),c.OPEN_LINK,(new l).cancelDependencyParams(["link_url"]).build()),c.CONTENT_VIEW_STARTED,(new l).isGDPREssential(!0).build()),c.IDENTIFY_USER,(new l).isGDPREssential(!0).build()),c.FORM_SUBMITTED,(new l).isGDPREssential(!0).build()),c.INIT,(new l).isGDPREssential(!0).build()),c.GDPR_CONSENT,(new l).isGDPREssential(!0).build()),c.OPEN_FORM,(new l).isGDPREssential(!0).build()),(0,i.A)(r,c.FORM_ACTION,(new l).isGDPREssential(!0).build())),u={IFRAME_DIALOG:"Iframe Dialog",VIDEO_PLAYER_DIALOG:"Video Player Dialog",INTERNAL_CONTENT_DIALOG:"Internal Content Dialog"},d={IFRAME:"Iframe",OEMBED:"Oembed",STANDARD:"Direct"},p={UTILIS_CALCULATOR:"Utilis Calculator",LEAKS_CALCULATOR:"Leaks Calculator",KRENSHARE_CHART_WIDGET:"Kraneshares Chart Widget",KRENSHARE_TABLE_WIDGET:"Kraneshares Table Widget",UTILIS_SUPPORT_FORM:"Utilis Support Form",CONTENT_FORM_ANNOTATION:"Content Form Annotation",NEXT_PAGE_LINK:"Next Page Link",PREVIOUS_PAGE_LINK:"Previous Page Link",THUMBNAIL:"Thumbnail",NEXT_BUTTON:"Next Button",PREVIOUS_BUTTON:"Previous Button",SCROLL:"Scroll",INPUT:"Input",GO_TO_LINK:"Go to Link",KEYBOARD:"Keyboard",LINK_TO_WIDGET:"Link To Widget",ZOOM_IN_BUTTON:"Zoom In Button",ZOOM_OUT_BUTTON:"Zoom Out Button",ZOOM_RATIOS_LIST:"Zoom Ratios List",KEYBOARD_EVENT:"Keyboard Event",LEAVING_PAGE:"Leaving Page",USER:"User",DEEP_LINK:"Deep Link",REGULAR_SHARE:"Regular",GENERATED_SHARE_LINK:"Generated Share Link",FIT_ZOOM_BUTTON:"Zoom Fit Button",SEARCH:"Search",PINCH:"Pinch",AURORA_CALCULATOR:"Aurora Calculator",ANNOTATION:"Annotation",VIEWER_BAR:"Viewer Bar"},f={CHART:"Chart",IMAGE:"Image",DROP_DOWN_MENU:"Drop Down Menu",SLIDER:"Slider",TOGGLE_BUTTON:"Toggle Button",TEXT_FIELD:"Text Field",RADIO_BUTTON:"Radio Button"},m=9e5,h=120},81124:function(e,n,t){t.r(n),t.d(n,{CookiesDisclaimer:function(){return N},default:function(){return D}});var r=t(20454),i=t(91212),o=t(89379),a=t(10467),l=t(5544),c=t(49255),s=t(29297),u=t(74484),d=t(32388),p=t(5084),f=t(879),m=t(64467),h=t(17141),g=t(12558),v=(0,t(20535).A)((function(e){return{textTypo:{fontSize:"16px",fontStretch:"normal",fontStyle:"normal",fontWeight:"normal",lineHeight:"21px",letterSpacing:0,textAlign:"center"},acceptTypo:{color:"#FFFFFF"},rejectTypo:{color:"#4E606B"},rejectBtn:{marginRight:20,color:"#4E606B",background:"#FFFFFF",border:"1px solid #4E606B","&:hover":{background:"#FFFFFF"}},acceptBtn:{color:"#FFFFFF",backgroundColor:"#273138","&:hover":{backgroundColor:"#273138"}},disclaimerWrapper:(0,m.A)((0,m.A)({display:"flex",alignItems:"center",flexDirection:"row",position:"absolute",right:24,bottom:61,width:710,minHeight:88,borderRadius:16,backgroundColor:"#FFFFFF",boxShadow:"0 12px 24px 0 rgba(44,39,56,0.06), 0 32px 64px 0 rgba(44,39,56,0.08)",zIndex:e.zIndex.modal-100,padding:"18px 21px"},"".concat(e.breakpoints.down("sm")),{width:"auto",minHeight:"130px",bottom:22,left:8,right:8,padding:"21px 13px",justifyContent:"center"}),"".concat(e.breakpoints.down("sm")," and (orientation: landscape)"),{width:360,minHeight:"130px",bottom:22,left:"unset",right:8,padding:"18px 21px"}),iconWrapper:{height:50,width:50,borderRadius:360,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F7F8",marginRight:15,padding:15},messageTypo:(0,m.A)((0,m.A)({width:352,color:"#4E606B",fontSize:12,letterSpacing:.14,lineHeight:"16px",marginRight:20},"".concat(e.breakpoints.down("sm")),{minHeight:50,width:"auto",marginRight:0}),"".concat(e.breakpoints.down("sm")," and (orientation: landscape)"),{width:"100%",marginRight:0,minHeight:50}),rightSection:(0,m.A)((0,m.A)({display:"flex",flexDirection:"row",alignItems:"center"},"".concat(e.breakpoints.down("sm")),{flexDirection:"column",gap:10,justifyContent:"space-between",alignItems:"center",marginTop:0}),"".concat(e.breakpoints.down("sm")," and (orientation: landscape)"),{flexDirection:"column",gap:10,justifyContent:"space-between",alignItems:"center",marginTop:0}),buttonsWrapper:(0,m.A)((0,m.A)({display:"flex",justifyContent:"flex-end",marginRight:16,gap:10,flexDirection:"row"},"".concat(e.breakpoints.down("sm")),{width:"100%",justifyContent:"center"}),"".concat(e.breakpoints.down("sm")," and (orientation: landscape)"),{width:"100%",justifyContent:"center"})}})),x=(0,h.A)((function(){return{root:{borderRadius:"4px",width:"109px",height:"36px",textTransform:"none"}}}))(g.A),A=t(19378),b=t(21430),_=t(5791),w=t(81114),y=t(47081),E=t(691),S=t(52473),I=t(73371),C=t(93593),k=t(92049),j=t(84899),T=t(65983),N=function(){var e,n,t,m,h,g,N,D,R,O=(0,y.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData}})),P=O.gdpr,L=O.shortenData,W=(0,c.useState)(!1),F=(0,l.A)(W,2),B=F[0],M=F[1],V=(0,j.A)().isMobile,U=b.parse(window.location.search),H=window.celeroURLParams.is_bot,z=(null==L||null===(e=L.company.company_customizations)||void 0===e?void 0:e.show_cookie_disclaimer)&&"true"!==U.hide_cookie_disclaimer&&!H,q=v(),G=q.acceptBtn,K=q.acceptTypo,Y=q.buttonsWrapper,J=q.disclaimerWrapper,Z=q.iconWrapper,X=q.messageTypo,$=q.rejectBtn,Q=q.rejectTypo,ee=q.rightSection,ne=q.textTypo,te=function(){var e=(0,a.A)((0,i.A)().m((function e(){var n,t,r,a,l,c,s,u,d,p,f,m,h,g,v,x,b=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(c=b.length>0&&void 0!==b[0]?b[0]:{},s=b.length>1?b[1]:void 0,(u=(0,_.getCeleroId)())||(d=E.A.sessionStorage.getItem("celero_obj"))&&(u=null===(p=JSON.parse(d))||void 0===p?void 0:p.celero_id),u||(u=null===(f=(0,_.getGeneralTrackingData)())||void 0===f?void 0:f.celero_id),u){e.n=1;break}return e.n=1,I.A.getFingerprint(!1).then((function(e){e&&e.celero_id&&((0,_.setCeleroId)(e.celero_id),u=e.celero_id)}));case 1:m=C.E.getIntegrationsNeededData(),h=P.integration.data.visitor_param,g=P.integration.data.url_parameter,v=m[h],x=m[g+"_url_param"],S.A.visitorIdentify({account_id:null==L||null===(n=L.company)||void 0===n?void 0:n.account_id,visitor_id:v||"NOVISITORID",integration:P.integration.name,celero_id:u,version_id:(null==L||null===(t=L.versions[0].version_details)||void 0===t?void 0:t.uuid)||"",url_parameter:x,access_type:null===(r=L.access_control)||void 0===r?void 0:r.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==L||null===(a=L.versions[0])||void 0===a||null===(l=a.version_details)||void 0===l?void 0:l.name}),user_input:JSON.stringify({gdpr_consent_value:s})}).then((function(e){E.A.sessionStorage.setItem(A.$i,null==e?void 0:e.gdpr_track)})),M(!1),(0,_.recordEventWidthAdditionalParams)(w.qW.GDPR_CONSENT,(0,o.A)({value:s},c));case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){var e,n,t,r;!P||!P.integration||null!==(null===(e=P.identifyResponse)||void 0===e?void 0:e.gdpr_consent)||null!=P&&null!==(n=P.integration)&&void 0!==n&&null!==(t=n.data)&&void 0!==t&&null!==(r=t.gdpr_page)&&void 0!==r&&r.includes("/s/".concat(L.hash))||M(!0)}),[P]),!z||null!=P&&null!==(n=P.integration)&&void 0!==n&&null!==(t=n.data)&&void 0!==t&&null!==(m=t.gdpr_page)&&void 0!==m&&m.includes("/s/".concat(L.hash))?null:(0,T.jsx)(u.A,{in:B&&!(null!=P&&null!==(h=P.integration)&&void 0!==h&&null!==(g=h.data)&&void 0!==g&&null!==(N=g.gdpr_page)&&void 0!==N&&N.includes("/s/".concat(L.hash))),children:(0,T.jsxs)("div",{className:J,children:[!V&&(0,T.jsx)("div",{className:Z,children:(0,T.jsx)(d.A,{children:(0,T.jsx)(f.h,{})})}),(0,T.jsxs)("div",{className:ee,children:[(0,T.jsx)(k.$,{className:X,components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,T.jsx)("p",(0,o.A)((0,o.A)({},n),{},{style:{margin:0}}))}},children:(null===(D=P.integration)||void 0===D||null===(R=D.data)||void 0===R?void 0:R.banner_message)||"This presentation uses cookies to improve your experience. We'll only use your data for purposes you consent to."}),(0,T.jsxs)("div",{className:Y,children:[(0,T.jsx)(x,{onClick:function(){te({source:"banner"},!1)},className:$,disableRipple:!0,disableTouchRipple:!0,children:(0,T.jsx)(p.A,{className:(0,s.A)(ne,Q),children:"Reject"})}),(0,T.jsx)(x,{color:"primary",variant:"contained",onClick:function(){te({source:"banner"},!0)},className:G,disableRipple:!0,disableTouchRipple:!0,children:(0,T.jsx)(p.A,{className:(0,s.A)(ne,K),children:"Accept"})})]})]})]})})},D=N},82591:function(e,n,t){t.r(n),t.d(n,{default:function(){return I}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(5791),c=t(81114),s=t(70035).default,u=(t(5348),t(81046)),d=t(52808),p=t(47081),f=t(3895),m=t.n(f),h=t(52484),g=t(84899),v=t(35175),x=t(96054),A=t(84740),b=t(24507),_=t(812),w=t(5084),y=(0,b.Ay)(_.A,{shouldForwardProp:function(e){return"button_color"!==e&&"withShadow"!==e&&"ismobile"!==e}})((function(e){var n=e.theme,t=e.button_color,r=e.withShadow,i=e.ismobile;return{backgroundColor:t,color:n.palette.getContrastText(t),width:i?"100%":"fit-content",boxShadow:r?n.shadows[3]:"none",borderRadius:32,fontSize:i?20:24,fontWeight:500,textTransform:"none",height:i?45:52,"&:hover":{backgroundColor:t,boxShadow:r?n.shadows[4]:"none"}}})),E=(0,b.Ay)(w.A)({fontSize:18,fontWeight:500,lineHeight:"21px",paddingLeft:16,paddingRight:16}),S=t(65983),I=function(e){var n,t,f=e.content,b=e.withShadow,_=void 0!==b&&b,w=(0,p.wA)(),I=null==f?void 0:f.content_action,C=I.button_text,k=I.button_color,j=null==f||null===(n=f.content_action)||void 0===n?void 0:n.destination_url;j.startsWith("http://")||j.startsWith("https://")||(j="https://"+j);var T=(0,a.useState)(!1),N=(0,o.A)(T,2),D=N[0],R=N[1],O=(0,a.useState)(0),P=(0,o.A)(O,2),L=(P[0],P[1]),W=(0,a.useState)(j),F=(0,o.A)(W,2),B=F[0],M=F[1],V=(0,g.A)().isMobile;if(null==f||null===(t=f.content_action)||void 0===t||!t.is_enabled)return(0,S.jsx)(S.Fragment,{});function U(e,n){var t={content_id:null==f?void 0:f.uuid,link_url:e,value:n};(0,l.recordEventWidthAdditionalParams)(c.qW.ACTION_CLICKED,t)}var H=function(){var e=(0,i.A)((0,r.A)().m((function e(n,t,i){var o,a,l,c,s;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return o=null==f?void 0:f.content_action,a=o.button_text,e.n=1,(0,d.q)(n.data,t);case 1:l=e.v,c=l.canIframe,s=l.embedUrl,c?(M(s||t),R(!0)):setTimeout((function(){window.open(t)})),U(t,a);case 2:return e.a(2)}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}();var z=function(){return m().canPlay(j)?(0,S.jsx)(h.default,{url:j,contentUUID:null==f?void 0:f.uuid,pageNumber:void 0,autoplay:!0,isDialog:!0}):(0,S.jsx)("iframe",{title:"internal-iframe",style:{width:"100%",height:"100%",border:0},src:B})},q=function(){window.open(j)},G=function(){R(!1)},K=[{icon:(0,S.jsx)(v.A,{fontSize:"inherit"}),action:q,hidden:!1}];return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(y,{variant:"extended",onClick:function(){var e=(null==f?void 0:f.content_action).button_text;if(m().canPlay(j))return R(!0),void U(j,e);var n,t=new URL(j);if(t&&("true"===(null==t||null===(n=t.searchParams)||void 0===n?void 0:n.get("open_in_new_tab"))||"http:"===(null==t?void 0:t.protocol)))return void H({data:{iframe_support:!1}},j,null);u.A.checkIfURIIsValid(j,H,w).catch((function(e){window.open(j)}))},button_color:k,withShadow:_,ismobile:V,"assistant-c-name":"cta",children:(0,S.jsx)(E,{children:C})}),(0,S.jsx)(A.A,{isVisible:!V,children:(0,S.jsx)(s,{handleCloseIframeDialog:G,handleOpenLinkExternal:q,openIframeDialog:D,renderContentOfDialog:z,isIframeLoadable:!0,isLoading:!1,iframeSrc:j,openExternalLinkTooltip:"Open in a new tab",closeDialogTooltip:"Close",setDialogStartTime:L,urlSrcWithOutParams:j})}),(0,S.jsx)(A.A,{isVisible:V,children:(0,S.jsx)(x.default,{handleCloseMobilePopup:G,actions:K,openMobilePopup:D,renderContentOfMobilePopup:z,isLoading:!1,setMobilePopupStartTime:L})})]})}},83430:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var r=t(89379),i=t(5544),o=t(49255),a=t(12182),l=t(98992),c=t(37859),s=t(73952),u=t(74724),d=t(81229),p=t(90859),f=t(60972),m=t(64467),h=t(20535),g=t(49107),v=t(17141),x=(0,h.A)((function(e){return{audio:{outline:"none","&$focused":{outline:"none"}},snackbar:{borderRadius:"25px",right:function(e){return e.audioPlayerMarginRightValue},"& > div":{display:"flex",alignItems:"flex-end",flexDirection:"column"}},closeButton:{cursor:"pointer"},audioPaper:(0,m.A)({width:400,height:50,backgroundColor:"#F1F3F4"},e.breakpoints.down("md"),{width:"343px"}),audioWrapper:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"space-evenly"},customButtons:{cursor:"pointer"},sliderWrapper:{width:"30%",display:"flex",alignItems:"center",height:"100%"},progressSlider:{color:"black"},volumeWrapper:{display:"flex",alignItems:"center",height:"100%"},volumeButtons:{cursor:"pointer",marginRight:"10px"},contentWrapper:{height:"100%",display:"flex",alignItems:"center"},volumePaper:{backgroundColor:"#F1F3F4",height:"91px",width:"26px",display:"flex",justifyContent:"center",marginBottom:"12px",marginRight:"19%","&::after":{content:'""',position:"absolute",display:"block",width:"0",zIndex:1,borderStyle:"solid",borderColor:"#F1F3F4 transparent",borderWidth:"11px 6px 0",bottom:"51px",left:"78%",marginLeft:"-7px"}},collapeEntered:{marginRight:"19%"}}})),A=(0,v.A)((function(){return{root:{color:"black"},thumb:{"&:focus, &:hover":{boxShadow:"none"},"&$active":{boxShadow:"none"}},track:{height:4},rail:{height:4}}}))(g.Ay),b=(0,v.A)((function(){return{root:{color:"black",maxHeight:70,margin:10,"&$vertical":{width:4,display:"flex",justifyContent:"center"}},thumb:{"&:focus, &:hover":{boxShadow:"none"},"&$active":{boxShadow:"none"}},track:{height:8},rail:{height:8},vertical:{"& $rail":{width:4},"& $track":{width:4}}}}))(g.Ay),_=t(4134),w=t(59529),y=t(49780),E=t(69478),S=t(5791),I=t(81114),C=t(96907),k=t(63055),j=t(65983),T=(0,o.forwardRef)((function(e){var n=e.audioSrc,t=e.handleCloseAudioPlayer,m=e.openAudioPlayer,h=e.audioPlayerKey,g=e.autoPlay,v=e.contentApiResponse,T=e.pageNumber,N=e.setAudioObj,D=x(e),R=(0,o.useState)(0),O=(0,i.A)(R,2),P=O[0],L=O[1],W=(0,o.useState)(!1),F=(0,i.A)(W,2),B=F[0],M=F[1],V=(0,o.useState)(0),U=(0,i.A)(V,2),H=U[0],z=U[1],q=(0,o.useState)(.3),G=(0,i.A)(q,2),K=G[0],Y=G[1],J=(0,o.useState)(0),Z=(0,i.A)(J,2),X=Z[0],$=Z[1],Q=(0,o.useState)(!1),ee=(0,i.A)(Q,2),ne=ee[0],te=ee[1],re=(0,o.useState)(!1),ie=(0,i.A)(re,2),oe=ie[0],ae=ie[1],le=(0,o.useRef)(!1),ce=(0,o.useRef)(!1),se=(0,o.useRef)(-1),ue=(0,o.useRef)(!1),de=(0,o.useRef)(null),pe={playedSeconds:0,progressSliderValue:0},fe=(0,o.useState)(pe),me=(0,i.A)(fe,2),he=me[0],ge=me[1],ve=(0,o.useRef)(pe.playedSeconds);(0,o.useEffect)((function(){ve.current=he}));var xe=function(){ae(!0)},Ae=function(){oe&&ae(!1)},be=function(){var e;if(de.current){var t="";ne?(Y(.3),te(!1),de.current.volume=.3,t=I.qW.AUDIO_UNMUTED):(Y(0),te(!0),de.current.volume=0,t=I.qW.AUDIO_MUTED);var r={content_id:v.uuid,at_audio_time:(0,_.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),audio_src:n,page_number:T};(0,S.recordEventWidthAdditionalParams)(t,r),ae(!1)}},_e=function(){var e;if(!le.current&&ce.current){le.current=!0,ce.current=!1;var t={content_id:v.uuid,audio_src:n,at_audio_time:(0,_.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),page_number:T};(0,S.recordEventWidthAdditionalParams)(I.qW.CLOSE_AUDIO,t)}};return(0,o.useEffect)((function(){m&&(le.current=!1)}),[m]),(0,j.jsx)(a.A,{open:m,onMouseLeave:Ae,classes:{anchorOriginBottomRight:D.snackbar},anchorOrigin:{vertical:"bottom",horizontal:"right"},TransitionProps:{onExited:function(){_e(),Ae(),N(null),t()}},children:(0,j.jsxs)("div",{children:[(0,j.jsx)(c.A,{xsDown:!0,children:(0,j.jsx)(s.x,{onClickAway:Ae,children:(0,j.jsx)(u.A,{className:D.collapeEntered,in:oe,unmountOnExit:!0,children:(0,j.jsx)(l.A,{className:D.volumePaper,onMouseLeave:Ae,children:(0,j.jsx)(b,{orientation:"vertical",value:K,onChange:function(e,n){de.current&&(Y(n),te(0===n),de.current.volume=Number(n))},max:1,min:0,step:.1,onChangeCommitted:function(e,t){var r;if(de.current){var i=t,o=X,a={content_id:v.uuid,at_audio_time:(0,_.DS)(null===(r=de.current)||void 0===r?void 0:r.currentTime),audio_src:n,page_number:T,from_volume_level:o,to_volume_level:i};(0,S.recordEventWidthAdditionalParams)(I.qW.SET_AUDIO_VOLUME,a)}},onMouseDown:function(){var e;$(null===(e=de.current)||void 0===e?void 0:e.volume)}})})})})}),(0,j.jsx)(l.A,{className:D.audioPaper,children:(0,j.jsxs)("div",{className:D.audioWrapper,children:[n&&(0,j.jsx)("audio",{onPlay:function(){var e;if(de.current){M(!0),ce.current=!0;var t={content_id:v.uuid,audio_src:n,page_number:T,at_audio_time:(0,_.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime)};(0,S.recordEventWidthAdditionalParams)(I.qW.PLAY_AUDIO,t)}},ref:de,className:D.audio,id:h,onLoadedMetadata:function(){de.current&&(z(de.current.duration),de.current.volume=K)},onTimeUpdate:function(){var e;if(de.current){Math.round(de.current.currentTime)%(I.vh-1)==0&&(0,S.keepAlive)();var t=Math.floor(null===(e=de.current)||void 0===e?void 0:e.currentTime);if(se.current!==t&&!ue.current){var i,o,a={content_id:v.uuid,audio_src:n,page_number:T,at_audio_time:(0,_.DS)(null===(i=de.current)||void 0===i?void 0:i.currentTime)};(0,k.DW)(null!=n?n:"",null===(o=de.current)||void 0===o?void 0:o.currentTime,(0,r.A)((0,r.A)({},(0,S.getGeneralTrackingData)()),a)),se.current=t}ve.current.playedSeconds!==he.playedSeconds&&L(ve.current.playedSeconds),ge({playedSeconds:de.current.currentTime,progressSliderValue:100*de.current.currentTime/de.current.duration})}},autoPlay:g,onEnded:function(){var e;M(!1);var t={content_id:v.uuid,volume_level:null===(e=de.current)||void 0===e?void 0:e.volume,audio_src:n,page_number:T};(0,S.recordEventWidthAdditionalParams)(I.qW.FINISH_AUDIO,t)},children:(0,j.jsx)("source",{src:n})}),(0,j.jsx)("div",{className:D.contentWrapper,children:B?(0,j.jsx)(y.A,{className:D.customButtons,onClick:function(){var e;if(de.current){de.current.pause(),M(!1);var t={content_id:v.uuid,audio_src:n,at_audio_time:(0,_.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),page_number:T};(0,S.recordEventWidthAdditionalParams)(I.qW.PAUSE_AUDIO,t)}}}):(0,j.jsx)(w.A,{onClick:function(){var e;de.current&&(null===(e=de.current)||void 0===e||e.play())},className:D.customButtons})}),(0,j.jsx)("div",{className:D.contentWrapper,children:(0,_.DS)(he.playedSeconds)}),(0,j.jsx)("div",{className:D.sliderWrapper,children:(0,j.jsx)(A,{value:he.progressSliderValue,defaultValue:0,onChange:function(e,n){de.current&&(ge((0,r.A)((0,r.A)({},he),{},{progressSliderValue:n})),de.current.currentTime=n/100*de.current.duration)},onChangeCommitted:function(){var e;if(de.current){var t=(0,_.DS)(P),r=(0,_.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),i={content_id:v.uuid,seeked_from:t,seeked_to:r,audio_src:n,page_number:T};t!==r&&(0,S.recordEventWidthAdditionalParams)(I.qW.SEEK_AUDIO,i)}},onMouseDown:function(){var e;ue.current=!0,L(null===(e=de.current)||void 0===e?void 0:e.currentTime)},onMouseUp:function(){ue.current=!1}})}),(0,j.jsx)("div",{className:D.contentWrapper,children:(0,_.DS)(H)}),(0,j.jsx)("div",{className:D.volumeWrapper,children:ne?(0,j.jsx)(p.A,{className:D.volumeButtons,onClick:be,onMouseEnter:xe}):K<.3?(0,j.jsx)(f.A,{className:D.volumeButtons,onClick:be,onMouseEnter:xe}):(0,j.jsx)(d.A,{className:D.volumeButtons,onClick:be,onMouseEnter:xe})}),(0,j.jsx)("div",{className:D.contentWrapper,children:(0,j.jsx)(E.A,{onClick:t,className:D.closeButton})})]})}),(0,j.jsx)(C.A,{handler:_e})]})},h)}));T.displayName="AudioPlayer";var N=T},84411:function(e,n,t){t.d(n,{T:function(){return v}});var r=t(89379),i=t(91212),o=t(10467),a=t(5544),l=t(49255),c=t(49541),s=t(5084),u=t(4134),d=t(29297),p=t(81114),f=t(5791),m=(0,t(20535).A)((function(){return{socialContainer:{display:"flex",flexDirection:"column",maxWidth:548,maxHeight:370,"@media only screen and (max-width: 600px)":{width:"100vw",maxWidth:"100vw",maxHeight:"none",alignItems:"center",paddingTop:24,paddingBottom:24,background:"#fff"}},mobileTopMargin:{marginTop:30},socialShareText:{width:"100%",color:"#4E606B",fontSize:"13px !important",letterSpacing:"0.14px",lineHeight:"16px",textAlign:"center",marginTop:"10px !important",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Button:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:90,width:70,margin:"0 8px 18px 8px","@media only screen and (max-width: 600px)":{height:90,width:70,margin:"0 8px 18px 8px"}},copyLinkButton:{background:"#5e6366",borderRadius:"50%",width:54,height:54,display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto",cursor:"pointer"},IEMarginFix:{marginTop:-5},grid:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"0 0",width:"100%",justifyItems:"center",alignItems:"center",margin:"0 auto",padding:"0 8px"},shareButton:{width:54,height:54,pointer:"cursor"},line:{display:"none"},mobileRow:{display:"none"},"@media only screen and (max-width: 600px)":{}}})),h=t(40264),g=t(65983),v=function(e){var n=m(),t=(0,l.useState)(""),v=(0,a.A)(t,2),x=v[0],A=v[1],b=e.fileTitle,_=e.withPageNumber,w=e.pageNumber,y=e.getShareObj,E=e.additionalActions,S=n.socialShareText,I=n.socialContainer,C=n.IEMarginFix,k="Internet Exployer"===(0,u.X5)(),j=function(){var e=(0,o.A)((0,i.A)().m((function e(n){var t,r;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,y();case 1:t=e.v,r={share_link:t,file_title:b,type:"".concat(n," share"),with_page_number:_,page_number:w},(0,f.recordEventWidthAdditionalParams)(p.qW.SHARE_LINK,r);case 2:return e.a(2)}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=[{Icon:c.ik,ShareButton:c.uI,title:"Facebook"},{Icon:c.RG,ShareButton:function(e){return(0,g.jsx)(c.tD,(0,r.A)({appId:"521270401588372"},e))},title:"Facebook Messenger"},{Icon:c.uv,ShareButton:c.r6,title:"X"},{Icon:c.hZ,ShareButton:c.VI,title:"Telegram",shouldAddRound:!0},{Icon:c.Y4,ShareButton:c.Kz,title:"WhatsApp"},{Icon:c._z,ShareButton:c.wk,title:"Linkedin"},{Icon:c.yY,ShareButton:function(e){return(0,g.jsx)(c.oB,(0,r.A)({media:"https://placehold.co/600x400"},e))},title:"Pinterest"},{Icon:c.G,ShareButton:function(e){return(0,g.jsx)(c._G,(0,r.A)({windowWidth:660,windowHeight:460},e))},title:"Reddit"},{Icon:c.in,ShareButton:c.Tc,title:"Tumblr"},{Icon:c.aZ,ShareButton:function(e){return(0,g.jsx)(c.Ot,(0,r.A)({subject:b,body:"body"},e))},title:"Email",shouldAddRound:!1},{Icon:c.e,ShareButton:c.SU,title:"Viber"},{Icon:c.sE,ShareButton:function(e){return(0,g.jsx)(c.kQ,(0,r.A)({quote:b},e))},title:"Workplace"},{Icon:c.s4,ShareButton:c.Ec,title:"Line"},{Icon:c.aT,ShareButton:function(e){return(0,g.jsx)(c.mJ,(0,r.A)({image:"https://placehold.co/600x400"},e))},title:"Weibo"},{Icon:c.wY,ShareButton:c.iZ,title:"Pocket"}];T.push({Icon:h.h,ShareButton:function(e){return(0,g.jsx)("button",(0,r.A)((0,r.A)({},e),{},{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer"}}))},title:"Copy Link",isCopyLink:!0}),(0,l.useEffect)((function(){y().then((function(e){e&&A(e)}))}),[y]);var N=(0,l.useState)(!1),D=(0,a.A)(N,2),R=D[0],O=D[1],P=function(){var e=(0,o.A)((0,i.A)().m((function e(){return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(!x){e.n=2;break}return e.n=1,navigator.clipboard.writeText(x);case 1:O(!0),setTimeout((function(){return O(!1)}),1200);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),L=k?(0,d.A)(C,S):S,W=function(e){var t=e.currentIndex,r=e.targetIndex,i=T.slice(t,r).map((function(e){var t=e.Icon,r=e.ShareButton,i=e.title,o=e.isCopyLink;return(0,g.jsxs)("div",{className:n.Button,onClick:function(){return o?P():j(i)},children:[o?(0,g.jsx)("div",{className:n.copyLinkButton,children:(0,g.jsx)(t,{width:32,height:32,style:{color:"white"}})}):(0,g.jsx)(r,{url:x,className:n.shareButton,children:(0,g.jsx)(t,{size:54,round:!0})},i),(0,g.jsx)(s.A,{className:L,defaultValue:i,children:o&&R?"Copied!":i})]},i)}));return(0,g.jsxs)("div",{className:n.grid,children:[i,null==E?void 0:E.map((function(e){return(0,g.jsxs)("div",{className:n.Button,onClick:e.onClick,children:[(0,g.jsx)("div",{className:n.copyLinkButton,children:(0,g.jsx)("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,filter:"brightness(0) invert(1)"},children:e.icon})}),(0,g.jsx)(s.A,{className:L,children:e.title})]},e.title)}))]})};return(0,g.jsx)("div",{className:I,children:(0,g.jsx)(W,{currentIndex:0,targetIndex:T.length})})}},84740:function(e,n){n.A=function(e){var n=e.children;return e.isVisible?n:null}},86948:function(e,n,t){t.d(n,{x:function(){return i}});var r=t(90335),i=function(e){return function(n){n({type:r.q,payload:e})}}},87162:function(e,n,t){t.d(n,{B4:function(){return a},H2:function(){return l},Hi:function(){return m},Is:function(){return c},Kr:function(){return f},L5:function(){return s},O5:function(){return h},Q3:function(){return d},RD:function(){return v},co:function(){return A},dC:function(){return b},gs:function(){return g},oV:function(){return x},qL:function(){return o},yM:function(){return u}});var r=t(89379),i=t(46818),o=function(e){return e.LINK="Link",e.TEXT_LINK="TextLink",e.WIDGET="Widget",e}({}),a=function(e){return e.URI="URI",e.GoTo="GoTo",e.Named="Named",e.Video="Video",e.VideoLink="VideoLink",e.TextLink="TextLink",e}({}),l=function(e){return e.NextPage="NextPage",e.PrevPage="PrevPage",e.FirstPage="FirstPage",e.LastPage="LastPage",e}({}),c=function(e){return e.UTILIS_CALCULATOR="UTILIS_CALCULATOR",e.KRENSHARES_CHART="KRENSHARES_CHART",e.KRENSHARES_TABLE="KRENSHARES_TABLE",e.CHECK_BOX_FORM="CHECK_BOX_FORM",e.VIDEO_DIALOG="VIDEO_DIALOG",e.IFRAME="IFRAME",e.AUDIO="AUDIO",e.RichMedia="RichMedia",e.VIDEO_STANDALONE="VIDEO_STANDALONE",e.AURORA_CALCULATOR="AURORA_CALCULATOR",e.IMAGE="IMAGE",e.LINK="LINK",e.SHARE_CONTENT="SHARE_CONTENT",e.CUSTOM_HTML="CUSTOM_HTML",e}({}),s=function(e){return e.AUDIO_MPEG="audio/mpeg",e}({}),u=function(e){return e.COPY_BUTTON="Copy link",e.TITLE="Share",e.SUCCESS_MESSAGE="Link Copied",e.CURRENT_PAGE_CHECKBOX="Current page",e}({}),d=function(e){return e.Go_TO="GOTO",e.DOWNLOAD="DOWNLOAD",e}({}),p={};Object.values(i.NA).forEach((function(e){p[e]=e}));var f=(0,r.A)((0,r.A)({},p),{},{campaign:"campaign",without_navbar:"without_navbar",is_website_mode:"is_website_mode",is_fit_page_zoom:"is_fit_page_zoom",p_num:"p_num",page:"page"}),m=60,h=60,g=("Fit width with ".concat("13%"," margin "),"Something went wrong!"),v="Copy Link",x="Share",A="Go to",b="Download"},88960:function(e,n,t){t.d(n,{A:function(){return c}});var r=t(5084),i=t(88671),o=(0,t(20535).A)((function(){return{errorWrapperStyle:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",backgroundColor:"#fff",minHeight:"200px",width:"100%",height:"100%",position:"absolute",top:0,left:0,right:0,bottom:0,margin:"auto"},iconWrapperStyle:{marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center"},errorIconStyle:{width:"48px",height:"48px",color:"#f44336",display:"block",margin:"0 auto"},infoIconStyle:{width:"48px",height:"48px",color:"#1976d2",display:"block",margin:"0 auto"},textWrapperStyle:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:"100%",maxWidth:"400px",margin:"0 auto"},primaryTextStyle:{fontSize:"18px",fontWeight:500,marginBottom:"8px",color:"#333",textAlign:"center",width:"100%"},secondaryTextStyle:{fontSize:"14px",color:"#666",marginBottom:"16px",textAlign:"center",width:"100%",lineHeight:1.5},linkTextStyle:{fontSize:"14px",color:"#1976d2",textDecoration:"underline",wordBreak:"break-all",textAlign:"center",width:"100%","&:hover":{color:"#1565c0"}}}})),a=t(24520),l=t(65983);var c=function(e){var n=o(),t=n.errorWrapperStyle,c=n.errorIconStyle,s=n.primaryTextStyle,u=n.linkTextStyle,d=n.textWrapperStyle,p=n.iconWrapperStyle,f=n.secondaryTextStyle,m=e.isPreview,h=e.iframeSrc,g=e.handleOpenLinkExternal;return(0,l.jsxs)("div",{className:t,children:[(0,l.jsx)("div",{className:p,children:m&&(0,l.jsx)(a.h,{className:c})}),(0,l.jsx)("div",{className:d,children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.A,{className:s,children:"This content cannot be displayed in an iframe"}),(0,l.jsx)(r.A,{className:f,children:"Please contact your site administrator to enable iframe embedding or use a link instead of an iframe."}),(0,l.jsx)(i.A,{href:"#",onClick:g,children:(0,l.jsx)(r.A,{className:u,children:h})})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(i.A,{href:"#",onClick:g,children:(0,l.jsx)(r.A,{className:u,children:h})})})})]})}},90335:function(e,n,t){t.d(n,{q:function(){return r}});var r="SET_SHORTEN_DATA"},90807:function(e,n,t){t.d(n,{d6:function(){return r}});var r="Celero, PDF, engage, content, b2b, digitize, collateral, boost, engagement, rate, netapp, utils, kraneshares, track, events"},91097:function(e,n,t){t.r(n);var r=t(89379),i=t(49255),o=t(47081),a=t(16976),l=t(27460),c=t(34955),s=t(4134),u=t(5791),d=t(81114),p=t(31783),f=t(77236),m=t(60541),h=t(691),g=t(65983),v=function(){var e={},n=(0,o.d4)((function(e){return{viewer:e.viewer}})).viewer,t=performance.now(),v=!0,x=(0,i.useRef)(new Date),A=(0,i.useRef)(!0),b=(0,i.useRef)(u.recordEventWidthAdditionalParams),_=(0,s.ZI)(),w=!(_!==f.V.Mobile&&_!==f.V.Tablet),y=(0,i.useRef)(u.getGeneralTrackingData).current(),E=!1,S=!1,I=(0,i.useRef)(p.Y.EXTERNAL),C=(0,i.useRef)(I.current),k=(0,i.useRef)(!1),j=n.isContentFinishLoading,T=!w&&!!j,N=w&&!!j,D=function(n){e[n.code]="keydown"===n.type;var t=n.key||n.code;(e.MetaLeft&&e.ShiftLeft&&"KeyS"===t||"KeyS"===t&&n.metaKey&&n.shiftKey||"PrintScreen"===t)&&(0,u.recordEventWidthAdditionalParams)(d.qW.SCREENSHOT_TOOK)},R=(0,i.useCallback)((function(){(0,u.recordEventWidthAdditionalParams)(d.qW.PRINT)}),[]),O=(0,i.useCallback)((0,a.A)(D,40),[D]);(0,i.useEffect)((function(){return window.addEventListener("keydown",O),window.addEventListener("keyup",O),function(){window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}}),[O]),(0,i.useEffect)((function(){return window.addEventListener("afterprint",R),function(){window.removeEventListener("afterprint",R)}}),[R]),(0,i.useEffect)((function(){(0,u.handleMissedEvents)(),window.addEventListener("online",u.handleMissedEvents);var e=(0,s.al)(),n=h.A.sessionStorage.getItem("celero_obj"),t=n&&JSON.parse(n)||{};if(!e){if((0,m.Y)()){var i=h.A.sessionStorage.getItem("last_open_page_time");i&&((0,u.recordEventWidthAdditionalParams)(d.qW.SLIDE_VIEW_FINISHED,(0,r.A)((0,r.A)({},t),{},{duration:(0,s.ez)(new Date(i),new Date),keen:{timestamp:new Date}})),h.A.sessionStorage.removeItem("last_open_page_time")),(0,u.recordEventWidthAdditionalParams)(d.qW.REFRESH,t),h.A.sessionStorage.setItem("is_refresh","yes")}delete t.link;var o=(0,r.A)((0,r.A)({link:window.location.href},t),y);h.A.sessionStorage.setItem("celero_obj",JSON.stringify(o))}return function(){window.removeEventListener("online",u.handleMissedEvents)}}),[]);(0,c.h)({timeout:1e3*d.vh,onIdle:function(){var e=(0,u.getLastSessionActionTime)();if(k.current&&!(e&&(0,s.ez)(new Date(e),new Date)<1e3*d.vh)){var n={type:d.qW.USER_IDLE};(0,u.recordEventWidthAdditionalParams)(d.qW.WINDOW_BLUR,n)}}}),(0,c.h)({timeout:d.Md,onAction:function(){if(!(0,u.isRouteExcludedFromSession)()&&(0,u.checkSessionAvailability)()&&(0,u.updateSession)(),C.current!==p.Y.EXTERNAL||w&&!0===k.current)if(A.current){var e=(0,s.ez)(x.current,new Date);if(e>1e3*d.vh&&ed.Md)){var r={duration:n};b.current(d.qW.WINDOW_FOCUSED,r)}}}),100),onBlur:(0,a.A)((function(){w&&(I.current=p.Y.EXTERNAL,k.current=!1,C.current=p.Y.EXTERNAL,S||(S=!0,t=performance.now(),v=!1,(0,u.recordEventWidthAdditionalParams)(d.qW.WINDOW_BLUR)))}),100)},{domTarget:window}),W=(0,l.NH)({onMouseOver:function(){k.current=!0},onMouseOut:function(){k.current=!1}},{domTarget:window});return(0,g.jsxs)(g.Fragment,{children:[T&&(0,g.jsx)("div",(0,r.A)({},P())),(0,g.jsx)("div",(0,r.A)({},W())),N&&(0,g.jsx)("div",(0,r.A)({},L()))]})};v.displayName="WindowTracker",n.default=v},91408:function(e,n,t){var r=t(89379),i=t(80045),o=(t(49255),t(12558)),a=t(95266),l=t(65983),c=["isLoading","children","disabled"];n.A=function(e){var n=e.isLoading,t=void 0!==n&&n,s=e.children,u=e.disabled,d=(0,i.A)(e,c);return(0,l.jsx)(o.A,(0,r.A)((0,r.A)({disabled:t||u},d),{},{children:t?(0,l.jsx)(a.A,{size:24,color:"inherit"}):s}))}},91934:function(e,n,t){t.d(n,{A:function(){return p}});var r=t(20535),i=t(13989),o=t(78752),a=t(95492),l=t(5084),c=t(88078),s=t(61870),u=t(65983),d=(0,r.A)((function(e){return(0,i.A)({root:{width:"100%",cursor:"pointer",display:"flex",flexDirection:"column"},header:{padding:0,paddingBottom:10},media:{height:0,paddingTop:"56.25%",cursor:"pointer",backgroundPosition:"top"},tags:{display:"flex",justifyContent:"left",flexWrap:"wrap",listStyle:"none",margin:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},chip:{margin:e.spacing(.5),marginLeft:0,fontSize:"11px !important",borderRadius:"6px !important",padding:"0 6px !important",height:"26px !important"},chipLabel:{fontSize:"11px !important",padding:"0px !important"},title:{fontWeight:"bold",cursor:"pointer",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":2,"-webkit-box-orient":"vertical"},description:{margin:e.spacing(0),display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",color:function(e){return e.color&&"rgba(0, 0, 0, 0.87)"!==e.color?e.color:""},cursor:"pointer"},card_content:{padding:0,paddingTop:16,paddingBottom:4,display:"flex",flexDirection:"column","&:last-child":{paddingBottom:"8px"},color:function(e){return e.color&&"rgba(0, 0, 0, 0.87)"!==e.color?e.color:""}},visitors:{display:"flex",gap:2,alignItems:"center",color:"rgb(107, 107, 107)",fontSize:12},visitorsNumber:{height:"100%",lineHeight:"24px",textAlign:"center",opacity:function(e){return e.color&&"rgba(0, 0, 0, 0.87)"!==e.color?.7:1},color:function(e){return e.color&&"rgba(0, 0, 0, 0.87)"!==e.color?e.color:""}},icon:{color:function(e){return e.color&&"rgba(0, 0, 0, 0.87)"!==e.color?e.color:""}}})}));function p(e){var n=e.card,t=e.onClick,r=e.color,i=e.hideBubbles,p=void 0!==i&&i,f=d({color:r}),m=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"",h=function(){t(n.link_url||n.link,n)},g=(null==n?void 0:n.keywords)||(null==n?void 0:n.tags);return(0,u.jsxs)("div",{className:f.root,children:[(0,u.jsx)(o.A,{className:f.media,image:n.image_url||n.image,onClick:h}),(0,u.jsxs)(a.A,{className:f.card_content,onClick:h,children:[(0,u.jsx)(l.A,{className:f.title,variant:"h6",component:"h2",title:n.title,children:n.title}),(0,u.jsx)(l.A,{variant:"body2",color:"textSecondary",component:"p",className:f.description,children:m.length<=300?m:m.substr(0,300)+"..."}),(0,u.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:"auto",paddingTop:10},children:[n.visits>=0&&(0,u.jsxs)("div",{className:f.visitors,children:[(0,u.jsx)(s.h,{className:f.icon}),(0,u.jsx)("div",{className:f.visitorsNumber,children:n.visits})]}),!p&&(0,u.jsx)("div",{className:f.tags,children:null==g?void 0:g.map((function(e){return(0,u.jsx)(c.A,{label:e,className:f.chip,classes:{label:f.chipLabel},title:e},e)}))})]})]})]})}},92181:function(e,n,t){t.r(n),t.d(n,{default:function(){return A}});var r=t(89379),i=t(5544),o=t(49255),a=(0,t(20535).A)((function(){return{sliderRoot:{color:"white",height:"100%",padding:0,display:"flex",alignItems:"center"},thumbStyle:{height:16,width:16,marginTop:0,"&:hover, &.Mui-focusVisible":{boxShadow:"none"}},railStyle:{height:8,borderRadius:20,color:"#9E9B9B"},trackStyle:{height:8,borderRadius:20},iconButton:{width:24,height:24,padding:0,marginTop:5},progressBar:{margin:"0 12px",height:3,backgroundColor:"#9E9B9B",borderRadius:20},progress:{backgroundColor:"#3081F6",borderRadius:20,transition:"width 0.5s",height:"100%"},bottomWrapper:{display:"flex",justifyContent:function(e){return e.is_powered_by_celero?"space-between":"end"},flexDirection:"row",height:"95%",alignItems:"center"},rightSideWrapper:{display:"flex",flexDirection:"row",width:"60%",justifyContent:"end"},zoomWrapper:{display:"flex",flexDirection:"row",width:"50%",alignItems:"center",paddingRight:24,maxWidth:316},zoomSlider:{margin:"0 24px"},barWrapper:{height:"120px !important"},celeroLogoStyle:{cursor:"pointer",height:30},barStyle:{height:60}}})),l=t(56787),c=(t(33955),t(40677)),s=t(13319),u=t(49107),d=t(87632),p=t(95792),f=t(84899),m=t(27460),h=t(5791),g=t(81114),v=t(65983),x=.15,A=function(e){var n,t=e.content,A=e.setControlsBarOpened,b=(0,l.A)(),_=b.currentPageNumber,w=b.currentZoomSettings,y=(0,f.A)().isMobile,E=(null==t||null===(n=t.config)||void 0===n?void 0:n.pagecount)||0,S=(0,o.useState)("0%"),I=(0,i.A)(S,2),C=I[0],k=I[1],j=(0,o.useState)(0),T=(0,i.A)(j,2),N=T[0],D=T[1],R=(0,o.useRef)(""),O=(0,o.useState)(Date.now()),P=(0,i.A)(O,2),L=P[0],W=P[1],F=(0,o.useState)(!1),B=(0,i.A)(F,2),M=B[0],V=B[1],U=!1,H=a({is_powered_by_celero:U}),z=H.barWrapper,q=H.iconButton,G=H.bottomWrapper,K=H.progress,Y=H.progressBar,J=H.railStyle,Z=H.rightSideWrapper,X=H.sliderRoot,$=H.thumbStyle,Q=H.trackStyle,ee=H.zoomSlider,ne=H.zoomWrapper,te=(H.celeroLogoStyle,H.barStyle),re=(0,m.fD)((function(e){e.distance>0&&W(Date.now())}),{domTarget:window});(0,o.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,h.getCeleroId)()),n={content_id:t.uuid,link_url:e,page_number:_};(0,h.recordEventWidthAdditionalParams)(g.qW.OPEN_LINK_IN_NEW_TAB,n),setTimeout((function(){window.open(e,"_blank")}))}),[t,_]);return(0,o.useEffect)((function(){var e=function(){W(Date.now())};return document.addEventListener("touchstart",e),function(){document.removeEventListener("touchstart",e)}}),[]),(0,o.useEffect)((function(){V(!0),A(!0);var e=setTimeout((function(){V(!1),A(!1)}),3e3);return function(){clearTimeout(e)}}),[L,_]),(0,o.useEffect)((function(){"specific"!==(null==w?void 0:w.zoomType)&&(R.current=null==w?void 0:w.zoomType)}),[w]),(0,o.useEffect)((function(){k("".concat(Math.floor(_/E*100),"%"))}),[_]),(0,v.jsx)(d.A,(0,r.A)((0,r.A)({direction:"up",in:M,style:{display:"flex",justifyContent:"end",flexDirection:"column",position:"fixed",left:0,right:0,bottom:0,zIndex:1099,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.2) 100%)"}},re()),{},{children:(0,v.jsx)("div",{className:z,children:(0,v.jsxs)("div",{className:te,children:[(0,v.jsx)("div",{id:"progress-bar",className:Y,children:(0,v.jsx)("div",{className:K,style:{width:C}})}),(0,v.jsxs)("div",{className:G,children:[U,(0,v.jsx)("div",{className:Z,children:!y&&(0,v.jsxs)("div",{className:ne,children:[(0,v.jsx)(p.A,{disableRipple:!0,className:q,onClick:function(){0!=N&&(D(N-1),N-1!=0?window.IDRViewer.setZoom(w.zoomValue-x):window.IDRViewer.setZoom(R.current))},children:(0,v.jsx)(c.h,{width:24,height:24})}),(0,v.jsx)(u.Ay,{id:"zoom-slider",className:ee,step:1,min:0,max:3,value:N,onChange:function(e,n){var t=n;if(n!=N){if(0==t)window.IDRViewer.setZoom(R.current);else if(tN){var i=w.zoomValue+(t+N)*x;window.IDRViewer.setZoom(i)}D(t)}},classes:{root:X,thumb:$,rail:J,track:Q}}),(0,v.jsx)(p.A,{disableRipple:!0,className:q,onClick:function(){3!=N&&(D(N+1),window.IDRViewer.setZoom(w.zoomValue+x))},children:(0,v.jsx)(s.h,{width:24,height:24})})]})})]})]})})}))}},93690:function(e,n,t){t.d(n,{A:function(){return p}});var r=t(20535),i=t(13989),o=t(37838),a=t(78752),l=t(95492),c=t(88078),s=t(5084),u=t(65983),d=(0,r.A)((function(e){return(0,i.A)({root:{width:"100%",overflow:"visible",cursor:"pointer"},header:{padding:0,paddingBottom:10},media:{height:0,paddingTop:"56.25%",cursor:"pointer",backgroundPosition:"top"},tags:{display:"flex",justifyContent:"left",flexWrap:"wrap",listStyle:"none",margin:0},chip:{margin:e.spacing(.5),marginLeft:0,fontSize:"11px !important",borderRadius:"6px !important",padding:"0 6px !important",height:"26px !important"},chipLabel:{fontSize:"11px !important",padding:"0 !important"},title:{fontWeight:"bold",cursor:"pointer"},description:{margin:e.spacing(0),cursor:"pointer"},card_content:{paddingTop:4,paddingBottom:4,"&:last-child":{paddingBottom:"8px"}}})}));function p(e){var n=e.card,t=e.onClick,r=e.color,i=d({color:r}),p=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"",f=(null==n?void 0:n.keywords)||(null==n?void 0:n.tags);return(0,u.jsxs)(o.A,{className:i.root,onClick:function(){t(n.link_url||n.link,n)},children:[(0,u.jsx)(a.A,{className:i.media,image:n.image_url||n.image}),(0,u.jsxs)(l.A,{className:i.card_content,children:[(0,u.jsx)("div",{className:i.tags,children:null==f?void 0:f.map((function(e){return(0,u.jsx)(c.A,{label:e,className:i.chip,classes:{label:i.chipLabel}},e)}))}),(0,u.jsx)(s.A,{className:i.title,variant:"h6",component:"h2",children:n.title}),(0,u.jsx)(s.A,{variant:"body2",color:"textSecondary",component:"p",className:i.description,children:p.length<=300?p:p.substr(0,300)+"..."})]})]})}},94541:function(e,n,t){t.d(n,{W:function(){return r},r:function(){return i}});var r="SET_MOBILE_MENU",i=function(e){return e.ANNOTATION="Annotation",e.VIEWER_BAR="Viewer Bar",e}({})},96054:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var r=t(49255),i=t(79218),o=t(95792),a=(0,t(20535).A)((function(e){return{dialogContainerStyle:{display:"flex",height:"100%",backgroundColor:e.palette.basicColors.alabaster2},wrapper:{height:"100%",width:"100%"},contentWrapper:{height:"calc(100% - 54px)",position:"relative"},header:{width:"100%",boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px"},iconButton:{padding:0,color:e.palette.getContrastText(e.palette.customViewer.viewerBarColor),"&:hover":{backgroundColor:"transparent"}},backIcon:{width:24,height:24,fontSize:24},actionStyle:{width:24,height:24,fontSize:24},actionButton:{color:e.palette.getContrastText(e.palette.customViewer.viewerBarColor),padding:0,marginRight:12,"&:last-of-type":{marginRight:0},"&:hover":{backgroundColor:"transparent"}},backdrop:{backgroundColor:"rgba(78,96,107,0)"},paper:{margin:0,borderRadius:"16px 16px 0 0",overflow:"hidden"},root:{}}})),l=t(71898),c=t(13249),s=t(65983),u=function(e){var n=a(),t=e.handleCloseMobilePopup,u=e.isLoading,d=e.openMobilePopup,p=e.renderContentOfMobilePopup,f=e.actions,m=e.setMobilePopupStartTime;(0,r.useEffect)((function(){d&&m(performance.now())}),[d]);var h=n.dialogContainerStyle,g=n.wrapper,v=n.root,x=n.paper,A=n.backdrop,b=n.contentWrapper,_=n.header,w=n.iconButton,y=n.backIcon,E=n.actionStyle,S=n.actionButton,I={root:v},C={classes:{root:A}},k={classes:{root:x}};return(0,s.jsx)(i.A,{open:d,onClose:t,TransitionComponent:c.t,fullScreen:!0,classes:I,BackdropProps:C,PaperProps:k,disableEnforceFocus:!0,children:(0,s.jsx)("div",{className:h,children:(0,s.jsxs)("div",{className:g,children:[(0,s.jsxs)("div",{className:_,children:[(0,s.jsx)(o.A,{className:w,onClick:t,disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,size:"small",children:(0,s.jsx)(l.A,{className:y})}),f.map((function(e,n){return!e.hidden&&(0,s.jsx)(o.A,{className:S,onClick:e.action,disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,size:"small",children:(0,s.jsx)("span",{className:E,children:e.icon})},"mobilePopupAction".concat(n))}))]}),(0,s.jsx)("div",{className:b,children:!u&&p()})]})})})}},96907:function(e,n,t){t.d(n,{A:function(){return o}});var r=t(49255),i=t(65983),o=function(e){var n=e.handler;return(0,r.useEffect)((function(){return window.addEventListener("beforeunload",n),function(){return window.removeEventListener("beforeunload",n)}}),[]),(0,i.jsx)(i.Fragment,{})}},98874:function(e,n,t){t.r(n),t.d(n,{default:function(){return a}});var r=t(81229),i=(0,t(20535).A)((function(){return{audioApperance:{width:function(e){return"".concat(e.width,"px")},height:function(e){return"".concat(e.height,"px")},cursor:"pointer"},iconAudioApperance:{width:function(e){return"".concat(e.width,"px")},height:function(e){return"".concat(e.height,"px")},cursor:"pointer",color:function(e){return e.iconColor}}}})),o=t(65983),a=function(e){var n=e.handleClick,t=e.isDefualtAudioAnnotation,a=e.imgSrc,l=e.isIconNeeded,c=e.shouldCloseAfterSlideChange,s=e.src,u=e.pageNumber,d=i(e),p=d.audioApperance,f=d.iconAudioApperance,m=function(){n({audioSrc:s,shouldCloseAfterSlideChange:c,pageNumber:u})};return(0,o.jsx)(o.Fragment,{children:t?(0,o.jsx)("img",{className:p,src:a,onClick:m}):(0,o.jsx)(o.Fragment,{children:l?(0,o.jsx)(r.A,{onClick:m,className:f}):(0,o.jsx)("div",{className:d.audioApperance,onClick:m})})})}},99283:function(e,n,t){t.d(n,{S:function(){return o}});var r=t(60436),i=t(41679),o=function(e){return function(n){n({type:i.g,payload:(0,r.A)(e)})}}},99964:function(e,n,t){t.d(n,{y:function(){return i}});var r=t(11977),i=function(e,n){return function(t){t({type:r.j,payload:{integration:e,identifyResponse:n}})}}}}]);