1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37],{1892:(e,t,l)=>{"use strict";l.d(t,{O:()=>n});var a=l(34477);let s=(0,a.createServerReference)("7080772ae04cd98e8bc7c7a8381034135514fef87e",a.callServer,void 0,a.findSourceMapURL,"submitHubspotForm");var r=l(49509);async function n(e,t,l,a,n){if("true"===(r.env.NEXT_PUBLIC_RECAPTCHA_V3_DISABLED||"").toLowerCase())return await s(e,t,l);if(!n)throw Error("reCAPTCHA token missing â generate it via useRecaptchaV3().getToken(action)");let i=await fetch("/api/recaptcha/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n,action:a})}),o=await i.json().catch(()=>null);if(!i.ok||!o||!0!==o.ok){let e="status=".concat(i.status),t=o&&"error"in o&&"string"==typeof o.error?" error=".concat(o.error):"";throw Error("reCAPTCHA verification failed (".concat(e).concat(t,")"))}return await s(e,t,l)}},2482:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>m});var a=l(95155),s=l(62082),r=l(82136),n=l(17304),i=l(71780),o=l(86591),c=l(36545),d=l(12115),u=l(6042);function m(e){var t;let{blok:l}=e,{items:m,title:x}=l,p=(0,d.useRef)(null),{width:h}=(0,u.lW)(),{scrollYProgress:f}=(0,i.L)({target:p,offset:["start 75%","end end"]}),g=(0,o.G)(f,[h&&h>768?.25:0,1],[0,1]);return(0,a.jsxs)("section",{className:"my-20 lg:my-10 container relative",...(0,s.m)(l),ref:p,children:[(0,a.jsx)(n.A,{level:2,className:"mb-4 text-center mb-12",children:x}),(0,a.jsxs)("div",{className:"relative overflow-hidden",children:[(0,a.jsx)("div",{className:"lg:pl-0 absolute lg:left-[50%] ml-[-4px] lg:ml-0 z-[10] lg:z-[1] top-0 hidden lg:block",children:(0,a.jsx)(c.P.div,{className:"bg-primary w-[4px] ml-[-13px] lg:ml-0",transition:{duration:.3},style:{height:((null==(t=p.current)?void 0:t.offsetHeight)||0)*g.get(),willChange:"transform"}})}),(0,a.jsx)(r.A,{data:m})]})]})}},4198:()=>{},8414:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var a=l(95155),s=l(62082),r=l(62177);function n(e){var t,l,n,i,o,c,d,u;let{blok:m}=e,{name:x,label:p,type:h,full_width:f,required:g,placeholder:b,is_single:v}=m,{register:j,formState:{errors:N}}=(0,r.xW)();switch(h){case"number":return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(f?"grow":"lg:basis-[calc(50%-0.5rem)]"," lg:pr-5 py-3"),...(0,s.m)(m),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[p," ",g&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{type:"number",...j(x,{required:!!g&&"Please enter valid ".concat(p,".")}),className:"w-full bg-white rounded-md p-2 border-1 border-grey1"}),N[x]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(l=N[x])||null==(t=l.message)?void 0:t.toString()})]});case"textarea":return(0,a.jsxs)("div",{className:"flex flex-col w-full pb-5 lg:pr-5 py-3",...(0,s.m)(m),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[p," ",g&&(0,a.jsx)("span",{className:"text-red-600",children:"*"}),"\xa0"]}),(0,a.jsx)("textarea",{className:"w-full bg-white rounded-md p-2 border-1 border-grey1",rows:5,...j(x,{required:!!g&&"Please enter valid ".concat(p,".")})}),N[x]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(i=N[x])||null==(n=i.message)?void 0:n.toString()})]});case"email":return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(f?"grow":"lg:basis-[calc(50%-0.5rem)]"," lg:pr-5 py-3"),...(0,s.m)(m),children:[!!p&&(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[p," ",g&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{type:"text",placeholder:b,...j(x,{required:!!g&&"Please enter valid ".concat(p,"."),pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Enter a valid email address"}}),className:"w-full bg-white rounded-md p-2 border-1 border-grey1"}),N[x]&&(0,a.jsx)("small",{className:"text-primary text-left",children:v?"Please enter valid email":null==(c=N[x])||null==(o=c.message)?void 0:o.toString()})]});case"dummy":return(0,a.jsxs)("div",{className:"flex flex-col ".concat(f?"grow":"lg:basis-1/2"," ").concat(v?"mr-2":"lg:pr-5 py-3 basis-full"),...(0,s.m)(m),children:[!!p&&(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[p," ",g&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{type:"text",disabled:!0,placeholder:b,className:"w-full bg-white rounded-md p-2 py-3 border-1 border-grey1"})]});default:return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(f?"grow":"lg:basis-[calc(50%-0.5rem)]"," lg:pr-5 py-3"),...(0,s.m)(m),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[p," ",g&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{type:"text",...j(x,{required:!!g&&"Please enter valid ".concat(p,".")}),className:"w-full bg-white rounded-md p-2 border-1 border-grey1"}),N[x]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(u=N[x])||null==(d=u.message)?void 0:d.toString()})]})}}},8420:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(62082),r=l(82136),n=l(12115);function i(e){var t;let{blok:l}=e,{title:i,description:o,cta:c}=l,d=!!(null==(t=l.parentProps)?void 0:t.isOpen),u=(0,n.useRef)(null),[m,x]=(0,n.use
1State)(null),[p,h]=(0,n.useState)(92);return(0,n.useEffect)(()=>{let e=()=>{var e,t;let l=document.querySelector(".container");if(l){let e=l.getBoundingClientRect();x(Math.max(window.innerWidth-e.right,16))}let a=null==(t=u.current)||null==(e=t.closest('[class*="w-full"]'))?void 0:e.parentElement;a&&h(a.getBoundingClientRect().bottom)};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[]),(0,a.jsx)("div",{ref:u,"aria-hidden":!d,inert:!d,className:"fixed drop-shadow-lg z-[125] pt-[25px] w-full md:w-[550px] transition-opacity duration-200 ".concat(d?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none"),...(0,s.m)(l),style:{right:null!==m?"".concat(m,"px"):"2rem",top:"".concat(p,"px")},children:(0,a.jsxs)("div",{className:"relative bg-white rounded-b-lg px-6 py-6",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 left-0 right-0 h-[3px] bg-primary origin-center transform transition-transform duration-500 ease-out ".concat(d?"scale-x-100":"scale-x-0")}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col pr-5 w-full",children:[(0,a.jsx)("h3",{className:"font-medium text-3xl leading-tight mb-4",children:i}),(0,a.jsx)("p",{className:" text-ln700",children:o})]}),(0,a.jsx)("div",{className:"flex flex-col gap-5 w-full",children:(0,a.jsx)(r.A,{data:c})})]})]})})}},8883:()=>{},9298:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(95155),s=l(77038),r=l(33627),n=l(62082),i=l(30185),o=l(40494),c=l(66766),d=l(79201);function u(e){let{blok:t}=e,{question:l,answer:u}=t;return(0,r.A)(s.o,e=>e),(0,a.jsx)("div",{...(0,n.m)(t),className:"bg-lb50 rounded-[10px]",children:(0,a.jsx)(i.D,{children:(0,a.jsx)(o.R,{"aria-label":l,title:(0,a.jsx)("p",{className:"text-ln700 text-[20px]",children:l}),classNames:{content:"px-0"},className:"py-1 px-4 lg:px-10 text-[20px]",disableIndicatorAnimation:!0,indicator:e=>{let{isOpen:t}=e;return(0,a.jsx)(c.default,{src:"/icons/add_black.svg",alt:"+",width:12,height:12,className:"transform transition-transform duration-500 ".concat(t&&"rotate-[135deg]")})},children:(0,a.jsx)(d.t,{data:u,className:"mb-6 pl-4"})})})})}},9425:()=>{},10461:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(95155),s=l(62082),r=l(62177),n=l(613),i=l(45408),o=l(62556),c=l(350),d=l(74409);function u(e){let{blok:t}=e,{name:l,label:u,type:m,options:x,full_width:p,required:h,multiple:f,default_value:g}=t,{control:b,formState:{errors:v}}=(0,r.xW)(),j=x.filter(e=>e.preselected),N=(g||"").trim(),y=N?x.find(e=>e.value===N):void 0;switch(m){case"radio":return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(p?"grow":"lg:basis-1/2"," lg:pr-5 py-3"),...(0,s.m)(t),children:[(0,a.jsx)("label",{className:"mb-2 text-ln700 text-[14px]"}),(0,a.jsx)(r.xI,{control:b,name:l,rules:{required:!!h&&"Please enter valid ".concat(u,".")},defaultValue:j.length>0?j[0].value:null==y?void 0:y.value,render:e=>{var t,s;let{field:{value:r,onChange:o}}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.U,{label:"".concat(u),orientation:"vertical",value:r,onValueChange:e=>o(e),classNames:{base:"ring-primary border-primary",label:"text-[14px] text-ln700 ring-primary",errorMessage:"text-primary border-primary ring-primary"},isRequired:h,children:x.map((e,t)=>(0,a.jsx)(i.O,{value:e.value,classNames:{base:"border-primary ring-primary",label:"text-sm text-ln700 py-1 "},children:e.name},t))}),v[l]&&(0,a.jsx)("p",{className:"text-primary text-xs mt-2",children:null==(s=v[l])||null==(t=s.message)?void 0:t.toString()})]})}})]});case"pills":return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(p?"grow":"lg:basis-1/2 "," lg:pr-5 py-3"),...(0,s.m)(t),children:[(0,a.jsxs)("p",{className:"text-ln700 text-[14px] mb-2 ",children:[u,h&&(0,a.jsx)("span",{className:"text-red-600 ml-1",children:"*"})]}),(0,a.jsx)(r.xI,{control:b,name:l,rules:{validate:e=>!h||(Array.isArray(e)?e.length>0||"Please enter valid ".concat(u,"."):!!e||"Please enter valid ".concat(u,"."))},defaultValue:j.length>0?f?j.map(e=>e.value):j[0].value:f?y?[y.value]:[]:null==y?void 0:y.value,render:e=>{var t,s;let{field:{value:r,onChange:n}}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:x.map((e,t)=>
1(0,a.jsx)(o.T,{color:"default",radius:"full",className:"border-1 border-grey1 ".concat(Array.isArray(r)&&r.indexOf(e.value)>-1||e.value===r?"bg-ln400 text-ln50":"bg-white text-ln700"),onPress:()=>{if(f){let t=r||[];t.indexOf(e.value)>-1?1===t.length?t=[]:t.splice(t.indexOf(e.value),1):t.length<2&&t.push(e.value),n(t)}else n(e.value)},children:e.name},t))}),v[l]&&(0,a.jsx)("p",{className:"text-primary text-xs mt-2",children:null==(s=v[l])||null==(t=s.message)?void 0:t.toString()})]})}})]});default:var w,A;return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(p?"grow":"lg:basis-1/2"," lg:pr-5 py-3"),...(0,s.m)(t),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[u,h&&(0,a.jsx)("span",{className:"text-red-600 ml-1",children:"*"})]}),(0,a.jsx)(r.xI,{control:b,name:l,rules:{validate:e=>!h||(e instanceof Set?e.size>0||"Please enter valid ".concat(u,"."):!!e||"Please enter valid ".concat(u,"."))},defaultValue:j.length>0?new Set(j.map(e=>e.value)):y?new Set([y.value]):new Set,render:e=>{let{field:{value:t,onChange:l}}=e,s=t instanceof Set?t:t?new Set([t]):new Set;return(0,a.jsx)(c.d,{placeholder:f?"Select options":"Select one","aria-label":u,className:"w-full",selectedKeys:s,selectionMode:f?"multiple":"single",classNames:{trigger:"bg-white rounded-md border-1 border-grey1 shadow-none py-5",value:"text-ln700"},onSelectionChange:l,children:x.map(e=>(0,a.jsx)(d.y,{children:e.name},e.value))})}}),v[l]&&(0,a.jsx)("p",{className:"text-primary text-xs mt-2",children:null==(A=v[l])||null==(w=A.message)?void 0:w.toString()})]})}}},11146:(e,t,l)=>{"use strict";l.d(t,{default:()=>r});var a=l(95155),s=l(62177);function r(e){let{blok:t}=e,{name:l,value:r}=t,{register:n}=(0,s.xW)();return(0,a.jsx)("input",{type:"hidden",...n(l),value:r})}},11595:()=>{},11948:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(95155),s=l(85788),r=l(87036),n=l(12115),i=l(71436);function o(e){var t;let{blok:l}=e,o=(0,n.useMemo)(()=>l.faq_collection||[],[l.faq_collection]),c=(0,n.useMemo)(()=>(l.faq_categories||[]).map(e=>({name:e.toString().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),value:e}
1)),[l.faq_categories]),[d,u]=(0,n.useState)((null==(t=c[0])?void 0:t.value)||"");return(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row py-20 gap-10",children:[(0,a.jsx)("div",{className:"basis-1/3",children:(0,a.jsx)(s.r,{selectedKey:d,onSelectionChange:e=>u(String(e)),"aria-label":"FAQ Tabs",variant:"underlined",color:"primary",isVertical:!0,classNames:{tabList:"w-full",tab:"flex justify-start my-1",tabContent:"group-data-[selected=true]:text-ln500 group-data-[selected=true]:bg-lb200 px-5 py-3 text-left rounded-md text-ln700",cursor:"hidden",panel:"hidden"},children:c.map(e=>(0,a.jsx)(r.i,{title:e.name},e.value))})}),(0,a.jsx)("div",{className:"basis-2/3 relative w-full",children:c.map(e=>{let t=d===e.value,l=o.filter(t=>{var l,a;return null==t||null==(a=t.content)||null==(l=a.category)?void 0:l.includes(e.value)});return(0,a.jsx)("div",{className:"transition-opacity duration-300 ease-in-out absolute inset-0 ".concat(t?"opacity-100 pointer-events-auto relative":"opacity-0 pointer-events-none"),children:(0,a.jsx)("div",{children:l.length>0?l.map(t=>(0,a.jsx)(i.default,{blok:t.content},"".concat(e.value,"-").concat(t.uuid))):(0,a.jsx)("p",{className:"text-gray-500",children:"No FAQs found for this category."})})},e.value)})})]})}},12388:(e,t,l)=>{"use strict";l.d(t,{Rj:()=>r});var a=l(49984),s=l(30981);let r={localeDetection:!1,alternateLinks:!1,locales:["au","nz"],defaultLocale:"au",localePrefix:"as-needed",pathnames:{"/":"/","/au":{au:"/au",nz:"/nz"}}},n=(0,a.A)(r),{Link:i,redirect:o,usePathname:c,useRouter:d}=(0,s.A)(n)},12466:(e,t,l)=>{"use strict";l.d(t,{AE:()=>n,Ad:()=>s,Ar:()=>o,BO:()=>i,Z6:()=>r,kL:()=>a});let a=e=>(e=e.charAt(0).toUpperCase()+e.slice(1)).replace("-"," "),s=e=>{let t=e.match(/([^\d]*)?(\d[\d,]*)?([^\d]*)?/);return{prefix:t&&t[1]?t[1].trim():"",stat:t&&t[2]?t[2].replace(/,/g,""):"",postfix:t&&t[3]?t[3].trim():""}},r=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e),n=(e,t)=>{var l=document.createElement("a");l.setAttribute("download",t),l.href=e,l.target="_blank",document.body.appendChild(l),l.click(),l.remove()},i="(max-width: 1024px) 100vw, 700px",o="(max-width: 1024px) 100vw, 460px"},13383:()=>{},13544:(e,t,l)=>{"use strict";l.d(t,{o:()=>r});var a=l(12388),s=l(49509);let r={name:"Lannock Strata Finance",locales:a.Rj.locales,defaultLocale:a.Rj.defaultLocale,gtmId:"GTM-5QB88442",gtmEnvPreview:s.env.NEXT_PUBLIC_GTM_ENV_PREVIEW||"",gtmEnvAuth:s.env.NEXT_PUBLIC_GTM_ENV_AUTH||"",hubspotAccountId:"22482257",hubspotEnableTracking:!0,audiencesEnabled:!1,defaultAudience:"owners",audienceSlugs:["owners","strata-managers"],hideHeaderSlugs:["start"],sbResolveRelations:["page.custom_header","faq_section.items","faq_section_secondary.items","loan_tabs_section.loans","blog_section.items","loan_detail.purposes","loan_purpose_section.purposes","faq_collection","faqs_refactor.faq_collection","team_members_section.members","customer_stories_section.cards","customer_story.related","article.main_author","article.author","verticle_faq_section.items","explore_other_loans_section.loans","content.category","team.category","team_members_section.categories_order","news_insights_page.featured_articles","settings"]}},14935:()=>{},15768:()=>{},17304:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var a=l(38439),s=l(12115);let r={display:"text-display",1:"text-h1",2:"text-h2",3:"text-h3",4:"text-h4",5:"text-h5",6:"text-h6"};function n(e){let{level:t,styleAs:l,className:n,...i}=e,o=r[null!=l?l:t];return(0,s.createElement)("h".concat(t),{className:(0,a.cn)("text-ln700",o,n),...i})}},17733:()=>{},20396:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>c});var a=l(95155),s=l(12115),r=l(11155),n=l.n(r),i=l(6042),o=l(97494);let c=e=>{let{blok:t}=e,{video:l,video_url:r}=t,c=(0,s.useRef)(null),d=(null==l?void 0:l.filename)||r,[u,m]=(0,s.useState)(!1);(0,s.useRef)(null);
1let[x,p]=(0,s.useState)(!1),[h,f]=(0,i.BL)({threshold:.5,root:null,rootMargin:"0px"});return(0,o.E)(()=>{p(!1),f&&!f.isIntersecting&&p(!1)},[f]),(0,o.E)(()=>{m(!0)},[]),(0,a.jsx)("div",{className:"pt-8 ",children:(0,a.jsx)("div",{ref:h,className:"relative pt-[56.25%] rounded-lg overflow-hidden",children:u&&(0,a.jsx)(n(),{ref:c,className:"bg-grey2 absolute top-0 left-0 w-full h-full z-0 ",url:d,width:"100%",height:"100%",volume:.5,controls:!0,playing:x,playsinline:!0})})})}},23326:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>x});var a=l(95155),s=l(62082),r=l(82136),n=l(12115),i=l(85788),o=l(87036),c=l(6042),d=l(97494),u=l(33627),m=l(77038);function x(e){let{blok:t}=e,{items:l,action:x,background:p}=t,h=(0,n.useRef)([]),f=(0,n.useRef)(null);(0,u.A)(m.o,e=>e);let[g,b]=(0,n.useState)(!1),[v,j]=(0,n.useState)(!1),[N,y]=(0,n.useState)(l?l[0]._uid:""),w=(0,c.l4)();return(0,n.useEffect)(()=>{b(!0)},[]),(0,d.E)(()=>{if(f.current){let e=f.current.getBoundingClientRect().top<=0;v!==e&&j(e)}h.current.forEach(e=>{if(!e)return null;let t=e.getBoundingClientRect();t.y<=100&&t.top-1<=100&&t.bottom>=100&&y(e.id)})},[w]),(0,a.jsx)("section",{...(0,s.m)(t),children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"w-full sticky -top-1 z-[99] ".concat("grey"===p?"bg-cad100":"bg-white"," ").concat(v?" border-b-1 border-ln100 shadow-lg":""),children:(0,a.jsx)("div",{className:"container lg:mx-auto",children:(0,a.jsxs)("div",{className:"flex items-center justify-between border-b-2 border-ln100`",children:[(0,a.jsx)("nav",{ref:f,className:"flex items-center justify-between overflow-x-scroll no-scrollbar",children:(0,a.jsx)(i.r,{"aria-label":"tabs",variant:"underlined",color:"primary",selectedKey:N,onSelectionChange:e=>{let t=document.getElementById(e);t&&g&&t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},classNames:{tabList:"\n flex flex-row\n gap-10 relative p-0\n border-b-0 border-divider\n items-start\n ",cursor:"h-[4px] w-full left-0",tab:"max-w-fit px-0 h-16 first:ml-4 last:mr-4 lg:first:ml-0 lg:last:mr-0 data-[hover-unselected=true]:opacity-100 data-[hover-unselected=true]:text-lr500",tabContent:"hover:text-inherit text-ln700",base:"w-full lg:w-fit"},children:null==l?void 0:l.map(e=>(0,a.jsx)(o.i,{title:e.title},e._uid))})}),(0,a.jsx)("div",{className:"pl-3 float-right hidden lg:block",children:(0,a.jsx)(r.A,{data:x})})]})})}),l&&l.map((e,t)=>(0,a.jsx)("section",{id:e._uid,ref:e=>{h.current[t]=e},className:"scroll-mt-[90px] md:scroll-mt-[70px]",children:g&&(0,a.jsx)(r.A,{data:e})},e._uid))]})})}},24399:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var a=l(38439),s=l(12115);let r={display:"text-display",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6","body-lg":"text-body-lg",body:"text-body","body-sm":"text-body-sm",eyebrow:"eyebrow",caption:"text-caption"};function n(e){let{size:t="body",as:l="p",className:n,...i}=e;return(0,s.createElement)(l,{className:(0,a.cn)(r[t],n),...i})}},25473:(e,t,l)=>{"use strict";l.d(t,{q:()=>o});var a=l(12115);let s=null;function r(e){return window.grecaptcha?Promise.resolve():s||(s=new Promise((t,l)=>{let a=document.querySelector('script[data-recaptcha="v3"]');if(a){a.addEventListener("load",()=>t()),a.addEventListener("error",()=>l(Error("Failed to load reCAPTCHA script")));return}let s=document.createElement("script");s.src="https://www.google.com/recaptcha/api.js?render=".concat(encodeURIComponent(e)),s.async=!0,s.defer=!0,s.dataset.recaptcha="v3",s.addEventListener("load",()=>t()),s.addEventListener("error",()=>l(Error("Failed to load reCAPTCHA script"))),document.head.appendChild(s)}))}async function n(e,t){await r(e);let l=window.grecaptcha;if(!l)throw Error("reCAPTCHA not available");return await new Promise((a,s)=>{l.ready(()=>{l.execute(e,{action:t}).then(a).catch(()=>s(Error("Failed to execute reCAPTCHA")))})})}var i=l(49509);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"6LcP41osAAAAABPKOpDbOqt2DwQ0GZpcYueUz8U-",t=e||"",l="true"===(i.env.NEXT_PUBLIC_RECAPTCHA_V3_DISABLED||"").toLowerCase(),[s,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=!1;if(l){d(null),o(!0);return}return t?(r(t).then(()=>{e||o(!0)}).catch(t=>{e||d((null==t?void 0:t.message)||"Failed to load reCAPTCHA")}),()=>{e=!0}):void d("Missing NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY")},[l,t]);let u=(0,a.useCallback)(async e=>{if(l)return"";if(!t)throw Error("Missing NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY");if(c)throw Error(c);return await n(t,e)},[c,l,t]);return{ready:s,error:c,getToken:u}}},25640:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(95155),s=l(38439),r=l(17304),n=l(24399);
1function i(e){let{eyebrow:t,title:l,subtitle:i,cta:o,align:c="left",headingLevel:d=2,styleAs:u,eyebrowClassName:m="text-primary",titleClassName:x,subtitleClassName:p,className:h}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col mb-8","center"===c&&"items-center text-center",h),children:[t&&(0,a.jsx)(n.A,{size:"eyebrow",className:(0,s.cn)("mb-3",m),children:t}),l&&(0,a.jsx)(r.A,{level:d,styleAs:u,className:x,children:l}),i&&(0,a.jsx)("div",{className:(0,s.cn)("mt-4 text-ln700",p),children:"string"==typeof i?(0,a.jsx)(n.A,{children:i}):i}),o&&(0,a.jsx)("div",{className:"mt-6",children:o})]})}},26782:()=>{},27488:()=>{},27889:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(95155),s=l(82136),r=l(87146),n=l(85788),i=l(87036),o=l(93525),c=l(12466);function d(e){let{loans:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(n.r,{"aria-label":"tabs",variant:"underlined",color:"primary",isVertical:!1,classNames:{tabList:"\n flex flex-col lg:flex-row\n lg:gap-20 relative p-0\n lg:border-b lg:border-l-0 border-divider border-l-2 \n items-start\n pl-5 ml-2 lg:pl-0 lg:ml-0\n ",cursor:"\n h-[4px] w-[2rem] lg:w-full\n left-0\n mobile-tab\n ",tab:"\n max-w-fit px-0\n lg:h-12 h-auto\n \n ",tabContent:"group-data-[selected=true]:font-bold hover:text-inherit text-ln700",base:"w-full lg:w-fit"},children:t&&t.length>0&&t.map(e=>{if(!e.content)return;let{title:t,image:l,feature_title:n,feature_cards:d,description:u,purposes:m,buttons:x,_uid:p}=e.content;return(0,a.jsx)(i.i,{title:t,children:(0,a.jsxs)("section",{className:"flex flex-col lg:flex-row text-left items-center mt-7 leading-tight",children:[(0,a.jsx)("div",{className:"w-full lg:w-1/3 rounded-xl overflow-hidden",children:l&&(0,a.jsx)(r.A,{asset:l,aspectRatioX:670,aspectRatioY:500,sizes:c.Ar})}),(0,a.jsxs)("div",{className:"w-full lg:w-2/3 lg:pl-14 mt-10 lg:mt-0",children:[(0,a.jsx)("h3",{className:"font-bold text-3xl mb-6",children:n||t}),(0,a.jsx)("section",{className:"rounded-lg mb-4 flex flex-row flex-wrap md:gap-4 box-content",children:d&&(null==d?void 0:d.map(e=>{let t=d.length<=3?"md:w-[calc(33%-1rem)]":"md:w-[calc(50%-1rem)]";return(0,a.jsxs)("div",{className:"flex flex-col bg-white items-center text-center leading-tight justify-between rounded-xl gap-[24px] py-[31px] px-[10px] my-2 md:my-0 w-full ".concat(t),children:[(0,a.jsx)("p",{className:"text-[12px] font-semibold text-primary leading-tight",children:e.title}),(0,a.jsx)("p",{className:"text-ln700 font-bold text-[21px] xl:text-[25px] leading-tight break-words",children:e.stat}),(0,a.jsx)("p",{className:"text-[12px] font-opensans text-ln500 leading-tight",children:e.description})]},e._uid)}))}),(0,a.jsx)("p",{className:"text-ln700 my-8 text-justify leading-snug",children:u}),(0,a.jsx)("p",{className:"text-sm font-bold text-black mt-4",children:"COMMON LOAN PURPOSES"}),(0,a.jsx)("div",{className:"py-4 mb-4 flex-col flex gap-8 md:flex-row flex-wrap ",children:m.map(e=>{if(!e.content)return;let{uuid:t,content:{title:l,icon:s,description:n,link:i}}=e;return(0,a.jsx)("div",{className:"flex items-start md:w-[calc(50%-2rem)]",children:(null==i?void 0:i.cached_url)&&(0,a.jsxs)(o.N,{className:"flex items-start ",href:i.cached_url,children:[(0,a.jsx)("div",{className:"bg-cln300 w-[30px] h-[30px] rounded-full flex justify-center min-w-[30px] mr-2 p-[5px]",children:s&&s.filename&&(0,a.jsx)(r.A,{asset:s,aspectRatioX:20,aspectRatioY:20})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-lg font-semibold leading-tight mb-2",children:l}),(0,a.jsx)("p",{className:"text-ln700 leading-snug",children:n})]})]})},t)})}),(0,a.jsx)("div",{className:"flex gap-4",children:(0,a.jsx)(s.A,{data:x})})]})]})},e.uuid)})})})}},28169:()=>{},32148:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(95155),s=l(12115),r=l(76604),n=l(67932),i=l(62082);function o(e){let{blok:t}=e,{prefix:l,stat:o,suffix:c,label:d,variant:u,no_count:m}=t,x=(0,s.useRef)(null),p=(0,r.W)(x);return((0,s.useEffect)(()=>{m||(0,n.i)(0,parseInt(o),{duration:1,onUpdate:e=>
1{x.current&&(x.current.textContent=Math.floor(e).toLocaleString("en-US"))}})},[p,o]),"flat"===u)?(0,a.jsxs)("div",{className:"flex flex-col basis-1/4 items-center mx-14 py-8 lg:mx-0 lg:my-12 lg:py-2 border-grey1 [&:not(:last-child)]:border-b-3 lg:[&:not(:last-child)]:border-b-0 lg:[&:not(:last-child)]:border-r-3",...(0,i.m)(t),children:[(0,a.jsxs)("span",{className:"text-ln500 text-5xl font-medium mb-4",children:[l,m?(0,a.jsx)("span",{children:o}):(0,a.jsx)("span",{ref:x,children:"0"}),c]}),(0,a.jsx)("span",{className:"text-ln700 text-sm text-center",children:d})]}):(0,a.jsxs)("div",{className:"flex flex-col basis-1/4 items-center mx-14 py-8 lg:mx-0 lg:my-12 lg:py-2 border-grey1 [&:not(:last-child)]:border-b-3 lg:[&:not(:last-child)]:border-b-0 lg:[&:not(:last-child)]:border-r-3",...(0,i.m)(t),children:[(0,a.jsxs)("span",{className:"text-primary text-6xl font-bold mb-[7px]",children:[l,m?(0,a.jsx)("span",{children:o}):(0,a.jsx)("span",{ref:x,children:"0"}),c]}),(0,a.jsx)("span",{className:"text-ln700 text-base text-center",children:d})]})}},33308:()=>{},33627:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(12115);let s=(e,t)=>{let l=e(t),[s,r]=(0,a.useState)();return(0,a.useEffect)(()=>{r(l)},[l]),s}},35294:()=>{},35606:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(82136),r=l(45046),n=l(1892),i=l(62082),o=l(65125),c=l(62556),d=l(66766),u=l(6874),m=l.n(u),x=l(35695),p=l(12115),h=l(62177),f=l(25473);function g(e){let{blok:t}=e,{title:l,hubspot_id:u,content:g,on_success:b,success_event:v,contact_phone:j}=t,[N,y]=(0,p.useState)(!1),[w,A]=(0,p.useState)(!1),[C,k]=(0,p.useState)(0),S=(0,x.useRouter)(),[_,E]=(0,p.useState)(null),P=(0,h.mN)(),{ready:R,error:T,getToken:I}=(0,f.q)(),L=async e=>{let t=g[C].fields.map(e=>e.name);if(await P.trigger(t)){for(let t in y(!0),E(null),e)Array.isArray(e[t])?e[t]=e[t].join(";"):e[t]instanceof Set&&(e[t]=Array.from(e[t]).join(";"));let t={hutk:document.cookie.split(";").reduce((e,t)=>{let[l,a]=t.trim().split("=");return e[l]=a,e},{}).hubspotutk||"",pageUri:document.location.href,pageName:document.title||""};try{let l=await I("hubspot_multistep_page_submit");await (0,n.O)(u||"",e,t,"hubspot_multistep_page_submit",l),v&&(0,o.sendGTMEvent)({event:v,value:{hsData:e,hsFormId:u}}),A(!0),P.reset(),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})})}catch(e){console.error("HubSpot multistep page submission error:","string"==typeof(null==e?void 0:e.message)?e.message:"Submission failed."),R?T?E("reCAPTCHA could not start. Please try again later."):E("Sorry, we could not submit the form. Please try again later."):E("reCAPTCHA is still loading. Please try again in a moment.")}finally{y(!1)}}};if((0,p.useEffect)(()=>{setTimeout(()=>{P.clearErrors(),window.scrollTo({top:0,behavior:"smooth"})})},[C]),w){var M;return(0,a.jsx)("div",{className:"bg-[#f8f8fa] absolute right-0 left-0 bottom-0 top-0",children:(0,a.jsx)("div",{className:"container flex justify-center",children:b&&b.length>0&&(0,a.jsxs)("div",{className:"pt-20 lg:pt-[160px] lg:max-w-[80%]",children:[(0,a.jsxs)("p",{className:"text-xl md:text-2xl lg:text-[32px] text-ln700 flex items-center gap-4 font-semibold",children:[(0,a.jsx)(d.default,{src:"/icons/check_circle.svg",width:40,height:40,alt:"tick"}),b[0].title]}),(0,a.jsx)("p",{className:"text-ln700 mt-4",children:b[0].description}),(0,a.jsx)("div",{className:"flex flex-col gap-2 pt-6 lg:pt-10",children:null==(M=b[0].facts)?void 0:M.split(",").map((e,t)=>(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(d.default,{src:"/icons/form_arrow.svg",width:16,height:16,alt:"tick"}),(0,a.jsx)("span",{className:"text-ln700",children:e})]},t))}),(0,a.jsxs)("div",{className:"mt-[25px] lg:mt-10",children:[(0,a.jsx)("p",{className:"text-ln700 text-[20px]",children:"Have any questions?"}),(0,a.jsx)("p",{className:"text-ln500 font-semibold text-[20px]",children:"Call us today"}),(0,a.jsx)(m(),{href:"tel:".concat(b[0].contact&&b[0].contact.replace(/\s+/g,"")),className:"text-primary font-semibold text-[20px]",children:b[0].contact})]})]})})})}return(0,a.jsx)("div",{...(0,i.m)(t),className:"min-h-screen",children:(0,a.jsx)(r.c,{children:(0,a.jsx)(h.Op,{...P,children:(0,a.jsxs)("form",{onSubmit:P.handleSubmit(L),children:[(0,a.jsx)("div",{className:" bg-white py-3 px-4 lg:px-6",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1920px] flex flex-row items-center justify-center lg:justify-between",children:[(0,a.jsxs)("button",{onClick:()=>S.back(),className:"hidden lg:flex basis-[11%] text-ln700 items-center gap-2",children:[(0,a.jsx)(d.default,{className:"inline-block",src:"/icons/arrow-left.svg",alt:"arrow-left",width:24,height:24}),(0,a.jsx)("span",{className:"inline-block",children:"Back"})]}),(0,a.jsx)("div",{className:"flex flex-row",children:g.map((e,t)=>(0,a.jsxs)("div",{className:"text-[14px] flex items-center cursor-pointer",onClick:()=>{C>t&&k(t)},children:[t<C?(0,a.jsx)(d.default,{src:"/icons/form_tick.svg",width:32,height:32,alt:"tick",className:"mr-[12px]"}):(0,a.jsx)("span",{className:"inline-flex items-center justify-center rounded-full w-[32px] h-[32px] min-w-[32px] mr-2 md:mr-[12px]\n ".concat(C===t?" bg-primary text-white":" text-ln500 border-2 border-lg400"),children:t+1}),(0,a.jsx)("span",{className:"max-w-full text-sm text-semibold",children:e.title}),t<g.length-1&&(0,a.jsx)("span",{className:"px-2 md:px-[20px] inline-block",children:(0,a.jsx)(d.default,{src:"/icons/form_arrow_right.svg",width:24,height:24,alt:"arrow"})})]},t))}),j&&(0,a.jsxs)("div",{className:"hidden lg:flex gap-[0.25em] font-bold text-ln700",children:[(0,a.jsx)("p",{className:" text-[14px]",children:"Need some help? Call us on"}),(0,a.jsx)(m(),{href:"tel:".concat(j.replace(/\s+/g,"")),className:"underline text-[14px] hover:opacity-70 transition-opacity duration-300",children:j})]})]})}),(0,a.jsxs)("div",{className:"pt-4 lg:pt-[160px] mx-auto px-4 lg:px-0 max-w-[474px] md:max-w-[540px] lg:max-w-[592px]",children:[(0,a.jsxs)("button",{onClick:()=>S.back(),className:"lg:hidden basis-[11%] max-w-fit pt-10 pb-6 flex text-ln700 items-center gap-2",children:[(0,a.jsx)(d.default,{className:"inline-block",src:"/icons/arrow-left.svg",alt:"arrow-left",width:24,height:24}),(0,a.jsx)("span",{className:"inline-block",children:"Back"})]}),(0,a.jsx)("p",{className:"text-3xl text-ln700 font-semibold",children:g[C].title}),(0,a.jsx)("p",{className:"text-ln700 my-4",children:g[C].description}),(0,a.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap gap-2",children:(0,a.jsx)(s.A,{data:g[C].fields})}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 mt-10",children:[_&&(0,a.jsx)("div",{className:"mb-4 rounded-md border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:_}),C===g.length-1?(0,a.jsx)(c.T,{color:"primary",className:"block mt-4 rounded-md px-[24px]",type:"submit",isLoading:N,children:(0,a.jsx)("span",{className:"text-xs font-bold ".concat(N?"ml-2 align-text-top":""," "),children:"SUBMIT"})}):(0,a.jsx)(c.T,{color:"primary",type:"button",className:"block w-full md:w-auto mt-4 rounded-md text-xs font-bold px-[24px]",onPress:async()=>{let e=g[C].fields.map(e=>e.name);await P.trigger(e)&&k(C+1)},children:"CONTINUE"})]}),j&&(0,a.jsxs)("div",{className:"flex mt-4 lg:hidden gap-[0.25em] font-bold text-ln700",children:[(0,a.jsx)("p",{className:" text-[14px]",children:"Need some help? Call us on"}),(0,a.jsx)(m(),{href:"tel:".concat(j.replaceAll(" ","")),className:"underline text-[14px] hover:opacity-70 transition-opacity duration-300",children:j})]})]})]})})})})}},37710:()=>{},38829:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});
1var a=l(95155),s=l(82136),r=l(17304),n=l(65673),i=l(38828),o=l(62082),c=l(66766),d=l(6874),u=l.n(d),m=l(74701),x=l(12115),p=l(87146);function h(e){var t;let{blok:l}=e,{title:d,button:h,items:f,withoutCategoriesFiltering:g}=l,[b,v]=(0,x.useState)("All"),[j,N]=(0,x.useState)(new Map),y=(0,x.useCallback)(()=>{let e=new Map,t=Array.isArray(f)?f.filter(e=>(null==e?void 0:e.content)&&(null==e?void 0:e.full_slug)):[];e.set("All",[...t]),t.forEach(t=>{var l,a;(null==t||null==(l=t.content)?void 0:l.category)&&(null==t||null==(a=t.content)||a.category.forEach(l=>{if(e.has(l)){var a;null==(a=e.get(l))||a.push(t)}else e.set(l,[t])}))}),N(e)},[f]),w=Array.isArray(f)?f.filter(e=>(null==e?void 0:e.content)&&(null==e?void 0:e.full_slug)):[];return((0,x.useEffect)(()=>{w.length>0&&y()},[w.length,y]),0===w.length)?null:(0,a.jsx)("section",{className:"wrapper py-10",...(0,o.m)(l),children:(0,a.jsxs)("div",{className:"container py-10 lg:py-12",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center lg:items-start text-center lg:text-left",children:[d&&(0,a.jsx)(r.A,{level:2,className:"mb-4",children:d}),(0,a.jsx)(s.A,{data:h})]}),!g&&(0,a.jsx)("div",{className:"hidden md:flex gap-2",children:Array.isArray(f)&&f.length?Array.from(j.keys()).map(e=>(0,a.jsx)(i.R,{radius:"lg",className:"font-semibold text-xs uppercase cursor-pointer ".concat(b===e?"bg-cln300 text-cln1000":""),variant:b===e?"solid":"bordered",onClick:()=>v(e),children:e},e)):(0,a.jsx)("div",{className:"w-full flex gap-2",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsx)(n.m,{className:"rounded-full",children:(0,a.jsx)("div",{className:"h-[28px] w-[78px] bg-grey6"})},t))})}),(0,a.jsx)("div",{className:"mt-8 grid grid-cols-1 gap-4 md:grid-cols-3",children:Array.isArray(f)&&!f.length?[void 0,void 0,void 0].map((e,t)=>(0,a.jsx)(n.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"h-[280px] w-full bg-grey6"})},t)):null==j||null==(t=j.get(b))?void 0:t.map((e,t)=>{var l;let s=null==e?void 0:e.content;return(0,a.jsxs)(u(),{href:(0,m.D5)(null==e?void 0:e.full_slug),className:"mb-11 lg:mb-5",children:[(null==s?void 0:s.thumbnail)&&(0,a.jsx)(p.A,{asset:s.thumbnail,aspectRatioX:440,aspectRatioY:280,className:"rounded-lg"}),(0,a.jsx)("div",{className:"lg:pt-5 pb-4 flex gap-2",children:null==s||null==(l=s.category)?void 0:l.map((e,t)=>(0,a.jsx)(i.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs",children:e.toUpperCase().replaceAll("-"," ")},t))}),(0,a.jsx)("p",{className:"font-semibold text-xl mb-4 line-clamp-1",children:(null==s?void 0:s.title)||""}),(0,a.jsxs)("p",{className:"text-primary font-semibold w-fit border-b-1 border-primary cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:"Read more"}),(0,a.jsx)(c.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]})]},t)})})]})})}},40373:()=>{},41010:()=>{},41308:()=>{},44328:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(95155),s=l(93525),r=l(82136),n=l(48140),i=l(77038),o=l(33627),c=l(93542),d=l(62082),u=l(62556),m=l(66766),x=l(35695),p=l(12115);function h(e){let{blok:t}=e,{label:l,link:h,icon:f,variant:g,megamenu:b}=t,v=(0,n.useDisableVisualEditorLink)(),j=(0,c.k)(h),N=b&&b.length>0,[y,w]=(0,p.useState)(!1),A=(0,x.usePathname)(),C=(0,p.useRef)(null),k=(0,o.A)(i.o,e=>e),S=e=>{C.current&&!C.current.contains(e.target)&&w(!1)};if((0,p.useEffect)(()=>{y&&w(!1)},[A]),(0,p.useEffect)(()=>{(null==k?void 0:k.headerHidden)&&y&&w(!1)},[null==k?void 0:k.headerHidden,y]),(0,p.useEffect)(()=>(document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}),[]),!j.href)return null;let _=null;switch(g){case"primary":_=(0,a.jsx)(u.T,{as:N?u.T:s.N,...N?{}:j,onPress:N?()=>w(!y):void 0,color:"primary",startContent:(null==f?void 0:f.filename)&&(0,a.jsx)(m.default,{src:f.filename,alt:f.alt||"icon",width:18,height:18}),className:"rounded-md uppercase text-xs font-bold ".concat(v),children:l});break;case"outline":_=(0,a.jsx)(u.T,{as:N?u.T:s.N,...N?{}:j,onPress:N?()=>w(!y):void 0,color:"primary",variant:"bordered",startContent:(null==f?void 0:f.filename)&&(0,a.jsx)(m.default,{src:f.filename,alt:f.alt||"icon",width:18,height:18}),className:"rounded-md uppercase text-xs font-bold ".concat(v," w-full"),children:l});break;case"blue-outline-blue-icon":_=(0,a.jsx)(u.T,{as:N?u.T:s.N,...N?{}:j,onPress:N?()=>w(!y):void 0,color:"primary",variant:"bordered",startContent:(null==f?void 0:f.filename)&&(0,a.jsx)(m.default,{src:f.filename,alt:f.alt||"icon",width:18,height:18}),className:"rounded-md text-lb950 border-lb950 uppercase text-xs font-bold ".concat(v," w-full"),children:l})}return(0,a.jsxs)("div",{...(0,d.m)(t),children:[_,N&&(0,a.jsx)("div",{ref:C,children:(0,a.jsx)(r.A,{data:b,parentProps:{isOpen:y}})})]})}},44605:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(62082),r=l(50624),n=l(87146);function i(e){let{blok:t}=e,{icon:l,badge_text:i,title:o,subtitle:c,description:d}=t;return(0,a.jsxs)("div",{...(0,s.m)(t),className:"relative h-full",children:[(0,a.jsx)("div",{className:"absolute -top-12 left-0 sm:-top-16 z-10",children:(0,a.jsx)("div",{className:"h-24 w-24 sm:h-32 sm:w-32 rounded-full bg-primary flex items-center justify-center text-white font-bold shadow-sm",children:(null==l?void 0:l.filename)?(0,a.jsx)(n.A,{asset:l,width:83,height:83,fullWidth:!1,lockA
1spectRatio:!1,className:"!w-[60px] !h-[60px] sm:!w-[83px] sm:!h-[83px]"}):(0,a.jsx)("span",{className:"text-sm",children:i})})}),(0,a.jsxs)("div",{className:"h-full rounded-md border-2 border-primary bg-white px-6 pb-6 pt-20 sm:pt-24 shadow-sm",children:[o&&(0,a.jsx)("h3",{className:"text-primary text-2xl sm:text-[35px] font-bold leading-tight mb-1",children:o}),c&&(0,a.jsx)("p",{className:"text-primary text-base sm:text-[20px] font-bold leading-tight mb-4",children:c}),"object"==typeof d?(0,a.jsx)(r.t,{className:"text-ln700 text-[14px] sm:text-[16px] leading-relaxed",data:d}):(0,a.jsx)("p",{className:"text-ln700 text-[14px] sm:text-[16px] leading-relaxed",children:d})]})]})}},45046:(e,t,l)=>{"use strict";l.d(t,{R:()=>i,c:()=>n});var a=l(95155),s=l(12115);let r=(0,s.createContext)(void 0),n=e=>{let{children:t}=e,[l,n]=(0,s.useState)("");return(0,a.jsx)(r.Provider,{value:{amountType:l,setAmountType:n},children:t})},i=()=>{let e=(0,s.useContext)(r);if(!e)throw Error("useAmountTypeContext must be used within a AmountTypeContext");return e}},45279:()=>{},47176:()=>{},47579:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var a=l(95155),s=l(62082),r=l(62177),n=l(82136),i=l(12115),o=l(1892),c=l(25473),d=l(66766),u=l(62556),m=l(6874),x=l.n(m),p=l(65125),h=l(45046);function f(e){let{blok:t}=e,{title:l,hubspot_id:m,content:f,on_success:g,success_event:b}=t,[v,j]=(0,i.useState)(!1),[N,y]=(0,i.useState)(!1),[w,A]=(0,i.useState)(0),[C,k]=(0,i.useState)(null),S=(0,r.mN)(),{ready:_,error:E,getToken:P}=(0,c.q)(),R=async e=>{let t=f[w].fields.map(e=>e.name);if(await S.trigger(t)){for(let t in j(!0),k(null),e)Array.isArray(e[t])?e[t]=e[t].join(";"):e[t]instanceof Set&&(e[t]=Array.from(e[t]).join(";"));let t={hutk:document.cookie.split(";").reduce((e,t)=>{let[l,a]=t.trim().split("=");return e[l]=a,e},{}).hubspotutk||"",pageUri:window.location.href,pageName:document.title||""};try{let l=await P("hubspot_multistep_submit");await (0,o.O)(m||"",e,t,"hubspot_multistep_submit",l),b&&(0,p.sendGTMEvent)({event:b,value:{hsData:e,hsFormId:m}}),y(!0),S.reset(),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})})}catch(e){console.error("HubSpot multistep submission error:","string"==typeof(null==e?void 0:e.message)?e.message:"Submission failed."),_?E?k("reCAPTCHA could not start. Please try again later."):k("Sorry, we could not submit the form. Please try again later."):k("reCAPTCHA is still loading. Please try again in a moment.")}finally{j(!1)}}};if((0,i.useEffect)(()=>{setTimeout(()=>{S.clearErrors(),window.scrollTo({top:0,behavior:"smooth"})})},[w]),N){var T;return(0,a.jsx)("div",{className:"bg-[#f8f8fa] absolute right-0 left-0 bottom-0 top-0",children:(0,a.jsx)("div",{className:"container flex justify-center",children:g&&g.length>0&&(0,a.jsxs)("div",{className:"mt-10 p-6 md:p-10 w-full md:w-2/3 rounded-lg bg-lb100 ",children:[(0,a.jsx)("p",{className:"text-3xl text-ln700 font-semibold",children:g[0].title}),(0,a.jsx)("p",{className:"text-ln700 mt-4",children:g[0].description}),(0,a.jsx)("div",{className:"flex flex-col gap-2 pt-6",children:null==(T=g[0].facts)?void 0:T.split(",").map((e,t)=>(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(d.default,{src:"/icons/form_tick.svg",width:30,height:30,alt:"tick"}),(0,a.jsx)("span",{className:"text-ln700",children:e})]},t))}),(0,a.jsxs)("div",{className:"mt-[25px]",children:[(0,a.jsx)("p",{className:"text-ln700 text-[20px]",children:"Need some help?"}),(0,a.jsx)("p",{className:"text-ln500 font-semibold text=[20px]",children:"Call us today"}),(0,a.jsx)(x(),{href:"tel:".concat(g[0].contact),className:"text-primary font-semibold text-[20px]",children:g[0].contact})]})]})})})}return(0,a.jsxs)("div",{...(0,s.m)(t),className:"pb-14",children:[(0,a.jsx)("p",{className:"text-ln700 text-2xl font-semibold mb-4",children:l}),(0,a.jsx)(h.c,{children:(0,a.jsx)(r.Op,{...S,children:(0,a.jsxs)("form",{onSubmit:S.handleSubmit(R),children:[C&&(0,a.jsx)("div",{className:"mb-4 rounded-md border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:C}),(0,a.jsx)("div",{className:"flex flex-row",children:f.map((e,t)=>(0,a.jsxs)("div",{className:"text-sm pb-5 md:pb-0 flex items-center cursor-pointer",onClick:()=>{w>t&&A(t)},children:[t<w?(0,a.jsx)(d.default,{src:"/icons/form_tick.svg",width:32,height:32,alt:"tick",className:"mr-[12px]"}):(0,a.jsx)("span",{className:"inline-flex items-center justify-center rounded-full w-[32px] h-[32px] min-w-[32px] mr-2 md:mr-[12px]\n ".concat(w===t?" bg-primary text-white":" text-ln500 border-2 border-lg400"),children:t+1}),(0,a.jsx)("span",{className:"max-w-min md:max-w-full",children:e.title}),t<f.length-1&&(0,a.jsx)("span",{className:"px-2 md:px-[20px] inline-block",children:(0,a.jsx)(d.default,{src:"/icons/form_arrow_right.svg",width:24,height:24,alt:"arrow"})})]},t))}),(0,a.jsxs)("div",{className:"pt-10 lg:max-w-[80%]",children:[(0,a.jsx)("p",{className:"text-3xl text-ln700 font-semibold",children:f[w].title}),(0,a.jsx)("p",{className:"text-ln700 my-4",children:f[w].description}),(0,a.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap gap-2",children:(0,a.jsx)(n.A,{data:f[w].fields})}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-2",children:[w>0&&(0,a.jsx)(u.T,{color:"primary",variant:"bordered",className:"block w-full md:w-auto mt-4 rounded-md text-xs font-bold px-[24px]",onPress:()=>A(w-1),children:"PREVIOUS STEP"}),w===f.length-1?(0,a.jsx)(u.T,{color:"primary",className:"block mt-4 rounded-md px-[24px]",type:"submit",isLoading:v,children:(0,a.jsx)("span",{className:"text-xs font-bold ".concat(v?"ml-2 align-text-top":""," "),children:"SUBMIT"})}):(0,a.jsx)(u.T,{color:"primary",type:"button",className:"block w-full md:w-auto mt-4 rounded-md text-xs font-bold px-[24px]",onPress:async()=>{let e=f[w].fields.map(e=>e.name);await S.trigger(e)&&A(w+1)},children:"CONTINUE"})]})]})]})})})]})}},48140:(e,t,l)=>{"use strict";l.d(t,{useDisableVisualEditorLink:()=>s});var a=l(35695);function s(){return!function(){let e=(0,a.useSearchParams)(),t=e.get("_storyblok"),l=e.get("_storyblok_tk[space_id]");return!!t&&!!l}()?"":"pointer-events-none"}},48583:()=>{},50197:(e,t,l)=>{"use strict";l.d(t,{A:()=>n,K:()=>r});var a=l(95155),s=l(60908);let r=e=>{let{data:t,asListItem:l=!1,parentProps:r}=e;if(!t)return null;if(Array.isArray(t)){let e=t.filter(e=>e&&e._uid);return(0,a.jsx)(a.Fragment,{children:e.map((t,l)=>(0,a.jsx)(s.IF,{blok:{...t,parentProps:r},index:l,length:e.length},"".concat(l,"-").concat(t._uid)))})}return(0,a.jsx)(s.IF,{blok:{...t,parentProps:r}})},n=r},50469:(e,t,l)=>{"use strict";l.d(t,{default:()=>W});var a=l(95155),s=l(12115);function r(e,t,l){return 0===e?l/t:e*l/(1-Math.pow(1+e,-t))}function n(e,t){var l,a;switch(e.mode){case"percent":return(null!=(l=e.percent)?l:0)*t;case"flat":return null!=(a=e.flatAmount)?a:0}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.01,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-10,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,s=t;
1for(let t=0;t<a;t++){let t=function(e,t){let l=0;for(let a=0;a<t.length;a++)l+=t[a]/Math.pow(1+e,a);return l}(s,e),a=function(e,t){let l=0;for(let a=1;a<t.length;a++)l+=-a*t[a]/Math.pow(1+e,a+1);return l}(s,e);if(1e-20>Math.abs(a))throw Error("IRR solver: derivative too small, cannot converge");let r=s-t/a;if(Math.abs(r-s)<l)return r;s=r}throw Error("IRR solver: did not converge after ".concat(a," iterations"))}function o(e,t){var l,a,s,o;let{projectAmount:c,loanTermYears:d,interestOnlyPeriodMonths:u}=e,{interestRate:m}=t,x=m/12,p=12*d,h=u>=p,f=h?c*x:r(x,p-u,c),g=u>0?c*x:void 0,b=(l=t.upfrontFees,n(l.approval,c)+n(l.establishment,c)+n(l.settlement,c)+n(l.other,c)),v=(a=t.ongoingFees,n(a.monthly,c)),j=(s=t.ongoingFees,n(s.annual,c)+n(s.otherPerYear,c)),N=(o=t.adminCosts,n(o.strataManagerScheduleB,c)+n(o.otherPerYear,c)),y=t.benefits?function(e){let t=0;for(let l of[e.education,e.levyPlanner,e.unityBank])l.enabled&&(t+=l.amount);return t}(t.benefits):0,w=y>0,A=function(e,t,l){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t/12,n=12*l,i=e*s,o=0;a>=n||(o=r(s,n-a,e));let c=[],d=e;for(let e=1;e<=n;e++){let t=d*s,l=e<=a?i:o,r=d+t-l;c.push({month:e,openingBalance:d,interest:t,payment:l,closingBalance:.01>Math.abs(r)?0:r}),d=r}return c}(c,m,d,u),C=function(e){let{principal:t,termYears:l,monthlyPayments:a,totalUpfrontFees:s,monthlyFee:r,annualFees:n,annualBenefits:i}=e,o=12*l,c=o+1,d=Array(c),u=Array(c),m=Array(c),x=Array(c);d[0]=-t,u[0]=-(t-s),m[0]=-(t-s),x[0]=-(t-s);for(let e=1;e<=o;e++){let t=a[e-1];d[e]=t,u[e]=t;let l=t+r;e%12==0&&(l+=n),m[e]=l;let s=l;e%12==0&&(s-=i),x[e]=s}return{colJ:d,colK:u,colN:m,colP:x}}({principal:c,termYears:d,monthlyPayments:A.map(e=>e.payment),totalUpfrontFees:b,monthlyFee:v,annualFees:j+N,annualBenefits:y}),k=12*i(C.colJ),S={monthlyRepayment:f,annualRateBase:k,annualRateWithUpfront:12*i(C.colK),annualRateAllFees:12*i(C.colN),totalUpfrontFees:b,totalOngoingFeesPerYear:j+12*v,totalAdminCostsPerYear:N,schedule:A,cashFlows:C};return h&&(S.isBalloonLoan=!0),void 0!==g&&(S.monthlyRepaymentIO=g),w&&(S.annualRateNetBenefits=12*i(C.colP),S.monthlyRepaymentNetBenefits=f-y/12,S.totalBenefitsPerYear=y),S}let c="lannock-calc",d={approval:600};function u(e){let t=Math.max(0,12*e.loanTermYears-1);return e.interestOnlyPeriodMonths>t?{...e,interestOnlyPeriodMonths:t}:e}let m="simple",x={projectAmount:1e4,loanTermYears:5,numberOfLots:10,interestOnlyPeriodMonths:0};function p(e){return{interestRate:e,upfrontFees:{approval:{mode:"flat",flatAmount:d.approval},establishment:{mode:"flat",flatAmount:0},settlement:{mode:"flat",flatAmount:0},other:{mode:"flat",flatAmount:0}},ongoingFees:{monthly:{mode:"flat",flatAmount:0},annual:{mode:"flat",flatAmount:0},otherPerYear:{mode:"flat",flatAmount:0}},adminCosts:{strataManagerScheduleB:{mode:"flat",flatAmount:0},otherPerYear:{mode:"flat",flatAmount:0}}}}p(.05);var h=l(61884);function f(e){let{amount:t,caption:l}=e;return(0,a.jsxs)("div",{className:"flex flex-col bg-lb100 items-center text-center leading-tight justify-between rounded-xl gap-[24px] py-[31px] px-[10px] my-2 md:my-0 w-full",children:[(0,a.jsx)("p",{className:"text-lg font-semibold text-primary leading-tight",children:"Monthly Repayments"}),(0,a.jsx)("p",{className:"text-ln700 font-bold text-4xl leading-tight break-words",children:(0,h.vv)(t)}),(0,a.jsx)("p",{className:"font-opensans text-ln500 leading-tight",children:l})]})}function g(e){let{output:t,divisor:l,isLotEntitlement:s}=e,r=s?" (lot)":"";return(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsx)("div",{className:"grid grid-cols-1 gap-6 items-start rounded-lg ",children:(0,a.jsx)("div",{className:"flex flex-row w-full gap-6",children:void 0!==t.monthlyRepaymentIO?(0,a.jsxs)("div",{className:"flex flex-col gap-1 lg:flex-row w-full md:gap-6",children:[(0,a.jsx)(f,{amount:t.monthlyRepaymentIO/l,caption:"Interest Only ".concat(r)}),(0,a.jsx)(f,{amount:t.monthlyRepayment/l,caption:"Principal and interest ".concat(r)})]}):(0,a.jsx)(f,{amount:t.monthlyRepayment/l,caption:"Principal and interest ".concat(r)})})})})}function b(e){let{approvalFee:t}=e,l=null!=t?t:d.approval;return(0,a.jsx)("div",{className:" flex flex-col gap-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl pb-2 font-bold text-ln700",children:"Our Fees"}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:" font-medium text-ln700",children:"Approval fee"}),(0,a.jsx)("p",{className:"mt-0.5 text-sm text-ln300",children:"Applicable to standard loans up to $1,000,000"})]}),(0,a.jsxs)("span",{className:"whitespace-nowrap font-semibold text-ln700",children:["$",l.toLocaleStr
1ing()]})]})]})})}var v=l(1892),j=l(25473),N=l(65125);function y(e){let{isOpen:t,onClose:l,calculatorInputs:r,hubspotFormId:n}=e,i=(0,s.useRef)(null),[o,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(!1),[m,x]=(0,s.useState)(null),{ready:p,error:h,getToken:f}=(0,j.q)();(0,s.useEffect)(()=>{let e=i.current;e&&(t&&!e.open?(e.showModal(),(0,N.sendGTMEvent)({event:"calculator_modal_open",value:{inputs:r}})):!t&&e.open&&e.close())},[t,r]);let g=(0,s.useCallback)(()=>{var e;null==(e=i.current)||e.close(),l(),u(!1),x(null)},[l]),b=(0,s.useCallback)(e=>{e.target===i.current&&g()},[g]),y=(0,s.useCallback)(async e=>{if(e.preventDefault(),!n)return;c(!0),x(null);let t=new FormData(e.currentTarget),l={};t.forEach((e,t)=>{l[t]=String(e)}),l.loan_amount=String(r.amount),l.loan_term=String(r.term),l.number_of_lots=String(r.lots),l.interest_rate=String((100*r.rate).toFixed(2));let a={hutk:document.cookie.split(";").reduce((e,t)=>{let[l,a]=t.trim().split("=");return e[l]=a,e},{}).hubspotutk||"",pageUri:window.location.href,pageName:document.title||""};try{let e=await f("calculator_enquiry");await (0,v.O)(n,l,a,"calculator_enquiry",e),(0,N.sendGTMEvent)({event:"calculator_form_submit",value:{hsFormId:n,calculatorInputs:r}}),u(!0)}catch(t){let e=t instanceof Error?t.message:"Submission failed.";p?h?x("reCAPTCHA could not start. Please try again later."):x("Sorry, we could not submit the form. Please try again later."):x("reCAPTCHA is still loading. Please try again in a moment."),console.error("Calculator enquiry error:",e)}finally{c(!1)}},[n,r,f,p,h]);return n?(0,a.jsx)("dialog",{ref:i,onClick:b,className:"backdrop:bg-black/50 rounded-lg p-0 max-w-lg w-full",children:(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-ln700",children:"Get in Touch"}),(0,a.jsx)("button",{type:"button",onClick:g,className:"text-ln400 hover:text-ln700 text-2xl leading-none","aria-label":"Close",children:"\xd7"})]}),d?(0,a.jsxs)("div",{className:"text-center py-8",children:[(0,a.jsx)("p",{className:"text-lg font-semibold text-ln700 mb-2",children:"Thank you!"}),(0,a.jsx)("p",{className:"text-sm text-ln400",children:"We'll be in touch shortly."}),(0,a.jsx)("button",{type:"button",onClick:g,className:"mt-6 rounded-md bg-primary text-white text-xs font-bold uppercase tracking-wide px-6 py-2.5",children:"Close"})]}):(0,a.jsxs)("form",{onSubmit:y,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"bg-lb100 rounded-md p-4 text-sm text-ln700",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"Your calculator inputs:"}),(0,a.jsxs)("p",{children:["Loan amount: $",r.amount.toLocaleString()]}),(0,a.jsxs)("p",{children:["Term: ",r.term," years"]}),(0,a.jsxs)("p",{children:["Lots: ",r.lots]}),(0,a.jsxs)("p",{children:["Rate: ",(100*r.rate).toFixed(2),"%"]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:"calc-name",className:"text-sm font-medium text-ln700",children:"Name"}),(0,a.jsx)("input",{id:"calc-name",name:"firstname",type:"text",required:!0,className:"rounded-md border border-grey1 bg-white py-2 px-3 text-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:"calc-email",className:"text-sm font-medium text-ln700",children:"Email"}),(0,a.jsx)("input",{id:"calc-email",name:"email",type:"email",required:!0,className:"rounded-md border border-grey1 bg-white py-2 px-3 text-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:"calc-phone",className:"text-sm font-medium text-ln700",children:"Phone"}),(0,a.jsx)("input",{id:"calc-phone",name:"phone",type:"tel",className:"rounded-md border border-grey1 bg-white py-2 px-3 text-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"})]}),m&&(0,a.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:m}),(0,a.jsx)("button",{type:"submit",disabled:o,className:"w-full rounded-md bg-primary text-white text-xs font-bold uppercase tracking-wide px-6 py-3 disabled:opacity-50",children:o?"Submitting...":"Submit Enquiry"})]})]})}):(0,a.jsx)("dialog",{ref:i,onClick:b,className:"backdrop:bg-black/50 rounded-lg p-0 max-w-md w-full",children:(0,a.jsxs)("div",{className:"p-8 text-center",children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-ln700 mb-4",children:"Coming Soon"}),(0,a.jsx)("p",{className:"text-sm text-ln400 mb-6",children:"The enquiry form is being configured. Please contact us directly in the meantime."}),(0,a.jsx)("button",{type:"button",onClick:g,className:"rounded-md bg-primary text-white text-xs font-bold uppercase tracking-wide px-6 py-2.5",children:"Close"})]})})}function w(e,t,l){return Math.max(t,Math.min(e,l))}function A(e){return Math.round(100*e)/100}function C(e){let{value:t,onChange:l,min:r,max:n,step:i=1,label:o,id:c,unit:d,className:u="w-full rounded-md border border-grey1 bg-white py-2 px-3 text-right text-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",ariaLabel:m}=e,x=null!=c?c:o?o.toLowerCase().replace(/\s+/g,"-"):void 0,[p,h]=(0,s.use
1State)(null),f=(0,s.useCallback)(e=>{let t=e.target.value;if(h(t),""===t)return;let a=Number(t);Number.isNaN(a)||l(w(A(a),r,n))},[l,r,n]),g=(0,s.useCallback)(()=>{null!==p&&(""===p||Number.isNaN(Number(p))?l(r):l(w(A(Number(p)),r,n)),h(null))},[p,l,r,n]),b=null!=p?p:String(parseFloat(t.toFixed(2))),v=(0,a.jsx)("input",{id:x,type:"number",inputMode:"numeric",min:r,max:n,step:i,value:b,onChange:f,onBlur:g,className:u,"aria-label":null!=m?m:o}),j=d?(0,a.jsxs)("div",{className:"relative flex items-center",children:[v,(0,a.jsx)("span",{className:"pointer-events-none absolute right-2 text-sm text-ln400",children:d})]}):v;return o?(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:x,className:"text-sm font-medium text-ln700",children:o}),j]}):j}function k(e){let{value:t,onChange:l,label:r,min:n,max:i,step:o,formatValue:c,id:d,showNumberInput:u=!1,unit:m="%"}=e,x=null!=d?d:r.toLowerCase().replace(/\s+/g,"-"),p=(0,s.useCallback)(e=>{l(Math.round(100*Number(e.target.value))/100)},[l]),h=(t-n)/(i-n)*100;return(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:x,className:" font-medium text-ln700",children:r}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("input",{id:x,type:"range",min:n,max:i,step:o,value:t,onChange:p,className:"h-2 w-full cursor-pointer appearance-none rounded-lg",style:{background:"linear-gradient(to right, #57B0F3 ".concat(h,"%, #D3D4D7 ").concat(h,"%)")},"aria-label":r}),u?(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(C,{value:t,onChange:l,min:n,max:i,step:o,unit:m,className:"w-28 rounded-md border border-grey1 bg-white py-1.5 pl-3 pr-7 text-right font-medium text-ln700 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",ariaLabel:r})}):(0,a.jsx)("span",{className:"shrink-0 text-sm font-medium text-ln700",children:c?c(t):t})]})]})}function S(e){return e.toLocaleString("en-AU",{maximumFractionDigits:0})}function _(e){let{value:t,onChange:l,label:r,min:n=0,max:i,disabled:o=!1,id:c,labelClassName:d,inputClassName:u,prefixClassName:m,containerClassName:x}
1=e,[p,h]=(0,s.useState)(S(t)),[f,g]=(0,s.useState)(!1),b=null!=c?c:r.toLowerCase().replace(/\s+/g,"-"),v=(0,s.useCallback)(e=>{let t=e.target.value;h(t);let a=Number(t.replace(/[^0-9.]/g,""))||0;l(Math.max(n,void 0!==i?Math.min(a,i):a))},[l,n,i]),j=(0,s.useCallback)(()=>{g(!0),h(String(t))},[t]),N=(0,s.useCallback)(()=>{g(!1),h(S(t))},[t]);return(0,a.jsxs)("div",{className:null!=x?x:"flex flex-col gap-1",children:[(0,a.jsx)("label",{htmlFor:b,className:null!=d?d:"text-sm font-medium text-ln700",children:r}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:null!=m?m:"absolute left-3 top-1/2 -translate-y-1/2 text-ln300",children:"$"}),(0,a.jsx)("input",{id:b,type:"text",inputMode:"numeric",value:f?p:S(t),onChange:v,onFocus:j,onBlur:N,disabled:o,className:null!=u?u:"w-full rounded-md border border-grey1 bg-white py-2 pl-7 pr-3 text-right text-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary disabled:bg-ln50 disabled:text-ln200","aria-label":r})]})]})}var E=l(55028),P=l(83214),R=l(99445),T=l(94754),I=l(96025),L=l(16238),M=l(3401);function F(e){let{isLotEntitlement:t}=e,l=t?" (lot)":"";return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("h2",{className:"text-2xl font-semibold text-ln700",children:["Loan Balance Over Time",l]}),(0,a.jsx)(P.u,{width:"100%",height:300,children:(0,a.jsxs)(R.Q,{data:[],margin:{top:20,right:30,left:20,bottom:10},children:[(0,a.jsx)(T.d,{vertical:!1,stroke:"#E5E7EB",strokeDasharray:"3 3"}),(0,a.jsx)(I.W,{dataKey:"year",height:50,tickMargin:8,label:{value:"Years",position:"insideBottom",offset:-5}}),(0,a.jsx)(L.h,{axisLine:!1,tickLine:!1})]})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("h2",{className:"text-2xl font-semibold text-ln700",children:["Annual Levies Paid",l]}),(0,a.jsx)(P.u,{width:"100%",height:300,children:(0,a.jsxs)(M.E,{data:[],margin:{top:20,right:30,left:20,bottom:10},children:[(0,a.jsx)(T.d,{vertical:!1,stroke:"#E5E7EB",strokeDasharray:"3 3"}),(0,a.jsx)(I.W,{dataKey:"year",height:50,tickMargin:8,label:{value:"Years",position:"insideBottom",offset:-5}}),(0,a.jsx)(L.h,{axisLine:!1,tickLine:!1})]})})]})]})}l(84028);var B=l(62082),D=l(79201),O=l(17304),V=l(50197);let U=(0,E.default)(()=>Promise.all([l.e(626),l.e(798)]).then(l.bind(l,31798)).then(e=>({default:e.SimpleCharts})),{loadableGenerated:{webpack:()=>[31798]},ssr:!1,loading:()=>(0,a.jsx)(F,{isLotEntitlement:!1})});function H(e,t){if(null==e||""===e)return t;let l=Number(e);return Number.isNaN(l)?t:l}let Y=void 0,z=[5,7,10,15,25,30];function q(e){let{id:t,label:l,value:s,options:r,onChange:n,required:i}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("label",{htmlFor:t,className:"text-base font-semibold text-ln700",children:[l,i&&(0,a.jsx)("span",{className:"text-primary",children:" *"})]}),(0,a.jsx)("select",{id:t,value:s,onChange:e=>n(Number(e.target.value)),className:"w-full rounded-md border border-grey1 bg-white py-3 px-4 text-base text-ln700 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary appearance-none bg-[url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%2324364F%22%20d%3D%22M2%204l4%204%204-4%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_16px_center] bg-no-repeat",children:r.map(e=>(0,a.jsxs)("option",{value:e,children:[e," years"]},e))})]})}function G(e){let{blok:t}=e,{heading:l,subheading:r,layout:n,show_charts:i,show_fees_panel:h,loan_term_disclaimer:f,disclaimer:v,primary_cta:j,cta_message:w,default_interest_rate:A,default_borrow_amount:C,default_loan_term:S,loan_term_options:E,approval_fee:P,rate_min:R,rate_max:T}=t,I=H(A,.05),L=H(C,1e6),M=H(S,7),G=H(P,d.approval),W=H(R,5),K=H(T,20),$=(0,s.useMemo)(()=>{let e=(null!=E?E:"").trim();if(!e)return z;let t=e.split(",").map(e=>Number(e.trim())).filter(e=>Number.isFinite(e)&&e>0);return t.length>0?t:z},[E]),X=null!=j?j:[],{shared:J,setShared:Q,provider:Z,setProvider:ee,isLotEntitlement:et,lotEntitlement:el}=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,s.useRef)(u({...x,...null!=t.defaultProjectAmount?{projectAmount:t.defaultProjectAmount}:{},...null!=t.defaultLoanTermYears?{loanTermYears:t.defaultLoanTermYears}:{}}
1)),a=(0,s.useRef)(null!=(e=t.defaultInterestRate)?e:.05),[r,n]=(0,s.useState)(l.current),i=(0,s.useCallback)(e=>{n(u(e))},[]),[d,h]=(0,s.useState)(a.current),[f,g]=(0,s.useState)(!1),[b,v]=(0,s.useState)(.05),[j,N]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=function(e){let t="".concat(c,":").concat(e);try{let e=sessionStorage.getItem(t);if(!e)return null;let l=JSON.parse(e);if(4!==l.version)return sessionStorage.removeItem(t),null;return l.data}catch(e){return sessionStorage.removeItem(t),null}}(m);if(e){var t,l;e.shared&&n(u({...x,...e.shared})),e.interestRate&&h(e.interestRate),g(null!=(t=e.isLotEntitlement)&&t),v(null!=(l=e.lotEntitlement)?l:.05)}N(!0)},[]);let y=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(j)return y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{try{let e={version:4,data:{shared:r,interestRate:d,isLotEntitlement:f,lotEntitlement:b},timestamp:Date.now()};sessionStorage.setItem("".concat(c,":").concat(m),JSON.stringify(e))}catch(e){}},500),()=>{y.current&&clearTimeout(y.current)}},[r,d,f,b,j]);let w=(0,s.useMemo)(()=>p(d),[d]),{output:A,error:C}=(0,s.useMemo)(()=>{if(r.loanTermYears<=0||r.projectAmount<=0)return{output:null,error:null};try{return{output:o(r,w),error:null}}catch(e){return{output:null,error:e instanceof Error?e.message:"Calculation error"}}},[r,w]);return{shared:r,setShared:i,provider:w,setProvider:e=>h(e.interestRate),isLotEntitlement:f,setIsLotEntitlement:g,lotEntitlement:b,setLotEntitlement:v,output:A,error:C,reset:()=>{i(l.current),h(a.current),g(!1),v(.05);try{sessionStorage.removeItem("".concat(c,":").concat(m))}catch(e){}}}}({defaultProjectAmount:L,defaultLoanTermYears:M,defaultInterestRate:I>1?I/100:I}),[ea,es]=(0,s.useState)(!1),[er,en]=(0,s.useState)(!1),[ei,eo]=(0,s.useState)({amount:J.projectAmount,term:J.loanTermYears,lots:J.numberOfLots,rate:Z.interestRate}),ec=(0,s.useRef)(null),ed=(0,s.useMemo)(()=>({...Z,upfrontFees:{...Z.upfrontFees,approval:{mode:"flat",flatAmount:G}}}),[Z,G]),{output:eu,error:em}=(0,s.useMemo)(()=>{if(J.loanTermYears<=0||J.projectAmount<=0)return{output:null,error:null};try{return{output:o(J,ed),error:null}}catch(e){return{output:null,error:e instanceof Error?e.message:"Calculation error"}}}
1,[J,ed]),ex=et?1/el:1,ep=function(e,t){let[l,a]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let t=setTimeout(()=>a(e),200);return()=>clearTimeout(t)},[e,200]),l}(eu,200),eh=(0,s.useCallback)(()=>{es(!0),eu&&((0,N.sendGTMEvent)({event:"calculator_calculate",value:{amount:J.projectAmount,term:J.loanTermYears,rate:Z.interestRate,monthlyRepayment:eu.monthlyRepayment}}),eo({amount:J.projectAmount,term:J.loanTermYears,lots:J.numberOfLots,rate:Z.interestRate})),requestAnimationFrame(()=>{var e;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;null==(e=ec.current)||e.scrollIntoView({behavior:t?"auto":"smooth",block:"start"})})},[eu,J,Z.interestRate]),ef=(0,s.useCallback)(e=>{ee(e),(0,N.sendGTMEvent)({event:"calculator_slider_change",value:{slider:"interestRate",value:100*e.interestRate}})},[ee]),eg=(0,s.useCallback)(e=>{Q(e),(0,N.sendGTMEvent)({event:"calculator_slider_change",value:{slider:"shared"}})},[Q]),eb=v?(0,a.jsx)(D.t,{data:v}):null,ev=w?(0,a.jsx)(D.t,{data:w}):null,ej=(0,a.jsx)(y,{isOpen:er,onClose:()=>en(!1),calculatorInputs:ei,hubspotFormId:Y});return(0,a.jsxs)("section",{className:"bg-greybg",...(0,B.m)(t),children:[(0,a.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-16",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12 items-start",children:[(0,a.jsx)("div",{className:"flex flex-col justify-center",children:(0,a.jsxs)("div",{className:"accent-bar",children:[(0,a.jsx)(O.A,{level:"full"==("compact"===n?"compact":"full")?1:2,children:l}),r&&(0,a.jsx)("p",{className:"mt-3 text-base font-medium text-ln300",children:r})]})}),(0,a.jsx)("div",{className:"rounded-xl border border-grey1 bg-white p-6 md:p-8 shadow-sm",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(_,{id:"calc-loan-amount",label:"How much would you like to borrow?",value:J.projectAmount,onChange:e=>Q({...J,projectAmount:e}),min:1e3,max:1e7,containerClassName:"flex flex-col gap-3",labelClassName:"text-base md:text-lg font-bold text-ln700",prefixClassName:"pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 text-5xl md:text-6xl font-bold leading-tight text-ln700",inputClassName:"w-full rounded-none border-0 border-b-2 border-ln700 bg-transparent py-2 pl-10 md:pl-14 pr-2 text-left text-5xl md:text-6xl font-bold leading-tight text-ln700 transition-colors focus:border-primary focus:outline-none focus:ring-0 disabled:text-ln200"}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(q,{id:"calc-loan-term",label:"What is the loan term?",value:J.loanTermYears,options:$,onChange:e=>Q({...J,loanTermYears:e}),required:!0}),f&&(0,a.jsx)("p",{className:"mt-1 text-sm text-ln300",children:f})]}),(0,a.jsx)("button",{type:"button",onClick:eh,className:"w-full rounded-md bg-primary text-white text-base font-bold uppercase tracking-wide py-3.5 cursor-pointer appearance-none transition-opacity hover:opacity-90 active:scale-[0.98]",children:"Calculate"})]})})]}),(0,a.jsxs)("div",{ref:ec,className:ea?"mt-10 md:mt-16":"sr-only","aria-hidden":!ea,children:[(0,a.jsxs)("div",{className:"mb-8 prose",children:[(0,a.jsx)(O.A,{level:2,children:"Your Strata Corporation Repayments"}),r&&(0,a.jsx)("p",{className:"mt-3 text-base text-ln500",children:"Here are your results based on the information you provided."})]}),em&&(0,a.jsx)("div",{className:"rounded-md bg-tr300 p-3 text-sm text-primary mb-6",children:em}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-8 md:gap-20",children:[(0,a.jsxs)("div",{className:"space-y-8 md:col-span-2",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[eu?(0,a.jsx)(g,{output:eu,divisor:ex,isLotEntitlement:et}):null,!1!==h&&(0,a.jsx)(b,{approvalFee:G}),(0,a.jsx)("hr",{}),(0,a.jsx)(q,{id:"calc-loan-term-results",label:"Loan term",value:J.loanTermYears,options:$,onChange:e=>Q({...J,loanTermYears:e})}),(0,a.jsx)(k,{label:"Interest Rate",value:100*Z.interestRate,onChange:e=>ef({...Z,interestRate:e/100}),min:W,max:K,step:.01,showNumberInput:!0}),(0,a.jsx)(k,{label:"Interest Only Period (Months)",value:J.interestOnlyPeriodMonths,onChange:e=>
1eg({...J,interestOnlyPeriodMonths:e}),min:0,max:48,step:1,formatValue:e=>0===e?"None":"".concat(e," mo"),showNumberInput:!0,unit:"Mo"})]}),X.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("hr",{}),ev&&(0,a.jsx)("div",{className:"mt-8 prose text-ln300",children:ev}),(0,a.jsx)("div",{className:"flex flex-wrap justify-start gap-4",children:(0,a.jsx)(V.A,{data:X})})]})]}),!1!==i&&ea&&(0,a.jsx)("div",{className:"md:col-span-3",children:ep?(0,a.jsx)(U,{output:ep,divisor:ex,isLotEntitlement:et}):(0,a.jsx)(F,{isLotEntitlement:et})})]})]}),eb&&(0,a.jsx)("div",{className:"mt-8 flex flex-row md:justify-end text-ln300 w-full md:w-1/2 justify-self-end md:px-8",children:eb})]}),ej]})}function W(e){let{blok:t}=e;return(0,a.jsx)(G,{blok:t})}},50624:(e,t,l)=>{"use strict";l.d(t,{t:()=>v});var a=l(95155),s=l(6874),r=l.n(s),n=l(66766),i=l(12115),o=l(78235),c=l(60908),d=l(74701);let u=e=>{var t;let{linktype:l,href:s,target:n,anchor:i}=null!=(t=e.attrs)?t:{},o=e.text;if("email"===l)return(0,a.jsx)("a",{href:"mailto:".concat(s),children:o});if(s&&s.match(/^(https?:)?\/\//))return(0,a.jsx)("a",{href:s,target:n,children:o});if(!s)return(0,a.jsx)(a.Fragment,{children:o});let c=i?"".concat(s,"#").concat(i):s;return(0,a.jsx)(r(),{href:(0,d.D5)(c),children:o})},m=e=>{var t;let{src:l,alt:s}=null!=(t=e.attrs)?t:{};return(0,a.jsx)(n.default,{src:"".concat(l,"/m/900x0"),width:"900",height:"600",alt:s||"",className:"bg-greybg w-full"})},x=e=>Array.isArray(e)?e.map(x):(0,i.isValidElement)(e)?(0,o.uh)(e):e,p=e=>{if(Array.isArray(e))return e.map((e,t)=>{let l=p(e);return(0,i.isValidElement)(l)&&null==l.key?(0,i.cloneElement)(l,{key:t}):l});if((0,i.isValidElement)(e)){var t;let l=null==(t=e.props)?void 0:t.children;return null==l?e:(0,i.cloneElement)(e,void 0,p(l))}return e},h=e=>{let t={...e};return Array.isArray(e.content)&&(t.content=e.content.filter(e=>null==e?void 0:e.type).map(h)),Array.isArray(e.marks)&&(t.marks=e.marks.filter(e=>null==e?void 0:e.type).map(h)),t},f=e=>{let{render:t}=(0,c.BL)({resolvers:{[c.zV.LINK]:u,[c.zV.ANCHOR]:u,[c.Fh.IMAGE]:m}});if(!(null==e?void 0:e.type)||e.type===c.Fh.DOCUMENT&&!Array.isArray(e.content))return null;let l=t(h(e));return(0,a.jsx)(a.Fragment,{children:p(x(l))})};var g=l(38439);let b=e=>{let{className:t,children:l,html:s,...r}=e,n=(0,g.cn)("prose ",t);return s?(0,a.jsx)("div",{className:n,dangerouslySetInnerHTML:{__html:s},...r}):(0,a.jsx)("div",{className:n,...r,children:l})},v=e=>{let{data:t,...l}=e;if(!t)return null;let s=f(t);return(0,a.jsx)(b,{...l,children:s})}},51682:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(95155),s=l(87146),r=l(65673),n=l(38828),i=l(62556),o=l(54117),c=l(66766),d=l(6874),u=l.n(d),m=l(74701),x=l(12115),p=l(93360);function h(e){let{authorUuid:t,articles:l,total:d,heading:h,subtitle:f}=e,g=(0,p.Ym)(),[b,v]=(0,x.useState)(l),[j,N]=(0,x.useState)(1),[y,w]=(0,x.useState)(!1),[A,C]=(0,x.useState)(d>l.length);if(!l||0===l.length)return null;let k=async()=>{var e,l;w(!0);let a=await (0,o.s)(t,j+1,g,6),s=null!=(l=null==a||null==(e=a.data)?void 0:e.stories)?l:[];v(e=>{let t=new Set(e.map(e=>e.uuid)),l=[...e,...s.filter(e=>!t.has(e.uuid))];return C(l.length<d&&6===s.length),l}),N(j+1),w(!1)},S=e=>(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(r.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"bg-grey6 w-full aspect-[16/9]"})}),(0,a.jsx)(r.m,{className:"rounded-full",children:(0,a.jsx)("div",{className:"h-[28px] w-[78px] bg-grey6"})}),(0,a.jsx)(r.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"bg-grey6 w-full h-[16px]"})})]},e);return(0,a.jsx)("section",{className:"bg-lb100",children:(0,a.jsxs)("div",{className:"container mx-auto py-16 lg:py-20",children:[(0,a.jsx)("h2",{className:"text-h2 text-ln700",children:h}),f&&(0,a.jsx)("p",{className:"text-ln700 mt-2 mb-8",children:f}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 pt-4",children:[b.map(e=>{if(!e.content)return null;let{name:t,uuid:l,full_slug:r,content:{thumbnail:i,category:o}}=e;return(0,a.jsxs)(u(),{className:"flex flex-col gap-4",href:(0,m.D5)(r),children:[(0,a.jsx)("div",{className:"rounded-lg w-full overflow-hidden",children:i&&(0,a.jsx)(s.A,{asset:i,aspectRatioX:16,aspectRatioY:9,width:976,sizes:"(max-width: 640px) 100v
1w, (max-width: 1024px) 50vw, 460px"})}),(0,a.jsx)("div",{className:"flex gap-2 h-[28px]",children:null==o?void 0:o.map(e=>(0,a.jsx)(n.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs uppercase",children:e.toString()},e))}),(0,a.jsx)("p",{className:"text-xl lg:text-2xl text-ln700 font-semibold",children:t}),(0,a.jsxs)("p",{className:"text-ln700 font-semibold w-fit border-b-1 border-ln700 cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:"Read more"}),(0,a.jsx)(c.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]})]},l)}),y&&Array.from([,,,].keys()).map(e=>S("skel-".concat(e)))]}),A&&(0,a.jsx)("div",{className:"mt-10 flex justify-center",children:(0,a.jsx)(i.T,{color:"primary",variant:"bordered",className:"rounded-md uppercase text-xs font-bold",isLoading:y,onPress:k,children:"LOAD MORE"})})]})})}},54117:(e,t,l)=>{"use strict";l.d(t,{s:()=>s});var a=l(34477);let s=(0,a.createServerReference)("781457ac17b7685dbbb231c61de50731739d96a5f7",a.callServer,void 0,a.findSourceMapURL,"getArticlesByAuthor")},54352:()=>{},54546:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var a=l(95155),s=l(82136),r=l(1892),n=l(62556),i=l(62082),o=l(65125),c=l(12115),d=l(62177),u=l(25473);function m(e){let{blok:t}=e,{hubspot_id:l,title:m,content:x,success_message:p,success_event:h,submit_text:f,is_single:g}=t,[b,v]=(0,c.useState)(!1),[j,N]=(0,c.useState)(!1),[y,w]=(0,c.useState)(),[A,C]=(0,c.useState)(null),k=(0,d.mN)(),{ready:S,error:_,getToken:E}=(0,u.q)(),P=async e=>{for(let t in C(null),p&&w(JSON.parse(JSON.stringify(p).replace(/\$(\w+)\$/g,(t,l)=>e[l]||""))),e)Array.isArray(e[t])?e[t]=e[t].join(";"):e[t]instanceof Set&&(e[t]=Array.from(e[t]).join(";"));let t={hutk:document.cookie.split(";").reduce((e,t)=>{let[l,a]=t.trim().split("=");return e[l]=a,e},{}).hubspotutk||"",pageUri:window.location.href,pageName:document.title||""};v(!0);try{let a=await E("hubspot_form_submit");await (0,r.O)(l||"",e,t,"hubspot_form_submit",a),h&&(0,o.sendGTMEvent)({event:h,value:{hsData:e,hsFormId:l}}),N(!0),k.reset()}catch(t){let e="string"==typeof(null==t?void 0:t.message)?t.message:"Submission failed.";S?_?C("reCAPTCHA could not start. Please try again later."):e.toLowerCase().includes("recaptcha")?C("reCAPTCHA verification failed. Please try again later."):C("Sorry, we could not submit the form. Please try again later."):C("reCAPTCHA is still loading. Please try again in a moment."),console.error("HubSpot submission error:",e)}finally{v(!1)}};return j?(0,a.jsx)("div",{className:"font-regular text-ln700 mb-8",children:p?(0,a.jsx)(s.A,{data:y}):"Thank you! your submission has been received."}):(0,a.jsxs)("div",{...(0,i.m)(t),children:[m&&(0,a.jsx)("p",{className:"text-ln700 text-2xl font-semibold mb-4",children:m}),(0,a.jsx)(d.Op,{...k,children:(0,a.jsxs)("form",{onSubmit:k.handleSubmit(P),className:"flex ".concat(g?"flex-row":"flex-col lg:flex-row py-5"," flex-wrap lg:mr-[-1.25rem]"),children:[(0,a.jsx)(s.A,{data:x}),A&&(0,a.jsx)("div",{className:"mb-4 rounded-md border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:A}),(0,a.jsx)(n.T,{color:"primary",className:"mt-3 rounded-md uppercase text-xs font-bold px-6 ".concat(g?"h-12":""),type:"submit",isLoading:b,children:f||"SUBMIT"})]})})]})}},55257:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(62082),r=l(62177),n=l(75113);function i(e){let{blok:t}=e,{name:l,label:i}=t,{control:o}=(0,r.xW)();return(0,a.jsx)("div",{className:"basis-full py-3 lg:pr-5",...(0,s.m)(t),children:(0,a.jsx)(r.xI,{control:o,name:l,defaultValue:!1,render:e=>{let{field:{value:t,onChange:l}}=e;return(0,a.jsx)(n.A,{classNames:{base:"block",label:"text-ln700 text-[14px]"},isSelected:t,onValueChange:e=>l(e),children:i})}})})}},56598:()=>{},57113:(e,t,l)=>{"use strict";l.d(t,{default:()=>p});var a=l(95155),s=l(62082),r=l(85788),n=l(87036),i=l(6874),o=l.n(i),c=l(93525),d=l(74701),u=l(66766),m=l(87146),x=l(93542);function p(e){let{blok:t}=e,{title:l,description:i,members:p,categories_order:h}=t,f=(e=>{let t=new Map;
1return null==e||e.forEach(e=>{var l;((null==e||null==(l=e.content)?void 0:l.category)||[]).forEach(l=>{var a,s;if(!l.content)return;let r=(null==l||null==(a=l.content)?void 0:a.title)||"";t.has(r)||t.set(r,[]),null==(s=t.get(r))||s.push({...e.content,full_slug:e.full_slug,id:e.id,uuid:e.uuid})})}),t})(p),g=(null==h?void 0:h.map(e=>e.content?e.content.title:void 0))||[];return(0,a.jsx)("section",{className:"bg-lg50",...(0,s.m)(t),children:(0,a.jsxs)("div",{className:"container pb-12 pt-20 lg:py-20 text-center",children:[l&&(0,a.jsx)("h2",{className:"text-3xl md:text-5xl font-bold pt-3 pb-5 md:pb-8",children:l}),i&&(0,a.jsx)("p",{className:"md:max-w-[665px] text-sm md:text-base mx-auto text-ln700 pb-10 md:pb-8",children:i}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(r.r,{"aria-label":"Team Members",variant:"bordered",color:"primary",classNames:{tabList:"\n shadow-none flex flex-col lg:flex-row\n ",tab:"\n data-[hover-unselected=true]:opacity-100 data-[hover-unselected=true]:text-lr500\n "},children:g.map(e=>{var t;return f.has(e)&&(0,a.jsx)(n.i,{title:e,children:(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-center pb-0 lg:py-4",children:null==(t=f.get(e))?void 0:t.map((e,t)=>(0,a.jsx)("div",{className:"basis-full py-4 lg:py-0 lg:basis-1/4 sm:basis-1/2 md:basis-1/3 grow-0 overflow-hidden pr-4 my-2",children:(0,a.jsxs)("div",{className:"w-full text-left rounded-lg overflow-hidden group",children:[e.image&&(0,a.jsx)(o(),{href:(0,d.D5)(e.full_slug),className:"rounded-t-lg overflow-hidden",children:(0,a.jsx)(m.A,{asset:e.image,aspectRatioX:325,aspectRatioY:325,sizes:"(max-width: 640px) 100vw, 340px",className:" group-hover:scale-[103%] transition duration-300 "})}),(0,a.jsxs)("div",{className:"p-6 bg-white rounded-b-lg",children:[e.linkedin&&""!==e.linkedin.url&&(0,a.jsx)(c.N,{className:"float-right",...(0,x.k)(e.linkedin),children:(0,a.jsx)(u.default,{src:"/icons/linkedin.svg",alt:"social",width:24,height:24})}),(0,a.jsxs)(o(),{href:(0,d.D5)(e.full_slug),children:[(0,a.jsx)("p",{className:"font-semibold text-lg",children:e.name}),(0,a.jsx)("p",{className:"font-medium text-sm",children:e.position})]}),(0,a.jsx)("hr",{className:"my-3"}),e.email&&(0,a.jsxs)(o(),{className:"flex text-ln700 text-sm font-opensans mb-2",href:"mailto:".concat(e.email),children:[(0,a.jsx)(u.default,{src:"/icons/mail.svg",width:20,height:16,alt:"mail",className:"mr-2"}),e.email]}),e.contact&&(0,a.jsxs)(o(),{className:"flex text-ln700 text-sm font-opensans",href:"tel:".concat(e.contact),children:[(0,a.jsx)(u.default,{src:"/icons/call.svg",width:20,height:16,alt:"phone",className:"mr-2"}),e.contact]})]})]})},t))})},e)})})})]})})}},57118:()=>{},57796:()=>{},58634:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(95155),s=l(62082),r=l(62177),n=l(76329),i=l(75113);function o(e){var t,l;let{blok:o}=e,{name:c,label:d,options:u,required:m,full_width:x}=o,{control:p,formState:{errors:h}}=(0,r.xW)(),f=u.filter(e=>e.preselected).map(e=>e.value);return(0,a.jsxs)("div",{className:"flex flex-col basis-full ".concat(x?"grow":"lg:basis-[calc(50%-0.5rem)]"," lg:pr-5 py-3"),...(0,s.m)(o),children:[(0,a.jsx)(r.xI,{control:p,name:c,defaultValue:f,rules:{validate:e=>!!(!m||Array.isArray(e)&&e.length>0)||"Please select at least one ".concat(d,".")},render:e=>{let{field:{value:t,onChange:l}}=e;return(0,a.jsx)(n._,{label:d,value:Array.isArray(t)?t:[],onValueChange:l,classNames:{label:"text-ln700 text-[14px]"},isRequired:m,children:u.map((e,t)=>(0,a.jsx)(i.A,{value:e.value,classNames:{base:"block",label:"text-ln700 text-[14px]"},children:e.name},t))})}}),h[c]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(l=h[c])||null==(t=l.message)?void 0:t.toString()})]})}},59115:()=>{},61102:()=>{},61884:(e,t,l)=>{"use strict";function a(e){return"$".concat(Math.ceil(e).toLocaleString("en-AU"))}function s(e){let t=Math.abs(e);if(t>=1e6){let t=e/1e6;return"$".concat(t%1==0?t.toFixed(0):t.toFixed(1),"M")}if(t>=1e3){let t=e/1e3;return"$".concat(t%1==0?t.toFixed(0):t.toFixed(1),"K")}return"$".concat(Math.round(e))}l.d(t,{Yo:()=>s,vv:()=>a})},62082:(e,t,l)=>{"use strict";l.d(t,{m:()=>s});var a=l(60908);let s=e=>e&&(null==e?void 0:e._editable)?(0,a.K1)(e):{}},63834:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(95155),s=l(93525),r=l(82136),n=l(74961),i=l(44842),o=l(38828),c=l(93542),d=l(62082),u=l(66766),m=l(6874),x=l.n(m),p=l(74701),h=l(80727),f=l(87146);let g=e=>{var t;let{blok:l}=e,{title:m,thumbnail:g,hero_image:b,content:v,author:j,main_author:N,hide_hero_image:y,author_override:w,postcontent:A,published_at:C,category:k}=l,S=y?null:(null==b?void 0:b.filename)?b:g,_=e=>{let t="";
1return Array.isArray(e)?e.forEach(e=>{t+=_(e)}):"object"==typeof e&&null!==e&&(e.hasOwnProperty("text")?t+=e.text+" ":Object.values(e).forEach(e=>{t+=_(e)})),t},E=(0,h.k)(_(v),35).text;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container mx-auto py-5 lg:pt-8",children:(0,a.jsx)(n.L,{classNames:{list:"border-ln300"},itemClasses:{item:"text-ln700 "},variant:"bordered",children:(0,a.jsx)(i.e,{isCurrent:!1,href:"/news-insights",children:"Back to articles"})})}),(0,a.jsxs)("main",{...(0,d.m)(l),className:"page-content",children:[(0,a.jsxs)("section",{className:"container mx-auto py-4 mb-8",children:[(0,a.jsx)("div",{className:"pb-8",children:(0,a.jsx)("h1",{className:"text-h1 accent-bar",children:m})}),(0,a.jsx)("div",{children:k&&(0,a.jsx)("div",{className:"flex gap-4",children:k.map((e,t)=>(0,a.jsx)(o.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs uppercase",children:e.toString().replaceAll("-"," ")},t))})}),(0,a.jsx)("div",{className:"flex gap-4 pb-8"}),S&&(0,a.jsx)("div",{className:"w-full overflow-hidden pb-8",children:(0,a.jsx)(f.A,{asset:S,aspectRatioX:1360,aspectRatioY:600,width:1432,className:"rounded-lg",sizes:"(max-width: 1400px) 100vw, 1432px",priority:!0})}),(0,a.jsx)("div",{className:"flex justify-center ",children:(0,a.jsxs)("div",{className:"lg:w-[65%]",children:[(0,a.jsxs)("div",{className:" flex justify-between md:items-center flex-col md:flex-row gap-4",children:[N&&(null==(t=N.content.image)?void 0:t.filename)&&(0,a.jsxs)("div",{className:"flex flex-row",children:[(0,a.jsx)("div",{children:w?(0,a.jsx)(u.default,{src:"/img/icon.png",alt:"icon",className:"rounded-full",width:48,height:48}):(0,a.jsx)(u.default,{src:N.content.image.filename,alt:"icon",className:"rounded-full",width:48,height:48})}),(0,a.jsxs)("div",{className:"flex flex-col ml-4",children:[(0,a.jsx)("p",{className:"font-medium text-ln700 text-nowrap",children:w||N.content.name}),(0,a.jsx)("p",{className:"text-lg600 text-xs text-nowrap",children:E})]})]}),C&&(0,a.jsx)("p",{className:"text-xs text-ln700",children:new Date(C).toLocaleDateString("en-US",{weekday:"short",day:"numeric",month:"long",year:"numeric"})})]}),(0,a.jsx)(r.A,{data:v})]})})]}),j&&j.length>0&&(0,a.jsx)("section",{className:"bg-[#EAEBEE]",children:(0,a.jsx)("div",{className:"container mx-auto py-20",children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("p",{className:"text-ln700 font-bold text-xs py-8",children:"THE AUTHORS"}),(0,a.jsx)("div",{className:"flex flex-col md:flex-row gap-5",children:j.map(e=>{if(!e.content)return;let{image:t,name:l,position:r,email:n,contact:i,linkedin:o}=null==e?void 0:e.content;return(0,a.jsxs)("div",{className:"w-full bg-white rounded-lg text-left overflow-hidden max-w-[300px]",children:[t&&(0,a.jsx)(x(),{href:(0,p.D5)(e.full_slug),children:(0,a.jsx)(f.A,{asset:t,aspectRatioX:325,aspectRatioY:325,sizes:"300px"})}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)(s.N,{className:"float-right",...(0,c.k)(o),children:(0,a.jsx)(u.default,{src:"/icons/linkedin.svg",alt:"social",width:24,height:24})}),(0,a.jsx)("p",{className:"font-semibold text-lg",children:l}),(0,a.jsx)("p",{className:"font-medium text-sm",children:r}),(0,a.jsx)("hr",{className:"my-3"}),(0,a.jsxs)(x(),{className:"flex text-ln700 text-sm font-opensans mb-2",href:"mailto:".concat(n),children:[(0,a.jsx)(u.default,{src:"/icons/mail.svg",width:20,height:16,alt:"mail",className:"mr-2"}),n]}),(0,a.jsxs)(x(),{className:"flex text-ln700 text-sm font-opensans",href:"tel:".concat(i),children:[(0,a.jsx)(u.default,{src:"/icons/call.svg",width:20,height:16,alt:"phone",className:"mr-2"}),i]})]})]},e.uuid)})})]})})}),(0,a.jsx)(r.A,{data:A})]})]})}},63861:()=>{},65361:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var a=l(95155),s=l(62082),r=l(93542),n=l(93525),i=l(74701),o=l(48140),c=l(12115),d=l(82136),u=l(35695),m=l(6042);function x(e){let{blok:t}=e,{label:l,link:x,megamenu:p,style:h}=t,f=(0,c.useRef)(null),g="bg-gray"===h?"px-3 py-2 bg-ln50 rounded mx-4 2xl:mx-6":"px-4 2xl:px-6";f=(0,m.W3)(()=>{N(!1)});let b=(0,o.useDisableVisualEditorLink)(),v=(0,r.k)(x),[j,N]=(0,c.useState)(!1),y=(0,u.usePathname)(),w=p&&p.length>0,A=(0,c.useRef)(null);if((0,c.useEffect)(()=>{j&&N(!1)},[y]),(0,c.useEffect)(()=>()=>{A.current&&clearTimeout(A.current)},[]),!v.href)return null;let C=w?(()=>{let e=[],t=null==p?void 0:p[0];if(t){var l,a,s;null==(l=t.icon_box)||l.forEach(t=>{var l;(null==(l=t.read_more)?void 0:l.cached_url)&&e.push(t.read_more.cached_url)}),null==(a=t.items)||a.forEach(t=>{var l;(null==(l=t.link)?void 0:l.cached_url)&&e.push(t.link.cached_url)}
1),null==(s=t.columns)||s.forEach(t=>{var l;null==(l=t.items)||l.forEach(t=>{var l;(null==(l=t.link)?void 0:l.cached_url)&&e.push(t.link.cached_url)})});let r=t.view_all_link,n="string"==typeof r?r:null==r?void 0:r.cached_url;n&&e.push(n)}return e.map(e=>(0,i.D5)(e))})().some(e=>e===y):(0,i.D5)(v.href||"")===y,k="bg-gray"===h?{}:{"data-nav-underline":"","data-active":C?"true":"false",...w&&j?{"data-nav-open":"true"}:{}};return(0,a.jsxs)("div",{...(0,s.m)(t),onMouseEnter:()=>{A.current&&(clearTimeout(A.current),A.current=null),N(!0)},onMouseLeave:()=>{A.current&&clearTimeout(A.current),A.current=setTimeout(()=>N(!1),150)},onClick:()=>N(!j),ref:f,children:[w?(0,a.jsx)("span",{...k,className:"text-grey8 hover:text-primary font-medium text-[13px] flex cursor-pointer ".concat(g," ").concat(C?"text-primary":""),children:l}):(0,a.jsx)(n.N,{...v,...k,className:"text-grey8 hover:text-primary font-medium ".concat(b," ").concat(g," text-[13px] flex ").concat(C?"text-primary":""),children:l}),w&&(0,a.jsx)("div",{"aria-hidden":!j,className:"transition-opacity duration-200 ".concat(j?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none"),children:(0,a.jsx)(d.A,{data:p})})]})}},66010:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(95155),s=l(12115),r=l(27677),n=l(25114),i=l(25679),o=l(26943),c=l(38439);function d(e){let{slides:t,className:l,slideClassName:d,showNavigation:u=!0,navPrevClassName:m,navNextClassName:x,effect:p="slide",autoHeight:h=!1,swiperOptions:f,ariaLabel:g="Slideshow"}=e;(0,s.useId)();let b=(0,s.useRef)(null),v=(0,s.useRef)(null),j=(0,s.useRef)(null);if(!t||0===t.length)return null;let N=u&&t.length>1;return(0,a.jsxs)("div",{className:(0,c.cn)("relative",l),role:"region","aria-label":g,onLoadCapture:()=>{var e;h&&(null==(e=j.current)||e.updateAutoHeight(0))},children:[(0,a.jsx)(r.RC,{modules:[n.Vx,n.Jq,n.ZD],spaceBetween:16,slidesPerView:1,autoHeight:h,centerInsufficientSlides:!0,effect:p,grabCursor:"cards"===p,...f,onSwiper:e=>{j.current=e,N&&b.current&&v.current&&setTimeout(()=>{var t,l,a;e.params.navigation&&"object"==typeof e.params.navigation&&(e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=v.current),null==(t=e.navigation)||t.destroy(),null==(l=e.navigation)||l.init(),null==(a=e.navigation)||a.update()},0)},navigation:!!N&&{prevEl:b.current,nextEl:v.current,disabledClass:"opacity-40"},children:t.map((e,t)=>(0,a.jsx)(r.qr,{className:d,children:e},t))}),N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:b,type:"button","aria-label":"Previous slide",onClick:()=>{var e;return null==(e=j.current)?void 0:e.slidePrev()},className:(0,c.cn)("absolute left-3 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full bg-white/80 text-ln700 shadow-md transition hover:bg-white disabled:opacity-40",m),children:(0,a.jsx)(i.e,{size:20,weight:"bold"})}),(0,a.jsx)("button",{ref:v,type:"button","aria-label":"Next slide",onClick:()=>{var e;return null==(e=j.current)?void 0:e.slideNext()},className:(0,c.cn)("absolute right-3 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full bg-white/80 text-ln700 shadow-md transition hover:bg-white disabled:opacity-40",x),children:(0,a.jsx)(o.J,{size:20,weight:"bold"})})]})]})}l(2252),l(59408),l(63767)},67652:()=>{},68102:(e,t,l)=>{"use strict";l.r(t),l.d(t,{Accordion:()=>a.nD3,AccordionItem:()=>a.AsP,Alert:()=>a.FcD,Autocomplete:()=>a.jT8,AutocompleteItem:()=>a.KXA,AutocompleteSection:()=>a.i2r,Avatar:()=>a.euF,AvatarGroup:()=>a.Z73,AvatarGroupProvider:()=>a.GJL,AvatarIcon:()=>a.hSU,Badge:()=>a.Exy,BreadcrumbItem:()=>a.J53,Breadcrumbs:()=>a.BIu,Button:()=>a.$nd,ButtonGroup:()=>a.e2v,ButtonGroupProvider:()=>a.lgn,COMMON_UNITS:()=>a.MJQ,Calendar:()=>a.VvS,CalendarProvider:()=>a.SvU,Card:()=>a.ZpM,CardBody:()=>a.bwi,CardFooter:()=>a.wLy,CardHeader:()=>a.aRn,CardProvider:()=>a.uzW,Checkbox:()=>a.Sc0,CheckboxGroup:()=>a.$QX,CheckboxGroupProvider:()=>a.afq,CheckboxIcon:()=>a.RiY,Chip:()=>a.vu3,CircularProgress:()=>a.PaH,Code:()=>a.CyN,DateInput:()=>a.J3s,DateInputField:()=>a.XRr,DateInputGroup:()=>a.YOK,DateInputSegment:()=>a.qWw,DatePicker:()=>a.lrV,DateRangePicker:()=>a.UrO,DateRangePickerField:()=>a.eYo,Divider:()=>a.cGx,Drawer:()=>a._s,DrawerBody:()=>a.ys8,DrawerContent:()=>a.zj7,DrawerFooter:()=>a.tbu,DrawerHeader:()=>a.BE9,Dropdown:()=>a.msM,DropdownItem:()=>a.tJh,DropdownMenu:()=>a.rId,DropdownSection:()=>a.fCf,DropdownTrigger:()=>a.uuj,Form:()=>
1a.lVW,FormContext:()=>a.cKB,FreeSoloPopover:()=>a.bR0,HiddenSelect:()=>a.HJn,Image:()=>a._V3,Input:()=>a.pde,InputOtp:()=>a.o$H,Kbd:()=>a.ueU,Link:()=>a.N_E,LinkIcon:()=>a.qYV,Listbox:()=>a.WFm,ListboxItem:()=>a.nxh,ListboxSection:()=>a.pMn,Menu:()=>a.W1t,MenuItem:()=>a.Drp,MenuSection:()=>a.H9B,Modal:()=>a.aFV,ModalBody:()=>a.cwr,ModalContent:()=>a.$mQ,ModalFooter:()=>a.jlY,ModalHeader:()=>a.rQ0,ModalProvider:()=>a.Znq,Navbar:()=>a.Fpw,NavbarBrand:()=>a.gHl,NavbarContent:()=>a.Ku9,NavbarItem:()=>a.Wcx,NavbarMenu:()=>a.Qt2,NavbarMenuItem:()=>a.Vl1,NavbarMenuToggle:()=>a.OSu,NavbarProvider:()=>a.G5E,NextUIProvider:()=>a.b_t,Pagination:()=>a.dKS,PaginationCursor:()=>a.VNA,PaginationItem:()=>a.cUT,PaginationItemType:()=>a.ESy,Popover:()=>a.AMh,PopoverContent:()=>a.hlN,PopoverProvider:()=>a.pbl,PopoverTrigger:()=>a.Wvm,Progress:()=>a.kej,ProviderContext:()=>a.nO8,REGEXP_ONLY_CHARS:()=>a.FGV,REGEXP_ONLY_DIGITS:()=>a.UOj,REGEXP_ONLY_DIGITS_AND_CHARS:()=>a.Age,Radio:()=>a.sxL,RadioGroup:()=>a.z6M,RadioGroupProvider:()=>a.Msy,RangeCalendar:()=>a._e$,ResizablePanel:()=>a.wVo,Ripple:()=>a.n0I,ScrollShadow:()=>a.sbM,Select:()=>a.l6P,SelectItem:()=>a.ebT,SelectSection:()=>a.M5m,Skeleton:()=>a.EAD,Slider:()=>a.Apm,Snippet:()=>a.YKp,Spacer:()=>a.hKd,Spinner:()=>a.y$y,Switch:()=>a.dOG,Tab:()=>a.ozo,Table:()=>a.XIK,TableBody:()=>a.BFY,TableCell:()=>a.nA6,TableColumn:()=>a.VeA,TableHeader:()=>a.A0N,TableRow:()=>a.Hjg,Tabs:()=>a.tUM,Textarea:()=>a.TMX,TimeInput:()=>a.czz,Tooltip:()=>a.m_M,User:()=>a.KJW,VisuallyHidden:()=>a.s6o,absoluteFullClasses:()=>a.pJU,accordion:()=>a.JC$,accordionItem:()=>a.etA,alert:()=>a.xE0,autocomplete:()=>a.nxd,avatar:()=>a.myK,avatarGroup:()=>a.Bpg,badge:()=>a.qSu,baseStyles:()=>a.irl,breadcrumbItem:()=>a.$_n,breadcrumbs:()=>a.jDR,button:()=>a.x6e,buttonGroup:()=>a.GCl,calendar:()=>a.BJj,card:()=>a.NrK,checkbox:()=>a.kvv,checkboxGroup:()=>a.Pmn,chip:()=>a.jw1,circularProgress:()=>a.tby,cn:()=>a.cn,code:()=>a.aYu,collapseAdjacentVariantBorders:()=>a.oT8,colorVariants:()=>a.kWR,colors:()=>a.Tj4,commonColors:()=>a.qCF,darkLayout:()=>a.F9P,dataFocusVisibleClasses:()=>a.zbC,dateInput:()=>a.vSj,datePicker:()=>a.dn8,dateRangePicker:()=>a.MT_,defaultLayout:()=>a.Mdc,divider:()=>a.yFk,drawer:()=>a.w$g,drip:()=>a.Agi,dropdown:()=>a.Wmt,dropdownItem:()=>a.J71,dropdownMenu:()=>a.pLT,dropdownSection:()=>a.nax,extendVariants:()=>a.dfO,focusVisibleClasses:()=>a.fFB,form:()=>a.ZdT,forwardRef:()=>a.Rfq,getKeyValue:()=>a.fmr,groupDataFocusVisibleClasses:()=>a.wAr,hiddenInputClasses:()=>a.n3S,image:()=>a.Slp,input:()=>a.hFB,inputOtp:()=>a.sjB,isNextUIEl:()=>a.buZ,kbd:()=>a.eSy,lightLayout:()=>a.HnX,link:()=>a.nfo,linkAnchorClasses:()=>a.AZl,listbox:()=>a.ytP,listboxItem:()=>a.Veq,listboxSection:()=>a.DrO,mapPropsVariants:()=>a.rEk,mapPropsVariantsWithCommon:()=>a.wc$,menu:()=>a.MK6,menuItem:()=>a.j$G,menuSection:()=>a.Dt_,mergeClasses:()=>a.zP_,modal:()=>a.yl5,navbar:()=>a.v_K,nextui:()=>a.cYI,pagination:()=>a.X$f,popover:()=>a.oO5,progress:()=>a.qB0,radio:()=>a.Ow_,radioGroup:()=>a.R$s,ringClasses:()=>a.$1r,scrollShadow:()=>a.QnM,select:()=>a.Ltv,semanticColors:()=>a.ZIj,skeleton:()=>a.qVA,slider:()=>a.aw5,snippet:()=>a.UAl,spacer:()=>a.jHT,spinner:()=>a.u1E,table:()=>a.tpe,tabs:()=>a.vRv,toIterator:()=>a.m99,toggle:()=>a.L$i,translateCenterClasses:()=>a.KU7,tv:()=>a.tv,twMergeConfig:()=>a.wgB,useAccordion:()=>a.O3P,useAccordionItem:()=>a.r9j,useAlert:()=>a.MWH,useAutocomplete:()=>a.mES,useAvatar:()=>a.rzs,useAvatarGroup:()=>a.Adw,useAvatarGroupContext:()=>a.Dul,useBadge:()=>a.LeJ,useBreadcrumbItem:()=>a.Iad,useBreadcrumbs:()=>a.ifo,useButton:()=>a.sLv,useButtonGroup:()=>a.dXm,useButtonGroupContext:()=>a.CtL,useCalendar:()=>a._hJ,useCalendarContext:()=>a.rLN,useCard:()=>a.mti,useCardContext:()=>a.fhk,useCheckbox:()=>a.vp$,useCheckboxGroup:()=>a.MnL,useCheckboxGroupContext:()=>a.L0K,useChip:()=>a.sCE,useCode:()=>a.poZ,useDateInput:()=>a.eS5,useDatePicker:()=>a.QYs,useDateRangePicker:()=>a.ZNR,useDisclosure:()=>a.j16,useDivider:()=>a.dwM,useDraggable:()=>a.PMY,useDrawer:()=>a.btg,useDropdown:()=>a.BKH,useImage:()=>a.lKg,useInput:()=>
1a.Gez,useInputOtp:()=>a.BiT,useKbd:()=>a.dL9,useLink:()=>a.iEg,useListbox:()=>a.Pr,useMenu:()=>a.baM,useModal:()=>a.hSE,useModalContext:()=>a.k34,useNavbar:()=>a.y7B,useNavbarContext:()=>a.hot,usePagination:()=>a.WQC,usePaginationItem:()=>a.jKS,usePopover:()=>a.fPY,usePopoverContext:()=>a.C__,useProgress:()=>a.p1l,useProviderContext:()=>a.ohh,useRadio:()=>a.zUQ,useRadioGroup:()=>a.mPH,useRadioGroupContext:()=>a.R0r,useRangeCalendar:()=>a.p3B,useRipple:()=>a.kiw,useScrollShadow:()=>a.N2p,useSelect:()=>a.WM7,useSkeleton:()=>a.BzE,useSlider:()=>a.PF6,useSlottedContext:()=>a.CCL,useSnippet:()=>a.DfQ,useSpacer:()=>a.q0U,useSpinner:()=>a.p66,useSwitch:()=>a.Kc_,useTable:()=>a.K2Z,useTabs:()=>a.ucq,useTimeInput:()=>a.TUs,useTooltip:()=>a.fSn,useUser:()=>a.Jd3,user:()=>a.kQF});var a=l(80582)},68709:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),s=l(12115),r=l(76604),n=l(67932);function i(e){let{item:t}=e,l=(0,s.useRef)(null),i=(0,r.W)(l);return(0,s.useEffect)(()=>{(0,n.i)(0,parseInt(t),{duration:1,onUpdate:e=>{l.current&&(l.current.textContent=Math.floor(e).toLocaleString("en-US"))}})},[i,t]),(0,a.jsx)("span",{ref:l,className:"mr-1",children:"0"})}},69732:(e,t,l)=>{"use strict";l.d(t,{R:()=>s});var a=l(34477);let s=(0,a.createServerReference)("7c1d8fbfd7b26c9a9612bfbdf7b55efac25034bd56",a.callServer,void 0,a.findSourceMapURL,"getNewsArticles")},71436:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>u});var a=l(95155),s=l(62082),r=l(30185),n=l(40494),i=l(33627),o=l(77038),c=l(66766),d=l(79201);let u=(0,l(12115).memo)(function(e){let{blok:t}=e,{is_visible:l,audiences:u,question:m,answer:x}=t,p=(0,i.A)(o.o,e=>e);return l&&(null==u?void 0:u.indexOf((null==p?void 0:p.audience)||""))!==-1?(0,a.jsx)("div",{...(0,s.m)(t),className:"border-b-2 border-cad200 first:border-t-2",children:(0,a.jsx)(r.D,{children:(0,a.jsx)(n.R,{"aria-label":m,title:(0,a.jsx)("p",{className:"text-ln700",children:m}),classNames:{content:""},disableIndicatorAnimation:!0,indicator:e=>{let{isOpen:t}=e;return(0,a.jsx)(c.default,{src:"/icons/add.svg",alt:"+",width:12,height:12,className:"transform transition-transform duration-500 ".concat(t&&"rotate-[135deg]")})},children:(0,a.jsx)(d.t,{data:x,className:"mb-6 pl-4"})})})}):null})},72022:()=>{},73425:()=>{},74701:(e,t,l)=>{"use strict";l.d(t,{D5:()=>a});function a(e){if("string"!=typeof e||!e)return e||"";if(/^(https?:)?\/\//.test(e)||/^(mailto:|tel:)/.test(e)||e.startsWith("#"))return e;let t="/".concat(e.replace(/^\/+/,""));return(t=(t=t.replace(new RegExp("^/".concat("au","(?=/|$)")),"")).replace(/\/home$/,"").replace(/(.)\/$/,"$1"))||"/"}},77038:(e,t,l)=>{"use strict";l.d(t,{o:()=>n});var a=l(13544),s=l(65453),r=l(46786);let n=(0,s.v)((0,r.Zr)((e,t)=>({lang:"au",audience:a.o.defaultAudience,locales:null,config:null,currentTab:"",stickyNavActive:!1,headerHidden:!1,setLang:t=>e({lang:t,audience:a.o.defaultAudience}),setAudience:t=>e({audience:a.o.audiencesEnabled?t:a.o.defaultAudience}),setConfig:t=>e({config:t}),setLocales:t=>e({locales:t}),setCurrentTab:t=>e({currentTab:t}),setStickyNavActive:t=>e({stickyNavActive:t}),setHeaderHidden:t=>e({headerHidden:t})}),{name:"app-state",partialize:e=>{if(a.o.audiencesEnabled)return e;let{audience:t,...l}=e;return l},merge:(e,t)=>{let l={...t,...e};return a.o.audiencesEnabled||(l.audience=a.o.defaultAudience),l}}))},77490:()=>{},78251:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(95155),s=l(93525),r=l(48140),n=l(62556),i=l(93542),o=l(62082),c=l(66766);function d(e){var t;let{blok:l}=e,{label:d,link:u,variant:m,is_large:x,icon:p}=l,h=(0,r.useDisableVisualEditorLink)(),f={...(0,i.k)(u),prefetch:!!(null==(t=l.parentProps)?void 0:t.prefetch)},g=!!(null==p?void 0:p.filename),b=g?(0,a.jsx)(c.default,{src:p.filename,alt:p.alt||"",width:8,height:8,className:"inline-block"}):null,v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return g?(0,a.jsxs)("span",{className:e?"inline-flex items-center gap-1.5":void 0,children:[(0,a.jsx)("span",{children:d}),b]}):d};if(!f.href)return null;let j=null;switch(m){case"primary":j=(0,a.jsx)(n.T,{as:s.N,...f,color:"primary",className:"".concat(x?"h-12 tracking-[1px] py-[17px] px-6":""," rounded-md uppercase text-xs font-bold ").concat(h),children:v()});break;case"light":j=(0,a.jsx)(n.T,{as:s.N,...f,className:"rounded-md bg-white uppercase text-xs text-ln950 font-bold ".concat(h," "),children:v()});break;case"light-blue":j=(0,a.jsx)(n.T,{as:s.N,...f,size:"sm",className:"rounded-md bg-cl
1n200 text-sm text-cln1000 font-medium ".concat(h," md:data-[hover=true]:opacity-100 md:data-[hover=true]:bg-white"),children:v()});break;case"outline-primary":j=(0,a.jsx)(n.T,{as:s.N,...f,color:"primary",variant:"bordered",className:"rounded-md uppercase text-xs font-bold ".concat(h),children:v()});break;case"outline-secondary":j=(0,a.jsx)(n.T,{as:s.N,...f,color:"primary",variant:"bordered",className:"rounded-md uppercase text-xs font-bold text-ln700 border-cad600 ".concat(h),children:v()});break;case"outline":j=(0,a.jsx)(n.T,{as:s.N,...f,color:"primary",variant:"bordered",className:"rounded-md uppercase text-xs font-bold text-white border-white ".concat(h),children:v()});break;case"flat":j=(0,a.jsxs)(s.N,{className:"text-primary font-semibold border-primary border-b-1",...f,children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:d}),(0,a.jsx)(c.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]});break;case"blue-outline-blue":j=(0,a.jsx)(n.T,{as:s.N,...f,color:"primary",variant:"bordered",className:"rounded-md text-lb950 border-lb950 uppercase text-xs font-bold ".concat(h),children:v()})}return(0,a.jsx)("div",{...(0,o.m)(l),children:j})}},79201:(e,t,l)=>{"use strict";l.d(t,{t:()=>a.t});var a=l(50624)},82136:(e,t,l)=>{"use strict";l.d(t,{A:()=>a.A});var a=l(50197)},82236:(e,t,l)=>{"use strict";l.d(t,{default:()=>n});var a=l(95155),s=l(62082),r=l(62177);function n(e){let{blok:t}=e,{name:l,label:n,required:i}=t,{control:o,formState:{errors:c}}=(0,r.xW)();return(0,a.jsxs)("div",{className:"flex flex-col w-full py-3",...(0,s.m)(t),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[n," ",i&&(0,a.jsx)("span",{className:"text-red-600",children:"*"}),"\xa0"]}),(0,a.jsx)(r.xI,{control:o,name:l,rules:{required:!!i&&"Please enter valid ".concat(n,".")},render:e=>{var t,s;let{field:{value:r,onChange:n}}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-col w-full py-3",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{value:r,className:"w-full text-[16px] bg-white rounded-md py-[9px] pl-8 pr-3 border-1 border-grey1",onChange:e=>n(e.target.value),type:"number"}),(0,a.jsx)("div",{className:"absolute left-3 -top-[3px] translate-y-1/2 pointer-events-none flex items-center",children:(0,a.jsx)("span",{className:"text-black text-[16px]",children:"$"})})]})}),c[l]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(s=c[l])||null==(t=s.message)?void 0:t.toString()})]})}})]})}},82950:()=>{},83911:()=>{},84028:()=>{},84914:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(95155),s=l(62082),r=l(62177),n=l(62556),i=l(31659),o=l(45046);let c=[{name:"Approximate amount",value:"approximate"},{name:"Enter an exact amount",value:"exact"},{name:"I am unsure",value:"unsure"}];function d(e){let{blok:t}=e,{name:l,label:d,min:u,max:m,step:x,initialAmount:p,required:h}=t,{control:f,formState:{errors:g}}=(0,r.xW)(),{amountType:b,setAmountType:v}=(0,o.R)();return(0,a.jsxs)("div",{className:"flex flex-col w-full py-3",...(0,s.m)(t),children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:[d," ",h&&(0,a.jsx)("span",{className:"text-red-600",children:"*"}),"\xa0"]}),(0,a.jsx)(r.xI,{control:f,name:l,rules:{required:!!h&&"Please enter valid ".concat(d,".")},render:e=>{var t,s;let{field:{value:r,onChange:o}}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map((e,t)=>(0,a.jsx)(n.T,{color:"default",radius:"full",className:"border-1 border-grey1 ".concat(b===e.value?"bg-ln400 text-ln50":"bg-white text-ln700"),onPress:()=>{switch(v(e.value),e.value){case"unsure":o(0);break;case"approximate":o(parseInt(p||u||"100000"));break;case"exact":o(void 0)}},children:e.name},t))}),"approximate"===b&&(0,a.jsx)("div",{className:"bg-lb100 w-full my-5 rounded-lg px-8 py-16",children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3",children:[(0,a.jsxs)("p",{className:"text-ln500 text-4xl font-bold",children:["$",null==r?void 0:r.toLocaleStr
1ing()]}),(0,a.jsx)(i.Q,{radius:"full",step:parseInt(x||"10000"),maxValue:parseInt(m||"1000000"),minValue:parseInt(u||"100000"),value:r,"aria-label":"Amount",className:"w-full",classNames:{filler:"bg-lb500",track:"border-s-lb500",thumb:"bg-ln500"},onChange:e=>o(e)})]})}),"exact"===b&&(0,a.jsxs)("div",{className:"flex flex-col w-full py-3",children:[(0,a.jsxs)("label",{className:"mb-2 text-ln700 text-[14px]",children:["Enter Amount",(0,a.jsx)("span",{className:"text-red-600 ml-1",children:"*"})]}),(0,a.jsx)("input",{className:"w-full bg-white rounded-md p-2 border-1 border-grey1",type:"number",value:r,onChange:e=>o(e.target.value)})]}),g[l]&&(0,a.jsx)("small",{className:"text-primary mt-2",children:null==(s=g[l])||null==(t=s.message)?void 0:t.toString()})]})}})]})}},85433:()=>{},85669:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var a=l(95155),s=l(38828),r=l(62082),n=l(48140),i=l(93542),o=l(93525);function c(e){let{blok:t}=e,{label:l,variant:c,link:d}=t,u=(0,n.useDisableVisualEditorLink)(),m=(0,i.k)(d);if(!m.href)return null;let x=null;switch(c){case"primary":x=(0,a.jsx)(s.R,{as:o.N,...m,radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs ".concat(u),children:l});break;case"outline":x=(0,a.jsx)(s.R,{as:o.N,...m,radius:"lg",className:"font-semibold text-xs ".concat(u),variant:"bordered",children:l})}return(0,a.jsx)("div",{...(0,r.m)(t),children:x})}},85793:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>g});var a=l(95155),s=l(87146),r=l(65673),n=l(65690),i=l(38828),o=l(62556),c=l(69732),d=l(66766),u=l(6874),m=l.n(u),x=l(74701),p=l(12115),h=l(93360),f=l(17304);function g(e){let{category:t,articles:l,featured:u,total:g,search:b}=e,v=(0,p.useRef)(null),[j,N]=(0,p.useState)(b),y=(0,h.Ym)(),[w,A]=(0,p.useState)(l),[C,k]=(0,p.useState)(!1),[S,_]=(0,p.useState)(!0),[E,P]=(0,p.useState)(1),[R,T]=(0,p.useState)(g),[I,L]=(0,p.useState)(R>l.length),M=(0,p.useCallback)(async()=>{k(!0),window.scrollTo({top:0,behavior:"smooth"});let e=await (0,c.R)(1,{...j&&{category:{in:j}}},void 0,void 0,y),t=e.data.stories;L(parseInt((null==e?void 0:e.total)||"0")>12),A(t),T(parseInt((null==e?void 0:e.total)||"0")),k(!1)},[j,y]);(0,p.useEffect)(()=>{let e=window.location.pathname,t=j&&""!==j?"".concat(e,"?category=").concat(encodeURIComponent(j)):e;window.history.pushState({catfilter:j},"",t),P(1),S||M(),_(!1),k(!1)},[j,S,M]),(0,p.useEffect)(()=>{let e=()=>{M()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[M]);let F=e=>(0,a.jsxs)("div",{className:"flex flex-col gap-4 lg:pt-10",children:[(0,a.jsx)(r.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"bg-grey6 w-full aspect-[16/9]"})}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(r.m,{className:"rounded-full",children:(0,a.jsx)("div",{className:"h-[28px] w-[78px] bg-grey6"})})}),(0,a.jsx)(r.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"bg-grey6 w-full h-[16px] "})}),(0,a.jsx)("div",{children:(0,a.jsx)(r.m,{className:"rounded-lg",children:(0,a.jsx)("div",{className:"bg-grey6 w-[100px] h-[16px]"})})})]},e),B=async()=>{k(!0);let e=u&&u.map(e=>e.id).join(","),t=(await (0,c.R)(E+1,{...j&&{category:{in:j}}},e,void 0,y)).data.stories;t.length<12&&L(!1),A(e=>[...e,...t]),P(E+1),k(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsx)("div",{className:"mb-8 pb-8 pt-5",children:(0,a.jsx)(f.A,{level:1,className:"accent-bar",children:"News & Insights"})})}),(0,a.jsx)("div",{className:"bg-ln500 z-10 sticky top-0",ref:v,children:(0,a.jsx)("div",{className:"container mx-auto py-10 lg:py-4",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center",children:[(0,a.jsxs)("div",{className:"flex gap-2 gap-y-4 flex-wrap",children:[(0,a.jsx)("p",{className:"".concat(j?"text-ln200 border-1 border-ln200":"bg-white text-ln500"," rounded-full px-4 py-2 cursor-pointer"),onClick:()=>N(null),children:"All articles"}),t.map((e,t)=>(0,a.jsx)("p",{className:"".concat(e===j?"bg-white text-ln500":"text-ln200 border-1 border-ln200"," capitalize rounded-full px-4 py-2 cursor-pointer"),onClick:()=>N(e),children:e},e)),C&&(0,a.jsx)(n.o,{color:"primary"})]}),(0,a.jsx)("div",{className:"hidden mt-4 sm:mt-0 sm:block",children:(0,a.jsx)("p",{className:"font-semibold text-ln300 text-sm",children:C?"":"".concat(R," Article").concat(R>1?"s":"")})})]})})}),(0,a.jsxs)("section",{children:[u&&(null==u?void 0:u.length)>0&&!j&&(0,a.jsx)("div",{className:"bg-lb100",children:(0,a.jsxs)("div",{className:"container mx-auto py-20 lg:py-16",children:[(0,a.jsx)("p",{className:"text-ln700 font-bold text-2xl my-0",children:"Featured"}),(0,a.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-6 pt-4",children:u.map((e,t)=>{if(!e.content)return;let{uuid:l,full_slug:r,name:n,content:{thumbnail:o,category:c}}=e;return(0,a.jsxs)(m(),{className:"flex flex-col gap-4",href:(0,x.D
15)(r),children:[(0,a.jsx)("div",{className:"rounded-lg w-full overflow-hidden",children:o&&(0,a.jsx)(s.A,{asset:o,aspectRatioX:16,aspectRatioY:9,width:976,sizes:"(max-width: 640px) 100vw, (max-width: 640px) 50vw, 460px"})}),(0,a.jsx)("div",{className:"flex gap-2",children:c&&c.map(e=>(0,a.jsx)(i.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs",children:e.toString().toUpperCase()},e))}),(0,a.jsx)("p",{className:"text-2xl text-ln700 font-semibold",children:n}),(0,a.jsxs)("p",{className:"text-ln700 font-semibold w-fit border-b-1 border-ln700 cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:"Read more"}),(0,a.jsx)(d.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]})]},l)})})]})}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 py-6",children:[w.map((e,t)=>{if(!e.content)return;let{name:l,uuid:r,full_slug:n,content:{thumbnail:o,category:c}}=e;return(0,a.jsxs)(m(),{className:"flex flex-col gap-4 lg:pt-10 min-w-[calc(33.333%-1rem)]",href:(0,x.D5)(n),children:[(0,a.jsx)("div",{className:"rounded-lg w-full overflow-hidden",children:o&&(0,a.jsx)(s.A,{asset:o,aspectRatioX:16,aspectRatioY:9,width:976,sizes:"(max-width: 640px) 100vw, (max-width: 640px) 50vw, 460px"})}),(0,a.jsx)("div",{className:"flex gap-2 h-[28px]",children:c&&(null==c?void 0:c.map(e=>(0,a.jsx)(i.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs uppercase",children:e.toString()},e)))}),(0,a.jsx)("p",{className:"text-2xl text-ln700 font-semibold",children:l}),(0,a.jsxs)("p",{className:"text-ln700 font-semibold w-fit border-b-1 border-ln700 cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:"Read more"}),(0,a.jsx)(d.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]})]},r)}),C&&Array.from(Array(9).keys()).map(e=>F("skel-".concat(e)))]})})}),I&&(0,a.jsx)("div",{className:"my-8 flex justify-center",children:(0,a.jsx)(o.T,{color:"primary",variant:"bordered",className:"rounded-md uppercase text-xs font-bold ",isLoading:C,onPress:B,children:"LOAD MORE"})})]})]})}},87146:(e,t,l)=>{"use strict";l.d(t,{A:()=>a.default});var a=l(99547)},87217:()=>{},89599:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>h});var a=l(95155),s=l(62082),r=l(82136),n=l(27677),i=l(25114);l(2252);var o=l(12115),c=l(93525),d=l(25640),u=l(66766),m=l(38828),x=l(12466),p=l(87146);function h(e){let{blok:t}=e,{title:l,button:h,cards:f}=t,[g,b]=(0,o.useState)(!1),[v,j]=(0,o.useState)(!1),N=(0,o.useRef)(void 0);return(0,a.jsx)("section",{className:"bg-cln100 px-4 lg:px-0",...(0,s.m)(t),children:(0,a.jsxs)("div",{className:"lg:ml-[5%] 2xl:ml-[10%] py-20 flex flex-col lg:flex-row lg:justify-between",children:[(0,a.jsx)("div",{className:"w-full lg:w-1/3 my-5 lg:pr-10",children:(0,a.jsx)(d.A,{className:"text-center md:text-left",title:l,titleClassName:"lg:max-w-[16ch]",cta:(0,a.jsx)(r.A,{data:h})})}),f&&(0,a.jsxs)("div",{className:"w-full lg:w-2/3 relative",children:[!g&&(null==f?void 0:f.length)>0&&(0,a.jsx)(u.default,{src:"/icons/slider-arrow.svg",width:60,height:60,alt:"arrow",className:"top-[27%] absolute z-[2] left-1 opacity-70 cursor-pointer transition-all hover:bg-white/[.6] hover:opacity-100 rounded",onClick:()=>{var e;return null==(e=N.current)?void 0:e.slidePrev()}}),!v&&(null==f?void 0:f.length)>0&&(0,a.jsx)(u.default,{src:"/icons/slider-arrow.svg",width:60,height:60,alt:"arrow",className:"top-[27%] absolute z-[2] right-1 opacity-70 cursor-pointer transition-all rotate-180 hover:bg-white/[.6] hover:opacity-100 rounded",onClick:()=>{var e;return null==(e=N.current)?void 0:e.slideNext()}}),(0,a.jsx)(n.RC,{modules:[i.Vx],spaceBetween:0,slidesPerView:1.1,navigation:!0,onSlideChange:e=>{b(0===e.progress),j(1===e.progress)},onSwiper:e=>{N.current=e,b(!0)},breakpoints:{768:{slidesPerView:1.8},1440:{slidesPerView:2.3}},children:null==f?void 0:f.map(e=>{var t,l,s,r,i;return(0,a.jsx)(n.qr,{className:"pr-5",children:(0,a.jsxs)(c.N,{className:"flex flex-col gap-4 pt-10",href:e.full_slug,children:[(0,a.jsx)("div",{className:"rounded-lg overflow-hidden w-full hover:shadow-lg",children:(0,a.jsx)(p.A,{asset:null==e||null==(t=e.content)?void 0:t.thumbnail,aspectRatioX:440,aspectRatioY:280})}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(m.R,{radius:"lg",className:"bg-cln300 font-semibold text-cln1000 text-xs",children:"CUSTOMER STORY"})}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("p",{className:"text-2xl text-ln700 font-semibold line-clamp-1",children:e.name}),(0,a.jsx)("p",{className:"text-sm text-ln700 font-medium mr-4",children:e.content.location})]}),(0,a.jsxs)("div",{className:"flex w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/2 mr-4",children:[(0,a.jsx)("p",{className:"font-semibold text-xs text-ln300",children:"LOTS"}),(0,a.jsx)("p",{className:"font-medium text-ln700 text-[14px] md:text-base xl:text-lg",children:e.content.lot})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/2 mr-4",children:[(0,a.jsx)("p",{className:"font-semibold text-xs text-ln300",children:"VALUE"}),(0,a.jsxs)("p",{className:"font-medium text-ln700 text-[14px] md:text-base xl:text-lg",children:["$",(0,x.Z6)(e.content.value)]})]})]}),(0,a.jsxs)("div",{className:"flex w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/2 mr-4",children:[(0,a.jsx)("p",{className:"font-semibold text-xs text-ln300",children:"LOAN TYPE"}),(0,a.jsx)("p",{className:"font-medium text-ln700 text-[14px] md:text-base xl:text-lg capitalize",children:null==e||null==(s=e.content)||null==(l=s.loan_type)?void 0:l.toString().replaceAll("-"," ")})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/2 mr-4",children:[(0,a.jsx)("p",{className:"font-semibold text-xs text-ln300",children:"LOAN PURPOSE"}),(0,a.jsx)("p",{className:"font-medium text-ln700 text-[14px] md:text-base xl:text-lg capitalize",children:null==e||null==(i=e.content)||null==(r=i.loan_purpose)?void 0:r.toString().replaceAll("-"," ")})]})]}),(0,a.jsxs)("div",{className:"text-ln700 font-semibold w-fit border-b-1 border-ln700 cursor-pointer",children:[(0,a.jsx)("span",{className:"mr-2 inline-block",children:"Read more"}),(0,a.jsx)(u.default,{className:"inline-block",src:"/icons/arrow_forward.svg",alt:"arrow-right",width:10,height:10})]})]},e.full_slug)},e.full_slug)})})]})]})})}},91387:(e,t,l)=>{"use strict";l.d(t,{default:()=>r});var a=l(95155),s=l(62082);function r(e){let{blok:t}=e,{items:l,background:r,variant:n}=t;return"detail"===n?(0,a.jsx)("section",{className:"rounded-lg mb-4 flex flex-col md:grid md:grid-cols-2 lg:grid-cols-4 md:gap-4",...(0,s.m)(t),children:l&&l.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col ".concat(r?"bg-lb100":"bg-white"," items-center text-center leading-tight justify-between rounded-xl gap-[24px] py-[31px] px-[10px] my-2 md:my-0"),children:[(0,a.jsx)("p",{className:"text-[12px] font-semibold text-primary leading-tight",children:e.title}),(0,a.jsx)("p",{className:"text-ln700 font-bold text-[21px] xl:text-[25px] leading-tight break-words",children:e.stat}),(0,a.jsx)("p",{className:"text-[12px] font-opensans text-ln500 leading-tight",children:e.description})]},t))}):(0,a.jsx)("section",{className:"".concat(r?"bg-lb100 p-4":""," rounded-lg grid grid-cols-3 lg:grid-cols-4 gap-4 my-4"),...(0,s.m)(t),children:l&&l.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-sm text-tr600 font-semibold leading-tight",children:e.title}),(0,a.jsx)("p",{className:"text-body-lg text-ln700",children:e.description})]},t))})}},92309:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>x});var a=l(95155),s=l(12115),r=l(11155),n=l.n(r),i=l(66010),o=l(93525),c=l(97494),d=l(93542),u=l(96914),m=l(17304);function x(e){var t;let{blok:l,firstName:r}=e,{meet_heading:x,meet_subtitle:p,intro_video:h,intro_video_url:f,loop_start:g,loop_duration:b,faqs:v,proof_points:j,cta_label:N,cta_link:y}=l,w=(null==h?void 0:h.filename)||f||"",A=Number.isFinite(Number(g))?Number(g):0,C=Number(b)>0?Number(b):5,k=(0,s.useRef)(null),S=(0,s.useRef)(null),[_,E]=(0,s.use
1State)(!1),[P,R]=(0,s.useState)(null),[T,I]=(0,s.useState)(!1),[L,M]=(0,s.useState)(!0),F=(0,s.useRef)(!0),[B,D]=(0,s.useState)(!0);(0,c.E)(()=>E(!0),[]),(0,s.useEffect)(()=>{let e=S.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting||D(F.current),M(t.isIntersecting)},{threshold:.25});return t.observe(e),()=>t.disconnect()},[_]);let O=null!=v?v:[],V=P?(null==(t=P.video)?void 0:t.filename)||P.video_url||"":w,U=!P&&!T,H=(0,s.useMemo)(()=>y?(0,d.k)(y):null,[y]),Y=N||"Book a meeting with ".concat(r),z=!!(w||O.length>0),q=!!(j&&j.length>0);if(!z&&!q&&!H)return null;let G=e=>{I(!1),R(e),D(!0)};return z?(0,a.jsxs)("section",{className:"container mx-auto py-16 lg:py-20 text-center",children:[(0,a.jsx)("h2",{className:"text-h2 text-ln700",children:x||"Meet ".concat(r)}),p&&(0,a.jsx)("p",{className:"text-ln700 max-w-[60ch] mx-auto mt-3",children:p}),z&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:S,className:"relative mt-10 max-w-[760px] mx-auto",children:(0,a.jsxs)("div",{className:"relative pt-[56.25%] rounded-lg overflow-hidden bg-grey2",children:[_&&V&&(0,a.jsx)(n(),{ref:k,className:"absolute top-0 left-0 w-full h-full",url:V,width:"100%",height:"100%",playing:(U||T||!!P)&&L&&B,muted:U,controls:!U,playsinline:!0,progressInterval:250,onStart:()=>{var e;U&&A>0&&(null==(e=k.current)||e.seekTo(A,"seconds"))},onProgress:e=>{let{playedSeconds:t}=e;if(U&&t>=A+C){var l;null==(l=k.current)||l.seekTo(A,"seconds")}},onPlay:()=>{F.current=!0,D(!0)},onPause:()=>{L&&(F.current=!1)}}),U&&(0,a.jsx)("button",{type:"button","aria-label":"Play video",onClick:()=>{var e;U&&!T&&(I(!0),D(!0),null==(e=k.current)||e.seekTo(0,"seconds"))},className:"absolute inset-0 z-10 flex items-end justify-end p-3",children:(0,a.jsx)("span",{className:"w-12 h-12 rounded-md bg-white/80 hover:bg-white flex items-center justify-center transition border border-ln300",children:(0,a.jsx)(u.u,{color:"#1f2e43",size:24,weight:"fill"})})}),P&&(0,a.jsx)("button",{type:"button","aria-label":"Close FAQ video",onClick:()=>{var e;R(null),I(!1),D(!0),null==(e=k.current)||e.seekTo(A,"seconds")},className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-white/80 hover:bg-white flex items-center justify-center text-ln700 transition",children:"â"})]})}),O.length>0&&(0,a.jsxs)("div",{className:"mt-6 p-4 bg-gray-50 rounded-md md:mx-16",children:[(0,a.jsxs)(m.A,{level:3,className:" mb-4",children:["FAQs answered by ",r]}),(0,a.jsx)(i.default,{ariaLabel:"FAQs answered by ".concat(r),slideClassName:"max-w-80",navPrevClassName:"hidden md:flex md:-left-16",navNextClassName:"hidden md:flex md:-right-16",swiperOptions:{spaceBetween:12,slidesPerView:"auto"},slides:O.map((e,t)=>{var l;let s=P===e;return(0,a.jsxs)("button",{type:"button",onClick:()=>G(e),className:"w-full h-full text-left rounded-lg p-4 flex gap-3 transition ".concat(s?"bg-ln500 text-white":"bg-lb100 text-ln700"),children:[(0,a.jsx)(u.u,{color:"".concat(s?"#fff":"#c3000b"),size:24,weight:"".concat(s?"fill":"regular")}),(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"block font-semibold leading-snug",children:e.question}),e.answered_in&&(0,a.jsx)("span",{className:"block text-xs mt-2 text-primary ".concat(s?" text-white":" text-ln700"),children:e.answered_in})]})]},null!=(l=e._uid)?l:t)})})]})]}),q&&(0,a.jsx)("div",{className:"max-w-[640px] mx-auto mt-14",children:j.map((e,t)=>{var l;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-ln300 py-4 text-md",children:e.text}),(0,a.jsx)("hr",{className:"border-ln50"})]},null!=(l=e._uid)?l:t)})}),H&&(0,a.jsx)("div",{className:"mt-10",children:(0,a.jsx)(o.N,{...H,className:"inline-block bg-primary text-white uppercase text-xs font-bold rounded-md px-6 py-3",children:Y})})]}):null}},93525:(e,t,l)=>{"use strict";l.d(t,{N:()=>c});var a=l(95155),s=l(6874),r=l.n(s),n=l(12115),i=l(74701);let o=["http","mailto","tel"],c=(0,n.forwardRef)((e,t)=>{let{children:l,href:s,prefetch:n=!1,...c}
1=e,d="string"==typeof s&&o.some(e=>s.startsWith(e)),u="string"==typeof s&&(s.startsWith("#")||/^\/?#/.test(s));if(d||u){let e=u?s.replace(/^\/#/,"#"):s;return(0,a.jsx)("a",{ref:t,href:e,...c,children:l})}let m="string"==typeof s?(0,i.D5)(s):s;return(0,a.jsx)(r(),{ref:t,href:m,prefetch:n,...c,children:l})});c.displayName="Link"},93542:(e,t,l)=>{"use strict";l.d(t,{k:()=>a});let a=e=>{if(!e)return{href:""};if("string"==typeof e)return{href:e};let{linktype:t,cached_url:l,url:a,email:s,anchor:r,target:n,story:i}=e;return{href:({story:(null==i?void 0:i.url)||l||"",url:null!=a?a:"",email:"mailto:".concat(s),asset:""})[t]+(r?"#".concat(r):""),...n?({_blank:{target:"_blank",rel:"noreferrer"}})[n]:null}}},95175:()=>{},95642:()=>{},95989:()=>{},96475:()=>{},97169:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(95155),s=l(62082),r=l(82136),n=l(33627),i=l(77038);let o=e=>{let{blok:t}=e,{segment:l,content:o}=t,c=(0,n.A)(i.o,e=>e);return(null==c?void 0:c.audience)!==l?null:(0,a.jsx)("div",{...(0,s.m)(t),children:(null==c?void 0:c.audience)===l&&(0,a.jsx)(r.A,{data:o})})}},98010:()=>{},98475:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(95155),s=l(62082),r=l(85788),n=l(87036),i=l(82136);function o(e){let{blok:t}=e,{items:l,direction:o}=t,c="vertical"===o;return(0,a.jsx)("div",{...(0,s.m)(t),className:"",children:(0,a.jsx)(r.r,{"aria-label":"tabs",variant:"underlined",color:"primary",isVertical:c,classNames:c?{base:"basis-1/3 mb-10 lg:mb-16 lg:mb-0",wrapper:"flex flex-col lg:flex-row py-20",tabContent:"basis-2/3 group-data-[selected=true]:text-ln500 group-data-[selected=true]:bg-lb200 px-5 py-3 text-left rounded-md",panel:"w-full",tab:"flex justify-start my-1",cursor:"hidden",tabList:"w-full "}:{tabList:"\n flex flex-col lg:flex-row\n lg:gap-20 relative p-0\n lg:border-b lg:border-l-0 border-divider border-l-2 \n items-start\n pl-5 ml-2 lg:pl-0 lg:ml-0\n ",cursor:"\n h-[4px] w-[2rem] lg:w-full\n left-0\n mobile-tab\n ",tab:"\n max-w-fit px-0\n lg:h-12 h-auto\n ",tabContent:"group-data-[selected=true]:font-bold text-ln700",base:"w-full lg:w-fit"},children:null==l?void 0:l.map((e,t)=>(0,a.jsx)(n.i,{title:e.title,children:(0,a.jsx)(i.A,{data:e.content})},t))})})}},99547:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i});var a=l(95155),s=l(38439),r=l(66766),n=l(12115);let i=e=>{let t,{asset:l,aspectRatioX:i=16,aspectRatioY:o=9,priority:c,alt:d,sizes:u,fullWidth:m=!0,width:x,height:p,className:h,maxWidth:f=1920,blurDataURL:g,fadeIn:b=!0,lockAspectRatio:v=!0,quality:j=60,webp:N=!0}=e,{filename:y,focus:w,alt:A}=l||{},[C,k]=(0,n.useState)(!1);if(!y)return null;let S=y.endsWith(".svg"),_=y.endsWith(".png"),E=null!=g?g:l.blurDataURL,[,,,,,P]=y.split("/"),[R,T]=(null==P?void 0:P.split("x").map(Number))||[1200,600],I=v&&i&&o?i/o:R/T,L=Math.min(x||R,f),M=Math.round(L/I),F=w?"focal(".concat(w,")"):"",B=[F,"quality(".concat(Math.max(40,Math.min(j,90)),")"),N&&!S?"format(webp)":""].filter(Boolean),D=0!==B.length?"filters:"+B.join(":"):"",O=F?"":"smart/",V=b&&!S&&!c&&v;return(0,a.jsx)("div",{className:(0,s.cn)(m&&"w-full","relative overflow-hidden",h),style:{...v?{aspectRatio:"".concat(i," / ").concat(o)}:{},...V?{backgroundImage:_?"none":"url(".concat(E||"data:image/svg+xml;base64,".concat((t=((e,t)=>'\n <svg width="'.concat(e,'" height="').concat(t,'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n <linearGradient id="g">\n <stop stop-color="#B5B3B3" offset="10%" />\n <stop stop-color="#C6C4C4" offset="50%" />\n <stop stop-color="#B5B3B3" offset="80%" />\n </linearGradient>\n </defs>\n <rect width="').concat(e,'" height="').concat(t,'" fill="#B5B3B3" />\n <rect id="r" width="').concat(e,'" height="').concat(t,'" fill="url(#g)" />\n <animate xlink:href="#r" attributeName="x" from="-').concat(e,'" to="').concat(e,'" dur="1s" repeatCount="indefinite" />\n </svg>'))(L,M),window.btoa(t))),")"),backgroundSize:"cover",backgroundPosition:"center"}:{}},children:(0,a.jsx)(r.default,{loader:e=>{let{src:t,width:l}=e,a=R&&!Number.isNaN(R)?Math.min(l,R):l,s=Math.round(a/I);return S?t:"".concat(t,"/m/").concat(a,"x").concat(s,"/").concat(O).concat(D)},src:y,width:L,height:M,sizes:u||"100vw",priority:c,fetchPriority:c?"high":"auto",unoptimized:S,alt:d||A||"",className:(0,s.cn)("block",m&&"w-full",V&&"absolute inset-0 h-full w-full object-cover",V&&"transition-opacity duration-500",V&&(C?"opacity-100":"opacity-0")),placeholder:S||!E||V?void 0:"blur",blurDataURL:V?void 0:E,onLoad:()=>k(!0)})})}}}]);
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.