1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["public-containers-UserAccountManagementPage-UserAccountManagementPage"],{26730(e,t,r){r.d(t,{A:()=>PromisifiedButton});var s=r(85906),n=r(19738),i=r(45919),o=r(12732);r(74954);var l=r(49075),c=r(12960),a=r(26084),u=r(14202);const d="Error! Try again",h="Done!";function PromisifiedButton(e){const{onClick:t,onSuccess:r,onError:m,reactToError:v,reactToSuccess:f,errorLabel:p=d,successLabel:y=h,isReadOnly:g,showSuccessMessageForMs:A=3e3,...x}=e,{callback:S,isLoading:b,error:k,response:w}=function(e){const[t,r]=(0,s.useState)({isLoading:!1,error:null}),n=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(n.current=!0,()=>{n.current=!1})),{...t,callback:async(...t)=>{try{const i=e(...t);if((s=i)&&"function"==typeof s.then){r({isLoading:!0});const e=await i;return n.current&&r({response:e,isLoading:!1}),e}return console.error(`useAsyncCallback(fn, ...args): fn did not return a promise. fn: ${e.toString()}`),i}catch(e){throw n.current&&r({isLoading:!1,error:e}),e}var s}}}(t),{showNotification:R}=(0,a.A)(),[q,j]=(0,s.useState)(!1),N=k&&!(k instanceof n.AL)&&!(k instanceof l.A);return(0,s.useEffect)(()=>{void 0!==w&&(f&&j(!0),r&&r(w))},[w]),(0,s.useEffect)(()=>{let e;return q&&(e=window.setTimeout(()=>{j(!1)},A)),()=>{e&&clearTimeout(e)}},[q]),(0,s.useEffect)(()=>{N&&(m?m(k):v&&R({message:(0,u.jsx)(o.A,{error:k}),level:c.S.ERROR}))},[k]),(0,u.jsx)(i.A.Button,{...x,onClick:g?void 0:S,buttonStyle:N&&v?"danger":x.buttonStyle,isDisabled:x.isDisabled||b,isLoading:b,children:q?y:N&&v?p:x.children})}},58646(e,t,r){r.d(t,{A:()=>Form});var s=r(85906),n=r(6718),i=r(19363),o=r(14202);function Form(e){const{autocomplete:t=!0,noValidate:r=!0,...l}=e,c=(0,s.useContext)(n.A);return(0,o.jsx)(i.h,{element:"form",autoComplete:t?"on":"off",method:"POST",noValidate:r,id:c?.control?.name,...l})}},69694(e,t,r){r.d(t,{A:()=>Textarea});var s=r(79400),n=r.n(s),i=r(19363),o=r(85906),l=r(42673),c=r(14202);function TextareaAutosize(e){const{autoFocus:t,...r}=e,s=(0,o.useRef)(null),n=(0,o.useRef)(void 0),i=(0,o.useRef)(null),a=e.value??e.defaultValue;return(0,o.useEffect)(()=>{const e=s.current;if(!e)return;const t=null==a?"":String(a),r=n.current,o=void 0===r||t.length<r.length;return n.current=t,null!=i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{i.current=null,function(e,{shrink:t}){if(e.scrollHeight)t?(e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`):e.scrollHeight>e.clientHeight&&(e.style.height=`${e.scrollHeight+2}px`)}(e,{shrink:o})}),()=>{null!=i.current&&(cancelAnimationFrame(i.current),i.current=null)}},[a]),(0,o.useEffect)(()=>{t&&setTimeout(()=>{s.current?.focus(),s.current?.setSelectionRange(s.current.value.length,s.current.value.length)},1)},[]),(0,c.jsx)("textarea",{...(0,l.A)({ref:s},r)})}const a={small:"sm",large:"lg",xlarge:"xl"};function u(e){return`calc(0.75em + ${1.5*e}em + 2px)`}function Textarea(e){const{value:t,size:r,minRows:s=4,maxRows:o=10,style:l,className:d,...h}=e,m=(t||"").split("\n").length,v=Math.max(s,o);return(0,c.jsx)(i.h,{element:TextareaAutosize,value:t||"",maxLength:65e3,rows:s,className:n()("form-control",r&&`form-control-${a[r]}`,d),style:{height:u(Math.max(s,m>v?v:m)),maxHeight:Number.isFinite(o)?24*o:void 0,...l},...h})}},11242(e,t,r){r.d(t,{N7:()=>A,j9:()=>g,GS:()=>M,BI:()=>C,Fu:()=>w,Sc:()=>x,K7:()=>E,wF:()=>DropdownSelect,pX:()=>I,zt:()=>T,J$:()=>b,yL:()=>B,qU:()=>R,sq:()=>L,F1:()=>_,GW:()=>P,dE:()=>F,te:()=>j,l6:()=>q,R:()=>k,dJ:()=>U,Ap:()=>N,dO:()=>S,ks:()=>TextInput,mW:()=>O,TM:()=>Textarea_Textarea,AG:()=>D});var s=r(85906),n=r(34084),i=function(){return i=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};var SVG=function(e){var t=e.animate,r=void 0===t||t,n=e.backgroundColor,o=void 0===n?"#f5f6f7":n,l=e.backgroundOpacity,c=void 0===l?1:l,a=e.baseUrl,u=void 0===a?"":a,d=e.children,h=e.foregroundColor,m=void 0===h?"#eee":h,v=e.foregroundOpacity,f=void 0===v?1:v,p=e.gradientRatio,y=void 0===p?2:p,g=e.uniqueKey,A=e.rtl,x=void 0!==A&&A,S=e.speed,b=void 0===S?1.2:S,k=e.style,w=void 0===k?{}:k,R=e.title,q=void 0===R?"Loading...":R,j=e.beforeMask,N=void 0===j?null:j,_=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),P=g||Math.random().toString(36).substring(6),I="".concat(P,"-diff"),M="".concat(P,"-animated-diff"),E="".concat(P,"-aria"),T=x?{transform:"scaleX(-1)"}:null,C="".concat(b,"s"),D="".concat(-1*y," 0"),L="".concat(y," 0");return(0,s.createElement)("svg",i({"aria-labelledby":E,role:"img",style:i(i({},w),T)},_),q?(0,s.createElement)("title",{id:E},q):null,N&&(0,s.isValidElement)(N)?N:null,(0,s.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(u,"#").concat(I,")"),style:{fill:"url(".concat(u,"#").concat(M,")")}}),(0,s.createElement)("defs",null,(0,s.createElement)("clipPath",{id:I},d),(0,s.createElement)("linearGradient",{id:M,gradientTransform:"translate(".concat(D,")")},(0,s.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:c}),(0,s.createElement)("stop",{offset:"50%",stopColor:m,stopOpacity:f}),(0,s.createElement)("stop",{offset:"100%",stopColor:o,stopOpacity:c}),r&&(0,s.createElement)("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(D,"; 0 0;
1 ").concat(L),dur:C,repeatCount:"indefinite"}))))},ContentLoader=function(e){return e.children?(0,s.createElement)(SVG,i({},e)):(0,s.createElement)(ReactContentLoaderFacebook,i({},e))},ReactContentLoaderFacebook=function(e){return(0,s.createElement)(ContentLoader,i({viewBox:"0 0 476 124"},e),(0,s.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,s.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,s.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,s.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,s.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,s.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};const o=ContentLoader;var l=r(14202);function FieldLoadingPlaceholder(){return(0,l.jsxs)(o,{speed:2,width:300,height:84,viewBox:"0 0 300 84",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",uniqueKey:(0,s.useId)(),children:[(0,l.jsx)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"200",height:"11"}),(0,l.jsx)("rect",{x:"127",y:"48",rx:"3",ry:"3",width:"53",height:"11"}),(0,l.jsx)("rect",{x:"187",y:"48",rx:"3",ry:"3",width:"72",height:"11"}),(0,l.jsx)("rect",{x:"18",y:"48",rx:"3",ry:"3",width:"100",height:"11"}),(0,l.jsx)("rect",{x:"18",y:"23",rx:"3",ry:"3",width:"140",height:"11"}),(0,l.jsx)("rect",{x:"166",y:"23",rx:"3",ry:"3",width:"120",height:"11"})]})}var c=r(79400),a=r.n(c),u=r(5306),d=r(36389);function TextInput(e){const{currency:t,prefix:r,hidePrefix:s,suffix:n,hideSuffix:i,className:o,id:c,...h}=e.componentProps??{};return e.wrap((0,l.jsx)(d.A,{currency:t,prefix:r,hidePrefix:s,suffix:n,hideSuffix:i,children:(0,l.jsx)(u.A,{...e.input,...h,id:c??e.meta.htmlId,form:e.meta.form,className:a()(o,{"is-invalid":e.meta.invalid}),testId:"text_input"})}))}var h=r(4484),m=r(35447);r(74954);function DropdownSelect(e){const{dropdownToggleProps:t,...r}=e.componentProps,{label:s,...n}=t,i=e.componentProps.options.find(t=>t.value===e.input.value);return e.wrap((0,l.jsx)(h.A,{content:t=>e.componentProps.options.map(r=>(0,l.jsx)(h.A.Item,{testId:String(r.value),isActive:e.input.value===r.value,onClick:()=>{e.input.onChange(void 0,r.value),t()},tracking:e.componentProps.getItemTracking?e.componentProps.getItemTracking(r):void 0,children:(0,l.jsx)(m.A,{children:r.label})},r.value)),...r,children:t=>(0,l.jsx)(h.A.Toggle,{isActive:t,testId:"toggle",...n,id:e.meta.htmlId,children:s(i?i.label:"Select")})}),{labelPointsToCustomElement:!0})}var v=r(18579),f=r(42673),p=r(69694);function Textarea_Textarea(e){const{className:t,id:r,...s}=e.componentProps??{};return e.wrap((0,l.jsx)(v.A,{testId:"textarea",children:n=>(0,l.jsx)(p.A,{...e.input,...(0,f.A)(s,n),id:r??e.meta.htmlId,form:e.meta.form,className:a()(t,{"is-invalid":e.meta.invalid})})}))}function y(e,t){return(0,n.Ay)(e,{fallback:s.createElement(FieldLoadingPlaceholder),...t})}const g=y({resolved:{},chunkName:()=>"fields-AutoComplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-AutoComplete").then(()=>r(25325)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>25325}),A=y({resolved:{},chunkName:()=>"fields-AsyncAutoComplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-AsyncAutoComplete").then(()=>r(87233)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>87233}),x=y({resolved:{},chunkName:()=>"fields-CheckboxInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-CheckboxInput").then(()=>r(87496)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>87496}),S=y({resolved:{},chunkName:()=>"fields-Switch",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-Switch").then(()=>r(19493)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>19493}),b=y({resolved:{},chunkName:()=>"fields-MultiCheckbox",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-MultiCheckbox").then(()=>r(15514)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>15514}),k=(y({resolved:{},chunkName:()=>"fields-DatePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-DatePicker").then(()=>r(47842)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>47842}),y({resolved:{},chunkName:()=>"fields-SimpleDatePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-SimpleDatePicker").then(()=>r(15937)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>15937})),w=(y({resolved:{},chunkName:()=>"fields-DateRangePicker-DateRangePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-DateRangePicker-DateRangePicker").then(()=>r(72422)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>72422}),y({resolved:{},chunkName:()=>"fields-ButtonList",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-ButtonList").then(()=>r(52657)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>52657})),R=y({resolved:{},chunkName:()=>"fields-RadioList",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-RadioList").then(()=>r(46096)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>46096}),q=y({resolved:{},chunkName:()=>"fields-Select",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-Select").then(()=>r(47357)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>47357}),j=y({resolved:{},chunkName:()=>"fields-RichTextarea",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-RichTextarea").then(()=>r(60472)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>60472}),N=(y({resolved:{},chunkName:()=>"fields-CodeEditorTextarea",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-CodeEditorTextarea").then(()=>r(94609)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>94609}),y({resolved:{},chunkName:()=>"fields-MaskedInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-MaskedInput").then(()=>r(87316)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>87316}),y({resolved:{},chunkName:()=>"fields-Slider-Slider",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-Slider-Slider").then(()=>r(38034)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>38034})),_=y({resolved:{},chunkName:()=>"fields-Slider-RangeSlider",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-Slider-RangeSlider").then(()=>r(30953)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>30953}),P=y({resolved:{},chunkName:()=>"fields-Rating",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-Rating").then(()=>r(33032)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>33032}),I=y({resolved:{},chunkName:()=>"fields-EmailSuggestion",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-EmailSuggestion").then(()=>r(65112)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>65112}),M=y({resolved:{},chunkName:()=>"fields-AvatarInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-AvatarInput").then(()=>r(61524)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>61524}),E=y({resolved:{},chunkName:()=>"fields-DateTimePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-DateTimePicker").then(()=>r(35288)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>35288}),T=y({resolved:{},chunkName:()=>"fields-GoogleMapsAutocomplete-GoogleMapsAutocomplete",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-GoogleMapsAutocomplete-GoogleMapsAutocomplete").then(()=>r(43460)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>43460}),C=y({resolved:{},chunkName:()=>"fields-BooleanInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-BooleanInput").then(()=>r(42577)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>42577}),D=y({resolved:{},chunkName:()=>"fields-TimePicker-TimePicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-TimePicker-TimePicker").then(()=>r(60828)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>60828}),L=y({resolved:{},chunkName:()=>"fields-RangeInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-RangeInput").then(()=>r(56584)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>56584}),O=y({resolved:{},chunkName:()=>"fields-TextWithOptions",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-TextWithOptions").then(()=>r(24648)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>24648}),U=y({resolved:{},chunkName:()=>"fields-SingleDocumentUploadInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-SingleDocumentUploadInput").then(()=>r(27848)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>27848}),F=(y({resolved:{},chunkName:()=>"fields-SingleImageUploaderInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-SingleImageUploaderInput").then(()=>r(49962)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>49962}),y({resolved:{},chunkName:()=>"fields-TriStateInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-TriStateInput").then(()=>r(73647)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>73647}),y({resolved:{},chunkName:()=>"fields-DatePivotPicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-DatePivotPicker").then(()=>r(45979)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>45979}),y({resolved:{},chunkName:()=>"fields-ColorPicker-ColorPicker",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-ColorPicker-ColorPicker").then(()=>r(21302)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>21302}),y({resolved:{},chunkName:()=>"fields-ResourceSelect",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-ResourceSelect").then(()=>r(83565)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>83565})),B=(y({resolved:{},chunkName:()=>"fields-MarkdownEditor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-MarkdownEditor").then(()=>r(64707)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>64707}),y({resolved:{},chunkName:()=>"fields-PhoneNumberInput",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>r.e("fields-PhoneNumberInput").then(()=>r(87504)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return r(t)},resolve:()=>87504}))},36389(e,t,r){r.d(t,{A:()=>CurrencySuffixPrefixWrapper});var s=r(79400),n=r.n(s),i=r(19363),o=r(35447),l=r(14202);function InputGroup(e){const{className:t,...r}=e;return(0,l.jsx)(i.h,{className:n()("input-group",t),...r})}InputGroup.Addon=function InputGroupAddon(e){const{className:t,...r}=e;return(0,l.jsx)(o.A,{className:n()("input-group-text",t),...r})},InputGroup.Button=function InputGroupButton(e){const{className:t,...r}=e;return(0,l.jsx)(i.h,{className:n()("input-group-btn",t),...r})};const c=InputGroup,a={AUD:"$",USD:"$",EUR:"â¬"};function CurrencySuffixPrefixWrapper(e){const t=e.prefix&&!e.hidePrefix,r=e.suffix&&!e.hideSuffix;return e.currency||t||r?(0,l.jsxs)(c,{flexWrap:"nowra
1p",children:[t&&(0,l.jsx)(c.Addon,{children:e.prefix}),e.currency&&(0,l.jsx)(c.Addon,{children:a[e.currency]}),e.children,r&&(0,l.jsx)(c.Addon,{children:e.suffix})]}):e.children}},90849(e,t,r){function s(e){return e?e.replace(/[^a-zA-Z0-9 ]/g,"").trim().split(/\s+/).length:0}r.d(t,{A:()=>s})},50020(e,t,r){function s(e){if(e.length<3)return!1;const[t,r,...s]=e.split("@");return!(!t||!r||s.length>0)&&(!!/^[\w-](?:[\w.\-+]*[\w-])?$/.test(t)&&(!r.includes("..")&&!!/^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r)))}r.d(t,{A:()=>s})},25808(e,t,r){r.d(t,{nl:()=>a,Nx:()=>f,zo:()=>h,Rp:()=>m,Zk:()=>v,vy:()=>u,mw:()=>d});var s=r(99856),n=r(63936);var i=r(90849),o=r(74954);var l=r(50020),c=r(47905);const a=(0,o.YK)({required:{id:"form.errors.required",defaultMessage:"Required"},invalidEmail:{id:"form.errors.is_email",defaultMessage:"Please provide a valid email address"},invalidNumber:{id:"form.errors.is_number",defaultMessage:"Value must be a number"},invalidURL:{id:"form.errors.is_url",defaultMessage:"Please provide a valid URL"},invalidFullURL:{id:"form.errors.is_full_url",defaultMessage:"Please provide a valid URL (including http/https)"},invalidMinWords:{id:"form.errors.min_words_count",defaultMessage:"Text must have at least {minWords, plural, =1 {# word} other {# words}}"},invalidISBN:{id:"form.errors.is_isbn",defaultMessage:"Value should be a valid ISBN code"},invalidYouTubeURL:{id:"form.errors.is_valid_youtube_url",defaultMessage:"Must be a valid YouTube URL"},invalidUniqueArray:{id:"form.errors.is_string_list_of_uuid",defaultMessage:"List must contain unique values"},invalidHook:{id:"form.errors.is_hook",defaultMessage:"Hook should only contain lowercase letters, numbers and hyphens (no spaces)"},invalidHexColor:{id:"form.errors.is_hex_color",defaultMessage:"Invalid color. Please a use a hexadecimal value (for ex: #000000)"},invalidDateRangeBetween:{id:"form.errors.is_date_range_between",defaultMessage:"Should be between {0, date, long} and {1, date, long} (inclusive)"},minDate:{id:"form.errors.min_date",defaultMessage:"Should be at least {minDate, date, medium}"},flatArrayError:{id:"form.errors.flat_array_error",defaultMessage:"{message} (position {position})"}});function u(e){return s.vk(e=>null===e||"string"==typeof e&&""===e.trim()?void 0:e,e.optional())}function d(e){const t={abort:!0,message:a.required.defaultMessage};return!e||e instanceof s.ND?s.L5().refine(e=>null!=e&&("string"!=typeof e||e.trim().length>0),t).pipe(e||s.Yj()):e instanceof s.n?s.L5().refine(e=>null!=e&&(!Array.isArray(e)||e.length>0),t).pipe(e):e instanceof s.rS?s.L5().refine(e=>null!=e&&("number"!=typeof e||!Number.isNaN(e)),t).pipe(e):e instanceof s.WF?s.L5().refine(e=>null!=e,t).pipe(e):e instanceof s.bv?s.L5().refine(e=>null!=e&&("object"!=typeof e||Object.keys(e).length>0),t).pipe(e):s.L5().refine(e=>null!=e&&("number"==typeof e?!Number.isNaN(e):"boolean"==typeof e||("string"==typeof e?e.trim().length>0:Array.isArray(e)?e.length>0:"object"!=typeof e||Object.keys(e).length>0)),t).pipe(e)}function h(e){const t=s.vk(e=>{if("string"==typeof e){const t=e.trim();if(""===t)return;return function(e){const t=e.includes(","),r=e.includes(".");if(t&&r)return e.lastIndexOf(",")>e.lastIndexOf(".")?e.replace(/\./g,"").replace(",","."):e.replace(/,/g,"");return t?/,\d{3}$/.test(e)&&!/,\d{1,2}$/.test(e)?e.replace(/,/g,""):e.replace(",","."):e}(t)}return e},s.Yj().or(s.ai()).pipe((r={message:a.invalidNumber.defaultMessage},n.qG(s.rS,r))));var r;return e?t.pipe(e):t}const m=s.Yj().refine(l.A,{message:a.invalidEmail.defaultMessage}),v=(s.Yj().refine(e=>(0,c.A)(e),{message:a.invalidURL.defaultMessage}),s.Yj().refine(function(e){return(0,c.A)(e,{requireProtocol:!0})},{message:a.invalidFullURL.defaultMessage}));function f(e){return s.Yj().refine(t=>(0,i.A)(t)>=e,{message:a.invalidMinWords.defaultMessage,params:{minWords:e}})}s.Yj().refine(e=>function(e){const t=e.replace(/[^\dX]/g,"");return/^[\d-X]+$/.test(e.trim())&&t.length>=10&&t.length<=13}(e),{message:a.invalidISBN.defaultMessage}),s.Yj().regex(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11}
1)(?:\S+)?$/i,{message:a.invalidYouTubeURL.defaultMessage});s.Yj().regex(/^[a-z0-9][-a-z0-9]*$/,{message:a.invalidHook.defaultMessage}),s.Yj().regex(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,{message:a.invalidHexColor.defaultMessage})},81974(e,t,r){r.r(t),r.d(t,{default:()=>C});var s=r(41398),n=r(26730),i=r(52477),o=r(41125),l=r(99737),c=r(23481),a=r(98379),u=r(45919),d=r(85906),h=r(59955),m=r(55279),v=r(86490),f=r(45756),p=r(74954),y=r(23766),g=r(76015),A=r(74026),x=r(49853),S=r(821);const b=(0,S.Iy)({type:"public/userAccountManagement/ACTIVATE_USER",commandName:"Pr.Domain.User.Commands.ActivateUser"}),k=(0,S.Iy)({type:"public/userAccountManagement/DEACTIVATE_USER",commandName:"Pr.Domain.User.Commands.DeactivateUser"});var w=r(49329),R=r(25343),q=r(58646),j=r(36171),N=r(99856),_=r(11242),P=r(2063),I=r(57483),M=r(25808),E=r(14202);const T=(0,P.We)({name:"deactivateYourAccountForm",schemaFactory:new P.DF(()=>N.Ik({reason:(0,M.mw)(N.k5(["too_many_emails_received","reason_not_listed"])),message:(0,M.vy)(N.Yj().max(255)),areYouSure:N.zM().optional()})),transformSubmitValues:e=>{const{areYouSure:t,...r}=e;return r}})(function DeactivateYourAccountForm(e){const t=(0,m.A)(),r=(0,p.tz)(),s=e.control.watch("reason"),n=e.control.watch("areYouSure");return(0,E.jsxs)(q.A,{onSubmit:e.handleSubmit,display:"flex",flexDirection:"column",gap:4,children:[(0,E.jsx)(P.D0,{name:"reason",label:"Reason",component:_.l6,componentProps:{options:["reason_not_listed","select","too_many_emails_received"].map(e=>({label:r.formatMessage({id:"public.deactivate_your_account_form.reason.options.label",defaultMessage:"{reason, select,\n reason_not_listed {Reason not listed}\n select {Select}\n too_many_emails_received {Too many emails received}\n}"},{reason:e}),value:"select"===e?"":e,disabled:"select"===e}))},required:!0}),(()=>{if(s)return"too_many_emails_received"===s?(0,E.jsxs)(d.Fragment,{children:[(0,E.jsx)(j.A,{alertStyle:"warning",children:(0,E.jsx)(w.A,{source:"#### You don't need to delete your account\n\nHead out to your profile and <NotficationSettingsLink>edit your notification settings</NotficationSettingsLink>.",componentsAvailable:{NotficationSettingsLink:(0,I.A)(e=>(0,E.jsx)(R.A,{to:t.generate("www.public.consumer_settings")+"#notifications",fontWeight:"bold",textDecorationHover:"underline",textStyle:"link",...e}))}})}),(0,E.jsx)(P.D0,{name:"areYouSure",component:_.Sc,componentProps:{label:"I still want to delete my account"}})]}):"reason_not_listed"===s||n?(0,E.jsxs)(d.Fragment,{children:[(0,E.jsx)(P.D0,{name:"message",component:_.TM,label:"Tell us why"}),(0,E.jsx)(u.A.Submit,{buttonStyle:"danger",isLoading:e.submitting,isDisabled:e.pristine,children:"Delete your account"})]}):void 0})()]})});const C=(0,x.ji)([{key:"userAccountManagementRedirectIfNotLoggedIn",promise:async({store:e,helpers:t,location:r})=>{if(!(0,g.eP)(e.getState()))throw new x.qI(t.urlGenerator.generate("www.public.login",{next:(0,A.Np)(r),unauthorized:1}))}}])(function UserAccountManagementPage(){(0,p.tz)();const e=(0,v.A)(g.wz),t=(0,f.A)(),r=(0,m.A)();return(0,E.jsxs)(s.A,{simplified:!0,children:[(0,E.jsx)(h.A,{title:"Account management"}),(0,E.jsx)(l.A,{singleCenteredContainer:!0,marginTop:3,children:(0,E.jsx)(c.A,{full:{xs:!0},children:(0,E.jsx)(c.A.Block,{children:e.isDeactivated?(0,E.jsxs)(d.Fragment,{children:[(0,E.jsx)(o.A,{level:1,headingStyle:2,marginBottom:3,children:"Reactivate your account"}),(0,E.jsx)(i.A,{marginBottom:4,children:"If you wish to reactivate your account. Click on the button below."}),(0,E.jsxs)(a.A,{flexDirection:"column",gap:1,children:[(0,E.jsx)(n.A,{onClick:()=>t.dispatch(b({userId:e.id})).then(()=>{window.location.replace(r.generate("www.public.root"))}),reactToError:!0,buttonStyle:"primary",children:"Activate"}),(0,E.jsx)(u.A.Button,{onClick:()=>t.dispatch(y.ri()).then(()=>window.location.replace(r.generate("www.public.root"))),buttonStyle:"link",textStyle:"danger",children:"Log out"})]})]}):(0,E.jsxs)(d.Fragment,{children:[(0,E.jsx)(o.A,{level:1,headingStyle:2,marginBottom:3,children:"Delete your account"}),(0,E.jsx)(i.A,{marginBottom:4,children:"If you delete your account your profile won't be visible to other people on ProductReview.com.au. Some information, such as reviews or messages you sent, may still be visible to others."}),(0,E.jsx)(T,{onSubmit:r=>t.dispatch(k({userId:e.id,...r})).then(()=>{window.location.reload()})})]})})})})]})})}}]); 2//# sourceMappingURL=public-containers-UserAccountManagementPage-UserAccountManagementPage_363a67cc.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.