"use strict";(self.webpackChunkcelero=self.webpackChunkcelero||[]).push([[300],{9:function(e,n,t){t.d(n,{T:function(){return o},k:function(){return i}});var i=["feed","ui","model","elements_number","scroll"],o={ui:"gallery",model:"default",scroll:"true"}},2790:function(e,n,t){t.d(n,{L:function(){return i}});var i="SET_COMPANY_FORMS"},3605:function(e,n,t){t.r(n),t.d(n,{default:function(){return T}});var i=t(49255),o=t(37441),r=t(91212),a=t(10467),l=t(5544),c=t(56115),s=t(81046),u=t(89379),d=(t(21399),t(21959),t(63962)),f=t(65983),p=function(e){var n=e.content,t=(0,i.useRef)(null);return(0,i.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 i=(0,d.h)(n.base_url);window.IDRViewer.config=(0,u.A)((0,u.A)({},n.config),{},{url:"".concat(i,"/"),isR2L:!1}),requestAnimationFrame((function(){window.IDRViewer.setup(),window.IDRViewer.setZoom(window.IDRViewer.ZOOM_FITPAGE)}))}return function(){window.IDRViewer&&"function"==typeof window.IDRViewer.destroy&&window.IDRViewer.destroy()}}),[n]),(0,f.jsx)("div",{ref:t,style:{width:"100%",height:"100%"}})},m=t(44415),h=t(74132),v=t(4134),g=t(77236);function x(e){var n=e.match(/\/s\/([^/]+)/);return n?n[1]:e}var w=function(e){var n=e.contentId,t=e.shortenLink,o=(0,i.useState)(null),u=(0,l.A)(o,2),d=u[0],w=u[1],A=(0,i.useState)(!0),b=(0,l.A)(A,2),y=b[0],_=b[1],S=(0,i.useState)(null),E=(0,l.A)(S,2),I=E[0],k=E[1],C=(0,i.useState)(n||null),j=(0,l.A)(C,2),T=(j[0],j[1]),N=(0,i.useState)(!1),O=(0,l.A)(N,2),R=(O[0],O[1]);return(0,i.useEffect)((function(){var e=!0;function i(){return(i=(0,a.A)((0,r.A)().m((function i(){var o,a,l,c,u,d,f,p,A;return(0,r.A)().w((function(i){for(;;)switch(i.n){case 0:if(_(!0),k(null),o=n,!t){i.n=6;break}return i.p=1,a=x(t),l=function(){},i.n=2,h.A.getShortenUrlInfo(a,l);case 2:if((c=i.v)&&c.content_uuid){i.n=3;break}throw new Error("Shorten link did not resolve to a content ID");case 3:if(u=(0,v.ZI)(),d=c.content_uuid,c.versions&&c.versions.length>1)for(f=0;f30||e.includes("-")&&e.length>12?":slug":e:e})).join("/"):"/"),Object.keys(n).length>0&&l.Wt(n)}catch(e){}var t}(N)},D=function(){return N},L="keen",F=function(){var e=(0,b.Ri)(L);if(e&&"object"==typeof e)return e;if("string"!=typeof e||!e)return{};var n=e;'"'===n.charAt(0)&&(n=n.slice(1,-1));var t=n;try{t=n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}catch(e){return{}}var i=(0,s.j)(t);return i&&"object"==typeof i?i:{}},P=function(){var e,n,t=(0,b.Ri)("celero_id");t||(t=null!==(e=F().uuid)&&void 0!==e?e:null);(t||(t=d.A.localStorage.getItem("celero_id")),t)||(t=null===(n=D())||void 0===n?void 0:n.celero_id);if(!t){var i,o=d.A.sessionStorage.getItem("celero_obj");t=null===(i=(0,s.j)(o))||void 0===i?void 0:i.celero_id}return t},W=function(e){var n,t;(0,b.TV)("celero_id",e,365),n=(0,a.A)((0,a.A)({},F()),{},{uuid:e||null}),t=encodeURIComponent(JSON.stringify(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),(0,b.TV)(L,t,365),d.A.localStorage.setItem("celero_id",e),R({celero_id:e})};function M(e,n){if(!(0,c.MX)()){var t=window.location.href;try{var i=new URL(t);i.searchParams.delete("preview_token"),t=i.toString()}catch(e){}var o=JSON.parse(JSON.stringify(n));o.chk="dp",o.event_type=e,o.timestamp=new Date,o.timestamp_sent=o.timestamp,o.referrer=document.referrer,o.user_agent=_(),o.url_full=t;var r={event:{name:e,payload:o}};fetch("https://t.celero.io/t/m.png?".concat((0,w.lK)(r)),{keepalive:!0}).catch((function(e){(0,p.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 U(){var e;if(0!==k.length){E.isOn=!0;var n=k[0],t=JSON.parse(JSON.stringify(n.payload));t.chk=t.chk||"p",t.account_id=t.account_id||N.account_id,t.celero_id=t.celero_id||N.celero_id,t.version_id=t.version_id||N.version_id,t.content_id=t.content_id||N.content_id,t.timestamp=t.timestamp||new Date,t.timestamp_sent=t.timestamp_sent||new Date;var i=B.filter((function(e){return!t[e]})),o=d.A.sessionStorage.getItem(A.$i);if(i.length>0||!["-1","0","1"].includes(o))setTimeout((function(){U()}),400);else if("0"!==o||null!==(e=u.dn[n.name])&&void 0!==e&&e.isGDPREssential){var r={event:{name:n.name,payload:t}},a="https://t.celero.io/t/m.png?".concat((0,w.lK)(r));S.get(a).then((function(e){return e.data})).catch((function(e){(0,p.FF)("Tracking pixel failed",{message:null==e?void 0:e.message,url_length:a.length,event_name:n.name,path:"delayed-events"})})).finally((function(){k.shift(),U()}))}else k.shift()}else E.isOn=!1}var V=function(){M("d3",{celero_id:P()})},z=Boolean("true"===new URLSearchParams(window.location.search).get("celero_preview_app"));null!==(i=window)&&void 0!==i&&i.celeroFeedData||window.location.href.includes("/f/")||B.push("version_id");var H=function(){var e=(0,r.A)((0,o.A)().m((function e(n,t){var i;return(0,o.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,i=e.v,(0,p.FF)("Tracking pixel failed",{message:null==i?void 0:i.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 q(e,n){return G.apply(this,arguments)}function G(){return G=(0,r.A)((0,o.A)().m((function e(n,t){var i,r,l,c,f,m,h,v,g,x,b,y=arguments;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(i=y.length>2&&void 0!==y[2]&&y[2],r=JSON.parse(JSON.stringify(t)),(r=(0,a.A)({chk:"p"},r)).timestamp_sent=new Date,r.event_type=n,r.referrer=I,z&&(r._opened_in_preview=z),n===u.qW.CONTENT_VIEW_STARTED&&(l=(0,s.j)(d.A.sessionStorage.getItem("geolocation"))||window.geolocation||C||{},r.location=l,r.user_agent=_(),l&&0!==Object.keys(l).length||(c=(0,s.j)(d.A.sessionStorage.getItem("geo_location_null_reason"))||window.geo_location_null_reason||j,r.location_null_reason=c)),f={name:n,payload:r},m=B.filter((function(e){return!r[e]})),h=d.A.sessionStorage.getItem(A.$i),!(m.length>0)&&["-1","0","1"].includes(h)){e.n=1;break}return k.push((0,a.A)({},f)),k.length>0&&(E.isOn||U()),e.a(2);case 1:if(v={event:f},g="https://t.celero.io/t/m.png?".concat((0,w.lK)(v)),!i||"function"!=typeof fetch){e.n=2;break}return e.a(2,H(g,n));case 2:return e.p=2,e.n=3,S.get(g);case 3:return x=e.v,e.a(2,x.data);case 4:e.p=4,b=e.v,(0,p.FF)("Tracking pixel failed",{message:null==b?void 0:b.message,url_length:g.length,event_name:n,path:"record-direct"});case 5:return e.a(2)}}),e,null,[[2,4]])}))),G.apply(this,arguments)}var K=function(){var e=(0,r.A)((0,o.A)().m((function e(n,t){var i,r,a,l=arguments;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=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"!==d.A.sessionStorage.getItem(A.$i)||null!==(i=u.dn[n])&&void 0!==i&&i.isGDPREssential){e.n=2;break}return e.a(2,Promise.resolve());case 2:return e.p=2,e.n=3,q(n,t,r);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)}}(),Y=function(){var e=d.A.localStorage.getItem("celero_unsent");if(e=e&&JSON.parse(e))return Promise.all([e.forEach((function(n){return K(n.eventName,(0,a.A)({timestamp:n.created_at},n.payload)).then((function(){e.shift(),d.A.localStorage.setItem("celero_unsent",JSON.stringify(e))}))}))])},X=function(){var e=(0,r.A)((0,o.A)().m((function e(n,t){var i,r,l,s,u,d,f,p,m=arguments;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(i=!(m.length>2&&void 0!==m[2])||m[2],r=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=i?N:{},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},f=new CustomEvent(n,{detail:d,bubbles:!0,cancelable:!0,composed:!1}),!1!==u.checkCustomEvent&&(document.dispatchEvent(f),window.customEventsHandler&&window.customEventsHandler(d)),delete u.checkCustomEvent,e.n=2,K(n,u,r);case 2:return p=e.v,e.a(2,p)}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),J={400:"Bad Request: Check for invalid IP/domain values, special characters, or issues with the bulk query JSON.",401:"Unauthorized: Verify your API key and account status.",403:"Forbidden: Domain lookup might not be allowed with a free API key.",404:"Not Found: The IP/domain might not exist in our database, or an incorrect endpoint was used.",405:"Method Not Allowed: Ensure you're using the correct HTTP method (GET for /ipgeo, POST for /ipgeo-bulk).",413:"Content Too Large: The POST payload exceeds API limits.",415:"Unsupported Media Type: Confirm that the payload is JSON and content type is set correctly.",423:"Locked: The IP address may be from a bogon or private network.",429:"Too Many Requests: API usage limits have been reached.",499:"Client Closed Request: The client set a very short timeout."};x.A.get("https://api.ipgeolocation.io/ipgeo",{params:{apiKey:"6f2d870402f14704929b78cc257da158"},timeout:5e3}).then((function(e){var n=e.data;d.A.sessionStorage.setItem("geolocation",JSON.stringify(n)),window.continentCode=null==n?void 0:n.continent_code,window.ipgeoaddress=null==n?void 0:n.ip,window.geolocation=n,C=n})).catch((function(e){var n,t="",i=null,o="";e.response?(i=e.response.status,o=e.response.data,t="HTTP error: ".concat(i," - ").concat(e.response.statusText)):e.request?(t="Network error: No response received",o=e.request):t="Error in setting up the request: ".concat(e.message);var r=i?J[i]||"Unexpected error":"Network level error",l={message:t,originalMessage:e.message,description:r,status:i||"No status available",timestamp:(new Date).toISOString(),endpoint:"https://api.ipgeolocation.io/ipgeo",responseBody:o};j=l,window.geo_location_null_reason=l,d.A.sessionStorage.setItem("geo_location_null_reason",JSON.stringify(l)),(0,p.FF)("ipgeolocation.io request failed",(0,a.A)((0,a.A)({},l),{},{http_status:String(null!==(n=i)&&void 0!==n?n:"no-response")})),window.continentCode="UNKNOWN"}));var Z=function(){return!1},$=function(e){var n=e.sessionId;R({session_id:n}),d.A.localStorage.setItem(f.R.SESSION,JSON.stringify(e))},Q=function(){d.A.localStorage.removeItem(f.R.SESSION),N.session_id=void 0},ee=function(){try{var e=(0,y.B)(),n=new Date,t={sessionId:e,createdAt:n.getTime(),updatedAt:n.getTime()};return $(t),Promise.resolve()}catch(e){return(0,p.ZI)("createSession :"+e),Promise.reject(e)}},ne=function(){try{return function(e){R({tab_id:e}),d.A.sessionStorage.setItem("tab_id",e)}((0,y.B)()),Promise.resolve()}catch(e){return(0,p.ZI)("createTabId :"+e),Promise.reject(e)}},te=function(){try{var e=d.A.localStorage.getItem(f.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(te())try{if(!e)return N.session_id=void 0,void Q();var n=d.A.localStorage.getItem(f.R.SESSION),t=n&&JSON.parse(n);if(t)if(t.sessionId){var i=new Date;t=(0,a.A)((0,a.A)({},t),{},{updatedAt:i.getTime()}),$(t)}}catch(e){(0,p.ZI)("updateSession in tracker.ts "+e)}},oe=function(){ie(),function(){try{var e=d.A.localStorage.getItem(f.R.CONTENTS),n=e&&JSON.parse(e);if(!n)return;for(var t=D().content_id,i=0,o=n.length;iM.current.clientHeight;W(!!e)}),[S]);var U=function(){var e=(0,l.A)((0,o.A)().m((function e(n){var t,l,c,s;return(0,o.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,o.A)().m((function e(){var n;return(0,o.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:E((function(e){if("string"==typeof e[e.length-1]){var t=(0,r.A)(e);return t[t.length-1]+=n,t}return[].concat((0,r.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,i.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:E((function(e){return[].concat((0,r.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:v};(0,y.xF)("Click Feed",n)}),[v]),z=function(e){var n,t=null==v||null===(n=v.sections)||void 0===n?void 0:n.find((function(e){return"cards"===e.type}));return t?e.split(/\[([^\]]+)\]/g).map((function(e,n){if(g.has(e)){var i=e,o=t.elements[g.get(i)],r=null==o?void 0:o.title;return(0,A.jsx)(b,{card:o,onClick:V,children:"("+r+")"},n)}return e})):e},H=function(){var e=(0,l.A)((0,o.A)().m((function e(n){var t,i,r,l,c;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:t=z(n),i=(0,a.A)(t),e.p=1,i.s();case 2:if((r=i.n()).done){e.n=4;break}return l=r.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,i.e(c);case 6:return e.p=6,i.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(){D(!0);var e={value:j};(0,y.xF)("Expand Assistant Chat",e)}),[R]);return(0,s.useEffect)((function(){var e,t;(null==n||null===(e=n.display_hook)||void 0===e?void 0:e.length)>0&&0===(null===(t=I.current)||void 0===t?void 0:t.length)&&(I.current=n.display_hook,T(n.display_hook),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":B.palette.getContrastText(x)},children:(0,r.A)(Array(12)).map((function(e,n){return(0,A.jsx)("div",{className:"spinner-blade"},n)}))}),(0,A.jsx)(f.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)(f.A,{variant:"body1",style:{fontWeight:"bold",color:x},children:"Assistant"}),(0,A.jsx)(p.A,{size:"small",children:(0,A.jsx)(m.A,{fontSize:"small"})})]}),(0,A.jsx)("div",{className:"text-container ".concat(R?"expanded":"unexpanded"),style:{"--color":x,"--inverse-color":B.palette.getContrastText(x)},ref:M,children:(0,A.jsx)(f.A,{variant:"body1",style:{color:x},className:"text-content ".concat(R?"expanded":"unexpanded"),children:S})}),P&&!R&&(0,A.jsx)(f.A,{variant:"body2",className:"see-more",style:{backgroundColor:B.palette.getContrastText(x)},onClick:q,children:"See more"})]})})}},19164:function(e,n,t){t.r(n),t.d(n,{TrackerComponent:function(){return a}});var i=t(49255),o=t(38607),r=t(5791),a=function(e){var n=e.useProFingerprint,t=e.accountId,a=(0,i.useRef)(!1);return(0,i.useEffect)((function(){if(!a.current){if(void 0!==n)return a.current=!0,void o.A.resolveFingerprint(n,t).then((function(){(0,r.Mc)()}));var e=setTimeout((function(){a.current||(a.current=!0,o.A.resolveFingerprint(!1,t).then((function(){(0,r.Mc)()})))}),4e3);return function(){return clearTimeout(e)}}}),[n,t]),null};n.default=a},19378:function(e,n,t){t.d(n,{$i:function(){return i}});var i="g_t"},19457:function(e,n,t){t.r(n),t.d(n,{default:function(){return c}});var i=t(79218),o=t(95792),r=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)(i.A,{open:c,onClose:s,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{backgroundColor:"black",height:"min(70vh, 520px)"}},children:[(0,l.jsx)(o.A,{onClick:s,"aria-label":"Close",sx:{position:"absolute",right:8,top:8,zIndex:2,color:"white"},children:(0,l.jsx)(r.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 i}});var i="SET_OPEN_BUBBLE"},20253:function(e,n,t){t.d(n,{g:function(){return r}});var i=function(e,n){return"number"==typeof e&&"number"==typeof n},o=function(e,n){return"string"==typeof e&&"string"==typeof n},r=function(e,n,t){switch(t){case"lessThan":return!!i(e,n)&&en;case"greaterThanOrEqual":return!!i(e,n)&&e>=n;case"equal":return e==n;case"notEqual":return e!=n;case"contains":return!!o(e,n)&&e.includes(n);case"notContains":return!!o(e,n)&&!e.includes(n);case"in":return n instanceof Array&&n.indexOf(e)>-1;case"notIn":return n instanceof Array&&-1==n.indexOf(e);case"exists":return null!=e&&null!=e;case"notExists":return null==e||null==e;default:return!1}}},21970:function(e,n,t){t.r(n),t.d(n,{default:function(){return X}});var i=t(91212),o=t(10467),r=t(5544),a=t(49255),l=t(87632),c=t(60419),s=t(95266),u=t(5084),d=t(81076),f=t(89379),p=t(97027),m=t(16976),h=t(47081),v=t(72514),g=t(93690),x=t(71551),w=t(20535),A=t(91934),b=t(84899),y=t(97094),_=t.n(y),S=t(60723),E=t(13989),I=t(78752),k=t(95492),C=t(96790),j=t(61870),T=t(65983),N=(0,w.A)((function(e){return(0,E.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 O(e){var n=e.card,t=e.onClick,i=e.mediaPadding,o=N({mediaPadding:i}),r=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"";return(0,T.jsxs)("div",{className:o.root,onClick:function(){t(n.link_url||n.link,n)},children:[(0,T.jsx)(I.A,{className:o.media,image:(0,C.bN)(n.image_url||n.image),title:n.title}),(0,T.jsxs)(k.A,{className:o.cardContent,children:[(0,T.jsx)(u.A,{className:o.title,variant:"h6",component:"h2",title:n.title,children:n.title}),(0,T.jsx)(u.A,{variant:"body2",color:"textSecondary",component:"p",className:o.description,children:r.length<=300?r:r.substr(0,300)+"..."}),n.visits>=0&&(0,T.jsxs)("div",{className:o.visitors,children:[(0,T.jsx)(j.h,{className:o.icon}),(0,T.jsx)("div",{className:o.visitorsNumber,children:n.visits})]})]})]})}var R=(0,w.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"}}})),D=function(e){var n=e.cards,t=e.color,i=e.onClick,o=R(),l=(0,a.useRef)(null),c=(0,a.useState)("56.25%"),s=(0,r.A)(c,2),u=s[0],f=s[1];(0,a.useEffect)((function(){var e=function(){if(l.current){f("56.25%")}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[l]);var p=function(e,n){for(var t=[],i=0;i0&&(d.hash,e.context.page_number),function(){(function(e,n,t){var i={celero_id:e,account_id:n,model:t,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"};return B.Yq.post("/feed/chat",i)})((0,W.AS)(),R,L).then((function(e){e&&e.data&&k(e.data)})).finally((function(){O(!1)}))}),oe=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,W.AS)();U(0,l,R,L,(0,f.A)((0,f.A)({},D),{},{ui:K})).then((function(e){if(e.data&&e.data.sections){var n=e.data.sections.find((function(e){return"cards"===e.type}));if(n){var t,i=function(e){var n=new Map;return null==e||e.forEach((function(e,t){n.set(e.eid,t)})),n}(n.elements);if(J)null===(t=n.elements)||void 0===t||t.splice(J);w(e.data),ne(i)}}})).catch((function(e){var n;null!=e&&null!==(n=e.message)&&void 0!==n&&n.includes("404")&&w(null)})).finally((function(){_(!1);var n={recommendation_list:x,feed_name:l,account_id:R,params:te},t=e?"Refresh Feed":"Open Feed";(0,W.xF)(t,n),Y&&ie()}))};(0,a.useImperativeHandle)(n,(function(){return{loadFeedElements:oe}}),[oe]),(0,a.useEffect)((function(){l&&R&&oe()}),[R,l]);var re=(0,a.useRef)(),ae=function(){var e=re.current,n=e.scrollTop/(e.scrollHeight-e.clientHeight),t={recommendation_list:x,feed_name:l,account_id:R,value:Math.round(100*n)/100,params:te};(0,W.xF)("Scroll Feed",t)},le=(0,a.useCallback)((0,m.A)(ae,1e3),[ae]);return(0,a.useEffect)((function(){var e=re.current;return e&&e.addEventListener("scroll",le),function(){e&&e.removeEventListener("scroll",le)}}),[y]),(0,T.jsxs)("div",{ref:re,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"===Z?"hidden":"auto"},children:[Y&&(0,T.jsx)(P.A,{data:I,isLoading:N,feedCardsMap:ee,feedElements:x,color:c}),y?"carousel"==K?(0,T.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"10px"},children:[(0,T.jsx)(u.A,{style:{fontSize:30,fontWeight:"bold",textAlign:"center"},children:q}),(0,T.jsx)(s.A,{color:"inherit"})]}):(0,T.jsx)(T.Fragment,{}):x?(0,T.jsx)("div",{style:{height:"100%",width:"100%"},children:(0,T.jsx)(F,{data:x,scroll:Z,color:c,onSuggestionClick:function(e,n){var t={type:"suggestion",value:n,recommendation_list:x};(0,W.xF)("Click Feed",t),U((0,W.AS)(),l,R,L,(0,f.A)((0,f.A)({},D),{},{ui:K})).then((function(e){var n;w(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:e.data)}))},onCardClick:function(e,n){for(var t={type:"card",value:n,recommendation_list:x,params:(0,f.A)({searchParams:D},te)},i=new URL(e),o=p.A.parse(i.search),a=Object.keys(o),l=p.A.parse(window.location.search),c=0,s=Object.entries(l);c_;var r=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")}}}}))(E.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}}}}))(E.Ay),t(16976)),C=t(63055),j=t(65983),T=r.memo((function(e){var n,t,c=e.isDialog,u=e.autoplay,w=e.contentUUID,A=e.url,b=e.pageNumber,_=e.poster,S=.5,E=(0,r.useState)(S),T=(0,o.A)(E,2),N=(T[0],T[1]),O=(0,r.useState)(S),R=(0,o.A)(O,2),D=R[0],L=R[1],F=(0,r.useState)(null),P=(0,o.A)(F,2),W=P[0],M=P[1],B=(0,r.useState)(!1),U=(0,o.A)(B,2),V=U[0],z=U[1],H=(0,r.useState)(!1),q=(0,o.A)(H,2),G=q[0],K=q[1],Y=(0,r.useState)(0),X=(0,o.A)(Y,2),J=X[0],Z=X[1],$=(0,r.useState)(0),Q=(0,o.A)($,2),ee=(Q[0],Q[1]),ne=(0,r.useState)(!1),te=(0,o.A)(ne,2),ie=te[0],oe=te[1],re=(0,r.useState)(!1),ae=(0,o.A)(re,2),le=ae[0],ce=ae[1],se=(0,r.useState)(!1),ue=(0,o.A)(se,2),de=ue[0],fe=ue[1],pe=(0,r.useState)(0),me=(0,o.A)(pe,2),he=me[0],ve=me[1],ge=(0,r.useState)({}),xe=(0,o.A)(ge,2),we=xe[0],Ae=xe[1],be=(0,r.useState)(!1),ye=(0,o.A)(be,2),_e=ye[0],Se=ye[1],Ee=(0,r.useState)(!1),Ie=(0,o.A)(Ee,2),ke=Ie[0],Ce=Ie[1],je=(0,r.useRef)(!1),Te=(0,r.useRef)(null),Ne=(0,r.useRef)(0),Oe=(0,r.useRef)(!1),Re=(0,r.useRef)(!1),De=(0,r.useRef)(!1),Le=(0,r.useRef)(0),Fe=null!==(n=null==A?void 0:A.includes(".mp4"))&&void 0!==n&&n,Pe=null!==(t=null==A?void 0:A.includes("vimeo"))&&void 0!==t&&t,We=new Set,Me=I({isProgressBarVisible:ke}),Be=(0,r.useState)({played:0,playedSeconds:0,loaded:0,loadedSeconds:0}),Ue=(0,o.A)(Be,2),Ve=Ue[0],ze=Ue[1],He=(0,r.useRef)(null),qe=(0,r.useRef)(null),Ge=(0,r.useRef)(null),Ke=!!A&&(0,h.Eg)(A);(0,r.useEffect)((function(){A||(0,v.FF)("VideoPlayer received a missing/null url",{contentUUID:w,isDialog:c,pageNumber:b})}),[A,w,c,b]);var Ye=Me.videoContainer,Xe=Me.videoItem,Je=Me.containerFloating,Ze=Me.closeIcon,$e=Me.stickyVideo,Qe=y(Te,(function(){Le.current=He.current.getCurrentTime(),Le.current&&Le&&0!==Le.current&&Z(Le.current)}),_e,!Pe&&ie&&!_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,r.useCallback)((0,k.A)(en,300),[en]);(0,r.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 i=document.querySelector("iframe");i.src=i.src+"&width=".concat(n.clientWidth,"&height=").concat(n.clientHeight),t&&(t.style.width=n.clientWidth,t.style.height=n.clientHeight,i.style.width="100% !important",i.style.height="100% !important",i.width="100%",i.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,i;window.vidyardVideos=window.vidyardVideos||new Set;var o=n.origin+n.pathname;null!==(t=window.vidyardVideos)&&void 0!==t&&t.has(o)&&(0,m.xF)(p.qW.WARNING,{code:"VIDYARD_TWO_VIDEOS_ISSUE",additional_data:A,page:b,internal_explanation:"there is more than a vidyard videos with the same link which will cause an events issue"}),null===(i=window.vidyardVideos)||void 0===i||i.add(o)}}}),[]),(0,r.useEffect)((function(){Fe||ce(!0)}),[Qe]);var tn=function(e){var n=e.eventName,t=e.previous,o=e.next,r=e.pauseSorce,a=e.isAutoPlay,l={content_id:w,page_number:b,video_link:A,video_duration:(0,h.DS)(he)},c=He.current&&He.current.getCurrentTime()&&(0,h.DS)(He.current.getCurrentTime());switch(n){case p.qW.VIDEO_SEEKED:return(0,i.A)((0,i.A)({},l),{},{from_video_time:t,to_video_time:o});case p.qW.VIDEO_SOUND_CHANGED:return(0,i.A)((0,i.A)({},l),{},{at_video_time:(0,h.DS)(Ve.playedSeconds),from_volume_level:t,to_volume_level:o});case p.qW.VIDEO_PAUSED:return(0,i.A)((0,i.A)({},l),{},{at_video_time:c,cause:r});case p.qW.FINISH_VIDEO:return(0,i.A)({},l);case p.qW.VIDEO_PLAYED:return(0,i.A)((0,i.A)({},l),{},{at_video_time:(0,h.DS)(Ve.playedSeconds),auto_play:a});case"milestone":return(0,i.A)((0,i.A)({},l),{},{total_watched_time:We.size});default:return(0,i.A)((0,i.A)({},l),{},{at_video_time:c})}},on=function(){K(!1),Re.current=!ie,oe(!ie),De.current&&(0,m.xF)(p.qW.VIDEO_PLAYED,tn({eventName:p.qW.VIDEO_PLAYED,isAutoPlay:!0}))},rn=function(){if(je.current){je.current=!1;var e=(0,h.DS)(He.current?He.current.getCurrentTime():0),n={content_id:w,page_number:b,video_link:A,video_duration:(0,h.DS)(Ne.current),at_video_time:e};(0,m.xF)(p.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,De.current=!0,on())},ln=function(e){if(e.srcElement===qe.current){var n=d().isEnabled&&d().isFullscreen,t=n?p.qW.VIDEO_SET_FULLSCREEN:p.qW.VIDEO_EXIT_FULLSCREEN;z(n),(0,m.xF)(t,tn({eventName:t}))}};(0,r.useEffect)((function(){d().isEnabled&&d().on("change",ln);var e=(0,h.DC)(window)===l.u.IOS;return M(!(!u||c||e)),L(!u||c||e?S:0),N(!u||c||e?S:0),function(){d().isEnabled&&d().off("change",ln),rn()}}),[he]),(0,r.useEffect)((function(){var e;return de&&le&&(e=setTimeout((function(){ce(!1),fe(!1)}),700)),function(){e&&clearTimeout(e)}}),[de]),(0,r.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?Me.hideVideo:$e,sn=Qe?(0,f.A)(Ye,Je,cn):(0,f.A)(Ye,Ye),un=Fe?"mp4":"video";return(0,r.useEffect)((function(){var e;null===(e=Te.current)||void 0===e||e.addEventListener("click",(function(){oe(!0)}))}),[]),(0,j.jsx)("div",{className:sn,ref:Te,children:null!==W&&null!==D&&(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||oe(!1)},className:Ze,children:(0,j.jsx)(x.h,{className:Je})}),(0,j.jsx)("div",{className:Xe,onClick:on,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:ie,muted:W||_e,autoPlay:!0,onPause:function(){var e;Re.current=!1,Oe.current?(e=tn({eventName:p.qW.VIDEO_PAUSED,pauseSorce:p.T9.LEAVING_PAGE}),Oe.current=!1):e=tn({eventName:p.qW.VIDEO_PAUSED,pauseSorce:p.T9.USER}),(0,m.xF)(p.qW.VIDEO_PAUSED,e),oe(!1),K(!1)},onPlay:function(){if(Re.current=!0,je.current=!0,G||De.current||(0,m.xF)(p.qW.VIDEO_PLAYED,tn({eventName:p.qW.VIDEO_PLAYED,isAutoPlay:De.current})),De.current=!1,oe(!0),_e&&Ke)return oe(!1),void Se(!1)},onProgress:function(e){if(Math.round(e.playedSeconds)%p.vh-1==0&&(0,m.Z8)(),e.playedSeconds&&(We.add(e.playedSeconds),function(e){var n="";switch(Math.floor(e)){case we["25%"]:n="25%";break;case we["50%"]:n="50%";break;case we["75%"]:n="75%";break;case we["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,i.A)((0,i.A)({},(0,m.wn)()),tn({eventName:p.qW.VIDEO_PLAYED,isAutoPlay:De.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)(p.qW.VIDEO_SEEKED,tn({eventName:p.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){ve(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:D,onEnded:function(){oe(!1),(0,m.xF)(p.qW.FINISH_VIDEO,tn({eventName:p.qW.FINISH_VIDEO}))},onReady:function(){var e,n=(0,h.DC)(window)===l.u.IOS,t=ie;n&&oe(!1),Ke||Se(!1),(t||_e)&&!Fe&&(e=J,He&&He.current&&(ie&&K(!0),He.current.seekTo(e,"seconds"),le&&fe(!0)))},playsinline:!0,controls:!0,config:{file:{attributes:{poster:_}}},light:e.poster},un)}),(0,j.jsx)(g.A,{handler:rn})]})})}))},26882:function(e,n,t){t.d(n,{p:function(){return i}});var i="SET_CUSTOM_EVENTS"},27772:function(e,n,t){t.d(n,{j:function(){return o}});var i=t(45051),o=function(e){return function(n){n({type:i.L,payload:e})}}},28216:function(e,n,t){var i,o=t(89379),r=t(23029),a=t(92901),l=t(5791),c=t(81114),s=t(75449),u=function(){function e(){(0,r.A)(this,e)}return(0,a.A)(e,null,[{key:"init",value:function(n,t){return e.localWindow.drift||(e.initialize(n),e.localWindow=window),e.localWindow=window,t&&(e.app_id=n,e.integration_id=t),e.setVisibility(!1),e.localWindow.drift}},{key:"getInstance",value:function(n){return!e.localWindow.drift&&n&&(e.init(n),e.localWindow=window),e.drift=e.localWindow.drift,e.drift}},{key:"setVisibility",value:function(n){e.localWindow.drift&&(n?(e.localWindow.drift.load(e.app_id),e.localWindow.drift.on("ready",(function(){e.localWindow.drift.show(),e.localWindow.drift.openChat()}))):e.localWindow.drift.hide())}}])}();i=u,u.localWindow=window,u.integration_id=void 0,u.drift=void 0,u.app_id=void 0,u.getScript=function(){return'\n "use strict";\n\n !function() {\n var t = window.driftt = window.drift = window.driftt || [];\n if (!t.init) {\n if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));\n t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], \n t.factory = function(e) {\n return function() {\n var n = Array.prototype.slice.call(arguments);\n return n.unshift(e), t.push(n), t;\n };\n }, t.methods.forEach(function(e) {\n t[e] = t.factory(e);\n }), t.load = function(t) {\n var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");\n o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";\n var i = document.getElementsByTagName("script")[0];\n i.parentNode.insertBefore(o, i);\n };\n }\n }();\n drift.SNIPPET_VERSION = \'0.3.1\';\n'},u.initialize=function(e){var n="drift-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=i.getScript(),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t),i.initializeDriftTracking(e)}},u.initializeDriftTracking=function(e){i.getInstance().on("ready",(function(){var n={integration_type:s.o4.DRIFT,app_id:e};i.localWindow.drift.on("sidebarOpen",(function(){(0,l.xF)(c.qW.OPEN_CHAT,(0,o.A)({},n))})),i.localWindow.drift.on("sidebarClose",(function(){(0,l.xF)(c.qW.CLOSE_CHAT,(0,o.A)({},n))})),i.localWindow.drift.on("message",(function(e){(0,l.xF)(c.qW.RECEIVE_MESSAGE,(0,o.A)((0,o.A)({},n),{},{properties:e}))})),i.localWindow.drift.on("message:sent",(function(e){(0,l.xF)(c.qW.SEND_MESSAGE,(0,o.A)((0,o.A)({},n),{},{properties:e}))}))}))},n.A=u},28439:function(e,n,t){var i=t(23029),o=t(92901),r=t(7264),a=t.n(r),l=function(){function e(){(0,i.A)(this,e)}return(0,o.A)(e,null,[{key:"getInstance",value:function(){return e.tagManager||(e.tagManager=a()),e.dataLayer=e.localWindow.dataLayer,e.tagManager.dataLayer=e.localWindow.dataLayer,e.tagManager}},{key:"injectScript",value:function(n){var t=e.localWindow;t.dataLayer=t.dataLayer||[],t.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),e.dataLayer=t.dataLayer;var i=document.createElement("script");i.async=!0,i.src="https://www.googletagmanager.com/gtm.js?id=".concat(n),document.head.insertBefore(i,document.head.firstChild);var o=document.createElement("noscript"),r=document.createElement("iframe");r.src="https://www.googletagmanager.com/ns.html?id=".concat(n),r.height="0",r.width="0",r.style.display="none",r.style.visibility="hidden",o.appendChild(r),document.body.insertBefore(o,document.body.firstChild)}},{key:"init",value:function(n,t,i){t&&i?e.getInstance().initialize({gtmId:n,auth:t,preview:i}):e.injectScript(n)}},{key:"fireEvent",value:function(n){e.getInstance().dataLayer&&e.getInstance().dataLayer.push({event:n})}}])}();l.tagManager=void 0,l.localWindow=window,l.dataLayer=void 0,n.A=l},28930:function(e,n,t){var i=t(61755),o=t(65983);n.A=function(e){var n=e.faviconLink;return(0,o.jsxs)(i.mg,{children:[(0,o.jsx)("meta",{name:"favicon"}),(0,o.jsx)("link",{id:"favicon",rel:"icon","data-react-helmet":"true",href:n}),(0,o.jsx)("link",{rel:"shortcut icon","data-react-helmet":"true",href:n}),(0,o.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 i=t(5544),o=t(49255),r=t(47081),a=t(65983);var l=function(e){var n=(0,r.d4)((function(e){return{htmlSnippets:e.htmlSnippets}})).htmlSnippets,t=(0,o.useState)(""),l=(0,i.A)(t,2),c=l[0],s=l[1];(0,o.useEffect)((function(){var t;if(n){var i=null==n||null===(t=n.find((function(n){return n.name==e.snippetName})))||void 0===t?void 0:t.html;s(i||"")}}),[n]);var u=(0,o.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 i=t(49255),o=t(47081),r=t(55737),a=t(5791),l=t(81114),c=t(56787),s=t(84740),u=t(50327),d=t(84899),f=t(5084),p=t(65983);function m(e){var n=(0,o.d4)((function(e){return{theme:e.theme,shortenData:e.shortenData}})),t=n.theme,m=n.shortenData,h=e.content,v=e.isPresentationMode,g=(0,c.A)().currentPageNumber,x=window.celeroURLParams.is_bot,w=(0,d.A)().isMobile,A=v?t.palette.customViewer.viewerBackGroundColorPresentation:t.palette.customViewer.viewerBackGroundColorDocument,b=(0,r.z4)({ismobile:w,background:A}),y=b.poweredByCeleroLabel,_=b.celeroLogoClass,S=m&&m.company&&m.company.company_customizations&&m.company.company_customizations.is_powered_by_celero,E=null==S||S,I=(0,i.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,a.AS)()),n={content_id:h.uuid,link_url:e,page_number:g};(0,a.xF)(l.qW.CLICK_POWERED_BY,n),setTimeout((function(){window.open(e,"_blank")}))}),[h,g]);return(0,p.jsx)(s.A,{isVisible:E&&!x,children:(0,p.jsxs)(r.A2,{variant:"extended",onClick:I,ismobile:w,background:A,"assistant-c-name":"powered-by",children:[(0,p.jsx)(f.A,{className:y,children:"Powered by"}),(0,p.jsx)(u.ReactComponent,{className:_})]})})}},30852:function(e,n,t){t.r(n),t.d(n,{default:function(){return x}});var i=t(89379),o=t(49255),r=t(31783),a=t(5791),l=t(691),c=t(4134),s=t(81114),u=t(16976),d=t(34955),f=t(57957),p=t(16084),m=t(56787),h=t(65983),v=o.forwardRef((function(e,n){var t=new Date,i=(0,o.useRef)(t),l=(0,o.useRef)(new Date),v=(0,m.A)().currentPageNumber,g=e.contentUUID,x=e.componentName,w=function(e,n){(0,a.xF)(e,n)},A=(0,o.useRef)(""),b=function(){var e,n=null===(e=document.getSelection())||void 0===e?void 0:e.toString();switch(x){case r.$.CALCULATOR:if(!n||A.current===n)return;w(s.qW.TEXT_HIGHLIGHTED,{text:n.slice(0,2e3)});break;case r.$.VIEWER:if(!n||A.current===n)return;w(s.qW.TEXT_HIGHLIGHTED,{text:n.slice(0,2e3),page_number:v,content_id:g})}A.current=n},y=(0,o.useCallback)((function(){var e=n.current,t="";e&&(e.onmouseup=function(){b()},e.oncopy=function(){var e,n,i=null===(e=window)||void 0===e||null===(n=e.getSelection())||void 0===n?void 0:n.toString();switch(x){case r.$.CALCULATOR:if(!i||t===i)return;w(s.qW.TEXT_COPIED,{text:i});break;case r.$.VIEWER:if(!i||t===i)return;w(s.qW.TEXT_COPIED,{text:i,content_id:g,page_number:v})}t=i})}),[n,g,v,x]);(0,o.useEffect)((function(){y()}),[y]);var _=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var t=new Date,o=t,r=(0,c.ez)(i.current,t);n&&(r=(0,c.ez)(i.current,l.current)+s.Md,o=new Date(l.current.getTime()+s.Md));var u={duration:r,page_number:e,content_id:g,keen:{timestamp:o}};(0,a.xF)(s.qW.SLIDE_VIEW_FINISHED,u),i.current=new Date}},S=function(){b()},E=(0,o.useCallback)((0,u.A)(S,1e3),[S]);(0,o.useEffect)((function(){if(window.location.hostname.includes("netapp")){var e=(0,p.Ri)("_netapp_utm_params");e&&(0,a.I1)(JSON.parse(e))}return document.addEventListener("selectionchange",E),function(){document.removeEventListener("selectionchange",E)}}),[]),(0,o.useEffect)((function(){return function(){_(v)}}),[g,v,i]);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),_(v,!0),(0,a.jw)(),(0,a.xF)(s.qW.SLIDE_VIEW_STARTED,{}),i.current=new Date}catch(e){(0,f.ZI)("create session in window tracker 'handleFocusEvent' :"+e)}l.current=new Date}}}),(0,h.jsx)("div",{ref:n,style:{height:"100%"},children:e.children})}));v.displayName="EventsTracker";var g=v,x=function(e){var n=e.children,t=e.content,u=e.shortenData,d=(0,m.A)().currentPageNumber,f=(0,o.useRef)(d),p=(0,o.useRef)(!1),v=(0,o.useRef)(!1),x=(0,o.createRef)();return(0,o.useEffect)((function(){f.current=d}),[d]),(0,o.useEffect)((function(){if(null!=t&&t.uuid){var e=l.A.sessionStorage.getItem("celero_obj"),n=l.A.localStorage.getItem("mvt_url"),o=l.A.localStorage.getItem("mvt_referrer"),r=e&&JSON.parse(e)||{},c=(0,i.A)((0,i.A)({},r),{},{content_id:t.uuid});(0,a.I1)({content_id:t.uuid}),o&&window.location.href.includes(n)?(0,a.I1)({with_mvt:!0,mvt_referrer:o}):(l.A.localStorage.removeItem("mvt_url"),l.A.localStorage.removeItem("mvt_referrer")),l.A.sessionStorage.setItem("celero_obj",JSON.stringify(c))}}),[t]),(0,o.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,o.useEffect)((function(){p.current||((0,a.xF)("Init"),p.current=!0)}),[]),(0,o.useEffect)((function(){if(t&&!v.current){var e=(0,c.al)(),n=window.celeroData?s.AI.OEMBED:e?s.AI.IFRAME:s.AI.STANDARD,i={content_id:t.uuid,title:t.original_name,type:n};t.preview_user_id&&(i.preview_user_id=t.preview_user_id),(0,a.xF)(s.qW.CONTENT_VIEW_STARTED,i),v.current=!0}}),[t]),(0,o.useEffect)((function(){if(t){var e={page_number:f.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,o.useEffect)((function(){window.enableTracking=u.company.enableTracking}),[t]),(0,h.jsx)(g,{ref:x,contentUUID:t.uuid,pageId:d,componentName:r.$.VIEWER,title:t.original_name,children:n})}},31783:function(e,n,t){t.d(n,{$:function(){return i},Y:function(){return o}});var i=function(e){return e.VIEWER="VIEWER",e.CALCULATOR="CALCULATOR",e}({}),o=function(e){return e.EXTERNAL="EXTERNAL",e.INTERNAL="INTERNAL",e}({})},38097:function(e,n,t){t.d(n,{A:function(){return s}});var i=t(28122),o=t(2378),r=t(20535),a=t(87162),l=(0,r.A)((function(e){return{previewModeMessage:{position:"sticky",lineHeight:2,top:function(e){return e.is_sticky_bar?a.O5:0},zIndex:1e3,color:"black",fontSize:16,backgroundColor:"white",textAlign:"start"},infoAlert:{color:"".concat(e.palette.customViewer.viewerPrimaryTextColor," !important"),backgroundColor:"".concat(e.palette.customViewer.viewerPrimaryColor," !important")},infoIconStyle:{color:e.palette.customViewer.viewerPrimaryColor}}})),c=((0,r.A)((function(e){return{previewMode:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",backgroundColor:e.palette.background.default},previewModeContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.spacing(3),textAlign:"center"},previewModeTitle:{marginBottom:e.spacing(2),color:e.palette.text.primary},previewModeDescription:{marginBottom:e.spacing(3),color:e.palette.text.secondary}}})),t(65983));function s(e){var n=e.isStickyBar,t=l({is_sticky_bar:n}),r=t.previewModeMessage,a=t.infoAlert,s=t.infoIconStyle;return(0,c.jsx)("div",{className:r,children:(0,c.jsx)(i.A,{severity:"info",className:a,icon:(0,c.jsx)(o.A,{className:s}),children:'You are in preview mode. To share this content with others, go back to your content area (previous tab) and click the "copy link" button.'})})}},38607:function(e,n,t){t.d(n,{A:function(){return x}});var i=t(91212),o=t(10467),r=t(74859),a=t(57957),l=t(5791),c=t(23029),s=t(92901),u=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(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489)]).then(t.bind(t,83809)).then((function(e){var n={apiKey:"d5hFiqkeQLkMFbIexii1"},t="https://fp.celero.io/fp/result",i="https://fp.celero.io/fp/agent?apiKey=&version=&loaderVersion=";return t&&(n.endpoint=t),i&&(n.scriptUrlPattern=i),e.load(n)}))}},{key:"getVisitorId",value:(e=(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: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(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489)]).then(t.bind(t,10117)).then((function(e){return e.load()}))}},{key:"getVisitorId",value:(e=(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: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 f(){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 i=Array.from(t,(function(e){return e.toString(16).padStart(2,"0")}));return"".concat(i[0]).concat(i[1]).concat(i[2]).concat(i[3],"-")+"".concat(i[4]).concat(i[5],"-")+"".concat(i[6]).concat(i[7],"-")+"".concat(i[8]).concat(i[9],"-")+"".concat(i[10]).concat(i[11]).concat(i[12]).concat(i[13]).concat(i[14]).concat(i[15])}throw new Error("Secure random number generation is not available in this environment.")}var p=null;function m(){return(m=(0,o.A)((0,i.A)().m((function e(n,t){var o,c,s,p,m,h,v,g,x,w,A;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(!(o=(0,l.AS)())){e.n=5;break}return e.p=1,e.n=2,r.Ay.post("/api/fingerprint/",{celero_id:o});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)(o),e.a(2,o);case 5:e.p=5,p="pro"===(n?"pro":"free")?new u:new d,e.n=7;break;case 6:return e.p=6,e.v,m=f(),(0,l.ss)(m),e.a(2,m);case 7:return h=null,e.p=8,e.n=9,p.getVisitorId();case 9:h=e.v,e.n=11;break;case 10:e.p=10,e.v;case 11:return e.p=11,v={provider:n?"pro":"free"},h&&(v.visitor_id=h),t&&(v.account_id=t),e.n=12,r.Ay.post("/api/fingerprint/",v);case 12:if(g=e.v,!(x=g.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 w=f(),(0,l.ss)(w),(0,l.E1)("d2.5",{celero_id:w,visitor_id:h,use_pro_fingerprint:n,status:"fe_fallback"}),e.a(2,w)}}),e,null,[[11,14],[8,10],[5,6],[1,4]])})))).apply(this,arguments)}function h(e,n){return p||(p=function(e,n){return m.apply(this,arguments)}(e,n).catch((function(e){throw p=null,e})),p)}var v,g={resolveFingerprint:function(e,n){return h(e,n)},waitForCeleroId:(v=(0,o.A)((0,i.A)().m((function e(){var n;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:if(!p){e.n=1;break}return e.a(2,p);case 1:n=Date.now();case 2:if(p||!(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(!p){e.n=5;break}return e.a(2,p);case 5:return e.a(2,h(void 0,void 0))}}),e)}))),function(){return v.apply(this,arguments)})},x=g},38633:function(e,n,t){t.d(n,{Y:function(){return x}});var i=t(91212),o=t(10467),r=t(5544),a=t(49255),l=t(3895),c=t.n(l),s=t(47081),u=t(81046),d=t(52808),f=t(52484),p=t(66348),m=t(72661),h=t(5791),v=t(81114),g=t(65983);function x(e){var n,t,l=(0,s.wA)(),x=(0,a.useState)(!1),w=(0,r.A)(x,2),A=w[0],b=w[1],y=(0,a.useState)(""),_=(0,r.A)(y,2),S=_[0],E=_[1],I=(0,a.useState)(""),k=(0,r.A)(I,2),C=k[0],j=k[1],T=(0,a.useState)(null),N=(0,r.A)(T,2),O=N[0],R=N[1],D=(0,a.useState)(!1),L=(0,r.A)(D,2),F=L[0],P=L[1],W=(0,a.useState)(null),M=(0,r.A)(W,2),B=M[0],U=M[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,o.A)((0,i.A)().m((function e(n,t){var o,r;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,d.q)(n.data,t);case 1:o=e.v,r=o.embedUrl,R(null),E(r||t),j(t),b(!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(){R(null),E(e),j(e),b(!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}),P(!0),void(0,h.xF)(v.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:"";R(e),E(t),j(t),b(!0)}else q(e.uri,e.openInNewTab)}),[q,z]),K=(0,a.useCallback)((function(){return b(!1)}),[]),Y=(0,a.useCallback)((function(){(C||S)&&window.open(C||S)}),[C,S]),X=(0,a.useCallback)((function(){if(O)switch(O.kind){case"video":return(0,g.jsx)(f.default,{url:O.src,contentUUID:z,pageNumber:void 0,autoplay:!0,poster:O.poster,isDialog:!0});case"image":return(0,g.jsx)("img",{src:O.src,alt:"",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",margin:"auto",display:"block"}});case"embed":return(0,g.jsx)("iframe",{title:"embed",src:O.uri,style:{width:"100%",height:"100%",border:0}});case"html":return(0,g.jsx)("iframe",{title:"html",srcDoc:O.html,sandbox:"allow-scripts allow-popups",style:{width:"100%",height:"100%",border:0}})}return S&&c().canPlay(S)?(0,g.jsx)(f.default,{url:S,contentUUID:z,pageNumber:void 0,autoplay:!0,isDialog:!0}):(0,g.jsx)("iframe",{title:"link-dialog",src:S,style:{width:"100%",height:"100%",border:0}})}),[O,S,z]),J=(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsx)(p.default,{openAudioPlayer:F,audioSrc:null!==(t=null==B?void 0:B.audioSrc)&&void 0!==t?t:null,handleCloseAudioPlayer:function(){return P(!1)},contentApiResponse:null==e?void 0:e.content,autoPlay:!0,audioPlayerKey:"Viewer Audio Player",pageNumber:null==B?void 0:B.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 f}});var i,o=t(61755),r=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=(i={},(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)(i,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)(i,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,r.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,i=window.location;return null!=t&&t.id?(0,u.jsxs)(o.mg,{children:[(0,u.jsx)("title",{children:s[i.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},f=d},40472:function(e,n,t){t.r(n),t.d(n,{PDFTOLINK_BANNER_HEIGHT:function(){return d},PDFTOLINK_BANNER_HEIGHT_MOBILE:function(){return f},default:function(){return p}});var i=t(49255),o=t(75700),r=t(85434),a=t(5791),l=t(81114),c=t(84899),s=t(65983),u="https://pdftolink.com",d=44,f=38;function p(e){var n=e.contentId,t=e.backgroundColor,p=(0,o.A)(),m=(0,c.A)().isMobile,h=m?f:d,v=t?p.palette.getContrastText(t):p.palette.common.white,g=(0,i.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:p.palette.customViewer.viewerBackGroundColorDocument,borderTop:"1px solid ".concat((0,r.X4)(v,.08)),cursor:"pointer",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',userSelect:"none",flexShrink:0},onClick:g,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||g()},children:[(0,s.jsx)("span",{style:{fontSize:m?11:13,fontWeight:400,color:(0,r.X4)(v,.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,r.X4)(v,.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,r.X4)(v,.92)},children:"link"})]}),(0,s.jsx)("span",{style:{fontSize:m?10:12,color:(0,r.X4)(v,.35),marginLeft:2},children:"· Create your own for free →"})]})}},41679:function(e,n,t){t.d(n,{g:function(){return i}});var i="SET_HTML_SNIPPETS"},42156:function(e,n,t){t.d(n,{Y:function(){return o}});var i=t(77167),o=function(e){return function(n){n({type:i.L,payload:e})}}},42883:function(e,n,t){t.d(n,{W:function(){return r.W},J:function(){return a}});var i=t(81114),o=t(5791),r=t(94541),a=function(e,n){return function(t){var a=i.qW.CLOSE_SHARE,l={};e&&(a=i.qW.OPEN_SHARE,l={source:n}),(0,o.xF)(a,l),t({type:r.W,payload:{isMobileMenuOpen:e}})}}},45051:function(e,n,t){t.d(n,{L:function(){return i}});var i="SET_CELERO_FORM_BUILDER"},45332:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var i=t(91212),o=t(10467),r=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,r.A)(n,2),d=t[0],f=t[1],p=function(){var e=(0,o.A)((0,i.A)().m((function e(){var n,t,o,r;return(0,i.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?(o=c.A.sessionStorage.getItem("tab_id"),(0,s.I1)({tab_id:o})):(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,r=e.v,(0,l.ZI)("error in SessionHandler "+r);case 5:f(!1);case 6:return e.a(2)}}),e,null,[[0,4]])})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){p()}),[]),(0,u.jsxs)(u.Fragment,{children:[" ",!d&&e.children]})},f=d},45967:function(e,n,t){t.r(n),t.d(n,{default:function(){return p}});var i=t(49255),o=t(47081),r=t(79218),a=t(50471),l=(0,t(20535).A)((function(e){return{iframe:{width:"100%",height:"100%"},dialogContainerStyle:{display:"flex",height:"100%"},contentWrapper:{display:"flex"},iconsWrapper:{position:"absolute",right:"0",display:"flex",flexDirection:"row-reverse"},openNewWidowIconStyle:{borderRadius:40,zIndex:e.zIndex.modal+1,backgroundColor:"#09a4c0","&:hover":{backgroundColor:"#0996b5"}},closeIconButtonStyle:{zIndex:e.zIndex.modal+1},dialogIconColor:{color:"#FFFFFF"},backdrop:{backdropFilter:"blur(2.71828px)"},root:{margin:"20px 0 20px 0",background:"transparent !important",overflowY:"visible"},paper:{maxWidth:"fit-content",width:"700px",borderRadius:"16px",backgroundColor:"transparent !important",background:"transparent",boxShadow:"none !important",overflow:"visible",display:"flex",justifyContent:"center",alignItems:"center"}}})),c=t(13249),s=t(27772),u=t(66193),d=t(51053),f=t(65983),p=function(){var e=(0,o.d4)((function(e){return{celeroFormBuilderData:e.celeroFormBuilderData}})).celeroFormBuilderData,n=(0,o.wA)(),t=l();function p(){n((0,s.j)(u.X))}return(0,i.useEffect)((function(){e.open?window.disableNavigation=!0:window.disableNavigation=!1}),[e]),(0,f.jsx)(r.A,{disableEnforceFocus:!0,TransitionComponent:c.A,classes:{root:t.root},slotProps:{backdrop:{classes:{root:t.backdrop}}},PaperProps:{classes:{root:t.paper}},open:e.open,children:(0,f.jsx)(a.A,{formConfig:e.config,afterSubmit:p,sourceOfRender:d._.POPUP,defaultValues:e.defaultValues,onCancel:p})})}},46697:function(e,n,t){t.d(n,{b:function(){return i}});var i="SET_OPEN_PAPER"},46842:function(e,n,t){t.d(n,{A:function(){return x}});var i=t(24507),o=t(75700),r=t(98992),a=t(90945),l=t(12647),c=t(30495),s=t(65983),u=8,d=8,f=function(e){return e?d:u},p=function(e){return f(e)+6},m=(0,i.Ay)("div")((function(e){var n,t=e.theme,i=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=!!i,7*p(n))}})),h=(0,i.Ay)("div")((function(e){var n=e.active,t=e.dotColor,i=e.borderColor,o=e.isMobile,r=e.isFirst,a=e.isLast;return{width:f(!!o),height:f(!!o),borderRadius:"50%",marginLeft:r?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(i):void 0,border:"1px solid ".concat(i)}})),v=(0,i.Ay)(r.A)((function(){return{width:"100vw",boxShadow:"none"}})),g=function(e){var n=(0,o.A)(),t=e.isMobile,i=(0,a.b)(e.companyId||"","panel").stylesheet,r=e.currentPageNumber,u=e.goToPage,d=e.isPresentationMode,f=e.backgroundColor,g=e.pageCount,x=e.mobileActiveTab,w=e.mobileTabs,A=e.onMobileTabChange,b=f?n.palette.getContrastText(f):n.palette.common.white,y=b,_=b;return(0,s.jsxs)("div",{children:[d&&g>1&&(0,s.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center",background:"transparent",marginBottom:"5px"},children:(0,s.jsx)(m,{ismobile:t,centered:g<=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=p(t);if(g<=7)return 2;var n=r-1;return n<5?2:n>=5&&n=g-1?-1*(g-7)*e:0}(),"px)")},children:Array.from({length:g}).map((function(e,n){return{page:n+1,active:r===n+1}})).map((function(e,n,i){return(0,s.jsx)(h,{active:e.active,dotColor:y,borderColor:_,isMobile:t,isFirst:0===n,isLast:n===i.length-1,onClick:function(){return u(e.page)},"aria-label":"Go to page ".concat(e.page)},e.page)}))})})}),e.children,t&&w&&w.length>0&&(0,s.jsxs)(v,{elevation:3,style:{background:f},"data-celero-sp":"panel",className:"switcher",children:[(0,s.jsx)(l.A,{css:i,componentName:"panel"}),(0,s.jsx)(c.A,{items:w,value:x||0,onChange:function(e){return null==A?void 0:A(e)},variant:"fullWidth",color:void 0,iconPosition:"top",className:"tabs"})]}),e.bottomChildren]})};g.displayName="ViewerFooter";var x=g},47206:function(e,n,t){t.d(n,{c:function(){return F}});var i=t(49255),o=t(60436),r=t(89379),a=t(5544),l=t(47081),c=t(27460),s=t(34730),u=t(32388),d=t(74484),f=t(57957),p=t(24507),m=t(87162),h=t(81076),v=t(25728),g=t(95792),x=(0,p.Ay)(h.A)((function(e){var n=e.theme;return{position:"absolute",top:m.O5+19,right:24,zIndex:n.zIndex.modal-1}})),w=(0,p.Ay)(v.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,p.Ay)(g.A)((function(){return{paddingLeft:0}})),b=(0,p.Ay)(g.A)({padding:0}),y=(0,p.Ay)(h.A)({height:"100%",color:"#4E606B",fontSize:16,letterSpacing:0,lineHeight:"31px"}),_=((0,p.Ay)(h.A)({width:16,height:16}),t(21661)),S=t(39863),E=t(60873),I=t(44444),k=t(81046),C=t(5791),j=t(81114),T=t(15893),N=t(65983),O=function(e){var n=(0,l.wA)(),t=(0,i.useState)(),p=(0,a.A)(t,2),m=p[0],h=p[1],v=(0,i.useState)(1),g=(0,a.A)(v,2),O=g[0],R=g[1],D=(0,i.useState)(0),L=(0,a.A)(D,2),F=L[0],P=L[1],W=(0,i.useState)(""),M=(0,a.A)(W,2),B=M[0],U=M[1],V=(0,i.useState)(!1),z=(0,a.A)(V,2),H=z[0],q=z[1],G=(0,i.useState)(""),K=(0,a.A)(G,2),Y=K[0],X=K[1],J=(0,i.useRef)(),Z=(0,i.useRef)(0),$=(0,i.useRef)([]),Q=(0,i.useRef)([]),ee=(0,i.useRef)([]),ne=(0,i.useRef)(null),te=e.contentId,ie=e.isOpen,oe=e.closeSearch,re=e.handleNavigateBySearchResults,ae=e.currentPage,le=e.shouldRenderHighlight,ce=function(){var e=ee.current;if(e){for(var n=0;n0&&(re(e.result[0].page_number),R(1),P(0)),q(!!(e.result.length=e-1?0:F+1,i=m.result[t];i&&re(i.page_number),P(t),H&&F===10*O-4&&k.A.searchInContent(te,Y,10,O+1,se,n)}},fe=function(e,n,t,i){return e.substring(0,n)+i+e.substring(t)},pe=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:pe},{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,f.ZI)("error in joinWords"+e),""}},ve=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+i))return 0;var t=document.getElementById("p".concat(ae+i));if(!t)return{v:void 0};var r=(null===(n=t.querySelector(".text-container"))||void 0===n?void 0:n.children)||t.children;if(!r)return{v:void 0};$.current.push(ae+i);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 p=he(c);null!=f&&f.startsWith(p.toLowerCase())?(Q.current.push({index:s,highlightID:"highlightMark".concat(Z.current),elementId:u.id,text:d.substring(0,p.length),position:"start",original:u.innerHTML}),ee.current=[].concat((0,o.A)(ee.current),(0,o.A)(Q.current)),c=a.slice()):l=!1,c=a.slice(),Q.current=[]}if(null!=f&&f.includes(e)){var m=f.indexOf(e),h=m+Y.length,v=null==d?void 0:d.substring(m,h);ee.current.push({index:s,highlightID:"highlightMark".concat(Z.current),elementId:u.id,text:v||"",position:"mid",original:u.innerHTML})}var g=[],x=!1,w=null==f?void 0:f.split(" "),A=w?w.length:-1;if(f!==e||!w||!he(c).includes(w[A])){for(var b=0;b").concat(ee.current[n].text,""),i="";switch(ee.current[n].position){case"start":i=fe(e[ee.current[n].index].innerHTML,0,ee.current[n].text.length,t);var o=document.getElementById(ee.current[n].elementId);o&&(o.innerHTML=i);break;case"end":i=fe(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 r=document.getElementById(ee.current[n].elementId);r&&(r.innerHTML=i);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}}(r)},i=0;i<4;i++)if(0!==(n=t())&&n)return n.v}catch(e){(0,f.ZI)("error in search"+e)}};(0,i.useEffect)((function(){ve()}),[m,ae,le]),(0,i.useEffect)((function(){ie&&J&&J.current&&J.current.select()}),[ie]);var ge=!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?F+1:0,"/").concat(null==m?void 0:m.count),we={color:"#273138",fontSize:"16px"},Ae=(0,N.jsxs)(s.A,{position:"end",sx:{height:"100%",gap:"8px"},children:[0!==B.length&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(y,{children:xe}),(0,N.jsx)(b,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:function(){var e=null==m?void 0:m.count;if(m&&e&&0!==F){var n=m.result[F-1];n&&re(n.page_number),P(F-1)}},children:(0,N.jsx)(E.A,{sx:we})}),(0,N.jsx)(b,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,onClick:de,children:(0,N.jsx)(I.A,{sx:we})})]}),(0,N.jsx)(A,{disableRipple:!0,onClick:function(){X(""),J.current&&(J.current.value=""),ue(""),oe()},children:(0,N.jsx)(u.A,{children:(0,N.jsx)(_.h,{})})})]});return(0,N.jsx)(d.A,{in:ie,children:(0,N.jsx)(x,(0,r.A)((0,r.A)({},me()),{},{children:(0,N.jsx)(w,{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:pe,placeholder:"Search",inputRef:J,autoFocus:!0,InputProps:{startAdornment:ge,endAdornment:Ae}})}))})},R=t(56787),D=t(80922),L=t(58651);function F(e){var n=(0,R.A)().currentPageNumber,t=window.IDRViewer,o=e.contentId,r=(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(),r.isOpen)return;a((0,L.a)(!0,D.I.KEYBOARD)),(0,C.xF)(j.qW.OPEN_SEARCH)}};(0,i.useEffect)((function(){return window.addEventListener("keydown",c,!0),function(){return window.removeEventListener("keydown",c,!0)}}),[c]);return(0,N.jsx)(O,{contentId:o,isOpen:r.isOpen,closeSearch:function(){a((0,L.a)(!1,D.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 i(e,n){var t,i,o,r,a,l,c,s,u,d,f;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===(i=n.goToPage)||void 0===i||i.call(n,e.page,e.silent);break;case"named":var p,m;if("top"===e.name)null===(p=n.goToTop)||void 0===p||p.call(n);else null===(m="next"===e.name?n.next:n.prev)||void 0===m||m();break;case"video":null===(o=n.openVideo)||void 0===o||o.call(n,{src:e.src,autoplay:e.autoplay});break;case"share":null===(r=n.share)||void 0===r||r.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===(f=n.openMicrosite)||void 0===f||f.call(n,e.shorten,e.openInNewTab)}}t.d(n,{w:function(){return i}})},49698:function(e,n,t){t.d(n,{N:function(){return o}});var i=t(87162),o=function(e,n){var t=n||{},o=t.headerOffset,r=void 0===o?i.Hi:o,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-r,behavior:"smooth"})}})))}},50471:function(e,n,t){t.d(n,{A:function(){return xe}});var i=t(20454),o=t(80045),r=t(60436),a=t(5544),l=t(64467),c=t(91212),s=t(10467),u=t(89379),d=t(49255),f=t(27224),p=t(12558),m=t(5084),h=t(47081),v=t(92049),g=t(51053),x=t(91250),w=t(25728),A=t(20535),b=t(13989),y=t(65983),_=(0,A.A)((function(){return(0,b.A)({inputLabelShrink:{transform:"translate(14px, -6px) scale(0.75)"},formControlRoot:{}})})),S={marginBottom:"16px"},E={fontSize:"14px",color:"#4E606B"},I={fontSize:"16px",color:"#4E606B"},k=function(e){var n=e.name,t=e.label,i=e.type,o=void 0===i?"text":i,r=e.customStyles,l=_(),c=(0,f.Mt)(n),s=(0,a.A)(c,2),d=s[0],p=s[1];return(0,y.jsx)("div",{style:(0,u.A)((0,u.A)({},S),null==r?void 0:r.container),children:(0,y.jsx)(w.A,(0,u.A)((0,u.A)({},d),{},{type:o,label:t,variant:"outlined",fullWidth:!0,error:p.touched&&Boolean(p.error),helperText:p.touched&&p.error?p.error:"",InputLabelProps:{classes:{shrink:l.inputLabelShrink},style:(0,u.A)((0,u.A)({},E),null==r?void 0:r.label)},InputProps:{style:(0,u.A)((0,u.A)({},I),null==r?void 0:r.input)},classes:{root:l.formControlRoot}}))})},C=t(81076),j=t(82788),T=t(52396),N=t(98312),O=function(e){var n=e.name,t=e.label,o=e.customStyles,r=(0,f.Mt)({name:n,type:"checkbox"}),l=(0,a.A)(r,2),c=l[0],s=l[1];return(0,y.jsxs)(C.A,{mb:2,style:null==o?void 0:o.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==o?void 0:o.label,children:(0,y.jsx)(v.$,{components:{p:function(e){var n=Object.assign({},((0,i.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]})},R=t(26308),D=t(5720),L=t(57798),F=t(52218),P=function(e){var n,t=e.name,i=e.label,o=e.options,r=e.customStyles,l=(0,f.Mt)(t),c=(0,a.A)(l,2),s=c[0],u=c[1],d=(0,f.j7)().setFieldValue;return(0,y.jsxs)(R.A,{component:"fieldset",error:u.touched&&Boolean(u.error),style:null==r?void 0:r.container,children:[(0,y.jsx)(D.A,{component:"legend",style:null==r?void 0:r.label,children:i}),(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,i=o.find((function(e){return e.value.toString()===n}));d(t,i?i.value:n)},children:o.map((function(e){return(0,y.jsx)(j.A,{value:e.value.toString(),control:(0,y.jsx)(F.A,{color:"primary",style:null==r?void 0:r.input}),label:e.label},e.value.toString())}))}),u.touched&&u.error&&(0,y.jsx)(N.A,{children:u.error})]})},W=t(54758),M=t(62516),B=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,i=e.options,o=e.customStyles,r=(0,f.Mt)(n),l=(0,a.A)(r,2),c=l[0],s=l[1];return(0,y.jsx)("div",{style:(0,u.A)((0,u.A)({},U),null==o?void 0:o.container),children:(0,y.jsxs)(R.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==o?void 0:o.label),children:t}),(0,y.jsx)(M.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==o?void 0:o.input)},children:i.map((function(e){return(0,y.jsx)(B.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,i){var o;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)(O,{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)(P,{name:e.name,label:e.label+"".concat("required"===e.validation?"*":""),options:e.options,customStyles:null==n?void 0:n.radio},e.name);case"select":return(0,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)(p.A,{style:(0,u.A)((0,u.A)({},(null==n?void 0:n.button)||{}),(null===(o=e.customStyles)||void 0===o?void 0:o.button)||{}),onClick:function(){return t&&t(e.action,e)},disabled:i,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),ie=t(93593),oe=t(21661),re=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,i){return n.includes(i)||(t[i]=ue(e[i],n)),t}),{}):e}function de(e,n){var t=(0,u.A)({},e);return n&&Object.keys(n).forEach((function(i){var o=e[i],r=n[i];o&&r&&"object"==typeof o&&"object"==typeof r&&!Array.isArray(o)&&!Array.isArray(r)?t[i]=de(o,r):t[i]=r})),t}function fe(e){var n=e.onCancel;return(0,y.jsx)(p.A,{onClick:n,style:{position:"absolute",top:5,right:5,minWidth:0,padding:"2px",lineHeight:1,fontSize:"18px",fontWeight:"bold"},children:(0,y.jsx)(oe.h,{})})}var pe={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(pe,e||{})},he=function(e){var n,t,i,o,r,a,d,v,x,w,A,b,_=e.formConfig,S=e.afterSubmit,E=e.sourceOfRender,I=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===(i=j.palette)||void 0===i||null===(o=i.customViewer)||void 0===o?void 0:o.appLogo)||(null==j||null===(r=j.palette)||void 0===r||null===(a=r.customStyles)||void 0===a?void 0:a.viewerLogo)||(null==j||null===(d=j.palette)||void 0===d||null===(v=d.customStyles)||void 0===v?void 0:v.appLogo),N=C.customStyles,O=C.title,R=C.withLogo,D=C.fields,L=C.submitUrl,F=E!==g._.LANDING_PAGE&&C.can_reject,P=(null==_||null===(x=_.display)||void 0===x||null===(w=x.fields)||void 0===w?void 0:w.filter((function(e){return!0===e.pii})).map((function(e){return e.name})))||[],W=me(N),M=E===g._.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===(b=W.formContainer)||void 0===b?void 0:b.maxWidth)||"90vw"}):W.formContainer,B=(0,u.A)((0,u.A)({},q(D)),null!=I&&I.show&&(null==I?void 0:I.values)||{}),U=Y(D),V={formConfig:_,sourceOfRender:E},z=(0,$.jy)(V),H=function(){var e=(0,s.A)((0,c.A)().m((function e(n,t){var i,o,r,a,l,s,d,f;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return r=ue((0,u.A)({},n),P),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,f=e.v,l=!1,s=(null==f?void 0:f.message)||"Form submission failed",(0,ee.ZI)(f,{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:E}}});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===(i=_.type)||void 0===i?void 0:i.toLowerCase())?"https://p2api-capi.celero.io/crm/api/visitor/identify":null==_||null===(o=_.display)||void 0===o?void 0:o.submitUrl,webhookPayload:r,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)(f.l1,{initialValues:B,validationSchema:U,onSubmit:H,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(f.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"standard")),{},{onChange:z,style:(0,u.A)((0,u.A)({},M),{},{position:"relative"}),children:[F&&(0,y.jsx)(fe,{onCancel:k}),R&&(0,y.jsx)("img",{style:W.logo,src:T,alt:"logo"}),(0,y.jsx)(m.A,{style:W.title,children:O}),D.map((function(e){return X(e,W.fieldStyles)})),(0,y.jsx)(p.A,{type:"submit",variant:"contained",color:"primary",disabled:n,style:W.submitButton,children:"Submit"})]}))}})},ve=function(e){var n,t,i,p,v,w,A,b,_,S,E,I=e.formConfig,k=e.afterSubmit,C=e.sourceOfRender,j=e.defaultValues,T=e.onCancel,N=e.initialResponse,O=I.display,R=(0,h.d4)((function(e){return{shortenData:e.shortenData,theme:e.theme}})),D=R.shortenData,L=R.theme,F=O.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===(i=L.palette)||void 0===i||null===(p=i.customViewer)||void 0===p?void 0:p.appLogo)||(null==L||null===(v=L.palette)||void 0===v||null===(w=v.customStyles)||void 0===w?void 0:w.viewerLogo)||(null==L||null===(A=L.palette)||void 0===A||null===(b=A.customStyles)||void 0===b?void 0:b.appLogo),P=O.customStyles,W=O.title,M=O.withLogo,B=O.fields,U=O.identityField,V=O.hiddenFields,z=void 0===V?[]:V,H=C!==g._.LANDING_PAGE&&O.can_reject,G=(null==I||null===(_=I.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(P),Z={formConfig:I,sourceOfRender:C},ne=(0,$.jy)(Z,$.Xp.IDENTITY),oe=(0,$.jy)(Z,$.Xp.OTP),ae=(0,$.jy)(Z,$.Xp.ADDITIONAL_FIELDS),le=ie.E.getIntegrationsNeededData(),ce=B.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)||{}):{},pe=ce?Y([ce]):void 0,he={name:"otp",label:"Your one-time password",type:"text",validation:"required"},ve=(0,l.A)({},he.name,""),ge=x.Ik().shape((0,l.A)({},he.name,x.Yj().required("One-time password is required"))),xe=1,we="",Ae=(0,re.eM)(null==D||null===(E=D.company)||void 0===E?void 0:E.account_id),be={},ye=[],_e="";if(N){var Se,Ee=N.access_status;if("RETURN_OTP_GENERATED"===Ee||"RETURN_OTP_EXPIRED"===Ee)xe=2,we=(null===(Se=N.user_context)||void 0===Se?void 0:Se.session_id)||"",be=N.collectedData||{},"RETURN_OTP_EXPIRED"===Ee&&(_e="OTP has expired. Please enter the new OTP.");else if("RETURN_GET_USER_FIELDS_NEEDED"===Ee){var Ie,ke;xe=3,we=(null===(Ie=N.user_context)||void 0===Ie?void 0:Ie.session_id)||"",Ae=(null===(ke=N.user_context)||void 0===ke?void 0:ke.access_token)||Ae,be=N.collectedData||{};var Ce=N.user_fields_needed||[];ye=B.filter((function(e){var n=Ce.includes(e.name),t=z.includes(e.name);if(n&&!t)return!0;if(t){var i,o=null==j||null===(i=j.values)||void 0===i?void 0:i[e.name],r=le[e.name];return o||r}return!1}))}}var je=(0,d.useState)(xe),Te=(0,a.A)(je,2),Ne=Te[0],Oe=Te[1],Re=(0,d.useState)(be),De=(0,a.A)(Re,2),Le=De[0],Fe=De[1],Pe=(0,d.useState)(_e),We=(0,a.A)(Pe,2),Me=We[0],Be=We[1],Ue=(0,d.useState)(we),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,re.eK)(null==D||null===(n=D.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 i,a,s,d,f,p,m,h,v,g,x,w,A,b,y,_,S,E,T,N,O,R,L,F,P,W,M,V,H,q,K,Y,X,Q,ne,te;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return _={},S=ie.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])})),E=(0,l.A)({},U,n[U]),T=(0,u.A)((0,u.A)((0,u.A)({},_),n),E[U]?{identity:E}:{}),N={account_id:null===(i=window.contactNeededIntegrationData)||void 0===i?void 0:i.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===(f=window.contactNeededIntegrationData)||void 0===f?void 0:f.version_id,access_type:null===(p=D.access_control)||void 0===p?void 0:p.min_stage,access_token:Ke,user_input:JSON.stringify(T),user_context:JSON.stringify((0,u.A)({form_id:I.id,integration_id:I.integration_id,microsite_name:null==D||null===(m=D.versions)||void 0===m||null===(h=m[0])||void 0===h||null===(v=h.version_details)||void 0===v?void 0:v.name,account_id:null===(g=window.contactNeededIntegrationData)||void 0===g?void 0:g.account_id,visitor_id:(null===(x=window.contactNeededIntegrationData)||void 0===x?void 0:x.visitor_id)||"NOVISITORID",integration:null===(w=window.contactNeededIntegrationData)||void 0===w?void 0:w.integration,celero_id:null===(A=window.contactNeededIntegrationData)||void 0===A?void 0:A.celero_id,version_id:null===(b=window.contactNeededIntegrationData)||void 0===b?void 0:b.version_id,access_type:null===(y=D.access_control)||void 0===y?void 0:y.min_stage},ze&&{session_id:ze}))},O=2===Ne?$.Xp.OTP:3===Ne?$.Xp.ADDITIONAL_FIELDS:$.Xp.IDENTITY,R=2===Ne?$.gz.OTP:3===Ne?$.gz.ADDITIONAL_FIELDS:$.gz.IDENTIFY,L="https://p2api-capi.celero.io/crm/api/visitor/identify",F=ue((0,u.A)({},T),[].concat((0,r.A)(G),["otp"])),e.p=1,Be(""),e.n=2,J.A.visitorIdentify(N);case 2:if(P=e.v,W=(null==P?void 0:P.user_context)||{},W.access_token,M=(0,o.A)(W,se),(0,$.I5)(Z,{actionType:R,step:O,success:void 0!==(null==P?void 0:P.access_status),status:null==P?void 0:P.access_status,errorMessage:"ALLOWED"===(null==P?void 0:P.access_status)||null==P?void 0:P.message,webhookUrl:L,webhookPayload:F,webhookResponse:(0,u.A)((0,u.A)({},P),{},{user_context:Object.keys(M).length?M:void 0})}),"RETURN_OTP_GENERATED"!==P.access_status){e.n=3;break}return(null===(V=P.user_context)||void 0===V?void 0:V.session_id)&&He(null===(H=P.user_context)||void 0===H?void 0:H.session_id),Oe(2),t.setSubmitting(!1),e.a(2);case 3:if("RETURN_OTP_EXPIRED"!==P.access_status){e.n=4;break}return(null===(q=P.user_context)||void 0===q?void 0:q.session_id)&&He(null===(K=P.user_context)||void 0===K?void 0:K.session_id),Oe(2),Be("OTP has expired. Please enter the new OTP."),t.setSubmitting(!1),e.a(2);case 4:if("ALLOWED"!==P.access_status){e.n=5;break}return null!==(Y=P.user_context)&&void 0!==Y&&Y.access_token&&Qe(P.user_context.access_token),Be(""),k({response:P,payload:T}),e.a(2);case 5:if("RETURN_GET_USER_FIELDS_NEEDED"!==P.access_status){e.n=6;break}return null!==(X=P.user_context)&&void 0!==X&&X.access_token&&Qe(P.user_context.access_token),Fe(n),Q=P.user_fields_needed||[],ne=B.filter((function(e){var n=Q.includes(e.name),t=z.includes(e.name);if(n&&!t)return!0;if(t){var i,o=null==j||null===(i=j.values)||void 0===i?void 0:i[e.name],r=S[e.name];return o||r}return!1})),$e(ne),Oe(3),t.setSubmitting(!1),e.a(2);case 6:Be(P.message||"Access not allowed"),t.setSubmitting(!1),e.n=8;break;case 7:e.p=7,te=e.v,Be("Something went wrong, please try again."),t.setSubmitting(!1),(0,$.I5)(Z,{actionType:R,step:O,success:!1,errorMessage:(null==te?void 0:te.message)||"Visitor identify failed",webhookUrl:L,webhookPayload:F}),(0,ee.ZI)(te,{tags:{path:"form-builder-identify",form_id:String(null==I?void 0:I.id)},context:{form:{id:null==I?void 0:I.id,type:null==I?void 0:I.type,step:O,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&&pe&&(0,y.jsx)(f.l1,{initialValues:de,validationSchema:pe,onSubmit:en,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(f.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"identify")),{},{onChange:function(e){ne(e),Me&&Be("")},style:(0,u.A)((0,u.A)({},K.formContainer),{},{position:"relative"}),children:[H&&(0,y.jsx)(fe,{onCancel:T}),M&&F&&(0,y.jsx)("img",{style:K.logo,src:F,alt:"logo"}),(0,y.jsx)(m.A,{style:K.title,children:W}),X(ce,K.fieldStyles),Me&&(0,y.jsx)(m.A,{color:"error",children:Me}),(0,y.jsx)(te.A,{type:"submit",variant:"contained",color:"primary",style:K.submitButton,isLoading:n,children:"Continue"})]}))}}),2===Ne&&(0,y.jsx)(f.l1,{initialValues:ve,validationSchema:ge,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)(f.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"identify-otp")),{},{onChange:function(e){oe(e),Me&&Be("")},style:(0,u.A)((0,u.A)({},K.formContainer),{},{position:"relative"}),children:[H&&(0,y.jsx)(fe,{onCancel:T}),M&&F&&(0,y.jsx)("img",{style:K.logo,src:F,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%"}})})),Me&&(0,y.jsx)(m.A,{color:"error",children:Me}),(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)(f.l1,{initialValues:nn,validationSchema:tn,onSubmit:en,children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(f.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)(fe,{onCancel:T}),M&&F&&(0,y.jsx)("img",{style:K.logo,src:F,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)})),Me&&(0,y.jsx)(m.A,{color:"error",style:{marginBottom:"16px"},children:Me}),(0,y.jsx)(te.A,{type:"submit",variant:"contained",color:"primary",style:K.submitButton,isLoading:n,children:"Submit"})]}))}})]})},ge=function(e){var n,t,o,r,a,d,p,g,x=e.formConfig,w=e.afterSubmit,A=e.sourceOfRender,b=e.defaultValues,_=(0,h.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData,theme:e.theme}})),S=_.gdpr,E=_.shortenData,I=_.theme,k=x.display.logo_url||(null==I||null===(n=I.palette)||void 0===n||null===(t=n.customViewer)||void 0===t?void 0:t.viewerLogo)||(null==I||null===(o=I.palette)||void 0===o||null===(r=o.customViewer)||void 0===r?void 0:r.appLogo)||(null==I||null===(a=I.palette)||void 0===a||null===(d=a.customStyles)||void 0===d?void 0:d.viewerLogo)||(null==I||null===(p=I.palette)||void 0===p||null===(g=p.customStyles)||void 0===g?void 0:g.appLogo),C=x.display,j=C.customStyles,T=C.title,N=C.withLogo,O=C.fields,R=void 0===O?[]:O,D=x.display.message,L=me(j),F=(0,u.A)((0,u.A)({},q(R)),null!=b&&b.show&&(null==b?void 0:b.values)||{}),P=Y(R),W={formConfig:x,sourceOfRender:A},M=(0,$.jy)(W),B=function(){var e=(0,s.A)((0,c.A)().m((function e(n,t){var i,o,r,a,l,u,d,f,p,m,h,v,g,b,y,_,I;return(0,c.A)().w((function(e){for(;;)switch(e.n){case 0:return p=void 0,"accept"===n&&(p=!0),"reject"===n&&(p=!1),m=(0,Z.xF)(ne.qW.GDPR_CONSENT,{value:p,source:"gdprform"},!0,!0),e.n=1,ce.A.waitForCeleroId();case 1:h=e.v,v=ie.E.getIntegrationsNeededData(h),g=S.integration.data.visitor_param,b=S.integration.data.url_parameter,y=v[g],_=v[b+"_url_param"],I={account_id:null==E||null===(i=E.company)||void 0===i?void 0:i.account_id,visitor_id:y||"NOVISITORID",integration:S.integration.name,celero_id:h,version_id:(null==E||null===(o=E.versions)||void 0===o||null===(r=o[0])||void 0===r||null===(a=r.version_details)||void 0===a?void 0:a.uuid)||"",url_parameter:_,access_type:null===(l=E.access_control)||void 0===l?void 0:l.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==E||null===(u=E.versions)||void 0===u||null===(d=u[0])||void 0===d||null===(f=d.version_details)||void 0===f?void 0:f.name}),user_input:JSON.stringify({gdpr_consent_value:p})},J.A.visitorIdentify(I).then(function(){var e=(0,s.A)((0,c.A)().m((function e(t){var i,o,r,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),w({gdpr_consent_value:p,response:t}),window.dispatchEvent(new CustomEvent("celeroGDPRFormSubmit",{detail:{gdpr_consent_value:p,response:t}})),o=(0,$.I5)(W,{actionType:n,webhookUrl:null==x||null===(i=x.display)||void 0===i?void 0:i.submitUrl,webhookPayload:{gdpr_consent_value:p},webhookResponse:t,keepalive:!0}),p){e.n=2;break}if(!(l=null===(r=S.integration)||void 0===r||null===(a=r.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,o]);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:p}}),(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:p,source_of_render:A}}})}));case 2:return e.a(2)}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,y.jsx)(f.l1,{initialValues:F,validationSchema:P,onSubmit:function(){},children:function(e){var n=e.isSubmitting;return(0,y.jsxs)(f.lV,(0,u.A)((0,u.A)({},(0,l.A)({},Q.M,"gdpr")),{},{onChange:M,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}),D&&(0,y.jsx)(v.$,{components:{p:function(e){var n=Object.assign({},((0,i.A)(e),e));return(0,y.jsx)(m.A,(0,u.A)((0,u.A)({},n),{},{style:L.message}))}},children:D}),R.filter((function(e){return"button"!==e.type})).map((function(e){return X(e,L.fieldStyles,B,n)})),R.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:R.filter((function(e){return"button"===e.type})).map((function(e){var t,i,o,r;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===(i=L.fieldStyles)||void 0===i?void 0:i.button)?{}:(null===(o=L.fieldStyles)||void 0===o||null===(r=o.button)||void 0===r?void 0:r.container)||{}),children:X(e,L.fieldStyles,B,n)},e.name)}))})]}))}})},xe=function(e){var n,t=e.formConfig,i=e.afterSubmit,o=e.sourceOfRender,r=e.defaultValues,a=e.onCancel,l=e.initialResponse,c={formConfig:t,sourceOfRender:o};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)(ve,{formConfig:t,afterSubmit:i,sourceOfRender:o,defaultValues:r||{show:!1,values:{}},onCancel:s,initialResponse:l});case"gdprform":return(0,y.jsx)(ge,{formConfig:t,afterSubmit:i,sourceOfRender:o,defaultValues:r||{show:!1,values:{}},onCancel:s});default:return(0,y.jsx)(he,{formConfig:t,afterSubmit:i,sourceOfRender:o,defaultValues:r||{show:!1,values:{}},onCancel:s})}}},50728:function(e,n,t){t.r(n);var i=t(50471),o=t(65983);n.default=function(){return(0,o.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh"},children:(0,o.jsx)(i.A,{sourceOfRender:"form-test",formConfig:{integration_id:0,integration_name:"CCRMCELERO",id:1,platform:"celero",type:"identifyform",display_name:"Celero local form",display:{display_name:"Celero local form",title:"Please register to continue reading",submitUrl:"https://example.com/api/submit",withLogo:!0,identityField:"email",hiddenFields:["account_id","celero_id","version_id","restrict_access","visitor_id"],fields:[{name:"email",label:"Email",type:"text",validation:"required",validationType:"email"},{name:"firstName",label:"First Name",type:"text",validation:"required"},{name:"lastName",label:"Last Name",type:"text",validation:"required"},{name:"financialProfessional",label:"Are you a financial professional?",type:"radio",validation:"required",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]}],customStyles:{formContainer:{padding:"24px",maxWidth:"400px",margin:"auto",textAlign:"center",backgroundColor:"white"},logo:{width:"40%",height:"auto",objectFit:"contain",display:"block",flexShrink:0,aspectRatio:"auto"},title:{fontWeight:"bold"},submitButton:{backgroundColor:"black",color:"white",padding:"8px",width:"100%",fontSize:"24px",height:"57px"},fieldStyles:{text:{container:{},input:{borderRadius:0},label:{fontWeight:"medium",color:"black"}},radio:{container:{paddingLeft:10,textAlign:"start",display:"flex",flexDirection:"column",alignItems:"start"},label:{fontWeight:"bold",marginBottom:"5px",color:"black",textAlign:"start"}}}}}},afterSubmit:function(){},onCancel:function(){}})})}},51053:function(e,n,t){t.d(n,{_:function(){return i}});var i={POPUP:"popup",LANDING_PAGE:"landing page"}},52473:function(e,n,t){var i,o=t(89379),r=t(91212),a=t(10467),l=t(74859),c=t(57957),s=t(37981),u=t(73977),d=t(44415),f=t(93593),p=t(38607),m={getCompanyIntegrations:(i=(0,a.A)((0,r.A)().m((function e(n){var t,i,o,a,s,u=arguments;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return t=u.length>1&&void 0!==u[1]?u[1]:[],i=u.length>2&&void 0!==u[2]?u[2]:{},o=u.length>3&&void 0!==u[3]?u[3]:[],a=(0,d.s_)(i),a+=n?"&account_id=".concat(n):"",e.n=1,p.A.waitForCeleroId();case 1:return(s=e.v)||(0,c.ZI)("Unable to get celero id in getCompanyIntegrations functionality"),a+=(0,d.s_)(f.E.getIntegrationsNeededData(s)),a+=s?"&celero_id=".concat(s):"",t.forEach((function(e){a+="&integrations_ids[]=".concat(e)})),o.forEach((function(e){a+="&types[]=".concat(e)})),e.a(2,l.Ay.get("/api/external/integrations/?".concat(a)).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't get list of integrations :"+e),Promise.reject(e)})))}}),e)}))),function(e){return i.apply(this,arguments)}),createContact:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,o.A)((0,o.A)({},t),{},{properties:(0,o.A)({},n)});return l.Ay.post("/api/external/integrations/".concat(e,"/create-lead/"),i).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't create contact of an integrations :"+e),Promise.reject(e)}))},getIntegrationForms:function(e){return l.Ay.get("/api/external/integrations/".concat(e,"/forms/")).then((function(e){if(e&&e.data)return e.data})).catch((function(e){return(0,c.ZI)("Couldn't get list of integration forms :"+e),Promise.reject(e)}))},visitorIdentify:function(e){var n=e.account_id,t=e.visitor_id,i=e.integration,o=e.celero_id,r=e.url_parameter,a=e.version_id,d=e.access_token,f=e.access_type,p=e.user_context,m=e.user_input,h={account_id:n,visitor_id:t,integration:i,celero_id:o,url_parameter:r,version_id:a,access_token:d,access_type:f,user_context:p,user_input:m};return l.th.post("/crm/api/visitor/identify",h).then((function(e){if(e&&e.data)return e.data.gate_token&&a&&(0,u.AB)(a,e.data.gate_token),e.data})).catch((function(e){var t,r=(0,s.p)(e);return r.no_response&&"ERR_NETWORK"===r.code?((0,c.FF)("visitorIdentify network error (no response)",{integration:i,visibility:r.visibility,online:r.online,duration_ms:r.duration_ms}),Promise.reject(e)):((0,c.ZI)(e,{tags:{api:"visitorIdentify",integration:i,error_code:r.code||"no-code",http_status:r.status,online:r.online,visibility:r.visibility,no_response:r.no_response,effective_type:null===(t=r.connection)||void 0===t?void 0:t.effective_type,hostname:"undefined"!=typeof window?window.location.hostname:void 0},context:{request:{method:r.method,url:r.url,base_url:r.base_url,request_id:r.request_id,duration_ms:r.duration_ms,signal_aborted:r.signal_aborted,signal_reason:r.signal_reason,request_headers:r.request_headers},response:{status:r.status,status_text:r.status_text,response_headers:r.response_headers,data_preview:r.response_data_preview},connection:r.connection,body:{account_id:n,integration:i,version_id:a,access_type:f,celero_id:o}},fingerprint:["visitorIdentify",i,r.code||"no-code",String(r.status)]}),Promise.reject(e))}))}};n.A=m},52484:function(e,n,t){t.r(n);var i=t(26811);n.default=i.L},55637:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var i=t(60723),o=(0,t(20535).A)((function(){return{container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",width:"100%"},svgContainer:{display:"flex",justifyContent:"center",height:"100%",alignItems:"center"}}})),r=t(66241),a=t(65983),l=function(){var e=o(),n=e.container,t=e.svgContainer;return(0,a.jsx)(i.Ay,{container:!0,justifyContent:"center",spacing:0,className:n,children:(0,a.jsx)(i.Ay,{item:!0,lg:6,xs:12,className:t,children:(0,a.jsx)(r.ReactComponent,{})})})}},55737:function(e,n,t){t.d(n,{A2:function(){return s},bY:function(){return l},z4:function(){return c}});var i=t(20535),o=t(17141),r=t(812),a=t(85434),l=15,c=(0,i.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,o.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)}}}}}}))(r.A)},56115:function(e,n,t){t.d(n,{A:function(){return re}});var i=t(89379),o=t(91212),r=t(10467),a=t(5544),l=t(87162),c=t(49255),s=t(70914),u=t(75700),d=t(58422),f=t(20535),p=(0,f.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=p(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 v=t(98974),g=t(47081),x=t(40428),w=t(92765),A=t(4134),b=t(77236),y=c.memo((function(e){var n=c.useState(!1),t=(0,a.A)(n,2),i=t[0],o=t[1],r=(0,A.ZI)()===b.V.Mobile;return(0,c.useEffect)((function(){r?(0,w.Qc)((function(){o(!0)}),1e3):o(!0)}),[]),(0,m.jsx)(g.Kq,{store:x.A,children:(0,m.jsx)(v.A,{theme:e.theme,children:i&&e.children})})}));y.displayName="AnnotationsWrapper";var _=(0,f.A)((function(){return{shareAnnotation:{width:"100%",height:"100%",cursor:"pointer"},divAnnotation:{position:"relative",width:"100%",height:"100%",clear:"both"}}})),S=t(81114),E=t(44415),I=t(81068),k=t(3895),C=t.n(k),j=t(96790),T=t(95458),N=t(97027),O=t(50471),R=t(56787),D=t(9551),L=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,52484))})),F=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,98874))})),P=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),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(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,21970))})),M=(0,c.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,29431))})),B=(0,c.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,70819))})),U=function(e,n){var t,i,o,r;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===(i=n.action)||void 0===i?void 0:i.type)&&(null==e||null===(o=e.action)||void 0===o?void 0:o.uri)===(null==n||null===(r=n.action)||void 0===r?void 0:r.uri)&&function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return e.every((function(e,i){return Math.abs(+e-+n[i])<=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,f=e.contentLastPageNumber,p=e.contentUUID,v=e.contentViewerTheme,g=e.zIndex,x=e.handleAnnotationClick,w=e.baseURL,b=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.A.parse(window.location.search),Z=(0,R.A)(),$=Z.currentZoomSettings,Q=Z.loadedPages,ee=(0,c.useRef)(new Map),ne=(0,c.useCallback)((function(e,n,t,i,o){var r=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=i,s.style.left=o,s.style.zIndex=r,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 i=t.match(/matrix\(([^)]+)\)/);if(i)return i[1].split(",").map((function(e){return parseFloat(e.trim())}))[0]||1}var o=n.parentElement;if(o){var r=window.getComputedStyle(o).transform;if(r&&"none"!==r){var a=r.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),i=t>0?t:1,o=[];ee.current.forEach((function(n,t){if(t.startsWith("page-".concat(e,"-"))){var r=n.dataset.originalBounds,a="true"===n.dataset.isAnchorAnnotation,l="true"===n.dataset.isFormAnnotation;if(r){var c=JSON.parse(r),s=parseFloat(c[2]),u=parseFloat(c[3]),d=window.innerWidth<=768,f=n.querySelector('[data-annotation-form-content="true"]'),p=1/i;d||a||!l||o.push((function(){n.style.width="".concat(s*i,"px"),n.style.height="".concat(u*i,"px"),n.style.overflow="auto",n.style.transform="scale(".concat(p,")"),n.style.transformOrigin="top left",f&&(f.style.transform="scale(".concat(p,")"),f.style.transformOrigin="top left",f.style.width="".concat(100/p,"%"),f.style.height="".concat(100/p,"%"))}))}}})),o.length>0&&requestAnimationFrame((function(){o.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 i=parseInt(t[1]);if(!e.has(i)){var o=ee.current.get(n);o&&o.parentNode&&o.parentNode.removeChild(o),ee.current.delete(n)}}}))}),[Q]);var ie=function(){U(S.T9.ANNOTATION)},oe=(0,c.useRef)({}),re=(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 f=t.pathname,v=new URL(n),w=v.pathname.split("/");if(f===I.U.FORM){var y,_=v.searchParams.get("form_id"),S=v.searchParams.get("source"),k="false"!==v.searchParams.get("remove_on_submit");if(e.form_obj){var N=e.form_obj;y=(0,i.A)((0,i.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 R=parseInt(_,10);y=D.A.get(R)}else y="access_control"===S?D.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 B="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)(O.A,{formConfig:y,afterSubmit:function(){k&&function(){if(null!==B&&void 0!==u){var e="page-".concat(u,"-").concat(B);re(e)}}()},sourceOfRender:"annotation",onCancel:function(){}})})}if("form"===w[1])return oe.current.form||(oe.current.form=[]),oe.current.form.push({uri:n,bounds:s}),(0,m.jsx)(m.Fragment,{});switch(f){case I.U.VIDEO_STANDALONE:var U=v.searchParams.get("src"),V=v.searchParams.get("autoPlay"),z=v.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:p,pageNumber:u,width:+s[2],autoplay:!(!V||"true"!==V),poster:z})}));break;case I.U.IFRAME:var H=v.searchParams.get("src");if(H){var G=(0,A.Ln)(H,!1),K=v.searchParams.get("can_scroll"),Y=v.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:p,pageNumber:u,width:+s[2],autoplay:G})}):(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(P,{src:H,width:s[2],height:s[3],pageNumber:u,canScroll:K&&"true"===K||void 0,scrollTop:Y&&+Y||void 0,contentUUId:p})})}break;case I.U.IMAGE:var X=v.searchParams.get("src");X&&(d=(0,m.jsx)("img",{width:"100%",height:"100%",src:X,alt:"",style:{objectFit:"contain",overflow:"hidden"}}));break;case I.U.AUDIO:var Z=v.searchParams.get("src"),$=v.searchParams.get("is_icon_needed"),Q=v.searchParams.get("should_close_per_slide"),ee=v.searchParams.get("icon_color");Z&&(d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(F,{left:s[0],top:s[1],width:s[2],height:s[3],src:Z,isIconNeeded:!(!$||"true"!==$),handleClick:b,iconColor:ee||void 0,shouldCloseAfterSlideChange:!(!Q||"true"!==Q),pageNumber:u})}));break;case I.U.LINK:var ne=v.searchParams.get("src"),te=v.searchParams.get("open_in_new_tab"),ie=Boolean("true"===te),ae=new URL(ne||""),le="true"===v.searchParams.get("embed")||"true"===ae.searchParams.get("embed"),ce=ne&&(0,j.rS)(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:p,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:g||3,src:ne,annotationPageNumber:u,actionType:l.B4.URI,shouldOpenInNewTab:ie});break;case I.U.VIDEO_DIALOG:var se=v.searchParams.get("src");if(!se)break;var ue=v.searchParams.get("autoPlay"),de=v.searchParams.get("poster")||void 0,fe=ue&&"true"===ue?"yes":"no";se=de?(0,E.He)(se,"poster",de):se,d=(0,m.jsx)(h,{onClick:x,width:s[2],height:s[3],position:"absolute",zIndex:g||3,annotationPageNumber:u,src:se,actionType:l.B4.VideoLink,autoPlay:fe});break;case I.U.CUSTOM_HTML:var pe=v.searchParams.get("id");d=(0,m.jsx)("div",{id:"".concat(pe),className:q,style:{width:"100%",height:"100%"}});break;case I.U.HTML_SNIPPET:var me=v.searchParams.get("snippet");if(!me)break;d=(0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(M,{snippetName:me})});break;case I.U.OEMBED:var he=v.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 I.U.REDIRECT:d=(0,m.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer"},onClick:(0,r.A)((0,o.A)().m((function e(){var n,t;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:n=v.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 I.U.CALLBACK:d=(0,m.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer"},onClick:(0,r.A)((0,o.A)().m((function e(){var n,t,i,r,l,c,s;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(n=J.callbackUrl,t=v.searchParams,n){e.n=1;break}return e.a(2);case 1:if(t)for(i=0,r=Object.entries(t);i0&&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)(F,{width:o[2],height:o[3],src:"".concat(w,"/")+n.src,imgSrc:"".concat(w,"/")+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:p,pageNumber:d,width:+o[2],autoplay:Z,poster:null==a?void 0:a.poster})});break;case l.Is.IMAGE:_=(0,m.jsx)("img",{width:"100%",height:"100%",src:r.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:ie});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 $=v||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(r)," and bound on ").concat(o,". Error: ").concat(e);return null}}),[p,f,v,K,g,x]),ce=(0,c.useRef)(new Map),se=(0,R.A)().loadedPages,ue=(0,c.useCallback)((function(e,n,t){return e.forEach((function(e){var i=null,o=void 0;if("default"==n){if("number"!=typeof(o=t)||!se.includes(o)){if("number"==typeof o)new MutationObserver((function(t,i){document.getElementById("p".concat(o))&&(i.disconnect(),e.type&&ue([e],n,o))})).observe(document.body,{childList:!0,subtree:!0});return}if(ce.current.has(o))return;i=document.getElementById("p".concat(t))}else{var r=e;if("number"!=typeof(o=r.page_number)||!se.includes(o)){if("number"==typeof o)new MutationObserver((function(t,i){document.getElementById("p".concat(o))&&(i.disconnect(),e.page_number&&ue([e],n,o))})).observe(document.body,{childList:!0,subtree:!0});return}if(ce.current.has(o))return;i=document.getElementById("p".concat(r.page_number))}i&&o&&ce.current.set(o,i)})),e.map((function(e){var i,o;if(e.handled)return null;var r="page_number"in e?e.id:"".concat(t," ").concat(e.bounds);if("page_number"in e&&Y.current.includes(r)||X.current.includes(r))return null;var a=ne(e.bounds[2]+"px",e.bounds[3]+"px","absolute",e.bounds[1]+"px",e.bounds[0]+"px",g,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,E.g$)(n);if(!n||"celero"!==t.hostname)return!1;if(t.pathname===I.U.FORM)return!0;try{var i=n.startsWith("http://")||n.startsWith("https://")?n:"https://".concat(n);return"form"===new URL(i).pathname.split("/")[1]}catch(e){return!1}}(null===(i=e.action)||void 0===i?void 0:i.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(" ",""),i=(0,E.g$)(t);if(Boolean(t&&"celero"===i.hostname)){var o=i.pathname;if(o===I.U.LINK)try{var r=new URL(t.startsWith("http")?t:"https://"+t),a=r.searchParams.get("src");if(a){var s=new URL(a),u=("true"===r.searchParams.get("embed")||"true"===s.searchParams.get("embed"))&&C().canPlay(a),d=(0,j.rS)(a);return!u&&!d}}catch(e){return!0}return new Set([I.U.VIDEO_DIALOG,I.U.SHARE,I.U.DOWNLOAD,I.U.IMAGE,I.U.AUDIO,I.U.JS_EVENT,I.U.REDIRECT,I.U.CALLBACK]).has(o)}try{var f="true"===new URL(t.startsWith("http")?t:"https://"+t).searchParams.get("embed"),p=t&&(0,j.rS)(t);return!(f&&C().canPlay(t))&&!p}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,E.g$)(t).pathname)||void 0===n?void 0:n.toLowerCase())||"").includes("/form")}catch(n){return e.toLowerCase().includes("form")}}(null===(o=e.action)||void 0===o?void 0:o.uri).toString();var f=le(e,c,e.bounds,e.action,e.additional_data,e.richmedia,e.appearance,t);return function(){var i=null;"default"==n?i=t:i=e.page_number;var o=ce.current.get(i);if(o&&f){s.render(f,a),o.appendChild(a);var l="page-".concat(i,"-").concat(r);ee.current.set(l,a),null!=i&&te(i),e.handled=!0,"page_number"in e?Y.current.push(r):X.current.push(r)}}}))}),[le,g,Q,te]),de=(0,c.useCallback)((function(e,n){if(document&&document.getElementById("contentContainer")){for(var t=e.pages,i=[],o=0,r=t.length;o0){var h=document.createElement("div");s.render((0,m.jsx)(c.Suspense,{fallback:(0,m.jsx)(m.Fragment,{}),children:(0,m.jsx)(B,{fields:oe.current.form})}),h),p&&p.appendChild(h)}}if(window.requestAnimationFrame((function(){i.forEach((function(e){return e.forEach((function(e){return e&&e()}))}))})),n.length){var v=ue(n,"custom");window.requestAnimationFrame((function(){v.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(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),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(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,66348))})),te=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,96054))})),ie=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,5348))})),oe=(0,c.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,70035))})),re=function(e){var n=e.content,t=(0,R.A)(),s=t.currentPageNumber,u=t.loadedPages,d=(0,Z.p)({content:n}).handleDownloadOriginalPdf,f=(0,Q.B)({content:n}),p=f.triggerShareDialog,h=f.ShareDialogLoader,v=(0,c.useState)([]),g=(0,a.A)(v,2),x=g[0],w=g[1],y=(0,c.useState)(!1),_=(0,a.A)(y,2),I=_[0],k=_[1],C=(0,c.useState)(!1),j=(0,a.A)(C,2),T=j[0],N=j[1],O=(0,c.useState)(!1),D=(0,a.A)(O,2),L=D[0],F=D[1],P=(0,c.useState)(""),W=(0,a.A)(P,2),M=W[0],B=W[1],U=(0,c.useState)(!1),V=(0,a.A)(U,2),z=V[0],re=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),fe=de[0],pe=de[1],me=(0,c.useState)(""),he=(0,a.A)(me,2),ve=he[0],ge=he[1],xe=(0,c.useState)(""),we=(0,a.A)(xe,2),Ae=we[0],be=we[1],ye=(0,c.useState)(0),_e=(0,a.A)(ye,2),Se=_e[0],Ee=_e[1],Ie=(0,c.useState)(!1),ke=(0,a.A)(Ie,2),Ce=ke[0],je=ke[1],Te=(0,c.useState)(null),Ne=(0,a.A)(Te,2),Oe=Ne[0],Re=Ne[1],De=(0,c.useState)(!1),Le=(0,a.A)(De,2),Fe=Le[0],Pe=Le[1],We=(0,A.ZI)()===b.V.Mobile,Me=(0,c.useCallback)(function(){var e=(0,r.A)((0,o.A)().m((function e(t,i,r){var a,l,c,s,u;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return ge(i),e.n=1,(0,J.q)(t.data,i);case 1:if(a=e.v,l=a.canIframe,c=a.embedUrl,pe(c||i),Pe(l),l){e.n=2;break}return setTimeout((function(){window.open(i)})),s={content_id:n.uuid,link_url:i,page_number:r},(0,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,s),e.a(2);case 2:We?F(!0):N(!0);case 3:u={content_id:n.uuid,link_url:i,is_iframe_loadable:l,type_of_dialog:S.KZ.IFRAME_DIALOG,page_number:r},(0,K.xF)(S.qW.OPEN_LINK,u);case 4:return e.a(2)}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}(),[]),Be=(0,c.useCallback)((function(e,t){if(e.includes("https"))X.A.checkIfURIIsValid(e,Me,t).catch((function(){window.open(e)}));else{setTimeout((function(){window.open(e)}));var i={content_id:n.uuid,link_url:e,page_number:t};(0,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,i)}}),[]),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:fe,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:M,type_of_dialog:S.KZ.VIDEO_PLAYER_DIALOG,duration:(0,A.eG)(Se,e)}}(0,K.xF)(S.qW.CLOSE_LINK,t)}),[fe,M,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:M,contentUUID:e,pageNumber:s,autoplay:z,isDialog:!0,poster:ce})});default:return null}}),[Ae,M,n,s,z,ce]),ze=(0,c.useCallback)((function(e){Re(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(fe){window.open(fe,"_blank","noopener,noreferrer");var e={content_id:n.uuid,link_url:fe,page_number:s};(0,K.xF)(S.qW.OPEN_LINK_IN_NEW_TAB,e)}}),[fe]),qe=(0,c.useCallback)((function(){if(Ae===l.B4.URI){var e=fe;return(0,E.g$)(e).hostname.replace("www.","")===window.location.hostname.replace("www.","")&&(e=(0,E.He)(e,"without_navbar","true")),(0,m.jsx)("iframe",{title:"internal-iframe",style:{width:"100%",height:"100%",border:0},src:e})}return null}),[Ae,fe]),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,o,r,a){var c={source:"annotation",goToPage:function(e,n){if(!n){var o=(0,i.A)((0,i.A)({},(0,K.wn)()),{},{page_number:t,value:"GoTo Page ".concat(e),source:"annotation"});(0,K.xF)(S.qW.GO_TO_CLICKED,o);var r={eventName:S.qW.SLIDE_VIEW_STARTED,payload:(0,i.A)({source:S.T9.GO_TO_LINK},(0,K.wn)()),created_at:new Date};window.customEventsHandler&&window.customEventsHandler(r)}t!==e&&window.IDRViewer.goToPage(e)},next:function(){return window.IDRViewer.next()},prev:function(){return window.IDRViewer.prev()},openVideo:function(e){var t,i,o=e.src,r=e.autoplay;t=o,i={content_id:n.uuid,link_url:t,type_of_dialog:S.KZ.VIDEO_PLAYER_DIALOG,source:"annotation"},(0,K.xF)(S.qW.OPEN_LINK,i),re((0,A.Ln)(o,!0,r)),B(o),se((0,A.NN)(o)),F(!0),k(!0),be(l.B4.Video)},openUrl:function(e,n){n?setTimeout((function(){window.open(e)})):Be(e,t),be(l.B4.URI)},share:function(){return p("Annotation",t)},download:function(){return d()},fireJsEvent:function(e){return Ke(e)}};(0,q.w)((0,G.ae)(e,o,r,a),c)}),[]);(0,c.useEffect)((function(){!function(){var e=[];if(n&&n.annotations&&n.annotations.pages){for(var t=n.annotations.pages,i=t.length,o=0;o1&&void 0!==arguments[1]&&arguments[1],t=g(e),i=t===c.o4.MARKETO,o=i?function(e){return Number(e.id.split("_")[1])||0}(e):0;return{formType:t,marketoFormId:o,formElementId:e.id||void 0,isValid:n?i?x(o):"function"==typeof e.checkValidity?e.checkValidity():void 0:void 0}};n.A=function(){var e=(0,r.d4)((function(e){return{marketoFormData:e.marketoFormData}})).marketoFormData,n=(0,r.wA)(),t=(0,o.useRef)(e);(0,o.useEffect)((function(){t.current=e}),[e]),(0,o.useEffect)((function(){var e=new WeakMap,o=function(n){var t=n.currentTarget,i=n.target,o=(null==i?void 0:i.name)||(null==i?void 0:i.id)||"",r=e.get(t);r||(r=new Set,e.set(t,r)),o&&r.has(o)||(o&&r.add(o),(0,m.$z)(w(t),o))},r=function(e){var o=e.currentTarget,r=g(o),s=r===c.o4.MARKETO;s&&e.preventDefault();var h=w(o,!0);if(!s||h.isValid){if((0,m.qz)(h,{actionType:m.gz.SUBMIT}),s){var v,x=null===(v=t.current)||void 0===v?void 0:v.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,p.wn)();n.account_id&&u.A.getCompanyIntegrations(n.account_id).then((function(t){var o,r=t.find((function(n){return n.name===e}));r&&(e===c.o4.MARKETO&&null!=r&&null!==(o=r.data)&&void 0!==o&&o.luid&&(0,d.TV)("luid",r.data.luid,365),(0,p.xF)(l.qW.NEW_LEAD,(0,i.A)((0,i.A)({integration_type:e},n),r.data)))})).catch((function(n){(0,f.FF)("Lead lookup after form submit failed",{message:null==n?void 0:n.message,integration_type:e})}))}}(r)}),2e4)}},s=[],x=function(e){(function(e){return!v.has(e)&&!e.hasAttribute(h)&&!e.hasAttribute("data-celero-no-track")&&"search"!==e.getAttribute("role")})(e)&&(v.add(e),s.push(e),e.addEventListener("change",o),e.addEventListener("submit",r))},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 b=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach(A)}))}));return b.observe(document.body,{childList:!0,subtree:!0}),function(){b.disconnect(),s.forEach((function(e){e.removeEventListener("change",o),e.removeEventListener("submit",r),v.delete(e)}))}}),[n])}},60997:function(e,n,t){t.d(n,{K:function(){return i}});var i="SET_OPEN_TOOLTIP"},62912:function(e,n,t){t.d(n,{A:function(){return M},k:function(){return P}});var i=t(89379),o=t(5544),r=t(49255),a=t(97027),l=t(16976),c=t(87632),s=t(74859),u=t(96790);function d(e,n,t,o,r,a,l){return c.A.get("".concat("https://feedapi.celero.io","/api/viewer/getFeed"),{headers:(0,s.Mx)(),params:{account_id:t,feed:n,model:o||"default"}}).then((function(e){var t,o=((0,u.QZ)(null===(t=e.data)||void 0===t?void 0:t.data)||[]).map((function(e){return{title:e.title,image:e.image_url,summary:e.description,link:e.link_url,tags:e.keywords||[],eid:e.eid}}));return(0,i.A)((0,i.A)({},e),{},{data:{sections:[{title:n,type:"cards",elements:o}]}})}))}var f=t(72514),p=t(93690),m=t(71551),h=t(20535),v=t(91934),g=t(84899),x=t(47081),w=t(97094),A=t.n(w),b=t(81076),y=t(60723),_=t(65983),S=(0,h.A)((function(){return{carouselContainer:{width:"100%"},carouselItem:{display:"flex",alignItems:"center",justifyContent:"center"},cardWrapper:{width:"100%",height:"100%"},gridContainer:{display:"flex",justifyContent:"center"}}})),E=function(e){var n=e.cards,t=S(),i=(0,r.useRef)(null),a=(0,r.useState)(3),l=(0,o.A)(a,2),c=l[0],s=l[1];(0,r.useEffect)((function(){var e=new ResizeObserver((function(){if(i.current){var e=i.current.getBoundingClientRect().width;s(e<240?1:e<640?2:3)}}));return i.current&&e.observe(i.current),function(){i.current&&e.unobserve(i.current)}}),[i]);var u=function(e,n){for(var t=[],i=0;i0&&(E.hash,e.context.page_number),function(){var e,n,t,i;(e=(0,T.AS)(),n=ne,t=oe,i={celero_id:e,account_id:n,model:t,is_display_hook:!0,session_id:"none",channel_name:"celero_viewer"},s.Yq.post("/feed/chat",i)).then((function(e){e&&e.data&&J(e.data)})).finally((function(){ee(!1)}))}),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,T.AS)();d(0,C,ne,oe,(0,i.A)((0,i.A)({},ie),{},{ui:ae})).then((function(e){if(e.data&&e.data.sections){var n=e.data.sections.find((function(e){return"cards"===e.type}));if(n){var t,i=function(e){var n=new Map;return null==e||e.forEach((function(e,t){n.set(e.eid,t)})),n}(n.elements);if(se)null===(t=n.elements)||void 0===t||t.splice(se);V(e.data),me(i)}}})).catch((function(e){var n;null!=e&&null!==(n=e.message)&&void 0!==n&&n.includes("404")&&V(null)})).finally((function(){G(!1);var n={recommendation_list:U,feed_name:C,account_id:ne,params:he},t=e?"Refresh Feed":"Open Feed";(0,T.xF)(t,n),le&&ve()}))};(0,r.useImperativeHandle)(n,(function(){return{loadFeedElements:ge}}),[ge]),(0,r.useEffect)((function(){C&&ne&&ge()}),[ne]);var xe=(0,r.useRef)(),we=function(){var e=xe.current,n=e.scrollTop/(e.scrollHeight-e.clientHeight),t={recommendation_list:U,feed_name:C,account_id:ne,value:Math.round(100*n)/100,params:he};(0,T.xF)("Scroll Feed",t)},Ae=(0,r.useCallback)((0,l.A)(we,1e3),[we]);(0,r.useEffect)((function(){var e=xe.current;return e&&e.addEventListener("scroll",Ae),function(){e&&e.removeEventListener("scroll",Ae)}}),[q]);null===(b=window)||void 0===b||null===(y=b.location)||void 0===y||null===(S=y.href)||void 0===S||S.includes("/s/");return(0,_.jsxs)("div",{ref:xe,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"false"==ue?"hidden":"auto"},children:[le&&(0,_.jsx)(O.A,{data:X,isLoading:Q,feedCardsMap:pe,feedElements:U,color:D}),q?"carousel"==ae?(0,_.jsx)("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)(I.A,{style:{fontSize:26},children:F})}):(0,_.jsx)(_.Fragment,{}):U?(0,_.jsx)("div",{style:{height:"100%",width:"100%",maxWidth:1190},children:(0,_.jsx)(j,{data:U,scroll:ue,color:D,onSuggestionClick:function(e,n){var t={type:"suggestion",value:n,recommendation_list:U};(0,T.xF)("Click Feed",t),d((0,T.AS)(),C,ne,oe,(0,i.A)((0,i.A)({},ie),{},{ui:ae})).then((function(e){var n;V(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:e.data)}))},onCardClick:function(e,n){for(var t={type:"card",value:n,recommendation_list:U,params:(0,i.A)({searchParams:ie},he)},r=new URL(e),l=a.A.parse(r.search),c=Object.keys(l),s=a.A.parse(window.location.search),u=0,d=Object.entries(s);u-1}));if(i){var s=null;switch(i.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,i.value,i.condition)){var u,f={eventName:"Video"===e.type?r.qW.VIDEO_PLAYED:r.qW.PLAY_AUDIO,payload:(0,o.A)((0,o.A)({},null===(u=l.get(d))||void 0===u?void 0:u.currentMediaData),{},{functionPassed:i.function,valuePassed:i.value})};window.customEventsHandler&&window.customEventsHandler(f)}}}))}},63547:function(e,n,t){t.d(n,{r:function(){return i}});var i="SET_LOADER"},63962:function(e,n,t){t.d(n,{h:function(){return m}});var i=t(5544),o=t(49255),r=t(47081),a=t(57957),l=t(37981),c=t(74859),s=t(91943),u=t(8737),d=t(691),f=t(65983),p=new RegExp("media.celero.io","g");function m(e){var n;return null!==(n=window)&&void 0!==n&&n.celeroData?e.replace(p,window.celeroData.domain):e.replace(p,window.location.hostname)}var h=!1,v=function(e){h||(h=!0,c.Ay.interceptors.response.use((function(e){return JSON.parse(m(JSON.stringify(e)))}),(function(n){var t=null==n?void 0:n.config,i=(null==n?void 0:n.response)||{},o=i.status,r=void 0===o?"":o,c=i.data,u=void 0===c?{}:c,f=(i.statusText,"ERR_CANCELED"===(null==n?void 0:n.code)||"CanceledError"===(null==n?void 0:n.name)||"canceled"===(null==n?void 0:n.message)),p=(null==u?void 0:u.detail)||(null==u?void 0:u.message)||"",m=404===r&&/not published/i.test("string"==typeof p?p:"");if(f||m||function(e){var n,t,i,o,r=(0,l.p)(e),c=(o=r.url)?o.split("?")[0].replace(/\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi,"/:uuid").replace(/\/\d+(?=\/|$)/g,"/:id"):"unknown",s=r.no_response&&"ERR_NETWORK"===r.code;(0,a.ZI)(e,{level:s?"warning":"error",tags:{api:"axios-interceptor",method:r.method||"unknown",route:c,error_code:r.code||"no-code",http_status:r.status,online:r.online,visibility:r.visibility,no_response:r.no_response,effective_type:null===(n=r.connection)||void 0===n?void 0:n.effective_type,hostname:"undefined"!=typeof window?window.location.hostname:void 0},context:{request:{method:r.method,url:r.url,base_url:r.base_url,request_id:r.request_id,duration_ms:r.duration_ms,signal_aborted:r.signal_aborted,signal_reason:r.signal_reason},response:{status:r.status,status_text:r.status_text,data_preview:r.response_data_preview,detail:(null==e||null===(t=e.response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.detail)||null},connection:r.connection},fingerprint:["axios-interceptor",r.method||"unknown",c,r.code||"no-code",String(r.status)]})}(n),r===s.pR&&t&&!t.__isRetryRequest){if("User account is disabled."===u.detail)return d.A.localStorage.removeItem("token"),d.A.localStorage.removeItem("accessToken"),d.A.localStorage.removeItem("loggedIn"),d.A.localStorage.removeItem("refreshToken"),void(0,a.vx)(n,e,u.detail)}else r===s.lV||s.n;return Promise.reject(n)})))};n.A=function(){var e=(0,o.useState)(!1),n=(0,i.A)(e,2),t=n[0],a=n[1],l=(0,r.wA)();v(l);return(0,f.jsx)("div",{children:(0,f.jsx)(u.A,{variant:"error",verticalPosition:"bottom",horizantalPosition:"center",message:"Something went wrong!",isOpen:t,onClose:function(){a(!1)}})})}},66348:function(e,n,t){t.r(n),t.d(n,{default:function(){return te},isStreamingAudioSrc:function(){return d}});var i=t(49255),o=t(12182),r=t(75700),a=t(19586),l=t.n(a),c=t(96907),s=t(84899),u=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|ogg|opus|flac|spx|mp4|m4v|mov|webm|ogv|m3u8|mpd|flv)($|\?)/i,d=function(e){return!!e&&(!e.startsWith("blob:")&&!e.startsWith("data:")&&(!u.test(e)&&l().canPlay(e)))},f=["101","150"],p=t(89379),m=t(5544),h=t(5791),v=t(81114),g=t(63055),x=t(4134),w=t(84341),A=t(57957),b=.3,y=new Set;function _(e){var n=e.audioSrc,t=e.contentApiResponse,o=e.pageNumber,r=e.autoPlay,a=e.isOpen,l=(0,i.useRef)(null),c=(0,i.useRef)(null),s=d(n),u=(0,i.useState)(!1),_=(0,m.A)(u,2),S=_[0],E=_[1],I=(0,i.useState)(!1),k=(0,m.A)(I,2),C=k[0],j=k[1],T=(0,i.useState)(!1),N=(0,m.A)(T,2),O=N[0],R=N[1],D=(0,i.useState)(!1),L=(0,m.A)(D,2),F=L[0],P=L[1],W=(0,i.useState)(0),M=(0,m.A)(W,2),B=M[0],U=M[1],V=(0,i.useState)(0),z=(0,m.A)(V,2),H=z[0],q=z[1],G=(0,i.useState)(0),K=(0,m.A)(G,2),Y=K[0],X=K[1],J=(0,i.useState)(b),Z=(0,m.A)(J,2),$=Z[0],Q=Z[1],ee=(0,i.useState)(!1),ne=(0,m.A)(ee,2),te=ne[0],ie=ne[1],oe=(0,i.useState)(null),re=(0,m.A)(oe,2),ae=re[0],le=re[1],ce=(0,i.useState)(!1),se=(0,m.A)(ce,2),ue=se[0],de=se[1],fe=(0,i.useState)(0),pe=(0,m.A)(fe,2),me=pe[0],he=pe[1],ve=(0,i.useRef)(!1),ge=(0,i.useRef)(!1),xe=(0,i.useRef)(!1),we=(0,i.useRef)(-1),Ae=(0,i.useRef)(!1),be=(0,i.useRef)(0),ye=(0,i.useRef)(!1),_e=(0,i.useRef)(b),Se=(0,i.useRef)(b),Ee=(0,i.useRef)(!1),Ie=(0,i.useRef)((function(){})),ke=(0,i.useMemo)((function(){return(0,x.DC)(window)!==w.u.IOS}),[]),Ce=function(){return s?!!c.current:!!l.current},je=function(){var e,n,t;return null!==(e=s?null===(n=c.current)||void 0===n?void 0:n.getCurrentTime():null===(t=l.current)||void 0===t?void 0:t.currentTime)&&void 0!==e?e:0},Te=function(){var e,n,t;return null!==(e=s?null===(n=c.current)||void 0===n?void 0:n.getDuration():null===(t=l.current)||void 0===t?void 0:t.duration)&&void 0!==e?e:0},Ne=function(e){!s&&l.current&&(l.current.volume=e)},Oe=function(){var e,n;return s?$:null!==(e=null===(n=l.current)||void 0===n?void 0:n.volume)&&void 0!==e?e:$},Re=function(){if(!s)return Te()===1/0;try{var e,n,t,i,o=null===(e=c.current)||void 0===e||null===(n=e.getInternalPlayer)||void 0===n?void 0:n.call(e);return Boolean(null==o||null===(t=o.getVideoData)||void 0===t||null===(i=t.call(o))||void 0===i?void 0:i.isLive)}catch(e){return!1}},De=function(){return{content_id:null==t?void 0:t.uuid,audio_src:n,page_number:o,at_audio_time:(0,x.DS)(je())}};(0,i.useEffect)((function(){var e=function(){var e;Ee.current=!0,E(!1),s||null===(e=l.current)||void 0===e||e.pause()};return Ie.current=e,y.add(e),function(){y.delete(e)}}),[]);var Le=function(){y.forEach((function(e){e!==Ie.current&&e()}))},Fe=function(e,i){var r=f.includes(String(null!=i?i:""));E(!1),R(!1),le(r?"This audio can’t be played here — its owner has disabled embedding.":"This audio can’t be played."),(0,A.FF)("Audio action source could not be played",{reason:e,error_code:String(null!=i?i:""),audio_src:null!=n?n:"",content_id:null==t?void 0:t.uuid,page_number:o,engine:s?"stream":"file"})};return(0,i.useEffect)((function(){var e;if(a)return xe.current=!1,void(Ee.current=!1);Ee.current=!0,E(!1),s||null===(e=l.current)||void 0===e||e.pause()}),[a,s]),(0,i.useEffect)((function(){le(null),de(!1),j(!1),R(Boolean(n)),ge.current=!1,P(!1),U(0),q(0),X(0),we.current=-1,Ae.current=!1}),[n]),(0,i.useEffect)((function(){s&&r&&a&&n&&(Le(),E(!0))}),[s,r,a,n]),{audioRef:l,streamPlayerRef:c,isStream:s,reloadToken:me,status:ae?"error":!C||O?"loading":S?"playing":F?"ended":"paused",isPlaying:S,isLive:ue,playbackError:ae,duration:B,playedSeconds:H,sliderValue:Y,soundValue:$,isMuted:te,canControlVolume:ke,isReady:C,engine:{onPlay:function(){Ce()&&(Le(),Ee.current=!1,E(!0),ge.current=!1,P(!1),ve.current=!0,(0,h.xF)(v.qW.PLAY_AUDIO,De()))},onPause:function(){E(!1),Ee.current?Ee.current=!1:!ge.current&&ve.current&&(0,h.xF)(v.qW.PAUSE_AUDIO,De())},onLoadedMetadata:function(){j(!0),R(!1),l.current&&(U(l.current.duration),l.current.volume=$),Re()&&de(!0)},onStreamReady:function(){j(!0),R(!1)},onStreamDuration:function(e){U(e),Re()&&de(!0)},onBufferStart:function(){return R(!0)},onBufferEnd:function(){return R(!1)},onProgress:function(){if(Ce()){var e=je();Math.round(e)%(v.vh-1)==0&&(0,h.Z8)();var i=Math.floor(e);if(we.current===i||Ae.current||((0,g.DW)(null!=n?n:"",e,(0,p.A)((0,p.A)({},(0,h.wn)()),{},{content_id:null==t?void 0:t.uuid,audio_src:n,page_number:o,at_audio_time:(0,x.DS)(e)})),we.current=i),!ue&&Re()&&de(!0),!Ae.current){var r=Te();q(e),X(r?100*e/r:0)}}},onEnded:function(){E(!1),ge.current=!0,P(!0),(0,h.xF)(v.qW.FINISH_AUDIO,(0,p.A)((0,p.A)({},De()),{},{volume_level:Oe()}))},onStreamError:function(e){var n;return Fe("stream player error",null!==(n=null==e?void 0:e.data)&&void 0!==n?n:null==e?void 0:e.message)},onAudioElementError:function(e){var n,t;return Fe("audio element error",null==e||null===(n=e.currentTarget)||void 0===n||null===(t=n.error)||void 0===t?void 0:t.code)}},actions:{togglePlay:function(){var e,n,t;ae||(S?s?E(!1):null===(t=l.current)||void 0===t||t.pause():(Le(),s?E(!0):null===(e=l.current)||void 0===e||null===(n=e.play())||void 0===n||n.catch((function(e){return Fe("play() rejected",null==e?void 0:e.name)}))))},retry:function(){le(null),j(!1),R(!0),ge.current=!1,P(!1),we.current=-1,he((function(e){return e+1}))},scrub:function(e){if(Ce()&&!ue){Ae.current||(Ae.current=!0,be.current=je()),X(e);var n,t,i=e/100*Te();q(i),n=i,s?null===(t=c.current)||void 0===t||t.seekTo(n,"seconds"):l.current&&(l.current.currentTime=n)}},commitScrub:function(){if(Ae.current=!1,Ce()){var e=(0,x.DS)(be.current),i=(0,x.DS)(je());e!==i&&(0,h.xF)(v.qW.SEEK_AUDIO,{content_id:null==t?void 0:t.uuid,seeked_from:e,seeked_to:i,audio_src:n,page_number:o})}},changeVolume:function(e){Ce()&&(ye.current||(ye.current=!0,_e.current=Oe()),Q(e),ie(0===e),e>0&&(Se.current=e),Ne(e))},commitVolume:function(e){ye.current=!1;var n=_e.current;(0,h.xF)(v.qW.SET_AUDIO_VOLUME,(0,p.A)((0,p.A)({},De()),{},{from_volume_level:n,to_volume_level:e})),0===e&&0!==n?(0,h.xF)(v.qW.AUDIO_MUTED,De()):0!==e&&0===n&&(0,h.xF)(v.qW.AUDIO_UNMUTED,De())},toggleMute:function(){if(Ce()){if(!te)return Se.current=$>0?$:b,Q(0),ie(!0),Ne(0),void(0,h.xF)(v.qW.AUDIO_MUTED,De());var e=Se.current;Q(e),ie(!1),Ne(e),(0,h.xF)(v.qW.AUDIO_UNMUTED,De())}},recordCloseEvent:function(){!xe.current&&ve.current&&(xe.current=!0,ve.current=!1,(0,h.xF)(v.qW.CLOSE_AUDIO,De()))}}}}var S=t(95266),E=t(95792),I=t(59529),k=t(49780),C=t(69478),j=t(68263),T=t(81229),N=t(60972),O=t(90859),R=t(64467),D=t(24507),L=t(98992),F=t(49107),P=function(e){return"min(".concat("compact"===e?300:"card"===e?360:440,"px, calc(100vw - 32px))")},W=function(){for(var e=arguments.length,n=new Array(e),t=0;t=0?(0,x.DS)(e):"--:--"},Q=function(e){var n=e.shape,t=e.status,i=e.isLive,o=e.playbackError,r=e.playedSeconds,a=e.duration,l=e.sliderValue,c=e.soundValue,s=e.isMuted,u=e.canControlVolume,d=e.isReady,f=e.accentColor,m=e.onTogglePlay,h=e.onRetry,v=e.onScrub,g=e.onScrubCommit,x=e.onVolumeChange,w=e.onVolumeCommit,A=e.onToggleMute,b=e.onClose,y="loading"===t,_="playing"===t,R="error"===t,D=y?(0,Z.jsx)(E.A,{size:"small",disabled:!0,"aria-label":"Loading audio",children:(0,Z.jsx)(S.A,{size:20,thickness:5,sx:{color:f}})}):(0,Z.jsx)(E.A,{size:"small",onClick:m,"aria-label":_?"Pause":"Play",children:_?(0,Z.jsx)(k.A,{}):(0,Z.jsx)(I.A,{})}),L=(0,Z.jsx)(E.A,{size:"small",onClick:b,"aria-label":"Close audio player",children:(0,Z.jsx)(C.A,{fontSize:"small"})}),F=function(){return u?(0,Z.jsxs)(G,{children:[(0,Z.jsx)(E.A,{size:"small",onClick:A,"aria-label":s?"Unmute":"Mute",children:s||0===c?(0,Z.jsx)(O.A,{fontSize:"small"}):c<.5?(0,Z.jsx)(N.A,{fontSize:"small"}):(0,Z.jsx)(T.A,{fontSize:"small"})}),(0,Z.jsx)("div",{className:q,children:(0,Z.jsx)(K,{accent:f,value:c,min:0,max:1,step:.05,size:"small","aria-label":"Volume",getAriaValueText:function(e){return"".concat(Math.round(100*e)," percent")},onChange:function(e,n){return x(n)},onChangeCommitted:function(e,n){return w(n)}})})]}):null},P=(0,Z.jsx)(z,{children:(0,Z.jsx)(H,{accent:f,value:l,min:0,max:100,size:"small",disabled:!d,"aria-label":"Seek",getAriaValueText:function(){return $(r)},onChange:function(e,n){return v(n)},onChangeCommitted:g})}),W={shape:n,role:"region","aria-label":"Audio player","aria-busy":y};return R?(0,Z.jsxs)(M,(0,p.A)((0,p.A)({},W),{},{children:[(0,Z.jsxs)(B,{children:[(0,Z.jsx)(X,{children:o}),(0,Z.jsx)(E.A,{size:"small",onClick:h,"aria-label":"Try again",children:(0,Z.jsx)(j.A,{fontSize:"small"})})]}),L]})):"card"===n?(0,Z.jsxs)(M,(0,p.A)((0,p.A)({},W),{},{children:[(0,Z.jsxs)(B,{children:[D,i?(0,Z.jsx)(Y,{children:"LIVE"}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(V,{children:[$(r)," / ",$(a)]}),(0,Z.jsx)(U,{})]}),F(),L]}),!i&&P]})):"compact"===n?(0,Z.jsxs)(M,(0,p.A)((0,p.A)({},W),{},{children:[(0,Z.jsxs)(B,{children:[D,i?(0,Z.jsx)(Y,{children:"LIVE"}):P]}),L]})):(0,Z.jsxs)(M,(0,p.A)((0,p.A)({},W),{},{children:[(0,Z.jsxs)(B,{children:[D,i?(0,Z.jsx)(Y,{children:"LIVE"}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(V,{children:$(r)}),P,(0,Z.jsx)(V,{children:$(a)})]}),F()]}),L]}))},ee={vertical:"bottom",horizontal:"right"},ne=(0,i.forwardRef)((function(e){var n=e.audioSrc,t=e.handleCloseAudioPlayer,i=e.openAudioPlayer,a=e.audioPlayerKey,u=e.autoPlay,d=e.contentApiResponse,f=e.pageNumber,p=e.setAudioObj,m=e.audioPlayerMarginRightValue,h=e.shape,v=e.accentColor,g=(0,r.A)(),x=(0,s.A)().isMobile,w=_({audioSrc:n,contentApiResponse:d,pageNumber:f,autoPlay:u,isOpen:i}),A=w.audioRef,b=w.streamPlayerRef,y=w.isStream,S=w.reloadToken,E=w.status,I=w.isPlaying,k=w.isLive,C=w.playbackError,j=w.duration,T=w.playedSeconds,N=w.sliderValue,O=w.soundValue,R=w.isMuted,D=w.canControlVolume,L=w.isReady,F=w.engine,P=w.actions,W=null!=h?h:x?"card":"bar",M=v||g.palette.primary.main;return(0,Z.jsx)(o.A,{open:i,anchorOrigin:ee,TransitionProps:{onExited:function(){P.recordCloseEvent(),p(null),t()}},sx:{"&.MuiSnackbar-anchorOriginBottomRight":{right:m}},children:(0,Z.jsxs)("div",{children:[n?y?(0,Z.jsx)(J,{"aria-hidden":"true",children:(0,Z.jsx)(l(),{ref:b,url:n,playing:I,volume:O,width:"100%",height:"100%",onReady:F.onStreamReady,onPlay:F.onPlay,onPause:F.onPause,onBuffer:F.onBufferStart,onBufferEnd:F.onBufferEnd,onDuration:F.onStreamDuration,onProgress:F.onProgress,onEnded:F.onEnded,onError:F.onStreamError},"stream-".concat(S))}):(0,Z.jsx)("audio",{ref:A,preload:"metadata",autoPlay:u,onPlay:F.onPlay,onPause:F.onPause,onLoadedMetadata:F.onLoadedMetadata,onWaiting:F.onBufferStart,onPlaying:F.onBufferEnd,onCanPlay:F.onBufferEnd,onTimeUpdate:F.onProgress,onEnded:F.onEnded,onError:F.onAudioElementError,children:(0,Z.jsx)("source",{src:n})},"file-".concat(n,"-").concat(S)):null,(0,Z.jsx)(Q,{shape:W,status:E,isLive:k,playbackError:C,playedSeconds:T,duration:j,sliderValue:N,soundValue:O,isMuted:R,canControlVolume:D,isReady:L,accentColor:M,onTogglePlay:P.togglePlay,onRetry:P.retry,onScrub:P.scrub,onScrubCommit:P.commitScrub,onVolumeChange:P.changeVolume,onVolumeCommit:P.commitVolume,onToggleMute:P.toggleMute,onClose:t}),(0,Z.jsx)(c.A,{handler:P.recordCloseEvent})]})},a)}));ne.displayName="AudioPlayer";var te=ne},67325:function(e,n,t){var i,o=t(23029),r=t(92901),a=t(81114),l=t(5791),c=t(16084),s=t(75449),u=t(95423),d=function(){function e(){(0,o.A)(this,e)}return(0,r.A)(e,null,[{key:"initMarketoForms",value:function(n){var t=n.app_id,i=n.form_id,o=n.script_full_url,r=n.script_base_url,d=n.title,f=n.is_progressive,p=n.success_title,m=n.cancelable,h=n.is_default;if(t&&i){var v=o||"".concat(r,"/js/forms2/js/forms2.min.js");if(document){h&&!e.defaultMartketoFormId&&(e.defaultMartketoFormId=i);var g=document.createElement("div"),x=document.createElement("div"),w=document.createElement("form");g.classList.add("mktoForm_wrapper"),x.classList.add("mktoForm_title_".concat(i)),x.classList.add("mktoForm_title"),g.id="mktoForm_".concat(i,"_wrapper"),w.id="mktoForm_".concat(i),w.appendChild(x),g.appendChild(w),document.body.appendChild(g),g.style.display="none";var A=document.createElement("script");if(A.src=v,document.head.appendChild(A),A&&(!(0,c.Ri)("luid")||f))new MutationObserver((function(n){n.forEach((function(n){n.addedNodes.forEach((function(n){"FORM"===n.nodeName&&n.className.includes("mktoForm")&&setTimeout((function(){try{var n=document.getElementsByClassName("mktoForm_title_".concat(i))[0];if(!n.querySelector(".mktoForm_title1_".concat(i))){var t,o=(0,c.Ri)("luid")||null!==(t=(0,c.Ri)("mkto_submitted_forms"))&&void 0!==t&&t.includes("".concat(i))?p:d;n.innerText=o||"",n.style.display="flex",n.style.justifyContent="space-between",n.innerHTML="
").concat(n.innerHTML,"
")}if(m){var r=document.createElement("img");r.src=u.A.closeBlackIcon,r.style.cssText="font-size:25px; color:black; cursor:pointer; font-family: 'RobotoThin';",r.onclick=function(){e.hideMarketFrom(i);var n={form_id:i,form_type:s.o4.MARKETO};(0,l.xF)(a.qW.CLOSE_FORM,n)},n.appendChild(r)}Array.from(g.getElementsByTagName("input")).forEach((function(e){e.id="mktoForm_".concat(i)})),Array.from(g.getElementsByTagName("select")).forEach((function(e){e.id="mktoForm_".concat(i)}))}catch(e){}}),2e3)}))}))})).observe(document.body,{childList:!0,subtree:!0}),A.onload=function(){var n=document.createElement("script");n.innerHTML=e.getMarketoFormsLoader(r,"".concat(t),i),n.id="munchkin-forms-script-loader",n.async=!0,document.head.appendChild(n)},!f&&(0,c.Ri)("luid")&&g.remove()}}}},{key:"init",value:function(n){return e.localWindow.Munchkin||(e.initialize(n),e.localWindow=window,e.MktoForms2=e.localWindow.MktoForms2),e.localWindow.Munchkin}},{key:"getMarketoFormInstance",value:function(){return e.localWindow.MktoForms2}},{key:"setDefaultMarketoFrom",value:function(n){n&&(e.defaultMartketoFormId=n)}}])}();i=d,d.localWindow=window,d.MktoForms2=void 0,d.defaultMartketoFormId=void 0,d.getMarketoScript=function(e){return"\n(function(){var didInit=false;function initMunchkin(){if(didInit===false){didInit=true;Munchkin.init('".concat(e,"');}}\nvar s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='//munchkin.marketo.net/munchkin.js';s.onreadystatechange=function(){if(this.readyState=='complete'||this.readyState=='loaded'){initMunchkin();}};s.onload=initMunchkin;document.getElementsByTagName('head')[0].appendChild(s);})();")},d.getMarketoFormsLoader=function(e,n,t){return'MktoForms2.loadForm("'.concat(e,'", "').concat(n,'", ').concat(t,', function(form){\n form.setValues({"mktoceleroid": "').concat((0,l.AS)(),'"})\n form.onSuccess(function(values, followUpUrl) {\n const event = new CustomEvent("mktoSubmitted", {\n bubbles: true,\n cancelable: true,\n composed: false\n });\n document.dispatchEvent(event);\n window.history.pushState({path:followUpUrl},\'\',followUpUrl);\n const date = new Date();\n date.setTime(date.getTime() + 8760 * 60 * 60 * 1000);\n var expires = "; expires=" + date.toUTCString();\n document.cookie = "mkto_submitted_forms" + "=" + (').concat(t,' || "") + expires + "; path=/";\n const formWrapper = document.getElementById("mktoForm_').concat(t,'_wrapper");\n if(formWrapper) {\n formWrapper.remove();\n }\n return false;\n })\n function isEmailGood(email) {\n for(var i=0; i < invalidDomains.length; i++) {\n var domain = invalidDomains[i];\n if (email.indexOf(domain) != -1) {\n return false;\n }\n }\n return true;\n }\n var invalidDomains = ["@gmail.","@email.","@msn.","@icloud.","@mail.","@me.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@vodamail.","@studentmail.","@ymail.","@uowmail.","@outlook1.","@googlemail.","@mymail.","@webmail.","@protonmail.","@bluemail.","@rocketmail.","@bmail.","@rediffmail.","@dcmail.","@immail.","@finemail.","@europemail.","@zetmail.","gmail.","@tafmail.","@email.","@freemail."]; \n MktoForms2.whenReady(function (form){\n form.onValidate(function(){\n var email = form.vals().Email;\n if(email){\n if(!isEmailGood(email)) {\n form.submitable(false);\n var emailElem = form.getFormElem().find(".mktoEmailField");\n form.showErrorMessage("Must be Business email.", emailElem);\n }else{\n form.submitable(true);\n }\n }\n });\n });\n });')},d.initialize=function(e){var n="munchkin-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=i.getMarketoScript(e),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t)}},d.showMarketFrom=function(e){var n=document.getElementById("mktoForm_".concat(e,"_wrapper"));return!!n&&((0,l.xF)(a.qW.OPEN_FORM,{form_id:e,form_type:s.o4.MARKETO}),n.style.display="flex",n.classList.toggle("visible"),!0)},d.showMarketDefaultFrom=function(){return i.showMarketFrom(i.defaultMartketoFormId)},d.hideMarketFrom=function(e){var n=document.getElementById("mktoForm_".concat(e,"_wrapper"));return!!n&&(n.style.display="none",n.classList.toggle("visible"),!0)},d.hideMarketDefaultFrom=function(){return i.hideMarketFrom(i.defaultMartketoFormId)},n.A=d},68240:function(e,n,t){t.d(n,{G:function(){return o},X:function(){return r}});var i=t(12815),o=function(e,n,t){return function(o){o({type:i.h,payload:{message:e,severity:n,isOpen:t}})}},r=function(){return function(e){e({type:i.U,payload:{message:null,severity:null,isOpen:!1}})}}},68292:function(e,n,t){t.r(n),t.d(n,{default:function(){return M}});var i=t(49255),o=t(80045),r=t(24765),a=t(89379),l=t(5544),c=t(47081),s=t(67325),u=t(64467),d=t(81114),f=t(4134),p=t(63055),m=!1,h=function(e,n,t,i,o){var r="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,i;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 i=e.action_obj;if(!i)return!1;if("show_integration_form"===(null==i?void 0:i.key)){var o,r=null==i||null===(o=i.additional_data)||void 0===o?void 0:o.integration_form_id;if(r){var a,l,c=e.form||(null==t?void 0:t.find((function(e){return e.id==r})));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,o);h&&((0,f.oN)(),m=!0)}e.is_enabled&&(e.conditions&&(null===(i=e.conditions)||void 0===i||i.forEach((function(n,i){var o;null===(o=n.group_events)||void 0===o||o.forEach((function(n){var o=n.event;n.rules&&r&&o.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 i=n.rules&&n.rules.find((function(e){return["audio_src","video_link"].indexOf(e.key)>-1}));if(i&&n.rules&&n.rules.find((function(e){return"time"===e.key&&p.AP.indexOf(e.function||"")>-1}))){var o=(0,a.A)((0,a.A)({},n),{},{type:"audio_src"===i.key?"Audio":"Video",groupIndex:t});e.has(i.value)?e.get(i.value).push(o):e.set(i.value,[o])}}}(c,n,i);var s=l[o],f=s&&s[e.id];s?f&&-1===s[e.id].indexOf(i)?s[e.id].push(i):s[e.id]=[i]:l[o]=(0,u.A)({},e.id,[i])}))}))))})),(0,p.F)(c),{mapResult:l,customEvents:e,mediaMap:c,gateCustomEvent:s}},v=t(20253),g=t(28216),x=t(93593),w=t(28439),A=t(5791),b=t(79218),y=t(29732),_=t(5084),S=t(32388),E=t(55284),I=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),O=t(65983),R=function(e){var n=T(),t=n.dialogTitle,i=n.paper,o=n.dialogSubTitle,r=n.dialogTitleWrapper,a=n.backdrop,l=n.cancelButton,c=n.titleWithCloseWrapper,s=n.closeIcon,u=n.dialogContent,d=e.isOpen,f=e.closeDialog,p=e.title,m=e.subTitle,h=e.buttonText,v={classes:{root:i}},g={classes:{root:a}};return(0,O.jsxs)(b.A,{open:d,onClose:f,PaperProps:v,BackdropProps:g,disableEnforceFocus:!0,children:[(0,O.jsx)(y.A,{className:r,children:(0,O.jsxs)("div",{className:c,children:[(0,O.jsxs)(_.A,{className:t,children:[" ",p]}),(0,O.jsx)(S.A,{onClick:f,className:s,children:(0,O.jsx)(N.h,{})})]})}),(0,O.jsx)(E.A,{className:u,children:(0,O.jsx)(_.A,{className:o,children:m})}),(0,O.jsx)(I.A,{children:(0,O.jsx)(k.A,{className:l,onClick:f,variant:"contained",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:h})})]})},D=t(27772),L=["index","group"],F=["timeoutRef"],P=function(){var e=(0,c.d4)((function(e){return{customEventsStore:e.customEvents}})).customEventsStore,n=(0,c.wA)(),t=(0,i.useRef)([]),u=(0,i.useRef)([]),p=(0,i.useRef)([]),m=(0,i.useState)(!1),h=(0,l.A)(m,2),b=h[0],y=h[1],_=function(){y(!1)},S=function(e,n,t){var i,o,r;null===(i=u.current[e])||void 0===i||null===(o=i.conditions[n])||void 0===o||null===(r=o.group_events)||void 0===r||r.splice(t,1)},E=function(e){var t;if("MARKETO"===("object"==typeof e.external_integration?null===(t=e.external_integration)||void 0===t?void 0:t.name:"")){var i,o;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,i=setInterval((function(){var e=s.A.showMarketFrom(n);clearInterval(i),e&&clearInterval(i),10===++t&&clearInterval(i)}),200)}}}(e);else if("optimonk"===(null===(i=e.data)||void 0===i||null===(o=i.platform)||void 0===o?void 0:o.toLowerCase())){var r,l=null===(r=e.data)||void 0===r?void 0:r.jsevent_trigger_to_show_form;l&&(w.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 f,p=null===(f=e.data)||void 0===f?void 0:f.jsevent_trigger_to_show_form;p&&(w.A.fireEvent(p),x.E.dispatchCustomEvent(p))}else"celero"===d&&n((0,D.j)({open:!0,config:(0,a.A)((0,a.A)({},e.data),{},{id:e.id,integration_name:e.integration_name,integration_id:e.exteranl_integration}),defaultValues:{show:!1,values:{}}}))}},I=function(n,t,i){if(0===n.group_events.length)if(function(e){var n;if(e.recurrence||-1===p.current.indexOf(e.id)){var t={name:e.name};switch((0,A.xF)(d.qW.FIRE_JS_EVENT,t),w.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":g.A.getInstance()&&g.A.setVisibility(!0);break;case"trigger_js_event":var i,o,r=null===(i=e.action_obj)||void 0===i||null===(o=i.additional_data)||void 0===o?void 0:o.event;if(!r)break;var a={name:r};(0,A.xF)(d.qW.FIRE_JS_EVENT,a),w.A.fireEvent(r),x.E.dispatchCustomEvent(r);break;case"show_integration_form":var l=e.form;l&&E(l)}}}(t),t.recurrence){var o=+t.id.split("E")[1];u.current[o].conditions[i]=JSON.parse(JSON.stringify(e.customEvents[o].conditions[i]))}else p.current.push(t.id)},k=function(e,n){var t,i=e.split("__"),o=n,a=(0,r.A)(i);try{for(a.s();!(t=a.n()).done;){var l=t.value;if(!o||"object"!=typeof o||!(l in o))return;o=o[l]}}catch(e){a.e(e)}finally{a.f()}return o};return window.customEventsHandler=function(n){var i,r,l=n.eventName,c=(0,a.A)({},e.eventsMap.all)||{},s=(0,a.A)({},e.eventsMap[l])||{};s=(0,f.rL)(c,s),i=n,(r=d.dn[i.eventName])&&t.current.forEach((function(e,n){if(-1!==r.itCancelEvents.indexOf(e.event)){var o=!1,a=[];e.rules.forEach((function(e){-1!==r.cancelDependencyParams.indexOf(e.key)&&a.push(e)}));for(var l=0;l0;return(0,i.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,r,l]),(0,i.useEffect)((function(){(o.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,i=r.find((function(n){var t,i;return n.id===(null==e||null===(t=e.action_obj)||void 0===t||null===(i=t.additional_data)||void 0===i?void 0:i.integration_form_id)}));if(i&&"MARKETO"==(null===(t=i.external_integration)||void 0===t?void 0:t.name)){var o;window.mktoFormsIds=window.mktoFormsIds||new Set;var a=null==i||null===(o=i.data)||void 0===o?void 0:o.form_id;a&&null!==a&&window.mktoFormsIds.add(+a)}}}))}),[r,o.customEvents,n,l]),(0,i.useEffect)((function(){window.customEventsLoaded=!0}),[n]),!d||u?null:(0,O.jsx)(P,{})}},68494:function(e,n,t){t.d(n,{Jt:function(){return o},eh:function(){return a},n:function(){return i},x$:function(){return r}});var i="REGISTER_FORM",o="REGISTER_FORMS_BATCH",r="SET_ACCESS_CONTROL_FORM",a="CLEAR_FORMS"},68995:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var i=t(91212),o=t(10467),r=t(5544),a=t(49255),l=t(5791),c=t(81114),s=t(72661),u=(t(5348),t(81046)),d=t(48623),f=t(58324),p=t(52808),m=t(47081),h=t(3895),v=t.n(h),g=t(52484),x=t(84899),w=t(35175),A=t(96054),b=t(84740),y=t(24507),_=t(812),S=t(5084),E=(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,i=e.withShadow,o=e.ismobile;return{backgroundColor:t,color:n.palette.getContrastText(t),width:o?"100%":"fit-content",boxShadow:i?n.shadows[3]:"none",borderRadius:32,fontSize:o?20:24,fontWeight:500,textTransform:"none",height:o?45:52,"&:hover":{backgroundColor:t,boxShadow:i?n.shadows[4]:"none"}}})),I=(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,O=(0,m.wA)(),R=null!==(n=null==_?void 0:_.content_action)&&void 0!==n?n:{},D=R.button_text,L=R.button_color,F=null!==(t=null==_||null===(h=_.content_action)||void 0===h?void 0:h.destination_url)&&void 0!==t?t:"";!F||F.startsWith("http://")||F.startsWith("https://")||(F="https://"+F);var P=(0,a.useState)(!1),W=(0,r.A)(P,2),M=W[0],B=W[1],U=(0,a.useState)(0),V=(0,r.A)(U,2),z=(V[0],V[1]),H=(0,a.useState)(F),q=(0,r.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,o.A)((0,i.A)().m((function e(n,t,o){var r,a,l,c,s;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return r=null==_?void 0:_.content_action,a=r.button_text,e.n=1,(0,p.q)(n.data,t);case 1:l=e.v,c=l.canIframe,s=l.embedUrl,c?(K(s||t),B(!0)):setTimeout((function(){window.open(t)})),Q(t,a);case 2:return e.a(2)}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}();var ne=function(){return v().canPlay(G)?(0,T.jsx)(g.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||F)},ie=function(){B(!1)},oe=[{icon:(0,T.jsx)(w.A,{fontSize:"inherit"}),action:te,hidden:!1}];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(E,{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||F;K(t),B(!0),Q(t,e)},openUrl:function(n,t){t?ee({data:{iframe_support:!1}},n,null):u.A.checkIfURIIsValid(n,ee,O).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)(O),openMicrosite:function(n,t){var i=n?"".concat(window.location.origin,"/s/").concat(n):"";if(i){if(t)return window.open(i,"_blank"),void Q(i,e);K(i),B(!0),Q(i,e)}}};(0,d.w)((0,f.Lj)(null==_?void 0:_.content_action),n)},button_color:L,withShadow:N,ismobile:Y,"assistant-c-name":"cta",children:(0,T.jsx)(I,{children:D})}),(0,T.jsx)(b.A,{isVisible:!Y,children:(0,T.jsx)(s.A,{handleCloseIframeDialog:ie,handleOpenLinkExternal:te,openIframeDialog:M,renderContentOfDialog:ne,isIframeLoadable:!0,isLoading:!1,iframeSrc:G,openExternalLinkTooltip:"Open in a new tab",closeDialogTooltip:"Close",setDialogStartTime:z,urlSrcWithOutParams:G})}),(0,T.jsx)(b.A,{isVisible:Y,children:(0,T.jsx)(A.default,{handleCloseMobilePopup:ie,actions:oe,openMobilePopup:M,renderContentOfMobilePopup:ne,isLoading:!1,setMobilePopupStartTime:z})}),(0,T.jsx)(Z,{})]})}},70035:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var i=t(49255),o=t(95792),r=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)"}}})),f=t(21661),p=t(91260),m=t(88960),h=t(5791),v=t(65983),g=function(e){var n=d(),t=n.dialogContainerStyle,u=n.contentWrapper,g=n.openNewWidowIconStyle,x=n.closeIconButtonStyle,w=n.root,A=e.openExternalLinkTooltip,b=e.closeDialogTooltip,y=e.handleCloseIframeDialog,_=e.handleOpenLinkExternal;return(0,i.useEffect)((function(){e.openIframeDialog&&e.setDialogStartTime(performance.now())}),[e.openIframeDialog]),(0,v.jsxs)(l.A,{open:e.openIframeDialog,onClose:e.handleCloseIframeDialog,TransitionComponent:s.L,disableEnforceFocus:!0,classes:{root:w},BackdropProps:{classes:{root:n.backdrop}},PaperProps:{classes:{root:n.paper}},children:[(0,v.jsx)(r.Ay,{container:!0,spacing:0,className:t,children:(0,v.jsx)(r.Ay,{item:!0,xs:12,className:u,children:(0,v.jsx)(r.Ay,{item:!0,xs:12,md:12,children:!e.isLoading&&(0,v.jsx)(v.Fragment,{children:e.isIframeLoadable?e.renderContentOfDialog():(0,v.jsx)(m.A,{handleOpenLinkExternal:_,iframeSrc:e.urlSrcWithOutParams,isPreview:h.bU})})})})}),e.openIframeDialog&&(0,v.jsxs)("div",{id:"lololololol",className:n.iconsWrapper,children:[(0,v.jsx)(a.A,{title:b,children:(0,v.jsx)(o.A,{className:x,onClick:y,children:(0,v.jsx)(c.A,{className:n.closeIconImg,children:(0,v.jsx)(f.h,{})})})}),(0,v.jsx)(a.A,{title:A,children:(0,v.jsx)(o.A,{className:g,onClick:_,children:(0,v.jsx)(c.A,{className:n.iconImg,children:(0,v.jsx)(p.ReactComponent,{})})})})]})]})}},70819:function(e,n,t){t.r(n),t.d(n,{EnhancedButton:function(){return m},default:function(){return g}});var i=t(89379),o=t(91212),r=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),f=t(87632),p=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()}))},v=function(){var e=(0,r.A)((0,o.A)().m((function e(n,t){return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,f.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)}}(),g=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,p.jsx)(a.l1,{initialValues:c,validationSchema:t,onSubmit:function(){var e=(0,r.A)((0,o.A)().m((function e(t,i){var r,a,l,c,s;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:if(r=i.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,v(s,t);case 1:r(!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,p.jsx)(a.lV,{children:n.map((function(e,n){var o=new URL(e.uri).pathname.split("/")[2];return(0,p.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"===o?(0,p.jsx)(m,{style:{width:"100%",height:"100%",background:"gray",cursor:"pointer",fontSize:20},type:"submit",disabled:t,children:h(o)}):(0,p.jsx)(a.D0,{name:o,children:function(e){var n=e.field,t=e.meta;return(0,p.jsx)("div",{style:{height:"100%"},children:(0,p.jsx)(u,(0,i.A)((0,i.A)({},n),{},{fullWidth:!0,size:"small",variant:"outlined",placeholder:h(o),error:t.touched&&Boolean(t.error),helperText:t.touched&&t.error?t.error:"",style:{height:"100%",padding:0},inputProps:{style:{height:"100%"}}}))})}})},n)}))})}})}},71e3:function(e,n,t){t.d(n,{eK:function(){return A},eM:function(){return w},u4:function(){return b}});var i=t(91212),o=t(10467),r=t(89379),a=t(60436),l=t(49255),c=t(52473),s=t(38607),u=t(5791),d=t(81114),f=t(93593),p=t(691),m=t(57957),h=t(47081),v=t(4472),g=t(28439),x=t(27772);function w(e){if(e)try{var n=JSON.parse(p.A.localStorage.getItem("crm_tokens")||"{}");if(!n||"object"!=typeof n)return;return n[e]||null}catch(n){return void(0,m.ZI)("Error extracting CRM access token for account_id: ".concat(e))}}function A(e,n){if(!e||!n)return(0,m.ZI)("Invalid inputs for setting CRM access token"),!1;try{var t=JSON.parse(p.A.localStorage.getItem("crm_tokens")||"{}");if("object"!=typeof t)throw new Error("Invalid token structure in localStorage");return t[e]=n,p.A.localStorage.setItem("crm_tokens",JSON.stringify(t)),!0}catch(n){return(0,m.ZI)("Error setting CRM access token for account_id: ".concat(e)),!1}}function b(e,n){var t=e.filter((function(e){return e.account_id===n})),i=e.filter((function(e){return e.account_id!==n})),o=new Set;t.forEach((function(e){o.add(e.type)}));var r=i.filter((function(e){return!o.has(e.type)}));return[].concat((0,a.A)(t),(0,a.A)(r))}var y=function(e){var n,t,p,m,A,y,_=e.account_id,S=e.companyIntegrations,E=(0,h.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,I=(0,h.wA)(),k=null==E||null===(n=E.versions)||void 0===n||null===(t=n[0])||void 0===t||null===(p=t.version_details)||void 0===p?void 0:p.uuid,C=null==E||null===(m=E.access_control)||void 0===m?void 0:m.min_stage,j=null==E||null===(A=E.access_control)||void 0===A||null===(y=A.stage_options[C])||void 0===y?void 0:y.form_default_values,T=w(_),N=b(S,_),O=(0,l.useRef)(u.wn),R=function(e,n){var t,i=E.access_control;if(null!=i&&i.stage_options&&"POPUP"===(null==i||null===(t=i.stage_options[null==i?void 0:i.min_stage])||void 0===t?void 0:t.form_preview)&&"UNVERIFIED_CONTACT"===(null==i?void 0:i.min_stage)&&"contact"==n.type.toLowerCase()&&"visitor"===e.user_type){var o,a,l=(null==i||null===(o=i.stage_options[null==i?void 0:i.min_stage])||void 0===o?void 0:o.popup_time)||0,c=null==i||null===(a=i.stage_options[null==i?void 0:i.min_stage])||void 0===a?void 0:a.form_obj;if(!c)return;setTimeout((function(){var e,t,i=null===(e=c.data)||void 0===e||null===(t=e.platform)||void 0===t?void 0:t.toLowerCase();if("optimonk"===i){var o,a=null===(o=c.data)||void 0===o?void 0:o.jsevent_trigger_to_show_form;a&&(g.A.fireEvent(a),f.E.dispatchCustomEvent(a))}else"celero"===i&&I((0,x.j)({open:!0,config:(0,r.A)((0,r.A)({},c.data),{},{id:c.id,integration_name:n.name,integration_id:n.id}),defaultValues:j||{}}))}),l)}},D=function(e,n){var t;if(!n){var i;i=f.E.getVisitorIdNullReason(e);var o={message:"Integration visitor_id is null",integration:e.name,visitor_param:(null===(t=e.data)||void 0===t?void 0:t.visitor_param)||"N/A",reason:i};(0,v.FF)("Visitor ID is null",o)}},L=function(){var e=(0,o.A)((0,i.A)().m((function e(n){var t,o,a;return(0,i.A)().w((function(e){for(;;)switch(e.n){case 0:return t=N.filter((function(e){return n.includes(e.id)})),e.n=1,s.A.waitForCeleroId();case 1:o=e.v,a=f.E.getIntegrationsNeededData(o),t.forEach((function(e){var n=e.data.visitor_param,t=e.data.url_parameter;if(n){var i=a[n],l=a[t+"_url_param"],s=o,f={account_id:_,visitor_id:i||"NOVISITORID",integration:e.name,celero_id:s,url_parameter:l,version_id:k,access_token:T,access_type:C};window.contactNeededIntegrationData=window.contactNeededIntegrationData||{},window.contactNeededIntegrationData=(0,r.A)((0,r.A)({},window.contactNeededIntegrationData),{},{version_id:k,celero_id:s,account_id:_,access_type:C,integration:e.name,visitor_id:i}),c.A.visitorIdentify(f).then((function(n){if(n){var t=(null==n?void 0:n.contact_id)||!1,i=null!=n&&n.visitor_id?null==n?void 0:n.visitor_id:null;R(n,e);var o={user_type:null==n?void 0:n.user_type,company_integration:null==e?void 0:e.data.name,contact_id:t||null,contact_param:"contact_id",contact_param_source:"api",visitor_id:i||"NOVISITORID",visitor_param:"visitor_id",visitor_param_source:"api",integration_id:e.id},a={eventName:d.qW.IDENTIFY_USER,payload:(0,r.A)((0,r.A)({},O.current()),{},{integration:(0,r.A)((0,r.A)({},o),{},{payload:f,response:n})}),created_at:new Date};(0,u.xF)(a.eventName,a.payload)}})),i||D(e,i)}}));case 2:return e.a(2)}}),e)})));return function(n){return e.apply(this,arguments)}}();function F(e,n,t){for(var i=[],o=f.E.getIntegrationsNeededData(),r=0;r0&&L(i),3==++n){var l=[];e.forEach((function(e){e.handled||"contact"!==e.type.toLowerCase()||l.push(e.id)})),l.length>0&&L(l)}else t+=2e3,setTimeout((function(){F(e,n,t)}),t)}return(0,l.useEffect)((function(){var e=new Set;N.forEach((function(n){"MARKETO"===n.name&&e.add(n.id)}));var n=N.reduce((function(e,n){return"MARKETO"===n.name?[].concat((0,a.A)(e),[n.id]):e}),[]);n.length>0&&setTimeout((function(){L(n)}),2e4);var t=(0,a.A)(N);setTimeout((function(){F(t,0,2e3)}),2e3)}),[_]),null};y.displayName="IntegrationHandler",n.Ay=y},71551:function(e,n,t){t.d(n,{A:function(){return s}});var i=t(5544),o=t(49255),r=t(20535),a=t(13989),l=t(65983),c=(0,r.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,r=e.color,a=(0,o.useState)(1),s=(0,i.A)(a,2),u=s[0],d=s[1],f=(0,o.useState)(!1),p=(0,i.A)(f,2),m=p[0],h=p[1],v=c({scale:u,is_mobile:m,color:r}),g=(0,o.useRef)(null);var x=(null==n?void 0:n.keywords)||(null==n?void 0:n.tags),w=x&&x.length?x[0]:n.title.split(" ").map((function(e){return e[0]})).join("").toUpperCase();return(0,o.useEffect)((function(){var e=function(){if(g.current){for(var e=g.current.offsetWidth,n=1,t=0,i=[{maxWidth:600,scaleFactor:.8},{maxWidth:800,scaleFactor:.9},{maxWidth:900,scaleFactor:1}];t=0&&(0,p.jsxs)("div",{className:y.visitors,children:[(0,p.jsx)(f.h,{className:y.icon}),(0,p.jsx)("div",{className:y.visitorsNumber,children:n.visits})]}),I&&(0,p.jsx)("div",{className:y.tags,children:null==I?void 0:I.map((function(e){return(0,p.jsx)(s.A,{label:e,className:y.chip,classes:{label:y.chipLabel}},e)}))})]})]})})}),(0,p.jsx)(u.A,{className:y.divider})]})}},72661:function(e,n,t){var i=t(70035);n.A=i.default},74102:function(e,n,t){t.d(n,{Ay:function(){return Ke},g7:function(){return Ge}});var i=t(89379),o=t(64467),r=t(60436),a=t(91212),l=t(10467),c=t(5544),s=t(49255),u=t(95792),d=t(31740),f=t(73952),p=t(81076),m=t(97997),h=t(29297),v=t(53736),g=t(56328),x=t(10362),w=t(92610),A=t(66811),b=t(66555),y=t(52420),_=t(31768),S=t(30329),E=t(82849),I=t(46717),k=t(20814),C=t(41726),j=t(30866),T=t(48640),N=t(21554),O=t(55507),R={link:v.A,phone:k.A,email:C.A,page:g.A,navigation:x.A,video:w.A,image:A.A,audio:b.A,share:y.A,download:_.A,print:S.A,form:E.A,microsite:I.A,globe:I.A,mail:C.A,chat:j.A,star:T.A,pin:N.A,help:O.A};var D=t(20535),L=t(13989),F=t(17141),P=t(85434),W=t(65278),M=t(7220),B=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,D.A)((function(e){return{viewerTop:(0,o.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,o.A)((0,o.A)((0,o.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,o.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,o.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,P.X4)(e.palette.customViewer.viewerPrimaryColor,.25)," !important")},infoIconStyle:{color:e.palette.customViewer.viewerPrimaryColor}}})),(0,D.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,D.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,o.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,P.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,P.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,P.X4)(e.palette.basicColors.black,.3)}},readLaterContainer:{marginLeft:"24px"},enhancedToolBarStyle:(0,o.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,o.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,i.A)((0,i.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,F.A)((function(e){return{root:(0,o.A)((0,o.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"})}}))(M.A),$=((0,F.A)((function(e){return{root:{height:"50%",backgroundColor:e.palette.customViewer.viewerPrimaryTextColor,alignSelf:"center",marginRight:"40px",marginLeft:"40px"}}}))(B.A),(0,F.A)((function(){return{root:{position:"relative"}}}))(U.Ay),(0,F.A)((function(){return{root:{width:"100%",marginTop:function(e){return"".concat(e.topValue,"px")}},paper:{bottom:0,height:"auto"}}}))(U.Ay),(0,F.A)((function(e){return{root:(0,o.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,F.A)((function(){return{root:{width:"100%",height:"100%",border:"4px solid #ffff",borderRadius:"50%"}}}))(z.A),(0,F.A)((function(){return{tooltip:{padding:"15px",margin:"8px",fontSize:14,fontWeight:"bold",whiteSpace:"pre-wrap"}}}))(d.A)),Q=((0,D.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,D.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),ie=t(74724),oe=t(98992),re=(0,D.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,o.A)({color:function(e){return e.color}},e.breakpoints.down("xs"),{"& > span > svg":{fontSize:19}})}})),ae=t(81545),le=function(e){var n=re(e),t=s.useState(!1),i=(0,c.A)(t,2),o=i[0],r=i[1];return(0,K.jsx)(f.x,{onClickAway:function(){o&&(r(!1),(0,ae.vH)({menu:ae.wL.ACTIONS_OVERFLOW}))},children:(0,K.jsxs)("div",{children:[(0,K.jsx)(u.A,{"aria-label":"more","aria-haspopup":"true",onClick:function(e){var n=!o;r(n),n?(0,ae.JF)({menu:ae.wL.ACTIONS_OVERFLOW}):(0,ae.vH)({menu:ae.wL.ACTIONS_OVERFLOW,closeReason:ae.fI.DISMISS})},className:n.color,children:(0,K.jsx)(te.A,{})}),(0,K.jsx)(ie.A,{in:o,classes:{wrapper:n.collapseWrapper},className:n.collapse,unmountOnExit:!0,children:(0,K.jsx)(oe.A,{className:n.paper,children:e.renderActions()})})]})})},ce=t(87632),se=t(26211),ue=t(57957),de=function(e){var n=(0,s.useState)(""),t=(0,c.A)(n,2),i=t[0],o=t[1];return(0,s.useEffect)((function(){ce.A.get(e.url).then((function(e){return o(se.A.sanitize(e.data,{USE_PROFILES:{svg:!0,svgFilters:!0}}))})).catch((function(){(0,ue.ZI)("Fetch SVG ".concat(e.url," Failed"))}))}),[e.url]),(0,K.jsx)("div",{className:e.svgDivClassName,dangerouslySetInnerHTML:{__html:i}})},fe=t(6218),pe=t(5084),me=t(65251),he=t(84411),ve=(0,D.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,o.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"}}}})),ge=t(88031),xe=t(84899),we=function(e){var n=e.actionCards,t=e.isOpen,i=e.handleCloseMobileMenu,o=e.getShareObj,r=e.contentConversionType,a=ve(),l=(0,xe.A)().isMobile,c=a.menuItem,s=a.paper,u=a.labelIcon,d=a.lableTypo,f=a.actionsWrapper,p=a.cancelItem,m={root:s},v=function(e){e.clickAction(e.actionType,e.shortcutId,e.additionlData)},g=function(e){e.preventDefault(),e.stopPropagation(),i()},x=(n||[]).filter((function(e){return"DOWNLOAD"===e.actionType&&r===ge.d.DOCUMENT})).map((function(e){return{icon:e.icon,title:e.label,onClick:function(){v(e),i()}}}));return l?(0,K.jsx)(me.A,{direction:"up",in:t,children:(0,K.jsxs)(oe.A,{classes:m,className:a.fullScreenPaper,children:[(0,K.jsxs)("div",{className:a.mobileHeader,children:[(0,K.jsx)("button",{className:a.closeButton,onClick:i,"aria-label":"Close",children:"×"}),(0,K.jsx)(pe.A,{className:a.mobileTitle,children:"Share"})]}),(0,K.jsx)("div",{className:a.mobileShareContent,children:o&&(0,K.jsx)(he.T,{getShareObj:o,additionalActions:x})})]})}):(0,K.jsx)(me.A,{direction:"up",in:t,children:(0,K.jsxs)(oe.A,{classes:m,children:[o&&(0,K.jsx)(he.T,{getShareObj:o}),(0,K.jsxs)("div",{className:f,children:[n&&n.length&&n.length>0&&n.map((function(e,n){return!(r!=ge.d.DOCUMENT&&"DOWNLOAD"==e.actionType)&&function(e,n){var t=(0,h.A)(c);return(0,K.jsxs)(fe.A,{className:t,onTouchEnd:function(n){n.preventDefault(),n.stopPropagation(),v(e)},children:[(0,K.jsx)(pe.A,{className:u,children:e.icon}),(0,K.jsx)(pe.A,{className:d,children:e.label})]},e.label+n)}(e,n)})),(0,K.jsx)(fe.A,{onTouchEnd:g,onClick:i,className:p})]})]})})};we.displayName="Mobile Viewer Menu";var Ae=t(96947),be=t(52980),ye=t(39863),_e=t(68240),Se=t(42883),Ee=t(94541),Ie=t(73530),ke=t(47081),Ce=t(62498),je=t(68995),Te=t(49535),Ne=t(30007),Oe=function(e){var n,t,i,o=e.menuItems,r=e.handleMenuItemClick,a=e.type,l=Y(),d=l.wrapper,f=l.menuItem,p=l.popoverContent,m=l.menuIcon,h=l.menuIconButton,v=s.useState(null),g=(0,c.A)(v,2),x=g[0],w=g[1],A=Boolean(x),b=A?"simple-popover":void 0,y="desktop"===a?ae.A6.DESKTOP:ae.A6.MOBILE,_=null!==(n=null==o||null===(t=o.data)||void 0===t||null===(i=t.filter((function(e){return null==e?void 0:e.is_showing})))||void 0===i?void 0:i.length)&&void 0!==n?n:0,S=s.useRef(!1),E=function(){w(null),(0,ae.vH)({menu:ae.wL.VIEWER_BAR,layout:y,itemCount:_,closeReason:S.current?ae.fI.ITEM_CLICK:ae.fI.DISMISS}),S.current=!1};function I(){var e;return o&&null!=o&&o.data?null==o||null===(e=o.data)||void 0===e?void 0:e.map((function(e,n){return e.is_showing?(0,K.jsx)("div",{className:f,"assistant-c-name":"menu-item-".concat(n),children:(0,K.jsx)(pe.A,{onClick:function(){S.current=!0,E(),r(e,n,y)},children:e.title})}):(0,K.jsx)(K.Fragment,{})})):(0,K.jsx)(K.Fragment,{})}return(0,K.jsx)("div",{className:d,children:"desktop"===a?(0,K.jsx)("div",{style:{display:"flex",gap:"10px",marginLeft:"30px"},children:I()}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(u.A,{onClick:function(e){S.current=!1,w(e.currentTarget),(0,ae.JF)({menu:ae.wL.VIEWER_BAR,layout:y,itemCount:_})},disableFocusRipple:!0,disableRipple:!0,disableTouchRipple:!0,className:h,children:(0,K.jsx)(Te.A,{className:m})}),(0,K.jsx)(Ne.Ay,{id:b,open:A,anchorEl:x,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,K.jsx)("div",{className:p,children:I()})})]})})},Re=t(25761),De=t(21146),Le=t(95458),Fe=t(58651),Pe=t(80922),We=(0,s.forwardRef)((function(e,n){var t,g,x=X(),w=e.setCurrentPage,A=e.contentName,b=e.content,y=e.logo,_=e.logImgAlt,S=e.handleOpenShareDialog,E=e.isMobile,I=e.handleDownloadOriginalPdf,k=e.shortcuts,C=e.shouldShowShareButton,j=e.isWitoutNavBar,T=e.shouldAppBarBeInTop,N=e.getShareObj,O=e.barPosition,D=e.conversionType,L=e.id,F=e.isPreviewCampaign,P=e.menuItems,W=e.handleMenuItemClick,M=e.buttons,B=e.handleButtonClick,U=x.actionButton,V=x.viewerBar,z=x.actionsDiv,q=x.actionsGrid,G=x.enhancedToolBarStyle,Y=x.topBarContents,te=x.fileNameGrid,ie=x.logoStyle,oe=x.logoWrapperStyle,re=x.logoWrapperWithoutMinWidth,ae=x.mobileLogo,ce=x.svgDiv,se=x.barIcon,fe=x.mobileViewerBar,pe=x.mobileMenuIcon,me=x.openMobileMenuIcon,he=(0,ke.d4)((function(e){return{mobileMenu:e.mobileMenu}})).mobileMenu.isMobileMenuOpen,ve=(0,s.useState)(),xe=(0,c.A)(ve,2),Te=xe[0],Ne=xe[1],We=(0,De.y)(),Me=(0,s.useState)(!1),Be=(0,c.A)(Me,2),Ue=Be[0],Ve=Be[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,Ce.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=!E&&(null===(t=b.content_action)||void 0===t?void 0:t.is_enabled)&&"BAR"===(null===(g=b.content_action)||void 0===g?void 0:g.button_position)&&!qe,Ye=F?'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,ke.wA)(),Je=(0,ke.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,Le.e)(),en=function(e,n,t){switch(e){case H.Q3.Go_TO:if(!t||!t.page_number)return void(0,ue.ZI)("No page number for ".concat(e));w(t.page_number);break;case H.Q3.DOWNLOAD:if(!t||!t.download_url)return void(0,ue.ZI)("No Download URL for ".concat(e," shortcut and shortcut_id ").concat(n));I(t.download_url);break;case H.oV:$e();break;case H.RD:Ze();Te&&(0,Q.eM)(Te,(function(){return Xe((0,_e.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)(de,{url:n,svgDivClassName:ce}));var n};function on(){Xe((0,Fe.a)(!0,Pe.I.VIEWER_BAR))}var rn=(k||[]).filter((function(e){return e.action!==H.Q3.DOWNLOAD})),an=!(null==b||!b.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:se,onClick:on,disableFocusRipple:!0,disableRipple:!0,children:(0,K.jsx)(ye.ReactComponent,{})})},"search")},sn=function(){return(0,K.jsx)(d.A,{title:"Share",children:(0,K.jsx)(u.A,{className:se,disableFocusRipple:!0,disableRipple:!0,disabled:F,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 I("")},disableFocusRipple:!0,disableRipple:!0,children:(0,K.jsx)(be.h,{})})},"download")},dn=function(e){var n,t=(n=e.icon,R[n||""]||v.A);return(0,K.jsx)(d.A,{title:e.title||"",children:(0,K.jsx)(u.A,{disableFocusRipple:!0,disableRipple:!0,onClick:function(){return B(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)},fn=function(){return M?[].concat((0,r.A)(rn.map(ln)),(0,r.A)((M.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,r.A)(rn.map(ln)),(0,r.A)(an?[un()]:[]),[cn(),sn()])},pn=function(){return(0,K.jsx)(K.Fragment,{children:D==ge.d.DOCUMENT&&(0,K.jsx)("div",{children:fn()})})};(0,s.useEffect)((function(){!he||N(!1).then((function(e){Ne(e)}))}),[he]);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)(Ae.h,{})}].concat((0,r.A)(an&&D===ge.d.DOCUMENT?[{clickAction:function(){I("")},label:H.dC,actionType:H.Q3.DOWNLOAD,icon:(0,K.jsx)(be.h,{})}]:[]),(0,r.A)(rn.map((function(e){return{clickAction:en,label:mn(e.action),actionType:e.action,shortcutId:e.id,additionlData:e.additional_data,icon:tn(e)}})))),vn=(0,h.A)((0,o.A)((0,o.A)({},ie,!E),ae,E)),gn=(0,h.A)((0,o.A)((0,o.A)({},re,!y),oe,y)),xn=(E&&y||!E)&&(0,K.jsx)("div",{className:gn,"assistant-c-name":"logo",children:y&&_&&(0,K.jsx)("img",{src:y,alt:_,className:vn})}),wn=(0,s.useCallback)((function(e){!he||e&&e.srcElement&&e.srcElement.id.includes("share-content-annotation")||Xe((0,Se.J)(!1,Ee.r.VIEWER_BAR))}),[he]),An={should_app_bar_be_in_top:"".concat(T),position:O};function bn(){return Ke?(0,K.jsx)(je.default,{content:b,withShadow:!1}):(0,K.jsx)(K.Fragment,{})}return(0,K.jsx)(K.Fragment,{children:!j&&(0,K.jsx)(J,(0,i.A)((0,i.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)(p.A,{sx:{display:{xs:"flex",sm:"none"},flexDirection:"row",alignItems:"center",width:"100%"},children:[(null==P?void 0:P.show_in_mobile)&&(0,K.jsx)(p.A,{sx:{minWidth:48,display:"flex",justifyContent:"flex-start"},children:(0,K.jsx)(Oe,{type:"mobile",menuItems:P,handleMenuItemClick:W})}),(0,K.jsx)(p.A,{sx:{flex:1,display:"flex",justifyContent:null!=P&&P.show_in_mobile?"center":"flex-start"},children:xn}),(0,K.jsx)(p.A,{sx:{minWidth:48}})]}),(0,K.jsxs)(p.A,{sx:{display:{xs:"none",sm:"flex"},flexDirection:"row",alignItems:"center"},children:[!E&&y&&xn,null!=P&&P.show_in_desktop?(0,K.jsx)(Oe,{type:"desktop",menuItems:P,handleMenuItemClick:W}):We&&!Ue?(0,K.jsx)(p.A,{sx:{ml:"30px"},children:(0,K.jsx)(Re.A,{element:"menu",variant:"inline",label:"Add menu",onDismiss:function(){return Ve(!0)}})}):(0,K.jsx)(K.Fragment,{})]})]}),(0,K.jsx)(p.A,{sx:{display:{xs:"none",sm:"flex"}},children:(0,K.jsxs)("div",{className:V,children:[(0,K.jsx)("div",{className:q,children:!C&&D==ge.d.DOCUMENT&&(!M||M.show_in_desktop)&&(0,K.jsx)("div",{className:z,children:fn().length>4?(0,K.jsx)(le,{color:Je,renderActions:pn}):pn()})}),bn()]})}),(0,K.jsx)(p.A,{sx:{display:{xs:"block",sm:"none"}},children:(0,K.jsx)(f.x,{onClickAway:wn,children:(0,K.jsxs)("div",{className:fe,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:pe,onClick:function(){Xe((0,Se.J)(!he,Ee.r.VIEWER_BAR))},id:"mobileMenuButton",disabled:F,children:(0,K.jsx)(m.h,{className:me,path:Ie._9r})})})}),bn(),!C&&(0,K.jsx)(we,{id:L,isOpen:he,actionCards:hn,getShareObj:N,handleCloseMobileMenu:wn,contentConversionType:D})]})})})]})})}))})}));We.displayName="ViewerBar";var Me=We,Be=t(77998),Ue=t(15884),Ve=t(25912),ze=t(55737),He="BAR_TOP",qe="BAR_BOTTOM",Ge=function(e,n,t){var i,o,r,a,l,c,s=(0,ke.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,u=n.isWithoutNavBar,d=n.isPresentationMode,f=(0,xe.A)().isMobile,p=(0,Ve.A)().height,m=f?H.O5:H.Hi,h=f?qe:He,v=0;f?(d&&(v=0),null!=e&&null!==(i=e.content_action)&&void 0!==i&&i.is_enabled&&!1!==(null==s||null===(o=s.company)||void 0===o||null===(r=o.company_customizations)||void 0===r?void 0:r.is_powered_by_celero)?v+=ze.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)?v+=ze.bY+24:null!=e&&null!==(c=e.content_action)&&void 0!==c&&c.is_enabled?v+=76:v=30):d&&(v=30);var g=p-v,x=u?0:m;return u&&null!=t&&t.editModeAppBarGhostVisible&&(x=m),{viewerBarPosition:h,viewerHeight:g,viewerBarHeight:x,footerHeight:v}},Ke=function(e){var n,t,i,o,r,a,l=e.content,c=e.idrViewer,u=e.isPreviewCampaign,d=e.viewerOptions,f=e.menuItems,p=e.handleMenuItemClick,m=e.buttons,h=e.handleButtonClick,v=(0,s.useRef)(null),g=(0,xe.A)().isMobile,x=(0,Be.p)({content:l}).handleDownloadOriginalPdf,w=(0,Ue.B)({content:l}),A=w.triggerShareDialog,b=w.getShareObj,y=w.ShareDialogLoader,_=(0,ke.d4)((function(e){return{shortenData:e.shortenData}})).shortenData,S=d.isWithoutNavBar,E=null==_||null===(n=_.company)||void 0===n||!n.company_customizations||(null==_||null===(t=_.company)||void 0===t||null===(i=t.company_customizations)||void 0===i?void 0:i.is_sticky_bar);l.content_customizations&&(E=l.content_customizations.is_sticky_bar);var I=E?"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===(o=l.content_customizations)||void 0===o?void 0:o.logo_url)||(null==_||null===(r=_.company)||void 0===r||null===(a=r.company_customizations)||void 0===a?void 0:a.logo_url)||"";return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(y,{}),(0,K.jsx)(Me,{id:l.id,setCurrentPage:function(e){c&&"function"==typeof c.goToPage&&c.goToPage(e)},content:l,ref:v,handleOpenShareDialog:A,contentName:C,logo:T,logImgAlt:"Logo",isPreviewCampaign:u,getShareObj:b,shortcuts:j,isMobile:g,handleDownloadOriginalPdf:x,shouldShowShareButton:!1,barPosition:I,isWitoutNavBar:!!S,shouldAppBarBeInTop:!0,conversionType:k,menuItems:f,handleMenuItemClick:p,buttons:m,handleButtonClick:h})]})}},74132:function(e,n,t){t.d(n,{A:function(){return l}});var i=t(74859),o=t(63547),r=function(e){return function(n){n({type:o.r,payload:{isLoaderShown:e}})}},a=t(57957),l={getShortenUrlInfo:function(e,n){n(r(!0));var t,o,l,c,s,u,d,f=null;window.celeroData&&(f=null!==(t=window)&&void 0!==t&&null!==(o=t.celeroData)&&void 0!==o&&null!==(l=o.domain)&&void 0!==l&&l.endsWith("/")?null===(c=window)||void 0===c||null===(s=c.celeroData)||void 0===s?void 0:s.domain:(null===(u=window)||void 0===u||null===(d=u.celeroData)||void 0===d?void 0:d.domain)+"/");var p=window.location.search?"&":"?",m="".concat(f?p+"base="+f:""),h="".concat(window.location.search).concat(m);return h.length>0?h+="&viewer=true":h="?viewer=true",i.u.get("/api/shorten/".concat(e,"/").concat(h),{headers:{"doc-referer":document.referrer}}).then((function(e){return e.data})).catch((function(e){var t;return null!=e&&null!==(t=e.message)&&void 0!==t&&t.includes("404")||(0,a.vx)(e,n),Promise.reject(e)})).finally((function(){n(r(!1))}))}}},75449:function(e,n,t){t.d(n,{Iq:function(){return c},f3:function(){return l},o4:function(){return o},pi:function(){return a},pu:function(){return r}});var i=t(64467),o={HUBSPOT:"HUBSPOT",MARKETO:"MARKETO",SALESFORCE:"SALESFORCE",FACEBOOK:"FACEBOOK",LINKEDIN:"LINKEDIN",GOOGLE_ANALYTICS:"GOOGLE ANALYTICS",GOOGLE_TAG_MANAGER:"GOOGLE TAG MANAGER",DRIFT:"DRIFT",INTERCOM:"INTERCOM",OPTIMONK:"OPTIMONK",ELOQUA:"ELOQUA",CELERO_CRM:"CELERO CRM",CCRM:"CCRM",SALESFORCECELERO:"SALESFORCECELERO",KRANESHARES:"KRANESHARES",GOOGLE_ADS:"GOOGLE ADS",CCRMCELERO:"CCRMCELERO",GDPRCELERO:"GDPRCELERO",MAILCHIMP:"MAILCHIMP"},r=(0,i.A)((0,i.A)((0,i.A)({},o.HUBSPOT,"hs_id"),o.MARKETO,"luid"),o.SALESFORCE,"sf_id"),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)((0,i.A)({},o.HUBSPOT,["app_id"]),o.MARKETO,["app_id"]),o.FACEBOOK,["app_id"]),o.LINKEDIN,["app_id"]),o.GOOGLE_ANALYTICS,["app_id"]),o.GOOGLE_TAG_MANAGER,["gtm_id","gtm_auth","gtm_preview"]),o.DRIFT,["app_id"]),o.INTERCOM,["app_id"]),o.ELOQUA,["site_id","first_party_cookie"]),o.GOOGLE_ADS,["gads_id"]),l=["hs_id","luid","sf_id"],c={CONTACT:"Contact",GDPR:"GDPR",FORM:"Form"}},77167:function(e,n,t){t.d(n,{L:function(){return i}});var i="SET_THEME"},77403:function(e,n,t){t.r(n);var i=t(49255),o=t(57957);n.default=function(){return(0,i.useEffect)((function(){(0,o.ZI)("Test error")}),[]),null}},77998:function(e,n,t){t.d(n,{p:function(){return l}});var i=t(49255),o=t(5791),r=t(81114),a=t(95458),l=function(e){var n=e.content;return{handleDownloadOriginalPdf:(0,i.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"})),i=document.createElement("a");i.rel="nofollow",i.href=t,i.setAttribute("download",n.original_name),document.body.appendChild(i),i.click(),document.body.removeChild(i)}));var t={content_id:null==n?void 0:n.uuid,file_title:null==n?void 0:n.version.version_details.name};(0,o.xF)(r.qW.DOWNLOAD_FILE,t)}}),[n])}}},78688:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var i=t(26811),o=t(64467),r=(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,o.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,o=e.content,u=e.viewerOptions,d=e.editModeAppBarGhostVisible,f=(0,l.d4)((function(e){return{theme:e.theme}})).theme,p=(0,c.g7)(o,u,{editModeAppBarGhostVisible:d}).viewerBarHeight,m=r({theme:f,topValue:p}),h=(0,a.A)().isMobile;return(0,s.jsx)("div",{className:h?m.videoContentMobileWrapperStyle:m.videoContentWrapperStyle,children:(0,s.jsx)(i.L,{url:null!==(n=null!==(t=o.base_url)&&void 0!==t?t:o.source_url)&&void 0!==n?n:null,contentUUID:o.uuid,autoplay:!1})})}},78917:function(e,n,t){t.r(n);var i=t(49255),o=t(98941),r=t(45332),a=t(62912),l=t(65983),c=(0,i.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,40310))}));n.default=function(e){var n,t,s=e.company,u=e.shouldTrack;return(0,l.jsxs)(o.P,{children:[(0,l.jsx)(c,{company:s}),u?(0,l.jsx)(r.default,{children:(0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)(l.Fragment,{}),children:(0,l.jsx)(a.A,{account_id:null==s?void 0:s.account_id,name:null===(n=window.celeroFeedData)||void 0===n?void 0:n.feedName})})}):(0,l.jsx)(a.A,{account_id:null==s?void 0:s.account_id,name:null===(t=window.celeroFeedData)||void 0===t?void 0:t.feedName})]})}},80922:function(e,n,t){t.d(n,{I:function(){return o},e:function(){return i}});var i="SET_IN_CONTENT_SEARCH",o=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 i}});var i={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 p},T9:function(){return f}});var i,o=t(64467),r=t(23029),a=t(92901),l=function(){return(0,a.A)((function e(){(0,r.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",OPEN_MENU:"Open Menu",CLOSE_MENU:"Close Menu",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=(i={},(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)(i,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,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)(i,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,o.A)(i,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"},f={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"},p={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 O},default:function(){return R}});var i=t(20454),o=t(91212),r=t(89379),a=t(10467),l=t(5544),c=t(49255),s=t(29297),u=t(74484),d=t(32388),f=t(5084),p=t(879),m=t(64467),h=t(17141),v=t(12558),g=(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"}}}))(v.A),w=t(19378),A=t(97027),b=t(5791),y=t(57957),_=t(81114),S=t(47081),E=t(691),I=t(52473),k=t(38607),C=t(93593),j=t(92049),T=t(84899),N=t(65983),O=function(){var e,n,t,m,h,v,O,R,D,L=(0,S.d4)((function(e){return{gdpr:e.gdpr,shortenData:e.shortenData}})),F=L.gdpr,P=L.shortenData,W=(0,c.useState)(!1),M=(0,l.A)(W,2),B=M[0],U=M[1],V=(0,T.A)().isMobile,z=A.A.parse(window.location.search),H=window.celeroURLParams.is_bot,q=(null==P||null===(e=P.company.company_customizations)||void 0===e?void 0:e.show_cookie_disclaimer)&&"true"!==z.hide_cookie_disclaimer&&!H,G=g(),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,ie=function(){var e=(0,a.A)((0,o.A)().m((function e(){var n,t,i,a,l,c,s,u,d,f,p,m,h,v,g,x,A=arguments;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return d=A.length>0&&void 0!==A[0]?A[0]:{},f=A.length>1?A[1]:void 0,e.n=1,k.A.waitForCeleroId();case 1:p=e.v,m=C.E.getIntegrationsNeededData(p),h=F.integration.data.visitor_param,v=F.integration.data.url_parameter,g=m[h],x=m[v+"_url_param"],I.A.visitorIdentify({account_id:null==P||null===(n=P.company)||void 0===n?void 0:n.account_id,visitor_id:g||"NOVISITORID",integration:F.integration.name,celero_id:p,version_id:(null==P||null===(t=P.versions)||void 0===t||null===(i=t[0])||void 0===i||null===(a=i.version_details)||void 0===a?void 0:a.uuid)||"",url_parameter:x,access_type:null===(l=P.access_control)||void 0===l?void 0:l.min_stage,user_context:JSON.stringify({location:window.geolocation,microsite_name:null==P||null===(c=P.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:f})}).then((function(e){E.A.sessionStorage.setItem(w.$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:f,account_id:null==P||null===(n=P.company)||void 0===n?void 0:n.account_id}}})})),U(!1),(0,b.xF)(_.qW.GDPR_CONSENT,(0,r.A)({value:f},d));case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){var e,n,t,i;!F||!F.integration||null!==(null===(e=F.identifyResponse)||void 0===e?void 0:e.gdpr_consent)||null!=F&&null!==(n=F.integration)&&void 0!==n&&null!==(t=n.data)&&void 0!==t&&null!==(i=t.gdpr_page)&&void 0!==i&&i.includes("/s/".concat(P.hash))||U(!0)}),[F]),!q||null!=F&&null!==(n=F.integration)&&void 0!==n&&null!==(t=n.data)&&void 0!==t&&null!==(m=t.gdpr_page)&&void 0!==m&&m.includes("/s/".concat(P.hash))?null:(0,N.jsx)(u.A,{in:B&&!(null!=F&&null!==(h=F.integration)&&void 0!==h&&null!==(v=h.data)&&void 0!==v&&null!==(O=v.gdpr_page)&&void 0!==O&&O.includes("/s/".concat(P.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)(p.h,{})})}),(0,N.jsxs)("div",{className:ne,children:[(0,N.jsx)(j.$,{className:$,components:{p:function(e){var n=Object.assign({},((0,i.A)(e),e));return(0,N.jsx)("p",(0,r.A)((0,r.A)({},n),{},{style:{margin:0}}))}},children:(null===(R=F.integration)||void 0===R||null===(D=R.data)||void 0===D?void 0:D.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(){ie({source:"banner"},!1)},className:Q,disableRipple:!0,disableTouchRipple:!0,children:(0,N.jsx)(f.A,{className:(0,s.A)(te,ee),children:"Reject"})}),(0,N.jsx)(x,{color:"primary",variant:"contained",onClick:function(){ie({source:"banner"},!0)},className:K,disableRipple:!0,disableTouchRipple:!0,children:(0,N.jsx)(f.A,{className:(0,s.A)(te,Y),children:"Accept"})})]})]})]})})},R=O},81545:function(e,n,t){t.d(n,{A6:function(){return l},JF:function(){return d},T5:function(){return s},W:function(){return p},fI:function(){return c},vH:function(){return f},wL:function(){return a}});var i=t(89379),o=t(81114),r=t(5791),a={VIEWER_BAR:"viewer_bar",ACTIONS_OVERFLOW:"actions_overflow"},l={DESKTOP:"desktop",MOBILE:"mobile"},c={ITEM_CLICK:"item_click",DISMISS:"dismiss"},s={MENU_ITEM:"menu_item",TOOLBAR_BUTTON:"toolbar_button"},u=function(e,n){return"string"==typeof e&&e.length>n?e.slice(0,n):e},d=function(e){var n=e.menu,t=e.layout,a=e.itemCount;(0,r.xF)(o.qW.OPEN_MENU,(0,i.A)((0,i.A)({menu:n},t?{layout:t}:{}),void 0!==a?{item_count:a}:{}))},f=function(e){var n=e.menu,t=e.layout,a=e.itemCount,l=e.closeReason;(0,r.xF)(o.qW.CLOSE_MENU,(0,i.A)((0,i.A)((0,i.A)({menu:n},t?{layout:t}:{}),void 0!==a?{item_count:a}:{}),l?{close_reason:l}:{}))},p=function(e){var n=e.source,t=e.element,a=e.value,l=e.itemIndex,c=e.layout,s=e.menu,d=e.action;(0,r.xF)(o.qW.BUTTON_CLICKED,(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({source:n,element:t},void 0!==a?{value:u(a,100)}:{}),void 0!==l?{item_index:l}:{}),c?{layout:c}:{}),s?{menu:s}:{}),d?{action_kind:d.kind}:{}),"url"===(null==d?void 0:d.kind)?{link_url:u(d.uri,300)}:{}),"page"===(null==d?void 0:d.kind)?{target_page:d.page}:{}),"microsite"===(null==d?void 0:d.kind)?{target_shorten:d.shorten}:{}))}},82759:function(e,n,t){t.d(n,{A:function(){return P}});var i=t(24765),o=t(5544),r=t(49255),a=t(32980),l=t(4563),c=t(22159),s=t(51619),u=t(61755),d=t(98941),f=t(46818),p=t(47081),m=t(5791),h=t(65983),v=function(){return(0,r.useEffect)((function(){(0,m.E1)("d1",{})}),[]),(0,h.jsx)(h.Fragment,{})},g=t(60421),x=function(){return(0,g.A)(),null},w=t(87237),A=t(57957),b=t(74859),y=t(91943),_=t(8737),S=t(691),E=new RegExp("media.celero.io","g");var I=!1,k=function(e){I||(I=!0,b.u.interceptors.response.use((function(e){return JSON.parse(JSON.stringify(e).replace(E,window.location.hostname))}),(function(n){var t=n.config,i=n.response,o=void 0===i?{}:i,r=o.status,a=void 0===r?"":r,l=o.data,c=void 0===l?{}:l;o.statusText;if(a===y.pR&&t&&!t.__isRetryRequest){if("User account is disabled."===c.detail)return S.A.localStorage.removeItem("token"),S.A.localStorage.removeItem("accessToken"),S.A.localStorage.removeItem("loggedIn"),S.A.localStorage.removeItem("refreshToken"),void(0,A.vx)(n,e,c.detail)}else a===y.lV||y.n;return Promise.reject(n)})))},C=function(){var e=(0,r.useState)(!1),n=(0,o.A)(e,2),t=n[0],i=n[1],a=(0,p.wA)();k(a);return(0,h.jsx)("div",{children:(0,h.jsx)(_.A,{variant:"error",verticalPosition:"bottom",horizantalPosition:"center",message:"Something went wrong!",isOpen:t,onClose:function(){i(!1)}})})},j=t(4134),T=t(4472),N=(0,r.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489)]).then(t.bind(t,19996)).then((function(e){return{default:e.ThemeProvider}}))})),O=(0,r.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489)]).then(t.bind(t,59032))})),R=(0,r.lazy)((function(){return Promise.all([t.e(300),t.e(428)]).then(t.bind(t,17415))})),D=(0,r.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,78917))})),L=(0,r.lazy)((function(){return Promise.all([t.e(997),t.e(729),t.e(566),t.e(182),t.e(472),t.e(157),t.e(702),t.e(515),t.e(772),t.e(860),t.e(114),t.e(489),t.e(300),t.e(428)]).then(t.bind(t,3605))})),F=function(){return(0,h.jsx)(h.Fragment,{})},P=function(){var e=(0,r.useState)({account_id:"",company_customizations:void 0,id:0,integrations:[],name:"",taxonomies:[],can_use_home:null,company_settings:{home_hash:null,not_found_hash:null}}),n=(0,o.A)(e,2),t=n[0],m=n[1];["/login"].includes(window.location.pathname)&&window.location.replace("https://app.celero.io");var g=(0,p.d4)((function(e){return{theme:e.theme}})).theme,A=(0,f.i7)().isWithoutTracking,b=!A&&!(0,j.MX)();(0,r.useEffect)((function(){var e;null===(e=w.A.getCompany())||void 0===e||e.then((function(e){e&&m(e)})).catch((function(e){return(0,T.ZI)(e)}));var n="celero_chunk_reloaded",t=function(e){var t=String((null==e?void 0:e.name)||(null==e?void 0:e.message)||e||"");if(t.includes("ChunkLoadError")||t.includes("Loading chunk")||t.includes("Loading CSS chunk")){try{if("1"===sessionStorage.getItem(n))return;sessionStorage.setItem(n,"1")}catch(e){}window.location.reload()}},o=function(e){return t(e.reason)},r=function(e){return t(e.error||e.message)};window.addEventListener("unhandledrejection",o),window.addEventListener("error",r);try{a.NA("hostname",window.location.hostname)}catch(e){}var s=function(e){var n=(null==e?void 0:e.filename)||(null==e?void 0:e.abs_path);return"string"==typeof n&&(!!/\/static\/js\/(main|vendors|runtime|polyfill)-[\w.-]+\.js/.test(n)||(!(!n.startsWith("webpack:///")&&!n.startsWith("webpack-internal:"))||!!n.includes("/celero-viewer/src/")))};return l.T({dsn:"https://a1d9a6755fee465784e10804d349f28f@o435682.ingest.sentry.io/6659501",release:"0.38.0+88a51fb9",integrations:function(e){return e.map((function(e){return"Breadcrumbs"===(null==e?void 0:e.name)?c.F({console:!1}):e}))},environment:"PRODUCTION",tracesSampleRate:1,ignoreErrors:["Non-Error exception captured","Non-Error promise rejection captured","Request aborted","AbortError","The user aborted a request","canceled","CanceledError","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","ChunkLoadError","Loading chunk","Loading CSS chunk","removeChild"],attachStacktrace:!0,beforeSend:function(e,n){var t=null==n?void 0:n.originalException;if(t&&t[T.nG]){var o,r,a,l,c=null===(o=e.exception)||void 0===o||null===(r=o.values)||void 0===r||null===(a=r[0])||void 0===a||null===(l=a.mechanism)||void 0===l?void 0:l.type;if("onunhandledrejection"===c||"onerror"===c)return null}return function(e){var n,t,o,r,a,l,c=(null===(n=e.exception)||void 0===n?void 0:n.values)||[],u=(0,i.A)(c);try{for(u.s();!(l=u.n()).done;){var d;if(((null===(d=l.value.stacktrace)||void 0===d?void 0:d.frames)||[]).some(s))return!0}}catch(e){u.e(e)}finally{u.f()}return((null===(t=e.threads)||void 0===t||null===(o=t.values)||void 0===o||null===(r=o[0])||void 0===r||null===(a=r.stacktrace)||void 0===a?void 0:a.frames)||[]).some(s)}(e)?e:null}}),function(){window.removeEventListener("unhandledrejection",o),window.removeEventListener("error",r)}}),[]);var y=(0,h.jsx)("div",{children:"Something went wrong..."});return(0,h.jsx)(u.vd,{children:(0,h.jsx)(r.Suspense,{fallback:(0,h.jsx)(F,{}),children:(0,h.jsx)(N,{theme:g,children:(0,h.jsx)(O,{style:{height:"100%",backgroundColor:"transparent"},children:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(v,{}),b&&(0,h.jsx)(x,{}),(0,h.jsx)(d.K,{}),(0,h.jsx)(C,{}),window.celeroData?(0,h.jsx)(s.tH,{fallback:y,beforeCapture:function(e){return e.setTag("app_mode","viewer-embed")},children:(0,h.jsx)(R,{company:t,shouldTrack:b})}):window.celeroFeedData?(0,h.jsx)(s.tH,{fallback:y,beforeCapture:function(e){return e.setTag("app_mode","feed-embed")},children:(0,h.jsx)(D,{company:t,shouldTrack:b})}):(0,h.jsx)(s.tH,{fallback:y,beforeCapture:function(e){return e.setTag("app_mode","app-shell")},children:(0,h.jsx)(L,{company:t,shouldTrack:b})})]})})})})})}},83365:function(e,n,t){t.d(n,{A:function(){return y}});var i=t(80045),o=t(89379),r=t(20454),a=t(5544),l=t(49255),c=t(70914),s=t(47081),u=t(92049),d=t(81076),f=t(19804);var p=t(84899),m=t(56787),h=t(5791),v=t(81114),g=t(89349),x=t(65983),w=["href","children"],A="celero-site-footer-host",b=function(e){var n=/^#page=(\d+)$/.exec((e||"").trim());return n?Number(n[1]):null},y=function(e){var n,t,y,_,S,E,I,k,C,j=e.isPresentationMode,T=e.contentUuid,N=e.pageCount,O=(0,s.d4)((function(e){return{shortenData:e.shortenData,theme:e.theme}})),R=O.shortenData,D=O.theme,L=(0,p.A)().isMobile,F=(0,m.A)().currentPageNumber,P=(0,l.useState)(null),W=(0,a.A)(P,2),M=W[0],B=W[1],U=(0,l.useState)(!1),V=(0,a.A)(U,2),z=V[0],H=V[1],q=null==R||null===(n=R.company)||void 0===n?void 0:n.company_customizations,G=(E=null==q?void 0:q.footer,(C=window.celeroSiteFooter||E)&&C.is_enabled&&(null!==(I=C.links_md)&&void 0!==I&&I.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 B(null);var n=!1,t=0,i=function(){if(!n){var e=document.getElementById("idrviewer"),o=null==e?void 0:e.querySelector(".idrviewer-page");if(e&&o){var r=document.getElementById(A);return r||((r=document.createElement("div")).id=A,r.style.width="100%"),e.appendChild(r),void B(r)}t++<100&&setTimeout(i,100)}};return i(),function(){var e;n=!0,null===(e=document.getElementById(A))||void 0===e||e.remove()}}),[K,null==R?void 0:R.versions]),!G)return null;var Y=(null==D||null===(t=D.palette)||void 0===t||null===(y=t.customViewer)||void 0===y?void 0:y.viewerBackGroundColorPresentation)||"#0F1418",X=G.text_color||(j?(0,g.x)(Y):"#2b2b2b"),J={p:function(e){var n=Object.assign({},((0,r.A)(e),e));return(0,x.jsx)("p",(0,o.A)((0,o.A)({},n),{},{style:{margin:0}}))},a:function(e){var n=e.href,t=e.children,r=(0,i.A)(e,w);return(0,x.jsx)("a",(0,o.A)((0,o.A)({},r),{},{href:n,target:b(n)?void 0:"_blank",rel:"noopener noreferrer",onClick:function(e){return function(e,n){var t,i,o=b(n);if(o)return e.preventDefault(),null===(t=window.IDRViewer)||void 0===t||null===(i=t.goToPage)||void 0===i||i.call(t,o),void H(!1);n&&(0,h.xF)(v.qW.OPEN_LINK_IN_NEW_TAB,{content_id:T,link_url:n,page_number:F})}(e,n)},style:{color:"inherit",textDecoration:"none",whiteSpace:"nowrap"},children:t}))}};if(j){var Z,$;if(!N||F!==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)(f.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 M?(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})})]}),M):null}},83940:function(e,n,t){t.d(n,{Ed:function(){return u},PS:function(){return s},nX:function(){return d}});var i=t(27772),o=t(58324),r=t(9551),a=t(62914),l=t(5791),c=t(81114);function s(e){var n=(0,o._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,o.To)(e.email,e.subject,e.body))}function d(e){return function(n,t,o){var l=o?(0,a.K)(o):r.A.get(Number(n));l&&e((0,i.j)({open:!0,config:l,defaultValues:{show:!1,values:{}}}))}}},84411:function(e,n,t){t.d(n,{T:function(){return g}});var i=t(89379),o=t(91212),r=t(10467),a=t(5544),l=t(49255),c=t(49541),s=t(5084),u=t(4134),d=t(29297),f=t(81114),p=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),v=t(65983),g=function(e){var n=m(),t=(0,l.useState)(""),g=(0,a.A)(t,2),x=g[0],w=g[1],A=e.fileTitle,b=e.withPageNumber,y=e.pageNumber,_=e.getShareObj,S=e.additionalActions,E=n.socialShareText,I=n.socialContainer,k=n.IEMarginFix,C="Internet Exployer"===(0,u.X5)(),j=function(){var e=(0,r.A)((0,o.A)().m((function e(n){var t,i;return(0,o.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,_();case 1:t=e.v,i={share_link:t,file_title:A,type:"".concat(n," share"),with_page_number:b,page_number:y},(0,p.xF)(f.qW.SHARE_LINK,i);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,v.jsx)(c.tD,(0,i.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,v.jsx)(c.oB,(0,i.A)({media:"https://placehold.co/600x400"},e))},title:"Pinterest"},{Icon:c.G,ShareButton:function(e){return(0,v.jsx)(c._G,(0,i.A)({windowWidth:660,windowHeight:460},e))},title:"Reddit"},{Icon:c.in,ShareButton:c.Tc,title:"Tumblr"},{Icon:c.aZ,ShareButton:function(e){return(0,v.jsx)(c.Ot,(0,i.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,v.jsx)(c.kQ,(0,i.A)({quote:A},e))},title:"Workplace"},{Icon:c.s4,ShareButton:c.Ec,title:"Line"},{Icon:c.aT,ShareButton:function(e){return(0,v.jsx)(c.mJ,(0,i.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,v.jsx)("button",(0,i.A)((0,i.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&&w(e)}))}),[_]);var N=(0,l.useState)(!1),O=(0,a.A)(N,2),R=O[0],D=O[1],L=function(){var e=(0,r.A)((0,o.A)().m((function e(){return(0,o.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:D(!0),setTimeout((function(){return D(!1)}),1200);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),F=C?(0,d.A)(k,E):E,P=function(e){var t=e.currentIndex,i=e.targetIndex,o=T.slice(t,i).map((function(e){var t=e.Icon,i=e.ShareButton,o=e.title,r=e.isCopyLink;return(0,v.jsxs)("div",{className:n.Button,onClick:function(){return r?L():j(o)},children:[r?(0,v.jsx)("div",{className:n.copyLinkButton,children:(0,v.jsx)(t,{width:32,height:32,style:{color:"white"}})}):(0,v.jsx)(i,{url:x,className:n.shareButton,children:(0,v.jsx)(t,{size:54,round:!0})},o),(0,v.jsx)(s.A,{className:F,defaultValue:o,children:r&&R?"Copied!":o})]},o)}));return(0,v.jsxs)("div",{className:n.grid,children:[o,null==S?void 0:S.map((function(e){return(0,v.jsxs)("div",{className:n.Button,onClick:e.onClick,children:[(0,v.jsx)("div",{className:n.copyLinkButton,children:(0,v.jsx)("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,filter:"brightness(0) invert(1)"},children:e.icon})}),(0,v.jsx)(s.A,{className:F,children:e.title})]},e.title)}))]})};return(0,v.jsx)("div",{className:I,children:(0,v.jsx)(P,{currentIndex:0,targetIndex:T.length})})}},84740:function(e,n){n.A=function(e){var n=e.children;return e.isVisible?n:null}},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 p},L5:function(){return s},O5:function(){return h},Q3:function(){return d},RD:function(){return g},co:function(){return w},dC:function(){return A},gs:function(){return v},oV:function(){return x},qL:function(){return r},yM:function(){return u}});var i=t(89379),o=t(46818),r=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}({}),f={};Object.values(o.NA).forEach((function(e){f[e]=e}));var p=(0,i.A)((0,i.A)({},f),{},{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,v=("Fit width with ".concat("13%"," margin "),"Something went wrong!"),g="Copy Link",x="Share",w="Go to",A="Download"},88960:function(e,n,t){t.d(n,{A:function(){return c}});var i=t(5084),o=t(88671),r=(0,t(20535).A)((function(){return{errorWrapperStyle:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",backgroundColor:"#fff",minHeight:"200px",width:"100%",height:"100%",position:"absolute",top:0,left:0,right:0,bottom:0,margin:"auto"},iconWrapperStyle:{marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center"},errorIconStyle:{width:"48px",height:"48px",color:"#f44336",display:"block",margin:"0 auto"},infoIconStyle:{width:"48px",height:"48px",color:"#1976d2",display:"block",margin:"0 auto"},textWrapperStyle:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:"100%",maxWidth:"400px",margin:"0 auto"},primaryTextStyle:{fontSize:"18px",fontWeight:500,marginBottom:"8px",color:"#333",textAlign:"center",width:"100%"},secondaryTextStyle:{fontSize:"14px",color:"#666",marginBottom:"16px",textAlign:"center",width:"100%",lineHeight:1.5},linkTextStyle:{fontSize:"14px",color:"#1976d2",textDecoration:"underline",wordBreak:"break-all",textAlign:"center",width:"100%","&:hover":{color:"#1565c0"}}}})),a=t(24520),l=t(65983);var c=function(e){var n=r(),t=n.errorWrapperStyle,c=n.errorIconStyle,s=n.primaryTextStyle,u=n.linkTextStyle,d=n.textWrapperStyle,f=n.iconWrapperStyle,p=n.secondaryTextStyle,m=e.isPreview,h=e.iframeSrc,v=e.handleOpenLinkExternal;return(0,l.jsxs)("div",{className:t,children:[(0,l.jsx)("div",{className:f,children:m&&(0,l.jsx)(a.h,{className:c})}),(0,l.jsx)("div",{className:d,children:m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.A,{className:s,children:"This content cannot be displayed in an iframe"}),(0,l.jsx)(i.A,{className:p,children:"Please contact your site administrator to enable iframe embedding or use a link instead of an iframe."}),(0,l.jsx)(o.A,{href:"#",onClick:v,children:(0,l.jsx)(i.A,{className:u,children:h})})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o.A,{href:"#",onClick:v,children:(0,l.jsx)(i.A,{className:u,children:h})})})})]})}},89349:function(e,n,t){t.d(n,{A:function(){return U},x:function(){return _}});var i=t(5544),o=t(24765),r=t(89379),a=t(49255),l=t(70914),c=t(52484),s=t(56787),u=t(62498),d=t(58324),f=t(48623),p=t(83940),m=t(38633),h=t(85434),v=t(30430),g=t(21146),x=t(49698),w=t(65983),A=v.w.palette.primary.main,b=new Set(["embed","image","video","audio","html"]),y=new Set(["embed","image","video","html"]);function _(e){var n=(e||"").replace("#","");if(n.length<6)return"#ffffff";var t=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),o=parseInt(n.slice(4,6),16);return[t,i,o].some(Number.isNaN)?"#ffffff":(.299*t+.587*i+.114*o)/255>.6?"#111111":"#ffffff"}var S=13;function E(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?_(n):A),fontSize:(null==e?void 0:e.font_size)||S}}var I=function(e){return(e||"").replace(/^https?:\/\//i,"")};function k(e){if(("image"===e.kind||"video"===e.kind||"audio"===e.kind)&&e.src&&e.src.startsWith("/"))try{return(0,r.A)((0,r.A)({},e),{},{src:window.location.origin+e.src})}catch(n){return e}return e}function C(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 j(e,n){switch(e.kind){case"embed":return e.uri?(0,w.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,w.jsx)("img",{src:e.src,alt:"",style:{width:"100%",height:"100%",objectFit:"contain"}}):null;case"video":return e.src?(0,w.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,w.jsx)("iframe",{title:"html",srcDoc:e.html,sandbox:"allow-scripts allow-popups",style:{width:"100%",height:"100%",border:0}}):null;default:return null}}var T=12,N=[{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 O(){return(0,w.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,w.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 R(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 D(e){try{window.parent.postMessage({channel:u.$d,version:u.S5,type:"annotation-active",id:e},"*")}catch(e){}}function L(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 F=64,P=22;function W(e){var n,t=e.annotation,c=e.local,s=e.pageEl,d=e.pageW,f=e.pageH,p=e.highlighted,m=e.editMode,v=e.contentUuid,g=e.onHotspotAction,x=t.action,b=t.mode,_=t.style,S="inline"===b&&y.has(x.kind),I=S?j(x,{contentUuid:v,pageNumber:t.page_number}):null,k=!I,W=k&&(null==_||null===(n=_.text)||void 0===n?void 0:n.trim())||"",M=k&&!!W,B=E(_),U=B.background,V=B.color,z=B.fontSize,H=(0,a.useRef)(null);(0,a.useEffect)((function(){p&&H.current&&H.current.scrollIntoView({behavior:"smooth",block:"center"})}),[p]);var q=(0,a.useState)(null),G=(0,i.A)(q,2),K=G[0],Y=G[1],X=(0,a.useState)(!1),J=(0,i.A)(X,2),Z=J[0],$=J[1],Q=(0,a.useState)(!1),ee=(0,i.A)(Q,2),ne=ee[0],te=ee[1],ie=(0,a.useState)(!1),oe=(0,i.A)(ie,2),re=oe[0],ae=oe[1],le=(0,a.useState)(null),ce=(0,i.A)(le,2),se=ce[0],ue=ce[1],de=null!==se,fe=(0,a.useRef)(!1),pe=(0,a.useRef)(null),me=(0,a.useRef)(null),he=(0,a.useRef)(null),ve=(0,a.useRef)(0),ge=(0,a.useRef)(0),xe=(0,a.useRef)(null),we=null!=K?K:c;(0,a.useEffect)((function(){fe.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)},be=function(e){var n=pe.current;if(n){var t=(e.clientX-n.startX)/n.scale,i=(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 o=n.handle,r=n.start.left,a=n.start.top,l=n.start.left+n.start.width,c=n.start.top+n.start.height,s=o.l?Math.min(Math.max(0,r+t),l-T):r,u=o.r?Math.max(Math.min(d,l+t),r+T):l,p=o.t?Math.min(Math.max(0,a+i),c-T):a,m=o.b?Math.max(Math.min(f,c+i),a+T):c;Y({left:s,top:p,width:u-s,height:m-p})}},ye=function(e){var n=pe.current;if(n){pe.current=null,fe.current=!1,te(!1),D(null);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}if(n.moved){var i=null!=K?K:c;R(t.id,t.page_number,[d>0?i.left/d:0,f>0?i.top/f:0,d>0?i.width/d:0,f>0?i.height/f: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,i=t?0:n.getBoundingClientRect().top,o=t?window.innerHeight:n.getBoundingClientRect().bottom,r=ge.current,a=0;ro-F&&(a=Math.ceil((r-(o-F))/F*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,fe.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(D(null),t.pageW>0&&t.pageH>0){var i=function(e,n){var t,i=document.elementsFromPoint(e,n),r=(0,o.A)(i);try{for(r.s();!(t=r.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){r.e(e)}finally{r.f()}return null}(e,n);if(i){var r=i.getBoundingClientRect();if(r.width>0&&r.height>0){var a=parseInt(i.id.replace(/^p/,""),10),l=e-t.grabDX,c=n-t.grabDY,s=Math.max(0,Math.min(1-t.fWidth,(l-r.left)/r.width)),d=Math.max(0,Math.min(1-t.fHeight,(c-r.top)/r.height));a===t.fromPage&&Y({left:s*t.pageW,top:d*t.pageH,width:t.fWidth*t.pageW,height:t.fHeight*t.pageH}),R(t.id,a,[s,d,t.fWidth,t.fHeight])}}}Ae(null)}},Ee=!!m&&(Z||ne),Ie=Ee&&!de;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{ref:H,onClick:m?void 0:function(){S||m||null==g||g(x,t.page_number)},"data-celero-inspector-ignore":"",onMouseEnter:function(){return $(!0)},onMouseLeave:function(){return $(!1)},style:{position:"absolute",left:"".concat(we.left,"px"),top:"".concat(we.top,"px"),width:"".concat(we.width,"px"),height:"".concat(we.height,"px"),zIndex:1099,cursor:S?"default":"pointer",opacity:de?.3:1,outline:p||Ee?"2px solid ".concat(A):M?"none":m?"1px dashed ".concat((0,h.X4)(A,.55)):"none",boxShadow:p?"0 0 0 4px ".concat((0,h.X4)(A,.25)):Ee?"0 2px 10px ".concat((0,h.X4)(A,.25)):M&&Z?"0 2px 8px rgba(0,0,0,0.25)":"none",borderRadius:4,overflow:Ie?"visible":"hidden",background:I?(null==_?void 0:_.background_color)||"transparent":M?U:m&&Z?(0,h.X4)(A,.06):"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:K?"none":"box-shadow .15s, outline-color .15s"},children:[I?(0,w.jsx)("div",{style:{width:"100%",height:"100%",pointerEvents:m?"none":"auto"},children:I}):M?(0,w.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}):m?(0,w.jsx)("span",{style:{fontSize:12,color:A,padding:4,textAlign:"center"},children:C(x)}):null,m&&(0,w.jsx)("div",{onPointerDown:function(e){if(m&&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:L(s),moved:!1,startW:n.width,startH:n.height,pageW:d,pageH:f,fWidth:d>0?we.width/d:0,fHeight:f>0?we.height/f:0,id:t.id,fromPage:t.page_number},fe.current=!0,te(!0),ae(!0),ve.current=e.clientX,ge.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"}}),Ie&&(0,w.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,h.X4)(A,.9),color:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:(0,w.jsx)(O,{})}),Ie&&N.map((function(e){return(0,w.jsx)("div",{onPointerDown:function(n){return function(e,n){if(m&&0===e.button){e.preventDefault(),e.stopPropagation();var i=s.getBoundingClientRect(),o=d>0&&i.width>0?i.width/d:1;pe.current={handle:n,startX:e.clientX,startY:e.clientY,start:(0,r.A)({},we),scale:o||1,moved:!1},fe.current=!0,te(!0),D(t.id);try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}}(n,e)},onPointerMove:be,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(A),borderRadius:2,cursor:e.cursor,touchAction:"none",boxShadow:"0 1px 2px rgba(0,0,0,0.2)"}},e.key)}))]}),re&&(0,l.createPortal)((0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{"data-celero-inspector-ignore":"",onPointerMove:function(e){var n=me.current;if(n){if(ve.current=e.clientX,ge.current=e.clientY,!n.moved){if(Math.abs(e.clientX-n.startX)<=3&&Math.abs(e.clientY-n.startY)<=3)return;n.moved=!0,D(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(ve.current,ge.current)},style:{position:"fixed",inset:0,zIndex:2147482e3,cursor:"grabbing",touchAction:"none",background:"transparent"}}),se&&(0,w.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(A),borderRadius:4,background:(0,h.X4)(A,.12),boxShadow:"0 8px 28px rgba(0,0,0,0.28)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)("div",{style:{width:28,height:28,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:(0,h.X4)(A,.95),color:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:(0,w.jsx)(O,{})})})]}),document.body)]})}var M={image:"image",video:"video",embed:"website",html:"HTML",audio:"audio clip",url:"link",page:"page jump"};function B(e){var n,t,i=e.draft,o=e.local,r=e.contentUuid,a=i.action,l=i.mode,c=i.style,s="inline"===l&&y.has(a.kind),u=s?j(a,{contentUuid:r,pageNumber:i.page_number}):null,d="hotspot"===l&&(null==c||null===(n=c.text)||void 0===n?void 0:n.trim())||"",f=!!d,p=E(c),m=p.background,v=p.color,g=p.fontSize,x=s?"Your ".concat(null!==(t=M[a.kind])&&void 0!==t?t:"element"," will appear here"):"Click area — ".concat(C(a)),b=u?(null==c?void 0:c.background_color)||"transparent":f?m:(0,h.X4)(A,.08);return(0,w.jsxs)("div",{"data-celero-inspector-ignore":"",style:{position:"absolute",left:"".concat(o.left,"px"),top:"".concat(o.top,"px"),width:"".concat(o.width,"px"),height:"".concat(o.height,"px"),zIndex:1098,pointerEvents:"none",border:"2px dashed ".concat(A),borderRadius:4,background:b,boxShadow:"0 0 0 4px ".concat((0,h.X4)(A,.14)),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[null!=u?u:f?(0,w.jsx)("span",{style:{fontSize:g,fontWeight:600,lineHeight:1.2,color:v,padding:"4px 10px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:d}):(0,w.jsx)("span",{style:{fontSize:12,fontWeight:600,color:A,padding:6,textAlign:"center"},children:x}),(0,w.jsx)("span",{style:{position:"absolute",top:4,left:4,fontSize:10,fontWeight:700,letterSpacing:.4,textTransform:"uppercase",color:"#fff",background:(0,h.X4)(A,.95),padding:"1px 6px",borderRadius:999},children:"Preview"})]})}function U(e){var n=e.content,t=(0,s.A)(),o=t.loadedPages,c=(t.currentZoomSettings,(0,g.y)()),h=(0,m.Y)({content:n}),v=h.openUrl,A=h.openContent,y=h.dialog,_=(0,a.useCallback)((function(e,n){b.has(e.kind)?A(e,n):(0,f.w)(e,{source:"annotation",openUrl:v,goToPage:function(e){return(0,x.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})}),[A,v]),S=(0,a.useState)(null),E=(0,i.A)(S,2),I=E[0],C=E[1],j=(0,a.useState)(null),T=(0,i.A)(j,2),N=T[0],O=T[1],R=(0,a.useState)(null),D=(0,i.A)(R,2),L=D[0],F=D[1],P=(0,a.useState)(0),M=(0,i.A)(P,2)[1],U=(0,a.useRef)(null),V=(0,a.useRef)(null);(0,a.useEffect)((function(){U.current=I}),[I]),(0,a.useEffect)((function(){var e=function(){return M((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.Id)(e)){var n=e.data;if(n.channel===u.$d&&n.version===u.S5)if("set-annotations"===n.type)C(n.annotations);else if("set-annotation-draft"===n.type){var t,i=null!==(t=n.draft)&&void 0!==t?t:null,o=i?(0,d.fS)(i.action):null;O(i&&o?(0,r.A)((0,r.A)({},i),{},{action:k(o)}):null)}else if("highlight-annotation"===n.type&&(V.current&&(window.clearTimeout(V.current),V.current=null),F(n.id),null!=n.id)){var a,l=null===(a=U.current)||void 0===a?void 0:a.find((function(e){return e.id===n.id}));if(l)try{(0,x.N)(l.page_number)}catch(e){}n.persist||(V.current=window.setTimeout((function(){return F(null)}),2500))}}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[]);var z=(0,a.useMemo)((function(){var e;return(null!==(e=null!=I?I:null==n?void 0:n.microsite_annotations)&&void 0!==e?e:[]).flatMap((function(e){var n=(0,d.fS)(e.action);return n?[(0,r.A)((0,r.A)({},e),{},{action:k(n)})]:[]}))}),[I,n]);return(0,w.jsxs)(w.Fragment,{children:[z.map((function(e){if(!o.includes(e.page_number))return null;var t=document.getElementById("p".concat(e.page_number));if(!t)return null;var r=t.offsetWidth,a=t.offsetHeight;if(r<=0||a<=0)return null;var s=(e.bounds||[]).map(Number),u=(0,i.A)(s,4),d={left:u[0]*r,top:u[1]*a,width:u[2]*r,height:u[3]*a};return(0,l.createPortal)((0,w.jsx)(W,{annotation:e,local:d,pageEl:t,pageW:r,pageH:a,highlighted:e.id===L,editMode:c,contentUuid:null==n?void 0:n.uuid,onHotspotAction:_}),t,String(e.id))})),N&&o.includes(N.page_number)&&function(){var e=document.getElementById("p".concat(N.page_number));if(!e)return null;var t=e.offsetWidth,o=e.offsetHeight;if(t<=0||o<=0)return null;var r=(N.bounds||[]).map(Number),a=(0,i.A)(r,4),c={left:a[0]*t,top:a[1]*o,width:a[2]*t,height:a[3]*o};return(0,l.createPortal)((0,w.jsx)(B,{draft:N,local:c,contentUuid:null==n?void 0:n.uuid}),e,"microsite-annotation-draft")}(),y]})}},89827:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var i=t(5544),o=t(49255),r=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,f,p=e.content,m=e.containerRef,h=e.barHeight,v=e.bottomReserve,g=e.feed,x=e.isMobile,w=e.forceShow,A=e.placing,b=(0,o.useRef)(null),y=(0,o.useState)(0),_=(0,i.A)(y,2)[1],S=(0,o.useState)(null),E=(0,i.A)(S,2),I=E[0],k=E[1];(0,o.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,o.useEffect)((function(){var e,n,t=function(){return _((function(e){return e+1}))};window.addEventListener("resize",t),t();var i=null===(e=b.current)||void 0===e?void 0:e.querySelector('[assistant-c-name="cta"]');return i&&"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t)).observe(i),function(){var e;window.removeEventListener("resize",t),null===(e=n)||void 0===e||e.disconnect()}}),[]);var C=null==p?void 0:p.content_action;if(x||!C||"CUSTOM"!==C.button_position&&!w)return null;var j=null!==(n=null!=I?I: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:v,sideMargin:16,feed:g}),N=null===(t=b.current)||void 0===t?void 0:t.querySelector('[assistant-c-name="cta"]'),O=(null==N?void 0:N.offsetWidth)||140,R=(null==N?void 0:N.offsetHeight)||44,D=T?(0,a.W)(T,j,{w:O,h:R}):{left:0,top:0};return(0,l.jsxs)("div",{id:"celero-custom-cta-wrapper",ref:b,"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!==(f=null==T?void 0:T.height)&&void 0!==f?f:0,style:{position:"fixed",left:D.left,top:D.top,zIndex:1099,cursor:A?"grab":void 0},children:[A&&(0,l.jsx)(s,{}),(0,l.jsx)(r.default,{content:p,withShadow:!0})]})}},90335:function(e,n,t){t.d(n,{q:function(){return i}});var i="SET_SHORTEN_DATA"},90807:function(e,n,t){t.d(n,{d6:function(){return i}});var i="Celero, PDF, engage, content, b2b, digitize, collateral, boost, engagement, rate, netapp, utils, kraneshares, track, events"},91097:function(e,n,t){t.r(n);var i=t(89379),o=t(49255),r=t(47081),a=t(16976),l=t(27460),c=t(34955),s=t(4134),u=t(5791),d=t(81114),f=t(31783),p=t(77236),m=t(60541),h=t(691),v=t(65983),g=function(){var e={},n=(0,r.d4)((function(e){return{viewer:e.viewer}})).viewer,t=performance.now(),g=!0,x=(0,o.useRef)(new Date),w=(0,o.useRef)(!0),A=(0,o.useRef)(u.xF),b=(0,s.ZI)(),y=!(b!==p.V.Mobile&&b!==p.V.Tablet),_=(0,o.useRef)(u.wn).current(),S=!1,E=!1,I=(0,o.useRef)(f.Y.EXTERNAL),k=(0,o.useRef)(I.current),C=(0,o.useRef)(!1),j=n.isContentFinishLoading,T=!y&&!!j,N=y&&!!j,O=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)},R=(0,o.useCallback)((function(){(0,u.xF)(d.qW.PRINT)}),[]),D=(0,o.useCallback)((0,a.A)(O,40),[O]);(0,o.useEffect)((function(){return window.addEventListener("keydown",D),window.addEventListener("keyup",D),function(){window.removeEventListener("keydown",D),window.removeEventListener("keyup",D)}}),[D]),(0,o.useEffect)((function(){return window.addEventListener("afterprint",R),function(){window.removeEventListener("afterprint",R)}}),[R]),(0,o.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 o=h.A.sessionStorage.getItem("last_open_page_time");o&&((0,u.xF)(d.qW.SLIDE_VIEW_FINISHED,(0,i.A)((0,i.A)({},t),{},{duration:(0,s.ez)(new Date(o),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 r=(0,i.A)((0,i.A)({link:window.location.href},t),_);h.A.sessionStorage.setItem("celero_obj",JSON.stringify(r))}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!==f.Y.EXTERNAL||y&&!0===C.current)if(w.current){var e=(0,s.ez)(x.current,new Date);if(e>1e3*d.vh&&ed.Md)){var i={duration:n};A.current(d.qW.WINDOW_FOCUSED,i)}}}),100),onBlur:(0,a.A)((function(){y&&(I.current=f.Y.EXTERNAL,C.current=!1,k.current=f.Y.EXTERNAL,E||(E=!0,t=performance.now(),g=!1,(0,u.xF)(d.qW.WINDOW_BLUR)))}),100)},{domTarget:window}),P=(0,l.NH)({onMouseOver:function(){C.current=!0},onMouseOut:function(){C.current=!1}},{domTarget:window});return(0,v.jsxs)(v.Fragment,{children:[T&&(0,v.jsx)("div",(0,i.A)({},L())),(0,v.jsx)("div",(0,i.A)({},P())),N&&(0,v.jsx)("div",(0,i.A)({},F()))]})};g.displayName="WindowTracker",n.default=g},91408:function(e,n,t){var i=t(89379),o=t(80045),r=(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,o.A)(e,c);return(0,l.jsx)(r.A,(0,i.A)((0,i.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 i=t(20535),o=t(13989),r=t(78752),a=t(95492),l=t(5084),c=t(88078),s=t(96790),u=t(61870),d=t(65983),f=(0,i.A)((function(e){return(0,o.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,i=e.color,o=e.hideBubbles,p=void 0!==o&&o,m=f({color:i}),h=(null==n?void 0:n.description)||(null==n?void 0:n.summary)||"",v=function(){t(n.link_url||n.link,n)},g=(null==n?void 0:n.keywords)||(null==n?void 0:n.tags);return(0,d.jsxs)("div",{className:m.root,children:[(0,d.jsx)(r.A,{className:m.media,image:(0,s.bN)(n.image_url||n.image),onClick:v}),(0,d.jsxs)(a.A,{className:m.card_content,onClick:v,children:[(0,d.jsx)(l.A,{className:m.title,variant:"h6",component:"h2",title:n.title,children:n.title}),(0,d.jsx)(l.A,{variant:"body2",color:"textSecondary",component:"p",className:m.description,children:h.length<=300?h:h.substr(0,300)+"..."}),(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:"auto",paddingTop:10},children:[n.visits>=0&&(0,d.jsxs)("div",{className:m.visitors,children:[(0,d.jsx)(u.h,{className:m.icon}),(0,d.jsx)("div",{className:m.visitorsNumber,children:n.visits})]}),!p&&(0,d.jsx)("div",{className:m.tags,children:null==g?void 0:g.map((function(e){return(0,d.jsx)(c.A,{label:e,className:m.chip,classes:{label:m.chipLabel},title:e},e)}))})]})]})]})}},92181:function(e,n,t){t.r(n),t.d(n,{default:function(){return w}});var i=t(89379),o=t(5544),r=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(65251),f=t(95792),p=t(84899),m=t(27460),h=t(5791),v=t(81114),g=t(65983),x=.15,w=function(e){var n,t=e.content,w=e.setControlsBarOpened,A=(0,l.A)(),b=A.currentPageNumber,y=A.currentZoomSettings,_=(0,p.A)().isMobile,S=(null==t||null===(n=t.config)||void 0===n?void 0:n.pagecount)||0,E=(0,r.useState)("0%"),I=(0,o.A)(E,2),k=I[0],C=I[1],j=(0,r.useState)(0),T=(0,o.A)(j,2),N=T[0],O=T[1],R=(0,r.useRef)(""),D=(0,r.useState)(Date.now()),L=(0,o.A)(D,2),F=L[0],P=L[1],W=(0,r.useState)(!1),M=(0,o.A)(W,2),B=M[0],U=M[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),ie=(0,m.fD)((function(e){e.distance>0&&P(Date.now())}),{domTarget:window});(0,r.useCallback)((function(){var e="https://www.celero.io/?celero_id=".concat((0,h.AS)()),n={content_id:t.uuid,link_url:e,page_number:b};(0,h.xF)(v.qW.OPEN_LINK_IN_NEW_TAB,n),setTimeout((function(){window.open(e,"_blank")}))}),[t,b]);return(0,r.useEffect)((function(){var e=function(){P(Date.now())};return document.addEventListener("touchstart",e),function(){document.removeEventListener("touchstart",e)}}),[]),(0,r.useEffect)((function(){U(!0),w(!0);var e=setTimeout((function(){U(!1),w(!1)}),3e3);return function(){clearTimeout(e)}}),[F,b]),(0,r.useEffect)((function(){"specific"!==(null==y?void 0:y.zoomType)&&(R.current=null==y?void 0:y.zoomType)}),[y]),(0,r.useEffect)((function(){C("".concat(Math.floor(b/S*100),"%"))}),[b]),(0,g.jsx)(d.A,(0,i.A)((0,i.A)({direction:"up",in:B,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%)"}},ie()),{},{children:(0,g.jsx)("div",{className:H,children:(0,g.jsxs)("div",{className:te,children:[(0,g.jsx)("div",{id:"progress-bar",className:Y,children:(0,g.jsx)("div",{className:K,style:{width:k}})}),(0,g.jsxs)("div",{className:G,children:[V,(0,g.jsx)("div",{className:J,children:!_&&(0,g.jsxs)("div",{className:ne,children:[(0,g.jsx)(f.A,{disableRipple:!0,className:q,onClick:function(){0!=N&&(O(N-1),N-1!=0?window.IDRViewer.setZoom(y.zoomValue-x):window.IDRViewer.setZoom(R.current))},children:(0,g.jsx)(c.h,{width:24,height:24})}),(0,g.jsx)(u.Ay,{id:"zoom-slider",className:ee,step:1,min:0,max:3,value:N,onChange:function(e,n){var t=n;if(n!=N){if(0==t)window.IDRViewer.setZoom(R.current);else if(tN){var o=y.zoomValue+(t+N)*x;window.IDRViewer.setZoom(o)}O(t)}},classes:{root:Z,thumb:$,rail:X,track:Q}}),(0,g.jsx)(f.A,{disableRipple:!0,className:q,onClick:function(){3!=N&&(O(N+1),window.IDRViewer.setZoom(y.zoomValue+x))},children:(0,g.jsx)(s.h,{width:24,height:24})})]})})]})]})})}))}},92808:function(e,n,t){t.d(n,{$z:function(){return v},I5:function(){return f},Xp:function(){return c},et:function(){return d},gz:function(){return l},jy:function(){return x},qz:function(){return g},uS:function(){return p}});var i=t(89379),o=t(49255),r=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,i;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===(i=e.display)||void 0===i?void 0:i.hiddenFields}},u=function(e){var n,t=e.formConfig,i=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:i,referrer_url:window.location.href}},d=function(e){(0,a.xF)(r.qW.OPEN_FORM,{event_attributes:u(e)})},f=function(e,n){var t=n.actionType,o=n.webhookUrl,l=n.webhookPayload,c=n.webhookResponse,s=n.success,d=void 0===s||s,f=n.errorMessage,p=n.step,m=n.status,h=n.keepalive,v=void 0!==h&&h;return(0,a.xF)(r.qW.FORM_ACTION,{event_attributes:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},u(e)),{},{action_type:t,success:d},p?{step:p}:{}),m?{status:m}:{}),f?{error_message:String(f).slice(0,300)}:{}),o?{webhook_url:o}:{}),void 0!==l?{webhook_payload:l}:{}),void 0!==c?{webhook_response:c}:{})},!0,v)},p=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}},v=function(e,n){(0,a.xF)(r.qW.FILL_FORM,{event_attributes:(0,i.A)((0,i.A)({},h(e)),n?{field_name:n}:{})})},g=function(e,n){var t=n.actionType,o=n.success,l=void 0===o||o;(0,a.xF)(r.qW.FORM_ACTION,{event_attributes:(0,i.A)((0,i.A)({},h(e)),{},{action_type:t,success:l})})},x=function(e,n){var t=(0,o.useRef)(null);return t.current||(t.current=new Set),function(o){var l=t.current,c=(null==o?void 0:o.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)(r.qW.FILL_FORM,{event_attributes:(0,i.A)((0,i.A)({},u(e)),{},{field_name:n},t?{step:t}:{})})}(e,s,n))}}},93593:function(e,n,t){t.d(n,{E:function(){return T}});var i,o=t(24765),r=t(89379),a=t(16084),l=t(97027),c=t(75449),s=t(23029),u=t(92901),d=function(){function e(){(0,s.A)(this,e)}return(0,u.A)(e,null,[{key:"init",value:function(n,t){return e.localWindow.hubspot||(e.initialize(n),e.localWindow=window),e.localWindow=window,t&&(e.integration_id=t),e.localWindow._hsp}},{key:"getInstance",value:function(n){return!e.localWindow.hubspot&&n&&(e.init(n),e.localWindow=window),e.localWindow._hsp}}])}();i=d,d.localWindow=window,d.integration_id=void 0,d.getHubspotScript=function(e){return'\nif(!window.hubspot||typeof window.heap!=="object"){window.hubspot=window.hubspot||[],hubspot.load=function(e,t){window.hubspot.appid='.concat(e,',window.hubspot.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.defer=!0,r.src="//js.hs-scripts.com/').concat(e,'.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);};hubspot.load("').concat(e,'")}\n')},d.initialize=function(e){var n="hs-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=i.getHubspotScript(e),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t)}};var f,p=d,m=t(67325),h=t(5791),v=t(81114),g=function(){function e(){(0,s.A)(this,e)}return(0,u.A)(e,null,[{key:"init",value:function(n,t){return e.localWindow.facebook_tag||(e.initialize(n),e.localWindow=window),e.localWindow=window,t&&(e.integration_id=t),e.localWindow.facebook_tag=e.localWindow._fbq,e.localWindow.facebook_tag}},{key:"getInstance",value:function(n){return!e.localWindow.facebook_tag&&n&&(e.init(n),e.localWindow=window),e.localWindow.facebook_tag}}])}();f=g,g.localWindow=window,g.integration_id=void 0,g.getScript=function(e){return"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(e,"');\n fbq('track', 'PageView');")},g.initialize=function(e){var n="facebook-tag-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=f.getScript(e),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t)}};var x,w=g,A=function(){function e(){(0,s.A)(this,e)}return(0,u.A)(e,null,[{key:"init",value:function(n,t){return e.localWindow.linkedin_tag||(e.initialize(n),e.localWindow=window),e.localWindow=window,t&&(e.integration_id=t),e.localWindow.linkedin_tag=e.localWindow.lintrk,e.localWindow.linkedin_tag}},{key:"getInstance",value:function(n){return!e.localWindow.linkedin_tag&&n&&(e.init(n),e.localWindow=window),e.localWindow.linkedin_tag}}])}();x=A,A.localWindow=window,A.integration_id=void 0,A.getScript=function(e){return'\n _linkedin_partner_id = "'.concat(e,'";\n window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\n window._linkedin_data_partner_ids.push(_linkedin_partner_id);\n (function(l) {\n if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};\n window.lintrk.q=[]}\n var s = document.getElementsByTagName("script")[0];\n var b = document.createElement("script");\n b.type = "text/javascript";b.async = true;\n b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";\n s.parentNode.insertBefore(b, s);})(window.lintrk);\n')},A.initialize=function(e){var n="linkedin-tag-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=x.getScript(e),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t)}};var b,y=A,_=function(){function e(){(0,s.A)(this,e)}return(0,u.A)(e,null,[{key:"init",value:function(n,t){return e.localWindow.ga||(e.initialize(n),e.localWindow=window),e.localWindow=window,t&&(e.integration_id=t),e.localWindow.ga}},{key:"getInstance",value:function(n){return!e.localWindow.ga&&n&&(e.init(n),e.localWindow=window),e.localWindow.ga}}])}();b=_,_.localWindow=window,_.integration_id=void 0,_.getScript=function(e){return"\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n \n ga('create', '".concat(e,"', 'auto');\n ga('send', 'pageview');")},_.initialize=function(e){var n="google-analytics-script-loader";if(document&&!!!document.getElementById(n)){var t=document.createElement("script");t.innerHTML=b.getScript(e),t.id=n,t.async=!0,t.defer=!1,document.head.appendChild(t)}};var S=_,E=t(28439),I=t(28216),k=function(){return(0,u.A)((function e(){(0,s.A)(this,e)}),null,[{key:"init",value:function(e){var n=this;e&&this.loadScript(e).then((function(){n.initializeGtag(e)})).catch((function(e){}))}},{key:"loadScript",value:function(e){return new Promise((function(n,t){if(document.getElementById("google-ads-script"))n();else{var i=document.createElement("script");i.id="google-ads-script",i.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),i.async=!0,i.onload=function(){return n()},i.onerror=function(e){return t(e)},document.body.appendChild(i)}}))}},{key:"initializeGtag",value:function(e){function n(){for(var e=arguments.length,n=new Array(e),t=0;t div":(0,D.A)((0,D.A)((0,D.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,D.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%"}}})),W=(0,F.A)((function(){return{root:{"&:hover":{background:"#F6F7F8"}}}}))(L.A),M=t(89252),B=t(58523),U=["setFieldValue","setFieldTouched","name","value","error","className","handleCallBack","container","FormControlStyle","type","isWithTwoLines"],V=function(e){var n=e.setFieldValue,t=e.setFieldTouched,r=e.name,l=e.value,c=e.error,s=e.className,u=e.handleCallBack,d=void 0===u?function(){}:u,f=e.container,p=e.FormControlStyle,m=e.type,v=e.isWithTwoLines,g=(0,C.A)(e,U),x=P(),w=(0,o.useState)(!1),A=(0,i.A)(w,2),b=A[0],_=A[1],S=(0,k.j7)(),E={endAdornment:"password"===m&&(0,y.jsx)(j.A,{position:"end",children:(0,y.jsx)(W,{onClick:function(){_(!b)},disableRipple:!0,children:b?(0,y.jsx)(M.A,{}):(0,y.jsx)(B.A,{})})})},I=v?2:1;return(0,y.jsxs)(T.A,{error:!!c,className:(0,R.A)(x.FormControlStyle,p),children:[(0,y.jsx)(N.A,(0,a.A)({className:s,id:"outlined-basic",variant:"outlined",value:l,onChange:function(e){e.target.value.indexOf("\n")>-1?S.submitForm():(n(r,e.target.value),t(r,!0,!1)),d(r,e.target.value,f,h.wz.TEXT_FIELD)},InputProps:E,type:b?"text":m,multiline:v,rows:I},g)),c&&(0,y.jsx)(O.A,{className:x.FormHelperText,error:!0,children:c})]})},z=t(81076),H=t(50327),q=t(91408),G=(0,b.A)((function(){return{root:{"& .MuiInputLabel-root.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",top:"auto"},"& .MuiInputLabel-root":{transform:"translate(14px, -50%)",top:"50%"}}}})),K={EMAIL_NOT_IN_CONTACTS:"Email not authorized"};function Y(e){var n=e.handleSubmitEmail,t=e.showSubmitInProgress,i=e.descriptionText,o=e.buttonText,r=e.validationError,a=e.title,l=e.logo,c=e.subDescriptionText,s=e.response,u=G(),d=function(e){var n={};return e.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e.email)||(n.email="Invalid email address"):n.email="Email is required",n};return(0,y.jsx)(z.A,{minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",children:(0,y.jsxs)(z.A,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",maxWidth:400,children:[(0,y.jsx)("img",{height:50,src:l||H.default,alt:"logo"}),(0,y.jsx)(w.A,{style:{marginTop:28,marginBottom:14,whiteSpace:"pre-line"},variant:"h5",align:"center",children:a}),(0,y.jsx)(w.A,{style:{whiteSpace:"pre-line"},variant:"body1",align:"center",children:i}),c&&(0,y.jsx)(w.A,{style:{whiteSpace:"pre-line",marginTop:14},variant:"body2",align:"center",children:c}),(0,y.jsx)(k.l1,{onSubmit:n,validate:d,validateOnChange:!1,initialValues:{email:""},children:function(e){var n=e.values,i=e.setFieldValue,r=e.setFieldTouched,a=e.errors,l=e.touched;return(0,y.jsxs)(k.lV,{style:{width:"100%"},children:[(0,y.jsx)(V,{id:"email",name:"email",label:"Email Address",value:n.email,fullWidth:!0,style:{marginTop:16},autoComplete:"email",margin:"normal",setFieldValue:i,setFieldTouched:r,error:l.email&&a.email,className:u.root}),(0,y.jsx)(q.A,{variant:"contained",style:{marginTop:8},fullWidth:!0,type:"submit",color:"primary",size:"large",isLoading:t,disabled:!n.email||t,children:o})]})}}),r&&(0,y.jsx)(w.A,{style:{marginTop:16},color:"error",align:"center",children:K[r]}),(null==s?void 0:s.message)&&(0,y.jsx)(w.A,{color:"error",children:s.message})]})})}var X=t(74859);var J=t(52473);function Z(e){var n=e.onRequestSent,t=e.celeroCRMIntegrationId,r=e.accountId,a=e.short,l=e.versionId,c=e.accessType,s=e.title,u=e.description,d=e.buttonText,f=e.logo,p=e.visitorId,h=e.subDescription,v=o.useState(!1),g=(0,i.A)(v,2),x=g[0],w=g[1],A=o.useState(""),b=(0,i.A)(A,2),_=b[0],S=b[1],E=o.useState(null),I=(0,i.A)(E,2),k=I[0],C=I[1];return(0,y.jsx)(Y,{descriptionText:u,buttonText:d,title:s,handleSubmitEmail:function(e){w(!0),function(e){var n=e.email,t=e.account_id,i=e.short,o=e.access_type,r=e.version_id,a=e.visitor_id;return X.th.post("/crm/api/visitor/email_landing_page_submit/",{email:n,account_id:t,short:i,access_type:o,version_id:r,celero_id:(0,m.AS)(),visitor_id:a||"NOVISITORID"}).then((function(e){if(e&&e.data)return e.data}))}({email:e.email,account_id:r,short:a,version_id:l,access_type:c,visitor_id:p||"NOVISITORID"}).then((function(e){var t=e.status;"EMAIL_FOUND_NO_OTP_REQUIRED"===t?n():S(t),C(e),w(!1)})),t&&J.A.createContact(t,{},{account_id:r,email:e.email,celero_id:(0,m.AS)()})},showSubmitInProgress:x,validationError:_,logo:f,subDescriptionText:h,response:k})}var $=t(71e3),Q=t(38607),ee=t(93593),ne={EVERYONE_ALLOWED:"EVERYONE_ALLOWED",GDPR_CONSENT:"GDPR_CONSENT",UNVERIFIED_CONTACT:"UNVERIFIED_CONTACT",VERIFIED_CONTACT:"VERIFIED_CONTACT",PRIVATE:"PRIVATE"},te=t(50471),ie=t(27772),oe=t(66193),re=t(51053),ae=t(57957),le=t(9551);function ce(e){var n,t,s,u,f=e.restrictAccess,m=e.contentUUID,h=e.children,g=e.celeroCRMIntegrationId,x=e.accountId,w=e.companyIntegrations,A=e.short,b=e.logo,_=e.accessControlSettings,S=e.gateLocked,E=(0,o.useState)(!1),I=(0,i.A)(E,2),k=I[0],C=I[1],j=(0,o.useState)(),T=(0,i.A)(j,2),N=T[0],O=T[1],R=(0,o.useState)(!0),D=(0,i.A)(R,2),L=D[0],F=D[1],P=(0,c.d4)((function(e){return{shortenData:e.shortenData,gdpr:e.gdpr}})),W=P.shortenData,M=P.gdpr,B=(0,c.wA)(),U=null==W||null===(n=W.versions)||void 0===n||null===(t=n[0])||void 0===t||null===(s=t.version_details)||void 0===s?void 0:s.uuid,V=null==W||null===(u=W.access_control)||void 0===u?void 0:u.min_stage,H=(0,$.eM)(x);var q=function(){var e,n,t,i=W.access_control;if(!i||!i.stage_options||!i.min_stage)return null;var o=i.min_stage;i.min_stage===ne.PRIVATE&&(o=ne.VERIFIED_CONTACT);var r=null===(e=i.stage_options[o])||void 0===e?void 0:e.form_obj;return"optimonk"===(null==r||null===(n=r.data)||void 0===n||null===(t=n.platform)||void 0===t?void 0:t.toLowerCase())&&(0,d.oN)(),r}();(0,o.useEffect)((function(){if(q&&!k){var e=(0,a.A)((0,a.A)({},q.data),{},{integration:q.integration,integration_id:q.external_integration,id:q.id,integration_name:q.integrtation_name});le.A.has(q.id)||le.A.register(q.id,e,"access_control",q.external_integration),window.celeroFormConfig=e}}),[q,k]);var G=function(e){var n=e.response;"ALLOWED"===(null==n?void 0:n.access_status)&&(C(!0),B((0,ie.j)(oe.X)))};(0,o.useEffect)((function(){function e(e){G(e.detail)}return window.addEventListener("celeroGDPRFormSubmit",e),function(){window.removeEventListener("celeroGDPRFormSubmit",e)}}),[]),(0,o.useEffect)((function(){if(w&&x&&f&&U){if([ne.UNVERIFIED_CONTACT,ne.VERIFIED_CONTACT,ne.PRIVATE,ne.GDPR_CONSENT].includes(f)){F(!0);var e=(0,$.u4)(w,x),n=e.find((function(e){return"contact"===e.type.toLowerCase()})),t=e.find((function(e){return"gdpr"===e.type.toLowerCase()}));if(!n)return void F(!1);var i=n.data.visitor_param,o=!1,c=function(){o||(o=!0,clearTimeout(s),F(!1))},s=setTimeout((function(){o||((0,ae.FF)("Access control identify did not answer in time",{timeout_ms:8e3,access_type:V,version_id:U}),c())}),8e3);return(0,l.A)((0,r.A)().m((function e(){var o,l,s,u,d,f,p,m;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Q.A.waitForCeleroId();case 1:o=e.v,l=ee.E.getIntegrationsNeededData(o),s=0,u=setInterval((function(){var e=(l=ee.E.getIntegrationsNeededData(o))[i];window.contactNeededIntegrationData=window.contactNeededIntegrationData||{},window.contactNeededIntegrationData=(0,a.A)((0,a.A)({},window.contactNeededIntegrationData),{},{version_id:U,celero_id:o,account_id:x,access_type:V,integration:n.name,visitor_id:e||"NOVISITORID"}),(e||10==s)&&clearInterval(u),s++}),1e3),d=n.data.url_parameter,i?(f=l[i],p=l[d+"_url_param"],m={account_id:x,visitor_id:f||"NOVISITORID",integration:"GDPR_CONSENT"===V?(null==t?void 0:t.name)||"":n.name,celero_id:l.celero_id||"",url_parameter:p,version_id:U,access_token:H,access_type:V,user_context:JSON.stringify({location:JSON.parse(v.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}})},J.A.visitorIdentify(m).then((function(e){O(e),"ALLOWED"==e.access_status&&C(!0),c()})).catch((function(e){(0,ae.FF)("Access control visitor identify request failed",{message:null==e?void 0:e.message,access_type:V,version_id:U})})).finally((function(){c()}))):c();case 2:return e.a(2)}}),e)})))().catch((function(e){(0,ae.FF)("Access control identify failed before the request was sent",{message:null==e?void 0:e.message,access_type:V,version_id:U}),c()})),function(){return clearTimeout(s)}}F(!1)}else F(!1)}),[W,w,x,f,U]);var K=(0,o.useCallback)((function(){var e,n="ALLOWED"===(null===(e=M.identifyResponse)||void 0===e?void 0:e.access_status),t=M.integration;if(n)C(n);else{var i,o=window.location.href,r=null;if(null!=t&&null!==(i=t.data)&&void 0!==i&&i.gdpr_page){var a;r=null==t||null===(a=t.data)||void 0===a?void 0:a.gdpr_page,r=(0,p.Oh)(r,o),o=(0,p.He)(o,"gdpr_source","consent page"),o=(0,p.He)(o,"gdpr_consent","1"),r=(0,p.He)(r,"ref_version_id",U);var l=t.data.visitor_param,c=t.data.url_parameter,s=ee.E.getIntegrationsNeededData(),u=s[l]||"NOVISITORID",d=s[c+"_url_param"]||"",f=s.celero_id||"",m=JSON.stringify({gdpr_consent_value:void 0});r=(0,p.He)(r,"account_id",x||""),r=(0,p.He)(r,"visitor_id",u||""),r=(0,p.He)(r,"integration",t.name||""),r=(0,p.He)(r,"celero_id",f||""),r=(0,p.He)(r,"url_parameter",d||""),r=(0,p.He)(r,"access_type",V||""),r=(0,p.He)(r,"user_input",m||""),r=(0,p.He)(r,"access_token",H||""),r=(0,p.He)(r,"callbackUrl",encodeURIComponent(o))}r&&window.location.assign(r)}}),[M]);if((0,o.useEffect)((function(){}),[M,k]),!f||f===ne.GDPR_CONSENT&&(null==M||!M.integration))return(0,y.jsx)(y.Fragment,{});if(f===ne.EVERYONE_ALLOWED)return h;if(!m&&!S)return(0,y.jsx)(y.Fragment,{});if(!_||_&&"POPUP"===_.stage_options[f].form_preview)return h;if([ne.UNVERIFIED_CONTACT,ne.VERIFIED_CONTACT,ne.PRIVATE].includes(f)){if(!k){var Y,X;if(L)return(0,y.jsx)(y.Fragment,{});var ce=function(e){var n={button:"",title:"",description:"",sub_description:""};switch(e){case ne.PRIVATE:n={button:"Send me a code",title:"This microsite is private",description:"Enter your email address and we will send you a 6-digit access code."};break;case ne.VERIFIED_CONTACT:n={title:"Enter your email \n to receive a verification code",description:"We will send you a 6-digit access code.",sub_description:"We use cookies to make this experience seamless.If you prefer not to use cookies, you can close this page.",button:"Continue"};break;case ne.UNVERIFIED_CONTACT:n={button:"Continue",title:"Enter your email to access",description:"We use cookies to make this experience seamless. For details on how we use cookies and your options for managing them, please check our Terms & Conditions and Privacy Policy."}}return n}(V);return q&&"celero"===(null===(Y=q.data)||void 0===Y?void 0:Y.platform)?(0,y.jsx)(z.A,{justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",display:"flex",children:(0,y.jsx)(z.A,{maxWidth:"980px",children:(0,y.jsx)(te.A,{formConfig:(0,a.A)((0,a.A)({},q.data),{},{integration:q.integration,integration_id:q.external_integration,id:q.id,integration_name:q.integrtation_name}),afterSubmit:G,sourceOfRender:re._.LANDING_PAGE,defaultValues:null===(X=_.stage_options[f])||void 0===X?void 0:X.form_default_values,onCancel:function(){B((0,ie.j)(oe.X))}})})}):(0,y.jsx)(Z,{onRequestSent:function(){C(!0)},celeroCRMIntegrationId:g,accountId:x,short:A,versionId:U,accessType:V,title:ce.title,description:ce.description,buttonText:ce.button,logo:b,visitorId:null==N?void 0:N.visitor_id,subDescription:ce.sub_description})}}return f!=ne.GDPR_CONSENT||k?h:(K(),(0,y.jsx)(y.Fragment,{}))}var se=t(75449),ue=t(90335),de=function(e){return function(n){n({type:ue.q,payload:e})}},fe=t(11977),pe=function(e,n){return function(t){t({type:fe.j,payload:{integration:e,identifyResponse:n}})}},me=t(19378),he=t(75184);var ve=function(e){var n=e.accountId,t=e.companyIntegrations,i=e.versionId,a=e.accessType,u=e.microsite_name,d=(0,c.wA)(),f=(0,o.useRef)(!1),p=s.A.parse(window.location.search);function g(){return(g=(0,l.A)((0,r.A)().m((function e(t){var o,l,c,s,f,g,x,w;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return window.isLoadingGdpr=!0,e.n=1,Q.A.waitForCeleroId();case 1:o=e.v,l=ee.E.getIntegrationsNeededData(o),c=t.data.visitor_param,s=t.data.url_parameter,f=l[c],g=l[s+"_url_param"],x=JSON.stringify({microsite_name:u,location:(0,he.j)(v.A.sessionStorage.getItem("geolocation"))||window.geolocation||{}}),w={account_id:n,visitor_id:f||"NOVISITORID",integration:t.name,celero_id:o||"",version_id:i||"",url_parameter:g,access_type:a,user_context:x},J.A.visitorIdentify(w).then((function(e){if(window.isLoadingGdpr=!1,v.A.sessionStorage.setItem(me.$i,null==e?void 0:e.gdpr_track),g){var n="url param";p.gdpr_source&&(n=p.gdpr_source),(0,m.xF)(h.qW.GDPR_CONSENT,{value:!0,source:n})}d(pe(t,e))})).catch((function(e){window.isLoadingGdpr=!1,(0,ae.FF)("Error in fetching the gdpr integtration",{message:String(e)})}));case 2:return e.a(2)}}),e)})))).apply(this,arguments)}return(0,o.useEffect)((function(){if(n&&1!=f.current&&t&&!window.isLoadingGdpr){var e=t.find((function(e){return(null==e?void 0:e.type)===se.Iq.GDPR}));e&&(!function(e){g.apply(this,arguments)}(e),f.current=!0)}}),[n,t]),e.children},ge=t(30430),xe=t(42156);function we(e){var n=e.shortenHash,t=e.logo,r=e.onUnlocked,a=(0,o.useState)(!1),l=(0,i.A)(a,2),c=l[0],s=l[1],u=(0,o.useState)(""),d=(0,i.A)(u,2),f=d[0],p=d[1];return(0,y.jsx)(z.A,{minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",children:(0,y.jsxs)(z.A,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",maxWidth:400,width:"100%",px:2,children:[(0,y.jsx)("img",{height:50,src:t||H.default,alt:"logo"}),(0,y.jsx)(w.A,{style:{marginTop:28,marginBottom:14},variant:"h5",align:"center",children:"This microsite is password protected"}),(0,y.jsx)(w.A,{variant:"body1",align:"center",children:"Enter the password to continue."}),(0,y.jsx)(k.l1,{onSubmit:function(e){var t=e.password;s(!0),p(""),X.u.post("/api/shorten/".concat(n,"/unlock/"),{password:t}).then((function(e){var t,i=null==e||null===(t=e.data)||void 0===t?void 0:t.access_token;if(!i)return(0,ae.FF)("Microsite unlock answered without an access token",{short:n}),void p("Something went wrong. Please try again.");r(i)})).catch((function(e){var t,i=null==e||null===(t=e.response)||void 0===t?void 0:t.status;403===i?p("Incorrect password."):429===i?p("Too many attempts. Please wait a minute and try again."):((0,ae.FF)("Microsite unlock request failed",{short:n,status:i,message:null==e?void 0:e.message}),p("Something went wrong. Please try again."))})).finally((function(){return s(!1)}))},initialValues:{password:""},children:function(e){var n=e.values,t=e.setFieldValue,i=e.setFieldTouched;return(0,y.jsxs)(k.lV,{style:{width:"100%"},children:[(0,y.jsx)(V,{id:"password",name:"password",label:"Password",type:"password",value:n.password,fullWidth:!0,style:{marginTop:16},autoComplete:"current-password",margin:"normal",setFieldValue:t,setFieldTouched:i}),(0,y.jsx)(q.A,{variant:"contained",style:{marginTop:8},fullWidth:!0,type:"submit",color:"primary",size:"large",isLoading:c,disabled:!n.password||c,children:"Continue"})]})}}),f&&(0,y.jsx)(w.A,{style:{marginTop:16},color:"error",align:"center",children:f})]})})}var Ae=t(73977),be=function(e){return"celero_microsite_access_".concat(e)},ye=function(e){var n,t,x,w,A,b,_,k,C,j,T=e.shortenHash,N=e.company,O=(0,o.useState)(T),R=(0,i.A)(O,2),D=R[0],L=R[1],F=(0,c.wA)(),P=(0,o.useState)(void 0),W=(0,i.A)(P,2),M=W[0],B=W[1],U=(0,o.useState)(!1),V=(0,i.A)(U,2),z=V[0],H=V[1],q=(0,o.useState)(!1),G=(0,i.A)(q,2),K=G[0],Y=G[1],J=(0,o.useRef)(m.wn).current(),Z=(0,o.useState)(!1),Q=(0,i.A)(Z,2),te=Q[0],ie=Q[1],oe=(0,o.useState)((0,I.i7)()),re=(0,i.A)(oe,2),ae=re[0],le=re[1],ue=(0,o.useState)("EVERYONE_ALLOWED"),fe=(0,i.A)(ue,2),pe=fe[0],me=fe[1],he=(0,o.useState)(!1),ye=(0,i.A)(he,2),_e=ye[0],Se=ye[1],Ee=(0,o.useState)(null),Ie=(0,i.A)(Ee,2),ke=Ie[0],Ce=Ie[1],je=(0,o.useState)(),Te=(0,i.A)(je,2),Ne=Te[0],Oe=Te[1],Re=(0,o.useState)(null),De=(0,i.A)(Re,2),Le=De[0],Fe=De[1],Pe=(0,o.useState)(0),We=(0,i.A)(Pe,2),Me=We[0],Be=We[1],Ue=(0,o.useState)(!1),Ve=(0,i.A)(Ue,2),ze=Ve[0],He=Ve[1];function qe(){var e,n;(0,m.xF)(h.qW.CONTENT_NOT_FOUND,{short:D,account_id:null==N?void 0:N.account_id}),(!(n=null==N||null===(e=N.company_settings)||void 0===e?void 0:e.not_found_hash)||D===n||(L(n),0))&&H(!0)}var Ge=function(){var e=(0,l.A)((0,r.A)().m((function e(){var n,t,i,o,l,c,h,g,x,w,A,b,y,_,S,E,k,C,j,T,N,O,R,P,W,M,U,V,H,q,G,K,Z,$,Q,ee,ne,te,oe,re,ae,ce,se,ue,fe,pe,he,ve,we,ye,_e,Se,Ee,Ie;return(0,r.A)().w((function(e){for(;;)switch(e.n){case 0:return t=s.A.parse(window.location.search),i=window.location.search,o=v.A.sessionStorage.getItem(be(D)),(0,X.lq)(o||null),l=(0,X.Ye)(),e.n=1,u.A.getShortenUrlInfo(D,F).catch((function(e){404==e.status&&qe()}));case 1:if(c=e.v){e.n=2;break}return z||qe(),e.a(2);case 2:if(h="preview"===(null===(n=c.params)||void 0===n?void 0:n.campaign),!c.is_expired||h){e.n=3;break}return(A=null===(g=c)||void 0===g||null===(x=g.company)||void 0===x||null===(w=x.company_settings)||void 0===w?void 0:w.not_found_hash)&&D!==A?L(A):qe(),e.a(2);case 3:if(!c.view_limit_reached||h){e.n=4;break}return Y(!0),e.a(2);case 4:if(!c.password_locked){e.n=5;break}return o&&(v.A.sessionStorage.removeItem(be(D)),(0,X.lq)(null)),F((0,xe.Y)((0,d.zL)(ge.w,null===(b=c)||void 0===b||null===(y=b.company)||void 0===y?void 0:y.company_customizations))),Fe({logo:null===(_=c)||void 0===_||null===(S=_.company)||void 0===S||null===(E=S.company_customizations)||void 0===E?void 0:E.logo_url}),e.a(2);case 5:if(!c.gate_locked){e.n=7;break}if(W=c.gate_version_uuid,!(M=(0,Ae.HO)(W))||M===l){e.n=6;break}return(0,X.wG)(M),Be((function(e){return e+1})),e.a(2);case 6:return M&&(0,Ae.MC)(W),null===(k=c)||void 0===k||null===(C=k.company)||void 0===C||null===(j=C.integrations)||void 0===j||j.forEach((function(e){e.name=e.name.toUpperCase()})),c.versions=[{version_details:{uuid:W,name:c.gate_version_name}}],F(de(c)),Oe(c),F((0,xe.Y)((0,d.zL)(ge.w,null===(T=c)||void 0===T||null===(N=T.company)||void 0===N?void 0:N.company_customizations))),me(null===(O=c)||void 0===O||null===(R=O.access_control)||void 0===R?void 0:R.min_stage),Ce(null===(P=c)||void 0===P?void 0:P.access_control),He(!0),e.a(2);case 7:if(He(!1),(0,X.Rx)(c.feed_token||null),U=null,t&&(U=t.type),V=U||(0,d.ZI)(),H="/s/".concat(D,"/").concat(c.seo_content_version_name),c){if(null!==(q=c)&&void 0!==q&&null!==(G=q.company)&&void 0!==G&&G.integrations&&(null===(se=c)||void 0===se||null===(ue=se.company)||void 0===ue||null===(fe=ue.integrations)||void 0===fe||fe.forEach((function(e){e.name=e.name.toUpperCase()}))),c=(0,p.iQ)(c),F(de(c)),Oe(c),pe=(0,d.zL)(ge.w,null===(K=c)||void 0===K||null===(Z=K.company)||void 0===Z?void 0:Z.company_customizations),F((0,xe.Y)(pe)),he=c.versions,ve=c.content_uuid,window.micrositeLink=c.content_url,(null===($=c.versions)||void 0===$?void 0:$.length)>1)for(we=0;we