PageSourceSearch

https://heypros.com/_next/static/chunks/pages/settings/my-compliance-a9a24422b31dabc2.js

js heypros.com collected 2026-10-05 06:17:06 UTC 6,897 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6257],{94169:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/my-compliance",function(){return t(56886)}])},56886:function(e,s,t){"use strict";t.r(s);var n=t(85893),i=t(93967),l=t.n(i),a=t(22980),o=t(16466),r=t(92532),c=t(67294),d=t(81544),u=t(29511),h=t(85256),g=t(25260),_=t(4993),m=t(82397),p=t(14702),f=t(54389),v=t(17178),x=t(52270),j=t(65071),w=t(37780),N=t(363),y=t(71994),b=t(43906),C=t(70925),k=t(19682),S=t(99840),O=t(99241),A=t(11653),P=t(44570),T=t(56783),M=t.n(T),E=t(67261),I=t.n(E);function L(){var e,s,t,i,k,T,E,L,B,G,z;let D=(0,A.vd)(),{user:H}=(0,C.a)(),[R,V]=(0,r.v1)("hashid"),[W,Z]=(0,c.useState)(null),[q,{data:J,loading:Y}]=(0,y.q0)({fetchPolicy:"cache-and-network"});(0,c.useEffect)(()=>{(null==H?void 0:H.hashid)&&q({variables:{hashid:H.hashid}})},[q,null==H?void 0:H.hashid]);let K=null==J?void 0:null===(e=J.user)||void 0===e?void 0:e.documentSets;return(0,c.useEffect)(()=>{if(R&&K){let e=K.find(e=>e.hashid===R);e?Z(e):((0,N.Rs)({type:"warning",content:"The document set you are trying to view does not exist."}),V(null))}},[R,K,V]),(0,n.jsxs)(v.d,{className:M().settings,children:[(0,n.jsx)("h1",{children:"Compliance"}),(0,n.jsxs)("section",{className:l()(M().compliance,M().innerSection),children:[(0,n.jsxs)("div",{className:M().columns,children:[(0,n.jsxs)("div",{className:M().col,children:[(0,n.jsx)("h3",{children:"My Trades"}),(0,n.jsx)(d.o,{className:M().category,omitDefaultValue:!0,isAllSelected:!1,items:((null==J?void 0:null===(s=J.user)||void 0===s?void 0:s.authorizedCategories)||[]).map(e=>({name:e.name,icon:(0,S.E)(e.name),isActive:!0})),max:1}),(null==J?void 0:null===(i=J.user)||void 0===i?void 0:null===(t=i.authorizedCategories)||void 0===t?void 0:t.length)===0&&(0,n.jsx)("p",{className:M().emptyState,children:"No authorized categories."})]}),(0,n.jsxs)("div",{className:M().col,children:[(0,n.jsx)("h3",{children:"My States"}),(0,n.jsx)(d.o,{className:M().category,omitDefaultValue:!0,isAllSelected:!1,items:((null==J?void 0:null===(k=J.user)||void 0===k?void 0:k.authorizedStatesOrProvinces)||[]).map(e=>({name:e,icon:(0,P.Q)(e),isActive:!0})),max:2}),(null==J?void 0:null===(T=J.user)||void 0===T?void 0:T.authorizedStatesOrProvinces)===null&&(0,n.jsx)("p",{className:M().emptyState,children:"No authorized states."})]}),(0,n.jsxs)("div",{className:M().col,children:[(0,n.jsx)("h3",{children:"Status"}),(0,n.jsx)(u.t,{status:(null==J?void 0:null===(E=J.user)||void 0===E?void 0:E.isCompliant)?{backgroundColor:M().lightGreen,color:M().green,label:b.T.COMPLIANT}:{backgroundColor:M().lightOrange,color:M().orange,label:b.T.NON_COMP}})]})]}),(0,n.jsx)("h2",{className:M().title,children:"Document Sets"}),(0,n.jsx)(w.G,{className:l()(I().table,I().complianceTable),noDataComponent:!Y&&(null==H?void 0:H.hashid)?(0,n.jsx)(g.u,{icon:(0,n.jsx)(m.a,{}),title:"No document sets found",subtitle:"Your compliance sets will appear here once ".concat(null==H?void 0:null===(L=H.tenant)||void 0===L?void 0:L.name," staff assigns them to you.")}):(0,n.jsx)(g.u,{icon:(0,n.jsx)(f.D,{className:I().spin}),title:"\xa0",subtitle:"\xa0",isLoading:!0}),columns:[{name:"Name",cell:()=>(0,n.jsx)(m.a,{}),width:"48px",allowOverflow:!0},{name:"",cell:e=>(0,n.jsx)("div",{className:l()(I().name,I().clickable),onClick:()=>V(e.hashid),children:(0,n.jsx)("h4",{children:e.name})}),grow:2,wrap:!0,minWidth:"175px"},{name:"Documents",cell:e=>e.documentBuckets.map(e=>e.name).join(" • "),grow:2,wrap:!0,style:{color:I().darkgrey},minWidth:"175px"},{name:"Status",cell:e=>(0,n.jsx)(u.t,{status:e.status===b.T.COMPLIANT?{backgroundColor:M().lightGreen,color:M().green,label:b.T.COMPLIANT}:{backgroundColor:M().lightOrange,color:M().orange,label:b.T.NON_COMP}}),grow:2,wrap:!0,minWidth:"175px"},{name:"",cell:e=>{var s,t;return(0,n.jsx)(x.M,{btnClassName:I().timestampIcon,icon:(0,n.jsx)(p.s,{width:20}),children:(0,n.jsxs)("div",{className:I().timestampDropdown,children:[(0,n.jsx)("h5",{className:I().grey,children:"Created:"}),(0,n.jsx)("h5",{children:(0,o.Z)((0,a.Z)(e.createdAt),null!==(s=null==H?void 0:H.timezone)&&void 0!==s?s:D,O.b1)}),e.updatedAt&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:I().grey,children:"Updated:"}),(0,n.jsx)("h5",{children:(0,o.Z)((0,a.Z)(e.updatedAt),null!==(t=null==H?void 0:H.timezone)&&void 0!==t?t:D,O.b1)})]})]})})},grow:0,compact:!0,minWidth:"36px"},{name:"",cell:e=>(0,n.jsx)("div",{className:I().editBtn,onClick:()=>V(e.hashid),children:(0,n.jsx)(_.m,{width:20,height:20})}),minWidth:"36px",button:!0}],data:(null==J?void 0:null===(B=J.user)||void 0===B?void 0:B.documentSets)||[]}),(0,n.jsx)(j.J,{isShown:!!W,header:(0,n.jsx)(h.u,{title:null==W?void 0:W.name,assignedAt:null!==(G=null==W?void 0:W.assignedAt)&&void 0!==G?G:void 0,assignedBy:null!==(z=null==W?void 0:W.assignedBy)&&void 0!==z?z:null,isGlobal:null==W?void 0:W.global}),userHashid:(null==H?void 0:H.hashid)||"",documentSetHashid:(null==W?void 0:W.hashid)||"",onCancelClick:async()=>{await V(null),Z(null)},onSubmitClick:async()=>{await V(null),Z(null)}})]})]})}s.default=(0,k.A)(e=>{let{CAN:s,handle:t}=e;return t(L,s.VIEW.PAGE.SETTINGS_PAGES.MY_COMPLIANCE())})},56783:function(e){e.exports={primary:"#0075ff",secondary:"#ff9337",tertiary:"#ffd232",success:"#77c935",darkgrey:"#999",darkergrey:"#444",grey:"#e0e0e0",lightgrey:"#f2f2f2",lightergrey:"#f7f7f7",white:"#fff",black:"#000",error:"#ff5740",red:"#e13118",lightRed:"#ffdad6",green:"#619906",lightGreen:"#def1a7",orange:"#a
176400",purple:"#e1ceff",darkPurple:"#683bc9",newPrimary:"#ddefff",newSuccess:"#21b75d",newpurple:"#7c3ddd",newOrange:"#ff8329",lightOrange:"#ffe99d",yellow:"#ffd600",yellowLight:"#ffeba6",yellowDarker:"#d28b00",breakpointXs:"575px",breakpointSm:"767px",breakpointMd:"1023px",breakpointLg:"1439px",settings:"settings_settings__RHIQ0",pages:"settings_pages__Lq8gB",page:"settings_page__gFPmO",icon:"settings_icon__5_r4y",chevronIcon:"settings_chevronIcon__1KC8R",innerSection:"settings_innerSection__LOfYC",notifications:"settings_notifications__r8TMJ",general:"settings_general__5JPk3",isCrewMember:"settings_isCrewMember__GgaJR",isContractor:"settings_isContractor__0jNCr",section:"settings_section__3JVEw",hasBottomBorder:"settings_hasBottomBorder__4ltvK",companyInfo:"settings_companyInfo__FUi3i",searchAlerts:"settings_searchAlerts__Uljn5",alerts:"settings_alerts__MKPpr",compliance:"settings_compliance__w2CRY",title:"settings_title__fvS5w",columns:"settings_columns__9pk5O",col:"settings_col__Ag9dp",category:"settings_category__Hj9md",interfaceHelperContainer:"settings_interfaceHelperContainer__HLBZg",subTitle:"settings_subTitle__YvXm8",image:"settings_image__4ge0V",text:"settings_text__afqIl",perks:"settings_perks__1MELK",perk:"settings_perk__V_qqx",description:"settings_description__5f3ZL"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=94169)}),_N_E=e.O()}]);

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.