PageSourceSearch

https://shipper-jjxaleagz-freightcaviar-technologies.vercel.app/_next/static/chunks/03fy-bnreifvw.js

js shipper-jjxaleagz-freightcaviar-technologies.vercel.app collected 2026-10-03 07:43:01 UTC 97,090 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5129fda8-5d12-4731-8d55-0d8c9c9e92de")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835802,e=>{"use strict";let t=[["Alabama","AL"],["Alaska","AK"],["Arizona","AZ"],["Arkansas","AR"],["California","CA"],["Colorado","CO"],["Connecticut","CT"],["Delaware","DE"],["District of Columbia","DC"],["Florida","FL"],["Georgia","GA"],["Hawaii","HI"],["Idaho","ID"],["Illinois","IL"],["Indiana","IN"],["Iowa","IA"],["Kansas","KS"],["Kentucky","KY"],["Louisiana","LA"],["Maine","ME"],["Maryland","MD"],["Massachusetts","MA"],["Michigan","MI"],["Minnesota","MN"],["Mississippi","MS"],["Missouri","MO"],["Montana","MT"],["Nebraska","NE"],["Nevada","NV"],["New Hampshire","NH"],["New Jersey","NJ"],["New Mexico","NM"],["New York","NY"],["North Carolina","NC"],["North Dakota","ND"],["Ohio","OH"],["Oklahoma","OK"],["Oregon","OR"],["Pennsylvania","PA"],["Rhode Island","RI"],["South Carolina","SC"],["South Dakota","SD"],["Tennessee","TN"],["Texas","TX"],["Utah","UT"],["Vermont","VT"],["Virginia","VA"],["Washington","WA"],["West Virginia","WV"],["Wisconsin","WI"],["Wyoming","WY"]].map(([e,t])=>({abbreviation:t,name:e})),r=t.map(e=>e.name),n=new Map(t.map(e=>[e.name.toLocaleLowerCase("en-US"),e])),a=new Map(t.map(e=>[e.abbreviation,e]));function i(e){let t=e.trim();return t?a.get(t.toUpperCase())??n.get(t.toLocaleLowerCase("en-US"))??null:null}e.s(["US_STATE_NAMES",0,r,"getUsStateAbbreviation",0,function(e){return i(e)?.abbreviation??e},"getUsStateName",0,function(e){return i(e)?.name??e},"isUsStateAbbreviation",0,function(e){return a.has(e)},"normalizeUsState",0,i])},701085,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return s},MissingSlotContext:function(){return u},TemplateContext:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(741705)._(e.r(191788)),o=i.default.createContext(null),s=i.default.createContext(null),l=i.default.createContext(null),c=i.default.createContext(null),u=i.default.createContext(new Set)},531430,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return a}});class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},470008,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return u},PathParamsContext:function(){return c},PathnameContext:function(){return l},ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},SearchParamsContext:function(){return s},createDevToolsInstrumentedPromise:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(191788),o=e.r(531430),s=(0,i.createContext)(null),l=(0,i.createContext)(null),c=(0,i.createContext)(null),u=(0,i.createContext)(null);function d(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},991622,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTTPAccessErrorStatus:function(){return i},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return s},getAccessFallbackErrorTypeByStatus:function(){return u},getAccessFallbackHTTPStatus:function(){return c},isHTTPAccessFallbackError:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401}
2,o=new Set(Object.values(i)),s="NEXT_HTTP_ERROR_FALLBACK";function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===s&&o.has(Number(r))}function c(e){return Number(e.digest.split(";")[1])}function u(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40184,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},301939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return o},isRedirectError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(40184),o="NEXT_REDIRECT";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,a=t.slice(2,-2).join(";"),s=Number(t.at(-2));return r===o&&("replace"===n||"push"===n)&&"string"==typeof a&&!isNaN(s)&&s in i.RedirectStatusCode}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68934,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return i}});let n=e.r(991622),a=e.r(301939);function i(e){return(0,a.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},14760,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return o},isBailoutToCSRError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class o extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}},691198,e=>{"use strict";e.s(["assertMutatorSuccess",0,function(e){if("success"!==e.type)throw Error(function(e){let{error:t}=e;return"app"===t.type&&"string"==typeof t.details&&t.details.length>0?`${t.message}: ${t.details}`:t.message}(e))}])},663230,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(191788);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},415706,e=>{"use strict";var t=e.i(56206),r=e.i(97011);e.s(["cn",0,function(...e){return(0,r.twMerge)((0,t.clsx)(e))}])},771914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return l}});let n=e.r(191788),a=e.r(799604),i="function"==typeof IntersectionObserver,o=new Map,s=[];function l({rootRef:e,rootMargin:t,disabled:r}
2){let c=r||!i,[u,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),m=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(c||u)return;let r=p.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:a,elements:i}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let a=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:a},s.push(r),o.set(r,t),t}(r);return i.set(e,t),a.observe(e),function(){if(i.delete(e),a.unobserve(e),0===i.size){a.disconnect(),o.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(r,e=>e&&d(e),{root:e?.current,rootMargin:t})}else if(!u){let e=(0,a.requestIdleCallback)(()=>d(!0));return()=>(0,a.cancelIdleCallback)(e)}},[c,t,e,u,p.current]),[m,u,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},154471,(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return n}}),e.r(270090),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},548735,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},539149,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return j},useLinkStatus:function(){return S}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(952456),o=e.r(391398),s=i._(e.r(191788)),l=e.r(160472),c=e.r(471112),u=e.r(728169),d=e.r(889129),p=e.r(514862),m=e.r(425479),f=e.r(771914),h=e.r(154471),y=e.r(344113),g=e.r(663230);e.r(548735);let b=new Set;function x(e,t,r,n){if(!("u"<typeof window)&&(0,c.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let a=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(b.has(a))return;b.add(a)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let C=s.default.forwardRef(function(e,t){let r,n,{href:a,as:i,children:u,prefetch:b=null,passHref:C,replace:w,shallow:S,scroll:j,locale:_,onClick:P,onNavigate:k,onMouseEnter:E,onTouchStart:N,legacyBehavior:R=!1,transitionTypes:M,...A}=e;r=u,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let L=s.default.useContext(m.RouterContext),I=!1!==b,{href:O,as:T}=s.default.useMemo(()=>{if(!L){let e=v(a);return{href:e,as:i?v(i):e}}let[e,t]=(0,l.resolveHref)(L,a,!0);return{href:e,as:i?(0,l.resolveHref)(L,i):t||e}},[L,a,i]),D=s.default.useRef(O),U=s.default.useRef(T);R&&(n=s.default.Children.only(r));let B=R?n&&"object"==typeof n&&n.ref:t,[z,F,H]=(0,f.useIntersection)({rootMargin:"200px"}),W=s.default.useCallback(e=>{(U.current!==T||D.current!==O)&&(H(),U.current=T,D.current=O),z(e)},[T,O,H,z]),q=(0,g.useMergedRef)(W,B);s.default.useEffect(()=>{!L||F&&I&&x(L,O,T,{locale:_})},[T,O,F,_,I,L?.locale,L]);let $={ref:q,onClick(e){R||"function"!=typeof P||P(e),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!L||e.defaultPrevented||function(e,t,r,n,a,i,o,s,l){let u,{nodeName:d}=e.currentTarget;if(!("A"===d.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(r)){a&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=o??!0;"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:i,locale:s,scroll:e}):t[a?"replace":"push"](n||r,{scroll:e})})()}}(e,L,O,T,w,S,j,_,k)},onMouseEnter(e){R||"function"!=typeof E||E(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),L&&x(L,O,T,{locale:_,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){R||"function"!=typeof N||N(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),L&&x(L,O,T,{locale:_,priority:!0,bypassPrefetchedCheck:!0})}};if((0,d.isAbsoluteUrl)(T))$.href=T;else if(!R||C||"a"===n.type&&!("href"in n.props)){let e=void 0!==_?_:L?.locale;$.href=L?.isLocaleDomain&&(0,h.getDomainLocale)(T,e,L?.locales,L?.domainLocales)||
2(0,y.addBasePath)((0,p.addLocale)(T,e,L?.defaultLocale))}return R?s.default.cloneElement(n,$):(0,o.jsx)("a",{...A,...$,children:r})}),w=(0,s.createContext)({pending:!1}),S=()=>(0,s.useContext)(w),j=C;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41158,(e,t,r)=>{t.exports=e.r(539149)},815363,e=>{"use strict";var t=e.i(558021);let r=(e,r,n)=>{if(e&&"reportValidity"in e){let a=(0,t.get)(n,r);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},n=(e,t)=>{for(let n in t.fields){let a=t.fields[n];a&&a.ref&&"reportValidity"in a.ref?r(a.ref,n,e):a&&a.refs&&a.refs.forEach(t=>r(t,n,e))}},a=(e,t)=>{let r=i(t);return e.some(e=>i(e).match(`^${r}\\.\\d+`))};function i(e){return e.replace(/\]|\[/g,"")}e.s(["zodResolver",0,function(e,r,i){return void 0===i&&(i={}),function(o,s,l){try{return Promise.resolve(function(t){try{var a=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](o,r)).then(function(e){return l.shouldUseNativeValidation&&n({},l),{errors:{},values:i.raw?Object.assign({},o):e}})}catch(e){return t(e)}return a&&a.then?a.then(void 0,t):a}(function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:((e,r)=>{r.shouldUseNativeValidation&&n(e,r);let i={};for(let n in e){let o=(0,t.get)(r.fields,n),s=Object.assign(e[n]||{},{ref:o&&o.ref});if(a(r.names||Object.keys(e),n)){let e=Object.assign({},(0,t.get)(i,n));(0,t.set)(e,"root",s),(0,t.set)(i,n,e)}else(0,t.set)(i,n,s)}return i})(function(e,r){for(var n={};e.length;){var a=e[0],i=a.code,o=a.message,s=a.path.join(".");if(!n[s])if("unionErrors"in a){var l=a.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:o,type:i};if("unionErrors"in a&&a.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),r){var c=n[s].types,u=c&&c[a.code];n[s]=(0,t.appendErrors)(s,r,n,i,u?[].concat(u,a.message):a.message)}e.shift()}return n}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}],815363)},127630,e=>{"use strict";let t=(0,e.i(369547).default)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],127630)},36870,e=>{"use strict";e.s(["getFullName",0,function(e,t){return e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:e.firstName:t?null:"-"}])},44112,e=>{"use strict";var t=e.i(191788);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))});e.s(["InformationCircleIcon",0,r],44112)},598614,e=>{"use strict";var t=e.i(77403);e.s(["doesHaveOwnerPermissions",0,function(e){let r=(0,t.tryValidateOrganizationRole)(e??void 0);return"OWNER"===r||"BILLING_ADMIN"===r},"doesHaveStandardAccess",0,function(e){let r=(0,t.tryValidateOrganizationRole)(e??void 0);return"OWNER"===r||"MEMBER"===r},"getUserName",0,function(e,t){return e||t.split("@")[0]},"isUserCompanyCarrier",0,function(e){return!!e.activeWorkspace?.organization.company?.carrier?.usdotNumber}])},188169,e=>{"use strict";let t=(0,e.i(369547).default)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);e.s(["Building2",0,t],188169)},909179,e=>{"use strict";let t=(0,e.i(369547).default)("Sparkle",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}]]);e.s(["SparkleIcon",0,t],909179)},410630,e=>{e.q("/_next/static/media/slide1.0.e.3r0d~nj65.gif")},538130,e=>{e.q("/_next/static/media/slide2.0ie-cc9.7kbct.gif")},830340,e=>{e.q("/_next/static/media/slide3.0yjwijxkaurbz.gif")},616191,e=>{e.q("/_next/static/media/slide4.0016so86egnzw.gif")},972733,e=>{"use strict";var t=e.i(232488);e.s(["Plus",()=>t.default])},675878,e=>{"use strict";let t=(0,e.i(369547).default)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],675878)},477623,e=>{"use strict";var t,r=e.i(391398),n=e.i(191788),a=e.i(691567);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=e&&("u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d=function(e,t,r){var a=!!r,i=n.default.useRef(r);n.default.useEffect(function(){i.current=r},[r]),n.default.useEffect(function(){if(!a||!e)return function(){};var r=function(){i.current&&i.current.apply(i,arguments)};return e.on(t,r),function(){e.off(t,r)}},[a,t,e,i])},p=function(e){var t=n.default.useRef(e);return n.default.useEffect(function(){t.current=e},[e]),t.current},m=function(e){return null!==e&&"object"===s(e)},f="[object Object]",h=function e(t,r){if(!m(t)||!m(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;var a=Object.prototype.toString.call(t)===f;if(a!==(Object.prototype.toString.call(r)===f))return!1;if(!a&&!n)return t===r;var i=Object.keys(t),o=Object.keys(r);if(i.length!==o.length)return!1;for(var s={},l=0;l<i.length;l+=1)s[i[l]]=!0;for(var c=0;c<o.length;c+=1)s[o[c]]=!0;var u=Object.keys(s);return u.length===i.length&&u.every(function(n){return e(t[n],r[n])})},y=function(e,t,r){return m(e)?Object.keys(e).reduce(function(n,a){var i=!m(t)||!h(e[a],t[a]);return r.includes(a)?(i&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),n):i?o(o({},n||{}),{},l({},a,e[a])):n},null):null},g="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(null===e||m(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(m(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return b(e,t)})};var r=b(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},v=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"5.6.1"}),e.registerAppInfo({name:"react-stripe-js",version:"5.6.1",url:"https://stripe.com/docs/stripe-js/react"}))},C=n.default.createContext(null);C.displayName="ElementsContext";var w=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},S=function(e){var t=e.stripe,r=e.options,a=e.children,i=n.default.useMemo(function(){return x(t)},[t]),o=c(n.default.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(r):null}}),2),s=o[0],l=o[1];n.default.useEffect(function(){var e=!0,t=function(e){l(function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}})};return"async"!==i.tag||s.stripe?"sync"!==i.tag||s.stripe||t(i.stripe):i.stripePromise.then(function(r){r&&e&&t(r)}),function(){e=!1}},[i,s,r]);var u=p(t);n.default.useEffect(function(){null!==u&&u!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[u,t]);var d=p(r);return n.default.useEffect(function(){if(s.elements){var e=y(r,d,["clientSecret","fonts"]);e&&s.elements.update(e)}},[r,d,s.elements]),n.default.useEffect(function(){v(s.stripe)},[s.stripe]),n.default.createElement(C.Provider,{value:s},a)};S.propTypes={stripe:a.default.any,options:a.default.object};a.default.func.isRequired;var j=n.default.createContext(null);j.displayName="CheckoutContext",a.default.any,a.default.shape({clientSecret:a.default.oneOfType([a.default.string,a.default.instanceOf(Promise)]).isRequired,elementsOptions:a.default.object}).isRequired;var _=function(e){var t=n.default.useContext(j),r=n.default.useContext(C);if(!t)return w(r,e);if(!r)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."))},P=["mode"],k=function(e,t){var r="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),i=t?function(e){_("mounts <".concat(r,">"));var t=e.id,a=e.className;return n.default.createElement("div",{id:t,className:a})}:function(t){var a,i=t.id,o=t.className,s=t.options,l=void 0===s?{}:s,u=t.onBlur,m=t.onFocus,f=t.onReady,h=t.onChange,g=t.onEscape,b=t.onClick,x=t.onLoadError,v=t.onLoaderStart,C=t.onNetworksChange,w=t.onConfirm,S=t.onCancel,j=t.onShippingAddressChange,k=t.onShippingRateChange,E=t.onSavedPaymentMethodRemove,N=t.onSavedPaymentMethodUpdate,R=_("mounts <".concat(r,">
2")),M="elements"in R?R.elements:null,A="checkoutState"in R?R.checkoutState:null,L=(null==A?void 0:A.type)==="success"||(null==A?void 0:A.type)==="loading"?A.sdk:null,I=c(n.default.useState(null),2),O=I[0],T=I[1],D=n.default.useRef(null),U=n.default.useRef(null);d(O,"blur",u),d(O,"focus",m),d(O,"escape",g),d(O,"click",b),d(O,"loaderror",x),d(O,"loaderstart",v),d(O,"networkschange",C),d(O,"confirm",w),d(O,"cancel",S),d(O,"shippingaddresschange",j),d(O,"shippingratechange",k),d(O,"savedpaymentmethodremove",E),d(O,"savedpaymentmethodupdate",N),d(O,"change",h),f&&(a="expressCheckout"===e?f:function(){f(O)}),d(O,"ready",a),n.default.useLayoutEffect(function(){if(null===D.current&&null!==U.current&&(M||L)){var t=null;if(L)switch(e){case"paymentForm":t=L.createPaymentFormElement(l);break;case"payment":t=L.createPaymentElement(l);break;case"address":if("mode"in l){var n=l.mode,a=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(l,P);if("shipping"===n)t=L.createShippingAddressElement(a);else if("billing"===n)t=L.createBillingAddressElement(a);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=L.createExpressCheckoutElement(l);break;case"currencySelector":t=L.createCurrencySelectorElement();break;case"taxId":t=L.createTaxIdElement(l);break;default:throw Error("Invalid Element type ".concat(r,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else M&&(t=M.create(e,l));D.current=t,T(t),t&&t.mount(U.current)}},[M,L,l]);var B=p(l);return n.default.useEffect(function(){if(D.current){var e=y(l,B,["paymentRequest"]);e&&"update"in D.current&&D.current.update(e)}},[l,B]),n.default.useLayoutEffect(function(){return function(){if(D.current&&"function"==typeof D.current.destroy)try{D.current.destroy(),D.current=null}catch(e){}}},[]),n.default.createElement("div",{id:i,className:o,ref:U})};return i.propTypes={id:a.default.string,className:a.default.string,onChange:a.default.func,onBlur:a.default.func,onFocus:a.default.func,onReady:a.default.func,onEscape:a.default.func,onClick:a.default.func,onLoadError:a.default.func,onLoaderStart:a.default.func,onNetworksChange:a.default.func,onConfirm:a.default.func,onCancel:a.default.func,onShippingAddressChange:a.default.func,onShippingRateChange:a.default.func,onSavedPaymentMethodRemove:a.default.func,onSavedPaymentMethodUpdate:a.default.func,options:a.default.object},i.displayName=r,i.__elementType=e,i},E="u"<typeof window;n.default.createContext(null).displayName="EmbeddedCheckoutProviderContext",k("auBankAccount",E),k("card",E),k("cardNumber",E),k("cardExpiry",E),k("cardCvc",E),k("iban",E);var N=k("payment",E);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}k("expressCheckout",E),k("paymentRequestButton",E),k("linkAuthentication",E),k("address",E),k("shippingAddress",E),k("paymentMethodMessaging",E),k("taxId",E),e.i(350461);var M="clover",A="https://js.stripe.com",L="".concat(A,"/").concat(M,"/stripe.js"),I=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,O=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,T=function(){for(var e=document.querySelectorAll('script[src^="'.concat(A,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,I.test(r)||O.test(r))return n}return null},D=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(L).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},U=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"8.11.0",startTime:t})},B=null,z=null,F=null,H=function(e,t,r){if(null===e)return null;var n,a=t[0];if("string"!=typeof a)throw Error("Expected publishable key to be of type string, got type ".concat(R(a)," instead."));var i=a.match(/^pk_test/),o=3===(n=e.version)?"v3":n;i&&o!==M&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("8.11.0"," expected Stripe.js@").concat(M,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return U(s,r),s},W=!1,q=function(){return t||(t=(null!==B?B:(B=new Promise(function(e,t){if("u"<typeof window||"u"<typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var r,n=T();n?n&&null!==F&&null!==z&&(n.removeEventListener("load",F),n.removeEventListener("error",z),null==(r=n.parentNode)||r.removeChild(n),n=D(null)):n=D(null),F=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},z=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},n.addEventListener("load",F),n.addEventListener("error",z)}catch(e){t(e);return}})).catch(function(e){return B=null,Promise.reject(e)})).catch(function(e){return t=null,Promise.reject(e)}))};Promise.resolve().then(function(){return q()}).catch(function(e){W||console.warn(e)});var $=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];W=!0;var n=Date.now();return q().then(function(e){return H(e,t,n)})};let Y=null;e.i(351533);var V=e.i(23128);let K={paymentMethodOrder:["card"],wallets:{applePay:"never",googlePay:"never"}};function G(e){var t;let{clientSecret:a,confirmingLabel:i="Confirming payment...",defaultSuccessMessage:o="Finalizing payment...",mode:s="payment",onConfirmed:l,onError:c,successMode:u="show-default",submitLabel:d}=e,p=_("calls useStripe()").stripe,m=(t="calls useElements()",w(n.default.useContext(C),t)).elements,[f,h]=(0,n.use
2State)(null),[y,g]=(0,n.useState)("idle"),b=!!(p&&m),x="submitting"===y,v="succeeded"===y;async function S(e){if(e.preventDefault(),!p||!m||x||v)return;h(null),g("submitting");let t=null;if("setup"===s){let e=await p.confirmSetup({elements:m,confirmParams:{return_url:window.location.href},redirect:"if_required"});if(e.error){let t=e.error.message??"Payment method setup failed. Please try again.";h(t),g("failed"),c&&await c(t);return}t=await Q({clientSecret:a,stripe:p,confirmedSetupIntentId:e.setupIntent?.id??null})}else{let e=await p.confirmPayment({elements:m,confirmParams:{return_url:window.location.href},redirect:"if_required"});if(e.error){let t=e.error.message??"Payment failed. Please try again.";h(t),g("failed"),c&&await c(t);return}t=await J({clientSecret:a,stripe:p,confirmedPaymentIntentId:e.paymentIntent?.id??null})}if(!t){let e="setup"===s?"Payment method setup completed, but the setup intent could not be confirmed.":"Payment completed, but the payment intent could not be confirmed.";h(e),g("failed"),c&&await c(e);return}g("succeeded"),l&&await l(t)}return v?"delegate-to-parent"===u?null:(0,r.jsx)("div",{className:"rounded-md border border-emerald-200 bg-emerald-50 p-4 text-sm text-emerald-900",children:o}):(0,r.jsxs)("form",{className:"space-y-4",onSubmit:S,"data-sentry-component":"PaymentFormBody","data-sentry-source-file":"payment-form.tsx",children:[(0,r.jsx)("div",{className:"min-h-[220px] rounded-md border border-border p-4",children:(0,r.jsx)(N,{options:K,"data-sentry-element":"PaymentElement","data-sentry-source-file":"payment-form.tsx"})}),!b&&(0,r.jsx)("output",{className:"text-sm text-muted-foreground",children:"Secure payment form loading..."}),f&&(0,r.jsx)("div",{"aria-live":"polite",className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:f}),(0,r.jsx)(V.Button,{className:"w-full",disabled:!b||x,type:"submit","data-sentry-element":"Button","data-sentry-source-file":"payment-form.tsx",children:x?i:d})]})}async function J(e){let{clientSecret:t,confirmedPaymentIntentId:r,stripe:n}=e;if(r)return r;let a=await n.retrievePaymentIntent(t);return a.paymentIntent?.id??null}async function Q(e){let{clientSecret:t,confirmedSetupIntentId:r,stripe:n}=e;if(r)return r;let a=await n.retrieveSetupIntent(t);return a.setupIntent?.id??null}e.s(["PaymentForm",0,function(e){let{clientSecret:t,confirmingLabel:a,defaultSuccessMessage:i,mode:o,onConfirmed:s,onError:l,successMode:c,submitLabel:u}=e,d=(0,n.useMemo)(function(){return Y||(Y=$("pk_live_51LxfQ9AW7n1f4M8CcsvBBnpGDttARwjmrxzXKcdV3G6Dxf3AThRI11nw5i3EI0vmQIFZFzrVlCrW0cEs7BoPGGyN008UP9OoBb")),Y},[]);return(0,r.jsx)(S,{options:{appearance:{theme:"stripe",variables:{borderRadius:"8px",colorPrimary:"#0f172a"}},clientSecret:t},stripe:d,"data-sentry-element":"Elements","data-sentry-component":"PaymentForm","data-sentry-source-file":"payment-form.tsx",children:(0,r.jsx)(G,{clientSecret:t,confirmingLabel:a,defaultSuccessMessage:i,mode:o,onConfirmed:s,onError:l,successMode:c,submitLabel:u,"data-sentry-element":"PaymentFormBody","data-sentry-source-file":"payment-form.tsx"})})}],477623)},108770,e=>{"use strict";var t=e.i(191788);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))});e.s(["PlusCircleIcon",0,r],108770)},321231,e=>{"use strict";let t="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.s(["DEBUG_BUILD",0,t])},876026,e=>{"use strict";var t=e.i(391398);e.i(351533);var r=e.i(148230),n=e.i(415706),a=e.i(41158);e.s(["LogoLink",0,function({color:e="white",className:i}){return(0,t.jsx)("div",{className:(0,n.cn)("flex items-center p-10 text-lg font-medium",i),"data-sentry-component":"LogoLink","data-sentry-source-file":"logo-link.tsx",children:(0,t.jsxs)(a.default,{href:"/",className:"flex items-center justify-center","data-sentry-element":"Link","data-sentry-source-file":"logo-link.tsx",children:[(0,t.jsx)("div",{className:"h-6 w-6",children:(0,t.jsx)(r.ShipperCRMIcon,{"data-sentry-element":"ShipperCRMIcon","data-sentry-source-file":"logo-link.tsx"})}),(0,t.jsx)("div",{className:(0,n.cn)("ml-3.5 transform overflow-hidden whitespace-nowrap pt-2","opacity-100"),children:(0,t.jsx)(r.ShipperCRMName,{color:e,"data-sentry-element":"ShipperCRMName","data-sentry-source-file":"logo-link.tsx"})})]})})}])},305982,382126,e=>{"use strict";e.i(73500);var t=e.i(795696),r=e.i(350461);let n="https://preview.shippercrm.com";new URL("/api/preview-auth/callback",n).toString();var a=e.i(414346),i=e.i(486533),o=e.i(191788);e.s(["useHighway",0,function(e,s){let[l,c]=(0,o.useState)(!1),{mutate:u}=a.trpc.viewer.adminProspect.logVerifyWithHighwayAtempt.useMutation(),d=(0,i.useSession)(),p=`Attempting to sign in with Highway - (Source: ${e??"unknown"})`;return{verifyWithHighway:async()=>{let a;if(c(!0),u({activity:p}),t.analytics.trackClient("highway.login_initiated",{source:(a=e.toLowerCase()).includes("login")||a.includes("sign in")?"login_page":a.includes("apply")?"apply_page":a.includes("review")?"in_review":a.includes("setting")?"settings":a.includes("invite")?"invite":"login_page",activitySource:e??"unknown",hasExistingSession:"authenticated"===d.status,sessionEmail:d.data?.user?.email??void 0}),"production"!==(r.default.env.VERCEL_TARGET_ENV??"production"??r.default.env.VERCEL_ENV??"production")){let e=encodeURIComponent(window.location.origin),t=encodeURIComponent(s?.callbackUrl?.toString()??"/");window.location.href=`${n}/api/preview-auth/start?target=${e}&callbackUrl=${t}`;return}
2await (0,i.signIn)("highway",s),c(!1)},isLoading:l}}],305982);let s=o.useLayoutEffect;e.s(["useInterval",0,function(e,t){let r=(0,o.useRef)(e);s(()=>{r.current=e},[e]),(0,o.useEffect)(()=>{if(!t&&0!==t)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}],382126)},476938,549587,e=>{"use strict";e.i(745005);var t=e.i(418380),r=e.i(414346),n=e.i(612606),a=e.i(486533),i=e.i(191788);let o=new Set(["REJECTED","ABANDONED","HOLD_EXPIRED","CANCELLED","REFUNDED"]),s={hasHighwayAccount:!1,highwayEmail:null};function l(e){var t,r,n,a;let i,l,c,u,d,p,m,{sessionStatus:f,zeroStatus:h}=e,y="authenticated"===f,g="loading"===f||y&&"unknown"===h.type&&!e.flowUser||!!(y&&e.authIdentityIsLoading),b="error"===h.type||!!e.authIdentityError,x="error"===h.type?h.error:e.authIdentityError??null,v=(t=e.flowUser,t?.activeWorkspace?.organization??null),C=function(e,t,r){if(!e)return null;let n=t?{...t,workspace:t.activeWorkspace??null,adminProspect:void 0}:null;return{...e,user:e.user??n,organization:e.organization??r}}(e.flowUser?.adminProspect??null,e.flowUser,v),w=function(e,t){if(!e)return null;let r=e.activeWorkspace??null;return{...e,accounts:[],workspace:r,adminProspect:t}}(e.flowUser,C),S=function(e){let{adminProspect:t,flowUser:r,organization:n}=e;if(!t)return{status:"in-progress",stage:"company-details"};if(!1===t.approved)return{status:"denied",stage:null};if(!0===t.approved)return{status:"approved",stage:null};let a=t.user??r,i=t.organization??n,o=a?.publicEmployee??r?.publicEmployee??null,s=o?.phoneNumbers?.length??0;return i?.companyId?t.submittedVerifiedEmailOn&&o?.title&&t.seniority&&0!==s?null===t.validPartnerPromo||void 0===t.validPartnerPromo?{status:"in-progress",stage:"is-partner-referral"}:t.completedFreightAgencyOn?t.salesTeamSizeMin||t.salesTeamSizeMax?{status:"in-review",stage:null}:{status:"in-progress",stage:"sales-size"}:{status:"in-progress",stage:"is-freight-agency"}:{status:"in-progress",stage:"user-details"}:{status:"in-progress",stage:"company-details"}}({adminProspect:C,flowUser:w,organization:v}),j=(r=v?.company)?{...r,domains:r.domains??[],carrier:r.carrier?{...r.carrier,licensingAndInsurances:r.carrier.licensingAndInsurances??[]}:null}:null,_=(d=v?.company?.carrier?.usdotNumber??null,m=Number.isFinite(p=v?.usdotNumber?Number.parseInt(String(v.usdotNumber),10):null)?p:null,{usdotNumber:d||m,mcNumber:v?.mcNumber??C?.mcNumber??null}),P=(a=v,l=function(e){var t;let{bundle:r,serverSummary:n}=e;if(!r)return{bundleId:n?.bundleId??null,phase:n?.phase??"no_bundle",status:n?.status??null,originPlatform:n?.originPlatform??null,eligibility:n?.eligibility??{eligible:!0,reason:null},isScrmPlanActive:n?.isScrmPlanActive??!1,isBundleFullyActive:n?.isBundleFullyActive??!1,clientSecret:n?.clientSecret??null,clientSecretKind:n?.clientSecretKind??null,paymentMode:n?.paymentMode??null,magicLinkUrl:n?.magicLinkUrl??null,proceedToShipperCrmHref:n?.proceedToShipperCrmHref??null,returnToSearchCarriersHref:n?.returnToSearchCarriersHref??null,currentPeriodEnd:n?.currentPeriodEnd??null,canCancel:n?.canCancel??!1,diagnostics:n?.diagnostics??{}};let a=function(e,t){if("ACTIVE"===e.status)return"active";if("NEEDS_SUPPORT"===e.status)return"needs_support";if(o.has(e.status))return"failed";if("CANCEL_AT_PERIOD_END"===e.status)return"cancel_scheduled";if("PENDING_APPROVAL"===e.status)return"application_pending";if("APPROVED"===e.status)return"approved";if("FINALIZING"===e.status)return"shipper_crm"===e.originPlatform?"finalizing_payment":"notifying_partner";if("AWAITING_PARTNER_CAPTURE"===e.status)return"awaiting_partner_capture";if("AWAITING_PAYMENT"===e.status){if(t?.clientSecret&&"payment_form"===t.phase)return"payment_form";if("shipper_crm"===e.originPlatform&&e.magicLinkUrl)return"awaiting_partner_payment"}return t?.phase??"approved"}(r,n),i="active"===a;return{bundleId:r.id,phase:a,status:r.status,originPlatform:r.originPlatform,eligibility:n?.eligibility??{eligible:!0,reason:null},isScrmPlanActive:i||!!n?.isScrmPlanActive,isBundleFullyActive:i,clientSecret:n?.clientSecret??null,clientSecretKind:n?.clientSecretKind??null,paymentMode:n?.paymentMode??null,magicLinkUrl:r.magicLinkUrl??n?.magicLinkUrl??null,proceedToShipperCrmHref:i?"/search":null,returnToSearchCarriersHref:i?("search_carriers"===r.originPlatform?r.originPlatformReturnUrl??null:r.partnerPlatformReturnUrl??null)??n?.returnToSearchCarriersHref??null:null,currentPeriodEnd:(null==(t=r.currentPeriodEnd)?null:new Date(t).toISOString())??n?.currentPeriodEnd??null,canCancel:n?.canCancel??!1,diagnostics:n?.diagnostics??{}}}({bundle:i=a?.bundlePartnerships?.[0],serverSummary:null}),u=(c=i?l:{...l,eligibility:"PRO"===a?.plan?{eligible:!1,reason:"ACTIVE_PRO_NOT_SUPPORTED_FOR_BUNDLE"}:{eligible:!0,reason:null}}).bundleId&&"no_bundle"!==c.phase&&"active"!==c.phase&&"cancel_scheduled"!==c.phase&&"failed"!==c.phase?c.bundleId:null,{summary:c,phase:c.phase,pendingBundleId:u}),k=P.pendingBundleId?`/bundles/search-carriers/${P.pendingBundleId}`:null,E=!k&&(n=v?.plan)&&"FREE"!==n?"/search":null,N=b?"error":g?"pending":w?"success":"idle";return{authIdentity:e.authIdentity??s,me:{data:w,status:N,isLoading:g,isError:b,error:x},applicationStatus:{data:g?null:{status:S.status,stage:S.stage,adminProspect:C},isLoading:g,isError:b,error:x},adminProspect:C,status:S.status,stage:S.stage,shouldShowLanding:!w&&"in-progress"===S.status&&"company-detail
2s"===S.stage,preloadedCompany:j,preloadedCompanyIsLoading:!1,preloadedCompanyError:null,shouldShowSearchInputs:!j,legacyOrgData:_,organization:v,agencyDomains:v?.company?.domains?.map(e=>e.domain).filter(Boolean)??[],bundle:P,redirect:{bundlePath:k,searchPath:E}}}e.s(["APPLY_STEPS",0,["company-details","user-details","is-partner-referral","is-freight-agency","sales-size"],"deriveApplyFlowState",0,l],549587),e.s(["useApplyFlow",0,function(e={}){let{status:o}=(0,a.useSession)(),s="authenticated"===o?n.queries.apply.flow(e.bundleId?{bundleId:e.bundleId}:{}):null,[c,u]=(0,t.useQuery)(s),d=r.trpc.viewer.applyController.authIdentity.useQuery(void 0,{enabled:"authenticated"===o});return(0,i.useMemo)(()=>l({authIdentity:d.data??null,authIdentityError:d.error instanceof Error?d.error:null,authIdentityIsLoading:d.isLoading,sessionStatus:o,flowUser:Array.isArray(c)?c[0]??null:c??null,zeroStatus:function(e){if("object"==typeof e&&null!==e&&"type"in e){if("error"===e.type)return{type:"error",error:e.error instanceof Error?e.error:Error("Unable to load apply flow.")};if("complete"===e.type)return{type:"complete"}}return{type:"unknown"}}(u)}),[d.data,d.error,d.isLoading,c,u,o])}],476938)},105440,13366,e=>{"use strict";e.i(351533);var t=e.i(317483);let r=()=>{let e=Date.now()+3e3,r=["#a786ff","#fd8bbc","#eca184","#f8deb1"],n=()=>{Date.now()>e||((0,t.Confetti)({particleCount:2,angle:60,spread:55,startVelocity:60,origin:{x:0,y:.5},colors:r}),(0,t.Confetti)({particleCount:2,angle:120,spread:55,startVelocity:60,origin:{x:1,y:.5},colors:r}),requestAnimationFrame(n))};n()};e.s(["useShowConfetti",0,function(){return r}],105440),e.s(["PRO_BUNDLE_DISPLAY_NAME",0,"Pro Bundle","PRO_BUNDLE_FEATURES",0,[{title:"Everything in Pro",text:"Get the same Shipper CRM Pro access, paired with a Search Carriers subscription."},{title:"Expanded Journey Freight Academy Lesson Access",text:"Includes Pro-level curated Journey lessons inside ShipperCRM."},{title:"$150 + $150 split checkout",text:"You pay Shipper CRM and Search Carriers separately during the bundle handoff."},{title:"Cross-platform activation",text:"We hold your Shipper CRM payment, then activate once Search Carriers confirms the matching payment."}],"PRO_BUNDLE_PARTNER_MONTHLY_PRICE_DOLLARS",0,150,"PRO_BUNDLE_SCRM_MONTHLY_PRICE_DOLLARS",0,150,"PRO_BUNDLE_TOTAL_MONTHLY_PRICE_DOLLARS",0,300],13366)},336291,e=>{"use strict";var t=e.i(391398),r=e.i(477623),n=e.i(105440),a=e.i(13366),i=e.i(414346);e.i(351533);var o=e.i(23128),s=e.i(435894),l=e.i(865262),c=e.i(486533),u=e.i(203828),d=e.i(191788),p=e.i(679935),m=e.i(476938),f=e.i(770084),h=e.i(369547);let y=(0,h.default)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);var g=e.i(127630);let b=(0,h.default)("WalletCards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]),x=new Set(["payment_hold_succeeded","awaiting_partner_payment","finalizing_payment","setting_up_subscription","notifying_partner","active","cancel_scheduled"]),v=new Set(["finalizing_payment","setting_up_subscription","notifying_partner","active","cancel_scheduled"]),C=new Set(["active","cancel_scheduled"]);function w(e,t,r){return t.has(e)?"complete":r.has(e)?"current":"pending"}function S({phase:e}){let r=w(e,x,new Set(["approved","preparing_payment_form","payment_form","payment_hold_processing"])),n=w(e,v,new Set(["payment_hold_succeeded","awaiting_partner_payment"])),a=w(e,C,new Set(["finalizing_payment","setting_up_subscription","notifying_partner"])),i=[{title:"Authorize Shipper CRM hold",description:"We hold $150 on your card. The hold is not captured yet.",state:r,Icon:y},{title:"Pay Search Carriers",description:"You complete their $150 checkout on the Search Carriers site.",state:n,Icon:g.ExternalLink},{title:"Capture Shipper CRM hold",description:"After Search Carriers confirms payment, Shipper CRM captures the held amount.",state:a,Icon:b}];return(0,t.jsxs)("div",{className:"rounded-lg border border-border p-4","data-sentry-component":"ProBundlePaymentFlow","data-sentry-source-file":"pro-bundle-payment-flow.tsx",children:[(0,t.jsxs)("div",{className:"mb-4 space-y-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-foreground",children:"How bundle payment works"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"This is a two-site checkout. The Shipper CRM amount is held first, then captured only after Search Carriers confirms payment."})]}),(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-3",children:i.map((e,r)=>{var n,a,i,o,s;let l=e.Icon;return(0,t.jsxs)("div",{className:`relative rounded-md border p-3 ${"complete"===(n=e.state)?"border-blue-200 bg-blue-50 text-blue-950":"current"===n?"border-foreground bg-background text-foreground shadow-sm":"border-border bg-muted/30 text-muted-foreground"}`,children:[r>0?(0,t.jsx)("div",{className:"absolute -left-3 top-7 hidden h-px w-3 bg-border md:block"}):null,(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:`flex h-8 w-8 items-center justify-center rounded-full ${"complete"===(a=e.state)?"bg-blue-600 text-white":"current"===a?"bg-foreground text-background":"bg-background text-muted-foreground ring-1 ring-border"}`,children:"complete"===e.state&&"Authorize Shipper CRM hold"!==e.title?(0,t.jsx)(f.Check,{className:"h-4 w-4"}):(0,t.jsx)(l,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"rounded-full bg-background/80 px-2 py-0.5 text-xs font-medium ring-1 ring-border",children:(i=e.state,o="Authorize Shipper CRM hold"===e.title?"Held":"Complete",s="Authorize Shipper CRM hold"===e.title?"Authorize":"Current","complete"===i?o:"current"===i?
2s:"Upcoming")})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-xs leading-5 text-muted-foreground",children:e.description})]})]},e.title)})})]})}let j="Waiting for Search Carriers to finish creating your checkout.",_={no_bundle:{title:"Start your Search Carriers bundle",description:"Authorize your Shipper CRM payment method, then continue with Search Carriers to finish the bundle."},application_pending:{title:"Application under review",description:"Your Shipper CRM application is still being reviewed."},approved:{title:"Ready for payment",description:"Continue to payment to start your Search Carriers bundle."},preparing_payment_form:{title:"Preparing Shipper CRM payment",description:"Creating the secure payment form for your Shipper CRM authorization hold."},payment_form:{title:"Authorize your Shipper CRM hold",description:"Add a payment method to authorize the Shipper CRM hold. This is not captured yet."},payment_processing:{title:"Payment processing",description:"Stripe is still confirming your payment."},payment_hold_processing:{title:"Payment method setup processing",description:"Stripe is confirming your Shipper CRM payment method."},payment_hold_succeeded:{title:"Create your Search Carriers checkout",description:"Your $150 Shipper CRM authorization hold is ready. Create the Search Carriers checkout when you are ready for the second payment."},awaiting_partner_payment:{title:"Waiting on Search Carriers payment",description:"Your $150 Shipper CRM amount is held, not captured. Finish the $150 Search Carriers checkout next; after Search Carriers confirms payment, Shipper CRM will capture the held amount automatically."},finalizing_payment:{title:"Finalizing payment",description:"Search Carriers confirmed payment. Shipper CRM is collecting the first subscription invoice."},setting_up_subscription:{title:"Setting up Shipper CRM",description:"Your payment is captured. Shipper CRM is finishing subscription setup."},notifying_partner:{title:"Notifying Search Carriers",description:"Shipper CRM is sending the final confirmation to Search Carriers."},awaiting_partner_capture:{title:"Waiting on Search Carriers confirmation",description:"Your Shipper CRM plan is active. The full bundle activates after Search Carriers confirms capture."},active:{title:"Your plan is now active!",description:"Your Shipper CRM and Search Carriers bundle is active."},cancel_scheduled:{title:"Cancellation scheduled",description:"Your bundle is scheduled to end at the paid-through date."},still_finalizing:{title:"Still finalizing",description:"The bundle is still settling. This page will keep checking."},needs_support:{title:"Support is reviewing this bundle",description:"The bundle needs manual review before it can be completed."},failed:{title:"Bundle cannot continue",description:"This bundle attempt is no longer active."}},P={no_bundle:0,application_pending:1,approved:2,preparing_payment_form:3,payment_form:3,payment_processing:4,payment_hold_processing:4,payment_hold_succeeded:5,awaiting_partner_payment:6,finalizing_payment:7,setting_up_subscription:8,notifying_partner:9,awaiting_partner_capture:10,active:11,cancel_scheduled:11,needs_support:11,failed:11},k=new Set(["awaiting_partner_capture","active","cancel_scheduled","needs_supp
2ort","failed"]),E=new Set(["preparing_payment_form"]);e.s(["ProBundleCheckout",0,function(e){var f;let{bundleId:h,onBack:y}=e,g=(0,u.useRouter)(),{update:b}=(0,c.useSession)(),x=(0,n.useShowConfetti)(),v=(0,d.useRef)(!1),C=(0,d.useRef)(null),[w,N]=(0,d.useState)(h??null),[R,M]=(0,d.useState)(null),[A,L]=(0,d.useState)(null),[I,O]=(0,d.useState)(null),[T,D]=(0,d.useState)(null),[U,B]=(0,d.useState)(null),[z,F]=(0,d.useState)(null),[H,W]=(0,d.useState)(!1),[q,$]=(0,d.useState)(""),[Y,V]=(0,d.useState)(null),K=i.trpc.viewer.billing.ensureSearchCarriersBundle.useMutation(),G=i.trpc.viewer.billing.createBundleTrialSubscription.useMutation(),J=i.trpc.viewer.billing.createBundleSubscription.useMutation(),Q=i.trpc.viewer.billing.startSearchCarriersBundle.useMutation(),X=i.trpc.viewer.billing.refreshSearchCarriersBundleLink.useMutation(),Z=i.trpc.viewer.billing.cancelSearchCarriersBundleAttempt.useMutation(),ee=i.trpc.viewer.billing.requestSearchCarriersBundleActivationCheck.useMutation(),et=i.trpc.viewer.billing.resumeSearchCarriersBundleCheckout.useMutation(),er=(0,m.useApplyFlow)({surface:"bundle",bundleId:w}),en=er.bundle.summary,ea=er.applicationStatus.isLoading&&!en.bundleId,ei=w??en?.bundleId??null,eo=ei?null:"ACTIVE_PRO_NOT_SUPPORTED_FOR_BUNDLE"===en?.eligibility?.reason?{title:"Pro Bundle is not available for your plan",description:"Organizations already on PRO cannot switch to the Search Carriers Pro Bundle yet."}:null,es=en?.eligibility?.eligible??!0,el=U??en?.originPlatform??null,ec="search_carriers"===el,eu="shipper_crm"===el,ed=A?.action==="show_payment_form"?A:null,ep=A?.action==="show_payment_form"?"payment_form":A?.action==="ready_for_partner_handoff"?"payment_hold_succeeded":A?.action==="needs_support"?"needs_support":A?.action!=="waiting_for_partner_or_activation"||en?.phase!=="approved"||en?.magicLinkUrl?null:"still_finalizing",em=!!(ei&&en?.status==="AWAITING_PAYMENT"&&(en?.originPlatform==="shipper_crm"||en?.originPlatform==="search_carriers")&&!R&&!A&&!ea),ef=em&&!en?.magicLinkUrl,eh=T??ep??(ef?"preparing_payment_form":ea?"loading":en.phase),ey=eo??_[eh??"no_bundle"]??_.no_bundle,eg=R??ed?.clientSecret??en?.clientSecret??null,eb="loading"!==eh&&!ec,ex=ed?.paymentMode??en?.paymentMode??(ec?"payment":"setup"),ev=I??en?.magicLinkUrl??null,eC=(f=en?.currentPeriodEnd)?new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(new Date(f)):null,ew=eu&&("payment_hold_succeeded"===eh||"awaiting_partner_payment"===eh||"finalizing_payment"===eh||"setting_up_subscription"===eh||"notifying_partner"===eh||"active"===eh||"cancel_scheduled"===eh),eS="pending"===K.status||"pending"===G.status||"pending"===J.status,ej="payment_form"===eh&&!!eg,e_=es&&("no_bundle"===eh||"approved"===eh),eP=e_&&!eg&&!eS,ek=(0,d.useCallback)(async(e,t={})=>{try{let r=await J.mutateAsync({bundleId:e,...t.promotionCode?{promotionCode:t.promotionCode}:{}});t.promotionCode&&V(t.promotionCode),r.paymentRequired?(L(null),M(r.clientSecret),D("payment_form")):(L(null),D("notifying_partner"))}catch(t){let e=t instanceof Error?t.message:"Unable to start bundle checkout.";D(null),F(e),p.toast.error("Unable to start bundle checkout",{description:e})}},[J]);(0,d.useEffect)(()=>{h&&N(h)},[h]),(0,d.useEffect)(()=>{en?.bundleId&&!w&&N(en.bundleId)},[w,en?.bundleId]),(0,d.useEffect)(()=>{en?.clientSecret&&M(null)},[en?.clientSecret]),(0,d.useEffect)(()=>{(!ei||en?.bundleId&&en.bundleId!==ei||en?.status!=="AWAITING_PAYMENT")&&(L(null),C.current=null)},[ei,en?.bundleId,en?.status]),(0,d.useEffect)(()=>{en?.magicLinkUrl&&O(null)},[en?.magicLinkUrl]),(0,d.useEffect)(()=>{en?.originPlatform&&B(null)},[en?.originPlatform]),(0,d.useEffect)(()=>{(function(e,t){if(!e||!t||"no_bundle"===t||t===e)return!1;if(E.has(e))return k.has(t);if("payment_form"===e&&"awaiting_partner_payment"===t)return!1;if(k.has(t))return!0;let r=P[e],n=P[t];return void 0===r||void 0===n||!(n<r)})(T,en?.phase)&&D(null)},[T,en?.phase]),(0,d.useEffect)(()=>{if(!em||!ei)return;let e=`${ei}:${en?.status??"unknown"}:${en?.originPlatform??"unknown"}:${en?.magicLinkUrl??""}`;C.current!==e&&(C.current=e,et.mutateAsync({bundleId:ei}).then(e=>
2{L(e),"needs_support"===e.action?F(e.message):F(null)}).catch(e=>{C.current=null;let t=e instanceof Error?e.message:"Unable to resume bundle checkout.";F(t),p.toast.error("Unable to resume bundle checkout",{description:t})}))},[ei,et,em,en?.magicLinkUrl,en?.originPlatform,en?.status]),(0,d.useEffect)(()=>{"active"!==eh||v.current||(v.current=!0,x())},[eh,x]),(0,d.useEffect)(()=>{if(eP&&!H)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);function e(e){"]"!==e.key||function(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName.toLowerCase();return e.isContentEditable||"input"===t||"textarea"===t||"select"===t}(e.target)||W(!0)}},[eP,H]);let eE="pending"===Q.status||"pending"===X.status,eN=ec?"Pay Shipper CRM":"Authorize Shipper CRM hold",eR=ec?"Confirming Shipper CRM payment...":"Authorizing Shipper CRM hold...",eM=eu&&("payment_hold_succeeded"===eh||"awaiting_partner_payment"===eh),eA=!!ev,eL=eM&&!eA,eI=eM&&eA,eO=eM&&!!ei,eT="active"===eh,eD=!!ei&&("notifying_partner"===eh||"awaiting_partner_capture"===eh||"still_finalizing"===eh||"needs_support"===eh),eU=(0,d.useMemo)(()=>en?.returnToSearchCarriersHref??null,[en?.returnToSearchCarriersHref]),eB=z??(er.applicationStatus.isError?er.applicationStatus.error?.message:null);async function ez(){F(null),L(null),V(null),C.current=null,D("preparing_payment_form");let e=q.trim()||void 0;try{let t=await K.mutateAsync();if(N(t.bundleId),B(t.originPlatform),t.clientSecret){M(t.clientSecret),D("payment_form");return}if("search_carriers"===t.originPlatform)return void await ek(t.bundleId,{promotionCode:e});let r=await G.mutateAsync({bundleType:"search_carriers",bundleId:t.bundleId,...e?{promotionCode:e}:{}});e&&V(e),M(r.clientSecret),D("payment_form")}catch(t){let e=t instanceof Error?t.message:"Unable to start bundle checkout.";D(null),F(e),p.toast.error("Unable to start bundle checkout",{description:e})}}async function eF(){if(!ei)return void F("Bundle checkout is missing a bundle identifier.");if(F(null),ec){L(null),D("notifying_partner");return}try{D("awaiting_partner_payment");let e=await Q.mutateAsync({bundleId:ei});if(!e.magicLinkUrl)throw Error("Search Carriers did not return a magic link URL.");if(L(null),O(e.magicLinkUrl),!h)return void await g.replace(`/bundles/search-carriers/${ei}`)}catch(t){let e=t instanceof Error?t.message:"Unable to continue to Search Carriers.";F(e),D("payment_form"),p.toast.error("Unable to continue to Search Carriers",{description:e})}}async function eH(){if(!ei)return void F("Bundle checkout is missing a bundle identifier.");F(null);try{let e=await X.mutateAsync({bundleId:ei});O(e.magicLinkUrl)}catch(t){let e=t instanceof Error?t.message:"Unable to refresh the Search Carriers link.";F(e),p.toast.error("Unable to refresh the Search Carriers link",{description:e})}}async function eW(){if(!ei)return void F("Bundle checkout is missing a bundle identifier.");F(null);try{await Z.mutateAsync({bundleId:ei}),N(null),M(null),L(null),C.current=null,O(null),D(null),B(null),V(null),$(""),W(!1),y?.()}catch(t){let e=t instanceof Error?t.message:"Unable to cancel the bundle attempt.";F(e),p.toast.error("Unable to cancel bundle attempt",{description:e})}}async function eq(){if(!ei)return void F("Bundle checkout is missing a bundle identifier.");F(null);try{await ee.mutateAsync({bundleId:ei})}catch(t){let e=t instanceof Error?t.message:"Unable to check bundle status.";F(e),p.toast.error("Unable to check bundle status",{description:e})}}async function e$(){try{await b()}catch(e){console.error("Unable to refresh account state before entering Shipper CRM.",e)}await g.push(en?.proceedToShipperCrmHref??"/search")}return(0,t.jsxs)("div",{className:"mx-auto flex max-w-[720px] flex-col gap-6 px-4 py-8 pb-4 sm:py-16 sm:pb-4 md:p-20 md:pb-4","data-sentry-component":"ProBundleCheckout","data-sentry-source-file":"pro-bundle-checkout.tsx",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h2",{className:"text-2xl font-semibold text-foreground",children:["Search Carriers ",a.PRO_BUNDLE_DISPLAY_NAME]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:ec?"Complete your Shipper CRM payment. The full bundle activates after Search Carriers confirms capture.":"Authorize your Shipper CRM payment method now, then continue with Search Carriers to finish the bundle."}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"A valid USDOT number is required to continue with the bundle."})]}),(0,t.jsx)("div",{className:"rounded-lg border border-border p-4",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{children:"Plan"}),(0,t.jsx)("span",{className:"font-medium",children:a.PRO_BUNDLE_DISPLAY_NAME})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:ew?"Shipper CRM hold authorized":"Shipper CRM authorization hold"}),ew?(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Held now; captured after Search Carriers confirms payment"}):null]}),(0,t.jsxs)("span",{className:"font-medium",children:["$",a.PRO_BUNDLE_SCRM_MONTHLY_PRICE_DOLLARS.toFixed(2)]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{children:"Search Carriers checkout charge"}),(0,t.jsxs)("span",{className:"font-medium",children:["$",a.PRO_BUNDLE_PARTNER_MONTHLY_PRICE_DOLLARS.toFixed(2)]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 font-semibold",children:[(0,t.jsx)("span",{children:"Combined bundle value"}),(0,t.jsxs)("span",{children:["$",a.PRO_BUNDLE_TOTAL_MONTHLY_PRICE_DOLLARS.toFixed(2)]})]})]})}),eb?(0,t.jsx)(S,{phase:eh}):null,"loading"===eh?(0,t.jsx)("div",{className:"rounded-md border border-border bg-muted/30 p-4 text-sm text-muted-foreground",children:"Loading your bundle checkout state..."}):null,eB?(0,t.jsx)("div",{className:"rounded-md border border-destructive/20 bg-destructive/10 p-4 text-sm text-destructive",children:eB}
2):null,"loading"!==eh?(0,t.jsxs)("div",{className:"space-y-2 rounded-md border border-border bg-muted/30 p-4 text-sm text-muted-foreground",children:[(0,t.jsx)("div",{className:"font-semibold text-foreground",children:ey.title}),(0,t.jsx)("p",{children:ey.description}),"cancel_scheduled"===eh&&eC?(0,t.jsxs)("p",{children:["Your bundle remains available through ",eC,"."]}):null]}):null,e_?(0,t.jsxs)("div",{className:"space-y-3",children:[H?(0,t.jsxs)("div",{className:"space-y-2 rounded-md border border-border bg-background p-3",children:[(0,t.jsx)("label",{className:"text-xs font-medium text-muted-foreground",htmlFor:"search-carriers-bundle-promotion-code",children:"Promotion code"}),(0,t.jsx)(s.Input,{autoComplete:"off",id:"search-carriers-bundle-promotion-code",onChange:e=>$(e.target.value),placeholder:"Enter code",value:q})]}):null,(0,t.jsx)(o.Button,{onClick:ez,loading:eS,type:"button",variant:"action",children:"Continue to payment"})]}):null,Y&&ej?(0,t.jsx)("div",{className:"rounded-md border border-emerald-200 bg-emerald-50 p-3 text-sm text-emerald-900",children:"Promotion code applied."}):null,ej?(0,t.jsx)(r.PaymentForm,{clientSecret:eg,confirmingLabel:eR,mode:ex,onConfirmed:eF,submitLabel:eN,successMode:"delegate-to-parent"}):null,eM?(0,t.jsxs)("div",{className:"space-y-4 rounded-lg border border-border p-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold",children:"Next step: complete your Search Carriers payment"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Use the Search Carriers link to complete the second payment. Keep this page for status updates."})]}),eL?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",role:"status",children:j}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,t.jsx)(l.TooltipButton,{disabled:!eA,loading:"pending"===Q.status&&eA,onClick:function(){ev?window.open(ev,"_blank","noopener,noreferrer"):F("Search Carriers link is not available yet.")},onDisabledTooltipContent:j,type:"button",variant:"action",children:"Visit Search Carriers"}),eI?(0,t.jsx)(o.Button,{loading:"pending"===X.status,onClick:eH,type:"button",variant:"outline",children:"Refresh Search Carriers link"}):null]}),eO?(0,t.jsx)("div",{className:"border-border pt-1 sm:border-t sm:pt-3",children:(0,t.jsx)(o.Button,{loading:"pending"===Z.status,onClick:eW,type:"button",variant:"destructive",children:"Cancel bundle attempt"})}):null]})]}):null,eu&&"payment_hold_succeeded"===eh&&!ev?(0,t.jsx)(o.Button,{loading:"pending"===Q.status,onClick:eF,type:"button",variant:"action",children:"Create Search Carriers checkout"}):null,eE&&"payment_form"!==eh?(0,t.jsx)("div",{className:"rounded-md border border-border bg-muted/30 p-4 text-sm text-muted-foreground",children:"Preparing your Search Carriers link..."}):null,eD?(0,t.jsx)(o.Button,{loading:"pending"===ee.status,onClick:eq,type:"button",variant:"outline",children:"Check status"}):null,eT?(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,t.jsx)(o.Button,{onClick:e$,type:"button",variant:"action",children:"Proceed to Shipper CRM"}),eU?(0,t.jsx)(o.Button,{onClick:()=>window.open(eU,"_blank","noopener,noreferrer"),type:"button",variant:"outline",children:"Return to SearchCarriers"}):null]}):null,"active"!==eh&&"awaiting_partner_capture"!==eh&&"notifying_partner"!==eh?(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsx)(o.Button,{onClick:function(){(M(null),L(null),C.current=null,D(null),F(null),V(null),$(""),W(!1),y)?y():g.push("/apply")},type:"button",variant:"outline",children:"Back"})}):null]})}],336291)},2882,e=>{"use strict";var t=e.i(191788);e.s(["useEffectOnce",0,function(e){(0,t.useEffect)(e,[])}])},228342,e=>{"use strict";var t=e.i(840733);let r=["facebook.com","yahoo.com","qq.com","live.com","outlook.com","msn.com","example.com","go.com","aol.com","free.fr","aliyun.com","163.com","yandex.ru","indiatimes.com","alibaba.com","geocities.com","about.com","naver.com","netscape.com","yahoo.co.jp","earthlink.net","zoho.com","sky.com","mail.ru","angelfire.com","uol.com.br","spb.ru","yandex.com","globo.com","gmail.com","medscape.com","space.com","discovery.com","t-online.de","mac.com","icloud.com","homestead.c
2om","lycos.com","web.id","nus.edu.sg","altavista.com","berlin.de","rambler.ru","pp.ua","comcast.net","sapo.pt","msk.ru","ancestry.com","daum.net","proton.me","law.com","bt.com","techspot.com","icq.com","sina.cn","libero.it","test.com","yourdomain.com","docomo.ne.jp","wp.pl","hotmail.com","orange.fr","onet.pl","me.com","india.com","kansascity.com","wanadoo.fr","fortunecity.com","web.de","terra.com.br","att.net","canada.com","skynet.be","ya.ru","excite.com","detik.com","compuserve.com","ig.com.br","zp.ua","gmx.net","xoom.com","mindspring.com","freeserve.co.uk","interia.pl","excite.co.jp","test.de","shaw.ca","virgilio.it","chez.com","rr.com","freenet.de","ntlworld.com","seznam.cz","arcor.de","tiscali.it","sympatico.ca","sina.com","gazeta.pl","care2.com","yam.com","r7.com","telenet.be","rcn.com","geek.com","sfr.fr","hotbot.com","cox.net","blueyonder.co.uk","tom.com","virginmedia.com","btinternet.com","iinet.net.au","rogers.com","ireland.com","pochta.ru","ozemail.com.au","catholic.org","bluewin.ch","chat.ru","virgin.net","verizon.net","erols.com","lycos.de","lycos.co.uk","protonmail.com","doityourself.com","home.nl","nate.com","casino.com","o2.co.uk","terra.es","mail.com","albawaba.com","126.com","www.com","planet.nl","sanook.com","21cn.com","online.de","name.com","i.ua","centrum.cz","rin.ru","aol.co.uk","voila.fr","walla.co.il","poste.it","netcom.com","parrot.com","charter.net","mydomain.com","hidemyass.com","mail-tester.com","myway.com","chello.nl","club-internet.fr","sdf.org","tiscali.co.uk","freeuk.com","unican.es","sci.fi","anonymize.com","sify.com","metacrawler.com","go.ro","ivillage.com","telus.net","dailypioneer.com","iespana.es","lycos.es","hey.com","sweb.cz","optusnet.com.au","alice.it","tpg.com.au","hamptonroads.com","saudia.com","lycos.nl","blackplanet.com","frontier.com","looksmart.com","pobox.com","prodigy.net","i.am","freeyellow.com","10minutemail.com","gmx.com","bigpond.com","crosswinds.net","dejanews.com","wanadoo.es","foxmail.com","temp-mail.org","eircom.net","islamonline.net","webindia123.com","oath.com","frontiernet.net","hetnet.nl","onmilwaukee.com","ukr.net","bugmenot.com","neuf.fr","kiwibox.com","za.com","iol.it","zonnet.nl","newmail.ru","pacbell.net","cogeco.ca","depechemode.com","concentric.net","mailinator.com","aim.com","f5.si","yahoo.jp","terra.com","hot.ee","netzero.net","netins.net","sprynet.com","mailbox.org","mail2web.com","o2.pl","idirect.com","bigfoot.com","netspace.net.au","masrawy.com","supereva.it","yahoo.de","lycos.it","yeah.net","guerrillamail.com","montevideo.com.uy","gmx.de","yahoo.co.uk","yahoofs.com","scubadiving.com","hushmail.com","iprimus.com.au","gportal.hu","swissinfo.org","inbox.com","bolt.com","telstra.com","bellsouth.net","spray.se","c3.hu","attbi.com","talktalk.co.uk","dynu.net","juno.com","yahoo.fr","msn.co.uk","fr.nf","pe.hu","bigpond.net.au","incredimail.com","adelphia.net","elvis.com","interfree.it","starmedia.com","seanet.com","yahoo.com.tw","zip.net","tds.net","she.com","forthnet.gr","land.ru","wow.com","dnsmadeeasy.com","webjump.com","singnet.com.sg","spacewar.com","tin.it","4mg.com","sp.nl","wowway.com","dmv.com","bangkok.com","fastmail.fm","sbcglobal.net","bright.net","usa.com","37.com","aeiou.pt","terra.cl","thirdage.com","btconnect.com","optimum.net","cableone.net","talkcity.com","blogos.com","c2i.net","yopmail.com","iwon.com","aver.com","barcelona.com","ddnsfree.com","oi.com.br","lex.bg","roadrunner.com","airmail.net","lawyer.com","yahoo.com.cn","cu.cc","ananzi.co.za","au.ru","pipeline.com","cs.com","3ammagazine.com","gmx.at","qwest.net","btopenworld.com","easypost.com","westnet.com.au","nyc.com","korea.com","front.ru","inbox.lv","yahoo.com.br","ny.com","hispavista.com","abv.bg","mchsi.com","apollo.lv","everyone.net","terra.com.ar","singpost.com","doctor.com","garbage.com","bizhosting.com","go2net.com","clerk.com","games.com","charm.net","onlinehome.de","laposte.net"];e.s(["isBusinessEmail",0,function(e){if(!e||!t.z.string().email().safeParse(e).success)return!1;let n=e.toLowerCase().split("@")[1];return!r.includes(n)}],228342)},686900,e=>{"use strict";var t=e.i(391398);e.i(351533);var r=e.i(23128),n=e.i(962241);e.s(["BackToPlanOptions",0,function({goBack:e}){return(0,t.jsxs)(r.Button,{variant:"ghost",onClick:e,className:"flex w-fit flex-row items-center justify-start gap-2 px-2","data-sentry-element":"Button","data-sentry-component":"BackToPlanOptions","data-sentry-source-file":"back-to-plan-options.tsx",children:[(0,t.jsx)(n.ChevronLeftIcon,{size:20,strokeWidth:3,"data-sentry-element":"ChevronLeftIcon","data-sentry-source-file":"back-to-plan-options.tsx"}),(0,t.jsx)("div",{className:"text-sm font-semibold",children:"Back to Plan Options"})]})}])},440664,e=>{"use strict";var t=e.i(391398),r=e.i(415706),n=e.i(589348);e.s(["FeatureItem",0,function(e){let{title:a,text:i,highlighted:o,dontEmphasize:s}=e;return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-row items-start gap-2",s&&"opacity-80"),"data-sentry-component":"FeatureItem","data-sentry-source-file":"feature-item.tsx",children:[(0,t.jsx)("div",{className:(0,r.cn)("w-4 pt-1",o?"text-[#6F74EC]":"text-black/50"),children:(0,t.jsx)(n.CheckIcon,{strokeWidth:3,size:16,"data-sentry-element":"CheckIcon","data-sentry-source-file":"feature-item.tsx"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:(0,r.cn)("text-sm font-semibold",s&&"text-black/50"),children:a}),(0,t.jsx)("div",{className:(0,r.cn)("text-xs text-black/40"),children:i})]})]})}])},632064,e=>{"use strict";var t=e.i(391398),r=e.i(440664),n=e.i(46708);e.i(780145);var a=e.i(414346),i=e.i(415706);e.i(36188);var o=e.i(334751),s=e.i(486533);function l(e){let{onSelect:r}=e,l=(0,n.default)(),c=a.trpc.useUtils(),{update:u}
2=(0,s.useSession)(),d="success"===l.status&&l.data?.workspace?.organization.plan!==o.SubscriptionPlan.FREE,p=a.trpc.viewer.user.getStartedWithFreePlan.useMutation({onSuccess:async()=>{await u(),await c.viewer.me.invalidate(),r?.()}});if(!(d||p.isSuccess))if(r)return(0,t.jsx)("button",{onClick:r,className:"rounded-lg border border-[#DDDDDD] p-3 text-xs font-semibold",children:"Current Plan"});else return(0,t.jsx)("div",{className:"flex flex-col items-center rounded-lg border border-[#DDDDDD] p-3 text-xs font-semibold",children:"Current Plan"});return(0,t.jsx)("button",{disabled:p.isPending||p.isSuccess,onClick:()=>p.mutate(),className:(0,i.cn)("rounded-lg border border-[#DDDDDD] p-3 text-xs font-semibold hover:bg-slate-50",(p.isPending||p.isSuccess)&&"cursor-not-allowed opacity-50"),"data-sentry-component":"FreePlanButton","data-sentry-source-file":"free-plan-button.tsx",children:"Get Started"})}let c=[{title:"5 Shippers (Company + Locations)*",text:"Click on / search every shipper on the MagicMap"},{title:"Unlimited Logistics LinkedIn Profiles",text:"Curated & ranked list of logistics employees"},{title:"0 Contact Enrichments",text:"Extra credits not available",dontEmphasize:!0}];e.s(["FreePlanCard",0,function(e){let{onSelect:n}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl px-6 py-4 shadow-[0px_4px_22px_0px_rgba(0,0,0,0.1)]","data-sentry-component":"FreePlanCard","data-sentry-source-file":"free-plan-card.tsx",children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-black/50",children:"Try Now"}),(0,t.jsx)("div",{className:"text-2xl font-semibold",children:"Free"}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:c.map(({title:e,text:n,dontEmphasize:a})=>(0,t.jsx)(r.FeatureItem,{title:e,text:n,dontEmphasize:a},e))}),(0,t.jsx)("p",{className:"text-xs text-black/50",children:"*Total allocation. Does not renew each month."}),(0,t.jsx)(l,{onSelect:n,"data-sentry-element":"FreePlanButton","data-sentry-source-file":"free-plan-card.tsx"})]})}],632064)},269003,643949,e=>{"use strict";var t=e.i(391398),r=e.i(46708),n=e.i(464435),a=e.i(191788);function i(e){let{fullName:r,email:i,onOpen:o,onClose:s}=e,l="team/shippercrm/krystian",c=async()=>{let e=await (0,n.getCalApi)();e("ui",{styles:{branding:{brandColor:"#000000"}},hideEventTypeDetails:!1,layout:"month_view"}),e("on",{action:"linkReady",callback:()=>{[...window.document.getElementsByTagName("cal-modal-box")].forEach(e=>{e.shadowRoot.lastChild.addEventListener("click",s),e.style.pointerEvents="all"})}})};return(0,a.useEffect)(()=>{c().then()},[]),(0,t.jsx)("span",{"data-cal-namespace":"","data-cal-link":l,"data-cal-config":JSON.stringify({layout:"month_view",embedURL:`/preview.html?embedType=floating-popup&calLink=${l}&embedLibUrl=https://app.cal.com/embed/embed.js`,name:r,email:i,guests:["[email protected]","[email protected]"]}),className:"pointer-events pointer-events-auto cursor-pointer text-brand",onClick:o,"data-sentry-component":"BookDemoDialog","data-sentry-source-file":"book-demo-dialog.tsx",children:"Schedule a Demo"})}e.s(["BookDemoDialog",0,i],643949);var o=e.i(36870);e.s(["HaveMoreQuestions",0,function(e){let{onOpeningBookDemoDialog:n,onClosingBookDemoDialog:a}=e,s=(0,r.default)().data;return s?(0,t.jsxs)("div",{className:"text-xs font-semibold","data-sentry-component":"HaveMoreQuestions","data-sentry-source-file":"have-more-questions.tsx",children:[(0,t.jsx)("span",{className:"text-black/50",children:"Have more questions? "}),s.adminProspect?.seniority!=="SALES_REP"?(0,t.jsx)(i,{fullName:(0,o.getFullName)(s.publicEmployee.person,!0),email:s.emailAddress.email,onOpen:n,onClose:a}):(0,t.jsxs)("p",{children:["Email us at ",(0,t.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}):null}],269003)},769020,705548,598045,645124,810458,684639,736757,e=>{"use strict";var t=e.i(391398),r=e.i(415706),n=e.i(283989);e.s(["MinusIcon",()=>n.default],705548);var n=n,a=e.i(517861);function i(e){let{seats:i,handleSeatsChange:o,min:s}=e,l=i<=1||i<=s;return(0,t.jsxs)("div",{className:"flex flex-row items-center gap-4 roun
2ded-md border border-[#DDDDDD] p-1","data-sentry-component":"SeatSelection","data-sentry-source-file":"seat-selection.tsx",children:[(0,t.jsx)("button",{onClick:()=>o(i-1),className:(0,r.cn)("flex flex-row rounded-md border border-[#DDDDDD] p-2 ",l?"cursor-not-allowed":"cursor-pointer hover:bg-gray-100"),disabled:l,children:(0,t.jsx)(n.default,{size:16,"data-sentry-element":"MinusIcon","data-sentry-source-file":"seat-selection.tsx"})}),(0,t.jsx)("div",{children:i}),(0,t.jsx)("button",{onClick:()=>o(i+1),className:"flex cursor-pointer flex-row rounded-md border border-[#DDDDDD] p-2 hover:bg-gray-100",children:(0,t.jsx)(a.PlusIcon,{size:16,"data-sentry-element":"PlusIcon","data-sentry-source-file":"seat-selection.tsx"})})]})}e.s(["SeatSelection",0,i],598045);var o=e.i(477623);function s(e,t,r){return e*t*r}e.s(["computeTotalDueFromPerSeatTierPrice",0,function(e,t){return e*t},"computeTotalFromBaseMonthly",0,s,"formatBillingCycleLabel",0,function(e){return null==e?"-":`${e} month${1===e?"":"s"}`},"formatSubscriptionPlanDisplayLabel",0,function(e){return 0===e.length?e:`${e.slice(0,1)}${e.slice(1).toLowerCase()}`}],645124);var l=e.i(46708);e.i(73500);var c=e.i(795696),u=e.i(178615),d=e.i(414346);e.i(351533);var p=e.i(23128);e.i(36188);var m=e.i(334751),f=e.i(679935);e.i(928308);var h=e.i(101847),y=e.i(191788);e.s(["CheckoutSummary",0,function({baseMonthlyPrice:e,inlineSubscriptionFlow:r,onPaidPlanAlreadyExists:n,paymentPhaseLayout:a=!1,planName:g,planLengthSelection:b}){let{currentPricingParams:x,seats:v,handleSeatsChange:C}=b,w=(0,l.default)().data,S=d.trpc.viewer.billing.createSubscription.useMutation(),{months:j}=x??{},_=r??null,P=!!_?.clientSecret,k=_?.paymentMode??"payment",E=j&&x?{months:j,name:g,seats:v}:null,N=E??{months:1,name:g,seats:Math.max(v,1)},R=d.trpc.viewer.billing.previewSubscriptionCheckout.useQuery(N,{enabled:!!(E&&!P&&!_?.isSettling),staleTime:3e4}),M=d.trpc.viewer.organization.getMembers.useQuery();if((0,y.useEffect)(()=>{"success"===M.status&&M.data.seatsUsed>v&&C(M.data.seatsUsed)},[M.status,M.data?.seatsUsed,C,v]),!w)return null;async function A(){if(j&&x){g!==m.SubscriptionPlan.FREE&&c.analytics.trackClient("onboarding.checkout_started",{plan:g,seats:v,billingCycle:1===j?"monthly":"annual",priceId:x.stripeLookupKey});try{if(!r)throw Error("Inline subscription flow is not configured for CheckoutSummary");let e=await S.mutateAsync({months:j,name:g,seats:v});await r.onSubscriptionCreated(e)}catch(e){if(e instanceof h.TRPCClientError&&e.data?.publicCause==="PAID_PLAN_ALREADY_EXISTS"&&n)return void await n();f.toast.error("Purchasing failed")}}}let L="pending"===S.status,I=null!=j?s(e,j,v):null,O=R.data,T=!!E&&R.isLoading&&!O,D=T?null:O?O.amountDueCents/100:I,U=O?O.discountAmountCents/100:0,B=R.error?.message??null,z=!a||!!O||T||!!B,F=O?.couponDisplayLabel??O?.coupon?.name??O?.coupon?.id;return(0,t.jsxs)("div",{className:"flex h-full flex-col justify-start gap-3","data-sentry-component":"CheckoutSummary","data-sentry-source-file":"checkout-summary.tsx",children:[z?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[a?null:(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,t.jsx)("div",{className:"text-sm font-semibold",children:"Seats"}),(0,t.jsx)(i,{seats:v,handleSeatsChange:C,min:"success"===M.status?M.data.seatsUsed:1})]}),(0,t.jsx)("div",{className:"flex flex-col justify-between gap-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[a?null:(0,t.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,t.jsx)("div",{children:"Subtotal"}),(0,t.jsx)("div",{children:j?`${j} x ${(0,u.formatMoney)(e)}`:"Select A Billing Cycle Above"})]}),U>0?(0,t.jsxs)("div",{className:"flex flex-row justify-between text-green-700",children:[(0,t.jsxs)("div",{children:["Discount",F?` (${F})`:""]}),(0,t.jsxs)("div",{children:["-",(0,u.formatMoney)(U)]})]}):null,(0,t.jsxs)("div",{className:"flex flex-row justify-between font-semibold",children:[(0,t.jsx)("div",{children:"Total due today"}),(0,t.jsx)("div",{children:null!=D?(0,u.formatMoney)(D):"Calculating..."})]}),B?(0,t.jsxs)("div",{className:"rounded-md border border-destructive/20 bg-destructive/10 p-3 text-sm text-destructive",children:["Unable to preview checkout: ",B]}):null]})})]}):null,P?(0,t.jsx)("div",{className:a?void 0:"rounded-lg border border-border p-4",children:(0,t.jsx)(o.PaymentForm,{clientSecret:_?.clientSecret??"",confirmingLabel:"setup"===k?"Saving card...":void 0,mode:k,onConfirmed:_?.onPaymentConfirmed,submitLabel:"setup"===k?"Save card and subscribe":"Subscribe"})}):null,P||r?.isSettling?null:(0,t.jsx)(p.Button,{loading:L,disabled:!j||T||!!B,onClick:A,variant:"action",size:"sm",children:"Checkout"}),r?.isSettling?(0,t.jsx)("div",{className:"rounded-md border border-border bg-muted/30 p-4 text-sm text-muted-foreground",children:"Finalizing payment. We're activating your plan now."}):null,r?.settlementErrorMessage?(0,t.jsxs)("div",{className:"space-y-3 rounded-md border border-destructive/20 bg-destructive/10 p-4 text-sm text-destructive",children:[(0,t.jsx)("p",{children:r.settlementErrorMessage}),r.onRetryActivation?(0,t.jsx)(p.Button,{onClick:r.onRetryActivation,size:"sm",variant:"outline",children:"Check activation again"}):null]}):null]})}],769020);var g=e.i(44112),b=e.i(877545);function x(e){let{seats:n,pricingParams:a,isSelected:i,onSelect:o,showUpgradeButton:s,isDisabled:l}=e,{months:c,enrichmentCredits:u}
2=a,d=u?u.included+u.gifted:0;return(0,t.jsxs)("button",{onClick:()=>o(a),disabled:l,className:(0,r.cn)("flex w-full flex-row gap-1.5 whitespace-nowrap rounded-xl border p-4 transition-colors sm:p-6",i?"border-brand bg-brand/[0.04] ring-1 ring-brand/30":"border-[#DDDDDD] hover:border-brand/40 hover:bg-muted/30",l?"cursor-not-allowed opacity-50":"cursor-pointer"),"data-sentry-component":"PlanLengthButton","data-sentry-source-file":"plan-length-button.tsx",children:[(0,t.jsxs)("div",{className:"flex w-32 flex-col items-start",children:[(0,t.jsxs)("div",{className:"font-semibold",children:[c," ",1===c?"month":"months"]}),(0,t.jsxs)("div",{className:"text-xs text-black/50",children:[n," ",1===n?"seat":"seats"]})]}),(0,t.jsxs)("div",{className:"flex w-48 flex-col items-start whitespace-pre-wrap lg:whitespace-nowrap",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"text-left",children:[d*n," Enrichment Credits"]}),(0,t.jsx)(b.TooltipProvider,{"data-sentry-element":"TooltipProvider","data-sentry-source-file":"plan-length-button.tsx",children:(0,t.jsxs)(b.Tooltip,{"data-sentry-element":"Tooltip","data-sentry-source-file":"plan-length-button.tsx",children:[(0,t.jsx)(b.TooltipTrigger,{className:"hidden lg:flex","data-sentry-element":"TooltipTrigger","data-sentry-source-file":"plan-length-button.tsx",children:(0,t.jsx)(g.InformationCircleIcon,{width:20,height:20,"data-sentry-element":"InformationCircleIcon","data-sentry-source-file":"plan-length-button.tsx"})}),(0,t.jsxs)(b.TooltipContent,{side:"left",className:"flex gap-2 px-4 py-3","data-sentry-element":"TooltipContent","data-sentry-source-file":"plan-length-button.tsx",children:[(0,t.jsx)(g.InformationCircleIcon,{width:16,height:16,"data-sentry-element":"InformationCircleIcon","data-sentry-source-file":"plan-length-button.tsx"}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,t.jsx)("p",{className:"text-sm font-semibold",children:"Enrichment Credits"}),(0,t.jsx)("p",{className:"max-w-[45ch] whitespace-normal text-xs",children:"Enrichment credits can be used to access or request all available validated phone numbers/emails."}),s&&(0,t.jsx)("p",{className:"text-xs text-[#6F74EC]",children:"Upgrade to Pro to replenish enrichment credits"})]})]})]})})]}),(0,t.jsxs)("div",{className:"text-xs text-black/50",children:["(",Math.round(d*n/c)," / month)"]})]})]})}var v=e.i(598614);e.s(["PlanLengthCard",0,function(e){let{seats:r,pricingParams:n,selectedPricingParams:a,showUpgradeButton:i,onSelect:o}=e,s=(0,l.default)().data;if(!s)return null;let c=n===a,u=s.activeWorkspace?.organization.partnerPromos.some(e=>"ASCENDTMS"===e.promo.partner&&e.validUntil&&e.validUntil>new Date),d=!!(0,v.isUserCompanyCarrier)(s),p=1===n.months,m=12===n.months,f=()=>(0,t.jsx)(b.TooltipProvider,{delayDuration:0,"data-sentry-element":"TooltipProvider","data-sentry-component":"disableButton","data-sentry-source-file":"plan-length-card.tsx",children:(0,t.jsxs)(b.Tooltip,{"data-sentry-element":"Tooltip","data-sentry-source-file":"plan-length-card.tsx",children:[(0,t.jsx)(b.TooltipTrigger,{asChild:!0,"data-sentry-element":"TooltipTrigger","data-sentry-source-file":"plan-length-card.tsx",children:(0,t.jsx)("div",{children:(0,t.jsx)(x,{pricingParams:n,seats:r,isSelected:c,onSelect:o,showUpgradeButton:i,isDisabled:!0,"data-sentry-element":"PlanLengthButton","data-sentry-source-file":"plan-length-card.tsx"})})}),(0,t.jsx)(b.TooltipContent,{"data-sentry-element":"TooltipContent","data-sentry-source-file":"plan-length-card.tsx",children:(0,t.jsx)("div",{children:u?(0,t.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,t.jsx)("div",{children:"Ascend Promo Customers must choose monthly billing."}),(0,t.jsxs)("div",{children:["After your Ascend promo expires, you can switch to ",(0,t.jsx)("br",{}),"quarterly or annual billing later."]})]}):(0,t.jsx)("div",{children:"Not available to organizations without an active carrier authority"})})})]})}),h=()=>(0,t.jsx)(x,{pricingParams:n,seats:r,isSelected:c,onSelect:o,showUpgradeButton:i,isDisabled:!1,"data-sentry-element":"PlanLengthButton","data-sentry-component":"enableButton","data-sentry-source-file":"plan-length-card.tsx"});if(d)if(!u)return h();else if(p)return h();else return f();return m?h():f()}],810458),e.s(["PlanLengthHeader",0,function(e){let{lengthOptionCount:r}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold",children:"Select Billing Cycle Length"}),r>1&&(0,t.jsx)("div",{className:"text-sm font-semibold",children:"Get more free phone/email enrichment credits the longer you commit upfront."})]})}],684639),e.s(["RequestsDisclaimer",0,function(){return(0,t.jsx)("div",{className:"text-xs text-black/50","data-sentry-component":"RequestsDisclaimer","data-sentry-source-file":"requests-disclaimer.tsx",children:"1 enrichment credit applies to 1 contact which includes all verifiable email/phone numbers. All credits are issued up front."})}],736757)},325357,167491,499679,391176,e=>{"use strict";var t=e.i(391398),r=e.i(440664),n=e.i(178615);
2let a={name:"PRO",basePrice:200,monthlyParams:{stripeLookupKey:"pro-1-month-early-access",shipperCredits:void 0,enrichmentCredits:{included:50,gifted:0},price:200,months:1},quarterlyParams:{stripeLookupKey:"pro-3-months-early-access",shipperCredits:void 0,enrichmentCredits:{included:150,gifted:50},price:600,months:3},yearlyParams:{stripeLookupKey:"pro-12-months-early-access",shipperCredits:void 0,enrichmentCredits:{included:600,gifted:300},price:2400,months:12},features:[{title:"Unlimited Shippers (Company + Locations)",text:"Click on / search every shipper on the MagicMap"},{title:"Unlimited Logistics LinkedIn Profiles",text:"Curated & ranked list of logistics employees"},{title:"Expanded Journey Freight Academy Lesson Access",text:"Access an expanded curated Journey lesson set inside ShipperCRM"},{title:"50 Contact Enrichments (Included)",text:"Unlock human-validated phone numbers & emails"}]},i={name:"STARTER",basePrice:100,monthlyParams:{stripeLookupKey:"starter-1-months-300-shippers-10-enrichments",shipperCredits:{included:300,gifted:0},enrichmentCredits:{included:10,gifted:0},price:100,months:1},quarterlyParams:void 0,yearlyParams:void 0,features:[{title:"300 Shippers (Company + Locations)",text:"Click on / search every shipper on the MagicMap"},{title:"Unlimited Logistics LinkedIn Profiles",text:"Curated & ranked list of logistics employees"},{title:"Selected Journey Freight Academy Lessons",text:"Access a curated Journey lesson set inside ShipperCRM"},{title:"10 Contact Enrichments (Included)",text:"Unlock human-validated phone numbers & emails"}]},o={name:"LITE",basePrice:50,monthlyParams:{stripeLookupKey:"lite-1-months-50-companies-0-enrichments",shipperCredits:{included:50,gifted:0},enrichmentCredits:void 0,price:50,months:1},quarterlyParams:void 0,yearlyParams:void 0,features:[{title:"50 Shippers (Company + Locations)",text:"Click on / search every shipper on the MagicMap"},{title:"Unlimited Logistics LinkedIn Profiles",text:"Curated & ranked list of logistics employees"},{title:"Selected Journey Freight Academy Lessons",text:"Access a curated Journey lesson set inside ShipperCRM"},{title:"0 Contact Enrichments",text:"Purchase credits as you need them for $1/credit",dontEmphasize:!0}]};e.s(["CURRENT_LITE_PLAN_OFFER",0,o,"CURRENT_PRO_PLAN_OFFER",0,a,"CURRENT_STARTER_PLAN_OFFER",0,i],167491),e.i(351533);var s=e.i(23128),l=e.i(589348);e.s(["LitePlanCard",0,function(e){let{onSelect:a,selected:i,seats:c}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-[#d2d2d2] px-6 py-4 shadow","data-testid":"plan-card-lite","data-sentry-component":"LitePlanCard","data-sentry-source-file":"lite-plan-card.tsx",children:[(0,t.jsx)("div",{className:"flex flex-row items-start gap-0.5",children:(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Lite"})}),(0,t.jsxs)("div",{className:"flex flex-row items-end gap-1.5",children:[(0,t.jsx)("div",{className:"text-2xl font-semibold",children:(0,n.formatMoney)(o.basePrice*c)}),(0,t.jsx)("div",{className:"mb-1 text-xs font-semibold text-black/50",children:"/ month"})]}),(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:o.features.map(({title:e,text:n,dontEmphasize:a})=>(0,t.jsx)(r.FeatureItem,{title:e,text:n,dontEmphasize:a},e))}),i?(0,t.jsx)("div",{className:"flex items-center justify-center rounded-lg bg-[#B7C9E1] p-3 text-white",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Selected"}),(0,t.jsx)(l.CheckIcon,{size:16,strokeWidth:3})]})}):(0,t.jsx)(s.Button,{onClick:a,className:"focus:ring-0",children:(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Select"})})]})}],325357),e.s(["StarterPlanCard",0,function(e){let{onSelect:a,selected:o,seats:c}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-[#d2d2d2] px-6 py-4 shadow","data-testid":"plan-card-starter","data-sentry-component":"StarterPlanCard","data-sentry-source-file":"starter-plan-card.tsx",children:[(0,t.jsx)("div",{className:"flex flex-row items-start gap-0.5",children:(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Starter"})}),(0,t.jsxs)("div",{className:"flex flex-row items-end gap-1.5",children:[(0,t.jsx)("div",{className:"text-2xl font-semibold",children:(0,n.formatMoney)(i.basePrice*c)}),(0,t.jsx)("div",{className:"mb-1 text-xs font-semibold text-black/50",children:"/ month"})]}),(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:i.features.map(({title:e,text:n})=>(0,t.jsx)(r.FeatureItem,{title:e,text:n},e))}),o?(0,t.jsx)("div",{className:"flex items-center justify-center rounded-lg bg-[#B7C9E1] p-3 text-white",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Selected"}),(0,t.jsx)(l.CheckIcon,{size:16,strokeWidth:3})]})}):(0,t.jsx)(s.Button,{onClick:a,className:"focus:ring-0",children:(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Select"})})]})}],499679);var c=e.i(909179);e.s(["ProPlanCard",0,function(e){let{onSelect:i,selected:o,seats:u,hasAscendPromo:d}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-[#6F74EC] px-6 py-4 shadow","data-testid":"plan-card-pro","data-sentry-component":"ProPlanCard","data-sentry-source-file":"pro-plan-card.tsx",children:[(0,t.jsxs)("div",{className:"flex flex-row items-start gap-0.5",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Pro"}),(0,t.jsx)(c.SparkleIcon,{fill:"#6F74EC",strokeWidth:0,size:14,"data-sentry-element":"SparkleIcon","data-sentry-source-file":"pro-plan-card.tsx"})]}),(0,t.jsxs)("div",{className:"flex flex-row items-end gap-1.5",children:[d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-2xl font-semibold line-through opacity-50",children:(0,n.formatMoney)(a.basePrice*u)}),(0,t.jsx)("div",{className:"text-2xl font-semibold text-brand",children:"$0"})]}):(0,t.jsx)("div",{className:"text-2xl font-semibold",children:(0,n.formatMoney)(a.basePrice*u)}),(0,t.jsx)("div",{className:"mb-1 text-xs font-semibold text-black/50",children:"/ month "})]}),d&&(0,t.jsxs)("div",{className:"text-xs font-semibold text-black/50",children:[(0,t.jsx)("span",{className:"text-brand",children:"AscendTMS"})," discount applied for 1 seat"]}),(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:a.features.map(({title:e,text:n})=>(0,t.jsx)(r.FeatureItem,{title:e,text:n,highlighted:!0},e))}),o?(0,t.jsx)("div",{className:"flex items-center justify-center rounded-lg bg-[#B7C9E1] p-3 text-white",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Selected"}),(0,t.jsx)(l.CheckIcon,{size:16,strokeWidth:3})]})}):(0,t.jsx)(s.Button,{onClick:i,className:"focus:ring-0",children:(0,t.jsx)("div",{className:"text-xs font-semibold",children:"Select"})})]})}],391176)},624164,e=>{"use strict";e.i(36188);var t=e.i(334751);async function r(e){await new Promise(function(t){setTimeout(t,e)})}async function n(e){let n=e.maxAttempts??15,a=e.intervalMs??2e3,i=e.sleepFn??r;for(let r=0;r<n;r+=1){let r=await e.getOrganizationPlan();if(r&&r!==t.SubscriptionPlan.FREE&&(r===t.SubscriptionPlan.PRO||!e.getRemainingShipperCredits||(await e.getRemainingShipperCredits()??0)>0))return"activated";await i(a)}return"timeout"}var a=e.i(486533),i=e.i(191788),o=e.i(679935);e.s(["useInlineSubscriptionCheckoutFlow",0,function(e){let{settleSubscriptionActivation:t}=function(){let{update:e}=(0,a.useSession)();return{settleSubscriptionActivation:(0,i.useCallback)(async function(t){if("activated"===await n({getOrganizationPlan:t.getOrganizationPlan,getRemainingShipperCredits:t.getRemainingShipperCredits}))return await e(),await t.afterActivation(),"activated";let r=t.timeoutMessage??"Payment was confirmed, but plan activation has not finished yet. Please check again.";
2return t.onTimeout?.(r),o.toast.error("Payment confirmed, but plan activation is still pending."),"timeout"},[e])}}(),r=(0,i.useRef)(e);r.current=e;let[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(null),[m,f]=(0,i.useState)(!1),[h,y]=(0,i.useState)(null),g=(0,i.useCallback)(()=>{f(!1),l(null),u(null),p(null),y(null)},[]),b=(0,i.useCallback)(async()=>{f(!0),y(null);let e=r.current.getRemainingShipperCredits;try{await t({getOrganizationPlan:()=>r.current.getOrganizationPlan(),getRemainingShipperCredits:e?()=>e():void 0,afterActivation:()=>r.current.afterActivation(),onTimeout:e=>y(e)})}finally{f(!1)}},[t]),x=(0,i.useCallback)(async e=>{y(null);let t=r.current;if(e.paymentRequired){l(e.clientSecret),u(e.paymentMode),p(e.subscriptionId),t.onPaymentRequiredSideEffect?.();return}l(null),u(null),p(null),await t.beforeSettleWhenNoPaymentRequired?.(),await b()},[b]),v=(0,i.useCallback)(async e=>{"setup"===c&&await r.current.onPaymentMethodSetupConfirmed?.({setupIntentId:e,subscriptionId:d}),l(null),u(null),p(null),await b()},[b,c,d]);return{clientSecret:s,paymentMode:c,subscriptionId:d,isSettlingPayment:m,paymentSettlementError:h,resetPaymentState:g,handleSubscriptionCreated:x,handlePaymentConfirmed:v,finalizeActivatedSubscription:b}}],624164)},442179,e=>{"use strict";var t=e.i(414346),r=e.i(191788);e.s(["usePlanLengthSelection",0,function(){let e=t.trpc.viewer.organization.getMembers.useQuery(),[n,a]=(0,r.useState)(1),[i,o]=(0,r.useState)();return(0,r.useEffect)(()=>{"success"===e.status&&e.data.seatsUsed>n&&a(e.data.seatsUsed)},[e.status]),{seats:n,min:"success"===e.status?e.data.seatsUsed:1,handleSeatsChange:e=>{e>=1&&a(e)},currentPricingParams:i,setCurrentPricingParams:o}}])},334846,e=>{"use strict";var t=e.i(442179),r=e.i(167491),n=e.i(191788);e.s(["usePlanSelection",0,function(){let e=(0,t.usePlanLengthSelection)(),[a,i]=(0,n.useState)();return{currentPlanOffer:a,handleCurrentPlanOfferChange:e=>{i([r.CURRENT_PRO_PLAN_OFFER,r.CURRENT_STARTER_PLAN_OFFER,r.CURRENT_LITE_PLAN_OFFER].find(t=>t.name===e))},planLengthSelection:e}}])},648761,e=>{e.v(t=>Promise.all(["static/chunks/0v_6.qk~vo95v.js"].map(t=>e.l(t))).then(()=>t(493594)))},828805,e=>{e.v(t=>Promise.all(["static/chunks/143769ic0sa2~.js"].map(t=>e.l(t))).then(()=>t(879466)))},685497,e=>{e.v(t=>Promise.all(["static/chunks/0n~hlngbjmdna.js"].map(t=>e.l(t))).then(()=>t(81165)))},41124,e=>{e.v(t=>Promise.all(["static/chunks/043nwv86whwtz.js"].map(t=>e.l(t))).then(()=>t(984030)))}]);
3
4//# debugId=5129fda8-5d12-4731-8d55-0d8c9c9e92de

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.