PageSourceSearch

https://homefromcollege.com/_next/static/chunks/pages/company/settings/[[...tab]]-04b4686093086632.js

js homefromcollege.com collected 2026-10-02 14:58:18 UTC 175,682 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd370f76-527e-4c83-9b9a-28810691c9bc",e._sentryDebugIdIdentifier="sentry-dbid-dd370f76-527e-4c83-9b9a-28810691c9bc")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[321,9459],{1394:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,Y:()=>o});let o={DRAFT:"draft",ACTIVE:"active",PENDING:"pending",INACTIVE:"inactive",ENDED:"ended",SCHEDULED:"scheduled"},i={ACTIVE:"active",RECRUITING:"recruiting",DRAFT:"draft",ENDED:"ended",INACTIVE:"inactive",SCHEDULED:"scheduled"}},2918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(37876);n(14232);let i=e=>{let{fill:t="black",...n}=e;return(0,o.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M15 0C6.71484 0 0 6.71484 0 15C0 23.2852 6.71484 30 15 30C23.2852 30 30 23.2852 30 15C30 6.71484 23.2852 0 15 0ZM15 27.1875C8.2793 27.1875 2.8125 21.7201 2.8125 15C2.8125 8.27988 8.2793 2.8125 15 2.8125C21.7207 2.8125 27.1875 8.27988 27.1875 15C27.1875 21.7201 21.7207 27.1875 15 27.1875ZM15 19.6875C13.9453 19.6875 13.125 20.5078 13.125 21.5625C13.125 22.6172 13.8926 23.4375 15 23.4375C16.002 23.4375 16.875 22.6172 16.875 21.5625C16.875 20.5078 16.002 19.6875 15 19.6875ZM16.9395 7.5H13.9453C11.6602 7.5 9.84375 9.31641 9.84375 11.6016C9.84375 12.3633 10.4883 13.0078 11.25 13.0078C12.0117 13.0078 12.6562 12.3633 12.6562 11.6016C12.6562 10.8984 13.1895 10.3125 13.8926 10.3125H16.8867C17.6426 10.3125 18.2812 10.8984 18.2812 11.6016C18.2812 12.0703 18.0469 12.4277 17.6367 12.6621L14.2969 14.707C13.8281 15 13.5938 15.4688 13.5938 15.9375V16.875C13.5938 17.6367 14.2383 18.2812 15 18.2812C15.7617 18.2812 16.4062 17.6367 16.4062 16.875V16.7578L19.0488 15.1172C20.2793 14.3555 21.041 13.0078 21.041 11.6016C21.0938 9.31641 19.2773 7.5 16.9395 7.5Z",fill:t})})}},13039:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,l:()=>i});var o=function(e){return e.ACTIVE="active",e.PENDING_CLAIM="pending_claim",e.DISCONNECTED="disconnected",e.UNINSTALLED="uninstalled",e}({});let i=e=>{var t;return!!e&&(null!=(t=e.canConnect)?t:!!e.available)}},13561:(e,t,n)=>{"use strict";n.d(t,{a:()=>s,A:()=>d});var o=n(37876);n(14232);var i=n(68302),r=n(53380);let a=n(84976).Ay.p.withConfig({displayName:"styles__ConfirmDescription",componentId:"sc-8ac76e19-0"})(["margin:0;padding:1.25rem 2rem;color:",";font-family:",";font-size:",";line-height:1.5;"],e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.fontSize.body.lg}),l={padding:"tight"},s=e=>{let{isOpen:t,title:n="Are you sure?",description:s,confirmText:d="CONFIRM",cancelText:c="CANCEL",isConfirming:m=!1,onConfirm:p,onCancel:u,zIndex:y}=e;return(0,o.jsx)(i.A,{open:t,onClose:u,ariaLabel:"Confirm action modal",maxWidth:"sm",height:"auto",zIndex:y,modalData:{modalTitle:n,headerVariant:"secondary",headerProps:{fontSize:r.A.fontSize.body.xl},titleIsSticky:!0,footerIsSticky:!0,nextButtonText:d,backButtonText:c,nextButtonDisabled:m,nextButtonLoading:m,buttonProps:{backButton:l,nextButton:l},onBack:u,onNext:p},children:s&&(0,o.jsx)(a,{children:s})})},d=s},19031:(e,t,n)=>{var o=n(24298),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=o||i||Function("return this")()},19850:(e,t,n)=>{var o=n(89950),i=n(98825);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},23222:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var o=n(37876);n(14232);var i=n(84976);let r=i.Ay.div.withConfig({displayName:"styles__ToggleInputContent",componentId:"sc-82c64843-0"})(["width:50px;height:30px;border-radius:9999px;position:relative;cursor:pointer;transition:all 0.1s;background-color:",";"," &:after{content:' ';position:absolute;top:50%;transform:translateY(-50%);width:25px;height:25px;border-radius:50%;left:3px;background-color:",";transition:all 0.2s;","}",""],e=>{let{status:t,theme:n}=e;return"focused"===t?n.colors.primary:"unfocused"===t?n.colors["gray-80"]:t?void 0:n.colors["gray-05"]},e=>{let{backgroundColorWhenToggled:t,isToggled:n,theme:o}=e;return n&&(0,i.AH)(["background-color:",";"],o.colors[t]||t)},e=>{let{theme:t}=e;return t.colors.white},e=>{let{isToggled:t}=e;return t&&(0,i.AH)(["left:22px;"])},e=>{let{disabled:t}=e;return t&&(0,i.AH)(["cursor:default;"])}),a=e=>{let{name:t,onToggle:n,isToggled:i,className:a,status:l,backgroundColorWhenToggled:s,disabled:d}=e;return(0,o.jsx)(r,{tabIndex:0,role:"button",disabled:d,"aria-pressed":i?"true":"false","aria-label":t,onClick:d?void 0:n,isToggled:i,className:a,status:l,backgroundColorWhenToggled:s})}}
1,24298:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},27136:(e,t,n)=>{var o=n(19850),i=n(52742);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},28654:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},29131:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>id,default:()=>ic});var o=n(37876),i=n(14232),r=n(74695),a=n(83083),l=n(74797),s=n(89099),d=n(17523),c=n(99459),m=n(80892),p=n(53489),u=n(47015),y=n(98579),g=n(69992),f=n(84976);let h=f.Ay.div.withConfig({displayName:"styles__ContainerCards",componentId:"sc-80205d43-0"})(["display:grid;padding:1.5rem 0rem;grid-template-columns:5fr 4fr;grid-gap:1.5rem;@media (max-width:","){grid-template-columns:1fr;grid-gap:0rem;}"],e=>{let{theme:t}=e;return t.containers.lg}),x=f.Ay.div.withConfig({displayName:"styles__CompanyFormContainer",componentId:"sc-80205d43-1"})(["background-color:",";border-radius:1.5rem;"],e=>{let{theme:t}=e;return t.colors.white}),C=f.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-80205d43-2"})(["width:90%;height:1px;background-color:",";margin:1.5rem auto;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),b=f.Ay.div.withConfig({displayName:"styles__DocumentCardContainer",componentId:"sc-8e994623-0"})(["background-color:",";padding:1rem;border-radius:1rem;display:flex;flex-direction:column;height:min-content;"],e=>{let{theme:t}=e;return t.colors.white}),w=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-8e994623-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),v=f.Ay.div.withConfig({displayName:"styles__ListTeamContainer",componentId:"sc-8e994623-2"})(["display:grid;grid-template-columns:1fr;"]),_=f.Ay.div.withConfig({displayName:"styles__DocumentItemList",componentId:"sc-5f0e4a0f-0"})(["display:grid;grid-template-columns:auto auto;grid-gap:0.5rem;padding:1.5rem 0;border-top:1px solid ",";font-size:",";color:",";align-items:center;overflow:hidden;&:last-child{padding-bottom:0.5rem;}"],e=>{let{topBorder:t,theme:n}=e;return t?n.colors["blue-30"]:"none"},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["gray-90"]}),j=f.Ay.a.withConfig({displayName:"styles__ViewDocumentLink",componentId:"sc-5f0e4a0f-1"})(["margin-left:auto;font-size:",";color:",";text-decoration:none;font-family:",";font-weight:500;background-color:",";padding:0.5rem 1rem;border-radius:0.5rem;display:flex;align-items:center;gap:0.5rem;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gray-03"]}),A=f.Ay.div.withConfig({displayName:"styles__DocumentIconContainer",componentId:"sc-5f0e4a0f-2"})(["background-color:",";width:min-content;padding:1rem;display:flex;align-items:center;justify-content:center;border-radius:1rem;"],e=>{let{theme:t}=e;return t.colors["gray-03"]}),I=f.Ay.div.withConfig({displayName:"styles__LeftSideContainer",componentId:"sc-5f0e4a0f-3"})(["display:flex;gap:0.5rem;flex:1;overflow:hidden;"]),N=f.Ay.div.withConfig({displayName:"styles__DocumentInfoContainer",componentId:"sc-5f0e4a0f-4"})(["display:flex;flex-direction:column;gap:0.1rem;justify-content:center;overflow:hidden;"]),S=f.Ay.p.withConfig({displayName:"styles__DocumentTitle",componentId:"sc-5f0e4a0f-5"})(["font-size:",";color:",";font-family:",";margin:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),k=f.Ay.p.withConfig({displayName:"styles__DocumentFileType",componentId:"sc-5f0e4a0f-6"})(["font-size:",";color:",";font-family:",";margin:0;font-weight:500;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),E=f.Ay.p.withConfig({displayName:"styles__DocumentFailedStatus",componentId:"sc-5f0e4a0f-7"})(["font-size:",";color:",";font-family:",";margin:0;font-weight:500;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors["red-orange"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),T=e=>(0,o.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M21.3854 25.392H6.89291C6.2706 25.392 5.76615 24.8876 5.76615 24.2653V3.45703H3.89865C3.21679 3.45703 2.66406 4.00976 2.66406 4.69162V26.7657C2.66406 27.4475 3.21679 28.0002 3.89865 28.0002H20.1509C20.8327 28.0002 21.3855 27.4475 21.3855 26.7656V25.392H21.3854Z",fill:"#8AC9FE"}),(0,o.jsx)("path",{d:"M5.76733 3.45703V24.2653C5.76733 24.8876 6.27178 25.392 6.89409 25.392H21.3866V26.7657C21.3866 27.0062 21.3176 27.2304 21.1987 27.4202H5.87516C5.19336 27.4202 4.64062 26.8675 4.64062 26.1856V25.2842L5.20401 4.11151L5.76733 3.45703Z",fill:"#60B7FF"}),(0,o.jsx)("path",{d:"M23.3619 23.4157H8.86941C8.2471 23.4157 7.74265 22.9113 7.74265 22.289V1.97461H5.87516C5.19336 1.97461 4.64062 2.52734 4.64062 3.2092V25.2832C4.64062 25.9651 5.19336 26.5178 5.87516 26.5178H22.1274C22.8092 26.5178 23.362 25.9651 23.362 25.2832V23.4157H23.3619Z",fill:"#FED402"}),(0,o.jsx)("path",{d:"M7.74004 1.97461V22.289C7.74004 22.9113 8.24449 23.4157 8.8668 23.4157H23.3593V25.2832C23.3593 25.3837 23.347 25.4813 23.3244 25.5748H7.84782C7.16601 25.5748 6.61328 25.022 6.61328 24.3402V23.3079L7.17666 21.7493V2.26616L7.74004 1.97461Z",fill:"#FAC600"}),(0,o.jsx)("path",{d:"M23.9874 24.5432H7.84782C7.16601 24.5432 6.61328 23.9905 6.61328 23.3086V1.23459C6.61328 0.552732 7.16601 0 7.84782 0H20.3332L25.2219 5.00135V23.3086C25.222 23.9905 24.6692 24.5432 23.9874 24.5432Z",fill:"#E6E3E6"}),(0,o.jsx)("path",{d:"M23.6447 3.31055V23.308C23.6447 23.9898 23.092 24.5425 22.4102 24.5425H24.1003C24.7822 24.5425 25.3348 23.9898 25.3348 23.308V5.00069L23.6447 3.31055Z",fill:"#D7D0D6"}),(0,o.jsx)("path",{d:"M25.3373 5.00135H21.5703C20.8886 5.00135 20.3359 4.44873 20.3359 3.76699V0L25.3373 5.00135Z",fill:"#B5ADB6"}),(0,o.jsx)("path",{d:"M21.613 9.56187H10.3366C10.1032 9.56187 9.91406 9.37268 9.91406 9.13933C9.91406 8.90598 10.1032 8.7168 10.3366 8.7168H21.613C21.8463 8.7168 22.0355 8.90598 22.0355 9.13933C22.0355 9.37268 21.8463 9.56187 21.613 9.56187Z",fill:"#B5ADB6"}),(0,o.jsx)("path",{d:"M21.613 12.6947H10.3366C10.1032 12.6947 9.91406 12.5055 9.91406 12.2721C9.91406 12.0388 10.1032 11.8496 10.3366 11.8496H21.613C21.8463 11.8496 22.0355 12.0388 22.0355 12.2721C22.0355 12.5055 21.8463 12.6947 21.613 12.6947Z",fill:"#B5ADB6"}),(0,o.jsx)("path",{d:"M21.613 15.8255H10.3366C10.1032 15.8255 9.91406 15.6364 9.91406 15.403C9.91406 15.1697 10.1032 14.9805 10.3366 14.9805H21.613C21.8463 14.9805 22.0355 15.1697 22.0355 15.403C22.0355 15.6364 21.8463 15.8255 21.613 15.8255Z",fill:"#B5ADB6"})]});var M=n(85481);let P=e=>{var t;let{url:n,name:i,customFileType:r,topBorder:a=!0,customButton:l,testId:s,status:d}=e;return(0,o.jsxs)(_,{topBorder:a,children:[(0,o.jsxs)(I,{children:[(0,o.jsx)(A,{children:(0,o.jsx)(T,{})}),(0,o.jsxs)(N,{children:[(0,o.jsx)(S,{"data-testid":s?"".concat(s,"-title"):void 0,children:i}),!r&&(0,o.jsx)(k,{children:(null==n||null==(t=n.split("."))?void 0:t.pop())||""}),r&&r,"succeeded"!==d&&"paid"!==d&&(0,o.jsx)(E,{children:d})]})]}),l||(0,o.jsxs)(j,{href:n,target:"_blank",children:[(0,o.jsx)(M.H,{width:"22px",height:"22px"}),"View"]}
1)]},"document-".concat(n))},z=i.memo(()=>{let{documents:e}=(0,r.d4)(e=>e.Company.companyInfo);return(0,o.jsxs)(b,{children:[(0,o.jsx)(w,{children:"Documents"}),(0,o.jsx)(v,{children:e.map(e=>(0,o.jsx)(P,{url:e.url,name:e.name},"document-".concat(e.url)))})]})});var D=n(87491);let L=()=>{let e=(0,r.wA)(),t=(0,m.Q)("lg").isResponsive,n=(0,r.d4)(e=>{var t;return null==(t=e.Company.companyInfo)?void 0:t.company});return(0,o.jsxs)(h,{children:[(0,o.jsx)(x,{children:(0,o.jsx)(g.A,{autoFocusOnLoad:!1,clearDescription:!1,onSubmit:function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e((0,D.I6)(t,n))},data:{id:n.id,backgroundUrl:n.backgroundUrl,logoUrl:n.logoUrl,name:n.name,description:n.description,links:n.links||[],slug:n.slug}})}),t&&(0,o.jsx)(C,{}),(0,o.jsx)(z,{})]})};var B=n(18618),O=n(22932);let H=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-8545d0a8-0"})(["background-color:",";padding:1rem;padding-bottom:0rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white});f.Ay.div.withConfig({displayName:"styles__CardHeader",componentId:"sc-8545d0a8-1"})(["padding:0 0.5rem;border-bottom:1px solid ",";padding-bottom:1.5rem;height:4rem;"],e=>{let{theme:t}=e;return t.colors["gray-50"]});let R=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-8545d0a8-2"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),V=f.Ay.div.withConfig({displayName:"styles__ListTeamContainer",componentId:"sc-8545d0a8-3"})(["display:grid;grid-template-columns:1fr;"]),U=f.Ay.div.withConfig({displayName:"styles__ContainerLoading",componentId:"sc-8545d0a8-4"})(["display:flex;justify-content:center;margin-top:2rem;margin-bottom:2rem;"]),F=f.Ay.p.withConfig({displayName:"styles__EmptyMessage",componentId:"sc-8545d0a8-5"})(["text-align:center;font-size:",";color:",";margin-top:1rem;padding-bottom:1rem;font-family:",";font-weight:500;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),G=f.Ay.div.withConfig({displayName:"styles__ItemTeamMember",componentId:"sc-8545d0a8-6"})(["display:grid;grid-template-columns:1fr auto;grid-gap:0.5rem;border-top:1px solid ",";font-size:",";color:",";align-items:center;"],e=>{let{theme:t}=e;return t.colors["gray-50"]},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["gray-90"]}),q=f.Ay.h4.withConfig({displayName:"styles__MemberName",componentId:"sc-8545d0a8-7"})(["font-size:",";color:",";margin:0;font-weight:600;font-family:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),Y=f.Ay.div.withConfig({displayName:"styles__EmailNameContainer",componentId:"sc-8545d0a8-8"})(["display:flex;padding:1rem 0;gap:0.2rem;align-items:center;gap:1.2rem;overflow:hidden;",";"],e=>{let{removeTopPadding:t}=e;return t&&"\n  padding-top: 0rem;\n  "}),Z=f.Ay.p.withConfig({displayName:"styles__EmailContainer",componentId:"sc-8545d0a8-9"})(["width:100%;",";margin:0rem;color:",";font-size:",";font-family:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],O.sj,e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary}),W=f.Ay.div.withConfig({displayName:"styles__OptionsContainer",componentId:"sc-8545d0a8-10"})([""]),$=f.Ay.p.withConfig({displayName:"styles__PendingInviteText",componentId:"sc-8545d0a8-11"})(["font-size:",";color:",";font-family:",";margin:0;font-weight:400;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),K=f.Ay.p.withConfig({displayName:"styles__PendingEmailText",componentId:"sc-8545d0a8-12"})(["font-size:",";color:",";font-family:",";margin:0;font-weight:500;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),J=f.Ay.div.withConfig({displayName:"styles__LeftSide",componentId:"sc-8545d0a8-13"})(["width:auto;"]),Q=f.Ay.div.withConfig({displayName:"styles__RightSide",componentId:"sc-8545d0a8-14"})(["flex:1;overflow:hidden;max-width:400px;"]);f.Ay.div.withConfig({displayName:"styles__ToggleInputContent",componentId:"sc-4e4250c1-0"})(["width:42px;height:20px;border-radius:20px;border:1px solid ",";position:relative;cursor:pointer;&:after{content:' ';position:absolute;top:50%;transform:translateY(-50%);width:15px;height:15px;border-radius:50%;left:2px;background-color:",";transition:all 0.2s;","}"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.gray},e=>{let{isToggled:t}=e;return t&&(0,f.AH)(["background-color:",";left:23px;"],e=>{let{theme:t}=e;return t.colors.primary})});var X=n(68302);let ee=f.Ay.div.withConfig({displayName:"styles__ModalContainer",componentId:"sc-f5e5f8e3-0"})(["background-color:",";height:auto;width:100%;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;margin-left:auto;margin-right:auto;padding:1.5rem 2rem;@media (max-width:","){padding:1rem;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.breakpoints.md}),et=f.Ay.div.withConfig({displayName:"styles__Body",componentId:"sc-f5e5f8e3-1"})(["display:flex;flex-direction:column;flex:1;overflow-y:auto;margin-top:0.5rem;border-top:1px solid ",";padding-top:1rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]});f.Ay.h2.withConfig({displayName:"styles__BodyTitle",componentId:"sc-f5e5f8e3-2"})(["margin:0;font-size:",";font-family:",";color:",";font-weight:700;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.primary},e=>{let{theme:t}=e;return t.colors["black-100"]}),f.Ay.p.withConfig({displayName:"styles__BodyDescription",componentId:"sc-f5e5f8e3-3"})(["margin:0;font-size:",";font-family:",";color:",";font-weight:400;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.primary},e=>{let{theme:t}=e;return t.colors["gray-90"]}),f.Ay.div.withConfig({displayName:"styles__NotificationListItem",componentId:"sc-f5e5f8e3-4"})(["display:flex;flex-direction:row;padding:0.5rem;gap:0.5rem;padding-left:",";"],e=>{let{indent:t}=e;return t?"2rem":"0"}),f.Ay.div.withConfig({displayName:"styles__DescriptionContainer",componentId:"sc-f5e5f8e3-5"})(["display:flex;flex-direction:column;flex:1;gap:0.25rem;"]);let en=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-f5e5f8e3-6"})(["border-radius:0px;"]),eo=f.Ay.h4.withConfig({displayName:"styles__MemberName",componentId:"sc-f5e5f8e3-7"})(["font-size:",";color:",";margin:0;font-weight:600;font-family:",";width:auto;overflow:auto;word-break:break-word;overflow-wrap:break-word;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),ei=f.Ay.p.withConfig({displayName:"styles__EmailContainer",componentId:"sc-f5e5f8e3-8"})(["word-break:break-word;overflow-wrap:break-word;margin:0rem;color:",";"],e=>{let{theme:t}=e;return t.colors.placeholder});var er=n(23327),ea=n(23222);let el=f.Ay.div.withConfig({displayName:"styles__ToggleContainer",componentId:"sc-ee6fe7a-0"})(["display:flex;flex-direction:column;gap:0.5rem;"]),es=f.Ay.div.withConfig({displayName:"styles__Body",componentId:"sc-ee6fe7a-1"})(["display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;@media (max-width:","){grid-template-columns:1fr;grid-gap:0.5rem;}"],e=>{let{theme:t}=e;return t.breakpoints.md}),ed=f.Ay.p.withConfig({displayName:"styles__NotificationHeader",componentId:"sc-ee6fe7a-2"})([""]),ec=f.Ay.div.withConfig({displayName:"styles__NotificationListItem",componentId:"sc-ee6fe7a-3"})(["display:flex;flex-direction:row;padding:0.5rem;gap:0.5rem;padding-left:",";"],e=>{let{indent:t}=e;return t?"2rem":"0"}),em=f.Ay.div.withConfig({displayName:"styles__DescriptionContainer",componentId:"sc-ee6fe7a-4"})(["display:flex;align-items:center;flex:1;gap:0.35rem;"]),ep=f.Ay.h2.withConfig({displayName:"styles__BodyTitle",componentId:"sc-ee6fe7a-5"})(["margin:0;font-size:",";font-family:",";color:",";font-weight:600;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["black-100"]}),eu=(0,f.Ay)(ea.l).withConfig({displayName:"styles__StyledToggleInput",componentId:"sc-ee6fe7a-6"})([""]);f.Ay.div.withConfig({displayName:"styles__Footer",componentId:"sc-ee6fe7a-7"})(["display:flex;justify-content:center;border-top:1px solid ",";padding:1rem 0;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),(0,f.Ay)(er.$).withConfig({displayName:"styles__StyledButton",componentId:"sc-ee6fe7a-8"})(["width:100%;"]);var ey=n(2918),eg=n(51332),ef=n(53380),eh=n(9373);let ex=e=>{let{isEnabled:t,label:n,description:i,categoryId:r,type:a,onUpdate:l}=e;return(0,o.jsxs)(ec,{children:[(0,o.jsxs)(em,{children:[(0,o.jsx)(ep,{children:n}),(0,o.jsx)(eg.A,{title:i,isLarge:!0,children:(0,o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,o.jsx)(ey.A,{width:16,height:16,fill:ef.A.colors.placeholder})})})]}),(0,o.jsx)(eu,{isToggled:t,onToggle:()=>l(a,r,!t),backgroundColorWhenToggled:"primary"})]})},eC=e=>{var t,n;let{teamMember:i={},config:a={showHeader:!1},onUpdateSettings:l}=e,s=(0,r.wA)(),{showHeader:d}=a,{notificationSettings:c={}}=i;return(0,o.jsx)(el,{children:(0,o.jsxs)(es,{children:[(null==c||null==(t=c.email)?void 0:t.length)>0&&(0,o.jsxs)(o.Fragment,{children:[d&&(0,o.jsx)(ed,{children:"Email"}),c.email.map(e=>(0,o.jsx)(ex,{isEnabled:e.isEnabled,label:e.categoryName,description:e.categoryDescription,categoryId:e.categoryId,type:"email",onUpdate:()=>{l({...c,email:c.email.map(t=>t.categoryId===e.categoryId?{...t,isEnabled:!t.isEnabled}:t)}),s((0,eh.LG)(i.id,"email",e.categoryId,!e.isEnabled))}},e.categoryId))]}),(null==c||null==(n=c.sms)?void 0:n.length)>0&&(0,o.jsxs)(o.Fragment,{children:[d&&(0,o.jsx)(ed,{children:"Phone"}),c.sms.map(e=>(0,o.jsx)(ex,{isEnabled:e.isEnabled,label:e.categoryName,description:e.categoryDescription,categoryId:e.categoryId,type:"sms",onUpdate:()=>{l({...c,sms:c.sms.map(t=>t.categoryId===e.categoryId?{...t,isEnabled:!t.isEnabled}:t)})}},e.categoryId))]})]})})};var eb=n(96003),ew=n(43525);let ev=e=>{let{teamMember:t,onClose:n}=e,i=(0,r.wA)(),a=(0,r.d4)(e=>e.Company.teamMembers.members);
1return(0,o.jsx)(en,{open:!!t,height:"auto",onClose:n,showFooter:!1,ignoreDialogWidth:!0,ariaLabel:"Manage Team Member Notifications",modalData:{titleIsSticky:!0,modalTitle:"Manage Email Notifications",headerProps:{padding:"1rem 2rem",textAlign:"left"}},children:(0,o.jsxs)(ee,{children:[(0,o.jsxs)(Y,{removeTopPadding:!0,children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",image:t.pictureUrl,username:t.name})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(eo,{children:t.name}),(0,o.jsx)(ei,{children:t.email})]})]}),(0,o.jsx)(et,{children:(0,o.jsx)(eC,{teamMember:t,onUpdateSettings:e=>{let n=a.map(n=>n.id===t.id?{...n,notificationSettings:{...n.notificationSettings,...e}}:n);i({type:ew.h.SET_TEAM_MEMBERS,payload:n});let o=n.find(e=>e.id===t.id);i((0,D.I8)(o))}})})]})})},e_=f.Ay.div.withConfig({displayName:"styles__ActionContainer",componentId:"sc-c8515c63-0"})(["display:flex;"]),ej=f.Ay.div.withConfig({displayName:"styles__ContainerFilterOption",componentId:"sc-c8515c63-1"})(["display:grid;"]),eA=(0,f.Ay)(er.$).withConfig({displayName:"styles__ContainerActionsSubMenu",componentId:"sc-c8515c63-2"})(["background-color:",";width:30px;height:30px;display:grid;align-content:center;justify-items:center;border-radius:8px;align-self:center;padding:0;color:",";svg{transform:rotateZ(90deg);}.loading-content{border-top-color:",";}"],e=>{let{theme:t}=e;return t.colors["blue-50"]},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.colors["gray-120"]});var eI=n(47213),eN=n(54538);let eS=e=>{let{item:t,options:n=[],extraMargin:r=30}=e,a=(0,i.useRef)(null),[l,s]=(0,i.useState)(!1);return(0,o.jsxs)(e_,{children:[(0,o.jsx)(ej,{ref:a,children:(0,o.jsx)(eA,{onClick:e=>{e.stopPropagation(),s(t.id)},children:(0,o.jsx)(eI.M,{width:"20px",height:"20px"})})}),(0,o.jsx)(eN.A,{isOpen:l===t.id,anchorElement:a.current,onClose:()=>s(null),options:n,extraMargin:r})]})};var ek=n(60342);let eE=f.Ay.div.withConfig({displayName:"styles__AccessContainer",componentId:"sc-6cd2c27a-0"})(["padding:1rem 2rem;"]),eT=f.Ay.p.withConfig({displayName:"styles__AlertText",componentId:"sc-6cd2c27a-1"})(["margin:0;font-size:",";font-family:",";font-weight:600;color:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors.red}),eM=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-6cd2c27a-2"})([".modal-next-button{background-color:",";}"],e=>{let{theme:t}=e;return t.colors.red}),eP=e=>{var t;let{teamMember:n,isOpen:i,onClose:a,onRemoveTeamMember:l}=e,s=(0,r.d4)(e=>e.Company.teamMembers.loadingRemoveTeamMember),d=!(null==(t=n.notificationSettings)?void 0:t.email.length);return(0,o.jsx)(eM,{open:i,onClose:a,ariaLabel:"Remove Access Modal",ignoreDialogWidth:!0,height:"auto",modalData:{modalTitle:"Are you sure?",backButtonText:"CANCEL",onBack:a,nextButtonText:"REMOVE",onNext:l,nextButtonLoading:s,nextButtonDisabled:s,titleIsSticky:!0,footerIsSticky:!0,showFooterDivider:!0,headerProps:{textAlign:"left",padding:"1rem 2rem"}},children:(0,o.jsxs)(eE,{children:[(0,o.jsx)(eT,{children:"You are about to permanently remove"}),(0,o.jsxs)(Y,{children:[!d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",image:n.pictureUrl,username:n.name})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(q,{children:n.name}),(0,o.jsx)(Z,{children:n.email})]})]}),d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",backgroundColor:"blue-10"})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(K,{children:n.email}),(0,o.jsx)($,{children:"Pending"})]})]})]})]})})},ez=f.Ay.div.withConfig({displayName:"styles__AccessContainer",componentId:"sc-41fd8f1c-0"})(["padding:1rem 2rem;"]),eD=f.Ay.p.withConfig({displayName:"styles__HeaderText",componentId:"sc-41fd8f1c-1"})(["margin:0;font-size:",";font-family:",";font-weight:600;color:",";width:100%;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),eL=e=>{let{teamMember:t,isOpen:n,onClose:r,onMakePrimaryUser:a}=e,[l,s]=(0,i.useState)(!1),d=async()=>{try{s(!0),await a(),r()}finally{s(!1)}};return(0,o.jsx)(X.A,{open:n,onClose:r,ariaLabel:"Make primary user modal",maxWidth:"sm",height:"auto",modalData:{modalTitle:"Make Primary User",backButtonText:"CANCEL",onBack:r,nextButtonText:"CONFIRM",onNext:d,nextButtonLoading:l,nextButtonDisabled:l,titleIsSticky:!0,footerIsSticky:!0,show
1FooterDivider:!0,headerProps:{textAlign:"left",padding:"1rem 2rem"}},children:(0,o.jsxs)(ez,{children:[(0,o.jsxs)(eD,{children:["You are about to make ",(0,o.jsx)("strong",{children:t.name})," the primary user of this account. Their contact information will be used for all Stripe billing purposes."]}),(0,o.jsx)(Y,{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",image:t.pictureUrl,username:t.name})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(q,{children:t.name}),(0,o.jsx)(Z,{children:t.email})]})]})})]})})},eB=i.memo(()=>{let e=(0,r.wA)(),t=(0,r.d4)(e=>{var t;return null==(t=e.User.data)?void 0:t.id}),{members:n,loadingTeamMembers:a,currentTeamMember:l}=(0,r.d4)(e=>e.Company.teamMembers),[s,d]=(0,i.useState)(null),[c,m]=(0,i.useState)(null),p=(0,i.useMemo)(()=>n.find(e=>e.id===t)||{},[t,n]),u=(0,i.useMemo)(()=>n.filter(e=>e.id!==t),[t,n]),y=(0,i.useCallback)(e=>{e.isPrimaryUser||m(e)},[]),g=(0,i.useCallback)(t=>{e((0,D.I8)(t))},[e]),f=(0,i.useCallback)(async t=>{await e((0,D.i4)(t))&&d(null)},[]),h=(0,i.useCallback)(async t=>{await e((0,D.eP)(t))&&m(null)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(H,{children:[(0,o.jsx)(R,{children:"Team Members"}),(0,o.jsxs)(V,{children:[a&&(0,o.jsx)(U,{children:(0,o.jsx)(B.R,{color:"primary-dark"})}),!a&&0===u.length&&(0,o.jsx)(F,{children:"Your don't have any team members yet"}),!a&&u.map(e=>{var t;let n=!(null==(t=e.notificationSettings)?void 0:t.email.length);return(0,o.jsxs)(G,{children:[(0,o.jsxs)(Y,{children:[!n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",image:e.pictureUrl,username:e.name})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(q,{children:e.name}),(0,o.jsx)(Z,{children:e.email})]})]}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{children:(0,o.jsx)(eb.H,{size:"lg",backgroundColor:"blue-10"})}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(K,{children:e.email}),(0,o.jsx)($,{children:"Pending"})]})]})]}),(0,o.jsx)(W,{children:(0,o.jsx)(eS,{extraMargin:40,item:e,options:[...n?[]:[{label:"Notifications",value:"notifications",onClick:()=>g(e)}],{label:"Copy Email",value:"copy-email",onClick:()=>{navigator.clipboard.writeText(e.email),(0,ek.addSuccessNotification)("Email copied to clipboard")}},...e.isPrimaryUser||n?[]:[{label:"Remove Access",value:"remove-access",onClick:()=>(e=>{e.isPrimaryUser||d(e)})(e)}],...p.isPrimaryUser&&!n?[{label:"Make Primary User",value:"make-primary",onClick:()=>y(e)}]:[]]})})]},"team-member-".concat(e.id))})]})]}),!!s&&(0,o.jsx)(eP,{isOpen:!!s,onClose:()=>d(null),teamMember:s,onRemoveTeamMember:()=>f(null==s?void 0:s.id)}),!!c&&(0,o.jsx)(eL,{isOpen:!!c,onClose:()=>m(null),teamMember:c,onMakePrimaryUser:()=>h(null==c?void 0:c.id)}),!!l&&(0,o.jsx)(ev,{teamMember:l,onClose:()=>{e((0,D.I8)(null))}})]})}),eO=f.Ay.div.withConfig({displayName:"styles__ContainerCards",componentId:"sc-79f68aa8-0"})(["display:grid;padding:1.5rem 0rem;grid-template-columns:5fr 4fr;grid-gap:1.5rem;@media (max-width:","){grid-template-columns:1fr;grid-gap:0;}"],e=>{let{theme:t}=e;return t.containers.lg}),eH=f.Ay.div.withConfig({displayName:"styles__LeftSection",componentId:"sc-79f68aa8-1"})(["overflow:hidden;"]),eR=f.Ay.div.withConfig({displayName:"styles__RightSection",componentId:"sc-79f68aa8-2"})(["overflow:hidden;"]),eV=f.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-79f68aa8-3"})(["width:90%;height:1px;background-color:",";margin:1.5rem auto;"],e=>{let{theme:t}=e;return t.colors["blue-30"]});var eU=n(91408),eF=n(70319);let eG=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-3e222041-0"})(["background-color:",";padding:1rem;padding-bottom:0rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white});f.Ay.div.withConfig({displayName:"styles__CardHeader",componentId:"sc-3e222041-1"})(["padding:0 0.5rem;border-bottom:1px solid ",";padding-bottom:1.5rem;height:4rem;"],e=>{let{theme:t}=e;return t.colors["gray-50"]});let eq=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-3e222041-2"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]});f.Ay.div.withConfig({displayName:"styles__ListTeamContainer",componentId:"sc-3e222041-3"})(["display:grid;grid-template-columns:1fr;margin-top:1rem;"]),f.Ay.div.withConfig({displayName:"styles__ContainerLoading",componentId:"sc-3e222041-4"})(["display:flex;justify-content:center;margin-top:2rem;margin-bottom:2rem;"]),f.Ay.div.withConfig({displayName:"styles__EmptyMessage",componentId:"sc-3e222041-5"})(["text-align:center;font-size:",";margin-top:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.sm}),f.Ay.div.withConfig({displayName:"styles__ItemTeamMember",componentId:"sc-3e222041-6"})(["display:grid;grid-template-columns:1fr 1fr 0.2fr;grid-gap:0.5rem;border-top:1px solid ",";font-size:",";color:",";align-items:center;"],e=>{let{theme:t}=e;return t.colors["gray-50"]},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["gray-90"]}),f.Ay.div.withConfig({displayName:"styles__ActionsList",componentId:"sc-3e222041-7"})(["display:grid;grid-template-columns:1fr 1fr;align-items:center;"]),f.Ay.div.withConfig({displayName:"styles__ActionItemIcon",componentId:"sc-3e222041-8"})(["display:grid;place-items:center;cursor:pointer;"," color:",";"],e=>{let{disabled:t}=e;return t&&(0,f.AH)(["cursor:not-allowed;opacity:0.3;"])},e=>{let{theme:t}=e;return t.colors["gray-60"]});let eY=f.Ay.div.withConfig({displayName:"styles__InviteContentContainer",componentId:"sc-3e222041-9"})(["border-top:1px solid ",";padding:1rem 0;.input{margin-bottom:0;}"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),eZ=(0,f.Ay)(er.$).withConfig({displayName:"styles__SubmitButton",componentId:"sc-3e222041-10"})(["width:100%;font-weight:600;"]);f.Ay.div.withConfig({displayName:"styles__SeatsFullMessage",componentId:"sc-3e222041-11"})(["color:",";font-size:",";overflow:hidden;max-height:0;margin-top:0;transition:all 0.2s;background-color:",";color:",";font-weight:bold;border-radius:0.5rem;margin-left:0.5rem;margin-right:0.5rem;a{color:",";}",""],e=>{let{theme:t}=e;return t.colors.red},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.red},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white},e=>{let{isExpanded:t}=e;return t&&(0,f.AH)(["margin-top:0.5rem;max-height:100px;padding:1rem;"])}),f.Ay.div.withConfig({displayName:"styles__ModalContainer",componentId:"sc-3e222041-12"})(["background-color:",";width:100%;max-width:510px;justify-content:center;margin-left:auto;margin-right:auto;box-shadow:0px 4px 4px rgba(0,0,0,0.25),0px 1px 2px rgba(0,0,0,0.25);border-radius:8px;height:fit-content;min-height:235px;display:flex;flex-direction:column;transition:all 0.2s !important;padding-top:2rem;"],e=>{let{theme:t}=e;return t.colors.white}),f.Ay.div.withConfig({displayName:"styles__ModalHeader",componentId:"sc-3e222041-13"})(["padding:0 1rem;position:relative;"]),f.Ay.h3.withConfig({displayName:"styles__ModalTitle",componentId:"sc-3e222041-14"})(["margin:0;font-family:",";color:",";font-size:",";transition:all 0.2s;"],e=>{let{theme:t}=e;return t.fonts.secondary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.h3}),f.Ay.div.withConfig({displayName:"styles__ModalContent",componentId:"sc-3e222041-15"})(["overflow:auto;padding:0 1rem;",";margin-top:1.2rem;font-size:",";"],O.sj,e=>{let{theme:t}=e;return t.fontSize.body.md}),f.Ay.div.withConfig({displayName:"styles__FooterContent",componentId:"sc-3e222041-16"})(["padding:1rem 1rem;background-color:",";display:flex;border-top:2px solid ",";border-bottom-right-radius:8px;border-bottom-left-radius:8px;margin-top:auto;"],e=>{let{theme:t}=e;return t.colors["gray-30"]},e=>{let{theme:t}=e;return t.colors["gray-50"]}),(0,f.Ay)(er.$).withConfig({displayName:"styles__ConfirmCancelButton",componentId:"sc-3e222041-17"})(["width:auto;margin-left:1rem;background-color:",";"],e=>{let{theme:t}=e;return t.colors.red}),(0,f.Ay)(er.$).withConfig({displayName:"styles__CancelCancellationButton",componentId:"sc-3e222041-18"})(["width:auto;margin-left:auto;"]),f.Ay.span.withConfig({displayName:"styles__EmailContainer",componentId:"sc-3e222041-19"})(["width:auto;overflow:auto;",";margin:1.2rem 0rem;"],O.sj);let eW=(0,f.Ay)(eF.p).withConfig({displayName:"styles__StyledInput",componentId:"sc-3e222041-20"})(["background-color:",";.input-field{padding:0.6rem;}"],e=>{let{theme:t}=e;return t.colors["blue-20"]}),e$=f.Ay.div.withConfig({displayName:"styles__Footer",componentId:"sc-3e222041-21"})(["border-top:1px solid ",";margin-top:1rem;padding-top:1rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),eK=f.Ay.div.withConfig({displayName:"styles__FormFieldContainer",componentId:"sc-3e222041-22"})(["width:100%;display:flex;flex-direction:column;position:relative;"]),eJ=f.Ay.p.withConfig({displayName:"styles__ErrorContainer",componentId:"sc-3e222041-23"})(["display:block;margin:0;padding:0.5rem;color:",";font-size:",";font-weight:500;font-family:",";"],e=>{let{theme:t}=e;return t.colors.red},e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.fonts.quaternary});var eQ=n(20051),eX=n(41946),e0=n.n(eX);let e1=e=>{let{parentRef:t,updateCallback:n}=e,a=(0,r.wA)(),l=(0,i.useRef)(null),s=(0,i.useMemo)(()=>t||l,[t]);return(0,o.jsx)(eQ.l1,{innerRef:s,initialValues:{email:""},validationSchema:eU.Ik({email:eU.Yj().email("Invalid email address").required("Required")}),onSubmit:async(e,t)=>{let{isSubmitting:n,setSubmitting:o,resetForm:i}=t;n||(o(!0),await a((0,D.dZ)(e.email)),i())},children:e=>{let{values:t,handleSubmit:i,isSubmitting:r,handleChange:a,initialValues:l,isValid:s}=e;return(0,o.jsxs)(eG,{children:[(0,o.jsx)(eq,{children:"Invite Team Members"}),(0,o.jsxs)(eY,{children:[(0,o.jsxs)(eK,{children:[(0,o.jsx)(eW,{name:"email",placeholder:"Work Email",value:t.email,"data-testid":"inv
1ite-email-input",onChange:e=>{(e=>{a(e);let{name:o,value:i}=e.target,r={...t,[o]:i};n&&n(!e0()(r,l),r)})(e)},onKeyDown:e=>{"Enter"===e.key&&i()}}),(0,o.jsx)(eQ.Kw,{name:"email",component:eJ})]}),(0,o.jsx)(e$,{children:(0,o.jsx)(eZ,{variant:"primary",disabled:""===t.email||!s||r,onClick:i,loading:r,"data-testid":"invite-button",children:"INVITE"})})]})]})}})},e2=f.Ay.div.withConfig({displayName:"styles__NotificationContainer",componentId:"sc-2ff6267a-0"})(["background-color:",";border-radius:1.5rem;padding:1rem 1rem 0rem 1rem;"],e=>{let{theme:t}=e;return t.colors.white}),e3=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-2ff6267a-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),e5=f.Ay.div.withConfig({displayName:"styles__Body",componentId:"sc-2ff6267a-2"})(["border-top:1px solid ",";padding-top:0.5rem;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),e4=()=>{let e=(0,r.wA)(),t=(0,r.d4)(e=>{var t;return null==(t=e.User.data)?void 0:t.id}),n=(0,r.d4)(e=>e.Company.teamMembers.members),a=(0,i.useMemo)(()=>n.find(e=>e.id===t),[t,n]);return(0,o.jsxs)(e2,{children:[(0,o.jsx)(e3,{children:"Email Notifications"}),(0,o.jsx)(e5,{children:(0,o.jsx)(eC,{teamMember:a,onUpdateSettings:o=>{let i=n.map(e=>e.id===t?{...e,notificationSettings:{...e.notificationSettings,...o}}:e);e({type:ew.h.SET_TEAM_MEMBERS,payload:i})}})})]})},e7=f.Ay.div.withConfig({displayName:"styles__ContactCardContainer",componentId:"sc-dc86d8cb-0"})(["background-color:",";border-radius:1.5rem;padding:1.5rem;overflow:hidden;"],e=>{let{theme:t}=e;return t.colors.white}),e6=f.Ay.div.withConfig({displayName:"styles__Header",componentId:"sc-dc86d8cb-1"})(["padding-bottom:1rem;display:flex;gap:1rem;align-items:center;overflow:hidden;"]),e8=f.Ay.h2.withConfig({displayName:"styles__UserName",componentId:"sc-dc86d8cb-2"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;@media (max-width:","){font-size:",";}"],e=>{let{theme:t}=e;return t.fontSize.body.h3},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.containers.md},e=>{let{theme:t}=e;return t.fontSize.body.md}),e9=f.Ay.p.withConfig({displayName:"styles__UserTag",componentId:"sc-dc86d8cb-3"})(["font-size:",";font-family:",";font-weight:500;color:",";background-color:",";margin:0;width:fit-content;white-space:nowrap;padding:0.5rem 2rem;border-radius:0.5rem;@media (max-width:","){font-size:",";}"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.colors["green-40"]},e=>{let{theme:t}=e;return t.containers.md},e=>{let{theme:t}=e;return t.fontSize.body.sm}),te=f.Ay.div.withConfig({displayName:"styles__Body",componentId:"sc-dc86d8cb-4"})(["border-top:1px solid ",";padding-top:1rem;display:flex;flex-direction:column;gap:1rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),tt=(0,f.Ay)(eF.p).withConfig({displayName:"styles__StyledInput",componentId:"sc-dc86d8cb-5"})(["background-color:",";color:",";font-size:",";font-family:",";.input-field{padding:0.6rem;cursor:pointer;}.right-side-icon{right:0.4rem;}"],e=>{let{theme:t}=e;return t.colors["blue-20"]},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary}),tn=(0,f.Ay)(er.$).withConfig({displayName:"styles__EditButton",componentId:"sc-dc86d8cb-6"})(["background-color:",";color:",";border-radius:0.5rem;padding:0.2rem 0.5rem;font-weight:600;font-size:",";"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.fontSize.body.sm}),to=f.Ay.div.withConfig({displayName:"styles__LeftSide",componentId:"sc-dc86d8cb-7"})(["width:auto;overflow:hidden;"]),ti=f.Ay.div.withConfig({displayName:"styles__RightSide",componentId:"sc-dc86d8cb-8"})(["flex:1;overflow:hidden;min-width:0;display:flex;flex-direction:column;"]),tr=f.Ay.div.withConfig({displayName:"styles__NameContainer",componentId:"sc-dc86d8cb-9"})(["display:flex;overflow:hidden;gap:0.5rem;align-items:center;margin-bottom:",";width:100%;flex:1;@media (max-width:","){margin-bottom:",";}"],e=>{let{noMargin:t}=e;return t?"0rem":"0.75rem"},e=>{let{theme:t}=e;return t.containers.md},e=>{let{noMargin:t}=e;return t?"0rem":"0.2rem"}),ta=(0,f.Ay)(er.$).withConfig({displayName:"styles__EditNameButton",componentId:"sc-dc86d8cb-10"})(["background-color:transparent;padding:0.5rem;border-radius:0.5rem;color:",";:hover{background-color:transparent;box-shadow:none;}"],e=>{let{theme:t}=e;return t.colors["primary-dark"]}),tl=f.Ay.div.withConfig({displayName:"styles__NameInnerContainer",componentId:"sc-dc86d8cb-11"})(["flex:1;overflow:hidden;min-width:0;"]);var ts=n(40035),td=n(31996);let tc=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-dfbee52b-0"})([""]),tm=f.Ay.div.withConfig({displayName:"styles__InnerContainer",componentId:"sc-dfbee52b-1"})(["padding:2rem;@media (max-width:","){padding:1rem;}"],e=>{let{theme:t}=e;return t.containers.md}),tp=f.Ay.form.withConfig({displayName:"styles__FormContainer",componentId:"sc-ecc7cb32-0"})([""]),tu=f.Ay.div.withConfig({displayName:"styles__FormFieldContainer",componentId:"sc-ecc7cb32-1"})(["width:100%;display:flex;flex-direction:column;"]),ty=(0,f.Ay)(eF.p).withConfig({displayName:"styles__StyledInput",componentId:"sc-ecc7cb32-2"})(["background-color:",";"],e=>{let{theme:t}=e;return t.colors["blue-20"]}),tg=f.Ay.p.withConfig({displayName:"styles__ErrorContainer",componentId:"sc-ecc7cb32-3"})(["display:block;margin:0;padding:0.5rem;color:",";font-size:",";font-weight:500;font-family:",";"],e=>{let{theme:t}=e;return t.colors.red},e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.fonts.quaternary}),tf=f.Ay.div.withConfig({displayName:"styles__Footer",componentId:"sc-ecc7cb32-4"})(["display:flex;justify-content:center;border-top:1px solid ",";padding:1rem 0;margin-top:2rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),th=(0,f.Ay)(er.$).withConfig({displayName:"styles__StyledButton",componentId:"sc-ecc7cb32-5"})(["width:100%;"]),tx=e=>{let{currentName:t,parentRef:n,updateCallback:r,onSubmit:a,useLocalSubmit:l}=e,s=(0,i.useRef)(null),d=(0,i.useMemo)(()=>n||s,[n,s]);return(0,i.useEffect)(()=>{let e=d.current;return()=>{e&&e.resetForm()}},[d]),(0,o.jsx)(eQ.l1,{enableReinitialize:!0,innerRef:d,initialValues:{name:t||""},validationSchema:eU.Ik({name:eU.Yj().required("Required.").test("full-name","Please enter both a first and last name.",e=>!!e&&e.trim().split(/\s+/).length>=2)}),onSubmit:async(e,t)=>{let{setSubmitting:n}=t;a&&await a(e,()=>{n(!1)})},children:e=>{let{values:t,dirty:n,handleSubmit:i,setFieldValue:a,initialValues:s,isSubmitting:d}=e;return(0,o.jsxs)(tp,{onSubmit:i,children:[(0,o.jsxs)(tu,{children:[(0,o.jsx)(ty,{name:"name",label:"Full Name","data-testid":"company-name-input",value:t.name,onChange:e=>((e,n)=>{a(e,n);let o={...t,[e]:n};r&&r(!e0()(o,s),o)})("name",e.target.value)}),(0,o.jsx)(eQ.Kw,{name:"name",component:tg})]}),l&&(0,o.jsx)(tf,{children:(0,o.jsx)(th,{type:"submit",ariaLabel:"Submit notification updates",disabled:!n||d,loading:d,children:"Save"})})]})}})},tC=e=>{let{isOpen:t,onClose:n,user:a,onSuccess:l}=e,s=(0,r.wA)(),d=(0,i.useRef)(null),[c,m]=(0,i.useState)(!1),[p,u]=(0,i.useState)(!1),y=(0,i.useCallback)(async(e,t)=>{try{u(!0),await s((0,eh.hS)(e.name,async e=>{if(m(!1),t(),l){let t={...a,name:e.fullName,firstName:e.firstName,lastName:e.lastName};await l(t)}n()}))}finally{u(!1)}},[s,n,l,a]);return(0,o.jsx)(tc,{open:t,onClose:n,maxWidth:"sm",ignoreDialogWidth:!0,height:"auto",modalData:{showFooterDivi
1der:!0,titleIsSticky:!0,footerIsSticky:!0,modalTitle:"Edit Name",onNext:()=>d.current.handleSubmit(),onBack:n,nextButtonText:"Save",nextButtonLoading:p,nextButtonDisabled:p||!c,backButtonText:"Cancel",headerProps:{padding:"1rem 2rem",textAlign:"left"}},children:(0,o.jsx)(tm,{children:(0,o.jsx)(tx,{parentRef:d,onSubmit:y,currentName:a.name,updateCallback:e=>m(e)})})})},tb=()=>{let e=(0,r.wA)(),t=(0,m.Q)("md").isResponsive,[n,a]=(0,i.useState)(!1),l=(0,r.d4)(e=>{var t;return null==(t=e.Company.teamMembers)?void 0:t.members}),{isUpdatingEmail:s,isUpdatingPhone:d}=(0,r.d4)(e=>e.User),c=(0,r.d4)(e=>{var t;return null==(t=e.User.data)?void 0:t.id}),p=(0,i.useMemo)(()=>l.find(e=>e.id===c),[c,l]);return p?(0,o.jsxs)(e7,{children:[(0,o.jsxs)(e6,{children:[(0,o.jsx)(to,{children:(0,o.jsx)(eb.H,{size:t?"lg":"xl",image:p.pictureUrl,username:p.name})}),(0,o.jsxs)(ti,{children:[(0,o.jsxs)(tr,{noMargin:!p.isPrimaryUser,children:[(0,o.jsx)(tl,{children:(0,o.jsx)(e8,{children:p.name})}),(0,o.jsx)(eg.A,{title:"Edit name",children:(0,o.jsx)(ta,{type:"buton",ariaLabel:"Edit name","data-testid":"edit-name-button",onClick:()=>a(!0),children:(0,o.jsx)(td.q,{width:t?16:20,height:t?16:20})})})]}),p.isPrimaryUser&&(0,o.jsx)(e9,{children:"Primary User"})]})]}),(0,o.jsxs)(te,{children:[(0,o.jsx)(tt,{onClick:()=>e((0,eh.gQ)(!0)),label:"Email",readOnly:!0,placeholder:"Click to add email",value:p.email,"data-testid":"email-input",icon:(0,o.jsx)(tn,{type:"button",onClick:t=>{t.stopPropagation(),e((0,eh.gQ)(!0))},children:"EDIT"})}),(0,o.jsx)(tt,{onClick:()=>e((0,eh.kU)(!0)),label:"Phone",readOnly:!0,placeholder:"Click to add phone number",value:p.phone,"data-testid":"phone-input",icon:(0,o.jsx)(tn,{type:"button",onClick:t=>{t.stopPropagation(),e((0,eh.kU)(!0))},children:"EDIT"})})]}),n&&(0,o.jsx)(tC,{isOpen:n,onClose:()=>a(!1),user:p,onSuccess:t=>e((0,D.vO)(t))}),(0,o.jsx)(ts.ExtraVerificationModal,{onClose:()=>{e((0,eh.gQ)(!1)),e((0,eh.kU)(!1))},isOpen:s||d,onSuccess:t=>{if((0,ek.addSuccessNotification)("Successfully verified!"),s){let n=l.map(e=>e.id===c?{...e,email:t.email}:e);e({type:ew.h.SET_TEAM_MEMBERS,payload:n})}else if(d){let n=l.map(e=>e.id===c?{...e,phone:t.phone}:e);e({type:ew.h.SET_TEAM_MEMBERS,payload:n})}e((0,eh.gQ)(!1)),e((0,eh.kU)(!1))},needsToVerifyEmail:!0})]}):null},tw=()=>{let e=(0,m.Q)("lg").isResponsive;return(0,o.jsxs)(eO,{children:[(0,o.jsxs)(eH,{children:[(0,o.jsx)(tb,{}),(0,o.jsx)(eV,{}),(0,o.jsx)(e4,{})]}),e&&(0,o.jsx)(eV,{}),(0,o.jsxs)(eR,{children:[(0,o.jsx)(e1,{}),(0,o.jsx)(eV,{}),(0,o.jsx)(eB,{})]})]})},tv=f.Ay.div.withConfig({displayName:"styles__ContainerCards",componentId:"sc-621fab0-0"})(["display:grid;padding:1.5rem 0rem;grid-template-columns:5fr 4fr;grid-gap:1.5rem;@media (max-width:","){grid-template-columns:1fr;grid-gap:0rem;}"],e=>{let{theme:t}=e;return t.containers.lg}),t_=f.Ay.div.withConfig({displayName:"styles__LeftSection",componentId:"sc-621fab0-1"})([""]),tj=f.Ay.div.withConfig({displayName:"styles__RightSection",componentId:"sc-621fab0-2"})([""]),tA=f.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-621fab0-3"})(["width:90%;height:1px;background-color:",";margin:2rem auto;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),tI=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-de52bb36-0"})(["background-color:",";padding:1rem;padding-bottom:0rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white}),tN=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-de52bb36-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),tS=f.Ay.div.withConfig({displayName:"styles__InvoiceBody",componentId:"sc-de52bb36-2"})(["padding-bottom:1rem;border-top:1px solid ",";"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),tk=f.Ay.p.withConfig({displayName:"styles__NoItemsText",componentId:"sc-de52bb36-3"})(["font-size:",";color:",";text-align:center;margin:0;padding:1rem;font-family:",";font-weight:500;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),tE=f.Ay.span.withConfig({displayName:"styles__GigName",componentId:"sc-de52bb36-4"})(["font-size:",";color:",";font-weight:400;font-family:",";margin:0;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),tT=f.Ay.span.withConfig({displayName:"styles__Dot",componentId:"sc-de52bb36-5"})(["font-size:",";color:",";font-weight:400;font-family:",";margin:0;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors["gray-06"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),tM=f.Ay.span.withConfig({displayName:"styles__InvoiceType",componentId:"sc-de52bb36-6"})(["font-size:",";color:",";font-weight:400;font-family:",";margin:0;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),tP=f.Ay.p.withConfig({displayName:"styles__InvoiceDetails",componentId:"sc-de52bb36-7"})(["margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),tz=f.Ay.div.withConfig({displayName:"styles__InvoicesFooter",componentId:"sc-de52bb36-8"})(["border-top:1px solid ",";padding:1rem 0;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),tD=(0,f.Ay)(er.$).withConfig({displayName:"styles__ViewMoreInvoicesButton",componentId:"sc-de52bb36-9"})(["margin:0 auto;font-weight:600;font-family:",";width:50%;"],e=>{let{theme:t}=e;return t.fonts.quaternary}),tL=f.Ay.div.withConfig({displayName:"styles__LinkWrapper",componentId:"sc-de52bb36-10"})(["cursor:pointer;"]),tB=f.Ay.button.withConfig({displayName:"styles__ViewInvoiceButton",componentId:"sc-de52bb36-11"})(["margin-left:auto;color:",";background-color:",";padding:1rem;border-radius:0.5rem;display:flex;align-items:center;border:none;cursor:pointer;"],e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.colors["gray-03"]});var tO=n(86068);let tH=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-686a20a0-0"})([".modal-back-button{padding:0.55rem 1.5rem;}.modal-next-button{padding:0.55rem 1.5rem;}"]),tR=f.Ay.div.withConfig({displayName:"styles__InvoiceListContainer",componentId:"sc-686a20a0-1"})(["display:flex;flex-direction:column;padding:0 1rem 1rem 1rem;"]),tV=f.Ay.div.withConfig({displayName:"styles__EmptyListContainer",componentId:"sc-686a20a0-2"})(["display:flex;flex-direction:column;gap:1rem;padding-top:1rem;"]);var tU=n(73307),tF=n(34568),tG=n(81165);let tq=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-d5bba4d3-0"})([""]),tY=f.Ay.div.withConfig({displayName:"styles__Container",componentId:"sc-d5bba4d3-1"})(["display:flex;flex-direction:column;gap:2rem;padding:1.5rem;"]),tZ=f.Ay.div.withConfig({displayName:"styles__Header",componentId:"sc-d5bba4d3-2"})(["display:flex;flex-direction:column;gap:1rem;"]),tW=f.Ay.h2.withConfig({displayName:"styles__HeaderTitle",componentId:"sc-d5bba4d3-3"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;line-height:1.2;"],e=>{let{theme:t}=e;return t.fontSize.h2},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),t$=f.Ay.p.withConfig({displayName:"styles__HeaderDescription",componentId:"sc-d5bba4d3-4"})(["font-size:",";font-family:",";color:",";margin:0;"],e=>{let{theme:t}=e;return t.fontSize.body.xs},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),tK=f.Ay.p.withConfig({displayName:"styles__HeaderPaidDate",componentId:"sc-d5bba4d3-5"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding:0.75rem 1.5rem;background-color:",";border-radius:999px;width:fit-content;"],e=>{let{theme:t}=e;return t.fontSize.body.xs},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors["blue-05"]}),tJ=f.Ay.p.withConfig({displayName:"styles__HeaderFailedStatus",componentId:"sc-d5bba4d3-6"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding:0.75rem 1.5rem;background-color:",";border-radius:999px;width:fit-content;"],e=>{let{theme:t}=e;return t.fontSize.body.xs},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["red-orange"]},e=>{let{theme:t}=e;return t.colors["red-05"]}),tQ=f.Ay.div.withConfig({displayName:"styles__DescriptionGrid",componentId:"sc-d5bba4d3-7"})(["display:grid;grid-template-areas:",";grid-template-columns:",";grid-template-rows:1fr;grid-row-gap:1px;width:100%;height:100%;color:",";background-color:",";"],e=>{let{hasHours:t,hasQuantity:n}=e,o=["description"];return n&&o.push("quantity"),t&&o.push("hours"),o.push("amount"),o.join(" ")},e=>{let{hasHours:t,hasQuantity:n}=e,o=["2fr"];return n&&o.push("1fr"),t&&o.push("1fr"),o.push("1fr"),o.join(" ")},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.colors["gray-06"]}),tX=f.Ay.p.withConfig({displayName:"styles__DescriptionGridItemTitle",componentId:"sc-d5bba4d3-8"})(["font-size:",";font-family:",";color:",";margin:0;text-align:left;align-content:end;height:100%;"," background-color:white;padding-bottom:12px;border-bottom:1px solid ",";"],e=>{let{theme:t}=e;return t.fontSize.body.xs},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{align:t}=e;return t&&(0,f.AH)(["text-align:",";"],t)},e=>{let{theme:t}=e;return t.colors.black}),t0=f.Ay.div.withConfig({displayName:"styles__DescriptionGridItem",componentId:"sc-d5bba4d3-9"})(["margin:0;text-align:left;justify-content:left;"," background-color:white;padding:18px 0;display:flex;align-items:center;gap:4rem;"],e=>{let{align:t}=e;return t&&(0,f.AH)(["text-align:",";justify-content:",";"],t,t)}),t1=f.Ay.p.withConfig({displayName:"styles__DescriptionGridItemText",componentId:"sc-d5bba4d3-10"})(["font-size:",";font-family:",";color:",";margin:0;text-align:left;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),t2=f.Ay.div.withConfig({displayName:"styles__TotalAmountContainer",componentId:"sc-d5bba4d3-11"})(["width:100%;display:flex;justify-content:flex-end;"]),t3=f.Ay.div.withConfig({displayName:"styles__TotalAmount",componentId:"sc-d5bba4d3-12"})(["display:flex;align-items:center;gap:2rem;border-top:1px solid ",";border-bottom:1px solid ",";padding:0.25rem 0;width:fit-content;"],e=>{let{theme:t}=e;return t.colors["gray-06"]},e=>{let{theme:t}=e;return t.colors["gray-06"]}),t5=f.Ay.p.withConfig({displayName:"styles__TotalAmountTitle",componentId:"sc-d5bba4d3-13"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;text-align:right;background-color:white;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),t4=f.Ay.p.withConfig({displayName:"styles__TotalAmountValue",componentId:"sc-d5bba4d3-14"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;text-align:right;background-color:white;"],e=>{let{theme:t}=e;return t.fontSize.h2},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]});f.Ay.p.withConfig({displayName:"styles__DescriptionGridItemValue",componentId:"sc-d5bba4d3-15"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]});let t7=f.Ay.div.withConfig({displayName:"styles__AvatarContainer",componentId:"sc-d5bba4d3-16"})(["width:5rem;"]);var t6=n(28359),t8=n(74359),t9=n(41143),ne=n(5962);let nt=e=>{var t,n,r,a,l,d,c,m,p;let{isOpen:u,onClose:y,invoiceId:g}=e,f=(0,s.useRouter)(),h=(0,i.useCallback)(async()=>{let e=await (0,t9.LN)(g);return(null==e?void 0:e.data)||[]},[g]),{isLoading:x,data:C={}}=(0,t8.I)({queryKey:["invoiceDetails",g],queryFn:h,staleTime:1/0}),b=(null==C?void 0:C.status)!=="succeeded"&&(null==C?void 0:C.status)!=="paid";return x?(0,o.jsx)(tq,{open:u,onClose:y,ariaLabel:"Invoice Details Modal",maxWidth:"sm",height:"auto",children:(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:(0,o.jsx)(ne.A,{})})}):(0,o.jsx)(tq,{open:u,onClose:y,ariaLabel:"Invoice Details Modal",maxWidth:(null==(t=C.invoiceItems)?void 0:t.some(e=>{var t;return e.hours||(null==(t=e.studentProfiles)?void 0:t.length)>2}))?"md":"sm",height:"auto",modalData:{modalTitle:"".concat(C.type," Invoice"),headerVariant:"secondary",titleIsSticky:!0,nextButtonText:Array.isArray(C.ctaButtons)&&C.ctaButtons&&(null==(n=C.ctaButtons[1])?void 0:n.label)?null==(r=C.ctaButtons[1])?void 0:r.label:null,backButtonText:Array.isArray(C.ctaButtons)&&C.ctaButtons&&(null==(a=C.ctaButtons[0])?void 0:a.label)?null==(l=C.ctaButtons[0])?void 0:l.label:null,nextButtonDisabled:!1,onBack:()=>{var e,t,n,o;Array.isArray(C.ctaButtons)&&C.ctaButtons&&(null==(e=C.ctaButtons[0])?void 0:e.url)&&((null==(t=C.ctaButtons[0])?void 0:t.url.startsWith("http"))?window.open(null==(n=C.ctaButtons[0])?void 0:n.url,"_blank"):f.push("".concat(null==(o=C.ctaButtons[0])?void 0:o.url)))},onNext:()=>{var e,t;Array.isArray(C.ctaButtons)&&C.ctaButtons&&(null==(e=C.ctaButtons[1])?void 0:e.url)&&window.open(null==(t=C.ctaButtons[1])?void 0:t.url,"_blank")},buttonProps:{nextButton:{padding:"tight"},backButton:{padding:"tight"}}},children:(0,o.jsxs)(tY,{children:[(0,o.jsxs)(tZ,{children:[(0,o.jsx)(tW,{children:C.title}),C.description&&(0,o.jsx)(t$,{children:C.description}),b&&(0,o.jsx)(tJ,{children:"Payment Failed"}),!b&&(0,o.jsx)(tK,{children:C.paidText||""})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)(tQ,{hasHours:null==(d=C.invoiceItems)?void 0:d.some(e=>e.hours),hasQuantity:null==(c=C.invoiceItems)?void 0:c.some(e=>
1e.quantity),children:[(0,o.jsx)(tX,{children:"Description"}),(null==(m=C.invoiceItems)?void 0:m.some(e=>e.quantity))&&(0,o.jsx)(tX,{align:"right",children:"Quantity"}),(null==(p=C.invoiceItems)?void 0:p.some(e=>e.hours))&&(0,o.jsx)(tX,{align:"right",children:"Hours"}),(0,o.jsx)(tX,{align:"right",children:"Amount"}),C.invoiceItems.map((e,t)=>{var n;return(0,o.jsxs)(i.Fragment,{children:[(0,o.jsxs)(t0,{children:[(0,o.jsx)(t1,{children:e.description}),!e.quantity&&(null==(n=e.studentProfiles)?void 0:n.length)>0&&(0,o.jsx)(t7,{children:(0,o.jsx)(t6.Z,{data:e.studentProfiles.map(e=>({id:e.id,pictureUrl:e.pictureUrl,name:e.fullName})),maxItems:2})})]}),C.invoiceItems.some(e=>e.quantity)&&(0,o.jsxs)(t0,{align:"right",children:[e.studentProfiles&&(0,o.jsx)(t7,{children:(0,o.jsx)(t6.Z,{spacing:"0.75rem",data:e.studentProfiles.map(e=>({id:e.id,pictureUrl:e.pictureUrl,name:e.fullName})),maxItems:2})}),(0,o.jsx)(t1,{children:e.quantity})]}),C.invoiceItems.some(e=>e.hours)&&(0,o.jsx)(t0,{align:"right",children:(0,o.jsx)(t1,{children:e.hours})}),(0,o.jsx)(t0,{align:"right",children:(0,o.jsxs)(t1,{children:["$",(0,tO.Bd)(e.amount)]})})]},e.id||t)})]}),(0,o.jsx)(t2,{children:(0,o.jsxs)(t3,{children:[(0,o.jsx)(t5,{children:"Total"}),(0,o.jsxs)(t4,{children:["$",(0,tO.Bd)(C.totalAmount)]})]})})]})]})})},nn=e=>{let{isOpen:t,onClose:n}=e,[r,a]=(0,i.useState)([]),[l,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null),{hasMore:m,isLoading:p,onResetState:u,onSearch:y}=(0,tU.T)({apiUrl:"/v3/company/past-invoices",itensPerPage:15,onParseResponse:e=>{let{data:t}=e;return a([...r,...t.items]),t}});return(0,i.useEffect)(()=>()=>{a([]),u()},[u]),(0,o.jsxs)(tH,{open:t,onClose:n,maxWidth:"sm",height:"auto",modalData:{modalTitle:"Invoices",titleIsSticky:!0,footerIsSticky:!0,showFooterDivider:!0,backButtonText:"CLOSE",nextButtonText:"VIEW MORE",nextButtonLoading:p,nextButtonDisabled:!m||p,onBack:n,headerProps:{textAlign:"left",padding:"1rem 1rem"},onNext:()=>{var e;y("",{lastPaymentIntentId:null==(e=r[r.length-1])?void 0:e.stripePaymentIntentId})}},children:[(0,o.jsxs)(tR,{children:[p&&0===r.length&&(0,o.jsx)(tV,{children:[0,1,2,3,4,5,6,7].map(()=>(0,o.jsx)(tF.G,{height:92}))}),r.length>0&&r.map((e,t)=>{let n=(0,tO.n9)(e.date);return(0,o.jsx)(tL,{onClick:()=>{s(!0),c(e.stripeInvoiceId)},children:(0,o.jsx)(P,{topBorder:0!==t,url:e.invoiceUrl,name:"".concat(n," - ").concat((0,tO.vv)(e.amount)),status:e.status,customFileType:(0,o.jsxs)(tP,{children:[(0,o.jsx)(tM,{children:e.description}),e.gigName&&(0,o.jsx)(tT,{children:" • "}),e.gigName&&(0,o.jsx)(tE,{children:e.gigName})]}),customButton:(0,o.jsx)(tB,{children:(0,o.jsx)(tG.b,{width:"22px",height:"22px"})})},"transactions-".concat(e.invoiceUrl))},"invoice-wrapper-".concat(e.stripeInvoiceId||t))})]}),l&&(0,o.jsx)(nt,{isOpen:l,onClose:()=>s(!1),invoiceId:d})]})},no=i.memo(()=>{let[e,t]=(0,i.useState)(!1),n=(0,r.d4)(e=>e.Billing.lastTransations||[]),a=(0,r.d4)(e=>e.Billing.isLoadingTransactions),l=(0,r.d4)(e=>e.Billing.hasMoreTransactions),[s,d]=(0,i.useState)(!1),[c,m]=(0,i.useState)(null);return(0,o.jsxs)(tI,{children:[(0,o.jsx)(tN,{children:"Invoices"}),(0,o.jsxs)(tS,{"data-testid":"invoices-body",children:[a&&[0,1,2].map(e=>(0,o.jsx)(tF.G,{height:60},"loader-".concat(e))),!a&&0===n.length&&(0,o.jsx)(tk,{children:"No Invoices"}),!a&&n.length>0&&n.map((e,t)=>{let n=(0,tO.n9)(e.date);return(0,o.jsx)(tL,{onClick:()=>{d(!0),m(e.stripeInvoiceId)},"data-testid":"invoice-item-".concat(t),children:(0,o.jsx)(P,{topBorder:0!==t,url:e.invoiceUrl,name:"".concat(n," - ").concat((0,tO.vv)(e.amount)),testId:"invoice-".concat(t),status:e.status,customFileType:(0,o.jsxs)(tP,{children:[(0,o.jsx)(tM,{"data-testid":"invoice-description-".concat(t),children:(null==e?void 0:e.description)||""}),e.gigName&&(0,o.jsx)(tT,{children:" • "}),e.gigName&&(0,o.jsx)(tE,{children:e.gigName})]}),customButton:(0,o.jsx)(tB,{children:(0,o.jsx)(tG.b,{width:"22px",height:"22px"})})},"transactions-".concat(e.invoiceUrl))},"invoice-wrapper-".concat(e.stripeInvoiceId||t))})]}),l&&(0,o.jsx)(tz,{children:(0,o.jsx)(tD,{type:"button",onClick:()=>t(!0),variant:"lightBlue",children:"VIEW MORE"})}),e&&(0,o.jsx)(nn,{isOpen:e,onClose:()=>t(!1)}),s&&(0,o.jsx)(nt,{isOpen:s,onClose:()=>d(!1),invoiceId:c})]})}),ni=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-d06315b7-0"})(["background-color:",";padding:1rem;padding-bottom:0rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white}),nr=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-d06315b7-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]});f.Ay.div.withConfig({displayName:"styles__UpcomingPaymentsBody",componentId:"sc-d06315b7-2"})(["border-top:1px solid ",";padding:1rem 0;"],e=>{let{theme:t}=e;return t.colors["blue-30"]});let na=f.Ay.p.withConfig({displayName:"styles__NoPaymentsText",componentId:"sc-d06315b7-3"})(["padding:2rem;font-size:",";color:",";text-align:center;margin:0;font-family:",";font-weight:500;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),nl=f.Ay.div.withConfig({displayName:"styles__BodySection",componentId:"sc-d06315b7-4"})(["border-top:1px solid ",";& >
1 div:not(:last-child){border-bottom:1px solid ",";}"],e=>{let{theme:t}=e;return t.colors["blue-30"]},e=>{let{theme:t}=e;return t.colors["blue-30"]}),ns=(0,f.Ay)(er.$).withConfig({displayName:"styles__ViewMoreButton",componentId:"sc-d06315b7-5"})(["width:100%;margin-bottom:1rem;font-weight:600;"]),nd=f.Ay.div.withConfig({displayName:"styles__FooterSection",componentId:"sc-d06315b7-6"})(["border-top:1px solid ",";padding-top:1rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),nc=(0,f.Ay)(X.A).withConfig({displayName:"styles__StyledModalWrapper",componentId:"sc-63cd3290-0"})([".modal-back-button{padding:0.5rem 1rem;}.modal-next-button{padding:0.5rem 1rem;}"]),nm=f.Ay.div.withConfig({displayName:"styles__PaymentListContainer",componentId:"sc-63cd3290-1"})(["display:flex;flex-direction:column;padding:0 2rem 1rem 2rem;& > div:not(:last-child){border-bottom:1px solid ",";}"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),np=f.Ay.div.withConfig({displayName:"styles__EmptyListContainer",componentId:"sc-63cd3290-2"})(["display:flex;flex-direction:column;gap:1rem;padding-top:1rem;"]),nu=f.Ay.p.withConfig({displayName:"styles__ScheduledDate",componentId:"sc-fd1b4724-0"})(["font-size:",";font-family:",";font-weight:400;color:",";margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gray-120"]}),ny=f.Ay.div.withConfig({displayName:"styles__RightSide",componentId:"sc-fd1b4724-1"})(["display:flex;align-items:center;justify-content:end;flex-shrink:0;"]),ng=f.Ay.p.withConfig({displayName:"styles__PaymentAmount",componentId:"sc-fd1b4724-2"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;flex-shrink:0;text-align:right;"],e=>{let{theme:t}=e;return t.fontSize.h2},e=>{let{theme:t}=e;return t.fonts.secondary},e=>{let{theme:t}=e;return t.colors.primary}),nf=f.Ay.div.withConfig({displayName:"styles__LeftSide",componentId:"sc-fd1b4724-3"})(["display:flex;flex-direction:column;gap:0.3rem;overflow:hidden;"]),nh=f.Ay.h3.withConfig({displayName:"styles__PaymentTitle",componentId:"sc-fd1b4724-4"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gray-120"]}),nx=f.Ay.div.withConfig({displayName:"styles__PaymentContainer",componentId:"sc-fd1b4724-5"})(["align-items:center;padding:1.5rem 0;overflow:hidden;display:grid;grid-template-columns:auto auto;grid-gap:1rem;transition:opacity 0.3s ease;text-decoration:none;cursor:",";:hover{opacity:",";}"],e=>{let{cursorPointer:t}=e;return t?"pointer":"default"},e=>{let{cursorPointer:t}=e;return t?.7:1});var nC=n(48230),nb=n.n(nC);let nw=e=>{let{gigId:t,scheduledDate:n,title:i,amount:r}=e,a=(0,tO.ZD)(n);return t?(0,o.jsx)(eg.A,{title:"View timesheets",children:(0,o.jsx)("div",{children:(0,o.jsxs)(nx,{as:nb(),href:"/company/gigs/".concat(t,"/monthly"),cursorPointer:!0,children:[(0,o.jsxs)(nf,{children:[(0,o.jsxs)(nh,{children:[i," Compensation"]}),(0,o.jsxs)(nu,{children:["Scheduled ",a]})]}),(0,o.jsx)(ny,{children:(0,o.jsx)(ng,{children:r})})]})})}):(0,o.jsxs)(nx,{children:[(0,o.jsxs)(nf,{children:[(0,o.jsxs)(nh,{children:[i," Subscription"]}),(0,o.jsxs)(nu,{children:["Scheduled ",a]})]}),(0,o.jsx)(ny,{children:(0,o.jsx)(ng,{children:r})})]})};var nv=n(70918);let n_=e=>{let{isOpen:t,onClose:n,nextBillingDate:r,productId:a,isEnterprise:l,currentUsageCount:s}=e,[d,c]=(0,i.useState)([]),{onNext:m,hasMore:p,isLoading:u,onResetState:y}=(0,tU.T)({apiUrl:"/v3/payment/upcoming-payments",itensPerPage:15,customItems:d,onParseResponse:e=>{let{data:t}=e;return c(Array.from(new Map([...d,...t.items].map(e=>[e.gigId,e])).values())),t}});(0,i.useEffect)(()=>()=>{c([]),y()},[y]);let g=(0,i.useMemo)(()=>{if(u)return d;let e=nv.JK.find(e=>e.id===a);if(!e)return d;let t=e.price;if(7===e.prodId&&(t=s>10?9*s:99),0===d.length)return[{gigId:null,gigTitle:(0,nv.nK)(e),scheduledProcessDate:r,upcomingPaymentAmount:t,isSubscription:!0}
1];let n=[...d],o=new Date(d[d.length-1].scheduledProcessDate);return(new Date(r)<o||!p)&&n.push({gigId:null,gigTitle:(0,nv.nK)(e),scheduledProcessDate:r,upcomingPaymentAmount:t,isSubscription:!0}),n.sort((e,t)=>new Date(e.scheduledProcessDate)-new Date(t.scheduledProcessDate)),n},[s,p,u,d,r,a]);return(0,o.jsx)(nc,{open:t,onClose:n,maxWidth:"sm",height:"auto",modalData:{modalTitle:"Upcoming Payments",titleIsSticky:!0,footerIsSticky:!0,showFooterDivider:!0,backButtonText:"CLOSE",nextButtonText:"VIEW MORE",nextButtonDisabled:!p||u,nextButtonLoading:u,onBack:n,onNext:m,headerProps:{textAlign:"left",padding:"1rem 2rem"}},children:(0,o.jsxs)(nm,{children:[u&&0===g.length&&(0,o.jsx)(np,{children:[0,1,2,3,4,5].map(e=>(0,o.jsx)(tF.G,{height:70},"payment-".concat(e)))}),g.length>0&&g.map(e=>(0,o.jsx)(nw,{isSubscription:e.isSubscription,gigId:e.gigId,title:e.gigTitle,scheduledDate:e.scheduledProcessDate,amount:l&&!e.gigId?"Enterprise":(0,tO.vv)(e.upcomingPaymentAmount)},e.gigId))]})})},nj=i.memo(()=>{let e=(0,r.wA)(),[t,n]=(0,i.useState)(!1),a=(0,r.d4)(e=>e.Billing.loadingUpcomingPayments),{nextBillingDate:l,productId:s,isLoadingTransactions:d,upcomingPayments:c,currentUsageCount:m,status:p}=(0,r.d4)(e=>{let{Billing:t}=e;return t}),u=(0,r.d4)(e=>{let t=nv.JK.find(t=>{var n;return t.id===(null==(n=e.User.data.company)?void 0:n.productId)});return(null==t?void 0:t.isEnterprise)?"Enterprise":(null==t?void 0:t.isPremium)?"Premium":void 0});(0,i.useEffect)(()=>{e((0,y.Nq)())},[]);let g=(0,i.useMemo)(()=>{let e=nv.JK.find(e=>e.id===s);if(!e||"canceled"===p)return c;let t=e.price;if(7===e.id&&(t=m>10?9*m:99),0===c.length)return[{gigId:null,gigTitle:(0,nv.nK)(e),scheduledProcessDate:l,upcomingPaymentAmount:t}];let n=c.slice(0,3),o=new Date(c[c.length-1].scheduledProcessDate);return new Date(l)<o&&(n.pop(),n.push({gigId:null,gigTitle:(0,nv.nK)(e),scheduledProcessDate:l,upcomingPaymentAmount:t}),n.sort((e,t)=>new Date(e.scheduledProcessDate)-new Date(t.scheduledProcessDate))),n},[p,c,l,s,m]);return(0,o.jsxs)(ni,{children:[(0,o.jsx)(nr,{children:"Upcoming Payments"}),(0,o.jsxs)(nl,{children:[(a||d)&&[0,1,2].map(e=>(0,o.jsx)(tF.G,{height:60},"rect-".concat(e))),!a&&!d&&0===g.length&&(0,o.jsx)(na,{children:"No Upcoming Payments"}),!a&&!d&&g.length>0&&g.map(e=>(0,o.jsx)(nw,{gigId:e.gigId,title:e.gigTitle,scheduledDate:e.scheduledProcessDate,amount:u&&!e.gigId?u:(0,tO.vv)(e.upcomingPaymentAmount)},e.gigId))]}),!a&&!d&&c.length>3&&(0,o.jsx)(nd,{children:(0,o.jsx)(ns,{variant:"ghosted",onClick:()=>n(!0),children:"VIEW MORE"})}),t&&(0,o.jsx)(n_,{isOpen:t,onClose:()=>n(!1),nextBillingDate:l,productId:s,isEnterprise:u,currentUsageCount:m})]})}),nA=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-1a58321d-0"})(["background-color:",";padding:1rem;padding-bottom:0rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white}),nI=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-1a58321d-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),nN=f.Ay.div.withConfig({displayName:"styles__CurrentPlanBody",componentId:"sc-1a58321d-2"})(["border-top:1px solid ",";"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),nS=f.Ay.div.withConfig({displayName:"styles__ComponentContainer",componentId:"sc-1a58321d-3"})(["padding:1.5rem 0;"]),nk=f.Ay.h3.withConfig({displayName:"styles__ComponentTitle",componentId:"sc-1a58321d-4"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:0.5rem;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),nE=f.Ay.p.withConfig({displayName:"styles__NoItemsText",componentId:"sc-1a58321d-5"})(["font-size:",";color:",";text-align:center;margin:0;padding:1rem;font-family:",";font-weight:500;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fonts.quaternary}),nT=f.Ay.div.withConfig({displayName:"styles__GigContainer",componentId:"sc-1a58321d-6"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));grid-gap:1rem;"]),nM=f.Ay.div.withConfig({displayName:"styles__ActiveGigContainer",componentId:"sc-1a58321d-7"})(["display:flex;flex-direction:column;padding:0.5rem;overflow:hidden;cursor:pointer;text-decoration:none;"]),nP=f.Ay.div.withConfig({displayName:"styles__CompanyImageContainer",componentId:"sc-1a58321d-8"})(["position:relative;"]),nz=f.Ay.img.withConfig({displayName:"styles__CompanyImage",componentId:"sc-1a58321d-9"})(["width:100%;height:10rem;object-fit:cover;border-radius:1.5rem;"]),nD=f.Ay.p.withConfig({displayName:"styles__GigTitle",componentId:"sc-1a58321d-10"})(["margin:0;font-size:",";color:",";font-family:",";font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),nL=f.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-1a58321d-11"})(["background-color:",";height:1px;width:100%;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),nB=f.Ay.div.withConfig({displayName:"styles__CurrentTierContainer",componentId:"sc-1a58321d-12"})(["display:flex;justify-content:space-between;align-items:center;"]),nO=f.Ay.p.withConfig({displayName:"styles__PlanText",componentId:"sc-1a58321d-13"})(["margin:0;font-size:",";color:",";font-family:",";font-weight:600;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary}),nH=(0,f.Ay)(er.$).withConfig({displayName:"styles__PlanCTAButton",componentId:"sc-1a58321d-14"})(["background-color:transparent;color:",";padding:0.3rem;:hover{box-shadow:none;scale:0.97;}"],e=>{let{theme:t}=e;return t.colors.primary}),nR=f.Ay.div.withConfig({displayName:"styles__UsageProgressBar",componentId:"sc-1a58321d-15"})(["width:100%;height:20px;background-color:",";border-radius:12px;margin-top:0.5rem;position:relative;overflow:hidden;&::before{content:'';position:absolute;top:0;left:0;width:","%;height:100%;background-color:",";border-top-right-radius:8px;border-bottom-right-radius:8px;transition:all 0.3s;}"],e=>{let{theme:t}=e;return t.colors["blue-10"]},e=>{let{percentage:t}=e;return t},e=>{let{theme:t}=e;return t.colors.primary}),nV=f.Ay.div.withConfig({displayName:"styles__PlanTitleContainer",componentId:"sc-1a58321d-16"})(["display:flex;justify-content:space-between;align-items:center;background:linear-gradient(95deg,#92e3a9,#d6f559);width:100%;border-radius:0.75rem;padding:1rem 1rem;gap:1rem;margin-bottom:1.5rem;@media (max-width:","){flex-direction:column;align-items:flex-start;}@media (max-width:","){flex-direction:column;align-items:flex-start;}"],e=>{let{theme:t}=e;return t.breakpoints.lg},e=>{let{theme:t}=e;return t.breakpoints.md}),nU=f.Ay.h3.withConfig({displayName:"styles__PlanTitle",componentId:"sc-1a58321d-17"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-right:2rem;"],e=>{let{theme:t}=e;return t.fontSize.h3},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),nF=f.Ay.p.withConfig({displayName:"styles__PlanDescription",componentId:"sc-1a58321d-18"})(["font-size:",";font-family:",";font-weight:500;color:",";margin:0;text-align:right;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),nG=f.Ay.h3.withConfig({displayName:"styles__PlanCostText",componentId:"sc-1a58321d-19"})(["margin:0;font-size:",";font-family:",";color:",";font-weight:500;text-align:center;padding:1.5rem 0 0.5rem 0;border-top:1px solid ",";margin-top:0.5rem;"],e=>{let{theme:t}=e;return t.fontSize.h1},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.colors["blue-30"]}
1),nq=f.Ay.p.withConfig({displayName:"styles__SubscriptionDetails",componentId:"sc-1a58321d-20"})(["text-align:center;font-weight:500;font-size:",";border-top:1px solid ",";border-bottom:1px solid ",";padding:1.5rem 0;margin:0;color:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors["blue-30"]},e=>{let{theme:t}=e;return t.colors["blue-30"]},e=>{let{theme:t,color:n}=e;return n?t.colors[n]:t.colors["primary-dark"]}),nY=f.Ay.div.withConfig({displayName:"styles__ButtonsContainer",componentId:"sc-1a58321d-21"})(["display:flex;padding-top:1.5rem;align-items:center;justify-content:center;gap:1rem;@media (max-width:","){flex-direction:column;align-items:center;}"],e=>{let{theme:t}=e;return t.breakpoints.lg}),nZ=f.Ay.div.withConfig({displayName:"styles__SubscriptionActionContainer",componentId:"sc-1a58321d-22"})(["padding-top:1rem;"]),nW=(0,f.Ay)(er.$).withConfig({displayName:"styles__StyledManageButton",componentId:"sc-1a58321d-23"})(["font-weight:600;width:40%;padding:0.7rem 1rem;border:none;@media (max-width:","){width:50%;}@media (max-width:","){width:100%;}"],e=>{let{theme:t}=e;return t.breakpoints.lg},e=>{let{theme:t}=e;return t.breakpoints.md}),n$=(0,f.Ay)(er.$).withConfig({displayName:"styles__StyledPlansButton",componentId:"sc-1a58321d-24"})(["font-weight:600;width:40%;padding:0.7rem 1rem;background:",";border:none;@media (max-width:","){width:50%;}@media (max-width:","){width:100%;}"],e=>{let{theme:t}=e;return t.colors["primary-gradient"]},e=>{let{theme:t}=e;return t.breakpoints.lg},e=>{let{theme:t}=e;return t.breakpoints.md}),nK=f.Ay.div.withConfig({displayName:"styles__ContainerPillStatus",componentId:"sc-1a58321d-25"})(["position:absolute;top:0.5rem;right:0.5rem;"]);var nJ=n(74732),nQ=n(56206),nX=n(74919);let n0=f.Ay.div.withConfig({displayName:"styles__ResumeContainer",componentId:"sc-f8bb38a1-0"})(["padding:1rem;"]),n1=f.Ay.p.withConfig({displayName:"styles__AlertText",componentId:"sc-f8bb38a1-1"})(["margin:0;font-size:",";font-family:",";font-weight:500;color:",";text-align:center;margin-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gray-120"]}),n2=f.Ay.div.withConfig({displayName:"styles__PlanTitleContainer",componentId:"sc-f8bb38a1-2"})(["display:flex;justify-content:space-between;align-items:center;background:linear-gradient(95deg,#92e3a9,#d6f559);width:100%;border-radius:0.75rem;padding:1rem 1rem;gap:1rem;margin-bottom:1rem;@media (max-width:","){flex-direction:column;align-items:flex-start;}@media (max-width:","){flex-direction:column;align-items:flex-start;}"],e=>{let{theme:t}=e;return t.breakpoints.lg},e=>{let{theme:t}=e;return t.breakpoints.md}),n3=f.Ay.h3.withConfig({displayName:"styles__PlanTitle",componentId:"sc-f8bb38a1-3"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-right:2rem;"],e=>{let{theme:t}=e;return t.fontSize.h3},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),n5=f.Ay.p.withConfig({displayName:"styles__PlanDescription",componentId:"sc-f8bb38a1-4"})(["font-size:",";font-family:",";font-weight:500;color:",";margin:0;text-align:right;"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),n4=e=>{let{isOpen:t,onClose:n,tier:a}=e,l=(0,r.wA)(),{isLoadingResumeSubscription:s}=(0,r.d4)(e=>e.Billing),d=(0,i.useCallback)(()=>{l((0,y.R7)(()=>{window.location.reload()}))},[]);return(0,o.jsx)(X.A,{open:t,onClose:n,ignoreDialogWidth:!0,ariaLabel:"Checkout Modal",height:"auto",modalData:{nextButtonText:"RESUME",onNext:d,nextButtonDisabled:s,nextButtonLoading:s,onBack:n,backButtonText:"CANCEL",modalTitle:"Resume subscription",titleIsSticky:!0,footerIsSticky:!0,showFooterDivider:!0},children:(0,o.jsxs)(n0,{children:[(0,o.jsx)(n1,{children:"You are about to resume your subscription"}),(0,o.jsxs)(n2,{children:[(0,o.jsx)(n3,{children:(0,nv.nK)(a)}),(0,o.jsx)(n5,{children:a.description})]}),(0,o.jsx)(nQ.A,{currentTier:a})]})})};var n7=n(72006);let n6=e=>{let{totalAccepts:t,maxAcceptedCandidates:n,setIsHowPricingWorksModalOpen:r,setIsUpgradeModalOpen:a,currentPlan:l,isFreeTier:s}=e,d=(0,i.useMemo)(()=>(0,nJ.F5)(s,n,t,(null==l?void 0:l.isEnterprise)||(null==l?void 0:l.isPremium)),[t,s,n,null==l?void 0:l.isEnterprise,null==l?void 0:l.isPremium]),c=(0,i.useMemo)(()=>s?"Upgrade To Start Recruiting":"".concat(d.count," ").concat(d.text),[s,d]
1);return(0,o.jsxs)(nS,{children:[(0,o.jsxs)(nB,{children:[(0,o.jsxs)(nO,{children:[(0,nv.nK)(l)," Plan: ",c]}),(0,o.jsx)(nH,{onClick:()=>{if(l.isPremium||l.isEnterprise)return void r(!0);a(!0)},children:d.cta})]}),!d.hidePercentage&&(0,o.jsx)(nR,{percentage:d.percentage})]})},n8=e=>{let{isLoading:t,activeGigs:n}=e;return(0,o.jsxs)(nS,{children:[(0,o.jsx)(nk,{children:"Your Active GIGs"}),t&&0===n.length&&[0,1,2].map(e=>(0,o.jsx)(tF.G,{height:64,cornerRadius:8},"document-".concat(e))),!t&&0===n.length&&(0,o.jsx)(nE,{children:"No Active GIGs"}),n.length>0&&(0,o.jsx)(nT,{children:n.map(e=>{let t=(0,tO.l0)(e.status,e.backgroundUrl);return(0,o.jsxs)(nM,{as:nb(),href:"/company/gigs/".concat(e.id),children:[(0,o.jsxs)(nP,{children:[(0,o.jsx)(nz,{src:t,alt:"".concat(e.title," background image")}),(0,o.jsx)(nK,{children:(0,o.jsx)(n7.h,{statusLabel:e.status,size:"sm"})})]}),(0,o.jsx)(nD,{children:e.title})]},"active-gig-".concat(e.id))})})]})},n9=e=>{let{setIsHowPricingWorksModalOpen:t,pauseStartDate:n,scheduledDowngradeProductId:a,totalPauseMonths:l,cancellationDate:s,nextBillingDate:d,status:c,isLoadingTransactions:m,productId:p,subscriptionStatus:u,isCancellationUpcoming:g,isPauseUpcoming:f,isFreeTier:h,isEnterprise:x,currentPlan:C,isPaused:b,currentUsageCount:w,companyPaymentFee:v,nextPaymentDate:_,onUpgradeToTier:j}=e,A=(0,r.wA)(),[I,N]=(0,i.useState)(!1),[S,k]=(0,i.useState)(!1),E=(0,i.useMemo)(()=>[6,4].includes(C.prodId)?"".concat((0,tO.vv)(C.price)," billed monthly"):7===C.prodId?w>10?"".concat((0,tO.vv)(9*w)," billed monthly"):"$99 billed monthly":void 0,[C,w]),T=(0,i.useMemo)(()=>{if(g)return{text:"Your subscription will be canceled on ".concat((0,tO.n9)(s)),color:"red"};if(s&&"canceled"===c)return{text:"Your subscription was canceled on ".concat((0,tO.n9)(s)),color:"red"};if(f)return{text:"Your subscription will be paused on ".concat((0,tO.n9)(n)," for ").concat(l," month").concat(l>1?"s":""),color:"red"};if(n&&"paused"===c)return{text:"Your subscription was paused on ".concat((0,tO.n9)(n)," for ").concat(l," month").concat(l>1?"s":""),color:"red"};if(a){let e=nv.JK.find(e=>e.id===a);if(e)return{text:nv.bA[p]===a?"Your plan is moving to ".concat((0,nv.nK)(e)," on ").concat((0,tO.n9)(d)):"Your subscription will be downgraded to ".concat((0,nv.nK)(e)," on ").concat((0,tO.n9)(d)),color:"primary-dark"}}return"active"===u&&p?{text:_&&d&&(0,tO.n9)(_)!==(0,tO.n9)(d)?(0,o.jsxs)(o.Fragment,{children:["Your membership is active and will renew on ".concat((0,tO.n9)(d),"."),(0,o.jsx)("br",{}),"Next payment on ".concat((0,tO.n9)(_))]}):"Your membership is active and will renew on ".concat((0,tO.n9)(d)),color:"primary-dark"}:C.isFree?{text:"It looks like you don't have a plan yet",color:"primary-dark"}:{text:"Your membership is active",color:"primary-dark"}},[g,s,c,f,n,a,u,p,C.isFree,l,d,_]);return(0,o.jsxs)(nS,{children:[(0,o.jsxs)(nV,{children:[(0,o.jsx)(nU,{"data-testid":(null==C?void 0:C.name)?"billing-current-plan-name":void 0,children:(0,nv.nK)(C)}),(0,o.jsx)(nF,{children:null==C?void 0:C.description})]}),(0,o.jsx)(nQ.A,{includeCheckmarks:!0,currentTier:C,paymentFee:"active"===u?v:void 0}),!h&&!x&&!m&&(0,o.jsx)(nG,{children:E}),!m&&(0,o.jsxs)(nZ,{children:[(0,o.jsx)(nq,{color:T.color,"data-testid":"billing-subscription-status-label",children:T.text}),(0,o.jsxs)(nY,{children:[!C.isFree&&!f&&!g&&(0,o.jsx)(nW,{variant:"ghosted",onClick:()=>N(!0),"data-testid":"manage-membership-button",children:"MANAGE MEMBERSHIP"}),!C.isFree&&(f||g||b)&&(0,o.jsx)(nW,{variant:"ghosted",onClick:()=>k(!0),"data-testid":"resume-membership-button",children:"RESUME MEMBERSHIP"}),(0,o.jsx)(n$,{onClick:()=>t(!0),"data-testid":"current-plan-choose-plan-button",children:h?"CHOOSE PLAN":"COMPARE PLANS"})]})]}),m&&(0,o.jsxs)(nZ,{children:[(0,o.jsx)(tF.G,{height:55}),(0,o.jsxs)(nY,{children:[(0,o.jsx)(tF.G,{height:45,cornerRadius:30}),(0,o.jsx)(tF.G,{height:45,cornerRadius:30})]})]}),(0,o.jsx)(nX.i,{isOpen:I,onClose:()=>N(!1),onSubscriptionCancelled:e=>{A((0,y.hL)(e))},onUpgradeToTier:e=>{N(!1),null==j||j(e)},subscriptionStatus:c,onSuccessDowngrade:async()=>{A((0,y.Od)()),N(!1)}}),(0,o.jsx)(n4,{isOpen:S,onClose:()=>k(!1),tier:C})]})},oe=i.memo(e=>{let{setIsHowPricingWorksModalOpen:t,setIsUpgradeModalOpen:n,onUpgradeToTier:a}=e,l=(0,r.d4)(e=>e.Billing.gigsOverview),s=(0,r.d4)(e=>{var t;return Math.max((null==(t=e.User.data.company)?void 0:t.maxAcceptedCandidates)||0)}),d=(0,r.d4)(e=>e.Billing.totalAccepts),c=(0,r.d4)(e=>{var t;return null==(t=e.User.data.company)?void 0:t.productId}),m=(0,r.d4)(e=>{var t;return null==(t=e.User.data.company)?void 0:t.subscriptionStatus}),p=(0,r.d4)(e=>{var t;return null==(t=e.User.data.company)?void 0:t.paymentFee}),{pauseStartDate:u,totalPauseMonths:y,cancellationDate:g,scheduledDowngradeProductId:f,
1nextBillingDate:h,nextPaymentDate:x,status:C,currentUsageCount:b,isLoadingTransactions:w}=(0,r.d4)(e=>{let{Billing:t}=e;return t}),v=(0,i.useMemo)(()=>"canceled"===C,[C]),_=(0,i.useMemo)(()=>!!g&&!!g&&"active"===C,[g,C]),j=(0,i.useMemo)(()=>!!u&&!!u&&"active"===C,[u,C]),A=(0,i.useMemo)(()=>"paused"===C,[C]),I=(0,i.useMemo)(()=>{if(v)return nv.JK.find(e=>e.isFree);let e=nv.JK.find(e=>e.id===c);return e||nv.JK.find(e=>e.isFree)},[v,c]),N=(0,i.useMemo)(()=>"active"!==m||!c,[c,m]),S=(0,r.d4)(e=>{var t;return(null==(t=e.User.data.company)?void 0:t.productId)===5});return(0,o.jsxs)(nA,{children:[(0,o.jsx)(nI,{children:"Your Current Plan"}),(0,o.jsxs)(nN,{children:[(0,o.jsx)(n9,{currentUsageCount:b,setIsHowPricingWorksModalOpen:t,pauseStartDate:u,totalPauseMonths:y,cancellationDate:g,nextBillingDate:h,nextPaymentDate:x,status:C,isLoadingTransactions:w,productId:c,subscriptionStatus:m,isCancellationUpcoming:_,isPauseUpcoming:j,isFreeTier:N,isEnterprise:S,currentPlan:I,scheduledDowngradeProductId:f,isPaused:A,companyPaymentFee:p,onUpgradeToTier:a}),(0,o.jsx)(nL,{}),(0,o.jsx)(n6,{isLoadingTransactions:w,maxAcceptedCandidates:s,totalAccepts:d,setIsHowPricingWorksModalOpen:t,setIsUpgradeModalOpen:n,isFreeTier:N,currentPlan:I}),(0,o.jsx)(nL,{}),(0,o.jsx)(n8,{isLoading:w,activeGigs:l})]})]})}),ot=f.Ay.div.withConfig({displayName:"styles__ContainerCard",componentId:"sc-53f82294-0"})(["background-color:",";padding:1rem;border-radius:1.5rem;border:1px solid;border-color:transparent;display:flex;flex-direction:column;"],e=>{let{theme:t}=e;return t.colors.white}),on=f.Ay.h2.withConfig({displayName:"styles__TitleSection",componentId:"sc-53f82294-1"})(["font-size:",";font-family:",";font-weight:600;color:",";margin:0;padding-bottom:1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["gary-120"]}),oo=f.Ay.div.withConfig({displayName:"styles__PaymentMethodsBody",componentId:"sc-53f82294-2"})(["border-top:1px solid ",";display:flex;flex-direction:column;> *:not(:last-child){border-bottom:1px solid ",";}"],e=>{let{theme:t}=e;return t.colors["blue-30"]},e=>{let{theme:t}=e;return t.colors["blue-30"]}),oi=f.Ay.p.withConfig({displayName:"styles__NoPaymentMethods",componentId:"sc-53f82294-3"})(["font-size:",";font-family:",";font-weight:500;color:",";margin:0;padding:1rem;text-align:center;"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors.placeholder}),or=f.Ay.div.withConfig({displayName:"styles__FooterContainer",componentId:"sc-53f82294-4"})(["padding-top:1.5rem;border-top:1px solid ",";padding-bottom:0.5rem;"],e=>{let{theme:t}=e;return t.colors["blue-30"]}),oa=(0,f.Ay)(er.$).withConfig({displayName:"styles__AddPaymentMethodButton",componentId:"sc-53f82294-5"})(["width:80%;margin:0 auto;font-weight:600;"]);var ol=n(29140);let os=f.Ay.div.withConfig({displayName:"styles__ItemContainer",componentId:"sc-3ed37b4-0"})(["display:flex;justify-content:space-between;align-items:center;padding:1rem 0;overflow:hidden;"]),od=f.Ay.div.withConfig({displayName:"styles__LeftContainer",componentId:"sc-3ed37b4-1"})(["display:flex;gap:0.4rem;overflow:hidden;flex:1;@media (max-width:","){flex-direction:column;}"],e=>{let{theme:t}=e;return t.breakpoints.md}),oc=f.Ay.p.withConfig({displayName:"styles__TypeText",componentId:"sc-3ed37b4-2"})(["color:",";font-size:",";font-weight:500;font-family:",";margin:0;text-transform:capitalize;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary}),om=f.Ay.p.withConfig({displayName:"styles__EndingInText",componentId:"sc-3ed37b4-3"})(["color:",";font-size:",";font-weight:500;font-family:",";margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;"],e=>{let{theme:t}=e;return t.colors.placeholder},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary}),op=f.Ay.div.withConfig({displayName:"styles__RightContainer",componentId:"sc-3ed37b4-4"})(["flex-shrink:0;display:flex;overflow:hidden;"]),ou=f.Ay.p.withConfig({displayName:"styles__DefaultTag",componentId:"sc-3ed37b4-5"})(["background-color:",";padding:0.3rem 0.75rem;color:",";border-radius:0.5rem;font-weight:500;margin:0;"],e=>{let{theme:t}=e;return t.colors["green-40"]},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),oy=f.Ay.div.withConfig({displayName:"styles__ActionContainer",componentId:"sc-3ed37b4-6"})(["display:flex;"]),og=f.Ay.div.withConfig({displayName:"styles__ContainerFilterOption",componentId:"sc-3ed37b4-7"})(["display:grid;"]),of=(0,f.Ay)(er.$).withConfig({displayName:"styles__ContainerActionsSubMenu",componentId:"sc-3ed37b4-8"})(["background-color:",";width:30px;height:30px;display:grid;align-content:center;justify-items:center;border-radius:8px;align-self:center;padding:0;color:",";svg{transform:rotateZ(90deg);}.loading-content{border-top-color:",";}"],e=>{let{theme:t}=e;return t.colors["blue-50"]},e=>{let{theme:t}=e;return t.colors["gray-120"]},e=>{let{theme:t}=e;return t.colors["gray-120"]}),oh=e=>{let{id:t,type:n,endingIn:a,isDefault:l,accountType:s,index:d}=e,c=(0,r.wA)(),m=(0,i.useRef)(null),[p,u]=(0,i.useState)(!1);return(0,o.jsxs)(os,{"data-testid":"billing-payment-method-item-".concat(d),children:[(0,o.jsxs)(od,{
1children:[(0,o.jsxs)(oc,{children:[n," ",s&&s]}),(0,o.jsxs)(om,{children:["Ending in ",a]})]}),(0,o.jsxs)(op,{children:[l&&(0,o.jsx)(ou,{children:"DEFAULT"}),!l&&(0,o.jsxs)(oy,{children:[(0,o.jsx)(og,{ref:m,children:(0,o.jsx)(of,{onClick:e=>{e.stopPropagation(),u(a)},children:(0,o.jsx)(eI.M,{width:"20px",height:"20px"})})}),(0,o.jsx)(eN.A,{isOpen:p===a,anchorElement:m.current,onClose:()=>u(null),options:[{label:"Make Default",onClick:()=>{c((0,ol.W9)(t,()=>{c((0,ol.Jf)()),u(null)}))}},{label:"Delete",onClick:()=>{c((0,ol.kC)(t,()=>{c((0,ol.Jf)()),u(null)}))}}],extraMargin:40})]})]})]})};var ox=n(4546);let oC=i.memo(()=>{let e=(0,r.wA)(),[t,n]=(0,i.useState)(!1),a=(0,r.d4)(e=>e.Payment.paymentMethods||[]),l=(0,r.d4)(e=>e.Payment.isLoadingPaymentMethods),s=(0,r.d4)(e=>{var t;return null==(t=e.User.data.company)?void 0:t.productId}),d=(0,i.useMemo)(()=>s?nv.JK.find(e=>e.id===s)||nv.JK[0]:null,[s]);return(0,i.useEffect)(()=>{e((0,ol.Jf)())},[]),(0,o.jsxs)(ot,{children:[(0,o.jsx)(on,{children:"Payment Method"}),(0,o.jsxs)(oo,{children:[l&&[0,1,2].map(e=>(0,o.jsx)("div",{style:{padding:"0.75rem"},children:(0,o.jsx)(tF.G,{height:50},"item-".concat(e))})),!l&&0===a.length&&(0,o.jsx)(oi,{"data-testid":"no-payment-methods-label",children:"No Payment Methods"}),!l&&a.length>0&&a.map((e,t)=>(0,o.jsx)(oh,{id:e.id,type:e.brand||e.bankName,endingIn:e.last4,accountType:e.accountType,isDefault:e.isDefault,index:t},e.id))]}),(0,o.jsx)(or,{children:(0,o.jsx)(oa,{type:"button",ariaLabel:"Add new payment method",variant:"ghosted",onClick:()=>{e((0,ol.Sc)("addPaymentMethod")),n(!0)},"data-testid":"add-new-payment-method-button",children:"ADD NEW PAYMENT METHOD"})}),(0,o.jsx)(ox.J,{tier:d,isOpen:t,onClose:()=>{n(!1)},closeOnBack:!0,onSuccess:async()=>{e((0,ol.Jf)())}})]})});var ob=n(44462),ow=n(50336),ov=n(98156);let o_=()=>{let e=(0,r.wA)(),t=(0,m.Q)("lg").isResponsive,[n,a]=(0,i.useState)(!1),[l,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null);return(0,i.useEffect)(()=>{e((0,y.Od)())},[]),(0,o.jsxs)(tv,{children:[(0,o.jsxs)(t_,{children:[(0,o.jsx)(oe,{setIsHowPricingWorksModalOpen:a,setIsUpgradeModalOpen:s,onUpgradeToTier:e=>c(e)}),(0,o.jsx)(tA,{}),(0,o.jsx)(no,{})]}),t&&(0,o.jsx)(tA,{}),(0,o.jsxs)(tj,{children:[(0,o.jsx)(nj,{}),(0,o.jsx)(tA,{}),(0,o.jsx)(oC,{})]}),(0,o.jsx)(ob.A,{isOpen:n,onClose:()=>a(!1),onClickPlan:e=>c(e)}),(0,o.jsx)(ow.s,{triggerSource:ov.Q.SETTINGS_BILLING,isOpen:l||!!d,title:"Upgrade your plan",onClose:()=>{c(null),s(!1)},onConfirmTierUpdate:()=>{s(!1),window.location.reload()},forceIntoTierBillingProduct:d})]})};var oj=n(13039),oA=n(13561),oI=n(9170),oN=n(43849),oS=n(67768),ok=n(40097),oE=n(25012);let oT=["shopify-billing-status"],oM=e=>{var t,n;let o=(0,r.d4)(e=>{var t,n,o,i;return null!=(i=null==e||null==(o=e.User)||null==(n=o.data)||null==(t=n.company)?void 0:t.id)?i:null}),{data:i,isLoading:a,isError:l,refetch:s}=(0,t8.I)({queryKey:(e=>[...oT,null!=e?e:null])(o),queryFn:async()=>(await (0,oE.sN)()).data,enabled:(null==(t=null==e?void 0:e.enabled)||t)&&null!==o,refetchInterval:null!=(n=null==e?void 0:e.refetchInterval)&&n});return{billingStatus:i,isLoading:a,isError:l,refetch:s}},oP=["pending_payment","incomplete"],oz=["active","paused"];var oD=n(4250),oL=n(45512),oB=n(28097),oO=n(7732);let oH=/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/i,oR=f.Ay.div.withConfig({displayName:"styles__Cards",componentId:"sc-70a0efe3-0"})(["display:grid;gap:1.5rem;max-width:720px;padding:1.5rem 0;font-family:",";color:",";"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),oV=f.Ay.div.withConfig({displayName:"styles__PlanHeader",componentId:"sc-70a0efe3-1"})(["display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;"]),oU=f.Ay.h3.withConfig({displayName:"styles__PlanName",componentId:"sc-70a0efe3-2"})(["margin:0.25rem 0 0;font-size:",";font-weight:600;"],e=>{let{theme:t}=e;return t.fontSize.h3}),oF=f.Ay.p.withConfig({displayName:"styles__PlanPrice",componentId:"sc-70a0efe3-3"})(["margin:0.25rem 0 0;font-size:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md}),oG=f.Ay.p.withConfig({displayName:"styles__StatusLine",componentId:"sc-70a0efe3-4"})(["margin:1rem 0 0;font-size:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md}),oq=f.Ay.div.withConfig({displayName:"styles__Actions",componentId:"sc-70a0efe3-5"})(["display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:1.25rem;"]),oY=f.Ay.p.withConfig({displayName:"styles__Notice",componentId:"sc-70a0efe3-6"})(["margin:1.25rem 0 0;padding:1rem;border-radius:12px;background-color:",";font-size:",";"],e=>{let{theme:t}=e;return t.colors["gray-70"]},e=>{let{theme:t}=e;return t.fontSize.body.md}),oZ=f.Ay.p.withConfig({displayName:"styles__ManageCopy",componentId:"sc-70a0efe3-7"})(["margin:0.5rem 0 1rem;font-size:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md}),oW="shopify_billing",o$=()=>{var e,t;let n,[a,l]=(0,i.useState)(!1),[d,c]=(0,i.useState)(!1),m=(0,s.useRouter)(),{queryParams:p,clearParam:u}=(0,oL.s)(),{billingStatus:y,isLoading:g}=oM(),{connection:f}=(0,oD.k)(),h=(0,r.d4)(e=>{var t,n,o;let{User:i}=e;return(null==(n=i.data)||null==(t=n.company)?void 0:t.subscriptionStatus)==="active"&&(null==(o=i.data.company)?void 0:o.productId)}),x=(0,i.useCallback)(()=>{(0,ek.addSuccessNotification)("Your plan is active — welcome aboard!"),u(oW),m.reload()},[u,m]),C=(0,i.useCallback)(()=>{(0,ek.addErrorNotification)("The charge wasn't approved on Shopify, so your plan didn't change."),u(oW)},[u]),b=(0,i.useCallback)(()=>{(0,ek.addInfoNotification)("Shopify hasn't confirmed the charge yet. Your plan will update as soon as it does."),u(oW)},[u]),{isPolling:w}=(e=>{let{isReturning:t,onActivated:n,onDeclined:o,onTimedOut:r}=e,[a,l]=(0,i.useState)(!1),s=(0,i.useRef)(!1),d=(0,i.useRef)({onActivated:n,onDeclined:o,onTimedOut:r});(0,i.useEffect)(()=>{d.current={onActivated:n,onDeclined:o,onTimedOut:r}}),(0,i.useEffect)(()=>{t&&(s.current=!1,l(!0))},[t]);let{billingStatus:c}=oM({enabled:a,refetchInterval:!!a&&2e3});return(0,i.useEffect)(()=>
1{if(!a||s.current)return;let e=null==c?void 0:c.latest;!e||oP.includes(e.status)||(s.current=!0,l(!1),oz.includes(e.status)?d.current.onActivated(e):d.current.onDeclined(e))},[c,a]),(0,i.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>{s.current||(s.current=!0,l(!1),d.current.onTimedOut())},9e4);return()=>clearTimeout(e)},[a]),{isPolling:a}})({isReturning:"return"===p[oW],onActivated:x,onDeclined:C,onTimedOut:b}),{cancelPlan:v,isCancelling:_}=(e=>{let t=(0,oS.jE)(),{mutate:n,isPending:o}=(0,ok.n)({mutationFn:async()=>{var e;let t=await (0,oE.s9)();if((null==(e=t.data)?void 0:e.success)!==!0)throw Error("Shopify did not confirm the cancellation — please try again.");return t.data},onSuccess:()=>{var n;(0,ek.addSuccessNotification)("Your plan is cancelled. You keep access until the end of the period you already paid for."),t.invalidateQueries({queryKey:oT}),null==e||null==(n=e.onCancelled)||n.call(e)},onError:e=>{(0,ek.addErrorNotification)((null==e?void 0:e.message)||"Could not cancel the plan — please try again.")}});return{cancelPlan:n,isCancelling:o}})({onCancelled:()=>c(!1)}),j=null!=(e=null==y?void 0:y.active)?e:null,A=null!=(t=null==j?void 0:j.productId)?t:h,I=nv.JK.find(e=>e.id===A&&!e.isFree),N=!j&&!I,S=I?(0,nv.nK)(I):N?"Free":"Your plan",k=!!(null==j?void 0:j.cancellationDate),E=(null==j?void 0:j.status)==="paused",T=(e=>{if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})(null==j?void 0:j.renewalDate),M=void 0!==f&&!(f.connected&&f.status===oj.c.ACTIVE);return n=w?"Confirming your plan with Shopify…":N?"You're on the free plan.":E?"Paused by Shopify while a payment issue on your store is resolved.":k?T?"Cancelled — you keep access until ".concat(T,"."):"Cancelled — you keep access until the end of the paid period.":T?"Renews on ".concat(T,"."):"Active.",(0,o.jsxs)(oR,{"data-testid":"shopify-billing-section",children:[(0,o.jsxs)(oN.Zp,{padding:"lg",children:[(0,o.jsxs)(oV,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(oN.EY,{variant:"caption",tone:"secondary",children:"Your plan"}),(0,o.jsx)(oU,{"data-testid":"shopify-billing-plan-name",children:S}),I&&(0,o.jsxs)(oF,{children:[I.publicPricingPageInformation.pricingString," \xb7"," ",I.publicPricingPageInformation.billingCycleString]})]}),w&&(0,o.jsx)("span",{"data-testid":"shopify-billing-confirming",children:(0,o.jsx)(oN.y$,{size:20,label:"Confirming with Shopify"})})]}),(0,o.jsx)(oG,{"data-testid":"shopify-billing-status-label",children:n}),M?(0,o.jsxs)(oY,{"data-testid":"shopify-billing-reconnect-notice",children:["Reconnect your Shopify store to change your plan."," ",(0,o.jsx)(oN.Yq,{href:"/company/settings/integrations",children:"Go to Integrations"})]}):(0,o.jsxs)(oq,{children:[(0,o.jsx)(oN.$n,{"data-testid":"shopify-billing-change-plan-button",onClick:()=>l(!0),disabled:w||g,children:N?"Choose a plan":"Change plan"}),!N&&!k&&(0,o.jsx)(oN.$n,{"data-testid":"shopify-billing-cancel-plan-button",tone:"danger",onClick:()=>{oB.N.track(oO.E.events.OPEN_CANCEL_SUBSCRIPTION_MODAL,{context:oO.E.contexts.BILLING_INFO,billingProvider:"shopify"}),c(!0)},disabled:w,children:"Cancel plan"})]})]}),(0,o.jsxs)(oN.Zp,{padding:"lg",children:[(0,o.jsx)(oN.EY,{variant:"h4",children:"Billed through Shopify"}),(0,o.jsx)(oZ,{children:"Your Home From College membership is charged to your Shopify bill, so invoices and payment methods live in your Shopify admin."}),(e=>"string"==typeof e&&oH.test(e))(null==f?void 0:f.shopDomain)&&(0,o.jsx)(oN.Yq,{"data-testid":"shopify-billing-manage-link",href:"https://".concat(f.shopDomain,"/admin/settings/billing"),target:"_blank",rel:"noreferrer",children:"Open Shopify billing"})]}),(0,o.jsx)(oI.W,{isOpen:a,onClose:()=>l(!1),triggerSource:ov.Q.SETTINGS_BILLING,title:N?"Choose your plan":"Change your plan"}),(0,o.jsx)(oA.A,{isOpen:d,title:"Cancel your plan?",description:T?"Your plan stays active until ".concat(T,", then it ends. You can pick a plan again anytime."):"Your plan stays active until the end of the period you already paid for, then it ends. You can pick a plan again anytime.",confirmText:"CANCEL PLAN",cancelText:"KEEP PLAN",isConfirming:_,onConfirm:()=>{oB.N.track(oO.E.events.CANCEL_SUBSCRIPTION,{context:oO.E.contexts.BILLING_INFO,billingProvider:"shopify",plan:null==I?void 0:I.name}),v()},onCancel:()=>c(!1)})]})},oK=f.Ay.div.withConfig({displayName:"styles__Container",componentId:"sc-dc183557-0"})(["display:flex;justify-content:center;padding:3rem 0;"]),oJ=()=>(0,o.jsx)(oK,{"data-testid":"billing-section-loading",children:(0,o.jsx)(oN.y$,{size:24,label:"Loading billing"})});var oQ=n(34622),oX=n(27515),o0=n(36954),o1=n(83062);let o2=f.Ay.div.withConfig({displayName:"styles__CardHeader",componentId:"sc-c7fda31f-0"})(["display:flex;align-items:center;justify-content:space-between;gap:0.75rem;flex-wrap:wrap;font-family:",";"],ef.A.fonts.quaternary),o3=f.Ay.div.withConfig({displayName:"styles__CardTitle",componentId:"sc-c7fda31f-1"})(["display:flex;align-items:center;gap:0.5rem;font-size:1rem;font-weight:700;"]),o5=f.Ay.img.withConfig({displayName:"styles__ShopifyLogo",componentId:"sc-c7fda31f-2"})(["width:1.75rem;height:1.75rem;object-fit:contain;flex:none;"]),o4=f.Ay.span.withConfig({displayName:"styles__StatusPill",componentId:"sc-c7fda31f-3"})(["display:inline-flex;align-items:center;border-radius:999px;padding:0.15rem 0.65rem;font-size:0.75rem;font-weight:700;background-color:",";color:",";"],e=>{let{$connected:t}=e;return t?ef.A.colors["green-04"]:ef.A.colors["gray-10"]},e=>{let{$connected:t}=e;return t?ef.A.colors["green-80"]:ef.A.colors["gray-100"]}),o7=f.Ay.div.withConfig({displayName:"styles__CardBody",componentId:"sc-c7fda31f-4"})(["display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin-top:0.75rem;font-family:",";"],ef.A.fonts.quaternary),o6=f.Ay.p.withConfig({displayName:"styles__ConnectedDetail
1s",componentId:"sc-c7fda31f-5"})(["margin:0;font-size:0.875rem;color:",";"],ef.A.colors["gray-100"]),o8=f.Ay.p.withConfig({displayName:"styles__LegacyNote",componentId:"sc-c7fda31f-6"})(["margin:0;font-size:0.8125rem;color:",";"],ef.A.colors["gray-90"]),o9=f.Ay.div.withConfig({displayName:"styles__SpinnerRow",componentId:"sc-c7fda31f-7"})(["display:flex;justify-content:center;padding:1.5rem 0;"]),ie=/^[a-zA-Z0-9][a-zA-Z0-9-]*\.myshopify\.com$/,it={store_already_connected:"This Shopify store is already connected to another company."},io=()=>{var e,t;let{connection:n,isLoading:a,isError:l,refetch:s}=(0,oD.k)(),{connectStore:d,isConnecting:c}=(()=>{let{mutate:e,isPending:t}=(0,ok.n)({mutationFn:async e=>(await (0,o0._U)(e)).data,onSuccess:e=>{if(null==e?void 0:e.url)return void window.open(e.url,"_self");(0,ek.addErrorNotification)("Could not start the Shopify connection.")},onError:e=>{(0,ek.addErrorNotification)(e.message||"Could not start the Shopify connection.")}});return{connectStore:e,isConnecting:t}})(),{claimStore:m}=(()=>{let e=(0,oS.jE)(),{mutate:t,isPending:n}=(0,ok.n)({mutationFn:async e=>(await (0,o0.k3)(e)).data,onSuccess:()=>{(0,ek.addSuccessNotification)("Shopify store connected."),e.invalidateQueries({queryKey:oD.P})},onError:e=>{(0,ek.addErrorNotification)(e.message||"Could not link the Shopify store — connect it from this page instead.")}});return{claimStore:t,isClaiming:n}})(),[p,u]=(0,i.useState)(!1),[g,f]=(0,i.useState)(!1),[h,x]=(0,i.useState)(!1),[C,b]=(0,i.useState)(""),[w,v]=(0,i.useState)(),{disconnectStore:_,isDisconnecting:j}=(e=>{let t=(0,oS.jE)(),{mutate:n,isPending:o}=(0,ok.n)({mutationFn:async()=>(await (0,o0.CM)()).data,onSuccess:()=>{(0,ek.addSuccessNotification)("Shopify store disconnected."),t.invalidateQueries({queryKey:oD.P}),(null==e?void 0:e.onDisconnected)&&e.onDisconnected()},onError:e=>{(0,ek.addErrorNotification)(e.message||"Could not disconnect the Shopify store.")}});return{disconnectStore:n,isDisconnecting:o}})({onDisconnected:()=>{f(!1),oB.N.track(oO.E.events.DISCONNECT_SHOPIFY_STORE,{context:oO.E.contexts.COMPANY_SETTINGS})}}),A=(0,r.wA)(),I=(0,r.d4)(e=>{var t,n,o;return(null==(t=e.User.data.company)?void 0:t.subscriptionStatus)==="active"&&null!=(o=null==(n=e.User.data.company)?void 0:n.productId)?o:null}),N=!!(null==(e=nv.Ei[oQ.a.SHOPIFY_INTEGRATION])?void 0:e[I]),S=null!=(t=nv.fI.find(e=>{var t;return!!(null==(t=nv.Ei[oQ.a.SHOPIFY_INTEGRATION])?void 0:t[e])}))?t:oX.j.SCALE_ANNUAL,{queryParams:k,clearParam:E}=(0,oL.s)(),T=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(T.current)return;let e=k.shopify,t=k.shopify_claim;if(e||t){if(T.current=!0,t){m(t),E("shopify_claim"),(0,o1.Yj)(o1.AZ.SHOPIFY_CLAIM_TOKEN);return}"connected"===e?((0,ek.addSuccessNotification)("Shopify store connected."),oB.N.track(oO.E.events.CONNECT_SHOPIFY_STORE,{context:oO.E.contexts.COMPANY_SETTINGS})):"error"===e&&(0,ek.addErrorNotification)(it[k.reason]||"Could not connect your Shopify store. Please try again."),E("shopify"),E("reason")}},[k,m,E]);let M=(0,i.useMemo)(()=>{var e;return(e=>{if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})(null!=(e=null==n?void 0:n.installedAt)?e:null)},[null==n?void 0:n.installedAt]),P=(null==n?void 0:n.source)==="legacy",z=!!(null==n?void 0:n.connected),D=(0,oj.l)(n);return(0,o.jsxs)(oN.Zp,{border:"soft",elevation:"sm","data-testid":"shopify-connection-card",children:[(0,o.jsxs)(o2,{children:[(0,o.jsxs)(o3,{children:[(0,o.jsx)(o5,{src:"/images/integrations/shopify-glyph.svg",alt:"","aria-hidden":"true","data-testid":"shopify-logo"}),"Shopify"]}),!a&&!l&&(0,o.jsx)(o4,{$connected:z,"data-testid":"shopify-connection-status",children:z?"Connected":"Not connected"})]}),a?(0,o.jsx)(o9,{children:(0,o.jsx)(oN.y$,{size:20})}):l?(0,o.jsxs)(o7,{children:[(0,o.jsx)(o6,{"data-testid":"shopify-connection-error",children:"We couldn't load your Shopify connection status."}),(0,o.jsx)(oN.$n,{variant:"outline",onClick:()=>s(),"data-testid":"company-settings-shopify-retry",children:"Try again"})]}):(0,o.jsx)(o7,{children:z?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(o6,{"data-testid":"shopify-connected-detail
1s",children:[(null==n?void 0:n.shopName)?"".concat(n.shopName," \xb7 "):"",null==n?void 0:n.shopDomain,M?" \xb7 connected ".concat(M):""]}),P?(0,o.jsx)(o8,{"data-testid":"shopify-legacy-managed-note",children:"This store was connected by the H\\FC team. Reach out to us if anything about the connection needs to change."}):(0,o.jsx)(oN.$n,{variant:"outline",tone:"danger",onClick:()=>f(!0),"data-testid":"company-settings-disconnect-shopify",children:"Disconnect"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(o6,{children:"Connect your Shopify store to power sampling requests and product syncing."}),D?N?(0,o.jsx)(oN.$n,{onClick:()=>{b(""),v(void 0),u(!0)},loading:c,"data-testid":"company-settings-connect-shopify",children:"Connect store"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(o8,{children:"Shopify integration is available on the Scale annual plan and up."}),(0,o.jsx)(oN.$n,{onClick:()=>{A((0,y.Od)()),x(!0)},"data-testid":"company-settings-upgrade-shopify",children:"Upgrade to connect"})]}):(0,o.jsx)(o8,{"data-testid":"shopify-connect-unavailable-note",children:"Connecting a Shopify store isn't available for your account yet."})]})}),(0,o.jsx)(oN.aF,{open:p,onOpenChange:u,title:"Connect your Shopify store",description:"You'll be sent to Shopify to approve the connection.",footer:(0,o.jsx)(oN.$n,{onClick:()=>{if(!(0,oj.l)(n))return void u(!1);let e=(e=>{let t=e.trim().toLowerCase();return(t=t.replace(/^https?:\/\//,""),[t]=t.split("/"),[t]=t.split("?"),t)?(t.includes(".")||(t="".concat(t,".myshopify.com")),ie.test(t)?t:null):null})(C);if(!e)return void v("Enter your store like my-store or my-store.myshopify.com");d(e)},loading:c,"data-testid":"company-settings-shopify-modal-submit",children:"Continue to Shopify"}),children:(0,o.jsx)(oN.A_,{label:"Store domain",placeholder:"my-store or my-store.myshopify.com",value:C,onValueChange:e=>{b(e),v(void 0)},error:w,autoFocus:!0,"data-testid":"company-settings-shopify-domain-in
1put"})}),(0,o.jsx)(oA.A,{isOpen:g,title:"Disconnect Shopify?",description:"Sampling requests and product syncing will stop working until you reconnect. To fully remove the app, also uninstall it from your Shopify admin.",confirmText:"DISCONNECT",cancelText:"KEEP CONNECTED",isConfirming:j,onConfirm:()=>_(),onCancel:()=>f(!1)}),(0,o.jsx)(ow.s,{isOpen:h,onClose:()=>x(!1),featuresToHighlight:[oQ.a.SHOPIFY_INTEGRATION],forceIntoTierBillingProduct:S,triggerSource:ov.Q.COMPANY_SETTINGS_INTEGRATIONS,title:"Shopify integration is a Scale feature",description:"Upgrade your plan to connect your Shopify store"})]})},ii=f.Ay.div.withConfig({displayName:"styles__ContainerCards",componentId:"sc-7b386be1-0"})(["display:grid;padding:1.5rem 0rem;grid-template-columns:minmax(0,640px);grid-gap:1.5rem;"]),ir=()=>(0,o.jsx)(ii,{children:(0,o.jsx)(io,{})});var ia=n(8181);let il=e=>e.replace(/\d/g,"").replace(/\/$/,""),is=i.memo(()=>{let e=(0,s.useRouter)(),t=(0,r.wA)(),n=(0,r.d4)(e=>e.Company.activeTab),a=(0,m.Q)("md").isResponsive,{connection:l}=(0,oD.k)(),g=!!(null==l?void 0:l.available),{isShopifyBilled:f,isResolved:h}=(0,ia.c)(),x=(0,i.useMemo)(()=>h?f?o$:o_:oJ,[h,f]),C=(0,i.useMemo)(()=>[{title:"Company Info",value:"",key:"overview",testId:"company-settings-sidebar-company-info",component:L},{title:"Team Members",value:"team",key:"team",testId:"company-settings-sidebar-team-members",component:tw},{title:"Plans & Billing",value:"billing",key:"billing",testId:"company-settings-sidebar-billing",component:x},...g?[{title:"Integrations",value:"integrations",key:"integrations",testId:"company-settings-sidebar-integrations",component:ir}]:[]],[g,x]),b=(0,i.useMemo)(()=>C.find(e=>e.value===il(n))||C[0],[n,C]),w=(0,i.useMemo)(()=>b.component,[b]),v=(0,r.d4)(e=>e.Billing.totalAccepts),_=(0,i.useCallback)(t=>{e.push("/company/settings/".concat(t))},[e]),j=(0,r.d4)(e=>{var t;return Math.max((null==(t=e.User.data.company)?void 0:t.maxAcceptedCandidates)||0)});return(0,o.jsxs)(d.Si,{children:[!a&&(0,o.jsxs)(d.JB,{children:[(0,o.jsx)(d.XX,{children:C.map(e=>(0,o.jsx)(d.Cp,{isActive:e.value===il(n),onClick:()=>_(e.value),"data-testid":e.testId,children:e.title},"item-workspace-meny-".concat(e.value)))}),(0,o.jsx)(u.y,{totalAccepts:v,onUpgradeTier:()=>{t((0,y.Od)())},maxAcceptedCandidates:j})]}),a&&(0,o.jsx)(p.U,{currentlySelectedComponentNavKey:b.key,setCurrentComponentNavBlock:e=>_(e.value),componentNavBlocks:C}),(0,o.jsxs)(d.XV,{children:[(0,o.jsxs)(d.DS,{children:[(0,o.jsx)(d.B3,{children:(0,o.jsx)(d.sT,{children:b.title})}),(0,o.jsx)(w,{})]}),(0,o.jsx)(c.default,{backgroundColor:ef.A.colors["gray-70"]})]})]})});var id=!0;function ic(){let e=(0,r.wA)(),t=(0,r.d4)(e=>e.NotificationBanner);return(0,i.useEffect)(()=>{e((0,y.tt)())},[]),(0,o.jsx)(a.f,{title:"Settings",banner:t,access:"recruiter",middleComponent:()=>(0,o.jsx)(l.tf,{}),mobileMiddleComponent:()=>(0,o.jsx)(l.rz,{}),footer:{isVisible:!1},hideIfSubscriptionExpired:{onPaymentFailed:!1,onSubscriptionPastDue:!1},children:(0,o.jsx)(is,{})})}},31996:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var o=n(37876);n(14232);let i=e=>{let{variant:t,...n}=e;return 4===t?(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M21 18L19.9999 19.094C19.4695 19.6741 18.7502 20 18.0001 20C17.2501 20 16.5308 19.6741 16.0004 19.094C15.4692 18.5151 14.75 18.1901 14.0002 18.1901C13.2504 18.1901 12.5312 18.5151 12 19.094M3.00002 20H4.67457C5.16375 20 5.40834 20 5.63851 19.9447C5.84259 19.8957 6.03767 19.8149 6.21662 19.7053C6.41845 19.5816 6.5914 19.4086 6.93731 19.0627L19.5 6.49998C20.3285 5.67156 20.3285 4.32841 19.5 3.49998C18.6716 2.67156 17.3285 2.67156 16.5 3.49998L3.93728 16.0627C3.59138 16.4086 3.41843 16.5816 3.29474 16.7834C3.18509 16.9624 3.10428 17.1574 3.05528 17.3615C3.00002 17.5917 3.00002 17.8363 3.00002 18.3255V20Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):2===t?(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M18 10.0001L14 6.00006M2.49997 21.5001L5.88434 21.124C6.29783 21.0781 6.50457 21.0551 6.69782 20.9925C6.86926 20.937 7.03242 20.8586 7.18286 20.7594C7.35242 20.6476 7.49951 20.5005 7.7937 20.2063L21 7.00006C22.1046 5.89549 22.1046 4.10463 21 3.00006C19.8954 1.89549 18.1046 1.89549 17 3.00006L3.7937 16.2063C3.49952 16.5005 3.35242 16.6476 3.24061 16.8172C3.1414 16.9676 3.06298 17.1308 3.00748 17.3022C2.94493 17.4955 2.92195 17.7022 2.87601 18.1157L2.49997 21.5001Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M2.87601 18.1157C2.92195 17.7022 2.94493 17.4955 3.00748 17.3022C3.06298 17.1308 3.1414 16.9676 3.24061 16.8172C3.35242 16.6476 3.49952 16.5005 3.7937 16.2063L17 3.00006C18.1046 1.89549 19.8954 1.89549 21 3.00006C22.1046 4.10463 22.1046 5.89549 21 7.00006L7.7937 20.2063C7.49951 20.5005 7.35242 20.6476 7.18286 20.7594C7.03242 20.8586 6.86926 20.937 6.69782 20.9925C6.50457 21.0551 6.29783 21.0781 5.88434 21.124L2.49997 21.5001L2.87601 18.1157Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}}
1,32262:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/company/settings/[[...tab]]",function(){return n(29131)}])},47015:(e,t,n)=>{"use strict";n.d(t,{y:()=>j});var o=n(37876),i=n(14232),r=n(23327),a=n(84976);let l=a.Ay.div.withConfig({displayName:"styles__SpotsCounterWrapper",componentId:"sc-d1e63afa-0"})(["padding:1rem 0rem 0.5rem 0rem;width:100%;flex-shrink:0;"]),s=a.Ay.div.withConfig({displayName:"styles__ContainerSpotsCounter",componentId:"sc-d1e63afa-1"})(["background-color:",";border-radius:24px;padding:1rem;margin-bottom:1rem;",""],e=>{let{theme:t}=e;return t.colors["blue-10"]},e=>{let{greenBackground:t}=e;return t&&(0,a.AH)(["background:linear-gradient( 92deg,rgba(146,227,169,0.8) 0%,#d6f559 100% ),#d6f559;"])}),d=a.Ay.p.withConfig({displayName:"styles__SpotsCounterHeading",componentId:"sc-d1e63afa-2"})(["margin:0;font-family:",";color:",";font-size:",";font-weight:600;text-transform:capitalize;"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.md}),c=a.Ay.p.withConfig({displayName:"styles__PlanNameText",componentId:"sc-d1e63afa-3"})(["margin:0;margin-top:0.125rem;font-family:",";font-size:",";font-weight:600;color:",";background:",";-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors["primary-gradient"]}),m=a.Ay.div.withConfig({displayName:"styles__UsageProgressBar",componentId:"sc-d1e63afa-4"})(["width:100%;height:8px;background-color:",";border-radius:999px;margin-top:0.75rem;position:relative;overflow:hidden;&::before{content:'';position:absolute;top:0;left:0;width:","%;height:100%;background:",";background:",";border-radius:999px;transition:all 0.3s;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{percentage:t}=e;return t},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors["primary-gradient"]}),p=a.Ay.div.withConfig({displayName:"styles__CardDivider",componentId:"sc-d1e63afa-5"})(["width:100%;height:1px;margin:1rem 0;background-color:#d2d2d2;"]),u=a.Ay.p.withConfig({displayName:"styles__LearnAboutYourPlanText",componentId:"sc-d1e63afa-6"})(["margin:0;font-family:",";color:",";font-size:",";margin-top:0.5rem;font-weight:700;cursor:pointer;",""],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{alignCenter:t}=e;return t&&(0,a.AH)(["text-align:center;line-height:1.5;"])}),y=(0,a.Ay)(r.$).withConfig({displayName:"styles__UpgradePlanButton",componentId:"sc-d1e63afa-7"})(["font-size:",";width:100%;padding:0.55rem 1rem;"],e=>{let{theme:t}=e;return t.fontSize.body.sm}),g=a.Ay.p.withConfig({displayName:"styles__FreeTierTopText",componentId:"sc-d1e63afa-8"})(["margin:0;font-family:",";color:",";font-weight:600;letter-spacing:-0.2px;font-size:",";text-align:center;"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.lg}),f=a.Ay.p.withConfig({displayName:"styles__FreeTierBottomText",componentId:"sc-d1e63afa-9"})(["margin:0;font-family:",";color:",";font-weight:700;font-size:",";letter-spacing:-0.2px;text-align:center;margin-bottom:0.6rem;"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.h3});var h=n(74695),x=n(74732),C=n(45512),b=n(44462),w=n(50336),v=n(98156),_=n(70918);let j=e=>{let{totalAccepts:t,hideCounter:n,onUpgradeTier:r,maxAcceptedCandidates:a}=e,[j,A]=(0,i.useState)(!1),[I,N]=(0,i.useState)(!1),[S,k]=(0,i.useState)(),[E,T]=(0,i.useState)(!1),M=(0,h.d4)(e=>{var t;return null==(t=e.User.data.company)?void 0:t.subscriptionStatus}),{queryParams:P,clearParam:z,addParam:D}=(0,C.s)(),{showUpgradeModal:L}=P;(0,i.useEffect)(()=>{L&&!I&&(T(!0),N(!0))},[I,L]);let B=(0,h.d4)(e=>{var t,n;return(null==(t=e.User.data.company)?void 0:t.subscriptionStatus)==="active"&&(null==(n=e.User.data.company)?void 0:n.productId)}),O=(0,i.useMemo)(()=>"active"!==M||!B,[B,M]),H=(0,i.useMemo)(()=>_.JK.find(e=>e.id===B),[B]),R=(0,i.useMemo)(()=>(0,x.F5)(O,a,t,null==H?void 0:H.isEnterprise),[t,O,a,null==H?void 0:H.isEnterprise]),V=(0,i.useCallback)(()=>{A(!0)},[]),U=(0,i.useCallback)(()=>{A(!1),k(void 0)},[]),F=(0,i.useCallback)(()=>{T(!0),D("showUpgradeModal","true")},[D]),G=(0,i.useCallback)(()=>{T(!1),z("showUpgradeModal"),k(void 0)},[z]),q=(0,o.jsx)(y,{variant:"primaryGradient",noBorder:!0,onClick:()=>
1{if((null==H?void 0:H.isEnterprise)||(null==H?void 0:H.isPremium))return V();F()},"data-testid":"spots-counter-upgrade-plan-button",id:"spots-counter-upgrade-plan-button",children:R.cta});return(0,o.jsxs)(l,{children:[!O&&!n&&(0,o.jsxs)(s,{children:[(0,o.jsxs)(d,{children:[Number.isNaN(R.count)?"0":R.count," ",R.text]}),(null==H?void 0:H.name)&&(0,o.jsx)(c,{"data-testid":"spots-counter-plan-name",children:H.name}),!R.hidePercentage&&(0,o.jsx)(m,{percentage:R.percentage}),(0,o.jsx)(p,{}),q]}),!O&&n&&q,O&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s,{greenBackground:!0,children:[(0,o.jsx)(g,{children:"YOU’RE IN"}),(0,o.jsx)(f,{children:"FREE MODE"}),(0,o.jsxs)(u,{role:"button",onClick:V,"data-testid":"learn-more-about-pricing-options-button",alignCenter:!0,children:[(0,o.jsx)("u",{children:"learn more"})," about pricing options"]})]}),q]}),(0,o.jsx)(b.A,{isOpen:j&&!S,onClose:()=>U(),onClickPlan:e=>{k(e)}}),(0,o.jsx)(w.s,{triggerSource:v.Q.SPOTS_COUNTER,isOpen:E||!!S,title:(null==H?void 0:H.isEnterprise)?"Enterprise Plan":"Upgrade your plan",forceIntoTierBillingProduct:S,onClose:()=>G(),onConfirmTierUpdate:()=>{r&&r(),G(),k(void 0),A(!1)}})]})}},47213:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var o=n(37876);n(14232);let i=e=>(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 20C12.5523 20 13 19.5523 13 19C13 18.4477 12.5523 18 12 18C11.4477 18 11 18.4477 11 19C11 19.5523 11.4477 20 12 20Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},52742:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},53489:(e,t,n)=>{"use strict";n.d(t,{U:()=>d});var o=n(37876);n(14232);var i=n(84976);let r=i.Ay.div.withConfig({displayName:"styles__DashboardBlocksMobileNavContainer",componentId:"sc-f84bf6fc-0"})(["display:flex;width:100%;overflow:auto;flex-direction:row;justify-content:",";padding:0.5rem 0.5rem 1rem 0.5rem;background:",";border-bottom:1px solid #e7e7e7;gap:1rem;"],e=>{let{hasMultipleItems:t}=e;return t?"space-between":"center"},e=>{let{theme:t}=e;return t.colors.white}),a=i.Ay.button.withConfig({displayName:"styles__DashboardBlocksMobileNavButton",componentId:"sc-f84bf6fc-1"})(["box-sizing:border-box;width:120px;flex-shrink:0;display:flex;justify-content:center;align-items:center;text-align:center;color:",";background:",";font-weight:",";font-size:",";border-radius:0.5rem;padding:0.7rem 0.5rem;cursor:pointer;border:none;white-space:nowrap;"],e=>{let{theme:t,isSelected:n}=e;return n?t.colors.white:t.colors["gray-120"]},e=>{let{theme:t,isSelected:n}=e;return n?t.colors["primary-gradient"]:t.colors["gray-03"]},e=>{let{isSelected:t}=e;return t?"600":"500"},e=>{let{theme:t}=e;return t.fontSize.body.sm}),l=i.Ay.div.withConfig({displayName:"styles__DashboardMobileNavContainer",componentId:"sc-f84bf6fc-2"})(["display:flex;flex-direction:column;"]);var s=n(55761);let d=e=>{let{currentlySelectedComponentNavKey:t,setCurrentComponentNavBlock:n,componentNavBlocks:i,userType:d,isCompanyAndHasNoActiveGig:c}=e;return(0,o.jsxs)(l,{children:["R"===d&&!c&&(0,o.jsx)(s.e,{closeSelectorOnSelect:!0}),(0,o.jsx)(r,{hasMultipleItems:i.length>1,children:i.map(e=>(0,o.jsx)(a,{onClick:()=>n(e),isSelected:t===e.key,disabled:e.disabled,children:e.title},e.key))})]})}},54538:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n(37876),i=n(14232),r=n(98477),a=n(84976);let l=a.Ay.div.withConfig({displayName:"styles__PopoverContainer",componentId:"sc-26bf8f8e-0"})(["position:fixed;background-color:white;z-index:9999;top:0;left:0;border-radius:0.5rem;border:2px solid ",";"],e=>{let{theme:t}=e;return t.colors["blue-10"]}),s=a.Ay.div.withConfig({displayName:"styles__PopoverHeader",componentId:"sc-26bf8f8e-1"})(["padding:1rem;padding-bottom:0;color:",";font-size:",";"],e=>{let{theme:t}=e;return t.colors["gray-60"]},e=>{let{theme:t}=e;return t.fontSize.body.md}),d=a.Ay.div.withConfig({displayName:"styles__PopoverBody",componentId:"sc-26bf8f8e-2"})(["display:flex;flex-direction:column;"]),c=a.Ay.button.withConfig({displayName:"styles__OptionContainer",componentId:"sc-26bf8f8e-3"})(["display:flex;border:none;width:100%;background-color:transparent;align-items:center;padding:0.5rem 1rem;min-width:100px;margin:0;border-radius:4px;font-weight:500;font-family:",";position:relative;color:",";"," &:not(:last-child)::after{content:'';position:absolute;bottom:0;left:1rem;right:1rem;height:1px;background-color:",";@media (max-width:","){left:0.5rem;right:0.5rem;}}@media (max-width:","){padding:0.25rem 0.5rem;color:",";}"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t,color:n}=e;return t.colors[n||"gray-120"]},e=>{let{disabled:t}=e;return!t&&(0,a.AH)(["cursor:pointer;&:hover{background-color:",";}"],e=>{let{theme:t}=e;return t.colors["gray-30"]})},e=>{let{theme:t}=e;return t.colors["blue-10"]},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{mobileColor:t,color:n,theme:o}=e;return o.colors[t||n||"gray-120"]}),m=a.Ay.div.withConfig({displayName:"styles__OptionIcon",componentId:"sc-26bf8f8e-4"})(["display:grid;margin-right:0.5rem;"]),p=a.Ay.p.withConfig({displayName:"styles__OptionLabel",componentId:"sc-26bf8f8e-5"})(["font-size:",";white-space:nowrap;font-weight:500;font-family:",";margin:0.5rem 0;color:",";"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t,disabled:n}=e;return n?t.colors["gray-60"]:"inherit"}),u=a.Ay.div.withConfig({displayName:"styles__OuterContainer",componentId:"sc-26bf8f8e-6"})(["width:100%;"]);var y=n(51332);let g=i.memo(e=>{let{anchorElement:t,title:n,options:a,isOpen:g,onClose:f,extraMargin:h=0}=e,x=(0,i.useRef)(null),C=(0,i.useRef)(null);(0,i.useEffect)(()=>{g&&C.current&&C.current.focus()},[g]);let b=a.filter(e=>e);return(0,i.useEffect)(()=>{let e=()=>{if(x.current&&t){let{top:e,left:n,width:o,height:i}=t.getBoundingClientRect(),r=x.current.offsetWidth,a=x.current.offsetHeight,l=n+o/2-r/2-h,s=e+i+10;l+r>window.innerWidth&&(l=window.innerWidth-r-24),l<0&&(l=0),s+a>window.innerHeight&&(s=e-a-10),x.current.style.transform="translate(".concat(l,"px, ").concat(s,"px)")}};return g&&e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[t,h,g]),(0,i.useEffect)(()=>{let e=e=>{!x.current||x.current.contains(e.target)||t.contains(e.target)||f()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,f]),(0,o.jsx)(o.Fragment,{children:g&&r.createPortal((0,o.jsxs)(l,{ref:x,children:[n&&(0,o.jsx)(s,{children:n}),(0,o.jsxs)(d,{children:[b.map((e,t)=>{let{label:n,onClick:r,icon:a,color:l,mobileColor:s,disabled:d,toolTipText:g}=e;return(0,o.jsx)(y.A,{title:g,children:(0,o.jsx)(u,{children:(0,o.jsxs)(c,{disabled:d,color:l,mobileColor:s,ref:0===t?C:null,type:"button",onClick:e=>{e.stopPropagation(),r&&r(),f()},children:[a&&(0,o.jsx)(m,{children:i.cloneElement(a,{width:"18px"})}),(0,o.jsx)(p,{disabled:d,children:n})]})})},"option-item-menu-".concat(n))}),0===b.length&&(0,o.jsx)(c,{disabled:!0,children:"No options available"})]})]}),document.getElementById("portal-root"))})})},55761:(e,t,n)=>{"use strict";n.d(t,{e:()=>E});var o=n(37876),i=n(14232),r=n(23327),a=n(84976);let l=a.Ay.button.withConfig({displayName:"styles__CurrentGigSection",componentId:"sc-23c97e03-0"})(["border-radius:0.5rem;border:none;border-color:transparent;display:flex;flex:1;background:",";cursor:pointer;color:",";padding:0.75rem;.chevron-down{transition:transform 0.1s;}"," @media (max-width:","){height:auto;padding:1rem;}"],e=>{let{theme:t}=e;return t.colors["gray-70"]},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{isOpen:t}=e;return t&&(0,a.AH)([".chevron-down{transform:rotate(180deg);}"])},e=>{let{theme:t}=e;return t.breakpoints.md}),s=a.Ay.div.withConfig({displayName:"styles__SelectedGigInfo",componentId:"sc-23c97e03-1"})(["width:100%;text-align:left;gap:0.25rem;display:flex;flex-direction:column;"]),d=a.Ay.p.withConfig({displayName:"styles__SelectedGigTitle",componentId:"sc-23c97e03-2"})(["margin:0;font-family:",";font-weight:600;font-size:",";color:",";background:",";-webkit-background-clip:text;line-height:1.3;background-clip:text;-webkit-text-fill-color:transparent;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;
1@media (min-width:769px) and (max-width:1260px){-webkit-line-clamp:1;}"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors["primary-gradient"]}),c=a.Ay.p.withConfig({displayName:"styles__SelectedGigStatus",componentId:"sc-23c97e03-3"})(["margin:0;font-family:",";color:",";background:",";-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:0.75rem;text-transform:capitalize;font-weight:400;"],e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors["primary-gradient"]}),m=a.Ay.div.withConfig({displayName:"styles__GigOptionItem",componentId:"sc-23c97e03-4"})(["display:flex;align-items:center;justify-content:space-between;width:100%;padding:0.3rem 0;"]),p=a.Ay.div.withConfig({displayName:"styles__GigOptionTitleContainer",componentId:"sc-23c97e03-5"})([""]),u=a.Ay.p.withConfig({displayName:"styles__GigOptionStatus",componentId:"sc-23c97e03-6"})(["font-size:",";text-transform:capitalize;margin-top:0.15rem;font-weight:500;margin:0;position:relative;width:fit-content;"],e=>{let{theme:t}=e;return t.fontSize.body.md}),y=a.Ay.div.withConfig({displayName:"styles__StatusColorItem",componentId:"sc-23c97e03-7"})(["position:absolute;width:8px;height:8px;background-color:",";right:-1.2rem;top:calc(50% + 1px);transform:translateY(-50%);border-radius:8px;&::after{content:'';position:absolute;border-radius:8px;width:16px;height:16px;background-color:",";right:50%;top:50%;transform:translate(50%,-50%);opacity:0.3;}"],e=>{let{color:t}=e;return t},e=>{let{color:t}=e;return t}),g=a.Ay.div.withConfig({displayName:"styles__SelectorFooter",componentId:"sc-23c97e03-8"})(["background-color:",";padding:1.5rem 1rem;font-family:",";border-top:1px solid ",";"],e=>{let{theme:t}=e;return t.colors["blue-02"]},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.colors["blue-30"]}),f=a.Ay.p.withConfig({displayName:"styles__FooterTitle",componentId:"sc-23c97e03-9"})(["font-size:",";color:",";font-weight:700;margin:0;margin-bottom:0.25rem;"],e=>{let{theme:t}=e;return t.fontSize.body.lg},e=>{let{theme:t}=e;return t.colors["primary-dark"]}),h=(0,a.Ay)(r.$).withConfig({displayName:"styles__FooterCreateGigButton",componentId:"sc-23c97e03-10"})(["margin-top:1rem;width:100%;text-transform:uppercase;"]),x=a.Ay.div.withConfig({displayName:"styles__OuterSelectorContainer",componentId:"sc-23c97e03-11"})(["display:flex;flex-direction:column;@media (max-width:","){padding:0.5rem;}@media (min-width:769px) and (max-width:1260px){flex:0 0 197px;width:197px;}"],e=>{let{theme:t}=e;return t.breakpoints.md}),C=a.Ay.div.withConfig({displayName:"styles__SelectContainer",componentId:"sc-23c97e03-12"})(["display:flex;flex-direction:row;gap:0.5rem;align-items:center;"]),b=a.Ay.div.withConfig({displayName:"styles__GigOptionTitle",componentId:"sc-23c97e03-13"})(["font-size:",";"],e=>{let{theme:t}=e;return t.fontSize.body.lg});var w=n(74695),v=n(78409),_=n(69127),j=n(89099),A=n(58951),I=n(1394),N=n(53380),S=n(28359);let k=e=>(0,o.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_8747_10942)",children:[(0,o.jsx)("path",{d:"M4.47133 5.80478L7.13799 3.13811C7.25943 3.01237 7.32663 2.84397 7.32511 2.66917C7.32359 2.49438 7.25348 2.32717 7.12987 2.20356C7.00627 2.07996 6.83906 2.00985 6.66426 2.00833C6.48946 2.00681 6.32106 2.074 6.19533 2.19544L3.99999 4.39078L1.80466 2.19544C1.67892 2.074 1.51052 2.00681 1.33573 2.00833C1.16093 2.00985 0.993719 2.07996 0.870114 2.20356C0.746509 2.32717 0.676396 2.49438 0.674877 2.66917C0.673358 2.84397 0.740555 3.01237 0.861993 3.13811L3.52866 5.80478C3.65368 5.92976 3.82322 5.99997 3.99999 5.99997C4.17677 5.99997 4.34631 5.92976 4.47133 5.80478Z",fill:"#FFF186"}),(0,o.jsx)("path",{d:"M4.47133 5.80478L7.13799 3.13811C7.25943 3.01237 7.32663 2.84397 7.32511 2.66917C7.32359 2.49438 7.25348 2.32717 7.12987 2.20356C7.00627 2.07996 6.83906 2.00985 6.66426 2.00833C6.48946 2.00681 6.32106 2.074 6.19533 2.19544L3.99999 4.39078L1.80466 2.19544C1.67892 2.074 1.51052 2.00681 1.33573 2.00833C1.16093 2.00985 0.993719 2.07996 0.870114 2.20356C0.746509 2.32717 0.676396 2.49438 0.674877 2.66917C0.673358 2.84397 0.740555 3.01237 0.861993 3.13811L3.52866 5.80478C3.65368 5.92976 3.82322 5.99997 3.99999 5.99997C4.17677 5.99997 4.34631 5.92976 4.47133 5.80478Z",fill:"url(#paint0_linear_8747_10942)"})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_8747_10942",x1:"7.32513",y1:"2.0083",x2:"7.11409",y2:"6.31548",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#2132E6"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#009DFE"})]}),(0,o.jsx)("clipPath",{id:"clip0_8747_10942",children:(0,o.jsx)("rect",{width:"8",he
1ight:"8",fill:"white",transform:"translate(8) rotate(90)"})})]})]}),E=()=>{let e=(0,i.useRef)(null),t=(0,j.useRouter)(),n=(0,w.d4)(e=>e.CompanyWorkspace.title),[r,a]=(0,i.useState)(!1),{onNext:E,onSearch:T,hasMore:M,isLoading:P,isFirstPageLoading:z,items:D,query:L}=(0,_.X)({apiUrl:"/v3/company-workspace/gig/paginated-options",itensPerPage:10,onParseResponse:e=>{let{data:t}=e;return{...t,items:t.items.map(e=>({...e,image:(0,A.T)(e.value).backgroundGraphic}))}}});return(0,o.jsxs)(x,{children:[(0,o.jsx)(l,{role:"button",ref:e,onClick:()=>a(e=>!e),isOpen:r,children:(0,o.jsxs)(s,{children:[(0,o.jsx)(d,{children:n}),(0,o.jsxs)(C,{children:[(0,o.jsx)(c,{children:"Workspace"}),(0,o.jsx)(k,{className:"chevron-down",width:10,height:10})]})]})}),(0,o.jsx)(v.W,{isOpen:r,anchorElement:e.current,onClose:()=>a(!1),title:"My GIGs",infiniteScrollStyles:{borderBottom:"1px solid ".concat(N.A.colors["blue-20"])},options:D,onNext:E,onSearch:T,hasMore:M,isLoading:P,isFirstPageLoading:z,query:L,disableSearch:!0,width:"430px",onSelect:e=>{t.push("/company/gigs/".concat(e.value)),a(!1)},CustomOptionItemRender:e=>{var t,n;let{item:i}=e,r=i.status===I.Y.ACTIVE&&!(null==(t=i.participants)?void 0:t.length),a={active:N.A.colors["green-40"],ended:N.A.colors.red,recruiting:N.A.colors["blue-10"]},l=r?"recruiting":i.status,s=a[l];return(0,o.jsxs)(m,{children:[(0,o.jsxs)(p,{children:[(0,o.jsx)(b,{children:i.label}),(0,o.jsxs)(u,{children:[l,(0,o.jsx)(y,{color:s})]})]}),(null==(n=i.participants)?void 0:n.length)>0&&(0,o.jsx)(S.Z,{data:i.participants.map(e=>({id:e.id,name:e.name,pictureUrl:e.picture})),maxItems:3})]})},renderFooter:()=>(0,o.jsxs)(g,{children:[(0,o.jsx)(f,{children:"Ready to start a new program?"}),(0,o.jsx)("span",{children:"Discover Gen Z talent for your next project."}),(0,o.jsx)(h,{onClick:()=>{window.location.href="/company/post-gig"},children:"Create New Gig"})]})})]})}},60726:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var o=n(37876);n(14232);let i=e=>{let{variant:t,...n}=e,i="gradient"===t,r=i?"url(#hfc-logo-short-gradient)":"currentColor";return(0,o.jsxs)("svg",{width:"48",height:"28",viewBox:"0 0 48 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[i&&(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"hfc-logo-short-gradient",x1:"0",y1:"0",x2:"48",y2:"4",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#2132E6"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#009DFE"})]})}),(0,o.jsx)("path",{d:"M4.34582 11.1638C4.46036 11.2251 4.59111 11.2508 4.72082 11.2375C5.49706 11.2375 6.27331 11.2597 7.0608 11.2375C7.07729 11.1632 7.08981 11.0881 7.09831 11.0126C7.09831 10.8982 7.09831 10.7802 7.09831 10.6622V0.792852C7.07854 0.640485 7.09262 0.485718 7.13956 0.339218C7.25559 0.282634 7.38675 0.263286 7.51455 0.283899H11.0658C11.152 0.283899 11.2308 0.283899 11.3358 0.283899C11.3634 0.359512 11.3848 0.437217 11.3995 0.516245C11.4052 0.621897 11.4052 0.727768 11.3995 0.833421V27.1295C11.4264 27.3102 11.4044 27.4946 11.3358 27.6643C11.2608 27.6643 11.1783 27.6901 11.0958 27.6938C9.7458 27.7307 7.46205 27.6938 7.13956 27.6532C7.11542 27.5927 7.09905 27.5296 7.0908 27.4651C7.0908 27.336 7.0908 27.2033 7.0908 27.0742V16.2238C7.0908 16.0689 7.0908 15.9177 7.0908 15.7554C7.03356 15.73 6.97297 15.7126 6.91081 15.7038C6.10831 15.7038 5.30956 15.7038 4.50706 15.7038C4.45488 15.7082 4.40334 15.7181 4.35332 15.7333C4.33392 15.7995 4.32136 15.8675 4.31582 15.9361C4.31582 16.0652 4.31582 16.1943 4.31582 16.305C4.31582 19.9193 4.31582 23.5324 4.31582 27.1443C4.33936 27.3153 4.32269 27.4895 4.26707 27.6532C3.93707 27.7122 2.06208 27.7307 0.340833 27.6938C0.247083 27.6938 0.153331 27.6753 0.0483313 27.6643C0.0483313 27.5831 0.0108333 27.5167 0.00333332 27.4504C-0.00416665 27.384 0.00333332 27.2401 0.00333332 27.1332V0.837112C0.00333332 0.693277 0.00333332 0.553126 0.00333332 0.412979C0.00423104 0.376716 0.0190256 0.342128 0.044755 0.316139C0.0704845 0.290151 0.105247 0.274679 0.142081 0.27283C0.224581 0.27283 0.307082 0.27283 0.389581 0.27283C1.56458 0.27283 2.73707 0.27283 3.90707 0.27283C4.01582 0.27283 4.12082 0.27283 4.24457 0.27283C4.26882 
10.352642 4.28761 0.433963 4.30081 0.516245C4.30081 0.634264 4.30081 0.752283 4.30081 0.885054C4.30081 4.14532 4.30081 7.40437 4.30081 10.6622C4.33456 10.8392 4.34207 10.9941 4.34582 11.1638Z",fill:r}),(0,o.jsx)("path",{d:"M47.947 10.5922C47.8385 10.6473 47.7158 10.6691 47.5945 10.6549H44.1708C44.0546 10.6549 43.9346 10.6549 43.7958 10.6328C43.7701 10.5544 43.75 10.4743 43.7358 10.3931C43.7358 10.275 43.7358 10.157 43.7358 10.0243V5.83089C43.751 5.50132 43.713 5.17145 43.6233 4.85355C43.574 4.67721 43.479 4.51649 43.3475 4.38718C43.216 4.25786 43.0526 4.16439 42.8733 4.11594C42.5474 4.03301 42.2054 4.03301 41.8796 4.11594C41.7251 4.14659 41.5825 4.21914 41.4679 4.32538C41.3532 4.43163 41.2711 4.56732 41.2308 4.71709C41.1642 4.96652 41.1166 5.22046 41.0883 5.47684C41.0771 5.64139 41.0771 5.8065 41.0883 5.97104C41.0883 11.277 41.0883 16.5829 41.0883 21.8888C41.0787 22.1934 41.1064 22.498 41.1708 22.7961C41.2135 22.9781 41.2764 23.155 41.3583 23.3235C41.4379 23.4902 41.5633 23.6317 41.7204 23.7321C41.8774 23.8324 42.0598 23.8876 42.2471 23.8915C42.3671 23.8915 42.4871 23.8915 42.6221 23.8915C42.8206 23.8867 43.0138 23.8267 43.1791 23.7183C43.3444 23.61 43.475 23.4577 43.5558 23.2792C43.6582 23.0791 43.7194 22.861 43.7358 22.6375C43.7358 22.4015 43.7621 22.1654 43.7621 21.9294V16.2239C43.7424 16.0598 43.7603 15.8935 43.8146 15.7371C43.9314 15.683 44.0617 15.6638 44.1896 15.6818H46.6683C46.9645 15.6818 47.2645 15.6818 47.5645 15.6818C47.6808 15.6818 47.797 15.6818 47.9395 15.7039C47.9635 15.7738 47.9823 15.8453 47.9958 15.9178C48.0014 16.0001 48.0014 16.0826 47.9958 16.1649C47.9958 18.1528 47.9958 20.1407 47.9958 22.1286C48.0034 23.0028 47.877 23.8731 47.6208 24.7102C47.5225 25.0358 47.397 25.3528 47.2458 25.6581C46.9748 26.2119 46.5783 26.6974 46.0869 27.0771C45.5955 27.4569 45.0221 27.7208 44.4108 27.8488C43.9921 27.9487 43.5629 27.9995 43.1321 28C42.5921 28 42.0558 28 41.5158 28C40.9407 27.9894 40.3711 27.8885 39.8283 27.7013C39.2217 27.5078 38.6689 27.1787 38.2135 26.7397C37.758 26.3007 37.4122 25.7638 37.2033 25.1712C36.9397 24.4758 36.7879 23.7441 36.7533 23.0026C36.7533 22.7334 36.7533 22.4605 36.7533 22.1913C36.7533 16.6493 36.7533 11.1073 36.7533 5.56535C36.7406 4.85836 36.8226 4.15279 36.9971 3.46683C37.0869 3.11479 37.2126 2.77253 37.3721 2.44523C37.6515 1.86265 38.065 1.35205 38.5799 0.953884C39.0947 0.555716 39.6968 0.280914 40.3383 0.15124C40.7821 0.0494158 41.2364 -0.00132999 41.6921 2.64892e-05C42.2058 2.64892e-05 42.7196 2.64892e-05 43.2333 2.64892e-05C43.8794 0.0141849 44.5194 0.126138 45.1308 0.331952C45.6914 0.511165 46.202 0.815989 46.6224 1.2224C47.0428 1.62881 47.3615 2.1257 47.5533 2.67389C47.7476 3.21733 47.8735 3.78212 47.9283 4.35566C47.9852 4.9896 48.0065 5.62615 47.992 6.2624C47.992 7.56798 47.992 8.87357 47.992 10.1792C48.011 10.3184 47.9956 10.4601 47.947 10.5922Z",fill:r}),(0,o.jsx)("path",{d:"M30.1798 27.6717C29.861 27.727 27.9485 27.7454 26.2685 27.7085C26.1748 27.7085 26.0848 27.7085 25.976 27.679C25.9582 27.6086 25.9445 27.5371 25.9348 27.4651C25.9291 27.3595 25.9291 27.2536 25.9348 27.148C25.9348 18.3851 25.9348 9.62092 25.9348 0.85556C25.9348 0.715412 25.9348 0.571579 25.9348 0.431432C25.9357 0.395535 25.9507 0.361363 25.9765 0.335971C26.0023 0.310579 26.0371 0.295907 26.0736 0.294974C26.156 0.289458 26.2386 0.289458 26.321 0.294974C29.2885 0.294974 32.2548 0.294974 35.2198 0.294974C35.3285 0.294974 35.4335 0.294974 35.5573 0.294974C35.5798 0.383488 35.606 0.460934 35.6173 0.538384C35.6229 0.608349 35.6229 0.678643 35.6173 0.748608V3.85398C35.6377 3.99381 35.6195 4.13646 35.5648 4.26704C35.4624 4.33108 35.3387 4.35355 35.2198 4.32974H30.7198L30.296 4.35556C30.2717 4.42406 30.2529 4.49436 30.2398 4.56578C30.2342 4.65913 30.2342 4.75273 30.2398 4.84608C30.2398 6.8819 30.2398 8.90297 30.2398 10.9536C30.2214 11.1059 30.2354 11.2604 30.281 11.4072C30.3976 11.4622 30.5282 11.4814 30.656 11.4625H34.1023C34.1676 11.4503 34.2348 11.4518 34.2995 11.4671C34.3641 11.4823 34.4247 11.511 34.4773 11.551C34.4773 11.6358 34.4773 11.7391 34.4773 11.8424C34.4773 12.9968 34.4773 14.1474 34.4773 15.3018C34.4773 15.6927 34.4773 15.7001 34.0798 15.7038H30.7048C30.5575 15.691 30.409 15.7035 30.266 15.7407C30.2484 15.8073 30.2359 15.8751 30.2285 15.9435C30.2285 16.0726 30.2285 16.2017 30.2285 16.3123
1C30.2285 19.9242 30.2285 23.5361 30.2285 27.148C30.2676 27.3233 30.2506 27.5062 30.1798 27.6717Z",fill:r}),(0,o.jsx)("path",{d:"M24.2961 27.6791C23.972 27.714 23.6451 27.714 23.3211 27.6791C23.2813 27.6133 23.245 27.5456 23.2123 27.4762L13.0874 0.442518C13.0818 0.419482 13.0818 0.395479 13.0874 0.372444C13.093 0.34402 13.1031 0.31664 13.1174 0.291305C13.4338 0.254424 13.7535 0.254424 14.0699 0.291305C14.1048 0.342601 14.1349 0.396917 14.1599 0.453582C17.5424 9.47465 20.9173 18.4969 24.2848 27.5205C24.2958 27.5726 24.2996 27.6259 24.2961 27.6791Z",fill:r})]})}},64451:(e,t,n)=>{e.exports=n(19031).Symbol},65559:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var o=n(37876);n(14232);let i=e=>{let{variant:t,...n}=e,i="gradient"===t;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"508",height:"73",viewBox:"0 0 508 73",fill:"none",...n,children:[(0,o.jsx)("mask",{id:"mask0_3173_152",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"508",height:"73",children:(0,o.jsxs)("g",{clipPath:"url(#clip0_3173_152)",children:[(0,o.jsx)("path",{d:"M10.5316 40.3564H17.6668V71.3196H28.2127V0.855225H17.6668V29.0787H10.5316V0.855225H0V71.3196H10.5316V40.3564Z",fill:"white"}),(0,o.jsx)("path",{d:"M47.5336 0.0866699H45.7641C35.7748 0.0866699 32.25 6.43584 32.25 16.293V55.4318C32.25 65.2745 35.789 72.0006 45.864 72.0006H47.6336C57.7941 72.0006 61.0621 65.2745 61.0621 55.4318V16.1191C61.0621 6.53732 57.7941 0.0866699 47.5336 0.0866699ZM50.3877 56.2581C50.3877 59.2877 49.717 61.6651 46.8344 61.6651C43.9518 61.6651 43.0099 59.2877 43.0099 56.2581V15.6697C43.0099 11.9733 44.0374 10.2627 46.7345 10.2627C49.1605 10.2627 50.3877 12.0602 50.3877 15.6697V56.2581Z",fill:"white"}),(0,o.jsx)("path",{d:"M65.0723 71.3196H74.4907V25.7736L80.9267 71.3196H85.1223L91.4583 25.7736V71.3196H101.348V0.855225H88.747L83.6239 38.0806L78.5864 0.855225H65.0723V71.3196Z",fill:"white"}),(0,o.jsx)("path",{d:"M258.739 71.3196H268V25.7736L274.322 71.3196H278.446L284.682 25.7736V71.3196H294.415V0.855225H282.028L276.976 38.0806L272.025 0.855225H258.739V71.3196Z",fill:"white"}),(0,o.jsx)("path",{d:"M105.629 0.855225V71.3196H130.146V60.6216H116.161V40.3275H126.706V29.615H116.161V11.1473H129.589V0.91322L105.629 0.855225Z",fill:"white"}),(0,o.jsx)("path",{d:"M168.748 71.3196H179.279V40.3564H189.911V29.644H179.279V11.0893H192.708V0.855225H168.748V71.3196Z",fill:"white"}),(0,o.jsx)("path",{d:"M223.376 65.6371V40.9941C223.376 36.167 221.135 34.355 218.809 33.3258C220.679 32.5575 223.376 30.1947 223.376 24.3239V11.6835C223.376 3.73979 219.922 0.797119 212.844 0.797119H195.72V71.2615H206.251V39.82H208.963C212.316 39.82 212.873 41.1391 212.873 44.2702V65.4921C212.873 69.2755 213.429 70.5077 213.9 71.2905H224.346V70.8121C223.6 69.1972 223.267 67.4175 223.376 65.6371V65.6371ZM212.93 24.8168C212.93 27.9479 212.002 29.8323 209.105 29.8323H206.251V10.4224H209.105C212.373 10.4224 212.93 11.872 212.93 14.9596V24.8168Z",fill:"white"}),(0,o.jsx)("path",{d:"M242.413 0.0866699H240.643C230.654 0.0866699 227.115 6.43584 227.115 16.293V55.4318C227.115 65.2745 230.654 72.0006 240.729 72.0006H242.498C252.673 72.0006 255.927 65.2745 255.927 55.4318V16.1191C255.913 6.53732 252.659 0.0866699 242.413 0.0866699ZM245.267 56.2581C245.267 59.2877 244.61 61.6651 241.713 61.6651C238.817 61.6651 237.889 59.2877 237.889 56.2581V15.6697C237.889 11.9733 238.916 10.2627 241.628 10.2627C244.054 10.2627 245.267 12.0651 245.267 15.6697V56.2581Z",fill:"white"}),(0,o.jsx)("path",{d:"M324.511 56.9248C324.511 59.824 323.584 61.665 321.058 61.665C318.832 61.665 317.704 60.0559 317.704 56.8233V14.9738C317.704 11.8427 318.361 10.3351 320.972 10.3351C323.584 10.3351 324.511 11.9442 324.511 14.9738V27.3678H334.872V14.7854C334.872 7.87086 333.559 0.101074 322.028 0.101074H319.602C310.098 0.101074 307.016 7.01557 307.016 14.2055V57.2147C307.016 64.3177 309.256 72.0875 319.973 72.0875H322.328C332.403 72.0875 334.929 64.4192 334.929 56.8233V40.5445H324.568L324.511 56.9248Z",fill:"white"}),(0,o.jsx)("path",{d:"M353.594 0.0866699H351.824C341.835 0.0866699 338.31 6.43584 338.31 16.293V55.4318C338.31 65.2745 341.849 72.0006 351.924 72.0006H353.722C363.883 72.0006 367.136 65.2745 367.136 55.4318V16.1191C367.108 6.53732 363.854 0.0866699 353.594 0.0866699ZM356.448 56.2581C356.448 59.2877 355.791 61.6651 352.909 61.6651C350.026 61.6651 349.084 59.2877 349.084 56.2581V15.6697C349.084 11.9733 350.112 10.2627 352.809 10.2627C355.235 10.2627 356.448 12.0651 356.448 15.6697V56.2581Z",fill:"white"}),(0,o.jsx)("path",{d:"M371.132 0.855225V71.3196H394.536V60.4332H381.693V0.855225H371.132Z",fill:"white"}),(0,o.jsx)("path",{d:"M397.603 0.855225V71.3196H421.007V60.4332H408.163V0.855225H397.603Z",fill:"white"}),(0,o.jsx)("path",{d:"M424.09 0.855225V71.3196H448.606V60.6216H434.621V40.3275H445.153V29.615H434.621V11.1473H448.05V0.91322L424.09 0.855225Z",fill:"white"}),(0,o.jsx)("path",{d:"M462.176 72.1307C467.499 72.1307 471.038 66.6368 471.78 64.274C472.622 67.3036 473.464 70.8116 473.55 71.1885H479.515V28.3677H464.788V39.2251H469.54V56.8376C469.54 59.5048 468.327 61.3893 465.63 61.3893C463.304 61.3893 462.176 59.6788 462.176 56.3737V15.1765C462.176 11.9439 463.303 10.3493 465.444 10.3493C468.056 10.3493 468.798 12.0454 468.798 15.1765V23.1347H479.058V15.8868C479.058 7.55165 477.745 0.0717773 466.472 0.0717773H464.417C454.342 0.0717773 451.459 7.31973 451.459 15.22V59.2584C451.459 66.5063 455.269 72.1452 461.52 72.1452L462.176 72.1307Z",fill:"white"}),(0,o.jsx)("path",{d:"M483.468 0.855225V71.3196H507.999V60.6216H494.014V40.3275H504.545V29.615H494.014V11.1473H507.442V0.91322L483.468 0.855225Z",fill:"white"}),(0,o.jsx)("path",{d:"M139.325 0.021253L136.614 0.927246L159.697 72.2001L162.408 71.2941L139.325 0.021253Z",fill:"white"})]})}),(0,o.jsx)("g",{mask:"url(#mask0_3173_152)",children:(0,o.jsx)("rect",{x:"-55.519",y:"-49.9673",width:"688.437",height:"252.612",fill:i?"url(#hfc-logo-gradient)":"currentColor"})}),(0,o.jsxs)("defs",{children:[i&&(0,o.jsxs)("linearGradient",{id:"hfc-logo-gradient",x1:"0",y1:"0",x2:"508",y2:"73",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#2132E6"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#009DFE"})]}),(0,o.jsx)("clipPath",{id:"clip0_3173_152",children:(0,o.jsx)("rect",{width:"508",height:"72.1749",fill:"white"})})]})]})}},68373:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},69127:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var o=n(10832),i=n(14232);let r={},a=e=>{let{apiUrl:t,onParseResponse:n=e=>e,itensPerPage:a=5,offset:l=!1,defaultFilters:s={},initialPage:d,isInverted:c=!1,initialQuery:m="",overrideRef:p=!1,onUpdateItems:u=e=>e}=e,[y,g]=(0,i.useState)(!0),[f,h]=(0,i.useState)(!1),[x,C]=(0,i.useState)(!1),[b,w]=(0,i.useState)([]),[v,_]=(0,i.useState)(s),[j,A]=(0,i.useState)(""),[I,N]=(0,i.useState)(m),[S,k]=(0,i.useState)(()=>d?(r[t]=d,d||1):1),[E,T]=(0,i.useState)(!0),[M,P]=(0,i.useState)(t),[z,D]=(0,i.useState)(0),[L,B]=(0,i.useState)(0),[O,H]=(0,i.useState)(0),R=(0,i.useRef)(!0),V=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&w([]),t?k(t):n?D(n):k(e=>e+1)},[]),U=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&w([]),t?k(t):n?D(e=>e-a):k(e=>e-1)},[a]),F=(0,i.useCallback)(e=>{P(t=>(t!==e&&(r[t]=void 0,w([])),e))},[]),G=(0,i.useCallback)(async()=>{let e;if(!M||-1===S||x)return;if(e=c?r[M]===S&&!E:r[M]===S||!E,R.current&&!p){R.current=!1;return}let t=1===S&&!I&&(null===z||0===z)&&!e;try{let e;t&&h(!0),C(!0),r[M]=S,e=l?await o.A.get(M,{params:{fetchOffset:z,
1itensPerPage:a,query:I,filters:v,page:S,sortBy:j}}):await o.A.get(M,{params:{page:S||1,itensPerPage:a,query:I,filters:v,sortBy:j}});let i=n(e);T(i.items.length>=a),1===S&&!l||0===z&&l?w(i.items):w(e=>[...e,...i.items]),void 0!==i.totalPages&&B(i.totalPages),void 0!==i.totalItems&&H(i.totalItems),t&&h(!1),C(!1)}catch(e){t&&h(!1),C(!1)}},[M,z,v,E,c,x,a,l,n,p,S,I,j]),q=(0,i.useCallback)((e,t)=>{r[M]=0,N(e),_(t),T(!0),k(1),D(0),w([])},[M]),Y=(0,i.useCallback)(()=>{w([]),r[M]=0,N(""),_({}),T(!0),A(),k(1),D(0)},[M]),Z=(0,i.useCallback)(e=>{w(e)},[]),W=(0,i.useCallback)(()=>{r[M]=0,G()},[M,G]),$=(0,i.useCallback)(async()=>{try{let e=await o.A.get(M,{params:{page:void 0,itensPerPage:void 0,query:I,filters:v,sortBy:j}});return n(e)}catch(e){return null}},[M,v,n,I,j]);return(0,i.useEffect)(()=>(y?g(!1):q("",{}),()=>{r[M]=void 0}),[M]),(0,i.useEffect)(()=>{G()},[S,z]),(0,i.useEffect)(()=>{-1===S&&k(1)},[S]),(0,i.useEffect)(()=>{r[M]=0,k(-1)},[I,v,z,j,a]),(0,i.useEffect)(()=>{u(b)},[b]),{isFirstPageLoading:f,isLoading:x,onPrevious:U,onNext:V,onSearch:q,loadMore:G,onResetState:Y,setApiUrl:F,query:I,items:b,hasMore:E,page:S,filters:v,fetchOffset:z,onUpdateItemsState:Z,onReloadPage:W,sortBy:j,setSortBy:A,totalPages:L,totalItems:O,getDataForExport:$}}},72006:(e,t,n)=>{"use strict";n.d(t,{h:()=>p});var o=n(37876),i=n(14232),r=n(84976);let a=r.Ay.div.withConfig({displayName:"styles__PillContainer",componentId:"sc-6e8ba7c1-0"})(["border-radius:2.313rem;padding:",";display:flex;gap:0.5rem;align-items:center;flex-direction:row;background-color:",";white-space:nowrap;align-items:center;justify-content:center;@media (max-width:","){padding:0.5rem 0.75rem;gap:0.25rem;}"],e=>{let{size:t}=e;return"sm"===t?"0.3rem 1rem":"0.7rem 1rem"},e=>{let{backgroundColor:t}=e;return t||"white"},e=>{let{theme:t}=e;return t.breakpoints.md}),l=r.Ay.p.withConfig({displayName:"styles__PillLabel",componentId:"sc-6e8ba7c1-1"})(["white-space:nowrap;padding:0;margin:0;font-size:",";font-weight:700;font-family:",";color:",";text-transform:uppercase;font-size:",";@media (max-width:","){font-size:",";}"],e=>{let{theme:t}=e;return t.fontSize.body.md},e=>{let{theme:t}=e;return t.fonts.octonary},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t,size:n}=e;return t.fontSize.body["sm"===n?"sm":"md"]},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t}=e;return t.fontSize.body.xs}),s=r.Ay.div.withConfig({displayName:"styles__IconContainer",componentId:"sc-6e8ba7c1-2"})(["display:flex;align-items:center;justify-content:center;color:",";"],e=>{let{color:t}=e;return t||"inherit"}),d=(0,r.Ay)(e=>{let{variant:t,...n}=e;return 4===t?(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M16 8V5L19 2L20 4L22 5L19 8H16ZM16 8L12 11.9999M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):5===t?(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,o.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M22 12C22 17.5228 17.5228 22 12 22M22 12C22 6.47715 17.5228 2 12 2M22 12H18M12 22C6.47715 22 2 17.5228 2 12M12 22V18M2 12C2 6.47715 6.47715 2 12 2M2 12H6M12 2V6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}).withConfig({displayName:"styles__StyledTargetIcon",componentId:"sc-6e8ba7c1-3"})(["width:14px;
1height:14px;@media (max-width:","){width:12px;height:14px;}"],e=>{let{theme:t}=e;return t.breakpoints.md});var c=n(53380);let m={removed:c.A.colors["gray-30"],dismissed:c.A.colors["gray-30"],"not selected":c.A.colors["gray-30"],ended:c.A.colors["gray-30"],active:c.A.colors["green-40"],applied:c.A.colors["purple-10"],invited:c.A.colors["yellow-dark"],"in review":c.A.colors["blue-10"],recruiting:c.A.colors["blue-10"],draft:c.A.colors["gray-30"],"best match":c.A.colors.white,inactive:c.A.colors["gray-30"],scheduled:c.A.colors["yellow-10"]},p=e=>{let{statusLabel:t,size:n}=e,r=m[t],p=(0,i.useMemo)(()=>[{label:"active",icon:(0,o.jsx)(d,{variant:5}),color:c.A.colors["green-80"]}],[]),u=(0,i.useMemo)(()=>p.find(e=>e.label===t),[p,t]),y=(0,i.useMemo)(()=>"ended"===t?"Completed":"in review"===t?"Messaged":"scheduled"===t?"Scheduled":t,[t]);return(0,o.jsxs)(a,{backgroundColor:r,"data-testid":"gig-status-pill",size:n,children:[(0,o.jsx)(l,{size:n,children:y}),u&&(0,o.jsx)(s,{color:u.color,children:u.icon})]})}},74732:(e,t,n)=>{"use strict";n.d(t,{F5:()=>o}),n(37876),n(34622),n(14232),n(70918),n(99742);let o=(e,t,n,o)=>{if(e)return{count:"unlimited",text:"spots left",hidePercentage:!0,cta:"EXPLORE PLANS"};if(-1===t)return{count:n,text:"spots filled",hidePercentage:!0,cta:"LEARN MORE"};let i=t-n,r=n/t*100;return i<=0?{count:0,text:"spots left",percentage:r,cta:"EXPLORE PLANS"}:1===i?{count:1,text:"spot left",percentage:r,cta:"EXPLORE PLANS"}:{count:i,text:"spots left",percentage:r,cta:r>=60||o?"LEARN MORE":"EXPLORE PLANS"}}},78707:(e,t,n)=>{"use strict";n.d(t,{A2:()=>a,Cy:()=>r,kA:()=>o});let o="section",i={active:"active",draft:"draft",drafts:"draft",completed:"ended",ended:"ended"},r=e=>{var t;let n=Array.isArray(e)?e[0]:e;return"string"!=typeof n?null:null!=(t=i[n.trim().toLowerCase()])?t:null},a=()=>r(new URLSearchParams(window.location.search).get(o))},79364:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},81165:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var o=n(37876);n(14232);let i=e=>{let{...t}=e;return(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,o.jsx)("path",{d:"M2.42012 12.7132C2.28394 12.4975 2.21584 12.3897 2.17772 12.2234C2.14909 12.0985 2.14909 11.9015 2.17772 11.7766C2.21584 11.6103 2.28394 11.5025 2.42012 11.2868C3.54553 9.50484 6.8954 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7766C21.8517 11.9015 21.8517 12.0985 21.8231 12.2234C21.785 12.3897 21.7169 12.4975 21.5807 12.7132C20.4553 14.4952 17.1054 19 12.0004 19C6.8954 19 3.54553 14.4952 2.42012 12.7132Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12.0004 15C13.6573 15 15.0004 13.6569 15.0004 12C15.0004 10.3431 13.6573 9 12.0004 9C10.3435 9 9.0004 10.3431 9.0004 12C9.0004 13.6569 10.3435 15 12.0004 15Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},85481:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var o=n(37876);n(14232);let i=e=>{let{variant:t,...n}=e;return 2===t?(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M21 9.00001L21 3.00001M21 3.00001H15M21 3.00001L12 12M10 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.jsx)("path",{d:"M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},85582:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var o=n(37876),i=n(14232),r=n(98477),a=n(84976);let l=(0,a.DU)([".MuiDialog-root{display:none !important;}"]),s=(0,a.i7)(["from{opacity:0;transform:translateY(100%);}to{opacity:1;transform:translateY(0);}"]),d=(0,a.i7)(["from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(100%);}"]),c=a.Ay.div.withConfig({displayName:"style__Overlay",componentId:"sc-6b87c963-0"})(["position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,0.5);z-index:9999;",""],e=>{let{zIndexOverride:t}=e;return t&&"z-index: ".concat(t,";")}),m=a.Ay.div.withConfig({displayName:"style__ModalContainer",componentId:"sc-6b87c963-1"})(["position:relative;width:100%;height:100%;background:#fff;display:flex;flex-direction:column;animation:"," 0.3s ease-out forwards;"],e=>{let{isClosing:t}=e;return t?d:s}),p=a.Ay.div.withConfig({displayName:"style__Header",componentId:"sc-6b87c963-2"})(["display:flex;align-items:center;justify-content:space-between;padding:16px;background:",";border-bottom:1px solid ",";"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors["blue-30"]});a.Ay.div.withConfig({displayName:"style__Logo",componentId:"sc-6b87c963-3"})(["font-size:18px;font-weight:bold;"]);let u=a.Ay.button.withConfig({displayName:"style__CloseIconButton",componentId:"sc-6b87c963-4"})(["display:flex;justify-content:center;align-items:center;color:",";top:1rem;right:2rem;width:2.5rem;height:2.5rem;border-radius:50%;border:none;background:rgba(255,255,255,0.25);backdrop-filter:blur(2px);cursor:pointer;"," @media (max-width:","){color:",";background:","1a;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{disabled:t}=e;return t&&"display: none;"},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.colors["gray-120"]}),y=a.Ay.div.withConfig({displayName:"style__Content",componentId:"sc-6b87c963-5"})(["flex:1;overflow-y:auto;overflow-x:hidden;"]);var g=n(65712),f=n(60726),h=n(56170);let x=function(e){let{isOpen:t,onClose:n,children:a,zIndexOverride:s,modalRef:d,ssrInject:x,hideOtherModals:C=!0}=e,[b,w]=(0,i.useState)(t),[v,_]=(0,i.useState)(!1),[j,A]=(0,i.useState)(!1),I=(0,i.useRef)(0);return((0,i.useEffect)(()=>{A(!0)},[]),(0,i.useEffect)(()=>
1{if(t)I.current=window.pageYOffset||document.documentElement.scrollTop,w(!0),_(!1);else if(!t&&b){_(!0);let e=setTimeout(()=>{w(!1),window.scrollTo(0,I.current)},300);return()=>clearTimeout(e)}},[t,b]),b)?x&&!j?(0,o.jsxs)("div",{style:{display:t?"block":"none"},children:[(0,o.jsxs)(p,{children:[(0,o.jsx)(f.i,{}),(0,o.jsx)(u,{onClick:n,children:(0,o.jsx)(h.U,{})})]}),(0,o.jsx)(y,{ref:d,children:a})]}):r.createPortal((0,o.jsxs)(c,{zIndexOverride:s,children:[t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.k,{}),C&&(0,o.jsx)(l,{})]}),(0,o.jsxs)(m,{isClosing:v,children:[(0,o.jsxs)(p,{children:[(0,o.jsx)(f.i,{}),n&&(0,o.jsx)(u,{onClick:n,children:(0,o.jsx)(h.U,{})})]}),(0,o.jsx)(y,{ref:d,className:"gig-preview-container-scrollable",children:a})]})]}),document.body):null}},87491:(e,t,n)=>{"use strict";n.d(t,{AD:()=>_,AG:()=>A,Ei:()=>y,I6:()=>I,I8:()=>w,Ls:()=>v,P5:()=>u,TD:()=>j,cd:()=>E,dZ:()=>N,eP:()=>b,gS:()=>g,gX:()=>h,i4:()=>C,uF:()=>T,ux:()=>k,vO:()=>S,w_:()=>M,zI:()=>f});var o=n(4410),i=n(60342),r=n(43525),a=n(70058),l=n(80737),s=n(61613),d=n(62986),c=n(7732),m=n(28097),p=n(78707);let u=()=>async(e,t)=>{try{let{loadingUpcomingPayment:n}=t().Company.dashboard,i=t().User.data.company.productId>1;if(n)return;e({type:r.h.SET_LOADING_UPCOMING_PAYMENT,payload:!0});let a=(0,p.A2)(),{data:l}=await (0,o.gN)(),s=a;s||(s="active",!l.hasActiveGigs&&l.hasDraftGigs&&(s="draft")),e({type:r.h.SET_DASHBOARD_BASIC_INFO,payload:{upcomingPayments:l.upcomingPayments,totalApplicants:l.totalApplicants,hasAvailablePayment:i,pendingTaskSubmissionsToReview:l.pendingTaskSubmissionsToReview,hasActiveGigs:l.hasActiveGigs,hasDraftGigs:l.hasDraftGigs,suggestedNextGig:l.suggestedNextGig,suggestedMicroGig:l.suggestedMicroGig,selectedSection:s,hasAnsweredAttributionForm:l.hasAnsweredAttributionForm,isPendingTosOrPrivacyPolicyAgreement:l.isPendingTosOrPrivacyPolicyAgreement}})}catch(e){(0,i.addErrorNotification)("Failed to load company dashboard information")}finally{e({type:r.h.SET_LOADING_UPCOMING_PAYMENT,payload:!1})}},y=(e,t)=>async n=>{n({type:r.h.SET_DASHBOARD_LOADING_ATTRIBUTION_FORM,payload:!0});try{await (0,o.r9)(e,t)}catch(e){(0,i.addErrorNotification)("Failed to submit your answer")}finally{n({type:r.h.SET_DASHBOARD_LOADING_ATTRIBUTION_FORM,payload:!1}),n({type:r.h.SET_DASHBOARD_BASIC_INFO,payload:{hasAnsweredAttributionForm:!0}})}},g=e=>async(t,n)=>{try{let{dashboard:o}=n().Company,i=null==e?void 0:e.find(e=>e.isAboutToRejectStudents),l=(null==i?void 0:i.totalApplicants)-(null==i?void 0:i.totalAcceptedApplicants),s="subscription-past-due"===n().NotificationBanner.type||"payment-failed"===n().NotificationBanner.type;if(i&&l>1&&!s){let e=i.totalApplicants-i.totalAcceptedApplicants;t({type:a.j.SET_BANNER_INFO,payload:{key:"nextGigClosingSoon-".concat(i.id),totalStudentsToBeRejected:e,gigTitle:i.title,redirectTo:"/company/gigs/".concat(i.id),type:"closing-gig"}})}t({type:r.h.SET_DASHBOARD_DATA,payload:{...o,gigs:e}})}catch(e){(0,i.addErrorNotification)("Failed to uniquely append company dashboard gigs")}},f=(e,t)=>async(n,o)=>{let{dashboard:i}=o().Company,a=i.gigs.map(n=>n.id===e?{...n,applicantsToRate:t}:n);n({type:r.h.SET_DASHBOARD_DATA,payload:{...i,gigs:a}})},h=(e,t,n)=>async(o,i)=>{let{dashboard:a}=i().Company,l=a.gigs.map(o=>o.id===e?{...o,applicantsToRate:o.applicantsToRate.map(e=>e.id===t?{...e,rating:n,canSubmitEngagementReview:!1}:e).sort((e,t)=>e.canSubmitEngagementReview&&!t.canSubmitEngagementReview?-1:!e.canSubmitEngagementReview&&t.canSubmitEngagementReview?1:0)}:o);o({type:r.h.SET_DASHBOARD_DATA,payload:{...a,gigs:l}})},x=()=>async e=>{try{e({type:r.h.SET_LOADING_TEAM_MEMBERS,payload:!0});let{data:t}=await (0,o.yv)();e({type:r.h.SET_TEAM_MEMBERS,payload:t})}catch(e){(0,i.addErrorNotification)("Failed to load team members")}finally{e({type:r.h.SET_LOADING_TEAM_MEMBERS,payload:!1})}},C=e=>async t=>{try{return t({type:r.h.SET_LOADING_REMOVE_TEAM_MEMBER,payload:!0}),await (0,o.Z4)(e),t(x()),(0,i.addSuccessNotification)("Team member removed"),!0}catch(e){return(0,i.addErrorNotification)("Failed to remove team member"),!1}finally{t({type:r.h.SET_LOADING_REMOVE_TEAM_MEMBER,payload:!1})}},b=e=>async t=>{try{return await (0,o.Pk)(e),t(x()),(0,i.addSuccessNotification)("Successfully updated your primary user"),!0}catch(e){return(0,i.addErrorNotification)("Failed to update primary user"),!1}},w=e=>async t=>{t({type:r.h.SET_CURRENT_TEAM_MEMBER,payload:e})},v=(e,t)=>
1async(n,o)=>{try{let{gigs:i,isEndingGigLoading:a}=o().Company.dashboard;if(a)return;n({type:r.h.SET_IS_ENDING_GIG_LOADING,payload:!0});let{data:l}=await (0,s.YL)(e),{endDate:d,liveIsOngoing:c,status:m,displayedStatus:p}=l,u=i.findIndex(t=>t.id===e),y=[...i];y[u]={...y[u],activeTo:d,liveIsOngoing:c,status:m,displayedStatus:p,liveEndedAt:new Date},n({type:r.h.SET_DASHBOARD_DATA,payload:{...o().Company.dashboard,gigs:y}}),t&&t()}catch(e){console.log("error",e)}finally{n({type:r.h.SET_IS_ENDING_GIG_LOADING,payload:!1})}},_=(e,t,n,o)=>async(a,l)=>{let{isAdjustingProgramDates:d}=l().Company.dashboard;if(!d)try{let o;a({type:r.h.SET_IS_ADJUSTING_GIG_PROGRAM_DATES,payload:!0});let{data:l}=await (0,s.Hi)(e,t),{gigId:d,startDate:c,endDate:m,liveIsOngoing:p,status:u,displayedStatus:y,endedGracePeriod:g,daysUntilGigDeactivates:f}=l;a((o={activeFrom:c,activeTo:m,displayedStatus:y,liveIsOngoing:p,status:u,endedGracePeriod:g,daysUntilGigDeactivates:f},async(e,t)=>{let{gigs:n}=t().Company.dashboard,i=n.map(e=>e.id===d?{...e,...o}:e);e({type:r.h.UPDATE_DASHBOARD_GIG_LIST,payload:i})})),(0,i.addSuccessNotification)("Program dates have been adjusted successfully."),a({type:r.h.SET_IS_ADJUSTING_GIG_PROGRAM_DATES,payload:!1}),n&&n()}catch(e){var c;o&&(null==e||null==(c=e.message)?void 0:c.includes("no active subscription"))?o():(0,i.addErrorNotification)("Something went wrong while adjusting the program dates of the GIG. Please try again."),a({type:r.h.SET_IS_ADJUSTING_GIG_PROGRAM_DATES,payload:!1})}},j=(e,t)=>async(n,a)=>{try{let{dashboard:i}=a().Company,{data:l}=await (0,o.tb)(t),s=i.gigs.map(t=>t.id===e?{...t,task:l}:t);n({type:r.h.SET_DASHBOARD_DATA,payload:{...i,gigs:s}})}catch(e){(0,i.addErrorNotification)("Failed to load task information for the GIG")}},A=()=>async(e,t)=>{try{let{loadingBasicCommunityInfo:n}=t().Company.dashboard;if(n)return;e({type:r.h.SET_LOADING_BASIC_COMMUNITY_INFO,payload:!0});let{data:i}=await (0,o.pg)();e({type:r.h.SET_DASHBOARD_BASIC_COMMUNITY_INFO,payload:{...i}})}catch(e){(0,i.addErrorNotification)("Failed to load company dashboard information")}finally{e({type:r.h.SET_LOADING_BASIC_COMMUNITY_INFO,payload:!1})}},I=function(e){let{name:t,description:n,links:o=[],logoKey:a,backgroundKey:s,slug:c}=e,m=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return async(e,p)=>{let u=p().Company.companyInfo.company.id,y=p().User.data.company;try{let{data:p}=await (0,d.OJ)(u,{name:t,description:n,links:o.filter(e=>!e.isDeleted),logoKey:a,backgroundKey:s,slug:c});e({type:r.h.SET_COMPANY_BASIC_INFO,payload:p}),e({type:l.z.SET_COMPANY_DATA,payload:{...y,logoUrl:p.logoUrl,backgroundUrl:p.backgroundUrl}}),m&&m(),(0,i.addSuccessNotification)("Company information updated successfully")}catch(e){(0,i.addErrorNotification)("Failed to update company information. Please try again.")}}},N=e=>async t=>{try{let{data:n}=await (0,o.CR)([e]);t({type:r.h.SET_TEAM_MEMBERS,payload:n}),m.N.track(c.E.events.INVITE,{context:c.E.contexts.INVITE_YOUR_TEAM})}catch(t){console.log("error",t),(0,i.addErrorNotification)("Failed to send invite to ".concat(e))}},S=e=>async(t,n)=>{let{members:o}=n().Company.teamMembers,i=o.map(t=>t.id===e.id?{...t,...e}:t);t({type:r.h.SET_TEAM_MEMBERS,payload:i})},k=()=>async e=>{try{e({type:l.z.SET_IS_LOADING_OUTSTANDING_BALANCE,payload:!0});let{data:t}=await (0,o.Hk)();e({type:l.z.SET_COMPANY_OUTSTANDING_COMPENSATION_BALANCE,payload:t})}catch(e){console.log("error",e),(0,i.addErrorNotification)("Failed to load outstanding balance for company. Please try again.")}finally{e({type:l.z.SET_IS_LOADING_OUTSTANDING_BALANCE,payload:!1})}},E=(e,t,n,i,r)=>async()=>{try{await (0,o.rw)(e,t,n),i&&i()}catch(e){console.log("error",e),r&&r(e)}},T=e=>async(t,n)=>{let{dashboard:o}=n().Company;t({type:r.h.SET_DASHBOARD_BASIC_INFO,payload:{...o,selectedSection:e}})},M=e=>async(t,n)=>{let{dashboard:o}=n().Company;t({type:r.h.SET_DASHBOARD_BASIC_INFO,payload:{...o,microGigsSelectedSection:e}})}},89950:(e,t,n)=>{var o=n(64451),i=n(97023),r=n(99828),a=o?o.toStringTag:void 0;
1e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):r(e)}},97023:(e,t,n)=>{var o=n(64451),i=Object.prototype,r=i.hasOwnProperty,a=i.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=r.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var i=a.call(e);return o&&(t?e[l]=n:delete e[l]),i}},98825:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},99459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var o=n(37876);n(14232);var i=n(48230),r=n.n(i),a=n(84976),l=n(65559);let s=a.Ay.div.withConfig({displayName:"styles__ContainerInner",componentId:"sc-44c5ce54-0"})(["width:100%;margin:0 auto;padding:32px;border-radius:24px;background:",";display:flex;justify-content:space-between;align-items:center;@media (max-width:","){flex-direction:column;align-self:center;text-align:center;align-items:center;padding:0 2rem;padding-top:1rem;padding-bottom:6rem;border-radius:0;background:",";}"],e=>{let{theme:t,backgroundColor:n}=e;return n||"linear-gradient(94deg, ".concat(t.colors.white," 0%, ").concat(t.colors["blue-10"]," 100%), ").concat(t.colors.white)},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t,backgroundColor:n}=e;return n||"linear-gradient(180deg, ".concat(t.colors.white," 0%, ").concat(t.colors["blue-10"]," 100%), ").concat(t.colors.white)}),d=(0,a.Ay)(l.a).withConfig({displayName:"styles__BrandName",componentId:"sc-44c5ce54-1"})(["width:250px;height:43px;margin:1rem 0;color:",";"],e=>{let{theme:t}=e;return t.colors["primary-dark"]}),c=a.Ay.div.withConfig({displayName:"styles__LinksContainer",componentId:"sc-44c5ce54-2"})(["display:flex;align-items:center;margin-left:auto;font-size:",";gap:12px;@media (max-width:","){gap:3px;display:flex;justify-content:center;flex-wrap:wrap;}"],e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.breakpoints.md}),m=a.Ay.a.withConfig({displayName:"styles__ItemLink",componentId:"sc-44c5ce54-3"})(["color:",";font-family:",";font-weight:500;cursor:pointer;text-decoration:none;@media (max-width:","){font-size:",";}"],e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t}=e;return t.fontSize.body.sx}),p=a.Ay.div.withConfig({displayName:"styles__SideContainer",componentId:"sc-44c5ce54-4"})(["display:flex;flex-direction:column;align-items:flex-end;gap:6px;"]),u=a.Ay.p.withConfig({displayName:"styles__LegalText",componentId:"sc-44c5ce54-5"})(["color:",";font-family:",";font-size:",";margin:0;font-weight:500;@media (max-width:","){width:100%;text-align:center;font-size:",";}"],e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fonts.quaternary},e=>{let{theme:t}=e;return t.fontSize.body.sm},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{theme:t}=e;return t.fontSize.body.md}),y=a.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-44c5ce54-6"})(["width:120px;height:1px;background-color:",";margin:32px 0;"],e=>{let{theme:t}=e;return t.colors["primary-dark"]}),g=a.Ay.footer.withConfig({displayName:"styles__ContainerFooter",componentId:"sc-44c5ce54-7"})(["margin-top:auto;min-height:80px;padding:24px 50px;display:flex;align-items:center;background-color:",";width:100%;@media (max-width:","){padding:0;}",""],e=>{let{theme:t,backgroundColor:n}=e;return n||t.colors.white},e=>{let{theme:t}=e;return t.breakpoints.md},e=>{let{variant:t}=e;return"transparent"===t&&(0,a.AH)(["background-color:transparent;","{background:transparent;border:2px solid ",";padding:24px 32px;}",",",",",",","{color:",";}",",","{color:",";}@media (max-width:","){","{border:none;}",",","{display:none;}",",",",","{color:",";font-size:",";}}"],s,e=>{let{theme:t}=e;return t.colors["blue-10"]},m,u,d,c,e=>{let{theme:t}=e;return t.colors.white},m,c,e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.breakpoints.md},s,d,y,m,u,c,e=>{let{theme:t}=e;return t.colors["primary-dark"]},e=>{let{theme:t}=e;return t.fontSize.body.sm})});var f=n(80892);let h=e=>{let{backgroundColor:t,...n}=e,{isResponsive:i}=(0,f.Q)("md");return(0,o.jsx)(g,{className:"compact-footer",backgroundColor:t,...n,children:(0,o.jsxs)(s,{backgroundColor:t,children:[(0,o.jsx)(d,{}),i&&(0,o.jsx)(y,{}),(0,o.jsxs)(p,{children:[n.children,(0,o.jsxs)(u,{type:"body",children:["\xa9 ",new Date().getFullYear()," Home From College"," ",!i&&" All Rights Reserved."]}),(0,o.jsxs)(c,{children:[(0,o.jsx)(m,{as:r(),href:"/worker-terms",children:"Worker Terms of Use"}),"\xa0|\xa0",(0,o.jsx)(m,{as:r(),href:"/client-terms",children:"Client Terms of Use"}),"\xa0|\xa0",(0,o.jsx)(m,{as:r(),href:"/privacy-policy",children:"Privacy Policy"})]})]})]})})}},99828:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}}},e=>{e.O(0,[9195,4031,5352,6361,9207,665,9329,1471,9326,8230,1655,6688,9086,815,4222,4688,9809,51,3474,2976,2842,1946,7921,9744,3758,6313,3083,4287,2955,1015,336,3243,7948,4128,636,6593,8792],()=>e(e.s=32262)),_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.