1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5318],{51251:function(e,t,i){"use strict";var n,o=i(17161);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},d.apply(null,arguments)}t.Z=function(e){return o.createElement("svg",d({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12 13.286 5.524-5.524L19 9.238l-7 7-7-7 1.476-1.476L12 13.286Z",fill:"#80786A"})))}},46179:function(e,t,i){"use strict";i.d(t,{m:function(){return v}});var n=i(33803),o=i(16888),d=i(44276),r=i(6993),l=i(51251),c=i(10469),u=i(22826),a=i(73870),s=i(17161),f=i(62657),v=(0,s.forwardRef)((function(e,t){var i,v,g,h,p=(0,a.Z)("common").t,b=(0,f.in)(),y=(0,s.useState)((null===e||void 0===e?void 0:e.static)&&(null===e||void 0===e||null===(i=e.options)||void 0===i?void 0:i.length)?null===e||void 0===e?void 0:e.options:[]),m=y[0],w=y[1],x=(0,s.useState)((null===e||void 0===e?void 0:e.static)&&(null===e||void 0===e||null===(v=e.options)||void 0===v?void 0:v.length)?null===e||void 0===e?void 0:e.options:[]),N=x[0],F=x[1],C=(0,s.use
1State)(!1),_=C[0],j=C[1],W=(0,s.useState)(""),D=W[0],O=W[1],Z=function(t){j(!0);var i=(0,n.Z)({},null===e||void 0===e?void 0:e.variables);i.input=(0,n.Z)({},i.input,{search:D}),b.query({query:null===e||void 0===e?void 0:e.query,variables:i,fetchPolicy:"no-cache",context:(null===e||void 0===e?void 0:e.context)||{}}).then((function(i){j(!1);var n=i.data[e.fieldName].records;n=n||i.data[e.fieldName]||[],n=function(t){var i=(0,d.Z)(t);if(Array.isArray(t)&&t.length&&(null===e||void 0===e?void 0:e.ascSortField)){var n=null===e||void 0===e?void 0:e.ascSortField;return i.sort((function(e,t){return e[n]<t[n]?-1:e[n]>t[n]?1:0}))}return i}((null===e||void 0===e?void 0:e.transformResponse)?null===e||void 0===e?void 0:e.transformResponse(n):n),w(n),F(n),t&&t(n)})).catch((function(){j(!1)}))};(0,s.useEffect)((function(){!(null===e||void 0===e?void 0:e.query)&&!e.disabled||(null===e||void 0===e?void 0:e.static)||Z(null===e||void 0===e?void 0:e.setInitialOption)}),[]),(0,s.useImperativeHandle)(t,(function(){return{getItems:function(e){setTimeout((function(){return Z(e)}),10)},getItemsWithInitialOptions:function(){((null===e||void 0===e?void 0:e.query)||e.disabled)&&Z(null===e||void 0===e?void 0:e.setInitialOption)},getRecords:function(){return m},filterList:function(e){e&&F(e(m))}}}));return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.Z,{className:"".concat((null===e||void 0===e?void 0:e.error)?"Mui-error":""," ").concat((null===e||void 0===e?void 0:e.className)||""),options:N,freeSolo:e.freeSolo||!1,autoHighlight:!0,ref:null===(g=e.field)||void 0===g?void 0:g.ref,value:(null===e||void 0===e||null===(h=e.field)||void 0===h?void 0:h.value)||null,getOptionLabel:function(t){return t[e.optionName]},popupIcon:(0,r.jsx)(l.Z,{}),loading:_,isOptionEqualToValue:function(t,i){return(null===e||void 0===e?void 0:e.uuid)?t[e.uuid]===i[e.uuid]:t.id===i.id},onChange:function(t,i){return function(t,i){var n;null===e||void 0===e||null===(n=e.field)||void 0===n||n.onChange(i||""),(null===e||void 0===e?void 0:e.onChange)&&(null===e||void 0===e||e.onChange(t,i))}(t,i)},disabled:(null===e||void 0===e?void 0:e.disabled)||!1,readOnly:(null===e||void 0===e?void 0:e.readOnly)||!1,ListboxProps:{style:{maxHeight:"16rem"}},renderInput:function(t){return(0,r.jsx)(c.Z,(0,o.Z)((0,n.Z)({type:"text"},e.field,t),{onChange:function(e){return O(e.target.value)},label:(null===e||void 0===e?void 0:e.customTextLabel)?null===e||void 0===e?void 0:e.textFieldLabel:p(null===e||void 0===e?void 0:e.textFieldLabel),inputProps:(0,o.Z)((0,n.Z)({},t.inputProps,{autoComplete:"off"}),{"data-cy":(null===e||void 0===e?void 0:e.testLabel)||"",readOnly:(null===e||void 0===e?void 0:e.inputPropsReadOnly)||!1})}))}})})}))},45318:function(e,t,i){"use strict";i.d(t,{X:function(){return w}});var n=i(40294),o=i(6993),d=i(17161),r=i(67982),l=i.n(r),c=i(73870),u=i(11403),a=i.n(u),s=i(9713),f=i(3516),v=i(85172),g=i(46179),h=i(93366),p=i(10789),b=a()((function(){return i.e(3032).then(i.bind(i,43032))}),{loadableGenerated:{webpack:function(){return[43032]}},ssr:!1}),y=a()((function(){return i.e(573).then(i.bind(i,573)).then((function(e){return e.FdWidgetDeathNoticeItem}))}),{loadableGenerated:{webpack:function(){return[573]}}}),m=a()((function(){return i.e(7364).then(i.bind(i,57364)).then((function(e){return e.FdWidgetDeathNoticesNoData}))}),{loadableGenerated:{webpack:function(){return[57364]}}}),w=function(e){var t,i,r,u=e.widget,a=e.code,w=e.iFrame,x=void 0!==w&&w,N=(0,h.cI)(),F=N.control,C=N.watch,_=function(e){var t=e.widget,i=null===t||void 0===t?void 0:t.type;return i&&i===v.hQz.County?{text:"fd-widget:Widget.countyDeathNotices",opts:{county:t.county.name}}:{text:"fd-widget:Widget.recentDeathNotices"}}(u),j=(null===u||void 0===u||null===(t=u.widget)||void 0===t?void 0:t.widgetSettings)||{},W=(null===u||void 0===u||null===(i=u.widget)||void 0===i?void 0:i.type)===v.hQz.Global,D=j.backgroundColor,O=void 0===D?void 0:D,Z=j.fontFamily,k=void 0===Z?void 0:Z,L=j.headerBackgroundColor,I=void 0===L?void 0:L,S=j.headerFontColor,P=void 0===S?void 0:S,R=j.fontSize,E=void 0===R?void 0:R,q=j.fontWeight,z=void 0===q?void 0:q,M=j.footerBackgroun
1dColor,A=void 0===M?void 0:M,T=j.footerFontColor,U=void 0===T?void 0:T,B=(0,c.Z)().t,G=(0,d.useRef)(null),Q=null===(r=C("county"))||void 0===r?void 0:r.id,H=(0,d.useState)([]),X=H[0],J=H[1],V=(0,n.Z)((0,p.t)(Q?v.pL9:v.laF,{fetchPolicy:"no-cache",variables:{code:a,countyId:Q},onCompleted:function(e){"getDeathNoticesInCountyForWidget"in e?J(e.getDeathNoticesInCountyForWidget.records):"getWidgetData"in e&&J(e.getWidgetData.records)},onError:function(e){console.error("Error fetching death notices:",e)}}),2),Y=V[0],K=V[1].loading;return(0,d.useEffect)((function(){x||(null===G||void 0===G?void 0:G.current)?J(u.records):G.current=!0}),[null===u||void 0===u?void 0:u.records]),(0,o.jsxs)("div",{className:l()["fd-widget"],style:{backgroundColor:O,fontFamily:k},children:[(0,o.jsx)("div",{className:l()["fd-widget-header"],style:{backgroundColor:I,color:P},children:(0,o.jsx)("div",{className:"px-4 font-weight-600",children:B(_.text,(null===_||void 0===_?void 0:_.opts)||{})})}),(0,o.jsxs)("div",{className:l()["fd-widget-center"],style:{borderLeft:"1px solid ".concat(I),borderRight:"1px solid ".concat(I)},children:[W&&(0,o.jsx)("div",{className:l()["fd-widget-filters"],children:(0,o.jsx)(h.Qr,{name:"county",control:F,render:function(e){var t=e.field;return(0,o.jsx)(g.m,{className:"select-contrast-placeholder",field:t,optionName:"name",query:v.uz1,variables:{input:{page:1,records:100}},onChange:function(e,i){t.onChange(i),Y()},testLabel:"filter-counties-field",fieldName:"getCountiesForFilters",textFieldLabel:"DeathNotice.searchBar.counties"})}})}),(0,o.jsxs)("div",{className:l()["fd-widget-center-scroll"],style:{fontSize:"".concat(E,"px"),fontWeight:z},children:[!K&&(null===X||void 0===X?void 0:X.map((function(e,t){return(0,o.jsx)(y,{notice:e,widgetSettings:j},t)}))),(K||!(null===X||void 0===X?void 0:X.length))&&(0,o.jsx)(m,{data:X})]})]}),(0,o.jsx)("div",{className:l()["fd-widget-footer"],style:{border:"1px solid ".concat(I)},children:(0,o.jsx)("a",{target:"_blank",rel:"noreferrer",href:s.b.LAYOUT.MENU.deathNoticesRecent,children:(0,o.jsx)(f.Z,{endIcon:(0,o.jsx)(b,{}),size:"m",disableRipple:!0,className:"flex line-height-17 ".concat(l()["fd-widget-footer-btn"]),fullWidth:!0,"data-cy":"btn-view-all",style:{backgroundColor:A,color:U,fontFamily:k,fontSize:"".concat(E,"px"),fontWeight:z},children:B("fd-widget:Widget.viewAll")})})})]})}},67982:function(e){e.exports={"fd-widget":"FdWidgetDeathNotices_fd-widget__ME22p","fd-widget-header":"FdWidgetDeathNotices_fd-widget-header__SzMMB","fd-widget-filters":"FdWidgetDeathNotices_fd-widget-filters__qZ8Dx","fd-widget-center":"FdWidgetDeathNotices_fd-widget-center__ZOGWL","fd-widget-center-scroll":"FdWidgetDeathNotices_fd-widget-center-scroll__TUWBI","fd-widget-footer":"FdWidgetDeathNotices_fd-widget-footer__U5WCF","fd-widget-footer-btn":"FdWidgetDeathNotices_fd-widget-footer-btn__PLXC4"}},10789:function(e,t,i){"use strict";i.d(t,{t:function(){return u}});var n=i(96597),o=i(17161),d=i(14500),r=i(19876),l=i(52013),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var i=(0,r.A)((0,l.x)(t&&t.client),e),u=(0,o.useRef)(),a=u.current?(0,d.J)(t,u.current):t,s=i.useQuery((0,n.pi)((0,n.pi)({},a),{skip:!u.current})),f=s.observable.options.initialFetchPolicy||i.getDefaultFetchPolicy(),v=Object.assign(s,{called:!!u.current}),g=(0,o.useMemo)((function(){for(var e={},t=function(t){var n=v[t];e[t]=function(){return u.current||(u.current=Object.create(null),i.forceUpdate()),n.apply(this,arguments)}},n=0,o=c;n<o.length;n++){t(o[n])}return e}),[]);return Object.assign(v,g),[(0,o.useCallback)((function(e){u.current=e?(0,n.pi)((0,n.pi)({},e),{fetchPolicy:e.fetchPolicy||f}):{fetchPolicy:f};var t=i.asyncUpdate().then((function(e){return Object.assign(e,g)}));return t.catch((function(){})),t}),[]),v]}}}]);
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.