1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2078,7133],{151:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tips-and-advice/[category]",function(){return t(3212)}])},3212:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>f,default:()=>b});var s=t(7876),r=t(4232),a=t(116),x=t(7698),c=t(2764),n=t(5545),i=t(9241),o=t(7004),u=t(4e3),m=t(4753),d=t(7133);let p=e=>{let{block:l}=e,{allCategories:t,allBlogs:a,blogPageSize:x}=l||{},p=(0,u.usePathname)(),g=(0,r.useRef)(null),h=(0,r.useMemo)(()=>"number"==typeof x&&x>0?x:9,[x]),[f,b]=(0,r.useState)(1);(0,r.useEffect)(()=>{b(1)},[h,a?.length]);let j=Array.isArray(a)?a.length:0,w=j>0?Math.ceil(j/h):1,N=(0,r.useMemo)(()=>{if(!Array.isArray(a)||0===j)return[];let e=(f-1)*h,l=e+h;return a.slice(e,l)},[a,f,h,j]),v=e=>{e<1||e>w||(b(e),g.current?.scrollIntoView({behavior:"smooth",block:"start"}))},y=(()=>{let e=[];if(w<=4)for(let l=1;l<=w;l++)e.push(l);else{e.push(1),f>3&&e.push("...");let l=[];1===f||2===f?l.push(2,3):f===w||f===w-1?l.push(w-2,w-1):l.push(f),l.forEach(l=>
1e.push(l)),f<w-2&&e.push("..."),e.push(w)}return e})(),A=l?.hero?.filter(e=>"sideBySideSection"===e._type)?.[0]||[],_=t?.filter(e=>p===n.J?.category(e?.slug?.current))?.[0]?.sectionTitle,k=t?.filter(e=>p===n.J?.category(e?.slug?.current))?.[0]?.heroSectionTitle;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("section",{ref:g,children:A&&(0,s.jsx)(d.default,{...A,heroSectionTitle:k})}),(0,s.jsxs)("section",{className:"py-12 lg:py-16 xl:py-20 3xl:pb-32.5 3xl:pt-[83px] max-w-[600px] lg:max-w-[1152px] 1xl:max-w-[1349px] mx-auto 1xl:container w-[calc(100%-32px)] esm:w-[calc(100%-64px)] lg:w-[calc(100%-50px)] 3xl:w-[calc(100%-64px)]",children:[_&&(0,s.jsx)("h2",{className:"text-[2rem] 3xl:text-[2.5rem] font-semibold mb-12 text-orange leading-none",children:_}),t?.length>0&&(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex gap-3 em:gap-7 md:gap-[4rem] 3xl:gap-25 pb-2",children:[(0,s.jsx)(c.A,{to:n.J?.blog_index(),"aria-label":"View all blog posts",className:(0,i.A)("text-[14px] em:text-[16px] sm:text-[1.2rem] lg:text-[23px] leading-none font-semibold uppercase text-blue-light",p===n.J?.blog_index()&&"text-orange underline"),children:"All"}),t?.map((e,l)=>{let t=e?.slug?.current?n.J?.category(e?.slug?.current):"#";return(0,s.jsx)(c.A,{to:t,"aria-label":`View ${e?.title} blog posts`,className:(0,i.A)("text-[14px] em:text-[16px] sm:text-[1.2rem] lg:text-[23px] leading-none font-semibold uppercase hover:text-[#F26536] hover:underline active:text-[#F26536] text-blue-light ",p===t&&"text-orange underline"),children:e?.title},l)})]})})}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 3xl:gap-x-6 3xl:gap-y-12 3xl:mt-15.5 mt-12",children:N?.map((e,l)=>(0,s.jsx)(o.A,{block:e},l))}),!(Array.isArray(a)&&a?.length>0)&&(0,s.jsx)("div",{className:"text-center w-full m-auto",children:(0,s.jsx)("h3",{className:"text-center text-xl em:text-2xl mt-8",children:"Data Not Found"})}),w>1&&(0,s.jsxs)("div",{className:"flex justify-center items-center gap-2 mt-12 lg:mt-16 xl:mt-20 3xl:mt-32",children:[(0,s.jsx)("button",{type:"button",onClick:()=>v(f-1),disabled:1===f,className:(0,i.A)(1===f?"cursor-not-allowed opacity-50":"cursor-pointer","ps-2 sm:pr-5"),children:(0,s.jsx)(m.A,{src:"/images/prevIcon.svg",alt:"Previous Arrow Icon",height:100,width:100,className:"w-5 sm:w-8 sm:h-6"})}),y.map((e,l)=>"..."===e?(0,s.jsx)("span",{className:"text-xl lg:text-2xl 3xl:text-[28px] px-2 sm:px-3 text-blue-light",children:"..."},`dots-${l}`):(0,s.jsx)("button",{type:"button",onClick:()=>v(Number(e)),className:(0,i.A)("text-xl lg:text-2xl 3xl:text-[28px] font-normal px-3 sm:px-5 text-blue-light cursor-pointer",e===f?"font-semibold":""),children:e},e)),(0,s.jsx)("button",{type:"button",onClick:()=>v(f+1),disabled:f===w,className:(0,i.A)(f===w?"cursor-not-allowed opacity-50":"cursor-pointer","ps-2 sm:ps-5"),children:(0,s.jsx)(m.A,{src:"/images/nextIcon.svg",alt:"Next Arrow Icon",height:100,width:100,className:"w-5 sm:w-8 sm:h-6"})})]})]})]})};function g(e){let{page:l,currentPath:t}=e;return(0,s.jsx)(x.A,{seo:l?.seo,currentPath:t,children:(0,s.jsx)(p,{block:l})})}var h=t(1583),f=!0;let b=e=>{let{initial:l,currentPath:t}=e,{data:r}=(0,h.IT)(a.JC.query.groqQuery,{slug:l?.data?.slug},{initial:l});return(0,s.jsx)(g,{page:r,currentPath:t})}},7004:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});var s=t(7876),r=t(4753),a=t(2764),x=t(2676),c=t(5545);t(4232);let n=e=>{let{block:l}=e,{image:t,author:n,title:i,slug:o,publishDate:u,category:m,intro:d}=l||{},p=u?(0,x.Yq)(u):null;return(0,s.jsxs)("article",{className:"bg-white overflow-hidden flex flex-col",children:[(0,s.jsx)(a.A,{to:o?.current?c.J.blog(m?.slug?.current,o?.current):"#","aria-label":i,children:t&&(0,s.jsxs)("div",{className:"relative w-full h-full object-cover md:aspect-square",children:[(0,s.jsx)(r.A,{alt:i,src:t,className:"object-cover w-full h-full"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent h-44"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 w-full z-[2] text-white px-5.5 py-3.5 flex justify-end",children:p&&(0,s.jsx)("span",{className:"font-extralight text-[17px]",children:p})}),(0,s.jsx)("div",{className:"absolute w-full h-41 z-[1] bottom-0 transition duration-300 bg-[linear-gradient(to_top,rgba(0,20,62,0.1)_0%,rgba(0,20,62,0.1)_63%,rgba(0,20,62,0)_100%)]"})]})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-grow bg-[#EFEFF7] p-4 sm:pt-7.5 sm:px-5.5 sm:pb-5 gap-8 sm:gap-10 lg:gap-12",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[i&&(0,s.jsx)(a.A,{to:o?.current?c.J.blog(m?.slug?.current,o?.current):"#",className:"text-xl sm:text-[1.4rem] 3xl:text-[1.75rem] font-medium block leading-[1.15]","aria-label":i,children:(0,s.jsx)("h2",{children:i})}),d&&(0,s.jsx)("div",{className:"text-lg sm:text-xl lg:text-[1.375rem] font-extralight leading-[1.4] line-clamp-3",children:d})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[n?.name&&(0,s.jsx)("div",{className:"font-extralight text-[17px]",children:`by ${n?.name}`}),i&&(0,s.jsx)(a.A,{to:o?.current?c.J.blog(m?.slug?.current,o?.current):"#",className:" text-orange-500 font-extralight text-[17px] underline underline-offset-2 hover:underline","aria-label":`Read more about ${i}`,children:"Read more"})]})]})]})}},7133:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>c});var s=t(7876),r=t(4753),a=t(2888),x=t(2676);let c=e=>{let{backGroundColor:l,textColor:t,title:c,description:n,image:i,hasDoMore:o,heroSectionTitle:u}=e||{};return(0,s.jsx)("section",{style:{backgroundColor:l?.replace(/[\u200B-\u200D\uFEFF]/g,"").trim()},className:"overflow-hidden",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row relative w-full items-end lg:h-[490px] 3xl:h-[614px]",children:[(0,s.jsx)("div",{className:"w-full pt-12 sm:pt-17.5",children:(0,s.jsxs)("div",{className:"max-w-[1358px] w-[calc(100%-32px)] esm:w-[calc(100%-64px)] lg:w-[calc(100%-50px)] 3xl:w-[calc(100%-64px)] mx-auto",children:[(0,s.jsx)("div",{className:"hidden lg:block absolute top-[-9%] left-[-7rem] w-full max-w-[900px] rotate-[-3deg] z-[0]",children:o&&(0,s.jsx)(r.A,{src:"/images/domore.webp",width:691,height:304,alt:"Do more with personal loans",className:" object-cover",loading:"eager",priority:!0})}),(0,s.jsxs)("div",{className:"lg:max-w-[526px] w-full flex flex-col justify-end h-full pb-12 sm:pb-17.5 relative z-[1]",children:[(0,s.jsx)("h1",{className:(0,x.cn)("font-semibold leading-none lg:max-w-[526px] w-full","text-[42px] sm:text-[52px]"),style:{color:t?.replace(/[\u200B-\u200D\uFEFF]/g,"").trim()},children:u||c}),n&&(0,s.jsx)("div",{className:"text-lg xl:text-xl 3xl:text-[25px] lg:max-w-[483px] w-full leading-normal pt-4 3xl:pt-7 blog-link font-normal [&>p>a]:underline",style:{color:t?.replace(/[\u200B-\u200D\uFEFF]/g,"").trim()},children:(0,s.jsx)(a.A,{block:n})})]})]})}),(0,s.jsx)("div",{className:"lg:absolute right-0 w-full h-full lg:w-1/2",children:(0,s.jsx)(r.A,{src:i,alt:i?.alt||"",className:"w-full h-full object-cover object-right"})})]})})}}},e=>{e.O(0,[3964,4e3,5659,636,6593,8792],()=>e(e.s=151)),_N_E=e.O()}]);
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.