"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8289],{93521:function(n,e,t){t.d(e,{y:function(){return Z}});var o,i,r,l,a,c,d=t(8529),s=t(7328),u=t(2784),h=t(25237),g=t.n(h),m=t(97209),f=t(58406),x=t(81292),v=t(50556),p=t(51339),y=t(48840),T=t(87330),b=t(95158),w=t(53678),z=t(52322),A=g()(function(){return Promise.resolve().then(t.bind(t,24376))},{ssr:!0,fallback:(0,z.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[24376]}}}),R=g()(function(){return Promise.resolve().then(t.bind(t,97457))},{ssr:!0,fallback:(0,z.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[97457]}}}),k=(0,y.zo)(v.T)(o||(o=(0,s.Z)(["\n ",";\n "," {\n ",";\n }\n\n * {\n ",";\n\n "," {\n ",";\n }\n }\n\n & > p:first-child {\n margin-top: 0;\n }\n ","\n"])),function(n){var e,t,o,i;return(0,T.xv)(null!==(e=null===(t=n.mobileTextStyle)||void 0===t?void 0:t.entry)&&void 0!==e?e:"bodyText",null!==(o=null===(i=n.mobileTextStyle)||void 0===i?void 0:i.style)&&void 0!==o?o:"default")},function(n){return(0,x.mq)(n.theme.breakpointUtils.map,"sm")},function(n){var e,t,o,i;return(0,T.xv)(null!==(e=null===(t=n.desktopTextStyle)||void 0===t?void 0:t.entry)&&void 0!==e?e:"bodyText",null!==(o=null===(i=n.desktopTextStyle)||void 0===i?void 0:i.style)&&void 0!==o?o:"default")},function(n){var e,t,o,i;return(0,T.xv)(null!==(e=null===(t=n.mobileTextStyle)||void 0===t?void 0:t.entry)&&void 0!==e?e:"bodyText",null!==(o=null===(i=n.mobileTextStyle)||void 0===i?void 0:i.style)&&void 0!==o?o:"default")},function(n){return(0,x.mq)(n.theme.breakpointUtils.map,"sm")},function(n){var e,t,o,i;return(0,T.xv)(null!==(e=null===(t=n.desktopTextStyle)||void 0===t?void 0:t.entry)&&void 0!==e?e:"bodyText",null!==(o=null===(i=n.desktopTextStyle)||void 0===i?void 0:i.style)&&void 0!==o?o:"default")},function(n){return n.horizontalAlignment===w.K.CENTER&&"text-align: center;"}),E=(0,y.iv)(i||(i=(0,s.Z)(["\n flex-wrap: wrap;\n position: relative;\n bottom: ",";\n margin-bottom: -",";\n\n &::before {\n content: '';\n display: block;\n height: ",";\n width: 100%;\n background: ",";\n }\n"])),function(n){return n.theme.typography.bodyText.largeDevice.lineHeight},function(n){return n.theme.typography.bodyText.largeDevice.lineHeight},function(n){return n.theme.typography.bodyText.largeDevice.lineHeight},function(n){return(0,b.FL)("0deg",[{color:(0,b.Oh)(n.theme.colors.palette.greys.white,1),stop:0},{color:(0,b.Oh)(n.theme.colors.palette.greys.white,0),stop:100}])}),S=y.zo.div(r||(r=(0,s.Z)(["\n display: flex;\n align-items: center;\n width: 100%;\n\n ","\n\n ","\n\n svg {\n transform: ",";\n transition: transform 0.5s ease;\n }\n"])),function(n){return n.horizontalAlignment===w.K.CENTER&&"justify-content: center;"},function(n){return!n.open&&E},function(n){return n.open?"rotate(180deg)":"rotate(0deg)"}),j=(0,y.zo)(p.zx)(l||(l=(0,s.Z)(["\n ",";\n\n &:hover,\n &:focus {\n ",";\n }\n"])),(0,T.xv)("bodyText","alternate"),(0,T.xv)("bodyText","alternate")),C=y.zo.div(a||(a=(0,s.Z)(["\n overflow: hidden;\n height: 100%;\n transition: max-height 0.5s ease;\n\n max-height: ",";\n }\n"])),function(n){return n.open?"".concat(n.maxHeight,"px"):"calc(".concat(n.theme.typography.bodyText.largeDevice.lineHeight," * ").concat(n.numberOfLinesToShow||2,")")}),M=y.zo.div(c||(c=(0,s.Z)(["\n display: flex;\n flex-direction: column;\n ","\n"])),function(n){return n.open&&"gap: ".concat((0,y.W0)(2),";")}),Z=function(n){var e=(0,f.Fg)(),t=u.useRef(null),o=u.useRef(null),i=u.useState(!1),r=(0,d.Z)(i,2),l=r[0],a=r[1],c=u.useState(!0),s=(0,d.Z)(c,2),h=s[0],g=s[1],x=u.useRef(0);return(u.useEffect(function(){var i;if(n.content)return null!=o&&o.current&&null!=t&&t.current&&((i=new m.Z(function(t){if(!(t.length<2)){var o=parseInt(e.typography.bodyText.largeDevice.lineHeight.toString().replace("px","")||"",10)*(n.numberOfLinesToShow||2),i=t[0].contentRect.height,r=t[1].contentRect.height;x.current=r,g(r>(i<=o?i:o))}})).observe(t.current),i.observe(o.current)),function(){i&&i.disconnect()}},[n.content,e,n.numberOfLinesToShow]),n.content)?(0,z.jsxs)(M,{open:l,children:[(0,z.jsx)(C,{ref:t,maxHeight:x.current,open:l,numberOfLinesToShow:n.numberOfLinesToShow,children:(0,z.jsx)(k,{ref:o,content:n.content,horizontalAlignment:n.contentHorizontalAlignment,desktopTextStyle:n.desktopTextStyle,mobileTextStyle:n.mobileTextStyle})}),h&&(0,z.jsxs)(S,{"data-testid":"read-more-button",horizontalAlignment:n.horizontalAlignment,open:l,children:[(0,z.jsx)(j,{emphasis:"low","aria-expanded":l,onClick:function(){return a(!l)},children:l?n.readLessText:n.readMoreText}),e.patterns.readMore.chevronIcon.svgPath?(0,z.jsx)(R,{xmlns:"http://www.w3.org/2000/svg",viewBox:e.patterns.readMore.chevronIcon.viewBox,width:e.patterns.readMore.chevronIcon.width,height:e.patterns.readMore.chevronIcon.height,children:(0,z.jsx)("path",{d:e.patterns.readMore.chevronIcon.svgPath,fillRule:"evenodd"})}):(0,z.jsx)(A,{})]})]}):null}},88124:function(n,e,t){t.d(e,{e:function(){return E},K:function(){return k}}),t(2784);var o,i,r,l,a,c,d,s,u=t(53266),h=t(7328),g=t(11006),m=t(81292),f=t(87330),x=t(48840),v=t(50556),p=g.zo.div(i||(i=(0,h.Z)(["\n display: flex;\n flex-direction: column;\n ","\n justify-content: space-evenly;\n"])),function(n){return n.horizontalAlignment===k.ALTERNATE&&"".concat((0,m.mq)(n.theme.breakpointUtils.map,"sm")," {\n flex-direction: row;\n }")}),y=g.zo.div(r||(r=(0,h.Z)(["\n width: 100%;\n height: 100%;\n ",";\n"])),function(n){return n.horizontalAlignment===k.ALTERNATE&&"".concat((0,m.mq)(n.theme.breakpointUtils.map,"sm")," {flex-basis: 40%;")}),T=(0,g.zo)(v.T)(l||(l=(0,h.Z)(["\n ",";\n margin-bottom: ",";\n margin-right: 0;\n\n ","\n\n "," {\n margin-right: ",";\n }\n"])),function(n){return(0,f.xv)(n.theme.widget.accordionContainer.title.font.entry,n.theme.widget.accordionContainer.title.font.style)},function(n){return n.fitTitles?"0":"".concat((0,x.W0)(2))},function(n){return n.horizontalAlignment===k.CENTER?"text-align: center;":"text-align: left;"},function(n){return(0,m.mq)(n.theme.breakpointUtils.map,"sm")},function(n){return n.addTitleRightMarginA11y?"".concat((0,x.W0)(10)):"0"}),b=g.zo.div(a||(a=(0,h.Z)(["\n ",";\n margin-bottom: ",";\n margin-bottom: ",";\n ","\n"])),function(n){return(0,f.xv)(n.theme.widget.accordionContainer.subtitle.font.entry,n.theme.widget.accordionContainer.subtitle.font.style)},(0,x.W0)(4),function(n){return n.fitTitles?"".concat((0,x.W0)(3)):"".concat((0,x.W0)(4))},function(n){return n.horizontalAlignment===k.CENTER?"text-align: center;":"text-align: left;"}),w=g.zo.div(c||(c=(0,h.Z)(["\n width: 100%;\n ",";\n"])),function(n){return n.horizontalAlignment===k.ALTERNATE&&"width 100%; ".concat((0,m.mq)(n.theme.breakpointUtils.map,"sm")," {flex-basis: 60%;}")}),z=(0,g.zo)(v.T)(d||(d=(0,h.Z)(["\n ",";\n margin: "," auto;\n padding: ",";\n"])),(0,f.xv)("bodyText","default"),(0,x.W0)(1),function(n){return n.contentPadding?"0 ".concat((0,x.W0)(1)," ").concat((0,x.W0)(2)):"0"}),A=(0,g.zo)(v.T)(s||(s=(0,h.Z)(["\n ",";\n text-align: left;\n padding: ",";\n\n & span {\n display: inline-block;\n background: ",";\n color: ",";\n }\n"])),function(n){var e,t,o,i;return(0,f.xv)(null!==(e=null===(t=n.textStyle)||void 0===t?void 0:t.entry)&&void 0!==e?e:n.theme.widget.accordionContainer.accordion.title.entry,null!==(o=null===(i=n.textStyle)||void 0===i?void 0:i.style)&&void 0!==o?o:n.theme.widget.accordionContainer.accordion.title.style)},function(n){return n.contentPadding?"0 ".concat((0,x.W0)(1)," "):"0"},function(n){return n.theme.colors.palette.greys.darker},function(n){return n.theme.colors.palette.greys.white}),R=t(52322),k=((o={}).ALTERNATE="alternate",o.LEFT="left",o.CENTER="center",o),E=function(n){var e=n.items.map(function(e,t){return(0,R.jsxs)(u.UQ,{title:(0,R.jsx)(A,{textStyle:e.textStyle,contentPadding:n.contentPadding,content:e.title,__dangerouslyAllowedTags:["span"]}),focusRef:e.focusRef,subtitleElement:e.subtitleElement,id:t.toString(),isOpen:e.isOpen,focusColour:n.focusColour||"brand",borderPlacement:e.borderPlacement||u.or.BOTTOM,children:[e.content&&(0,R.jsx)(z,{contentPadding:n.contentPadding,content:e.content}),e.elementContent]},t)});return(0,R.jsxs)(p,{horizontalAlignment:n.alignment,className:n.className,children:[(n.title||n.subtitle)&&(0,R.jsxs)(y,{horizontalAlignment:n.alignment,children:[n.title&&(0,R.jsx)(T,{"data-testid":"title",renderedAs:n.heading||"h1",horizontalAlignment:n.alignment,fitTitles:n.fitTitles,addTitleRightMarginA11y:n.addTitleRightMarginA11y,content:n.title}),n.subtitle&&(0,R.jsx)(b,{"data-testid":"subtitle",horizontalAlignment:n.alignment,fitTitles:n.fitTitles,children:n.subtitle})]}),0!==n.items.length&&(0,R.jsx)(w,{horizontalAlignment:n.alignment,children:e})]})}},8289:function(n,e,t){t.r(e),t.d(e,{SimpleTextReadMoreRenderer:function(){return g}});var o,i,r=t(7328);t(2784);var l=t(93521),a=t(28885),c=t(88124),d=t(48840),s=t(52322),u=d.zo.div(o||(o=(0,r.Z)(["\n margin: 0 "," ",";\n"])),(0,d.W0)(4),(0,d.W0)(2)),h=d.zo.div(i||(i=(0,r.Z)(["\n ","\n"])),function(n){return n.horizontalAlignment===c.K.CENTER&&"text-align: center;"}),g=function(n){var e={readMore:(0,a.ag)("general.readmore.text"),readLess:(0,a.ag)("general.readless.text")},t=n.simpleTextReadMore_textAlign||"center";return(0,s.jsxs)(u,{children:[(0,s.jsx)(h,{horizontalAlignment:t,as:n.simpleTextReadMore_titleIsH1?"h1":"h2",children:n.simpleTextReadMore_title}),(0,s.jsx)(l.y,{content:n.simpleTextReadMoreText.content[0].content,readMoreText:e.readMore,readLessText:e.readLess,horizontalAlignment:t,contentHorizontalAlignment:t})]})}}}]); //# sourceMappingURL=8289.c5831bc0fc54066a.js.map