"use strict";(self.webpackChunkcelero=self.webpackChunkcelero||[]).push([[300],{2790:function(e,n,t){t.d(n,{L:function(){return r}});var r="SET_COMPANY_FORMS"},5348:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var r=t(49255),i=t(60723),o=t(79218),a=t(16263),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"},paper:{maxWidth:"720px !important",maxHeight:"720px !important",borderRadius:"16px !important",backgroundColor:"transparent !important",boxShadow:" 0 12px 24px 0 rgba(44,39,56,0.02), 0 32px 64px 0 rgba(44,39,56,0.04)",overflow:"hidden",zIndex:e.zIndex.modal+140+" !important"}}})),c=t(65983),s=function(e){var n=l(e);return(0,r.useEffect)((function(){var n=performance.now();e.setDialogStartTime(n)}),[]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(o.A,{fullScreen:!0,open:e.openDialog,onClose:e.handleCloseAnnotationDialog,disableEnforceFocus:!0,TransitionComponent:a.L,classes:{root:n.root},BackdropProps:{classes:{root:n.backdrop}},PaperProps:{classes:{root:n.paper}},children:(0,c.jsx)(i.Ay,{container:!0,spacing:0,className:n.dialogContainerStyle,children:(0,c.jsx)(i.Ay,{item:!0,xs:12,className:n.contentWrapper,children:(0,c.jsx)(i.Ay,{item:!0,xs:12,md:12,children:e.renderContentOfDialog()})})})})})}},5536:function(e,n,t){t.d(n,{N6:function(){return o},SX:function(){return i},Uv:function(){return a},V:function(){return l}});var r=t(68494),i=function(e){return function(n){n({type:r.n,payload:e}),"access_control"===e.source&&n({type:r.x$,payload:e.id})}},o=function(e){return function(n){n({type:r.Jt,payload:e});var t=e.find((function(e){return"access_control"===e.source}));t&&n({type:r.x$,payload:t.id})}},a=function(e){return function(n){n({type:r.x$,payload:e})}},l=function(){return function(e){e({type:r.eh})}}},5791:function(e,n,t){t.d(n,{AS:function(){return P},E1:function(){return W},I1:function(){return R},Mc:function(){return U},Rf:function(){return K},Yw:function(){return ne},Z8:function(){return re},bU:function(){return V},cj:function(){return J},jw:function(){return Q},kU:function(){return ie},lW:function(){return ee},qO:function(){return te},ss:function(){return F},wn:function(){return L},xF:function(){return Y}});var r,i=t(91212),o=t(10467),a=t(89379),l=t(32980),c=t(4134),s=t(75184),u=t(81114),d=t(88091),p=t.n(d),f=t(691),m=t(9244),h=t(57957),g=t(3677),v=t.n(g),x=t(53964),b=t.n(x),A=t(59205),w=t(44415),y=t(19378),_=t(16084);function S(){var e=window.navigator.userAgent,n=new(v());n.setUA(e);var t=JSON.parse(JSON.stringify(n.getResult())),r=new(b())(e);return t&&t.device&&(t.device.type=r.tablet()?"tablet":r.mobile()?"mobile":"desktop"),t}var I=A.A.create({headers:{"content-type":"application/json"},timeout:3e4}),E={isOn:!1},k=document.referrer,C=[],j={},T={},N={page_number:void 0,content_id:void 0,account_id:void 0,session_id:void 0,tab_id:void 0,app_version:"0.38.0"},D=N,O=["account_id","content_id","version_id","session_id","tab_id","page_number"],R=function(e){D=(0,a.A)((0,a.A)({},D),e);var n=f.A.sessionStorage.getItem("celero_obj"),t=(0,s.j)(n,{})||{};t=(0,a.A)((0,a.A)({},t),e),f.A.sessionStorage.setItem("celero_obj",JSON.stringify(t)),function(e){try{e.celero_id&&l.gV({id:String(e.celero_id)});var n={};O.forEach((function(t){var r=e[t];null!=r&&""!==r&&(n[t]=String(r))})),"undefined"!=typeof window&&(n.hostname=window.location.hostname,n.path_pattern=(t=window.location.pathname)?t.split("/").map((function(e){return e?/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)?":uuid":/^\d+$/.test(e)?":id":/^[0-9a-f]{6,}$/i.test(e)&&/\d/.test(e)?":hash":e.length>30||e.includes("-")&&e.length>12?":slug":e:e})).join("/"):"/"),Object.keys(n).length>0&&l.Wt(n)}catch(e){}var t}(D)},L=function(){return D},P=function(){var e,n=(0,_.Ri)("celero_id");n||(n=p().utils.cookie("keen").get("uuid"));(n||(n=f.A.localStorage.getItem("celero_id")),n)||(n=null===(e=L())||void 0===e?void 0:e.celero_id);if(!n){var t,r=f.A.sessionStorage.getItem("celero_obj");n=null===(t=(0,s.j)(r))||void 0===t?void 0:t.celero_id}return n},F=function(e){(0,_.TV)("celero_id",e,365),p().utils.cookie("keen").set("uuid",e),f.A.localStorage.setItem("celero_id",e),R({celero_id:e})};function W(e,n){if(!(0,c.MX)()){var t=window.location.href;try{var r=new URL(t);r.searchParams.delete("preview_token"),t=r.toString()}catch(e){}var i=JSON.parse(JSON.stringify(n));i.chk="dp",i.event_type=e,i.timestamp=new Date,i.timestamp_sent=i.timestamp,i.referrer=document.referrer,i.user_agent=S(),i.url_full=t;var o={event:{name:e,payload:i}};fetch("https://t.celero.io/t/m.png?".concat((0,w.lK)(o)),{keepalive:!0}).catch((function(e){(0,h.FF)("Tracking pixel failed",{message:null==e?void 0:e.message,online:navigator.onLine,visibility:document.visibilityState,path:"debug-tracker"})}))}}var B=["account_id","celero_id","timestamp","chk"];function M(){var e;if(0!==C.length){E.isOn=!0;var n=C[0],t=JSON.parse(JSON.stringify(n.payload));t.chk=t.chk||"p",t.account_id=t.account_id||D.account_id,t.celero_id=t.celero_id||D.celero_id,t.version_id=t.version_id||D.version_id,t.content_id=t.content_id||D.content_id,t.timestamp=t.timestamp||new Date,t.timestamp_sent=t.timestamp_sent||new Date;var r=B.filter((function(e){return!t[e]})),i=f.A.sessionStorage.getItem(y.$i);if(r.length>0||!["-1","0","1"].includes(i))setTimeout((function(){M()}),400);else if("0"!==i||null!==(e=u.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,w.lK)(o));I.get(a).then((function(e){return e.data})).catch((function(e){(0,h.FF)("Tracking pixel failed",{message:null==e?void 0:e.message,url_length:a.length,event_name:n.name,path:"delayed-events"})})).finally((function(){C.shift(),M()}))}else C.shift()}else E.isOn=!1}var U=function(){W("d3",{celero_id:P()})},V=Boolean("true"===new URLSearchParams(window.location.search).get("celero_preview_app"));null!==(r=window)&&void 0!==r&&r.celeroFeedData||window.location.href.includes("/f/")||B.push("version_id");var z=function(){var e=(0,o.A)((0,i.A)().m((function e(n,t){var r;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,fetch(n,{method:"GET",keepalive:!0,mode:"no-cors",credentials:"omit"});case 1:e.n=3;break;case 2:e.p=2,r=e.v,(0,h.FF)("Tracking pixel failed",{message:null==r?void 0:r.message,url_length:n.length,event_name:t,path:"record-keepalive"});case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(n,t){return e.apply(this,arguments)}}();function H(e,n){return q.apply(this,arguments)}function q(){return q=(0,o.A)((0,i.A)().m((function e(n,t){var r,o,l,c,d,p,m,g,v,x,b,A=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=A.length>2&&void 0!==A[2]&&A[2],o=JSON.parse(JSON.stringify(t)),(o=(0,a.A)({chk:"p"},o)).timestamp_sent=new Date,o.event_type=n,o.referrer=k,V&&(o._opened_in_preview=V),n===u.qW.CONTENT_VIEW_STARTED&&(l=(0,s.j)(f.A.sessionStorage.getItem("geolocation"))||window.geolocation||j||{},o.location=l,o.user_agent=S(),l&&0!==Object.keys(l).length||(c=(0,s.j)(f.A.sessionStorage.getItem("geo_location_null_reason"))||window.geo_location_null_reason||T,o.location_null_reason=c)),d={name:n,payload:o},p=B.filter((function(e){return!o[e]})),m=f.A.sessionStorage.getItem(y.$i),!(p.length>0)&&["-1","0","1"].includes(m)){e.n=1;break}return C.push((0,a.A)({},d)),C.length>0&&(E.isOn||M()),e.a(2);case 1:if(g={event:d},v="https://t.celero.io/t/m.png?".concat((0,w.lK)(g)),!r||"function"!=typeof fetch){e.n=2;break}return e.a(2,z(v,n));case 2:return e.p=2,e.n=3,I.get(v);case 3:return x=e.v,e.a(2,x.data);case 4:e.p=4,b=e.v,(0,h.FF)("Tracking pixel failed",{message:null==b?void 0:b.message,url_length:v.length,event_name:n,path:"record-direct"});case 5:return e.a(2)}}),e,null,[[2,4]])}))),q.apply(this,arguments)}var G=function(){var e=(0,o.A)((0,i.A)().m((function e(n,t){var r,o,a,l=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(o=l.length>2&&void 0!==l[2]&&l[2],!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"!==f.A.sessionStorage.getItem(y.$i)||null!==(r=u.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,o);case 3:return a=e.v,e.a(2,a);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=f.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(),f.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,l,s,u,d,p,f,m=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=!(m.length>2&&void 0!==m[2])||m[2],o=m.length>3&&void 0!==m[3]&&m[3],!(window.celeroURLParams&&window.celeroURLParams.is_bot||(0,c.MX)())){e.n=1;break}return e.a(2);case 1:return l=r?D:{},s=(0,a.A)((0,a.A)({},l),{},{timestamp:new Date},t),u=(0,c.f_)(s),d={eventName:n,payload:u,created_at:u.timestamp},p=new CustomEvent(n,{detail:d,bubbles:!0,cancelable:!0,composed:!1}),!1!==u.checkCustomEvent&&(document.dispatchEvent(p),window.customEventsHandler&&window.customEventsHandler(d)),delete u.checkCustomEvent,e.n=2,G(n,u,o);case 2:return f=e.v,e.a(2,f)}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),X={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."};A.A.get("https://api.ipgeolocation.io/ipgeo",{params:{apiKey:"6f2d870402f14704929b78cc257da158"},timeout:5e3}).then((function(e){var n=e.data;f.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,j=n})).catch((function(e){var n,t="",r=null,i="";e.response?(r=e.response.status,i=e.response.data,t="HTTP error: ".concat(r," - ").concat(e.response.statusText)):e.request?(t="Network error: No response received",i=e.request):t="Error in setting up the request: ".concat(e.message);var o=r?X[r]||"Unexpected error":"Network level error",l={message:t,originalMessage:e.message,description:o,status:r||"No status available",timestamp:(new Date).toISOString(),endpoint:"https://api.ipgeolocation.io/ipgeo",responseBody:i};T=l,window.geo_location_null_reason=l,f.A.sessionStorage.setItem("geo_location_null_reason",JSON.stringify(l)),(0,h.FF)("ipgeolocation.io request failed",(0,a.A)((0,a.A)({},l),{},{http_status:String(null!==(n=r)&&void 0!==n?n:"no-response")})),window.continentCode="UNKNOWN"}));var J=function(){return!1},Z=function(e){var n=e.sessionId;R({session_id:n}),f.A.localStorage.setItem(m.R.SESSION,JSON.stringify(e))},$=function(){f.A.localStorage.removeItem(m.R.SESSION),D.session_id=void 0},Q=function(){try{var e=p().helpers.getUniqueId(),n=new Date,t={sessionId:e,createdAt:n.getTime(),updatedAt:n.getTime()};return Z(t),Promise.resolve()}catch(e){return(0,h.ZI)("createSession :"+e),Promise.reject(e)}},ee=function(){try{return function(e){R({tab_id:e}),f.A.sessionStorage.setItem("tab_id",e)}(p().helpers.getUniqueId()),Promise.resolve()}catch(e){return(0,h.ZI)("createTabId :"+e),Promise.reject(e)}},ne=function(){try{var e=f.A.localStorage.getItem(m.R.SESSION),n=e&&JSON.parse(e),t=new Date;return e&&n&&n.updatedAt&&Date.parse(t.toString())-n.updatedAt0&&void 0!==arguments[0])||arguments[0];if(ne())try{if(!e)return D.session_id=void 0,void $();var n=f.A.localStorage.getItem(m.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()}),Z(t)}}catch(e){(0,h.ZI)("updateSession in tracker.ts "+e)}},re=function(){te(),function(){try{var e=f.A.localStorage.getItem(m.R.CONTENTS),n=e&&JSON.parse(e);if(!n)return;for(var t=L().content_id,r=0,i=n.length;rB.current.clientHeight;W(!!e)}),[S]);var U=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:I((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:I((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)}}(),V=(0,s.useCallback)((function(e){var n={type:"Assistant Chat",value:e,recommendation_list:g};(0,y.xF)("Click Feed",n)}),[g]),z=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,A.jsx)(w,{card:i,onClick:V,children:"("+o+")"},n)}return e})):e},H=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=z(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,U(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(){R(!0);var e={value:j};(0,y.xF)("Expand Assistant Chat",e)}),[O]);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=E.current)||void 0===t?void 0:t.length)&&(E.current=n.display_hook,T(n.display_hook),H(n.display_hook))}),[n]),(0,A.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,A.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"start",width:"100%",children:[(0,A.jsxs)(d.A,{display:"flex",style:{gap:5},children:[(0,A.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,A.jsx)("div",{className:"spinner-blade"},n)}))}),(0,A.jsx)(p.A,{variant:"body1",style:{fontWeight:"bold",color:x},children:"Assistant is thinking..."})]}),(0,A.jsxs)(d.A,{width:"100%",children:[(0,A.jsx)(h.A,{variant:"text",width:100}),(0,A.jsx)(h.A,{variant:"text",width:"80%"}),(0,A.jsx)(h.A,{variant:"text",width:"90%"})]})]}):(0,A.jsxs)(d.A,{display:"flex",flexDirection:"column",width:"100%",position:"relative",children:[(0,A.jsxs)(d.A,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,A.jsx)(p.A,{variant:"body1",style:{fontWeight:"bold",color:x},children:"Assistant"}),(0,A.jsx)(f.A,{size:"small",children:(0,A.jsx)(m.A,{fontSize:"small"})})]}),(0,A.jsx)("div",{className:"text-container ".concat(O?"expanded":"unexpanded"),style:{"--color":x,"--inverse-color":M.palette.getContrastText(x)},ref:B,children:(0,A.jsx)(p.A,{variant:"body1",style:{color:x},className:"text-content ".concat(O?"expanded":"unexpanded"),children:S})}),F&&!O&&(0,A.jsx)(p.A,{variant:"body2",className:"see-more",style:{backgroundColor:M.palette.getContrastText(x)},onClick:q,children:"See more"})]})})}},19164:function(e,n,t){t.r(n),t.d(n,{TrackerComponent:function(){return a}});var r=t(49255),i=t(38607),o=t(5791),a=function(e){var n=e.useProFingerprint,t=e.accountId,a=(0,r.useRef)(!1);return(0,r.useEffect)((function(){if(!a.current){if(void 0!==n)return a.current=!0,void i.A.resolveFingerprint(n,t).then((function(){(0,o.Mc)()}));var e=setTimeout((function(){a.current||(a.current=!0,i.A.resolveFingerprint(!1,t).then((function(){(0,o.Mc)()})))}),4e3);return function(){return clearTimeout(e)}}}),[n,t]),null};n.default=a},19378:function(e,n,t){t.d(n,{$i:function(){return r}});var r="g_t"},19457:function(e,n,t){t.r(n),t.d(n,{default:function(){return c}});var r=t(79218),i=t(95792),o=t(69478),a=t(26811),l=t(65983);function c(e){var n=e.url,t=e.contentUUID,c=e.open,s=e.onClose;return(0,l.jsxs)(r.A,{open:c,onClose:s,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{backgroundColor:"black",height:"min(70vh, 520px)"}},children:[(0,l.jsx)(i.A,{onClick:s,"aria-label":"Close",sx:{position:"absolute",right:8,top:8,zIndex:2,color:"white"},children:(0,l.jsx)(o.A,{})}),n&&(0,l.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,l.jsx)(a.L,{url:n,contentUUID:t,autoplay:!0,isDialog:!0,pageNumber:void 0})})]})}},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}}},22458:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(47081),c=t(21430),s=t(24507),u={iframe:(0,s.Ay)("iframe")((function(e){var n=e.scrollTop,t=e.canScroll;return{marginTop:n?"".concat(-1*n,"px"):"0",overflow:t?"auto":"hidden",width:"100%",height:"100%"}})),wrapper:(0,s.Ay)("div")({height:"100%",overflow:"hidden"})},d=t(88960),p=t(81046),f=t(52808),m=t(81114),h=t(5791),g=t(4472),v=t(65983),x=a.memo((function(e){var n=e.src,t=e.pageNumber,s=e.formBorder,x=void 0===s?0:s,b=e.height,A=e.scrollTop,w=void 0===A?0:A,y=e.width,_=e.canScroll,S=_?"yes":"no",I=b+w,E=u.iframe,k=u.wrapper,C=(0,l.wA)(),j=(0,a.useState)(!1),T=(0,o.A)(j,2),N=T[0],D=T[1],O=(0,a.useState)(!0),R=(0,o.A)(O,2),L=R[0],P=R[1],F=(0,a.useState)(n),W=(0,o.A)(F,2),B=W[0],M=W[1],U=(0,a.useState)(n),V=(0,o.A)(U,2),z=V[0],H=V[1],q=(0,a.useState)(!1),G=(0,o.A)(q,2),K=G[0],Y=G[1],X=function(){var n=(0,i.A)((0,r.A)().m((function n(t,i){var o,a,l,s,u,d,p,v,x,b,A;return(0,r.A)().w((function(n){for(;;)switch(n.n){case 0:return n.p=0,o=i.split("?"),a=!!c.parse(o[1]).params,l=e.contentUUId,s={},a&&(u=c.parse(o[1]).params,d=JSON.parse(u),Object.keys(d).map((function(e){s[e]=d[e]}))),H(i),n.n=1,(0,f.q)(t.data,i);case 1:p=n.v,v=p.canIframe,x=p.embedUrl,M(x||i),D(v),b={content_id:l,link_url:i,is_iframe_loadable:v,type_of_dialog:m.KZ.IFRAME_DIALOG},(0,h.xF)(m.qW.OPEN_LINK,b),n.n=3;break;case 2:n.p=2,A=n.v,(0,g.ZI)(A.message),Y(!0);case 3:return n.p=3,P(!1),n.f(3);case 4:return n.a(2)}}),n,null,[[0,2,3,4]])})));return function(e,t){return n.apply(this,arguments)}}();return(0,a.useEffect)((function(){p.A.checkIfURIIsValid(n,X,C,t).catch((function(){Y(!0),P(!1)}))}),[]),(0,v.jsx)(k,{children:!L&&(0,v.jsx)(v.Fragment,{children:N&&!K?(0,v.jsx)(E,{title:"iframe-annotation",src:B,scrolling:S,frameBorder:x,width:y,height:I,scrollTop:w,canScroll:_}):(0,v.jsx)(d.A,{handleOpenLinkExternal:function(){if(B){setTimeout((function(){window.open(B)}));var n={content_id:e.contentUUId,link_url:B};(0,h.xF)(m.qW.OPEN_LINK_IN_NEW_TAB,n)}},iframeSrc:z,isPreview:h.bU})})})}));x.displayName="IframeAnnotation";var b=x},25761:function(e,n,t){t.d(n,{A:function(){return m}});var r=t(89379),i=t(81076),o=t(31740),a=t(85434),l=t(79424),c=t(40677),s=t(30430),u=t(21146),d=t(65983),p=s.w.palette.primary.main,f=s.w.palette.primary.dark||p;function m(e){var n=e.element,t=e.label,s=e.variant,m=e.onDismiss,h=function(){(0,u.t)(n)},g=function(e){e.preventDefault(),e.stopPropagation(),m()},v="block"===s,x="button"===s?{px:2,py:1,borderRadius:999,minHeight:40}:"inline"===s?{px:1.5,py:.5,borderRadius:1,minHeight:32}:{px:3,py:1.5,borderRadius:1,width:"100%",minHeight:44};return(0,d.jsx)(o.A,{title:"Click to add — or dismiss with ✕",placement:"bottom",arrow:!0,children:(0,d.jsxs)(i.A,{"data-celero-inspector-ignore":"true",role:"button",tabIndex:0,onClick:h,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())},sx:(0,r.A)({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:.75,cursor:"pointer",userSelect:"none",border:"1.5px dashed ".concat(p),color:p,bgcolor:(0,a.X4)(p,.06),fontSize:"inline"===s?12:13,fontWeight:600,lineHeight:1,whiteSpace:"nowrap",transition:"background-color 120ms ease, box-shadow 120ms ease","&:hover":{bgcolor:(0,a.X4)(p,.14),boxShadow:"0 0 0 3px ".concat((0,a.X4)(p,.12))}},x),children:[(0,d.jsx)(l.A,{sx:{fontSize:"inline"===s?16:18}}),(0,d.jsx)(i.A,{component:"span",children:t}),(0,d.jsx)(i.A,{role:"button","aria-label":"Dismiss",onClick:g,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||g(e)},tabIndex:0,sx:{position:"absolute",top:v?"50%":-8,right:v?8:-8,transform:v?"translateY(-50%)":"none",width:18,height:18,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",bgcolor:p,color:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",cursor:"pointer","&:hover":{bgcolor:f}},children:(0,d.jsx)(c.A,{sx:{fontSize:12}})})]})})}},26466:function(e,n,t){t.d(n,{T:function(){return r},i:function(){return i}});var r="SET_VIEWER_DATA",i="CLEAR_VIEWER_DATA"},26811:function(e,n,t){t.d(n,{L:function(){return T}});var r=t(89379),i=t(5544),o=t(49255),a=t(95792),l=t(84341),c=t(19586),s=t.n(c),u=t(49225),d=t.n(u),p=t(29297),f=t(81114),m=t(5791),h=t(4134),g=t(57957),v=t(96907),x=t(20675),b=t(84899),A=t(87162),w=t(691),y=function(e,n,t,r){var a=(0,o.useRef)(0),l=(0,o.useRef)(0),c=(0,o.useState)(!1),s=(0,i.A)(c,2),u=s[0],d=s[1],p=(0,o.useRef)(null),f=(0,o.useRef)(!1),m=document.getElementById("viewer"),g=(0,o.useRef)(r),v=(0,b.A)().isMobile,x=function(e){g.current=e,d(e)};(0,o.useEffect)((function(){f.current=v}),[v]),(0,o.useEffect)((function(){var n,t=null===(n=e.current)||void 0===n?void 0:n.parentNode;p.current=t}),[]);var y=function(){n(),p&&p.current&&(p.current.appendChild(null==e?void 0:e.current),x(!1),w.A.localStorage.setItem("floating","off"))};(0,o.useEffect)((function(){t&&y()}),[t]);var _=0,S=!1,I=0,E=function(){var t=document.getElementById("viewer");if(t){var i=t.scrollTop;S=i>_;var o=t.scrollTopa.current+.2*l.current&&!S,s=!(t.scrollTop>a.current&&S),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}}}})),k=((0,_.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")}}}}))(I.Ay),(0,_.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}}}}))(I.Ay),t(16976)),C=t(63055),j=t(65983),T=o.memo((function(e){var n,t,c=e.isDialog,u=e.autoplay,b=e.contentUUID,A=e.url,w=e.pageNumber,_=e.poster,S=.5,I=(0,o.useState)(S),T=(0,i.A)(I,2),N=(T[0],T[1]),D=(0,o.useState)(S),O=(0,i.A)(D,2),R=O[0],L=O[1],P=(0,o.useState)(null),F=(0,i.A)(P,2),W=F[0],B=F[1],M=(0,o.useState)(!1),U=(0,i.A)(M,2),V=U[0],z=U[1],H=(0,o.useState)(!1),q=(0,i.A)(H,2),G=q[0],K=q[1],Y=(0,o.useState)(0),X=(0,i.A)(Y,2),J=X[0],Z=X[1],$=(0,o.useState)(0),Q=(0,i.A)($,2),ee=(Q[0],Q[1]),ne=(0,o.useState)(!1),te=(0,i.A)(ne,2),re=te[0],ie=te[1],oe=(0,o.useState)(!1),ae=(0,i.A)(oe,2),le=ae[0],ce=ae[1],se=(0,o.useState)(!1),ue=(0,i.A)(se,2),de=ue[0],pe=ue[1],fe=(0,o.useState)(0),me=(0,i.A)(fe,2),he=me[0],ge=me[1],ve=(0,o.useState)({}),xe=(0,i.A)(ve,2),be=xe[0],Ae=xe[1],we=(0,o.useState)(!1),ye=(0,i.A)(we,2),_e=ye[0],Se=ye[1],Ie=(0,o.useState)(!1),Ee=(0,i.A)(Ie,2),ke=Ee[0],Ce=Ee[1],je=(0,o.useRef)(!1),Te=(0,o.useRef)(null),Ne=(0,o.useRef)(0),De=(0,o.useRef)(!1),Oe=(0,o.useRef)(!1),Re=(0,o.useRef)(!1),Le=(0,o.useRef)(0),Pe=null!==(n=null==A?void 0:A.includes(".mp4"))&&void 0!==n&&n,Fe=null!==(t=null==A?void 0:A.includes("vimeo"))&&void 0!==t&&t,We=new Set,Be=E({isProgressBarVisible:ke}),Me=(0,o.useState)({played:0,playedSeconds:0,loaded:0,loadedSeconds:0}),Ue=(0,i.A)(Me,2),Ve=Ue[0],ze=Ue[1],He=(0,o.useRef)(null),qe=(0,o.useRef)(null),Ge=(0,o.useRef)(null),Ke=!!A&&(0,h.Eg)(A);(0,o.useEffect)((function(){A||(0,g.FF)("VideoPlayer received a missing/null url",{contentUUID:b,isDialog:c,pageNumber:w})}),[A,b,c,w]);var Ye=Be.videoContainer,Xe=Be.videoItem,Je=Be.containerFloating,Ze=Be.closeIcon,$e=Be.stickyVideo,Qe=y(Te,(function(){Le.current=He.current.getCurrentTime(),Le.current&&Le&&0!==Le.current&&Z(Le.current)}),_e,!Fe&&re&&!_e),en=function(){var e=document.querySelector("[class*=fb-video]");if(e){var n=document.querySelector("iframe"),t=parseInt(String(He&&He.current&&He.current.getCurrentTime()))||0;n.src=n.src+"&width=".concat(e.clientWidth,"&height=").concat(e.clientHeight,"&t=").concat(t)}},nn=(0,o.useCallback)((0,k.A)(en,300),[en]);(0,o.useEffect)((function(){var e;if(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",nn)}}),2e3),A){var n;try{n=new URL(A,window.location.origin)}catch(e){return}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.xF)(f.qW.WARNING,{code:"VIDYARD_TWO_VIDEOS_ISSUE",additional_data:A,page:w,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(){Pe||ce(!0)}),[Qe]);var tn=function(e){var n=e.eventName,t=e.previous,i=e.next,o=e.pauseSorce,a=e.isAutoPlay,l={content_id:b,page_number:w,video_link:A,video_duration:(0,h.DS)(he)},c=He.current&&He.current.getCurrentTime()&&(0,h.DS)(He.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)(Ve.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:c,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)(Ve.playedSeconds),auto_play:a});case"milestone":return(0,r.A)((0,r.A)({},l),{},{total_watched_time:We.size});default:return(0,r.A)((0,r.A)({},l),{},{at_video_time:c})}},rn=function(){K(!1),Oe.current=!re,ie(!re),Re.current&&(0,m.xF)(f.qW.VIDEO_PLAYED,tn({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:!0}))},on=function(){if(je.current){je.current=!1;var e=(0,h.DS)(He.current?He.current.getCurrentTime():0),n={content_id:b,page_number:w,video_link:A,video_duration:(0,h.DS)(Ne.current),at_video_time:e};(0,m.xF)(f.qW.ClOSE_VIDEO,n)}},an=function(){var e=(0,h.DC)(window),n=qe&&qe.current;n&&(0,h.RC)(n,.5,0)&&u&&!je.current&&e&&e!==l.u.IOS&&he>0&&(je.current=!0,Re.current=!0,rn())},ln=function(e){if(e.srcElement===qe.current){var n=d().isEnabled&&d().isFullscreen,t=n?f.qW.VIDEO_SET_FULLSCREEN:f.qW.VIDEO_EXIT_FULLSCREEN;z(n),(0,m.xF)(t,tn({eventName:t}))}};(0,o.useEffect)((function(){d().isEnabled&&d().on("change",ln);var e=(0,h.DC)(window)===l.u.IOS;return B(!(!u||c||e)),L(!u||c||e?S:0),N(!u||c||e?S:0),function(){d().isEnabled&&d().off("change",ln),on()}}),[he]),(0,o.useEffect)((function(){var e;return de&&le&&(e=setTimeout((function(){ce(!1),pe(!1)}),700)),function(){e&&clearTimeout(e)}}),[de]),(0,o.useEffect)((function(){he>0&&an();var e=document.getElementById("viewer");return e&&e.addEventListener("scroll",an),function(){e&&e.removeEventListener("scroll",an)}}),[he]);var cn=le?Be.hideVideo:$e,sn=Qe?(0,p.A)(Ye,Je,cn):(0,p.A)(Ye,Ye),un=Pe?"mp4":"video";return(0,o.useEffect)((function(){var e;null===(e=Te.current)||void 0===e||e.addEventListener("click",(function(){ie(!0)}))}),[]),(0,j.jsx)("div",{className:sn,ref:Te,children:null!==W&&null!==R&&(0,j.jsxs)("div",{ref:qe,className:Ye,onMouseLeave:function(){Ce(!1)},children:[Qe&&!V&&(0,j.jsx)(a.A,{onClick:function(){Se(!0),Ke||ie(!1)},className:Ze,children:(0,j.jsx)(x.h,{className:Je})}),(0,j.jsx)("div",{className:Xe,onClick:rn,onMouseMove:function(){Ge.current&&clearTimeout(Ge.current),Ce(!0),Ge.current=setTimeout((function(){Ce(!1)}),2e3)},children:(0,j.jsx)(s(),{ref:He,url:null!=A?A:"",width:"100%",height:"100%",playing:re,muted:W||_e,autoPlay:!0,onPause:function(){var e;Oe.current=!1,De.current?(e=tn({eventName:f.qW.VIDEO_PAUSED,pauseSorce:f.T9.LEAVING_PAGE}),De.current=!1):e=tn({eventName:f.qW.VIDEO_PAUSED,pauseSorce:f.T9.USER}),(0,m.xF)(f.qW.VIDEO_PAUSED,e),ie(!1),K(!1)},onPlay:function(){if(Oe.current=!0,je.current=!0,G||Re.current||(0,m.xF)(f.qW.VIDEO_PLAYED,tn({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:Re.current})),Re.current=!1,ie(!0),_e&&Ke)return ie(!1),void Se(!1)},onProgress:function(e){if(Math.round(e.playedSeconds)%f.vh-1==0&&(0,m.Z8)(),e.playedSeconds&&(We.add(e.playedSeconds),function(e){var n="";switch(Math.floor(e)){case be["25%"]:n="25%";break;case be["50%"]:n="50%";break;case be["75%"]:n="75%";break;case be["100%"]:n="100%"}n.length&&(0,m.xF)("Reached "+n+" Video milestone",tn({eventName:"milestone"}))}(e.playedSeconds),(0,C.DW)(null!=A?A:"",e.playedSeconds,(0,r.A)((0,r.A)({},(0,m.wn)()),tn({eventName:f.qW.VIDEO_PLAYED,isAutoPlay:Re.current})))),Math.round(Math.abs(e.playedSeconds-Ve.playedSeconds))>1){var n=(0,h.DS)(Ve.playedSeconds),t=(0,h.DS)(e.playedSeconds);if(n===t)return;(0,m.xF)(f.qW.VIDEO_SEEKED,tn({eventName:f.qW.VIDEO_SEEKED,previous:n,next:t}))}ze({played:e.played,playedSeconds:e.playedSeconds,loaded:e.loaded,loadedSeconds:e.loadedSeconds}),ee(100*e.played)},onDuration:function(e){ge(e),Ae({"25%":Math.floor(he/4),"50%":Math.floor(he/2),"75%":Math.floor(3*he/4),"100%":Math.floor(he)}),Ne.current=e},volume:R,onEnded:function(){ie(!1),(0,m.xF)(f.qW.FINISH_VIDEO,tn({eventName:f.qW.FINISH_VIDEO}))},onReady:function(){var e,n=(0,h.DC)(window)===l.u.IOS,t=re;n&&ie(!1),Ke||Se(!1),(t||_e)&&!Pe&&(e=J,He&&He.current&&(re&&K(!0),He.current.seekTo(e,"seconds"),le&&pe(!0)))},playsinline:!0,controls:!0,config:{file:{attributes:{poster:_}}},light:e.poster},un)}),(0,j.jsx)(v.A,{handler:on})]})})}))},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,b=(0,d.A)().isMobile,A=g?t.palette.customViewer.viewerBackGroundColorPresentation:t.palette.customViewer.viewerBackGroundColorDocument,w=(0,o.z4)({ismobile:b,background:A}),y=w.poweredByCeleroLabel,_=w.celeroLogoClass,S=m&&m.company&&m.company.company_customizations&&m.company.company_customizations.is_powered_by_celero,I=null==S||S,E=(0,r.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,a.AS)()),n={content_id:h.uuid,link_url:e,page_number:v};(0,a.xF)(l.qW.CLICK_POWERED_BY,n),setTimeout((function(){window.open(e,"_blank")}))}),[h,v]);return(0,f.jsx)(s.A,{isVisible:I&&!x,children:(0,f.jsxs)(o.A2,{variant:"extended",onClick:E,ismobile:b,background:A,"assistant-c-name":"powered-by",children:[(0,f.jsx)(p.A,{className:y,children:"Powered by"}),(0,f.jsx)(u.ReactComponent,{className:_})]})})}},30852:function(e,n,t){t.r(n),t.d(n,{default:function(){return x}});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(16084),m=t(56787),h=t(65983),g=i.forwardRef((function(e,n){var t=new Date,r=(0,i.useRef)(t),l=(0,i.useRef)(new Date),g=(0,m.A)().currentPageNumber,v=e.contentUUID,x=e.componentName,b=function(e,n){(0,a.xF)(e,n)},A=(0,i.useRef)(""),w=function(){var e,n=null===(e=document.getSelection())||void 0===e?void 0:e.toString();switch(x){case o.$.CALCULATOR:if(!n||A.current===n)return;b(s.qW.TEXT_HIGHLIGHTED,{text:n.slice(0,2e3)});break;case o.$.VIEWER:if(!n||A.current===n)return;b(s.qW.TEXT_HIGHLIGHTED,{text:n.slice(0,2e3),page_number:g,content_id:v})}A.current=n},y=(0,i.useCallback)((function(){var e=n.current,t="";e&&(e.onmouseup=function(){w()},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(x){case o.$.CALCULATOR:if(!r||t===r)return;b(s.qW.TEXT_COPIED,{text:r});break;case o.$.VIEWER:if(!r||t===r)return;b(s.qW.TEXT_COPIED,{text:r,content_id:v,page_number:g})}t=r})}),[n,v,g,x]);(0,i.useEffect)((function(){y()}),[y]);var _=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var t=new Date,i=t,o=(0,c.ez)(r.current,t);n&&(o=(0,c.ez)(r.current,l.current)+s.Md,i=new Date(l.current.getTime()+s.Md));var u={duration:o,page_number:e,content_id:v,keen:{timestamp:i}};(0,a.xF)(s.qW.SLIDE_VIEW_FINISHED,u),r.current=new Date}},S=function(){w()},I=(0,i.useCallback)((0,u.A)(S,1e3),[S]);(0,i.useEffect)((function(){if(window.location.hostname.includes("netapp")){var e=(0,f.Ri)("_netapp_utm_params");e&&(0,a.I1)(JSON.parse(e))}return document.addEventListener("selectionchange",I),function(){document.removeEventListener("selectionchange",I)}}),[]),(0,i.useEffect)((function(){return function(){_(g)}}),[v,g,r]);return(0,d.h)({timeout:s.Md,onAction:function(){if(!(0,a.cj)()){if((0,a.Yw)())(0,a.qO)();else try{var e={duration:s.Md,keen:{timestamp:new Date(l.current.getTime()+s.Md)}};(0,a.xF)(s.qW.WINDOW_FOCUSED,e),_(g,!0),(0,a.jw)(),(0,a.xF)(s.qW.SLIDE_VIEW_STARTED,{}),r.current=new Date}catch(e){(0,p.ZI)("create session in window tracker 'handleFocusEvent' :"+e)}l.current=new Date}}}),(0,h.jsx)("div",{ref:n,style:{height:"100%"},children:e.children})}));g.displayName="EventsTracker";var v=g,x=function(e){var n=e.children,t=e.content,u=e.shortenData,d=(0,m.A)().currentPageNumber,p=(0,i.useRef)(d),f=(0,i.useRef)(!1),g=(0,i.useRef)(!1),x=(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.I1)({content_id:t.uuid}),i&&window.location.href.includes(n)?(0,a.I1)({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.I1)({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.xF)("Init"),f.current=!0)}),[]),(0,i.useEffect)((function(){if(t&&!g.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};t.preview_user_id&&(r.preview_user_id=t.preview_user_id),(0,a.xF)(s.qW.CONTENT_VIEW_STARTED,r),g.current=!0}}),[t]),(0,i.useEffect)((function(){if(t){var e={page_number:p.current,content_id:t.uuid};(0,a.xF)(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,h.jsx)(v,{ref:x,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}({})},35475:function(e,n,t){t.d(n,{A:function(){return b}});var r=t(5544),i=t(49255),o=t(97094),a=t.n(o),l=t(81076),c=t(60723),s=t(20535),u=t(13989),d=t(78752),p=t(95492),f=t(5084),m=t(61870),h=t(65983),g=(0,s.A)((function(e){return(0,u.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 v(e){var n=e.card,t=e.onClick,r=e.mediaPadding,i=g({mediaPadding:r}),o=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"";return(0,h.jsxs)("div",{className:i.root,onClick:function(){t(n.link_url||n.link,n)},children:[(0,h.jsx)(d.A,{className:i.media,image:n.image_url||n.image,title:n.title}),(0,h.jsxs)(p.A,{className:i.cardContent,children:[(0,h.jsx)(f.A,{className:i.title,variant:"h6",component:"h2",title:n.title,children:n.title}),(0,h.jsx)(f.A,{variant:"body2",color:"textSecondary",component:"p",className:i.description,children:o.length<=300?o:o.substr(0,300)+"..."}),n.visits>=0&&(0,h.jsxs)("div",{className:i.visitors,children:[(0,h.jsx)(m.h,{className:i.icon}),(0,h.jsx)("div",{className:i.visitorsNumber,children:n.visits})]})]})]})}var x=(0,s.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"}}})),b=function(e){var n=e.cards,t=e.color,o=e.onClick,s=x(),u=(0,i.useRef)(null),d=(0,i.useState)("56.25%"),p=(0,r.A)(d,2),f=p[0],m=p[1];(0,i.useEffect)((function(){var e=function(){if(u.current){m("56.25%")}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[u]);var g=function(e,n){for(var t=[],r=0;r&version=&loaderVersion=";return t&&(n.endpoint=t),r&&(n.scriptUrlPattern=r),e.load(n)}))}},{key:"getVisitorId",value:(e=(0,i.A)((0,r.A)().m((function e(){var n,t;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,this.agentPromise||this.preload(),e.n=1,this.agentPromise;case 1:return n=e.v,e.n=2,n.get();case 2:return t=e.v,e.a(2,t.visitorId||null);case 3:return e.p=3,e.v,e.a(2,null)}}),e,this,[[0,3]])}))),function(){return e.apply(this,arguments)})}]);var e}(),d=function(){return(0,s.A)((function e(){(0,c.A)(this,e),this.agentPromise=null,this.preload()}),[{key:"preload",value:function(){this.agentPromise=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,10117)).then((function(e){return e.load()}))}},{key:"getVisitorId",value:(e=(0,i.A)((0,r.A)().m((function e(){var n,t;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,this.agentPromise||this.preload(),e.n=1,this.agentPromise;case 1:return n=e.v,e.n=2,n.get();case 2:return t=e.v,e.a(2,t.visitorId||null);case 3:return e.p=3,e.v,e.a(2,null)}}),e,this,[[0,3]])}))),function(){return e.apply(this,arguments)})}]);var e}();function p(){var e,n;if("function"==typeof(null===(e=globalThis.crypto)||void 0===e?void 0:e.randomUUID))return globalThis.crypto.randomUUID();if("function"==typeof(null===(n=globalThis.crypto)||void 0===n?void 0:n.getRandomValues)){var t=new Uint8Array(16);globalThis.crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;var r=Array.from(t,(function(e){return e.toString(16).padStart(2,"0")}));return"".concat(r[0]).concat(r[1]).concat(r[2]).concat(r[3],"-")+"".concat(r[4]).concat(r[5],"-")+"".concat(r[6]).concat(r[7],"-")+"".concat(r[8]).concat(r[9],"-")+"".concat(r[10]).concat(r[11]).concat(r[12]).concat(r[13]).concat(r[14]).concat(r[15])}throw new Error("Secure random number generation is not available in this environment.")}var f=null;function m(){return(m=(0,i.A)((0,r.A)().m((function e(n,t){var i,c,s,f,m,h,g,v,x,b,A;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:if(!(i=(0,l.AS)())){e.n=5;break}return e.p=1,e.n=2,o.Ay.post("/api/fingerprint/",{celero_id:i});case 2:if(c=e.v,"valid"!==(s=c.data).status||!s.celero_id){e.n=3;break}return(0,l.ss)(s.celero_id),e.a(2,s.celero_id);case 3:(0,l.ss)(""),e.n=5;break;case 4:return e.p=4,e.v,(0,l.ss)(i),e.a(2,i);case 5:e.p=5,f="pro"===(n?"pro":"free")?new u:new d,e.n=7;break;case 6:return e.p=6,e.v,m=p(),(0,l.ss)(m),e.a(2,m);case 7:return h=null,e.p=8,e.n=9,f.getVisitorId();case 9:h=e.v,e.n=11;break;case 10:e.p=10,e.v;case 11:return e.p=11,g={provider:n?"pro":"free"},h&&(g.visitor_id=h),t&&(g.account_id=t),e.n=12,o.Ay.post("/api/fingerprint/",g);case 12:if(v=e.v,!(x=v.data).celero_id){e.n=13;break}return(0,l.ss)(x.celero_id),(0,l.E1)("d2.5",{celero_id:x.celero_id,visitor_id:h,use_pro_fingerprint:n,status:x.status}),e.a(2,x.celero_id);case 13:e.n=15;break;case 14:e.p=14,A=e.v,(0,a.ZI)(A);case 15:return b=p(),(0,l.ss)(b),(0,l.E1)("d2.5",{celero_id:b,visitor_id:h,use_pro_fingerprint:n,status:"fe_fallback"}),e.a(2,b)}}),e,null,[[11,14],[8,10],[5,6],[1,4]])})))).apply(this,arguments)}function h(e,n){return f||(f=function(e,n){return m.apply(this,arguments)}(e,n).catch((function(e){throw f=null,e})),f)}var g,v={resolveFingerprint:function(e,n){return h(e,n)},waitForCeleroId:(g=(0,i.A)((0,r.A)().m((function e(){var n;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:if(!f){e.n=1;break}return e.a(2,f);case 1:n=Date.now();case 2:if(f||!(Date.now()-n<4500)){e.n=4;break}return e.n=3,new Promise((function(e){return setTimeout(e,50)}));case 3:e.n=2;break;case 4:if(!f){e.n=5;break}return e.a(2,f);case 5:return e.a(2,h(void 0,void 0))}}),e)}))),function(){return g.apply(this,arguments)})},x=v},38633:function(e,n,t){t.d(n,{Y:function(){return x}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(3895),c=t.n(l),s=t(47081),u=t(81046),d=t(52808),p=t(52484),f=t(83430),m=t(72661),h=t(5791),g=t(81114),v=t(65983);function x(e){var n,t,l=(0,s.wA)(),x=(0,a.useState)(!1),b=(0,o.A)(x,2),A=b[0],w=b[1],y=(0,a.useState)(""),_=(0,o.A)(y,2),S=_[0],I=_[1],E=(0,a.useState)(""),k=(0,o.A)(E,2),C=k[0],j=k[1],T=(0,a.useState)(null),N=(0,o.A)(T,2),D=N[0],O=N[1],R=(0,a.useState)(!1),L=(0,o.A)(R,2),P=L[0],F=L[1],W=(0,a.useState)(null),B=(0,o.A)(W,2),M=B[0],U=B[1],V=(0,a.useRef)(0),z=null==e||null===(n=e.content)||void 0===n?void 0:n.uuid,H=(0,a.useCallback)(function(){var e=(0,i.A)((0,r.A)().m((function e(n,t){var i,o;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,d.q)(n.data,t);case 1:i=e.v,o=i.embedUrl,O(null),I(o||t),j(t),w(!0);case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[]),q=(0,a.useCallback)((function(e,n){n?setTimeout((function(){return window.open(e,"_blank")})):u.A.checkIfURIIsValid(e,H,l).catch((function(){O(null),I(e),j(e),w(!0)}))}),[l,H]),G=(0,a.useCallback)((function(e,n){if("url"!==e.kind){if("audio"===e.kind)return U({audioSrc:e.src,pageNumber:n}),F(!0),void(0,h.xF)(g.qW.OPEN_AUDIO,{content_id:z,audio_src:e.src,page_number:n});var t="embed"===e.kind?e.uri:"image"===e.kind||"video"===e.kind?e.src:"";O(e),I(t),j(t),w(!0)}else q(e.uri,e.openInNewTab)}),[q,z]),K=(0,a.useCallback)((function(){return w(!1)}),[]),Y=(0,a.useCallback)((function(){(C||S)&&window.open(C||S)}),[C,S]),X=(0,a.useCallback)((function(){if(D)switch(D.kind){case"video":return(0,v.jsx)(p.default,{url:D.src,contentUUID:z,pageNumber:void 0,autoplay:!0,poster:D.poster,isDialog:!0});case"image":return(0,v.jsx)("img",{src:D.src,alt:"",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",margin:"auto",display:"block"}});case"embed":return(0,v.jsx)("iframe",{title:"embed",src:D.uri,style:{width:"100%",height:"100%",border:0}});case"html":return(0,v.jsx)("iframe",{title:"html",srcDoc:D.html,sandbox:"allow-scripts allow-same-origin allow-popups",style:{width:"100%",height:"100%",border:0}})}return S&&c().canPlay(S)?(0,v.jsx)(p.default,{url:S,contentUUID:z,pageNumber:void 0,autoplay:!0,isDialog:!0}):(0,v.jsx)("iframe",{title:"link-dialog",src:S,style:{width:"100%",height:"100%",border:0}})}),[D,S,z]),J=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(m.A,{openIframeDialog:A,handleCloseIframeDialog:K,handleOpenLinkExternal:Y,renderContentOfDialog:X,isIframeLoadable:!0,isLoading:!1,iframeSrc:S,openExternalLinkTooltip:"Open in new tab",closeDialogTooltip:"Close",setDialogStartTime:function(e){V.current=e},urlSrcWithOutParams:C}),(0,v.jsx)(f.default,{openAudioPlayer:P,audioSrc:null!==(t=null==M?void 0:M.audioSrc)&&void 0!==t?t:null,handleCloseAudioPlayer:function(){return F(!1)},contentApiResponse:null==e?void 0:e.content,autoPlay:!0,audioPlayerKey:"Viewer Audio Player",pageNumber:null==M?void 0:M.pageNumber,setAudioObj:U,audioPlayerMarginRightValue:"24px"})]});return{openUrl:q,openContent:G,dialog:J}}},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},40472:function(e,n,t){t.r(n),t.d(n,{PDFTOLINK_BANNER_HEIGHT:function(){return d},PDFTOLINK_BANNER_HEIGHT_MOBILE:function(){return p},default:function(){return f}});var r=t(49255),i=t(75700),o=t(85434),a=t(5791),l=t(81114),c=t(84899),s=t(65983),u="https://pdftolink.com",d=44,p=38;function f(e){var n=e.contentId,t=e.backgroundColor,f=(0,i.A)(),m=(0,c.A)().isMobile,h=m?p:d,g=t?f.palette.getContrastText(t):f.palette.common.white,v=(0,r.useCallback)((function(){var e="".concat(u,"?ref=banner&celero_id=").concat((0,a.AS)());(0,a.xF)(l.qW.CLICK_POWERED_BY,{content_id:n,link_url:e,source:"pdftolink"}),window.open(e,"_blank","noopener")}),[n]);return(0,s.jsxs)("div",{style:{width:"100%",height:h,display:"flex",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:null!=t?t:f.palette.customViewer.viewerBackGroundColorDocument,borderTop:"1px solid ".concat((0,o.X4)(g,.08)),cursor:"pointer",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',userSelect:"none",flexShrink:0},onClick:v,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||v()},children:[(0,s.jsx)("span",{style:{fontSize:m?11:13,fontWeight:400,color:(0,o.X4)(g,.6),letterSpacing:"0.01em"},children:"Created with"}),(0,s.jsxs)("span",{style:{fontSize:m?11:13,fontWeight:600,letterSpacing:"0.01em",display:"inline-flex"},children:[(0,s.jsx)("span",{style:{color:(0,o.X4)(g,.92)},children:"pdf"}),(0,s.jsx)("span",{style:{background:"linear-gradient(90deg, #0086FF, #3ba0ff)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"to"}),(0,s.jsx)("span",{style:{color:(0,o.X4)(g,.92)},children:"link"})]}),(0,s.jsx)("span",{style:{fontSize:m?10:12,color:(0,o.X4)(g,.35),marginLeft:2},children:"· Create your own for free →"})]})}},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.xF)(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.I1)({tab_id:i})):(0,s.lW)(),(0,s.Yw)()){e.n=2;break}return e.n=1,(0,s.jw)();case 1:e.n=3;break;case 2:(0,s.qO)();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},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,b=e.mobileTabs,A=e.onMobileTabChange,w=p?n.palette.getContrastText(p):n.palette.common.white,y=w,_=w;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:y,borderColor:_,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&&b&&b.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:b,value:x||0,onChange:function(e){return null==A?void 0:A(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 P}});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}})),b=(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"}}})),A=(0,f.Ay)(v.A)((function(){return{paddingLeft:0}})),w=(0,f.Ay)(v.A)({padding:0}),y=(0,f.Ay)(h.A)({height:"100%",color:"#4E606B",fontSize:16,letterSpacing:0,lineHeight:"31px"}),_=((0,f.Ay)(h.A)({width:16,height:16}),t(21661)),S=t(39863),I=t(60873),E=t(44444),k=t(81046),C=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],O=v[1],R=(0,r.useState)(0),L=(0,a.A)(R,2),P=L[0],F=L[1],W=(0,r.useState)(""),B=(0,a.A)(W,2),M=B[0],U=B[1],V=(0,r.useState)(!1),z=(0,a.A)(V,2),H=z[0],q=z[1],G=(0,r.useState)(""),K=(0,a.A)(G,2),Y=K[0],X=K[1],J=(0,r.useRef)(),Z=(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),O(1),F(0)),q(!!(e.result.length=e-1?0:P+1,r=m.result[t];r&&oe(r.page_number),F(t),H&&P===10*D-4&&k.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(Z.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(Z.current),elementId:u.id,text:g||"",position:"mid",original:u.innerHTML})}var v=[],x=!1,b=null==p?void 0:p.split(" "),A=b?b.length:-1;if(p!==e||!b||!he(c).includes(b[A])){for(var w=0;w").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)}}Z.current=Z.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&&J&&J.current&&J.current.select()}),[re]);var ve=!Y&&(0,N.jsx)(s.A,{position:"start",children:(0,N.jsx)(u.A,{children:(0,N.jsx)(S.ReactComponent,{})})}),xe="".concat(null!=m&&m.count?P+1:0,"/").concat(null==m?void 0:m.count),be={color:"#273138",fontSize:"16px"},Ae=(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)(y,{children:xe}),(0,N.jsx)(w,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:function(){var e=null==m?void 0:m.count;if(m&&e&&0!==P){var n=m.result[P-1];n&&oe(n.page_number),F(P-1)}},children:(0,N.jsx)(I.A,{sx:be})}),(0,N.jsx)(w,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:de,children:(0,N.jsx)(E.A,{sx:be})})]}),(0,N.jsx)(A,{disableRipple:!0,onClick:function(){X(""),J.current&&(J.current.value=""),ue(""),ie()},children:(0,N.jsx)(u.A,{children:(0,N.jsx)(_.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)(b,{fullWidth:!0,value:Y,onChange:function(e){X(e.target.value),ne.current&&clearTimeout(ne.current),ne.current=setTimeout((function(){ue(e.target.value)}),300)},onKeyDown:fe,placeholder:"Search",inputRef:J,autoFocus:!0,InputProps:{startAdornment:ve,endAdornment:Ae}})}))})},O=t(56787),R=t(80922),L=t(58651);function P(e){var n=(0,O.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,L.a)(!0,R.I.KEYBOARD)),(0,C.xF)(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,L.a)(!1,R.I.ITSELF)),(0,C.xF)(j.qW.CLOSE_SEARCH)},handleNavigateBySearchResults:function(e){t.goToPage(e)},currentPage:n,shouldRenderHighlight:!0})}},48623:function(e,n,t){function r(e,n){var t,r,i,o,a,l,c,s,u,d,p;if(e)switch(e.kind){case"url":null===(t=n.openUrl)||void 0===t||t.call(n,e.uri,e.openInNewTab);break;case"page":null===(r=n.goToPage)||void 0===r||r.call(n,e.page,e.silent);break;case"named":var f,m;if("top"===e.name)null===(f=n.goToTop)||void 0===f||f.call(n);else null===(m="next"===e.name?n.next:n.prev)||void 0===m||m();break;case"video":null===(i=n.openVideo)||void 0===i||i.call(n,{src:e.src,autoplay:e.autoplay});break;case"share":null===(o=n.share)||void 0===o||o.call(n);break;case"download":null===(a=n.download)||void 0===a||a.call(n);break;case"print":null===(l=n.print)||void 0===l||l.call(n);break;case"phone":null===(c=n.call)||void 0===c||c.call(n,e.number);break;case"email":null===(s=n.sendEmail)||void 0===s||s.call(n,{email:e.email,subject:e.subject,body:e.body});break;case"jsEvent":null===(u=n.fireJsEvent)||void 0===u||u.call(n,e.name,e.record);break;case"form":null===(d=n.openForm)||void 0===d||d.call(n,e.formId,e.integrationId,e.form_obj);break;case"microsite":null===(p=n.openMicrosite)||void 0===p||p.call(n,e.shorten,e.openInNewTab)}}t.d(n,{w:function(){return r}})},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 xe}});var r=t(20454),i=t(80045),o=t(60436),a=t(5544),l=t(64467),c=t(91212),s=t(10467),u=t(89379),d=t(49255),p=t(27224),f=t(12558),m=t(5084),h=t(47081),g=t(92049),v=t(51053),x=t(91250),b=t(25728),A=t(20535),w=t(13989),y=t(65983),_=(0,A.A)((function(){return(0,w.A)({inputLabelShrink:{transform:"translate(14px, -6px) scale(0.75)"},formControlRoot:{}})})),S={marginBottom:"16px"},I={fontSize:"14px",color:"#4E606B"},E={fontSize:"16px",color:"#4E606B"},k=function(e){var n=e.name,t=e.label,r=e.type,i=void 0===r?"text":r,o=e.customStyles,l=_(),c=(0,p.Mt)(n),s=(0,a.A)(c,2),d=s[0],f=s[1];return(0,y.jsx)("div",{style:(0,u.A)((0,u.A)({},S),null==o?void 0:o.container),children:(0,y.jsx)(b.A,(0,u.A)((0,u.A)({},d),{},{type:i,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,u.A)((0,u.A)({},I),null==o?void 0:o.label)},InputProps:{style:(0,u.A)((0,u.A)({},E),null==o?void 0:o.input)},classes:{root:l.formControlRoot}}))})},C=t(81076),j=t(82788),T=t(52396),N=t(98312),D=function(e){var n=e.name,t=e.label,i=e.customStyles,o=(0,p.Mt)({name:n,type:"checkbox"}),l=(0,a.A)(o,2),c=l[0],s=l[1];return(0,y.jsxs)(C.A,{mb:2,style:null==i?void 0:i.container,children:[(0,y.jsx)(j.A,{style:{alignItems:"flex-start"},control:(0,y.jsx)(T.A,(0,u.A)((0,u.A)({},c),{},{checked:Boolean(c.value),color:"primary",style:{paddingTop:0}})),label:(0,y.jsx)("span",{style:null==i?void 0:i.label,children:(0,y.jsx)(g.$,{components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,y.jsx)("p",(0,u.A)((0,u.A)({},n),{},{style:{margin:0}}))}},children:t})})}),s.touched&&s.error?(0,y.jsx)(N.A,{error:!0,children:s.error}):null]})},O=t(26308),R=t(5720),L=t(57798),P=t(52218),F=function(e){var n,t=e.name,r=e.label,i=e.options,o=e.customStyles,l=(0,p.Mt)(t),c=(0,a.A)(l,2),s=c[0],u=c[1],d=(0,p.j7)().setFieldValue;return(0,y.jsxs)(O.A,{component:"fieldset",error:u.touched&&Boolean(u.error),style:null==o?void 0:o.container,children:[(0,y.jsx)(R.A,{component:"legend",style:null==o?void 0:o.label,children:r}),(0,y.jsx)(L.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=i.find((function(e){return e.value.toString()===n}));d(t,r?r.value:n)},children:i.map((function(e){return(0,y.jsx)(j.A,{value:e.value.toString(),control:(0,y.jsx)(P.A,{color:"primary",style:null==o?void 0:o.input}),label:e.label},e.value.toString())}))}),u.touched&&u.error&&(0,y.jsx)(N.A,{children:u.error})]})},W=t(54758),B=t(62516),M=t(6218),U={marginBottom:"16px"},V={fontSize:"14px",color:"#4E606B"},z={fontSize:"16px",color:"#4E606B"},H=function(e){var n=e.name,t=e.label,r=e.options,i=e.customStyles,o=(0,p.Mt)(n),l=(0,a.A)(o,2),c=l[0],s=l[1];return(0,y.jsx)("div",{style:(0,u.A)((0,u.A)({},U),null==i?void 0:i.container),children:(0,y.jsxs)(O.A,{fullWidth:!0,error:s.touched&&Boolean(s.error),children:[(0,y.jsx)(W.A,{shrink:!0,style:(0,u.A)((0,u.A)({},V),null==i?void 0:i.label),children:t}),(0,y.jsx)(B.A,(0,u.A)((0,u.A)({},c),{},{variant:"outlined",fullWidth:!0,error:s.touched&&Boolean(s.error),inputProps:{style:(0,u.A)((0,u.A)({},z),null==i?void 0:i.input)},children:r.map((function(e){return(0,y.jsx)(M.A,{value:e.value,children:e.label},e.value)}))})),(0,y.jsx)(N.A,{children:s.touched&&s.error?s.error:""})]})})},q=function(e){return e.reduce((function(e,n){return e[n.name]="checkbox"!==n.type&&"",e}),{})},G=/^[\d+()\-.\s]+$/,K=function(e){return x.Yj().max(40,"".concat(e," must be at most ").concat(40," characters")).matches(G,{message:"".concat(e," must be a valid phone number"),excludeEmptyString:!0}).test("phone-number-digit-count","".concat(e," must be a valid phone number"),(function(e){if(!e)return!0;var n=String(e).replace(/\D/g,"").length;return n>=7&&n<=15}))},Y=function(e){var n=e.reduce((function(e,n){if("required"===n.validation)if("checkbox"===n.type)e[n.name]=x.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]=x.Yj().email("".concat(n.label," must be a valid email")).required("".concat(n.label," is required")):"phone_number"===n.validationType?e[n.name]=K(n.label).required("".concat(n.label," is required")):"password"===n.validationType?e[n.name]=x.Yj().min(8,"".concat(n.label," should be of minimum 8 characters length")).required("".concat(n.label," is required")):e[n.name]=x.Yj().required("".concat(n.label," is required"));else if("checkbox"===n.type)e[n.name]=x.zM();else"email"===n.validationType?e[n.name]=x.Yj().email("".concat(n.label," must be a valid email")):"phone_number"===n.validationType?e[n.name]=K(n.label):"password"===n.validationType?e[n.name]=x.Yj().min(8,"".concat(n.label," should be of minimum 8 characters length")):e[n.name]=x.Yj();return e}),{});return x.Ik().shape(n)},X=function(e,n,t,r){var i;switch(e.type){case"text":return(0,y.jsx)(k,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),customStyles:null==n?void 0:n.text},e.name);case"checkbox":return(0,y.jsx)(D,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),customStyles:null==n?void 0:n.checkbox},e.name);case"radio":return(0,y.jsx)(F,{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,y.jsx)(H,{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,y.jsx)(f.A,{style:(0,u.A)((0,u.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}},J=t(52473),Z=t(5791),$=t(92808),Q=t(60421),ee=t(57957),ne=t(81114),te=t(91408),re=t(93593),ie=t(21661),oe=t(71e3),ae=t(19378),le=t(691),ce=t(38607),se=["access_token"];function ue(e,n){return Array.isArray(e)?e.map((function(e){return ue(e,n)})):"object"==typeof e&&null!==e?Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=ue(e[r],n)),t}),{}):e}function de(e,n){var t=(0,u.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]=de(i,o):t[r]=o})),t}function pe(e){var n=e.onCancel;return(0,y.jsx)(f.A,{onClick:n,style:{position:"absolute",top:5,right:5,minWidth:0,padding:"2px",lineHeight:1,fontSize:"18px",fontWeight:"bold"},children:(0,y.jsx)(ie.h,{})})}var fe={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"}}}},me=function(e){return de(fe,e||{})},he=function(e){var n,t,r,i,o,a,d,g,x,b,A,w,_=e.formConfig,S=e.afterSubmit,I=e.sourceOfRender,E=e.defaultValues,k=e.onCancel,C=_.display,j=(0,h.d4)((function(e){return{theme:e.theme}})).theme,T=C.logo_url||(null==j||null===(n=j.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==j||null===(r=j.palette)||void 0===r||null===(i=r.customViewer)||void 0===i?void 0:i.appLogo)||(null==j||null===(o=j.palette)||void 0===o||null===(a=o.customStyles)||void 0===a?void 0:a.viewerLogo)||(null==j||null===(d=j.palette)||void 0===d||null===(g=d.customStyles)||void 0===g?void 0:g.appLogo),N=C.customStyles,D=C.title,O=C.withLogo,R=C.fields,L=C.submitUrl,P=I!==v._.LANDING_PAGE&&C.can_reject,F=(null==_||null===(x=_.display)||void 0===x||null===(b=x.fields)||void 0===b?void 0:b.filter((function(e){return!0===e.pii})).map((function(e){return e.name})))||[],W=me(N),B=I===v._.POPUP?(0,u.A)((0,u.A)({},W.formContainer),{},{width:"auto",minWidth:(null===(A=W.formContainer)||void 0===A?void 0:A.minWidth)||"300px",maxWidth:(null===(w=W.formContainer)||void 0===w?void 0:w.maxWidth)||"90vw"}):W.formContainer,M=(0,u.A)((0,u.A)({},q(R)),null!=E&&E.show&&(null==E?void 0:E.values)||{}),U=Y(R),V={formConfig:_,sourceOfRender:I},z=(0,$.jy)(V),H=function(){var e=(0,s.A)((0,c.A)().m((function e(n,t){var r,i,o,a,l,s,d,p;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return o=ue((0,u.A)({},n),F),l=!0,e.p=1,e.n=2,fetch(L,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 2:return d=e.v,e.n=3,d.json();case 3:a=e.v,d.ok||(l=!1,s="HTTP ".concat(d.status)),t.resetForm(),S(n),e.n=5;break;case 4:e.p=4,p=e.v,l=!1,s=(null==p?void 0:p.message)||"Form submission failed",(0,ee.ZI)(p,{tags:{path:"form-builder-submit",form_id:String(null==_?void 0:_.id)},context:{form:{id:null==_?void 0:_.id,type:null==_?void 0:_.type,submit_url:L,source_of_render:I}}});case 5:return e.p=5,t.setSubmitting(!1),e.f(5);case 6:(0,$.I5)(V,{actionType:$.gz.SUBMIT,step:$.Xp.SINGLE,success:l,errorMessage:s,webhookUrl:"identifyform"===(null===(r=_.type)||void 0===r?void 0:r.toLowerCase())?"https://p2api-capi.celero.io/crm/api/visitor/identify":null==_||null===(i=_.display)||void 0===i?void 0:i.submitUrl,webhookPayload:o,webhookResponse:a});case 7:return e.a(2)}}),e,null,[[1,4,5,6]])})));return function(n,t){return e.apply(this,arguments)}}();return(0,y.jsx)(p.l1,{initialValues:M,validationSchema:U,onSubmit:H,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(p.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"standard")),{},{onChange:z,style:(0,u.A)((0,u.A)({},B),{},{position:"relative"}),children:[P&&(0,y.jsx)(pe,{onCancel:k}),O&&(0,y.jsx)("img",{style:W.logo,src:T,alt:"logo"}),(0,y.jsx)(m.A,{style:W.title,children:D}),R.map((function(e){return X(e,W.fieldStyles)})),(0,y.jsx)(f.A,{type:"submit",variant:"contained",color:"primary",disabled:n,style:W.submitButton,children:"Submit"})]}))}})},ge=function(e){var n,t,r,f,g,b,A,w,_,S,I,E=e.formConfig,k=e.afterSubmit,C=e.sourceOfRender,j=e.defaultValues,T=e.onCancel,N=e.initialResponse,D=E.display,O=(0,h.d4)((function(e){return{shortenData:e.shortenData,theme:e.theme}})),R=O.shortenData,L=O.theme,P=D.logo_url||(null==L||null===(n=L.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==L||null===(r=L.palette)||void 0===r||null===(f=r.customViewer)||void 0===f?void 0:f.appLogo)||(null==L||null===(g=L.palette)||void 0===g||null===(b=g.customStyles)||void 0===b?void 0:b.viewerLogo)||(null==L||null===(A=L.palette)||void 0===A||null===(w=A.customStyles)||void 0===w?void 0:w.appLogo),F=D.customStyles,W=D.title,B=D.withLogo,M=D.fields,U=D.identityField,V=D.hiddenFields,z=void 0===V?[]:V,H=C!==v._.LANDING_PAGE&&D.can_reject,G=(null==E||null===(_=E.display)||void 0===_||null===(S=_.fields)||void 0===S?void 0:S.filter((function(e){return!0===e.pii})).map((function(e){return e.name})))||[],K=me(F),Z={formConfig:E,sourceOfRender:C},ne=(0,$.jy)(Z,$.Xp.IDENTITY),ie=(0,$.jy)(Z,$.Xp.OTP),ae=(0,$.jy)(Z,$.Xp.ADDITIONAL_FIELDS),le=re.E.getIntegrationsNeededData(),ce=M.find((function(e){return e.name.toLowerCase()===(null==U?void 0:U.toLowerCase())})),de=ce?(0,u.A)((0,u.A)({},q([ce])),null!=j&&j.show&&(null==j?void 0:j.values)||{}):{},fe=ce?Y([ce]):void 0,he={name:"otp",label:"Your one-time password",type:"text",validation:"required"},ge=(0,l.A)({},he.name,""),ve=x.Ik().shape((0,l.A)({},he.name,x.Yj().required("One-time password is required"))),xe=1,be="",Ae=(0,oe.eM)(null==R||null===(I=R.company)||void 0===I?void 0:I.account_id),we={},ye=[],_e="";if(N){var Se,Ie=N.access_status;if("RETURN_OTP_GENERATED"===Ie||"RETURN_OTP_EXPIRED"===Ie)xe=2,be=(null===(Se=N.user_context)||void 0===Se?void 0:Se.session_id)||"",we=N.collectedData||{},"RETURN_OTP_EXPIRED"===Ie&&(_e="OTP has expired. Please enter the new OTP.");else if("RETURN_GET_USER_FIELDS_NEEDED"===Ie){var Ee,ke;xe=3,be=(null===(Ee=N.user_context)||void 0===Ee?void 0:Ee.session_id)||"",Ae=(null===(ke=N.user_context)||void 0===ke?void 0:ke.access_token)||Ae,we=N.collectedData||{};var Ce=N.user_fields_needed||[];ye=M.filter((function(e){var n=Ce.includes(e.name),t=z.includes(e.name);if(n&&!t)return!0;if(t){var r,i=null==j||null===(r=j.values)||void 0===r?void 0:r[e.name],o=le[e.name];return i||o}return!1}))}}var je=(0,d.useState)(xe),Te=(0,a.A)(je,2),Ne=Te[0],De=Te[1],Oe=(0,d.useState)(we),Re=(0,a.A)(Oe,2),Le=Re[0],Pe=Re[1],Fe=(0,d.useState)(_e),We=(0,a.A)(Fe,2),Be=We[0],Me=We[1],Ue=(0,d.useState)(be),Ve=(0,a.A)(Ue,2),ze=Ve[0],He=Ve[1],qe=(0,d.useState)((function(){return Ae})),Ge=(0,a.A)(qe,2),Ke=Ge[0],Ye=Ge[1],Xe=(0,d.useState)(ye),Je=(0,a.A)(Xe,2),Ze=Je[0],$e=Je[1],Qe=function(e){var n;(Ye(e),e)&&(0,oe.eK)(null==R||null===(n=R.company)||void 0===n?void 0:n.account_id,e)},en=function(){var e=(0,s.A)((0,c.A)().m((function e(n,t){var r,a,s,d,p,f,m,h,g,v,x,b,A,w,y,_,S,I,T,N,D,O,L,P,F,W,B,V,H,q,K,Y,X,Q,ne,te;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return _={},S=re.E.getIntegrationsNeededData(),z.forEach((function(e){(null!=j&&j.values&&null!=j&&j.values[e]||window.contactNeededIntegrationData&&window.contactNeededIntegrationData[e]||S[e])&&(_[e]=(null==j?void 0:j.values)&&(null==j?void 0:j.values[e])||window.contactNeededIntegrationData&&window.contactNeededIntegrationData[e]||S[e])})),I=(0,l.A)({},U,n[U]),T=(0,u.A)((0,u.A)((0,u.A)({},_),n),I[U]?{identity:I}:{}),N={account_id:null===(r=window.contactNeededIntegrationData)||void 0===r?void 0:r.account_id,visitor_id:(null===(a=window.contactNeededIntegrationData)||void 0===a?void 0:a.visitor_id)||"NOVISITORID",integration:null===(s=window.contactNeededIntegrationData)||void 0===s?void 0:s.integration,celero_id:null===(d=window.contactNeededIntegrationData)||void 0===d?void 0:d.celero_id,version_id:null===(p=window.contactNeededIntegrationData)||void 0===p?void 0:p.version_id,access_type:null===(f=R.access_control)||void 0===f?void 0:f.min_stage,access_token:Ke,user_input:JSON.stringify(T),user_context:JSON.stringify((0,u.A)({form_id:E.id,integration_id:E.integration_id,microsite_name:null==R||null===(m=R.versions)||void 0===m||null===(h=m[0])||void 0===h||null===(g=h.version_details)||void 0===g?void 0:g.name,account_id:null===(v=window.contactNeededIntegrationData)||void 0===v?void 0:v.account_id,visitor_id:(null===(x=window.contactNeededIntegrationData)||void 0===x?void 0:x.visitor_id)||"NOVISITORID",integration:null===(b=window.contactNeededIntegrationData)||void 0===b?void 0:b.integration,celero_id:null===(A=window.contactNeededIntegrationData)||void 0===A?void 0:A.celero_id,version_id:null===(w=window.contactNeededIntegrationData)||void 0===w?void 0:w.version_id,access_type:null===(y=R.access_control)||void 0===y?void 0:y.min_stage},ze&&{session_id:ze}))},D=2===Ne?$.Xp.OTP:3===Ne?$.Xp.ADDITIONAL_FIELDS:$.Xp.IDENTITY,O=2===Ne?$.gz.OTP:3===Ne?$.gz.ADDITIONAL_FIELDS:$.gz.IDENTIFY,L="https://p2api-capi.celero.io/crm/api/visitor/identify",P=ue((0,u.A)({},T),[].concat((0,o.A)(G),["otp"])),e.p=1,Me(""),e.n=2,J.A.visitorIdentify(N);case 2:if(F=e.v,W=(null==F?void 0:F.user_context)||{},W.access_token,B=(0,i.A)(W,se),(0,$.I5)(Z,{actionType:O,step:D,success:void 0!==(null==F?void 0:F.access_status),status:null==F?void 0:F.access_status,errorMessage:"ALLOWED"===(null==F?void 0:F.access_status)||null==F?void 0:F.message,webhookUrl:L,webhookPayload:P,webhookResponse:(0,u.A)((0,u.A)({},F),{},{user_context:Object.keys(B).length?B:void 0})}),"RETURN_OTP_GENERATED"!==F.access_status){e.n=3;break}return(null===(V=F.user_context)||void 0===V?void 0:V.session_id)&&He(null===(H=F.user_context)||void 0===H?void 0:H.session_id),De(2),t.setSubmitting(!1),e.a(2);case 3:if("RETURN_OTP_EXPIRED"!==F.access_status){e.n=4;break}return(null===(q=F.user_context)||void 0===q?void 0:q.session_id)&&He(null===(K=F.user_context)||void 0===K?void 0:K.session_id),De(2),Me("OTP has expired. Please enter the new OTP."),t.setSubmitting(!1),e.a(2);case 4:if("ALLOWED"!==F.access_status){e.n=5;break}return null!==(Y=F.user_context)&&void 0!==Y&&Y.access_token&&Qe(F.user_context.access_token),Me(""),k({response:F,payload:T}),e.a(2);case 5:if("RETURN_GET_USER_FIELDS_NEEDED"!==F.access_status){e.n=6;break}return null!==(X=F.user_context)&&void 0!==X&&X.access_token&&Qe(F.user_context.access_token),Pe(n),Q=F.user_fields_needed||[],ne=M.filter((function(e){var n=Q.includes(e.name),t=z.includes(e.name);if(n&&!t)return!0;if(t){var r,i=null==j||null===(r=j.values)||void 0===r?void 0:r[e.name],o=S[e.name];return i||o}return!1})),$e(ne),De(3),t.setSubmitting(!1),e.a(2);case 6:Me(F.message||"Access not allowed"),t.setSubmitting(!1),e.n=8;break;case 7:e.p=7,te=e.v,Me("Something went wrong, please try again."),t.setSubmitting(!1),(0,$.I5)(Z,{actionType:O,step:D,success:!1,errorMessage:(null==te?void 0:te.message)||"Visitor identify failed",webhookUrl:L,webhookPayload:P}),(0,ee.ZI)(te,{tags:{path:"form-builder-identify",form_id:String(null==E?void 0:E.id)},context:{form:{id:null==E?void 0:E.id,type:null==E?void 0:E.type,step:D,source_of_render:C}}});case 8:return e.a(2)}}),e,null,[[1,7]])})));return function(n,t){return e.apply(this,arguments)}}(),nn=(0,u.A)((0,u.A)({},q(Ze)),null!=j&&j.show&&(null==j?void 0:j.values)||{});U&&Le[U]&&(nn[U]=Le[U]);var tn=Y(Ze);return(0,y.jsxs)(y.Fragment,{children:[1===Ne&&ce&&fe&&(0,y.jsx)(p.l1,{initialValues:de,validationSchema:fe,onSubmit:en,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(p.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"identify")),{},{onChange:function(e){ne(e),Be&&Me("")},style:(0,u.A)((0,u.A)({},K.formContainer),{},{position:"relative"}),children:[H&&(0,y.jsx)(pe,{onCancel:T}),B&&P&&(0,y.jsx)("img",{style:K.logo,src:P,alt:"logo"}),(0,y.jsx)(m.A,{style:K.title,children:W}),X(ce,K.fieldStyles),Be&&(0,y.jsx)(m.A,{color:"error",children:Be}),(0,y.jsx)(te.A,{type:"submit",variant:"contained",color:"primary",style:K.submitButton,isLoading:n,children:"Continue"})]}))}}),2===Ne&&(0,y.jsx)(p.l1,{initialValues:ge,validationSchema:ve,onSubmit:function(e,n){return en((0,u.A)((0,u.A)({},Le),e),n)},children:function(e){var n,t=e.isSubmitting;return(0,y.jsxs)(p.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"identify-otp")),{},{onChange:function(e){ie(e),Be&&Me("")},style:(0,u.A)((0,u.A)({},K.formContainer),{},{position:"relative"}),children:[H&&(0,y.jsx)(pe,{onCancel:T}),B&&P&&(0,y.jsx)("img",{style:K.logo,src:P,alt:"logo"}),(0,y.jsx)(m.A,{style:K.title,children:"Please check your email for your one-time passowrd"}),X(he,(0,u.A)((0,u.A)({},K.fieldStyles),{},{text:(0,u.A)((0,u.A)({},null===(n=K.fieldStyles)||void 0===n?void 0:n.text),{},{container:{width:"100%"}})})),Be&&(0,y.jsx)(m.A,{color:"error",children:Be}),(0,y.jsx)(te.A,{type:"submit",variant:"contained",color:"primary",style:K.submitButton,isLoading:t,children:"Continue"})]}))}},"otp-form"),3===Ne&&(0,y.jsx)(p.l1,{initialValues:nn,validationSchema:tn,onSubmit:en,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(p.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"identify-fields")),{},{onChange:ae,style:(0,u.A)((0,u.A)({},K.formContainer),{},{position:"relative"}),children:[H&&(0,y.jsx)(pe,{onCancel:T}),B&&P&&(0,y.jsx)("img",{style:K.logo,src:P,alt:"logo"}),(0,y.jsx)(m.A,{style:K.title,children:W}),Ze.map((function(e){return z.includes(e.name)?null:X(e,K.fieldStyles)})),Be&&(0,y.jsx)(m.A,{color:"error",style:{marginBottom:"16px"},children:Be}),(0,y.jsx)(te.A,{type:"submit",variant:"contained",color:"primary",style:K.submitButton,isLoading:n,children:"Submit"})]}))}})]})},ve=function(e){var n,t,i,o,a,d,f,v,x=e.formConfig,b=e.afterSubmit,A=e.sourceOfRender,w=e.defaultValues,_=(0,h.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData,theme:e.theme}})),S=_.gdpr,I=_.shortenData,E=_.theme,k=x.display.logo_url||(null==E||null===(n=E.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==E||null===(i=E.palette)||void 0===i||null===(o=i.customViewer)||void 0===o?void 0:o.appLogo)||(null==E||null===(a=E.palette)||void 0===a||null===(d=a.customStyles)||void 0===d?void 0:d.viewerLogo)||(null==E||null===(f=E.palette)||void 0===f||null===(v=f.customStyles)||void 0===v?void 0:v.appLogo),C=x.display,j=C.customStyles,T=C.title,N=C.withLogo,D=C.fields,O=void 0===D?[]:D,R=x.display.message,L=me(j),P=(0,u.A)((0,u.A)({},q(O)),null!=w&&w.show&&(null==w?void 0:w.values)||{}),F=Y(O),W={formConfig:x,sourceOfRender:A},B=(0,$.jy)(W),M=function(){var e=(0,s.A)((0,c.A)().m((function e(n,t){var r,i,o,a,l,u,d,p,f,m,h,g,v,w,y,_,E;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return f=void 0,"accept"===n&&(f=!0),"reject"===n&&(f=!1),m=(0,Z.xF)(ne.qW.GDPR_CONSENT,{value:f,source:"gdprform"},!0,!0),e.n=1,ce.A.waitForCeleroId();case 1:h=e.v,g=re.E.getIntegrationsNeededData(h),v=S.integration.data.visitor_param,w=S.integration.data.url_parameter,y=g[v],_=g[w+"_url_param"],E={account_id:null==I||null===(r=I.company)||void 0===r?void 0:r.account_id,visitor_id:y||"NOVISITORID",integration:S.integration.name,celero_id:h,version_id:(null==I||null===(i=I.versions)||void 0===i||null===(o=i[0])||void 0===o||null===(a=o.version_details)||void 0===a?void 0:a.uuid)||"",url_parameter:_,access_type:null===(l=I.access_control)||void 0===l?void 0:l.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==I||null===(u=I.versions)||void 0===u||null===(d=u[0])||void 0===d||null===(p=d.version_details)||void 0===p?void 0:p.name}),user_input:JSON.stringify({gdpr_consent_value:f})},J.A.visitorIdentify(E).then(function(){var e=(0,s.A)((0,c.A)().m((function e(t){var r,i,o,a,l;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:if(le.A.sessionStorage.setItem(ae.$i,null==t?void 0:t.gdpr_track),b({gdpr_consent_value:f,response:t}),window.dispatchEvent(new CustomEvent("celeroGDPRFormSubmit",{detail:{gdpr_consent_value:f,response:t}})),i=(0,$.I5)(W,{actionType:n,webhookUrl:null==x||null===(r=x.display)||void 0===r?void 0:r.submitUrl,webhookPayload:{gdpr_consent_value:f},webhookResponse:t,keepalive:!0}),f){e.n=2;break}if(!(l=null===(o=S.integration)||void 0===o||null===(a=o.data)||void 0===a?void 0:a.redirect_url)){e.n=2;break}return l.startsWith("https://")||l.startsWith("http://")||(l="https://"+l),e.n=1,(0,$.uS)([m,i]);case 1:window.location.href=l;case 2:return e.a(2)}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(e){var t;(0,$.I5)(W,{actionType:n,success:!1,errorMessage:(null==e?void 0:e.message)||"GDPR consent submission failed",webhookUrl:null==x||null===(t=x.display)||void 0===t?void 0:t.submitUrl,webhookPayload:{gdpr_consent_value:f}}),(0,ee.ZI)(e,{tags:{path:"form-builder-gdpr",form_id:String(null==x?void 0:x.id)},context:{form:{id:null==x?void 0:x.id,action:n,consent_value:f,source_of_render:A}}})}));case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,y.jsx)(p.l1,{initialValues:P,validationSchema:F,onSubmit:function(){},children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(p.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"gdpr")),{},{onChange:B,style:(0,u.A)((0,u.A)({},L.formContainer),{},{position:"relative"}),children:[N&&k&&(0,y.jsx)("img",{style:L.logo,src:k,alt:"logo"}),(0,y.jsx)(m.A,{style:L.title,children:T}),R&&(0,y.jsx)(g.$,{components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,y.jsx)(m.A,(0,u.A)((0,u.A)({},n),{},{style:L.message}))}},children:R}),O.filter((function(e){return"button"!==e.type})).map((function(e){return X(e,L.fieldStyles,M,n)})),O.some((function(e){return"button"===e.type}))&&(0,y.jsx)("div",{style:(0,u.A)({display:"flex",flexWrap:"wrap",gap:12,width:"100%",justifyContent:"center"},L.buttonsWrapper||L.fieldsWrapper||{}),children:O.filter((function(e){return"button"===e.type})).map((function(e){var t,r,i,o;return(0,y.jsx)("div",{style:(0,u.A)({display:"flex"},"object"!=typeof(null===(t=L.fieldStyles)||void 0===t?void 0:t.button)||Array.isArray(null===(r=L.fieldStyles)||void 0===r?void 0:r.button)?{}:(null===(i=L.fieldStyles)||void 0===i||null===(o=i.button)||void 0===o?void 0:o.container)||{}),children:X(e,L.fieldStyles,M,n)},e.name)}))})]}))}})},xe=function(e){var n,t=e.formConfig,r=e.afterSubmit,i=e.sourceOfRender,o=e.defaultValues,a=e.onCancel,l=e.initialResponse,c={formConfig:t,sourceOfRender:i};function s(){(0,$.I5)(c,{actionType:$.gz.REJECT}),a()}switch((0,d.useEffect)((function(){(0,$.et)(c)}),[]),null===(n=t.type)||void 0===n?void 0:n.toLowerCase()){case"identifyform":return(0,y.jsx)(ge,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:s,initialResponse:l});case"gdprform":return(0,y.jsx)(ve,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:s});default:return(0,y.jsx)(he,{formConfig:t,afterSubmit:r,sourceOfRender:i,defaultValues:o||{show:!1,values:{}},onCancel:s})}}},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)},56115:function(e,n,t){t.d(n,{A:function(){return oe}});var r=t(89379),i=t(91212),o=t(10467),a=t(5544),l=t(87162),c=t(49255),s=t(70914),u=t(75700),d=t(58422),p=t(20535),f=(0,p.A)((function(){return{anchor:{position:function(e){return e.position?e.position:"relative"},zIndex:function(e){return e.zIndex?e.zIndex:"auto"},left:function(e){return e.left?e.left:"auto"},top:function(e){return e.top?e.top:"auto"},width:function(e){return e.width?e.width:"auto"},height:function(e){return e.height?e.height:"auto"},color:function(e){return e.textColor?e.textColor:"#5C5CFF"},"&:hover":{boxShadow:function(e){return e.hoverBoxShadow?"0px 1px 2px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1), 0px 4px 8px rgba(0,0,0,0.1), 0px 8px 16px rgba(0,0,0,0.1)":"auto"}},cursor:"pointer",transition:"box-shadow 0.5s"},anchorBlink:{boxShadow:"0px 1px 2px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1), 0px 4px 8px rgba(0,0,0,0.1), 0px 8px 16px rgba(0,0,0,0.1)",transitionTimingFunction:"ease-in-out",backgroundColor:"#2a2a2a",opacity:.2}}})),m=t(65983),h=c.memo((function(e){var n=f(e);return(0,m.jsx)("a",{className:n.anchor,onClick:function(){switch(e.actionType){case l.B4.URI:e.onClick(e.actionType,e.annotationPageNumber,e.src,!1,e.shouldOpenInNewTab);break;case l.B4.GoTo:e.onClick(e.actionType,e.annotationPageNumber,e.page);break;case l.B4.Video:case l.B4.VideoLink:e.onClick(e.actionType,e.annotationPageNumber,e.src,e.autoPlay);break;case l.B4.Named:var n;n=e.namedType===l.H2.NextPage||e.namedType===l.H2.PrevPage?e.namedType:e.page,e.onClick(e.actionType,e.annotationPageNumber,n);break;default:return}},target:e.target,children:function(){var n="";if(e.actionType===l.B4.Video)n=e.text?e.text:"Watch video";else n=e.text?e.text:"";return n}()})}));h.displayName="Anchor";var g=t(98974),v=t(47081),x=t(40428),b=t(92765),A=t(4134),w=t(77236),y=c.memo((function(e){var n=c.useState(!1),t=(0,a.A)(n,2),r=t[0],i=t[1],o=(0,A.ZI)()===w.V.Mobile;return(0,c.useEffect)((function(){o?(0,b.Qc)((function(){i(!0)}),1e3):i(!0)}),[]),(0,m.jsx)(v.Kq,{store:x.A,children:(0,m.jsx)(g.A,{theme:e.theme,children:r&&e.children})})}));y.displayName="AnnotationsWrapper";var _=(0,p.A)((function(){return{shareAnnotation:{width:"100%",height:"100%",cursor:"pointer"},divAnnotation:{position:"relative",width:"100%",height:"100%",clear:"both"}}})),S=t(81114),I=t(44415),E=t(81068),k=t(3895),C=t.n(k),j=t(96790),T=t(95458),N=t(21430),D=t(50471),O=t(56787),R=t(9551),L=(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))})),P=(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,98874))})),F=(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,22458))})),W=(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,84230))})),B=(0,c.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,29431))})),M=(0,c.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,70819))})),U=function(e,n){var t,r,i,o;return(null==e?void 0:e.type)===(null==n?void 0:n.type)&&(null==e||null===(t=e.action)||void 0===t?void 0:t.type)===(null==n||null===(r=n.action)||void 0===r?void 0:r.type)&&(null==e||null===(i=e.action)||void 0===i?void 0:i.uri)===(null==n||null===(o=n.action)||void 0===o?void 0:o.uri)&&function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return e.every((function(e,r){return Math.abs(+e-+n[r])<=t}))}(e.bounds,n.bounds)},V=function(e){return e.filter((function(e,n,t){return n===t.findIndex((function(n){return U(e,n)}))}))},z=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,b=e.baseURL,w=e.handleAudioClick,k=e.isContentPageLoading,U=e.handleOpenShareDialog,z=_(),H=z.shareAnnotation,q=z.divAnnotation,G=[],K=(0,u.A)(),Y=(0,c.useRef)([]),X=(0,c.useRef)([]),J=N.parse(window.location.search),Z=(0,O.A)(),$=Z.currentZoomSettings,Q=Z.loadedPages,ee=(0,c.useRef)(new Map),ne=(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}),[]),te=(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=[];ee.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==$?void 0:$.zoomValue)&&Array.from(ee.current.keys()).map((function(e){var n=e.match(/page-(\d+)-/);return n?parseInt(n[1]):null})).filter(Boolean).forEach((function(e){e&&te(e)}))}),[null==$?void 0:$.zoomValue,te]),(0,c.useEffect)((function(){var e;e=new Set(Q),Array.from(ee.current.keys()).forEach((function(n){var t=n.match(/page-(\d+)-/);if(t){var r=parseInt(t[1]);if(!e.has(r)){var i=ee.current.get(n);i&&i.parentNode&&i.parentNode.removeChild(i),ee.current.delete(n)}}}))}),[Q]);var re=function(){U(S.T9.ANNOTATION)},ie=(0,c.useRef)({}),oe=(0,c.useCallback)((function(e){var n=ee.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),ee.current.delete(e)}),2e3)}}),[]),ae=function(e,n,t,s,u){var d=(0,m.jsx)(m.Fragment,{});if(n.toLowerCase().includes("download")&&(0,T.e)())return(0,m.jsx)("div",{});var p=t.pathname,g=new URL(n),b=g.pathname.split("/");if(p===E.U.FORM){var y,_=g.searchParams.get("form_id"),S=g.searchParams.get("source"),k="false"!==g.searchParams.get("remove_on_submit");if(e.form_obj){var N=e.form_obj;y=(0,r.A)((0,r.A)({},N.data),{},{integration:N.integration,integration_id:N.external_integration,id:N.id,integration_name:N.integration_name||N.integrtation_name||""})}else if(_){var O=parseInt(_,10);y=R.A.get(O)}else y="access_control"===S?R.A.getAccessControl():window.celeroFormConfig;if(!y)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 M="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)(D.A,{formConfig:y,afterSubmit:function(){k&&function(){if(null!==M&&void 0!==u){var e="page-".concat(u,"-").concat(M);oe(e)}}()},sourceOfRender:"annotation",onCancel:function(){}})})}if("form"===b[1])return ie.current.form||(ie.current.form=[]),ie.current.form.push({uri:n,bounds:s}),(0,m.jsx)(m.Fragment,{});switch(p){case E.U.VIDEO_STANDALONE:var U=g.searchParams.get("src"),V=g.searchParams.get("autoPlay"),z=g.searchParams.get("poster")||void 0;U&&(d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(L,{url:U,contentUUID:f,pageNumber:u,width:+s[2],autoplay:!(!V||"true"!==V),poster:z})}));break;case E.U.IFRAME:var H=g.searchParams.get("src");if(H){var G=(0,A.Ln)(H,!1),K=g.searchParams.get("can_scroll"),Y=g.searchParams.get("scroll_top");d=C().canPlay(H)?(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(L,{url:H,contentUUID:f,pageNumber:u,width:+s[2],autoplay:G})}):(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(F,{src:H,width:s[2],height:s[3],pageNumber:u,canScroll:K&&"true"===K||void 0,scrollTop:Y&&+Y||void 0,contentUUId:f})})}break;case E.U.IMAGE:var X=g.searchParams.get("src");X&&(d=(0,m.jsx)("img",{width:"100%",height:"100%",src:X,alt:"",style:{objectFit:"contain",overflow:"hidden"}}));break;case E.U.AUDIO:var Z=g.searchParams.get("src"),$=g.searchParams.get("is_icon_needed"),Q=g.searchParams.get("should_close_per_slide"),ee=g.searchParams.get("icon_color");Z&&(d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(P,{left:s[0],top:s[1],width:s[2],height:s[3],src:Z,isIconNeeded:!(!$||"true"!==$),handleClick:w,iconColor:ee||void 0,shouldCloseAfterSlideChange:!(!Q||"true"!==Q),pageNumber:u})}));break;case E.U.LINK:var ne=g.searchParams.get("src"),te=g.searchParams.get("open_in_new_tab"),re=Boolean("true"===te),ae=new URL(ne||""),le="true"===g.searchParams.get("embed")||"true"===ae.searchParams.get("embed"),ce=ne&&(0,j.r)(ne);d=le&&ne&&C().canPlay(ne)?(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(L,{url:ne,contentUUID:f,pageNumber:u,width:+s[2],autoplay:(0,A.Ln)(ne,!1)})}):ce?(0,m.jsx)("img",{width:"100%",height:"100%",src:ne||"",alt:"",style:{objectFit:"contain",overflow:"hidden"}}):(0,m.jsx)(h,{onClick:x,width:s[2],height:s[3],position:"absolute",zIndex:v||3,src:ne,annotationPageNumber:u,actionType:l.B4.URI,shouldOpenInNewTab:re});break;case E.U.VIDEO_DIALOG:var se=g.searchParams.get("src");if(!se)break;var ue=g.searchParams.get("autoPlay"),de=g.searchParams.get("poster")||void 0,pe=ue&&"true"===ue?"yes":"no";se=de?(0,I.He)(se,"poster",de):se,d=(0,m.jsx)(h,{onClick:x,width:s[2],height:s[3],position:"absolute",zIndex:v||3,annotationPageNumber:u,src:se,actionType:l.B4.VideoLink,autoPlay:pe});break;case E.U.CUSTOM_HTML:var fe=g.searchParams.get("id");d=(0,m.jsx)("div",{id:"".concat(fe),className:q,style:{width:"100%",height:"100%"}});break;case E.U.HTML_SNIPPET:var me=g.searchParams.get("snippet");if(!me)break;d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(B,{snippetName:me})});break;case E.U.OEMBED:var he=g.searchParams.get("url");if(!he)break;d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(W,{url:he})});break;case E.U.REDIRECT: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 E.U.CALLBACK: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=J.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)(P,{width:i[2],height:i[3],src:"".concat(b,"/")+n.src,imgSrc:"".concat(b,"/")+u,isDefualtAudioAnnotation:!0,handleClick:e.handleAudioClick},t+e.contentUUID)}):(0,m.jsx)(m.Fragment,{})}));break;case l.Is.VIDEO_STANDALONE:var Z=(0,A.Ln)(a.src,!1,a.autoPlay);_=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(L,{url:a.src,contentUUID:f,pageNumber:d,width:+i[2],autoplay:Z,poster:null==a?void 0:a.poster})});break;case l.Is.IMAGE:_=(0,m.jsx)("img",{width:"100%",height:"100%",src:o.uri,alt:"",style:{objectFit:"contain",overflow:"hidden"}});break;case l.Is.SHARE_CONTENT:_=(0,m.jsx)("div",{id:"share-content-annotation".concat(d),className:H,onClick:re});break;case l.Is.CUSTOM_HTML:_=(0,m.jsx)("div",{id:"".concat(a.id),className:q,style:{width:"100%",height:"100%"},children:(0,m.jsx)("span",{})});break;default:_=(0,m.jsx)(m.Fragment,{})}var $=g||K;return S||(S=null==a?void 0:a.gate),(0,m.jsx)(y,{theme:$,children:_})}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,K,v,x]),ce=(0,c.useRef)(new Map),se=(0,O.A)().loadedPages,ue=(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)||!se.includes(i)){if("number"==typeof i)new MutationObserver((function(t,r){document.getElementById("p".concat(i))&&(r.disconnect(),e.type&&ue([e],n,i))})).observe(document.body,{childList:!0,subtree:!0});return}if(ce.current.has(i))return;r=document.getElementById("p".concat(t))}else{var o=e;if("number"!=typeof(i=o.page_number)||!se.includes(i)){if("number"==typeof i)new MutationObserver((function(t,r){document.getElementById("p".concat(i))&&(r.disconnect(),e.page_number&&ue([e],n,i))})).observe(document.body,{childList:!0,subtree:!0});return}if(ce.current.has(i))return;r=document.getElementById("p".concat(o.page_number))}r&&i&&ce.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&&Y.current.includes(o)||X.current.includes(o))return null;var a=ne(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);G.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,I.g$)(n);if(!n||"celero"!==t.hostname)return!1;if(t.pathname===E.U.FORM)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,I.g$)(t);if(Boolean(t&&"celero"===r.hostname)){var i=r.pathname;if(i===E.U.LINK)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"))&&C().canPlay(a),d=(0,j.r)(a);return!u&&!d}}catch(e){return!0}return new Set([E.U.VIDEO_DIALOG,E.U.SHARE,E.U.DOWNLOAD,E.U.IMAGE,E.U.AUDIO,E.U.JS_EVENT,E.U.REDIRECT,E.U.CALLBACK]).has(i)}try{var p="true"===new URL(t.startsWith("http")?t:"https://"+t).searchParams.get("embed"),f=t&&(0,j.r)(t);return!(p&&C().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,I.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=le(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=ce.current.get(r);if(i&&p){s.render(p,a),i.appendChild(a);var l="page-".concat(r,"-").concat(o);ee.current.set(l,a),null!=r&&te(r),e.handled=!0,"page_number"in e?Y.current.push(o):X.current.push(o)}}}))}),[le,v,Q,te]),de=(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)(M,{fields:ie.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=ue(n,"custom");window.requestAnimationFrame((function(){g.forEach((function(e){return e&&e()}))}))}}}),[ue]);return(0,c.useEffect)((function(){de(n,[])}),[k,n]),(0,c.useEffect)((function(){de({pages:[]},t)}),[k,t]),null})),H=z,q=t(48623),G=t(58324),K=t(5791),Y=t(84740),X=t(81046),J=t(52808),Z=t(77998),$=t(25195),Q=t(15884),ee=(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))})),ne=(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))})),te=(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))})),re=(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))})),ie=(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))})),oe=function(e){var n=e.content,t=(0,O.A)(),s=t.currentPageNumber,u=t.loadedPages,d=(0,Z.p)({content:n}).handleDownloadOriginalPdf,p=(0,Q.B)({content:n}),f=p.triggerShareDialog,h=p.ShareDialogLoader,g=(0,c.useState)([]),v=(0,a.A)(g,2),x=v[0],b=v[1],y=(0,c.useState)(!1),_=(0,a.A)(y,2),E=_[0],k=_[1],C=(0,c.useState)(!1),j=(0,a.A)(C,2),T=j[0],N=j[1],D=(0,c.useState)(!1),R=(0,a.A)(D,2),L=R[0],P=R[1],F=(0,c.useState)(""),W=(0,a.A)(F,2),B=W[0],M=W[1],U=(0,c.useState)(!1),V=(0,a.A)(U,2),z=V[0],oe=V[1],ae=(0,c.useState)(),le=(0,a.A)(ae,2),ce=le[0],se=le[1],ue=(0,c.useState)(""),de=(0,a.A)(ue,2),pe=de[0],fe=de[1],me=(0,c.useState)(""),he=(0,a.A)(me,2),ge=he[0],ve=he[1],xe=(0,c.useState)(""),be=(0,a.A)(xe,2),Ae=be[0],we=be[1],ye=(0,c.useState)(0),_e=(0,a.A)(ye,2),Se=_e[0],Ie=_e[1],Ee=(0,c.useState)(!1),ke=(0,a.A)(Ee,2),Ce=ke[0],je=ke[1],Te=(0,c.useState)(null),Ne=(0,a.A)(Te,2),De=Ne[0],Oe=Ne[1],Re=(0,c.useState)(!1),Le=(0,a.A)(Re,2),Pe=Le[0],Fe=Le[1],We=(0,A.ZI)()===w.V.Mobile,Be=(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 ve(r),e.n=1,(0,J.q)(t.data,r);case 1:if(a=e.v,l=a.canIframe,c=a.embedUrl,fe(c||r),Fe(l),l){e.n=2;break}return setTimeout((function(){window.open(r)})),s={content_id:n.uuid,link_url:r,page_number:o},(0,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,s),e.a(2);case 2:We?P(!0):N(!0);case 3:u={content_id:n.uuid,link_url:r,is_iframe_loadable:l,type_of_dialog:S.KZ.IFRAME_DIALOG,page_number:o},(0,K.xF)(S.qW.OPEN_LINK,u);case 4:return e.a(2)}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),[]),Me=(0,c.useCallback)((function(e,t){if(e.includes("https"))X.A.checkIfURIIsValid(e,Be,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,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,r)}}),[]),Ue=(0,c.useCallback)((function(){var e=performance.now(),t={};switch(Ae){case l.B4.URI:N(!1),t={content_id:n.uuid,type_of_dialog:S.KZ.IFRAME_DIALOG,link_url:pe,duration:(0,A.eG)(Se,e),page_number:s};break;case l.B4.Video:case l.B4.VideoLink:t={content_id:n.uuid,link_url:B,type_of_dialog:S.KZ.VIDEO_PLAYER_DIALOG,duration:(0,A.eG)(Se,e)}}(0,K.xF)(S.qW.CLOSE_LINK,t)}),[pe,B,Se,n,s]),Ve=(0,c.useCallback)((function(){var e=n.uuid;switch(Ae){case l.B4.Video:case l.B4.VideoLink:return(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(ee,{url:B,contentUUID:e,pageNumber:s,autoplay:z,isDialog:!0,poster:ce})});default:return null}}),[Ae,B,n,s,z,ce]),ze=(0,c.useCallback)((function(e){Oe(e),je(!0);var t={content_id:n.uuid,audio_src:e.audioSrc,page_number:e.pageNumber};(0,K.xF)(S.qW.OPEN_AUDIO,t)}),[]),He=(0,c.useCallback)((function(){if(pe){window.open(pe,"_blank","noopener,noreferrer");var e={content_id:n.uuid,link_url:pe,page_number:s};(0,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,e)}}),[pe]),qe=(0,c.useCallback)((function(){if(Ae===l.B4.URI){var e=pe;return(0,I.g$)(e).hostname.replace("www.","")===window.location.hostname.replace("www.","")&&(e=(0,I.He)(e,"without_navbar","true")),(0,m.jsx)("iframe",{title:"internal-iframe",style:{width:"100%",height:"100%",border:0},src:e})}return null}),[Ae,pe]),Ge=(0,c.useMemo)((function(){return[{icon:(0,m.jsx)($.A,{fontSize:"inherit"}),action:He,hidden:Ae!==l.B4.URI}]}),[Ae,He]),Ke=(0,c.useCallback)((function(e){var n=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!1});document.dispatchEvent(n)}),[]),Ye=(0,c.useCallback)((function(e,t,i,o,a){var c={source:"annotation",goToPage:function(e,n){if(!n){var i=(0,r.A)((0,r.A)({},(0,K.wn)()),{},{page_number:t,value:"GoTo Page ".concat(e),source:"annotation"});(0,K.xF)(S.qW.GO_TO_CLICKED,i);var o={eventName:S.qW.SLIDE_VIEW_STARTED,payload:(0,r.A)({source:S.T9.GO_TO_LINK},(0,K.wn)()),created_at:new Date};window.customEventsHandler&&window.customEventsHandler(o)}t!==e&&window.IDRViewer.goToPage(e)},next:function(){return window.IDRViewer.next()},prev:function(){return window.IDRViewer.prev()},openVideo:function(e){var t,r,i=e.src,o=e.autoplay;t=i,r={content_id:n.uuid,link_url:t,type_of_dialog:S.KZ.VIDEO_PLAYER_DIALOG,source:"annotation"},(0,K.xF)(S.qW.OPEN_LINK,r),oe((0,A.Ln)(i,!0,o)),M(i),se((0,A.NN)(i)),P(!0),k(!0),we(l.B4.Video)},openUrl:function(e,n){n?setTimeout((function(){window.open(e)})):Me(e,t),we(l.B4.URI)},share:function(){return f("Annotation",t)},download:function(){return d()},fireJsEvent:function(e){return Ke(e)}};(0,q.w)((0,G.ae)(e,i,o,a),c)}),[]);(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;i 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),b=t(89252),A=t(58523),w=t(27224),y=t(65983),_=["setFieldValue","setFieldTouched","name","value","error","className","handleCallBack","container","FormControlStyle","type","isWithTwoLines"],S=function(e){var n=e.setFieldValue,t=e.setFieldTouched,p=e.name,f=e.value,m=e.error,h=e.className,S=e.handleCallBack,I=void 0===S?function(){}:S,E=e.container,k=e.FormControlStyle,C=e.type,j=e.isWithTwoLines,T=(0,o.A)(e,_),N=g(),D=(0,a.useState)(!1),O=(0,i.A)(D,2),R=O[0],L=O[1],P=(0,w.j7)(),F={endAdornment:"password"===C&&(0,y.jsx)(l.A,{position:"end",children:(0,y.jsx)(v,{onClick:function(){L(!R)},disableRipple:!0,children:R?(0,y.jsx)(b.A,{}):(0,y.jsx)(A.A,{})})})},W=j?2:1;return(0,y.jsxs)(c.A,{error:!!m,className:(0,d.A)(N.FormControlStyle,k),children:[(0,y.jsx)(s.A,(0,r.A)({className:h,id:"outlined-basic",variant:"outlined",value:f,onChange:function(e){e.target.value.indexOf("\n")>-1?P.submitForm():(n(p,e.target.value),t(p,!0,!1)),I(p,e.target.value,E,x.wz.TEXT_FIELD)},InputProps:F,type:R?"text":C,multiline:j,rows:W},T)),m&&(0,y.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"},58324:function(e,n,t){t.d(n,{Lj:function(){return h},To:function(){return u},V_:function(){return v},_y:function(){return s},ae:function(){return x},le:function(){return g}});var r=t(89379),i=t(3895),o=t.n(i),a=t(87162),l=t(44415),c=t(81068);function s(e){return"tel:".concat((e||"").replace(/[^\d+*#,;]/g,""))}function u(e,n,t){var r=(e||"").replace(/[\r\n]/g,"").trim(),i=new URLSearchParams;n&&i.set("subject",n),t&&i.set("body",t);var o=i.toString();return"mailto:".concat(r).concat(o?"?".concat(o):"")}function d(e){return"string"!=typeof e||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")?e:"https://"+e}var p=/^\s*(javascript|data|vbscript|file):/i;function f(e){return"string"!=typeof e||p.test(e)?"":e}function m(e){return"url"===(null==e?void 0:e.kind)?(0,r.A)((0,r.A)({},e),{},{uri:f(e.uri)}):"video"===(null==e?void 0:e.kind)?(0,r.A)((0,r.A)({},e),{},{src:f(e.src)}):e}function h(e){var n;if(null!=e&&e.action)return m(e.action);var t=d(null!==(n=null==e?void 0:e.destination_url)&&void 0!==n?n:"");if(o().canPlay(t))return{kind:"video",src:t,autoplay:!0};var r=!1;try{var i=new URL(t);r="true"===i.searchParams.get("open_in_new_tab")||"http:"===i.protocol}catch(e){}return{kind:"url",uri:t,openInNewTab:r}}function g(e){if(null!=e&&e.action)return m(e.action);switch(null==e?void 0:e.type){case"link":return{kind:"url",uri:d(e.value),openInNewTab:!1};case"page":return{kind:"page",page:e.value};default:return null}}function v(e){return null!=e&&e.action?m(e.action):null}function x(e,n,t,r){switch(e){case a.B4.URI:case a.B4.VideoLink:case a.B4.TextLink:var i=d(n);if("string"==typeof i&&"celero"===(0,l.g$)(i).hostname)switch((0,l.aQ)(i)){case c.U.SHARE:return{kind:"share"};case c.U.DOWNLOAD:return{kind:"download"};case c.U.JS_EVENT:var s=new URL(i),u=s.searchParams.get("name"),p="false"!==s.searchParams.get("should_record");return u?{kind:"jsEvent",name:u,record:p}:null;default:return null}return o().canPlay(i)||e===a.B4.VideoLink?{kind:"video",src:i,autoplay:t}:{kind:"url",uri:i,openInNewTab:Boolean(r)};case a.B4.GoTo:return{kind:"page",page:n};case a.B4.Video:return{kind:"video",src:n,autoplay:t};case a.B4.Named:return n===a.H2.NextPage?{kind:"named",name:"next"}:n===a.H2.PrevPage?{kind:"named",name:"prev"}:{kind:"page",page:n,silent:!0};default:return null}}},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.xF)(a,l),t({type:o.e,payload:{isOpen:e}})}}},59004:function(e,n,t){t.d(n,{A:function(){return x}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(56115),c=t(81046),s=t(89379),u=(t(21399),t(21959),t(63962)),d=t(65983),p=function(e){var n=e.content,t=(0,a.useRef)(null);return(0,a.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,u.h)(n.base_url);window.IDRViewer.config=(0,s.A)((0,s.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,d.jsx)("div",{ref:t,style:{width:"100%",height:"100%"}})},f=t(44415),m=t(99266),h=t(4134),g=t(77236);function v(e){var n=e.match(/\/s\/([^/]+)/);return n?n[1]:e}var x=function(e){var n=e.contentId,t=e.shortenLink,s=(0,a.useState)(null),u=(0,o.A)(s,2),x=u[0],b=u[1],A=(0,a.useState)(!0),w=(0,o.A)(A,2),y=w[0],_=w[1],S=(0,a.useState)(null),I=(0,o.A)(S,2),E=I[0],k=I[1],C=(0,a.useState)(n||null),j=(0,o.A)(C,2),T=(j[0],j[1]),N=(0,a.useState)(!1),D=(0,o.A)(N,2),O=(D[0],D[1]);return(0,a.useEffect)((function(){var e=!0;function o(){return(o=(0,i.A)((0,r.A)().m((function i(){var o,a,l,s,u,d,p,x,A;return(0,r.A)().w((function(r){for(;;)switch(r.n){case 0:if(_(!0),k(null),o=n,!t){r.n=6;break}return r.p=1,a=v(t),l=function(){},r.n=2,m.A.getShortenUrlInfo(a,l);case 2:if((s=r.v)&&s.content_uuid){r.n=3;break}throw new Error("Shorten link did not resolve to a content ID");case 3:if(u=(0,h.ZI)(),d=s.content_uuid,s.versions&&s.versions.length>1)for(p=0;p1&&void 0!==arguments[1]&&arguments[1],t=v(e),r=t===c.o4.MARKETO,i=r?function(e){return Number(e.id.split("_")[1])||0}(e):0;return{formType:t,marketoFormId:i,formElementId:e.id||void 0,isValid:n?r?x(i):"function"==typeof e.checkValidity?e.checkValidity():void 0:void 0}};n.A=function(){var e=(0,o.d4)((function(e){return{marketoFormData:e.marketoFormData}})).marketoFormData,n=(0,o.wA)(),t=(0,i.useRef)(e);(0,i.useEffect)((function(){t.current=e}),[e]),(0,i.useEffect)((function(){var e=new WeakMap,i=function(n){var t=n.currentTarget,r=n.target,i=(null==r?void 0:r.name)||(null==r?void 0:r.id)||"",o=e.get(t);o||(o=new Set,e.set(t,o)),i&&o.has(i)||(i&&o.add(i),(0,m.$z)(b(t),i))},o=function(e){var i=e.currentTarget,o=v(i),s=o===c.o4.MARKETO;s&&e.preventDefault();var h=b(i,!0);if(!s||h.isValid){if((0,m.qz)(h,{actionType:m.gz.SUBMIT}),s){var g,x=null===(g=t.current)||void 0===g?void 0:g.find((function(e){return e.form_id===h.marketoFormId}));null!=x&&x.is_progressive&&(window.mktoSubmittedForms?window.mktoSubmittedForms.push(x.form_id):window.mktoSubmittedForms=[x.form_id]),setTimeout((function(){n((0,a.G)("Form has been submitted successfully","success",!0))}),2e3)}setTimeout((function(){!function(e){if(e){var n=(0,f.wn)();n.account_id&&u.A.getCompanyIntegrations(n.account_id).then((function(t){var i,o=t.find((function(n){return n.name===e}));o&&(e===c.o4.MARKETO&&null!=o&&null!==(i=o.data)&&void 0!==i&&i.luid&&(0,d.TV)("luid",o.data.luid,365),(0,f.xF)(l.qW.NEW_LEAD,(0,r.A)((0,r.A)({integration_type:e},n),o.data)))})).catch((function(n){(0,p.FF)("Lead lookup after form submit failed",{message:null==n?void 0:n.message,integration_type:e})}))}}(o)}),2e4)}},s=[],x=function(e){(function(e){return!g.has(e)&&!e.hasAttribute(h)&&!e.hasAttribute("data-celero-no-track")&&"search"!==e.getAttribute("role")})(e)&&(g.add(e),s.push(e),e.addEventListener("change",i),e.addEventListener("submit",o))},A=function(e){e instanceof Element&&("FORM"===e.nodeName&&x(e),e.querySelectorAll("form").forEach((function(e){return x(e)})))};document.querySelectorAll("form").forEach((function(e){x(e)}));var w=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach(A)}))}));return w.observe(document.body,{childList:!0,subtree:!0}),function(){w.disconnect(),s.forEach((function(e){e.removeEventListener("change",i),e.removeEventListener("submit",o),g.delete(e)}))}}),[n])}},60997:function(e,n,t){t.d(n,{K:function(){return r}});var r="SET_OPEN_TOOLTIP"},63055:function(e,n,t){t.d(n,{AP:function(){return c},DW:function(){return u},F:function(){return s}});var r,i=t(89379),o=t(81114),a=t(20253),l=new Map,c=["getValue","getTotal"],s=function(e){r=e},u=function(e,n,t){var s,u,d;l.set(e,{currentTime:n,total:(null!==(s=null===(u=l.get(e))||void 0===u?void 0:u.total)&&void 0!==s?s:0)+1e3,currentMediaData:t}),d=e,r.has(d)&&r.get(d).forEach((function(e){var n,t,r=e.rules&&e.rules.find((function(e){return"time"===e.key&&c.indexOf(e.function||"")>-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"},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),b=t(28439),A=t(5791),w=t(79218),y=t(29732),_=t(5084),S=t(32388),I=t(55284),E=t(89004),k=t(12558),C=t(20535),j=t(85434),T=(0,C.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),O=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)(w.A,{open:d,onClose:p,PaperProps:g,BackdropProps:v,disableEnforceFocus:!0,children:[(0,D.jsx)(y.A,{className:o,children:(0,D.jsxs)("div",{className:c,children:[(0,D.jsxs)(_.A,{className:t,children:[" ",f]}),(0,D.jsx)(S.A,{onClick:p,className:s,children:(0,D.jsx)(N.h,{})})]})}),(0,D.jsx)(I.A,{className:u,children:(0,D.jsx)(_.A,{className:i,children:m})}),(0,D.jsx)(E.A,{children:(0,D.jsx)(k.A,{className:l,onClick:p,variant:"contained",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:h})})]})},R=t(27772),L=["index","group"],P=["timeoutRef"],F=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),w=h[0],y=h[1],_=function(){y(!1)},S=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)},I=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 y(!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&&(b.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&&(b.A.fireEvent(f),x.E.dispatchCustomEvent(f))}else"celero"===d&&n((0,R.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:{}}}))}},E=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,A.xF)(d.qW.FIRE_JS_EVENT,t),b.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,A.xF)(d.qW.FIRE_JS_EVENT,a),b.A.fireEvent(o),x.E.dispatchCustomEvent(o);break;case"show_integration_form":var l=e.form;l&&I(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)},k=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:W.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)(F,{})}},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"},68995:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var r=t(91212),i=t(10467),o=t(5544),a=t(49255),l=t(5791),c=t(81114),s=t(72661),u=(t(5348),t(81046)),d=t(48623),p=t(58324),f=t(52808),m=t(47081),h=t(3895),g=t.n(h),v=t(52484),x=t(84899),b=t(35175),A=t(96054),w=t(84740),y=t(24507),_=t(812),S=t(5084),I=(0,y.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,y.Ay)(S.A)({fontSize:18,fontWeight:500,lineHeight:"21px",paddingLeft:16,paddingRight:16}),k=t(15884),C=t(77998),j=t(83940),T=t(65983),N=function(e){var n,t,h,y,_=e.content,S=e.withShadow,N=void 0!==S&&S,D=(0,m.wA)(),O=null!==(n=null==_?void 0:_.content_action)&&void 0!==n?n:{},R=O.button_text,L=O.button_color,P=null!==(t=null==_||null===(h=_.content_action)||void 0===h?void 0:h.destination_url)&&void 0!==t?t:"";!P||P.startsWith("http://")||P.startsWith("https://")||(P="https://"+P);var F=(0,a.useState)(!1),W=(0,o.A)(F,2),B=W[0],M=W[1],U=(0,a.useState)(0),V=(0,o.A)(U,2),z=(V[0],V[1]),H=(0,a.useState)(P),q=(0,o.A)(H,2),G=q[0],K=q[1],Y=(0,x.A)().isMobile,X=(0,k.B)({content:_}),J=X.triggerShareDialog,Z=X.ShareDialogLoader,$=(0,C.p)({content:_}).handleDownloadOriginalPdf;if(null==_||null===(y=_.content_action)||void 0===y||!y.is_enabled)return(0,T.jsx)(T.Fragment,{});function Q(e,n){var t={content_id:null==_?void 0:_.uuid,link_url:e,value:n,source:"cta"};(0,l.xF)(c.qW.ACTION_CLICKED,t)}var ee=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==_?void 0:_.content_action,a=o.button_text,e.n=1,(0,f.q)(n.data,t);case 1:l=e.v,c=l.canIframe,s=l.embedUrl,c?(K(s||t),M(!0)):setTimeout((function(){window.open(t)})),Q(t,a);case 2:return e.a(2)}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}();var ne=function(){return g().canPlay(G)?(0,T.jsx)(v.default,{url:G,contentUUID:null==_?void 0:_.uuid,pageNumber:void 0,autoplay:!0,isDialog:!0}):(0,T.jsx)("iframe",{title:"internal-iframe",style:{width:"100%",height:"100%",border:0},src:G})},te=function(){window.open(G||P)},re=function(){M(!1)},ie=[{icon:(0,T.jsx)(b.A,{fontSize:"inherit"}),action:te,hidden:!1}];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(I,{variant:"extended",onClick:function(){var e=(null==_?void 0:_.content_action).button_text,n={source:"cta",goToPage:function(e){var n,t;return null===(n=window.IDRViewer)||void 0===n||null===(t=n.goToPage)||void 0===t?void 0:t.call(n,e)},openVideo:function(n){var t=n.src||P;K(t),M(!0),Q(t,e)},openUrl:function(n,t){t?ee({data:{iframe_support:!1}},n,null):u.A.checkIfURIIsValid(n,ee,D).catch((function(t){window.open(n),Q(n,e)}))},next:function(){var n,t;null===(n=window.IDRViewer)||void 0===n||null===(t=n.next)||void 0===t||t.call(n),Q("next",e)},prev:function(){var n,t;null===(n=window.IDRViewer)||void 0===n||null===(t=n.prev)||void 0===t||t.call(n),Q("prev",e)},share:function(){return J("CTA")},download:function(){return $()},print:function(){return window.print()},call:j.PS,sendEmail:j.Ed,fireJsEvent:function(n){var t;t=n,document.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!1})),Q(n,e)},openForm:(0,j.nX)(D),openMicrosite:function(n,t){var r=n?"".concat(window.location.origin,"/s/").concat(n):"";if(r){if(t)return window.open(r,"_blank"),void Q(r,e);K(r),M(!0),Q(r,e)}}};(0,d.w)((0,p.Lj)(null==_?void 0:_.content_action),n)},button_color:L,withShadow:N,ismobile:Y,"assistant-c-name":"cta",children:(0,T.jsx)(E,{children:R})}),(0,T.jsx)(w.A,{isVisible:!Y,children:(0,T.jsx)(s.A,{handleCloseIframeDialog:re,handleOpenLinkExternal:te,openIframeDialog:B,renderContentOfDialog:ne,isIframeLoadable:!0,isLoading:!1,iframeSrc:G,openExternalLinkTooltip:"Open in a new tab",closeDialogTooltip:"Close",setDialogStartTime:z,urlSrcWithOutParams:G})}),(0,T.jsx)(w.A,{isVisible:Y,children:(0,T.jsx)(A.default,{handleCloseMobilePopup:re,actions:ie,openMobilePopup:B,renderContentOfMobilePopup:ne,isLoading:!1,setMobilePopupStartTime:z})}),(0,T.jsx)(Z,{})]})}},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:"96px",top:"113px",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:"rgba(17,17,17,0.72) !important",marginBottom:"16px !important",height:"56px",width:"56px",boxShadow:"0 8px 24px 0 rgba(0,0,0,0.3)","&:hover":{backgroundColor:"rgba(17,17,17,0.92) !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"},closeIconImg:{width:"26px",height:"26px",filter:"brightness(0) invert(1)"}}})),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,b=n.root,A=e.openExternalLinkTooltip,w=e.closeDialogTooltip,y=e.handleCloseIframeDialog,_=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:b},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:_,iframeSrc:e.urlSrcWithOutParams,isPreview:h.bU})})})})}),e.openIframeDialog&&(0,g.jsxs)("div",{id:"lololololol",className:n.iconsWrapper,children:[(0,g.jsx)(a.A,{title:w,children:(0,g.jsx)(i.A,{className:x,onClick:y,children:(0,g.jsx)(c.A,{className:n.closeIconImg,children:(0,g.jsx)(p.h,{})})})}),(0,g.jsx)(a.A,{title:A,children:(0,g.jsx)(i.A,{className:v,onClick:_,children:(0,g.jsx)(c.A,{className:n.iconImg,children:(0,g.jsx)(f.ReactComponent,{})})})})]})]})}},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),b=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:w.visitors,children:[(0,p.jsx)(d.h,{className:w.icon}),(0,p.jsx)("div",{className:w.visitorsNumber,children:n.visits})]}),I&&(0,p.jsx)("div",{className:w.tags,children:null==I?void 0:I.map((function(e){return(0,p.jsx)(s.A,{label:e,className:w.chip,classes:{label:w.chipLabel}},e)}))})]})]})})}),(0,p.jsx)(u.A,{className:w.divider})]})}},72661:function(e,n,t){var r=t(70035);n.A=r.default},74102:function(e,n,t){t.d(n,{Ay:function(){return qe},g7:function(){return He}});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(53736),v=t(56328),x=t(10362),b=t(92610),A=t(66811),w=t(66555),y=t(52420),_=t(31768),S=t(30329),I=t(82849),E=t(46717),k=t(20814),C=t(41726),j=t(30866),T=t(48640),N=t(21554),D=t(55507),O={link:g.A,phone:k.A,email:C.A,page:v.A,navigation:x.A,video:b.A,image:A.A,audio:w.A,share:y.A,download:_.A,print:S.A,form:I.A,microsite:E.A,globe:E.A,mail:C.A,chat:j.A,star:T.A,pin:N.A,help:D.A};var R=t(20535),L=t(13989),P=t(17141),F=t(85434),W=t(65278),B=t(7220),M=t(26468),U=t(30612),V=t(76892),z=t(70432),H=t(87162),q=t(42143),G=t(88119),K=t(65983),Y=((0,R.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,F.X4)(e.palette.customViewer.viewerPrimaryColor,.25)," !important")},infoIconStyle:{color:e.palette.customViewer.viewerPrimaryColor}}})),(0,R.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,q.hexToCSSFilter)((0,G.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter)},menuIconButton:{"&:hover":{background:"none"}}}}))),X=(0,R.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,q.hexToCSSFilter)((0,G.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,F.X4)(e.palette.basicColors.black,.3)}},viewerBar:{display:"flex",justifyContent:"flex-end",gap:e.spacing(1)},thumbnailsIcon:{maxHeight:"50px",borderRadius:2,filter:"".concat((0,q.hexToCSSFilter)((0,G.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,F.X4)(e.palette.basicColors.black,.3)},"& > span > svg":{width:"24px",height:"24px"}},barIcon:{maxHeight:"50px",borderRadius:2,filter:"".concat((0,q.hexToCSSFilter)((0,G.H)(e.palette.getContrastText(e.palette.customViewer.viewerBarColor))).filter),"&:hover":{backgroundColor:(0,F.X4)(e.palette.basicColors.black,.3)}},readLaterContainer:{marginLeft:"24px"},enhancedToolBarStyle:(0,i.A)({width:"100%",minHeight:H.Hi},"".concat(e.breakpoints.down("sm")),{minHeight:H.O5}),topBarContents:{display:"flex",flexGrow:1,justifyContent:"space-between"},mobileMenuIcon:{padding:0,"&:hover":{background:"none"}},openMobileMenuIcon:{width:"24px",height:"24px",filter:"".concat((0,q.hexToCSSFilter)((0,G.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(H.Hi,"px !important")},"".concat(e.breakpoints.down("sm")),{minHeight:"".concat(H.O5,"px !important")}),ribbonContainerStyleWithReview:{boxShadow:"0 -2px 5px 0 rgb(78 96 107 / 13%)"}}})),J=function(e){return(0,K.jsx)(W.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:H.O5}}}))},Z=(0,P.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"})}}))(B.A),$=((0,P.A)((function(e){return{root:{height:"50%",backgroundColor:e.palette.customViewer.viewerPrimaryTextColor,alignSelf:"center",marginRight:"40px",marginLeft:"40px"}}}))(M.A),(0,P.A)((function(){return{root:{position:"relative"}}}))(U.Ay),(0,P.A)((function(){return{root:{width:"100%",marginTop:function(e){return"".concat(e.topValue,"px")}},paper:{bottom:0,height:"auto"}}}))(U.Ay),(0,P.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"})}}))(V.A),(0,P.A)((function(){return{root:{width:"100%",height:"100%",border:"4px solid #ffff",borderRadius:"50%"}}}))(z.A),(0,P.A)((function(){return{tooltip:{padding:"15px",margin:"8px",fontSize:14,fontWeight:"bold",whiteSpace:"pre-wrap"}}}))(d.A)),Q=((0,R.A)((function(e){return(0,L.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,R.A)((function(e){return(0,L.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)),ee=t(5791),ne=t(81114),te=t(62614),re=t(74724),ie=t(98992),oe=(0,R.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}})}})),ae=function(e){var n=oe(e),t=s.useState(!1),r=(0,c.A)(t,2),i=r[0],o=r[1];return(0,K.jsx)(p.x,{onClickAway:function(){o(!1)},children:(0,K.jsxs)("div",{children:[(0,K.jsx)(u.A,{"aria-label":"more","aria-haspopup":"true",onClick:function(e){o(!i)},className:n.color,children:(0,K.jsx)(te.A,{})}),(0,K.jsx)(re.A,{in:i,classes:{wrapper:n.collapseWrapper},className:n.collapse,unmountOnExit:!0,children:(0,K.jsx)(ie.A,{className:n.paper,children:e.renderActions()})})]})})},le=t(59205),ce=t(57957),se=function(e){var n=(0,s.useState)(""),t=(0,c.A)(n,2),r=t[0],i=t[1];return(0,s.useEffect)((function(){le.A.get(e.url).then((function(e){return i(e.data)})).catch((function(){(0,ce.ZI)("Fetch SVG ".concat(e.url," Failed"))}))}),[e.url]),(0,K.jsx)("div",{className:e.svgDivClassName,dangerouslySetInnerHTML:{__html:r}})},ue=t(6218),de=t(5084),pe=t(87632),fe=t(84411),me=(0,R.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,q.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"}}}})),he=t(88031),ge=t(84899),ve=function(e){var n=e.actionCards,t=e.isOpen,r=e.handleCloseMobileMenu,i=e.getShareObj,o=e.contentConversionType,a=me(),l=(0,ge.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===he.d.DOCUMENT})).map((function(e){return{icon:e.icon,title:e.label,onClick:function(){g(e),r()}}}));return l?(0,K.jsx)(pe.A,{direction:"up",in:t,children:(0,K.jsxs)(ie.A,{classes:m,className:a.fullScreenPaper,children:[(0,K.jsxs)("div",{className:a.mobileHeader,children:[(0,K.jsx)("button",{className:a.closeButton,onClick:r,"aria-label":"Close",children:"×"}),(0,K.jsx)(de.A,{className:a.mobileTitle,children:"Share"})]}),(0,K.jsx)("div",{className:a.mobileShareContent,children:i&&(0,K.jsx)(fe.T,{getShareObj:i,additionalActions:x})})]})}):(0,K.jsx)(pe.A,{direction:"up",in:t,children:(0,K.jsxs)(ie.A,{classes:m,children:[i&&(0,K.jsx)(fe.T,{getShareObj:i}),(0,K.jsxs)("div",{className:p,children:[n&&n.length&&n.length>0&&n.map((function(e,n){return!(o!=he.d.DOCUMENT&&"DOWNLOAD"==e.actionType)&&function(e,n){var t=(0,h.A)(c);return(0,K.jsxs)(ue.A,{className:t,onTouchEnd:function(n){n.preventDefault(),n.stopPropagation(),g(e)},children:[(0,K.jsx)(de.A,{className:u,children:e.icon}),(0,K.jsx)(de.A,{className:d,children:e.label})]},e.label+n)}(e,n)})),(0,K.jsx)(ue.A,{onTouchEnd:v,onClick:r,className:f})]})]})})};ve.displayName="Mobile Viewer Menu";var xe=t(96947),be=t(52980),Ae=t(39863),we=t(68240),ye=t(42883),_e=t(94541),Se=t(73530),Ie=t(47081),Ee=t(62498),ke=t(68995),Ce=t(49535),je=t(30007),Te=function(e){var n=e.menuItems,t=e.handleMenuItemClick,r=e.type,i=Y(),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,b=function(){g(null)};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,n){return e.is_showing?(0,K.jsx)("div",{className:a,"assistant-c-name":"menu-item-".concat(n),children:(0,K.jsx)(de.A,{onClick:function(){b(),t(e)},children:e.title})}):(0,K.jsx)(K.Fragment,{})})):(0,K.jsx)(K.Fragment,{})}return(0,K.jsx)("div",{className:o,children:"desktop"===r?(0,K.jsx)("div",{style:{display:"flex",gap:"10px",marginLeft:"30px"},children:A()}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(u.A,{onClick:function(e){g(e.currentTarget)},disableFocusRipple:!0,disableRipple:!0,disableTouchRipple:!0,className:p,children:(0,K.jsx)(Ce.A,{className:d})}),(0,K.jsx)(je.Ay,{id:x,open:v,anchorEl:h,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,K.jsx)("div",{className:l,children:A()})})]})})},Ne=t(25761),De=t(21146),Oe=t(95458),Re=t(58651),Le=t(80922),Pe=(0,s.forwardRef)((function(e,n){var t,v,x=X(),b=e.setCurrentPage,A=e.contentName,w=e.content,y=e.logo,_=e.logImgAlt,S=e.handleOpenShareDialog,I=e.isMobile,E=e.handleDownloadOriginalPdf,k=e.shortcuts,C=e.shouldShowShareButton,j=e.isWitoutNavBar,T=e.shouldAppBarBeInTop,N=e.getShareObj,D=e.barPosition,R=e.conversionType,L=e.id,P=e.isPreviewCampaign,F=e.menuItems,W=e.handleMenuItemClick,B=e.buttons,M=e.handleButtonClick,U=x.actionButton,V=x.viewerBar,z=x.actionsDiv,q=x.actionsGrid,G=x.enhancedToolBarStyle,Y=x.topBarContents,te=x.fileNameGrid,re=x.logoStyle,ie=x.logoWrapperStyle,oe=x.logoWrapperWithoutMinWidth,le=x.mobileLogo,ue=x.svgDiv,de=x.barIcon,pe=x.mobileViewerBar,fe=x.mobileMenuIcon,me=x.openMobileMenuIcon,ge=(0,Ie.d4)((function(e){return{mobileMenu:e.mobileMenu}})).mobileMenu.isMobileMenuOpen,Ce=(0,s.useState)(),je=(0,c.A)(Ce,2),Pe=je[0],Fe=je[1],We=(0,De.y)(),Be=(0,s.useState)(!1),Me=(0,c.A)(Be,2),Ue=Me[0],Ve=Me[1],ze=(0,s.useState)(!1),He=(0,c.A)(ze,2),qe=He[0],Ge=He[1];(0,s.useEffect)((function(){if("undefined"!=typeof window&&window.parent!==window&&"true"===new URLSearchParams(window.location.search).get("celero_preview_app")){var e=function(e){if((0,Ee.Id)(e)){var n=e.data;"set-drag-to-place"===n.type&&n.enabled&&Ge(!0)}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}}),[]);var Ke=!I&&(null===(t=w.content_action)||void 0===t?void 0:t.is_enabled)&&"BAR"===(null===(v=w.content_action)||void 0===v?void 0:v.button_position)&&!qe,Ye=P?'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.':"",Xe=(0,Ie.wA)(),Je=(0,Ie.d4)((function(e){return{theme:e.theme}})).theme.palette.customViewer.viewerPrimaryTextColor,Ze=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,N(!1);case 1:n=e.v,t={share_link:n,file_title:A,type:ne.qW.COPY_SHARE_LINK},(0,ee.xF)(ne.qW.SHARE_LINK,t);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),$e=function(){S(ne.T9.VIEWER_BAR)},Qe=(0,Oe.e)(),en=function(e,n,t){switch(e){case H.Q3.Go_TO:if(!t||!t.page_number)return void(0,ce.ZI)("No page number for ".concat(e));b(t.page_number);break;case H.Q3.DOWNLOAD:if(!t||!t.download_url)return void(0,ce.ZI)("No Download URL for ".concat(e," shortcut and shortcut_id ").concat(n));E(t.download_url);break;case H.oV:$e();break;case H.RD:Ze();Pe&&(0,Q.eM)(Pe,(function(){return Xe((0,we.G)("Copied","success",!0))}));break;default:return}},nn=function(e){switch(e){case H.Q3.Go_TO:return"Go To";case H.Q3.DOWNLOAD:return"Download";default:return""}},tn=function(e){return e.action===H.Q3.DOWNLOAD?(0,K.jsx)(be.h,{}):(n=e.icon_url,(0,K.jsx)(se,{url:n,svgDivClassName:ue}));var n};function rn(){Xe((0,Re.a)(!0,Le.I.VIEWER_BAR))}var on=(k||[]).filter((function(e){return e.action!==H.Q3.DOWNLOAD})),an=!(null==w||!w.download_url)||(k||[]).some((function(e){return e.action===H.Q3.DOWNLOAD})),ln=function(e){return(0,K.jsx)(d.A,{title:nn(e.action),children:(0,K.jsx)(u.A,{disabled:(n=e.action,(null==n||null===(t=n.toLowerCase())||void 0===t?void 0:t.includes("download"))&&Qe),onClick:function(){return en(e.action,e.id,e.additional_data)},className:U,disableFocusRipple:!0,disableRipple:!0,children:tn(e)})},e.id);var n,t},cn=function(){return(0,K.jsx)(d.A,{title:"Search",children:(0,K.jsx)(u.A,{className:de,onClick:rn,disableFocusRipple:!0,disableRipple:!0,children:(0,K.jsx)(Ae.ReactComponent,{})})},"search")},sn=function(){return(0,K.jsx)(d.A,{title:"Share",children:(0,K.jsx)(u.A,{className:de,disableFocusRipple:!0,disableRipple:!0,disabled:P,onClick:$e,children:(0,K.jsx)(m.h,{})})},"share")},un=function(){return(0,K.jsx)(d.A,{title:"Download",children:(0,K.jsx)(u.A,{className:U,disabled:Qe,onClick:function(){return E("")},disableFocusRipple:!0,disableRipple:!0,children:(0,K.jsx)(be.h,{})})},"download")},dn=function(e){var n,t=(n=e.icon,O[n||""]||g.A);return(0,K.jsx)(d.A,{title:e.title||"",children:(0,K.jsx)(u.A,{disableFocusRipple:!0,disableRipple:!0,onClick:function(){return M(e)},sx:{maxHeight:"50px",borderRadius:2,color:function(e){return e.palette.getContrastText(e.palette.customViewer.viewerBarColor)},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:(0,K.jsx)(t,{})})},e.id)},pn=function(){return B?[].concat((0,o.A)(on.map(ln)),(0,o.A)((B.data||[]).flatMap((function(e){if(!e.is_showing)return[];switch(e.type){case"download":return an?[un()]:[];case"search":return[cn()];case"share":return[sn()];case"custom":return[dn(e)];default:return[]}})))):[].concat((0,o.A)(on.map(ln)),(0,o.A)(an?[un()]:[]),[cn(),sn()])},fn=function(){return(0,K.jsx)(K.Fragment,{children:R==he.d.DOCUMENT&&(0,K.jsx)("div",{children:pn()})})};(0,s.useEffect)((function(){!ge||N(!1).then((function(e){Fe(e)}))}),[ge]);var mn=function(e){switch(e){case H.Q3.Go_TO:return H.co;case H.Q3.DOWNLOAD:return H.dC;default:return e}},hn=[{clickAction:function(){en(H.RD)},label:H.RD,actionType:H.RD,icon:(0,K.jsx)(xe.h,{})}].concat((0,o.A)(an&&R===he.d.DOCUMENT?[{clickAction:function(){E("")},label:H.dC,actionType:H.Q3.DOWNLOAD,icon:(0,K.jsx)(be.h,{})}]:[]),(0,o.A)(on.map((function(e){return{clickAction:en,label:mn(e.action),actionType:e.action,shortcutId:e.id,additionlData:e.additional_data,icon:tn(e)}})))),gn=(0,h.A)((0,i.A)((0,i.A)({},re,!I),le,I)),vn=(0,h.A)((0,i.A)((0,i.A)({},oe,!y),ie,y)),xn=(I&&y||!I)&&(0,K.jsx)("div",{className:vn,"assistant-c-name":"logo",children:y&&_&&(0,K.jsx)("img",{src:y,alt:_,className:gn})}),bn=(0,s.useCallback)((function(e){!ge||e&&e.srcElement&&e.srcElement.id.includes("share-content-annotation")||Xe((0,ye.J)(!1,_e.r.VIEWER_BAR))}),[ge]),An={should_app_bar_be_in_top:"".concat(T),position:D};function wn(){return Ke?(0,K.jsx)(ke.default,{content:w,withShadow:!1}):(0,K.jsx)(K.Fragment,{})}return(0,K.jsx)(K.Fragment,{children:!j&&(0,K.jsx)(J,(0,r.A)((0,r.A)({ref:n},An),{},{"assistant-c-name":"topbar",children:(0,K.jsx)(Z,{className:G,children:(0,K.jsxs)("div",{className:Y,children:[(0,K.jsxs)("div",{className:te,children:[(0,K.jsxs)(f.A,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"row",alignItems:"center",width:"100%"},children:[(null==F?void 0:F.show_in_mobile)&&(0,K.jsx)(f.A,{sx:{minWidth:48,display:"flex",justifyContent:"flex-start"},children:(0,K.jsx)(Te,{type:"mobile",menuItems:F,handleMenuItemClick:W})}),(0,K.jsx)(f.A,{sx:{flex:1,display:"flex",justifyContent:null!=F&&F.show_in_mobile?"center":"flex-start"},children:xn}),(0,K.jsx)(f.A,{sx:{minWidth:48}})]}),(0,K.jsxs)(f.A,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"row",alignItems:"center"},children:[!I&&y&&xn,null!=F&&F.show_in_desktop?(0,K.jsx)(Te,{type:"desktop",menuItems:F,handleMenuItemClick:W}):We&&!Ue?(0,K.jsx)(f.A,{sx:{ml:"30px"},children:(0,K.jsx)(Ne.A,{element:"menu",variant:"inline",label:"Add menu",onDismiss:function(){return Ve(!0)}})}):(0,K.jsx)(K.Fragment,{})]})]}),(0,K.jsx)(f.A,{sx:{display:{xs:"none",sm:"flex"}},children:(0,K.jsxs)("div",{className:V,children:[(0,K.jsx)("div",{className:q,children:!C&&R==he.d.DOCUMENT&&(!B||B.show_in_desktop)&&(0,K.jsx)("div",{className:z,children:pn().length>4?(0,K.jsx)(ae,{color:Je,renderActions:fn}):fn()})}),wn()]})}),(0,K.jsx)(f.A,{sx:{display:{xs:"block",sm:"none"}},children:(0,K.jsx)(p.x,{onClickAway:bn,children:(0,K.jsxs)("div",{className:pe,children:[!C&&!Ke&&(0,K.jsx)($,{title:Ye,children:(0,K.jsx)("span",{children:(0,K.jsx)(u.A,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,className:fe,onClick:function(){Xe((0,ye.J)(!ge,_e.r.VIEWER_BAR))},id:"mobileMenuButton",disabled:P,children:(0,K.jsx)(m.h,{className:me,path:Se._9r})})})}),wn(),!C&&(0,K.jsx)(ve,{id:L,isOpen:ge,actionCards:hn,getShareObj:N,handleCloseMobileMenu:bn,contentConversionType:R})]})})})]})})}))})}));Pe.displayName="ViewerBar";var Fe=Pe,We=t(77998),Be=t(15884),Me=t(25912),Ue=t(55737),Ve="BAR_TOP",ze="BAR_BOTTOM",He=function(e,n,t){var r,i,o,a,l,c,s=(0,Ie.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,u=n.isWithoutNavBar,d=n.isPresentationMode,p=(0,ge.A)().isMobile,f=(0,Me.A)().height,m=p?H.O5:H.Hi,h=p?ze:Ve,g=0;p?(d&&(g=0),null!=e&&null!==(r=e.content_action)&&void 0!==r&&r.is_enabled&&!1!==(null==s||null===(i=s.company)||void 0===i||null===(o=i.company_customizations)||void 0===o?void 0:o.is_powered_by_celero)?g+=Ue.bY+60+5+4:!1!==(null==s||null===(a=s.company)||void 0===a||null===(l=a.company_customizations)||void 0===l?void 0:l.is_powered_by_celero)?g+=Ue.bY+24:null!=e&&null!==(c=e.content_action)&&void 0!==c&&c.is_enabled?g+=76:g=30):d&&(g=30);var v=f-g,x=u?0:m;return u&&null!=t&&t.editModeAppBarGhostVisible&&(x=m),{viewerBarPosition:h,viewerHeight:v,viewerBarHeight:x,footerHeight:g}},qe=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=e.buttons,h=e.handleButtonClick,g=(0,s.useRef)(null),v=(0,ge.A)().isMobile,x=(0,We.p)({content:l}).handleDownloadOriginalPdf,b=(0,Be.B)({content:l}),A=b.triggerShareDialog,w=b.getShareObj,y=b.ShareDialogLoader,_=(0,Ie.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,S=d.isWithoutNavBar,I=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&&(I=l.content_customizations.is_sticky_bar);var E=I?"sticky":"relative",k=(0,s.useMemo)((function(){return null==l?void 0:l.conversion_type}),[null==l?void 0:l.conversion_type]),C=l.version?l.version.is_active?l.version.version_details.name:l.version.content_version_name:"",j=null==l?void 0:l.shortcut_customizations,T=(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,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(y,{}),(0,K.jsx)(Fe,{id:l.id,setCurrentPage:function(e){c&&"function"==typeof c.goToPage&&c.goToPage(e)},content:l,ref:g,handleOpenShareDialog:A,contentName:C,logo:T,logImgAlt:"Logo",isPreviewCampaign:u,getShareObj:w,shortcuts:j,isMobile:v,handleDownloadOriginalPdf:x,shouldShowShareButton:!1,barPosition:E,isWitoutNavBar:!!S,shouldAppBarBeInTop:!0,conversionType:k,menuItems:p,handleMenuItemClick:f,buttons:m,handleButtonClick:h})]})}},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://p2api.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.xF)(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(74102),s=t(65983),u=function(e){var n,t,i=e.content,u=e.viewerOptions,d=e.editModeAppBarGhostVisible,p=(0,l.d4)((function(e){return{theme:e.theme}})).theme,f=(0,c.g7)(i,u,{editModeAppBarGhostVisible:d}).viewerBarHeight,m=o({theme:p,topValue:f}),h=(0,a.A)().isMobile;return(0,s.jsx)("div",{className:h?m.videoContentMobileWrapperStyle:m.videoContentWrapperStyle,children:(0,s.jsx)(r.L,{url:null!==(n=null!==(t=i.base_url)&&void 0!==t?t:i.source_url)&&void 0!==n?n:null,contentUUID:i.uuid,autoplay:!1})})}},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}({})},81068:function(e,n,t){t.d(n,{U:function(){return r}});var r={VIDEO_STANDALONE:"/video_standalone",IFRAME:"/iframe",IMAGE:"/image",AUDIO:"/audio",LINK:"/link",SHARE:"/open_share",DOWNLOAD:"/download_file",JS_EVENT:"/fire_js_event",VIDEO_DIALOG:"/video_dialog",CUSTOM_HTML:"/custom_html",HTML_SNIPPET:"/embed",OEMBED:"/oembed",REDIRECT:"/redirect",CALLBACK:"/callback",FORM:"/form"}},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",PHONE_CALL:"Phone Call",SEND_EMAIL:"Send Email",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",CONTENT_NOT_FOUND:"Content Not Found"},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 D},default:function(){return O}});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),b=t(19378),A=t(21430),w=t(5791),y=t(57957),_=t(81114),S=t(47081),I=t(691),E=t(52473),k=t(38607),C=t(93593),j=t(92049),T=t(84899),N=t(65983),D=function(){var e,n,t,m,h,g,D,O,R,L=(0,S.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData}})),P=L.gdpr,F=L.shortenData,W=(0,c.useState)(!1),B=(0,l.A)(W,2),M=B[0],U=B[1],V=(0,T.A)().isMobile,z=A.parse(window.location.search),H=window.celeroURLParams.is_bot,q=(null==F||null===(e=F.company.company_customizations)||void 0===e?void 0:e.show_cookie_disclaimer)&&"true"!==z.hide_cookie_disclaimer&&!H,G=v(),K=G.acceptBtn,Y=G.acceptTypo,X=G.buttonsWrapper,J=G.disclaimerWrapper,Z=G.iconWrapper,$=G.messageTypo,Q=G.rejectBtn,ee=G.rejectTypo,ne=G.rightSection,te=G.textTypo,re=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,A=arguments;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return d=A.length>0&&void 0!==A[0]?A[0]:{},p=A.length>1?A[1]:void 0,e.n=1,k.A.waitForCeleroId();case 1:f=e.v,m=C.E.getIntegrationsNeededData(f),h=P.integration.data.visitor_param,g=P.integration.data.url_parameter,v=m[h],x=m[g+"_url_param"],E.A.visitorIdentify({account_id:null==F||null===(n=F.company)||void 0===n?void 0:n.account_id,visitor_id:v||"NOVISITORID",integration:P.integration.name,celero_id:f,version_id:(null==F||null===(t=F.versions)||void 0===t||null===(r=t[0])||void 0===r||null===(a=r.version_details)||void 0===a?void 0:a.uuid)||"",url_parameter:x,access_type:null===(l=F.access_control)||void 0===l?void 0:l.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==F||null===(c=F.versions)||void 0===c||null===(s=c[0])||void 0===s||null===(u=s.version_details)||void 0===u?void 0:u.name}),user_input:JSON.stringify({gdpr_consent_value:p})}).then((function(e){I.A.sessionStorage.setItem(b.$i,null==e?void 0:e.gdpr_track)})).catch((function(e){var n;(0,y.ZI)(e,{tags:{path:"cookies-disclaimer-consent"},context:{consent:{value:p,account_id:null==F||null===(n=F.company)||void 0===n?void 0:n.account_id}}})})),U(!1),(0,w.xF)(_.qW.GDPR_CONSENT,(0,o.A)({value:p},d));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(F.hash))||U(!0)}),[P]),!q||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(F.hash))?null:(0,N.jsx)(u.A,{in:M&&!(null!=P&&null!==(h=P.integration)&&void 0!==h&&null!==(g=h.data)&&void 0!==g&&null!==(D=g.gdpr_page)&&void 0!==D&&D.includes("/s/".concat(F.hash))),children:(0,N.jsxs)("div",{className:J,children:[!V&&(0,N.jsx)("div",{className:Z,children:(0,N.jsx)(d.A,{children:(0,N.jsx)(f.h,{})})}),(0,N.jsxs)("div",{className:ne,children:[(0,N.jsx)(j.$,{className:$,components:{p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,N.jsx)("p",(0,o.A)((0,o.A)({},n),{},{style:{margin:0}}))}},children:(null===(O=P.integration)||void 0===O||null===(R=O.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,N.jsxs)("div",{className:X,children:[(0,N.jsx)(x,{onClick:function(){re({source:"banner"},!1)},className:Q,disableRipple:!0,disableTouchRipple:!0,children:(0,N.jsx)(p.A,{className:(0,s.A)(te,ee),children:"Reject"})}),(0,N.jsx)(x,{color:"primary",variant:"contained",onClick:function(){re({source:"banner"},!0)},className:K,disableRipple:!0,disableTouchRipple:!0,children:(0,N.jsx)(p.A,{className:(0,s.A)(te,Y),children:"Accept"})})]})]})]})})},O=D},83365:function(e,n,t){t.d(n,{A:function(){return y}});var r=t(80045),i=t(89379),o=t(20454),a=t(5544),l=t(49255),c=t(70914),s=t(47081),u=t(92049),d=t(81076),p=t(19804);var f=t(84899),m=t(56787),h=t(5791),g=t(81114),v=t(89349),x=t(65983),b=["href","children"],A="celero-site-footer-host",w=function(e){var n=/^#page=(\d+)$/.exec((e||"").trim());return n?Number(n[1]):null},y=function(e){var n,t,y,_,S,I,E,k,C,j=e.isPresentationMode,T=e.contentUuid,N=e.pageCount,D=(0,s.d4)((function(e){return{shortenData:e.shortenData,theme:e.theme}})),O=D.shortenData,R=D.theme,L=(0,f.A)().isMobile,P=(0,m.A)().currentPageNumber,F=(0,l.useState)(null),W=(0,a.A)(F,2),B=W[0],M=W[1],U=(0,l.useState)(!1),V=(0,a.A)(U,2),z=V[0],H=V[1],q=null==O||null===(n=O.company)||void 0===n?void 0:n.company_customizations,G=(I=null==q?void 0:q.footer,(C=window.celeroSiteFooter||I)&&C.is_enabled&&(null!==(E=C.links_md)&&void 0!==E&&E.trim()||null!==(k=C.legal_md)&&void 0!==k&&k.trim())?C:null),K=Boolean(G)&&!j;if((0,l.useEffect)((function(){var e;if(!K)return null===(e=document.getElementById(A))||void 0===e||e.remove(),void M(null);var n=!1,t=0,r=function(){if(!n){var e=document.getElementById("idrviewer"),i=null==e?void 0:e.querySelector(".idrviewer-page");if(e&&i){var o=document.getElementById(A);return o||((o=document.createElement("div")).id=A,o.style.width="100%"),e.appendChild(o),void M(o)}t++<100&&setTimeout(r,100)}};return r(),function(){var e;n=!0,null===(e=document.getElementById(A))||void 0===e||e.remove()}}),[K,null==O?void 0:O.versions]),!G)return null;var Y=(null==R||null===(t=R.palette)||void 0===t||null===(y=t.customViewer)||void 0===y?void 0:y.viewerBackGroundColorPresentation)||"#0F1418",X=G.text_color||(j?(0,v.x)(Y):"#2b2b2b"),J={p:function(e){var n=Object.assign({},((0,o.A)(e),e));return(0,x.jsx)("p",(0,i.A)((0,i.A)({},n),{},{style:{margin:0}}))},a:function(e){var n=e.href,t=e.children,o=(0,r.A)(e,b);return(0,x.jsx)("a",(0,i.A)((0,i.A)({},o),{},{href:n,target:w(n)?void 0:"_blank",rel:"noopener noreferrer",onClick:function(e){return function(e,n){var t,r,i=w(n);if(i)return e.preventDefault(),null===(t=window.IDRViewer)||void 0===t||null===(r=t.goToPage)||void 0===r||r.call(t,i),void H(!1);n&&(0,h.xF)(g.qW.OPEN_LINK_IN_NEW_TAB,{content_id:T,link_url:n,page_number:P})}(e,n)},style:{color:"inherit",textDecoration:"none",whiteSpace:"nowrap"},children:t}))}};if(j){var Z,$;if(!N||P!==N)return null;var Q="#ffffff"===X,ee=Q?"rgba(28, 34, 41, 0.94)":"rgba(255, 255, 255, 0.96)",ne=Q?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.10)";return(0,c.createPortal)((0,x.jsxs)(d.A,{sx:{position:"fixed",bottom:0,left:0,right:0,zIndex:1300,display:"flex",flexDirection:"column",alignItems:"flex-end",pointerEvents:"none",color:X,"@keyframes celeroFooterRise":{from:{opacity:0,transform:"translateY(6px)"},to:{opacity:1,transform:"none"}},animation:"celeroFooterRise 220ms ease-out both","@media (prefers-reduced-motion: reduce)":{animation:"none"}},children:[(0,x.jsxs)(d.A,{component:"button","aria-expanded":z,onClick:function(){return H((function(e){return!e}))},onKeyDown:function(e){"Escape"===e.key&&H(!1)},sx:{pointerEvents:"auto",marginRight:"20px",display:"flex",alignItems:"center",gap:.75,cursor:"pointer",color:"inherit",background:ee,border:"1px solid ".concat(ne),borderBottom:z?"none":void 0,borderRadius:"12px 12px 0 0",backdropFilter:"blur(8px)",fontSize:12,letterSpacing:"0.01em",whiteSpace:"nowrap",padding:"8px 14px",opacity:.85,transition:"opacity 150ms ease-out","&:hover":{opacity:1}},children:["Accessibility & Policies",(0,x.jsx)(p.A,{sx:{fontSize:16,transition:"transform 240ms ease-out",transform:z?"rotate(180deg)":"none"}})]}),(0,x.jsx)(d.A,{"aria-hidden":!z,sx:{pointerEvents:z?"auto":"none",width:"100%",maxHeight:z?"50vh":0,opacity:z?1:0,overflowY:"auto",background:ee,borderTop:z?"1px solid ".concat(ne):"none",backdropFilter:"blur(8px)",transition:"max-height 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease-out","@media (prefers-reduced-motion: reduce)":{transition:"none"},"& a:hover":{textDecoration:"underline"}},children:(0,x.jsxs)(d.A,{sx:{display:"flex",flexDirection:L?"column":"row",alignItems:L?"flex-start":"center",justifyContent:"space-between",gap:L?1.5:5,padding:L?"18px 24px 22px":"20px 32px 22px",fontSize:13,lineHeight:1.9},children:[(null===(Z=G.links_md)||void 0===Z?void 0:Z.trim())&&(0,x.jsx)(d.A,{sx:{"& p":{margin:0}},children:(0,x.jsx)(u.$,{components:J,children:G.links_md})}),(null===($=G.legal_md)||void 0===$?void 0:$.trim())&&(0,x.jsx)(d.A,{sx:{opacity:.6,fontSize:12,lineHeight:1.7,textAlign:L?"left":"right","& p":{margin:0}},children:(0,x.jsx)(u.$,{components:J,children:G.legal_md})})]})})]}),document.body)}return B?(0,c.createPortal)((0,x.jsxs)("div",{style:{width:"100%",boxSizing:"border-box",background:G.background_color||"transparent",color:X,padding:L?"28px 24px 36px":"40px 56px 48px",display:"flex",flexDirection:L?"column":"row",alignItems:L?"flex-start":"center",justifyContent:"space-between",gap:L?20:40,fontSize:L?14:15,lineHeight:1.9},children:[(null===(_=G.links_md)||void 0===_?void 0:_.trim())&&(0,x.jsx)("div",{style:{flex:"1 1 auto"},children:(0,x.jsx)(u.$,{components:J,children:G.links_md})}),(null===(S=G.legal_md)||void 0===S?void 0:S.trim())&&(0,x.jsx)("div",{style:{flex:"0 0 auto",opacity:.9,textAlign:L?"left":"right"},children:(0,x.jsx)(u.$,{components:J,children:G.legal_md})})]}),B):null}},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%"}}})),b=(0,v.A)((function(){return{root:{color:"black"},thumb:{"&:focus, &:hover":{boxShadow:"none"},"&$active":{boxShadow:"none"}},track:{height:4},rail:{height:4}}}))(g.Ay),A=(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),w=t(4134),y=t(59529),_=t(49780),S=t(69478),I=t(5791),E=t(81114),k=t(96907),C=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),O=(0,o.useState)(0),R=(0,i.A)(O,2),L=R[0],P=R[1],F=(0,o.useState)(!1),W=(0,i.A)(F,2),B=W[0],M=W[1],U=(0,o.useState)(0),V=(0,i.A)(U,2),z=V[0],H=V[1],q=(0,o.useState)(.3),G=(0,i.A)(q,2),K=G[0],Y=G[1],X=(0,o.useState)(0),J=(0,i.A)(X,2),Z=J[0],$=J[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)},be=function(){oe&&ae(!1)},Ae=function(){var e;if(de.current){var t="";ne?(Y(.3),te(!1),de.current.volume=.3,t=E.qW.AUDIO_UNMUTED):(Y(0),te(!0),de.current.volume=0,t=E.qW.AUDIO_MUTED);var r={content_id:v.uuid,at_audio_time:(0,w.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),audio_src:n,page_number:T};(0,I.xF)(t,r),ae(!1)}},we=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,w.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),page_number:T};(0,I.xF)(E.qW.CLOSE_AUDIO,t)}};return(0,o.useEffect)((function(){m&&(le.current=!1)}),[m]),(0,j.jsx)(a.A,{open:m,onMouseLeave:be,classes:{anchorOriginBottomRight:D.snackbar},anchorOrigin:{vertical:"bottom",horizontal:"right"},TransitionProps:{onExited:function(){we(),be(),N(null),t()}},children:(0,j.jsxs)("div",{children:[(0,j.jsx)(c.A,{xsDown:!0,children:(0,j.jsx)(s.x,{onClickAway:be,children:(0,j.jsx)(u.A,{className:D.collapeEntered,in:oe,unmountOnExit:!0,children:(0,j.jsx)(l.A,{className:D.volumePaper,onMouseLeave:be,children:(0,j.jsx)(A,{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=Z,a={content_id:v.uuid,at_audio_time:(0,w.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,I.xF)(E.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,w.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime)};(0,I.xF)(E.qW.PLAY_AUDIO,t)}},ref:de,className:D.audio,id:h,onLoadedMetadata:function(){de.current&&(H(de.current.duration),de.current.volume=K)},onTimeUpdate:function(){var e;if(de.current){Math.round(de.current.currentTime)%(E.vh-1)==0&&(0,I.Z8)();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,w.DS)(null===(i=de.current)||void 0===i?void 0:i.currentTime)};(0,C.DW)(null!=n?n:"",null===(o=de.current)||void 0===o?void 0:o.currentTime,(0,r.A)((0,r.A)({},(0,I.wn)()),a)),se.current=t}ve.current.playedSeconds!==he.playedSeconds&&P(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,I.xF)(E.qW.FINISH_AUDIO,t)},children:(0,j.jsx)("source",{src:n})}),(0,j.jsx)("div",{className:D.contentWrapper,children:B?(0,j.jsx)(_.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,w.DS)(null===(e=de.current)||void 0===e?void 0:e.currentTime),page_number:T};(0,I.xF)(E.qW.PAUSE_AUDIO,t)}}}):(0,j.jsx)(y.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,w.DS)(he.playedSeconds)}),(0,j.jsx)("div",{className:D.sliderWrapper,children:(0,j.jsx)(b,{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,w.DS)(L),r=(0,w.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,I.xF)(E.qW.SEEK_AUDIO,i)}},onMouseDown:function(){var e;ue.current=!0,P(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,w.DS)(z)}),(0,j.jsx)("div",{className:D.volumeWrapper,children:ne?(0,j.jsx)(p.A,{className:D.volumeButtons,onClick:Ae,onMouseEnter:xe}):K<.3?(0,j.jsx)(f.A,{className:D.volumeButtons,onClick:Ae,onMouseEnter:xe}):(0,j.jsx)(d.A,{className:D.volumeButtons,onClick:Ae,onMouseEnter:xe})}),(0,j.jsx)("div",{className:D.contentWrapper,children:(0,j.jsx)(S.A,{onClick:t,className:D.closeButton})})]})}),(0,j.jsx)(k.A,{handler:we})]})},h)}));T.displayName="AudioPlayer";var N=T},83940:function(e,n,t){t.d(n,{Ed:function(){return u},PS:function(){return s},nX:function(){return d}});var r=t(27772),i=t(58324),o=t(9551),a=t(62914),l=t(5791),c=t(81114);function s(e){var n=(0,i._y)(e);"tel:"!==n&&((0,l.xF)(c.qW.PHONE_CALL,{number:e}),window.location.href=n)}function u(e){var n;null!=e&&null!==(n=e.email)&&void 0!==n&&n.trim()&&((0,l.xF)(c.qW.SEND_EMAIL,{email:e.email}),window.location.href=(0,i.To)(e.email,e.subject,e.body))}function d(e){return function(n,t,i){var l=i?(0,a.K)(i):o.A.get(Number(n));l&&e((0,r.j)({open:!0,config:l,defaultValues:{show:!1,values:{}}}))}}},84230:function(e,n,t){t.r(n);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(46694),f=t(5791),m=t(65983);n.default=function(e){var n,t,h=e.url,g=(0,a.useState)(""),v=(0,o.A)(g,2),x=v[0],b=v[1],A=(0,a.useState)(!0),w=(0,o.A)(A,2),y=w[0],_=w[1],S=(0,a.useState)(null),I=(0,o.A)(S,2),E=I[0],k=I[1],C=h.includes("/f/");if((0,a.useEffect)((function(){var e=function(){var e=(0,i.A)((0,r.A)().m((function e(){var n;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,_(!0),k(null),e.n=1,l.A.get("https://noembed.com/embed",{params:{url:h}});case 1:n=e.v,b(n.data.html),_(!1),e.n=3;break;case 2:e.p=2,e.v,k("Error loading content"),_(!1);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();h.includes("/f/")?_(!1):e()}),[h]),y)return(0,m.jsx)(s.A,{});if(E)return(0,m.jsx)(u.A,{variant:"h6",color:"error",children:E});var j=C&&function(e){try{var n=new URL(e).pathname.split("/");if(n.length<2)throw new Error("Invalid URL format");var t=n[n.length-1];if(!t)throw new Error("Name segment is empty");return t}catch(e){return null}}(h);return(0,m.jsx)(d.A,{style:{height:"100%"},children:C?j?(0,m.jsx)(p.A,{url:h,account_id:(null===(n=(0,f.wn)())||void 0===n?void 0:n.account_id)||"",name:j,context:{page_number:(null===(t=(0,f.wn)())||void 0===t?void 0:t.page_number)||1}}):(0,m.jsx)(m.Fragment,{}):(0,m.jsx)(c.A,{markup:x})})}},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],b=v[1],A=e.fileTitle,w=e.withPageNumber,y=e.pageNumber,_=e.getShareObj,S=e.additionalActions,I=n.socialShareText,E=n.socialContainer,k=n.IEMarginFix,C="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,_();case 1:t=e.v,r={share_link:t,file_title:A,type:"".concat(n," share"),with_page_number:w,page_number:y},(0,f.xF)(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:A,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:A},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(){_().then((function(e){e&&b(e)}))}),[_]);var N=(0,l.useState)(!1),D=(0,a.A)(N,2),O=D[0],R=D[1],L=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:R(!0),setTimeout((function(){return R(!1)}),1200);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),P=C?(0,d.A)(k,I):I,F=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?L():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:P,defaultValue:i,children:o&&O?"Copied!":i})]},i)}));return(0,g.jsxs)("div",{className:n.grid,children:[i,null==S?void 0:S.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:P,children:e.title})]},e.title)}))]})};return(0,g.jsx)("div",{className:E,children:(0,g.jsx)(F,{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 b},dC:function(){return A},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",b="Go to",A="Download"},88284:function(e,n,t){var r=t(5544),i=t(49255),o=t(97094),a=t.n(o),l=t(81076),c=t(60723),s=t(20535),u=t(65983),d=(0,s.A)((function(){return{carouselContainer:{width:"100%"},carouselItem:{display:"flex",alignItems:"center",justifyContent:"center"},cardWrapper:{width:"100%",height:"100%"},gridContainer:{display:"flex",justifyContent:"center"}}}));n.A=function(e){var n=e.cards,t=d(),o=(0,i.useRef)(null),s=(0,i.useState)(3),p=(0,r.A)(s,2),f=p[0],m=p[1];(0,i.useEffect)((function(){var e=new ResizeObserver((function(){if(o.current){var e=o.current.getBoundingClientRect().width;m(e<240?1:e<640?2:3)}}));return o.current&&e.observe(o.current),function(){o.current&&e.unobserve(o.current)}}),[o]);var h=function(e,n){for(var t=[],r=0;r.6?"#111111":"#ffffff"}var _=13;function S(e){var n=(null==e?void 0:e.background_color)||"transparent";return{background:n,color:(null==e?void 0:e.font_color)||(null!=e&&e.background_color?y(n):b),fontSize:(null==e?void 0:e.font_size)||_}}var I=function(e){return(e||"").replace(/^https?:\/\//i,"")};function E(e){if(("image"===e.kind||"video"===e.kind||"audio"===e.kind)&&e.src&&e.src.startsWith("/"))try{return(0,o.A)((0,o.A)({},e),{},{src:window.location.origin+e.src})}catch(n){return e}return e}function k(e){switch(e.kind){case"url":return I(e.uri)||"Link";case"embed":return I(e.uri)||"Embed";case"image":return"Image";case"audio":return"Audio";case"video":return"Video";case"html":return"HTML";case"page":return"Page ".concat(e.page);case"named":return"next"===e.name?"Next page":"Previous page";default:return e.kind}}function C(e,n){switch(e.kind){case"embed":return e.uri?(0,x.jsx)("iframe",{title:"embed",src:e.uri,scrolling:e.canScroll?"yes":"no",style:{width:"100%",height:"100%",border:0}}):null;case"image":return e.src?(0,x.jsx)("img",{src:e.src,alt:"",style:{width:"100%",height:"100%",objectFit:"contain"}}):null;case"video":return e.src?(0,x.jsx)(c.default,{url:e.src,contentUUID:null==n?void 0:n.contentUuid,pageNumber:null==n?void 0:n.pageNumber,autoplay:!!e.autoplay,poster:e.poster,isDialog:!1}):null;case"html":return e.html?(0,x.jsx)("iframe",{title:"html",srcDoc:e.html,sandbox:"allow-scripts allow-same-origin allow-popups",style:{width:"100%",height:"100%",border:0}}):null;default:return null}}var j=12,T=[{key:"nw",l:!0,t:!0,cursor:"nwse-resize",cx:0,cy:0},{key:"n",t:!0,cursor:"ns-resize",cx:.5,cy:0},{key:"ne",r:!0,t:!0,cursor:"nesw-resize",cx:1,cy:0},{key:"e",r:!0,cursor:"ew-resize",cx:1,cy:.5},{key:"se",r:!0,b:!0,cursor:"nwse-resize",cx:1,cy:1},{key:"s",b:!0,cursor:"ns-resize",cx:.5,cy:1},{key:"sw",l:!0,b:!0,cursor:"nesw-resize",cx:0,cy:1},{key:"w",l:!0,cursor:"ew-resize",cx:0,cy:.5}];function N(){return(0,x.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,x.jsx)("path",{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H8l5 5 5-5h-3v-3z"})})}function D(e,n,t){try{window.parent.postMessage({channel:u.$d,version:u.S5,type:"annotation-moved",id:e,page_number:n,bounds:t},"*")}catch(e){}}function O(e){try{window.parent.postMessage({channel:u.$d,version:u.S5,type:"annotation-active",id:e},"*")}catch(e){}}function R(e){for(var n=e.parentElement;n;){var t=window.getComputedStyle(n);if(/(auto|scroll|overlay)/.test(t.overflowY)&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return document.scrollingElement||document.documentElement}var L=64,P=22;function F(e){var n,t=e.annotation,c=e.local,s=e.pageEl,d=e.pageW,p=e.pageH,f=e.highlighted,h=e.editMode,g=e.contentUuid,v=e.onHotspotAction,A=t.action,y=t.mode,_=t.style,I="inline"===y&&w.has(A.kind),E=I?C(A,{contentUuid:g,pageNumber:t.page_number}):null,F=!E,W=F&&(null==_||null===(n=_.text)||void 0===n?void 0:n.trim())||"",B=F&&!!W,M=S(_),U=M.background,V=M.color,z=M.fontSize,H=(0,a.useRef)(null);(0,a.useEffect)((function(){f&&H.current&&H.current.scrollIntoView({behavior:"smooth",block:"center"})}),[f]);var q=(0,a.useState)(null),G=(0,r.A)(q,2),K=G[0],Y=G[1],X=(0,a.useState)(!1),J=(0,r.A)(X,2),Z=J[0],$=J[1],Q=(0,a.useState)(!1),ee=(0,r.A)(Q,2),ne=ee[0],te=ee[1],re=(0,a.useState)(!1),ie=(0,r.A)(re,2),oe=ie[0],ae=ie[1],le=(0,a.useState)(null),ce=(0,r.A)(le,2),se=ce[0],ue=ce[1],de=null!==se,pe=(0,a.useRef)(!1),fe=(0,a.useRef)(null),me=(0,a.useRef)(null),he=(0,a.useRef)(null),ge=(0,a.useRef)(0),ve=(0,a.useRef)(0),xe=(0,a.useRef)(null),be=null!=K?K:c;(0,a.useEffect)((function(){pe.current||Y(null)}),[c.left,c.top,c.width,c.height]),(0,a.useEffect)((function(){return function(){null!=xe.current&&cancelAnimationFrame(xe.current)}}),[]);var Ae=function(e){he.current=e,ue(e)},we=function(e){var n=fe.current;if(n){var t=(e.clientX-n.startX)/n.scale,r=(e.clientY-n.startY)/n.scale;!n.moved&&(Math.abs(e.clientX-n.startX)>3||Math.abs(e.clientY-n.startY)>3)&&(n.moved=!0);var i=n.handle,o=n.start.left,a=n.start.top,l=n.start.left+n.start.width,c=n.start.top+n.start.height,s=i.l?Math.min(Math.max(0,o+t),l-j):o,u=i.r?Math.max(Math.min(d,l+t),o+j):l,f=i.t?Math.min(Math.max(0,a+r),c-j):a,m=i.b?Math.max(Math.min(p,c+r),a+j):c;Y({left:s,top:f,width:u-s,height:m-f})}},ye=function(e){var n=fe.current;if(n){fe.current=null,pe.current=!1,te(!1),O(null);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}if(n.moved){var r=null!=K?K:c;D(t.id,t.page_number,[d>0?r.left/d:0,p>0?r.top/p:0,d>0?r.width/d:0,p>0?r.height/p:0])}}},_e=function(){xe.current=null;var e=me.current;if(e){var n=e.scrollParent,t=n===document.scrollingElement||n===document.documentElement||n===document.body,r=t?0:n.getBoundingClientRect().top,i=t?window.innerHeight:n.getBoundingClientRect().bottom,o=ve.current,a=0;oi-L&&(a=Math.ceil((o-(i-L))/L*P)),0!==a&&(t?window.scrollBy(0,a):n.scrollTop+=a,xe.current=requestAnimationFrame(_e))}},Se=function(e,n){var t=me.current;if(t){if(me.current=null,pe.current=!1,te(!1),ae(!1),null!=xe.current&&(cancelAnimationFrame(xe.current),xe.current=null),!t.moved)return function(e){try{window.parent.postMessage({channel:u.$d,version:u.S5,type:"annotation-selected",id:e},"*")}catch(e){}}(t.id),void Ae(null);if(O(null),t.pageW>0&&t.pageH>0){var r=function(e,n){var t,r=document.elementsFromPoint(e,n),o=(0,i.A)(r);try{for(o.s();!(t=o.n()).done;)for(var a=t.value;a&&a!==document.body;){if(a.id&&/^p\d+$/.test(a.id))return a;a=a.parentElement}}catch(e){o.e(e)}finally{o.f()}return null}(e,n);if(r){var o=r.getBoundingClientRect();if(o.width>0&&o.height>0){var a=parseInt(r.id.replace(/^p/,""),10),l=e-t.grabDX,c=n-t.grabDY,s=Math.max(0,Math.min(1-t.fWidth,(l-o.left)/o.width)),d=Math.max(0,Math.min(1-t.fHeight,(c-o.top)/o.height));a===t.fromPage&&Y({left:s*t.pageW,top:d*t.pageH,width:t.fWidth*t.pageW,height:t.fHeight*t.pageH}),D(t.id,a,[s,d,t.fWidth,t.fHeight])}}}Ae(null)}},Ie=!!h&&(Z||ne),Ee=Ie&&!de;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{ref:H,onClick:h?void 0:function(){I||h||null==v||v(A,t.page_number)},"data-celero-inspector-ignore":"",onMouseEnter:function(){return $(!0)},onMouseLeave:function(){return $(!1)},style:{position:"absolute",left:"".concat(be.left,"px"),top:"".concat(be.top,"px"),width:"".concat(be.width,"px"),height:"".concat(be.height,"px"),zIndex:1099,cursor:I?"default":"pointer",opacity:de?.3:1,outline:f||Ie?"2px solid ".concat(b):B?"none":h?"1px dashed ".concat((0,m.X4)(b,.55)):"none",boxShadow:f?"0 0 0 4px ".concat((0,m.X4)(b,.25)):Ie?"0 2px 10px ".concat((0,m.X4)(b,.25)):B&&Z?"0 2px 8px rgba(0,0,0,0.25)":"none",borderRadius:4,overflow:Ee?"visible":"hidden",background:E?(null==_?void 0:_.background_color)||"transparent":B?U:h&&Z?(0,m.X4)(b,.06):"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:K?"none":"box-shadow .15s, outline-color .15s"},children:[E?(0,x.jsx)("div",{style:{width:"100%",height:"100%",pointerEvents:h?"none":"auto"},children:E}):B?(0,x.jsx)("span",{style:{fontSize:z,fontWeight:600,lineHeight:1.2,color:V,padding:"4px 10px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:W}):h?(0,x.jsx)("span",{style:{fontSize:12,color:b,padding:4,textAlign:"center"},children:k(A)}):null,h&&(0,x.jsx)("div",{onPointerDown:function(e){if(h&&0===e.button&&H.current){e.preventDefault(),e.stopPropagation();var n=H.current.getBoundingClientRect();me.current={startX:e.clientX,startY:e.clientY,grabDX:e.clientX-n.left,grabDY:e.clientY-n.top,scrollParent:R(s),moved:!1,startW:n.width,startH:n.height,pageW:d,pageH:p,fWidth:d>0?be.width/d:0,fHeight:p>0?be.height/p:0,id:t.id,fromPage:t.page_number},pe.current=!0,te(!0),ae(!0),ge.current=e.clientX,ve.current=e.clientY}},onPointerUp:function(e){return Se(e.clientX,e.clientY)},onClick:function(e){return e.stopPropagation()},style:{position:"absolute",inset:0,zIndex:2,cursor:de?"grabbing":"grab",touchAction:"none"}}),Ee&&(0,x.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:4,pointerEvents:"none",width:28,height:28,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:(0,m.X4)(b,.9),color:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:(0,x.jsx)(N,{})}),Ee&&T.map((function(e){return(0,x.jsx)("div",{onPointerDown:function(n){return function(e,n){if(h&&0===e.button){e.preventDefault(),e.stopPropagation();var r=s.getBoundingClientRect(),i=d>0&&r.width>0?r.width/d:1;fe.current={handle:n,startX:e.clientX,startY:e.clientY,start:(0,o.A)({},be),scale:i||1,moved:!1},pe.current=!0,te(!0),O(t.id);try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}}(n,e)},onPointerMove:we,onPointerUp:ye,onPointerCancel:ye,onClick:function(e){return e.stopPropagation()},style:{position:"absolute",left:"".concat(100*e.cx,"%"),top:"".concat(100*e.cy,"%"),width:10,height:10,transform:"translate(-50%, -50%)",zIndex:3,background:"#fff",border:"1.5px solid ".concat(b),borderRadius:2,cursor:e.cursor,touchAction:"none",boxShadow:"0 1px 2px rgba(0,0,0,0.2)"}},e.key)}))]}),oe&&(0,l.createPortal)((0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{"data-celero-inspector-ignore":"",onPointerMove:function(e){var n=me.current;if(n){if(ge.current=e.clientX,ve.current=e.clientY,!n.moved){if(Math.abs(e.clientX-n.startX)<=3&&Math.abs(e.clientY-n.startY)<=3)return;n.moved=!0,O(n.id)}Ae({left:e.clientX-n.grabDX,top:e.clientY-n.grabDY,width:n.startW,height:n.startH}),null==xe.current&&(xe.current=requestAnimationFrame(_e))}},onPointerUp:function(e){return Se(e.clientX,e.clientY)},onPointerCancel:function(){return Se(ge.current,ve.current)},style:{position:"fixed",inset:0,zIndex:2147482e3,cursor:"grabbing",touchAction:"none",background:"transparent"}}),se&&(0,x.jsx)("div",{style:{position:"fixed",left:"".concat(se.left,"px"),top:"".concat(se.top,"px"),width:"".concat(se.width,"px"),height:"".concat(se.height,"px"),zIndex:2147483e3,pointerEvents:"none",border:"2px solid ".concat(b),borderRadius:4,background:(0,m.X4)(b,.12),boxShadow:"0 8px 28px rgba(0,0,0,0.28)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,x.jsx)("div",{style:{width:28,height:28,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:(0,m.X4)(b,.95),color:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:(0,x.jsx)(N,{})})})]}),document.body)]})}var W={image:"image",video:"video",embed:"website",html:"HTML",audio:"audio clip",url:"link",page:"page jump"};function B(e){var n,t,r=e.draft,i=e.local,o=e.contentUuid,a=r.action,l=r.mode,c=r.style,s="inline"===l&&w.has(a.kind),u=s?C(a,{contentUuid:o,pageNumber:r.page_number}):null,d="hotspot"===l&&(null==c||null===(n=c.text)||void 0===n?void 0:n.trim())||"",p=!!d,f=S(c),h=f.background,g=f.color,v=f.fontSize,A=s?"Your ".concat(null!==(t=W[a.kind])&&void 0!==t?t:"element"," will appear here"):"Click area — ".concat(k(a)),y=u?(null==c?void 0:c.background_color)||"transparent":p?h:(0,m.X4)(b,.08);return(0,x.jsxs)("div",{"data-celero-inspector-ignore":"",style:{position:"absolute",left:"".concat(i.left,"px"),top:"".concat(i.top,"px"),width:"".concat(i.width,"px"),height:"".concat(i.height,"px"),zIndex:1098,pointerEvents:"none",border:"2px dashed ".concat(b),borderRadius:4,background:y,boxShadow:"0 0 0 4px ".concat((0,m.X4)(b,.14)),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[null!=u?u:p?(0,x.jsx)("span",{style:{fontSize:v,fontWeight:600,lineHeight:1.2,color:g,padding:"4px 10px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:d}):(0,x.jsx)("span",{style:{fontSize:12,fontWeight:600,color:b,padding:6,textAlign:"center"},children:A}),(0,x.jsx)("span",{style:{position:"absolute",top:4,left:4,fontSize:10,fontWeight:700,letterSpacing:.4,textTransform:"uppercase",color:"#fff",background:(0,m.X4)(b,.95),padding:"1px 6px",borderRadius:999},children:"Preview"})]})}function M(e){var n=e.content,t=(0,s.A)(),i=t.loadedPages,c=(t.currentZoomSettings,(0,g.y)()),m=(0,f.Y)({content:n}),h=m.openUrl,b=m.openContent,w=m.dialog,y=(0,a.useCallback)((function(e,n){A.has(e.kind)?b(e,n):(0,d.w)(e,{source:"annotation",openUrl:h,goToPage:function(e){return(0,v.N)(e)},next:function(){var e,n;return null===(e=window.IDRViewer)||void 0===e||null===(n=e.next)||void 0===n?void 0:n.call(e)},prev:function(){var e,n;return null===(e=window.IDRViewer)||void 0===e||null===(n=e.prev)||void 0===n?void 0:n.call(e)},print:function(){return window.print()},call:p.PS,sendEmail:p.Ed})}),[b,h]),_=(0,a.useState)(null),S=(0,r.A)(_,2),I=S[0],k=S[1],C=(0,a.useState)(null),j=(0,r.A)(C,2),T=j[0],N=j[1],D=(0,a.useState)(null),O=(0,r.A)(D,2),R=O[0],L=O[1],P=(0,a.useState)(0),W=(0,r.A)(P,2)[1],M=(0,a.useRef)(null),U=(0,a.useRef)(null);(0,a.useEffect)((function(){M.current=I}),[I]),(0,a.useEffect)((function(){var e=function(){return W((function(e){return e+1}))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,a.useEffect)((function(){var e=function(e){if((0,u.ZV)(e.data)){var n=e.data;if(n.channel===u.$d&&n.version===u.S5)if("set-annotations"===n.type)k(n.annotations);else if("set-annotation-draft"===n.type){var t,r=null!==(t=n.draft)&&void 0!==t?t:null;N(r?(0,o.A)((0,o.A)({},r),{},{action:E(r.action)}):null)}else if("highlight-annotation"===n.type&&(U.current&&(window.clearTimeout(U.current),U.current=null),L(n.id),null!=n.id)){var i,a=null===(i=M.current)||void 0===i?void 0:i.find((function(e){return e.id===n.id}));if(a)try{(0,v.N)(a.page_number)}catch(e){}n.persist||(U.current=window.setTimeout((function(){return L(null)}),2500))}}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[]);var V=(0,a.useMemo)((function(){var e;return(null!==(e=null!=I?I:null==n?void 0:n.microsite_annotations)&&void 0!==e?e:[]).map((function(e){return(0,o.A)((0,o.A)({},e),{},{action:E(e.action)})}))}),[I,n]);return(0,x.jsxs)(x.Fragment,{children:[V.map((function(e){if(!i.includes(e.page_number))return null;var t=document.getElementById("p".concat(e.page_number));if(!t)return null;var o=t.offsetWidth,a=t.offsetHeight;if(o<=0||a<=0)return null;var s=(e.bounds||[]).map(Number),u=(0,r.A)(s,4),d={left:u[0]*o,top:u[1]*a,width:u[2]*o,height:u[3]*a};return(0,l.createPortal)((0,x.jsx)(F,{annotation:e,local:d,pageEl:t,pageW:o,pageH:a,highlighted:e.id===R,editMode:c,contentUuid:null==n?void 0:n.uuid,onHotspotAction:y}),t,String(e.id))})),T&&i.includes(T.page_number)&&function(){var e=document.getElementById("p".concat(T.page_number));if(!e)return null;var t=e.offsetWidth,i=e.offsetHeight;if(t<=0||i<=0)return null;var o=(T.bounds||[]).map(Number),a=(0,r.A)(o,4),c={left:a[0]*t,top:a[1]*i,width:a[2]*t,height:a[3]*i};return(0,l.createPortal)((0,x.jsx)(B,{draft:T,local:c,contentUuid:null==n?void 0:n.uuid}),e,"microsite-annotation-draft")}(),w]})}},89827:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var r=t(5544),i=t(49255),o=t(68995),a=t(98242),l=t(65983);var c="#6C5CE7";function s(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{children:"@keyframes celeroCtaPulse {\n 0% { box-shadow: 0 0 0 0 rgba(108,92,231,0.35); }\n 70% { box-shadow: 0 0 0 10px rgba(108,92,231,0); }\n 100% { box-shadow: 0 0 0 0 rgba(108,92,231,0); }\n }"}),(0,l.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:-6,border:"2px solid ".concat(c),borderRadius:10,pointerEvents:"none",animation:"celeroCtaPulse 1.8s ease-out infinite",zIndex:1}}),(0,l.jsxs)("div",{"aria-hidden":!0,style:{position:"absolute",top:-34,left:"50%",transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:6,padding:"4px 10px",background:c,color:"#fff",fontSize:12,fontWeight:600,lineHeight:1,borderRadius:999,whiteSpace:"nowrap",boxShadow:"0 4px 12px rgba(108,92,231,0.4)",pointerEvents:"none",zIndex:2},children:[(0,l.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M5 9l-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3M2 12h20M12 2v20"})}),"Drag to position"]})]})}function u(e){var n,t,c,u,d,p,f=e.content,m=e.containerRef,h=e.barHeight,g=e.bottomReserve,v=e.feed,x=e.isMobile,b=e.forceShow,A=e.placing,w=(0,i.useRef)(null),y=(0,i.useState)(0),_=(0,r.A)(y,2)[1],S=(0,i.useState)(null),I=(0,r.A)(S,2),E=I[0],k=I[1];(0,i.useEffect)((function(){var e=function(e){var n=e.detail;n&&"number"==typeof n.x&&"number"==typeof n.y&&k({x:n.x,y:n.y})};return document.addEventListener("celero:cta-live-position",e),function(){return document.removeEventListener("celero:cta-live-position",e)}}),[]),(0,i.useEffect)((function(){var e,n,t=function(){return _((function(e){return e+1}))};window.addEventListener("resize",t),t();var r=null===(e=w.current)||void 0===e?void 0:e.querySelector('[assistant-c-name="cta"]');return r&&"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t)).observe(r),function(){var e;window.removeEventListener("resize",t),null===(e=n)||void 0===e||e.disconnect()}}),[]);var C=null==f?void 0:f.content_action;if(x||!C||"CUSTOM"!==C.button_position&&!b)return null;var j=null!==(n=null!=E?E:null==C?void 0:C.custom_position)&&void 0!==n?n:function(e){switch(e){case"STICKY_BOTTOM_LEFT":return{x:0,y:1};case"STICKY_CENTER_LEFT":return{x:0,y:.5};case"BAR":return{x:1,y:0};default:return{x:.5,y:.5}}}(null==C?void 0:C.button_position),T=(0,a.K)(m.current,{barHeight:h,bottomReserve:g,sideMargin:16,feed:v}),N=null===(t=w.current)||void 0===t?void 0:t.querySelector('[assistant-c-name="cta"]'),D=(null==N?void 0:N.offsetWidth)||140,O=(null==N?void 0:N.offsetHeight)||44,R=T?(0,a.W)(T,j,{w:D,h:O}):{left:0,top:0};return(0,l.jsxs)("div",{id:"celero-custom-cta-wrapper",ref:w,"data-safe-left":null!==(c=null==T?void 0:T.left)&&void 0!==c?c:0,"data-safe-top":null!==(u=null==T?void 0:T.top)&&void 0!==u?u:0,"data-safe-width":null!==(d=null==T?void 0:T.width)&&void 0!==d?d:0,"data-safe-height":null!==(p=null==T?void 0:T.height)&&void 0!==p?p:0,style:{position:"fixed",left:R.left,top:R.top,zIndex:1099,cursor:A?"grab":void 0},children:[A&&(0,l.jsx)(s,{}),(0,l.jsx)(o.default,{content:f,withShadow:!0})]})}},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),b=(0,i.useRef)(!0),A=(0,i.useRef)(u.xF),w=(0,s.ZI)(),y=!(w!==f.V.Mobile&&w!==f.V.Tablet),_=(0,i.useRef)(u.wn).current(),S=!1,I=!1,E=(0,i.useRef)(p.Y.EXTERNAL),k=(0,i.useRef)(E.current),C=(0,i.useRef)(!1),j=n.isContentFinishLoading,T=!y&&!!j,N=y&&!!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.xF)(d.qW.SCREENSHOT_TOOK)},O=(0,i.useCallback)((function(){(0,u.xF)(d.qW.PRINT)}),[]),R=(0,i.useCallback)((0,a.A)(D,40),[D]);(0,i.useEffect)((function(){return window.addEventListener("keydown",R),window.addEventListener("keyup",R),function(){window.removeEventListener("keydown",R),window.removeEventListener("keyup",R)}}),[R]),(0,i.useEffect)((function(){return window.addEventListener("afterprint",O),function(){window.removeEventListener("afterprint",O)}}),[O]),(0,i.useEffect)((function(){(0,u.Rf)(),window.addEventListener("online",u.Rf);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.xF)(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.xF)(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),_);h.A.sessionStorage.setItem("celero_obj",JSON.stringify(o))}return function(){window.removeEventListener("online",u.Rf)}}),[]);(0,c.h)({timeout:1e3*d.vh,onIdle:function(){var e=(0,u.kU)();if(C.current&&!(e&&(0,s.ez)(new Date(e),new Date)<1e3*d.vh)){var n={type:d.qW.USER_IDLE};(0,u.xF)(d.qW.WINDOW_BLUR,n)}}}),(0,c.h)({timeout:d.Md,onAction:function(){if(!(0,u.cj)()&&(0,u.Yw)()&&(0,u.qO)(),k.current!==p.Y.EXTERNAL||y&&!0===C.current)if(b.current){var e=(0,s.ez)(x.current,new Date);if(e>1e3*d.vh&&ed.Md)){var r={duration:n};A.current(d.qW.WINDOW_FOCUSED,r)}}}),100),onBlur:(0,a.A)((function(){y&&(E.current=p.Y.EXTERNAL,C.current=!1,k.current=p.Y.EXTERNAL,I||(I=!0,t=performance.now(),v=!1,(0,u.xF)(d.qW.WINDOW_BLUR)))}),100)},{domTarget:window}),F=(0,l.NH)({onMouseOver:function(){C.current=!0},onMouseOut:function(){C.current=!1}},{domTarget:window});return(0,g.jsxs)(g.Fragment,{children:[T&&(0,g.jsx)("div",(0,r.A)({},L())),(0,g.jsx)("div",(0,r.A)({},F())),N&&(0,g.jsx)("div",(0,r.A)({},P()))]})};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 b}});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(63058)),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,b=function(e){var n,t=e.content,b=e.setControlsBarOpened,A=(0,l.A)(),w=A.currentPageNumber,y=A.currentZoomSettings,_=(0,f.A)().isMobile,S=(null==t||null===(n=t.config)||void 0===n?void 0:n.pagecount)||0,I=(0,o.useState)("0%"),E=(0,i.A)(I,2),k=E[0],C=E[1],j=(0,o.useState)(0),T=(0,i.A)(j,2),N=T[0],D=T[1],O=(0,o.useRef)(""),R=(0,o.useState)(Date.now()),L=(0,i.A)(R,2),P=L[0],F=L[1],W=(0,o.useState)(!1),B=(0,i.A)(W,2),M=B[0],U=B[1],V=!1,z=a({is_powered_by_celero:V}),H=z.barWrapper,q=z.iconButton,G=z.bottomWrapper,K=z.progress,Y=z.progressBar,X=z.railStyle,J=z.rightSideWrapper,Z=z.sliderRoot,$=z.thumbStyle,Q=z.trackStyle,ee=z.zoomSlider,ne=z.zoomWrapper,te=(z.celeroLogoStyle,z.barStyle),re=(0,m.fD)((function(e){e.distance>0&&F(Date.now())}),{domTarget:window});(0,o.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,h.AS)()),n={content_id:t.uuid,link_url:e,page_number:w};(0,h.xF)(g.qW.OPEN_LINK_IN_NEW_TAB,n),setTimeout((function(){window.open(e,"_blank")}))}),[t,w]);return(0,o.useEffect)((function(){var e=function(){F(Date.now())};return document.addEventListener("touchstart",e),function(){document.removeEventListener("touchstart",e)}}),[]),(0,o.useEffect)((function(){U(!0),b(!0);var e=setTimeout((function(){U(!1),b(!1)}),3e3);return function(){clearTimeout(e)}}),[P,w]),(0,o.useEffect)((function(){"specific"!==(null==y?void 0:y.zoomType)&&(O.current=null==y?void 0:y.zoomType)}),[y]),(0,o.useEffect)((function(){C("".concat(Math.floor(w/S*100),"%"))}),[w]),(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:H,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:k}})}),(0,v.jsxs)("div",{className:G,children:[V,(0,v.jsx)("div",{className:J,children:!_&&(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(y.zoomValue-x):window.IDRViewer.setZoom(O.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(O.current);else if(tN){var i=y.zoomValue+(t+N)*x;window.IDRViewer.setZoom(i)}D(t)}},classes:{root:Z,thumb:$,rail:X,track:Q}}),(0,v.jsx)(p.A,{disableRipple:!0,className:q,onClick:function(){3!=N&&(D(N+1),window.IDRViewer.setZoom(y.zoomValue+x))},children:(0,v.jsx)(s.h,{width:24,height:24})})]})})]})]})})}))}},92808:function(e,n,t){t.d(n,{$z:function(){return g},I5:function(){return p},Xp:function(){return c},et:function(){return d},gz:function(){return l},jy:function(){return x},qz:function(){return v},uS:function(){return f}});var r=t(89379),i=t(49255),o=t(81114),a=t(5791),l={SUBMIT:"submit",REJECT:"reject",IDENTIFY:"identify",OTP:"otp",ADDITIONAL_FIELDS:"additional_fields"},c={IDENTITY:"identity",OTP:"otp",ADDITIONAL_FIELDS:"additional_fields",SINGLE:"single"},s=function(e){var n,t,r;return{id:null==e?void 0:e.id,type:null==e?void 0:e.type,display_name:null==e?void 0:e.display_name,fields:null==e||null===(n=e.display)||void 0===n||null===(t=n.fields)||void 0===t?void 0:t.map((function(e){return e.name})),hidden_fields:null==e||null===(r=e.display)||void 0===r?void 0:r.hiddenFields}},u=function(e){var n,t=e.formConfig,r=e.sourceOfRender;return{integration:null==t?void 0:t.integration_name,version_id:null===(n=(0,a.wn)())||void 0===n?void 0:n.version_id,form_configuration:s(t),referrer_type:r,referrer_url:window.location.href}},d=function(e){(0,a.xF)(o.qW.OPEN_FORM,{event_attributes:u(e)})},p=function(e,n){var t=n.actionType,i=n.webhookUrl,l=n.webhookPayload,c=n.webhookResponse,s=n.success,d=void 0===s||s,p=n.errorMessage,f=n.step,m=n.status,h=n.keepalive,g=void 0!==h&&h;return(0,a.xF)(o.qW.FORM_ACTION,{event_attributes:(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},u(e)),{},{action_type:t,success:d},f?{step:f}:{}),m?{status:m}:{}),p?{error_message:String(p).slice(0,300)}:{}),i?{webhook_url:i}:{}),void 0!==l?{webhook_payload:l}:{}),void 0!==c?{webhook_response:c}:{})},!0,g)},f=function(e){return Promise.race([Promise.all(e.map((function(e){return Promise.resolve(e).catch((function(){}))}))),new Promise((function(e){return setTimeout(e,1200)}))])},m="embedded",h=function(e){var n;return{integration:e.formType,version_id:null===(n=(0,a.wn)())||void 0===n?void 0:n.version_id,form_configuration:{id:e.marketoFormId||e.formElementId,type:e.formType||m,display_name:e.formElementId},referrer_type:m,referrer_url:window.location.href,form_type:e.formType||!1,form_id:e.marketoFormId||0,is_valid:e.isValid}},g=function(e,n){(0,a.xF)(o.qW.FILL_FORM,{event_attributes:(0,r.A)((0,r.A)({},h(e)),n?{field_name:n}:{})})},v=function(e,n){var t=n.actionType,i=n.success,l=void 0===i||i;(0,a.xF)(o.qW.FORM_ACTION,{event_attributes:(0,r.A)((0,r.A)({},h(e)),{},{action_type:t,success:l})})},x=function(e,n){var t=(0,i.useRef)(null);return t.current||(t.current=new Set),function(i){var l=t.current,c=(null==i?void 0:i.target)||null,s=(null==c?void 0:c.name)||(null==c?void 0:c.id);s&&!l.has(s)&&(l.add(s),function(e,n,t){(0,a.xF)(o.qW.FILL_FORM,{event_attributes:(0,r.A)((0,r.A)({},u(e)),{},{field_name:n},t?{step:t}:{})})}(e,s,n))}}},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,b=n.backdrop,A=n.contentWrapper,w=n.header,y=n.iconButton,_=n.backIcon,S=n.actionStyle,I=n.actionButton,E={root:v},k={classes:{root:b}},C={classes:{root:x}};return(0,s.jsx)(i.A,{open:d,onClose:t,TransitionComponent:c.t,fullScreen:!0,classes:E,BackdropProps:k,PaperProps:C,disableEnforceFocus:!0,children:(0,s.jsx)("div",{className:h,children:(0,s.jsxs)("div",{className:g,children:[(0,s.jsxs)("div",{className:w,children:[(0,s.jsx)(o.A,{className:y,onClick:t,disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,size:"small",children:(0,s.jsx)(l.A,{className:_})}),f.map((function(e,n){return!e.hidden&&(0,s.jsx)(o.A,{className:I,onClick:e.action,disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,size:"small",children:(0,s.jsx)("span",{className:S,children:e.icon})},"mobilePopupAction".concat(n))}))]}),(0,s.jsx)("div",{className:A,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}})}}}}]);