PageSourceSearch

https://hawc-servers.com/static/js/3154.cf1e231c.chunk.js

js hawc-servers.com collected 2026-10-08 08:17:52 UTC 14,883 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhawc_web=self.webpackChunkhawc_web||[]).push([[3154],{6014:(l,e,o)=>{o.d(e,{A:()=>p});var a=o(49411),n=o(9950),d=o(90234),i=o(36050),s=o(33936);const t="Checkbox_container__l89qe",r="Checkbox_checkbox__71xI9",u="Checkbox_error__DBpTB",c="Checkbox_icon__Xjbrs";var v=o(44414);const p=l=>{let{label:e="",state:o,disableChange:p,onClick:_,error:h=!1,outline:m,checkmarkStroke:x="#0053AD",boldOnSelected:b=!1}=l;const[j,N]=(0,n.useState)(!1),S=(0,n.useCallback)((()=>{_&&_(),p||N(!j)}),[p,N,j,_]);return(0,n.useEffect)((()=>{void 0!==o&&N(o)}),[o]),(0,v.jsxs)("div",{className:t,children:[(0,v.jsxs)("div",{className:r,onClick:()=>S(),children:[(0,v.jsx)("input",{style:{border:m?"1px solid ".concat(m):""},className:h?u:"",checked:j,readOnly:!0,type:"checkbox"}),(0,v.jsx)(d.N,{children:j&&(0,v.jsx)(i.A,{templates:[i.a.Scale],transitionType:s.E.Spring,once:!1,exit:!0,className:c,children:(0,v.jsx)(a.CheckIcon,{stroke:x})})})]}),""!==e&&(0,v.jsx)("button",{className:"small",onClick:()=>S(),children:!b||j?(0,v.jsx)("b",{children:e}):e})]})}},25084:(l,e,o)=>{o.d(e,{A:()=>i});var a=o(33827);const n="HawcTooltip_tooltipArrow__RSGXP";var d=o(44414);const i=l=>{let{tooltipId:e="passwordTooltip"}=l;return(0,d.jsx)(a.m_,{id:e,classNameArrow:n,style:{fontSize:"14px",backgroundColor:"#f5f7fa",color:"#212121",border:"1px solid #0053ad",borderRadius:"10px",opacity:1,zIndex:1}})}},71812:(l,e,o)=>{o.d(e,{Rk:()=>h,NZ:()=>_,Ay:()=>m});var a=o(9950),n=o(49411);const d="Input_disableLabel__JYbYP",i="Input_label__U9NhE",s="Input_container__LwTub",t="Input_success__O-YeR",r="Input_error__1wKFK",u="Input_icon__U7UwM",c="Input_disabled__Odmhn",v="Input_focused__0wjLL";var p=o(44414);let _=function(l){return l[l.Text=0]="Text",l[l.Password=1]="Password",l[l.Number=2]="Number",l}({}),h=function(l){return l[l.None=0]="None",l[l.Error=r]="Error",l[l.Success=t]="Success",l}({});const m=l=>{let{value:e,setValue:o,inputType:t,placeholder:r,inputStatus:m=h.None,label:x="",disabled:b=!1,dataTip:j="",tooltipId:N="",height:S="50px"}=l;const[y,k]=(0,a.useState)(!1),[f,M]=(0,a.useState)(!1),w=(0,a.useCallback)(((l,e)=>{switch(l){case _.Text:return"text";case _.Password:return e?"text":"password";case _.Number:return"number"}}),[]),T=(0,a.useCallback)(((l,e)=>{switch(l){case h.None:return e?(0,p.jsx)(n.HideIcon,{}):(0,p.jsx)(n.EyeIcon,{});case h.Error:return(0,p.jsx)(n.DangerIcon,{stroke:"#FFB240"});case h.Success:return(0,p.jsx)(n.CheckIcon,{stroke:"#32C997"})}}),[]);return(0,a.useEffect)((()=>{m!==h.None&&f&&M(!1)}),[m,f]),(0,p.jsxs)("div",{children:[""!==x&&(0,p.jsx)("p",{className:"".concat(i," ").concat(m," ").concat(b?c:""," ").concat(y?d:""," body-4"),children:x}),(0,p.jsxs)("div",{style:{height:S},className:"".concat(s," ").concat(b?c:""," ").concat(y?"".concat(v," shadow-3"):""," ").concat(m),children:[(0,p.jsx)("input",{"data-tooltip-id":N,"data-tooltip-html":j,className:"".concat(m),disabled:b,value:e,onChange:l=>o?o(l.target.value):"",type:w(t,f),placeholder:r,onFocus:()=>k(!0),onBlur:()=>k(!1)}),(t===_.Password||m!==h.None)&&(0,p.jsx)("div",{className:u,onClick:t===_.Password&&m===h.None?()=>M(!f):()=>{},children:T(m,f)})]})]})}},46481:(l,e,o)=>{o.d(e,{q:()=>b,A:()=>j});var a=o(9950),n=o(19774),d=o(85581),i=o(42565),s=o(26995),t=o(36050),r=o(33936);const u="Modal_loading__kKZ76",c="Modal_container__p4UhF",v="Modal_background__+ZkxO",p="Modal_contentWrapper__Zf7ZV",_="Modal_contentSideModal__Tr5m0",h="Modal_contentCenterModal__SJITf";var m=o(20517),x=o(44414);let b=function(l){return l[l.SideModal=_]="SideModal",l[l.CenterModal=h]="CenterModal",l}({});const j=l=>{let{children:e,modalType:o,contentRef:_,outsideClose:h=!1,animate:j,loaded:N}=l;const S=(0,n.j)(),y=(0,n.G)((l=>l.notification.notification)),k=(0,a.useCallback)((()=>{h&&y===d.Eg.None&&S((0,i.mi)(i.aF.None))}),[S,h,y]);return(0,s.Wr)(_,k),(0,x.jsxs)("div",{className:c,children:[(0,x.jsx)(t.A,{templates:[t.a.Opacity],once:!1,exit:!0,duration:.3,initial:j?"hidden":"visible",children:(0,x.jsx)("div",{className:v})}),(0,x.jsx)("div",{className:p,children:(0,x.jsx)(t.A,{templates:(l=>{switch(l){case b.SideModal:return[t.a.X];case b.CenterModal:return[t.a.Opacity];default:return[]}})(o),transitionType:r.E.EaseOut,movement:o===b.SideModal?"100%":"",duration:.3,once:!1,exit:!0,initial:j?"hidden":"visible",className:"".concat(o.valueOf()),children:N?e:(0,x.jsx)("div",{className:u,children:(0,x.jsx)(m.A,{})})})})]})}},53154:(l,e,o)=>{o.r(e),o.d(e,{default:()=>S});var a=o(9950),n=o(46481),d=o(71812),i=o(19774),s=o(42565),t=o(6014),r=o(12783),u=o(6718),c=o(73570),v=o(85581),p=o(44414);const _=l=>e=>{const o=(0,i.j)();return(0,p.jsx)(l,{...e,onClick:()=>{c.A.post("/auth/local/register",e.reqBody).then((()=>{o((0,s.mi)(s.aF.None)),o((0,v.Gg)(v.Eg.Registration))})).catch((function(l){var e,a,n;console.log(l),o((0,v.Gg)(v.Eg.RegistrationFailed)),null!==l&&void 0!==l&&null!==(e=l.response)&&void 0!==e&&null!==(a=e.data)&&void 0!==a&&null!==(n=a.error)&&void 0!==n&&n.message.toLowerCase().includes("email or username")?o((0,s.hT)(s.K9.TakenEmailOrUsername)):o((0,s.hT)(s.K9.Other))})),e.onClick()}})};var h=o(77764);const m="RegisterModal_checkboxesSection__nNZNb",x="RegisterModal_checkboxes__SborZ";var b=o(69447),j=o(25084),N=o(28429);const S=(0,b.A)("modal-register")((l=>{var e,o,v,b,S,y,k,f,M,w,T,A,g,C,R,E,Z,O,I,B,U,F,P,V,K,L,H,z,G,q,D,X,Y,J,W,Q,$,ll,el,ol,al,nl,dl,il,sl,tl,rl,ul,cl,vl,pl,_l,hl,ml,xl,bl,jl,Nl,Sl,yl,kl,fl,Ml,wl,Tl,Al,gl,Cl,Rl,El,Zl,Ol,Il,Bl,Ul;const Fl=(0,i.j)(),Pl=(0,a.useRef)(null),Vl=(0,i.G)((l=>l.modal.registerModal.error)),Kl=Vl!==s.K9.None,Ll=Vl===s.K9.Other,Hl=Vl===s.K9.TakenEmailOrUsername,[zl,Gl]=(0,a.useState)([]),[ql,Dl,Xl]=(0,u.jU)("",(l=>(0,u.DT)(l))),[Yl,Jl,Wl]=(0,u.jU)("",(l=>(0,u.Oj)(l))),[Ql,$l,le]=(0,u.jU)("",(l=>l===Yl),[Yl]),[ee,oe,ae]=(0,u.jU)(""),[ne,de,ie]=(0,u.jU)(""),[se,te,re]=(0,u.jU)(""),[ue,ce,ve]=(0,u.jU)(""),[pe,_e,he]=(0,u.jU)(-1,(l=>-1!==l)),[me,xe]=(0,u.jU)(""),[be,je]=(0,u.jU)(""),Ne=Xl&&Wl&&le&&ae&&ie&&re&&ve&&he,Se=_((l=>{let{children:e,onClick:o}=l;return(0,p.jsx)(r.default,{onClick:o,type:"submit",width:"100%",style:Ne?Kl?r.Style.Error:r.Style.Primary:r.Style.Gray,size:r.Size.Normal,customFontSize:!0,disabled:!Ne,children:e})})),ye=(0,N.Zp)(),ke=(0,N.zy)(),[fe,Me]=(0,a.useState)(null);(0,a.useEffect)((()=>{c.A.get("/groups").then((l=>{const e=l.data.data.map((l=>({customerType:l.id,label:l.name})));Gl(e)}))}),[]),(0,a.useEffect)((()=>{var e,o;const a="/".concat(null===l||void 0===l||null===(e=l.translation)||void 0===e||null===(o=e.paths)||void 0===o?void 0:o.register);l.modalOpen?(fe||Me(ke.pathname),ke.pathname!==a&&ye(a,{replace:!0})):!l.modalOpen&&ke.pathname===a&&fe&&(ye(fe,{replace:!0}),Me(null))}),[l.modalOpen,ye,ke.pathname,null===l||void 0===l||null===(e=l.translation)||void 0===e||null===(o=e.paths)||void 0===o?void 0:o.register,fe]);return(0,p.jsxs)(n.A,{outsideClose:!0,contentRef:Pl,modalType:n.q.SideModal,animate:l.animate,loaded:l.translationLoaded,children:[(0,p.jsx)(j.A,{}),(0,p.jsxs)("div",{ref:Pl,className:h.A.content,children:[(0,p.jsxs)("div",{className:h.A.upper,children:[(0,p.jsxs)("div",{className:h.A.close,children:[(0,p.jsx)("h4",{children:null===l||void 0===l||null===(v=l.translation)||void 0===v||null===(b=v.others)||void 0===b?void 0:b.title}),(0,p.jsx)("button",{onClick:()=>Fl((0,s.mi)(s.aF.None)),className:"small",children:null===l||void 0===l||null===(S=l.translation)||void 0===S||null===(y=S.buttons)||void 0===y?void 0:y.close})]}),(0,p.jsx)("div",{className:h.A.header,children:(0,p.jsx)("p",{className:"body-2",children:null===l||void 0===l||null===(k=l.translation)||void 0===k||null===(f=k.others)||void 0===f?void 0:f.message})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Hl||Ll?d.Rk.Error:d.Rk.None,value:se,setValue:l=>(l=>{te(l),Fl((0,s.hT)(s.K9.None))})(l),inputType:d.NZ.Text,label:(null===l||void 0===l||null===(M=l.translation)||void 0===M||null===(w=M.fields)||void 0===w||null===(T=w.company)||void 0===T?void 0:T.label)+"*",placeholder:null===l||void 0===l||null===(A=l.translation)||void 0===A||null===(g=A.fields)||void 0===g||null===(C=g.company)||void 0===C?void 0:C.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:me,setValue:xe,inputType:d.NZ.Text,label:null===l||void 0===l||null===(R=l.translation)||void 0===R||null===(E=R.fields)||void 0===E||null===(Z=E.address)||void 0===Z?void 0:Z.label,placeholder:null===l||void 0===l||null===(O=l.translation)||void 0===O||null===(I=O.fields)||void 0===I||null===(B=I.address)||void 0===B?void 0:B.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:be,setValue:je,inputType:d.NZ.Text,label:null===l||void 0===l||null===(U=l.translation)||void 0===U||null===(F=U.fields)||void 0===F||null===(P=F.website)||void 0===P?void 0:P.label,placeholder:null===l||void 0===l||null===(V=l.translation)||void 0===V||null===(K=V.fields)||void 0===K||null===(L=K.website)||void 0===L?void 0:L.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:ee,setValue:oe,inputType:d.NZ.Text,label:(null===l||void 0===l||null===(H=l.translation)||void 0===H||null===(z=H.fields)||void 0===z||null===(G=z.firstname)||void 0===G?void 0:G.label)+"*",placeholder:null===l||void 0===l||null===(q=l.translation)||void 0===q||null===(D=q.fields)||void 0===D||null===(X=D.firstname)||void 0===X?void 0:X.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:ne,setValue:de,inputType:d.NZ.Text,label:(null===l||void 0===l||null===(Y=l.translation)||void 0===Y||null===(J=Y.fields)||void 0===J||null===(W=J.lastname)||void 0===W?void 0:W.label)+"*",placeholder:null===l||void 0===l||null===(Q=l.translation)||void 0===Q||null===($=Q.fields)||void 0===$||null===(ll=$.lastname)||void 0===ll?void 0:ll.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:ue,setValue:ce,inputType:d.NZ.Text,label:(null===l||void 0===l||null===(el=l.translation)||void 0===el||null===(ol=el.fields)||void 0===ol||null===(al=ol.division)||void 0===al?void 0:al.label)+"*",placeholder:null===l||void 0===l||null===(nl=l.translation)||void 0===nl||null===(dl=nl.fields)||void 0===dl||null===(il=dl.division)||void 0===il?void 0:il.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Hl||Ll?d.Rk.Error:d.Rk.None,value:ql,setValue:l=>(l=>{Dl(l),Fl((0,s.hT)(s.K9.None))})(l),inputType:d.NZ.Text,label:(null===l||void 0===l||null===(sl=l.translation)||void 0===sl||null===(tl=sl.fields)||void 0===tl||null===(rl=tl.email)||void 0===rl?void 0:rl.label)+"*",placeholder:null===l||void 0===l||null===(ul=l.translation)||void 0===ul||null===(cl=ul.fields)||void 0===cl||null===(vl=cl.email)||void 0===vl?void 0:vl.placeholder})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:Yl,setValue:Jl,inputType:d.NZ.Password,label:(null===l||void 0===l||null===(pl=l.translation)||void 0===pl||null===(_l=pl.fields)||void 0===_l||null===(hl=_l.password)||void 0===hl?void 0:hl.label)+"*",placeholder:null===l||void 0===l||null===(ml=l.translation)||void 0===ml||null===(xl=ml.fields)||void 0===xl||null===(bl=xl.password)||void 0===bl?void 0:bl.placeholder,dataTip:null===l||void 0===l||null===(jl=l.translation)||void 0===jl||null===(Nl=jl.others)||void 0===Nl?void 0:Nl.passwordRule})}),(0,p.jsx)("div",{className:h.A.input,children:(0,p.jsx)(d.Ay,{inputStatus:Ll?d.Rk.Error:d.Rk.None,value:Ql,setValue:$l,inputType:d.NZ.Password,label:(null===l||void 0===l||null===(Sl=l.translation)||void 0===Sl||null===(yl=Sl.fields)||void 0===yl||null===(kl=yl.rePassword)||void 0===kl?void 0:kl.label)+"*",placeholder:null===l||void 0===l||null===(fl=l.translation)||void 0===fl||null===(Ml=fl.fields)||void 0===Ml||null===(wl=Ml.rePassword)||void 0===wl?void 0:wl.placeholder,dataTip:null===l||void 0===l||null===(Tl=l.translation)||void 0===Tl||null===(Al=Tl.others
1)||void 0===Al?void 0:Al.passwordRule})}),(0,p.jsxs)("div",{className:m,children:[(0,p.jsxs)("h4",{children:[null===l||void 0===l||null===(gl=l.translation)||void 0===gl||null===(Cl=gl.fields)||void 0===Cl||null===(Rl=Cl.customerType)||void 0===Rl?void 0:Rl.label," *:"]}),(0,p.jsx)("div",{className:x,children:zl.map(((e,o)=>{var a,n,d,i,s;return(0,p.jsx)(t.A,{error:Ll,state:pe===e.customerType,disableChange:!0,onClick:()=>_e(e.customerType),label:null===l||void 0===l||null===(a=l.translation)||void 0===a||null===(n=a.fields)||void 0===n||null===(d=n.customerType)||void 0===d||null===(i=d.items)||void 0===i||null===(s=i.find((l=>l.name===e.label)))||void 0===s?void 0:s.translation},e.label)}))})]})]}),(0,p.jsxs)("div",{className:h.A.lower,children:[(0,p.jsx)("div",{className:h.A.button,children:(0,p.jsx)(Se,{onClick:()=>{},reqBody:{username:se,email:ql,password:Yl,provider:"local",confirmed:!1,blocked:!1,address:me,firstName:ee,lastName:ne,division:ue,website:be,groupType:pe,currency:1},children:(0,p.jsx)("p",{className:"normal",children:(0,p.jsx)("b",{children:null===l||void 0===l||null===(El=l.translation)||void 0===El||null===(Zl=El.buttons)||void 0===Zl?void 0:Zl.register})})})}),(0,p.jsxs)("div",{children:[(0,p.jsxs)("span",{className:"medium",children:[null===l||void 0===l||null===(Ol=l.translation)||void 0===Ol||null===(Il=Ol.others)||void 0===Il?void 0:Il.haveAccount," "]}),(0,p.jsx)("button",{onClick:()=>Fl((0,s.mi)(s.aF.Login)),className:"medium-bold",children:null===l||void 0===l||null===(Bl=l.translation)||void 0===Bl||null===(Ul=Bl.buttons)||void 0===Ul?void 0:Ul.login})]})]})]})]})}))},77764:(l,e,o)=>{o.d(e,{A:()=>a});const a={"shadow-1":"SideModal_shadow-1__BdL50","shadow-2":"SideModal_shadow-2__3Est-","shadow-3":"SideModal_shadow-3__RvrOs","shadow-4":"SideModal_shadow-4__S7Otx",h1Style:"SideModal_h1Style__HEXn6",h4Style:"SideModal_h4Style__SgSg+","body-1":"SideModal_body-1__Q-kuS","body-2":"SideModal_body-2__2+ycj","body-3":"SideModal_body-3__U1iBG","body-4":"SideModal_body-4__j4s9Z",normal:"SideModal_normal__C+cs5",pStyle:"SideModal_pStyle__LEl7Z","medium-bold":"SideModal_medium-bold__dh1eB",medium:"SideModal_medium__xNjrp",small:"SideModal_small__8wCDD","text-1":"SideModal_text-1__dnMHR","add-bold":"SideModal_add-bold__B-Y5R",bold:"SideModal_bold__xEcJj","add-pointer":"SideModal_add-pointer__QHzrh",content:"SideModal_content__FcgKB",upper:"SideModal_upper__Letjj",close:"SideModal_close__z13MT",header:"SideModal_header__fNsE1",noBottomBorder:"SideModal_noBottomBorder__3tdlH",input:"SideModal_input__NyW+Z",margin:"SideModal_margin__S3XHC",lower:"SideModal_lower__xHL1c",noBorder:"SideModal_noBorder__n5eHq",button:"SideModal_button__kh4AV"}}}]);

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.