northants-design-system 1.5.2 → 1.6.0
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 +625 -203
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +625 -204
- package/build/index.mjs.js.map +1 -1
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +3 -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
|
`;
|
|
@@ -7319,7 +7315,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
7319
7315
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
7320
7316
|
};
|
|
7321
7317
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
7322
|
-
return (React__default.default.createElement(Container$
|
|
7318
|
+
return (React__default.default.createElement(Container$1p, { "data-testid": "CheckboxListFilter" },
|
|
7323
7319
|
React__default.default.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
7324
7320
|
React__default.default.createElement(Legend$3, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
7325
7321
|
React__default.default.createElement(Hint$1, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -7328,11 +7324,11 @@ var CheckboxListFilter = function (_a) {
|
|
|
7328
7324
|
React__default.default.createElement(CheckboxLabel, { "$isChecked": option.checked, htmlFor: option.value }, option.title))); })))));
|
|
7329
7325
|
};
|
|
7330
7326
|
|
|
7331
|
-
const Container$
|
|
7327
|
+
const Container$1o = styled__default.default.div`
|
|
7332
7328
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.small : 0)};
|
|
7333
7329
|
`;
|
|
7334
7330
|
|
|
7335
|
-
const Container$
|
|
7331
|
+
const Container$1n = styled__default.default.div`
|
|
7336
7332
|
${(props) => props.theme.fontStyles};
|
|
7337
7333
|
width: ${(props) => (props.$isFullWidth ? '100%' : 'auto')};
|
|
7338
7334
|
`;
|
|
@@ -7399,7 +7395,7 @@ const ErrorText$2 = styled__default.default.p`
|
|
|
7399
7395
|
|
|
7400
7396
|
var DropDownSelect = function (_a) {
|
|
7401
7397
|
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$
|
|
7398
|
+
return (React__default.default.createElement(Container$1n, { "$isFullWidth": isFullWidth },
|
|
7403
7399
|
React__default.default.createElement(Label$9, { htmlFor: id, "$hideLabel": hideLabel, "$hasBoldLabel": hasBoldLabel }, label),
|
|
7404
7400
|
errorText && React__default.default.createElement(ErrorText$2, { id: "".concat(id, "Error") }, errorText),
|
|
7405
7401
|
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 +7408,7 @@ var DropDownFilter = function (_a) {
|
|
|
7412
7408
|
setValue(e.target.value);
|
|
7413
7409
|
handleParams('news', [{ key: NewsArticleFilterFields[filterKey].queryParamKey, value: e.target.value }], ['page']);
|
|
7414
7410
|
};
|
|
7415
|
-
return (React__default.default.createElement(Container$
|
|
7411
|
+
return (React__default.default.createElement(Container$1o, { "$hasMargin": hasMargin },
|
|
7416
7412
|
React__default.default.createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel })));
|
|
7417
7413
|
};
|
|
7418
7414
|
|
|
@@ -7557,7 +7553,7 @@ const ListItem$3 = styled__default.default.li`
|
|
|
7557
7553
|
}
|
|
7558
7554
|
`;
|
|
7559
7555
|
|
|
7560
|
-
const Container$
|
|
7556
|
+
const Container$1m = styled__default.default.div`
|
|
7561
7557
|
box-sizing: border-box;
|
|
7562
7558
|
display: flex;
|
|
7563
7559
|
flex-wrap: wrap;
|
|
@@ -7580,7 +7576,7 @@ const Container$1k = styled__default.default.div`
|
|
|
7580
7576
|
|
|
7581
7577
|
var Row$1 = function (_a) {
|
|
7582
7578
|
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$
|
|
7579
|
+
return (React__default.default.createElement(Container$1m, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div', className: classes }, children));
|
|
7584
7580
|
};
|
|
7585
7581
|
|
|
7586
7582
|
const calculateWidth = (size) => {
|
|
@@ -7630,7 +7626,7 @@ const widths = (props) => {
|
|
|
7630
7626
|
`;
|
|
7631
7627
|
};
|
|
7632
7628
|
|
|
7633
|
-
const Container$
|
|
7629
|
+
const Container$1l = styled__default.default.div`
|
|
7634
7630
|
box-sizing: border-box;
|
|
7635
7631
|
display: block;
|
|
7636
7632
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -7641,7 +7637,7 @@ const Container$1j = styled__default.default.div`
|
|
|
7641
7637
|
|
|
7642
7638
|
var Column = function (_a) {
|
|
7643
7639
|
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$
|
|
7640
|
+
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
7641
|
};
|
|
7646
7642
|
|
|
7647
7643
|
var PromotedLinks = function (_a) {
|
|
@@ -7658,7 +7654,7 @@ var PromotedLinks = function (_a) {
|
|
|
7658
7654
|
}
|
|
7659
7655
|
};
|
|
7660
7656
|
|
|
7661
|
-
const Container$
|
|
7657
|
+
const Container$1k = styled__default.default.div`
|
|
7662
7658
|
display: block;
|
|
7663
7659
|
`;
|
|
7664
7660
|
|
|
@@ -7708,7 +7704,7 @@ const promotedStyles = (props) => {
|
|
|
7708
7704
|
}
|
|
7709
7705
|
};
|
|
7710
7706
|
|
|
7711
|
-
const Container$
|
|
7707
|
+
const Container$1j = styled__default.default.a`
|
|
7712
7708
|
display: flex;
|
|
7713
7709
|
flex-direction: row;
|
|
7714
7710
|
flex-wrap: wrap;
|
|
@@ -7844,7 +7840,7 @@ const imageRatio = (props) => {
|
|
|
7844
7840
|
}
|
|
7845
7841
|
};
|
|
7846
7842
|
|
|
7847
|
-
const Container$
|
|
7843
|
+
const Container$1i = styled__default.default.div`
|
|
7848
7844
|
display: block;
|
|
7849
7845
|
position: ${(props) => (props.$ratio === 'auto' ? 'absolute' : 'relative')};
|
|
7850
7846
|
${imageRatio}
|
|
@@ -7862,13 +7858,13 @@ const Image$3 = styled__default.default.img`
|
|
|
7862
7858
|
|
|
7863
7859
|
var ResponsiveImage = function (_a) {
|
|
7864
7860
|
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$
|
|
7861
|
+
return (React__default.default.createElement(Container$1i, { "data-testid": "ResponsiveImage", "$ratio": ratio },
|
|
7866
7862
|
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
7863
|
};
|
|
7868
7864
|
|
|
7869
7865
|
var EventLink = function (_a) {
|
|
7870
7866
|
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$
|
|
7867
|
+
return (React__default.default.createElement(Container$1j, { "data-testid": "EventLink", href: url, "$isPromoted": isPromoted },
|
|
7872
7868
|
React__default.default.createElement(Row$1, null,
|
|
7873
7869
|
React__default.default.createElement(Column, { small: "full", medium: imageLarge ? 'two-thirds' : 'full', large: imageLarge ? 'two-thirds' : 'full', hasPadding: false },
|
|
7874
7870
|
React__default.default.createElement(EventContent, { "$hasPadding": hasPadding },
|
|
@@ -7884,13 +7880,13 @@ var EventLink = function (_a) {
|
|
|
7884
7880
|
// A list of related events
|
|
7885
7881
|
var RelatedEvents = function (_a) {
|
|
7886
7882
|
var title = _a.title, events = _a.events;
|
|
7887
|
-
return (React__default.default.createElement(Container$
|
|
7883
|
+
return (React__default.default.createElement(Container$1k, { "data-testid": "RelatedEvents" },
|
|
7888
7884
|
React__default.default.createElement(Title$9, null, title),
|
|
7889
7885
|
React__default.default.createElement(List$3, null, events.map(function (event, index) { return (React__default.default.createElement(ListItem$2, { key: index },
|
|
7890
7886
|
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
7887
|
};
|
|
7892
7888
|
|
|
7893
|
-
const Container$
|
|
7889
|
+
const Container$1h = styled__default.default.div`
|
|
7894
7890
|
display: block;
|
|
7895
7891
|
`;
|
|
7896
7892
|
|
|
@@ -7926,7 +7922,7 @@ const Cookies = styled__default.default.button`
|
|
|
7926
7922
|
}
|
|
7927
7923
|
`;
|
|
7928
7924
|
|
|
7929
|
-
const Container$
|
|
7925
|
+
const Container$1g = styled__default.default.div`
|
|
7930
7926
|
${(props) => props.theme.fontStyles}
|
|
7931
7927
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
7932
7928
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -8151,7 +8147,7 @@ const wereCookiesAccepted = (cookiesAcceptedOverride) => {
|
|
|
8151
8147
|
var utc$1 = {exports: {}};
|
|
8152
8148
|
|
|
8153
8149
|
(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
|
|
8150
|
+
!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
8151
|
} (utc$1));
|
|
8156
8152
|
|
|
8157
8153
|
var utcExports = utc$1.exports;
|
|
@@ -8260,18 +8256,18 @@ var CookieBanner = function (_a) {
|
|
|
8260
8256
|
hideCookiesAcceptedConfirmationBanner();
|
|
8261
8257
|
};
|
|
8262
8258
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
8263
|
-
showCookieBanner && (React__default.default.createElement(Container$
|
|
8259
|
+
showCookieBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBanner" },
|
|
8264
8260
|
React__default.default.createElement(CookieMessage, null,
|
|
8265
8261
|
React__default.default.createElement(CookieHeading, null, title),
|
|
8266
8262
|
React__default.default.createElement(CookieParagraph, null, paragraph),
|
|
8267
8263
|
React__default.default.createElement(ButtonsContainer, null,
|
|
8268
8264
|
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: false, type: "button", onClick: acceptCookies, size: "large" }),
|
|
8269
8265
|
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: false, type: "button", onClick: rejectCookies, size: "large" }))))),
|
|
8270
|
-
showCookiesRejectedBanner && (React__default.default.createElement(Container$
|
|
8266
|
+
showCookiesRejectedBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
8271
8267
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8272
8268
|
React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
8273
8269
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
8274
|
-
showCookiesAcceptedBanner && (React__default.default.createElement(Container$
|
|
8270
|
+
showCookiesAcceptedBanner && (React__default.default.createElement(Container$1g, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
8275
8271
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8276
8272
|
React__default.default.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
8277
8273
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -8293,7 +8289,7 @@ var StaticMap = function (_a) {
|
|
|
8293
8289
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
8294
8290
|
})
|
|
8295
8291
|
.join('');
|
|
8296
|
-
return (React__default.default.createElement(Container$
|
|
8292
|
+
return (React__default.default.createElement(Container$1h, { "data-testid": "StaticMap" },
|
|
8297
8293
|
React__default.default.createElement(Message, null,
|
|
8298
8294
|
React__default.default.createElement("span", null,
|
|
8299
8295
|
"To interact with the map, you need to ",
|
|
@@ -18141,19 +18137,6 @@ sourceMap.SourceNode = sourceNode.SourceNode;
|
|
|
18141
18137
|
let urlAlphabet =
|
|
18142
18138
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
18143
18139
|
|
|
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
18140
|
let nanoid$1 = (size = 21) => {
|
|
18158
18141
|
let id = '';
|
|
18159
18142
|
// A compact alternative for `for (var i = 0; i < step; i++)`.
|
|
@@ -18165,7 +18148,7 @@ let nanoid$1 = (size = 21) => {
|
|
|
18165
18148
|
return id
|
|
18166
18149
|
};
|
|
18167
18150
|
|
|
18168
|
-
var nonSecure = { nanoid: nanoid$1
|
|
18151
|
+
var nonSecure = { nanoid: nanoid$1};
|
|
18169
18152
|
|
|
18170
18153
|
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = sourceMap;
|
|
18171
18154
|
let { existsSync, readFileSync } = require$$1__default.default;
|
|
@@ -18960,7 +18943,7 @@ function markTreeDirty(node) {
|
|
|
18960
18943
|
}
|
|
18961
18944
|
}
|
|
18962
18945
|
|
|
18963
|
-
let Container$
|
|
18946
|
+
let Container$1f = class Container extends Node$1 {
|
|
18964
18947
|
append(...children) {
|
|
18965
18948
|
for (let child of children) {
|
|
18966
18949
|
let nodes = this.normalize(child, this.last);
|
|
@@ -19337,27 +19320,27 @@ let Container$1d = class Container extends Node$1 {
|
|
|
19337
19320
|
}
|
|
19338
19321
|
};
|
|
19339
19322
|
|
|
19340
|
-
Container$
|
|
19323
|
+
Container$1f.registerParse = dependant => {
|
|
19341
19324
|
parse$4 = dependant;
|
|
19342
19325
|
};
|
|
19343
19326
|
|
|
19344
|
-
Container$
|
|
19327
|
+
Container$1f.registerRule = dependant => {
|
|
19345
19328
|
Rule$4 = dependant;
|
|
19346
19329
|
};
|
|
19347
19330
|
|
|
19348
|
-
Container$
|
|
19331
|
+
Container$1f.registerAtRule = dependant => {
|
|
19349
19332
|
AtRule$4 = dependant;
|
|
19350
19333
|
};
|
|
19351
19334
|
|
|
19352
|
-
Container$
|
|
19335
|
+
Container$1f.registerRoot = dependant => {
|
|
19353
19336
|
Root$6 = dependant;
|
|
19354
19337
|
};
|
|
19355
19338
|
|
|
19356
|
-
var container = Container$
|
|
19357
|
-
Container$
|
|
19339
|
+
var container = Container$1f;
|
|
19340
|
+
Container$1f.default = Container$1f;
|
|
19358
19341
|
|
|
19359
19342
|
/* c8 ignore start */
|
|
19360
|
-
Container$
|
|
19343
|
+
Container$1f.rebuild = node => {
|
|
19361
19344
|
if (node.type === 'atrule') {
|
|
19362
19345
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
19363
19346
|
} else if (node.type === 'rule') {
|
|
@@ -19374,16 +19357,16 @@ Container$1d.rebuild = node => {
|
|
|
19374
19357
|
|
|
19375
19358
|
if (node.nodes) {
|
|
19376
19359
|
node.nodes.forEach(child => {
|
|
19377
|
-
Container$
|
|
19360
|
+
Container$1f.rebuild(child);
|
|
19378
19361
|
});
|
|
19379
19362
|
}
|
|
19380
19363
|
};
|
|
19381
19364
|
|
|
19382
|
-
let Container$
|
|
19365
|
+
let Container$1e = container;
|
|
19383
19366
|
|
|
19384
19367
|
let LazyResult$4, Processor$3;
|
|
19385
19368
|
|
|
19386
|
-
let Document$3 = class Document extends Container$
|
|
19369
|
+
let Document$3 = class Document extends Container$1e {
|
|
19387
19370
|
constructor(defaults) {
|
|
19388
19371
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
19389
19372
|
super({ type: 'document', ...defaults });
|
|
@@ -19501,9 +19484,9 @@ let Result$4 = class Result {
|
|
|
19501
19484
|
var result = Result$4;
|
|
19502
19485
|
Result$4.default = Result$4;
|
|
19503
19486
|
|
|
19504
|
-
let Container$
|
|
19487
|
+
let Container$1d = container;
|
|
19505
19488
|
|
|
19506
|
-
let AtRule$3 = class AtRule extends Container$
|
|
19489
|
+
let AtRule$3 = class AtRule extends Container$1d {
|
|
19507
19490
|
constructor(defaults) {
|
|
19508
19491
|
super(defaults);
|
|
19509
19492
|
this.type = 'atrule';
|
|
@@ -19523,13 +19506,13 @@ let AtRule$3 = class AtRule extends Container$1b {
|
|
|
19523
19506
|
var atRule = AtRule$3;
|
|
19524
19507
|
AtRule$3.default = AtRule$3;
|
|
19525
19508
|
|
|
19526
|
-
Container$
|
|
19509
|
+
Container$1d.registerAtRule(AtRule$3);
|
|
19527
19510
|
|
|
19528
|
-
let Container$
|
|
19511
|
+
let Container$1c = container;
|
|
19529
19512
|
|
|
19530
19513
|
let LazyResult$3, Processor$2;
|
|
19531
19514
|
|
|
19532
|
-
let Root$5 = class Root extends Container$
|
|
19515
|
+
let Root$5 = class Root extends Container$1c {
|
|
19533
19516
|
constructor(defaults) {
|
|
19534
19517
|
super(defaults);
|
|
19535
19518
|
this.type = 'root';
|
|
@@ -19583,7 +19566,7 @@ Root$5.registerProcessor = dependant => {
|
|
|
19583
19566
|
var root = Root$5;
|
|
19584
19567
|
Root$5.default = Root$5;
|
|
19585
19568
|
|
|
19586
|
-
Container$
|
|
19569
|
+
Container$1c.registerRoot(Root$5);
|
|
19587
19570
|
|
|
19588
19571
|
let list$2 = {
|
|
19589
19572
|
comma(string) {
|
|
@@ -19642,10 +19625,10 @@ let list$2 = {
|
|
|
19642
19625
|
var list_1 = list$2;
|
|
19643
19626
|
list$2.default = list$2;
|
|
19644
19627
|
|
|
19645
|
-
let Container$
|
|
19628
|
+
let Container$1b = container;
|
|
19646
19629
|
let list$1 = list_1;
|
|
19647
19630
|
|
|
19648
|
-
let Rule$3 = class Rule extends Container$
|
|
19631
|
+
let Rule$3 = class Rule extends Container$1b {
|
|
19649
19632
|
constructor(defaults) {
|
|
19650
19633
|
super(defaults);
|
|
19651
19634
|
this.type = 'rule';
|
|
@@ -19666,7 +19649,7 @@ let Rule$3 = class Rule extends Container$19 {
|
|
|
19666
19649
|
var rule = Rule$3;
|
|
19667
19650
|
Rule$3.default = Rule$3;
|
|
19668
19651
|
|
|
19669
|
-
Container$
|
|
19652
|
+
Container$1b.registerRule(Rule$3);
|
|
19670
19653
|
|
|
19671
19654
|
let Declaration$2 = declaration;
|
|
19672
19655
|
let tokenizer = tokenize;
|
|
@@ -20276,7 +20259,7 @@ let Parser$1 = class Parser {
|
|
|
20276
20259
|
|
|
20277
20260
|
var parser = Parser$1;
|
|
20278
20261
|
|
|
20279
|
-
let Container$
|
|
20262
|
+
let Container$1a = container;
|
|
20280
20263
|
let Parser = parser;
|
|
20281
20264
|
let Input$3 = input;
|
|
20282
20265
|
|
|
@@ -20315,12 +20298,12 @@ function parse$3(css, opts) {
|
|
|
20315
20298
|
var parse_1 = parse$3;
|
|
20316
20299
|
parse$3.default = parse$3;
|
|
20317
20300
|
|
|
20318
|
-
Container$
|
|
20301
|
+
Container$1a.registerParse(parse$3);
|
|
20319
20302
|
|
|
20320
20303
|
let { isClean, my } = symbols;
|
|
20321
20304
|
let MapGenerator$1 = mapGenerator;
|
|
20322
20305
|
let stringify$2 = stringify_1;
|
|
20323
|
-
let Container$
|
|
20306
|
+
let Container$19 = container;
|
|
20324
20307
|
let Document$2 = document$1;
|
|
20325
20308
|
let warnOnce$1 = warnOnce$2;
|
|
20326
20309
|
let Result$3 = result;
|
|
@@ -20455,7 +20438,7 @@ let LazyResult$2 = class LazyResult {
|
|
|
20455
20438
|
|
|
20456
20439
|
if (root && !root[my]) {
|
|
20457
20440
|
/* c8 ignore next 2 */
|
|
20458
|
-
Container$
|
|
20441
|
+
Container$19.rebuild(root);
|
|
20459
20442
|
}
|
|
20460
20443
|
}
|
|
20461
20444
|
|
|
@@ -21125,7 +21108,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
21125
21108
|
let CssSyntaxError = cssSyntaxError;
|
|
21126
21109
|
let Declaration = declaration;
|
|
21127
21110
|
let LazyResult = lazyResult;
|
|
21128
|
-
let Container$
|
|
21111
|
+
let Container$18 = container;
|
|
21129
21112
|
let Processor = processor;
|
|
21130
21113
|
let stringify = stringify_1;
|
|
21131
21114
|
let fromJSON = fromJSON_1;
|
|
@@ -21205,7 +21188,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
21205
21188
|
|
|
21206
21189
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
21207
21190
|
postcss.Declaration = Declaration;
|
|
21208
|
-
postcss.Container = Container$
|
|
21191
|
+
postcss.Container = Container$18;
|
|
21209
21192
|
postcss.Processor = Processor;
|
|
21210
21193
|
postcss.Document = Document;
|
|
21211
21194
|
postcss.Comment = Comment;
|
|
@@ -22160,7 +22143,7 @@ var TextInput = function (_a) {
|
|
|
22160
22143
|
React__default.default.createElement(StyledTextInput, { type: "text", id: id, name: name, defaultValue: value, "$size": size, placeholder: placeholder, "$isErrored": isErrored, "$isLarge": isLarge })));
|
|
22161
22144
|
};
|
|
22162
22145
|
|
|
22163
|
-
const Container$
|
|
22146
|
+
const Container$17 = styled__default.default.div`
|
|
22164
22147
|
display: block;
|
|
22165
22148
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22166
22149
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -22207,11 +22190,11 @@ var ToggleButtons = function (_a) {
|
|
|
22207
22190
|
setActiveButton(index);
|
|
22208
22191
|
onClick();
|
|
22209
22192
|
};
|
|
22210
|
-
return (React__default.default.createElement(Container$
|
|
22193
|
+
return (React__default.default.createElement(Container$17, { "data-testid": "ToggleButtons", "$hasTopMargin": hasTopMargin },
|
|
22211
22194
|
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
22195
|
};
|
|
22213
22196
|
|
|
22214
|
-
const Container$
|
|
22197
|
+
const Container$16 = styled__default.default.div`
|
|
22215
22198
|
display: block;
|
|
22216
22199
|
position: fixed;
|
|
22217
22200
|
top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -22311,14 +22294,14 @@ var QuickExit = function (_a) {
|
|
|
22311
22294
|
window.location.replace(url);
|
|
22312
22295
|
};
|
|
22313
22296
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
22314
|
-
React__default.default.createElement(Container$
|
|
22297
|
+
React__default.default.createElement(Container$16, { "data-testid": "QuickExit" },
|
|
22315
22298
|
React__default.default.createElement(QuickExitButton, { onClick: function (e) { return handleClick(e); } },
|
|
22316
22299
|
React__default.default.createElement(HeadingWithIcon, { icon: "quickExit", level: 3, text: label, hasHover: false })))));
|
|
22317
22300
|
};
|
|
22318
22301
|
|
|
22319
22302
|
// Accordion
|
|
22320
22303
|
|
|
22321
|
-
const Container$
|
|
22304
|
+
const Container$15 = styled__default.default.div`
|
|
22322
22305
|
${(props) => props.theme.fontStyles}
|
|
22323
22306
|
margin-bottom: 20px;
|
|
22324
22307
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -22384,6 +22367,8 @@ const SectionHeader = styled__default.default.div`
|
|
|
22384
22367
|
const SectionHeading = styled__default.default.div`
|
|
22385
22368
|
margin-top: 0 !important;
|
|
22386
22369
|
margin-bottom: 0 !important;
|
|
22370
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22371
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
22387
22372
|
`;
|
|
22388
22373
|
|
|
22389
22374
|
const SectionButtonIsFilteredStyles = (props) => {
|
|
@@ -22426,12 +22411,8 @@ const SectionButton = styled__default.default.button`
|
|
|
22426
22411
|
outline: 3px solid transparent;
|
|
22427
22412
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
22428
22413
|
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};
|
|
22414
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
22415
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
22435
22416
|
text-decoration: none;
|
|
22436
22417
|
}
|
|
22437
22418
|
|
|
@@ -22604,7 +22585,7 @@ var Accordion$1 = function (_a) {
|
|
|
22604
22585
|
setAccordionStates(newStatus);
|
|
22605
22586
|
};
|
|
22606
22587
|
var accordionId = "accordion".concat(React.useId());
|
|
22607
|
-
return (React__default.default.createElement(Container$
|
|
22588
|
+
return (React__default.default.createElement(Container$15, { "data-testid": "Accordion", id: accordionId },
|
|
22608
22589
|
showControls && sections.length > 1 && (React__default.default.createElement(AccordionControls$1, null,
|
|
22609
22590
|
React__default.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
22610
22591
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -22612,7 +22593,7 @@ var Accordion$1 = function (_a) {
|
|
|
22612
22593
|
accordionStates.map(function (section, i) { return (React__default.default.createElement(AccordionSection, __assign$2({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
|
|
22613
22594
|
};
|
|
22614
22595
|
|
|
22615
|
-
const Container$
|
|
22596
|
+
const Container$14 = styled__default.default.div`
|
|
22616
22597
|
display: block;
|
|
22617
22598
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
22618
22599
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -22666,7 +22647,7 @@ var _a, _b;
|
|
|
22666
22647
|
var PostcodeSearchApiUrl = (_a = process.env.NEXT_PUBLIC_POSTCODE_SEARCH_API_URL) !== null && _a !== void 0 ? _a : '';
|
|
22667
22648
|
var BinFinderApiUrl = (_b = process.env.NEXT_PUBLIC_BIN_FINDER_API_URL) !== null && _b !== void 0 ? _b : '';
|
|
22668
22649
|
|
|
22669
|
-
const Container$
|
|
22650
|
+
const Container$13 = styled__default.default.div`
|
|
22670
22651
|
display: flex;
|
|
22671
22652
|
-webkit-flex-direction: row;
|
|
22672
22653
|
-moz-flex-direction: row;
|
|
@@ -22703,7 +22684,7 @@ const ErrorSummary$1 = styled__default.default.div`
|
|
|
22703
22684
|
*/
|
|
22704
22685
|
var FormWithLine = function (_a) {
|
|
22705
22686
|
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$
|
|
22687
|
+
return (React__default.default.createElement(Container$13, null,
|
|
22707
22688
|
React__default.default.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
22708
22689
|
React__default.default.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
22709
22690
|
errorSummary && React__default.default.createElement(ErrorSummary$1, null, errorSummary),
|
|
@@ -22753,7 +22734,7 @@ var Input = function (_a) {
|
|
|
22753
22734
|
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
22735
|
};
|
|
22755
22736
|
|
|
22756
|
-
const Container$
|
|
22737
|
+
const Container$12 = styled__default.default.div`
|
|
22757
22738
|
display: block;
|
|
22758
22739
|
`;
|
|
22759
22740
|
|
|
@@ -22944,7 +22925,7 @@ var BinCollection = function (_a) {
|
|
|
22944
22925
|
acc[collectionDay].push(binCollection);
|
|
22945
22926
|
return acc;
|
|
22946
22927
|
}, {});
|
|
22947
|
-
return (React__default.default.createElement(Container$
|
|
22928
|
+
return (React__default.default.createElement(Container$12, { "data-testid": "BinCollection" },
|
|
22948
22929
|
React__default.default.createElement(Heading$1, { text: "Bin collections for:", level: 3 }),
|
|
22949
22930
|
React__default.default.createElement("p", null, address),
|
|
22950
22931
|
Object.keys(binCollectionsGrouped).map(function (day) {
|
|
@@ -23129,7 +23110,7 @@ var BinFinder = function (_a) {
|
|
|
23129
23110
|
return [2 /*return*/];
|
|
23130
23111
|
});
|
|
23131
23112
|
}); };
|
|
23132
|
-
return (React__default.default.createElement(Container$
|
|
23113
|
+
return (React__default.default.createElement(Container$14, { "data-testid": "BinFinder" },
|
|
23133
23114
|
title && (React__default.default.createElement(TitleContainer, null,
|
|
23134
23115
|
React__default.default.createElement(Heading$1, { level: 2, text: title }))),
|
|
23135
23116
|
uprn === '' ? (React__default.default.createElement(React__default.default.Fragment, null,
|
|
@@ -23226,7 +23207,7 @@ var BlockQuote = function (_a) {
|
|
|
23226
23207
|
citation && React__default.default.createElement(Citation, null, citation)));
|
|
23227
23208
|
};
|
|
23228
23209
|
|
|
23229
|
-
const Container
|
|
23210
|
+
const Container$11 = styled__default.default.div`
|
|
23230
23211
|
margin-bottom: 30px;
|
|
23231
23212
|
display: block;
|
|
23232
23213
|
|
|
@@ -23241,11 +23222,11 @@ const Container$$ = styled__default.default.div`
|
|
|
23241
23222
|
*/
|
|
23242
23223
|
var CallToAction = function (_a) {
|
|
23243
23224
|
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
|
|
23225
|
+
return (React__default.default.createElement(Container$11, null,
|
|
23245
23226
|
React__default.default.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
23246
23227
|
};
|
|
23247
23228
|
|
|
23248
|
-
const Container$
|
|
23229
|
+
const Container$10 = styled__default.default.div`
|
|
23249
23230
|
display: block;
|
|
23250
23231
|
${(props) => props.theme.fontStyles}
|
|
23251
23232
|
`;
|
|
@@ -23421,7 +23402,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
23421
23402
|
});
|
|
23422
23403
|
return letterData;
|
|
23423
23404
|
});
|
|
23424
|
-
return (React__default.default.createElement(Container$
|
|
23405
|
+
return (React__default.default.createElement(Container$10, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
23425
23406
|
React__default.default.createElement(React__default.default.Fragment, null,
|
|
23426
23407
|
parishes.length === 0 && (React__default.default.createElement(ErrorText$1, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
23427
23408
|
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 +23428,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
23447
23428
|
React__default.default.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
23448
23429
|
};
|
|
23449
23430
|
|
|
23450
|
-
const Container
|
|
23431
|
+
const Container$$ = styled__default.default.div``;
|
|
23451
23432
|
|
|
23452
|
-
const Container$
|
|
23433
|
+
const Container$_ = styled__default.default.div`
|
|
23453
23434
|
display: flex;
|
|
23454
23435
|
flex-direction: column;
|
|
23455
23436
|
justify-content: flex-start;
|
|
@@ -23525,7 +23506,7 @@ const FooterLink$1 = styled__default.default.a`
|
|
|
23525
23506
|
var Card = function (_a) {
|
|
23526
23507
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
23527
23508
|
var showContent = content || header;
|
|
23528
|
-
return (React__default.default.createElement(Container$
|
|
23509
|
+
return (React__default.default.createElement(Container$_, { "data-testid": "Card" },
|
|
23529
23510
|
imageLarge && imageSmall && (React__default.default.createElement(React__default.default.Fragment, null, footerLink ? (React__default.default.createElement(ImageLink$1, { href: footerLink.url },
|
|
23530
23511
|
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
23512
|
showContent && (React__default.default.createElement(Content$7, null,
|
|
@@ -23541,18 +23522,18 @@ var Card = function (_a) {
|
|
|
23541
23522
|
*/
|
|
23542
23523
|
var Cards = function (_a) {
|
|
23543
23524
|
var cards = _a.cards;
|
|
23544
|
-
return (React__default.default.createElement(Container
|
|
23525
|
+
return (React__default.default.createElement(Container$$, { "data-testid": "Cards" },
|
|
23545
23526
|
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
23527
|
React__default.default.createElement(Card, __assign$2({}, card)))); }))));
|
|
23547
23528
|
};
|
|
23548
23529
|
|
|
23549
|
-
const Container$
|
|
23530
|
+
const Container$Z = styled__default.default.div`
|
|
23550
23531
|
margin: 25px 0;
|
|
23551
23532
|
`;
|
|
23552
23533
|
|
|
23553
23534
|
var DownloadableFiles = function (_a) {
|
|
23554
23535
|
var files = _a.files;
|
|
23555
|
-
return (React__default.default.createElement(Container$
|
|
23536
|
+
return (React__default.default.createElement(Container$Z, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
23556
23537
|
files.map(function (file) { return React__default.default.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
23557
23538
|
:
|
|
23558
23539
|
React__default.default.createElement("i", null, "No file to show")));
|
|
@@ -23653,7 +23634,7 @@ const AccessibleMapLink = styled__default.default(MapLink$1)`
|
|
|
23653
23634
|
${(props) => props.theme.visuallyHidden};
|
|
23654
23635
|
`;
|
|
23655
23636
|
|
|
23656
|
-
const Container$
|
|
23637
|
+
const Container$Y = styled__default.default.div`
|
|
23657
23638
|
border: solid 4px;
|
|
23658
23639
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
23659
23640
|
border-color: ${(props) =>
|
|
@@ -23707,7 +23688,7 @@ const InnerContainer$2 = styled__default.default.div`
|
|
|
23707
23688
|
*/
|
|
23708
23689
|
var AlertBannerService = function (_a) {
|
|
23709
23690
|
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$
|
|
23691
|
+
return (React__default.default.createElement(Container$Y, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
23711
23692
|
React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
23712
23693
|
(title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading$1, { text: title }),
|
|
23713
23694
|
children)));
|
|
@@ -23760,7 +23741,7 @@ var GoogleMap = function (_a) {
|
|
|
23760
23741
|
React__default.default.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
23761
23742
|
};
|
|
23762
23743
|
|
|
23763
|
-
const Container$
|
|
23744
|
+
const Container$X = styled__default.default.figure`
|
|
23764
23745
|
display: block;
|
|
23765
23746
|
background: ${(props) =>
|
|
23766
23747
|
props.theme.cardinal_name === 'north'
|
|
@@ -23793,12 +23774,12 @@ const Caption = styled__default.default.figcaption`
|
|
|
23793
23774
|
*/
|
|
23794
23775
|
var Image$1 = function (_a) {
|
|
23795
23776
|
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$
|
|
23777
|
+
return (React__default.default.createElement(Container$X, { "data-testid": "Image", "$wrapText": wrapText },
|
|
23797
23778
|
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, ratio: ratio, smallWidth: "400", largeWidth: "1200" }),
|
|
23798
23779
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React__default.default.createElement(Caption, null, caption)));
|
|
23799
23780
|
};
|
|
23800
23781
|
|
|
23801
|
-
const Container$
|
|
23782
|
+
const Container$W = styled__default.default.div`
|
|
23802
23783
|
display: block;
|
|
23803
23784
|
`;
|
|
23804
23785
|
|
|
@@ -23819,7 +23800,7 @@ const Content$6 = styled__default.default.div`
|
|
|
23819
23800
|
*/
|
|
23820
23801
|
var ImageAndText = function (_a) {
|
|
23821
23802
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
23822
|
-
return (React__default.default.createElement(Container$
|
|
23803
|
+
return (React__default.default.createElement(Container$W, { "data-testid": "ImageAndText" },
|
|
23823
23804
|
React__default.default.createElement(Row$1, null,
|
|
23824
23805
|
heading && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23825
23806
|
React__default.default.createElement(HeadingContainer, null,
|
|
@@ -23839,7 +23820,7 @@ var CaseAppointmentType;
|
|
|
23839
23820
|
CaseAppointmentType["Writing"] = "writing";
|
|
23840
23821
|
})(CaseAppointmentType || (CaseAppointmentType = {}));
|
|
23841
23822
|
|
|
23842
|
-
const Container$
|
|
23823
|
+
const Container$V = styled__default.default.div`
|
|
23843
23824
|
display: block;
|
|
23844
23825
|
box-sizing: border-box;
|
|
23845
23826
|
`;
|
|
@@ -23960,7 +23941,7 @@ var InquestSchedule = function (_a) {
|
|
|
23960
23941
|
};
|
|
23961
23942
|
});
|
|
23962
23943
|
};
|
|
23963
|
-
return (React__default.default.createElement(Container$
|
|
23944
|
+
return (React__default.default.createElement(Container$V, { "data-testid": "InquestSchedule" },
|
|
23964
23945
|
Object.keys(hearingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23965
23946
|
React__default.default.createElement(Heading$1, { level: 2, text: title }),
|
|
23966
23947
|
React__default.default.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
|
|
@@ -23975,7 +23956,7 @@ var InquestSchedule = function (_a) {
|
|
|
23975
23956
|
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
23957
|
};
|
|
23977
23958
|
|
|
23978
|
-
const Container$
|
|
23959
|
+
const Container$U = styled__default.default.div`
|
|
23979
23960
|
${(props) => props.theme.fontStyles};
|
|
23980
23961
|
overflow: hidden;
|
|
23981
23962
|
margin: 40px auto 5px auto;
|
|
@@ -24052,7 +24033,7 @@ const CTA = styled__default.default.a`
|
|
|
24052
24033
|
*/
|
|
24053
24034
|
var PromoBanner = function (_a) {
|
|
24054
24035
|
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$
|
|
24036
|
+
return (React__default.default.createElement(Container$U, null,
|
|
24056
24037
|
React__default.default.createElement(ImageLink, { href: ctaUrl, title: ctaText },
|
|
24057
24038
|
React__default.default.createElement(ResponsiveImage, { imageSmall: image144x81, imageLarge: image1440x810, imageAltText: ctaText, smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "cover" })),
|
|
24058
24039
|
React__default.default.createElement(Wrapper$4, null,
|
|
@@ -24263,7 +24244,7 @@ var Promotions = function (_a) {
|
|
|
24263
24244
|
numberOfPromos > 1 && React__default.default.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
|
|
24264
24245
|
};
|
|
24265
24246
|
|
|
24266
|
-
const Container$
|
|
24247
|
+
const Container$T = styled__default.default.div`
|
|
24267
24248
|
display: block;
|
|
24268
24249
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24269
24250
|
`;
|
|
@@ -24280,11 +24261,11 @@ var RecyclingInformation = function (_a) {
|
|
|
24280
24261
|
document.body.appendChild(script);
|
|
24281
24262
|
});
|
|
24282
24263
|
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$
|
|
24264
|
+
return (React__default.default.createElement(Container$T, { "data-testid": "RecyclingInformation" },
|
|
24284
24265
|
React__default.default.createElement("div", { dangerouslySetInnerHTML: { __html: innerHTML } })));
|
|
24285
24266
|
};
|
|
24286
24267
|
|
|
24287
|
-
const Container$
|
|
24268
|
+
const Container$S = styled__default.default.div`
|
|
24288
24269
|
display: block;
|
|
24289
24270
|
`;
|
|
24290
24271
|
|
|
@@ -24400,7 +24381,7 @@ var RoadworksList = function (_a) {
|
|
|
24400
24381
|
}
|
|
24401
24382
|
}
|
|
24402
24383
|
};
|
|
24403
|
-
return (React__default.default.createElement(Container$
|
|
24384
|
+
return (React__default.default.createElement(Container$S, { "data-testid": "RoadworksList" },
|
|
24404
24385
|
React__default.default.createElement(Heading$1, { level: 2, text: title }),
|
|
24405
24386
|
React__default.default.createElement(Label$7, { htmlFor: "roadworksSearch" }, "Search roadworks"),
|
|
24406
24387
|
React__default.default.createElement(Input, { id: "roadworksSearch", name: "roadworksSearch", type: "text", placeholder: "Enter a search term", maxLength: 255, onChange: handleSearch, isFullWidth: true }),
|
|
@@ -24429,7 +24410,7 @@ var RoadworksList = function (_a) {
|
|
|
24429
24410
|
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
24411
|
};
|
|
24431
24412
|
|
|
24432
|
-
const Container$
|
|
24413
|
+
const Container$R = styled__default.default.div`
|
|
24433
24414
|
padding: 0;
|
|
24434
24415
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
24435
24416
|
position: relative;
|
|
@@ -24480,7 +24461,7 @@ const Inner = styled__default.default.div`
|
|
|
24480
24461
|
}
|
|
24481
24462
|
`;
|
|
24482
24463
|
|
|
24483
|
-
const Container$
|
|
24464
|
+
const Container$Q = styled__default.default.div`
|
|
24484
24465
|
display: block;
|
|
24485
24466
|
|
|
24486
24467
|
input[type='text'] {
|
|
@@ -24553,7 +24534,7 @@ var CustomSearch = function (_a) {
|
|
|
24553
24534
|
if (!id) {
|
|
24554
24535
|
id = React.useId();
|
|
24555
24536
|
}
|
|
24556
|
-
return (React__default.default.createElement(Container$
|
|
24537
|
+
return (React__default.default.createElement(Container$Q, { "data-testid": "CustomSearch" },
|
|
24557
24538
|
React__default.default.createElement("form", { method: method, action: path, "aria-label": label },
|
|
24558
24539
|
React__default.default.createElement("div", { role: "search" },
|
|
24559
24540
|
React__default.default.createElement(Label$6, { htmlFor: id, "$hasHiddenLabel": hasHiddenLabel }, label),
|
|
@@ -24573,7 +24554,7 @@ var SearchBox = function (_a) {
|
|
|
24573
24554
|
searchBoxLink && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-third" },
|
|
24574
24555
|
React__default.default.createElement(LinkContainer, null,
|
|
24575
24556
|
React__default.default.createElement(Button$4, { text: searchBoxLink.title, url: searchBoxLink.url, primary: searchBoxLinkIsPrimary })))))));
|
|
24576
|
-
return (React__default.default.createElement(Container$
|
|
24557
|
+
return (React__default.default.createElement(Container$R, { "data-testid": "SearchBox", "$hasImage": imageSmall && imageLarge },
|
|
24577
24558
|
imageSmall && imageLarge && (React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "400", largeWidth: "1200", ratio: "auto", objectFit: "cover" })),
|
|
24578
24559
|
searchInner));
|
|
24579
24560
|
};
|
|
@@ -24704,7 +24685,7 @@ var WarningTextDisclaimer = function () {
|
|
|
24704
24685
|
"."));
|
|
24705
24686
|
};
|
|
24706
24687
|
|
|
24707
|
-
const Container$
|
|
24688
|
+
const Container$P = styled__default.default.div`
|
|
24708
24689
|
display: block;
|
|
24709
24690
|
`;
|
|
24710
24691
|
|
|
@@ -24727,7 +24708,8 @@ const StyledTextarea = styled__default.default.textarea`
|
|
|
24727
24708
|
|
|
24728
24709
|
&:focus {
|
|
24729
24710
|
outline: none;
|
|
24730
|
-
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0
|
|
24711
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
24712
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
24731
24713
|
transition: box-shadow 0.3s ease 0s;
|
|
24732
24714
|
}
|
|
24733
24715
|
`;
|
|
@@ -24747,7 +24729,7 @@ const ErrorText = styled__default.default.p`
|
|
|
24747
24729
|
}
|
|
24748
24730
|
`;
|
|
24749
24731
|
|
|
24750
|
-
const Container$
|
|
24732
|
+
const Container$O = styled__default.default.div`
|
|
24751
24733
|
display: block;
|
|
24752
24734
|
`;
|
|
24753
24735
|
|
|
@@ -24763,7 +24745,7 @@ var CharacterCount = function (_a) {
|
|
|
24763
24745
|
var calculatedRemaining = maxLength - input.length;
|
|
24764
24746
|
setRemaining(calculatedRemaining < 0 ? 0 : calculatedRemaining);
|
|
24765
24747
|
}, [input]);
|
|
24766
|
-
return (React__default.default.createElement(Container$
|
|
24748
|
+
return (React__default.default.createElement(Container$O, { "data-testid": "CharacterCount" },
|
|
24767
24749
|
React__default.default.createElement(Count, { "aria-live": "polite" },
|
|
24768
24750
|
"You have ",
|
|
24769
24751
|
remaining,
|
|
@@ -24783,7 +24765,7 @@ var Textarea = function (_a) {
|
|
|
24783
24765
|
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
24766
|
};
|
|
24785
24767
|
|
|
24786
|
-
const Container$
|
|
24768
|
+
const Container$N = styled__default.default.div`
|
|
24787
24769
|
display: block;
|
|
24788
24770
|
width: 100%;
|
|
24789
24771
|
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -24809,7 +24791,7 @@ const ErrorLink = styled__default.default.a`
|
|
|
24809
24791
|
|
|
24810
24792
|
var ErrorSummary = function (_a) {
|
|
24811
24793
|
var errors = _a.errors;
|
|
24812
|
-
return (React__default.default.createElement(Container$
|
|
24794
|
+
return (React__default.default.createElement(Container$N, { "data-testid": "ErrorSummary" },
|
|
24813
24795
|
React__default.default.createElement(Heading$1, { level: 2, text: "There is a problem" }),
|
|
24814
24796
|
React__default.default.createElement(ErrorList, null, Object.keys(errors).map(function (field) { return (React__default.default.createElement(ErrorMessage, { key: field },
|
|
24815
24797
|
React__default.default.createElement(ErrorLink, { href: "#".concat(field, "Error") }, errors[field].message))); }))));
|
|
@@ -24882,7 +24864,7 @@ var WebChat = function (_a) {
|
|
|
24882
24864
|
behavior: 'smooth',
|
|
24883
24865
|
});
|
|
24884
24866
|
};
|
|
24885
|
-
return (React__default.default.createElement(Container$
|
|
24867
|
+
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
24868
|
errors && Object.keys(errors).length > 0 && React__default.default.createElement(ErrorSummary, { errors: errors }),
|
|
24887
24869
|
React__default.default.createElement("form", { onSubmit: handleSubmit(onSubmit, errorCallback) },
|
|
24888
24870
|
React__default.default.createElement(Label$5, { htmlFor: "name" }, "Name"),
|
|
@@ -24999,7 +24981,7 @@ var AccessibleLinks = function (_a) {
|
|
|
24999
24981
|
})));
|
|
25000
24982
|
};
|
|
25001
24983
|
|
|
25002
|
-
const Container$
|
|
24984
|
+
const Container$M = styled__default.default.div`
|
|
25003
24985
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25004
24986
|
background: ${(props) =>
|
|
25005
24987
|
props.$alertType === 'alert'
|
|
@@ -25130,7 +25112,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
|
|
|
25130
25112
|
}
|
|
25131
25113
|
};
|
|
25132
25114
|
|
|
25133
|
-
const Container$
|
|
25115
|
+
const Container$L = styled__default.default.div`
|
|
25134
25116
|
background: ${(props) =>
|
|
25135
25117
|
props.$noBackground
|
|
25136
25118
|
? 'transparent'
|
|
@@ -25172,7 +25154,7 @@ const MaxWidth = styled__default.default.div`
|
|
|
25172
25154
|
*/
|
|
25173
25155
|
var MaxWidthContainer = function (_a) {
|
|
25174
25156
|
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$
|
|
25157
|
+
return (React__default.default.createElement(Container$L, { "$noBackground": noBackground, "$noPadding": noPadding, "$overflowVisible": overflowVisible },
|
|
25176
25158
|
React__default.default.createElement(MaxWidth, __assign$2({ className: classes, "$overflowVisible": overflowVisible }, props), children)));
|
|
25177
25159
|
};
|
|
25178
25160
|
|
|
@@ -25243,7 +25225,7 @@ var AlertBanner = function (_a) {
|
|
|
25243
25225
|
setShowAlert(false);
|
|
25244
25226
|
};
|
|
25245
25227
|
return (showAlert &&
|
|
25246
|
-
notServer && (React__default.default.createElement(Container$
|
|
25228
|
+
notServer && (React__default.default.createElement(Container$M, { "$alertType": alertType, "data-testid": "AlertBanner" },
|
|
25247
25229
|
React__default.default.createElement(MaxWidthContainer, { noBackground: true },
|
|
25248
25230
|
React__default.default.createElement(InnerContainer$1, null,
|
|
25249
25231
|
React__default.default.createElement(BannerContentContainer, null,
|
|
@@ -25257,7 +25239,7 @@ var AlertBanner = function (_a) {
|
|
|
25257
25239
|
"Dismiss"))))));
|
|
25258
25240
|
};
|
|
25259
25241
|
|
|
25260
|
-
const Container$
|
|
25242
|
+
const Container$K = styled__default.default.a`
|
|
25261
25243
|
display: inline-block;
|
|
25262
25244
|
position: relative;
|
|
25263
25245
|
padding-top: 15px;
|
|
@@ -25316,10 +25298,10 @@ const Container$I = styled__default.default.a`
|
|
|
25316
25298
|
*/
|
|
25317
25299
|
var BackLink = function (_a) {
|
|
25318
25300
|
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$
|
|
25301
|
+
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
25302
|
};
|
|
25321
25303
|
|
|
25322
|
-
const Container$
|
|
25304
|
+
const Container$J = styled__default.default.div`
|
|
25323
25305
|
padding-top: 15px;
|
|
25324
25306
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
25325
25307
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
@@ -25387,14 +25369,392 @@ const BreadcrumbLink$1 = styled__default.default.a`
|
|
|
25387
25369
|
|
|
25388
25370
|
var Breadcrumbs = function (_a) {
|
|
25389
25371
|
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
25390
|
-
return (React__default.default.createElement(Container$
|
|
25372
|
+
return (React__default.default.createElement(Container$J, { "$hasMargin": hasMargin, "data-testid": "Breadcrumbs" },
|
|
25391
25373
|
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
25374
|
React__default.default.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
25393
25375
|
React__default.default.createElement(IconWrapper$4, null,
|
|
25394
25376
|
React__default.default.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
25395
25377
|
};
|
|
25396
25378
|
|
|
25397
|
-
const Container$
|
|
25379
|
+
const Container$I = styled__default.default.div`
|
|
25380
|
+
display: block;
|
|
25381
|
+
|
|
25382
|
+
a {
|
|
25383
|
+
text-decoration: none !important;
|
|
25384
|
+
font-weight: normal !important;
|
|
25385
|
+
|
|
25386
|
+
b {
|
|
25387
|
+
font-weight: bold !important;
|
|
25388
|
+
}
|
|
25389
|
+
}
|
|
25390
|
+
|
|
25391
|
+
.wnc-cludo-input {
|
|
25392
|
+
padding-left: 0;
|
|
25393
|
+
padding-right: 0;
|
|
25394
|
+
display: flex;
|
|
25395
|
+
flex-direction: row;
|
|
25396
|
+
}
|
|
25397
|
+
|
|
25398
|
+
.wnc-cludo-input input {
|
|
25399
|
+
padding: 10px;
|
|
25400
|
+
min-height: 44px;
|
|
25401
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25402
|
+
border-radius: 6px 0 0 6px;
|
|
25403
|
+
flex-grow: 1;
|
|
25404
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25405
|
+
}
|
|
25406
|
+
|
|
25407
|
+
.wnc-cludo-input input:focus,
|
|
25408
|
+
.wnc-cludo-input input:active {
|
|
25409
|
+
outline: none;
|
|
25410
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25411
|
+
border-radius: 6px 0 0 6px;
|
|
25412
|
+
box-shadow: 0 0 0 2px #e2ca76, 0 0 0 4px #000;
|
|
25413
|
+
}
|
|
25414
|
+
|
|
25415
|
+
.wnc-cludo-input button {
|
|
25416
|
+
height: 46px;
|
|
25417
|
+
width: 46px;
|
|
25418
|
+
margin-left: 0;
|
|
25419
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
25420
|
+
border-radius: 0 6px 6px 0;
|
|
25421
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25422
|
+
cursor: pointer;
|
|
25423
|
+
|
|
25424
|
+
&:hover {
|
|
25425
|
+
background-color: ${(props) => props.theme.theme_vars.action_dark};
|
|
25426
|
+
}
|
|
25427
|
+
|
|
25428
|
+
svg {
|
|
25429
|
+
width: 20px;
|
|
25430
|
+
height: 20px;
|
|
25431
|
+
}
|
|
25432
|
+
}
|
|
25433
|
+
|
|
25434
|
+
.wnc-cludo-did-you-mean {
|
|
25435
|
+
display: block;
|
|
25436
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25437
|
+
}
|
|
25438
|
+
|
|
25439
|
+
.wnc-cludo-facet-list {
|
|
25440
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25441
|
+
|
|
25442
|
+
h3 {
|
|
25443
|
+
${(props) => props.theme.theme_vars.h3};
|
|
25444
|
+
margin-top: 0;
|
|
25445
|
+
}
|
|
25446
|
+
}
|
|
25447
|
+
|
|
25448
|
+
.wnc-cludo-facet-list ul {
|
|
25449
|
+
list-style: none;
|
|
25450
|
+
display: flex;
|
|
25451
|
+
flex-direction: row;
|
|
25452
|
+
flex-wrap: wrap;
|
|
25453
|
+
justify-content: flex-start;
|
|
25454
|
+
margin: 0;
|
|
25455
|
+
|
|
25456
|
+
li {
|
|
25457
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25458
|
+
left: 0;
|
|
25459
|
+
line-height: 1.5;
|
|
25460
|
+
|
|
25461
|
+
a {
|
|
25462
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
25463
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25464
|
+
padding: ${(props) =>
|
|
25465
|
+
`${props.theme.theme_vars.spacingSizes.extra_small} ${props.theme.theme_vars.spacingSizes.small}`};
|
|
25466
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25467
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
25468
|
+
|
|
25469
|
+
&:hover {
|
|
25470
|
+
text-decoration: underline !important;
|
|
25471
|
+
text-decoration-style: dotted !important;
|
|
25472
|
+
}
|
|
25473
|
+
|
|
25474
|
+
&.cludo-active {
|
|
25475
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25476
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25477
|
+
}
|
|
25478
|
+
.cludo-theme-facet-count {
|
|
25479
|
+
&:before {
|
|
25480
|
+
content: '(';
|
|
25481
|
+
}
|
|
25482
|
+
&:after {
|
|
25483
|
+
content: ')';
|
|
25484
|
+
}
|
|
25485
|
+
}
|
|
25486
|
+
}
|
|
25487
|
+
}
|
|
25488
|
+
}
|
|
25489
|
+
|
|
25490
|
+
.cludo_results-list {
|
|
25491
|
+
list-style: none;
|
|
25492
|
+
}
|
|
25493
|
+
|
|
25494
|
+
.cludo_results-list li {
|
|
25495
|
+
width: 100%;
|
|
25496
|
+
left: 0 !important;
|
|
25497
|
+
line-height: 1.5;
|
|
25498
|
+
padding-right: 0;
|
|
25499
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
25500
|
+
}
|
|
25501
|
+
|
|
25502
|
+
.wnc-cludo-result {
|
|
25503
|
+
display: flex;
|
|
25504
|
+
flex-direction: column;
|
|
25505
|
+
flex-wrap: wrap;
|
|
25506
|
+
align-items: flex-start;
|
|
25507
|
+
}
|
|
25508
|
+
|
|
25509
|
+
.cludo-banner {
|
|
25510
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
25511
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25512
|
+
width: 100%;
|
|
25513
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25514
|
+
|
|
25515
|
+
a {
|
|
25516
|
+
text-decoration: underline !important;
|
|
25517
|
+
font-weight: 700 !important;
|
|
25518
|
+
}
|
|
25519
|
+
|
|
25520
|
+
button {
|
|
25521
|
+
outline: none;
|
|
25522
|
+
background: transparent;
|
|
25523
|
+
border: none;
|
|
25524
|
+
|
|
25525
|
+
a {
|
|
25526
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25527
|
+
color: ${(props) => props.theme.theme_vars.colours.white} !important;
|
|
25528
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25529
|
+
display: inline-block;
|
|
25530
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25531
|
+
text-decoration: none !important;
|
|
25532
|
+
font-weight: 700 !important;
|
|
25533
|
+
|
|
25534
|
+
&:hover {
|
|
25535
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
25536
|
+
}
|
|
25537
|
+
|
|
25538
|
+
&:focus,
|
|
25539
|
+
&:active {
|
|
25540
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
25541
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25542
|
+
box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
25543
|
+
}
|
|
25544
|
+
}
|
|
25545
|
+
}
|
|
25546
|
+
}
|
|
25547
|
+
|
|
25548
|
+
.wnc-cludo-result {
|
|
25549
|
+
display: block;
|
|
25550
|
+
&:hover {
|
|
25551
|
+
.wnc-cludo-title {
|
|
25552
|
+
${(props) => props.theme.linkStylesHover};
|
|
25553
|
+
}
|
|
25554
|
+
}
|
|
25555
|
+
|
|
25556
|
+
&:focus {
|
|
25557
|
+
${(props) => props.theme.linkStylesFocus};
|
|
25558
|
+
}
|
|
25559
|
+
|
|
25560
|
+
&:active {
|
|
25561
|
+
${(props) => props.theme.linkStylesActive};
|
|
25562
|
+
}
|
|
25563
|
+
}
|
|
25564
|
+
|
|
25565
|
+
.wnc-cludo-title {
|
|
25566
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25567
|
+
font-weight: 700;
|
|
25568
|
+
text-decoration: underline;
|
|
25569
|
+
margin-bottom: 0;
|
|
25570
|
+
font-size: 1.2em;
|
|
25571
|
+
}
|
|
25572
|
+
|
|
25573
|
+
.wnc-cludo-description {
|
|
25574
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25575
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25576
|
+
}
|
|
25577
|
+
|
|
25578
|
+
.wnc-cludo-badge {
|
|
25579
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25580
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25581
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
25582
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25583
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25584
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25585
|
+
display: inline-block;
|
|
25586
|
+
}
|
|
25587
|
+
|
|
25588
|
+
.wnc-cludo-result-link {
|
|
25589
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
25590
|
+
}
|
|
25591
|
+
|
|
25592
|
+
.wnc-cludo-pagination ul {
|
|
25593
|
+
list-style: none;
|
|
25594
|
+
display: flex;
|
|
25595
|
+
flex-direction: row;
|
|
25596
|
+
flex-wrap: wrap;
|
|
25597
|
+
margin-left: 0;
|
|
25598
|
+
|
|
25599
|
+
li {
|
|
25600
|
+
left: 0%;
|
|
25601
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25602
|
+
|
|
25603
|
+
button {
|
|
25604
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
25605
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25606
|
+
outline: none;
|
|
25607
|
+
border: none;
|
|
25608
|
+
padding: 15px 19px;
|
|
25609
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25610
|
+
cursor: pointer;
|
|
25611
|
+
|
|
25612
|
+
&:hover {
|
|
25613
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
25614
|
+
}
|
|
25615
|
+
|
|
25616
|
+
&:focus,
|
|
25617
|
+
&:active {
|
|
25618
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25619
|
+
box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
25620
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25621
|
+
}
|
|
25622
|
+
}
|
|
25623
|
+
}
|
|
25624
|
+
}
|
|
25625
|
+
`;
|
|
25626
|
+
|
|
25627
|
+
const ImageContainer$5 = styled__default.default.div`
|
|
25628
|
+
img {
|
|
25629
|
+
width: 100%;
|
|
25630
|
+
}
|
|
25631
|
+
`;
|
|
25632
|
+
|
|
25633
|
+
const AutocompleteContainer = styled__default.default.div`
|
|
25634
|
+
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : '0')};
|
|
25635
|
+
`;
|
|
25636
|
+
|
|
25637
|
+
const AutocompleteList = styled__default.default.ul`
|
|
25638
|
+
list-style: none;
|
|
25639
|
+
margin-top: 0 !important;
|
|
25640
|
+
margin-left: 0 !important;
|
|
25641
|
+
|
|
25642
|
+
position: absolute;
|
|
25643
|
+
z-index: 2;
|
|
25644
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
25645
|
+
|
|
25646
|
+
li {
|
|
25647
|
+
cursor: pointer;
|
|
25648
|
+
border-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25649
|
+
border-style: solid;
|
|
25650
|
+
border-width: 1px 2px;
|
|
25651
|
+
left: 0 !important;
|
|
25652
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25653
|
+
margin-bottom: 0 !important;
|
|
25654
|
+
|
|
25655
|
+
&:hover,
|
|
25656
|
+
&.active {
|
|
25657
|
+
background: ${(props) => props.theme.theme_vars.colours.action};
|
|
25658
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25659
|
+
}
|
|
25660
|
+
}
|
|
25661
|
+
`;
|
|
25662
|
+
|
|
25663
|
+
const MobileFacets = styled__default.default.div`
|
|
25664
|
+
display: block;
|
|
25665
|
+
|
|
25666
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25667
|
+
display: none;
|
|
25668
|
+
}
|
|
25669
|
+
`;
|
|
25670
|
+
|
|
25671
|
+
const DesktopFacets = styled__default.default.div`
|
|
25672
|
+
display: none;
|
|
25673
|
+
|
|
25674
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25675
|
+
display: block;
|
|
25676
|
+
}
|
|
25677
|
+
`;
|
|
25678
|
+
|
|
25679
|
+
var CludoAutoComplete = function (_a) {
|
|
25680
|
+
var _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b;
|
|
25681
|
+
var _c = ssr.useAutocomplete(), autocompleteState = _c[0], autocompleteDispatchers = _c[1];
|
|
25682
|
+
var handleSubmit = function (e) {
|
|
25683
|
+
e.preventDefault();
|
|
25684
|
+
};
|
|
25685
|
+
var handleChange = function (e) {
|
|
25686
|
+
ssr.autocompleteHandleInputChange(e, autocompleteDispatchers);
|
|
25687
|
+
};
|
|
25688
|
+
var handleBlur = function (e) {
|
|
25689
|
+
ssr.autocompleteHandleInputBlur(e, autocompleteDispatchers);
|
|
25690
|
+
};
|
|
25691
|
+
var handleKeyDown = function (e) {
|
|
25692
|
+
ssr.autocompleteHandleInputKeyDown(e, autocompleteDispatchers);
|
|
25693
|
+
};
|
|
25694
|
+
return (React__default.default.createElement(AutocompleteContainer, { "$hasMargin": hasMargin },
|
|
25695
|
+
React__default.default.createElement(ssr.SearchInput, { className: "wnc-cludo-input", formId: "search", ariaLabel: "Search the website", onChange: handleChange, onSubmit: handleSubmit, onBlur: handleBlur, onKeyDown: handleKeyDown }),
|
|
25696
|
+
React__default.default.createElement(AutocompleteList, null, autocompleteState.suggestions.map(function (suggestion, index) {
|
|
25697
|
+
return (React__default.default.createElement(ssr.SaytSuggestion, { disableTheme: true, key: suggestion.title + index, suggestion: suggestion, isSelected: autocompleteState.selectedSuggestion === index, suggestionIndex: index }));
|
|
25698
|
+
}))));
|
|
25699
|
+
};
|
|
25700
|
+
|
|
25701
|
+
var CludoSearch = function (_a) {
|
|
25702
|
+
_a.searchTerm; var customerId = _a.customerId, engineId = _a.engineId;
|
|
25703
|
+
var cludoSearchConfig = {
|
|
25704
|
+
customerId: customerId,
|
|
25705
|
+
engineId: engineId,
|
|
25706
|
+
searchUrl: '/',
|
|
25707
|
+
language: 'en',
|
|
25708
|
+
facets: {
|
|
25709
|
+
keys: ['Category'],
|
|
25710
|
+
defaultValues: {
|
|
25711
|
+
Category: ['West Northamptonshire Council'],
|
|
25712
|
+
},
|
|
25713
|
+
},
|
|
25714
|
+
behavior: {
|
|
25715
|
+
enableRelatedSearches: true,
|
|
25716
|
+
},
|
|
25717
|
+
instanceId: '',
|
|
25718
|
+
components: {
|
|
25719
|
+
autocomplete: CludoAutoComplete,
|
|
25720
|
+
},
|
|
25721
|
+
};
|
|
25722
|
+
var filterOrder = [
|
|
25723
|
+
'West Northamptonshire Council',
|
|
25724
|
+
'News',
|
|
25725
|
+
'Local Organisations',
|
|
25726
|
+
'SEND Local Offer',
|
|
25727
|
+
"Northamptonshire Children's Trust",
|
|
25728
|
+
'*',
|
|
25729
|
+
];
|
|
25730
|
+
return (React__default.default.createElement(Container$I, { "data-testid": "CludoSearch" },
|
|
25731
|
+
React__default.default.createElement(ssr.CludoWrapper, { config: cludoSearchConfig },
|
|
25732
|
+
React__default.default.createElement(CludoAutoComplete, null),
|
|
25733
|
+
React__default.default.createElement(ssr.ResultCount, null),
|
|
25734
|
+
React__default.default.createElement(ssr.DidYouMean, { className: "wnc-cludo-did-you-mean" }),
|
|
25735
|
+
React__default.default.createElement(Row$1, null,
|
|
25736
|
+
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "three-quarters" },
|
|
25737
|
+
React__default.default.createElement(MobileFacets, null,
|
|
25738
|
+
React__default.default.createElement(ssr.FacetGroup, null,
|
|
25739
|
+
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 }))),
|
|
25740
|
+
React__default.default.createElement(ssr.ResultsList, { template: function (currResult) { return (React__default.default.createElement(ssr.CustomResult, { result: currResult, wrapWithLink: true, className: "wnc-cludo-result" },
|
|
25741
|
+
React__default.default.createElement(Row$1, null,
|
|
25742
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
|
|
25743
|
+
React__default.default.createElement(ImageContainer$5, null,
|
|
25744
|
+
React__default.default.createElement(ssr.ResultImage, { className: "wnc-cludo-image" }))),
|
|
25745
|
+
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "three-quarters" },
|
|
25746
|
+
React__default.default.createElement(ssr.ResultTitle, { className: "wnc-cludo-title" }),
|
|
25747
|
+
React__default.default.createElement(ssr.ResultDescription, { maxWordCount: 20, className: "wnc-cludo-description" }),
|
|
25748
|
+
React__default.default.createElement(ssr.ResultBadge, { className: "wnc-cludo-badge" }),
|
|
25749
|
+
React__default.default.createElement(ssr.ResultUrl, { className: "wnc-cludo-result-link" }))))); } }),
|
|
25750
|
+
React__default.default.createElement(ssr.Pagination, { className: "wnc-cludo-pagination", previousButtonIcon: "Previous", nextButtonIcon: "Next" })),
|
|
25751
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
|
|
25752
|
+
React__default.default.createElement(DesktopFacets, null,
|
|
25753
|
+
React__default.default.createElement(ssr.FacetGroup, null,
|
|
25754
|
+
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 }))))))));
|
|
25755
|
+
};
|
|
25756
|
+
|
|
25757
|
+
const Container$H = styled__default.default.div`
|
|
25398
25758
|
display: block;
|
|
25399
25759
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
25400
25760
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
@@ -25444,12 +25804,12 @@ const CurrentPage = styled__default.default.span`
|
|
|
25444
25804
|
|
|
25445
25805
|
var Contents$1 = function (_a) {
|
|
25446
25806
|
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$
|
|
25807
|
+
return (React__default.default.createElement(Container$H, { "data-testid": "Contents" },
|
|
25448
25808
|
React__default.default.createElement(Heading$1, { text: title, level: 2 }),
|
|
25449
25809
|
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
25810
|
};
|
|
25451
25811
|
|
|
25452
|
-
const Container$
|
|
25812
|
+
const Container$G = styled__default.default.div`
|
|
25453
25813
|
display: block;
|
|
25454
25814
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
25455
25815
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -25499,7 +25859,7 @@ var ContentsNavigation = function (_a) {
|
|
|
25499
25859
|
};
|
|
25500
25860
|
var nextPage = currentPage() < contents.length - 1 ? contents[currentPage() + 1] : undefined;
|
|
25501
25861
|
var previousPage = currentPage() !== 0 ? contents[currentPage() - 1] : undefined;
|
|
25502
|
-
return (React__default.default.createElement(Container$
|
|
25862
|
+
return (React__default.default.createElement(Container$G, { "data-testid": "ContentsNavigation" },
|
|
25503
25863
|
previousPage && (React__default.default.createElement(NavigationLink, { href: previousPage.url },
|
|
25504
25864
|
React__default.default.createElement(Arrow, null, "\u2190"),
|
|
25505
25865
|
React__default.default.createElement(LinkText, null,
|
|
@@ -25517,7 +25877,7 @@ var ContentsNavigation = function (_a) {
|
|
|
25517
25877
|
var customParseFormat$1 = {exports: {}};
|
|
25518
25878
|
|
|
25519
25879
|
(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
|
|
25880
|
+
!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
25881
|
} (customParseFormat$1));
|
|
25522
25882
|
|
|
25523
25883
|
var customParseFormatExports = customParseFormat$1.exports;
|
|
@@ -25526,7 +25886,7 @@ var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatEx
|
|
|
25526
25886
|
var advancedFormat$1 = {exports: {}};
|
|
25527
25887
|
|
|
25528
25888
|
(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)};}}));
|
|
25889
|
+
!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
25890
|
} (advancedFormat$1));
|
|
25531
25891
|
|
|
25532
25892
|
var advancedFormatExports = advancedFormat$1.exports;
|
|
@@ -25556,7 +25916,7 @@ var DisplayDate = function (_a) {
|
|
|
25556
25916
|
postText));
|
|
25557
25917
|
};
|
|
25558
25918
|
|
|
25559
|
-
const Container$
|
|
25919
|
+
const Container$F = styled__default.default.div`
|
|
25560
25920
|
display: block;
|
|
25561
25921
|
|
|
25562
25922
|
.event-list__results {
|
|
@@ -25834,7 +26194,7 @@ var EventList = function (_a) {
|
|
|
25834
26194
|
event.preventDefault();
|
|
25835
26195
|
onSubmit();
|
|
25836
26196
|
};
|
|
25837
|
-
return (React__default.default.createElement(Container$
|
|
26197
|
+
return (React__default.default.createElement(Container$F, { "data-testid": "EventList" },
|
|
25838
26198
|
React__default.default.createElement(Row$1, null,
|
|
25839
26199
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
25840
26200
|
React__default.default.createElement(ToggleFilters, { onClick: function () { return setShowFilters(!showFilters); } },
|
|
@@ -25874,7 +26234,7 @@ var EventList = function (_a) {
|
|
|
25874
26234
|
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, postTo: eventsPagePath, resultsPerPage: 5 }))) : (React__default.default.createElement(ResultInfo$4, null, "No results found"))))));
|
|
25875
26235
|
};
|
|
25876
26236
|
|
|
25877
|
-
const Container$
|
|
26237
|
+
const Container$E = styled__default.default.footer`
|
|
25878
26238
|
background-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25879
26239
|
padding: 25px 0;
|
|
25880
26240
|
`;
|
|
@@ -26056,7 +26416,7 @@ var ServiceIcon = function (_a) {
|
|
|
26056
26416
|
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
26417
|
};
|
|
26058
26418
|
|
|
26059
|
-
const Container$
|
|
26419
|
+
const Container$D = styled__default.default.div`
|
|
26060
26420
|
display: block;
|
|
26061
26421
|
|
|
26062
26422
|
.goog-te-combo {
|
|
@@ -26130,7 +26490,7 @@ var GoogleTranslate = function (_a) {
|
|
|
26130
26490
|
document.body.appendChild(addScript);
|
|
26131
26491
|
window.googleTranslateElementInit = googleTranslateElementInit;
|
|
26132
26492
|
}, []);
|
|
26133
|
-
return (React__default.default.createElement(Container$
|
|
26493
|
+
return (React__default.default.createElement(Container$D, { "data-testid": "GoogleTranslate", "$hasDarkBackground": hasDarkBackground },
|
|
26134
26494
|
label && React__default.default.createElement(Label$4, { "$hasDarkBackground": hasDarkBackground }, label),
|
|
26135
26495
|
React__default.default.createElement("div", { id: "google_translate_element" })));
|
|
26136
26496
|
};
|
|
@@ -26138,7 +26498,7 @@ var GoogleTranslate = function (_a) {
|
|
|
26138
26498
|
var Footer = function (_a) {
|
|
26139
26499
|
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
26500
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
26141
|
-
return (React__default.default.createElement(Container$
|
|
26501
|
+
return (React__default.default.createElement(Container$E, { "data-testid": "Footer" },
|
|
26142
26502
|
React__default.default.createElement(StyledMaxWidthContainer$2, { noBackground: true },
|
|
26143
26503
|
React__default.default.createElement(FooterAlignment, null,
|
|
26144
26504
|
React__default.default.createElement("div", null,
|
|
@@ -26173,7 +26533,7 @@ var Footer = function (_a) {
|
|
|
26173
26533
|
: '' }, 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
26534
|
};
|
|
26175
26535
|
|
|
26176
|
-
const Container$
|
|
26536
|
+
const Container$C = styled__default.default.div`
|
|
26177
26537
|
background: ${(props) => (props.$hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
|
|
26178
26538
|
padding: ${(props) => (props.$hasPadding ? '50px 0 20px' : '0')};
|
|
26179
26539
|
`;
|
|
@@ -26183,7 +26543,7 @@ const Container$B = styled__default.default.div`
|
|
|
26183
26543
|
*/
|
|
26184
26544
|
var FullWidthContainer = function (_a) {
|
|
26185
26545
|
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$
|
|
26546
|
+
return (React__default.default.createElement(Container$C, { "$hasBackground": hasBackground, "$hasPadding": hasPadding, "data-testid": "FullWidthContainer" }, children));
|
|
26187
26547
|
};
|
|
26188
26548
|
|
|
26189
26549
|
/**
|
|
@@ -26215,7 +26575,7 @@ const headerThemeStyles = (props) => {
|
|
|
26215
26575
|
}
|
|
26216
26576
|
};
|
|
26217
26577
|
|
|
26218
|
-
const Container$
|
|
26578
|
+
const Container$B = styled__default.default.header`
|
|
26219
26579
|
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
26220
26580
|
position: relative;
|
|
26221
26581
|
z-index: 2;
|
|
@@ -26521,7 +26881,7 @@ var NorthColouredLogo = function () {
|
|
|
26521
26881
|
React__default.default.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
|
|
26522
26882
|
};
|
|
26523
26883
|
|
|
26524
|
-
const Container$
|
|
26884
|
+
const Container$A = styled__default.default.div`
|
|
26525
26885
|
${(props) => props.theme.fontStyles}
|
|
26526
26886
|
width: calc(100% - ${(props) => (props.$isLarge ? '5rem' : '3rem')});
|
|
26527
26887
|
`;
|
|
@@ -26675,7 +27035,7 @@ var Searchbar = function (_a) {
|
|
|
26675
27035
|
/**
|
|
26676
27036
|
* Render the component
|
|
26677
27037
|
*/
|
|
26678
|
-
return (React__default.default.createElement(Container$
|
|
27038
|
+
return (React__default.default.createElement(Container$A, { "data-testid": "Searchbar", "$isLarge": isLarge },
|
|
26679
27039
|
React__default.default.createElement("form", { onSubmit: handleSubmit },
|
|
26680
27040
|
React__default.default.createElement("div", { role: "search" },
|
|
26681
27041
|
React__default.default.createElement(InputWrapper, null,
|
|
@@ -26732,14 +27092,79 @@ var NorthBlackLogo = function () {
|
|
|
26732
27092
|
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
27093
|
};
|
|
26734
27094
|
|
|
27095
|
+
const Container$z = styled__default.default.div`
|
|
27096
|
+
display: block;
|
|
27097
|
+
|
|
27098
|
+
.wnc-cludo-input {
|
|
27099
|
+
padding-left: 0;
|
|
27100
|
+
padding-right: 0;
|
|
27101
|
+
margin-bottom: 0;
|
|
27102
|
+
display: flex;
|
|
27103
|
+
flex-direction: row;
|
|
27104
|
+
}
|
|
27105
|
+
|
|
27106
|
+
.wnc-cludo-input input {
|
|
27107
|
+
padding: 10px;
|
|
27108
|
+
min-height: 44px;
|
|
27109
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27110
|
+
border-radius: 6px 0 0 6px;
|
|
27111
|
+
flex-grow: 1;
|
|
27112
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
27113
|
+
}
|
|
27114
|
+
|
|
27115
|
+
.wnc-cludo-input input:focus,
|
|
27116
|
+
.wnc-cludo-input input:active {
|
|
27117
|
+
outline: none;
|
|
27118
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27119
|
+
border-radius: 6px 0 0 6px;
|
|
27120
|
+
box-shadow: 0 0 0 2px #e2ca76, 0 0 0 4px #000;
|
|
27121
|
+
}
|
|
27122
|
+
|
|
27123
|
+
.wnc-cludo-input button {
|
|
27124
|
+
height: 46px;
|
|
27125
|
+
width: 46px;
|
|
27126
|
+
margin-left: 0;
|
|
27127
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
27128
|
+
border-radius: 0 6px 6px 0;
|
|
27129
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_darkest};
|
|
27130
|
+
cursor: pointer;
|
|
27131
|
+
|
|
27132
|
+
&:hover {
|
|
27133
|
+
background-color: ${(props) => props.theme.theme_vars.action_dark};
|
|
27134
|
+
}
|
|
27135
|
+
|
|
27136
|
+
svg {
|
|
27137
|
+
width: 20px;
|
|
27138
|
+
height: 20px;
|
|
27139
|
+
}
|
|
27140
|
+
}
|
|
27141
|
+
`;
|
|
27142
|
+
|
|
27143
|
+
var CludoSearchBar = function (_a) {
|
|
27144
|
+
var customerId = _a.customerId, engineId = _a.engineId;
|
|
27145
|
+
var cludoSearchConfig = {
|
|
27146
|
+
customerId: customerId,
|
|
27147
|
+
engineId: engineId,
|
|
27148
|
+
searchUrl: '/search',
|
|
27149
|
+
language: 'en',
|
|
27150
|
+
instanceId: '',
|
|
27151
|
+
components: {
|
|
27152
|
+
autocomplete: CludoAutoComplete,
|
|
27153
|
+
},
|
|
27154
|
+
};
|
|
27155
|
+
return (React__default.default.createElement(Container$z, { "data-testid": "CludoSearchBar" },
|
|
27156
|
+
React__default.default.createElement(ssr.CludoWrapper, { config: cludoSearchConfig },
|
|
27157
|
+
React__default.default.createElement(CludoAutoComplete, { hasMargin: false }))));
|
|
27158
|
+
};
|
|
27159
|
+
|
|
26735
27160
|
/**
|
|
26736
27161
|
* The header that should appear at the top of every page.
|
|
26737
27162
|
*/
|
|
26738
27163
|
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"]);
|
|
27164
|
+
_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
27165
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
26741
|
-
var
|
|
26742
|
-
var
|
|
27166
|
+
var _l = React.useState(false), showMenu = _l[0], setShowMenu = _l[1];
|
|
27167
|
+
var _m = React.useState(false), showTranslate = _m[0], setShowTranslate = _m[1];
|
|
26743
27168
|
/*
|
|
26744
27169
|
north homepage - no header
|
|
26745
27170
|
north subpage - white search bar / white nav / colour logo / has search
|
|
@@ -26786,17 +27211,16 @@ var Header = function (_a) {
|
|
|
26786
27211
|
var show = showTranslate;
|
|
26787
27212
|
setShowTranslate(!show);
|
|
26788
27213
|
};
|
|
26789
|
-
return (React__default.default.createElement(Container$
|
|
27214
|
+
return (React__default.default.createElement(Container$B, { "$isHomepage": isHomepage, "data-testid": "Header" },
|
|
26790
27215
|
!hideSearchBar && (React__default.default.createElement(SearchContainer, null,
|
|
26791
27216
|
React__default.default.createElement(MaxWidthContainer, { noPadding: true, noBackground: true, overflowVisible: true },
|
|
26792
27217
|
React__default.default.createElement(SearchWrapper, null,
|
|
26793
|
-
React__default.default.createElement(SearchBarContainer, null,
|
|
26794
|
-
|
|
26795
|
-
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
|
-
}, suggestions: searchSuggestions })))))),
|
|
27218
|
+
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: {
|
|
27219
|
+
postTo: '/search',
|
|
27220
|
+
params: {
|
|
27221
|
+
type: 'search',
|
|
27222
|
+
},
|
|
27223
|
+
}, suggestions: searchSuggestions }))))))),
|
|
26800
27224
|
React__default.default.createElement(MaxWidthContainer, { noPadding: true, noBackground: true },
|
|
26801
27225
|
React__default.default.createElement(NavContainer, __assign$2({}, props),
|
|
26802
27226
|
React__default.default.createElement(LogoWrapper, null,
|
|
@@ -26973,11 +27397,8 @@ const CallToActionLink = styled__default.default.a`
|
|
|
26973
27397
|
&:hover,
|
|
26974
27398
|
&:focus {
|
|
26975
27399
|
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);
|
|
27400
|
+
text-shadow: 2px 2px 4px rgba(150, 150, 150, 0.5), -2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
27401
|
+
2px -2px 4px rgba(150, 150, 150, 0.5), -2px -2px 4px rgba(150, 150, 150, 0.5);
|
|
26981
27402
|
}
|
|
26982
27403
|
&:active {
|
|
26983
27404
|
transform: translate(3px);
|
|
@@ -26990,16 +27411,17 @@ const BreadcrumbLink = styled__default.default.a`
|
|
|
26990
27411
|
color: ${(props) =>
|
|
26991
27412
|
props.$backgroundBox ? props.theme.theme_vars.colours.action : props.theme.theme_vars.colours.white};
|
|
26992
27413
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27414
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
26993
27415
|
display: block;
|
|
26994
27416
|
|
|
26995
|
-
&:hover
|
|
27417
|
+
&:hover {
|
|
27418
|
+
${(props) => props.theme.linkStylesHover};
|
|
27419
|
+
}
|
|
26996
27420
|
&: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)`};
|
|
27421
|
+
${(props) => props.theme.linkStylesFocus};
|
|
27422
|
+
}
|
|
27423
|
+
&:active {
|
|
27424
|
+
${(props) => props.theme.linkStylesActive};
|
|
27003
27425
|
}
|
|
27004
27426
|
`;
|
|
27005
27427
|
|
|
@@ -28942,7 +29364,7 @@ function L(r) {
|
|
|
28942
29364
|
if (e)
|
|
28943
29365
|
c(e.getAttribute("data-status"));
|
|
28944
29366
|
else {
|
|
28945
|
-
e = document.createElement("script"), e.src = r, e.async =
|
|
29367
|
+
e = document.createElement("script"), e.src = r, e.async = true, e.defer = true, e.setAttribute("data-status", "loading"), document.body.appendChild(e);
|
|
28946
29368
|
const a = (i) => {
|
|
28947
29369
|
e.setAttribute(
|
|
28948
29370
|
"data-status",
|
|
@@ -28979,7 +29401,7 @@ function R({
|
|
|
28979
29401
|
const [s, f] = React.useState(!!((w = window == null ? void 0 : window.grecaptcha) != null && w.render)), [t, v] = React.useState(null);
|
|
28980
29402
|
React.useEffect(() => (l = window.setInterval(() => {
|
|
28981
29403
|
var d;
|
|
28982
|
-
(d = window == null ? void 0 : window.grecaptcha) != null && d.render && f(
|
|
29404
|
+
(d = window == null ? void 0 : window.grecaptcha) != null && d.render && f(true);
|
|
28983
29405
|
}, 500), () => {
|
|
28984
29406
|
clearInterval(l);
|
|
28985
29407
|
}), []), React.useEffect(() => {
|
|
@@ -29782,9 +30204,8 @@ const focusListItem = styled.css`
|
|
|
29782
30204
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
29783
30205
|
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
29784
30206
|
outline: none;
|
|
29785
|
-
box-shadow:
|
|
29786
|
-
|
|
29787
|
-
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
30207
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
30208
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
29788
30209
|
`;
|
|
29789
30210
|
|
|
29790
30211
|
const ListItem = styled__default.default.li`
|
|
@@ -29831,9 +30252,8 @@ const ListItemLink = styled__default.default.a`
|
|
|
29831
30252
|
}
|
|
29832
30253
|
&:active {
|
|
29833
30254
|
transform: translateY(1px);
|
|
29834
|
-
box-shadow:
|
|
29835
|
-
|
|
29836
|
-
-moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
30255
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
|
|
30256
|
+
${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
|
|
29837
30257
|
}
|
|
29838
30258
|
|
|
29839
30259
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -31652,7 +32072,7 @@ const AddToShortlist = styled__default.default.button`
|
|
|
31652
32072
|
color: ${(props) =>
|
|
31653
32073
|
props.$favourite ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.action};
|
|
31654
32074
|
cursor: pointer;
|
|
31655
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32075
|
+
padding: ${(props) => `14px ${props.theme.theme_vars.spacingSizes.small}`};
|
|
31656
32076
|
font-weight: bold;
|
|
31657
32077
|
display: flex;
|
|
31658
32078
|
flex-direction: row;
|
|
@@ -31934,6 +32354,7 @@ const Container$2 = styled__default.default.div`
|
|
|
31934
32354
|
|
|
31935
32355
|
input[type='text'] {
|
|
31936
32356
|
margin-bottom: 0;
|
|
32357
|
+
min-height: 44px;
|
|
31937
32358
|
}
|
|
31938
32359
|
`;
|
|
31939
32360
|
|
|
@@ -31975,7 +32396,7 @@ const Button$1 = styled__default.default.button`
|
|
|
31975
32396
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31976
32397
|
cursor: pointer;
|
|
31977
32398
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31978
|
-
min-height:
|
|
32399
|
+
min-height: 44px;
|
|
31979
32400
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31980
32401
|
font-weight: bold;
|
|
31981
32402
|
|
|
@@ -32004,7 +32425,7 @@ const ButtonText$1 = styled__default.default.span`
|
|
|
32004
32425
|
const ResultInfo$1 = styled__default.default.div`
|
|
32005
32426
|
width: 100%;
|
|
32006
32427
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
32007
|
-
color: ${(props) => props.theme.theme_vars.colours.
|
|
32428
|
+
color: ${(props) => props.theme.theme_vars.colours.grey_darkest};
|
|
32008
32429
|
`;
|
|
32009
32430
|
|
|
32010
32431
|
const ServiceContainer = styled__default.default.div`
|
|
@@ -32083,8 +32504,8 @@ const LegendButton = styled__default.default.button`
|
|
|
32083
32504
|
cursor: pointer;
|
|
32084
32505
|
text-align: left;
|
|
32085
32506
|
padding-right: 30px;
|
|
32086
|
-
padding-top:
|
|
32087
|
-
padding-bottom:
|
|
32507
|
+
padding-top: 12px;
|
|
32508
|
+
padding-bottom: 12px;
|
|
32088
32509
|
${(props) => props.theme.theme_vars.h4}
|
|
32089
32510
|
${(props) => props.theme.linkStyles}
|
|
32090
32511
|
&:hover {
|
|
@@ -32154,7 +32575,7 @@ const TextLink$1 = styled__default.default.button`
|
|
|
32154
32575
|
position: relative;
|
|
32155
32576
|
z-index: 1;
|
|
32156
32577
|
margin: 0;
|
|
32157
|
-
padding:
|
|
32578
|
+
padding: 12.5px 0;
|
|
32158
32579
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
32159
32580
|
border-width: 0;
|
|
32160
32581
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -32189,7 +32610,7 @@ const MapToggle = styled__default.default.button`
|
|
|
32189
32610
|
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
32190
32611
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
32191
32612
|
cursor: pointer;
|
|
32192
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32613
|
+
padding: 12.5px ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32193
32614
|
font-weight: bold;
|
|
32194
32615
|
display: flex;
|
|
32195
32616
|
flex-direction: row;
|
|
@@ -32451,7 +32872,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
32451
32872
|
filtersActive && (React__default.default.createElement(Button$1, { onClick: clearSearch, type: "button", "$isWarning": true },
|
|
32452
32873
|
React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
|
|
32453
32874
|
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 }))))))),
|
|
32875
|
+
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
|
|
32455
32876
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
32456
32877
|
React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
32457
32878
|
React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
@@ -34392,6 +34813,7 @@ exports.Button = Button$4;
|
|
|
34392
34813
|
exports.CallToAction = CallToAction;
|
|
34393
34814
|
exports.Cards = Cards;
|
|
34394
34815
|
exports.CheckboxListFilter = CheckboxListFilter;
|
|
34816
|
+
exports.CludoSearch = CludoSearch;
|
|
34395
34817
|
exports.Contents = Contents$1;
|
|
34396
34818
|
exports.ContentsNavigation = ContentsNavigation;
|
|
34397
34819
|
exports.CookieBanner = CookieBanner;
|