1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc2133f0-8da4-40f6-83a8-dcd0e5d6d6cf",e._sentryDebugIdIdentifier="sentry-dbid-fc2133f0-8da4-40f6-83a8-dcd0e5d6d6cf")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[716],{150:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(3365),s=l(1133),r=l(1487),i=l(8166),n=l(9075),c=l(159),d=l(1007),o=l(1521),u=l(7220);function h(e){let{menuLinks:t,itemClass:l}=e,[s,h]=(0,o.useState)({}),x=e=>{let t=e.currentTarget.getBoundingClientRect();h({maxHeight:Math.max(120,window.innerHeight-t.bottom-16),WebkitOverflowScrolling:"touch"})};return(0,a.jsxs)("nav",{className:"relative flex w-full items-center divide-x divide-neutral-white",children:[(0,a.jsx)("div",{className:"group cursor-pointer px-s hover:bg-state-active-120",children:(0,a.jsx)(r.N,{href:t[0].url,className:"break-words text-center text-xs font-medium text-white",children:(0,a.jsx)(n.A,{className:"mx-1.5 w-[14px]"})})}),(0,a.jsx)("div",{className:(0,i.cn)("flex justify-evenly divide-x divide-neutral-white",l),children:t.slice(1).map((e,t,n)=>{var o,h;let m=t===n.length-1,f=e.subTree&&e.subTree.length>0;return(0,a.jsxs)("div",{className:(0,i.cn)("group relative grid cursor-pointer items-center justify-center whitespace-nowrap hover:bg-state-active-120",l),onMouseEnter:x,children:[e.url.startsWith("tel:")?(0,a.jsxs)("div",{className:"flex items-center whitespace-nowrap p-s",children:[(0,a.jsx)(c.A,{fill:"white",className:"mr-2 inline",size:"18",stroke:"white",strokeWidth:"1"}),(0,a.jsx)(u.A,{number:e.title,className:"text-xs font-medium text-white no-underline"})]}):(0,a.jsx)(r.N,{href:e.url,className:"break-words p-s text-center text-xs font-medium text-white",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[e.title,e.subTree&&(null==(o=e.subTree)?void 0:o.length)>0&&(0,a.jsx)(d.A,{size:14,className:"inline text-white","aria-hidden":"true"})]})}),e.subTree&&0!=e.subTree.length&&(0,a.jsx)("div",{style:s,className:(0,i.cn)("absolute left-0 top-full z-[100] hidden overflow-y-auto overscroll-contain bg-state-active-120 px-m py-l text-left shadow-lg group-hover:block",m&&f?"w-[257px]":"w-max min-w-72 max-w-[min(90vw,40rem)]"),children:(0,a.jsx)("ul",{className:"flex flex-col gap-m pr-2",children:e.subTree.filter(e=>!1!==e.enabled).map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(r.N,{href:e.url,className:"whitespace-pre-line text-xs font-normal text-neutral-white hover:underline",children:e.title})},"".concat(e.id,"-").concat(e.title)))})})]},null!=(h=e.id)?h:t)})})]})}function x(e){var t,l;let{menuLinks:x,itemClass:m,globalMenu:f=!1}=e;x.forEach(e=>{var t;(null==(t=e.subTree)?void 0:t.every(e=>!1===e.enabled))&&(e.subTree=[])});let[p,g]=(0,o.useState)(null),v=(0,o.useRef)(null),b=(0,o.useRef)(void 0),w=e=>{b.current&&clearTimeout(b.current),g(e)},j=()=>{b.current=setTimeout(()=>{g(null)},300)};(0,o.useEffect)(()=>{function e(e){var t;(e instanceof MouseEvent||e instanceof TouchEvent)&&((null==(t=v.current)?void 0:t.contains(e.target))||setTimeout(()=>g(null),100))}let t=["mousedown","touchstart"];return t.forEach(t=>{document.addEventListener(t,e)}),()=>{t.forEach(t=>{document.removeEventListener(t,e)}),clearTimeout(b.current)}},[p]);let y=p&&null!=(l=null==(t=x.find(e=>e.id===p))?void 0:t.subTree)?l:[];return f?(0,a.jsxs)("nav",{ref:v,className:"relative flex w-full items-center divide-x divide-neutral-white",children:[(0,a.jsx)("div",{className:"group cursor-pointer px-s hover:bg-state-active-120",children:(0,a.jsx)(r.N,{href:x[0].url,className:"break-words text-center text-xs font-medium text-white",children:(0,a.jsx)(n.A,{className:"mx-1.5 w-[14px]"})})}),x.slice(1).map(e=>(0,a.jsx)("div",{className:(0,i.cn)("group relative grid cursor-pointer items-center justify-center whitespace-nowrap hover:bg-state-active-120",m),children:e.url.startsWith("tel:")?(0,a.jsxs)("div",{className:"whitespace-nowrap",children:[(0,a.jsx)(c.A,{fill:"white",className:"mr-2 inline",size:"18",stroke:"white",strokeWidth:"1"}),(0,a.jsx)(u.A,{number:e.title,className:"text-xs text-white no-underline"})]}):(0,a.jsxs)(r.N,{href:e.subTree&&e.subTree.length>0?"#":e.url,className:"break-words px-xs py-s text-center text-xs font-medium text-white",onMouseEnter:()=>{e.subTree&&e.subTree.length>0&&w(e.id)},onMouseLeave:j,children:[e.title,e.subTree&&e.subTree.length>0&&(0,a.jsx)(d.A,{size:14,className:"ml-xs inline text-white"})]})},e.id||e.title)),p&&y&&(0,a.jsx)("div",{className:"absolute left-0 top-full z-20 w-full bg-state-active-120 text-white shadow-lg",onMouseEnter:()=>w(p),onMouseLeave:j,children:(0,a.jsx)("ul",{className:"flex flex-row gap-8 p-l",children:y.map(e=>(null==e?void 0:e.url)==="/"||(null==e?void 0:e.url)===""?(0,a.jsxs)("div",{children:[(0,a.jsx)("li",{className:"text-sm font-bold text-gray-900",children:(0,a.jsx)(s.o,{variant:"p",size:"md",className:"pb-xs font-bold text-white",children:e.title})}),e.subTree&&e.subTree.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(r.N,{href:e.url,className:"block py-2 text-sm text-white hover:underline",children:e.title})},"".concat(e.id,"-").concat(e.title)))]},"".concat(e.id,"-").concat(null==e?void 0:e.title)):(0,a.jsx)("li",{children:(0,a.jsx)(r.N,{href:null==e?void 0:e.url,className:"block px-4 py-2 text-sm text-white hover:bg-gray-100 hover:text-accent-primary-120",children:null==e?void 0:e.title})},"".concat(e.id,"-").concat(null==e?void 0:e.title)))})})]}):(0,a.jsx)(h,{menuLinks:x,itemClass:m})}},1133:(e,t,l)=>{l.d(t,{o:()=>c});var a=l(8166),s=l(3987),r=l(1521);let i=(0,s.Fj)({base:"leading-normal text-accent-primary-120",variants:{variant:{h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",p:"",ul:"my-6 ml-6 list-disc [&>li]:mt-2",ol:"my-6 ml-6 list-decimal [&>li]:mt-2",div:"",span:""},size:{xxs:"",xs:"",sm:"",md:"",lg:"",xl:"","2xl":"","3xl":""},font:{basic:"font-body",decorative:"font-decorative"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},align:{left:"text-left",center:"text-center",right:"text-right"},casing:{normal:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"}},compoundVariants:[{variant:["h1","h2","h3","h4","h5","h6"],size:"xxs",class:"text-sm"},{variant:["h1","h2","h3","h4","h5","h6"],size:"xs",class:"text-base"},{variant:["h1","h2","h3","h4","h5","h6"],size:"sm",class:"text-lg"},{variant:["h1","h2","h3","h4","h5","h6"],size:"md",class:"text-2xl"},{variant:["h1","h2","h3","h4","h5","h6"],size:"xl",class:"text-[32px]"},{variant:["h1","h2","h3","h4","h5","h6"],size:"lg",class:"text-[40px]"},{variant:["h1","h2","h3","h4","h5","h6"],size:"2xl",class:"text-5xl"},{variant:["h1","h2","h3","h4","h5","h6"],size:"3xl",class:"text-[68px]"},{variant:["p","ol","ul","span","div"],size:"xxs",class:"text-xs"},{variant:["p","ol","ul","span","div"],size:"xs",class:"text-sm"},{variant:["p","ol","ul","span","div"],size:"sm",class:"text-base"},{variant:["p","ol","ul","span","div"],size:"md",class:"text-lg"},{variant:["p","ol","ul","span","div"],size:"lg",class:"text-2xl"},{variant:["p","ol","ul","span","div"],size:"xl",class:"text-[32px]"},{variant:["p","ol","ul","span","div"],size:"2xl",class:"text-[40px]"},{variant:["p","ol","ul","span","div"],size:"3xl",class:"text-5xl"}],defaultVariants:{variant:"p",size:"sm",font:"basic",weight:"normal",align:"left",casing:"normal"}}
1),n={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",ul:"ul",ol:"ol",div:"div",span:"span"},c=r.forwardRef((e,t)=>{let{className:l,variant:s,size:c,font:d,weight:o,align:u,casing:h,as:x,children:m,...f}=e,p=x||s&&n[s]||"p";return r.createElement(p,{className:(0,a.cn)(i({variant:s,size:c,font:d,weight:o,align:u,casing:h,className:l})),ref:t,...f},m)});c.displayName="Typography"},1487:(e,t,l)=>{l.d(t,{N:()=>i});var a=l(3365),s=l(8197),r=l.n(s);let i=(0,l(1521).forwardRef)(function(e,t){let{prefetch:l=!1,...s}=e;return(0,a.jsx)(r(),{prefetch:l,...s,ref:t})})},3724:(e,t,l)=>{l.r(t),l.d(t,{default:()=>d});var a=l(3365),s=l(1521);let r=e=>{let{children:t,className:l,...s}=e;return(0,a.jsx)("svg",{fill:"currentColor",width:"100%",height:"100%",className:l,...s,children:t})},i=e=>(0,a.jsx)(r,{...e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 1c.498 0 .94.336 1.095.832l2.066 6.652h6.689c.498 0 .94.336 1.093.831a1.235 1.235 0 0 1-.418 1.346l-5.41 4.112 2.067 6.652a1.235 1.235 0 0 1-.418 1.345 1.11 1.11 0 0 1-1.353 0l-5.41-4.11-5.412 4.11q-.075.058-.157.101a1.11 1.11 0 0 1-1.269-.161 1.24 1.24 0 0 1-.345-1.285l2.067-6.652-5.41-4.112a1.2 1.2 0 0 1-.35-.43 1.25 1.25 0 0 1 .098-1.254c.106-.152.244-.276.403-.36a1.1 1.1 0 0 1 .524-.133H8.84l2.066-6.652a1.3 1.3 0 0 1 .166-.34q.107-.152.252-.263A1.13 1.13 0 0 1 12 1m0 15.147 4.514 3.428-1.725-5.548 4.663-3.543h-5.764L12 5.05z"})}),n=e=>(0,a.jsx)(r,{...e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M12 1c-.498 0-.94.336-1.094.832L8.839 8.484H2.15c-.499 0-.94.336-1.095.831a1.235 1.235 0 0 0 .418 1.346l5.411 4.111-2.067 6.653a1.235 1.235 0 0 0 .418 1.345c.404.307.95.307 1.353 0L12 18.66l5.41 4.111c.404.307.95.307 1.354 0 .403-.306.572-.85.418-1.345l-2.067-6.653 5.41-4.111c.404-.306.573-.85.419-1.346a1.16 1.16 0 0 0-1.095-.831h-6.688l-2.067-6.652A1.16 1.16 0 0 0 12 1",clipRule:"evenodd"})});var c=l(8166);function d(e){let{averageRating:t,totalReviews:l,maxRating:r=5,showAverage:d=!0,showReviewsCount:o=!0,conditional:u=!0,alignStars:h="start",inlineStarsText:x=!1,size:m="md",averageRatingSize:f,className:p=""}=e,[g,v]=(0,s.useState)([]),b={sm:{starSize:"w-4 h-4",textSize:"text-xs",gap:"gap-0.5"},md:{starSize:"w-5 h-5",textSize:"text-sm",gap:"gap-1"},lg:{starSize:"w-6 h-6",textSize:"text-base",gap:"gap-1.5"}},w=Math.floor(t)+(t%1>=.75?1:.5*(t%1>=.25));if((0,s.useEffect)(()=>{let e=[];for(let t=1;t<=5;t++)w>=t?e.push("full"):w>=t-.5?e.push("half"):e.push("empty");v(e)},[w]),!u||!((null!=l?l:0)<5))return(0,a.jsxs)("div",{className:(0,c.cn)("flex items-center",p,x?"flex-row":"flex-col"),children:[(0,a.jsxs)("div",{className:(0,c.cn)("flex w-full items-center",{start:"justify-start",center:"justify-center",end:"justify-end"}[h]),children:[d&&(0,a.jsx)("span",{className:(0,c.cn)("mr-2 font-medium",f?({sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg","2xl":"text-xl"})[f]:b[m].textSize),"aria-label":"".concat(t," out of ").concat(r," stars"),children:t.toFixed(1)}),(0,a.jsx)("div",{className:"flex ".concat(b[m].gap),role:"img","aria-label":"Rating: ".concat(t," out of ").concat(r," stars"),children:g.map((e,t)=>(0,a.jsx)("span",{children:"full"===e?(0,a.jsx)(n,{className:"".concat(b[m].starSize," text-accent-gold")}):"half"===e?(0,a.jsx)(i,{className:"".concat(b[m].starSize," text-accent-gold")}):(0,a.jsx)(n,{className:"".concat(b[m].starSize," stroke-accent-gold text-white")})},t))})]}),o&&(0,a.jsxs)("span",{className:(0,c.cn)("whitespace-nowrap text-gray-600",b[m].textSize,x?"ml-2":""),children:["(based on ",l," ",1===l?"review":"reviews",")"]})]})}},4620:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(3365),s=l(7490),r=l(7220),i=l(8166),n=l(1007),c=l(7687),d=l(159),o=l(8197),u=l.n(o),h=l(1521);function x(e){let{menuLinks:t,showPaymentsButton:l}=e,[o,x]=(0,h.useState)(!1),[m,f]=(0,h.useState)(new Set);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{onClick:()=>x(!0),"aria-label":"Toggle menu","aria-expanded":o,className:"w-full bg-blue-950 py-4 text-center text-white md:hidden",children:["Menu ",(0,a.jsx)(n.A,{className:"inline size-5 text-white"})]}),(0,a.jsx)("div",{className:(0,i.cn)("md:hidden",o?"block":"hidden"),children:(0,a.jsxs)("div",{className:"fixed top-0 z-50 flex max-h-screen w-full flex-col overflow-y-scroll border-b border-b-white bg-blue-950 p-m text-white",children:[(0,a.jsx)(s.$,{variant:"primary",onClick:()=>x(!1),"aria-label":"Toggle menu",className:"ml-auto text-white",children:(0,a.jsx)(c.A,{className:"size-6 text-white"})}),t.map(e=>(0,a.jsxs)("div",{className:"w-full border-b border-white",children:[e.url.startsWith("tel:")?(0,a.jsxs)("div",{className:"whitespace-nowrap py-6",children:[(0,a.jsx)(d.A,{fill:"white",className:"mr-2 inline",size:"18",stroke:"white",strokeWidth:"1"}),(0,a.jsx)(r.A,{number:e.title,className:"text-white no-underline",onClick:()=>x(!1)})]}):e.subTree&&e.subTree.length>0?(0,a.jsxs)("button",{onClick:()=>{var t;return t=e.id,void f(e=>{let l=new Set(e);return l.has(t)?l.delete(t):l.add(t),l})},className:"flex w-full items-center justify-between py-6 text-left font-bold text-white",children:[(0,a.jsx)("span",{children:e.title}),(0,a.jsx)(n.A,{size:14,className:(0,i.cn)("inline text-white transition-transform",m.has(e.id)&&"rotate-180"),"aria-hidden":"true"})]}):(0,a.jsx)(u(),{href:e.url,onClick:()=>x(!1),className:"block w-full py-6 font-bold text-white",children:e.title}),e.subTree&&e.subTree.length>0&&(0,a.jsx)("div",{className:(0,i.cn)(!m.has(e.id)&&"hidden"),children:e.subTree.map(t=>{if("contact_menu_item"===e.id&&t.title.includes("\n")){let[e,l]=t.title.split("\n");return(0,a.jsx)(u(),{href:t.url||"#",onClick:()=>x(!1),className:"block w-full py-4 text-sm font-normal text-white",children:(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-x-4",children:[(0,a.jsx)("span",{children:e}),(0,a.jsx)("span",{className:"text-right",children:l})]})},t.id)}return(0,a.jsx)(u(),{href:t.url||"#",onClick:()=>x(!1),className:"block w-full py-4 text-sm font-normal text-white",children:t.title},t.id)})})]},"".concat(e.title,"-").concat(e.title))),l?(0,a.jsx)(s.$,{variant:"bordered",asLink:!0,size:"md",href:"https://payments.dignityfunerals.co.uk/",className:"my-l max-w-[320px] text-center",children:"Pay for a funeral"}):null]})})]})}},7220:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(3365),s=l(1487),r=l(8166),i=l(7222);let n=e=>{var t;let{number:l,infinity:n=!0,className:c,...d}=e;if(!l)return null;let o=null==(t=(0,i.l)(l,"GB"))?void 0:t.formatNational(),u=l.replace(/\s/g,"");return(0,a.jsx)(s.N,{href:"tel:".concat(u),className:(0,r.cn)("underline",c),...d,children:(0,a.jsx)("span",{className:"".concat(n?"InfinityNumber":""),children:o})})}},7490:(e,t,l)=>{l.d(t,{$:()=>u});var a=l(3365),s=l(3987),r=l(1777),i=l(1521),n=l(8166),c=l(8197),d=l.n(c);let o=(0,s.Fj)({base:"inline-flex items-center justify-center",variants:{variant:{primary:"rounded-full border-2 border-accent-primary bg-accent-primary text-neutral-white hover:border-state-active-120 hover:bg-state-active-120 disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:focus:outline-offset-2 lg:focus:outline-state-active lg:active:border-state-active lg:active:bg-state-active",secondary:"rounded-full border-2 border-accent-secondary bg-accent-secondary text-accent-primary hover:border-accent-secondary-120 hover:bg-accent-secondary-120 disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:focus:outline-offset-2 lg:focus:outline-state-active lg:active:border-accent-secondary-20 lg:active:bg-accent-secondary-20",bordered:"rounded-full border-2 border-accent-primary-120 bg-neutral-white text-accent-primary hover:bg-accent-primary-20 disabled:border-0 disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:active:bg-accent-secondary-20",white:"bg-neutral-white text-accent-primary hover:bg-neutral-grey-light disabled:border-0 disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:focus:outline-offset-2 lg:focus:outline-neutral-white lg:active:bg-accent-secondary-20",danger:"border-2 border-state-error-120 bg-state-error-120 text-neutral-white hover:border-state-error hover:bg-state-error disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:focus:outline-offset-2 lg:focus:outline-state-active lg:active:border-state-error-60 lg:active:bg-state-error-60",underline:"!h-fit !rounded-none !p-0 underline decoration-1 hover:decoration-2",icon:"!h-10 !w-10 rounded-full bg-accent-primary text-neutral-white hover:bg-state-active-120 disabled:bg-neutral-grey-light disabled:text-neutral-grey-dark lg:focus:outline-offset-2 lg:focus:outline-state-active lg:active:bg-state-active",none:""},size:{lg:"gap-xs px-xl py-[11px] text-2xl font-medium leading-normal",md:"gap-xs px-l py-[10px] text-xl font-medium leading-normal",sm:"gap-xs px-m py-[9px] text-base font-bold leading-normal",xs:"px-m py-[8px] text-xs font-bold"},width:{default:"",full:"w-full sm:w-auto"},align:{left:"justify-start",center:"justify-center",right:"justify-end"}},defaultVariants:{variant:"primary",size:"md",width:"default",align:"center"}}),u=i.forwardRef((e,t)=>
1{let{className:l,asLink:s,variant:i,size:c,width:u,align:h,isLoading:x,leftIcon:m,rightIcon:f,children:p,disabled:g,...v}=e,b=(0,n.cn)(o({variant:i,size:c,width:u,align:h,className:l})),w=g||x;return e.asLink?(0,a.jsxs)(d(),{...v,className:(0,n.cn)(b,w&&"pointer-events-none opacity-50"),ref:t,"aria-disabled":w,tabIndex:w?-1:void 0,children:[x&&(0,a.jsx)(r.A,{className:"mr-2 size-4 animate-spin"}),!x&&m&&(0,a.jsx)("span",{className:"mr-2",children:m}),p,f&&(0,a.jsx)("span",{className:"ml-2",children:f})]}):(0,a.jsxs)("button",{className:b,ref:t,disabled:w,...v,onClick:e.onClick,children:[x&&(0,a.jsx)(r.A,{className:"mr-2 size-4 animate-spin"}),!x&&m&&(0,a.jsx)("span",{className:"mr-2",children:m}),p,f&&(0,a.jsx)("span",{className:"ml-2",children:f})]})});u.displayName="Button"},8166:(e,t,l)=>{l.d(t,{cn:()=>r});var a=l(9783),s=l(5347);function r(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,s.QP)((0,a.$)(...t))}}}]);
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.