PageSourceSearch

https://www.cheshirewestandchester.gov.uk/_Nl7gMQ_7d09d6bc-3417-44…/js/listing.page.41ed7bebed703e7d25ed.mjs

js cheshirewestandchester.gov.uk collected 2026-09-24 08:58:30 UTC 12,259 bytes, 186 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[840],{13641(j,v,l){l.d(v,{A:()=>E});var e=l(48322),S=l(97154),t=l.n(S),c=l(88194);const f=c.default.nav`
2  ${({theme:{colors:i},isEnvelope:m})=>(0,c.css)`
3      margin-bottom: 1.6rem;
4      .header {
5        display: flex;
6        justify-content: space-between;
7        align-items: center;
8        color: ${i.primary.white};
9        background-color: ${i.primary.violet};
10
11        & > h4 {
12          font-size: 24px;
13          font-weight: 500;
14          flex: 1 1 auto;
15        }
16        & > svg {
17          fill: white;
18          height: 5.5rem;
19          flex: 0 0 25%;
20        }
21        padding: ${m?"0 0 0 2.4rem ":"1.4rem 2.4rem 1.4rem 2.4rem"}};
22      }
23
24      .body {
25        padding: 2rem 2.4rem;
26        background-color: ${i.secondary.almostWhite};
27        a {
28          padding: 1.4rem 1rem;
29        }
30      }
31
32      .asideButton {
33        max-width: fit-content;
34        margin: 3rem auto 0 auto;
35        display: block;
36        padding: 1.3rem 4.5rem;
37        /* font-size: 1.9rem; */
38      }
39
40      h4 {
41        font-weight: 500;
42        margin: 1.4rem 0;
43      }
44
45      .aside_icon {
46        width: 2.8rem;
47      }
48    `}
49`;var L=l(34341),F=l(47161),P=l(42965),y=l(24216);const h=({title:i,icon:m,text:b,button:x})=>{var D,T;if(!i)return null;const{label:z,url:R}=x,C=i.includes("Stay up-to-date");return e.createElement(f,{isEnvelope:C},i&&e.createElement("div",{className:"header"},e.createElement("h4",null,i),m&&e.createElement(y.A,{icon:m,className:"aside_icon"}),C&&e.createElement(P.A,{name:"Envelope"})),e.createElement("div",{className:"body"},b&&e.createElement(F.A,{content:b}),x&&e.createElement(L.A,{title:z,url:R||((T=(D=x.entry)==null?void 0:D.sys)==null?void 0:T.url),className:"asideButton"})))};h.propTypes={title:t().string,icon:t().string,text:t().string,button:t().object};const E=h},73594(j,v,l){l.d(v,{A:()=>h});var e=l(48322),S=l(97154),t=l.n(S),c=l(54986),N=l(68429),f=l(88194);const F=f.default.div`
50  ${()=>(0,f.css)`
51      max-width: 500px;
52      margin: 0 auto;
53
54      .facebook {
55        margin: 0 auto;
56        margin-top: 2.8rem;
57      }
58    `}
59`;var P=l(99469);const y=({twitterName:E,height:i,facebookUrl:m})=>{const b=(0,P.A)();return e.createElement(F,null,E&&e.createElement("div",{className:"twitt"},e.createElement(c.CU,{sourceType:"profile",screenName:E,options:{height:i}})),m&&e.createElement("div",{className:"facebook"},e.createElement("h3",null,"Facebook"),e.createElement(N.SI,{appId:"3025471314357881"},e.createElement(N.YW,{href:m,tabs:"timeline",height:i,width:b.width}))))};y.propTypes={twitterName:t().string,height:t().number,facebookUrl:t().string,facebookTextButton:t().string};const h=y},92990(j,v,l){l.d(v,{A:()=>e.A});var e=l(40424)},95081(j,v,l){l.r(v),l.d(v,{default:()=>Pe});var e=l(48322),S=l(97154),t=l.n(S),c=l(71114),N=l(52127),f=l(22979),L=l(38990),F=l(26004),P=l(34706),y=l(60559),h=l(99562),E=l(95769),i=l(41698),m=l(42584),b=l(47952),x=l(88194);const T=x.default.div`
60  ${({theme:n,isOpen:a})=>(0,x.css)`
61      border-top: 1px solid #ecebeb;
62      border-bottom: 1px solid #ecebeb;
63      .list {
64        list-style-type: none;
65        padding: 0;
66        margin: 0;
67        display: flex;
68        flex-wrap: wrap;
69        margin: 16px -5px 0;
70        border-bottom: ${a?`2px solid ${n.colors.primary.purple}`:"none"};
71        @media ${n.mediaQueries.large} {
72          border-bottom: none;
73          justify-content: space-between;
74          margin: 16px 0;
75        }
76      }
77
78      .item {
79        display: flex;
80        text-align: center;
81        padding: 0 5px;
82        margin-bottom: 16px;
83
84        @media ${n.mediaQueries.large} {
85          padding: 0;
86        }
87      }
88
89      .input {
90        &:hover {
91          & + .label {
92            border: 2px solid grey;
93          }
94        }
95
96        &:focus {
97          & + .label {
98            border: 2px dotted grey;
99          }
100        }
101
102        &:checked {
103          & + .label {
104            color: black;
105            border: 2px solid black;
106            background-color: black;
107            font-weight: 700;
108          }
109        }
110      }
111
112      .input_visually-hidden {
113        visibility: hidden;
114        height: 0px;
115        width: 0px;
116
117        &:checked {
118          & + .label {
119            color: ${n.colors.primary.white};
120            background-color: ${n.colors.primary.parishColor};
121            font-weight: 700;
122          }
123        }
124      }
125
126      .label {
127        height: 30px;
128        width: 25px;
129        display: flex;
130        justify-content: center;
131        align-items: center;
132        border-bottom: 2px solid ${n.colors.primary.darkGrey};
133        border-radius: 2px;
134        cursor: pointer;
135        transition: ${"blue all"};
136
137        &:hover {
138          background-color: ${n.colors.primary.grey};
139        }
140
141        &:focus {
142          border: 2px dotted grey;
143        }
144
145        @media ${n.mediaQueries.large} {
146          height: 24px;
147          width: 24px;
148        }
149      }
150
151      .toggleButton {
152        width: 100%;
153        margin-top: 16px;
154        padding-bottom: 1.6rem;
155
156        display: flex;
157        justify-content: space-between;
158        align-items: center;
159
160        background-color: rgba(0, 0, 0, 0);
161        border: none;
162        border-bottom: ${a?"none":`2px solid ${n.colors.primary.purple}`};
163
164        color: ${n.colors.primary.purple};
165      }
166
167      .buttonOpen {
168        border-bottom: none;
169      }
170
171      .titleButton {
172        font-size: 2rem;
173        line-height: 2.8rem;
174        font-weight: 500;
175        margin: 0;
176      }
177
178      svg > path {
179        fill: ${n.colors.primary.purple};
180      }
181
182      svg {
183        transform: ${a?"rotate(180deg)":"none"};
184      }
185    `}
186`;var z=l(99469),R=l(42965);const C=({items:n,filter:a,updateSelectedFilters:o})=>{const[$,H]=(0,e.useState)(!1);let O=(0,z.A)();const A=()=>H(!$);return e.createElement(T,{isOpen:$},O.width>1024?e.createElement("ul",{className:"list"},n.map(({title:u,key:p,isSelected:d})=>e.createElement("li",{key:u,className:"item"},e.createElement("input",{className:"input_visually-hidden",type:"checkbox",id:p,name:a,value:u,checked:d,onChange:()=>o(a,p)}),e.createElement("label",{className:"label",htmlFor:p},u.toUpperCase())))):e.createElement(e.Fragment,null,e.createElement("button",{onClick:A,className:"toggleButton"},e.createElement("p",{className:"titleButton"},"Filters"),e.createElement(R.A,{name:"ChevronDown",height:24,width:20})),$&&e.createElement("ul",{className:"list"},n.map(({title:u,key:p,isSelected:d})=>e.createElement("li",{key:u,className:"item"},e.createElement("input",{className:"input_visually-hidden",type:"checkbox",id:p,name:a,value:u,checked:d,onChange:()=>o(a,p)}),e.createElement("label",{className:"label",htmlFor:p},u.toUpperCase()))))))};C.propTypes={title:t().string,items:t().array,filter:t().string,onFacetSelect:t().func,updateSelectedFilters:t().func,results:t().array};const ve=C;var ge=l(76383),fe=l(13641),ye=l(73594),he=Object.defineProperty,Ee=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,G=(n,a,o)=>a in n?he(n,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[a]=o,U=(n,a)=>{for(var o in a||(a={}))xe.call(a,o)&&G(n,o,a[o]);if(Q)for(var o of Q(a))Ae.call(a,o)&&G(n,o,a[o]);return n},W=(n,a)=>Ee(n,be(a));const X=({title:n,subtitle:a,button:o,updateCurrentFacet:$,updatePageIndex:H,updateSelectedFilters:O,currentListing:A,listing:u,isLoading:p,paging:d,results:g,fallbackImage:Ce,filters:J,showCategory:V,asideContent:s,socialEmbed:Z,hideAside:I,eventsListing:$e})=>{var k,q,_,ee,te,le,ne,ae,oe,re,se,ie;const[ce,de]=(0,e.useState)(!1),[we,Le]=(0,e.useState)(!1),[K,Te]=(0,e.useState)(!1),[Oe,Ie]=(0,e.useState)(!1),[Be,je]=(0,e.useState)(!1),me=(0,i.A)(m.HP.large),De=J==null?void 0:J.letter,ue=(0,N.W6)();(0,e.useEffect)(()=>{Le(me),n.toLowerCase().includes("parish councils")&&Te(!0),K&&ue.push("/your-council/councillors-and-committees/town-and-parish-councils/contact-details-for-town-and-parish-councils?letter=a"),V&&Ie(!0),V||je(!0)},[me,n,ue,K,V]),(0,e.useEffect)(()=>{if(!ce||!g)return;de(!1);const r=document.getElementById("focus-target");r&&g&&g.length&&setTimeout(()=>{r.focus(),window.scrollTo({top:r.offsetTop-100,behavior:"smooth"})},100)},[ce,g]);const ze=()=>{var r,B;location=((r=window==null?void 0:window.location)==null?void 0:r.origin)+((B=window==null?void 0:window.location)==null?void 0:B.pathname)},Re=r=>{de(!0),H(r)},Ue=d&&d.pageCount>1,w=d.totalCount,pe=d.pageIndex*d.pageSize+1;let M=pe+d.pageSize-1;M>w&&(M=w);const We={total:w,resultsText:w>0?`Displaying ${pe} - ${M} of ${w} results`:"No results returned"},He={label:(k=s==null?void 0:s.globalButton)==null?void 0:k.label,url:((q=s==null?void 0:s.globalButton)==null?void 0:q.url)||((ee=(_=s==null?void 0:s.globalButton)==null?void 0:_.entry)==null?void 0:ee.url)||((ne=(le=(te=s==null?void 0:s.globalButton)==null?void 0:te.entry)==null?void 0:le.sys)==null?void 0:ne.uri)};return e.createElement(f.A,null,e.createElement(c.f,null,e.createElement(c.V,null,e.createElement("h1",{className:"search-title"},n||"Listing"),K&&e.createElement("div",{className:"contact"},e.createElement("p",null,a),e.createElement(ge.A,{title:(o==null?void 0:o.label)||((ae=o==null?void 0:o.entry)==null?void 0:ae.entryTitle),url:((oe=o==null?void 0:o.entry)==null?void 0:oe.url)||((se=(re=o==null?void 0:o.entry)==null?void 0:re.sys)==null?void 0:se.uri)}))),e.createElement(c.V,{large:I?12:9},e.createElement("section",{className:"search-results"},!p&&e.createElement(F.A,W(U({},We),{className:"resultsInfo"})),A==="parishCouncil"&&e.createElement(ve,W(U({},De),{updateSelectedFilters:O,results:g})),e.createElement("div",{id:"focus-target",tabIndex:"-1"},e.createElement(P.A,{text:"New results loaded. Press tab to focus the first result"})),g&&e.createElement("nav",{className:I?"fullWidth":null},e.createElement("ul",{style:{padding:"0"}},g==null?void 0:g.map(r=>e.createElement("li",{key:r==null?void 0:r.id,style:{listStyle:"none"}},e.createElement(E.A,W(U({},r),{fallbackImage:Ce,className:I?"ListingCard--no-aside":null,eventListing:$e})))))),Ue&&e.createElement(h.A,{paging:d,updatePageIndex:Re})),A!=="parishCouncil"&&Oe&&e.createElement(b.A,{currentFacet:A,facets:{[A]:u},updateCurrentFacet:$,updateSelectedFilters:O,clearFilters:ze,isDesktop:we,displayDesktop:!1})),!I&&e.createElement(c.V,{large:3},e.createElement("aside",{className:"search-controls"},e.createElement("div",{id:"filters-portal"},Be&&e.createElement(e.Fragment,null,s&&e.createElement(fe.A,{title:s==null?void 0:s.title,text:s==null?void 0:s.text,button:He,icon:(ie=s==null?void 0:s.icon)==null?void 0:ie.internalLink}),Z==null?void 0:Z.map((r,B)=>
186e.createElement(ye.A,{key:B,twitterName:r.displayTweeterName,height:r.heightForTwitterTimeline,facebookUrl:r.facebookURL}))))))))};X.propTypes={title:t().string,subtitle:t().string,button:t().object,className:t().string,currentListing:t().string,currentPageIndex:t().number,currentTabIndex:t().number,filters:t().object,listing:t().object,featured:t().array,isLoading:t().bool,paging:t().object,results:t().array,resultsInfo:t().object,searchTerm:t().string,tabsAndFacets:t().array,updateCurrentFacet:t().func,updateCurrentTab:t().func,updatePageIndex:t().func,updateSearchTerm:t().func,updateSelectedFilters:t().func,clearFilters:t().func,sortOrder:t().array,updateSortOrder:t().func,fallbackImage:t().string,showCategory:t().bool,asideContent:t().object,socialEmbed:t().array,hideAside:t().bool,eventsListing:t().bool};const Se=(0,L.Xy)(y.A)(X);var Ne=l(92990),Fe=l(90473);const Y=({entry:n,fallbackImage:a})=>n?e.createElement(Ne.A,null,e.createElement(c.f,null,e.createElement(c.V,null,e.createElement(Se,{title:n.entryTitle,fallbackImage:a,subtitle:n==null?void 0:n.subtitle,button:n==null?void 0:n.globalButton,showCategory:n==null?void 0:n.showFilterByCategory,asideContent:n==null?void 0:n.asideContent,socialEmbed:n==null?void 0:n.globalSocialEmbed,hideAside:n==null?void 0:n.hideAsideContent,eventsListing:n==null?void 0:n.eventsListing})))):null;Y.propTypes={entry:t().object,fallbackImage:t().string};const Pe=(0,Fe.A)(Y)}}]);

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.