northants-design-system 1.5.2 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +648 -211
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +648 -212
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +4 -0
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +3 -0
- package/build/library/structure/EventList/EventList.types.d.ts +18 -0
- package/build/library/structure/Header/Header.types.d.ts +3 -0
- package/build/library/structure/PageStructures.d.ts +2 -1
- package/package.json +3 -1
package/build/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var require$$1$1 = require('url');
|
|
|
7
7
|
var require$$1 = require('fs');
|
|
8
8
|
var axios = require('axios');
|
|
9
9
|
var reactHookForm = require('react-hook-form');
|
|
10
|
+
var ssr = require('@cludosearch/cludo-search-components/ssr');
|
|
10
11
|
var reactWrapper = require('@googlemaps/react-wrapper');
|
|
11
12
|
|
|
12
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1578,9 +1579,9 @@ function requireReactIs_production_min () {
|
|
|
1578
1579
|
hasRequiredReactIs_production_min = 1;
|
|
1579
1580
|
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
1580
1581
|
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
1581
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return
|
|
1582
|
+
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return false};reactIs_production_min.isConcurrentMode=function(){return false};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
1582
1583
|
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
1583
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)
|
|
1584
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
|
|
1584
1585
|
return reactIs_production_min;
|
|
1585
1586
|
}
|
|
1586
1587
|
|
|
@@ -1821,7 +1822,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1821
1822
|
|
|
1822
1823
|
var reactIsExports = reactIs.exports;
|
|
1823
1824
|
|
|
1824
|
-
const t=t=>"object"==typeof t&&null!=t&&1===t.nodeType,e=(t,e)=>(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t),n=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const o=getComputedStyle(t,null);return e(o.overflowY,n)||e(o.overflowX,n)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return
|
|
1825
|
+
const t=t=>"object"==typeof t&&null!=t&&1===t.nodeType,e=(t,e)=>(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t),n=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const o=getComputedStyle(t,null);return e(o.overflowY,n)||e(o.overflowX,n)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return false},o=(t,e,n,o,l,r,i,s)=>r<t&&i>e||r>t&&i<e?0:r<=t&&s<=n||i>=e&&s>=n?r-t-o:i>e&&s<n||r<t&&s>n?i-e+l:0,l$1=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},r=(e,r)=>{var i,s,d,h;if("undefined"==typeof document)return [];const{inline:u,boundary:a,skipOverflowHiddenElements:g}=r,p="function"==typeof a?a:t=>t!==a;if(!t(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,w=[];let W=e;for(;t(W)&&p(W);){if(W=l$1(W),W===m){w.push(W);break}null!=W&&W===document.body&&n(W)&&!n(document.documentElement)||null!=W&&n(W,g)&&w.push(W);}const b=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,H=null!=(h=null==(d=window.visualViewport)?void 0:d.height)?h:innerHeight,{scrollX:y,scrollY:M}=window,{height:v,width:E,top:x,right:C,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:B,left:V}=(t=>{const e=window.getComputedStyle(t);return {top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(e);let k=x-T,D="center"===u?R+E/2-V+B:"end"===u?C+B:R-V;const L=[];for(let t=0;t<w.length;t++){const e=w[t],{height:n,width:l,top:r,right:i,bottom:s,left:d}=e.getBoundingClientRect();if(x>=0&&R>=0&&I<=H&&C<=b&&x>=r&&I<=s&&R>=d&&C<=i)return L;const h=getComputedStyle(e),a=parseInt(h.borderLeftWidth,10),g=parseInt(h.borderTopWidth,10),p=parseInt(h.borderRightWidth,10),W=parseInt(h.borderBottomWidth,10);let T=0,B=0;const F="offsetWidth"in e?e.offsetWidth-e.clientWidth-a-p:0,V="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-W:0,S="offsetWidth"in e?0===e.offsetWidth?0:l/e.offsetWidth:0,X="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(m===e)T=o(M,M+H,H,g,W,M+k,M+k+v,v),B="start"===u?D:"center"===u?D-b/2:"end"===u?D-b:o(y,y+b,b,a,p,y+D,y+D+E,E),T=Math.max(0,T+M),B=Math.max(0,B+y);else {T=o(r,s,n,g,W+V,k,k+v,v),B="start"===u?D-d-a:"center"===u?D-(d+l/2)+F/2:"end"===u?D-i+p+F:o(d,i,l,a,p+F,D,D+E,E);const{scrollLeft:t,scrollTop:h}=e;T=0===X?0:Math.max(0,Math.min(h+T/X,e.scrollHeight-n/X+V)),B=0===S?0:Math.max(0,Math.min(t+B/S,e.scrollWidth-l/S+F)),k+=h-T,D+=t-B;}L.push({el:e,top:T,left:B});}return L};
|
|
1825
1826
|
|
|
1826
1827
|
var idCounter = 0;
|
|
1827
1828
|
|
|
@@ -1848,10 +1849,7 @@ function scrollIntoView(node, menuNode) {
|
|
|
1848
1849
|
return;
|
|
1849
1850
|
}
|
|
1850
1851
|
var actions = r(node, {
|
|
1851
|
-
boundary: menuNode
|
|
1852
|
-
block: 'nearest',
|
|
1853
|
-
scrollMode: 'if-needed'
|
|
1854
|
-
});
|
|
1852
|
+
boundary: menuNode});
|
|
1855
1853
|
actions.forEach(function (_ref) {
|
|
1856
1854
|
var el = _ref.el,
|
|
1857
1855
|
top = _ref.top,
|
|
@@ -3076,7 +3074,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
3076
3074
|
_proto.componentDidMount = function componentDidMount() {
|
|
3077
3075
|
var _this4 = this;
|
|
3078
3076
|
/* istanbul ignore if (react-native) */
|
|
3079
|
-
if (process.env.NODE_ENV !== 'production' &&
|
|
3077
|
+
if (process.env.NODE_ENV !== 'production' && true && this.getMenuProps.called && !this.getMenuProps.suppressRefError) {
|
|
3080
3078
|
validateGetMenuPropsCalledCorrectly(this._menuNode, this.getMenuProps);
|
|
3081
3079
|
}
|
|
3082
3080
|
|
|
@@ -3504,10 +3502,7 @@ _extends$2({}, defaultProps$3, {
|
|
|
3504
3502
|
({
|
|
3505
3503
|
itemToKey: defaultProps$3.itemToKey,
|
|
3506
3504
|
stateReducer: defaultProps$3.stateReducer,
|
|
3507
|
-
environment: defaultProps$3.environment
|
|
3508
|
-
keyNavigationNext: 'ArrowRight',
|
|
3509
|
-
keyNavigationPrevious: 'ArrowLeft'
|
|
3510
|
-
});
|
|
3505
|
+
environment: defaultProps$3.environment});
|
|
3511
3506
|
/* istanbul ignore next */
|
|
3512
3507
|
if (process.env.NODE_ENV !== 'production') ;
|
|
3513
3508
|
|
|
@@ -3639,7 +3634,7 @@ var Autocomplete = function (_a) {
|
|
|
3639
3634
|
})));
|
|
3640
3635
|
};
|
|
3641
3636
|
|
|
3642
|
-
const Container$
|
|
3637
|
+
const Container$1t = styled__default.default.div`
|
|
3643
3638
|
display: block;
|
|
3644
3639
|
`;
|
|
3645
3640
|
|
|
@@ -3724,7 +3719,7 @@ var BackToTop = function (_a) {
|
|
|
3724
3719
|
React.useEffect(function () {
|
|
3725
3720
|
window.addEventListener('scroll', toggleVisible);
|
|
3726
3721
|
});
|
|
3727
|
-
return (React__default.default.createElement(Container$
|
|
3722
|
+
return (React__default.default.createElement(Container$1t, { "data-testid": "BackToTop" }, isActive && (React__default.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3728
3723
|
React__default.default.createElement(ChevronIcon, { colourFill: themeContext.theme_vars.colours.white, direction: "up" })))));
|
|
3729
3724
|
};
|
|
3730
3725
|
|
|
@@ -6037,7 +6032,7 @@ var DynamicIcon = function (_a) {
|
|
|
6037
6032
|
React__default.default.createElement(DynamicComponent, { name: icon, isHover: true }))))));
|
|
6038
6033
|
};
|
|
6039
6034
|
|
|
6040
|
-
const Container$
|
|
6035
|
+
const Container$1s = styled__default.default.div`
|
|
6041
6036
|
display: block;
|
|
6042
6037
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
6043
6038
|
border-bottom: ${(props) => (props.$hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
@@ -6071,7 +6066,7 @@ const EventRow = styled__default.default.div`
|
|
|
6071
6066
|
var dayjs_min = {exports: {}};
|
|
6072
6067
|
|
|
6073
6068
|
(function (module, exports) {
|
|
6074
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null
|
|
6069
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
6075
6070
|
} (dayjs_min));
|
|
6076
6071
|
|
|
6077
6072
|
var dayjs_minExports = dayjs_min.exports;
|
|
@@ -6262,14 +6257,14 @@ var EventDetails = function (_a) {
|
|
|
6262
6257
|
}
|
|
6263
6258
|
}
|
|
6264
6259
|
};
|
|
6265
|
-
return (React__default.default.createElement(Container$
|
|
6260
|
+
return (React__default.default.createElement(Container$1s, { "data-testid": "EventDetails", "$hasBorder": hasBorder, "$hasMargin": hasMargin },
|
|
6266
6261
|
React__default.default.createElement(EventRow, null,
|
|
6267
6262
|
React__default.default.createElement(HeadingWithIcon, { icon: "events", level: 4, text: formatDate(), hasHover: false })),
|
|
6268
6263
|
React__default.default.createElement(EventRow, null,
|
|
6269
6264
|
React__default.default.createElement(HeadingWithIcon, { icon: "address", level: 4, text: location, hasHover: false }))));
|
|
6270
6265
|
};
|
|
6271
6266
|
|
|
6272
|
-
const Container$
|
|
6267
|
+
const Container$1r = styled__default.default.div`
|
|
6273
6268
|
display: flex;
|
|
6274
6269
|
width: 100%;
|
|
6275
6270
|
min-height: 400px;
|
|
@@ -6293,7 +6288,7 @@ var Map$1 = function (_a) {
|
|
|
6293
6288
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
6294
6289
|
}
|
|
6295
6290
|
}, [ref, map]);
|
|
6296
|
-
return (React__default.default.createElement(Container$
|
|
6291
|
+
return (React__default.default.createElement(Container$1r, { "data-testid": "Map" },
|
|
6297
6292
|
React__default.default.createElement("div", { ref: ref }),
|
|
6298
6293
|
React__default.default.Children.map(children, function (child) {
|
|
6299
6294
|
if (React__default.default.isValidElement(child)) {
|
|
@@ -6350,7 +6345,7 @@ var MapMarker = function (options) {
|
|
|
6350
6345
|
return null;
|
|
6351
6346
|
};
|
|
6352
6347
|
|
|
6353
|
-
const Container$
|
|
6348
|
+
const Container$1q = styled__default.default.div`
|
|
6354
6349
|
${(props) => props.theme.fontStyles};
|
|
6355
6350
|
display: block;
|
|
6356
6351
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -6361,7 +6356,7 @@ const resetButtonStyles = `
|
|
|
6361
6356
|
background: transparent;
|
|
6362
6357
|
border: none;
|
|
6363
6358
|
cursor: pointer;
|
|
6364
|
-
padding:
|
|
6359
|
+
padding: 10px 15px;
|
|
6365
6360
|
`;
|
|
6366
6361
|
|
|
6367
6362
|
const Previous = styled__default.default.button`
|
|
@@ -6414,7 +6409,8 @@ const NumberContainer = styled__default.default.li`
|
|
|
6414
6409
|
|
|
6415
6410
|
const Number$1 = styled__default.default.button`
|
|
6416
6411
|
${resetButtonStyles}
|
|
6417
|
-
padding:
|
|
6412
|
+
padding: 10px 12px;
|
|
6413
|
+
min-width: 44px;
|
|
6418
6414
|
${(props) => props.theme.fontStyles}
|
|
6419
6415
|
${(props) => props.theme.linkStyles}
|
|
6420
6416
|
|
|
@@ -7128,7 +7124,7 @@ var Pagination = function (_a) {
|
|
|
7128
7124
|
}
|
|
7129
7125
|
};
|
|
7130
7126
|
if (numbers.length > 1) {
|
|
7131
|
-
return (React__default.default.createElement(Container$
|
|
7127
|
+
return (React__default.default.createElement(Container$1q, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
7132
7128
|
currentPage > 1 && (React__default.default.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
7133
7129
|
React__default.default.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React__default.default.createElement(NumberContainer, { key: i },
|
|
7134
7130
|
v === '...' && React__default.default.createElement(Ellipsis, null, "..."),
|
|
@@ -7140,7 +7136,7 @@ var Pagination = function (_a) {
|
|
|
7140
7136
|
return null;
|
|
7141
7137
|
};
|
|
7142
7138
|
|
|
7143
|
-
const Container$
|
|
7139
|
+
const Container$1p = styled__default.default.div`
|
|
7144
7140
|
${(props) => props.theme.fontStyles};
|
|
7145
7141
|
margin-bottom: 30px;
|
|
7146
7142
|
`;
|
|
@@ -7295,7 +7291,7 @@ const NewsArticleFilterFields = {
|
|
|
7295
7291
|
};
|
|
7296
7292
|
|
|
7297
7293
|
var CheckboxListFilter = function (_a) {
|
|
7298
|
-
var options = _a.options, checked = _a.checked, _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.hint, hint = _c === void 0 ? null : _c, displayLegend = _a.displayLegend, _d = _a.hintId, hintId = _d === void 0 ? 'hint' : _d;
|
|
7294
|
+
var options = _a.options, checked = _a.checked, _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.hint, hint = _c === void 0 ? null : _c, displayLegend = _a.displayLegend, _d = _a.hintId, hintId = _d === void 0 ? 'hint' : _d, onChange = _a.onChange;
|
|
7299
7295
|
var labelHidden = label === null || !displayLegend ? true : false;
|
|
7300
7296
|
var hintHidden = hint === null ? true : false;
|
|
7301
7297
|
var setupCheckboxes = function () {
|
|
@@ -7316,10 +7312,15 @@ var CheckboxListFilter = function (_a) {
|
|
|
7316
7312
|
var checked = __spreadArray([], checkboxState, true);
|
|
7317
7313
|
checked = newCheckboxState.filter(function (c) { return c.checked === true; });
|
|
7318
7314
|
var articleTypes = checked.map(function (c) { return c.value; }).join(',');
|
|
7319
|
-
|
|
7315
|
+
if (onChange) {
|
|
7316
|
+
onChange(articleTypes);
|
|
7317
|
+
}
|
|
7318
|
+
else {
|
|
7319
|
+
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
7320
|
+
}
|
|
7320
7321
|
};
|
|
7321
7322
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
7322
|
-
return (React__default.default.createElement(Container$
|
|
7323
|
+
return (React__default.default.createElement(Container$1p, { "data-testid": "CheckboxListFilter" },
|
|
7323
7324
|
React__default.default.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
7324
7325
|
React__default.default.createElement(Legend$3, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
7325
7326
|
React__default.default.createElement(Hint$1, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -7328,11 +7329,11 @@ var CheckboxListFilter = function (_a) {
|
|
|
7328
7329
|
React__default.default.createElement(CheckboxLabel, { "$isChecked": option.checked, htmlFor: option.value }, option.title))); })))));
|
|
7329
7330
|
};
|
|
7330
7331
|
|
|
7331
|
-
const Container$
|
|
7332
|
+
const Container$1o = styled__default.default.div`
|
|
7332
7333
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.small : 0)};
|
|
7333
7334
|
`;
|
|
7334
7335
|
|
|
7335
|
-
const Container$
|
|
7336
|
+
const Container$1n = styled__default.default.div`
|
|
7336
7337
|
${(props) => props.theme.fontStyles};
|
|
7337
7338
|
width: ${(props) => (props.$isFullWidth ? '100%' : 'auto')};
|
|
7338
7339
|
`;
|
|
@@ -7399,7 +7400,7 @@ const ErrorText$2 = styled__default.default.p`
|
|
|
7399
7400
|
|
|
7400
7401
|
var DropDownSelect = function (_a) {
|
|
7401
7402
|
var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b, _c = _a.isErrored, isErrored = _c === void 0 ? false : _c, errorText = _a.errorText, _d = _a.value, value = _d === void 0 ? undefined : _d, _e = _a.hasBottomMargin, hasBottomMargin = _e === void 0 ? false : _e, _f = _a.hasBoldLabel, hasBoldLabel = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g;
|
|
7402
|
-
return (React__default.default.createElement(Container$
|
|
7403
|
+
return (React__default.default.createElement(Container$1n, { "$isFullWidth": isFullWidth },
|
|
7403
7404
|
React__default.default.createElement(Label$9, { htmlFor: id, "$hideLabel": hideLabel, "$hasBoldLabel": hasBoldLabel }, label),
|
|
7404
7405
|
errorText && React__default.default.createElement(ErrorText$2, { id: "".concat(id, "Error") }, errorText),
|
|
7405
7406
|
typeof value !== 'undefined' ? (React__default.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, value: value, "$isErrored": isErrored, "$hasBottomMargin": hasBottomMargin, "$isFullWidth": isFullWidth }, options.map(function (option, i) { return (React__default.default.createElement(Option, { key: i, value: option.value }, option.title)); }))) : (React__default.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected, "$isErrored": isErrored }, options.map(function (option, i) { return (React__default.default.createElement(Option, { key: i, value: option.value }, option.title)); })))));
|
|
@@ -7412,7 +7413,7 @@ var DropDownFilter = function (_a) {
|
|
|
7412
7413
|
setValue(e.target.value);
|
|
7413
7414
|
handleParams('news', [{ key: NewsArticleFilterFields[filterKey].queryParamKey, value: e.target.value }], ['page']);
|
|
7414
7415
|
};
|
|
7415
|
-
return (React__default.default.createElement(Container$
|
|
7416
|
+
return (React__default.default.createElement(Container$1o, { "$hasMargin": hasMargin },
|
|
7416
7417
|
React__default.default.createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel })));
|
|
7417
7418
|
};
|
|
7418
7419
|
|
|
@@ -7557,7 +7558,7 @@ const ListItem$3 = styled__default.default.li`
|
|
|
7557
7558
|
}
|
|
7558
7559
|
`;
|
|
7559
7560
|
|
|
7560
|
-
const Container$
|
|
7561
|
+
const Container$1m = styled__default.default.div`
|
|
7561
7562
|
box-sizing: border-box;
|
|
7562
7563
|
display: flex;
|
|
7563
7564
|
flex-wrap: wrap;
|
|
@@ -7580,7 +7581,7 @@ const Container$1k = styled__default.default.div`
|
|
|
7580
7581
|
|
|
7581
7582
|
var Row$1 = function (_a) {
|
|
7582
7583
|
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children, classes = _a.classes;
|
|
7583
|
-
return (React__default.default.createElement(Container$
|
|
7584
|
+
return (React__default.default.createElement(Container$1m, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div', className: classes }, children));
|
|
7584
7585
|
};
|
|
7585
7586
|
|
|
7586
7587
|
const calculateWidth = (size) => {
|
|
@@ -7630,7 +7631,7 @@ const widths = (props) => {
|
|
|
7630
7631
|
`;
|
|
7631
7632
|
};
|
|
7632
7633
|
|
|
7633
|
-
const Container$
|
|
7634
|
+
const Container$1l = styled__default.default.div`
|
|
7634
7635
|
box-sizing: border-box;
|
|
7635
7636
|
display: block;
|
|
7636
7637
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -7641,7 +7642,7 @@ const Container$1j = styled__default.default.div`
|
|
|
7641
7642
|
|
|
7642
7643
|
var Column = function (_a) {
|
|
7643
7644
|
var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, classes = _a.classes, id = _a.id, children = _a.children, role = _a.role;
|
|
7644
|
-
return (React__default.default.createElement(Container$
|
|
7645
|
+
return (React__default.default.createElement(Container$1l, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes, role: role, id: id }, children));
|
|
7645
7646
|
};
|
|
7646
7647
|
|
|
7647
7648
|
var PromotedLinks = function (_a) {
|
|
@@ -7658,7 +7659,7 @@ var PromotedLinks = function (_a) {
|
|
|
7658
7659
|
}
|
|
7659
7660
|
};
|
|
7660
7661
|
|
|
7661
|
-
const Container$
|
|
7662
|
+
const Container$1k = styled__default.default.div`
|
|
7662
7663
|
display: block;
|
|
7663
7664
|
`;
|
|
7664
7665
|
|
|
@@ -7708,7 +7709,7 @@ const promotedStyles = (props) => {
|
|
|
7708
7709
|
}
|
|
7709
7710
|
};
|
|
7710
7711
|
|
|
7711
|
-
const Container$
|
|
7712
|
+
const Container$1j = styled__default.default.a`
|
|
7712
7713
|
display: flex;
|
|
7713
7714
|
flex-direction: row;
|
|
7714
7715
|
flex-wrap: wrap;
|
|
@@ -7754,6 +7755,8 @@ const Container$1h = styled__default.default.a`
|
|
|
7754
7755
|
.event-list__image-container {
|
|
7755
7756
|
position: relative;
|
|
7756
7757
|
min-height: 200px;
|
|
7758
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
7759
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
7757
7760
|
}
|
|
7758
7761
|
|
|
7759
7762
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
@@ -7844,7 +7847,7 @@ const imageRatio = (props) => {
|
|
|
7844
7847
|
}
|
|
7845
7848
|
};
|
|
7846
7849
|
|
|
7847
|
-
const Container$
|
|
7850
|
+
const Container$1i = styled__default.default.div`
|
|
7848
7851
|
display: block;
|
|
7849
7852
|
position: ${(props) => (props.$ratio === 'auto' ? 'absolute' : 'relative')};
|
|
7850
7853
|
${imageRatio}
|
|
@@ -7862,13 +7865,13 @@ const Image$3 = styled__default.default.img`
|
|
|
7862
7865
|
|
|
7863
7866
|
var ResponsiveImage = function (_a) {
|
|
7864
7867
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.smallWidth, smallWidth = _b === void 0 ? '400' : _b, _c = _a.largeWidth, largeWidth = _c === void 0 ? '1200' : _c, ratio = _a.ratio, _d = _a.objectFit, objectFit = _d === void 0 ? 'cover' : _d;
|
|
7865
|
-
return (React__default.default.createElement(Container$
|
|
7868
|
+
return (React__default.default.createElement(Container$1i, { "data-testid": "ResponsiveImage", "$ratio": ratio },
|
|
7866
7869
|
React__default.default.createElement(Image$3, { alt: imageAltText, loading: "lazy", srcSet: "".concat(imageSmall, " ").concat(smallWidth, "w, ").concat(imageLarge, " ").concat(largeWidth, "w"), sizes: "(max-width: 550px) 550px, ".concat(largeWidth, "px"), src: imageLarge, "$objectFit": objectFit })));
|
|
7867
7870
|
};
|
|
7868
7871
|
|
|
7869
7872
|
var EventLink = function (_a) {
|
|
7870
7873
|
var title = _a.title, summary = _a.summary, startTime = _a.startTime, endTime = _a.endTime, location = _a.location, url = _a.url, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, _b = _a.showSummary, showSummary = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c, _d = _a.isPromoted, isPromoted = _d === void 0 ? false : _d, parentTitle = _a.parentTitle;
|
|
7871
|
-
return (React__default.default.createElement(Container$
|
|
7874
|
+
return (React__default.default.createElement(Container$1j, { "data-testid": "EventLink", href: url, "$isPromoted": isPromoted },
|
|
7872
7875
|
React__default.default.createElement(Row$1, null,
|
|
7873
7876
|
React__default.default.createElement(Column, { small: "full", medium: imageLarge ? 'two-thirds' : 'full', large: imageLarge ? 'two-thirds' : 'full', hasPadding: false },
|
|
7874
7877
|
React__default.default.createElement(EventContent, { "$hasPadding": hasPadding },
|
|
@@ -7878,19 +7881,19 @@ var EventLink = function (_a) {
|
|
|
7878
7881
|
isPromoted && React__default.default.createElement(Promoted, null, "Featured"),
|
|
7879
7882
|
parentTitle && React__default.default.createElement(Parent, null, parentTitle))),
|
|
7880
7883
|
imageLarge && (React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third", hasPadding: false, classes: "event-list__image-container" },
|
|
7881
|
-
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "
|
|
7884
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "720", largeWidth: "1440", ratio: "16by9", objectFit: "cover" }))))));
|
|
7882
7885
|
};
|
|
7883
7886
|
|
|
7884
7887
|
// A list of related events
|
|
7885
7888
|
var RelatedEvents = function (_a) {
|
|
7886
7889
|
var title = _a.title, events = _a.events;
|
|
7887
|
-
return (React__default.default.createElement(Container$
|
|
7890
|
+
return (React__default.default.createElement(Container$1k, { "data-testid": "RelatedEvents" },
|
|
7888
7891
|
React__default.default.createElement(Title$9, null, title),
|
|
7889
7892
|
React__default.default.createElement(List$3, null, events.map(function (event, index) { return (React__default.default.createElement(ListItem$2, { key: index },
|
|
7890
7893
|
React__default.default.createElement(EventLink, { title: event.title, startTime: event.startTime, endTime: event.endTime, showSummary: false, url: event.url, location: event.location, hasPadding: false }))); }))));
|
|
7891
7894
|
};
|
|
7892
7895
|
|
|
7893
|
-
const Container$
|
|
7896
|
+
const Container$1h = styled__default.default.div`
|
|
7894
7897
|
display: block;
|
|
7895
7898
|
`;
|
|
7896
7899
|
|
|
@@ -7926,7 +7929,7 @@ const Cookies = styled__default.default.button`
|
|
|
7926
7929
|
}
|
|
7927
7930
|
`;
|
|
7928
7931
|
|
|
7929
|
-
const Container$
|
|
7932
|
+
const Container$1g = styled__default.default.div`
|
|
7930
7933
|
${(props) => props.theme.fontStyles}
|
|
7931
7934
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
7932
7935
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -8151,7 +8154,7 @@ const wereCookiesAccepted = (cookiesAcceptedOverride) => {
|
|
|
8151
8154
|
var utc$1 = {exports: {}};
|
|
8152
8155
|
|
|
8153
8156
|
(function (module, exports) {
|
|
8154
|
-
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc
|
|
8157
|
+
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:true,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:true});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:false})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=true),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){ void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
8155
8158
|
} (utc$1));
|
|
8156
8159
|
|
|
8157
8160
|
var utcExports = utc$1.exports;
|
|
@@ -8260,18 +8263,18 @@ var CookieBanner = function (_a) {
|
|
|
8260
8263
|
hideCookiesAcceptedConfirmationBanner();
|
|
8261
8264
|
};
|
|
8262
8265
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
8263
|
-
showCookieBanner && (React__default.default.createElement(Container$
|
|
8266
|
+
showCookieBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBanner" },
|
|
8264
8267
|
React__default.default.createElement(CookieMessage, null,
|
|
8265
8268
|
React__default.default.createElement(CookieHeading, null, title),
|
|
8266
8269
|
React__default.default.createElement(CookieParagraph, null, paragraph),
|
|
8267
8270
|
React__default.default.createElement(ButtonsContainer, null,
|
|
8268
8271
|
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: false, type: "button", onClick: acceptCookies, size: "large" }),
|
|
8269
8272
|
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: false, type: "button", onClick: rejectCookies, size: "large" }))))),
|
|
8270
|
-
showCookiesRejectedBanner && (React__default.default.createElement(Container$
|
|
8273
|
+
showCookiesRejectedBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
8271
8274
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8272
8275
|
React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
8273
8276
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
8274
|
-
showCookiesAcceptedBanner && (React__default.default.createElement(Container$
|
|
8277
|
+
showCookiesAcceptedBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
8275
8278
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8276
8279
|
React__default.default.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
8277
8280
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -8293,7 +8296,7 @@ var StaticMap = function (_a) {
|
|
|
8293
8296
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
8294
8297
|
})
|
|
8295
8298
|
.join('');
|
|
8296
|
-
return (React__default.default.createElement(Container$
|
|
8299
|
+
return (React__default.default.createElement(Container$1h, { "data-testid": "StaticMap" },
|
|
8297
8300
|
React__default.default.createElement(Message, null,
|
|
8298
8301
|
React__default.default.createElement("span", null,
|
|
8299
8302
|
"To interact with the map, you need to ",
|
|
@@ -18141,19 +18144,6 @@ sourceMap.SourceNode = sourceNode.SourceNode;
|
|
|
18141
18144
|
let urlAlphabet =
|
|
18142
18145
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
18143
18146
|
|
|
18144
|
-
let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
18145
|
-
return (size = defaultSize) => {
|
|
18146
|
-
let id = '';
|
|
18147
|
-
// A compact alternative for `for (var i = 0; i < step; i++)`.
|
|
18148
|
-
let i = size | 0;
|
|
18149
|
-
while (i--) {
|
|
18150
|
-
// `| 0` is more compact and faster than `Math.floor()`.
|
|
18151
|
-
id += alphabet[(Math.random() * alphabet.length) | 0];
|
|
18152
|
-
}
|
|
18153
|
-
return id
|
|
18154
|
-
}
|
|
18155
|
-
};
|
|
18156
|
-
|
|
18157
18147
|
let nanoid$1 = (size = 21) => {
|
|
18158
18148
|
let id = '';
|
|
18159
18149
|
// A compact alternative for `for (var i = 0; i < step; i++)`.
|
|
@@ -18165,7 +18155,7 @@ let nanoid$1 = (size = 21) => {
|
|
|
18165
18155
|
return id
|
|
18166
18156
|
};
|
|
18167
18157
|
|
|
18168
|
-
var nonSecure = { nanoid: nanoid$1
|
|
18158
|
+
var nonSecure = { nanoid: nanoid$1};
|
|
18169
18159
|
|
|
18170
18160
|
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = sourceMap;
|
|
18171
18161
|
let { existsSync, readFileSync } = require$$1__default.default;
|
|
@@ -18960,7 +18950,7 @@ function markTreeDirty(node) {
|
|
|
18960
18950
|
}
|
|
18961
18951
|
}
|
|
18962
18952
|
|
|
18963
|
-
let Container$
|
|
18953
|
+
let Container$1f = class Container extends Node$1 {
|
|
18964
18954
|
append(...children) {
|
|
18965
18955
|
for (let child of children) {
|
|
18966
18956
|
let nodes = this.normalize(child, this.last);
|
|
@@ -19337,27 +19327,27 @@ let Container$1d = class Container extends Node$1 {
|
|
|
19337
19327
|
}
|
|
19338
19328
|
};
|
|
19339
19329
|
|
|
19340
|
-
Container$
|
|
19330
|
+
Container$1f.registerParse = dependant => {
|
|
19341
19331
|
parse$4 = dependant;
|
|
19342
19332
|
};
|
|
19343
19333
|
|
|
19344
|
-
Container$
|
|
19334
|
+
Container$1f.registerRule = dependant => {
|
|
19345
19335
|
Rule$4 = dependant;
|
|
19346
19336
|
};
|
|
19347
19337
|
|
|
19348
|
-
Container$
|
|
19338
|
+
Container$1f.registerAtRule = dependant => {
|
|
19349
19339
|
AtRule$4 = dependant;
|
|
19350
19340
|
};
|
|
19351
19341
|
|
|
19352
|
-
Container$
|
|
19342
|
+
Container$1f.registerRoot = dependant => {
|
|
19353
19343
|
Root$6 = dependant;
|
|
19354
19344
|
};
|
|
19355
19345
|
|
|
19356
|
-
var container = Container$
|
|
19357
|
-
Container$
|
|
19346
|
+
var container = Container$1f;
|
|
19347
|
+
Container$1f.default = Container$1f;
|
|
19358
19348
|
|
|
19359
19349
|
/* c8 ignore start */
|
|
19360
|
-
Container$
|
|
19350
|
+
Container$1f.rebuild = node => {
|
|
19361
19351
|
if (node.type === 'atrule') {
|
|
19362
19352
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
19363
19353
|
} else if (node.type === 'rule') {
|
|
@@ -19374,16 +19364,16 @@ Container$1d.rebuild = node => {
|
|
|
19374
19364
|
|
|
19375
19365
|
if (node.nodes) {
|
|
19376
19366
|
node.nodes.forEach(child => {
|
|
19377
|
-
Container$
|
|
19367
|
+
Container$1f.rebuild(child);
|
|
19378
19368
|
});
|
|
19379
19369
|
}
|
|
19380
19370
|
};
|
|
19381
19371
|
|
|
19382
|
-
let Container$
|
|
19372
|
+
let Container$1e = container;
|
|
19383
19373
|
|
|
19384
19374
|
let LazyResult$4, Processor$3;
|
|
19385
19375
|
|
|
19386
|
-
let Document$3 = class Document extends Container$
|
|
19376
|
+
let Document$3 = class Document extends Container$1e {
|
|
19387
19377
|
constructor(defaults) {
|
|
19388
19378
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
19389
19379
|
super({ type: 'document', ...defaults });
|
|
@@ -19501,9 +19491,9 @@ let Result$4 = class Result {
|
|
|
19501
19491
|
var result = Result$4;
|
|
19502
19492
|
Result$4.default = Result$4;
|
|
19503
19493
|
|
|
19504
|
-
let Container$
|
|
19494
|
+
let Container$1d = container;
|
|
19505
19495
|
|
|
19506
|
-
let AtRule$3 = class AtRule extends Container$
|
|
19496
|
+
let AtRule$3 = class AtRule extends Container$1d {
|
|
19507
19497
|
constructor(defaults) {
|
|
19508
19498
|
super(defaults);
|
|
19509
19499
|
this.type = 'atrule';
|
|
@@ -19523,13 +19513,13 @@ let AtRule$3 = class AtRule extends Container$1b {
|
|
|
19523
19513
|
var atRule = AtRule$3;
|
|
19524
19514
|
AtRule$3.default = AtRule$3;
|
|
19525
19515
|
|
|
19526
|
-
Container$
|
|
19516
|
+
Container$1d.registerAtRule(AtRule$3);
|
|
19527
19517
|
|
|
19528
|
-
let Container$
|
|
19518
|
+
let Container$1c = container;
|
|
19529
19519
|
|
|
19530
19520
|
let LazyResult$3, Processor$2;
|
|
19531
19521
|
|
|
19532
|
-
let Root$5 = class Root extends Container$
|
|
19522
|
+
let Root$5 = class Root extends Container$1c {
|
|
19533
19523
|
constructor(defaults) {
|
|
19534
19524
|
super(defaults);
|
|
19535
19525
|
this.type = 'root';
|
|
@@ -19583,7 +19573,7 @@ Root$5.registerProcessor = dependant => {
|
|
|
19583
19573
|
var root = Root$5;
|
|
19584
19574
|
Root$5.default = Root$5;
|
|
19585
19575
|
|
|
19586
|
-
Container$
|
|
19576
|
+
Container$1c.registerRoot(Root$5);
|
|
19587
19577
|
|
|
19588
19578
|
let list$2 = {
|
|
19589
19579
|
comma(string) {
|
|
@@ -19642,10 +19632,10 @@ let list$2 = {
|
|
|
19642
19632
|
var list_1 = list$2;
|
|
19643
19633
|
list$2.default = list$2;
|
|
19644
19634
|
|
|
19645
|
-
let Container$
|
|
19635
|
+
let Container$1b = container;
|
|
19646
19636
|
let list$1 = list_1;
|
|
19647
19637
|
|
|
19648
|
-
let Rule$3 = class Rule extends Container$
|
|
19638
|
+
let Rule$3 = class Rule extends Container$1b {
|
|
19649
19639
|
constructor(defaults) {
|
|
19650
19640
|
super(defaults);
|
|
19651
19641
|
this.type = 'rule';
|
|
@@ -19666,7 +19656,7 @@ let Rule$3 = class Rule extends Container$19 {
|
|
|
19666
19656
|
var rule = Rule$3;
|
|
19667
19657
|
Rule$3.default = Rule$3;
|
|
19668
19658
|
|
|
19669
|
-
Container$
|
|
19659
|
+
Container$1b.registerRule(Rule$3);
|
|
19670
19660
|
|
|
19671
19661
|
let Declaration$2 = declaration;
|
|
19672
19662
|
let tokenizer = tokenize;
|
|
@@ -20276,7 +20266,7 @@ let Parser$1 = class Parser {
|
|
|
20276
20266
|
|
|
20277
20267
|
var parser = Parser$1;
|
|
20278
20268
|
|
|
20279
|
-
let Container$
|
|
20269
|
+
let Container$1a = container;
|
|
20280
20270
|
let Parser = parser;
|
|
20281
20271
|
let Input$3 = input;
|
|
20282
20272
|
|
|
@@ -20315,12 +20305,12 @@ function parse$3(css, opts) {
|
|
|
20315
20305
|
var parse_1 = parse$3;
|
|
20316
20306
|
parse$3.default = parse$3;
|
|
20317
20307
|
|
|
20318
|
-
Container$
|
|
20308
|
+
Container$1a.registerParse(parse$3);
|
|
20319
20309
|
|
|
20320
20310
|
let { isClean, my } = symbols;
|
|
20321
20311
|
let MapGenerator$1 = mapGenerator;
|
|
20322
20312
|
let stringify$2 = stringify_1;
|
|
20323
|
-
let Container$
|
|
20313
|
+
let Container$19 = container;
|
|
20324
20314
|
let Document$2 = document$1;
|
|
20325
20315
|
let warnOnce$1 = warnOnce$2;
|
|
20326
20316
|
let Result$3 = result;
|
|
@@ -20455,7 +20445,7 @@ let LazyResult$2 = class LazyResult {
|
|
|
20455
20445
|
|
|
20456
20446
|
if (root && !root[my]) {
|
|
20457
20447
|
/* c8 ignore next 2 */
|
|
20458
|
-
Container$
|
|
20448
|
+
Container$19.rebuild(root);
|
|
20459
20449
|
}
|
|
20460
20450
|
}
|
|
20461
20451
|
|
|
@@ -21125,7 +21115,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
21125
21115
|
let CssSyntaxError = cssSyntaxError;
|
|
21126
21116
|
let Declaration = declaration;
|
|
21127
21117
|
let LazyResult = lazyResult;
|
|
21128
|
-
let Container$
|
|
21118
|
+
let Container$18 = container;
|
|
21129
21119
|
let Processor = processor;
|
|
21130
21120
|
let stringify = stringify_1;
|
|
21131
21121
|
let fromJSON = fromJSON_1;
|
|
@@ -21205,7 +21195,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
21205
21195
|
|
|
21206
21196
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
21207
21197
|
postcss.Declaration = Declaration;
|
|
21208
|
-
postcss.Container = Container$
|
|
21198
|
+
postcss.Container = Container$18;
|
|
21209
21199
|
postcss.Processor = Processor;
|
|
21210
21200
|
postcss.Document = Document;
|
|
21211
21201
|
postcss.Comment = Comment;
|
|
@@ -22160,7 +22150,7 @@ var TextInput = function (_a) {
|
|
|
22160
22150
|
React__default.default.createElement(StyledTextInput, { type: "text", id: id, name: name, defaultValue: value, "$size": size, placeholder: placeholder, "$isErrored": isErrored, "$isLarge": isLarge })));
|
|
22161
22151
|
};
|
|
22162
22152
|
|
|
22163
|
-
const Container$
|
|
22153
|
+
const Container$17 = styled__default.default.div`
|
|
22164
22154
|
display: block;
|
|
22165
22155
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22166
22156
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -22207,11 +22197,11 @@ var ToggleButtons = function (_a) {
|
|
|
22207
22197
|
setActiveButton(index);
|
|
22208
22198
|
onClick();
|
|
22209
22199
|
};
|
|
22210
|
-
return (React__default.default.createElement(Container$
|
|
22200
|
+
return (React__default.default.createElement(Container$17, { "data-testid": "ToggleButtons", "$hasTopMargin": hasTopMargin },
|
|
22211
22201
|
React__default.default.createElement(React__default.default.Fragment, null, buttons.map(function (button, index) { return (React__default.default.createElement(ToggleButton, { type: "button", title: button.title, "aria-label": button.ariaLabel, key: index, onClick: function () { return handleClick(index, button.onClick); }, "$isActive": activeButton == index }, button.label)); }))));
|
|
22212
22202
|
};
|
|
22213
22203
|
|
|
22214
|
-
const Container$
|
|
22204
|
+
const Container$16 = styled__default.default.div`
|
|
22215
22205
|
display: block;
|
|
22216
22206
|
position: fixed;
|
|
22217
22207
|
top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -22311,14 +22301,14 @@ var QuickExit = function (_a) {
|
|
|
22311
22301
|
window.location.replace(url);
|
|
22312
22302
|
};
|
|
22313
22303
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
22314
|
-
React__default.default.createElement(Container$
|
|
22304
|
+
React__default.default.createElement(Container$16, { "data-testid": "QuickExit" },
|
|
22315
22305
|
React__default.default.createElement(QuickExitButton, { onClick: function (e) { return handleClick(e); } },
|
|
22316
22306
|
React__default.default.createElement(HeadingWithIcon, { icon: "quickExit", level: 3, text: label, hasHover: false })))));
|
|
22317
22307
|
};
|
|
22318
22308
|
|
|
22319
22309
|
// Accordion
|
|
22320
22310
|
|
|
22321
|
-
const Container$
|
|
22311
|
+
const Container$15 = styled__default.default.div`
|
|
22322
22312
|
${(props) => props.theme.fontStyles}
|
|
22323
22313
|
margin-bottom: 20px;
|
|
22324
22314
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -22384,6 +22374,8 @@ const SectionHeader = styled__default.default.div`
|
|
|
22384
22374
|
const SectionHeading = styled__default.default.div`
|
|
22385
22375
|
margin-top: 0 !important;
|
|
22386
22376
|
margin-bottom: 0 !important;
|
|
22377
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22378
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22387
22379
|
`;
|
|
22388
22380
|
|
|
22389
22381
|
const SectionButtonIsFilteredStyles = (props) => {
|
|
@@ -22426,12 +22418,8 @@ const SectionButton = styled__default.default.button`
|
|
|
22426
22418
|
outline: 3px solid transparent;
|
|
22427
22419
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
22428
22420
|
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
22432
|
-
box-shadow:
|
|
22433
|
-
0 -2px ${(props) => props.theme.theme_vars.colours.focus},
|
|
22434
|
-
0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
22421
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
22422
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
22435
22423
|
text-decoration: none;
|
|
22436
22424
|
}
|
|
22437
22425
|
|
|
@@ -22604,7 +22592,7 @@ var Accordion$1 = function (_a) {
|
|
|
22604
22592
|
setAccordionStates(newStatus);
|
|
22605
22593
|
};
|
|
22606
22594
|
var accordionId = "accordion".concat(React.useId());
|
|
22607
|
-
return (React__default.default.createElement(Container$
|
|
22595
|
+
return (React__default.default.createElement(Container$15, { "data-testid": "Accordion", id: accordionId },
|
|
22608
22596
|
showControls && sections.length > 1 && (React__default.default.createElement(AccordionControls$1, null,
|
|
22609
22597
|
React__default.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
22610
22598
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -22612,7 +22600,7 @@ var Accordion$1 = function (_a) {
|
|
|
22612
22600
|
accordionStates.map(function (section, i) { return (React__default.default.createElement(AccordionSection, __assign$2({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
|
|
22613
22601
|
};
|
|
22614
22602
|
|
|
22615
|
-
const Container$
|
|
22603
|
+
const Container$14 = styled__default.default.div`
|
|
22616
22604
|
display: block;
|
|
22617
22605
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
22618
22606
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -22666,7 +22654,7 @@ var _a, _b;
|
|
|
22666
22654
|
var PostcodeSearchApiUrl = (_a = process.env.NEXT_PUBLIC_POSTCODE_SEARCH_API_URL) !== null && _a !== void 0 ? _a : '';
|
|
22667
22655
|
var BinFinderApiUrl = (_b = process.env.NEXT_PUBLIC_BIN_FINDER_API_URL) !== null && _b !== void 0 ? _b : '';
|
|
22668
22656
|
|
|
22669
|
-
const Container$
|
|
22657
|
+
const Container$13 = styled__default.default.div`
|
|
22670
22658
|
display: flex;
|
|
22671
22659
|
-webkit-flex-direction: row;
|
|
22672
22660
|
-moz-flex-direction: row;
|
|
@@ -22703,7 +22691,7 @@ const ErrorSummary$1 = styled__default.default.div`
|
|
|
22703
22691
|
*/
|
|
22704
22692
|
var FormWithLine = function (_a) {
|
|
22705
22693
|
var _b = _a.lineColour, lineColour = _b === void 0 ? '#C6C6C6' : _b, _c = _a.hideLine, hideLine = _c === void 0 ? false : _c, formRole = _a.formRole, formMethod = _a.formMethod, formURL = _a.formURL, _d = _a.isError, isError = _d === void 0 ? false : _d, errorSummary = _a.errorSummary, onSubmit = _a.onSubmit, children = _a.children;
|
|
22706
|
-
return (React__default.default.createElement(Container$
|
|
22694
|
+
return (React__default.default.createElement(Container$13, null,
|
|
22707
22695
|
React__default.default.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
22708
22696
|
React__default.default.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
22709
22697
|
errorSummary && React__default.default.createElement(ErrorSummary$1, null, errorSummary),
|
|
@@ -22753,7 +22741,7 @@ var Input = function (_a) {
|
|
|
22753
22741
|
typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth, min: minValue })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth, min: minValue }))));
|
|
22754
22742
|
};
|
|
22755
22743
|
|
|
22756
|
-
const Container$
|
|
22744
|
+
const Container$12 = styled__default.default.div`
|
|
22757
22745
|
display: block;
|
|
22758
22746
|
`;
|
|
22759
22747
|
|
|
@@ -22944,7 +22932,7 @@ var BinCollection = function (_a) {
|
|
|
22944
22932
|
acc[collectionDay].push(binCollection);
|
|
22945
22933
|
return acc;
|
|
22946
22934
|
}, {});
|
|
22947
|
-
return (React__default.default.createElement(Container$
|
|
22935
|
+
return (React__default.default.createElement(Container$12, { "data-testid": "BinCollection" },
|
|
22948
22936
|
React__default.default.createElement(Heading$1, { text: "Bin collections for:", level: 3 }),
|
|
22949
22937
|
React__default.default.createElement("p", null, address),
|
|
22950
22938
|
Object.keys(binCollectionsGrouped).map(function (day) {
|
|
@@ -23129,7 +23117,7 @@ var BinFinder = function (_a) {
|
|
|
23129
23117
|
return [2 /*return*/];
|
|
23130
23118
|
});
|
|
23131
23119
|
}); };
|
|
23132
|
-
return (React__default.default.createElement(Container$
|
|
23120
|
+
return (React__default.default.createElement(Container$14, { "data-testid": "BinFinder" },
|
|
23133
23121
|
title && (React__default.default.createElement(TitleContainer, null,
|
|
23134
23122
|
React__default.default.createElement(Heading$1, { level: 2, text: title }))),
|
|
23135
23123
|
uprn === '' ? (React__default.default.createElement(React__default.default.Fragment, null,
|
|
@@ -23226,7 +23214,7 @@ var BlockQuote = function (_a) {
|
|
|
23226
23214
|
citation && React__default.default.createElement(Citation, null, citation)));
|
|
23227
23215
|
};
|
|
23228
23216
|
|
|
23229
|
-
const Container
|
|
23217
|
+
const Container$11 = styled__default.default.div`
|
|
23230
23218
|
margin-bottom: 30px;
|
|
23231
23219
|
display: block;
|
|
23232
23220
|
|
|
@@ -23241,11 +23229,11 @@ const Container$$ = styled__default.default.div`
|
|
|
23241
23229
|
*/
|
|
23242
23230
|
var CallToAction = function (_a) {
|
|
23243
23231
|
var primary = _a.primary; _a.size; var text = _a.text, url = _a.url, isExternal = _a.isExternal, isDisabled = _a.isDisabled; __rest(_a, ["primary", "size", "text", "url", "isExternal", "isDisabled"]);
|
|
23244
|
-
return (React__default.default.createElement(Container
|
|
23232
|
+
return (React__default.default.createElement(Container$11, null,
|
|
23245
23233
|
React__default.default.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
23246
23234
|
};
|
|
23247
23235
|
|
|
23248
|
-
const Container$
|
|
23236
|
+
const Container$10 = styled__default.default.div`
|
|
23249
23237
|
display: block;
|
|
23250
23238
|
${(props) => props.theme.fontStyles}
|
|
23251
23239
|
`;
|
|
@@ -23421,7 +23409,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
23421
23409
|
});
|
|
23422
23410
|
return letterData;
|
|
23423
23411
|
});
|
|
23424
|
-
return (React__default.default.createElement(Container$
|
|
23412
|
+
return (React__default.default.createElement(Container$10, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
23425
23413
|
React__default.default.createElement(React__default.default.Fragment, null,
|
|
23426
23414
|
parishes.length === 0 && (React__default.default.createElement(ErrorText$1, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
23427
23415
|
parish === null ? (React__default.default.createElement(React__default.default.Fragment, null, sortedData.map(function (letter, i) { return (React__default.default.createElement(Row, { key: i },
|
|
@@ -23447,9 +23435,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
23447
23435
|
React__default.default.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
23448
23436
|
};
|
|
23449
23437
|
|
|
23450
|
-
const Container
|
|
23438
|
+
const Container$$ = styled__default.default.div``;
|
|
23451
23439
|
|
|
23452
|
-
const Container$
|
|
23440
|
+
const Container$_ = styled__default.default.div`
|
|
23453
23441
|
display: flex;
|
|
23454
23442
|
flex-direction: column;
|
|
23455
23443
|
justify-content: flex-start;
|
|
@@ -23525,7 +23513,7 @@ const FooterLink$1 = styled__default.default.a`
|
|
|
23525
23513
|
var Card = function (_a) {
|
|
23526
23514
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
23527
23515
|
var showContent = content || header;
|
|
23528
|
-
return (React__default.default.createElement(Container$
|
|
23516
|
+
return (React__default.default.createElement(Container$_, { "data-testid": "Card" },
|
|
23529
23517
|
imageLarge && imageSmall && (React__default.default.createElement(React__default.default.Fragment, null, footerLink ? (React__default.default.createElement(ImageLink$1, { href: footerLink.url },
|
|
23530
23518
|
React__default.default.createElement(Image$2, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React__default.default.createElement(Image$2, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
|
|
23531
23519
|
showContent && (React__default.default.createElement(Content$7, null,
|
|
@@ -23541,18 +23529,18 @@ var Card = function (_a) {
|
|
|
23541
23529
|
*/
|
|
23542
23530
|
var Cards = function (_a) {
|
|
23543
23531
|
var cards = _a.cards;
|
|
23544
|
-
return (React__default.default.createElement(Container
|
|
23532
|
+
return (React__default.default.createElement(Container$$, { "data-testid": "Cards" },
|
|
23545
23533
|
React__default.default.createElement(Row$1, null, cards.map(function (card, index) { return (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
23546
23534
|
React__default.default.createElement(Card, __assign$2({}, card)))); }))));
|
|
23547
23535
|
};
|
|
23548
23536
|
|
|
23549
|
-
const Container$
|
|
23537
|
+
const Container$Z = styled__default.default.div`
|
|
23550
23538
|
margin: 25px 0;
|
|
23551
23539
|
`;
|
|
23552
23540
|
|
|
23553
23541
|
var DownloadableFiles = function (_a) {
|
|
23554
23542
|
var files = _a.files;
|
|
23555
|
-
return (React__default.default.createElement(Container$
|
|
23543
|
+
return (React__default.default.createElement(Container$Z, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
23556
23544
|
files.map(function (file) { return React__default.default.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
23557
23545
|
:
|
|
23558
23546
|
React__default.default.createElement("i", null, "No file to show")));
|
|
@@ -23653,7 +23641,7 @@ const AccessibleMapLink = styled__default.default(MapLink$1)`
|
|
|
23653
23641
|
${(props) => props.theme.visuallyHidden};
|
|
23654
23642
|
`;
|
|
23655
23643
|
|
|
23656
|
-
const Container$
|
|
23644
|
+
const Container$Y = styled__default.default.div`
|
|
23657
23645
|
border: solid 4px;
|
|
23658
23646
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
23659
23647
|
border-color: ${(props) =>
|
|
@@ -23707,7 +23695,7 @@ const InnerContainer$2 = styled__default.default.div`
|
|
|
23707
23695
|
*/
|
|
23708
23696
|
var AlertBannerService = function (_a) {
|
|
23709
23697
|
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
23710
|
-
return (React__default.default.createElement(Container$
|
|
23698
|
+
return (React__default.default.createElement(Container$Y, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
23711
23699
|
React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
23712
23700
|
(title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading$1, { text: title }),
|
|
23713
23701
|
children)));
|
|
@@ -23760,7 +23748,7 @@ var GoogleMap = function (_a) {
|
|
|
23760
23748
|
React__default.default.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
23761
23749
|
};
|
|
23762
23750
|
|
|
23763
|
-
const Container$
|
|
23751
|
+
const Container$X = styled__default.default.figure`
|
|
23764
23752
|
display: block;
|
|
23765
23753
|
background: ${(props) =>
|
|
23766
23754
|
props.theme.cardinal_name === 'north'
|
|
@@ -23793,12 +23781,12 @@ const Caption = styled__default.default.figcaption`
|
|
|
23793
23781
|
*/
|
|
23794
23782
|
var Image$1 = function (_a) {
|
|
23795
23783
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
|
|
23796
|
-
return (React__default.default.createElement(Container$
|
|
23784
|
+
return (React__default.default.createElement(Container$X, { "data-testid": "Image", "$wrapText": wrapText },
|
|
23797
23785
|
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, ratio: ratio, smallWidth: "400", largeWidth: "1200" }),
|
|
23798
23786
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React__default.default.createElement(Caption, null, caption)));
|
|
23799
23787
|
};
|
|
23800
23788
|
|
|
23801
|
-
const Container$
|
|
23789
|
+
const Container$W = styled__default.default.div`
|
|
23802
23790
|
display: block;
|
|
23803
23791
|
`;
|
|
23804
23792
|
|
|
@@ -23819,7 +23807,7 @@ const Content$6 = styled__default.default.div`
|
|
|
23819
23807
|
*/
|
|
23820
23808
|
var ImageAndText = function (_a) {
|
|
23821
23809
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
23822
|
-
return (React__default.default.createElement(Container$
|
|
23810
|
+
return (React__default.default.createElement(Container$W, { "data-testid": "ImageAndText" },
|
|
23823
23811
|
React__default.default.createElement(Row$1, null,
|
|
23824
23812
|
heading && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23825
23813
|
React__default.default.createElement(HeadingContainer, null,
|
|
@@ -23839,7 +23827,7 @@ var CaseAppointmentType;
|
|
|
23839
23827
|
CaseAppointmentType["Writing"] = "writing";
|
|
23840
23828
|
})(CaseAppointmentType || (CaseAppointmentType = {}));
|
|
23841
23829
|
|
|
23842
|
-
const Container$
|
|
23830
|
+
const Container$V = styled__default.default.div`
|
|
23843
23831
|
display: block;
|
|
23844
23832
|
box-sizing: border-box;
|
|
23845
23833
|
`;
|
|
@@ -23960,7 +23948,7 @@ var InquestSchedule = function (_a) {
|
|
|
23960
23948
|
};
|
|
23961
23949
|
});
|
|
23962
23950
|
};
|
|
23963
|
-
return (React__default.default.createElement(Container$
|
|
23951
|
+
return (React__default.default.createElement(Container$V, { "data-testid": "InquestSchedule" },
|
|
23964
23952
|
Object.keys(hearingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23965
23953
|
React__default.default.createElement(Heading$1, { level: 2, text: title }),
|
|
23966
23954
|
React__default.default.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
|
|
@@ -23975,7 +23963,7 @@ var InquestSchedule = function (_a) {
|
|
|
23975
23963
|
error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))));
|
|
23976
23964
|
};
|
|
23977
23965
|
|
|
23978
|
-
const Container$
|
|
23966
|
+
const Container$U = styled__default.default.div`
|
|
23979
23967
|
${(props) => props.theme.fontStyles};
|
|
23980
23968
|
overflow: hidden;
|
|
23981
23969
|
margin: 40px auto 5px auto;
|
|
@@ -24052,7 +24040,7 @@ const CTA = styled__default.default.a`
|
|
|
24052
24040
|
*/
|
|
24053
24041
|
var PromoBanner = function (_a) {
|
|
24054
24042
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
24055
|
-
return (React__default.default.createElement(Container$
|
|
24043
|
+
return (React__default.default.createElement(Container$U, null,
|
|
24056
24044
|
React__default.default.createElement(ImageLink, { href: ctaUrl, title: ctaText },
|
|
24057
24045
|
React__default.default.createElement(ResponsiveImage, { imageSmall: image144x81, imageLarge: image1440x810, imageAltText: ctaText, smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "cover" })),
|
|
24058
24046
|
React__default.default.createElement(Wrapper$4, null,
|
|
@@ -24263,7 +24251,7 @@ var Promotions = function (_a) {
|
|
|
24263
24251
|
numberOfPromos > 1 && React__default.default.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
|
|
24264
24252
|
};
|
|
24265
24253
|
|
|
24266
|
-
const Container$
|
|
24254
|
+
const Container$T = styled__default.default.div`
|
|
24267
24255
|
display: block;
|
|
24268
24256
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24269
24257
|
`;
|
|
@@ -24280,11 +24268,11 @@ var RecyclingInformation = function (_a) {
|
|
|
24280
24268
|
document.body.appendChild(script);
|
|
24281
24269
|
});
|
|
24282
24270
|
var innerHTML = "\n <c9-recycling-info\n data-testid=\"RecyclingInfoInner\"\n client-id=".concat(clientId, "\n style=\"--theme-c9- --theme-c9-primary-text-color:").concat(themeContext.theme_vars.colours.black, ";\n --theme-c9-heading-color: ").concat(themeContext.theme_vars.colours.black, ";\n --theme-c9-link-color: ").concat(themeContext.theme_vars.colours.action, ";\n --theme-c9-input-text-color: ").concat(themeContext.theme_vars.colours.black, ";\n --theme-c9-input-border-color: ").concat(themeContext.theme_vars.colours.grey, "; \n --theme-c9-card-border-radius: ").concat(themeContext.theme_vars.border_radius, ";\n --theme-c9-disposal-options-card-color: ").concat(themeContext.theme_vars.colours.action_light, ";\n --theme-c9-disposal-options-card-border-radius: ").concat(themeContext.theme_vars.border_radius, ";\n --theme-c9-body-font-family: ").concat(themeContext.theme_vars.fontstack, ";\n --theme-c9-heading-font-family: ").concat(themeContext.theme_vars.fontstack, ";\n --theme-c9-card-border: 1px solid ").concat(themeContext.theme_vars.colours.grey_light, "; \n --theme-c9-card-box-shadow: 2px 2px 5px ").concat(themeContext.theme_vars.colours.grey, ";\n --theme-c9-item-highlight-color: ").concat(themeContext.theme_vars.colours.action_light, ";\n --theme-c9-background-color: ").concat(themeContext.theme_vars.colours.white, ";\n --theme-c9-card-color: ").concat(themeContext.theme_vars.colours.grey_light, ";\n\"/>");
|
|
24283
|
-
return (React__default.default.createElement(Container$
|
|
24271
|
+
return (React__default.default.createElement(Container$T, { "data-testid": "RecyclingInformation" },
|
|
24284
24272
|
React__default.default.createElement("div", { dangerouslySetInnerHTML: { __html: innerHTML } })));
|
|
24285
24273
|
};
|
|
24286
24274
|
|
|
24287
|
-
const Container$
|
|
24275
|
+
const Container$S = styled__default.default.div`
|
|
24288
24276
|
display: block;
|
|
24289
24277
|
`;
|
|
24290
24278
|
|
|
@@ -24400,7 +24388,7 @@ var RoadworksList = function (_a) {
|
|
|
24400
24388
|
}
|
|
24401
24389
|
}
|
|
24402
24390
|
};
|
|
24403
|
-
return (React__default.default.createElement(Container$
|
|
24391
|
+
return (React__default.default.createElement(Container$S, { "data-testid": "RoadworksList" },
|
|
24404
24392
|
React__default.default.createElement(Heading$1, { level: 2, text: title }),
|
|
24405
24393
|
React__default.default.createElement(Label$7, { htmlFor: "roadworksSearch" }, "Search roadworks"),
|
|
24406
24394
|
React__default.default.createElement(Input, { id: "roadworksSearch", name: "roadworksSearch", type: "text", placeholder: "Enter a search term", maxLength: 255, onChange: handleSearch, isFullWidth: true }),
|
|
@@ -24429,7 +24417,7 @@ var RoadworksList = function (_a) {
|
|
|
24429
24417
|
roadworks.length == 0 && (React__default.default.createElement(NoMatches, null, "Sorry, we're not able to find any results at the moment. Please try again later."))));
|
|
24430
24418
|
};
|
|
24431
24419
|
|
|
24432
|
-
const Container$
|
|
24420
|
+
const Container$R = styled__default.default.div`
|
|
24433
24421
|
padding: 0;
|
|
24434
24422
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
24435
24423
|
position: relative;
|
|
@@ -24480,7 +24468,7 @@ const Inner = styled__default.default.div`
|
|
|
24480
24468
|
}
|
|
24481
24469
|
`;
|
|
24482
24470
|
|
|
24483
|
-
const Container$
|
|
24471
|
+
const Container$Q = styled__default.default.div`
|
|
24484
24472
|
display: block;
|
|
24485
24473
|
|
|
24486
24474
|
input[type='text'] {
|
|
@@ -24553,7 +24541,7 @@ var CustomSearch = function (_a) {
|
|
|
24553
24541
|
if (!id) {
|
|
24554
24542
|
id = React.useId();
|
|
24555
24543
|
}
|
|
24556
|
-
return (React__default.default.createElement(Container$
|
|
24544
|
+
return (React__default.default.createElement(Container$Q, { "data-testid": "CustomSearch" },
|
|
24557
24545
|
React__default.default.createElement("form", { method: method, action: path, "aria-label": label },
|
|
24558
24546
|
React__default.default.createElement("div", { role: "search" },
|
|
24559
24547
|
React__default.default.createElement(Label$6, { htmlFor: id, "$hasHiddenLabel": hasHiddenLabel }, label),
|
|
@@ -24573,7 +24561,7 @@ var SearchBox = function (_a) {
|
|
|
24573
24561
|
searchBoxLink && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-third" },
|
|
24574
24562
|
React__default.default.createElement(LinkContainer, null,
|
|
24575
24563
|
React__default.default.createElement(Button$4, { text: searchBoxLink.title, url: searchBoxLink.url, primary: searchBoxLinkIsPrimary })))))));
|
|
24576
|
-
return (React__default.default.createElement(Container$
|
|
24564
|
+
return (React__default.default.createElement(Container$R, { "data-testid": "SearchBox", "$hasImage": imageSmall && imageLarge },
|
|
24577
24565
|
imageSmall && imageLarge && (React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "400", largeWidth: "1200", ratio: "auto", objectFit: "cover" })),
|
|
24578
24566
|
searchInner));
|
|
24579
24567
|
};
|
|
@@ -24704,7 +24692,7 @@ var WarningTextDisclaimer = function () {
|
|
|
24704
24692
|
"."));
|
|
24705
24693
|
};
|
|
24706
24694
|
|
|
24707
|
-
const Container$
|
|
24695
|
+
const Container$P = styled__default.default.div`
|
|
24708
24696
|
display: block;
|
|
24709
24697
|
`;
|
|
24710
24698
|
|
|
@@ -24727,7 +24715,8 @@ const StyledTextarea = styled__default.default.textarea`
|
|
|
24727
24715
|
|
|
24728
24716
|
&:focus {
|
|
24729
24717
|
outline: none;
|
|
24730
|
-
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0
|
|
24718
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
24719
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
24731
24720
|
transition: box-shadow 0.3s ease 0s;
|
|
24732
24721
|
}
|
|
24733
24722
|
`;
|
|
@@ -24747,7 +24736,7 @@ const ErrorText = styled__default.default.p`
|
|
|
24747
24736
|
}
|
|
24748
24737
|
`;
|
|
24749
24738
|
|
|
24750
|
-
const Container$
|
|
24739
|
+
const Container$O = styled__default.default.div`
|
|
24751
24740
|
display: block;
|
|
24752
24741
|
`;
|
|
24753
24742
|
|
|
@@ -24763,7 +24752,7 @@ var CharacterCount = function (_a) {
|
|
|
24763
24752
|
var calculatedRemaining = maxLength - input.length;
|
|
24764
24753
|
setRemaining(calculatedRemaining < 0 ? 0 : calculatedRemaining);
|
|
24765
24754
|
}, [input]);
|
|
24766
|
-
return (React__default.default.createElement(Container$
|
|
24755
|
+
return (React__default.default.createElement(Container$O, { "data-testid": "CharacterCount" },
|
|
24767
24756
|
React__default.default.createElement(Count, { "aria-live": "polite" },
|
|
24768
24757
|
"You have ",
|
|
24769
24758
|
remaining,
|
|
@@ -24783,7 +24772,7 @@ var Textarea = function (_a) {
|
|
|
24783
24772
|
maxLength && typeof value === 'string' && React__default.default.createElement(CharacterCount, { maxLength: maxLength, input: value }))) : (React__default.default.createElement(StyledTextarea, { onChange: onChange, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, "$isFullWidth": isFullWidth }))));
|
|
24784
24773
|
};
|
|
24785
24774
|
|
|
24786
|
-
const Container$
|
|
24775
|
+
const Container$N = styled__default.default.div`
|
|
24787
24776
|
display: block;
|
|
24788
24777
|
width: 100%;
|
|
24789
24778
|
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -24809,7 +24798,7 @@ const ErrorLink = styled__default.default.a`
|
|
|
24809
24798
|
|
|
24810
24799
|
var ErrorSummary = function (_a) {
|
|
24811
24800
|
var errors = _a.errors;
|
|
24812
|
-
return (React__default.default.createElement(Container$
|
|
24801
|
+
return (React__default.default.createElement(Container$N, { "data-testid": "ErrorSummary" },
|
|
24813
24802
|
React__default.default.createElement(Heading$1, { level: 2, text: "There is a problem" }),
|
|
24814
24803
|
React__default.default.createElement(ErrorList, null, Object.keys(errors).map(function (field) { return (React__default.default.createElement(ErrorMessage, { key: field },
|
|
24815
24804
|
React__default.default.createElement(ErrorLink, { href: "#".concat(field, "Error") }, errors[field].message))); }))));
|
|
@@ -24882,7 +24871,7 @@ var WebChat = function (_a) {
|
|
|
24882
24871
|
behavior: 'smooth',
|
|
24883
24872
|
});
|
|
24884
24873
|
};
|
|
24885
|
-
return (React__default.default.createElement(Container$
|
|
24874
|
+
return (React__default.default.createElement(Container$P, { "data-testid": "WebChat", ref: webChatFormRef }, forceUnavailable ? (React__default.default.createElement("p", null, unavailableMessage)) : (React__default.default.createElement(React__default.default.Fragment, null, showForm ? (React__default.default.createElement("div", null,
|
|
24886
24875
|
errors && Object.keys(errors).length > 0 && React__default.default.createElement(ErrorSummary, { errors: errors }),
|
|
24887
24876
|
React__default.default.createElement("form", { onSubmit: handleSubmit(onSubmit, errorCallback) },
|
|
24888
24877
|
React__default.default.createElement(Label$5, { htmlFor: "name" }, "Name"),
|
|
@@ -24999,7 +24988,7 @@ var AccessibleLinks = function (_a) {
|
|
|
24999
24988
|
})));
|
|
25000
24989
|
};
|
|
25001
24990
|
|
|
25002
|
-
const Container$
|
|
24991
|
+
const Container$M = styled__default.default.div`
|
|
25003
24992
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25004
24993
|
background: ${(props) =>
|
|
25005
24994
|
props.$alertType === 'alert'
|
|
@@ -25130,7 +25119,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
|
|
|
25130
25119
|
}
|
|
25131
25120
|
};
|
|
25132
25121
|
|
|
25133
|
-
const Container$
|
|
25122
|
+
const Container$L = styled__default.default.div`
|
|
25134
25123
|
background: ${(props) =>
|
|
25135
25124
|
props.$noBackground
|
|
25136
25125
|
? 'transparent'
|
|
@@ -25172,7 +25161,7 @@ const MaxWidth = styled__default.default.div`
|
|
|
25172
25161
|
*/
|
|
25173
25162
|
var MaxWidthContainer = function (_a) {
|
|
25174
25163
|
var children = _a.children, classes = _a.classes, _b = _a.noBackground, noBackground = _b === void 0 ? false : _b, _c = _a.noPadding, noPadding = _c === void 0 ? false : _c, _d = _a.overflowVisible, overflowVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "classes", "noBackground", "noPadding", "overflowVisible"]);
|
|
25175
|
-
return (React__default.default.createElement(Container$
|
|
25164
|
+
return (React__default.default.createElement(Container$L, { "$noBackground": noBackground, "$noPadding": noPadding, "$overflowVisible": overflowVisible },
|
|
25176
25165
|
React__default.default.createElement(MaxWidth, __assign$2({ className: classes, "$overflowVisible": overflowVisible }, props), children)));
|
|
25177
25166
|
};
|
|
25178
25167
|
|
|
@@ -25243,7 +25232,7 @@ var AlertBanner = function (_a) {
|
|
|
25243
25232
|
setShowAlert(false);
|
|
25244
25233
|
};
|
|
25245
25234
|
return (showAlert &&
|
|
25246
|
-
notServer && (React__default.default.createElement(Container$
|
|
25235
|
+
notServer && (React__default.default.createElement(Container$M, { "$alertType": alertType, "data-testid": "AlertBanner" },
|
|
25247
25236
|
React__default.default.createElement(MaxWidthContainer, { noBackground: true },
|
|
25248
25237
|
React__default.default.createElement(InnerContainer$1, null,
|
|
25249
25238
|
React__default.default.createElement(BannerContentContainer, null,
|
|
@@ -25257,7 +25246,7 @@ var AlertBanner = function (_a) {
|
|
|
25257
25246
|
"Dismiss"))))));
|
|
25258
25247
|
};
|
|
25259
25248
|
|
|
25260
|
-
const Container$
|
|
25249
|
+
const Container$K = styled__default.default.a`
|
|
25261
25250
|
display: inline-block;
|
|
25262
25251
|
position: relative;
|
|
25263
25252
|
padding-top: 15px;
|
|
@@ -25316,10 +25305,10 @@ const Container$I = styled__default.default.a`
|
|
|
25316
25305
|
*/
|
|
25317
25306
|
var BackLink = function (_a) {
|
|
25318
25307
|
var link = _a.link, _b = _a.useHistory, useHistory = _b === void 0 ? false : _b;
|
|
25319
|
-
return (React__default.default.createElement(React__default.default.Fragment, null, useHistory ? (React__default.default.createElement(Container$
|
|
25308
|
+
return (React__default.default.createElement(React__default.default.Fragment, null, useHistory ? (React__default.default.createElement(Container$K, { onClick: function () { return history.back(); }, "data-testid": "BackLink", as: "button" }, "Back")) : (React__default.default.createElement(Container$K, { href: link, "data-testid": "BackLink" }, "Back"))));
|
|
25320
25309
|
};
|
|
25321
25310
|
|
|
25322
|
-
const Container$
|
|
25311
|
+
const Container$J = styled__default.default.div`
|
|
25323
25312
|
padding-top: 15px;
|
|
25324
25313
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
25325
25314
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
@@ -25387,14 +25376,392 @@ const BreadcrumbLink$1 = styled__default.default.a`
|
|
|
25387
25376
|
|
|
25388
25377
|
var Breadcrumbs = function (_a) {
|
|
25389
25378
|
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
25390
|
-
return (React__default.default.createElement(Container$
|
|
25379
|
+
return (React__default.default.createElement(Container$J, { "$hasMargin": hasMargin, "data-testid": "Breadcrumbs" },
|
|
25391
25380
|
React__default.default.createElement(List$2, { as: breadcrumbsArray.length === 1 ? 'div' : 'ol' }, breadcrumbsArray.map(function (crumb) { return (React__default.default.createElement(Crumb, { key: crumb.title, as: breadcrumbsArray.length === 1 ? 'span' : 'li' }, React__default.default.createElement(React__default.default.Fragment, null,
|
|
25392
25381
|
React__default.default.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
25393
25382
|
React__default.default.createElement(IconWrapper$4, null,
|
|
25394
25383
|
React__default.default.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
25395
25384
|
};
|
|
25396
25385
|
|
|
25397
|
-
const Container$
|
|
25386
|
+
const Container$I = styled__default.default.div`
|
|
25387
|
+
display: block;
|
|
25388
|
+
|
|
25389
|
+
a {
|
|
25390
|
+
text-decoration: none !important;
|
|
25391
|
+
font-weight: normal !important;
|
|
25392
|
+
|
|
25393
|
+
b {
|
|
25394
|
+
font-weight: bold !important;
|
|
25395
|
+
}
|
|
25396
|
+
}
|
|
25397
|
+
|
|
25398
|
+
.wnc-cludo-input {
|
|
25399
|
+
padding-left: 0;
|
|
25400
|
+
padding-right: 0;
|
|
25401
|
+
display: flex;
|
|
25402
|
+
flex-direction: row;
|
|
25403
|
+
}
|
|
25404
|
+
|
|
25405
|
+
.wnc-cludo-input input {
|
|
25406
|
+
padding: 10px;
|
|
25407
|
+
min-height: 44px;
|
|
25408
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25409
|
+
border-radius: 6px 0 0 6px;
|
|
25410
|
+
flex-grow: 1;
|
|
25411
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25412
|
+
}
|
|
25413
|
+
|
|
25414
|
+
.wnc-cludo-input input:focus,
|
|
25415
|
+
.wnc-cludo-input input:active {
|
|
25416
|
+
outline: none;
|
|
25417
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25418
|
+
border-radius: 6px 0 0 6px;
|
|
25419
|
+
box-shadow: 0 0 0 2px #e2ca76, 0 0 0 4px #000;
|
|
25420
|
+
}
|
|
25421
|
+
|
|
25422
|
+
.wnc-cludo-input button {
|
|
25423
|
+
height: 46px;
|
|
25424
|
+
width: 46px;
|
|
25425
|
+
margin-left: 0;
|
|
25426
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25427
|
+
border-radius: 0 6px 6px 0;
|
|
25428
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25429
|
+
cursor: pointer;
|
|
25430
|
+
|
|
25431
|
+
&:hover {
|
|
25432
|
+
background-color: ${(props) => props.theme.theme_vars.action_dark};
|
|
25433
|
+
}
|
|
25434
|
+
|
|
25435
|
+
svg {
|
|
25436
|
+
width: 20px;
|
|
25437
|
+
height: 20px;
|
|
25438
|
+
}
|
|
25439
|
+
}
|
|
25440
|
+
|
|
25441
|
+
.wnc-cludo-did-you-mean {
|
|
25442
|
+
display: block;
|
|
25443
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25444
|
+
}
|
|
25445
|
+
|
|
25446
|
+
.wnc-cludo-facet-list {
|
|
25447
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25448
|
+
|
|
25449
|
+
h3 {
|
|
25450
|
+
${(props) => props.theme.theme_vars.h3};
|
|
25451
|
+
margin-top: 0;
|
|
25452
|
+
}
|
|
25453
|
+
}
|
|
25454
|
+
|
|
25455
|
+
.wnc-cludo-facet-list ul {
|
|
25456
|
+
list-style: none;
|
|
25457
|
+
display: flex;
|
|
25458
|
+
flex-direction: row;
|
|
25459
|
+
flex-wrap: wrap;
|
|
25460
|
+
justify-content: flex-start;
|
|
25461
|
+
margin: 0;
|
|
25462
|
+
|
|
25463
|
+
li {
|
|
25464
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25465
|
+
left: 0;
|
|
25466
|
+
line-height: 1.5;
|
|
25467
|
+
|
|
25468
|
+
a {
|
|
25469
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
25470
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25471
|
+
padding: ${(props) =>
|
|
25472
|
+
`${props.theme.theme_vars.spacingSizes.extra_small} ${props.theme.theme_vars.spacingSizes.small}`};
|
|
25473
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25474
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
25475
|
+
|
|
25476
|
+
&:hover {
|
|
25477
|
+
text-decoration: underline !important;
|
|
25478
|
+
text-decoration-style: dotted !important;
|
|
25479
|
+
}
|
|
25480
|
+
|
|
25481
|
+
&.cludo-active {
|
|
25482
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25483
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25484
|
+
}
|
|
25485
|
+
.cludo-theme-facet-count {
|
|
25486
|
+
&:before {
|
|
25487
|
+
content: '(';
|
|
25488
|
+
}
|
|
25489
|
+
&:after {
|
|
25490
|
+
content: ')';
|
|
25491
|
+
}
|
|
25492
|
+
}
|
|
25493
|
+
}
|
|
25494
|
+
}
|
|
25495
|
+
}
|
|
25496
|
+
|
|
25497
|
+
.cludo_results-list {
|
|
25498
|
+
list-style: none;
|
|
25499
|
+
}
|
|
25500
|
+
|
|
25501
|
+
.cludo_results-list li {
|
|
25502
|
+
width: 100%;
|
|
25503
|
+
left: 0 !important;
|
|
25504
|
+
line-height: 1.5;
|
|
25505
|
+
padding-right: 0;
|
|
25506
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
25507
|
+
}
|
|
25508
|
+
|
|
25509
|
+
.wnc-cludo-result {
|
|
25510
|
+
display: flex;
|
|
25511
|
+
flex-direction: column;
|
|
25512
|
+
flex-wrap: wrap;
|
|
25513
|
+
align-items: flex-start;
|
|
25514
|
+
}
|
|
25515
|
+
|
|
25516
|
+
.cludo-banner {
|
|
25517
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
25518
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25519
|
+
width: 100%;
|
|
25520
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25521
|
+
|
|
25522
|
+
a {
|
|
25523
|
+
text-decoration: underline !important;
|
|
25524
|
+
font-weight: 700 !important;
|
|
25525
|
+
}
|
|
25526
|
+
|
|
25527
|
+
button {
|
|
25528
|
+
outline: none;
|
|
25529
|
+
background: transparent;
|
|
25530
|
+
border: none;
|
|
25531
|
+
|
|
25532
|
+
a {
|
|
25533
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25534
|
+
color: ${(props) => props.theme.theme_vars.colours.white} !important;
|
|
25535
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25536
|
+
display: inline-block;
|
|
25537
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25538
|
+
text-decoration: none !important;
|
|
25539
|
+
font-weight: 700 !important;
|
|
25540
|
+
|
|
25541
|
+
&:hover {
|
|
25542
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
25543
|
+
}
|
|
25544
|
+
|
|
25545
|
+
&:focus,
|
|
25546
|
+
&:active {
|
|
25547
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
25548
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25549
|
+
box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
25550
|
+
}
|
|
25551
|
+
}
|
|
25552
|
+
}
|
|
25553
|
+
}
|
|
25554
|
+
|
|
25555
|
+
.wnc-cludo-result {
|
|
25556
|
+
display: block;
|
|
25557
|
+
&:hover {
|
|
25558
|
+
.wnc-cludo-title {
|
|
25559
|
+
${(props) => props.theme.linkStylesHover};
|
|
25560
|
+
}
|
|
25561
|
+
}
|
|
25562
|
+
|
|
25563
|
+
&:focus {
|
|
25564
|
+
${(props) => props.theme.linkStylesFocus};
|
|
25565
|
+
}
|
|
25566
|
+
|
|
25567
|
+
&:active {
|
|
25568
|
+
${(props) => props.theme.linkStylesActive};
|
|
25569
|
+
}
|
|
25570
|
+
}
|
|
25571
|
+
|
|
25572
|
+
.wnc-cludo-title {
|
|
25573
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25574
|
+
font-weight: 700;
|
|
25575
|
+
text-decoration: underline;
|
|
25576
|
+
margin-bottom: 0;
|
|
25577
|
+
font-size: 1.2em;
|
|
25578
|
+
}
|
|
25579
|
+
|
|
25580
|
+
.wnc-cludo-description {
|
|
25581
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25582
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25583
|
+
}
|
|
25584
|
+
|
|
25585
|
+
.wnc-cludo-badge {
|
|
25586
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25587
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25588
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
25589
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25590
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25591
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25592
|
+
display: inline-block;
|
|
25593
|
+
}
|
|
25594
|
+
|
|
25595
|
+
.wnc-cludo-result-link {
|
|
25596
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
25597
|
+
}
|
|
25598
|
+
|
|
25599
|
+
.wnc-cludo-pagination ul {
|
|
25600
|
+
list-style: none;
|
|
25601
|
+
display: flex;
|
|
25602
|
+
flex-direction: row;
|
|
25603
|
+
flex-wrap: wrap;
|
|
25604
|
+
margin-left: 0;
|
|
25605
|
+
|
|
25606
|
+
li {
|
|
25607
|
+
left: 0%;
|
|
25608
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25609
|
+
|
|
25610
|
+
button {
|
|
25611
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25612
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25613
|
+
outline: none;
|
|
25614
|
+
border: none;
|
|
25615
|
+
padding: 15px 19px;
|
|
25616
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25617
|
+
cursor: pointer;
|
|
25618
|
+
|
|
25619
|
+
&:hover {
|
|
25620
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
25621
|
+
}
|
|
25622
|
+
|
|
25623
|
+
&:focus,
|
|
25624
|
+
&:active {
|
|
25625
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25626
|
+
box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
25627
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25628
|
+
}
|
|
25629
|
+
}
|
|
25630
|
+
}
|
|
25631
|
+
}
|
|
25632
|
+
`;
|
|
25633
|
+
|
|
25634
|
+
const ImageContainer$5 = styled__default.default.div`
|
|
25635
|
+
img {
|
|
25636
|
+
width: 100%;
|
|
25637
|
+
}
|
|
25638
|
+
`;
|
|
25639
|
+
|
|
25640
|
+
const AutocompleteContainer = styled__default.default.div`
|
|
25641
|
+
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : '0')};
|
|
25642
|
+
`;
|
|
25643
|
+
|
|
25644
|
+
const AutocompleteList = styled__default.default.ul`
|
|
25645
|
+
list-style: none;
|
|
25646
|
+
margin-top: 0 !important;
|
|
25647
|
+
margin-left: 0 !important;
|
|
25648
|
+
|
|
25649
|
+
position: absolute;
|
|
25650
|
+
z-index: 2;
|
|
25651
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
25652
|
+
|
|
25653
|
+
li {
|
|
25654
|
+
cursor: pointer;
|
|
25655
|
+
border-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25656
|
+
border-style: solid;
|
|
25657
|
+
border-width: 1px 2px;
|
|
25658
|
+
left: 0 !important;
|
|
25659
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25660
|
+
margin-bottom: 0 !important;
|
|
25661
|
+
|
|
25662
|
+
&:hover,
|
|
25663
|
+
&.active {
|
|
25664
|
+
background: ${(props) => props.theme.theme_vars.colours.action};
|
|
25665
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25666
|
+
}
|
|
25667
|
+
}
|
|
25668
|
+
`;
|
|
25669
|
+
|
|
25670
|
+
const MobileFacets = styled__default.default.div`
|
|
25671
|
+
display: block;
|
|
25672
|
+
|
|
25673
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25674
|
+
display: none;
|
|
25675
|
+
}
|
|
25676
|
+
`;
|
|
25677
|
+
|
|
25678
|
+
const DesktopFacets = styled__default.default.div`
|
|
25679
|
+
display: none;
|
|
25680
|
+
|
|
25681
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25682
|
+
display: block;
|
|
25683
|
+
}
|
|
25684
|
+
`;
|
|
25685
|
+
|
|
25686
|
+
var CludoAutoComplete = function (_a) {
|
|
25687
|
+
var _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b;
|
|
25688
|
+
var _c = ssr.useAutocomplete(), autocompleteState = _c[0], autocompleteDispatchers = _c[1];
|
|
25689
|
+
var handleSubmit = function (e) {
|
|
25690
|
+
e.preventDefault();
|
|
25691
|
+
};
|
|
25692
|
+
var handleChange = function (e) {
|
|
25693
|
+
ssr.autocompleteHandleInputChange(e, autocompleteDispatchers);
|
|
25694
|
+
};
|
|
25695
|
+
var handleBlur = function (e) {
|
|
25696
|
+
ssr.autocompleteHandleInputBlur(e, autocompleteDispatchers);
|
|
25697
|
+
};
|
|
25698
|
+
var handleKeyDown = function (e) {
|
|
25699
|
+
ssr.autocompleteHandleInputKeyDown(e, autocompleteDispatchers);
|
|
25700
|
+
};
|
|
25701
|
+
return (React__default.default.createElement(AutocompleteContainer, { "$hasMargin": hasMargin },
|
|
25702
|
+
React__default.default.createElement(ssr.SearchInput, { className: "wnc-cludo-input", formId: "search", ariaLabel: "Search the website", onChange: handleChange, onSubmit: handleSubmit, onBlur: handleBlur, onKeyDown: handleKeyDown }),
|
|
25703
|
+
React__default.default.createElement(AutocompleteList, null, autocompleteState.suggestions.map(function (suggestion, index) {
|
|
25704
|
+
return (React__default.default.createElement(ssr.SaytSuggestion, { disableTheme: true, key: suggestion.title + index, suggestion: suggestion, isSelected: autocompleteState.selectedSuggestion === index, suggestionIndex: index }));
|
|
25705
|
+
}))));
|
|
25706
|
+
};
|
|
25707
|
+
|
|
25708
|
+
var CludoSearch = function (_a) {
|
|
25709
|
+
_a.searchTerm; var customerId = _a.customerId, engineId = _a.engineId;
|
|
25710
|
+
var cludoSearchConfig = {
|
|
25711
|
+
customerId: customerId,
|
|
25712
|
+
engineId: engineId,
|
|
25713
|
+
searchUrl: '/',
|
|
25714
|
+
language: 'en',
|
|
25715
|
+
facets: {
|
|
25716
|
+
keys: ['Category'],
|
|
25717
|
+
defaultValues: {
|
|
25718
|
+
Category: ['West Northamptonshire Council'],
|
|
25719
|
+
},
|
|
25720
|
+
},
|
|
25721
|
+
behavior: {
|
|
25722
|
+
enableRelatedSearches: true,
|
|
25723
|
+
},
|
|
25724
|
+
instanceId: '',
|
|
25725
|
+
components: {
|
|
25726
|
+
autocomplete: CludoAutoComplete,
|
|
25727
|
+
},
|
|
25728
|
+
};
|
|
25729
|
+
var filterOrder = [
|
|
25730
|
+
'West Northamptonshire Council',
|
|
25731
|
+
'News',
|
|
25732
|
+
'Local Organisations',
|
|
25733
|
+
'SEND Local Offer',
|
|
25734
|
+
"Northamptonshire Children's Trust",
|
|
25735
|
+
'*',
|
|
25736
|
+
];
|
|
25737
|
+
return (React__default.default.createElement(Container$I, { "data-testid": "CludoSearch" },
|
|
25738
|
+
React__default.default.createElement(ssr.CludoWrapper, { config: cludoSearchConfig },
|
|
25739
|
+
React__default.default.createElement(CludoAutoComplete, null),
|
|
25740
|
+
React__default.default.createElement(ssr.ResultCount, null),
|
|
25741
|
+
React__default.default.createElement(ssr.DidYouMean, { className: "wnc-cludo-did-you-mean" }),
|
|
25742
|
+
React__default.default.createElement(Row$1, null,
|
|
25743
|
+
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "three-quarters" },
|
|
25744
|
+
React__default.default.createElement(MobileFacets, null,
|
|
25745
|
+
React__default.default.createElement(ssr.FacetGroup, null,
|
|
25746
|
+
React__default.default.createElement(ssr.StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder }))),
|
|
25747
|
+
React__default.default.createElement(ssr.ResultsList, { template: function (currResult) { return (React__default.default.createElement(ssr.CustomResult, { result: currResult, wrapWithLink: true, className: "wnc-cludo-result" },
|
|
25748
|
+
React__default.default.createElement(Row$1, null,
|
|
25749
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
|
|
25750
|
+
React__default.default.createElement(ImageContainer$5, null,
|
|
25751
|
+
React__default.default.createElement(ssr.ResultImage, { className: "wnc-cludo-image" }))),
|
|
25752
|
+
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "three-quarters" },
|
|
25753
|
+
React__default.default.createElement(ssr.ResultTitle, { className: "wnc-cludo-title" }),
|
|
25754
|
+
React__default.default.createElement(ssr.ResultDescription, { maxWordCount: 20, className: "wnc-cludo-description" }),
|
|
25755
|
+
React__default.default.createElement(ssr.ResultBadge, { className: "wnc-cludo-badge" }),
|
|
25756
|
+
React__default.default.createElement(ssr.ResultUrl, { className: "wnc-cludo-result-link" }))))); } }),
|
|
25757
|
+
React__default.default.createElement(ssr.Pagination, { className: "wnc-cludo-pagination", previousButtonIcon: "Previous", nextButtonIcon: "Next" })),
|
|
25758
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
|
|
25759
|
+
React__default.default.createElement(DesktopFacets, null,
|
|
25760
|
+
React__default.default.createElement(ssr.FacetGroup, null,
|
|
25761
|
+
React__default.default.createElement(ssr.StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder }))))))));
|
|
25762
|
+
};
|
|
25763
|
+
|
|
25764
|
+
const Container$H = styled__default.default.div`
|
|
25398
25765
|
display: block;
|
|
25399
25766
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
25400
25767
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
@@ -25444,12 +25811,12 @@ const CurrentPage = styled__default.default.span`
|
|
|
25444
25811
|
|
|
25445
25812
|
var Contents$1 = function (_a) {
|
|
25446
25813
|
var contents = _a.contents, _b = _a.currentPath, currentPath = _b === void 0 ? undefined : _b, _c = _a.title, title = _c === void 0 ? 'Contents' : _c;
|
|
25447
|
-
return (React__default.default.createElement(Container$
|
|
25814
|
+
return (React__default.default.createElement(Container$H, { "data-testid": "Contents" },
|
|
25448
25815
|
React__default.default.createElement(Heading$1, { text: title, level: 2 }),
|
|
25449
25816
|
React__default.default.createElement(List$1, null, contents.map(function (content, index) { return (React__default.default.createElement(ListItem$1, { key: index }, content.url === currentPath ? (React__default.default.createElement(CurrentPage, null, content.title)) : (React__default.default.createElement(Link$2, { href: content.url, "$active": content.url === currentPath }, content.title)))); }))));
|
|
25450
25817
|
};
|
|
25451
25818
|
|
|
25452
|
-
const Container$
|
|
25819
|
+
const Container$G = styled__default.default.div`
|
|
25453
25820
|
display: block;
|
|
25454
25821
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
25455
25822
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -25499,7 +25866,7 @@ var ContentsNavigation = function (_a) {
|
|
|
25499
25866
|
};
|
|
25500
25867
|
var nextPage = currentPage() < contents.length - 1 ? contents[currentPage() + 1] : undefined;
|
|
25501
25868
|
var previousPage = currentPage() !== 0 ? contents[currentPage() - 1] : undefined;
|
|
25502
|
-
return (React__default.default.createElement(Container$
|
|
25869
|
+
return (React__default.default.createElement(Container$G, { "data-testid": "ContentsNavigation" },
|
|
25503
25870
|
previousPage && (React__default.default.createElement(NavigationLink, { href: previousPage.url },
|
|
25504
25871
|
React__default.default.createElement(Arrow, null, "\u2190"),
|
|
25505
25872
|
React__default.default.createElement(LinkText, null,
|
|
@@ -25517,7 +25884,7 @@ var ContentsNavigation = function (_a) {
|
|
|
25517
25884
|
var customParseFormat$1 = {exports: {}};
|
|
25518
25885
|
|
|
25519
25886
|
(function (module, exports) {
|
|
25520
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e
|
|
25887
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,false);}],a:[i,function(e){this.afternoon=u(e,true);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=true,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=true===s[2],h=true===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&true!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
25521
25888
|
} (customParseFormat$1));
|
|
25522
25889
|
|
|
25523
25890
|
var customParseFormatExports = customParseFormat$1.exports;
|
|
@@ -25526,7 +25893,7 @@ var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatEx
|
|
|
25526
25893
|
var advancedFormat$1 = {exports: {}};
|
|
25527
25894
|
|
|
25528
25895
|
(function (module, exports) {
|
|
25529
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return s.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return "["+t.offsetName()+"]";case"zzz":return "["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)};}}));
|
|
25896
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case "Q":return Math.ceil((t.$M+1)/3);case "Do":return r.ordinal(t.$D);case "gggg":return t.weekYear();case "GGGG":return t.isoWeekYear();case "wo":return r.ordinal(t.week(),"W");case "w":case "ww":return s.s(t.week(),"w"===e?1:2,"0");case "W":case "WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case "k":case "kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case "X":return Math.floor(t.$d.getTime()/1e3);case "x":return t.$d.getTime();case "z":return "["+t.offsetName()+"]";case "zzz":return "["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)};}}));
|
|
25530
25897
|
} (advancedFormat$1));
|
|
25531
25898
|
|
|
25532
25899
|
var advancedFormatExports = advancedFormat$1.exports;
|
|
@@ -25556,7 +25923,7 @@ var DisplayDate = function (_a) {
|
|
|
25556
25923
|
postText));
|
|
25557
25924
|
};
|
|
25558
25925
|
|
|
25559
|
-
const Container$
|
|
25926
|
+
const Container$F = styled__default.default.div`
|
|
25560
25927
|
display: block;
|
|
25561
25928
|
|
|
25562
25929
|
.event-list__results {
|
|
@@ -25595,6 +25962,7 @@ const ToggleFilters = styled__default.default.button`
|
|
|
25595
25962
|
|
|
25596
25963
|
const FilterContainer$1 = styled__default.default.div`
|
|
25597
25964
|
display: ${(props) => (props.$showFilters ? 'block' : 'none')};
|
|
25965
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25598
25966
|
|
|
25599
25967
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25600
25968
|
display: block;
|
|
@@ -25621,7 +25989,7 @@ const ResultInfo$4 = styled__default.default.div`
|
|
|
25621
25989
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.large} 0;
|
|
25622
25990
|
`;
|
|
25623
25991
|
|
|
25624
|
-
const
|
|
25992
|
+
const SelectContainer = styled__default.default.div`
|
|
25625
25993
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25626
25994
|
`;
|
|
25627
25995
|
|
|
@@ -25818,8 +26186,8 @@ var transformAge = function (age, ageInMonths) {
|
|
|
25818
26186
|
};
|
|
25819
26187
|
|
|
25820
26188
|
var EventList = function (_a) {
|
|
25821
|
-
var results = _a.results, _b = _a.pageNumber, pageNumber = _b === void 0 ? 1 : _b, sortBy = _a.sortBy, setSortBy = _a.setSortBy, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, services = _a.services, _d = _a.eventSearch, eventSearch = _d === void 0 ? '' : _d, setEventSearch = _a.setEventSearch, _e = _a.service, service = _e === void 0 ? '' : _e, setService = _a.setService, _f = _a.
|
|
25822
|
-
var
|
|
26189
|
+
var results = _a.results, _b = _a.pageNumber, pageNumber = _b === void 0 ? 1 : _b, sortBy = _a.sortBy, setSortBy = _a.setSortBy, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, services = _a.services, eventTypes = _a.eventTypes, _d = _a.eventSearch, eventSearch = _d === void 0 ? '' : _d, setEventSearch = _a.setEventSearch, _e = _a.service, service = _e === void 0 ? '' : _e, setService = _a.setService, _f = _a.eventType, eventType = _f === void 0 ? [''] : _f, setEventType = _a.setEventType, _g = _a.startDate, startDate = _g === void 0 ? '' : _g, setStartDate = _a.setStartDate, _h = _a.endDate, endDate = _h === void 0 ? '' : _h, setEndDate = _a.setEndDate, onSubmit = _a.onSubmit, clearFilters = _a.clearFilters, _j = _a.eventsPagePath, eventsPagePath = _j === void 0 ? '/events' : _j, cards = _a.cards;
|
|
26190
|
+
var _k = React.useState(false), showFilters = _k[0], setShowFilters = _k[1];
|
|
25823
26191
|
var sortByOptions = [
|
|
25824
26192
|
{
|
|
25825
26193
|
title: 'Latest date',
|
|
@@ -25834,7 +26202,7 @@ var EventList = function (_a) {
|
|
|
25834
26202
|
event.preventDefault();
|
|
25835
26203
|
onSubmit();
|
|
25836
26204
|
};
|
|
25837
|
-
return (React__default.default.createElement(Container$
|
|
26205
|
+
return (React__default.default.createElement(Container$F, { "data-testid": "EventList" },
|
|
25838
26206
|
React__default.default.createElement(Row$1, null,
|
|
25839
26207
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
25840
26208
|
React__default.default.createElement(ToggleFilters, { onClick: function () { return setShowFilters(!showFilters); } },
|
|
@@ -25846,7 +26214,7 @@ var EventList = function (_a) {
|
|
|
25846
26214
|
React__default.default.createElement("form", { onSubmit: function (e) { return handleSubmit(e); } },
|
|
25847
26215
|
React__default.default.createElement("label", { htmlFor: "eventSearch" }, "Search"),
|
|
25848
26216
|
React__default.default.createElement(Input, { name: "eventSearch", id: "eventSearch", type: "text", isFullWidth: true, value: eventSearch, onChange: function (e) { return setEventSearch(e.target.value); } }),
|
|
25849
|
-
React__default.default.createElement(
|
|
26217
|
+
React__default.default.createElement(SelectContainer, null,
|
|
25850
26218
|
React__default.default.createElement(DropDownSelect, { label: "Services", options: services ? services : [{ title: 'All services', value: 'all' }], onChange: function (e) { return setService(e.target.value); }, value: service, isFullWidth: true })),
|
|
25851
26219
|
React__default.default.createElement("label", { htmlFor: "startDate" }, "Start Date"),
|
|
25852
26220
|
React__default.default.createElement(Input, { name: "startDate", id: "startDate", type: "date", isFullWidth: true, value: startDate, onChange: function (e) {
|
|
@@ -25855,8 +26223,15 @@ var EventList = function (_a) {
|
|
|
25855
26223
|
} }),
|
|
25856
26224
|
React__default.default.createElement("label", { htmlFor: "endDate" }, "End Date"),
|
|
25857
26225
|
React__default.default.createElement(Input, { name: "endDate", id: "endDate", type: "date", isFullWidth: true, minValue: startDate, value: endDate, onChange: function (e) { return setEndDate(e.target.value); } }),
|
|
26226
|
+
eventTypes && (React__default.default.createElement(SelectContainer, null,
|
|
26227
|
+
React__default.default.createElement(CheckboxListFilter, { label: "This event is for", hint: null, options: eventTypes, checked: eventType, displayLegend: true, onChange: setEventType }))),
|
|
25858
26228
|
React__default.default.createElement(FormButton, { text: "Search", size: "large" })),
|
|
25859
|
-
(eventSearch || startDate || endDate || service) && (React__default.default.createElement(ClearFilters, { onClick: function () { return clearFilters(); } }, "Clear filters")))
|
|
26229
|
+
(eventSearch || startDate || endDate || service) && (React__default.default.createElement(ClearFilters, { onClick: function () { return clearFilters(); } }, "Clear filters"))),
|
|
26230
|
+
cards && (React__default.default.createElement(Row$1, null,
|
|
26231
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
26232
|
+
React__default.default.createElement(Heading$1, { text: "Other events", level: 2 })), cards === null || cards === void 0 ? void 0 :
|
|
26233
|
+
cards.map(function (card, index) { return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: index },
|
|
26234
|
+
React__default.default.createElement(Card, __assign$2({}, card)))); })))),
|
|
25860
26235
|
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
25861
26236
|
React__default.default.createElement(EventListHeader, null,
|
|
25862
26237
|
React__default.default.createElement(Row$1, null,
|
|
@@ -25874,7 +26249,7 @@ var EventList = function (_a) {
|
|
|
25874
26249
|
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, postTo: eventsPagePath, resultsPerPage: 5 }))) : (React__default.default.createElement(ResultInfo$4, null, "No results found"))))));
|
|
25875
26250
|
};
|
|
25876
26251
|
|
|
25877
|
-
const Container$
|
|
26252
|
+
const Container$E = styled__default.default.footer`
|
|
25878
26253
|
background-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25879
26254
|
padding: 25px 0;
|
|
25880
26255
|
`;
|
|
@@ -26056,7 +26431,7 @@ var ServiceIcon = function (_a) {
|
|
|
26056
26431
|
React__default.default.createElement("path", { d: "M15.0107 13.6688L22.6607 18.0161L15.0107 22.3634V13.6688ZM36 3.85714V32.1429C36 34.2723 34.2723 36 32.1429 36H3.85714C1.72768 36 0 34.2723 0 32.1429V3.85714C0 1.72768 1.72768 0 3.85714 0H32.1429C34.2723 0 36 1.72768 36 3.85714ZM32.625 18.0241C32.625 18.0241 32.625 13.2348 32.0143 10.9366C31.6768 9.66696 30.6884 8.67054 29.4268 8.33304C27.1527 7.71429 18 7.71429 18 7.71429C18 7.71429 8.84732 7.71429 6.57321 8.33304C5.31161 8.67054 4.32321 9.66696 3.98571 10.9366C3.375 13.2268 3.375 18.0241 3.375 18.0241C3.375 18.0241 3.375 22.8134 3.98571 25.1116C4.32321 26.3813 5.31161 27.3375 6.57321 27.675C8.84732 28.2857 18 28.2857 18 28.2857C18 28.2857 27.1527 28.2857 29.4268 27.667C30.6884 27.3295 31.6768 26.3732 32.0143 25.1036C32.625 22.8134 32.625 18.0241 32.625 18.0241Z", fill: colourFill })));
|
|
26057
26432
|
};
|
|
26058
26433
|
|
|
26059
|
-
const Container$
|
|
26434
|
+
const Container$D = styled__default.default.div`
|
|
26060
26435
|
display: block;
|
|
26061
26436
|
|
|
26062
26437
|
.goog-te-combo {
|
|
@@ -26130,7 +26505,7 @@ var GoogleTranslate = function (_a) {
|
|
|
26130
26505
|
document.body.appendChild(addScript);
|
|
26131
26506
|
window.googleTranslateElementInit = googleTranslateElementInit;
|
|
26132
26507
|
}, []);
|
|
26133
|
-
return (React__default.default.createElement(Container$
|
|
26508
|
+
return (React__default.default.createElement(Container$D, { "data-testid": "GoogleTranslate", "$hasDarkBackground": hasDarkBackground },
|
|
26134
26509
|
label && React__default.default.createElement(Label$4, { "$hasDarkBackground": hasDarkBackground }, label),
|
|
26135
26510
|
React__default.default.createElement("div", { id: "google_translate_element" })));
|
|
26136
26511
|
};
|
|
@@ -26138,7 +26513,7 @@ var GoogleTranslate = function (_a) {
|
|
|
26138
26513
|
var Footer = function (_a) {
|
|
26139
26514
|
var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? new Date().getFullYear() : _c, _d = _a.hasTranslate, hasTranslate = _d === void 0 ? false : _d;
|
|
26140
26515
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
26141
|
-
return (React__default.default.createElement(Container$
|
|
26516
|
+
return (React__default.default.createElement(Container$E, { "data-testid": "Footer" },
|
|
26142
26517
|
React__default.default.createElement(StyledMaxWidthContainer$2, { noBackground: true },
|
|
26143
26518
|
React__default.default.createElement(FooterAlignment, null,
|
|
26144
26519
|
React__default.default.createElement("div", null,
|
|
@@ -26173,7 +26548,7 @@ var Footer = function (_a) {
|
|
|
26173
26548
|
: '' }, themeContext.cardinal_name === 'north' ? (React__default.default.createElement(NorthWhiteLogo, null)) : themeContext.cardinal_name === 'west' ? (React__default.default.createElement(WestWhiteLogo, null)) : (React__default.default.createElement(GDSLogo, null))))))));
|
|
26174
26549
|
};
|
|
26175
26550
|
|
|
26176
|
-
const Container$
|
|
26551
|
+
const Container$C = styled__default.default.div`
|
|
26177
26552
|
background: ${(props) => (props.$hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
|
|
26178
26553
|
padding: ${(props) => (props.$hasPadding ? '50px 0 20px' : '0')};
|
|
26179
26554
|
`;
|
|
@@ -26183,7 +26558,7 @@ const Container$B = styled__default.default.div`
|
|
|
26183
26558
|
*/
|
|
26184
26559
|
var FullWidthContainer = function (_a) {
|
|
26185
26560
|
var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
|
|
26186
|
-
return (React__default.default.createElement(Container$
|
|
26561
|
+
return (React__default.default.createElement(Container$C, { "$hasBackground": hasBackground, "$hasPadding": hasPadding, "data-testid": "FullWidthContainer" }, children));
|
|
26187
26562
|
};
|
|
26188
26563
|
|
|
26189
26564
|
/**
|
|
@@ -26215,7 +26590,7 @@ const headerThemeStyles = (props) => {
|
|
|
26215
26590
|
}
|
|
26216
26591
|
};
|
|
26217
26592
|
|
|
26218
|
-
const Container$
|
|
26593
|
+
const Container$B = styled__default.default.header`
|
|
26219
26594
|
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
26220
26595
|
position: relative;
|
|
26221
26596
|
z-index: 2;
|
|
@@ -26521,7 +26896,7 @@ var NorthColouredLogo = function () {
|
|
|
26521
26896
|
React__default.default.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
|
|
26522
26897
|
};
|
|
26523
26898
|
|
|
26524
|
-
const Container$
|
|
26899
|
+
const Container$A = styled__default.default.div`
|
|
26525
26900
|
${(props) => props.theme.fontStyles}
|
|
26526
26901
|
width: calc(100% - ${(props) => (props.$isLarge ? '5rem' : '3rem')});
|
|
26527
26902
|
`;
|
|
@@ -26675,7 +27050,7 @@ var Searchbar = function (_a) {
|
|
|
26675
27050
|
/**
|
|
26676
27051
|
* Render the component
|
|
26677
27052
|
*/
|
|
26678
|
-
return (React__default.default.createElement(Container$
|
|
27053
|
+
return (React__default.default.createElement(Container$A, { "data-testid": "Searchbar", "$isLarge": isLarge },
|
|
26679
27054
|
React__default.default.createElement("form", { onSubmit: handleSubmit },
|
|
26680
27055
|
React__default.default.createElement("div", { role: "search" },
|
|
26681
27056
|
React__default.default.createElement(InputWrapper, null,
|
|
@@ -26732,14 +27107,79 @@ var NorthBlackLogo = function () {
|
|
|
26732
27107
|
React__default.default.createElement("path", { fill: "#000", d: "M342.215 236.608c-114.072-17.17-228.119 17.17-342.191 0v-37.339c114.072 17.17 228.119-17.17 342.191 0v37.339zM411.838 122.367l-21.063-36.59v36.59h-9.335v-50.35h10.64l20.846 36.662V72.018h9.335v50.349h-10.423zM449.999 123.262c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.169 8.779 20.169 20.024 0 10.616-9.117 19.492-20.097 19.492zm0-31.22c-5.924 0-10.906 5.102-10.906 11.317 0 6.481 4.837 11.584 10.979 11.584 5.997 0 10.907-5.103 10.907-11.439 0-6.288-4.91-11.463-10.98-11.463zM484.968 101.376v20.991h-9.069v-37.75h8.319v3.676c2.395-3.483 4.305-4.57 8.174-4.57h.677v8.73c-5.465.144-8.101 3.07-8.101 8.923zM509.829 92.863v29.504h-9.069V92.863h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM545.595 122.367v-19.274c0-7.908-2.055-11.052-7.352-11.052-5.175 0-7.98 2.854-7.98 11.173v19.153h-9.069v-50.35h9.069v15.188c2.733-2.443 5.731-3.555 9.601-3.555 9.068 0 14.8 4.981 14.8 17.387v21.33h-9.069zM411.838 195.376l-21.063-36.59v36.59h-9.335v-50.35h10.64l20.846 36.662v-36.662h9.335v50.35h-10.423zM449.999 196.271c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.169 8.779 20.169 20.024 0 10.641-9.117 19.492-20.097 19.492zm0-31.221c-5.924 0-10.906 5.103-10.906 11.318 0 6.481 4.837 11.584 10.979 11.584 5.997 0 10.907-5.103 10.907-11.439 0-6.288-4.91-11.463-10.98-11.463zM484.968 174.385v20.991h-9.069v-37.75h8.319v3.676c2.395-3.483 4.305-4.571 8.174-4.571h.677v8.73c-5.465.145-8.101 3.071-8.101 8.924zM509.829 165.872v29.504h-9.069v-29.504h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM545.595 195.376v-19.274c0-7.908-2.055-11.052-7.352-11.052-5.175 0-7.98 2.853-7.98 11.172v19.154h-9.069v-50.35h9.069v15.187c2.733-2.442 5.731-3.555 9.601-3.555 9.068 0 14.8 4.982 14.8 17.388v21.33h-9.069zM592.705 195.376v-4.909c-3.604 4.086-7.231 5.803-12.527 5.803-11.052 0-19.008-8.246-19.008-19.636 0-11.511 8.029-19.903 19.226-19.903 5.441 0 9.189 1.765 12.333 5.925v-5.054h8.319v37.75h-8.343v.024zm-11.391-30.326c-6.481 0-11.051 4.909-11.051 11.777 0 6.602 4.57 11.1 11.172 11.1 6.893 0 10.98-4.909 10.98-11.172 0-6.868-4.619-11.705-11.101-11.705zM655.992 195.376v-20.725c0-7.57-2.854-9.601-7.086-9.601-5.03 0-7.641 2.733-7.641 11.729v18.597h-9.069v-20.725c0-7.424-2.588-9.601-7.352-9.601-5.248 0-7.352 2.805-7.352 11.729v18.597h-9.068v-37.75h8.319v3.531c2.66-3.193 5.393-4.426 9.818-4.426 5.175 0 8.513 1.765 11.1 5.852 3.072-4.087 6.82-5.852 12.14-5.852 9.939 0 15.26 5.514 15.26 16.832v21.813h-9.069zM694.516 196.27c-4.643 0-8.174-1.354-11.584-4.425v16.154h-9.069v-50.373h8.319v4.425c2.926-3.409 7.304-5.32 12.406-5.32 10.907 0 18.815 8.247 18.815 19.637-.024 11.463-8.005 19.902-18.887 19.902zm-1.113-31.22c-6.263 0-11.051 4.909-11.051 11.39 0 6.602 4.764 11.511 11.172 11.511 5.998 0 10.689-4.981 10.689-11.39.049-6.529-4.667-11.511-10.81-11.511zM729.944 165.872v29.504h-9.069v-29.504h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM758.359 196.271c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.168 8.779 20.168 20.024 0 10.641-9.117 19.492-20.096 19.492zm0-31.221c-5.925 0-10.906 5.103-10.906 11.318 0 6.481 4.836 11.584 10.979 11.584 5.997 0 10.906-5.103 10.906-11.439 0-6.288-4.909-11.463-10.979-11.463zM808.708 195.376V176.9c0-10.085-2.733-11.85-7.231-11.85-2.854 0-5.248 1.233-6.675 3.482-1.16 1.838-1.499 4.015-1.499 9.069v17.775h-9.069v-37.75h8.392v3.603c3.337-3.192 6.336-4.498 10.64-4.498 5.248 0 9.335 1.911 11.778 5.441 2.055 2.926 2.732 6.191 2.732 12.938v20.242h-9.068v.024zM837.268 196.271c-7.497 0-12.89-4.087-13.833-12.89h9.141c.895 3.192 2.394 4.571 5.055 4.571 2.321 0 4.086-1.572 4.086-3.676 0-2.177-.338-2.805-6.408-4.837-7.497-2.515-10.495-5.659-10.495-11.172 0-6.482 5.513-11.512 12.551-11.512 6.408 0 12.067 4.232 12.406 11.318h-8.852c-.411-1.983-1.644-2.999-3.554-2.999-1.983 0-3.483 1.355-3.483 3.193 0 1.983.194 2.103 6.409 4.086 7.908 2.443 10.495 5.442 10.495 11.052-.024 7.207-5.949 12.866-13.518 12.866zM880.894 195.376v-19.274c0-7.908-2.056-11.052-7.352-11.052-5.175 0-7.98 2.853-7.98 11.172v19.154h-9.069v-50.35h9.069v15.187c2.733-2.442 5.731-3.555 9.601-3.555 9.068 0 14.8 4.982 14.8 17.388v21.33h-9.069zM898.065 195.376v-37.75h9.069v37.75h-9.069zm.049-43.191v-9.069h9.068v9.069h-9.068zM924.159 174.385v20.991h-9.069v-37.75h8.319v3.676c2.394-3.483 4.305-4.571 8.174-4.571h.677v8.73c-5.441.145-8.101 3.071-8.101 8.924zM973.637 180.527H944.4c1.088 4.571 5.054 7.424 10.423 7.424 3.748 0 5.997-1.015 8.319-3.748h9.89c-2.515 7.763-10.35 12.067-17.992 12.067-11.511 0-20.435-8.585-20.435-19.636 0-11.1 8.803-19.903 19.903-19.903 11.245 0 19.492 8.585 19.492 20.314-.024 1.378-.097 2.176-.363 3.482zm-19.032-15.477c-5.393 0-9.069 2.66-10.496 7.497h20.919c-1.137-4.837-4.813-7.497-10.423-7.497zM405.358 269.279c-14.728 0-26.505-11.729-26.505-26.238 0-14.244 11.656-25.9 25.9-25.9 10.351 0 19.419 5.586 23.845 15.332h-10.423c-3.41-4.426-7.352-6.336-13.228-6.336-9.601 0-16.687 7.496-16.687 16.976 0 9.407 7.642 17.17 16.904 17.17 4.837 0 8.392-1.644 12.479-5.925h10.979c-3.966 9.19-12.962 14.921-23.264 14.921zM452.732 269.279c-11.052 0-20.048-8.851-20.048-19.757 0-10.834 8.996-19.758 19.975-19.758 11.391 0 20.169 8.779 20.169 20.048 0 10.616-9.141 19.467-20.096 19.467zm0-31.196c-5.925 0-10.907 5.103-10.907 11.318 0 6.481 4.837 11.584 10.979 11.584 5.998 0 10.907-5.103 10.907-11.439-.024-6.288-4.933-11.463-10.979-11.463zM503.831 268.409v-3.603c-3.409 3.337-6.263 4.498-10.834 4.498-8.802 0-14.389-5.103-14.389-18.404v-20.241h9.069v18.476c0 10.012 2.781 11.85 7.158 11.85 3.072 0 5.514-1.306 6.892-3.483 1.016-1.693 1.427-4.014 1.427-9.068v-17.775h9.069v37.75h-8.392zM544.653 268.409v-18.476c0-10.085-2.733-11.85-7.231-11.85-2.854 0-5.248 1.233-6.675 3.482-1.161 1.838-1.499 4.015-1.499 9.069v17.775h-9.069v-37.774h8.392v3.603c3.337-3.192 6.336-4.498 10.64-4.498 5.248 0 9.335 1.91 11.778 5.441 2.055 2.926 2.732 6.191 2.732 12.938v20.241h-9.068v.049zM580.299 269.279c-11.173 0-20.169-8.802-20.169-19.757 0-11.1 8.73-19.758 19.903-19.758 8.585 0 16.081 4.837 19.008 13.494h-10.23c-1.838-3.482-4.691-5.175-8.803-5.175-6.263 0-10.761 4.764-10.761 11.39 0 6.602 4.691 11.512 10.979 11.512 3.748 0 6.336-1.5 8.585-4.982h10.23c-3.144 8.44-9.964 13.276-18.742 13.276zM606.054 268.409v-37.774h9.068v37.749h-9.068v.025zm.072-43.216v-9.068h9.069v9.068h-9.069zM623.079 268.409v-50.374h9.068v50.35h-9.068v.024z" })));
|
|
26733
27108
|
};
|
|
26734
27109
|
|
|
27110
|
+
const Container$z = styled__default.default.div`
|
|
27111
|
+
display: block;
|
|
27112
|
+
|
|
27113
|
+
.wnc-cludo-input {
|
|
27114
|
+
padding-left: 0;
|
|
27115
|
+
padding-right: 0;
|
|
27116
|
+
margin-bottom: 0;
|
|
27117
|
+
display: flex;
|
|
27118
|
+
flex-direction: row;
|
|
27119
|
+
}
|
|
27120
|
+
|
|
27121
|
+
.wnc-cludo-input input {
|
|
27122
|
+
padding: 10px;
|
|
27123
|
+
min-height: 44px;
|
|
27124
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27125
|
+
border-radius: 6px 0 0 6px;
|
|
27126
|
+
flex-grow: 1;
|
|
27127
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
27128
|
+
}
|
|
27129
|
+
|
|
27130
|
+
.wnc-cludo-input input:focus,
|
|
27131
|
+
.wnc-cludo-input input:active {
|
|
27132
|
+
outline: none;
|
|
27133
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27134
|
+
border-radius: 6px 0 0 6px;
|
|
27135
|
+
box-shadow: 0 0 0 2px #e2ca76, 0 0 0 4px #000;
|
|
27136
|
+
}
|
|
27137
|
+
|
|
27138
|
+
.wnc-cludo-input button {
|
|
27139
|
+
height: 46px;
|
|
27140
|
+
width: 46px;
|
|
27141
|
+
margin-left: 0;
|
|
27142
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27143
|
+
border-radius: 0 6px 6px 0;
|
|
27144
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_darkest};
|
|
27145
|
+
cursor: pointer;
|
|
27146
|
+
|
|
27147
|
+
&:hover {
|
|
27148
|
+
background-color: ${(props) => props.theme.theme_vars.action_dark};
|
|
27149
|
+
}
|
|
27150
|
+
|
|
27151
|
+
svg {
|
|
27152
|
+
width: 20px;
|
|
27153
|
+
height: 20px;
|
|
27154
|
+
}
|
|
27155
|
+
}
|
|
27156
|
+
`;
|
|
27157
|
+
|
|
27158
|
+
var CludoSearchBar = function (_a) {
|
|
27159
|
+
var customerId = _a.customerId, engineId = _a.engineId;
|
|
27160
|
+
var cludoSearchConfig = {
|
|
27161
|
+
customerId: customerId,
|
|
27162
|
+
engineId: engineId,
|
|
27163
|
+
searchUrl: '/search',
|
|
27164
|
+
language: 'en',
|
|
27165
|
+
instanceId: '',
|
|
27166
|
+
components: {
|
|
27167
|
+
autocomplete: CludoAutoComplete,
|
|
27168
|
+
},
|
|
27169
|
+
};
|
|
27170
|
+
return (React__default.default.createElement(Container$z, { "data-testid": "CludoSearchBar" },
|
|
27171
|
+
React__default.default.createElement(ssr.CludoWrapper, { config: cludoSearchConfig },
|
|
27172
|
+
React__default.default.createElement(CludoAutoComplete, { hasMargin: false }))));
|
|
27173
|
+
};
|
|
27174
|
+
|
|
26735
27175
|
/**
|
|
26736
27176
|
* The header that should appear at the top of every page.
|
|
26737
27177
|
*/
|
|
26738
27178
|
var Header = function (_a) {
|
|
26739
|
-
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.hasNewsLink, hasNewsLink = _d === void 0 ? false : _d, _e = _a.hasDirectoryLink, hasDirectoryLink = _e === void 0 ? false : _e, accessibilityLink = _a.accessibilityLink, _f = _a.allServicesLink, allServicesLink = _f === void 0 ? '/' : _f, _g = _a.isHomepage, isHomepage = _g === void 0 ? false : _g, _h = _a.searchSuggestions, searchSuggestions = _h === void 0 ? [] : _h, _j = _a.hasTranslate, hasTranslate = _j === void 0 ? false : _j, props = __rest(_a, ["children", "hideSearchBar", "homeLink", "hasNewsLink", "hasDirectoryLink", "accessibilityLink", "allServicesLink", "isHomepage", "searchSuggestions", "hasTranslate"]);
|
|
27179
|
+
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.hasNewsLink, hasNewsLink = _d === void 0 ? false : _d, _e = _a.hasDirectoryLink, hasDirectoryLink = _e === void 0 ? false : _e, accessibilityLink = _a.accessibilityLink, _f = _a.allServicesLink, allServicesLink = _f === void 0 ? '/' : _f, _g = _a.isHomepage, isHomepage = _g === void 0 ? false : _g, _h = _a.searchSuggestions, searchSuggestions = _h === void 0 ? [] : _h, _j = _a.hasTranslate, hasTranslate = _j === void 0 ? false : _j, _k = _a.hasCludo, hasCludo = _k === void 0 ? false : _k, engineId = _a.engineId, customerId = _a.customerId, props = __rest(_a, ["children", "hideSearchBar", "homeLink", "hasNewsLink", "hasDirectoryLink", "accessibilityLink", "allServicesLink", "isHomepage", "searchSuggestions", "hasTranslate", "hasCludo", "engineId", "customerId"]);
|
|
26740
27180
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
26741
|
-
var
|
|
26742
|
-
var
|
|
27181
|
+
var _l = React.useState(false), showMenu = _l[0], setShowMenu = _l[1];
|
|
27182
|
+
var _m = React.useState(false), showTranslate = _m[0], setShowTranslate = _m[1];
|
|
26743
27183
|
/*
|
|
26744
27184
|
north homepage - no header
|
|
26745
27185
|
north subpage - white search bar / white nav / colour logo / has search
|
|
@@ -26786,17 +27226,16 @@ var Header = function (_a) {
|
|
|
26786
27226
|
var show = showTranslate;
|
|
26787
27227
|
setShowTranslate(!show);
|
|
26788
27228
|
};
|
|
26789
|
-
return (React__default.default.createElement(Container$
|
|
27229
|
+
return (React__default.default.createElement(Container$B, { "$isHomepage": isHomepage, "data-testid": "Header" },
|
|
26790
27230
|
!hideSearchBar && (React__default.default.createElement(SearchContainer, null,
|
|
26791
27231
|
React__default.default.createElement(MaxWidthContainer, { noPadding: true, noBackground: true, overflowVisible: true },
|
|
26792
27232
|
React__default.default.createElement(SearchWrapper, null,
|
|
26793
|
-
React__default.default.createElement(SearchBarContainer, null,
|
|
26794
|
-
|
|
26795
|
-
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
|
-
}, suggestions: searchSuggestions })))))),
|
|
27233
|
+
React__default.default.createElement(SearchBarContainer, null, hasCludo ? (React__default.default.createElement(CludoSearchBar, { customerId: customerId, engineId: engineId })) : (React__default.default.createElement(Searchbar, { isLight: themeContext.cardinal_name === 'north' ? true : false, isLarge: true, submitInfo: {
|
|
27234
|
+
postTo: '/search',
|
|
27235
|
+
params: {
|
|
27236
|
+
type: 'search',
|
|
27237
|
+
},
|
|
27238
|
+
}, suggestions: searchSuggestions }))))))),
|
|
26800
27239
|
React__default.default.createElement(MaxWidthContainer, { noPadding: true, noBackground: true },
|
|
26801
27240
|
React__default.default.createElement(NavContainer, __assign$2({}, props),
|
|
26802
27241
|
React__default.default.createElement(LogoWrapper, null,
|
|
@@ -26973,11 +27412,8 @@ const CallToActionLink = styled__default.default.a`
|
|
|
26973
27412
|
&:hover,
|
|
26974
27413
|
&:focus {
|
|
26975
27414
|
text-decoration-style: dotted;
|
|
26976
|
-
text-shadow:
|
|
26977
|
-
2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
26978
|
-
-2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
26979
|
-
2px -2px 4px rgba(150, 150, 150, 0.5),
|
|
26980
|
-
-2px -2px 4px rgba(150, 150, 150, 0.5);
|
|
27415
|
+
text-shadow: 2px 2px 4px rgba(150, 150, 150, 0.5), -2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
27416
|
+
2px -2px 4px rgba(150, 150, 150, 0.5), -2px -2px 4px rgba(150, 150, 150, 0.5);
|
|
26981
27417
|
}
|
|
26982
27418
|
&:active {
|
|
26983
27419
|
transform: translate(3px);
|
|
@@ -26990,16 +27426,17 @@ const BreadcrumbLink = styled__default.default.a`
|
|
|
26990
27426
|
color: ${(props) =>
|
|
26991
27427
|
props.$backgroundBox ? props.theme.theme_vars.colours.action : props.theme.theme_vars.colours.white};
|
|
26992
27428
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27429
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
26993
27430
|
display: block;
|
|
26994
27431
|
|
|
26995
|
-
&:hover
|
|
27432
|
+
&:hover {
|
|
27433
|
+
${(props) => props.theme.linkStylesHover};
|
|
27434
|
+
}
|
|
26996
27435
|
&:focus {
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
|
|
27001
|
-
: `2px 2px 4px rgba(150, 150, 150, 0.5), -2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
27002
|
-
2px -2px 4px rgba(150, 150, 150, 0.5), -2px -2px 4px rgba(150, 150, 150, 0.5)`};
|
|
27436
|
+
${(props) => props.theme.linkStylesFocus};
|
|
27437
|
+
}
|
|
27438
|
+
&:active {
|
|
27439
|
+
${(props) => props.theme.linkStylesActive};
|
|
27003
27440
|
}
|
|
27004
27441
|
`;
|
|
27005
27442
|
|
|
@@ -28942,7 +29379,7 @@ function L(r) {
|
|
|
28942
29379
|
if (e)
|
|
28943
29380
|
c(e.getAttribute("data-status"));
|
|
28944
29381
|
else {
|
|
28945
|
-
e = document.createElement("script"), e.src = r, e.async =
|
|
29382
|
+
e = document.createElement("script"), e.src = r, e.async = true, e.defer = true, e.setAttribute("data-status", "loading"), document.body.appendChild(e);
|
|
28946
29383
|
const a = (i) => {
|
|
28947
29384
|
e.setAttribute(
|
|
28948
29385
|
"data-status",
|
|
@@ -28979,7 +29416,7 @@ function R({
|
|
|
28979
29416
|
const [s, f] = React.useState(!!((w = window == null ? void 0 : window.grecaptcha) != null && w.render)), [t, v] = React.useState(null);
|
|
28980
29417
|
React.useEffect(() => (l = window.setInterval(() => {
|
|
28981
29418
|
var d;
|
|
28982
|
-
(d = window == null ? void 0 : window.grecaptcha) != null && d.render && f(
|
|
29419
|
+
(d = window == null ? void 0 : window.grecaptcha) != null && d.render && f(true);
|
|
28983
29420
|
}, 500), () => {
|
|
28984
29421
|
clearInterval(l);
|
|
28985
29422
|
}), []), React.useEffect(() => {
|
|
@@ -29782,9 +30219,8 @@ const focusListItem = styled.css`
|
|
|
29782
30219
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
29783
30220
|
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
29784
30221
|
outline: none;
|
|
29785
|
-
box-shadow:
|
|
29786
|
-
|
|
29787
|
-
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
30222
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
30223
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
29788
30224
|
`;
|
|
29789
30225
|
|
|
29790
30226
|
const ListItem = styled__default.default.li`
|
|
@@ -29831,9 +30267,8 @@ const ListItemLink = styled__default.default.a`
|
|
|
29831
30267
|
}
|
|
29832
30268
|
&:active {
|
|
29833
30269
|
transform: translateY(1px);
|
|
29834
|
-
box-shadow:
|
|
29835
|
-
|
|
29836
|
-
-moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
30270
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
30271
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
29837
30272
|
}
|
|
29838
30273
|
|
|
29839
30274
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -31652,7 +32087,7 @@ const AddToShortlist = styled__default.default.button`
|
|
|
31652
32087
|
color: ${(props) =>
|
|
31653
32088
|
props.$favourite ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.action};
|
|
31654
32089
|
cursor: pointer;
|
|
31655
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32090
|
+
padding: ${(props) => `14px ${props.theme.theme_vars.spacingSizes.small}`};
|
|
31656
32091
|
font-weight: bold;
|
|
31657
32092
|
display: flex;
|
|
31658
32093
|
flex-direction: row;
|
|
@@ -31934,6 +32369,7 @@ const Container$2 = styled__default.default.div`
|
|
|
31934
32369
|
|
|
31935
32370
|
input[type='text'] {
|
|
31936
32371
|
margin-bottom: 0;
|
|
32372
|
+
min-height: 44px;
|
|
31937
32373
|
}
|
|
31938
32374
|
`;
|
|
31939
32375
|
|
|
@@ -31975,7 +32411,7 @@ const Button$1 = styled__default.default.button`
|
|
|
31975
32411
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31976
32412
|
cursor: pointer;
|
|
31977
32413
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31978
|
-
min-height:
|
|
32414
|
+
min-height: 44px;
|
|
31979
32415
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31980
32416
|
font-weight: bold;
|
|
31981
32417
|
|
|
@@ -32004,7 +32440,7 @@ const ButtonText$1 = styled__default.default.span`
|
|
|
32004
32440
|
const ResultInfo$1 = styled__default.default.div`
|
|
32005
32441
|
width: 100%;
|
|
32006
32442
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
32007
|
-
color: ${(props) => props.theme.theme_vars.colours.
|
|
32443
|
+
color: ${(props) => props.theme.theme_vars.colours.grey_darkest};
|
|
32008
32444
|
`;
|
|
32009
32445
|
|
|
32010
32446
|
const ServiceContainer = styled__default.default.div`
|
|
@@ -32083,8 +32519,8 @@ const LegendButton = styled__default.default.button`
|
|
|
32083
32519
|
cursor: pointer;
|
|
32084
32520
|
text-align: left;
|
|
32085
32521
|
padding-right: 30px;
|
|
32086
|
-
padding-top:
|
|
32087
|
-
padding-bottom:
|
|
32522
|
+
padding-top: 12px;
|
|
32523
|
+
padding-bottom: 12px;
|
|
32088
32524
|
${(props) => props.theme.theme_vars.h4}
|
|
32089
32525
|
${(props) => props.theme.linkStyles}
|
|
32090
32526
|
&:hover {
|
|
@@ -32154,7 +32590,7 @@ const TextLink$1 = styled__default.default.button`
|
|
|
32154
32590
|
position: relative;
|
|
32155
32591
|
z-index: 1;
|
|
32156
32592
|
margin: 0;
|
|
32157
|
-
padding:
|
|
32593
|
+
padding: 12.5px 0;
|
|
32158
32594
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
32159
32595
|
border-width: 0;
|
|
32160
32596
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -32189,7 +32625,7 @@ const MapToggle = styled__default.default.button`
|
|
|
32189
32625
|
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
32190
32626
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
32191
32627
|
cursor: pointer;
|
|
32192
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32628
|
+
padding: 12.5px ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32193
32629
|
font-weight: bold;
|
|
32194
32630
|
display: flex;
|
|
32195
32631
|
flex-direction: row;
|
|
@@ -32451,7 +32887,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
32451
32887
|
filtersActive && (React__default.default.createElement(Button$1, { onClick: clearSearch, type: "button", "$isWarning": true },
|
|
32452
32888
|
React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
|
|
32453
32889
|
hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32454
|
-
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
|
|
32890
|
+
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
|
|
32455
32891
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
32456
32892
|
React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
32457
32893
|
React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
@@ -34392,6 +34828,7 @@ exports.Button = Button$4;
|
|
|
34392
34828
|
exports.CallToAction = CallToAction;
|
|
34393
34829
|
exports.Cards = Cards;
|
|
34394
34830
|
exports.CheckboxListFilter = CheckboxListFilter;
|
|
34831
|
+
exports.CludoSearch = CludoSearch;
|
|
34395
34832
|
exports.Contents = Contents$1;
|
|
34396
34833
|
exports.ContentsNavigation = ContentsNavigation;
|
|
34397
34834
|
exports.CookieBanner = CookieBanner;
|