"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3096],{3688:function(e,t,n){n.d(t,{XZ:function(){return Z}});var r,o,a,c,i,s,l,u=n(8529),d=n(7328),f=n(2784),p=n(25237),b=n.n(p),g=n(48840),h=n(87330),m=n(2660),y=n(50556),v=n(52322),x=n(87810).v4,j=b()(function(){return Promise.resolve().then(n.bind(n,51130))},{ssr:!0,fallback:(0,v.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[51130]}}}),O=g.zo.div(r||(r=(0,d.Z)(["\n box-sizing: border-box;\n width: ",";\n height: 48px;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: center;\n\n pointer-events: ",";\n\n border: "," solid\n ",";\n\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n"])),function(e){return e.width||"fit-content"},function(e){return e.disabled?"none":""},function(e){return e.thinFocusBorder?"1px":"2px"},function(e){return e.focused&&!e.disabled?e.theme.colors.palette.brand.base:e.transparentBorder?"transparent":e.theme.colors.palette.greys.white},function(e){return e.theme.colors.palette.brand.lightest},function(e){return e.theme.colors.palette.brand.lighter}),w=g.zo.input(o||(o=(0,d.Z)(["\n position: absolute;\n pointer-events: none;\n overflow: hidden;\n border: 0;\n z-index: -1;\n height: 1px;\n width: 0;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n opacity: 0;\n"]))),k=g.zo.div(a||(a=(0,d.Z)(["\n display: inline-flex;\n box-sizing: border-box;\n border: "," solid\n ",";\n width: 24px;\n height: 24px;\n background: ",";\n"])),function(e){return e.thinBorder?"1px":"2px"},function(e){return e.error?e.theme.colors.error.base:e.disabled?e.theme.colors.palette.greys.light:e.checked?e.theme.colors.palette.brand.base:e.theme.colors.palette.greys.grey},function(e){return e.checked?e.disabled?e.theme.colors.palette.greys.light:e.theme.colors.palette.brand.base:"none"}),P=(0,g.zo)(j)(c||(c=(0,d.Z)(["\n display: block;\n margin: auto;\n stroke: ",";\n"])),function(e){return e.checked?e.theme.colors.palette.greys.white:"none"}),E=g.zo.label(i||(i=(0,d.Z)(["\n display: flex;\n position: relative;\n padding: "," ",";\n color: ",";\n word-break: break-word;\n &:hover {\n cursor: pointer;\n }\n"])),(0,g.W0)(1.5),(0,g.W0)(1),function(e){return e.disabled?e.theme.colors.palette.greys.light:e.theme.colors.palette.greys.grey}),S=(0,g.zo)(y.T)(s||(s=(0,d.Z)(["\n ","\n margin: ",";\n ","\n ","\n ","\n"])),(0,h.xv)("small","default"),function(){return"0px ".concat((0,g.W0)(1)," 0px ").concat((0,g.W0)(2))},function(e){return e.labelHidden&&"visibility: hidden;"},function(e){return e.labelHidden&&"position: absolute;"},function(e){return e.labelHidden&&"left: -100000px;"}),T=(0,g.zo)(m.Z)(l||(l=(0,d.Z)(["\n margin-left: ",";\n"])),(0,g.W0)(1)),Z=function(e){var t=f.useState(e.checked||!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],a=f.useState(!1),c=(0,u.Z)(a,2),i=c[0],s=c[1],l=e.disabled,d=e.label,p=e.error,b=e.id,g=void 0===b?x():b,h=f.useRef(null),m=e.bindref||h,y=function(t){var n;return"".concat(null===(n=e.label)||void 0===n?void 0:n.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-"),"-").concat(t,"-id-").concat(g)};f.useEffect(function(){return e.getState&&e.getState(r)},[r]),f.useEffect(function(){e.checked!==r&&o(e.checked)},[e.checked]);var j=e.ariaDescribedBy||y("".concat(d,"-error"));return(0,v.jsxs)(f.Fragment,{children:[(0,v.jsx)(O,{disabled:l,focused:i,"data-testid":y("checkbox-container"),width:e.width,thinFocusBorder:e.thinFocusBorder,transparentBorder:e.transparentBorder,children:(0,v.jsxs)(E,{disabled:l,"data-testid":"checkbox-label",children:[(0,v.jsx)(w,{"aria-label":e.labelHidden?e.label:void 0,type:"checkbox",id:g,onFocus:function(){s(!0)},onBlur:function(){s(!1)},disabled:l,checked:r,required:e.required,onChange:function(){e.onChange&&e.onChange(!r),o(!r)},value:"".concat(r),ref:m,"data-testid":y("checkbox-hidden"),"aria-describedby":null==j?void 0:j.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-")}),(0,v.jsx)(k,{"aria-hidden":!0,checked:r,disabled:l,error:!!p,"data-testid":"checkbox-styled",thinBorder:e.thinBorder,children:(0,v.jsx)(P,{checked:r,"data-testid":y("checkbox-tick")})}),(0,v.jsx)(S,{"data-testid":y("checkbox-text"),disabled:e.disabled,content:d,labelHidden:e.labelHidden})]})}),e.error&&(0,v.jsx)(T,{id:y("".concat(d,"-error")),error:e.error})]})}},31162:function(e,t,n){n.d(t,{Z:function(){return p}});var r,o=n(95235),a=n(7328);n(2784);var c=n(89495),i=n(48840),s=n(60299),l=n(87330),u=n(52322);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var f=(0,i.zo)(c.kC)(r||(r=(0,a.Z)(["\n flex-basis: 100%;\n align-items: center;\n ","\n ","\n\n color: ",";\n ","\n\n ","\n \n &::before {\n content: '';\n flex-grow: 1;\n background: ",";\n height: ",";\n font-size: 0;\n line-height: 0;\n ",";\n }\n &::after {\n content: '';\n flex-grow: 1;\n background: ",";\n height: ",";\n font-size: 0;\n line-height: 0;\n ","\n }\n"])),function(e){return e.maxWidth&&"max-width: ".concat(e.maxWidth,"px;")},function(e){return e.separatorMargin&&(0,s.e)(e.separatorMargin)},function(e){return e.theme.colors.palette.greys.dark},function(e){return(0,l.xv)(e.theme.separator.font.entry,e.theme.separator.font.style)},function(e){var t,n,r,o;return e.withSpacing&&(null!==(t=e.separatorMargin)&&void 0!==t&&t.top&&null!==(n=e.separatorMargin)&&void 0!==n&&n.bottom?"margin-top: ".concat(null===(r=e.separatorMargin)||void 0===r?void 0:r.top," px; margin-bottom: ").concat(null===(o=e.separatorMargin)||void 0===o?void 0:o.bottom,"px;"):"margin-top: ".concat((0,i.W0)(2.5),"; margin-bottom: ").concat((0,i.W0)(2.5),";"))},function(e){return e.separatorColor||e.theme.colors.palette.greys.light},function(e){return"".concat(e.height||1,"px")},function(e){return e.children?"margin-right: 15px":""},function(e){return e.separatorColor||e.theme.colors.palette.greys.light},function(e){return"".concat(e.height||1,"px")},function(e){return e.children?"margin-left: 15px":""}),p=function(e){return(0,u.jsx)(f,function(e){for(var t=1;t%s',[(0,i.ag)("account.register.loyalty.terms.url"),(0,i.ag)("account.register.loyalty.terms.text")]);return(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)(f,{children:t}),(0,d.jsx)(s.XZ,{checked:e.checked,label:"".concat(e.label," ").concat(n),required:e.required,bindref:e.bindref,ariaDescribedBy:e.ariaDescribedBy})]})}},58355:function(e,t,n){n.d(t,{W:function(){return V}});var r,o,a,c,i,s,l,u,d,f,p=n(95235),b=n(82269),g=n(7328);n(2784);var h=n(80131),m=n(28885),y=n(41857),v=n(11006),x=n(87330),j=n(48840),O=n(52322),w=j.zo.input(r||(r=(0,g.Z)(["\n border: 0;\n position: absolute;\n z-index: -1;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n white-space: nowrap;\n width: 1px;\n"]))),k=j.zo.div(o||(o=(0,g.Z)(["\n display: inline-flex;\n box-sizing: border-box;\n width: ",";\n min-width: ",";\n height: ",";\n min-height: ",";\n border-radius: 50%;\n border: 2px solid\n ",";\n"])),(0,j.W0)(3),(0,j.W0)(3),(0,j.W0)(3),(0,j.W0)(3),function(e){return e.error?e.theme.colors.error.base:e.disabled?e.theme.colors.palette.greys.light:e.selected?e.theme.colors.palette.brand.base:e.theme.colors.palette.greys.grey}),P=j.zo.label(a||(a=(0,g.Z)(["\n display: flex;\n justify-content: center;\n width: fit-content;\n cursor: pointer;\n color: ",";\n ","\n"])),function(e){return e.disabled?e.theme.colors.palette.greys.light:e.theme.colors.palette.greys.dark},(0,x.xv)("bodyText","default")),E=j.zo.div(c||(c=(0,g.Z)(["\n box-sizing: border-box;\n padding: ",";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: center;\n width: ",";\n\n pointer-events: ",";\n\n border: 2px solid\n ",";\n\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n &:focus-within {\n border: 2px solid ",";\n }\n /* DO NOT GROUP WITH ABOVE BREAKS POLYFILL FOR MSOFT BROWSERS */\n &.focus-within {\n border: 2px solid ",";\n }\n\n margin-bottom: ",";\n"])),(0,j.W0)(1),function(e){return e.bordered?"100%":"fit-content"},function(e){return e.disabled?"none":""},function(e){return e.bordered?e.theme.colors.palette.greys.light:e.theme.colors.palette.greys.white},function(e){return e.theme.colors.palette.brand.lightest},function(e){return e.theme.colors.palette.brand.lighter},function(e){return e.theme.colors.palette.brand.base},function(e){return e.theme.colors.palette.brand.base},function(e){return e.bordered&&(0,j.W0)(2)}),S=j.zo.svg(i||(i=(0,g.Z)(["\n margin: auto;\n fill: ",";\n"])),function(e){return e.selected?e.disabled?e.theme.colors.palette.greys.light:e.theme.colors.palette.brand.base:"none"}),T=function(e){return(0,O.jsx)(S,{viewBox:"0 0 ".concat(e.height," ").concat(e.height),height:e.height,xmlns:"http://www.w3.org/2000/svg",selected:!!e.selected,disabled:!!e.disabled,children:(0,O.jsx)("circle",{cx:e.height/2,cy:e.height/2,r:e.height/2})})},Z=j.zo.span(s||(s=(0,g.Z)(["\n margin: ",";\n color: ",";\n"])),function(){return"auto ".concat((0,j.W0)(1)," auto ").concat((0,j.W0)(2))},function(e){return e.disabled?e.theme.colors.palette.greys.light:e.theme.colors.palette.greys.darker}),_=function(e){return e?"-".concat(e.toLowerCase().split(" ").join("-")):""},C=function(e){return(0,O.jsx)(E,{bordered:e.bordered,className:e.className,selected:e.radioGroupState===e.value,onClick:function(){return e.setGroupState&&e.setGroupState(e.value)},"data-testid":"radio-input-container".concat(_(e.label)),children:(0,O.jsxs)(P,{disabled:e.disabled,children:[(0,O.jsx)(w,{tabIndex:""!==e.radioGroupState&&e.radioGroupState!==e.value?-1:0,disabled:e.disabled,name:e.name,type:"radio",value:e.value,ref:e.focusref,checked:e.radioGroupState===e.value,onChange:function(){return e.setGroupState&&e.setGroupState(e.value)},"data-testid":"radio-input-hidden".concat(_(e.label)),"aria-describedby":e.ariaDescribedBy}),(0,O.jsx)(k,{selected:e.radioGroupState===e.value,disabled:e.disabled,error:e.error,children:(0,O.jsx)(T,{selected:e.radioGroupState===e.value,height:12,disabled:e.disabled})}),(0,O.jsx)(Z,{disabled:e.disabled,children:e.label})]})})},N=n(50556),D=n(93479),z=n(76817);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t\n ".concat(v,"\n "),g)})}),(0,O.jsx)(H,{children:(0,O.jsx)(R,F(F({columns:1,label:l.marketingPreferencesLabel,labelHidden:!0,required:!0,i18nText:s,bindref:n,defaultValue:c||p},i),{},{children:null==o?void 0:o.filter(function(e){return"KEEP_EXISTING_MARKETING_PREFERENCES"!==e}).map(function(e){return(0,O.jsx)(C,{label:l[e],name:r,value:e},e)})}))}),!a&&(0,O.jsx)(N.T,{content:(0,h.vsprintf)('%s %s %s %s %s',u)})]})}}}]);