1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,132602,118790,451010,e=>{"use strict";var a,l,t,i,s,n=e.i(844847),r=e.i(981412),d=e.i(203843),c=e.i(55310),o=e.i(178320),u=e.i(373036);e.s(["CS_REVAL_TIME",()=>j,"getComponentSettings",()=>f,"getPreviewTemplateHeaderData",()=>x,"joinRevalTags",()=>_,"logSanityTag",()=>g],451010);var v=e.i(989517);e.s(["clientSafeFetch",()=>h],118790);var p=e.i(164309),m=e.i(784544);function h(e){return(0,n._)(function*(e){var{query:a,params:l={},tags:t,token:i,draftMode:s=!1,requestTagPrefix:n,timeBasedReval:r}=e;if(!i&&s)throw Error("The `SANITY_API_READ_TOKEN` env is required.");return o.client.fetch(a,l,(0,m._)((0,p._)({},s&&{token:i,perspective:"previewDrafts"}),{useCdn:!!r&&0===t.length,next:{revalidate:s?0:!!r&&r,tags:t},tag:_(t,n,r)}))}).apply(this,arguments)}(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.resourceSettingsQuery,tags:["type--resourceSettings"],requestTagPrefix:"cache"})})()),(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.eventSettingsQuery,tags:["type--eventSettings"],requestTagPrefix:"cache"})})()),(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.fallbackSeriesImageQuery,tags:["type--resourceSettings"],requestTagPrefix:"cache"})})()),(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.siteLogoSettingsQuery,tags:["type--generalSettings"],requestTagPrefix:"cache"})})()),(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.fallbackHeaderImageQuery,tags:["type--customizationSettings"],requestTagPrefix:"cache"})})());var f=(0,d.cache)(()=>(0,n._)(function*(){return yield h({query:u.componentSettingsQuery,tags:["type--eventSettings","type--resourceSettings","type--customizationSettings"],requestTagPrefix:"cache"})})());function x(e,a,l){if(a)if("loading"===l)return{title:"Preview Loading..."};else if(!l)return{title:"404: Draft ".concat(e," Not Found")};else return l;if("loading"===l)throw Error("".concat(e," Template loaded with data='loading' outside of preview. ??? -zc"));if(l)return l;throw Error("".concat(e," Template loaded with data=undefined outside of preview. ??? -zc"))}function _(e,a,l){var t=e.join("__");l&&(t="".concat(l,"__")+t,t=0===e.length?"cdn__"+t:"api__"+t),a&&(t="".concat(a,"__").concat(t));var i=function(e){var a="";for(var l of e.slice(0,75))"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_.-".includes(l)?a+=l:a+="-";return a}(t);return g(i),i}function g(e){if("REQUEST_TAGS"===v.default.env.FETCH_LOGS_MODE||"BOTH"===v.default.env.FETCH_LOGS_MODE){var a=new Date().toLocaleTimeString("en-us",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});console.log("".concat(a," |"),e)}return e}parseInt(null!=(a=v.default.env.NEXT_PUBLIC_INDEX_REVALIDATION_TIME)?a:"86400"),parseInt(null!=(l=v.default.env.NEXT_PUBLIC_RSS_REVALIDATION_TIME)?l:"43200");var j=parseInt(null!=(t=v.default.env.NEXT_PUBLIC_CS_REVALIDATION_TIME)?t:"60");parseInt(null!=(i=v.default.env.NEXT_PUBLIC_MFTS_REVALIDATION_TIME)?i:"172800"),parseInt(null!=(s=v.default.env.NEXT_PUBLIC_ASSET_REVALIDATION_TIME)?s:"604800");var y=e.i(481293),b=e.i(90207),N=e.i(549030),w=e=>{var{onClick:a}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",onClick:a,children:(0,r.jsx)("path",{d:"m434.15-362 156.62-100.54q9.46-6.08 9.46-17.38 0-11.31-9.46-17.54L434.15-598q-11-7.23-21.84-1.07-10.85 6.16-10.85 18.53v201.08q0 12.37 10.85 18.53 10.84 6.16 21.84-1.07Zm45.98 242q-74.44 0-139.79-28.34t-114.48-77.42q-49.13-49.08-77.49-114.37Q120-405.42 120-479.87q0-74.67 28.34-140.41 28.34-65.73 77.42-114.36 49.08-48.63 114.37-76.99Q405.42-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.44-28.34 139.79t-76.92 114.48q-48.58 49.13-114.26 77.49Q554.81-120 480.13-120Z"})})};function k(e){var[a,l]=(0,d.useState)(void 0),[t,i]=(0,d.useState)(!1),[s,v]=(0,d.useState)(void 0),[p,m]=(0,d.useState)(void 0),[h,f]=(0,d.useState)([]),[x,_]=(0,d.useState)(void 0),[j,k]=(0,d.useState)(!1);if((0,d.useEffect)(()=>
1{if(e.value.videoLink){i(!1),v(void 0),m(void 0),f([]),_(void 0),k(!1);var a,t,s=(0,b.parseVideoUrl)(e.value.videoLink);l(s);var r=(0,b.getVideoThumbnailUrls)(s);r?(v(r.thumbnail),m(r.blurThumbnail)):(a=s,(0,n._)(function*(){if("playlist"===a.type){var l,t,i,s=yield(l=e.value.videoLink,(0,n._)(function*(){if(l)try{var e=yield fetch("/api/video-thumbnail?url=".concat(encodeURIComponent(l)));if(!e.ok)return;return(yield e.json()).thumbnail}catch(e){return}})());if(s)return void v(s)}var r=(yield o.client.fetch(u.fallbackHeaderImageQuery,{},{tag:g("type--generalSettings")})).fallbackHeaderImage;if(null==r||null==(t=r.asset)?void 0:t._ref){v((0,y.croppedImage)(r,800)),m(null==(i=r.metadata)?void 0:i.lqip);return}v("/dummy_400x225_ffffff_cccccc.png")})()),"playlist"===s.type&&(t=e.value.videoLink,(0,n._)(function*(){if(!t)return[];try{var e,a=yield fetch("/api/video-playlist?url=".concat(encodeURIComponent(t)));if(!a.ok)return[];return null!=(e=(yield a.json()).items)?e:[]}catch(e){return[]}})()).then(e=>{f(e),e[0]&&(_(e[0].videoId),e[0].thumbnail&&v(e[0].thumbnail))})}},[e.value.videoLink]),!(null==a?void 0:a.id))return(0,r.jsx)("div",{className:"embedded-video layout-block"});var S=e=>{e&&_(e),i(!0)},C="playlist"===a.type&&h.length>0;return(0,r.jsxs)("div",{className:"embedded-video ".concat(a.service," ").concat(C?"is-playlist":""," ").concat(C&&!j?"is-playlist-collapsed":""," layout-block"),"data-cy":"embedded-video",children:[(0,r.jsxs)("div",{className:"embedded-video__player",children:[t?(0,r.jsx)("iframe",{src:(()=>{var l;if("playlist"===a.type&&a.playlistId&&x){var t=new URLSearchParams({autoplay:"1",list:a.playlistId});return"https://www.youtube.com/embed/".concat(x,"?").concat(t.toString())}return(0,b.getVideoEmbedSrc)(a,null!=(l=e.value.videoLink)?l:"",{autoplay:!0})})(),title:"Video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",loading:"lazy"}):(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(c.default,{src:s,alt:"Video Thumbnail",fill:!0,onClick:()=>S(),placeholder:p?"blur":"empty",blurDataURL:p,quality:100}),(0,r.jsx)(w,{onClick:()=>S()})]}),C&&(0,r.jsx)("button",{className:"embedded-video__playlist-toggle",type:"button","aria-label":j?"Hide playlist":"Show playlist","aria-expanded":j,onClick:()=>k(e=>!e),children:(0,r.jsx)(N.FaListUl,{"aria-hidden":"true"})})]}),C&&j&&(0,r.jsx)("div",{className:"embedded-video__playlist","aria-label":"Playlist videos",children:h.map((e,a)=>(0,r.jsxs)("button",{className:"embedded-video__playlist-item ".concat(e.videoId===x?"is-active":""),type:"button",onClick:()=>S(e.videoId),children:[(0,r.jsx)("span",{className:"embedded-video__playlist-thumb",children:e.thumbnail&&(0,r.jsx)(c.default,{src:e.thumbnail,alt:"",fill:!0,sizes:"96px"})}),(0,r.jsxs)("span",{className:"embedded-video__playlist-copy",children:[(0,r.jsx)("span",{className:"embedded-video__playlist-index",children:a+1}),(0,r.jsx)("span",{className:"embedded-video__playlist-title",children:e.title})]})]},e.videoId))})]})}e.s(["default",()=>k],132602)},178178,e=>{"use strict";var a=e.i(981412),l=e.i(203843),t=e.i(55310),i=e.i(481293);function s(e){var s,n,r,d,c,o,u,{value:v}=e,p=null==v?void 0:v.images,m=(null==v?void 0:v.alignment)||"image-center",h=(null==v?void 0:v.size)||"fill",[f,x]=(0,l.useState)(0),_=(0,l.useCallback)(()=>{x(e=>0===e?p.length-1:e-1)},[null==p?void 0:p.length]),g=(0,l.useCallback)(()=>{x(e=>e===p.length-1?0:e+1)},[null==p?void 0:p.length]);if(!p||0===p.length)return null;var j=p[f],y="fill"===h,b=y?1e3:parseInt(h.replace("?w=",""))||300;return(0,a.jsxs)("figure",{className:"\n block-gallery\n block-gallery--".concat(m,"\n ").concat((null==v?void 0:v.float)?"block-gallery--floated":"","\n "),style:{"--block-gallery-width":y?"100%":"".concat(b,"px")},children:[(0,a.jsxs)("div",{className:"block-gallery__viewport",children:[(0,a.jsx)(t.default,{width:b,height:b/((null==(r=j.imageData)||null==(n=r.metadata)||null==(s=n.dimensions)?void 0:s.aspectRatio)||1.5),src:(0,i.croppedImage)(j.imageData,b),alt:j.altText||"Gallery image ".concat(f+1),blurDataURL:null==(c=j.imageData)||null==(d=c.metadata)?void 0:d.lqip,placeholder:(null==(u=j.imageData)||null==(o=u.metadata)?void 0:o.lqip)?"blur":"empty",className:"block-gallery__image"},j._key),p.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"block-gallery__nav block-gallery__nav--prev",onClick:_,"aria-label":"Previous image",type:"button",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M13 4L7 10L13 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)("button",{className:"block-gallery__nav block-gallery__nav--next",onClick:g,"aria-label":"Next image",type:"button",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M7 4L13 10L7 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),(0,a.jsxs)("figcaption",{className:"block-gallery__counter",children:[f+1," / ",p.length]})]})}e.s(["default",()=>s])},182589,(e,a,l)=>{a.exports=e.r(946714)}
1,96691,408578,e=>{"use strict";var a=e.i(164309),l=e.i(784544),t=e.i(981412),i=e.i(203843),s=e.i(514132);function n(e){var i=e.data.openInNewTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(console.log(e),e.data.useHref)?(0,t.jsx)("a",(0,l._)((0,a._)({"data-cy":"custom-link--href",href:e.data.href},i),{children:e.children[0]})):e.data.useFile?(0,t.jsx)("a",{"data-cy":"custom-link--file",rel:"noopener noreferrer",target:"_blank",download:!0,href:e.data.file,children:e.children[0]}):e.data.usePage?(0,t.jsx)("a",(0,l._)((0,a._)({"data-cy":"custom-link--page",href:"/".concat(e.data.internalLink)},i),{children:e.children[0]})):(0,t.jsx)(t.Fragment,{})}function r(e){var{data:a}=e;return(0,t.jsx)(s.PortableText,{value:a,components:{marks:{customLink:e=>{var{children:a,value:l}=e;return(0,t.jsx)(n,{data:l,children:a})},br:e=>{var{children:a}=e;return(0,t.jsxs)(t.Fragment,{children:[a,(0,t.jsx)("br",{})]})}}}})}e.s(["default",()=>n],408578);let d=e=>{var{formFieldInfo:a,conditionallyShow:l,showIfValue:s,_key:n,formMap:d,fieldWidth:c,htmlType:o,onChange:u}=e,{fieldName:v,isRequired:p,note:m}=a,[h,f]=(0,i.useState)(!l),x=(0,i.useMemo)(()=>d.get(n),[d,n]),_=(0,i.useMemo)(()=>d.get(s.field),[d,s]);(0,i.useEffect)(()=>{var e=!1;f(e=!!_&&!!_.displayed&&("object"==typeof _.value?!!_.value.get(s.value):_.value===s.value)),u(n,void 0,e)},[_,n,s.value]);var g="";return"email"===o?g="[email protected]":"tel"===o?g="000-000-0000":"url"===o&&(g="https://mereagency.com"),h&&(0,t.jsxs)("div",{className:"text-input width--".concat(null!=c?c:"full").concat("invalid"===x.valid?" validation-ping":""," "),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(p?" is-required":""),children:v}),(null==m?void 0:m.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:m})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:null!=o?o:"text",name:v,placeholder:g,value:x.value,onChange:e=>u(n,e.target.value)})})]})},c=e=>{var{_key:a,formFieldInfo:l,conditionallyShow:s,showIfValue:n,formMap:d,onChange:c}=e,{fieldName:o,isRequired:u,note:v}=l,[p,m]=(0,i.useState)(!s),h=(0,i.useMemo)(()=>d.get(a),[d,a]),f=(0,i.useMemo)(()=>d.get(n.field),[d,n]);return(0,i.useEffect)(()=>{var e=!1;m(e=!!f&&!!f.displayed&&("object"==typeof f.value?!!f.value.get(n.value):f.value===n.value)),c(a,void 0,e)},[f,a,n.value]),p&&(0,t.jsxs)("div",{className:"textarea-input width--full".concat("invalid"===h.valid?" validation-ping":""),id:"".concat(a),children:[(0,t.jsx)("label",{className:"form-label"+(u?" is-required":""),children:o}),(null==v?void 0:v.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:v})}),(0,t.jsx)("div",{className:"textarea-input__container",children:(0,t.jsx)("textarea",{name:o,value:h.value,onChange:e=>c(a,e.target.value)})})]})},o=e=>{var{options:a,formFieldInfo:l,conditionallyShow:s,showIfValue:n,_key:d,formMap:c,fieldWidth:o,onChange:u}=e,{fieldName:v,isRequired:p,note:m}=l,[h,f]=(0,i.useState)(!s),x=(0,i.useMemo)(()=>c.get(d),[c,d]),_=(0,i.useMemo)(()=>c.get(n.field),[c,n]);return(0,i.useEffect)(()=>{var e=!1;f(e=!!_&&!!_.displayed&&("object"==typeof _.value?!!_.value.get(n.value):_.value===n.value)),u(d,void 0,e)},[_,d,n.value]),h&&(0,t.jsxs)("div",{className:"select-input width--".concat(null!=o?o:"full").concat("invalid"===x.valid?" validation-ping":""),id:"".concat(d),children:[(0,t.jsx)("label",{className:"form-label"+(p?" is-required":""),children:v}),m&&(null==m?void 0:m.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:m})}),(0,t.jsx)("div",{className:"select-input__options",children:v&&(null==a?void 0:a.map((e,a)=>(0,t.jsxs)("label",{htmlFor:v+a,className:"select-input--radio",children:[(0,t.jsx)("input",{id:v+a,type:"radio",name:v,checked:x.value===e.trim(),onChange:()=>u(d,e.trim())}),(0,t.jsx)("span",{className:"select-input__icon"}),e.trim()]},a)))})]})},u=e=>{var{options:a,formFieldInfo:l,conditionallyShow:s,_key:n,showIfValue:d,formMap:c,fieldWidth:o,onChange:u}=e,{fieldName:v,isRequired:p,note:m}=l,[h,f]=(0,i.useState)(!s),x=(0,i.useMemo)(()=>c.get(n),[c,n]),_=(0,i.useMemo)(()=>c.get(d.field),[c,d]);return(0,i.useEffect)(()=>{var e=!1;f(e=!!_&&!!_.displayed&&("object"==typeof _.value?!!_.value.get(d.value):_.value===d.value)),u(n,void 0,e)},[_,n,d.value]),h&&(0,t.jsxs)("div",{className:"select-input-container width--".concat(null!=o?o:"full").concat("invalid"===x.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(p?" is-required":""),children:v}),(null==m?void 0:m.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:m})}),(0,t.jsx)("div",{className:"select-input__options",children:null==a?void 0:a.map((e,a)=>(0,t.jsxs)("label",{htmlFor:v+a,className:"select-input--checkbox",children:[(0,t.jsx)("input",{id:v+a,name:e.trim(),type:"checkbox",checked:x.value.get(e.trim()),onChange:a=>u(n,a.target.checked.toString(),void 0,e.trim())}),(0,t.jsx)("span",{className:"checkbox-input__icon"}),e.trim()]},a))})]})},v=e=>{var{boxLabel:a,formFieldInfo:l,conditionallyShow:s,showIfValue:n,formMap:d,_key:c,fieldWidth:o,onChange:u}=e,[v,p]=(0,i.useState)(!s),{fieldName:m,isRequired:h,note:f}=l,x=(0,i.useMemo)(()=>d.get(c),[d,c]),_=(0,i.useMemo)(()=>d.get(n.field),[d,n]);return(0,i.useEffect)(()=>{var e=!1;p(e=!!_&&!!_.displayed&&("object"==typeof _.value?!!_.value.get(n.value):_.value===n.value)),u(c,void 0,e)},[_,c,n.value]),v&&(0,t.jsxs)("div",{className:"select-input-container width--".concat(null!=o?o:"full").concat("invalid"===x.valid?" validation-ping":""),id:"".concat(c),children:[(0,t.jsx)("label",{className:"form-label"+(h?" is-required":""),children:m}),(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:f})}),(0,t.jsxs)("label",{htmlFor:a,className:"select-input--checkbox",children:[(0,t.jsx)("input",{id:a,type:"checkbox",name:a,checked:"true"===x.value,onChange:e=>u(c,e.target.checked.toString())}),(0,t.jsx)("span",{className:"checkbox-input__icon"}),a]})]})},p=e=>{var{options:a,formFieldInfo:l,conditionallyShow:s,showIfValue:n,_key:d,formMap:c,fieldWidth:o,placeholder:u,onCh
1ange:v}=e,{fieldName:p,isRequired:m,note:h}=l,[f,x]=(0,i.useState)(!s),_=(0,i.useMemo)(()=>c.get(d),[c,d]),g=(0,i.useMemo)(()=>c.get(n.field),[c,n]);return(0,i.useEffect)(()=>{var e=!1;x(e=!!g&&!!g.displayed&&("object"==typeof g.value?!!g.value.get(n.value):g.value===n.value)),v(d,void 0,e)},[g,d,n.value]),f&&(0,t.jsxs)("div",{className:"dropdown-input width--".concat(null!=o?o:"full").concat("invalid"===_.valid?" validation-ping":""),id:"".concat(d),children:[(0,t.jsx)("label",{className:"form-label"+(m?" is-required":""),children:p}),(null==h?void 0:h.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:h})}),(0,t.jsxs)("select",{name:p,value:_.value,onChange:e=>v(d,e.target.value),children:[(0,t.jsx)("option",{value:"",children:u||"Select..."}),null==a?void 0:a.map((e,a)=>(0,t.jsx)("option",{value:e.trim(),children:e.trim()},a))]})]})},m=e=>{var{formFieldInfo:a,conditionallyShow:l,showIfValue:s,_key:n,formMap:d,fieldWidth:c,min:o,max:u,onChange:v}=e,{fieldName:p,isRequired:m,note:h}=a,[f,x]=(0,i.useState)(!l),_=(0,i.useMemo)(()=>d.get(n),[d,n]),g=(0,i.useMemo)(()=>d.get(s.field),[d,s]);return(0,i.useEffect)(()=>{var e=!1;x(e=!!g&&!!g.displayed&&("object"==typeof g.value?!!g.value.get(s.value):g.value===s.value)),v(n,void 0,e)},[g,n,s.value]),f&&(0,t.jsxs)("div",{className:"text-input width--".concat(null!=c?c:"full").concat("invalid"===_.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(m?" is-required":""),children:p}),(null==h?void 0:h.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:h})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:"number",name:p,value:_.value,min:o,max:u,onChange:e=>v(n,e.target.value)})})]})},h=e=>{var{formFieldInfo:s,conditionallyShow:n,showIfValue:d,_key:c,formMap:o,fieldWidth:u,showPrefix:v,showMiddle:p,showSuffix:m,onChange:h}=e,{fieldName:f,isRequired:x,note:_}=s,[g,j]=(0,i.useState)(!n),y=(0,i.useMemo)(()=>o.get(c),[o,c]),b=(0,i.useMemo)(()=>o.get(d.field),[o,d]);(0,i.useEffect)(()=>{var e=!1;j(e=!!b&&!!b.displayed&&("object"==typeof b.value?!!b.value.get(d.value):b.value===d.value)),h(c,void 0,e)},[b,c,d.value]);var N=(0,i.useMemo)(()=>{try{return JSON.parse(y.value||"{}")}catch(e){return{prefix:"",first:"",middle:"",last:"",suffix:""}}},[y.value]),w=(0,i.useCallback)((e,t)=>{h(c,JSON.stringify((0,l._)((0,a._)({},N),{[e]:t})))},[N,c,h]);return g&&(0,t.jsxs)("div",{className:"name-input width--".concat(null!=u?u:"full").concat("invalid"===y.valid?" validation-ping":""),id:"".concat(c),children:[(0,t.jsx)("label",{className:"form-label"+(x?" is-required":""),children:f}),(null==_?void 0:_.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:_})}),(0,t.jsxs)("div",{className:"name-input__fields",children:[v&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--prefix",children:[(0,t.jsx)("label",{children:"Prefix"}),(0,t.jsx)("input",{type:"text",value:N.prefix||"",onChange:e=>w("prefix",e.target.value)})]}),(0,t.jsxs)("div",{className:"name-input__field name-input__field--first",children:[(0,t.jsx)("label",{children:"First Name"}),(0,t.jsx)("input",{type:"text",value:N.first||"",onChange:e=>w("first",e.target.value)})]}),p&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--middle",children:[(0,t.jsx)("label",{children:"Middle"}),(0,t.jsx)("input",{type:"text",value:N.middle||"",onChange:e=>w("middle",e.target.value)})]}),(0,t.jsxs)("div",{className:"name-input__field name-input__field--last",children:[(0,t.jsx)("label",{children:"Last Name"}),(0,t.jsx)("input",{type:"text",value:N.last||"",onChange:e=>w("last",e.target.value)})]}),m&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--suffix",children:[(0,t.jsx)("label",{children:"Suffix"}),(0,t.jsx)("input",{type:"text",value:N.suffix||"",onChange:e=>w("suffix",e.target.value)})]})]})]})},f=e=>{var{formFieldInfo:a,conditionallyShow:l,showIfValue:s,_key:n,formMap:d,fieldWidth:c,onChange:o}=e,{fieldName:u,isRequired:v,note:p}=a,[m,h]=(0,i.useState)(!l),f=(0,i.useMemo)(()=>d.get(n),[d,n]),x=(0,i.useMemo)(()=>d.get(s.field),[d,s]);return(0,i.useEffect)(()=>{var e=!1;h(e=!!x&&!!x.displayed&&("object"==typeof x.value?!!x.value.get(s.value):x.value===s.value)),o(n,void 0,e)},[x,n,s.value]),m&&(0,t.jsxs)("div",{className:"text-input width--".concat(null!=c?c:"full").concat("invalid"===f.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(v?" is-required":""),children:u}),(null==p?void 0:p.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:p})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:"date",name:u,value:f.value,onChange:e=>o(n,e.target.value)})})]})},x=e=>{var{formFieldInfo:a,conditionallyShow:l,showIfValue:s,_key:n,formMap:d,fieldWidth:c,columns:o,maxRows:u,onChange:v}=e,{fieldName:p,isRequired:m,note:h}=a,[f,x]=(0,i.useState)(!l),_=(0,i.useMemo)(()=>d.get(n),[d,n]),g=(0,i.useMemo)(()=>d.get(s.field),[d,s]),j=null!=o?o:[];(0,i.useEffect)(()=>{var e=!1;x(e=!!g&&!!g.displayed&&("object"==typeof g.value?!!g.value.get(s.value):g.value===s.value)),v(n,void 0,e)},[g,n,s.value]);var y=(0,i.useMemo)(()=>{try{return JSON.parse(_.value||"[]")}catch(e){return[j.map(()=>"")]}},[_.value,j]),b=(0,i.useCallback)((e,a,l)=>{v(n,JSON.stringify(y.map((t,i)=>i===e?t.map((e,t)=>t===a?l:e):[...t])))},[y,n,v]),N=(0,i.useCallback)(()=>{v(n,JSON.stringify([...y,j.map(()=>"")]))},[y,j,n,v]),w=(0,i.useCallback)(e=>{v(n,JSON.stringify(y.filter((a,l)=>l!==e)))},[y,n,v]),k=!u||0===u||y.length<u;return f&&(0,t.jsxs)("div",{className:"list-repeater width--".concat(null!=c?c:"full").concat("invalid"===_.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(m?" is-required":""),children:p}),(null==h?void 0:h.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:h})}),(0,t.jsxs)("div",{className:"list-repeater__table",children:[(0,t.jsxs)("div",{className:"list-repeater__header",children:[j.map((e,a)=>(0,t.jsx)("div",{className:"list-repeater__header-cell",children:e},a)),(0,t.jsx)("div",{className:"list-repeater__header-cell list-repeater__header-cell--actions"})]}),y.map((e,a)=>(0,t.jsxs)("div",{className:"list-repeater__row",children:[j.map((l,i)=>{var s;return(0,t.jsx)("div",{className:"list-repeater__cell",children:(0,t.jsx)("input",{type:"text",value:null!=(s=e[i])?s:"",onCh
1ange:e=>b(a,i,e.target.value)})},i)}),(0,t.jsx)("div",{className:"list-repeater__cell list-repeater__cell--actions",children:y.length>1&&(0,t.jsx)("button",{type:"button",className:"list-repeater__remove",onClick:()=>w(a),children:"Remove"})})]},a))]}),k&&(0,t.jsx)("button",{type:"button",className:"list-repeater__add",onClick:N,children:"+ Add Row"})]})};e.i(989517);var _=e.i(182589);function g(e){var{onVerify:a}=e,l=(0,i.useRef)(null),s=(0,i.useRef)(null),n=(0,i.useCallback)(()=>{window.turnstile&&l.current&&!s.current&&(s.current=window.turnstile.render(l.current,{sitekey:"0x4AAAAAAChA8pjk9wcvRYtC",callback:a,"expired-callback":()=>a(""),"error-callback":()=>a(""),theme:"auto"}))},[a]);return(0,i.useEffect)(()=>(window.turnstile&&n(),()=>{s.current&&window.turnstile&&(window.turnstile.remove(s.current),s.current=null)}),[n]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.default,{src:"https://challenges.cloudflare.com/turnstile/v0/api.js",strategy:"afterInteractive",onLoad:n}),(0,t.jsx)("div",{ref:l})]})}let j=e=>{var{boxLabel:a,formFieldInfo:l,formMap:s,_key:n,fieldWidth:d,onChange:c}=e,{fieldName:o,isRequired:u,note:v}=l,p=(0,i.useMemo)(()=>s.get(n),[s,n]);return(0,t.jsxs)("div",{className:"select-input-container width--".concat(null!=d?d:"full").concat("invalid"===p.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(u?" is-required":""),children:o}),(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:v})}),(0,t.jsxs)("label",{htmlFor:a,className:"select-input--checkbox",children:[(0,t.jsx)("input",{id:a,type:"checkbox",name:a,checked:"true"===p.value,onChange:e=>c(n,e.target.checked.toString())}),(0,t.jsx)("span",{className:"checkbox-input__icon"}),a]})]})},y=e=>{var{options:a,formFieldInfo:l,_key:s,formMap:n,fieldWidth:d,onChange:c}=e,{fieldName:o,isRequired:u,note:v}=l,p=(0,i.useMemo)(()=>n.get(s),[n,s]);return(0,t.jsxs)("div",{className:"select-input-container width--".concat(null!=d?d:"full").concat("invalid"===p.valid?" validation-ping":""),id:"".concat(s),children:[(0,t.jsx)("label",{className:"form-label"+(u?" is-required":""),children:o}),(null==v?void 0:v.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:v})}),(0,t.jsx)("div",{className:"select-input__options",children:null==a?void 0:a.map((e,a)=>(0,t.jsxs)("label",{htmlFor:o+a,className:"select-input--checkbox",children:[(0,t.jsx)("input",{id:o+a,type:"checkbox",name:e.trim(),checked:p.value.get(e.trim()),onChange:a=>c(s,a.target.checked.toString(),void 0,e.trim())}),(0,t.jsx)("span",{className:"checkbox-input__icon"}),e.trim()]},a))})]})},b=e=>{var{options:a,formFieldInfo:l,_key:s,formMap:n,fieldWidth:d,onChange:c}=e,{fieldName:o,isRequired:u,note:v}=l,p=(0,i.useMemo)(()=>n.get(s),[n,s]);return(0,t.jsxs)("div",{className:"select-input width--".concat(null!=d?d:"full").concat("invalid"===p.valid?" validation-ping":""),id:"".concat(s),children:[(0,t.jsx)("label",{className:"form-label"+(u?" is-required":""),children:o}),v&&(null==v?void 0:v.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:v})}),(0,t.jsx)("div",{className:"select-input__options",children:o&&(null==a?void 0:a.map((e,a)=>(0,t.jsxs)("label",{htmlFor:o+a,className:"select-input--radio",children:[(0,t.jsx)("input",{id:o+a,type:"radio",name:o,checked:p.value===e.trim(),onChange:()=>c(s,e.trim())}),(0,t.jsx)("span",{className:"select-input__icon"}),e.trim()]},a)))})]})},N=e=>{var{_key:a,formFieldInfo:l,formMap:s,onChange:n}=e,{fieldName:d,isRequired:c,note:o}=l,u=(0,i.useMemo)(()=>s.get(a),[s,a]);return(0,t.jsxs)("div",{className:"textarea-input width--full".concat("invalid"===u.valid?" validation-ping":""),id:"".concat(a),children:[(0,t.jsx)("label",{className:"form-label"+(c?" is-required":""),children:d}),(null==o?void 0:o.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:o})}),(0,t.jsx)("div",{className:"textarea-input__container",children:(0,t.jsx)("textarea",{name:d,value:u.value,onChange:e=>n(a,e.target.value)})})]})},w=e=>{var{formFieldInfo:a,_key:l,formMap:s,fieldWidth:n,htmlType:d,onChange:c}=e,{fieldName:o,isRequired:u,note:v}=a,p=(0,i.useMemo)(()=>s.get(l),[s,l]),m="";return"email"===d?m="[email protected]":"tel"===d?m="000-000-0000":"url"===d&&(m="https://mereagency.com"),(0,t.jsxs)("div",{className:"text-input width--".concat(null!=n?n:"full").concat("invalid"===p.valid?" validation-ping":""),id:"".concat(l),children:[(0,t.jsx)("label",{className:"form-label"+(u?" is-required":""),children:o}),(null==v?void 0:v.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:v})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:null!=d?d:"text",name:o,placeholder:m,value:p.value,onChange:e=>c(l,e.target.value)})})]})},k=e=>{var{options:a,formFieldInfo:l,_key:s,formMap:n,fieldWidth:d,placeholder:c,onChange:o}=e,{fieldName:u,isRequired:v,note:p}=l,m=(0,i.useMemo)(()=>n.get(s),[n,s]);return(0,t.jsxs)("div",{className:"dropdown-input width--".concat(null!=d?d:"full").concat("invalid"===m.valid?" validation-ping":""),id:"".concat(s),children:[(0,t.jsx)("label",{className:"form-label"+(v?" is-required":""),children:u}),(null==p?void 0:p.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:p})}),(0,t.jsxs)("select",{name:u,value:m.value,onChange:e=>o(s,e.target.value),children:[(0,t.jsx)("option",{value:"",children:c||"Select..."}),null==a?void 0:a.map((e,a)=>(0,t.jsx)("option",{value:e.trim(),children:e.trim()},a))]})]})},S=e=>{var{formFieldInfo:a,_key:l,formMap:s,fieldWidth:n,min:d,max:c,onChange:o}=e,{fieldName:u,isRequired:v,note:p}=a,m=(0,i.useMemo)(()=>s.get(l),[s,l]);return(0,t.jsxs)("div",{className:"text-input width--".concat(null!=n?n:"full").concat("invalid"===m.valid?" validation-ping":""),id:"".concat(l),children:[(0,t.jsx)("label",{className:"form-label"+(v?" is-required":""),children:u}),(null==p?void 0:p.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:p})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:"number",name:u,value:m.value,min:d,max:c,onChange:e=>o(l,e.target.value)})})]})},C=e=>{var{formFieldInfo:s,_key:n,formMap:d,fieldWidth:c,showPrefix:o,showMiddle:u,showSuffix:v,onChange:p}=e,{fieldName:m,isRequired:h,note:f}=s,x=(0,i.useMemo)(()=>d.get(n),[d,n]),_=(0,i.useMemo)(()=>{try{return JSON.parse(x.value||"{}")}catch(e){return{prefix:"",first:"",middle:"",last:"",suffix:""}}},[x.value]),g=(0,i.useCallback)((e,t)=>{p(n,JSON.stringify((0,l._)((0,a._)({},_),{[e]:t})))},[_,n,p]);return(0,t.jsxs)("div",{className:"name-input width--".concat(null!=c?c:"full").concat("invalid"===x.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(h?" is-required":""),children:m}),(null==f?void 0:f.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:f})}),(0,t.jsxs)("div",{className:"name-input__fields",children:[o&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--prefix",children:[(0,t.jsx)("label",{children:"Prefix"}),(0,t.jsx)("input",{type:"text",value:_.prefix||"",onChange:e=>g("prefix",e.target.value)})]}),(0,t.jsxs)("div",{className:"name-input__field name-input__field--first",children:[(0,t.jsx)("label",{children:"First Name"}),(0,t.jsx)("input",{type:"text",value:_.first||"",onChange:e=>g("first",e.target.value)})]}),u&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--middle",children:[(0,t.jsx)("label",{children:"Middle"}),(0,t.jsx)("input",{type:"text",value:_.middle||"",onChange:e=>g("middle",e.target.value)})]}),(0,t.jsxs)("div",{className:"name-input__field name-input__field--last",children:[(0,t.jsx)("label",{children:"Last Name"}),(0,t.jsx)("input",{type:"text",value:_.last||"",onChange:e=>g("last",e.target.value)})]}),v&&(0,t.jsxs)("div",{className:"name-input__field name-input__field--suffix",children:[(0,t.jsx)("label",{children:"Suffix"}),(0,t.jsx)("input",{type:"text",value:_.suffix||"",onChange:e=>g("suffix",e.target.value)})]})]})]})},M=e=>{var{formFieldInfo:a,_key:l,formMap:s,fieldWidth:n,onChange:d}=e,{fieldName:c,isRequired:o,note:u}=a,v=(0,i.useMemo)(()=>s.get(l),[s,l]);return(0,t.jsxs)("div",{className:"text-input width--".concat(null!=n?n:"full").concat("invalid"===v.valid?" validation-ping":""),id:"".concat(l),children:[(0,t.jsx)("label",{className:"form-label"+(o?" is-required":""),children:c}),(null==u?void 0:u.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:u})}),(0,t.jsx)("div",{className:"text-input__container",children:(0,t.jsx)("input",{type:"date",name:c,value:v.value,onChange:e=>d(l,e.target.value)})})]})},I=e=>{var{formFieldInfo:a,_key:l,formMap:s,fieldWidth:n,columns:d,maxRows:c,onChange:o}=e,{fieldName:u,isRequired:v,note:p}=a,m=(0,i.useMemo)(()=>s.get(l),[s,l]),h=null!=d?d:[],f=(0,i.useMemo)(()=>{try{return JSON.parse(m.value||"[]")}catch(e){return[h.map(()=>"")]}},[m.value,h]),x=(0,i.useCallback)((e,a,t)=>{o(l,JSON.stringify(f.map((l,i)=>i===e?l.map((e,l)=>l===a?t:e):[...l])))},[f,l,o]),_=(0,i.useCallback)(()=>{o(l,JSON.stringify([...f,h.map(()=>"")]))},[f,h,l,o]),g=(0,i.useCallback)(e=>{o(l,JSON.stringify(f.filter((a,l)=>l!==e)))},[f,l,o]),j=!c||0===c||f.length<c;return(0,t.jsxs)("div",{className:"list-repeater width--".concat(null!=n?n:"full").concat("invalid"===m.valid?" validation-ping":""),id:"".concat(l),children:[(0,t.jsx)("label",{className:"form-label"+(v?" is-required":""),children:u}),(null==p?void 0:p.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:p})}),(0,t.jsxs)("div",{className:"list-repeater__table",children:[(0,t.jsxs)("div",{className:"list-repeater__header",children:[h.map((e,a)=>(0,t.jsx)("div",{className:"list-repeater__header-cell",children:e},a)),(0,t.jsx)("div",{className:"list-repeater__header-cell list-repeater__header-cell--actions"})]}),f.map((e,a)=>(0,t.jsxs)("div",{className:"list-repeater__row",children:[h.map((l,i)=>{var s;return(0,t.jsx)("div",{className:"list-repeater__cell",children:(0,t.jsx)("input",{type:"text",value:null!=(s=e[i])?s:"",onCh
1ange:e=>x(a,i,e.target.value)})},i)}),(0,t.jsx)("div",{className:"list-repeater__cell list-repeater__cell--actions",children:f.length>1&&(0,t.jsx)("button",{type:"button",className:"list-repeater__remove",onClick:()=>g(a),children:"Remove"})})]},a))]}),j&&(0,t.jsx)("button",{type:"button",className:"list-repeater__add",onClick:_,children:"+ Add Row"})]})},L=e=>{var{formFieldInfo:s,_key:n,formMap:d,fieldWidth:c,showStreet2:o,showCountry:u,onChange:v}=e,{fieldName:p,isRequired:m,note:h}=s,f=(0,i.useMemo)(()=>d.get(n),[d,n]),x=(0,i.useMemo)(()=>{try{return JSON.parse(f.value||"{}")}catch(e){return{street:"",street2:"",city:"",state:"",zip:"",country:""}}},[f.value]),_=(0,i.useCallback)((e,t)=>{v(n,JSON.stringify((0,l._)((0,a._)({},x),{[e]:t})))},[x,n,v]);return(0,t.jsxs)("div",{className:"address-input width--".concat(null!=c?c:"full").concat("invalid"===f.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(m?" is-required":""),children:p}),(null==h?void 0:h.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:h})}),(0,t.jsxs)("div",{className:"address-input__fields",children:[(0,t.jsxs)("div",{className:"address-input__field address-input__field--street",children:[(0,t.jsx)("label",{children:"Street Address"}),(0,t.jsx)("input",{type:"text",value:x.street||"",onChange:e=>_("street",e.target.value)})]}),!1!==o&&(0,t.jsxs)("div",{className:"address-input__field address-input__field--street2",children:[(0,t.jsx)("label",{children:"Address Line 2"}),(0,t.jsx)("input",{type:"text",value:x.street2||"",onChange:e=>_("street2",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--city",children:[(0,t.jsx)("label",{children:"City"}),(0,t.jsx)("input",{type:"text",value:x.city||"",onChange:e=>_("city",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--state",children:[(0,t.jsx)("label",{children:"State"}),(0,t.jsx)("input",{type:"text",value:x.state||"",onChange:e=>_("state",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--zip",children:[(0,t.jsx)("label",{children:"Zip Code"}),(0,t.jsx)("input",{type:"text",value:x.zip||"",onChange:e=>_("zip",e.target.value)})]}),u&&(0,t.jsxs)("div",{className:"address-input__field address-input__field--country",children:[(0,t.jsx)("label",{children:"Country"}),(0,t.jsx)("input",{type:"text",value:x.country||"",onChange:e=>_("country",e.target.value)})]})]})]})},E=e=>{var{formFieldInfo:s,conditionallyShow:n,showIfValue:d,_key:c,formMap:o,fieldWidth:u,showStreet2:v,showCountry:p,onChange:m}=e,{fieldName:h,isRequired:f,note:x}=s,[_,g]=(0,i.useState)(!n),j=(0,i.useMemo)(()=>o.get(c),[o,c]),y=(0,i.useMemo)(()=>o.get(d.field),[o,d]);(0,i.useEffect)(()=>{var e=!1;g(e=!!y&&!!y.displayed&&("object"==typeof y.value?!!y.value.get(d.value):y.value===d.value)),m(c,void 0,e)},[y,c,d.value]);var b=(0,i.useMemo)(()=>{try{return JSON.parse(j.value||"{}")}catch(e){return{street:"",street2:"",city:"",state:"",zip:"",country:""}}},[j.value]),N=(0,i.useCallback)((e,t)=>{m(c,JSON.stringify((0,l._)((0,a._)({},b),{[e]:t})))},[b,c,m]);return _&&(0,t.jsxs)("div",{className:"address-input width--".concat(null!=u?u:"full").concat("invalid"===j.valid?" validation-ping":""),id:"".concat(c),children:[(0,t.jsx)("label",{className:"form-label"+(f?" is-required":""),children:h}),(null==x?void 0:x.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:x})}),(0,t.jsxs)("div",{className:"address-input__fields",children:[(0,t.jsxs)("div",{className:"address-input__field address-input__field--street",children:[(0,t.jsx)("label",{children:"Street Address"}),(0,t.jsx)("input",{type:"text",value:b.street||"",onChange:e=>N("street",e.target.value)})]}),!1!==v&&(0,t.jsxs)("div",{className:"address-input__field address-input__field--street2",children:[(0,t.jsx)("label",{children:"Address Line 2"}),(0,t.jsx)("input",{type:"text",value:b.street2||"",onChange:e=>N("street2",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--city",children:[(0,t.jsx)("label",{children:"City"}),(0,t.jsx)("input",{type:"text",value:b.city||"",onChange:e=>N("city",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--state",children:[(0,t.jsx)("label",{children:"State"}),(0,t.jsx)("input",{type:"text",value:b.state||"",onChange:e=>N("state",e.target.value)})]}),(0,t.jsxs)("div",{className:"address-input__field address-input__field--zip",children:[(0,t.jsx)("label",{children:"Zip Code"}),(0,t.jsx)("input",{type:"text",value:b.zip||"",onChange:e=>N("zip",e.target.value)})]}),p&&(0,t.jsxs)("div",{className:"address-input__field address-input__field--country",children:[(0,t.jsx)("label",{children:"Country"}),(0,t.jsx)("input",{type:"text",value:b.country||"",onChange:e=>N("country",e.target.value)})]})]})]})};var q=e.i(844847);let T=e=>{var{formFieldInfo:s,_key:n,formMap:d,fieldWidth:c,allowedExtensions:o,maxFileSize:u,onChange:v}=e,{fieldName:p,isRequired:m,note:h}=s,f=(0,i.useMemo)(()=>d.get(n),[d,n]),x=(0,i.useRef)(null),[_,g]=(0,i.useState)([]),[j,y]=(0,i.useState)(""),b=(0,i.useMemo)(()=>{try{return JSON.parse(f.value||"[]")}catch(e){return[]}},[f.value]),N=(0,i.useMemo)(()=>o?o.split(",").map(e=>e.trim().toLowerCase().replace(/^\./,"")):null,[o]),w=(0,i.useMemo)(()=>
1{if(N)return N.map(e=>".".concat(e)).join(",")},[N]),k=(0,i.useCallback)(e=>{if(N){var a,l=null==(a=e.name.split(".").pop())?void 0:a.toLowerCase();if(!l||!N.includes(l))return'"'.concat(e.name,'" is not an allowed file type. Allowed: ').concat(o)}return u&&e.size>1024*u*1024?'"'.concat(e.name,'" exceeds the ').concat(u,"MB limit."):null},[N,u,o]),S=(0,i.useCallback)(e=>(0,q._)(function*(){var t=function*(e){var t=i[e];try{var s=yield fetch("/api/upload-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:t.name,contentType:t.type})});if(!s.ok)throw Error("Failed to get upload URL");var{presignedUrl:n,key:r,url:d}=yield s.json();yield new Promise((e,i)=>{var s=new XMLHttpRequest;s.upload.addEventListener("progress",e=>{if(e.lengthComputable){var i=Math.round(e.loaded/e.total*100);g(e=>e.map(e=>e.name===t.name?(0,l._)((0,a._)({},e),{progress:i}):e))}}),s.addEventListener("load",()=>{s.status>=200&&s.status<300?e():i(Error("Upload failed with status ".concat(s.status)))}),s.addEventListener("error",()=>i(Error("Upload failed"))),s.open("PUT",n),s.setRequestHeader("Content-Type",t.type),s.send(t)}),c.push({key:r,name:t.name,url:d})}catch(e){y('Failed to upload "'.concat(t.name,'". Please try again.')),console.error("Upload error:",e)}},i=e.target.files;if(i&&0!==i.length){for(var s of(y(""),Array.from(i))){var r=k(s);if(r){y(r),x.current&&(x.current.value="");return}}var d=Array.from(i).map(e=>({name:e.name,progress:0}));g(e=>[...e,...d]);for(var c=[...b],o=0;o<i.length;o++)yield*t(o);g([]),v(n,JSON.stringify(c)),x.current&&(x.current.value="")}})(),[b,n,v,k]),C=(0,i.useCallback)(e=>{v(n,JSON.stringify(b.filter((a,l)=>l!==e)))},[b,n,v]);return(0,t.jsxs)("div",{className:"file-upload width--".concat(null!=c?c:"full").concat("invalid"===f.valid?" validation-ping":""),id:"".concat(n),children:[(0,t.jsx)("label",{className:"form-label"+(m?" is-required":""),children:p}),(null==h?void 0:h.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:h})}),(0,t.jsxs)("div",{className:"file-upload__dropzone",children:[(0,t.jsx)("input",{ref:x,type:"file",multiple:!0,accept:w,onChange:S,disabled:_.length>0}),o&&(0,t.jsxs)("span",{className:"file-upload__hint",children:["Allowed: ",o]}),u&&(0,t.jsxs)("span",{className:"file-upload__hint",children:["Max size: ",u,"MB"]})]}),j&&(0,t.jsx)("p",{className:"file-upload__error",children:j}),_.length>0&&(0,t.jsx)("div",{className:"file-upload__uploading",children:_.map((e,a)=>(0,t.jsxs)("div",{className:"file-upload__progress",children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("div",{className:"file-upload__progress-bar",children:(0,t.jsx)("div",{className:"file-upload__progress-fill",style:{width:"".concat(e.progress,"%")}})})]},a))}),b.length>0&&(0,t.jsx)("ul",{className:"file-upload__file-list",children:b.map((e,a)=>(0,t.jsxs)("li",{className:"file-upload__file",children:[(0,t.jsx)("span",{className:"file-upload__file-name",children:e.name}),(0,t.jsx)("button",{type:"button",className:"file-upload__remove",onClick:()=>C(a),children:"Remove"})]},a))})]})},A=e=>{var{formFieldInfo:s,conditionallyShow:n,showIfValue:d,_key:c,formMap:o,fieldWidth:u,allowedExtensions:v,maxFileSize:p,onChange:m}=e,{fieldName:h,isRequired:f,note:x}=s,[_,g]=(0,i.useState)(!n),j=(0,i.useMemo)(()=>o.get(c),[o,c]),y=(0,i.useMemo)(()=>o.get(d.field),[o,d]),b=(0,i.useRef)(null),[N,w]=(0,i.useState)([]),[k,S]=(0,i.useState)("");(0,i.useEffect)(()=>{var e=!1;g(e=!!y&&!!y.displayed&&("object"==typeof y.value?!!y.value.get(d.value):y.value===d.value)),m(c,void 0,e)},[y,c,d.value]);var C=(0,i.useMemo)(()=>{try{return JSON.parse(j.value||"[]")}catch(e){return[]}},[j.value]),M=(0,i.useMemo)(()=>v?v.split(",").map(e=>e.trim().toLowerCase().replace(/^\./,"")):null,[v]),I=(0,i.useMemo)(()=>{if(M)return M.map(e=>".".concat(e)).join(",")},[M]),L=(0,i.useCallback)(e=>{if(M){var a,l=null==(a=e.name.split(".").pop())?void 0:a.toLowerCase();if(!l||!M.includes(l))return'"'.concat(e.name,'" is not an allowed file type. Allowed: ').concat(v)}return p&&e.size>1024*p*1024?'"'.concat(e.name,'" exceeds the ').concat(p,"MB limit."):null},[M,p,v]),E=(0,i.useCallback)(e=>(0,q._)(function*(){var t=function*(e){var t=i[e];try{var s=yield fetch("/api/upload-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:t.name,contentType:t.type})});if(!s.ok)throw Error("Failed to get upload URL");var{presignedUrl:n,key:r,url:c}=yield s.json();yield new Promise((e,i)=>{var s=new XMLHttpRequest;s.upload.addEventListener("progress",e=>{if(e.lengthComputable){var i=Math.round(e.loaded/e.total*100);w(e=>e.map(e=>e.name===t.name?(0,l._)((0,a._)({},e),{progress:i}):e))}}),s.addEventListener("load",()=>{s.status>=200&&s.status<300?e():i(Error("Upload failed with status ".concat(s.status)))}),s.addEventListener("error",()=>i(Error("Upload failed"))),s.open("PUT",n),s.setRequestHeader("Content-Type",t.type),s.send(t)}),d.push({key:r,name:t.name,url:c})}catch(e){S('Failed to upload "'.concat(t.name,'". Please try again.')),console.error("Upload error:",e)}},i=e.target.files;if(i&&0!==i.length){for(var s of(S(""),Array.from(i))){var n=L(s);if(n){S(n),b.current&&(b.current.value="");return}}
1var r=Array.from(i).map(e=>({name:e.name,progress:0}));w(e=>[...e,...r]);for(var d=[...C],o=0;o<i.length;o++)yield*t(o);w([]),m(c,JSON.stringify(d)),b.current&&(b.current.value="")}})(),[C,c,m,L]),T=(0,i.useCallback)(e=>{m(c,JSON.stringify(C.filter((a,l)=>l!==e)))},[C,c,m]);return _&&(0,t.jsxs)("div",{className:"file-upload width--".concat(null!=u?u:"full").concat("invalid"===j.valid?" validation-ping":""),id:"".concat(c),children:[(0,t.jsx)("label",{className:"form-label"+(f?" is-required":""),children:h}),(null==x?void 0:x.length)>0&&(0,t.jsx)("div",{className:"input-note",children:(0,t.jsx)(r,{data:x})}),(0,t.jsxs)("div",{className:"file-upload__dropzone",children:[(0,t.jsx)("input",{ref:b,type:"file",multiple:!0,accept:I,onChange:E,disabled:N.length>0}),v&&(0,t.jsxs)("span",{className:"file-upload__hint",children:["Allowed: ",v]}),p&&(0,t.jsxs)("span",{className:"file-upload__hint",children:["Max size: ",p,"MB"]})]}),k&&(0,t.jsx)("p",{className:"file-upload__error",children:k}),N.length>0&&(0,t.jsx)("div",{className:"file-upload__uploading",children:N.map((e,a)=>(0,t.jsxs)("div",{className:"file-upload__progress",children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("div",{className:"file-upload__progress-bar",children:(0,t.jsx)("div",{className:"file-upload__progress-fill",style:{width:"".concat(e.progress,"%")}})})]},a))}),C.length>0&&(0,t.jsx)("ul",{className:"file-upload__file-list",children:C.map((e,a)=>(0,t.jsxs)("li",{className:"file-upload__file",children:[(0,t.jsx)("span",{className:"file-upload__file-name",children:e.name}),(0,t.jsx)("button",{type:"button",className:"file-upload__remove",onClick:()=>T(a),children:"Remove"})]},a))})]})},O=e=>{var{label:a,description:l}=e;return(0,t.jsxs)("div",{className:"section-divider width--full",children:[(0,t.jsx)("h3",{className:"section-divider__label",children:a}),l&&(0,t.jsx)("p",{className:"section-divider__description",children:l})]})},R=e=>{var{content:a}=e;return(0,t.jsx)("div",{className:"html-block width--full",children:a&&(0,t.jsx)(r,{data:a})})};var P=e.i(451746);e.s(["default",0,e=>{var{title:s,inputs:n,_id:r,submitLabel:_,submitRedirectSlug:q,confirmationMessage:F}=e,J=(0,P.useRouter)(),[U,V]=(0,i.useState)(new Map),[z,B]=(0,i.useState)(new Map),[D,Q]=(0,i.useState)(""),[H,Z]=(0,i.useState)(!1),[X,W]=(0,i.useState)(!1),[G,K]=(0,i.useState)(""),Y=(0,i.useRef)(!1);function $(e,a,l,t){void 0!==U&&0!==U.size&&V(i=>{var s=i.get(e);if(!s)return i;var n=new Map(i);if(t){var r=s.value;r.set(t,"true"===a),n.set(e,{value:r,displayed:null!=l?l:s.displayed,valid:"unvalidated"})}else{var d=null!=a?a:s.value;n.set(e,{value:d,displayed:null!=l?l:s.displayed,valid:"unvalidated"})}return n})}if(!Y.current){Y.current=!0;var ee=new Map,ea=new Map;n.forEach(e=>{if("section"!==e._type&&"htmlBlock"!==e._type){ea.set(e._key,e);var a,l,t,i,s=null!=(a=e.defaultValue)?a:"";"select"===e._type&&(s=new Map,null==(l=e.options)||l.forEach(e=>{s.set(e.trim(),!1)})),"nameInput"===e._type&&(s=JSON.stringify({prefix:"",first:"",middle:"",last:"",suffix:""})),"addressInput"===e._type&&(s=JSON.stringify({street:"",street2:"",city:"",state:"",zip:"",country:""})),"fileUpload"===e._type&&(s="[]"),"listRepeater"===e._type&&(s=JSON.stringify([Array(null!=(t=null==(i=e.columns)?void 0:i.length)?t:1).fill("")])),ee.set(e._key,{value:s,displayed:!0,valid:"unvalidated"})}}),V(ee),B(ea)}var el=n.map((e,i)=>{if("section"===e._type)return(0,t.jsx)(O,(0,a._)({},e),e._key);if("htmlBlock"===e._type)return(0,t.jsx)(R,(0,a._)({},e),e._key);if(!e.formFieldInfo)return(0,t.jsx)("p",{children:"Missing Field Info"},i);var s=(0,l._)((0,a._)({},e),{formMap:U,onChange:$});switch(e._type){case"textInput":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(d,(0,a._)({},s)):(0,t.jsx)(w,(0,a._)({},s));case"textArea":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(c,(0,a._)({},s)):(0,t.jsx)(N,(0,a._)({},s));case"radio":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(o,(0,a._)({},s)):(0,t.jsx)(b,(0,a._)({},s));case"select":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(u,(0,a._)({},s)):(0,t.jsx)(y,(0,a._)({},s));case"checkbox":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(v,(0,a._)({},s)):(0,t.jsx)(j,(0,a._)({},s));case"dropdown":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(p,(0,a._)({},s)):(0,t.jsx)(k,(0,a._)({},s));case"numberInput":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(m,(0,a._)({},s)):(0,t.jsx)(S,(0,a._)({},s));
1case"nameInput":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(h,(0,a._)({},s)):(0,t.jsx)(C,(0,a._)({},s));case"addressInput":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(E,(0,a._)({},s)):(0,t.jsx)(L,(0,a._)({},s));case"fileUpload":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(A,(0,a._)({},s)):(0,t.jsx)(T,(0,a._)({},s));case"dateInput":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(f,(0,a._)({},s)):(0,t.jsx)(M,(0,a._)({},s));case"listRepeater":return e.conditionallyShow&&e.showIfValue.field?(0,t.jsx)(x,(0,a._)({},s)):(0,t.jsx)(I,(0,a._)({},s))}}),et=(0,i.useRef)(null);return((0,i.useEffect)(()=>{H&&et.current&&et.current.scrollIntoView({behavior:"smooth",block:"center"})},[H]),H)?(0,t.jsx)("div",{className:"onboard-form form",children:(0,t.jsx)("div",{className:"form-confirmation",ref:et,children:(0,t.jsx)("p",{children:D})})}):(0,t.jsxs)("div",{className:"onboard-form form",children:[(0,t.jsx)("form",{"data-cy":"form",title:s,onSubmit:e=>e.preventDefault(),children:U.size>0&&el.map((e,a)=>(0,t.jsx)(i.default.Fragment,{children:e},a))}),(0,t.jsxs)("div",{className:"submit-area",children:[(0,t.jsx)(g,{onVerify:K}),(0,t.jsx)("button",{className:"button button--secondary".concat(X?" button--disabled":""),disabled:X,onClick:e=>(function(e){if(!X){if(!G)return void Q("Please complete the verification challenge.");W(!0);var t,i=new Map(U);e.preventDefault();var n=!0,d=void 0;for(var[c,o]of i.entries()){var u=z.get(c);o.isRequired=u.formFieldInfo.isRequired,o.type=u._type,o.name=u.formFieldInfo.fieldName;var v=!o.displayed||function(e,a){if(!e.isRequired)return!0;if("select"===e.type){if(Array.isArray(e.value)){if(e.value.some(e=>{var[,a]=e;return a}))return!0}else if(Array.from(e.value.values()).some(e=>e))return!0}else if("radio"===e.type){if(e.value&&""!==e.value)return!0}else if("checkbox"===e.type){if("true"===e.value)return!0}else if("dropdown"===e.type){if(e.value&&""!==e.value)return!0}else if("numberInput"===e.type){if(""!==e.value)return!0}else if("nameInput"===e.type)try{var l=JSON.parse(e.value);if(l.first&&""!==l.first.trim()&&l.last&&""!==l.last.trim())return!0}catch(e){}else if("fileUpload"===e.type)try{var t=JSON.parse(e.value);if(Array.isArray(t)&&t.length>0)return!0}catch(e){}else if("dateInput"===e.type){if(e.value&&""!==e.value)return!0}else if("listRepeater"===e.type)try{var i=JSON.parse(e.value);if(Array.isArray(i)&&i.some(e=>e.some(e=>""!==e.trim())))return!0}catch(e){}else if("addressInput"===e.type)try{var s=JSON.parse(e.value);if(s.street&&""!==s.street.trim()&&s.city&&""!==s.city.trim()&&s.state&&""!==s.state.trim()&&s.zip&&""!==s.zip.trim())return!0}catch(e){}else if("email"===a){var n=RegExp(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/g,"i");if(e.value&&e.value.match(n))return!0}else if(""!==e.value)return!0;return!1}(o,u.htmlType);o.valid=v?"valid":"invalid",!v&&(n=!1,d||(d=u))}n?fetch("/api/form-submit",{method:"POST",body:function(e,t){var i=new Map(e),s=[];for(var[n,r]of i.entries()){var d={displayed:r.displayed,isRequired:r.isRequired,name:r.name,type:r.type,valid:r.valid,value:""};"string"==typeof r.value?d.value=r.value:d.value=Array.from(r.value),s.push([n,d])}return JSON.stringify((0,l._)((0,a._)({},t),{inputs:s}))}(i,{name:s,id:r,turnstileToken:G}),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(e=>{e.ok?(Q(F||"Submission Sent!"),Z(!0),q.length>0&&J.push("/".concat(q))):(Q("Sorry, something went wrong."),W(!1))}):(d&&(null==(t=document.getElementById(d._key))||t.scrollIntoView({behavior:"smooth"})),W(!1)),V(i)}})(e),children:null!=_?_:"Submit"}),(0,t.jsx)("span",{children:D})]})]})}],96691)},224532,e=>{"use strict";var a=e.i(981412),l=e.i(203843),t=e.i(996286),i=e.i(514132),s=e.i(55310),n=e.i(481293);function r(e){var r,d,c,{people:o,children:u}=e,[v,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(!1),f=(0,l.useRef)(null);(0,l.useEffect)(()=>{h(!0)},[]),(0,l.useEffect)(()=>{var e=f.current;if(e){var a=e=>{var a=e.target.closest("[data-bio-trigger]");if(a){var l=a.dataset.bioTrigger;p(e=>e===l?null:null!=l?l:null)}};return e.addEventListener("click",a),()=>e.removeEventListener("click",a)}},[]),(0,l.useEffect)(()=>{var e=f.current;
1e&&e.querySelectorAll("[data-bio-trigger]").forEach(e=>{e.dataset.bioTrigger===v?e.classList.add("is-active"):e.classList.remove("is-active")})},[v]),(0,l.useEffect)(()=>(v?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[v]),(0,l.useEffect)(()=>{var e=e=>{"Escape"===e.key&&p(null)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);var x=o.find(e=>e._key===v),_=x&&x.bio&&m?(0,t.createPortal)((0,a.jsx)("div",{className:"presenters__modal-overlay",onClick:()=>p(null),children:(0,a.jsxs)("div",{className:"presenters__modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{className:"presenters__modal-close",onClick:()=>p(null),type:"button","aria-label":"Close bio",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"24",height:"24",children:(0,a.jsx)("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})})}),(0,a.jsxs)("div",{className:"presenters__modal-header",children:[(0,a.jsx)("div",{className:"presenters__modal-photo",children:(c=(null==(d=x.photo)||null==(r=d.asset)?void 0:r._ref)?(0,n.croppedImage)(x.photo,360):null)&&""!==c?(0,a.jsx)(s.default,{src:c,alt:x.name,width:180,height:180,style:{objectFit:"cover"}}):(0,a.jsx)("div",{className:"presenters__modal-photo-placeholder"})}),(0,a.jsx)("h4",{className:"presenters__modal-name",children:x.name}),x.title&&(0,a.jsx)("p",{className:"presenters__modal-title",children:x.title})]}),(0,a.jsx)("hr",{className:"presenters__modal-divider"}),(0,a.jsx)("div",{className:"presenters__modal-content",children:(0,a.jsx)(i.PortableText,{value:x.bio})})]})}),document.body):null;return(0,a.jsxs)("div",{className:"presenters",ref:f,children:[(0,a.jsx)("div",{className:"presenters__grid",children:u}),_]})}e.s(["default",()=>r])},40982,e=>{"use strict";var a=e.i(981412),l=e.i(203843),t=e.i(443395),i=e.i(90207);function s(e){var{videoUrl:t,isOpen:s,onClose:n}=e,r=(0,l.useCallback)(e=>{"Escape"===e.key&&n()},[n]);if((0,l.useEffect)(()=>(s&&(document.addEventListener("keydown",r),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",r),document.body.style.overflow=""}),[s,r]),!s)return null;var d=(0,i.parseVideoUrl)(t),c=(0,i.getVideoEmbedSrc)(d,t,{autoplay:!0});return(0,a.jsxs)("div",{className:"video-lightbox",onClick:n,children:[(0,a.jsx)("div",{className:"video-lightbox__backdrop"}),(0,a.jsxs)("div",{className:"video-lightbox__content",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{type:"button",className:"video-lightbox__close",onClick:n,"aria-label":"Close video",children:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)("div",{className:"video-lightbox__video-wrapper",children:c&&(0,a.jsx)("iframe",{src:c,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,className:"video-lightbox__iframe",title:"Video player"})})]})]})}var n=e.i(481293),r=()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"64px",viewBox:"0 -960 960 960",width:"64px",fill:"currentColor",children:(0,a.jsx)("path",{d:"m434.15-362 156.62-100.54q9.46-6.08 9.46-17.38 0-11.31-9.46-17.54L434.15-598q-11-7.23-21.84-1.07-10.85 6.16-10.85 18.53v201.08q0 12.37 10.85 18.53 10.84 6.16 21.84-1.07Zm45.98 242q-74.44 0-139.79-28.34t-114.48-77.42q-49.13-49.08-77.49-114.37Q120-405.42 120-479.87q0-74.67 28.34-140.41 28.34-65.73 77.42-114.36 49.08-48.63 114.37-76.99Q405.42-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.44-28.34 139.79t-76.92 114.48q-48.58 49.13-114.26 77.49Q554.81-120 480.13-120Z"})}),d=()=>(0,a.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,a.jsx)("circle",{cx:"24",cy:"24",r:"23",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,a.jsx)("path",{d:"M18 24H30M30 24L24 18M30 24L24 30",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function c(e){var i,c,o,u,{teaser:v,teaserTitle:p,teaserExcerpt:m}=e,[h,f]=(0,l.useState)(!1),x=p||v.title,_=m||v.excerpt,g=!!v.videoLink,j="/resources/".concat(null==(i=v.resourceType)?void 0:i.slug,"/").concat(v.slug),y=(null==(c=v.heroImage)?void 0:c.imageFile)?v.heroImage:v.promoImage,b=(null==y?void 0:y.imageFile)?(0,n.croppedImage)(y.imageFile,800):null;return null==y||null==(u=y.imageFile)||null==(o=u.metadata)||o.lqip,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"homepage-hero__teaser",style:b?{backgroundImage:"url(".concat(b,")")}:void 0,children:g?(0,a.jsxs)("button",{type:"button",className:"homepage-hero__teaser-content homepage-hero__teaser-content--clickable","aria-label":"Play resource video",onClick:()=>{g&&f(!0)},children:[(0,a.jsx)("span",{className:"homepage-hero__play",children:(0,a.jsx)("span",{className:"homepage-hero__play-icon",children:(0,a.jsx)(r,{})})}),(0,a.jsxs)("div",{className:"homepage-hero__teaser-text",children:[(0,a.jsx)("span",{className:"homepage-hero__teaser-title",children:x}),_&&(0,a.jsx)("span",{className:"homepage-hero__teaser-subtitle",children:_})]})]}):(0,a.jsxs)(t.default,{href:j,className:"homepage-hero__teaser-content homepage-hero__teaser-content--clickable",children:[(0,a.jsx)("span",{className:"homepage-hero__play",children:(0,a.jsx)("span",{className:"homepage-hero__play-icon",children:(0,a.jsx)(d,{})})}),(0,a.jsxs)("div",{className:"homepage-hero__teaser-text",children:[(0,a.jsx)("span",{className:"homepage-hero__teaser-title",children:x}),_&&(0,a.jsx)("span",{className:"homepage-hero__teaser-subtitle",children:_})]})]})}),g&&v.videoLink&&(0,a.jsx)(s,{videoUrl:v.videoLink,isOpen:h,onClose:()=>f(!1)})]})}e.s(["default",()=>c],40982)},639962,e=>{"use strict";var a=e.i(981412),l=e.i(519099),t=e.i(958891),i=e.i(203843);function s(e){var{title:s,subtitle:n,headerLinks:r,sourceType:d,limit:c=4,variant:o="grid-2",events:u=[]}=e,[v,p]=(0,i.useState)(u),[m,h]=(0,i.useState)("latest"===d);return((0,i.useEffect)(()=>{"latest"===d&&fetch("/api/events?limit=".concat(c)).then(e=>e.json()).then(e=>{p(e.events||[]),h(!1)}).catch(()=>{h(!1)})},[d,c]),m)?(0,a.jsx)("section",{className:"event-list-block",children:(0,a.jsxs)("div",{className:"wrapper",children:[s&&(0,a.jsx)(t.SectionTitle,{title:s,subtitle:n,links:r}),(0,a.jsx)("div",{children:"Loading events..."})]})}):0===v.length?null:(0,a.jsx)("section",{className:"event-list-block",children:(0,a.jsxs)("div",{className:"wrapper",children:[s&&(0,a.jsx)(t.SectionTitle,{title:s,subtitle:n,links:r}),(0,a.jsx)(l.default,{eventData:v,variant:o})]})})}e.s(["default",()=>s])}]);
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.