1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3705],{82988:function(e,a,t){"use strict";t.d(a,{X:function(){return u}});var i=t(85893),n=t(94184),l=t.n(n),r=t(11319),o=t(67294),_=t(23082),d=t(94594),s=t(54834),p=t.n(s);let u=e=>{let{className:a,id:t,label:n,checked:s,inline:u,name:c,value:b,formRegister:h,disabled:x,hasError:m,helpText:g,helpCtaAriaLabel:C,...L}=e,[B,R]=(0,o.useState)(!1);return(0,i.jsxs)("div",{className:l()(a,p().Checkbox,{[p().Checkbox___inline]:u},{[p().Checkbox___hasError]:m},{[p().Checkbox___disabled]:x}),children:[(0,i.jsx)("input",{type:"checkbox",className:p().Checkbox_input,id:t,disabled:x,defaultChecked:s,value:b,name:c,...h&&{...h.register(h.fieldName,h.options)},...L}),(0,i.jsxs)("label",{className:p().Checkbox_label,htmlFor:t,children:[n,g&&(0,i.jsx)(_.M,{describedById:t+"-help",helpText:g,onClick:()=>{R(!0)},ariaLabel:C,margined:!0})]}),g&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{show:B,onClose:()=>R(!1),"aria-hidden":!B,children:(0,i.jsx)(d.H,{content:g})})})]})}},35334:function(e,a,t){"use strict";t.d(a,{E:function(){return u}});var i=t(85893),n=t(94184),l=t.n(n),r=t(11319),o=t(67294),_=t(23082),d=t(94594),s=t(37074),p=t.n(s);let u=e=>{let{className:a,id:t,name:n,value:s,label:u,helpText:c,helpCtaAriaLabel:b,inline:h=!1,formRegister:x,onChange:m,disabled:g,hasError:C,...L}=e,[B,R]=(0,o.useState)(!1);return(0,i.jsxs)("div",{className:l()(a,p().RadioButton,{[p().RadioButton___inline]:h},{[p().RadioButton___hasError]:C},{[p().RadioButton___disabled]:g}),children:[(0,i.jsx)("input",{type:"radio",id:t,name:n,value:s,className:p().RadioButton_input,disabled:g,onChange:m,...L,...x&&{...x.register(x.fieldName,x.options)}}),(0,i.jsxs)("label",{className:p().RadioButton_label,htmlFor:t,children:[u,c&&(0,i.jsx)(_.M,{describedById:t+"-help",helpText:c,onClick:()=>{R(!0)},ariaLabel:b,margined:!0})]}),c&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{show:B,onClose:()=>R(!1),"aria-hidden":!B,children:(0,i.jsx)(d.H,{content:c})})})]})}},75868:function(e,a,t){"use strict";t.d(a,{m:function(){return _}});var i=t(85893),n=t(94184),l=t.n(n),r=t(58337),o=t.n(r);let _=e=>{let{className:a,label:t,labelCentered:n,justifyContentUnset:r,field:_,formFieldSize:d}=e;return(0,i.jsxs)("div",{className:l()(o().FormSpacingWrapper,o()["FormSpacingWrapper___".concat(d,"Field")],r&&o().FormSpacingWrapper___justifyContentUnset,a),children:[t&&(0,i.jsx)("div",{className:l()(o().FormSpacingWrapper_label,n&&o().FormSpacingWrapper_label___labelCentered),children:t}),_&&(0,i.jsxs)("div",{className:l()(o().FormSpacingWrapper_field),children:[_,"largeXsmall"===d&&(0,i.jsx)("div",{})]})]})}},81186:function(e,a,t){"use strict";t.d(a,{_:function(){return o}});var i=t(85893),n=t(23082),l=t(36993),r=t.n(l);let o=e=>{let{forId:a,text:t,required:l=!1,helpCtaAriaLabel:o,helpText:_,helpTextHeader:d,setModalVisiblityCallback:s,onClickCallback:p}=e;return(0,i.jsxs)("label",{className:r().InputLabel_label,htmlFor:a,"aria-describedby":a+"-help",children:[t,l&&(0,i.jsx)("span",{"aria-hidden":"true",children:"*"}),_&&(0,i.jsx)(n.M,{describedById:a+"-help",helpText:_,onClick:()=>{s(!0),p&&p()},ariaLabel:o||d})]})}},93819:function(e,a,t){"use strict";t.d(a,{A:function(){return b}});var i=t(85893),n=t(94184),l=t.n(n),r=t(94594),o=t(11319),_=t(67294),d=t(36993),s=t.n(d),p=t(81186),u=t(23082);let c=e=>{let{forId:a,text:t,required:n=!1,helpCtaAriaLabel:l,helpText:r,helpTextHeader:o,setModalVisiblityCallback:_,onClickCallback:d}=e;return(0,i.jsxs)("legend",{className:s().InputLabel_label,"aria-describedby":a+"-help",children:[t,n&&(0,i.jsx)("span",{"aria-hidden":"true",children:"*"}),r&&(0,i.jsx)(u.M,{describedById:a+"-help",helpText:r,onClick:()=>{_(!0),d&&d()},ariaLabel:l||o})]})},b=e=>{let{className:a,forId:t,text:n,required:d=!1,helpCtaAriaLabel:u,helpText:b,helpTextHeader:h,onClickCallback:x,labelSubtext:m,isLegend:g=!1}=e,[C,L]=(0,_.useState)(!1),B={forId:t,text:n,required:d,helpText:b,helpTextHeader:h,helpCtaAriaLabel:u,setModalVisiblityCallback:L,onClickCallback:x};return(0,i.jsxs)("div",{className:l()(s().InputLabel,a),children:[(0,i.jsxs)("div",{className:s().InputLabel_wrapper,children:[g?(0,i.jsx)(c,{...B}):(0,i.jsx)(p._,{...B}),m&&(0,i.jsx)("p",{className:s().InputLabel_labelSubtext,children:m})]}),b&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.u,{header:h,show:C,onClose:()=>L(!1),"aria-hidden":!C,children:(0,i.jsx)(r.H,{className:s().InputLabel_helpTextContent,content:b})})})]})}},13705:function(e,a,t){"use strict";t.d(a,{sf:function(){return p},AZ:function(){return _.A},xO:function(){return m}});var i=t(85893),n=t(82988),l=t(9133),r=t(67294),o=t(75868),_=t(93819),d=t(1513),s=t.n(d);let p=e=>{let{errorMessage:a,question:t,questionSubText:d,name:p,optionsGroupLabel:u,options:c,helpTextHeader:b,helpText:h,choosenOptions:x,register:m,state:g,formFieldSize:C,modalTrackingCallback:L}=e,{required:B,disabled:R,hasError:k}=null!=g?g:{},[F,f]=(0,r.useState)(c);return(0,r.useEffect)(()=>{x&&x(F)},[x,F]),(0,i.jsx)("fieldset",{className:s().CheckboxList,...m&&{...m(p,{required:B})},children:(0,i.jsx)(o.m,{formFieldSize:C,label:(0,i.jsx)(_.A,{forId:p,text:t,labelSubtext:d,required:B,helpText:h,helpTextHeader:b,helpCtaAriaLabel:b,isLegend:!0,onClickCallback:L}),field:(0,i.jsxs)("div",{className:s().CheckboxList_wrapper,children:[(0,i.jsx)("div",{role:"group","aria-label":u,onCh
1ange:e=>{var a,t,i;let{answer:n}=null!==(i=null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.dataset)&&void 0!==i?i:{},l=null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.checked;f(null==F?void 0:F.map(e=>(e.label===n&&(e.checked=l),e)))},children:null==c?void 0:c.map((e,a)=>(0,i.jsx)(n.X,{id:e.label.replaceAll(" ","")+a+p,"data-answer":e.label,name:p,value:e.value,label:e.label,defaultChecked:e.checked,"aria-describedby":(null==g?void 0:g.hasError)?p:null,formRegister:m&&{register:m,fieldName:p,options:{required:B}},required:B,disabled:R,hasError:k},a))}),k&&(0,i.jsx)(l.B,{id:p,children:a})]})})})};var u=t(94184),c=t.n(u),b=t(35334),h=t(73957),x=t.n(h);let m=e=>{let{noMargin:a,errorMessage:t,question:n,questionSubtext:r,name:d,optionsGroupLabel:s,options:p,helpTextHeader:u,helpText:h,choosenOption:m,register:g,state:C,inline:L,formFieldSize:B,style:R,modalTrackingCallback:k,stateControlled:F=!1}=e,{disabled:f,required:j,hasError:S}=null!=C?C:{};return(0,i.jsx)("fieldset",{className:c()(x().RadioButtonList,a&&x().RadioButtonList___noMargin,x()["RadioButtonList___".concat(R)]),children:(0,i.jsx)(o.m,{className:x().RadioButtonList_wrapper,formFieldSize:B,label:n&&(0,i.jsx)(_.A,{className:x().RadioButtonList_question,forId:d,text:n,labelSubtext:r,required:j,helpText:h,helpTextHeader:u,helpCtaAriaLabel:u,isLegend:!0,onClickCallback:k}),field:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{role:"group","aria-label":s,onChange:e=>{var a;let t=null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.dataset.answer,i=null==p?void 0:p.find(e=>e.label===t);m&&m(i)},className:x().RadioButtonList_group,children:null==p?void 0:p.map((e,a)=>(0,i.jsx)(b.E,{id:e.label.replaceAll(" ","")+a+d,"data-answer":e.label,name:d,label:e.label,value:e.value,...F&&{checked:e.checked},"aria-describedby":(null==C?void 0:C.hasError)?d:null,inline:void 0===L?(null==p?void 0:p.length)<=2:L,disabled:f,hasError:S,formRegister:g&&{register:g,fieldName:d,options:{required:j}},onClick:e.onClick},a))}),S&&(0,i.jsx)(l.B,{id:d,children:t})]})})})}},54834:function(e){e.exports={Checkbox:"Checkbox_Checkbox__pfFDO",Checkbox___inline:"Checkbox_Checkbox___inline__39WQ9",Checkbox_input:"Checkbox_Checkbox_input__F0n_E",Checkbox_label:"Checkbox_Checkbox_label__xudua",Checkbox___hasError:"Checkbox_Checkbox___hasError__pmG9r",Checkbox___disabled:"Checkbox_Checkbox___disabled__fqqGc"}},37074:function(e){e.exports={RadioButton:"RadioButton_RadioButton__WlEtJ",RadioButton___inline:"RadioButton_RadioButton___inline__zC80C",RadioButton_input:"RadioButton_RadioButton_input__HlObU",RadioButton_label:"RadioButton_RadioButton_label___Rd6W",RadioButton___hasError:"RadioButton_RadioButton___hasError__zcMP_",RadioButton___disabled:"RadioButton_RadioButton___disabled___gHVV"}},1513:function(e){e.exports={CheckboxList:"CheckboxList_CheckboxList__SRdBS"}},58337:function(e){e.exports={FormSpacingWrapper:"FormSpacingWrapper_FormSpacingWrapper__hN_Ld",FormSpacingWrapper___justifyContentUnset:"FormSpacingWrapper_FormSpacingWrapper___justifyContentUnset__JIPpc",FormSpacingWrapper___newLineField:"FormSpacingWrapper_FormSpacingWrapper___newLineField__bC7nE",FormSpacingWrapper___largeField:"FormSpacingWrapper_FormSpacingWrapper___largeField__U3QYT",FormSpacingWrapper_label:"FormSpacingWrapper_FormSpacingWrapper_label__C3Bhv",FormSpacingWrapper___smallField:"FormSpacingWrapper_FormSpacingWrapper___smallField___ZVGa",FormSpacingWrapper___largeXsmallField:"FormSpacingWrapper_FormSpacingWrapper___largeXsmallField__uiaTq",FormSpacingWrapper_label___labelCentered:"FormSpacingWrapper_FormSpacingWrapper_label___labelCentered__9bxhC",FormSpacingWrapper_field:"FormSpacingWrapper_FormSpacingWrapper_field__LTwbD"}},36993:function(e){e.exports={InputLabel:"InputLabel_InputLabel__RwOwW",InputLabel_wrapper:"InputLabel_InputLabel_wrapper__FJPP5",InputLabel_label:"InputLabel_InputLabel_label__ao4ja",InputLabel_labelSubtext:"InputLabel_InputLabel_labelSubtext__Cxe0f",InputLabel_helpTextContent:"InputLabel_InputLabel_helpTextContent__ueWWt"}},73957:function(e){e.exports={RadioButtonList:"RadioButtonList_RadioButtonList__vfKqX",RadioButtonList___noMargin:"RadioButtonList_RadioButtonList___noMargin__AFrzO",RadioButtonList___blocked:"RadioButtonList_RadioButtonList___blocked__euZAg",RadioButtonList_wrapper:"RadioButtonList_RadioButtonList_wrapper__dc_06",RadioButtonList_group:"RadioButtonList_RadioButtonList_group__4wpCx",RadioButtonList_question:"RadioButtonList_RadioButtonList_question___XPys",RadioButtonList_questionSubtext:"RadioButtonList_RadioButtonList_questionSubtext__dZbdp"}}}]); 2//# sourceMappingURL=3705.4a9dae34a8b9e160.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.