1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8935],{83361:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fds/dashboard/family-notices/[[...slug]]",function(){return t(1014)}])},1014:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return k},default:function(){return D}});var i=t(33803),s=t(6993),n=t(82422),r=t(61334),d=t(73870),l=t(16888),o=t(40294),c=t(44276),u=t(15604),f=t(3516),m=t(17161),h=t(42035),v=t(11403),p=t.n(v),w=t(23478),y=t(8543),x=t(53610),N=t(41693),b=t(84174),j=t(47273),g=t(35928),F=t(9713),_=t(6121),S=t.n(_),Z=t(52891),C=t(76059),E=t(67580),q=t(75463),P=t(62123),R=p()((function(){return t.e(130).then(t.bind(t,50130))}),{loadableGenerated:{webpack:function(){return[50130]}},ssr:!1}),T=function(e){var a=e.deathNoticeList,t=e.messageForFuneralDirector,n=e.hideMap,r=e.alwaysShowFNColumn,v=(0,m.useContext)(x.c4),p=v.state,_=v.dispatch,T=(0,d.Z)().t,k=(0,m.useState)("m"),D=k[0],O=k[1],M=(0,y.d)().width,L=(0,m.useState)(!1),X=L[0],A=L[1],I=(0,m.useRef)(!1),U=(0,h.useRouter)(),B=(0,g.useSession)(),H=(B.data,B.status,(0,m.useState)(null===p||void 0===p?void 0:p.timestamp)),$=H[0],z=(H[1],(0,m.useCallback)((function(){P.B.forEach((function(e){return(0,E.$H)(e)}))}),[]));(0,C.$)(z),(0,m.useEffect)((function(){O(M>=w.Z.TabletMax?"m":"s")}),[M]);(0,m.useEffect)((function(){if(null===I||void 0===I?void 0:I.current){var e=(0,o.Z)(p.orders||[],1)[0];if(p.pathname){var a={pathname:p.pathname,query:(0,l.Z)((0,i.Z)({page:p.page},p.queryParams),{sortField:null===e||void 0===e?void 0:e.field,sortDir:null===e||void 0===e?void 0:e.type,view:null===p||void 0===p?void 0:p.view})};null===a||void 0===a||delete a.query.view;var t=(0,N.X)(window.location.pathname+window.location.search).replace(/%20/g,"+"),s=(0,N.X)(a.pathname+"?"+new URLSearchParams(null===a||void 0===a?void 0:a.query));if($!==(null===p||void 0===p?void 0:p.timestamp))return A(!0),void U.push(a,void 0,{scroll:!1});if(t===s)return;A(!0),U.push(a,void 0)}}else I.current=!0}),[p]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"h2 font-secondary primary-900 mb-2",children:T("fd-family-notices:FamilyNotices.title")}),(0,s.jsx)("div",{className:"flex justify-content-between mb-md-4 flex-wrap",children:(0,s.jsx)(S(),{prefetch:!1,href:F.b.LAYOUT.TOBAR.fdDeathNoticeAdd,passHref:!0,children:(0,s.jsx)(f.Z,{"data-cy":"add-dn-btn",className:"px-5 mb-sm-2",size:D,variant:"primary-light",disableRipple:!0,startIcon:(0,s.jsx)(R,{}),children:T("fd-family-notices:FamilyNotices.add")})})}),(null===t||void 0===t?void 0:t.message)&&(0,s.jsx)(Z.I,{message:null===t||void 0===t?void 0:t.message}),(0,s.jsx)("div",{children:(0,s.jsx)(u.u,{instantSearch:!0,allowClearOnMobile:!0,customFieldNames:{countyField:"mainCounty.name",townField:"mainTown.slug"},titleText:(0,s.jsx)("div",{className:"text-15 font-weight-700",children:T("fd-family-notices:FamilyNotices.filterNotices")}),listName:"fds/dashboard/family-notices",fdSearch:!0,submitFilters:function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.query,s=e.pathname,n=e.gqlFilters,r=e.gqlSearchFields;_({type:x.Us.ChangeFilter,payload:{filters:(0,i.Z)({},p.filters,{filters:(0,c.Z)(n),searchFields:(0,c.Z)(r)}),queryParams:t,pathname:s,preservePage:a}})}})}),(0,s.jsxs)("div",{className:"flex pt-md-6 flex-wrap-md",children:[(0,s.jsx)("div",{className:"w-100 pr-4 pr-md-0",children:(0,s.jsx)(b.K,{hideMap:n,customDateSearch:!0,alwaysShowFNColumn:r,updateLoading:function(){setTimeout((function(){return A(!1)}),0)},loading:X,data:a})}),(0,s.jsx)("div",{className:"pt-md-10 gpt-150-container",children:(0,s.jsx)(j.R,{})})]})]}),(0,s.jsx)(q.Z,{})]})},k=!0,D=function(e){var a=(0,d.Z)().t,t=(0,h.useRouter)(),l=e.list,o=(0,m.useReducer)(x._k,(0,x.eD)(t,l,"fds/dashboard/family-notices","/fds/dashboard/family-notices")),c=o[0],u=o[1];return(0,s.jsx)(n.f,{alwaysNoIndex:!0,metaData:{title:(0,r.b)(a("fd-dashboard:SEO.familyNotices.title"))},children:(0,s.jsx)(x.c4.Provider,{value:{state:c,dispatch:u},children:(0,s.jsx)(T,(0,i.Z)({hideMap:!0,alwaysShowFNColumn:!1},e))})})}}},function(e){e.O(0,[4466,712,4799,2325,7861,469,1286,9940,2826,8513,8116,6031,2448,4038,1500,3289,3448,6395,9774,2888,179],(function(){return a=83361,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.