1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226,9040],{39040:function(e,n,t){"use strict";t.r(n);var i,o=t(17161);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},l.apply(null,arguments)}n.default=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),i||(i=o.createElement("path",{fill:"#3D320E",d:"M11.67 11.88v1.74A5 5 0 0 0 5 18.33H3.33a6.67 6.67 0 0 1 8.34-6.45ZM10 10.83a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-1.66a3.33 3.33 0 1 0 0-6.67 3.33 3.33 0 0 0 0 6.67Zm5.49 5-1.53-1.53 1.18-1.18L18.68 15l-3.54 3.54-1.18-1.18 1.53-1.53H12.5v-1.66h2.99Z"})))}},19903:function(e,n,t){"use strict";t.d(n,{W:function(){return y}});var i=t(6993),o=t(17161),l=t(73870),r=t(8543),a=t(23478),c=t(62417),s=t(23578),u=t(5125),d=t(4012),v=t(73702),f=t(2039),h=t(3516),m=t(39040),g=t(6121),p=t.n(g),w=t(9713),_=t(42035),x=t(73668),y=(0,o.forwardRef)((function(e,n){var t=function(e,n){var t=(0,l.Z)("common").t,i=(0,o.useState)(!1),a=i[0],c=i[1],s=(0,r.d)().width,u=window.location.href,d=(0,_.useRouter)();return(0,o.useImperativeHandle)(n,(function(){return{openSuccess:function(){c(!0)}}})),{t:t,open:a,width:s,setClose:function(){c(!1)},redirectUrl:u,redirectToLogin:function(){(null===e||void 0===e?void 0:e.redirectToLoginOnClose)&&(null===d||void 0===d||d.push("".concat(w.b.LAYOUT.TOBAR.loginUser).concat((null===e||void 0===e?void 0:e.withoutRedirect)?"":"?redirectUrl="+u)))},router:d}}(e,n),g=t.t,y=t.open,b=t.width,E=t.setClose,N=t.redirectUrl,j=t.redirectToLogin,D=t.router;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c.Z,{open:y,closeAfterTransition:!0,onBackdropClick:function(){E(),j()},BackdropComponent:u.Z,BackdropProps:{timeout:500},children:(0,i.jsx)(s.Z,{in:y,children:(0,i.jsxs)(f.Z,{className:"modal-content modal-content-default",children:[(0,i.jsx)(v.Z,{className:"icon-button",onClick:function(){E(),(null===e||void 0===e?void 0:e.routerBack)&&D.back()},children:(0,i.jsx)(d.Z,{className:"close-icon"})}),(0,i.jsx)("div",{className:"rounded-gradient-box-shadow mb-2",children:(0,i.jsx)("img",{src:(0,x.q)("/ic-check-success.svg"),alt:"success"})}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"text-24 text-md-20 font-weight-700 font-secondary primary-900 mb-2",children:(null===e||void 0===e?void 0:e.title)||g("LogInInfoModal.title")})}),(0,i.jsxs)("div",{className:"w-100 btn-w-md-100 flex",children:[(0,i.jsx)(h.Z,{onClick:function(){E(),(null===e||void 0===e?void 0:e.routerBack)&&D.back()},size:b>=a.Z.TabletMax?"l":"m",variant:"secondary-outline",disableRipple:!0,className:"margin-left-auto mr-4",children:g("LogInInfoModal.close")}),(0,i.jsx)(p(),{prefetch:!1,href:"".concat(w.b.LAYOUT.TOBAR.loginUser).concat((null===e||void 0===e?void 0:e.withoutRedirect)?"":"?redirectUrl="+N),passHref:!0,children:(0,i.jsx)(h.Z,{onClick:function(){E(),j()},size:b>=a.Z.TabletMax?"l":"m",variant:"primary-light",disableRipple:!0,startIcon:(0,i.jsx)(m.default,{}),children:g("LogInInfoModal.logIn")})})]})]})})})})}))},43868:function(e,n,t){"use strict";t.d(n,{L:function(){return v},$:function(){return d}});var i=t(6993),o=t(66496),l=t.n(o),r=t(64318),a=t.n(r),c={ic_auctioneers_valuers:{name:"ic_auctioneers_valuers",file:"ic_auctioneers_valuers.svg",width:22,height:22},ic_beravement_counselling:{name:"ic_beravement_counselling",file:"ic_beravement_counselling.svg",width:20,height:20},ic_caterers:{name:"ic_caterers",file:"ic_caterers.svg",width:18,height:20},ic_charities:{name:"ic_charities",file:"ic_charities.svg",width:23,height:18},ic_florists:{name:"ic_florists",file:"ic_florists.svg",width:20,height:19},ic_funeral_directors:{name:"ic_funeral_directors",file:"ic_funeral_directors.svg",width:22,height:21},ic_funeral_plans:{name:"ic_funeral_plans",file:"ic_funeral_plans.svg",width:20,height:20},ic_funeral_video_streaming:{name:"ic_funeral_video_streaming",file:"ic_funeral_video_streaming.svg",width:20,height:19},ic_grave_maintenance:{name:"ic_grave_maintenance",file:"ic_grave_maintenance.svg",width:20,height:20},ic_headstones_monuments:{name:"ic_headstones_monuments",file:"ic_headstones_monuments.svg",width:20,height:19},ic_homecare_support:{name:"ic_homecare_support",file:"ic_homecare_support.svg",width:20,height:19},ic_hotels_restaurants_venues:{name:"ic_hotels_restaurants_venues",file:"ic_hotels_restaurants_venues.svg",width:20,height:18},ic_house_clearance:{name:"ic_house_clearance",file:"ic_house_clearance.svg",width:22,height:20},ic_humanist_funerals:{name:"ic_humanist_funerals",file:"ic_humanist_funerals.svg",width:20,height:19},ic_memorial_cards:{name:"ic_memorial_cards",file:"ic_memorial_cards.svg",width:18,height:18},ic_repatriation:{name:"ic_repatriation",file:"ic_repatriation.svg",width:22,height:20},ic_singers_and_musicians:{name:"ic_singers_and_musicians",file:"ic_singers_and_musicians.svg",width:19,height:18},ic_storage_units:{name:"ic_storage_units",file:"ic_storage_units.svg",width:18,height:18},ic_suit_hire:{name:"ic_suit_hire",file:"ic_suit_hire.svg",width:18,height:19},ic_sympathy_cards:{name:"ic_sympathy_cards",file:"ic_sympathy_cards.svg",width:22,height:19},ic_trace_your_ancestors:{name:"ic_trace_your_ancestors",file:"ic_trace_your_ancestors.svg",width:20,height:20},ic_urns:{name:"ic_urns",file:"ic_urns.svg",width:20,height:19}},s=t(9713),u=t(73668),d=function(e){var n,t=c[null===e||void 0===e||null===(n=e.item)||void 0===n?void 0:n.icon];return t?(0,i.jsx)("div",{style:{width:t.width,height:t.height,position:"relative"},children:(0,i.jsx)(a(),{src:(0,u.q)("/services/".concat(t.file)),layout:"fill"})}):(0,i.jsx)(a(),{src:e.defaultIcon.file,width:e.defaultIcon.width,height:e.defaultIcon.width})},v=function(e){var n,t=function(e,n,t){var i,o=s.b.LAYOUT.MENU.serviceDirectory;if(n)o="".concat(o,"/s/").concat(null===n||void 0===n?void 0:n.toLowerCase(),"/").concat(null===e||void 0===e||null===(i=e.slug)||void 0===i?void 0:i.toLowerCase());else if(t){var l;o="".concat(o,"/s/").concat(null===(l=e.name)||void 0===l?void 0:l.toLowerCase(),"/").concat(null===t||void 0===t?void 0:t.toLowerCase())}else{var r;o="".concat(o,"/s/all/").concat(null===e||void 0===e||null===(r=e.slug)||void 0===r?void 0:r.toLowerCase())}return o};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:l()["sd-list"],children:null===e||void 0===e||null===(n=e.list)||void 0===n?void 0:n.map((function(n,o){return(0,i.jsx)("div",{className:l()["sd-list-column"],children:(0,i.jsxs)("a",{className:l()["sd-list-column-item"],href:t(n,null===e||void 0===e?void 0:e.county,null===e||void 0===e?void 0:e.category),children:[(0,i.jsx)("div",{className:l()["sd-list-column-item-icon"],children:(0,i.jsx)(d,{item:n,defaultIcon:e.defaultIcon})}),(0,i.jsx)("div",{className:l()["sd-list-column-item-title"],children:null===n||void 0===n?void 0:n.name}),(0,i.jsx)("div",{className:l()["sd-list-column-item-count"],children:n.servicesCount})]})},o)}))})})}},91545:function(e,n,t){"use strict";t.d(n,{C:function(){return de}});var i,o=t(95911),l=t(33803),r=t(16888),a=t(40294),c=t(44276),s=t(45885),u=t.
1n(s),d=t(6993),v=t(15604),f=t(58858),h=t(73870),m=t(17161),g=t(42035),p=t(65544),w=t(53610),_=t(26383),x=t(27087),y=t(3516);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},b.apply(null,arguments)}var E,N,j=function(e){return m.createElement("svg",b({width:17,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=m.createElement("path",{d:"M5.167 2.666v10.667h6.666V2.666H5.167ZM4.5 1.333h8a.667.667 0 0 1 .667.667v12a.667.667 0 0 1-.667.666h-8A.667.667 0 0 1 3.833 14V2a.667.667 0 0 1 .667-.667Zm4 10a.666.666 0 1 1 0 1.333.666.666 0 0 1 0-1.333Z",fill:"#3D320E"})))};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},D.apply(null,arguments)}var S,L=function(e){return m.createElement("svg",D({width:17,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E||(E=m.createElement("path",{opacity:.3,d:"M8.5 14.666a6.667 6.667 0 1 0 0-13.333 6.667 6.667 0 0 0 0 13.333Z",fill:"#1D1D1D"})),N||(N=m.createElement("path",{d:"M9.167 7.334a.667.667 0 0 0-1.334 0v3.333a.667.667 0 1 0 1.334 0V7.334ZM9.167 5.334a.667.667 0 1 0-1.334 0 .667.667 0 0 0 1.334 0Z",fill:"#1D1D1D"})))};function T(){return T=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},T.apply(null,arguments)}var C,Z=function(e){return m.createElement("svg",T({width:17,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S||(S=m.createElement("path",{d:"M13.833 11.333h1.334v1.333H1.833v-1.333h1.334V6.666a5.333 5.333 0 1 1 10.666 0v4.667Zm-1.333 0V6.666a4 4 0 1 0-8 0v4.667h8ZM6.5 14h4v1.333h-4V14Z",fill:"#3D320E"})))},I=t(16189),M=t(15566),R=t(35928),O=t(19903),F=t(94344),k=t(6001),A=function(e){var n,t,i,o,l=(0,h.Z)("common").t,r=(0,R.useSession)(),a=(r.data,r.status),c=(0,g.useRouter)(),s=(0,m.useRef)(null),u=(0,m.useRef)(null),v=(0,m.useRef)(null),p=e.selectedCounty,w=e.selectedTown,_=e.isDesktop,x=(0,d.jsxs)("div",{className:"".concat(_?"":"mt-2"," flex flex-wrap mx-n-1"),children:[(null===c||void 0===c||null===(n=c.query)||void 0===n?void 0:n.slug)&&(null===c||void 0===c||null===(t=c.query)||void 0===t?void 0:t.slug[1])&&"all"!==(null===c||void 0===c||null===(i=c.query)||void 0===i?void 0:i.slug[1])&&!_&&!(void 0!==window&&(null===window||void 0===window?void 0:window.matchMedia("(display-mode: standalone)").matches))&&(0,d.jsx)("span",{className:"m-1 d-inline-block hide-lg",children:(0,d.jsx)(y.Z,{onClick:function(){var e;return null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.openPWA()},startIcon:(0,d.jsx)(j,{}),endIcon:(0,d.jsx)(L,{}),size:"xs",variant:"secondary-outline",disableRipple:!0,children:l("DeathNotice.saveToHomeScreen")})}),(0,d.jsx)("span",{className:"".concat(_?"mt-2":"mr-2 m-1"," d-inline-block"),children:(0,d.jsx)(y.Z,{onClick:function(){var e,n;a===k.y.authenticated?null===u||void 0===u||null===(e=u.current)||void 0===e||e.openAlertModal({type:F.K.TOWN,surname:c.query.surname||"",county:p||null,town:w||null}):null===v||void 0===v||null===(n=v.current)||void 0===n||n.openSuccess()},startIcon:(0,d.jsx)(Z,{}),size:"xs",variant:"secondary-outline",disableRipple:!0,children:l("DeathNotice.createAlert")})})]});return!!(null===e||void 0===e||null===(o=e.slug)||void 0===o?void 0:o.length)&&(0,d.jsxs)("div",{children:[_?(0,d.jsx)(d.Fragment,{children:x}):(0,d.jsx)(f.Z,{maxWidth:"md",children:x}),(0,d.jsx)(M.k,{ref:u}),(0,d.jsx)(I.o,{ref:s}),(0,d.jsx)(O.W,{routerBack:!1,title:l("DeathNotice.loginToCreateAlert"),ref:v})]})},q=t(15117),U=t(41693),P=t(43236),V=t(85172),B=t(11403),G=t.n(B),Q=t(23478),H=t(43868),z=t(66496),W=t.n(z),Y=t(9713);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},X.apply(null,arguments)}var K=function(e){return m.createElement("svg",X({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C||(C=m.createElement("path",{d:"m10.477 6.33-4.47-4.47L7.185.682l6.482 6.481-6.482 6.482-1.178-1.178 4.47-4.47H.333V6.33h10.144Z",fill:"#3D320E"})))},$=t(66485),J=t(62657),ee=t(36089),ne=t(36259),te=t(59677),ie=t(25861),oe=G()((function(){return t.e(3770).then(t.bind(t,3770)).then((function(e){return e.FacebookSocialLink}))}),{loadableGenerated:{webpack:function(){return[3770]}}}),le=G()((function(){return Promise.all([t.e(4257),t.e(6758)]).then(t.bind(t,46758)).then((function(e){return e.CtaFamilyNotices}))}),{loadableGenerated:{webpack:function(){return[46758]}}}),re=G()((function(){return Promise.resolve().then(t.bind(t,65544)).then((function(e){return e.ListViewSwitcher}))}),{loadableGenerated:{webpack:function(){return[65544]}}}),ae=G()((function(){return Promise.all([t.e(8116),t.e(3289),t.e(5824)]).then(t.bind(t,17580)).then((function(e){return e.RecentDeathDatableNotices}))}),{loadableGenerated:{webpack:function(){return[17580]}}}),ce=G()((function(){return t.e(5062).then(t.bind(t,85062)).then((function(e){return e.DeathNoticeItemsList}))}),{loadableGenerated:{webpack:function(){return[85062]}}}),se=G()((function(){return Promise.all([t.e(8116),t.e(3289),t.e(7756)]).then(t.bind(t,77438)).then((function(e){return e.DeathNoticeDatableList}))}),{loadableGenerated:{webpack:function(){return[77438]}}}),ue=function(e){var n=e.serviceDirectory,t=(0,h.Z)("common").t,i=(0,m.useMemo)((function(){return n.map((function(e){var n;return(0,d.jsxs)("a",{className:"".concat(W()["sd-list-column-item"]," mb-2"),href:"".concat(Y.b.LAYOUT.MENU.serviceDirectoryProd,"/s/all/").concat(null===e||void 0===e||null===(n=e.slug)||void 0===n?void 0:n.toLowerCase()),children:[(0,d.jsx)("div",{className:W()["sd-list-column-item-icon"],children:(0,d.jsx)(H.$,{item:e,defaultIcon:{file:"/services/ic_funeral_directors.svg",width:22,height:21}})}),(0,d.jsx)("div",{className:W()["sd-list-column-item-title"],children:null===e||void 0===e?void 0:e.name}),(0,d.jsx)("div",{className:W()["sd-list-column-item-count"],children:null===e||void 0===e?void 0:e.servicesCount})]},null===e||void 0===e?void 0:e.slug)}))}),[n]);return(null===n||void 0===n?void 0:n.length)?(0,d.jsxs)("div",{className:"mb-4 mt-md-2",children:[(0,d.jsx)("div",{className:"font-20 font-secondary primary-800 font-weight-700 mb-2",children:t("ServicesDirectory.title")}),i,(0,d.jsx)("a",{href:Y.b.LAYOUT.MENU.serviceDirectoryProd,children:(0,d.jsx)(y.Z,{endIcon:(0,d.jsx)(K,{}),size:"m",variant:"primary-light",disableRipple:!0,fullWidth:!0,className:"flex ".concat(W()["btn-browse-cat"]," dn-service-directory-btn"),children:t("ServicesDirectory.browseAllCategories")})})]}):null},de=function(e){var n,t,i,s,y,b,E,N,j=e.slug,D=(e.deathNoticeTiles,e.deathNoticeDatatable),S=e.deathNoticeRecentList,L=e.selectedCounty,T=e.selectedTown,C=e.serviceDirectory,Z=e.onlyRecent,I=(e.list,e.paginationData),M=function(e,n){var t,i=(0,J.Uk)({}),s=(0,h.Z)("common").t,d=(0,m.useRef)(!1),v=(0,m.useRef)(null),f=(0,m.useContext)(w.c4),_=f.state,x=f.dispatch,y=(0,m.useState)(_.view
1),b=y[0],E=y[1],N=(0,m.useState)(!0),j=N[0],D=N[1],S=(0,m.useState)(""),L=S[0],T=S[1],C=(0,m.useState)(Q.Z.TabletMax),Z=C[0],I=C[1],M=(0,m.useState)(!1),R=M[0],O=M[1],F=(0,m.useState)(!1),k=F[0],A=F[1],B=(0,m.useState)(0),G=B[0],H=B[1],z=(0,g.useRouter)(),W=(0,m.useState)(void 0),Y=W[0],X=W[1],K=(0,m.useState)(!1),$=K[0],ie=K[1],oe=(0,m.useState)(n||{}),le=oe[0],re=oe[1],ae=(0,m.useState)({}),ce=ae[0],se=ae[1],ue=(0,m.useState)({}),de=ue[0],ve=ue[1];(0,m.useEffect)((function(){setTimeout((function(){var e,n=null===(e=null===document||void 0===document?void 0:document.querySelector(".dn-service-directory-btn"))||void 0===e?void 0:e.getBoundingClientRect();(null===n||void 0===n?void 0:n.bottom)&&X(null===n||void 0===n?void 0:n.bottom)}),500)}),[]),(0,m.useEffect)((function(){if(Y)return window.addEventListener("scroll",fe),function(){window.removeEventListener("scroll",fe)}}),[Y]);var fe=function(){var e=window.scrollY;ie(e>=Y)};(0,m.useEffect)((function(){var e=function(){I((null===window||void 0===window?void 0:window.innerWidth)>=Q.Z.TabletMax?Q.Z.TabletMax:Q.Z.Mobile)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var he=function(e){(0,o.Z)(u().mark((function n(){var t,o,r,a,c,s;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=(0,P.a)("view",e)||p.EDataView.LIST,r=(0,ee.F)(e),(null===(t=r.orders)||void 0===t?void 0:t.length)||(r.orders=[{field:"a.createdAtCastToDate",type:ne.M.DESC},{field:"a.escapedSurname",type:ne.M.DESC}]),E(o),D(!0),n.next=8,i.query({query:o===p.EDataView.BOXES?V.fBo:V.Exm,variables:{list:r,isTiledView:o===p.EDataView.BOXES},fetchPolicy:"no-cache"});case 8:a=n.sent,o===p.EDataView.BOXES?se((0,l.Z)({},(null===a||void 0===a||null===(c=a.data)||void 0===c?void 0:c.searchDeathNoticesForList)||{},{list:r})):re((0,l.Z)({},(null===a||void 0===a||null===(s=a.data)||void 0===s?void 0:s.searchDeathNoticesForList)||{},{list:r})),D(!1),ge(r,o);case 12:case"end":return n.stop()}}),n)})))()};(0,m.useEffect)((function(){D(!0);var e=(0,U.X)(window.location.pathname+window.location.search).replace(/%20/g,"+");he(e)}),[]),(0,m.useEffect)((function(){me()}),[L]);var me=function(){var e=(0,o.Z)(u().mark((function e(){var n,t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,i.query({query:V.T7c,variables:{countyName:L,perPage:12,page:1}});case 3:t=e.sent,ve((null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.getFamilyNoticesForCounty)||{});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){if(null===d||void 0===d?void 0:d.current){var e=(0,a.Z)(_.orders||[],1)[0];if(_.pathname){var n,t,i={pathname:_.pathname,query:(0,r.Z)((0,l.Z)({page:_.page},_.queryParams),{sortField:null===e||void 0===e?void 0:e.field,sortDir:null===e||void 0===e?void 0:e.type,view:b})};if(null===i||void 0===i||null===(n=i.query)||void 0===n||delete n[te.Q.ARRANGEMENT_FIELD],null===i||void 0===i||null===(t=i.query)||void 0===t||delete t[q.Kp.ARRANGEMENT_FIELD],(0,U.X)(window.location.pathname+window.location.search).replace(/%20/g,"+")===(0,U.X)(i.pathname+"?"+new URLSearchParams(i.query)))return;z.push(i,void 0,{shallow:!0,scroll:!0})}}else d.current=!0}),[_]),(0,m.useEffect)((function(){var e=function(e){he(e)};return z.events.on("routeChangeComplete",e),function(){z.events.off("routeChangeComplete",e)}}),[]),(0,m.useEffect)((function(){pe(z.asPath);var e=function(e){pe(e)};return z.events.on("routeChangeComplete",e),function(){return z.events.off("routeChangeComplete",e)}}),[]);var ge=function(){var e=(0,o.Z)(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),e.next=3,i.query({query:V.UEu,variables:{list:n||{},isTiledView:t===p.EDataView.BOXES},fetchPolicy:"no-cache"}).then((function(e){var n;A(!1),H((null===(n=e.data)||void 0===n?void 0:n.getPaginationForDeathNoticeList)||0)})).catch((function(e){return A(!1)}));case 3:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),pe=function(e){var n=(0,P.A)(e,q.dV).view||_.view;E(n),n===p.EDataView.LIST?se({}):re({})};(0,m.useEffect)((function(){var e,n,t,i;(null===z||void 0===z||null===(e=z.query)||void 0===e||null===(n=e.slug)||void 0===n?void 0:n.length)&&(null===z||void 0===z||null===(t=z.query)||void 0===t?void 0:t.slug[1])&&T(null===z||void 0===z||null===(i=z.query)||void 0===i?void 0:i.slug[1])}),[null===z||void 0===z||null===(t=z.query)||void 0===t?void 0:t.slug]);var we=function(){var e,n=(null===window||void 0===window?void 0:window.innerHeight)-(null===window||void 0===window?void 0:window.pageYOffset)<=(null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.offsetTop);O(n)};return(0,m.useEffect)((function(){return window.addEventListener("scroll",we),function(){return window.removeEventListener("scroll",we)}}),[]),{submitFilters:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.query,i=e.pathname,o=e.gqlFilters,r=e.gqlSearchFields;x({type:w.Us.ChangeFilter,payload:{filters:(0,l.Z)({},_.filters,{filters:(0,c.Z)(o),searchFields:(0,c.Z)(r)}),queryParams:t,pathname:i,preservePage:n}})},router:z,view:b,switchState:function(e){b!==e&&(x({type:w.Us.ChangeView,payload:e}),E(e),D(!0))},loading:j,t:s,unsetLoading:function(){},countyName:L,windowSize:Z,containerRef:v,fixed:R,paginationCount:G,loadingPagination:k,adSticky:$,listTable:le,tileTable:ce,familyNoticesForCounty:de}}(0,D),R=M.router,O=M.view,F=M.switchState,k=M.loading,B=M.t,G=M.unsetLoading,H=M.countyName,z=M.submitFilters,W=M.windowSize,Y=M.containerRef,X=(M.fixed,M.paginationCount),K=M.loadingPagination,de=(M.adSticky,M.listTable),ve=M.tileTable,fe=M.familyNoticesForCounty;(0,m.useEffect)((function(){setTimeout((function(){return window.dispatchEvent(new CustomEvent("resize"))}),100)}),[L]);var he=(0,m.useMemo)((function(){return{top:(0,d.jsx)($.Z,{classNames:"gpt gpt-top my-2",id:ie.e.RESULTS_RIGHT_ONE_MPU}),topMobile:(0,d.jsx)($.Z,{classNames:"gpt gpt-top my-2 mobile-slot",id:ie.e.RESULTS_RIGHT_ONE_MPU}),middle:(0,d.jsx)($.Z,{classNames:"gpt-middle my-2",id:ie.e.RESULTS_SIDE_SECOND_MPU}),tableSlot:(0,d.jsx)($.Z,{classNames:"gpt my-2 d-none",id:ie.e.RESULTS_IN_LISTING_MPU})}}),[L,T]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"border-bottom",children:(0,d.jsx)(f.Z,{maxWidth:"md",children:(0,d.jsx)(v.u,{allowClearOnMobile:!0,submitFilters:z})})}),W===Q.Z.Mobile&&(0,d.jsx)(A,{selectedCounty:L,selectedTown:T,slug:j}),(0,d.jsx)("div",{className:"pt-10 pb-10",ref:Y,children:(0,d.jsx)(f.Z,{maxWidth:"md",children:(0,d.jsxs)("div",{className:"wrapper my-n-md-4",children:[(0,d.jsxs)("div",{className:"wrapper-main",children:[W===Q.Z.Mobile&&he.middle,(0,d.jsxs)("div",{children:[!!Z&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h1",{className:"h1 text-24 font-weight-700 font-secondary primary-900 mb-2 text-md-center",children:B("DeathNotice.List.title")}),(0,d.jsx)("div",{className:"mx-n-md-4",children:(0,d.jsx)(ae,{data:S}
1)})]}),!Z&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex justify-content-between mb-2",children:[(0,d.jsx)("h1",{className:"h1 text-24 font-weight-700 font-secondary primary-900 text-md-center",children:(0,x.qC)(B,R)}),W===Q.Z.TabletMax&&(0,d.jsx)("div",{className:"flex-shrink",children:(0,d.jsx)(A,{isDesktop:!0,selectedCounty:L,selectedTown:T,slug:j})})]}),(0,d.jsxs)("div",{className:"flex justify-content-between align-items-center mb-4 px-md-4",children:[(0,d.jsx)("div",{className:"social",children:!!(null===R||void 0===R||null===(n=R.query)||void 0===n||null===(t=n.slug)||void 0===t?void 0:t.length)&&"all"!==(null===R||void 0===R||null===(i=R.query)||void 0===i||null===(s=i.slug)||void 0===s?void 0:s[1])&&(0,d.jsx)(oe,{title:"@RIP.ie ".concat((0,_.f)(null===R||void 0===R||null===(y=R.query)||void 0===y||null===(b=y.slug)||void 0===b?void 0:b[1])),link:"https://www.facebook.com/RIP.ie".concat((0,_.f)(null===R||void 0===R||null===(E=R.query)||void 0===E||null===(N=E.slug)||void 0===N?void 0:N[1]),"/")})}),(0,d.jsx)(re,{initialView:O,switchState:F})]}),(0,d.jsxs)("div",{className:"mx-n-md-4",children:[O===p.EDataView.LIST&&(0,d.jsx)(se,{loadingPagination:K,paginationCount:X,paginationData:I,updateLoading:function(){return G()},loading:k,data:de}),O===p.EDataView.BOXES&&(0,d.jsx)(ce,{loadingPagination:K,paginationCount:X,paginationData:I,updateLoading:function(){return G()},loading:k,data:ve})]})]})]})]}),(0,d.jsxs)("div",{className:"wrapper-aside flex flex-column",children:[W>Q.Z.Mobile&&he.top,W<=Q.Z.Mobile&&he.topMobile,(0,d.jsx)(ue,{serviceDirectory:C}),(0,d.jsx)(le,{countyName:H,data:fe}),W>Q.Z.Mobile&&he.middle]})]})})})]})}},52093:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.ALL="all",e.RECENT="recent"}(i||(i={}))},26383:function(e,n,t){"use strict";t.d(n,{f:function(){return i},w:function(){return o}});var i=function(e){var n;return e?(null===(n=e.charAt(0))||void 0===n?void 0:n.toUpperCase())+e.slice(1):""},o=function(e){for(var n=null===e||void 0===e?void 0:e.split(" "),t=0;t<(null===n||void 0===n?void 0:n.length);t++){var i,o,l;n[t]=(null===n||void 0===n||null===(i=n[t])||void 0===i||null===(o=i[0])||void 0===o?void 0:o.toUpperCase())+(null===(l=n[t])||void 0===l?void 0:l.substr(1))}return(null===n||void 0===n?void 0:n.join(" "))||""}},67240:function(e,n,t){"use strict";t.d(n,{eA:function(){return l},fL:function(){return o},iC:function(){return r},oL:function(){return a}});var i=t(26383),o=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{prefix:"",title:""};return null===(e="".concat(n||""," ").concat(t||""," ").concat(t&&(null===i||void 0===i?void 0:i.title)?"(".concat("".concat(null===i||void 0===i?void 0:i.prefix," ").concat(null===i||void 0===i?void 0:i.title).trim(),")"):""," "))||void 0===e?void 0:e.trim()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return[(0,i.f)(e),(0,i.f)("all"!==n?n:"")].filter(Boolean).join(", ")},r=function(e){var n=null===e||void 0===e?void 0:e[2];return"t"!==n?n:null},a=function(e){var n;if(!e)return null;var t=null===e||void 0===e?void 0:e.indexOf("t");return-1===t?null:(0,i.w)(null===(n=e[t+1])||void 0===n?void 0:n.replace(/-/g," "))}},27087:function(e,n,t){"use strict";t.d(n,{F3:function(){return m},Gp:function(){return f},TO:function(){return h},qC:function(){return v},v5:function(){return g}});var i=t(40294),o=t(72860),l=t(50366),r=t(59677),a=t(26383),c=t(49940),s=t.n(c),u=t(67240),d=t(9713),v=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===n||void 0===n?void 0:n.query).slug,o=null===i||void 0===i?void 0:i[1];return t?e("SEO.deathNotices.recent.title"):o?"all"===o?e("SEO.deathNotices.allCounties.title"):e(t?"DeathNotice.searchResultsFilters":"SEO.deathNotices.filters.title",{personData:"".concat((0,a.f)(o)," ").concat((null===i||void 0===i?void 0:i[2])?" in "+(0,a.f)(null===i||void 0===i?void 0:i[2]):"")}):e(t?"DeathNotice.recentTitle":"SEO.deathNotices.allCounties.title")},f=function(e,n){var t=n.query,i=null===t||void 0===t?void 0:t.slug,o=(0,u.fL)(null===t||void 0===t?void 0:t[r.Q.FIRSTNAME_FIELD],null===t||void 0===t?void 0:t[r.Q.SURNAME_FIELD],{title:null===t||void 0===t?void 0:t[r.Q.NEE_FIELD],prefix:e("DeathNotice.nee")}),l=(0,u.eA)(null===i||void 0===i?void 0:i[2],null===i||void 0===i?void 0:i[1]);return l=(null===l||void 0===l?void 0:l.length)?l+", ":l,o?e("SEO.deathNotices.filters.description",{personData:o,townCounty:l}):e("SEO.deathNotices.countyTownRecent.description",{townCounty:l})},h=function(e,n){var t,i,o=(0,u.fL)(null===n||void 0===n?void 0:n[r.Q.FIRSTNAME_FIELD],null===n||void 0===n?void 0:n[r.Q.SURNAME_FIELD],{title:null===n||void 0===n?void 0:n[r.Q.NEE_FIELD],prefix:e("DeathNotice.nee")}),l=(0,u.eA)(null===n||void 0===n||null===(t=n.town)||void 0===t?void 0:t.name,null===n||void 0===n||null===(i=n.county)||void 0===i?void 0:i.name);return e("SEO.deathNotices.preview.title",{personData:"".concat(o).concat((null===l||void 0===l?void 0:l.length)?" (".concat(l,")"):"")})},m=function(e,n){var t,i,o=(0,u.fL)(null===n||void 0===n?void 0:n[r.Q.FIRSTNAME_FIELD],null===n||void 0===n?void 0:n[r.Q.SURNAME_FIELD],{title:null===n||void 0===n?void 0:n[r.Q.NEE_FIELD],prefix:e("DeathNotice.nee")});return e("SEO.deathNotices.preview.description",{personData:o,townCounty:(0,u.eA)(null===n||void 0===n||null===(t=n.town)||void 0===t?void 0:t.name,null===n||void 0===n||null===(i=n.county)||void 0===i?void 0:i.name),createdAt:(null===n||void 0===n?void 0:n.dateOfDeath)?", on "+s()(null===n||void 0===n?void 0:n.dateOfDeath).format(l.D.DATE_VIEW_FULL):""})},g=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=e.query,r=Number(null===(n=(null===l||void 0===l?void 0:l.page)||1)||void 0===n?void 0:n.toString()),a=(0,i.Z)((null===l||void 0===l?void 0:l.slug)||[],3),c=(a[0],a[1]),s=a[2],u=(null===l||void 0===l?void 0:l.slug)?"".concat("https://rip.ie").concat((0,o.J)({county:c,town:s},"death-notice")):"".concat("https://rip.ie").concat(t?d.b.LAYOUT.MENU.deathNotices:d.b.LAYOUT.MENU.deathNoticesRecent);return 1===r?u:"".concat(u,"?page=").concat(l.page)}},98770:function(e,n,t){"use strict";t.d(n,{N:function(){return o},V:function(){return l}});var i=function(){document.querySelectorAll(".dynamic-table-insertion").forEach((function(e){e.remove()}))},o=function(e,n){var t=function(t){var i=setInterval((function(){t.children[20]&&(!function(){var i=document.createElement("div");i.innerHTML='<div id="'.concat(e,'" class="gpt" data-fuse="').concat(e,'"></div>'),i.className="dynamic-table-insertion flex justify-content-center";var o=t.children[20];o&&(t.insertBefore(i,o),n&&setTimeout(n,100))}(),clearInterval(i))}),400);setTimeout((function(){return clearInterval(i)}),5e3)};i();var o=setInterval((function(){var e=document.querySelectorAll('[role="rowgroup"]')[1];e&&(setTimeout((function(){return t(e)}),100),clearInterval(o))}),400);setTimeout((function(){return clearInterval(o)}),5e3)},l=function(e,n){i();var t=document.querySelectorAll('[role="rowgroup"]')[1];t&&setTimeout((function(){return function(t){t.children[20]&&function(){var i=document.createElement("div");i.innerHTML='<div id="'.concat(e,'" class="gpt"></div>'),i.className="dynamic-table-insertion flex justify-content-center";var o=t.children[20];o&&(t.insertBefore(i,o),n&&setTimeout(n,100))}()}(t)}),100)}},36089:function(e,n,t){"use strict";t.d(n,{F:function(){return o}});var i=t(15117),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=(0,i.mB)((null===e||void 0===e?void 0:e.length)?e:"/death-notice/".concat(null===n||void 0===n?void 0:n.join("/")),{}),o=t.filters.findIndex((function(e){return e.field===i.Kp.ARRANGEMENT_FIELD}));return o>-1&&t.filters.splice(o,1),t}},69694:function(e,n,t){"use strict";t.d(n,{E:function(){return o}});var i=t(23478),o=function(e){return e<=i.Z.MobileMax?"MobileMax":e<=i.Z.Mobile?"Mobile":e<=i.Z.TabletMax?"TabletMax":"Desktop"}},66496:function(e){e.exports={"sd-list":"ServiceDirectoryItems_sd-list__KCeye","sd-list-column":"ServiceDirectoryItems_sd-list-column__thmVV","sd-list-column-second":"ServiceDirectoryItems_sd-list-column-second__QGeQ2","sd-list-column-item":"ServiceDirectoryItems_sd-list-column-item__N_RV1","sd-list-column-item-icon":"ServiceDirectoryItems_sd-list-column-item-icon__QQhmf","sd-list-column-item-title":"ServiceDirectoryItems_sd-list-column-item-title__ObgyR","sd-list-column-item-count":"ServiceDirectoryItems_sd-list-column-item-count__ULnNG"}}}]);
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.