1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1038],{11038:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var s=a(95155),r=a(95055),o=a(81334),i=a(43708),n=a.n(i),l=a(12115),d=a(11414),c=a(87177),m=a(28932),u=a(25663),p=a(81319),f=a(75828);let y=(0,f.createServerReference)("40d48a27eac408cba7a8062b9f3b441c40003338a9",f.callServer,void 0,f.findSourceMapURL,"postComment");var h=a(25861);let b=e=>{let{heading:t,content:a,onClose:i,isSubmitted:f,setIsSubmitted:b,isSubmitting:g,customTitle:x,setIsSubmitting:v,additionalData:w={},isModal:N=!1,onClickCancel:j,commentType:E,additionalFooterNode:k,placeholder:$="",translations:A,className:C=""}=e,D=(0,m.QE)(),O=(0,h.iV)(),I=O?.data?.user?.profileData?.firstName,B=O?.data?.user?.profileData?.lastName,z=I&&B?`${I} ${B}`:"",S={title:x||"",content:"",accountId:D?.accountId,meta:{submittedBy:{isAnonymous:!1,name:""}}},[F,_]=(0,l.useState)(n()(S,w));(0,l.useEffect)(()=>{_(n()(F,w))},[w]);let L=async()=>{v(!0);let e={className:"border border-border font-body-medium bg-white",position:"bottom-left",duration:3500};try{let t=await y(F);if(t){d.Ay.success((0,s.jsx)(s.Fragment,{children:t.message}),e),b(!0);let a={partnerId:F.meta.partnerReview?.partnerId,commentType:E};(0,u.BI)("CommentSubmitted",a)}else d.Ay.error((0,s.jsx)(s.Fragment,{children:t?.message}),e)}catch(t){d.Ay.error("Failed to submit comment",e)}v(!1)};return(0,s.jsxs)("div",{className:(0,c.c)("p-2 rounded border border-border shadow-card",C),children:[(t||a)&&(0,s.jsxs)("div",{className:"flex flex-col gap-y-1 pb-2",children:[t&&(0,s.jsx)("div",{className:(0,c.c)("font-body-medium text-lg text-heading",{"text-sm sm:text-md md:text-lg":N}),children:t}),a&&(0,s.jsx)("div",{className:(0,c.c)({"text-xs sm:text-sm md:text-md":N}),children:a})]}),(0,s.jsxs)("form",{className:"flex flex-col gap-2",onSubmit:e=>{e.preventDefault(),L()},children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("input",{type:"checkbox",id:"anonymous",name:"anonymous",disabled:g,className:"w-2 h-2",checked:F.meta.submittedBy.isAnonymous||!1,onChange:()=>{let e=!F.meta.submittedBy.isAnonymous;e?_({...F,meta:{...F.meta,submittedBy:{name:"",isAnonymous:e}}}):_({...F,meta:{...F.meta,submittedBy:{...F.meta.submittedBy,isAnonymous:e}}})}}),(0,s.jsx)("label",{htmlFor:"anonymous",className:(0,c.c)("ml-1 text-sm font-body-medium",{"text-xs sm:text-sm":N}),children:"Anonymous"})]}),!F.meta.submittedBy.isAnonymous&&(0,s.jsx)("input",{type:"text",name:"name",defaultValue:z,required:!F.meta.submittedBy.isAnonymous,placeholder:"Name",className:(0,c.c)("p-1 border border-border rounded",{"text-sm sm:text-md":N}),disabled:g,onChange:e=>{_({...F,meta:{...F.meta,submittedBy:{...F.meta.submittedBy,name:e.target.value}}})},maxLength:45}),(0,s.jsx)("textarea",{placeholder:$||"",className:(0,c.c)("w-full border border-border resize-none p-1 rounded h-[100px]",{"text-sm sm:text-md":N}),minLength:10,disabled:g,onChange:e=>{_({...F,content:e.target.value})},required:!0,maxLength:2500}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-end gap-2",children:[k&&k,i&&(0,s.jsx)(p.default,{color:"outline",className:(0,c.c)("shadow-none w-full sm:w-fit",{"hover:shadow-button":!g}),disabled:g,onClick:()=>{j&&j(),i()},children:A?.["common.cancel"]}),(0,s.jsx)(p.default,{color:"primary",className:(0,c.c)("shadow-none flex-none w-full sm:w-fit",{"hover:shadow-button":!g}),type:"submit",disabled:g,children:(0,s.jsxs)("div",{className:"relative h-full w-full",children:[(0,s.jsx)("span",{className:`${g?"opacity-0":"opacity-100"}`,children:A?.["common.submit"]}),g&&(0,s.jsx)("div",{className:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2",children:(0,s.jsx)(o.g,{icon:r.OtC,spin:!0})})]})})]})]})]})}},11414:(e,t,a)=>{a.d(t,{l$:()=>el,Ay:()=>ed,oR:()=>z});var s,r=a(12115);let o={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o,n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/| +/g,d=/\n+/g,c=(e,t)=>{let a="",s="",r="";for(let o in e){let i=e[o];"@"==o[0]?"i"==o[1]?a=o+" "+i+";":s+="f"==o[1]?c(i,o):o+"{"+c(i,"k"==o[1]?"":t)+"}":"object"==typeof i?s+=c(i,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=i&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=c.p?c.p(o,i):o+":"+i+";")}return a+(t&&r?t+"{"+r+"}":r)+s},m={},u=e=>{if("object"==typeof e){let t="";for(let a in e)t+=a+u(e[a]);return t}return e},p=(e,t,a,s,r)=>
1{let o=u(e),i=m[o]||(m[o]=(e=>{let t=0,a=11;for(;t<e.length;)a=101*a+e.charCodeAt(t++)>>>0;return"go"+a})(o));if(!m[i]){let t=o!==e?e:(e=>{let t,a,s=[{}];for(;t=n.exec(e.replace(l,""));)t[4]?s.shift():t[3]?(a=t[3].replace(d," ").trim(),s.unshift(s[0][a]=s[0][a]||{})):s[0][t[1]]=t[2].replace(d," ").trim();return s[0]})(e);m[i]=c(r?{["@keyframes "+i]:t}:t,a?"":"."+i)}let p=a&&m.g?m.g:null;return a&&(m.g=m[i]),((e,t,a,s)=>{s?t.data=t.data.replace(s,e):-1===t.data.indexOf(e)&&(t.data=a?e+t.data:t.data+e)})(m[i],t,s,p),i},f=(e,t,a)=>e.reduce((e,s,r)=>{let o=t[r];if(o&&o.call){let e=o(a),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+s+(null==o?"":o)},"");function y(e){let t=this||{},a=e.call?e(t.p):e;return p(a.unshift?a.raw?f(a,[].slice.call(arguments,1),t.p):a.reduce((e,a)=>Object.assign(e,a&&a.call?a(t.p):a),{}):a,i(t.target),t.g,t.o,t.k)}y.bind({g:1});let h,b,g,x=y.bind({k:1});function v(e,t){let a=this||{};return function(){let s=arguments;function r(o,i){let n=Object.assign({},o),l=n.className||r.className;a.p=Object.assign({theme:b&&b()},n),a.o=/ *go\d+/.test(l),n.className=y.apply(a,s)+(l?" "+l:""),t&&(n.ref=i);let d=e;return e[0]&&(d=n.as||e,delete n.as),g&&d[0]&&g(n),h(d,n)}return t?t(r):r}}var w=e=>"function"==typeof e,N=(e,t)=>w(e)?e(t):e,j=(()=>{let e=0;return()=>(++e).toString()})(),E=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),k=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:a}=t;return k(e,{type:e.toasts.find(e=>e.id===a.id)?1:0,toast:a});case 3:let{toastId:s}=t;return{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+r}))}}},$=[],A={toasts:[],pausedAt:void 0},C=e=>{A=k(A,e),$.forEach(e=>{e(A)})},D={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,a]=(0,r.useState)(A);(0,r.useEffect)(()=>($.push(a),()=>{let e=$.indexOf(a);e>-1&&$.splice(e,1)}),[t]);let s=t.toasts.map(t=>{var a,s,r;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(a=e[t.type])?void 0:a.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(s=e[t.type])?void 0:s.duration)||(null==e?void 0:e.duration)||D[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}});return{...t,toasts:s}},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",a=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(null==a?void 0:a.id)||j()}},B=e=>(t,a)=>{let s=I(t,e,a);return C({type:2,toast:s}),s.id},z=(e,t)=>B("blank")(e,t);z.error=B("error"),z.success=B("success"),z.loading=B("loading"),z.custom=B("custom"),z.dismiss=e=>{C({type:3,toastId:e})},z.remove=e=>C({type:4,toastId:e}),z.promise=(e,t,a)=>{let s=z.loading(t.loading,{...a,...null==a?void 0:a.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let r=t.success?N(t.success,e):void 0;return r?z.success(r,{id:s,...a,...null==a?void 0:a.success}):z.dismiss(s),e}).catch(e=>{let r=t.error?N(t.error,e):void 0;r?z.error(r,{id:s,...a,...null==a?void 0:a.error}):z.dismiss(s)}),e};var S=(e,t)=>{C({type:1,toast:{id:e,height:t}})},F=()=>{C({type:5,time:Date.now()})},_=new Map,L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(_.has(e))return;let a=setTimeout(()=>{_.delete(e),C({type:4,toastId:e})},t);_.set(e,a)},P=e=>{let{toasts:t,pausedAt:a}=O(e);(0,r.useEffect)(()=>{if(a)return;let e=Date.now(),s=t.map(t=>{if(t.duration===1/0)return;let a=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(a<0){t.visible&&z.dismiss(t.id);return}return setTimeout(()=>z.dismiss(t.id),a)});return()=>
1{s.forEach(e=>e&&clearTimeout(e))}},[t,a]);let s=(0,r.useCallback)(()=>{a&&C({type:6,time:Date.now()})},[a]),o=(0,r.useCallback)((e,a)=>{let{reverseOrder:s=!1,gutter:r=8,defaultPosition:o}=a||{},i=t.filter(t=>(t.position||o)===(e.position||o)&&t.height),n=i.findIndex(t=>t.id===e.id),l=i.filter((e,t)=>t<n&&e.visible).length;return i.filter(e=>e.visible).slice(...s?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+r,0)},[t]);return(0,r.useEffect)(()=>{t.forEach(e=>{if(e.dismissed)L(e.id,e.removeDelay);else{let t=_.get(e.id);t&&(clearTimeout(t),_.delete(e.id))}})},[t]),{toasts:t,handlers:{updateHeight:S,startPause:F,endPause:s,calculateOffset:o}}},M=x` 2from { 3 transform: scale(0) rotate(45deg); 4 opacity: 0; 5} 6to { 7 transform: scale(1) rotate(45deg); 8 opacity: 1; 9}`,T=x` 10from { 11 transform: scale(0); 12 opacity: 0; 13} 14to { 15 transform: scale(1); 16 opacity: 1; 17}`,H=x` 18from { 19 transform: scale(0) rotate(90deg); 20 opacity: 0; 21} 22to { 23 transform: scale(1) rotate(90deg); 24 opacity: 1; 25}`,R=v("div")` 26 width: 20px; 27 opacity: 0; 28 height: 20px; 29 border-radius: 10px; 30 background: ${e=>e.primary||"#ff4b4b"}; 31 position: relative; 32 transform: rotate(45deg); 33 34 animation: ${M} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 35 forwards; 36 animation-delay: 100ms; 37 38 &:after, 39 &:before { 40 content: ''; 41 animation: ${T} 0.15s ease-out forwards; 42 animation-delay: 150ms; 43 position: absolute; 44 border-radius: 3px; 45 opacity: 0; 46 background: ${e=>e.secondary||"#fff"}; 47 bottom: 9px; 48 left: 4px; 49 height: 2px; 50 width: 12px; 51 } 52 53 &:before { 54 animation: ${H} 0.15s ease-out forwards; 55 animation-delay: 180ms; 56 transform: rotate(90deg); 57 } 58`,q=x` 59 from { 60 transform: rotate(0deg); 61 } 62 to { 63 transform: rotate(360deg); 64 } 65`,U=v("div")` 66 width: 12px; 67 height: 12px; 68 box-sizing: border-box; 69 border: 2px solid; 70 border-radius: 100%; 71 border-color: ${e=>e.secondary||"#e0e0e0"}; 72 border-right-color: ${e=>e.primary||"#616161"}; 73 animation: ${q} 1s linear infinite; 74`,V=x` 75from { 76 transform: scale(0) rotate(45deg); 77 opacity: 0; 78} 79to { 80 transform: scale(1) rotate(45deg); 81 opacity: 1; 82}`,Q=x` 830% { 84 height: 0; 85 width: 0; 86 opacity: 0; 87} 8840% { 89 height: 0; 90 width: 6px; 91 opacity: 1; 92} 93100% { 94 opacity: 1; 95 height: 10px; 96}`,Y=v("div")` 97 width: 20px; 98 opacity: 0; 99 height: 20px; 100 border-radius: 10px; 101 background: ${e=>e.primary||"#61d345"}; 102 position: relative; 103 transform: rotate(45deg); 104 105 animation: ${V} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 106 forwards; 107 animation-delay: 100ms; 108 &:after { 109 content: ''; 110 box-sizing: border-box; 111 animation: ${Q} 0.2s ease-out forwards; 112 opacity: 0; 113 animation-delay: 200ms; 114 position: absolute; 115 border-right: 2px solid; 116 border-bottom: 2px solid; 117 border-color: ${e=>e.secondary||"#fff"}; 118 bottom: 6px; 119 left: 6px; 120 height: 10px; 121 width: 6px; 122 } 123`,Z=v("div")` 124 position: absolute; 125`,G=v("div")` 126 position: relative; 127 display: flex; 128 justify-content: center; 129 align-items: center; 130 min-width: 20px; 131 min-height: 20px; 132`,J=x` 133from { 134 transform: scale(0.6); 135 opacity: 0.4; 136} 137to { 138 transform: scale(1); 139 opacity: 1; 140}`,K=v("div")` 141 position: relative; 142 transform: scale(0.6); 143 opacity: 0.4; 144 min-width: 20px; 145 animation: ${J} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 146 forwards; 147`,W=e=>{let{toast:t}=e,{icon:a,type:s,iconTheme:o}=t;return void 0!==a?"string"==typeof a?r.createElement(K,null,a):a:"blank"===s?null:r.createElement(G,null,r.createElement(U,{...o}),"loading"!==s&&r.createElement(Z,null,"error"===s?r.createElement(R,{...o}):r.createElement(Y,{...o})))},X=e=>` 1480% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 149100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 150`,ee=e=>` 1510% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 152100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} 153`,et=v("div")` 154 display: flex; 155 align-items: center; 156 background: #fff; 157 color: #363636; 158 line-height: 1.3; 159 will-change: transform; 160 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 161 max-width: 350px; 162 pointer-events: auto; 163 padding: 8px 10px; 164 border-radius: 8px; 165`,ea=v("div")` 166 display: flex; 167 justify-content: center; 168 margin: 4px 10px; 169 color: inherit; 170 flex: 1 1 auto; 171 white-space: pre-line; 172`,es=(e,t)=>{let a=e.includes("top")?1:-1,[s,r]=E()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[X(a),ee(a)];return{animation:t?`${x(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},er=r.memo(e=>{let{toast:t,position:a,style:s,children:o}=e,i=t.height?es(t.position||a||"top-center",t.visible):{opacity:0}
172,n=r.createElement(W,{toast:t}),l=r.createElement(ea,{...t.ariaProps},N(t.message,t));return r.createElement(et,{className:t.className,style:{...i,...s,...t.style}},"function"==typeof o?o({icon:n,message:l}):r.createElement(r.Fragment,null,n,l))});s=r.createElement,c.p=void 0,h=s,b=void 0,g=void 0;var eo=e=>{let{id:t,className:a,style:s,onHeightUpdate:o,children:i}=e,n=r.useCallback(e=>{if(e){let a=()=>{o(t,e.getBoundingClientRect().height)};a(),new MutationObserver(a).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,o]);return r.createElement("div",{ref:n,className:a,style:s},i)},ei=(e,t)=>{let a=e.includes("top"),s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:E()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...a?{top:0}:{bottom:0},...s}},en=y` 173 z-index: 9999; 174 > * { 175 pointer-events: auto; 176 } 177`,el=e=>{let{reverseOrder:t,position:a="top-center",toastOptions:s,gutter:o,children:i,containerStyle:n,containerClassName:l}=e,{toasts:d,handlers:c}=P(s);return r.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...n},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},d.map(e=>{let s=e.position||a,n=ei(s,c.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:a}));return r.createElement(eo,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?en:"",style:n},"custom"===e.type?N(e.message,e):i?i(e):r.createElement(er,{toast:e,position:s}))}))},ed=z}}]);
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.