PageSourceSearch

https://cdn.joinhomebase.com/assets/index-chunk-BJfBCm-K.js

js joinhomebase.com collected 2026-10-01 08:52:24 UTC 3,201 bytes, 2 lines download raw bytes

1import{reactExports as d,jsxRuntimeExports as t}from"./react-core-chunk-B2r03cU8.js";import{createSelector as _,useSelector as i,useDispatch as I}from"./redux-core-chunk-DgWMjMkF.js";import{updateMatchedRole as w,Text_default as v,SelectInput as C,Box_default as p,useHistory as S,fetchRolesForImport as F,importRoles as T,Loader as N,Button_default as R}from"./app-init-chunk-Cf9dEl-y.js";import{toI18n as n}from"./tracking-chunk-2tlC51DH.js";import{Row as O,Cell as x,Table as E,HeaderRow as B,HeaderCell as g}from"./SimpleTable-chunk-btmueMDc.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="78db3caf-ab36-4bdf-93cb-4e7d2210683c",e._sentryDebugIdIdentifier="sentry-dbid-78db3caf-ab36-4bdf-93cb-4e7d2210683c")})()}catch{}const D={value:"new",label:n("match_roles.create_new")},L={value:"skip",label:n("match_roles.skip")},c=e=>o=>o.getIn(["roles","importRoles",e]),P=c("isFetching"),y=c("roles"),z=_(c("roleOptions"),e=>[D,L,...e.toJS()]),H=c("partnerName"),M=c("isImporting"),J=_(y,P,(e,o)=>e.size===0||o),A=({role:e})=>{const o=i(z),s=I(),r=d.useCallback(l=>s(w(l,e)),[s,e]);return t.jsxs(O,{children:[t.jsx(x,{children:t.jsx("p",{children:e.get("name")})}),t.jsx(x,{children:e.get("role_id")==="error"?t.jsx(v,{color:"error",children:n("match_roles.duplicate_error")}):t.jsx(C,{options:o,value:e.get("role_id"),onChange:r,clearable:!1})})]})},K=({header:e,roles:o,partnerName:s})=>t.jsxs(p,{mt:"lg",children:[t.jsx("h4",{children:e}),t.jsxs(E,{theme:"big",fixed:!0,className:"mbm",children:[t.jsxs(B,{children:[t.jsx(g,{children:n("match_roles.table_header1",{props:{partner:s}})}),t.jsx(g,{children:n("match_roles.table_header2")})]}),o.toArray().map(r=>t.jsx(A,{role:r},r.get("partner_role_id")))]})]}),f=({roles:e,partnerName:o,header:s,existingMatch:r})=>{const l=e.filter(a=>a?.get("existing_match")===r);return l.size===0?null:t.jsx(K,{roles:l,header:s,partnerName:o})},b=({onClick:e})=>t.jsx(p,{inlineBlock:!0,mr:10,children:t.jsx(R,{variant:"tertiary",onClick:e,children:n("actions.skip")})}),j=({isLoading:e,onClick:o})=>t.jsx(R,{variant:"primary",isLoading:e,onClick:o,children:n("actions.save_continue")}),U=()=>{const e=I(),o=S(),s=i(y),r=i(H),l=i(J),a=i(M);d.useEffect(()=>{e(F())},[e]);const h=d.useCallback(()=>{const k=s.filter(u=>u!=null&&u.get("role_id")!=="error").toJS();e(T(k))},[s,e]),m=d.useCallback(()=>{o.push("/team/import?type=pos&ref=schedule")},[o]);return t.jsx(p,{p:20,children:t.jsx(N,{centered:!0,isLoading:l,children:t.jsxs("div",{children:[t.jsxs(p,{vcenter:!0,spacebetween:!0,children:[t.jsx("h3",{children:n("match_roles.page_header",{props:{count:s.size,partner:r}})}),t.jsxs("div",{children:[t.jsx(b,{onClick:m}),t.jsx(j,{isLoading:a,onClick:h})]})]}),t.jsx(f,{roles:s,partnerName:r,header:n("match_roles.new_roles"),existingMatch:!1}),t.jsx(f,{roles:s,partnerName:r,header:n("match_roles.existing_roles"),existingMatch:!0}),t.jsxs("div",{children:[t.jsx(b,{onClick:m}),t.jsx(j,{isLoading:a,onClick:h})]})]})})})};export{U as default};
2//# sourceMappingURL=index-chunk-BJfBCm-K.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.