PageSourceSearch

https://app.sortly.com/scripts/slackIntegration-CyZu6SDu_bundle.js

js sortly.com collected 2026-10-01 10:18:21 UTC 65,414 bytes, 397 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/speedboat_sage-CLcY2TgV_bundle.js","scripts/vendor-BBNELK6W_bundle.js","assets/vendor-B0RIjS4H.css","scripts/registration-8fW6h2tH_bundle.js","scripts/moment-Dt2i7U-U_bundle.js","scripts/sentry-Bq-jBV13_bundle.js","scripts/datadog-DxmyjtSX_bundle.js","assets/registration-BldnB8HG.css","scripts/index-yTdTJQbB_bundle.js","scripts/stripe-rL9tfl_U_bundle.js","scripts/speedboat-vendor-DJ0pA_pR_bundle.js","assets/index-SuTVq08V.css","scripts/PageHeader-BIoeV32J_bundle.js","scripts/Text-DAosVweU_bundle.js","scripts/Skeleton-D6cCpJ8C_bundle.js","scripts/Thread-CdGGbul4_bundle.js","scripts/analytics-BM8fH6TW_bundle.js","scripts/HitlInterrupt-CFmTaN-4_bundle.js","scripts/Button-Bn0wcnb1_bundle.js","scripts/Command-xiGjX2JO_bundle.js","scripts/Popover-BWZ3tM3x_bundle.js","scripts/PopoverSelectTrigger-DzcmPjRQ_bundle.js","scripts/Card-DqbRGKXR_bundle.js","scripts/Input-DeXVb1SV_bundle.js","scripts/Label-CmnB7q7H_bundle.js","scripts/Switch-DOEAumkB_bundle.js","scripts/Textarea-BOcPF2Ti_bundle.js","scripts/Checkbox-ChOjQBlm_bundle.js","scripts/Table-KX9M8kc4_bundle.js","scripts/speedboat-sage-vendor-CFyq5UB-_bundle.js","scripts/useSageAttachmentsStore-8N-vMwgV_bundle.js","scripts/Tooltip-1L3LOk8b_bundle.js","scripts/SageCameraDialog-DGXT3y7__bundle.js","scripts/Dialog-BIzCqd-G_bundle.js","scripts/useSageStore-JiiaGmK6_bundle.js","scripts/useSpeedboatSetupStatusQuery-WxS60qIf_bundle.js","scripts/speedboat_inventory-BEgFREex_bundle.js","scripts/useJobActiveNodeIdsQuery-CC-cQ1DM_bundle.js","scripts/PageState-BrhynsDR_bundle.js","scripts/Empty-hkKWpKlI_bundle.js","scripts/SpeedboatPage-C2D8J3qH_bundle.js","scripts/Link-DlrQTAuh_bundle.js","scripts/useCreateMasterItemMutation-2lNo3A1w_bundle.js","scripts/FormFieldLabel-BWR8BWje_bundle.js","scripts/InputGroup-CKhUTUOA_bundle.js","scripts/useCurrencySymbol-Bw7syYri_bundle.js","scripts/LocationTreePicker-DvMd0mCV_bundle.js","scripts/LocationTreeSelect-KtWzStOo_bundle.js","scripts/useUnitsQuery-Coe0aKSp_bundle.js","scripts/DropdownMenu-BryQJHOw_bundle.js","scripts/useImportItemsActions-DfUjWxHs_bundle.js","scripts/useMasterItemsCatalogQuery-BI13UgOE_bundle.js","scripts/cacheInvalidation-CQnAes8q_bundle.js","scripts/useLocationsTreeQuery-DOj6Hoa8_bundle.js","scripts/locations.api-2KmF98fh_bundle.js","scripts/activityHistory.api-BaSoadet_bundle.js","scripts/LocationActionsMenu-B_I4oL-E_bundle.js","scripts/Select-Dh6cC1Dr_bundle.js","scripts/ConfirmDialog-DG2Wzx7H_bundle.js","scripts/AlertDialog-B0WRSvOY_bundle.js","scripts/Callout-DAkVa6ZQ_bundle.js","scripts/useCreateLocationMutation-St7TEtVG_bundle.js","scripts/useWithMasters-DPxYfgOW_bundle.js","scripts/useJobFilterOptions-Bbss59fe_bundle.js","scripts/useDebouncedValue-C0Vl8IVi_bundle.js","scripts/ListPagination-D1G_WWsP_bundle.js","scripts/speedboat_item_details-fuNDM4ap_bundle.js","scripts/useCurrencify-PqU77aPl_bundle.js","scripts/companyDates-CFEzfDHv_bundle.js","scripts/TagEditor-3DS2Ps6w_bundle.js","scripts/ToggleGroup-CaYDLUs0_bundle.js","scripts/useQuantityUpdateReasonsQuery-CsLXKFcE_bundle.js","scripts/useVendorsQuery-DizaZ38U_bundle.js","scripts/commandCenterActions-D1SeScI__bundle.js","scripts/useItemVendorsQuery-vVOwk_7p_bundle.js","scripts/Badge-CioskMTz_bundle.js","scripts/useAddToDraftPoAction-CwSuarns_bundle.js","scripts/usePurchaseOrderDetailQuery-D5VXod7m_bundle.js","scripts/purchaseOrders.api-CouUyhfp_bundle.js","scripts/useSpeedboatLayoutStore-Dsavcg7f_bundle.js","scripts/DatePicker-BoKZKBeM_bundle.js","scripts/activityTemplate-DuRdYFn1_bundle.js","scripts/useJobActivityTimelineQuery-79AXe8Vi_bundle.js","scripts/useJobQuery-s3C2x8Qm_bundle.js","scripts/useJobScoresQuery-rzcQoY5x_bundle.js","scripts/ScrollArea-DTGBaMrq_bundle.js","scripts/useCurrentUser-DzM4scGv_bundle.js","scripts/speedboat_settings-B1glbX2h_bundle.js","scripts/SpeedboatThemeProvider-DZ0dHEyb_bundle.js","scripts/speedboat_locations-Ct6QxWAL_bundle.js","scripts/Sidebar-og1D-3YU_bundle.js","scripts/speedboat_jobs-bHL45A5l_bundle.js","scripts/DataTable-qiMh01YL_bundle.js","scripts/useCurrentCompanyRole-YvdRuAa9_bundle.js","scripts/JobStatusBadge-GBxdY3DX_bundle.js","scripts/useJobsQuery-CcDeZ6Q-_bundle.js","scripts/StatusBadge-BqvHkFJF_bundle.js","scripts/jobDates-CheGNBgI_bundle.js","scripts/Progress-BnN_g4ih_bundle.js","scripts/speedboat_new_job-DHRBJyl3_bundle.js","scripts/Field-CYoZp08e_bundle.js","scripts/AgentBadge-CdTQUOqX_bundle.js","scripts/bulkActions.api-B7_nb9By_bundle.js","scripts/useCustomersQuery-Ak2ydPC5_bundle.js","scripts/speedboat_job_detail-XOEZU6Gz_bundle.js","scripts/useCreateJobTemplateMutation-D6I71r2G_bundle.js","scripts/useMasterItemSearchInfiniteQuery-Bi8Y_K_e_bundle.js","scripts/useMasterItemsByIdsQuery-xDz3Cki7_bundle.js","scripts/bulkUploadFlows-B4cw698K_bundle.js","scripts/useVendorItemsQuery-BinutKug_bundle.js","scripts/vendorItemImportProgress-C8KNootM_bundle.js","scripts/useBulkUploadStore-B10neJe4_bundle.js","scripts/Tabs--6WG3BMD_bundle.js","scripts/usePurchaseOrdersInfiniteQuery-CIS8JKQO_bundle.js","scripts/purchaseOrders.format-AXQOmpM3_bundle.js","scripts/speedboat_customers-BT_I9LIT_bundle.js","scripts/BulkActionBar-ySo6CCAu_bundle.js","scripts/speedboat_addresses-HD1a12T1_bundle.js","scripts/useCompanyAddressesQuery-j5mFw1rU_bundle.js","scripts/speedboat_job_templates-Do3awx4B_bundle.js","scripts/speedboat_vendors-vBsj1eYU_bundle.js","scripts/speedboat_custom_fields-BjfPOgNA_bundle.js","scripts/speedboat_catalog-gWOjTg-S_bundle.js","scripts/masterItemNames.api-DkBUcFxK_bundle.js","scripts/speedboat_command_center-CY1ZOgrA_bundle.js","scripts/Collapsible-CIu5wMrt_bundle.js","scripts/speedboat_plan_billing-BArF2sMH_bundle.js","scripts/ui-BzNROdTq_bundle.js","scripts/index-Bq-_brzd_bundle.js","scripts/hooks-CqwazBUZ_bundle.js","scripts/hooks-CwMX_mY0_bundle.js","scripts/speedboat_restock-DLQ57Yoe_bundle.js","scripts/speedboat_purchase_order_detail-CB0jt6pn_bundle.js","scripts/quickbooks-logo-qgOPxhV0_bundle.js","scripts/speedboat_bulk_import_from_file-BLFfCd_G_bundle.js","scripts/index-Cn0FxuL4_bundle.js","scripts/question-mark-DKn8E8fN_bundle.js","scripts/info-circle-large-C7uDyte7_bundle.js","scripts/index-C284GLkD_bundle.js","scripts/speedboat_workflows-DdkbLYZy_bundle.js"])))=>i.map(i=>d[i]);
2import{bO as V,r as c,bK as m,bL as d,j as o,cl as C,aE as et,c6 as Ge,b4 as We,az as U,c7 as He,de as ft,a8 as Ve,df as qe,dd as Kt,bV as Je,aw as Ke,a9 as Ye,dg as Qe,dh as Xe,a5 as _t,di as Ze,cm as to,cn as eo,dj as oo,d7 as xt,ag as no,ah as 
2so,b$ as ao,c3 as io}from"./vendor-BBNELK6W_bundle.js";import{u as N,a as z,b as J,c as nt,d as ro,G as L,A as E,e as h,m as K,S as gt,L as Y,F as x,T,f as co,i as lo,g as H,h as Yt,j as Qt,k as I,l as Xt,n as Ut,C as po,o as uo,t as v,B as yt,p as R,q as ho,r as mo,s as Zt,v as go,w as bo,x as st,y as fo,O as _o,z as xo,M as yo,R as Eo,D as So,P as zt,E as Bt,H as k,I as ht,J as W,K as Ao,N as wo,Q as vo,U as te,V as ee,W as To,X as ot,Y as oe,Z as Co,_ as Oo,$ as at,a0 as ne,a1 as Et,a2 as Q,a3 as X,a4 as Io,a5 as it,a6 as rt,a7 as Ft,a8 as $o,a9 as ct,aa as Ro,ab as ko,ac as Po,ad as j,ae as jo,af as St,ag as se,ah as ae,ai as Lo,aj as No,ak as Do}from"./registration-8fW6h2tH_bundle.js";import{a as A}from"./moment-Dt2i7U-U_bundle.js";import{_ as S}from"./datadog-DxmyjtSX_bundle.js";const Ti=/^\/(?:items$|folder\/\d+\/content)\/?/,Ci=/(folder)\/(\d*)$/,Oi=/item\/(\d+)\/*$/,Ii=/item\/(\d+)\/edit\/*$/,$i=/item-summary/,Ri=/items-group/,ki=/^\/items-group\/(?<itemsGroupUid>.+)/,Pi=/^\/item-summary\/(?<itemSummarySid>.+)/,Mo=/account-under-deletion/,Uo=/cancel-account(?:-redirect)?/,zo=/reactivate-account(?:-redirect)?/,Bo=/^\/setup(?:\/|$)/,ji=/threads/,Li={activity:"activity",mentions:"mentions"};var bt=(t=>(t.Restore="restore",t.Resubscribe="resubscribe",t.Upgrade="upgrade",t))(bt||{});const Ni=()=>{const t=N(),{locationPush:e}=z(),{steps:n}=h(y=>y.pages.companyCancellationPage),{subscriptionStatus:{isTrial:s},subscriptionDetails:{billingProvider:a},mark:{isFree:i}}=J(),{scheduledCancellation:r}=nt(),l=(y=!1)=>{V.isMobile?window.location.href=`/cancel-account-redirect?shouldSync=${y}`:e(y?"/items":"/company-details")};return{dismissCancellationFlow:()=>{t({type:E.RESET_COMPANY_CANCELLATION_STATE}),l(),r?L.dismissReactivateSubscription({is_trial:s,payment_source:a}):L.dismissCancelSubscription({is_trial:s,payment_source:a,is_free:i})},returnToPreviousScreen:()=>{n.length===1?(t({type:E.RESET_COMPANY_CANCELLATION_STATE}),l()):t({type:E.REMOVE_COMPANY_CANCELLATION_STEP})},closeAndRedirect:l}},Fo=()=>{const t=N(),{locationPush:e}=z(),{isItunesProvider:n,subscriptionStatus:{isTrial:s,isPaymentAuthorizationError:a},subscriptionDetails:{billingProvider:i,name:r},mark:{isFree:l}}=J(),{scheduledCancellation:u}=nt(),g=u&&A.utc().isBefore(u.accessLostAt),{dateFormat:y}=ro(),b=A.utc(u?.accessLostAt).format(y),f=A.utc(u?.trulyDeletedAt).format(y),$=(O=!1,D)=>{O&&L.completeReactivateSubscription({is_trial:s,payment_source:i,billing_cycle_end_date:b,remove_data_date:f,subscription:r,payment_card_expired:a,upgrade:D===bt.Upgrade}),V.isMobile?window.location.href=`/reactivate-account-redirect?shouldSync=${O}`:e(O?D?`/reactivate-success?reactivationType=${D}`:"/items":"/company-details")};return{reactivateAccount:()=>{!n&&(l||g)?t({type:E.CANCEL_COMPANY_REVERT_REQUEST,payload:{},onSuccess:()=>$(!0,l?bt.Restore:void 0)}):e("/reactivate-account")},closeAndRedirect:$}},Go=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",...t},c.createElement("g",{id:"icons-icn-close_svg__Add-Folder-or-Item",fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:1},c.createElement("g",{id:"icons-icn-close_svg__Add-Items_with-custom-fields",fill:"#2F313A",transform:"translate(-970 -30)"},c.createElement("g",{id:"icons-icn-close_svg__Content-area",transform:"translate(106 24)"},c.createElement("g",{id:"icons-icn-close_svg__Title"},c.createElement("path",{id:"icons-icn-close_svg__icn_close",d:"M13.455 12 20 18.545 18.545 20 12 13.455 5.455 20 4 18.545 10.545 12 4 5.455 5.455 4 12 10.545 18.545 4 20 5.455z",transform:"translate(860 2)"})))))),Wo=d.div`
3  width: 100%;
4
5  ${t=>!t.transparent&&m`
6      background-color: #fff;
7      border-bottom: 1px solid ${t.theme.delimiter.neutral200};
8      box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
9    `};
10`,Ho=d.div`
11  ${t=>t.wide&&m`
12      width: 100%;
13      display: flex;
14      justify-content: center;
15    `};
16`,Vo=d(x)`
17  max-width: none;
18  margin: 0 auto;
19  padding: 0 42px;
20  height: 85px;
21
22  ${t=>t.isCompact?m`
23        padding: 0;
24        height: 50px;
25      `:m`
26      ${K.phone`
27        padding: 60px 32px 0;
28        height: 123px;
29      `}
30    `}
31`,qo=d(x)`
32  height: 100%;
33`,Gt=d(Y)`
34  display: flex;
35  position: relative;
36  align-items: center;
37  font-size: 16px;
38  color: ${({theme:t})=>t.text.neutral900};
39  width: 100px;
40  border-bottom: 2px solid transparent;
41
42  &:hover,
43  &.active {
44    border-bottom: 2px solid ${({theme:t})=>t.delimiter.neutral200};
45  }
46
47  ${K.phone`
48    width: 80px;
49    height: 100%;
50  `}
51`,Wt=d.span`
52  width: 100%;
53  text-align: center;
54  display: block;
55  font-weight: 500;
56`,Jo=d.div`
57  cursor: pointer;
58  padding: 5px;
59  flex-shrink: 0;
60
61  ${K.phone`
62    position: absolute;
63    right: 15px;
64  `}
65`,Ko=d(T)`
66  ${K.phone`
67    font-size: 12px;
68  `}
69`,Yo=d.button`
70  position: absolute;
71  right: 32px;
72  top: 45%;
73  z-index: 16;
74
75  svg > g {
76    stroke: ${({theme:t})=>t.text.neutral900};
77  }
78`,Qo=t=>{const e=t.isCompact?36:44,n=t.isCompact?92:116;return t.disableLogoLink?o.jsx(gt,{height:e,width:n}):o.jsx(Y,{to:t.logoLink||"/items",children:o.jsx(gt,{height:e,width:n})})},Xo=t=>{const{t:e}=C(),n=N(),{locationGoBack:s}=z(),{closeAndRedirect:a}=Fo(),{subscriptionStatus:{isTrial:i}
78,subscriptionDetails:{billingProvider:r}}=J(),l=c.useCallback(()=>{n({type:E.SHOW_MODAL,payload:{component:"NodeActionModal",isDefaultHeadingHidden:!0,showCrossBtn:!1,autoWidth:!0,data:{submitButtonStyleType:"danger",question:e("common.log_out_message"),cancelHandler:()=>n({type:E.HIDE_MODAL}),submitHandler:()=>n({type:E.USER_LOGOUT_REQUEST}),buttonsAlign:t.buttonsAlign}}})},[n,t.buttonsAlign]);return t.showCloseIcon?o.jsx(Yo,{"data-testid":"close-button",type:"button",onClick:()=>{if(t.shouldAllowCurrentPlanUpgrade&&(L.dismissReactivateSubscription({is_trial:i,payment_source:r}),V.isMobile))return a(!1);s()},children:o.jsx(Go,{})}):t.showLogout?o.jsx(Jo,{onClick:l,children:o.jsx(Ko,{blue300:!0,fontMedium:!0,largeSize:!0,children:e("menu.logout")})}):t.simple?null:o.jsxs(qo,{children:[o.jsx(Gt,{activeClassName:"active",id:"registration-header-login",to:"/login",children:o.jsx(Wt,{children:e("common.login")})}),o.jsx(Gt,{activeClassName:"active",id:"registration-header-sign-up",to:"/registration",children:o.jsx(Wt,{children:e("common.sign_up")})})]})},Zo=t=>o.jsx(Wo,{transparent:t.transparent,children:o.jsxs(Vo,{alignItems:t.alignItems||"center",isCompact:t.compact,justifyContent:t.justifyContent||"space-between",children:[o.jsx(Ho,{wide:t.showLogout,children:o.jsx(Qo,{disableLogoLink:t.disableLogoLink,isCompact:t.compact,logoLink:t.logoLink})}),o.jsx(Xo,{buttonsAlign:t.buttonsAlign,shouldAllowCurrentPlanUpgrade:t.shouldAllowCurrentPlanUpgrade,showCloseIcon:t.showCloseIcon,showLogout:t.showLogout,simple:t.simple})]})}),tn=t=>et(["server","subscriptions","recentPromotion"],t),Ht={INITIAL:"initial",SUCCESS:"success"},en={email:co,phoneNumber:{format:{pattern:/^(\([0-9]{3}\)|[0-9]{3}-) [0-9]{3}-[0-9]{4}$/,message:"- incorrect, enter valid value"}}},Di=({field:t,notRequiredField:e,fieldValue:n,values:s,setError:a,clearErrors:i})=>{const r=Ge(We(s,{[t]:n}),en)||{};return lo(U(t,r))?a(t,{type:"array",message:U(t,r)}):i(t),H(U(e,r))&&H(U(t,s))||H(U(t,r))&&H(U(e,s))?!0:H(U(t,r))},Mi=()=>{const[t,e]=c.useState(Ht.INITIAL),{companyStorage:n}=Yt(),s=ft({mode:"onChange"}),a=N(),{locationGoBack:i}=z(),r=c.useCallback(u=>{I(s.formState.errors)||(a({type:E.SEND_DOWNLOAD_LINK_REQUEST,payload:{...u,afterAll:()=>{L.completeDownloadApp(),e(Ht.SUCCESS)}}}),a(Ut({data:{...n,hideDownloadAppBanner:"true"}})))},[a,s,n]),l=c.useCallback(()=>{i(),L.closeDownloadApp(),a(Ut({data:{...n,hideDownloadAppBanner:"true"}}))},[a,n,i]);return{formData:s,values:s.getValues(),step:t,onClose:l,onSubmit:r}},on=He([t=>t.currentUser.user.confirmedAt,t=>t.currentUser.user.unconfirmedEmail],(t,e)=>({confirmedAt:t,unconfirmedEmail:e})),nn=()=>{const t=h(g=>g.currentUser.user.id),{companyStorage:e}=Yt(),n=e[`hideDownloadAppBannerFor${t}`]||e.hideDownloadAppBanner,{isOwner:s}=Qt(),{confirmedAt:a,unconfirmedEmail:i}=h(on),r=!a||I(i),l=Xt(n);return{showDownloadAppBanner:s&&!l&&!r}},ie=t=>!!t.plan?.subscriptionDetails?.featureToggles?.aiBulkImportEnabled,Ui=()=>h(ie),sn=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18",...t},c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.2,d:"M6 6.75h6m-6 3h4.5m3-6.75a2.25 2.25 0 0 1 2.25 2.25v6a2.25 2.25 0 0 1-2.25 2.25H9.75L6 15.75V13.5H4.5a2.25 2.25 0 0 1-2.25-2.25v-6A2.25 2.25 0 0 1 4.5 3z"})),Vt=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...t},c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.733,d:"M3.96 11.739C3.96 7.465 7.56 4 12 4c3.028 0 5.546 1.814 6.892 4.422"}),c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.733,d:"M18.892 4v4.422h-4.595M20.04 12.845c0 4.274-3.6 7.739-8.04 7.739-3.028 0-5.546-1.815-6.892-4.423"}),c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.733,d:"M5.108 20.583v-4.422h4.595"})),an=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...t},c.createElement("path",{fill:"currentColor",fillOpacity:.8,fillRule:"evenodd",d:"m20.601 19.154-3.341-8.65a14 14 0 0 1-.941-5.044v-1.3h1.562c.374 0 .677-.395.677-.769s-.303-.75-.677-.75H6.119c-.374 0-.677.376-.677.75s.303.768.677.768h1.56v1.3a14 14 0 0 1-.94 5.046l-3.341 8.649a1.501 1.501 0 0 0 1.4 2.041h14.404q.28-.001.541-.1a1.5 1.5 0 0 0 .858-1.941m-3.745-5.272-1.19-3.08c-.622-1.609-.94-3.32-.94-5.045V4.16H9.273v1.598a14 14 0 0 1-.941 5.046l
78-1.844 4.772c.65.36 1.385.555 2.152.555a4.42 4.42 0 0 0 2.843-1.029 6.03 6.03 0 0 1 3.874-1.406c.511 0 1.013.063 1.498.187M5.91 17.075 4.933 19.6h14.133l-1.418-3.675a4.4 4.4 0 0 0-2.288-.635 4.43 4.43 0 0 0-2.843 1.029 6.03 6.03 0 0 1-3.874 1.406 6 6 0 0 1-2.733-.651",clipRule:"evenodd"}),c.createElement("path",{fill:"currentColor",fillOpacity:.8,fillRule:"evenodd",d:"M12 10.882a.938.938 0 1 0 1.875 0 .938.938 0 0 0-1.876 0",clipRule:"evenodd"})),_={TOGGLE:"TOGGLE",TOGGLE_READONLY:"TOGGLE_READONLY",REQUEST_ACCESS:"REQUEST_ACCESS",REQUEST_SENT:"REQUEST_SENT",JOIN_WAITLIST:"JOIN_WAITLIST",JOINED_WAITLIST:"JOINED_WAITLIST",UPGRADE:"UPGRADE",COMING_SOON:"COMING_SOON"},re="bulk_update",zi=()=>({id:-1,key:re,name:v("labs.bulk_update_name"),description:v("labs.bulk_update_description"),stage:uo.EXPERIMENTAL,enabled:!1,waitlistEnabled:!1,waitlist:null}),rn={threads:sn,[re]:Vt,[yt]:Vt},cn=an,Bi=t=>rn[t]??cn,ln=({feature:t,isFree:e,canManage:n})=>{if(e)return _.UPGRADE;const{waitlistEnabled:s,enabled:a,waitlist:i}=t;return!s||!i?n?_.TOGGLE:_.TOGGLE_READONLY:a?i.canEnable?_.TOGGLE:_.TOGGLE_READONLY:i.capStatus===po.CLOSED?i.onWaitlist?_.JOINED_WAITLIST:_.JOIN_WAITLIST:i.canEnable?_.TOGGLE:i.accessRequested?_.REQUEST_SENT:_.REQUEST_ACCESS},ce=t=>!go(t),Fi=t=>t?.items?.edit===!1,dn=t=>t.labs?.features?.[yt]?.enabled===!0&&ce(t.accesses?.role??""),pn=[_.JOIN_WAITLIST,_.JOINED_WAITLIST,_.UPGRADE,_.TOGGLE_READONLY],un={[_.TOGGLE]:R.available,[_.REQUEST_ACCESS]:R.requestAccess,[_.REQUEST_SENT]:R.requestAccess,[_.JOIN_WAITLIST]:R.waitlist,[_.JOINED_WAITLIST]:R.waitlist,[_.TOGGLE_READONLY]:R.notShown,[_.UPGRADE]:R.notShown,[_.COMING_SOON]:R.notShown},hn=(t,e)=>e?R.enabled:un[t],mn=t=>({...t,waitlistEnabled:t.waitlistEnabled??!1,waitlist:t.waitlist??null}),Gi=()=>{const t=h(a=>a.labs?.features?.[yt]),e=h(a=>a.labs?.pending),n=h(a=>a.accesses?.role??""),s=h(a=>!!a.plan?.mark?.isFree);return c.useMemo(()=>{if(!t)return{feature:void 0,variant:void 0,isEnabled:!1,isHidden:!0,isPending:!1,canOpenGrid:!1,isEntryShown:!1,labsEntryState:R.notShown};const a=mn(t),i=ln({feature:a,isFree:s,canManage:ho(n)||mo(n)||Zt(n)}),r=a.enabled&&i!==_.UPGRADE,l=!r&&pn.includes(i),u=ce(n);return{feature:a,variant:i,isEnabled:r,isHidden:l,isPending:!!e?.includes(a.id),canOpenGrid:u,isEntryShown:l?!1:!r||u,labsEntryState:hn(i,r)}},[t,e,s,n])},Wi=(t=[])=>{let e={};return t.forEach(({name:n,reducer:s})=>{s&&(e=bo(e,{[`${Ve.camelize(n)}Page`]:s}))}),Object.keys(e).length===0?(n={})=>n:qe(e)},Hi=(t=[])=>{if(!Array.isArray(t))return[];const e=t.reduce((a,{saga:i})=>a+(Array.isArray(i)?i.length:0),0),n=new Array(e);let s=0;for(const{saga:a}of t)if(Array.isArray(a))for(const i of a)n[s++]=i;return s===e?n:n.slice(0,s)},P=(...t)=>async(e,n)=>{try{for(let s=0;s<t.length;s++){const a=t[s];await new Promise((i,r)=>{a.call(void 0,e,i,r)})}n()}catch{}},le=(t,e,n={})=>(s,a)=>{const i=t.getState(),{accesses:{permissions:r},currentUser:l,plan:{subscriptionDetails:{featureToggles:u}}}=i,{systemPermissions:g,applicationPermissions:y}=l?.user?.roleGroup||{},b={rolePermissions:r,systemPermissions:g,applicationPermissions:y,planFeatures:u,featureAccess:{interactiveBulkImport:ie(i),bulkEdit:dn(i)}};if(!e.every($=>!!So($,b)))return s(n?.redirectRoute||"/restricted");a()},B=()=>(t,e)=>{const n=window.location,s=n&&n.pathname||"",a=!Eo.includes(s);if(V.isTablet)return e();if(V.isMobile&&a)return t(yo);e()},gn=t=>(e,n)=>{const{plan:s={},accesses:{role:a}}=t.getState();if(!Zt(a)&&!s.subscriptionStatus?.isExpired&&!s.subscriptionStatus?.isCanceled)return e("/billing-info");n()},bn=t=>(e,n)=>{const{plan:s={}}=t.getState();if(!s.subscriptionStatus.isPaused)return e("/billing-info");n()},fn=t=>(e,n)=>{const{server:s}=t.getState();if(s?.companies?.current?.scheduledDeletion?.accessLostAt)return e("/account-under-deletion");n()},_n=t=>(e,n)=>{const{server:s}=t.getState();if(!s?.companies?.current?.scheduledDeletion?.accessLostAt)return e("/items");n()},de=t=>(e,n)=>{const{server:s}=t.getState(),a=s?.companies?.current?.scheduledDeletion?.accessLostAt,i=s?.companies?.current?.scheduledCancellation?.accessLostAt,r=a&&A.utc().isAfter(a),l=i&&A.utc().isAfter(i);
78if(a&&(r||l))return e("/account-under-deletion");n()},pe=(t,e={})=>(n,s)=>{const{server:a}=t.getState(),i=a?.companies?.current?.scheduledCancellation?.accessLostAt,r=i&&A.utc().isAfter(i);if(!e?.skipCancellationRouteGuard&&r)return n("/cancel-account");s()},F=t=>async(e,n,s)=>{if(st(t.getState().account.accessTokenType))return n();const a=window.location;let i="/login";const r=encodeURIComponent(`${a.pathname}${a.search}`);if(a.pathname&&(i=`${i}?redirectTo=${r}`),e(i),s)return s()},xn=t=>(e,n)=>{const s=t.getState();if(st(s.account.accessTokenType))return e(s.featureFlags?.enableSpeedboat?"/sb/command-center":"/items");n()},G=t=>async(e,n)=>{const a=t.getState()?.onboarding||{},i=fo(a),r=window.location,l=Object.values(_o).includes(i),u=Object.values(xo).includes(a?.flow?.name);if(I(i)&&l&&u&&!["/onboarding"].includes(r.pathname))return e("/onboarding");n()},Vi=t=>P(xn(t)),w=t=>P(F(t),B(),G(t),de(t),pe(t)),qi=t=>P(F(t),B(),G(t),gn(t)),Ji=t=>P(F(t),B(),G(t),_n(t)),Ki=t=>P(F(t),B(),G(t),bn(t)),Yi=(t=[],e={})=>n=>P(F(n),B(),G(n),fn(n),le(n,t,e)),At=(t=[],e={})=>n=>P(F(n),B(),G(n),de(n),pe(n,e),le(n,t,e)),Qi=()=>P(B()),Xi=t=>P(F(t),G(t)),wt=d.div.attrs({id:"page-content-wrapper"}).withConfig({displayName:"ui__ContentWrapper"})(["display:flex;flex-direction:",";flex:1;background-color:",";overflow:",";"],t=>t.$direction||"column",({$greyBg:t,theme:e})=>t&&e.bg.neutral50,t=>t.$overflow),yn=d.div.withConfig({displayName:"ui__PageContent"})(["display:flex;width:100%;"]),Zi=d.div.withConfig({displayName:"ui__Wrap"})(["","{","}",";"],yn,t=>t.$showSidebar&&m(["margin-left:",";width:",";"],t.$openPrimarySidebarDefault?`${zt}px`:`${Bt}px`,t.$openPrimarySidebarDefault?`calc(100% - ${zt}px)`:`calc(100% - ${Bt}px)`),t=>t.$customStyle&&t.$customStyle),tr=t=>m(["padding-top:","px !important;",""],t,K.phone`
79    padding-top: calc(${t}px + 20px) !important;
80  `),er=t=>m(["padding-top:","px !important;"],t),ue=d.h1`
81  color: ${({theme:t})=>t.text.neutral900};
82  font-size: 60px;
83  font-weight: 500;
84  font-weight: normal;
85  text-align: center;
86  margin: 0 auto 48px;
87`,he=d.div`
88  color: ${({theme:t})=>t.text.neutral600};
89  font-size: 16px;
90  text-align: center;
91  line-height: 21px;
92`,En=d(x)`
93  height: 100vh;
94  width: 100vw;
95  position: fixed;
96  left: 0;
97  z-index: 9999;
98  background: ${({theme:t})=>t.bg.white};
99`,Sn=d(x)`
100  flex: 1;
101`,An=d.div`
102  display: flex;
103  margin: auto;
104`,me=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:71,height:86,viewBox:"0 0 71 86",...t},c.createElement("g",{id:"icons-notfound_svg__Tutorial",fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:1},c.createElement("g",{id:"icons-notfound_svg__404",fill:"#0097BC",transform:"translate(-510 -202)"},c.createElement("g",{id:"icons-notfound_svg__growth",transform:"translate(510 202)"},c.createElement("path",{id:"icons-notfound_svg__Combined-Shape",fillRule:"nonzero",d:"M50 39h2v2h-2zm5-11h2v6h-2zm0 9h2v2h-2zm-15-6h2v2h-2zm-11 7h2v2h-2zm5-19h2v12h-2zm0 14h2v2h-2zm-19 1h2v5h-2zm23 45h2v2h-2zm-5 0h2v2h-2zm-4 0h2v2h-2z"}),c.createElement("path",{id:"icons-notfound_svg__Shape",fillRule:"nonzero",d:"M65.603 43.492H5.399L0 61.204h5.092V86h60.816V61.204H71zM3.167 58.842l3.958-12.988h34.978l-3.959 12.988zm39.35 24.796H7.431V61.204h32.44l2.646-8.68zm21.052 0H44.856V52.525l2.646 8.679h16.067zM49.228 58.842 45.27 45.854h18.605l3.96 12.988z"}),c.createElement("path",{id:"icons-notfound_svg__Combined-Shape",d:"M48.3 19.78V22h2.22v-2.22zm-3.26-7.6a5.4 5.4 0 0 1 .29-1.9 4.5 4.5 0 0 1 .89-1.53 4 4 0 0 1 1.42-1.01q.84-.36 1.88-.36.94 0 1.71.27t1.33.78.87 1.25.31 1.7q0 .62-.15 1.11t-.39.89-.55.74-.63.66q-.32.3-.63.61a5 5 0 0 0-.56.66q-.25.35-.4.76t-.15.93v.78h-1.7v-.94q.04-.84.31-1.43t.66-1.05.82-.85.8-.82.59-.95.18-1.26q-.08-1.1-.71-1.72t-1.71-.62q-.72 0-1.24.26a2.56 2.56 0 0 0-.87.7q-.35.44-.51 1.04t-.16 1.3zm21.68 22.377h1.443V36H66.72zm-2.119-4.94a3.5 3.5 0 0 1 .189-1.235q.201-.572.578-.995.377-.422.923-.656a3.1 3.1 0 0 1 1.222-.234q.611 0 1.111.175.5.176.865.508.364.33.566.812.201.48.201 1.105a2.46 2.46 0 0 1-.351 1.3 3 3 0 0 1-.358.481q-.2.22-.409.429-.208.195-.41.396a3.4 3.4 0 0 0-.363.43 2 2 0 0 0-.26.493q-.099.267-.098.605v.507h-1.105v-.611q.026-.546.201-.93a3 3 0 0 1 .43-.682q.253-.299.532-.553.28-.253.52-.532.24-.28.384-.618.142-.338.117-.819-.052-.716-.462-1.118t-1.111-.403q-.468 0-.806.169a1.7 1.7 0 0 0-.566.455q-.227.286-.331.676t-.104.845zM23.3 33.78h2.22V36H23.3zm-3.26-7.6a5.4 5.4 0 0 1 .29-1.9 4.5 4.5 0 0 1 .89-1.53 4 4 0 0 1 1.42-1.01q.84-.36 1.88-.36.94 0 1.71.27t1.33.78.87 1.25.31 1.7q0 .62-.15 1.11t-.39.89-.55.74-.63.66q-.32.3-.63.61a5 5 0 0 0-.56.66q-.25.35-.4.76t-.15.93v.78h-1.7v-.94q.04-.84.31-1.43t.66-1.05.82-.85.8-.82.59-.95.18-1.26q-.08-1.1-.71-1.72t-1.71-.62q-.72 0-1.24.26a2.56 2.56 0 0 0-.87.7q-.35.44-.51 1.04t-.16 1.3zM7.7 18.67h3.33V22H7.7zM2.81 7.27q-.03-1.53.435-2.85T4.58 2.125A5.96 5.96 0 0 1 6.71.61Q7.97.07 9.53.07q1.41 0 2.565.405t1.995 1.17a5.2 5.2 0 0 1 1.305 1.875q.465 1.11.465 2.55 0 .93-.225 1.665T15.05 9.07t-.825 1.11-.945.99q-.48.45-.945.915t-.84.99-.6 1.14-.225 1.395v1.17H8.12v-1.41q.06-1.26.465-2.145t.99-1.575 1.23-1.275 1.2-1.23.885-1.425.27-1.89q-.12-1.65-1.065-2.58T9.53 2.32q-1.08 0-1.86.39T6.365 3.76 5.6 5.32t-.24 1.95z"}))))),wn=()=>o.jsxs(k,{outside:!0,bottom:150,children:[o.jsx(k,{outside:!0,bottom:40,children:o.jsx(x,{center:!0,children:o.jsx(me,{})})}),o.jsx(ue,{children:v("not_found.oops")}),o.jsxs(he,{children:[o.jsx("div",{children:v("not_found.something_wrong")}),o.jsx("div",{children:v("not_found.page_not_found")})]})]}),vn=()=>{const{t}=C(),e=h(s=>s.account.accessTokenType),n=()=>o.jsxs(k,{outside:!0,bottom:150,children:[o.jsx(k,{outside:!0,bottom:40,children:o.jsx(x,{center:!0,children:o.jsx(me,{})})}),o.jsx(ue,{children:t("not_found.oops")}),o.jsxs(he,{children:[o.jsx("div",{children:t("not_found.something_wrong")}),o.jsx("div",{children:t("not_found.page_not_found")})]})]});
104return st(e)?o.jsx(wt,{children:o.jsx(x,{className:"g-container g-container--with-sidebar",children:o.jsx(An,{children:n()})})}):o.jsxs(En,{column:!0,children:[o.jsx(Zo,{disableLogoLink:!0}),o.jsx(Sn,{center:!0,children:o.jsx(wn,{})})]})},Tn="NotFound",Cn=vn,On="basic",In=Object.freeze(Object.defineProperty({__proto__:null,component:Cn,layout:On,name:Tn},Symbol.toStringTag,{value:"Module"})),$n="speedboatSage",Rn=c.lazy(()=>S(()=>import("./speedboat_sage-CLcY2TgV_bundle.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]))),kn="speedboat",Pn=Object.freeze(Object.defineProperty({__proto__:null,component:Rn,layout:kn,name:$n},Symbol.toStringTag,{value:"Module"})),jn="speedboatInventory",Ln=c.lazy(()=>S(()=>import("./speedboat_inventory-BEgFREex_bundle.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,10,8,9,11,37,18,22,38,39,13,14,12,40,41,16,42,43,24,33,23,44,45,46,31,47,20,21,26,48,19,49,50,34,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]))),Nn="speedboat",Dn=Object.freeze(Object.defineProperty({__proto__:null,component:Ln,layout:Nn,name:jn},Symbol.toStringTag,{value:"Module"})),Mn="speedboatItemDetails",Un=c.lazy(()=>S(()=>import("./speedboat_item_details-fuNDM4ap_bundle.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,10,67,68,8,9,11,18,38,39,13,14,16,41,69,51,52,53,54,55,23,70,48,19,20,21,37,71,72,64,73,74,75,22,26,76,44,33,77,78,31,34,79,27,80,57,46,43,24,47,49,45,81,82,83,84,85,59,63,60,58,86,25]))),zn="speedboat",Bn=Object.freeze(Object.defineProperty({__proto__:null,component:Un,layout:zn,name:Mn},Symbol.toStringTag,{value:"Module"})),Fn="speedboatSettings",Gn=c.lazy(()=>S(()=>import("./speedboat_settings-B1glbX2h_bundle.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,12,13,40,88,16]))),Wn="speedboat",Hn=Object.freeze(Object.defineProperty({__proto__:null,component:Gn,layout:Wn,name:Fn},Symbol.toStringTag,{value:"Module"})),Vn="speedboatLocations",qn=c.lazy(()=>S(()=>import("./speedboat_locations-Ct6QxWAL_bundle.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,18,13,90,31]))),Jn="speedboat",Kn=Object.freeze(Object.defineProperty({__proto__:null,component:qn,layout:Jn,name:Vn},Symbol.toStringTag,{value:"Module"})),Yn="speedboatJobs",Qn=c.lazy(()=>S(()=>import("./speedboat_jobs-bHL45A5l_bundle.js"),__vite__mapDeps([91,1,2,3,4,5,6,7,10,8,9,11,59,18,22,92,49,23,57,28,44,65,13,12,38,39,14,40,68,93,86,16,34,64,79,52,53,54,51,55,41,94,95,82,83,96,75,97,98,84]))),Xn="speedboat",Zn=Object.freeze(Object.defineProperty({__proto__:null,component:Qn,layout:Xn,name:Yn},Symbol.toStringTag,{value:"Module"})),ts="speedboatNewJob",es=c.lazy(()=>S(()=>import("./speedboat_new_job-DHRBJyl3_bundle.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,10,8,9,11,18,12,13,40,22,80,20,100,24,23,57,26,68,64,41,101,102,75,16,19,14,103,95]))),os="speedboat",ns=Object.freeze(Object.defineProperty({__proto__:null,component:es,layout:os,name:ts},Symbol.toStringTag,{value:"Module"})),ss="speedboatJobDetail",as=c.lazy(()=>S(()=>import("./speedboat_job_detail-XOEZU6Gz_bundle.js"),__vite__mapDeps([104,1,2,3,4,5,6,7,10,8,9,11,59,18,22,40,49,14,13,51,105,101,102,75,27,33,39,23,44,24,20,57,26,64,106,55,16,68,34,79,52,53,54,46,31,41,84,97,80,100,61,95,82,83,107,81,85,28,108,72,109,74,110,111,112,60,67,113,78,114,96,94,47,21]))),is="speedboat",rs=Object.freeze(Object.defineProperty({__proto__:null,component:as,layout:is,name:ss},Symbol.toStringTag,{value:"Module"})),cs="speedboatCustomers",ls=c.lazy(()=>S(()=>import("./speedboat_customers-BT_I9LIT_bundle.js"),__vite__mapDeps([115,1,2,3,4,5,6,7,10,8,9,11,18,116,27,13,58,59,60,92,49,23,57,28,44,65,12,38,39,14,40,103,102,16,34,64,79,52,53,54,51,55,33,24,83,95]))),ds="speedboat",ps=Object.freeze(Object.defineProperty({__proto__:null,component:ls,layout:ds,name:cs},Symbol.toStringTag,{value:"Module"})),us="speedboatAddresses",hs=c.lazy(()=>S(()=>import("./speedboat_addresses-HD1a12T1_bundle.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,8,9,10,11,92,18,49,23,57,28,44,65,13,12,38,39,14,40,31,118,16,34,64,79,52,53,54,51,55,27,33,24,58,59,60,75]))),ms="speedboat",gs=Object.freeze(Object.defineProperty({__proto__:null,component:hs,layout:ms,name:us},Symbol.toStringTag,{value:"Module"})),bs="speedboatJobTemplates",fs=c.lazy(()=>S(()=>import("./speedboat_job_templates-Do3awx4B_bundle.js"),__vite__mapDeps([119,1,2,16,3,4,5,6,7,10,8,9,11,101,102,75,18,116,27,13,58,59,60,92,49,23,57,28,44,65,12,38,39,14,40,105,33,24,20,26,64,51,106,55,34,79,52,53,54]))),_s="speedboat",xs=Object.freeze(Object.defineProperty({__proto__:null,component:fs,layout:_s,name:bs},Symbol.toStringTag,{value:"Module"})),ys="speedboatVendors",Es=c.lazy(()=>S(()=>import("./speedboat_vendors-vBsj1eYU_bundle.js"),__vite__mapDeps([120,1,2,3,4,5,6,7,16,10,8,9,11,18,22,44,23,12,13,38,39,14,40,64,72,43,24,27,33,45,51,106,55,107,109,58,59,60,108,83,82,84,74,110,111,49,26,65]))),Ss="speedboat",As=Object.freeze(Object.defineProperty({__proto__:null,component:Es,layout:Ss,name:ys},Symbol.toStringTag,{value:"Module"})),ws="speedboatCustomFields",vs=c.lazy(()=>S(()=>import("./speedboat_custom_fields-BjfPOgNA_bundle.js"),__vite__mapDeps([121,1,2,3,4,5,6,7,10,8,9,11,18,12,13,38,39,14,40,112,16,70,22,49,43,24,33,23,26,27,58,59,60]))),Ts="speedboat",Cs=Object.freeze(Object.defineProperty({__proto__:null,component:vs,layout:Ts,name:ws},Symbol.toStringTag,{value:"Module"})),Os="speedboatCatalog",Is=c.lazy(()=>S(()=>import("./speedboat_catalog-gWOjTg-S_bundle.js"),__vite__mapDeps([122,1,2,16,3,4,5,6,7,10,8,9,11,44,18,23,65,13,12,38,39,14,40,48,19,20,21,46,31,42,43,24,33,45,47,26,49,50,34,51,52,53,54,55,64,58,59,60,93,86,123,75,92,57,28,69]))),$s="speedboat",Rs=Object.freeze(Object.defineProperty({__proto__:null,component:Is,layout:$s,name:Os},Symbol.toStringTag,{value:"Module"}
104)),ks="speedboatCommandCenter",Ps=c.lazy(()=>S(()=>import("./speedboat_command_center-CY1ZOgrA_bundle.js"),__vite__mapDeps([124,1,2,10,3,4,5,6,7,8,9,11,38,18,39,13,14,40,16,34,35,22,33,68,41,97,125,73]))),js="speedboat",Ls=Object.freeze(Object.defineProperty({__proto__:null,component:Ps,layout:js,name:ks},Symbol.toStringTag,{value:"Module"})),Ns={subscription:{},paymentMethod:{},planMigrations:[],invoices:[],subscriptionDiscount:{},paymentIntent:{}};function Ds(t=Ns,e={}){const{type:n}=e;switch(n){case E.PAUSE_SUBSCRIPTION_SUCCESS:return{...t,subscription:e.payload.subscription};case E.FETCH_SUBSCRIPTION_INFO_SUCCESS:{const{paymentMethod:s,planMigrations:a,subscription:i,invoices:r,subscriptionDiscount:l,paymentIntent:u}=e.payload;return{...t,paymentMethod:s,planMigrations:a,invoices:r,subscriptionDiscount:l,subscription:i,paymentIntent:u}}case E.CHANGE_SUBSCRIPTION_CARD_SUCCESS:return{...t,paymentMethod:e.payload.card,subscription:e.payload.subscription};case E.CANCEL_SUBSCRIPTION_SUCCESS:case E.CREATE_SUBSCRIPTION_SUCCESS:case E.EXTEND_TRIAL_SUBSCRIPTION_SUCCESS:return{...t,subscription:e.payload};default:return t}}const Ms="speedboatPlanBilling",Us=c.lazy(()=>S(()=>import("./speedboat_plan_billing-BArF2sMH_bundle.js"),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,10,11,127,128,129,130]))),zs="speedboat",Bs=Object.freeze(Object.defineProperty({__proto__:null,component:Us,layout:zs,name:Ms,reducer:Ds},Symbol.toStringTag,{value:"Module"})),Fs="speedboatRestock",Gs=c.lazy(()=>S(()=>import("./speedboat_restock-DLQ57Yoe_bundle.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,16,18,60,13,12,38,39,14,40,112,62,49,51,64,53,54,72,46,23,31,19,20,21,27,96,75,28,33,43,24,76,44,67,41,77,78,65,63,68,114]))),Ws="speedboat",Hs=Object.freeze(Object.defineProperty({__proto__:null,component:Gs,layout:Ws,name:Fs},Symbol.toStringTag,{value:"Module"})),Vs="speedboatPurchaseOrderDetail",qs=c.lazy(()=>S(()=>import("./speedboat_purchase_order_detail-CB0jt6pn_bundle.js"),__vite__mapDeps([132,1,2,3,4,5,6,7,8,9,10,11,16,18,38,39,13,14,40,41,78,51,22,75,67,46,23,31,53,54,68,114,96,93,86,34,79,52,55,60,58,59,33,77,113,84,83,133,49,85,57,43,24,71,44,19,20,21,107,27,80,64,118,63,72,25,125,106,109,45,26]))),Js="speedboat",Ks=Object.freeze(Object.defineProperty({__proto__:null,component:qs,layout:Js,name:Vs},Symbol.toStringTag,{value:"Module"})),Ys="speedboatBulkImportFromFile",Qs=c.lazy(()=>S(()=>import("./speedboat_bulk_import_from_file-BLFfCd_G_bundle.js"),__vite__mapDeps([134,1,2,135,3,4,5,6,7,8,9,10,11,136,137,54,138]))),Xs="speedboat",Zs=Object.freeze(Object.defineProperty({__proto__:null,component:Qs,layout:Xs,name:Ys},Symbol.toStringTag,{value:"Module"})),ta="speedboatWorkflows",ea=c.lazy(()=>S(()=>import("./speedboat_workflows-DdkbLYZy_bundle.js"),__vite__mapDeps([139,1,2,3,4,5,6,7,8,9,10,11,22,12,13,40,41,16]))),oa="speedboat",na=Object.freeze(Object.defineProperty({__proto__:null,component:ea,layout:oa,name:ta},Symbol.toStringTag,{value:"Module"})),q="/sb",sa=t=>t===q||t.startsWith(`${q}/`),ge=[{path:"/reports",layout:"speedboatReporting"},{path:"/reports/inventory-summary",layout:"speedboatReporting"},{path:"/reports/inventory-summary/:id",layout:"speedboatReporting"},{path:"/reports/all-transactions",layout:"speedboatReporting"},{path:"/reports/all-transactions/:id",layout:"speedboatReporting"},{path:"/reports/quantity-changes-by-item",layout:"speedboatReporting"},{path:"/reports/quantity-changes-by-item/:id",layout:"speedboatReporting"},{path:"/reports/transfer",layout:"speedboatReporting"},{path:"/reports/transfer/:id",layout:"speedboatReporting"},{path:"/reports/user-activity-summary",layout:"speedboatReporting"},{path:"/reports/user-activity-summary/:id",layout:"speedboatReporting"},{path:"/reports/jobs",layout:"speedboatReporting"},{path:"/reports/jobs/items/:sid",layout:"speedboatReporting"},{path:"/reports/jobs/:jobId",layout:"speedboatReporting"},{path:"/activity-history",layout:"speedboatReporting"},{path:"/activity-history/:id",layout:"speedboatReporting"},{path:"/invoices",layout:"speedboat"},{path:"/invoice/new",layout:"speedboat"},{path:"/invoice/:id",layout:"speedboat"},{path:"/pick-lists",layout:"speedboat"},{path:"/pick-list/new",layout:"speedboat"},{path:"/pick-list/:id",layout:"speedboat"},{path:"/stock-counts",layout:"speedboat"},{path:"/stock-count/new",layout:"speedboat"},{path:"/stock-count/:id",layout:"speedboat"},{path:"/purchase-order/new",layout:"speedboat"},{path:"/integrations",layout:"speedboat"},{path:"/integrations/slack",layout:"speedboat"},{path:"/integrations/amazon-business",layout:"speedboat"},{path:"/integrations/teams",layout:"speedboat"},{path:"/integrations/webhooks",layout:"speedboat"},{path:"/integrations/quickbooks",layout:"speedboat"},{path:"/public-api",layout:"speedboat"},{path:"/slack-redirect",layout:"speedboat"},{path:"/manage-members",layout:"speedboat"},{path:"/manage-permissions",layout:"speedboat"},{path:"/user-profile",layout:"speedboat"},{path:"/user-preferences",layout:"speedboat"}
104,{path:"/company-details",layout:"speedboat"},{path:"/transaction-reasons",layout:"speedboat"},{path:"/manage-units",layout:"speedboat"},{path:"/restricted",layout:"speedboat"}],aa={path:["inventory","location/:id"],onEnter:w,...Dn},ia={path:"items/:id",onEnter:w,...Bn},ra={path:"settings",onEnter:w,...Hn},ca={path:"locations",onEnter:w,...Kn},la={path:"jobs",onEnter:w,...Zn},da={path:"jobs/new",onEnter:w,...ns},pa={path:"jobs/:jobId",onEnter:w,...rs},ua={path:"customers",onEnter:w,...ps},ha={path:"job-templates",onEnter:w,...xs},ma={path:"addresses",onEnter:At(["rolePermissions.viewCompanyAddresses"]),...gs},ga={path:"workflows",onEnter:w,...na},ba={path:"vendors",onEnter:w,...As},fa={path:"catalog",onEnter:w,...Rs},_a={path:"custom-fields",onEnter:w,...Cs},xa={path:"bulk-import-from-file",onEnter:w,...Zs},ya={path:"sage",onEnter:w,...Pn},Ea={path:"command-center",onEnter:At(["rolePermissions.viewCommandCenter"],{redirectRoute:`${q}/inventory`}),...Ls},Sa={path:["restock","purchase-orders"],onEnter:w,...Hs},Aa={path:"purchase-orders/:id",onEnter:w,...Ks},wa={path:"billing-info",onEnter:At(["rolePermissions.manageBilling"]),...Bs},va={...In,name:"SpeedboatNotFound",path:"*",layout:"speedboat"},Ta=[Ea,Sa,Aa,aa,ia,ra,ca,la,da,pa,ua,ma,ha,ga,ba,_a,fa,wa,xa,ya,va],be=new Set(Ta.flatMap(t=>Array.isArray(t.path)?t.path:[t.path])),Ca=new Set(ge.filter(t=>t.layout==="speedboat"&&!be.has(t.path.replace(/^\//,""))).map(t=>`${q}${t.path}`)),or=t=>Ca.has(t),qt=new Map(ge.map(t=>[t.path,t.layout])),nr=t=>t.flatMap(e=>(Array.isArray(e.path)?e.path:[e.path]).filter(s=>qt.has(s)).map(s=>({prefixedPath:`${q}${s}`,layout:qt.get(s)})).filter(({prefixedPath:s})=>!be.has(s)).map(({prefixedPath:s,layout:a})=>({...e,name:`speedboat-fallback-${e.name}`,path:s,layout:a}))),sr=t=>t.flatMap(e=>Array.isArray(e.path)?e.path:[e.path]),Oa="DPE_3-Var1",Jt={},Ia=t=>W(t)||t.closed?!1:t.active,$a=({showSmallBanner:t})=>t?wo:vo,fe=/\/folder\/\d+\/content/,_e=["/items"],Ra=(t,e,n,s)=>{if(!n?.isFree||W(t)||et([t.promotionUid,"closed"],e))return!1;const i=I(s.pathname.match(fe));return _e.includes(s.pathname)||i},ka=(t,e,n,s,a)=>{if(!s)return!1;const i=I(a.pathname.match(fe));return t===Oa&&W(n)&&e.isFree&&(_e.includes(a.pathname)||i)},Pa=(t,e,n,s,a=A())=>{if(!t||!n)return!1;const i=Ao();if(i&&i.CcExpWarnDismissedAt){const y=A(+i.CcExpWarnDismissedAt);if(Math.floor(A.duration(A().valueOf()-y.valueOf()).asDays())<7)return!1}const r=A([+e.expYear,+e.expMonth-1]).endOf("month"),l=A().startOf("day"),u=Math.floor(A.duration(r.valueOf()-l.valueOf()).asMonths()),g=Math.floor(A.duration(a.valueOf()-l.valueOf()).asMonths());return u>=0&&u<3||s&&u<0&&g<3},ja=(t,e)=>t&&!!e,La=(t,e)=>t&&!!e&&A.utc().isBefore(e.accessLostAt),lt=()=>{const{isOwner:t}=Qt(),{subscriptionBoundary:{timestamps:{expiredAt:e}={}}={},subscriptionStatus:{isActive:n}}=J(),{scheduledDeletion:s,scheduledCancellation:a}=nt(),[i]=Kt(),r=i.get("banner")!=="false",l=h(p=>p.topPageNotification.show),u=h(p=>p.topPageNotification.showCCExpWarning),g=h(p=>p.currentUser.user.confirmedAt),y=h(p=>p.currentUser.user.unconfirmedEmail),b=h(p=>p.onboarding),f=h(p=>p.topPageNotification.scheduledMaintenance),$=h(p=>st(p.account.accessTokenType)),Z=h(tn),O=h(p=>p.topPageNotification?.promotions),D=h(p=>p.plan?.subscriptionStatus?.isPaymentAuthorizationError),tt=h(p=>p.pages?.billingInfoPage?.paymentMethod)??Jt,Ae=h(p=>p.server?.subscriptions?.paymentIntent?.status==="requires_source"),we=h(p=>p.server?.subscriptions?.paymentMethod?.type==="card"),vt=h(p=>p.plan.subscriptionBoundary.timestamps.gracePeriodExpiresAt),ve=h(p=>p.plan.subscriptionStatus.isPastDue),Te=h(p=>p.plan.subscriptionStatus.isExpired),Ce=h(p=>p.plan.subscriptionStatus.isPaused),Oe=h(p=>p.plan?.mark),Ie=h(p=>p.server?.companies?.current?.companyExperiment?.cohort)??"",$e=h(p=>p.pages?.billingInfoPage?.invoices)??Jt,Re=h(p=>p.topPageNotification?.shouldShowFakePromotion),ke=h(p=>!!p.server?.companies?.current?.scheduledDeletion),pt={isCardDeclined:Ae,isPaymentMethodTypeCard:we,atGracePeriod:!!(vt&&A(vt).isAfter(A())),isPastDue:ve,isExpired:Te,isPau
104sed:Ce,planMark:Oe},M=Je(),Pe=M.pathname.match(Mo)&&ke,je=M.pathname.match(Uo)&&!!a,Le=M.pathname.match(zo),Ne=M.pathname.match(Bo),De=b.started&&b.remainingSteps.length===3||!$||sa(M.pathname)||Pe||je||Le||Ne,Me=!g||I(y),Tt=Ke([()=>t,({isPaused:p})=>!p,Ye([({isPastDue:p})=>p,({isExpired:p,atGracePeriod:ut})=>p&&ut,({isCardDeclined:p,isExpired:ut,planMark:ze,isPaymentMethodTypeCard:Be})=>{const Fe=ze?.isEnterprise&&!Be;return p&&!Fe&&!ut}])])(pt),Ct=Me?l:!1,Ot=Ia(f),It=Ra(Z,O,pt?.planMark,M),$t=ka(Ie,pt.planMark,$e,Re,M),Rt=D&&t,{showDownloadAppBanner:kt}=nn(),Pt=Pa(t,tt,u,n,A(e)),jt=ja(t,s)?l:!1,Lt=La(t,a)?l:!1,Nt=[Tt,Ct,Ot,It,Rt,$t,Pt,jt,Lt],Dt=[kt],Ue=!De&&r&&ht([...Nt,...Dt]),Mt=ht(Dt)&&!ht(Nt);return{notificationHeight:$a({showSmallBanner:Mt}),showNotifications:Ue,showUnsuccessfulPayment:Tt,showEmailNotification:Ct,showMaintenanceNotification:Ot,showPromotionNotification:It,showPaymentAuthorization:Rt,showFakePromotionNotification:$t,showCreditCardExpiration:Pt,showSmallBanner:Mt,showDownloadAppBanner:kt,showAccountDeleteUnderProcess:jt,showAccountCancellationUnderProcess:Lt}},Na=d.div`
105  display: block;
106  width: 100%;
107  height: 0;
108  margin-bottom: 20px;
109
110  ${t=>t.$bottomPadding&&m`
111      margin-bottom: ${t.$bottomPadding}px;
112    `}
113`,xe=d.div`
114  margin: 0 auto;
115  display: flex;
116  flex-direction: column;
117  justify-content: space-between;
118  padding: 0 40px;
119  min-height: 81px;
120  max-width: ${t=>`${t.$maxWidth}px`};
121  background-color: ${({theme:t,white:e})=>e?t.bg.white:t.bg.neutral50};
122
123  ${t=>te(t.offsets)};
124`;d.div`
125  display: flex;
126  padding: 6px 0;
127  justify-content: ${t=>t.justify?t.justify:"space-between"};
128  align-items: center;
129  flex-wrap: ${t=>t.wrapReverse?"wrap-reverse":"wrap"};
130  flex-grow: 1;
131`;const ar=d.div`
132  position: relative;
133  display: flex;
134  align-items: center;
135  padding: 10px 24px 10px 48px;
136
137  color: ${({theme:t})=>t.text.neutral600};
138  background-color: ${({theme:t})=>t.bg.white};
139  white-space: nowrap;
140
141  font-size: 14px;
142  font-weight: 500;
143  line-height: 20px;
144
145  cursor: pointer;
146  transition:
147    background-color 0.1s,
148    box-shadow 0.1s;
149
150  ${t=>t.roundIcon&&m`
151      padding-left: 20px;
152    `}
153
154  ${t=>t.fixedWidthMode&&m`
155      white-space: unset;
156      width: 120px;
157    `}
158
159  ${t=>t.isCompact&&m`
160      padding-left: 40px;
161    `}
162
163  ${t=>t.active&&m`
164      cursor: default;
165      color: ${({theme:e})=>e.blue400};
166      font-weight: 500;
167    `}
168
169  ${t=>t.disabled&&m`
170      cursor: not-allowed;
171      background-color: ${({theme:e})=>e.bg.white};
172      color: ${({theme:e})=>e.delimiter.neutral200};
173    `}
174
175  ${t=>!t.active&&!t.disabled&&m`
176      &:hover {
177        color: ${({theme:e})=>e.bg.white};
178        background-color: ${({theme:e})=>e.blue400};
179        box-shadow:
180          1px 0 0 0 ${({theme:e})=>e.blue400},
181          -1px 0 0 0 ${({theme:e})=>e.blue400};
182
183        svg path {
184          fill: ${({theme:e})=>e.bg.white};
185        }
186
187        &::after {
188          content: '';
189        }
190      }
191    `}
192
193  ${t=>t.customStyle}
194`,ir=d.div`
195  padding: 10px 24px;
196  color: ${({theme:t})=>t.text.neutral600};
197  font-size: 14px;
198  font-weight: 500;
199  line-height: 20px;
200`,rr=d.div`
201  margin-top: 7px;
202  margin-bottom: 7px;
203  height: 1px;
204  background-color: ${({theme:t})=>t.delimiter.neutral100};
205`;d.div`
206  display: flex;
207  justify-content: center;
208  align-items: center;
209  width: 16px;
210  height: 16px;
211  border: 1px solid ${({theme:t})=>t.blue400};
212  border-radius: 2px;
213  background-color: ${t=>t.active?t.theme.blue400:t.theme.bg.white};
214`;const cr=d.div`
215  display: flex;
216  align-items: center;
217  cursor: pointer;
218`,Da=d.div`
219  font-size: 12px;
220  padding-bottom: ${t=>t.column?"3px":"0"};
221  line-height: 15px;
222  color: ${({theme:t})=>t.text.neutral900};
223  white-space: nowrap;
224`,lr=d(Da)`
225  max-width: 100px;
226  padding: ${t=>t.column?"0 6px 0 0":"0 6px"};
227  overflow: hidden;
228  text-overflow: ellipsis;
229  white-space: nowrap;
230  color: ${({theme:t})=>t.blue400};
231  font-weight: 700;
232
233  ${t=>{if(t.styleType==="filledBackground")return m`
234        max-width: initial;
235        padding: 0;
236        line-height: 20px;
237        font-weight: 500;
238        color: ${t.theme.text.neutral700};
239      `}}
240`;m`
241  padding-top: 6px;
242  padding-bottom: 6px;
243  height: 40px;
244`;m`
245  padding: 6px 60px 6px 40px;
246  width: 380px;
247  height: 40px;
248`;const ye=(t=!1,{isExtraModal:e=!1,cancelHandler:n=ot,submitHandler:s=ot}={})=>{const{showModal:a,hideModal:i}=ee();Qe(t);const r=Xe(t);c.useEffect(()=>{if(r.state==="blocked"){const{component:l,...u}=To({isExtraModal:e,cancelHandler:()=>{r.reset&&r.reset(),i({isExtraModal:e})},submitHandler:()=>{r.proceed&&r.proceed(),s(),i()}}).payload;a(l,u)}},[r,e,n,s,a,i])},dr=d.form`
249  min-width: ${t=>t.$minWidth?t.$minWidth:null}px;
250  display: flex;
251  flex-direction: column;
252`,pr=m`
253  --tooltipBackground: ${({theme:t})=>t.bg.white};
254  --tooltipBorder: none;
255  border-radius: 8px;
256  box-shadow: ${({theme:t})=>`0px 4px 20px 0px ${_t(t.text.neutral700,.14)}`};
257  padding: 8px 0;
258
259  .tooltip-arrow {
260    display: none;
261  }
262`,dt=d.div`
263  margin-bottom: 24px;
264  padding: 32px 40px;
265  border-radius: 8px;
266  box-shadow: 0 5px 20px 0 rgba(60, 64, 88, 0.03);
267  background-color: ${({theme:t})=>t.bg.white};
268`,ur=d.div`
269  position: sticky;
270
271  ${t=>t.$showNotifications?m`
272        top: ${t.$notificationHeight}px;
273        height: calc(100vh - ${t.$notificationHeight}px);
274      `:m`
275      top: 0;
276      height: 100vh;
277    `};
278
279  padding: 40px 0px;
280  z-index: 15;
281  flex-shrink: 0;
282  overflow-y: auto;
283  background-color: ${({theme:t})=>t.bg.white};
284  transition: opacity 0.2s linear;
285`,hr=d.div`
286  display: flex;
287  justify-content: center;
288  flex-direction: column;
289`,mr=d(Y)`
290  display: flex;
291  position: relative;
292  height: ${t=>t.$nested?"40px":"50px"};
293  width: 100%;
294  background: transparent;
295  justify-content: flex-start;
296  align-items: center;
297  padding: 8px;
298  text-align: center;
299  color: ${t=>t.$active?t.theme.brand:t.theme.text.neutral500};
300  cursor: pointer;
301
302  @media all and (max-width: ${oe.desktop}px) {
303    padding: 10px;
304  }
305
306  &:hover {
307    background-color: ${({theme:t})=>t.bg.neutral200};
308    color: ${({theme:t})=>t.brand};
309    font-weight: 500;
310  }
311`,gr=d.button`
312  display: flex;
313  position: relative;
314  height: 50px;
315  width: 100%;
316  background: transparent;
317  justify-content: flex-start;
318  align-items: center;
319  padding: 8px;
320  text-align: center;
321  color: ${t=>t.$active?t.theme.brand:t.theme.text.neutral500};
322  cursor: pointer;
323
324  @media all and (max-width: ${oe.desktop}px) {
325    padding: 10px;
326  }
327
328  &:hover {
329    background-color: ${({theme:t})=>t.bg.neutral200};
330    color: ${({theme:t})=>t.brand};
331    font-weight: 500;
332  }
333`,br=d(Y)`
334  font-weight: 600;
335  letter-spacing: 0.4px;
336  line-height: ${Co};
337  font-size: ${Oo};
338  color: ${({theme:t})=>t.brand};
339  cursor: pointer;
340  text-decoration: underline;
341`,fr=d(x)`
342  width: 25px;
343  height: 25px;
344  margin-left: 25px;
345  margin-right: 16px;
346`,Ma=d(ne(["isNotSticky","pb"],x))`
347  background: ${({$greyBg:t,theme:e})=>t?e.bg.neutral50:e.bg.white};
348  min-height: 60px;
349  border-bottom: ${({$noBorder:t,theme:e})=>t?"none":`1px solid ${e.delimiter.neutral200}`};
350  padding: ${t=>t.padding||"3px 32px 7px 24px"};
351  justify-content: ${t=>t.justifyContent||"space-between "} !important;
352  align-items: ${t=>t.align||"center"} !important;
353  padding-bottom: ${t=>t.pb};
354
355  ${t=>!t.isNotSticky&&m`
356      position: sticky;
357      top: ${`${t.top||0}px`};
358      z-index: 15;
359    `}
360`,Ee=({children:t,top:e,isNotSticky:n=!1,...s})=>{const{showNotifications:a,notificationHeight:i}=lt(),r=at({top:e,showNotifications:a,notificationHeight:i});return o.jsx(Ma,{...s,isNotSticky:n,top:r,children:t})},Ua=d(ne(["maxWidth"],k))`
361  width: 100%;
362  margin: 0 auto;
363
364  ${t=>t.autoWidth&&m`
365      width: auto;
366    `}
367  ${t=>t.maxWidth&&m`
368      max-width: ${t.maxWidth}px;
369    `}
370  ${t=>t.$customStyle}
371`,za=({left:t=30,right:e=40,top:n=12,children:s,...a})=>o.jsx(Ua,{left:t,right:e,top:n,...a,children:s});d.div`
372  margin-top: 10px;
373  margin-bottom: 10px;
374`;d(T)`
375  ${t=>t.customStyle};
376`;const Ba=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",...t},c.createElement("g",{id:"icn-close_svg__Add-Folder-or-Item",fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:1},c.createElement("g",{id:"icn-close_svg__Add-Items_with-custom-fields",fill:"#2F313A",transform:"translate(-970 -30)"},c.createElement("g",{id:"icn-close_svg__Content-area",transform:"translate(106 24)"},c.createElement("g",{id:"icn-close_svg__Title"},c.createElement("path",{id:"icn-close_svg__icn_close",d:"M13.455 12 20 18.545 18.545 20 12 13.455 5.455 20 4 18.545 10.545 12 4 5.455 5.455 4 12 10.545 18.545 4 20 5.455z",transform:"translate(860 2)"})))))),Fa=d.button.withConfig({displayName:"CommonHeader__CloseButton"})(["position:absolute;right:32px;z-index:16;svg > g{stroke:",";}"],({theme:t})=>t.text.neutral900),Ga=d(x).withConfig({displayName:"CommonHeader__Wrapper"})(["position:relative;width:100%;height:100%;"]),Wa=({center:t=!0,top:e,logoLink:n,backToLink:s,renderContent:a=ot,renderActions:i})=>{const{locationPush:r,locationGoBack:l}=z(),u=c.useCallback(()=>
376{if(s){r(s);return}l()},[s,r,l]),g=()=>i?i():o.jsx(Fa,{"data-testid":"close-button",type:"button",onClick:u,children:o.jsx(Ba,{})});return o.jsx(Ee,{padding:"0",top:e,children:o.jsxs(Ga,{alignItems:"center",center:t,children:[o.jsx(k,{horizontal:16,top:10,children:o.jsx(Y,{to:n||"/items",children:o.jsx(gt,{})})}),a(),g()]})})},Ha=t=>{const{t:e}=C();return o.jsxs(x,{column:!0,fullWidth:!0,children:[t.children,o.jsx(T,{neutral400:!0,smallSize:!0,offsets:{pl:40,pt:10,pb:10},children:e("common.version",{version:"v10.133.0-R241.0.0"})})]})},Se=d.div.withConfig({displayName:"StickyHeader__Sticky"})(["top:0;z-index:12;position:relative;"," "," "," @supports (position:sticky){position:sticky;top:",";}"],t=>t.$paddingLeft&&m(["padding-left:","px;"],t.$paddingLeft),t=>t.$paddingRight&&m(["padding-right:","px;"],t.$paddingRight),t=>t.$isScrolling&&m(["box-shadow:0 16px 8px -16px ",";","{opacity:0;}"],({theme:e})=>_t(e.bg.neutral900,.2),X),t=>`${t.$top||0}px`),Va=d.div.withConfig({displayName:"StickyHeader__DelimiterWrapper"})(["display:flex;align-items:center;justify-content:space-between;min-height:81px;border-bottom:1px solid ",";"],({theme:t,$visible:e})=>e?t.delimiter.neutral200:"transparent"),qa=({children:t,top:e,paddingLeft:n,paddingRight:s})=>{const{isScrollingStarted:a}=Et(),{showNotifications:i,notificationHeight:r}=lt(),l=at({top:e,showNotifications:i,notificationHeight:r});return o.jsx(Se,{"data-testid":"sticky-header",$isScrolling:a,$top:l,$paddingLeft:n,$paddingRight:s,children:t})},_r=({wrapperProps:t={},top:e,children:n,shouldRenderBulkActions:s,renderBulkActions:a=ot,hideDelimiter:i=!1})=>{const{isScrollingStarted:r}=Et(),{showNotifications:l,notificationHeight:u}=lt(),g=at({top:e,showNotifications:l,notificationHeight:u});return o.jsx(Se,{$isScrolling:r,$top:g,children:o.jsxs(xe,{...t,children:[o.jsx(Va,{$visible:!i&&(!r||s),children:n}),o.jsx(Q,{when:s,children:o.jsx(k,{bottom:15,children:a()})})]})})},Ja=d.div.withConfig({displayName:"StickyHeader__ContentWrapper"})(["position:relative;z-index:12;"," "," .sticky{z-index:11;"," top:"," !important}"],t=>t.$paddingLeft&&m(["padding-left:","px;"],t.$paddingLeft),t=>t.$paddingRight&&m(["padding-right:","px;"],t.$paddingRight),t=>t.$isScrolling&&m(["box-shadow:0 16px 8px -16px ",";","{opacity:0;}"],({theme:e})=>_t(e.bg.neutral900,.2),X),t=>`${t.$top||0}px`),Ka=({children:t,top:e,paddingLeft:n,paddingRight:s})=>{const{isScrollingStarted:a}=Et(),{showNotifications:i,notificationHeight:r}=lt(),l=at({top:e,showNotifications:i,notificationHeight:r});return o.jsx(Ja,{$isScrolling:a,$top:l,$paddingLeft:n,$paddingRight:s,children:o.jsx(Ze,{topOffset:l*-1,isIOSFixEnabled:!1,children:t})})},Ya=({children:t,white:e,offsets:n={pt:10},delimiterOffsets:s={top:"12px"},innerDelimiter:a,isNonSticky:i,stickyMode:r="css",stickyPaddingLeft:l,stickyPaddingRight:u})=>{const{pb:g,...y}=n,b=o.jsxs(xe,{minHeight:"105px",offsets:y,white:e,id:"default-header-root",children:[t,o.jsx(Q,{when:!a,children:o.jsx(X,{neutral200:!0,height:"1px",top:s.top,width:"100%"})})]});if(i)return b;const f=r==="css"?qa:Ka;return o.jsxs(c.Fragment,{children:[o.jsx(f,{paddingLeft:l,paddingRight:u,children:b}),o.jsx(Na,{$bottomPadding:g})]})},Qa=d.div`
377  margin-bottom: 24px;
378  padding: 32px 40px 32px 40px;
379  border-radius: 8px;
380  box-shadow: 0 5px 20px 0 rgba(60, 64, 88, 0.03);
381  background-color: ${({theme:t})=>t.bg.white};
382  background-color: ${({theme:t})=>t.bg.white};
383
384  ${t=>t.bottom&&css`
385      padding-bottom: 20px;
386    `}
387
388  ${t=>te(t.offsets)};
389`,Xa=t=>o.jsx(Qa,{column:!0,"data-testid":t["data-testid"],offsets:t.offsets,children:t.children}),Za=d(k)`
390  width: 100%;
391  margin: 0 auto;
392
393  ${t=>t.maxWidth&&m`
394      max-width: ${t.maxWidth}px;
395    `}
396`,ti=t=>o.jsxs(Za,{...t,children:[t.children,o.jsx(X,{neutral200:!0,height:"1px",top:"28px",width:"100%"})]}),mt={Header:Ee,Body:za,CommonHeader:Wa,RightColumn:Ha,DefaultHeader:Ya,SectionWrapper:Xa,HeaderContent:ti},ei="https://help.sortly.com/hc/en-us/articles/19012495380251-Integrate-With-Slack",oi=[{id:0,get label(){return v("limits.upsale_popup.slack_integration.features.create_item")}},{id:1,get label(){return v("limits.upsale_popup.slack_integration.features.update_item")}},{id:2,get label(){return v("limits.upsale_popup.slack_integration.features.move_item")}},{id:3,get label(){return v("limits.upsale_popup.slack_integration.features.delete_item")}},{id:4,get label(){return v("limits.upsale_popup.slack_integration.features.update_quantity")}}],ni={get analyticsTitle(){return v("limits.upsale_popup.slack_integration.analytics_title")},get title(){return Io(v("limits.upsale_popup.slack_integration.headline"))},get description(){return v("limits.upsale_popup.slack_integration.description")},imageLink:"/images/icons/slack-upsell-promo.png",helpArticleLink:ei,advantages:oi,redirectBackOnClose:!0,get ctaText(){return v("limits.upsale_popup.slack_integration.cta_text")},get learnMore(){return v("limits.upsale_popup.slack_integration.learn_more")}},si=()=>{const{t}=C(),e=h(it),{id:n}=nt(),s=c.useCallback(()=>{const a=`https://api.sortly.co/integration/register/${e.integrationDefinitionId}/${n}`;return window.location.href=a}
396,[n,e.integrationDefinitionId]);return o.jsxs(dt,{children:[o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:12},size:"20px",children:t("slack.headline")}),o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:20},children:t("slack.connect_description")}),o.jsx(rt,{"data-testid":"submit-button",disableStyleType:"transparent",offsetType:"clear",styleType:"brandCTA",type:"button",onClick:s,children:t("common.connect")})]})},ai=d(x).withConfig({displayName:"ui__EventWrapper"})(["border:1px solid ",";border-radius:8px;overflow:hidden;"],({theme:t})=>t.delimiter.neutral100),ii=d(x).withConfig({displayName:"ui__EventHeader"})(["padding:16px;background-color:",";border-bottom:1px solid ",";"],({theme:t})=>t.bg.neutral25,({theme:t})=>t.delimiter.neutral100),ri=d(x).withConfig({displayName:"ui__SelectionCountPill"})(["padding:6px 12px;border-radius:12px;background-color:",";color:",";font-size:12px;white-space:nowrap;"],({theme:t,$atleastOneSelected:e})=>e?t.bg.green50:t.bg.neutral100,({theme:t,$atleastOneSelected:e})=>e?t.text.green600:t.text.neutral700),ci=d.span.withConfig({displayName:"ui__SelectAllOption"})(["color:",";font-size:14px;font-weight:500;cursor:pointer;"],({theme:t})=>t.text.red500),li=d(x).withConfig({displayName:"ui__IconWrapper"})(["width:36px;height:36px;border-radius:8px;border:1px solid ",";background-color:",";"],({theme:t})=>t.delimiter.neutral100,({theme:t})=>t.bg.white),di=t=>{const{parentId:e,icon:n,titleKey:s,descriptionKey:a,selectedCount:i,totalCount:r,onToggleAll:l}=t,{t:u}=C(),g=i===r;return o.jsxs(ii,{alignItems:"center",gap:12,justifyContent:"space-between",children:[o.jsxs(x,{alignItems:"center",gap:12,children:[o.jsx(li,{center:!0,children:o.jsx(n,{})}),o.jsxs(x,{column:!0,gap:1,children:[o.jsx(T,{block:!0,bold:!0,neutral700:!0,size:"14px",children:u(s)}),o.jsx(T,{block:!0,neutral500:!0,size:"12px",children:u(a)})]})]}),o.jsxs(x,{alignItems:"center",gap:16,children:[o.jsx(ri,{$atleastOneSelected:i>0,"data-testid":`${e}-event-count`,children:u("integrations.notification_events.selected_count",{selected:i,total:r})}),o.jsx(ci,{"data-testid":`${e}-toggle-all`,onClick:l,children:u(g?"common.unselect_all":"common.select_all")})]})]})},pi=t=>{const{parents:e}=t,{t:n}=C(),{register:s,setValue:a}=to(),i=eo();return o.jsx(x,{column:!0,gap:16,style:{padding:"20px 0px 24px"},children:e.map(r=>{const l=r.events.map(b=>Ft(r.id,b.name)),u=l.filter(b=>i[b]).length,g=u===l.length,y=()=>{l.forEach(b=>a(b,!g,{shouldDirty:!0}))};return o.jsxs(ai,{column:!0,children:[o.jsx(di,{descriptionKey:r.descriptionKey,parentId:r.id,icon:r.icon,onToggleAll:y,selectedCount:u,titleKey:r.titleKey,totalCount:l.length}),r.events.map(b=>{const f=Ft(r.id,b.name),$=i[f]?n("common.on"):n("common.off");return o.jsxs(x,{column:!0,"data-testid":`${f}-event`,style:{padding:"0px 16px"},children:[o.jsx(X,{neutral100:!0,height:"1px",left:"-16px",right:"-16px",width:"auto"}),o.jsxs(x,{alignItems:"center",justifyContent:"space-between",children:[o.jsx(T,{block:!0,neutral700:!0,offsets:{mt:16,mb:16},children:n(b.labelKey)}),o.jsx($o,{"data-testid":`${f}-event-checkbox`,...s(f),checkboxType:"switcher",label:$,name:f,styleType:"redStyle"})]})]},f)})]},r.id)})})},ui=()=>{const{t}=C(),e=N(),{selectIntegrationNotifications:n}=ct(),s=h(it),{featureFlags:a}=Ro(),i=c.useMemo(()=>ko(!!a?.enablePoJobAlertTriggers),[a?.enablePoJobAlertTriggers]),r=c.useMemo(()=>Po(s.enabledEvents),[s.enabledEvents]),l=ft({mode:"onChange",defaultValues:r,criteriaMode:"all"}),{handleSubmit:u,formState:{isDirty:g},reset:y}=l;ye(g),c.useEffect(()=>y(r),[y,r]);const b=f=>{e({type:E.SELECT_INTEGRATION_NOTIFICATIONS_REQUEST,payload:{integrationName:j,values:f}})};return o.jsxs(dt,{children:[o.jsxs(x,{column:!0,children:[o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:12},size:"20px",children:t("slack.select_notification")}),o.jsx(T,{block:!0,neutral500:!0,size:"12px",children:t("slack.description")})]}),o.jsx(oo,{...l,children:o.jsxs("form",{onSubmit:u(b),children:[o.jsx(pi,{parents:i}),o.jsx(rt,{"data-testid":"submit-button",disabled:!g||n,disableStyleType:"transparent",offsetType:"clear",showSpinner:n,styleType:"brandCTA",type:"submit",children:t("common.save_changes")}
396)]})})]})},hi=t=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:11,fill:"none",...t},c.createElement("path",{fill:"#8F9095",d:"m8.806 4.56-.532 2.52h1.932V8.2h-2.17L7.434 11H6.216l.602-2.8h-2.94L3.276 11H2.058l.602-2.8H.462V7.08h2.436l.532-2.52H1.26V3.44h2.408L4.27.64h1.218l-.602 2.8h2.94l.602-2.8h1.218l-.602 2.8h1.946v1.12zm-1.218 0h-2.94l-.532 2.52h2.94z"})),mi=()=>{const{t}=C(),e=h(it),n=N(),{updateIntegrationConfig:s,getSlackChannels:a}=ct();xt(()=>{n({type:E.GET_SLACK_CHANNELS_REQUEST})});const i=no(O=>({label:O.name,value:O.name}),e.channels||[]),r=c.useMemo(()=>{const O=et(["config","channel"],e);return so((D,tt)=>tt?.label===O?ao(tt):D,{},i)},[i,e]),{handleSubmit:l,formState:{isDirty:u},control:g,setValue:y,watch:b}=ft({mode:"onChange",criteriaMode:"all"});ye(u);const f=b("channel",{});c.useEffect(()=>{I(r)&&W(f)&&y("channel",r)},[f,r]);const $=c.useMemo(()=>io(f||{},r),[f,r]),Z=O=>{n({type:E.UPDATE_INTEGRATION_CONFIG_REQUEST,payload:{integrationName:j,config:{channel:et(["channel","label"],O)},afterAll:()=>se({type:"success",message:t("slack.selected_channel")})}})};return o.jsxs(dt,{children:[o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:12},size:"20px",children:t("slack.select_channel")}),o.jsxs("form",{onSubmit:l(Z),children:[o.jsx(k,{bottom:16,top:24,width:"295px",children:o.jsxs(x,{relative:!0,children:[o.jsx(jo,{isFocusApplicable:!0,isSearchable:!0,control:g,"data-testid":"select-channel",isDisabled:W(f)&&a,label:t("slack.channel_label"),leftIcon:o.jsx(hi,{}),name:"channel",options:i,value:f}),o.jsx(Q,{when:W(f)&&a,children:o.jsx(St,{center:!0,customStyles:{top:"27px"},height:"24px",right:"-30px",width:"24px"})})]})}),o.jsx(rt,{"data-testid":"submit-button",disabled:s||$,disableStyleType:"transparent",offsetType:"clear",showSpinner:s,styleType:"brandCTA",type:"submit",children:t("common.save_changes")})]})]})},gi=({title:t,description:e,integrationName:n,onSubmit:s})=>{const{t:a}=C(),{disconnectIntegration:i}=ct(),{showModal:r,hideModal:l}=ee(),u=c.useCallback(()=>r("ActionModal",{isDefaultHeadingHidden:!0,showCrossBtn:!1,disableOutsideClick:!0,autoWidth:!0,styleType:"light",data:{content:a("integrations.confirm_disconnect",{integrationName:ae(n)}),cancelHandler:()=>{l()},spinner:"disconnectIntegration",submitButton:a("common.confirm"),submitHandler:()=>{l(),s()}}}),[r,l,n,s]);return o.jsxs(dt,{children:[o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:12},size:"20px",children:t}),o.jsx(Q,{when:I(e),children:o.jsx(T,{block:!0,neutral700:!0,offsets:{mb:20},children:e})}),o.jsx(rt,{"data-testid":"submit-button",disabled:i,disableStyleType:"transparent",offsetType:"clear",showSpinner:i,styleType:"brandCTA",type:"button",onClick:u,children:a("common.disconnect")})]})},bi=d.div.withConfig({displayName:"IntegrationHeader__Wrapper"})(["width:100%;padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid ",";"],({theme:t})=>t.delimiter.neutral200),fi=()=>{const{t}=C(),{locationPush:e}=z();return o.jsx(bi,{children:o.jsx("button",{"data-testid":"integration-header-back",type:"button",onClick:()=>e("/integrations"),children:o.jsx(T,{customColor:"#95959C",size:"12px",letterSpacing:"0.4px",children:t("menu.integrations")})})})},_i=()=>{const{t}=C(),e=N(),n=h(it);No({enterEvent:()=>L.viewIntegrationPage({integration:j})});const{getIntegrationData:s}=ct();return s?o.jsx(St,{}):n.enabled?o.jsxs(o.Fragment,{children:[o.jsx(mi,{}),o.jsx(ui,{}),o.jsx(gi,{description:t("slack.connect_description"),integrationName:j,title:t("slack.headline"),onSubmit:()=>e({type:E.DISCONNECT_INTEGRATION_REQUEST,payload:{integrationName:j}})})]}):o.jsx(si,{})},xi=()=>{const{t}=C(),e=N(),{planFeatures:n,mark:{base:s}}=J();return xt(()=>{if(!n.integrationsEnabled)return e({type:E.SHOW_POPUP,popupType:Lo.SLACK_INTEGRATION,meta:{plan:s,when:"after",featureInfo:ni}});e({type:E.GET_INTEGRATION_DATA_REQUEST,payload:{integrationName:j}})}),o.jsxs(wt,{$greyBg:!0,children:[o.jsx(mt.DefaultHeader,{innerDelimiter:!0,offsets:{pt:32},children:o.jsxs(mt.HeaderContent,{left:0,maxWidth:800,right:0,children:[o.jsx(fi,{}),o.jsx(T,{as:"h1",children:t("slack.headline")})]})}),o.jsx(mt.Body,{left:0,maxWidth:800,right:0,children:o.jsx(Q,{when:n.integrationsEnabled,children:o.jsx(_i,{})})})]})},xr=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"})),yi=()=>{const{t}=C(),{locationPush:e,locationGoBack:n}=z(),[s]=Kt();return xt(()=>{const a=s.get("error"),i=s.get("success");I(i)||I(a)?(Xt(i)&&(e("/integrations/slack"),se({type:"success",message:t("integrations.connected",{integrationName:ae(j)})}),L.connectIntegration({integration:j})),I(a)&&(Do(a),e("/items"))):n()}),o.jsx(wt,{children:o.jsx(St,{})})},yr=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"}));
396export{nn as $,In as A,At as B,wt as C,rr as D,Yi as E,fe as F,Ti as G,Ci as H,ki as I,Oi as J,Ii as K,_ as L,$i as M,Ri as N,Li as O,yn as P,or as Q,Zo as R,sn as S,ji as T,_r as U,ie as V,Zi as W,ir as X,Ht as Y,Di as Z,Mi as _,Pi as a,mt as a0,ur as a1,hr as a2,gr as a3,fr as a4,mr as a5,pr as a6,ni as a7,fi as a8,dt as a9,pi as aa,gi as ab,Fo as ac,bt as ad,Ee as ae,Go as af,dr as ag,lr as ah,cr as ai,Da as aj,Bi as ak,zi as al,re as am,ln as an,Ni as ao,xr as ap,yr as aq,Gi as b,ar as c,er as d,ye as e,br as f,tn as g,Ui as h,Fi as i,sa as j,q as k,Ds as l,nr as m,sr as n,Wi as o,tr as p,Hi as q,Vi as r,w as s,qi as t,lt as u,Ki as v,Ji as w,Ta as x,Qi as y,Xi as z};
397//# sourceMappingURL=slackIntegration-CyZu6SDu_bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.