1/*! For license information please see ResourcesEducationalwebinars-d00f29f0af0f61fbd5c6.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkbeasley_design=globalThis.webpackChunkbeasley_design||[]).push([[5490],{259(e,t,l){l.d(t,{A:()=>a});var i=l(4848),s=l(6540),r=l(1734);const a=({enableFavIcon:e,type:t,data:l})=>{const{componentID:a,image:n,category:o,title:c,text:d,url:p,enableFavIcon:u,sameImageAlignment:m}=l,[x,g]=s.useState(!1),f=s.useRef(null),h=s.useRef(null),w=s.useRef(null),v=s.useRef(null),b=s.useRef(null),[C,y]=s.useState(0);return s.useEffect(()=>{const e=()=>{const e=f.current,t=h.current,l=w.current,i=v.current,s=b.current,r=null==e?void 0:e.parentElement;if(e&&r&&i){let a=r.clientHeight;const n=window.getComputedStyle(r),o=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),d=window.getComputedStyle(e);a-=o+c+parseFloat(d.paddingTop)+parseFloat(d.paddingBottom)/2,s&&(a-=s.offsetHeight);let p=0,u=0,m=0,x=0;if(t){p=t.offsetHeight;const e=window.getComputedStyle(t);m=parseFloat(e.marginBottom)}if(l){u=l.offsetHeight;const e=window.getComputedStyle(l);x=parseFloat(e.marginBottom)}a-=p+m+u+x;const g=parseFloat(window.getComputedStyle(i).lineHeight),f=Math.floor(a/g);i.style.display="-webkit-box",i.style.overflow="hidden",i.style.webkitBoxOrient="vertical",i.style.webkitLineClamp=""+(f-1)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[o,c,d]),(0,i.jsx)("a",{href:p,"aria-label":c,"aria-current":"page",className:"js-card col-span-4 mr-5 flex h-[380px] w-full flex-col rounded-2xl bg-amethyst-base last:mr-0 md:mr-8 md:h-[438px]","data-testid":"articleCardReact",children:(0,i.jsxs)("div",{className:"relative block h-full w-full overflow-visible shadow-none [&>picture]:w-full",children:[(0,i.jsx)("div",{className:"flex flex-col",children:(null==n?void 0:n.url)&&(0,i.jsx)("div",{className:"relative flex rounded-t-2xl","data-testid":"articleCardImage",children:(0,i.jsx)("div",{ref:b,className:`max-h-[230px] ${m&&"md:[&>picture]:h-[176px] [&>picture]:h-[150px] "} w-full overflow-hidden [&>picture]:relative [&>picture]:block [&>picture]:max-h-[241px] [&>picture]:w-full [&>picture]:overflow-hidden [&>picture]:rounded-t-2xl [&>picture]:before:block [&>
2picture]:before:pb-[30%] [&>picture]:before:content-[''] md:[&>picture]:before:pb-[36%] [&>picture>img]:absolute [&>picture>img]:top-0 [&>picture>img]:left-0 [&>picture>img]:h-full [&>picture>img]:w-full [&>picture>img]:object-cover [&*img]:z-0`,children:(0,i.jsx)(r.A,{image:{altText:n.altText,imageFocalPoint:n.imageFocalPoint,url:n.url},sizes:["(min-width: 1280px) 25vw","(min-width: 800px) 50vw","100vw"],height:100,width:200})})})}),(0,i.jsxs)("div",{ref:f,className:"content rounded-b-2xl p-[10%] ",children:[(0,i.jsxs)("div",{className:`flex ${e?"justify-between":""} items-start`,children:[o&&(0,i.jsx)("h5",{ref:h,className:"mb-3 font-sans text-s-h5 font-bold uppercase tracking-wide text-amethyst-base py-2 px-4 rounded-[40px] bg-pezzottaite-20 flex justify-center ","data-testid":"articleCardCategory",children:o}),e&&(0,i.jsx)("span",{className:"pt-[2px]",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onClick:e=>{e.stopPropagation(),e.preventDefault()},children:x?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 20 19",className:"",fill:"none",children:(0,i.jsx)("path",{d:"M10 18.35L8.55 17.05C6.86667 15.5333 5.475 14.225 4.375 13.125C3.275 12.025 2.4 11.0375 1.75 10.1625C1.1 9.2875 0.645833 8.48333 0.3875 7.75C0.129167 7.01667 0 6.26667 0 5.5C0 3.93333 0.525 2.625 1.575 1.575C2.625 0.525 3.93333 0 5.5 0C6.36667 0 7.19167 0.183333 7.975 0.55C8.75833 0.916667 9.43333 1.43333 10 2.1C10.5667 1.43333 11.2417 0.916667 12.025 0.55C12.8083 0.183333 13.6333 0 14.5 0C16.0667 0 17.375 0.525 18.425 1.575C19.475 2.625 20 3.93333 20 5.5C20 6.26667 19.8708 7.01667 19.6125 7.75C19.3542 8.48333 18.9 9.2875 18.25 10.1625C17.6 11.0375 16.725 12.025 15.625 13.125C14.525 14.225 13.1333 15.5333 11.45 17.05L10 18.35Z",fill:"#C8C3CD"})}):(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 20 19",className:"",fill:"none",children:(0,i.jsx)("path",{d:"M10 18.35L8.55 17.05C6.86667 15.5333 5.475 14.225 4.375 13.125C3.275 12.025 2.4 11.0375 1.75 10.1625C1.1 9.2875 0.645833 8.48333 0.3875 7.75C0.129167 7.01667 0 6.26667 0 5.5C0 3.93333 0.525 2.625 1.575 1.575C2.625 0.525 3.93333 0 5.5 0C6.36667 0 7.19167 0.183333 7.975 0.55C8.75833 0.916667 9.43333 1.43333 10 2.1C10.5667 1.43333 11.2417 0.916667 12.025 0.55C12.8083 0.183333 13.6333 0 14.5 0C16.0667 0 17.375 0.525 18.425 1.575C19.475 2.625 20 3.93333 20 5.5C20 6.26667 19.8708 7.01667 19.6125 7.75C19.3542 8.48333 18.9 9.2875 18.25 10.1625C17.6 11.0375 16.725 12.025 15.625 13.125C14.525 14.225 13.1333 15.5333 11.45 17.05L10 18.35ZM10 15.65C11.6 14.2167 12.9167 12.9875 13.95 11.9625C14.9833 10.9375 15.8 10.0458 16.4 9.2875C17 8.52917 17.4167 7.85417 17.65 7.2625C17.8833 6.67083 18 6.08333 18 5.5C18 4.5 17.6667 3.66667 17 3C16.3333 2.33333 15.5 2 14.5 2C13.7167 2 12.9917 2.22083 12.325 2.6625C11.6583 3.10417 11.2 3.66667 10.95 4.35H9.05C8.8 3.66667 8.34167 3.10417 7.675 2.6625C7.00833 2.22083 6.28333 2 5.5 2C4.5 2 3.66667 2.33333 3 3C2.33333 3.66667 2 4.5 2 5.5C2 6.08333 2.11667 6.67083 2.35 7.2625C2.58333 7.85417 3 8.52917 3.6 9.2875C4.2 10.0458 5.01667 10.9375 6.05 11.9625C7.08333 12.9875 8.4 14.2167 10 15.65Z",fill:"#C8C3CD"})})})]}),c&&(0,i.jsx)("h4",{ref:w,className:"line-clamp-3 mb-3 font-serif text-s-h4 text-neutral-white ","data-testid":"articleCardTitle",children:c}),d&&(0,i.jsx)("p",{ref:v,className:"clamp-content font-sans text-s-subcopy text-neutral-white","data-testid":"articleCardText",children:d})]})]})})}},1734(e,t,l){l.d(t,{A:()=>d});var i=l(4848),s=l(1183);const r=[320,480,640,800,960,1120,1280,1440,1600,1760,1920];function a({width:e,quality:t=85,ratio:l,baseUrl:i,format:r,focalPoint:a}){const n=(0,s.JU)(l),o=(0,s.JU)(e),c=o*n,d=new URLSearchParams;return a&&d.append("rxy",a),r&&d.append("format",r),c&&d.append("height",c.toString()),t&&d.append("quality",t.toString()),o&&d.append("width",o.toString()),`${i}?${d}`}function n(e){return r.map(t=>[a(Object.assign(Object.assign({},e),{width:t})),`${t}w`])}function o(e){return e.map(e=>e.join(" ")).join(", ")}var c=function(e,t){var l={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(l[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(l[i[s]]=e[i[s]])}return l};const d=e=>{var t,l,{image:r,loading:a="lazy",sizes:d="100vw"}=e,p=c(e,["image","loading","sizes"]);const u=null!==(t=r.url)&&void 0!==t?t:"";if(!u)return null;const m=Array.isArray(d)?d.join(", "):d,x=(0,s.JU)(p.height),g=(0,s.JU)(p.width),f=x&&g?x/g:0,h=n({baseUrl:u,focalPoint:r.imageFocalPoint,ratio:f}),w=n({baseUrl:u,focalPoint:r.imageFocalPoint,format:"webp",ratio:f});return(0,i.jsxs)("picture",{"data-testid":"optiImage",className:"h-[128px] lg:h-[144px]",children:[(0,i.jsx)("source",{sizes:m,srcSet:o(w),type:"image/webp"}),(0,i.jsx)("img",Object.assign({},p,{alt:null!==(l=r.altText)&&void 0!==l?l:"",decoding:"eager"===a?"sync":"async",fetchPriority:"eager"===a?"high":"auto",loading:a,role:r.altText?void 0:"presentation",sizes:m,src:h[0][0],srcSet:o(h)}))]})}},9495(e,t,l){l.r(t),l.d(t,{default:()=>a});var i=l(4848),s=l(6540),r=l(259);const a=e=>{var t,l;
2const[a,n]=(0,s.useState)(1),[o,c]=(0,s.useState)(!0),[d,p]=(0,s.useState)(e.cmsNumberOfRows?3*e.cmsNumberOfRows:6),u=e=>{var t=[];return e.forEach((e,l)=>{var i,s,r,a,n;const o={type:"ArticleCard",data:{componentID:e.componentID,image:{url:null!==(i=e.cmsImageUrl)&&void 0!==i?i:"",altText:"NoImage",imageFocalPoint:""},category:null!==(s=e.cmsWebinarType)&&void 0!==s?s:"",title:null!==(r=e.cmsTitle)&&void 0!==r?r:"",text:null!==(a=e.cmsDescription)&&void 0!==a?a:"",url:null!==(n=e.cmsLinkUrl)&&void 0!==n?n:""}};t.push(o)}),t},[m,x]=(0,s.useState)(u(null!==(t=e.cmsWebinarCards)&&void 0!==t?t:[])),[g,f]=(0,s.useState)(u(null!==(l=e.cmsWebinarCards)&&void 0!==l?l:[]));return(0,s.useEffect)(()=>{let e=(0+d)*a,t=m.slice(0,e);(null==t?void 0:t.length)==m.length?c(!1):c(!0),f(t)},[a]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"mx-auto bg-background",children:(0,i.jsxs)("div",{className:"px-[30px] pb-[30px] pt-0 lg:px-[65px] lg:py-[40px]",children:[(0,i.jsx)("h2",{className:"lg:w-1180 font-serif text-[36px] font-medium leading-[42px] text-amethyst-base lg:text-[45px] lg:leading-[60px]",children:null==e?void 0:e.cmsTitle}),(0,i.jsx)("p",{className:"hidden md:block",children:null==e?void 0:e.cmsDescription}),(0,i.jsx)("div",{className:"mb-[20px] mt-[27px] grid grid-cols-1 gap-[20px] lg:mb-[21px] lg:mt-[40px] lg:grid-cols-3 lg:gap-x-[96px] lg:gap-y-[20px]",children:0!==g.length?g.map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(r.A,Object.assign({},e),t)})):""}),(0,i.jsx)("div",{className:"pb-0 lg:pb-[20px]",children:0!==g.length?m.length>d&&(o?(0,i.jsxs)("div",{className:"flex w-fit items-center justify-start",onClick:()=>{n(a+1)},children:[(0,i.jsxs)("span",{className:"cursor-pointer font-sans text-[16px] font-medium leading-[24px] text-amethyst-base",children:[e.cmsShowMore," "]}),(0,i.jsx)("span",{className:"ml-[15px]",children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 7V2H9V7H14V9H9V14H7V9H2V7H7Z",fill:"#4B0050"})})})]}):(0,i.jsxs)("div",{className:"flex w-fit items-center justify-start",onClick:()=>(n(1),void c(!0)),children:[(0,i.jsx)("span",{className:"cursor-pointer font-sans text-[16px] font-medium leading-[24px] text-amethyst-base",children:e.cmsShowLess}),(0,i.jsx)("span",{className:"ml-[15px]",children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("rect",{x:"2",y:"7.19922",width:"12",height:"2",fill:"#4B0050"})})})]})):""})]})})})}},1183(e,t,l){function i(e){if("number"==typeof e&&!Number.isNaN(e))return e;if("string"!=typeof e)return 0;const t=parseFloat(e);return Number.isNaN(t)?0:t}l.d(t,{AH:()=>r,Im:()=>s,JU:()=>i});const s=e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,r=e=>{const t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(e=>1===e.nodeType)}},1020(e,t,l){var i=l(6540),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,l){var i,r={},c=null,d=null;for(i in void 0!==l&&(c=""+l),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,i)&&!o.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:s,type:e,key:c,ref:d,props:r,_owner:n.current}}t.Fragment=r,t.jsx=c,t.jsxs=c},4848(e,t,l){e.exports=l(1020)}}]);
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.