1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[745,9760,1715,2687,5921],{91715:function(e,t,n){"use strict";n.r(t);var r=n(85893),o=n(67294),i=n(41481),l=n(70724),a=n(45921),u=n.n(a);let c={sm:u().sm,md:u().md,lg:u().lg,full:u().full};function s(e){if(!e||"string"!=typeof e)return{};let t={};return e.split(";").forEach(e=>{let n=e.indexOf(":");if(n<1)return;let r=e.slice(0,n).trim(),o=e.slice(n+1).trim();r&&o&&(t[r.startsWith("--")?r:r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=o)}),t}t.default=e=>{let{popup:t,onClose:n}=e,[a,d]=(0,o.useState)(!1),p=(0,o.useRef)(null),m=(0,o.useRef)(null),f=(e,t)=>[e,(0,l.LY)(t||"",u())].filter(Boolean).join(" ");(0,o.useEffect)(()=>{let e=window.requestAnimationFrame(()=>d(!0));return()=>window.cancelAnimationFrame(e)},[]),(0,o.useEffect)(()=>{var e;m.current=document.activeElement;let t=document.body.style.overflow;document.body.style.overflow="hidden";let r=()=>p.current?Array.from(p.current.querySelectorAll('a[href],button:not([disabled]),textarea,input,select,[tabindex]:not([tabindex="-1"])')):[];null===(e=r()[0]||p.current)||void 0===e||e.focus();let o=e=>{if("Escape"===e.key){n();return}if("Tab"===e.key){let t=r();if(0===t.length)return;let n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),document.body.style.overflow=t,m.current instanceof HTMLElement&&m.current.focus()}},[n]);let _="bottom-right"===t.position?u().bottomRight:u().center,v=c[t.size||"md"]||u().md,y=!1!==t.close_on_overlay,h=!1!==t.show_close_button;return(0,r.jsx)("div",{className:f("".concat(u().overlay," ").concat(_," ").concat(a?u().visible:""),t.overlay_class),role:"dialog","aria-modal":"true","aria-label":t.name||"Popup",onClick:e=>{y&&e.target===e.currentTarget&&n()},children:(0,r.jsxs)("div",{ref:p,tabIndex:-1,className:f("".concat(u().modal," ").concat(v),t.modal_class),style:s(t.modal_style),...t?(0,i.LF)(t):{},children:[h&&(0,r.jsx)("button",{type:"button","aria-label":"Close",className:f(u().closeBtn,t.close_button_class),style:s(t.close_button_style),onClick:n,children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M1 1 L13 13 M13 1 L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),t.videoUrl?(0,r.jsx)("div",{className:f(u().videoWrap,t.content_class),style:s(t.content_style),children:(0,r.jsx)("iframe",{className:u().videoFrame,src:t.videoUrl,title:t.name||"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})}):(0,r.jsx)("div",{className:f(u().content,t.content_class),style:s(t.content_style),children:(0,l.sb)(t.content)})]})})}},72687:function(e,t,n){"use strict";function r(e){let t=(e||"/").split(/[?#]/)[0].toLowerCase();return t.length>1&&t.endsWith("/")?t.replace(/\/+$/,""):t||"/"}n.r(t),n.d(t,{LAYER_COMPONENTS:function(){return u},collectLayers:function(){return s},collectPreloadVideos:function(){return m},eligibleForPath:function(){return h},hasVisibleContent:function(){return v},isLayer:function(){return c},normalizePath:function(){return r},pathMatchesPopup:function(){return l},rankPopups:function(){return y},stripLayers:function(){return d},withinSchedule:function(){return a}});let o=new Map;function i(e,t){return e?e.split(/[\r\n]+/).map(e=>e.trim()).filter(Boolean).map(e=>{let n=t,o=e,i=e[0];"="===i?(n="exact",o=e.slice(1)):"*"===i?(n="contains",o=e.slice(1)):"^"===i?(n="prefix",o=e.slice(1)):"~"===i&&(n="regex",o=e.slice(1));let l="regex"===n?o.trim():r(o.trim());return{mode:n,value:l}}):[]}function l(e,t){let n=e.match_mode||"prefix",r=i(e.include_paths,n),l=i(e.exclude_paths,n);if(0===r.length)return!1;let a=e=>t.some(t=>(function(e,t,n){if(!t)return!1;if("regex"===n){let n=function(e){if(o.has(e))return o.get(e)||null;let t=null;if(e&&e.length<=200)try{t=RegExp(e,"i")}catch(e){t=null}return o.set(e,t),t}(t);return!!n&&n.test(e)}return"contains"===n?e.includes(t):"exact"===n?e===t:e===t||e.startsWith(t+"/")})(t,e.value,e.mode));return!l.some(a)&&r.some(a)}function a(e,t){let n=e.start_date?Date.parse(e.start_date):NaN,r=e.end_date?Date.parse(e.end_date):NaN;return!(Number.isFinite(n)&&t<n||Number.isFinite(r)&&t>r)}let u=new Set(["popup-layer","hubspot-popup-form"]);function c(e){return!!e&&u.has(e.component)}function s(e){let t=[],n=e=>{if(Array.isArray(e))for(let r of e)c(r)&&t.push(r),Array.isArray(null==r?void 0:r.content)&&n(r.content)};return n(e),t}function d(e){return Array.isArray(e)?e.filter(e=>!c(e)):[]}let p=/\.(mp4|webm|ogv|ogg|mov|m4v)(?:[?#]|$)/i;function m(e){let t=[],n=e=>{let n="string"==typeof e?e:null==e?void 0:e.filename;"string"==typeof n&&p.test(n)&&!t.includes(n)&&t.push(n)},r=e=>{if(Array.isArray(e))for(let t of e)t&&"object"==typeof t&&(!1!==t.preload_video&&(n(t.video),n(t.video_url),n(t.video_file)),r(t.content),r(t.form_bloks),r(t.cta))};return r(e),t}function f(e){if(!e)return!1;if("string"==typeof e)return e.trim().length>0;let t=e=>!!e&&("text"===e.type&&"string"==typeof e.text?e.text.trim().length>0:Array.isArray(e.content)&&e.content.some(t));return t(e)}function _(e){var t,n,r,o,i,l,a,u,c,s;if(!e||"object"!=typeof e)return!1;switch(e.component){case"image":return!!((null===(t=e.mid_asset)||void 0===t?void 0:t.filename)||(null===(n=e.image)||void 0===n?void 0:n.filename)||(null===(r=e.asset)||void 0===r?void 0:r.filename));case"text_format":return f(e.text);case"cta-button":return!!((null===(o=e.cta_link)||void 0===o?void 0:o.cached_url)||(null===(i=e.cta_link)||void 0===i?void 0:i.url))&&f(null===(a=e.cta_content)||void 0===a?void 0:null===(l=a[
10])||void 0===l?void 0:l.text);case"hubspot-cta":return!!(e.code&&String(e.code).trim());case"custom-html":return!!String(e.code||e.html||e.content||e.raw_html||e.embed_code||"").trim();case"video-banner":return!!(e.video||(null===(u=e.thumbnail)||void 0===u?void 0:u.filename));case"video-player":return!!e.videoId;case"gradient-form-cta":return Array.isArray(e.form)&&e.form.some(_)||Array.isArray(e.description)&&e.description.some(_);case"popup-split-media":return!!((null===(c=e.video)||void 0===c?void 0:c.filename)||"string"==typeof e.video_url&&e.video_url.trim()||(null===(s=e.media_image)||void 0===s?void 0:s.filename)||Array.isArray(e.title)&&e.title.some(_));case"popup-layer":case"hubspot-popup-form":return!1;default:return!0}}function v(e){return Array.isArray(e)&&e.some(_)}function y(e){return e.map((e,t)=>({p:e,index:t,priority:function(e,t){let n="number"==typeof e?e:parseFloat(String(null!=e?e:""));return Number.isFinite(n)?n:0}(e.priority,0)})).sort((e,t)=>t.priority-e.priority||e.index-t.index).map(e=>e.p)}function h(e,t,n){return y(e.filter(e=>e&&!1!==e.enabled&&v(e.content)&&a(e,n)&&l(e,t)))}},40745:function(e,t,n){"use strict";n.r(t);var r=n(85893),o=n(67294),i=n(41481),l=n(72687),a=n(91715);t.default=e=>{let{blok:t}=e,n=(null==t?void 0:t.trigger_selector)&&String(t.trigger_selector).trim()||".js-popup-next",u=function(e,t){let n=String(e||"").trim();if(!n)return"";let r="";if(/^[A-Za-z0-9_-]{11}$/.test(n))r=n;else{let e=n.match(/[?&]v=([A-Za-z0-9_-]{11})/)||n.match(/youtu\.be\/([A-Za-z0-9_-]{11})/)||n.match(/youtube\.com\/embed\/([A-Za-z0-9_-]{11})/)||n.match(/youtube\.com\/shorts\/([A-Za-z0-9_-]{11})/);r=e?e[1]:""}if(!r)return"";let o=["autoplay=1","rel=0"];t.muted&&o.push("mute=1"),t.captions&&o.push("cc_load_policy=1");let i=String(t.captionsLang||"").trim();return i&&(o.push("cc_lang_pref=".concat(encodeURIComponent(i))),o.push("hl=".concat(encodeURIComponent(i)))),"https://www.youtube.com/embed/".concat(r,"?").concat(o.join("&"))}((null==t?void 0:t.video_id)||(null==t?void 0:t.video_url)||"",{muted:(null==t?void 0:t.mute)!==!1,captions:(null==t?void 0:t.captions)===!0,captionsLang:null==t?void 0:t.captions_lang}),c=(null==t?void 0:t.behavior)==="replace",[s,d]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{let e=e=>{let t=e.target;t&&t.closest&&t.closest(n)&&(e.preventDefault(),c&&window.dispatchEvent(new CustomEvent("popup:replace",{detail:{by:"layer"}})),d(!0))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n,c]),!s)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"".concat(n,"{cursor:pointer;}")}}),(0,r.jsx)("div",{...t?(0,i.LF)(t):{},"aria-hidden":!0,style:{display:"none"},"data-popup-layer-mount":!0})]});let p=u?{...t,videoUrl:u,content:[]}:{...t,content:(0,l.stripLayers)(null==t?void 0:t.content)};return(0,r.jsx)(a.default,{popup:p,onClose:()=>d(!1)})}},45921:function(e){e.exports={overlay:"popup-manager_overlay__TG1hZ",center:"popup-manager_center__huc4c",bottomRight:"popup-manager_bottomRight__hblyD",visible:"popup-manager_visible__sEcqM",modal:"popup-manager_modal__MmXc3",sm:"popup-manager_sm__7sBsj",md:"popup-manager_md__pK6wQ",lg:"popup-manager_lg__y_Lse",full:"popup-manager_full__cuoik",content:"popup-manager_content__tO0Ix",videoWrap:"popup-manager_videoWrap__Lhlv6",videoFrame:"popup-manager_videoFrame__T_jPX",closeBtn:"popup-manager_closeBtn___4EkN"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.