1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808],{24808:function(e,t,r){"use strict";r.r(t),r.d(t,{FeedbackCardFeature:function(){return eM}});var n,c,a,i,l,s,o,d,h,f,u,p,k,x,b,g,_,m,v,y,C,E,w,j,O,F,N,M,R,I,P,A,D,S,B,T,W,L,z,G,X,U,V=r(85893),q=r(94184),Z=r.n(q),K=r(26680),Q=r(94894),Y=r(18045),H=r(67294);function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var $=function(e){return H.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),n||(n=H.createElement("circle",{cx:16,cy:16,r:15,stroke:"#14143C",strokeWidth:2})),c||(c=H.createElement("path",{stroke:"#1D1B3A",strokeMiterlimit:10,strokeWidth:1.24,d:"M6.504 23.305C8.069 19.607 11.824 17 16.32 17s8.147 2.499 9.712 6.206"})),a||(a=H.createElement("circle",{cx:12.187,cy:10.684,r:1.187,fill:"#14143C"})),i||(i=H.createElement("circle",{cx:19.308,cy:10.684,r:1.187,fill:"#14143C"})))};function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var et=function(e){return H.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),l||(l=H.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#14143C",stroke:"#fff"})),s||(s=H.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:1.24,d:"M6.504 23.305C8.069 19.607 11.824 17 16.32 17s8.147 2.499 9.712 6.206"})),o||(o=H.createElement("circle",{cx:12.187,cy:10.684,r:1.187,fill:"#fff"})),d||(d=H.createElement("circle",{cx:19.308,cy:10.684,r:1.187,fill:"#fff"})))};function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var en=function(e){return H.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),h||(h=H.createElement("circle",{cx:16,cy:16,r:15,stroke:"#14143C",strokeWidth:2})),f||(f=H.createElement("path",{stroke:"#1D1B3A",strokeMiterlimit:10,strokeWidth:1.24,d:"M26.976 15.9c0 5.906-5.007 10.803-11.277 10.803S4.422 21.906 4.422 15.9"})),u||(u=H.createElement("circle",{cx:11.918,cy:10.684,r:1.187,fill:"#14143C"})),p||(p=H.createElement("circle",{cx:19.039,cy:10.684,r:1.187,fill:"#14143C"})))};function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var ea=function(e){return H.createElement("svg",ec({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),k||(k=H.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#14143C",stroke:"#fff"})),x||(x=H.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:1.24,d:"M26.976 15.9c0 5.906-5.007 10.803-11.277 10.803S4.422 21.906 4.422 15.9"})),b||(b=H.createElement("circle",{cx:11.918,cy:10.684,r:1.187,fill:"#fff"})),g||(g=H.createElement("circle",{cx:19.039,cy:10.684,r:1.187,fill:"#fff"})))};function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var el=function(e){return H.createElement("svg",ei({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),_||(_=H.createElement("circle",{cx:16,cy:16,r:15,stroke:"#14143C",strokeWidth:2})),m||(m=H.createElement("path",{stroke:"#1D1B3A",strokeMiterlimit:10,strokeWidth:1.24,d:"M9.133 21.806h12.529"})),v||(v=H.createElement("circle",{cx:12.058,cy:10.684,r:1.187,fill:"#14143C"})),y||(y=H.createElement("circle",{cx:19.179,cy:10.684,r:1.187,fill:"#14143C"})))};function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eo=function(e){return H.createElement("svg",es({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),C||(C=H.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#14143C",stroke:"#fff"})),E||(E=H.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:1.24,d:"M9.133 21.806h12.529"})),w||(w=H.createElement("circle",{cx:12.058,cy:10.684,r:1.187,fill:"#fff"})),j||(j=H.createElement("circle",{cx:19.179,cy:10.684,r:1.187,fill:"#fff"})))};function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eh=function(e){return H.createElement("svg",ed({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),O||(O=H.createElement("circle",{cx:16,cy:16,r:15,stroke:"#14143C",strokeWidth:2})),F||(F=H.createElement("path",{stroke:"#1D1B3A",strokeMiterlimit:10,strokeWidth:1.24,d:"M8 23.805c1.356-3.198 4.59-5.497 8.46-5.497s7 2.199 8.357 5.297l-16.807.2zM12.809 19.108v4.697M16.46 18.708v5.097M19.898 19.108v4.697"})),N||(N=H.createElement("path",{stroke:"#14143C",d:"m13 6 3 3 3-3"})),M||(M=H.createElement("circle",{cx:12.187,cy:10.684,r:1.187,fill:"#14143C"})),R||(R=H.createElement("circle",{cx:19.308,cy:10.684,r:1.187,fill:"#14143C"})))};function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eu=function(e){return H.createElement("svg",ef({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),I||(I=H.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#14143C",stroke:"#fff"})),P||(P=H.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:1.24,d:"M8 23.805c1.356-3.198 4.59-5.497 8.46-5.497s7 2.199 8.357 5.297l-16.807.2zM12.809 19.108v4.697M16.46 18.708v5.097M19.898 19.108v4.697"})),A||(A=H.createElement("path",{stroke:"#fff",d:"m13 6 3 3 3-3"})),D||(D=H.createElement("circle",{cx:12.187,cy:10.684,r:1.187,fill:"#fff"})),S||(S=H.createElement("circle",{cx:19.308,cy:10.684,r:1.187,fill:"#fff"})))};function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var ek=function(e){return H.createElement("svg",ep({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),B||(B=H.createElement("circle",{cx:16,cy:16,r:15,stroke:"#14143C",strokeWidth:2})),T||(T=H.createElement("path",{stroke:"#1D1B3A",strokeMiterlimit:10,strokeWidth:1.24,d:"M26.978 15.8c0 6.006-5.008 10.803-11.278 10.803S4.527 21.806 4.527 15.8z"})),W||(W=H.createElement("circle",{cx:12.132,cy:10.684,r:1.187,fill:"#14143C"})),L||(L=H.createElement("circle",{cx:19.253,cy:10.684,r:1.187,fill:"#14143C"})))};function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eb=function(e){return H.createElement("svg",ex({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),z||(z=H.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#14143C",stroke:"#fff"})),G||(G=H.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:1.24,d:"M26.978 15.8c0 6.006-5.008 10.803-11.278 10.803S4.527 21.806 4.527 15.8z"})),X||(X=H.createElement("circle",{cx:12.132,cy:10.684,r:1.187,fill:"#fff"})),U||(U=H.createElement("circle",{cx:19.253,cy:10.684,r:1.187,fill:"#fff"})))},eg=r(41117),e_=r.n(eg);let em={RATING:"RATING",ADD_OPINION:"ADD_OPINION",REMOVE_OPINION:"REMOVE_OPINION",CLEAR_OPINIONS:"CLEAR_OPINIONS",SUBMITTED:"SUBMITTED"},ev=(e,t)=>{switch(t.type){case em.RATING:return{...e,rating:t.payload};case em.ADD_OPINION:return{...e,opinion:e.opinion?[...e.opinion,t.payload]:[t.payload]};case em.REMOVE_OPINION:return{...e,opinion:e.opinion.filter(e=>e!==t.payload)};case em.CLEAR_OPINIONS:return{...e,opinion:t.payload};case em.SUBMITTED:return{...e,submitted:t.payload};default:return e}};var ey=r(71213),eC=r.n(ey);let eE=e=>{let{ratingOption:t,className:r,dispatch:n,selected:c,iconLight:a,iconDark:i}=e,[l,s]=(0,H.useState)(!1);return(0,V.jsxs)("div",{className:Z()(eC().FeedbackRating,r),children:[(0,V.jsx)("div",{className:eC().FeedbackRating_wrapper,children:(0,V.jsx)("button",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),className:Z()(eC().FeedbackRating_icon),onClick:()=>n({type:em.RATING,payload:t.type}),children:c||l?i:a})}),(0,V.jsx)("div",{className:eC().FeedbackRating_description,children:c&&(0,V.jsx)(Y.n,{className:eC().FeedbackRating_text,text:t.text})})]})};var ew=r(82988),ej=r(86796),eO=r.n(ej);let eF=e=>{let{className:t,option:r,dispatch:n}=e,c=(e,t)=>{e.target.checked&&n({type:em.ADD_OPINION,payload:t}),e.target.checked||n({type:em.REMOVE_OPINION,payload:t})};return(0,V.jsxs)(V.Fragment,{children:[r.heading&&(0,V.jsx)(Q.X,{headingLevel:"h4",style:"sm",children:r.heading}),r.manchet&&(0,V.jsx)(Y.n,{text:r.manchet}),(0,V.jsx)("ul",{className:Z()(eO().FeedbackResponse,t),children:r.responseTypes.map((e,t)=>(0,V.jsx)("li",{children:(0,V.jsx)(ew.X,{onChange:t=>c(t,e),id:"".concat(t),label:e})},t))})]})},eN=e=>{var t;let{className:r,heading:n,manchet:c,feedbackOptions:a,submitButtonText:i,afterSubmitMessage:l}=e,[s,o]=(t={},(0,H.useReducer)(ev,t)),d=s.rating,h=s.submitted,f=d?a.find(e=>e.type===d):null,u=()=>{o({type:em.SUBMITTED,payload:!0})},p=e=>{switch(e){case"veryBad":return(0,V.jsx)(eh,{});case"bad":return(0,V.jsx)($,{});case"neutral":return(0,V.jsx)(el,{});case"good":return(0,V.jsx)(en,{});case"veryGood":return(0,V.jsx)(ek,{})}},k=e=>{switch(e){case"veryBad":return(0,V.jsx)(eu,{});case"bad":return(0,V.jsx)(et,{});case"neutral":return(0,V.jsx)(eo,{});case"good":return(0,V.jsx)(ea,{});case"veryGood":return(0,V.jsx)(eb,{})}};return(0,H.useEffect)(()=>{s.rating&&o({type:em.CLEAR_OPINIONS,payload:[]})},[o,s.rating]),(0,V.jsxs)("section",{className:Z()(e_().FeedbackCard,r),children:[n&&(0,V.jsx)("div",{className:e_().FeedbackCard_heading,children:(0,V.jsx)(Q.X,{headingLevel:"h2",style:"lg",children:n})}),c&&(0,V.jsx)("div",{className:e_().FeedbackCard_manchet,children:(0,V.jsx)(Y.n,{text:c})}),!h&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("div",{className:e_().FeedbackCard_rating,children:a.map((e,t)=>(0,V.jsx)(eE,{dispatch:o,ratingOption:e,iconLight:p(e.type),iconDark:k(e.type),selected:d===e.type},t))}),(0,V.jsx)("div",{children:d&&f&&(0,V.jsx)(eF,{dispatch:o,option:f})}),(0,V.jsx)("div",{children:d&&(0,V.jsx)(K.zx,{onClick:()=>u(),buttonStyle:"primary-dark",buttonSize:"big",type:"button",children:i})})]}),h&&(0,V.jsx)(Q.X,{headingLevel:"h2",style:"xl",children:l})]})},eM=e=>{var t;let{content:r}=e,{heading:n,manchet:c,feedbackOptions:a,submitButtonText:i,afterSubmitMessage:l}=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{};return(0,V.jsx)(eN,{heading:n,manchet:c,feedbackOptions:null==a?void 0:a.map(e=>{let{content:t}=e;return t.properties}),submitButtonText:i,afterSubmitMessage:l})}},82988:function(e,t,r){"use strict";r.d(t,{X:function(){return f}});var n=r(85893),c=r(94184),a=r.n(c),i=r(11319),l=r(67294),s=r(23082),o=r(94594),d=r
1(54834),h=r.n(d);let f=e=>{let{className:t,id:r,label:c,checked:d,inline:f,name:u,value:p,formRegister:k,disabled:x,hasError:b,helpText:g,helpCtaAriaLabel:_,...m}=e,[v,y]=(0,l.useState)(!1);return(0,n.jsxs)("div",{className:a()(t,h().Checkbox,{[h().Checkbox___inline]:f},{[h().Checkbox___hasError]:b},{[h().Checkbox___disabled]:x}),children:[(0,n.jsx)("input",{type:"checkbox",className:h().Checkbox_input,id:r,disabled:x,defaultChecked:d,value:p,name:u,...k&&{...k.register(k.fieldName,k.options)},...m}),(0,n.jsxs)("label",{className:h().Checkbox_label,htmlFor:r,children:[c,g&&(0,n.jsx)(s.M,{describedById:r+"-help",helpText:g,onClick:()=>{y(!0)},ariaLabel:_,margined:!0})]}),g&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.u,{show:v,onClose:()=>y(!1),"aria-hidden":!v,children:(0,n.jsx)(o.H,{content:g})})})]})}},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"}},41117:function(e){e.exports={FeedbackCard:"FeedbackCard_FeedbackCard__hYcwN",FeedbackCard_heading:"FeedbackCard_FeedbackCard_heading__B4YP_",FeedbackCard_manchet:"FeedbackCard_FeedbackCard_manchet__bjpk8",FeedbackCard_rating:"FeedbackCard_FeedbackCard_rating__Qm7xz"}},71213:function(e){e.exports={FeedbackRating:"FeedbackRating_FeedbackRating__AhqZX",FeedbackRating_wrapper:"FeedbackRating_FeedbackRating_wrapper__zhxt6",FeedbackRating_icon:"FeedbackRating_FeedbackRating_icon__0hs3K",FeedbackRating_description:"FeedbackRating_FeedbackRating_description__ZApBU",FeedbackRating_text:"FeedbackRating_FeedbackRating_text__ZaK7r"}},86796:function(e){e.exports={FeedbackResponse:"FeedbackResponse_FeedbackResponse__XTXeU"}}}]);
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.